"use strict";this.default_kevlar_base=this.default_kevlar_base||{};(function(_){var window=this;
try{
_._F_toggles_initialize=function(q){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles_default_kevlar_base=q||[]};
(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 qJD,NAD,yZd,JZA,EDh,gDn,yh,FdA,udA,EJ,ZR,zun,$en,Gz,YD,tnA,men,rZd,OJ,jJA,xeA,DR,YJz,lRJ,huJ,Ueh,IRR,TAR,nDh,WdZ,Ldn,PnR,J4,dx,cR,AZA,uT,zo,euD,X1,iT,HCD,qxd,C1,Il,b1z,Z1h,FMJ,al,c4n,u1A,WR,zJz,$vR,tjn,PR,RJJ,Mv,r4D,jlC,QlJ,$a,O1Z,wRu,zc,vEd,cd,Gou,YxA,fqJ,Iqh,TxC,vd,aqD,nEJ,Sxe,WMA,LMJ,PTn,MjA,eJd,Bxn,Nph,yah,EaC,dNd,uAC,caC,fU,zxd,VXD,If,jfJ,vaD,OUd,YfZ,wdR,QfR,nU,pRC,af,Wd,pU,iUC,Pd,DNR,lWC,KKC,Bd,hxJ,kcd,UNd,fWu,IWR,CBd,Tpz,sfD,nah,Aa,Sfh,LKn,PBd,oaC,gs,exn,qhd,Fy,yBh,gBA,HUZ,ZcA,R_u,dBd,
rBA,z_C,VvC,xBd,vBD,Yhe,Qxu,llA,K7e,ken,flh,TsC,nBJ,aln,W7n,PXJ,HcC,Kc,N0d,yjh,JjD,Ix,Te,nc,AB,BZ,qn,uwu,Zb,$nz,rjh,VFd,j9J,xnh,$i,viA,mt,r0,Xw,Vz,Y5A,Q9z,O7R,wxA,i7J,Ktn,Dnu,hXJ,kwJ,fbJ,Gw,vx,C$J,IbC,T0n,niC,s9J,abd,S5D,WtA,ki,U5,f7,C7,Tw,pxe,n7,MFn,H7h,SF,qpJ,NzA,bMA,p7,ybJ,Jbn,E7J,Mn,Fsd,Aj,cbA,ueJ,eF,$Yh,ztn,tcZ,mYJ,rbe,Xhd,qY,VcR,jWd,NY,xYz,v7n,b3,yu,Jb,Ep,GbZ,QWu,YpJ,gz,whn,iMn,lkD,Fe,dz,ch,u3,zb,$7,Ksz,DYA,kbC,UYd,C3A,IkD,TzA,sWz,n7d,akA,rz,Sph,Wsd,phC,P3R,McJ,o7d,Abd,etD,BzZ,x7,HMC,Gb,Y7,
qNA,yWu,JWe,ENn,ZFC,FWA,Rpn,zpZ,$Iu,tGC,mIz,rWd,XYd,VGd,GPu,i3,YNA,QAn,OFJ,wYA,iFn,lzz,DIR,WWA,LWD,pYA,oNe,AWd,CM,epA,qLJ,yXu,JXd,ELd,gLA,Z3Z,FRe,RMz,d0z,u8z,zMD,NnZ,$0z,txh,m0u,rXJ,X1e,Vxz,jen,x0J,vLd,O3u,YLh,luR,w1d,i3A,hMe,k2J,U0A,KRJ,C5A,D0A,Tne,qI,seR,NI,JW,nLZ,SLh,WRn,P5n,yVC,oLJ,Mxd,eMA,H3J,AXn,RlZ,gZA,d7n,cVA,uCd,zlA,$7e,m7J,tIC,rVJ,XCd,VIh,jud,vZu,Ywe,Quh,OIh,iIC,wCZ,nZd,Fz,a$e,WTd,LTz,pCz,PcA,MIn,AVz,elh,BVn,mW,rE,HId,EfJ,jG,xN,RVd,czn,xgA,ON,YVd,QOn,lMn,w4A,i4n,Dz,KaD,DgJ,k1Z,UgD,fMR,Cvn,
IMD,TOJ,sOu,aMn,SVR,Lan,WaJ,MAu,WY,PY,Azd,eVn,BOA,H4C,qan,NDd,ySd,E5n,JSA,EL,Zu,tdh,c1,xmD,v5e,u5,Yan,GnJ,knA,Umn,f3J,I3A,a3J,WAz,LAA,pve,P7J,o5J,ewC,BDh,mR,q2J,xL,bod,yrd,JrJ,gyR,NLC,HYn,EyD,VS,F0u,ufu,d6A,t0d,m6J,X_d,V0n,jpZ,x6J,i5,vyu,Y2d,G6D,Qpn,w_u,Du,K0A,UL,C3,f3,U6J,lyD,spn,R3z,u0C,cDJ,t6J,n3,rDA,jCd,xrC,L3,Ghe,P1,M0,OQJ,lmn,DrA,h3h,khd,ex,UrJ,B1,fmn,Ime,TId,sCd,nFd,SXJ,bc,WnJ,Lne,JV,Z$,M6n,oFA,ADJ,HQJ,q7z,bAJ,y9C,dLZ,c9u,ZAd,zTh,$LJ,tLn,XC,jI,xZ,VLu,jPJ,YZ,xLC,vHz,GjR,Y7e,OAh,wBn,iAJ,lpD,
QPd,KHd,wV,hTd,IpJ,ic,Cth,Tdh,DLz,sPD,KI,apn,S7h,WHd,LHA,Ptd,pBn,MLz,eTd,oHA,HAC,EUd,Zxh,R0e,uvu,c8d,dPn,z0e,$PA,mPD,Xyn,r8C,j$n,nI,vUR,GyC,YeZ,Q$D,ixA,Kje,lZZ,DPR,h0A,kyn,UPA,CEu,TyJ,aZn,WjA,SeR,uv,Ljn,IZz,ByZ,qYd,NgJ,bru,X$,yeZ,Eoe,FOC,cez,dcC,tgd,mcA,red,X3d,j5e,Q5A,xcz,GrR,YYA,Orn,w3e,liA,irn,DcR,KOA,DM,h2d,UcZ,fin,s5n,sV,n4,noA,aiu,aO,p3u,p4,P4,oO,AeC,Az,Hrh,H4,qRA,N3J,bDJ,yiC,b7,JiA,ERd,gRz,F5Z,dRh,zSD,tNh,u7,mRA,riz,XTD,VNA,joZ,xRd,vRJ,GCD,tS,ODn,wTn,iDd,lCn,K5n,DRA,hSR,kCn,URA,fCJ,CgC,ICd,
T3d,Gn,eSh,B3n,Y5,Qr,Oa,HDd,qvJ,N5J,b9D,yNn,JNn,E8z,dKz,cNz,uHu,znC,$KD,KY,hS,k5,Ua,Iw,Tn,sa,mKu,aw,XPZ,Sd,VeJ,j0n,Wv,xKR,v8A,GMC,hnn,UKn,s0A,WlC,SvA,kMu,LlD,Men,F_n,qkA,zQd,bkZ,cmz,$9h,AS,m9n,Bv,XHJ,Vln,x9h,v9D,Gsn,QUA,N6,wHJ,ikA,lPJ,K_D,D9J,hQn,kse,Okn,CLe,IPD,TqA,yQ,L_e,pHA,W_J,Mld,o9h,eQh,BqA,AmC,E0d,ZtA,RyZ,cnD,z6,X$D,moJ,rnJ,GTd,QiD,Ote,w$z,itn,ldz,K6d,G6,siA,adR,IdD,Cqd,n0n,hyZ,W6C,NJZ,Pqd,M_J,o0Z,cEA,zIe,dOh,Vuz,RIu,DoD,Xkz,p$n,qld,uQd,S_A,Uoe,kTz,fdz,Tan,F8n,ap,k4D,fUz,CRZ,IUJ,TJz,MuJ,H6C,
q$D,H_,bTJ,EeZ,R7n,FIR,cOJ,u3n,$EC,mEJ,tzC,rOd,XGn,Vzd,jDD,vee,xEJ,u_,iTn,wGR,OTz,h7D,l7A,kSh,DEn,UEJ,f7n,sDZ,I7D,TjJ,a7C,LIJ,pGR,oeC,AOu,e7z,Bjn,qAC,b0n,X0,J3Z,Z0J,EAJ,FUh,uOD,zNz,m1n,XDe,Gh,YF,vAh,GKC,QH,OX,YAR,wI,i_,Qmu,l_,O0Z,KQ,wDe,i0z,hD,lIz,KUJ,D1C,hNC,kKn,fIC,U1e,IIz,nAn,smn,aIA,SAR,Ckn,WUA,PkJ,pDh,TRC,MPJ,oAC,IC,A3h,BRe,eNC,H0Z,qdJ,bNn,NhR,y7Z,sX,EJu,gJR,J7e,Fvn,RfJ,d$d,$$D,r7d,vJJ,ONn,nQ,lQd,Kvn,aC,D$A,PK,Mr,IQR,WK,e6,ThZ,sKZ,aQd,SdA,Lvu,P9n,MaJ,oJn,A7n,HNA,Jsh,bLd,Bhd,EsA,gsd,yi,ysn,ZLA,
gd,FYJ,RWA,ddd,csA,t5e,unn,$dD,V5d,j6n,Q6d,Ynu,iLn,UdJ,fsJ,IsA,s6D,nsz,Snh,WYd,LYD,PZd,M5e,osZ,BMA,bGJ,yxd,HLJ,E_n,ZGA,g_d,Jxz,Fwn,dQA,cxu,ucJ,zLA,$Qn,X4,Vi,vB,YH,rxD,XEz,jYR,Gmh,O7,wd,Yqh,lt,wEu,iGh,loh,Dp,UQe,T1A,n_h,aon,Squ,LwA,pEJ,PuJ,Axn,kH,eLd,q1n,U7,Nbz,ECn,fA,F4z,CA,s7,nA,RFu,clh,dHh,zFZ,$HC,tkR,mHR,uPA,xHu,vCd,Y1n,OJD,K4Z,l6J,DHC,k8e,UHu,f6d,CUD,I6A,Tbe,sXJ,S1u,nCJ,pA,L4A,PB,p2h,oP,A9,PUZ,Mku,oCD,AlA,eFn,eL,Bbd,HJA,qIJ,NHJ,y5C,J5z,EQu,gQJ,ZpC,REZ,FXD,BB,c5A,zEz,$jA,tTJ,mjC,VTJ,xjh,bE,G5d,
QSn,Ope,wwd,ipA,lNn,KXA,DjD,hEd,jSA,vQJ,k5A,UjJ,THR,sSJ,nQJ,aNA,ywd,g2h,Zvd,FzA,E2n,$tu,rwJ,tRz,X7d,xtu,GJe,Qge,lLd,ivR,kJe,uE,Utu,fLu,zy,CKn,$U,ILe,TPn,sgJ,aLd,n2J,SUJ,Wzz,Lze,p7D,HvR,Nkd,ytd,bzC,Awn,MRC,Ecu,Zze,uJA,zjR,m2e,vcd,YCJ,Xv,QNJ,wtz,izd,KSR,U2e,Ihd,nch,ahD,SCn,WSJ,ocn,LSR,HzZ,qDd,NCC,yGJ,vy,JGn,gTJ,Zin,FCe,RUZ,dCJ,cGu,uKZ,$CZ,tQZ,wy,mCe,rGD,VQA,lE,X0C,xCn,QVd,h8,Oin,w0z,iin,DCd,hUe,lYd,UCC,TCA,sVA,nTJ,Ty,aYn,p0z,Peu,S2,AGd,MQJ,oTh,HiJ,qjd,NUn,EzZ,Fmd,ZOR,gzu,Rad,cTD,u6d,rTh,zaZ,Xad,jte,
VDu,OOC,lDn,DMA,kIC,IDd,Lmu,Gr,PQA,ean,HOA,xo,ko,E3C,Rsn,FJJ,cIh,uFD,$zD,zsR,tOA,mzz,UY,n8D,g3n,dzZ,Zmd,Di,VOA,jMd,xzA,v3Z,OmD,wbd,lOu,KJn,DzR,hsJ,kDe,pr,Uzn,fOD,CoZ,IOJ,Tez,Ae,sMD,SMd,LJu,pbu,Hmd,Nwh,bPd,y2z,E6Z,g6n,ER,FNn,RPZ,dAd,c2n,u2A,zPn,tUd,r2n,VUd,jzA,OPD,YSz,wWh,KNC,DAR,ug,hPh,kVd,UAd,IGJ,szd,Twe,aGR,WNn,m5,pWu,PdA,LNJ,MUe,o6J,ePe,HPz,BwJ,quh,A2A,NTC,bVe,y$h,J$n,EYR,gYA,ZVZ,Fuu,RZd,u5C,c$C,zZh,t9d,$Tz,r3,mTJ,V9Z,GED,r$n,OVn,wQA,iVD,lcA,hZA,sRn,nYJ,Sun,WuA,KD,M9z,BTC,N7d,DC,Ewz,bge,y0d,J0J,
gwn,c0z,CD,uxJ,zkn,tsu,mJz,r0D,X6u,jkd,xJz,KyA,OgD,igC,hkD,DJJ,k9Z,UJe,CPJ,uih,$8n,m8C,rPd,VmC,lvJ,hHd,U8A,fvZ,CfR,Ivd,T2A,n$u,avA,L$D,pXA,PfD,MmJ,o$n,APD,eHd,B2h,NmC,Eth,oo,Ai,eN,gth,ZRn,qK,Rbn,XFC,YoJ,vtJ,ntD,aVu,Sod,cdn,rdA,$WR,LPA,pFZ,PDe,MYu,jrD,otC,ebA,HRA,bSd,yvd,d5,uTZ,$wh,mwA,rvd,jHZ,vxn,xwD,QHd,wju,Uwz,hYA,l2h,kvu,Kon,f2h,sHd,Qk,Ov,oxd,pjA,eYe,BKJ,qrJ,NoJ,iI,buh,ElZ,gld,ZuC,F1J,myu,t$z,C9,vlA,Se,YrA,QZd,OuA,wfD,iuz,l0d,K1n,DyZ,hhz,kkJ,Uyz,L9,f0u,CzA,I0n,ToZ,sZn,nlR,a0J,Srd,PP,W1Z,L1z,pfJ,
Pzd,M$A,olJ,AAd,ehe,BoC,Huz,qin,Nld,b_J,o0,JYz,grJ,Fih,cYe,$qn,tCd,mqD,Xeh,jcZ,xqZ,vrd,Ek,wen,Qcz,i_z,lgz,Kih,kFJ,UqZ,fgA,IgR,rq,sch,tm,agD,Sid,XY,WiA,Lin,pen,PJu,jl,eeJ,H_n,JJR,yJd,gpJ,Z8R,wq,F3z,Rod,cJA,zon,$Vu,mVd,rJz,uZz,X8D,Giu,w8J,i8n,iL,lfD,K3n,ffn,DVe,kiJ,UVJ,afC,Ifn,S8e,L3n,PpR,MpJ,opn,AJZ,eoR,BiA,qQh,NFn,bdh,yKJ,JKh,gOJ,FfJ,cKu,twu,XJZ,jLh,GHC,fk,YQh,QLZ,OdR,wJn,idC,Kfu,Dln,hvA,kHA,UlJ,f_n,CNn,I_J,TFA,sLz,nOu,SQu,a_h,pJz,Mwd,Ts,oOn,BFC,evC,NWd,bwJ,yqR,gGA,ROR,F2A,EGJ,uoA,cqn,rqA,zOJ,WH,
tfe,YmJ,j1Z,xkC,vGn,G_A,Q1J,wpR,OwA,Lk,pk,UkA,lJD,k_Z,hOC,K2n,DkA,IJn,s1A,aJJ,nGd,Smu,PFd,ppd,oGJ,BWh,qHR,eOA,NGJ,yUz,b$J,E1h,FQz,el,RqD,dhA,zqJ,XLd,YHe,HH,O$e,i$d,hqd,Dhn,lwA,KQD,Jn,ChR,k$z,Uhh,Iwn,sjd,TGd,SHe,WQR,pLh,Phh,Mou,o1h,AUD,BGu,H$d,VI,NvR,bfn,gWC,ZfJ,Y0,FZR,d5J,VWn,lq,$5A,XmC,tWJ,m5h,GBz,vWR,wmA,Ysu,ifJ,lad,Dd,D5n,h8u,kBd,KZJ,U_,U5A,hn,Tvn,pmd,PSD,MWJ,oWD,AFA,e8J,BvC,b5C,qPe,N9J,Hfn,JgJ,Fqu,RcZ,uuz,zcu,tMd,X9n,m4A,rgn,VMn,x4h,vbZ,G0h,YPu,QbJ,O5C,i5d,S_,KqA,k0h,hcz,frJ,U4n,CjD,Irz,sbA,nbn,
AgJ,MMA,H5n,qKJ,gnA,ZWd,F9n,RAd,dGC,cfJ,$GR,t7d,mGA,Xgd,V7d,jhu,xGh,vnu,GlC,QhJ,OWC,wgu,JE,DGd,K9A,lnC,iWd,klz,C4J,UGJ,TXu,shA,ane,SKJ,W9A,L9n,pgJ,eAA,P4u,M7C,onA,BXC,HWC,q9R,Afd,RE,yoC,EjA,JoR,ck,gjR,FLn,Rmh,dun,ZXd,coA,ukd,zmA,$ud,tyD,roA,Xuh,Vyn,jqA,GXn,vjJ,iXd,xue,z4,lAC,Y9d,wun,Dud,hmd,kXA,Uud,fAC,IAd,TSJ,sqn,aAJ,S9z,LLD,PrZ,BSR,AoC,emd,ojJ,Myn,HXD,G4,qWn,YP,N4d,bZJ,iR,gmD,FEA,R1A,daC,c1J,uNz,z1C,K6,DU,XnJ,t4u,$aA,man,KEd,wnD,r1A,OZh,CHd,I8h,T4D,s8A,nmd,WEe,pnn,M4d,A1R,e1J,B4n,bhR,Nrd,yMd,EdZ,
eu,FDz,RKJ,dFh,cMR,ubZ,zKz,$FD,Hk,qE,rMR,XSd,j7h,GZn,lSZ,UFd,kZh,fSR,ISD,TrJ,s7A,ndu,aSu,SgD,Z7,WDJ,eKu,Brd,M8J,Pan,AMn,odA,yQR,JQR,EMu,gMn,Zyd,Fhe,cQd,d3h,RCn,j4A,XqD,x3z,vMd,GYR,OyA,wqn,YcR,Q4A,fFe,IFJ,s4C,aFz,WhA,pqC,AQZ,eCn,BNz,NYD,q0z,Hyn,bBn,yRR,JRR,EXd,gXn,ZBh,FFe,R4e,dSC,cRz,z4J,$SJ,tbA,mSe,rRZ,XrJ,jsA,xSn,vXh,GGn,Y0n,Qsd,l9e,KFA,h4h,USd,kGd,f9Z,VR,Ciz,I9D,TYZ,ssJ,WFd,S0J,LFe,prn,PiR,Mbn,e4J,BYe,HBJ,qTd,N6J,bad,y6A,J6A,EKJ,gKC,ZaA,R6n,Fcz,dUA,c6A,uLD,z6J,$Uu,ttJ,mUJ,r6J,ix,Vte,jaR,xUh,vKz,
GRJ,Qan,OaC,wlu,iaA,lKA,Kcd,h6n,kRd,fKe,hO,T6R,WcA,aKn,nKe,saZ,STA,POC,MtR,oKe,A6h,B6d,Han,q3A,beA,NQZ,ykA,JkJ,EIJ,FBn,R$J,dXu,ckh,urh,z$d,mXz,rkh,aD,vIz,GdA,Qdd,iee,wIR,lTh,KBu,Sz,LT,h$d,kdn,ME,oD,ITC,UXA,fTC,nIn,aTD,S3R,WBh,M3n,Aku,e$n,BQJ,Hen,qOe,bHZ,ycD,Jcz,E4z,g4h,ZHz,Fbz,BG,Rin,dDz,q1,ccA,upD,ziJ,$DR,tBA,mDd,y_,J3,rcD,XOz,EA,VBh,jnA,xDA,v4n,YOn,Qnd,wOA,hiA,DDA,KbJ,kOe,UDD,aEJ,IEu,TcZ,snJ,Cme,n4C,SOD,Wbu,pOe,MBJ,ZI,eiC,BcR,HHz,qZC,Ntu,yhZ,EkC,Fpd,uan,dfD,FO,RBz,rhu,V1n,Rm,jGA,xfd,vkJ,GNd,YZR,
Oqn,wzA,l1D,KpZ,hBd,kNh,I1Z,CYZ,sGZ,nkA,a1n,SZJ,Lph,pzd,PYn,M1z,okD,Ahh,eBC,Bte,Hqd,NZZ,b2Z,Z2J,FxR,RDh,d_u,zDA,rR,m_Z,ryJ,XUd,VKA,j3A,x_J,Gpz,Yye,Q3R,O2C,i2d,lBA,Kxn,jP,D_J,hDR,fBn,CVA,xA,vD,s3C,IBe,nhn,Wxd,aBd,Lxe,PVJ,OA,MKh,ohz,BZd,qzd,wR,bsC,yuZ,Jun,EVz,gVd,ZsA,Fkh,R5h,z5D,miR,$in,thu,rue,xiu,X5d,jvu,vVD,GUR,Yze,w5d,isA,lxh,Din,h5h,T$z,IxD,LkJ,MhJ,C0,oVD,Swd,Aud,e5J,Hsd,bbA,yHA,dZR,cHh,uSC,zzZ,$Zu,tZu,rHZ,XNZ,j_n,vuu,VZZ,xZh,YFn,GAd,ObR,l5n,wND,Krz,DZJ,hzh,kAA,UZJ,f5n,I5D,C6n,a5A,LrR,SFR,pNC,
P6d,MZR,p0,ouD,AHd,M1,BfD,ezJ,Hbd,NuJ,qGn,EvJ,gvJ,Fgz,Rdz,cpC,uDn,zdn,$sJ,rpC,Vrd,vvZ,xsd,GuA,YGD,QId,iKn,TuR,hdR,nvD,aHn,WgD,LgJ,ovC,Aph,edd,Buh,HKZ,q4A,bjA,yLR,JLJ,ESh,Fen,dbd,RRA,tqC,mbu,rLJ,XMZ,Vqu,jBZ,xbh,GLC,OjZ,wMd,ijJ,lXA,KeJ,Dbh,Ubd,kLJ,IXR,sBn,nSA,aXJ,S4J,WeR,pMn,Len,Mqu,HjZ,y_A,bnD,J_D,Egz,ggR,FGn,X_,dxe,vV,uMA,$xd,tHd,jTd,vgJ,QTd,woA,inJ,KGC,Dxd,h9D,Uxh,CMn,IjZ,sTz,Stu,aju,ngd,i9,LGR,WGZ,poe,PMh,MHA,ogD,A_A,e9C,B8e,qBZ,blA,yCd,JCd,Eqd,gqA,ZlZ,FVn,RGn,cCd,uWA,zGA,xpJ,vqC,Ggu,QFJ,Olu,wsZ,
KVh,Ud,CyA,IeJ,sFu,nqu,aed,SBD,WVA,CN,B_J,gn,IK,sd,HlJ,qJE,yZ1,EDF,JZx,aK,gDT,ZCx,FdR,Ru1;qJD=function(){var q,N;return typeof CSS!=="undefined"&&((N=(q=CSS).supports)==null?void 0:N.call(q,"selector(:has(*))"))};
NAD=function(q){return q.visibility!=="hidden"&&q.display!=="none"};
yZd=function(q){if(qJD()||q.tagName!=="DETAILS"?!q.matches(bCe):q.querySelector("summary")!==null)return-1;q=q.getAttribute("tabindex")||"0";return Number(q)};
JZA=function(q){return q.some(function(N){return yZd(N)>0})};
EDh=function(q){if(q.textContent||q.ariaLabel)return!0;if(q instanceof HTMLInputElement){if(!q.labels)return!1;q=_.Z(q.labels);for(var N=q.next();!N.done;N=q.next())if(N.value.textContent)return!0}return!1};
gDn=function(q){return q.sort(function(N,b){return yZd(b)-yZd(N)})};
_.ZCJ=function(q){q=Array.from(q.querySelectorAll(bCe)).filter(function(N){return(NAD(N.style)?NAD(window.getComputedStyle(N)):!1)&&EDh(N)});
return JZA(q)?gDn(q):q};
_.bn=function(q,N){if(Error.captureStackTrace)Error.captureStackTrace(this,_.bn);else{var b=Error().stack;b&&(this.stack=b)}q&&(this.message=String(q));N!==void 0&&(this.cause=N)};
yh=function(){throw Error("E");};
FdA=function(q,N){N=String.fromCharCode.apply(null,N);return q==null?N:q+N};
udA=function(q){var N=!1;N=N===void 0?!1:N;if(RuC){if(N&&(den?!q.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(q)))throw Error("F");q=(cZd||(cZd=new TextEncoder)).encode(q)}else{for(var b=0,y=new Uint8Array(3*q.length),J=0;J<q.length;J++){var E=q.charCodeAt(J);if(E<128)y[b++]=E;else{if(E<2048)y[b++]=E>>6|192;else{if(E>=55296&&E<=57343){if(E<=56319&&J<q.length){var F=q.charCodeAt(++J);if(F>=56320&&F<=57343){E=(E-55296)*1024+F-56320+65536;y[b++]=E>>18|
240;y[b++]=E>>12&63|128;y[b++]=E>>6&63|128;y[b++]=E&63|128;continue}else J--}if(N)throw Error("F");E=65533}y[b++]=E>>12|224;y[b++]=E>>6&63|128}y[b++]=E&63|128}}q=b===y.length?y:y.subarray(0,b)}return q};
EJ=function(q){_.JZ.setTimeout(function(){throw q;},0)};
_.gA=function(q,N){return q.lastIndexOf(N,0)==0};
ZR=function(q,N){var b=q.length-N.length;return b>=0&&q.indexOf(N,b)==b};
_.dA=function(q){return/^[\s\xa0]*$/.test(q)};
_.un=function(q,N){return q.indexOf(N)!=-1};
_.zz=function(q,N){return _.un(q.toLowerCase(),N.toLowerCase())};
_.md=function(q,N){var b=0;q=$D(String(q)).split(".");N=$D(String(N)).split(".");for(var y=Math.max(q.length,N.length),J=0;b==0&&J<y;J++){var E=q[J]||"",F=N[J]||"";do{E=/(\d*)(\D*)(.*)/.exec(E)||["","","",""];F=/(\d*)(\D*)(.*)/.exec(F)||["","","",""];if(E[0].length==0&&F[0].length==0)break;b=zun(E[1].length==0?0:parseInt(E[1],10),F[1].length==0?0:parseInt(F[1],10))||zun(E[2].length==0,F[2].length==0)||zun(E[2],F[2]);E=E[3];F=F[3]}while(b==0)}return b};
zun=function(q,N){return q<N?-1:q>N?1:0};
_.Vh=function(){var q=_.JZ.navigator;return q&&(q=q.userAgent)?q:""};
$en=function(q){if(!jn||!vA)return!1;for(var N=0;N<vA.brands.length;N++){var b=vA.brands[N].brand;if(b&&_.un(b,q))return!0}return!1};
Gz=function(q){return _.un(_.Vh(),q)};
YD=function(){return jn?!!vA&&vA.brands.length>0:!1};
tnA=function(){return YD()?!1:Gz("Opera")};
men=function(){return YD()?!1:Gz("Trident")||Gz("MSIE")};
rZd=function(){return YD()?$en("Microsoft Edge"):Gz("Edg/")};
OJ=function(){return Gz("Firefox")||Gz("FxiOS")};
_.XAu=function(){return Gz("Safari")&&!(_.ln()||(YD()?0:Gz("Coast"))||tnA()||(YD()?0:Gz("Edge"))||rZd()||(YD()?$en("Opera"):Gz("OPR"))||OJ()||Gz("Silk")||Gz("Android"))};
_.ln=function(){return YD()?$en("Chromium"):(Gz("Chrome")||Gz("CriOS"))&&!(YD()?0:Gz("Edge"))||Gz("Silk")};
_.Vne=function(){return Gz("Android")&&!(_.ln()||OJ()||tnA()||Gz("Silk"))};
jJA=function(q){var N={};q.forEach(function(b){N[b[0]]=b[1]});
return function(b){return N[b.find(function(y){return y in N})]||""}};
xeA=function(q){var N=_.Vh();if(q==="Internet Explorer"){if(men())if((q=/rv: *([\d\.]*)/.exec(N))&&q[1])N=q[1];else{q="";var b=/MSIE +([\d\.]+)/.exec(N);if(b&&b[1])if(N=/Trident\/(\d.\d)/.exec(N),b[1]=="7.0")if(N&&N[1])switch(N[1]){case "4.0":q="8.0";break;case "5.0":q="9.0";break;case "6.0":q="10.0";break;case "7.0":q="11.0"}else q="7.0";else q=b[1];N=q}else N="";return N}var y=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");b=[];for(var J;J=y.exec(N);)b.push([J[1],J[2],J[3]||void 0]);
N=jJA(b);switch(q){case "Opera":if(tnA())return N(["Version","Opera"]);if(YD()?$en("Opera"):Gz("OPR"))return N(["OPR"]);break;case "Microsoft Edge":if(YD()?0:Gz("Edge"))return N(["Edge"]);if(rZd())return N(["Edg"]);break;case "Chromium":if(_.ln())return N(["Chrome","CriOS","HeadlessChrome"])}return q==="Firefox"&&OJ()||q==="Safari"&&_.XAu()||q==="Android Browser"&&_.Vne()||q==="Silk"&&Gz("Silk")?(N=b[2])&&N[1]||"":""};
_.vDR=function(q){if(YD()&&q!=="Silk"){var N=vA.brands.find(function(b){return b.brand===q});
if(!N||!N.version)return NaN;N=N.version.split(".")}else{N=xeA(q);if(N==="")return NaN;N=N.split(".")}return N.length===0?NaN:Number(N[0])};
DR=function(){return jn?!!vA&&!!vA.platform:!1};
_.Gzd=function(){return DR()?vA.platform==="Android":Gz("Android")};
YJz=function(){return Gz("iPhone")&&!Gz("iPod")&&!Gz("iPad")};
_.hZ=function(){return YJz()||Gz("iPad")||Gz("iPod")};
_.QJJ=function(){return DR()?vA.platform==="macOS":Gz("Macintosh")};
_.OCu=function(){return DR()?vA.platform==="Windows":Gz("Windows")};
_.wAe=function(){return DR()?vA.platform==="Chrome OS":Gz("CrOS")};
_.UJ=function(q){return q[q.length-1]};
_.fC=function(q,N,b){N=_.iCA(q,N,b);return N<0?null:typeof q==="string"?q.charAt(N):q[N]};
_.iCA=function(q,N,b){for(var y=q.length,J=typeof q==="string"?q.split(""):q,E=0;E<y;E++)if(E in J&&N.call(b,J[E],E,q))return E;return-1};
lRJ=function(q){for(var N=_.CC,b=typeof q==="string"?q.split(""):q,y=q.length-1;y>=0;y--)if(y in b&&N.call(void 0,b[y],y,q))return y;return-1};
_.aJ=function(q,N){return _.Tz(q,N)>=0};
_.KdD=function(q,N){_.aJ(q,N)||q.push(N)};
_.WA=function(q,N){N=_.Tz(q,N);var b;(b=N>=0)&&_.Dez(q,N);return b};
_.Dez=function(q,N){Array.prototype.splice.call(q,N,1)};
_.LC=function(q){var N=q.length;if(N>0){for(var b=Array(N),y=0;y<N;y++)b[y]=q[y];return b}return[]};
_.PA=function(q,N){for(var b=1;b<arguments.length;b++){var y=arguments[b];if(_.pC(y)){var J=q.length||0,E=y.length||0;q.length=J+E;for(var F=0;F<E;F++)q[J+F]=y[F]}else q.push(y)}};
_.kzZ=function(q,N,b,y){Array.prototype.splice.apply(q,huJ(arguments,1))};
huJ=function(q,N,b){return arguments.length<=2?Array.prototype.slice.call(q,N):Array.prototype.slice.call(q,N,b)};
Ueh=function(q,N){N=N||q;for(var b=0,y=0,J={};y<q.length;){var E=q[y++],F=_.AZ(E)?"o"+_.en(E):(typeof E).charAt(0)+E;Object.prototype.hasOwnProperty.call(J,F)||(J[F]=!0,N[b++]=E)}N.length=b};
_.Cne=function(q,N,b){b=b||_.fRD;for(var y=0,J=q.length,E;y<J;){var F=y+(J-y>>>1);var R=b(N,q[F]);R>0?y=F+1:(J=F,E=!R)}return E?y:-y-1};
_.BA=function(q,N,b){if(!_.pC(q)||!_.pC(N)||q.length!=N.length)return!1;var y=q.length;b=b||IRR;for(var J=0;J<y;J++)if(!b(q[J],N[J]))return!1;return!0};
_.fRD=function(q,N){return q>N?1:q<N?-1:0};
IRR=function(q,N){return q===N};
TAR=function(q,N,b){N=Array.prototype.splice.call(q,N,1);Array.prototype.splice.call(q,b,0,N[0])};
nDh=function(q){return sJd[q]||""};
WdZ=function(q){if(!aRd)return _.HA(q);q=SJA.test(q)?q.replace(SJA,nDh):q;q=atob(q);for(var N=new Uint8Array(q.length),b=0;b<q.length;b++)N[b]=q.charCodeAt(b);return N};
Ldn=function(q,N){q.__closure__error__context__984382||(q.__closure__error__context__984382={});q.__closure__error__context__984382.severity=N};
_.bT=function(q){q=Error(q);Ldn(q,"warning");return q};
PnR=function(q,N){if(q!=null){var b;var y=(b=pAC)!=null?b:pAC={};b=y[q]||0;b>=N||(y[q]=b+1,q=Error(),Ldn(q,"incident"),EJ(q))}};
J4=function(q,N,b){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(b===void 0?0:b)&&Symbol.for&&q?Symbol.for(q):q!=null?Symbol(q):Symbol():N};
dx=function(q,N){Ex||_.gx in q||Mnd(q,oDz);q[_.gx]|=N};
cR=function(q,N){Ex||_.gx in q||Mnd(q,oDz);q[_.gx]=N};
AZA=function(q){if(4&q)return 512&q?512:1024&q?1024:0};
uT=function(q){dx(q,34);return q};
zo=function(q){dx(q,8192);return q};
euD=function(q){dx(q,32);return q};
X1=function(){return typeof BigInt==="function"};
iT=function(q,N){return N===void 0?q.copyOnWrite!==QF&&!!(2&(q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.gx]|0)):!!(2&N)&&q.copyOnWrite!==QF};
_.Ux=function(q,N){if(q!=null)if(typeof q==="string")q=q?new K1(q,Dq):_.kE();else if(q.constructor!==K1)if(BAn&&q!=null&&q instanceof Uint8Array)q=q.length?new K1(new Uint8Array(q),Dq):_.kE();else{if(!N)throw Error();q=void 0}return q};
HCD=function(q,N){if(typeof N!=="number"||N<0||N>=q.length)throw Error();};
qxd=function(q,N,b){var y=N&128?0:-1,J=q.length,E;if(E=!!J)E=q[J-1],E=E!=null&&typeof E==="object"&&E.constructor===Object;var F=J+(E?-1:0);for(N=N&128?1:0;N<F;N++)b(N-y,q[N]);if(E){q=q[J-1];for(var R in q)!isNaN(R)&&b(+R,q[R])}};
C1=function(q){return q&128?f1:void 0};
Il=function(q){q.isGuard_doNotManuallySetPrettyPlease=!0;return q};
b1z=function(){var q=Nxn;return Il(function(N){for(var b in q)if(N===q[b]&&!/^[0-9]+$/.test(b))return!0;return!1})};
_.To=function(q){var N=q;if(y4D(N)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(N))throw Error(String(N));}else if(J4A(N)&&!Number.isSafeInteger(N))throw Error(String(N));return EEA?BigInt(q):q=gEJ(q)?q?"1":"0":y4D(q)?q.trim()||"0":String(q)};
Z1h=function(q,N){if(q.length>N.length)return!1;if(q.length<N.length||q===N)return!0;for(var b=0;b<q.length;b++){var y=q[b],J=N[b];if(y>J)return!1;if(y<J)return!0}};
FMJ=function(q){var N=q>>>0;sx=N;n1=(q-N)/4294967296>>>0};
al=function(q){if(q<0){FMJ(-q);var N=_.Z(RJJ(sx,n1));q=N.next().value;N=N.next().value;sx=q>>>0;n1=N>>>0}else FMJ(q)};
c4n=function(q){var N=dve||(dve=new DataView(new ArrayBuffer(8)));N.setFloat32(0,+q,!0);n1=0;sx=N.getUint32(0,!0)};
u1A=function(q,N){var b=N*4294967296+(q>>>0);return Number.isSafeInteger(b)?b:_.Sj(q,N)};
WR=function(q,N){var b=N&2147483648;b&&(q=~q+1>>>0,N=~N>>>0,q==0&&(N=N+1>>>0));q=u1A(q,N);return typeof q==="number"?b?-q:q:b?"-"+q:q};
zJz=function(q){var N=sx,b=n1,y=b>>31;b=(b<<1|N>>>31)^y;q(N<<1^y,b)};
$vR=function(q,N){var b=-(q&1);q=(q>>>1|N<<31)^b;return WR(q,N>>>1^b)};
_.Sj=function(q,N){N>>>=0;q>>>=0;if(N<=2097151)var b=""+(4294967296*N+q);else X1()?b=""+(BigInt(N)<<BigInt(32)|BigInt(q)):(b=(q>>>24|N<<8)&16777215,N=N>>16&65535,q=(q&16777215)+b*6777216+N*6710656,b+=N*8147497,N*=2,q>=1E7&&(b+=q/1E7>>>0,q%=1E7),b>=1E7&&(N+=b/1E7>>>0,b%=1E7),b=N+tjn(b)+tjn(q));return b};
tjn=function(q){q=String(q);return"0000000".slice(q.length)+q};
_.mvh=function(q,N){N&2147483648?X1()?q=""+(BigInt(N|0)<<BigInt(32)|BigInt(q>>>0)):(N=_.Z(RJJ(q,N)),q=N.next().value,N=N.next().value,q="-"+_.Sj(q,N)):q=_.Sj(q,N);return q};
PR=function(q){if(q.length<16)al(Number(q));else if(X1())q=BigInt(q),sx=Number(q&BigInt(4294967295))>>>0,n1=Number(q>>BigInt(32)&BigInt(4294967295));else{var N=+(q[0]==="-");n1=sx=0;for(var b=q.length,y=N,J=(b-N)%6+N;J<=b;y=J,J+=6)y=Number(q.slice(y,J)),n1*=1E6,sx=sx*1E6+y,sx>=4294967296&&(n1+=Math.trunc(sx/4294967296),n1>>>=0,sx>>>=0);N&&(N=_.Z(RJJ(sx,n1)),q=N.next().value,N=N.next().value,sx=q,n1=N)}};
RJJ=function(q,N){N=~N;q?q=~q+1:N+=1;return[q,N]};
Mv=function(q){return Array.prototype.slice.call(q)};
_.ol=function(q,N){throw Error(N===void 0?"unexpected value "+q+"!":N);};
_.BR=function(q){if(q!=null&&typeof q!=="number")throw Error("L`"+typeof q+"`"+q);return q};
_.HR=function(q){if(q==null||typeof q==="number")return q;if(q==="NaN"||q==="Infinity"||q==="-Infinity")return Number(q)};
r4D=function(q){if(q!=null&&typeof q!=="boolean")throw Error("M`"+_.NN(q)+"`"+q);return q};
_.XRd=function(q){if(q==null||typeof q==="boolean")return q;if(typeof q==="number")return!!q};
_.Ja=function(q){switch(typeof q){case "bigint":return!0;case "number":return yC(q);case "string":return VjC.test(q);default:return!1}};
_.ZW=function(q){if(!yC(q))throw _.bT("enum");return q|0};
_.FA=function(q){return q==null?q:yC(q)?q|0:void 0};
jlC=function(q){if(typeof q!=="number")throw _.bT("int32");if(!yC(q))throw _.bT("int32");return q|0};
_.Rf=function(q){return q==null?q:jlC(q)};
_.dp=function(q){if(q==null)return q;if(typeof q==="string"&&q)q=+q;else if(typeof q!=="number")return;return yC(q)?q|0:void 0};
_.xvn=function(q){if(q==null)return q;if(typeof q==="string"&&q)q=+q;else if(typeof q!=="number")return;return yC(q)?q>>>0:void 0};
QlJ=function(q){var N=0;N=N===void 0?0:N;if(!_.Ja(q))throw _.bT("int64");var b=typeof q;switch(N){case 512:switch(b){case "string":return cd(q);case "bigint":return String(uB(64,q));default:return vEd(q)}case 1024:switch(b){case "string":return Gou(q);case "bigint":return _.To(uB(64,q));default:return YxA(q)}case 0:switch(b){case "string":return cd(q);case "bigint":return _.To(uB(64,q));default:return zc(q)}default:return _.ol(N,"Unknown format requested type for int64")}};
$a=function(q){return q==null?q:QlJ(q)};
O1Z=function(q){var N=q.length;if(q[0]==="-"?N<20||N===20&&q<="-9223372036854775808":N<19||N===19&&q<="9223372036854775807")return q;PR(q);return _.mvh(sx,n1)};
wRu=function(q){if(q[0]==="-")var N=!1;else N=q.length,N=N<20?!0:N===20&&q<="18446744073709551615";if(N)return q;PR(q);return _.Sj(sx,n1)};
zc=function(q){q=ta(q);mK(q)||(al(q),q=WR(sx,n1));return q};
_.i1Z=function(q){q=ta(q);q>=0&&mK(q)||(al(q),q=u1A(sx,n1));return q};
vEd=function(q){q=ta(q);mK(q)?q=String(q):(al(q),q=_.mvh(sx,n1));return q};
_.lqC=function(q){q=ta(q);q>=0&&mK(q)?q=String(q):(al(q),q=_.Sj(sx,n1));return q};
cd=function(q){var N=ta(Number(q));if(mK(N))return String(N);N=q.indexOf(".");N!==-1&&(q=q.substring(0,N));return O1Z(q)};
Gou=function(q){var N=ta(Number(q));if(mK(N))return _.To(N);N=q.indexOf(".");N!==-1&&(q=q.substring(0,N));return X1()?_.To(uB(64,BigInt(q))):_.To(O1Z(q))};
YxA=function(q){return mK(q)?_.To(zc(q)):_.To(vEd(q))};
_.KMJ=function(q){return mK(q)?_.To(_.i1Z(q)):_.To(_.lqC(q))};
_.DvZ=function(q){var N=ta(Number(q));if(mK(N)&&N>=0)return String(N);N=q.indexOf(".");N!==-1&&(q=q.substring(0,N));return wRu(q)};
_.hJC=function(q){var N=ta(Number(q));if(mK(N)&&N>=0)return _.To(N);N=q.indexOf(".");N!==-1&&(q=q.substring(0,N));return X1()?_.To((0,_.VC)(64,BigInt(q))):_.To(wRu(q))};
_.UvD=function(q){if(q==null)return q;if(typeof q==="bigint")return koA(q)?q=Number(q):(q=uB(64,q),q=koA(q)?Number(q):String(q)),q;if(_.Ja(q))return typeof q==="number"?zc(q):cd(q)};
fqJ=function(q,N){N=N===void 0?!1:N;var b=typeof q;if(q==null)return q;if(b==="bigint")return String(uB(64,q));if(_.Ja(q))return b==="string"?cd(q):N?vEd(q):zc(q)};
_.CTJ=function(q){var N=typeof q;if(q==null)return q;if(N==="bigint")return _.To(uB(64,q));if(_.Ja(q))return N==="string"?Gou(q):YxA(q)};
Iqh=function(q){if(q==null)return q;var N=typeof q;if(N==="bigint")return String(uB(64,q));if(_.Ja(q)){if(N==="string")return cd(q);if(N==="number")return zc(q)}};
TxC=function(q){if(q==null)return q;var N=typeof q;if(N==="bigint")return String((0,_.VC)(64,q));if(_.Ja(q)){if(N==="string")return _.DvZ(q);if(N==="number")return _.i1Z(q)}};
_.jX=function(q){if(typeof q!=="string")throw Error();return q};
vd=function(q){if(q!=null&&typeof q!=="string")throw Error();return q};
_.Ya=function(q){return q==null||typeof q==="string"?q:void 0};
aqD=function(q,N,b,y){if(q!=null&&q[wp]===iB)return q;if(!Array.isArray(q))return b?y&2?N[slD]||(N[slD]=nEJ(N)):new N:void 0;b=q[_.gx]|0;y=b|y&32|y&2;y!==b&&cR(q,y);return new N(q)};
nEJ=function(q){q=new q;uT(q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return q};
Sxe=function(q,N,b){q=N?jlC(q):_.dp(q);return q==null?b?0:void 0:q|0};
WMA=function(q){return q};
LMJ=function(q){return q};
PTn=function(q,N,b,y,J,E){q=aqD(q,y,b,E);J&&(q=pRC(q));return q};
MjA=function(q){return[q,this.get(q)]};
eJd=function(){return oEZ||(oEZ=new lB(uT([]),void 0,void 0,void 0,A4n))};
Bxn=function(q){var N=KU(ha);return N?q[N]:void 0};
Nph=function(q,N){var b=b===void 0?!1:b;if(KU(H1J)&&KU(ha)&&void 0===H1J){var y=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=y[ha];if(!J)return;if(J=J.reviveUnknownFields)try{J(y,N,qfd);return}catch(E){EJ(E)}}b&&(q=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(b=KU(ha))&&b in q&&(q=q[b])&&delete q[N])};
yah=function(q,N){var b=KU(ha),y;Ex&&b&&((y=q[b])==null?void 0:y[N])!=null&&PnR(bUn,3)};
EaC=function(q,N){N<100||PnR(JaZ,1)};
dNd=function(q,N,b,y){var J=y!==void 0;y=!!y;var E=KU(ha),F;!J&&Ex&&E&&(F=q[E])&&gaD(F,EaC);E=[];var R=q.length;F=4294967295;var c=!1,z=!!(N&64),m=z?N&128?0:-1:void 0;if(!(N&1)){var r=R&&q[R-1];r!=null&&typeof r==="object"&&r.constructor===Object?(R--,F=R):r=void 0;if(z&&!(N&128)&&!J){c=!0;var X;F=((X=ZUA)!=null?X:WMA)(F-m,m,q,r,void 0)+m}}N=void 0;for(X=0;X<R;X++){var V=q[X];if(V!=null&&(V=b(V,y))!=null)if(z&&X>=F){var G=X-m,w=void 0;((w=N)!=null?w:N={})[G]=V}else E[X]=V}if(r)for(var D in r)R=r[D],
R!=null&&(R=b(R,y))!=null&&(X=+D,V=void 0,z&&!Number.isNaN(X)&&(V=X+m)<F?E[V]=R:(X=void 0,((X=N)!=null?X:N={})[D]=R));N&&(c?E.push(N):E[F]=N);J&&KU(ha)&&(q=Bxn(q))&&q instanceof FKJ&&(E[ha]=Rxh(q));return E};
uAC=function(q){q[0]=caC(q[0]);q[1]=caC(q[1]);return q};
caC=function(q){switch(typeof q){case "number":return Number.isFinite(q)?q:""+q;case "bigint":return koA(q)?Number(q):""+q;case "boolean":return q?1:0;case "object":if(Array.isArray(q)){var N=q[_.gx]|0;return q.length===0&&N&1?void 0:dNd(q,N,caC)}if(q!=null&&q[wp]===iB)return zxd(q);if(q instanceof K1){N=q.JSC$8901_value_;if(N==null)q="";else if(typeof N==="string")q=N;else{if(aRd){for(var b="",y=0,J=N.length-10240;y<J;)b+=String.fromCharCode.apply(null,N.subarray(y,y+=10240));b+=String.fromCharCode.apply(null,
y?N.subarray(y):N);N=btoa(b)}else N=_.Uf(N);q=q.JSC$8901_value_=N}return q}if(q instanceof lB)return q=q.size!==0?$Nh(q,uAC):void 0,q;return}return q};
fU=function(q,N){if(N){ZUA=N==null||N===WMA||N[tXn]!==mNA?WMA:N;try{return zxd(q)}finally{ZUA=void 0}}return zxd(q)};
zxd=function(q){q=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return dNd(q,q[_.gx]|0,caC)};
VXD=function(q){switch(typeof q){case "boolean":return ran||(ran=[0,void 0,!0]);case "number":return q>0?void 0:q===0?XdD||(XdD=[0,void 0]):[-q,void 0];case "string":return[0,q];case "object":return q}};
If=function(q,N){return jfJ(q,N[0],N[1])};
_.Tc=function(q,N,b){return jfJ(q,N,b,2048)};
jfJ=function(q,N,b,y){y=y===void 0?0:y;if(q==null){var J=32;b?(q=[b],J|=128):q=[];N&&(J=J&-16760833|(N&1023)<<14)}else{if(!Array.isArray(q))throw Error("O");J=q[_.gx]|0;if(xNC&&1&J)throw Error("P");2048&J&&!(2&J)&&vaD();if(J&256)throw Error("Q");if(J&64)return(J|y)!==J&&cR(q,J|y),q;if(b&&(J|=128,b!==q[0]))throw Error("R");a:{b=q;J|=64;var E=b.length;if(E){var F=E-1,R=b[F];if(R!=null&&typeof R==="object"&&R.constructor===Object){N=J&128?0:-1;F-=N;if(F>=1024)throw Error("T");for(var c in R)E=+c,E<F&&
(b[E+N]=R[c],delete R[c]);J=J&-16760833|(F&1023)<<14;break a}}if(N){c=Math.max(N,E-(J&128?0:-1));if(c>1024)throw Error("U");J=J&-16760833|(c&1023)<<14}}}cR(q,J|64|y);return q};
vaD=function(){if(xNC)throw Error("S");PnR(GcJ,5)};
OUd=function(q,N){if(typeof q!=="object")return q;if(Array.isArray(q)){var b=q[_.gx]|0;return q.length===0&&b&1?void 0:YfZ(q,b,N)}if(q!=null&&q[wp]===iB)return QfR(q);if(q instanceof lB){N=q.arrayState;if(N&2)return q;if(!q.size)return;b=uT($Nh(q));if(q.valueCtor)for(q=0;q<b.length;q++){var y=b[q],J=y[1];J==null||typeof J!=="object"?J=void 0:J!=null&&J[wp]===iB?J=QfR(J):Array.isArray(J)?J=YfZ(J,J[_.gx]|0,!!(N&32)):J=void 0;y[1]=J}return b}if(q instanceof K1)return q};
YfZ=function(q,N,b){if(N&2)return q;!b||4096&N||16&N?q=nU(q,N,!1,b&&!(N&16)):(dx(q,34),N&4&&Object.freeze(q));return q};
wdR=function(q,N,b){q=new q.constructor(N);b&&(q.copyOnWrite=QF);q.noLegacyNull=QF;return q};
QfR=function(q){var N=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=N[_.gx]|0;return iT(q,b)?q:iUC(q,N,b)?wdR(q,N):nU(N,b)};
nU=function(q,N,b,y){y!=null||(y=!!(34&N));q=dNd(q,N,OUd,y);y=32;b&&(y|=2);N=N&16769217|y;cR(q,N);return q};
pRC=function(q){var N=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=N[_.gx]|0;return iT(q,b)?iUC(q,N,b)?wdR(q,N,!0):new q.constructor(nU(N,b,!1)):q};
af=function(q){if(q.copyOnWrite!==QF)return!1;var N=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;N=nU(N,N[_.gx]|0);dx(N,2048);q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=N;q.copyOnWrite=void 0;q.noLegacyNull=void 0;return!0};
Wd=function(q){if(!af(q)&&iT(q,q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.gx]|0))throw Error();};
pU=function(q,N){N===void 0&&(N=q[_.gx]|0);N&32&&!(N&4096)&&cR(q,N|4096)};
iUC=function(q,N,b){return b&2?!0:b&32&&!(b&4096)?(cR(N,b|2),q.copyOnWrite=QF,!0):!1};
Pd=function(q,N,b,y,J){var E=b+(J?0:-1),F=q.length-1;if(F>=1+(J?0:-1)&&E>=F){var R=q[F];if(R!=null&&typeof R==="object"&&R.constructor===Object)return R[b]=y,N}if(E<=F)return q[E]=y,N;if(y!==void 0){var c;F=((c=N)!=null?c:N=q[_.gx]|0)>>14&1023||536870912;b>=F?y!=null&&(E={},q[F+(J?0:-1)]=(E[b]=y,E)):q[E]=y}return N};
_.eX=function(q,N,b,y,J){var E=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=E[_.gx]|0;y=iT(q,F)?1:y;J=!!J||y===3;y===2&&af(q)&&(E=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=E[_.gx]|0);q=lWC(E,N);var R=q===of?7:q[_.gx]|0,c=KKC(R,F);var z=4&c?!1:!0;if(z){4&c&&(q=Mv(q),R=0,c=Aa(c,F),F=Pd(E,F,N,q));for(var m=0,r=0;m<q.length;m++){var X=b(q[m]);X!=null&&(q[r++]=X)}r<m&&(q.length=r);b=(c|4)&-513;c=b&=-1025;c&=-4097}c!==R&&(cR(q,c),2&c&&Object.freeze(q));return q=DNR(q,c,E,
F,N,y,z,J)};
DNR=function(q,N,b,y,J,E,F,R){var c=N;E===1||(E!==4?0:2&N||!(16&N)&&32&y)?Bd(N)||(N|=!q.length||F&&!(4096&N)||32&y&&!(4096&N||16&N)?2:256,N!==c&&cR(q,N),Object.freeze(q)):(E===2&&Bd(N)&&(q=Mv(q),c=0,N=Aa(N,y),y=Pd(b,y,J,q)),Bd(N)||(R||(N|=16),N!==c&&cR(q,N)));2&N||!(4096&N||16&N)||pU(b,y);return q};
lWC=function(q,N,b){q=Hd(q,N,b);return Array.isArray(q)?q:of};
KKC=function(q,N){2&N&&(q|=2);return q|1};
Bd=function(q){return!!(2&q)&&!!(4&q)||!!(256&q)};
hxJ=function(q){return _.Ux(q,!0)};
kcd=function(q){q=Mv(q);for(var N=0;N<q.length;N++){var b=q[N]=Mv(q[N]);Array.isArray(b[1])&&(b[1]=uT(b[1]))}return zo(q)};
UNd=function(q,N){var b=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=b[_.gx]|0;a:{var J=y;y=iT(q,y);!y&&af(q)&&(b=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=b[_.gx]|0);var E=Hd(b,N);q=!1;if(E==null){if(y){N=eJd();break a}E=[]}else if(E.constructor===lB)if(E.arrayState&2&&!y)E=$Nh(E);else{N=E;break a}else Array.isArray(E)?q=!!((E[_.gx]|0)&2):E=[];if(y){if(!E.length){N=eJd();break a}q||(q=!0,uT(E))}else q&&(q=!1,zo(E),E=kcd(E));!q&&J&32&&euD(E);y=new lB(E,void 0,Sxe,Sxe);
J=Pd(b,J,N,y);q||pU(b,J);N=y}return N};
_.qB=function(q,N,b,y){Wd(q);var J=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=J[_.gx]|0;if(b==null)return Pd(J,E,N),q;var F=b===of?7:b[_.gx]|0,R=F,c=Bd(F),z=c||Object.isFrozen(b);c||(F=0);z||(b=Mv(b),R=0,F=Aa(F,E),z=!1);F|=5;var m;c=(m=AZA(F))!=null?m:0;for(m=0;m<b.length;m++){var r=b[m],X=y(r,c);Object.is(r,X)||(z&&(b=Mv(b),R=0,F=Aa(F,E),z=!1),b[m]=X)}F!==R&&(z&&(b=Mv(b),F=Aa(F,E)),cR(b,F));Pd(J,E,N,b);return q};
_.NB=function(q,N,b,y,J){Wd(q);var E=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Pd(E,E[_.gx]|0,N,(y==="0"?Number(b)===0:b===y)?void 0:b,J);return q};
_.bX=function(q,N,b){if(N&2)throw Error();var y=C1(N),J=lWC(q,b,y),E=J===of?7:J[_.gx]|0,F=KKC(E,N);if(2&F||Bd(F)||16&F)F===E||Bd(F)||cR(J,F),J=Mv(J),E=0,F=Aa(F,N),Pd(q,N,b,J,y);F&=-13;F!==E&&cR(J,F);return J};
fWu=function(q){if(Ex){var N;return(N=q[ye])!=null?N:q[ye]=new Map}if(ye in q)return q[ye];N=new Map;Object.defineProperty(q,ye,{value:N});return N};
IWR=function(q,N,b,y,J){var E=fWu(q),F=CBd(E,q,N,b,J);F!==y&&(F&&(N=Pd(q,N,F,void 0,J)),E.set(b,y));return N};
CBd=function(q,N,b,y,J){var E=q.get(y);if(E!=null)return E;for(var F=E=0;F<y.length;F++){var R=y[F];Hd(N,R,J)!=null&&(E!==0&&(b=Pd(N,b,E,void 0,J)),E=R)}q.set(y,E);return E};
Tpz=function(q,N,b,y,J){var E=!1;y=Hd(q,y,J,function(F){var R=aqD(F,b,!1,N);E=R!==F&&R!=null;return R});
if(y!=null)return E&&!iT(y)&&pU(q,N),y};
sfD=function(q,N,b,y,J,E,F,R){var c=iT(q,b);E=c?1:E;F=!!F||E===3;c=R&&!c;(E===2||c)&&af(q)&&(N=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=N[_.gx]|0);q=lWC(N,J);var z=q===of?7:q[_.gx]|0,m=KKC(z,b);if(R=!(4&m)){var r=q,X=b,V=!!(2&m);V&&(X|=2);for(var G=!V,w=!0,D=0,k=0;D<r.length;D++){var f=aqD(r[D],y,!1,X);if(f instanceof y){if(!V){var L=iT(f);G&&(G=!L);w&&(w=L)}r[k++]=f}}k<D&&(r.length=k);m|=4;m=w?m&-4097:m|4096;m=G?m|8:m&-9}m!==z&&(cR(q,m),2&m&&Object.freeze(q));if(c&&!(8&m||!q.length&&
(E===1||(E!==4?0:2&m||!(16&m)&&32&b)))){Bd(m)&&(q=Mv(q),m=Aa(m,b),b=Pd(N,b,J,q));y=q;c=m;for(z=0;z<y.length;z++)r=y[z],m=pRC(r),r!==m&&(y[z]=m);c|=8;m=c=y.length?c|4096:c&-4097;cR(q,m)}return q=DNR(q,m,N,b,J,E,R,F)};
nah=function(q){q==null&&(q=void 0);return q};
Aa=function(q,N){return q=(2&N?q|2:q&-3)&-273};
_.aWA=function(q,N,b,y,J){Wd(q);N=_.eX(q,N,J,2,!0);var E;J=(E=AZA(N===of?7:N[_.gx]|0))!=null?E:0;N.push(b(y,J));return q};
Sfh=function(q,N,b,y,J,E,F){Wd(q);var R=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;q=sfD(q,R,R[_.gx]|0,b,N,2,!0);if(E&&F)J!=null||(J=q.length-1),HCD(q,J),q.splice(J,E),q.length||(q[_.gx]&=-4097);else{if(E){if(typeof J!=="number"||J<0||J>q.length)throw Error();}else y=y!=null?y:new b;J!=void 0?q.splice(J,E,y):q.push(y);J=b=q===of?7:q[_.gx]|0;(y=iT(y))?(b&=-9,q.length===1&&(b&=-4097)):b|=4096;b!==J&&cR(q,b);y||pU(R)}};
LKn=function(q,N){if(typeof q==="string")return new Eh(WdZ(q),N);if(Array.isArray(q))return new Eh(new Uint8Array(q),N);if(q.constructor===Uint8Array)return new Eh(q,!1);if(q.constructor===ArrayBuffer)return q=new Uint8Array(q),new Eh(q,!1);if(q.constructor===K1)return N=WKJ(q)||new Uint8Array(0),new Eh(N,!0,q);if(q instanceof Uint8Array)return q=q.constructor===Uint8Array?q:new Uint8Array(q.buffer,q.byteOffset,q.byteLength),new Eh(q,!1);throw Error();};
PBd=function(q){switch(typeof q){case "string":pdJ(q)}};
oaC=function(q){switch(typeof q){case "string":MXd(q)}};
gs=function(){var q=function(){throw Error();};
Object.setPrototypeOf(q,q.prototype);return q};
exn=function(q,N){var b=b===void 0?AaD:b;return new Zl(q,N,b)};
qhd=function(q,N,b,y,J){BpC(q,b,HUZ(N,y),J)};
Fy=function(q,N,b,y){var J=y[q];if(J)return J;J={};J.binaryFields=y;J.messageMetadata=VXD(y[0]);var E=y[1],F=1;E&&E.constructor===Object&&(J.extensions=E,E=y[++F],typeof E==="function"&&(J.isMessageSet=!0,Nsz!=null||(Nsz=E),bcd!=null||(bcd=y[F+1]),E=y[F+=2]));for(var R={};E&&yBh(E);){for(var c=0;c<E.length;c++)R[E[c]]=E;E=y[++F]}for(c=1;E!==void 0;){typeof E==="number"&&(c+=E,E=y[++F]);var z=void 0;if(E instanceof Zl)var m=E;else m=JBC,F--;E=void 0;if((E=m)==null?0:E.$$isMsg){E=y[++F];z=y;var r=F;
typeof E==="function"&&(E=E(),z[r]=E);z=E}E=y[++F];r=c+1;typeof E==="number"&&E<0&&(r-=E,E=y[++F]);for(;c<r;c++){var X=R[c];z?b(J,c,m,z,X):N(J,c,m,X)}}return y[q]=J};
yBh=function(q){return Array.isArray(q)&&!!q.length&&typeof q[0]==="number"&&q[0]>0};
gBA=function(q){return Array.isArray(q)?q[0]instanceof Zl?q:[EBJ,q]:[q,void 0]};
HUZ=function(q,N){if(q instanceof _.Rx)return q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(q))return If(q,N)};
ZcA=function(q,N,b,y){var J=b.$$binaryReaderFn;q[N]=y?function(E,F,R){return J(E,F,R,y)}:J};
R_u=function(q,N,b,y,J){var E=b.$$binaryReaderFn,F,R;q[N]=function(c,z,m){return E(c,z,m,R||(R=Fy(F7e,ZcA,R_u,y).messageMetadata),F||(F=dBd(y)),J)}};
dBd=function(q){var N=q[cBe];if(N!=null)return N;var b=Fy(F7e,ZcA,R_u,q);N=b.isMessageSet?function(y,J){return Nsz(y,J,b)}:function(y,J){for(;uye(J)&&J.nextWireType_!=4;){var E=J.nextField_,F=b[E];
if(F==null){var R=b.extensions;R&&(R=R[E])&&(R=z_C(R),R!=null&&(F=b[E]=R))}if(F==null||!F(J,y,E)){R=J;F=R.fieldCursor_;$BZ(R);if(R.discardUnknownFields)var c=void 0;else{var z=R.decoder_.cursor_-F;R.decoder_.cursor_=F;c=tvZ(R.decoder_,z)}z=R=F=void 0;var m=y;c&&((F=(R=(z=m[ha])!=null?z:m[ha]=new FKJ)[E])!=null?F:R[E]=[]).push(c)}}if(y=Bxn(y))y.reviveUnknownFields=b.binaryFields[mBz];return!0};
q[cBe]=N;q[mBz]=rBA.bind(q);return N};
rBA=function(q,N,b,y){var J=this[F7e],E=this[cBe],F=If(void 0,J.messageMetadata),R=Bxn(q);if(R){var c=!1,z=J.extensions;if(z){J=function(G,w,D){if(D.length!==0)if(z[w])for(G=_.Z(D),w=G.next();!w.done;w=G.next()){w=XZn(w.value);try{c=!0,E(F,w)}finally{w.free()}}else y==null||y(q,w,D)};
if(N==null)gaD(R,J);else if(R!=null){var m=R[N];m&&J(R,N,m)}if(c){var r=q[_.gx]|0;if(r&2&&r&2048&&(b==null||!b.reviveIntoImmutable))throw Error();var X=C1(r),V=function(G,w){if(Hd(q,G,X)!=null)switch(b==null?void 0:b.resolutionBehavior){case 1:return;default:throw Error();}w!=null&&(r=Pd(q,r,G,w,X));delete R[G]};
N==null?qxd(F,F[_.gx]|0,function(G,w){V(G,w)}):V(N,Hd(F,N,X))}}}};
z_C=function(q){q=gBA(q);var N=q[0].$$binaryReaderFn;if(q=q[1]){var b=dBd(q),y=Fy(F7e,ZcA,R_u,q).messageMetadata;return function(J,E,F){return N(J,E,F,y,b)}}return N};
VvC=function(q,N,b){q[N]=b.$$binaryWriterFn};
xBd=function(q,N,b,y){var J,E,F=b.$$binaryWriterFn;q[N]=function(R,c,z){return F(R,c,z,E||(E=Fy(jxd,VvC,xBd,y).messageMetadata),J||(J=vBD(y)))}};
vBD=function(q){var N=q[GeD];if(!N){var b=Fy(jxd,VvC,xBd,q);N=function(y,J){return Yhe(y,J,b)};
q[GeD]=N}return N};
Yhe=function(q,N,b){qxd(q,q[_.gx]|0,function(y,J){if(J!=null){var E=Qxu(b,y);E?E(N,J,y):y<500||PnR(Ocz,3)}});
(q=Bxn(q))&&gaD(q,function(y,J,E){ds(N,N.encoder_.end());for(y=0;y<E.length;y++)ds(N,WKJ(E[y])||new Uint8Array(0))})};
Qxu=function(q,N){var b=q[N];if(b)return b;if(b=q.extensions)if(b=b[N]){b=gBA(b);var y=b[0].$$binaryWriterFn;if(b=b[1]){var J=vBD(b),E=Fy(jxd,VvC,xBd,b).messageMetadata;b=q.isMessageSet?bcd(E,J):function(F,R,c){return y(F,R,c,E,J)}}else b=y;
return q[N]=b}};
_.wZJ=function(q,N,b){if(Array.isArray(N)){var y=N[_.gx]|0;if(y&4)return N;for(var J=0,E=0;J<N.length;J++){var F=q(N[J]);F!=null&&(N[E++]=F)}E<J&&(N.length=E);q=y|1;b&&(q=(q|4)&-1537);q!==y&&cR(N,q);b&&q&2&&Object.freeze(N);return N}};
_.uX=function(q,N,b){return new Zl(q,N,b)};
_.icA=function(q,N,b){return new Zl(q,N,b)};
_.ze=function(q,N,b){Pd(q,q[_.gx]|0,N,b,C1(q[_.gx]|0))};
llA=function(q,N,b){N=_.HR(N);N!=null&&(_.$B(q,b,1),q=q.encoder_,b=dve||(dve=new DataView(new ArrayBuffer(8))),b.setFloat64(0,+N,!0),sx=b.getUint32(0,!0),n1=b.getUint32(4,!0),_.m7(q,sx),_.m7(q,n1))};
K7e=function(q,N,b){N=_.HR(N);N!=null&&(_.$B(q,b,5),q=q.encoder_,c4n(N),_.m7(q,sx))};
_.Ve=function(q,N,b){N=Iqh(N);if(N!=null&&(PBd(N),N!=null))switch(_.$B(q,b,0),typeof N){case "number":q=q.encoder_;al(N);Xy(q,sx,n1);break;case "bigint":b=BigInt.asUintN(64,N);b=new DBe(Number(b&BigInt(4294967295)),Number(b>>BigInt(32)));Xy(q.encoder_,b.JSC$8944_lo,b.JSC$8944_hi);break;default:b=pdJ(N),Xy(q.encoder_,b.JSC$8944_lo,b.JSC$8944_hi)}};
ken=function(q,N,b){N=TxC(N);if(N!=null&&(oaC(N),N!=null))switch(_.$B(q,b,0),typeof N){case "number":q=q.encoder_;al(N);Xy(q,sx,n1);break;case "bigint":b=h_n(N);Xy(q.encoder_,b.JSC$8942_lo,b.JSC$8942_hi);break;default:b=MXd(N),Xy(q.encoder_,b.JSC$8942_lo,b.JSC$8942_hi)}};
flh=function(q,N,b){N=_.dp(N);N!=null&&N!=null&&(_.$B(q,b,0),_.UBz(q.encoder_,N))};
_.Ilh=function(q,N,b){CXd(q,b,TxC(N))};
TsC=function(q,N,b){N=_.XRd(N);N!=null&&(_.$B(q,b,0),q.encoder_.JSC$8946_buffer_.push(N?1:0))};
nBJ=function(q,N,b){N=_.Ya(N);N!=null&&sxA(q,b,udA(N))};
aln=function(q,N,b,y,J){BpC(q,b,HUZ(N,y),J)};
_.Shn=function(q,N,b){N=N==null||typeof N=="string"||N instanceof K1?N:void 0;N!=null&&sxA(q,b,LKn(N,!0).buffer)};
W7n=function(q,N,b){N=_.xvn(N);N!=null&&N!=null&&(_.$B(q,b,0),jv(q.encoder_,N))};
_.L7Z=function(q,N,b){N=_.dp(N);N!=null&&(N=parseInt(N,10),_.$B(q,b,0),_.UBz(q.encoder_,N))};
_.xB=function(q,N){return function(b,y){var J={treatNewDataAsImmutable:!0};y&&Object.assign(J,y);b=XZn(b,void 0,void 0,J);try{var E=new q,F=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;dBd(N)(F,b);var R=E}finally{b.free()}return R}};
_.vZ=function(q){return function(N){return pZJ(N,q)}};
PXJ=function(q){return function(){return pZJ(this,q)}};
_.Mvd=function(q){return Il(function(N){return N instanceof q&&!iT(N)})};
_.Qe=function(q){return function(N){return oBA(q,N)}};
HcC=function(q,N){return ABz({child:q,origin:N||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:e_J,getPayloadCase:function(b){return b.getPayloadCase()},
createInitMessage:function(b){var y=new Oh,J=new BsC;b=_.ws(J,1,b);return _.iX(y,5,lX,b)}})};
Kc=function(q){return{valueOf:q}.valueOf()};
N0d=function(){var q=null;if(!q5R)return q;try{var N=function(b){return b};
q=q5R.createPolicy("goog#html",{createHTML:N,createScript:N,createScriptURL:N})}catch(b){}return q};
yjh=function(){b7e===void 0&&(b7e=N0d());return b7e};
_.hB=function(q){var N=yjh();q=N?N.createScriptURL(q):q;return new Dl(q)};
_.kB=function(q){if(q instanceof Dl)return q.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.fc=function(q){return Object.isFrozen(q)&&Object.isFrozen(q.raw)};
JjD=function(q){return q.toString().indexOf("`")===-1};
Ix=function(q){return new _.Cc(EiA,q)};
Te=function(q){return q instanceof _.Cc};
_.sh=function(q){if(Te(q))return q.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
nc=function(q){return new giC(function(N){return N.substr(0,q.length+1).toLowerCase()===q+":"})};
_.ax=function(q,N){N=N===void 0?Z7n:N;if(Te(q))return q;for(var b=0;b<N.length;++b){var y=N[b];if(y instanceof giC&&y.isValid(q))return Ix(q)}};
_.pc=function(q,N){N=N===void 0?Z7n:N;return _.ax(q,N)||Sv};
_.PZ=function(q){var N=window;if(typeof MediaSource!=="undefined"&&q instanceof MediaSource||typeof N.ManagedMediaSource!=="undefined"&&q instanceof N.ManagedMediaSource)return Ix(URL.createObjectURL(q));N=q.type;N.toLowerCase()==="application/octet-stream"?N=!0:(N=N.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),N=(N==null?void 0:N.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(N[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(N[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(N[1])||/^font\/[\w-]+$/i.test(N[1])));if(!N)throw Error("Z");return Ix(URL.createObjectURL(q))};
_.Ftd=function(q){for(var N=_.MB.apply(1,arguments),b=[q[0]],y=0;y<N.length;y++)b.push(String(N[y])),b.push(q[y+1]);return Ix(b.join(""))};
_.dnd=function(q){if(!RXA){a:{var N=document.createElement("a");try{N.href=q}catch(b){q=void 0;break a}q=N.protocol;q=q===":"||q===""?"https:":q}return q}try{N=new URL(q)}catch(b){return"https:"}return N.protocol};
_.ox=function(q){q instanceof _.Cc?q=_.sh(q):q=cjn.test(q)?q:void 0;return q};
AB=function(q,N){N=_.ox(N);N!==void 0&&(q.href=N)};
BZ=function(q){var N=yjh();q=N?N.createHTML(q):q;return new ev(q)};
qn=function(q){if(q instanceof ev)return q.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.Nn=function(q,N){q.src=_.kB(N).toString()};
uwu=function(q,N){q.setAttribute("sandbox","");for(var b=0;b<N.length;b++)q.sandbox.supports&&!q.sandbox.supports(N[b])||q.sandbox.add(N[b])};
_.b$=function(q,N,b){q.removeAttribute("srcdoc");switch(N){case 0:if(b instanceof Dl)throw new zXd("TrustedResourceUrl",0);uwu(q,[]);N=_.ox(b);N!==void 0&&(q.src=N);break;case 1:if(!(b instanceof Dl))throw new zXd(typeof b,1);uwu(q,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Nn(q,b);break;case 2:if(b instanceof Dl)throw new zXd("TrustedResourceUrl",2);uwu(q,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
N=_.ox(b);N!==void 0&&(q.src=N);break;default:_.ol(N)}};
_.yz=function(q,N,b,y){N=_.ox(N);return N!==void 0?q.open(N,b,y):null};
_.Jj=function(q){q=q===void 0?document:q;var N,b;q=(b=(N=q).querySelector)==null?void 0:b.call(N,"script[nonce]");return q==null?"":q.nonce||q.getAttribute("nonce")||""};
_.g0=function(q){var N=yjh();q=N?N.createScript(q):q;return new _.E5(q)};
Zb=function(q){if(q instanceof _.E5)return q.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
$nz=function(q){var N=_.Jj(q.ownerDocument);N&&q.setAttribute("nonce",N)};
_.Fw=function(q,N){q.textContent=Zb(N);$nz(q)};
_.R9=function(q,N){q.src=_.kB(N);$nz(q)};
_.d0=function(q,N){if(q.nodeType===1&&/^(script|style)$/i.test(q.tagName))throw Error("Z");q.innerHTML=qn(N)};
_.cx=function(q,N,b,y){if(q.length===0)throw Error("Z");q=q.map(function(E){if(E instanceof tFn)E=E.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return E});
var J=b.toLowerCase();if(q.every(function(E){return J.indexOf(E)!==0}))throw Error("aa`"+b);
N.setAttribute(b,y)};
_.u$=function(q,N,b){if(N instanceof Dl)q.href=_.kB(N).toString(),q.rel=b;else{if(mnd.indexOf(b)===-1)throw Error("ba`"+b);N=_.ox(N);N!==void 0&&(q.href=N,q.rel=b)}};
rjh=function(q){if(q instanceof zw)return q.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.XxC=function(q,N){N=_.ox(N);N!==void 0&&(q.href=N)};
VFd=function(q){return new Worker(_.kB(q),void 0)};
j9J=function(q){return _.hB(q)};
xnh=function(q,N){q&&(N=q.indexOf(N),0<=N&&q.splice(N,1))};
$i=function(q){return typeof q==="function"};
viA=function(q){return q instanceof tj||q&&"closed"in q&&$i(q.remove)&&$i(q.add)&&$i(q.unsubscribe)};
mt=function(){};
r0=function(q){Gwn(function(){throw q;})};
Xw=function(q){return q};
Vz=function(){return Y5A(_.MB.apply(0,arguments))};
Y5A=function(q){return q.length===0?Xw:q.length===1?q[0]:function(N){return q.reduce(function(b,y){return y(b)},N)}};
Q9z=function(q){var N;return(N=q!=null?q:void 0)!=null?N:Promise};
O7R=function(q,N){return new jF(function(b){var y=0;return N.schedule(function(){y===q.length?b.complete():(b.next(q[y++]),b.closed||this.schedule())})})};
wxA=function(q,N){if(!q)throw Error("ca");return new jF(function(b){var y=new tj;y.add(N.schedule(function(){var J=q[Symbol.asyncIterator]();y.add(N.schedule(function(){var E=this;J.next().then(function(F){F.done?b.complete():(b.next(F.value),E.schedule())})}))}));
return y})};
i7J=function(q,N,b){N=N.schedule(function(){try{b.call(this)}catch(y){q.error(y)}},0);
q.add(N)};
Ktn=function(q,N){return new jF(function(b){var y;b.add(N.schedule(function(){y=q[lbd]();i7J(b,N,function(){var J=y.next(),E=J.value;J.done?b.complete():(b.next(E),this.schedule())})}));
return function(){var J;return $i((J=y)==null?void 0:J.return)&&y.return()}})};
Dnu=function(q,N){return new jF(function(b){var y=new tj;y.add(N.schedule(function(){var J=q[xi]();y.add(J.subscribe({next:function(E){y.add(N.schedule(function(){return b.next(E)}))},
error:function(E){y.add(N.schedule(function(){return b.error(E)}))},
complete:function(){y.add(N.schedule(function(){return b.complete()}))}}))}));
return y})};
hXJ=function(q,N){return new jF(function(b){return N.schedule(function(){return q.then(function(y){b.add(N.schedule(function(){b.next(y);b.add(N.schedule(function(){return b.complete()}))}))},function(y){b.add(N.schedule(function(){return b.error(y)}))})})})};
kwJ=function(q){return new TypeError("da`"+(q!==null&&typeof q==="object"?"an invalid object":"'"+q+"'"))};
fbJ=function(q,N){if(q!=null){if($i(q[xi]))return Dnu(q,N);if(Und(q))return O7R(q,N);if($i(q==null?void 0:q.then))return hXJ(q,N);if(Symbol.asyncIterator&&$i(q==null?void 0:q[Symbol.asyncIterator]))return wxA(q,N);if($i(q==null?void 0:q[lbd]))return Ktn(q,N)}throw kwJ(q);};
Gw=function(q,N){return N?fbJ(q,N):vx(q)};
vx=function(q){if(q instanceof jF)return q;if(q!=null){if($i(q[xi]))return C$J(q);if(Und(q))return IbC(q);if($i(q==null?void 0:q.then))return T0n(q);if(Symbol.asyncIterator&&$i(q==null?void 0:q[Symbol.asyncIterator]))return s9J(q);if($i(q==null?void 0:q[lbd]))return niC(q)}throw kwJ(q);};
C$J=function(q){return new jF(function(N){var b=q[xi]();if($i(b.subscribe))return b.subscribe(N);throw new TypeError("ea");})};
IbC=function(q){return new jF(function(N){for(var b=0;b<q.length&&!N.closed;b++)N.next(q[b]);N.complete()})};
T0n=function(q){return new jF(function(N){q.then(function(b){N.closed||(N.next(b),N.complete())},function(b){return N.error(b)}).then(null,r0)})};
niC=function(q){return new jF(function(N){for(var b=q[lbd]();!N.closed;){var y=b.next(),J=y.value;y.done?N.complete():N.next(J)}return function(){return $i(b==null?void 0:b.return)&&b.return()}})};
s9J=function(q){return new jF(function(N){abd(q,N).catch(function(b){return N.error(b)})})};
abd=function(q,N){var b,y,J,E,F,R;return _.d(function(c){switch(c.nextAddress){case 1:_.Yi(c,2,3),E=_.Qz(q);case 5:return c.yield(E.next(),8);case 8:y=c.yieldResult;if(y.done){c.jumpTo(3);break}F=y.value;N.next(F);c.jumpTo(5);break;case 3:_.w0(c);_.i$(c,9);if(!y||y.done||!(J=E.return)){c.jumpTo(9);break}return c.yield(J.call(E),9);case 9:_.w0(c,0,0,1);if(b)throw b.error;_.l$(c,10,1);break;case 10:_.l$(c,4);break;case 2:R=_.K7(c);b={error:R};c.jumpTo(3);break;case 4:N.complete(),_.hj(c)}})};
S5D=function(q,N){return N?O7R(q,N):IbC(q)};
WtA=function(q){return $i(q[q.length-1])?q.pop():void 0};
ki=function(q){var N=q[q.length-1];return N&&$i(N.schedule)?q.pop():void 0};
U5=function(){var q=_.MB.apply(0,arguments),N=ki(q);return N?O7R(q,N):S5D(q)};
f7=function(q){var N=$i(q)?q:function(){return q};
return new jF(function(b){return b.error(N())})};
C7=function(q){return function(N){if($i(N==null?void 0:N.lift))return N.lift(function(b){try{return q(b,this)}catch(y){this.error(y)}});
throw new TypeError("fa");}};
Tw=function(){return C7(function(q,N){var b=null;q._refCount++;var y=new I9(N,void 0,void 0,void 0,function(){if(!q||q._refCount<=0||0<--q._refCount)b=null;else{var J=q._connection,E=b;b=null;!J||E&&J!==E||J.unsubscribe();N.unsubscribe()}});
q.subscribe(y);y.closed||(b=q.connect())})};
pxe=function(){var q=LtJ;var N=N===void 0?0:N;return C7(function(b,y){y.add(q.schedule(function(){return b.subscribe(y)},N))})};
n7=function(q){return C7(function(N,b){var y=0;N.subscribe(new I9(b,function(J){b.next(q.call(void 0,J,y++))}))})};
MFn=function(q){return n7(function(N){return P$J(N)?q.apply(null,_.a9(N)):q(N)})};
H7h=function(q){if(q.length===1){var N=q[0];if(oin(N))return{args:N,keys:null};if(N&&typeof N==="object"&&Aju(N)===eXA)return q=B0h(N),{args:q.map(function(b){return N[b]}),
keys:q}}return{args:q,keys:null}};
SF=function(){var q=_.MB.apply(0,arguments),N=ki(q),b=WtA(q);q=H7h(q);var y=q.args,J=q.keys;if(y.length===0)return Gw([],N);N=new jF(qpJ(y,N,J?function(E){for(var F={},R=0;R<E.length;R++)F[J[R]]=E[R];return F}:Xw));
return b?N.pipe(MFn(b)):N};
qpJ=function(q,N,b){b=b===void 0?Xw:b;return function(y){NzA(N,function(){for(var J=q.length,E=Array(J),F=J,R=q.map(function(){return!1}),c=!0,z={i$jscomp$217:0};z.i$jscomp$217<J;z={i$jscomp$217:z.i$jscomp$217},z.i$jscomp$217++)NzA(N,function(m){return function(){Gw(q[m.i$jscomp$217],N).subscribe(new L7(y,function(r){E[m.i$jscomp$217]=r;
c&&(R[m.i$jscomp$217]=!0,c=!R.every(Xw));c||y.next(b(E.slice()))},function(){return--F===0}))}}(z),y)},y)}};
NzA=function(q,N,b){q?b.add(q.schedule(N)):N()};
bMA=function(q,N,b,y){var J=[],E=0,F=0,R=!1,c=function(z){E++;vx(b(z,F++)).subscribe(new I9(N,function(m){N.next(m)},void 0,function(){E--;
for(var m={};J.length&&E<y;m={bufferedValue:void 0})m.bufferedValue=J.shift(),c(m.bufferedValue);!R||J.length||E||N.complete()}))};
q.subscribe(new I9(N,function(z){return E<y?c(z):J.push(z)},void 0,function(){R=!0;
!R||J.length||E||N.complete()}));
return function(){J=null}};
p7=function(q,N){var b=b===void 0?Infinity:b;if($i(N))return p7(function(y,J){return n7(function(E,F){return N(y,E,J,F)})(vx(q(y,J)))},b);
typeof N==="number"&&(b=N);return C7(function(y,J){return bMA(y,J,q,b)})};
ybJ=function(q){q=q===void 0?Infinity:q;return p7(Xw,q)};
Jbn=function(){var q=_.MB.apply(0,arguments);return ybJ(1)(S5D(q,ki(q)))};
E7J=function(q){return new jF(function(N){vx(q()).subscribe(N)})};
Mn=function(q,N,b){if($i(b)){var y=b;b=void 0}if(y)return Mn(q,N,b).pipe(MFn(y));y=_.Z($i(q.addEventListener)&&$i(q.removeEventListener)?g7n.map(function(F){return function(R){return q[F](N,R,b)}}):$i(q.addListener)&&$i(q.removeListener)?ZMh.map(Fsd(q,N)):$i(q.on)&&$i(q.off)?Rtd.map(Fsd(q,N)):[]);
var J=y.next().value,E=y.next().value;return!J&&Und(q)?p7(function(F){return Mn(F,N,b)})(S5D(q)):new jF(function(F){if(!J)throw new TypeError("ga");
var R=function(){var c=_.MB.apply(0,arguments);return F.next(1<c.length?c:c[0])};
J(R);return function(){return E(R)}})};
Fsd=function(q,N){return function(b){return function(y){return q[b](N,y)}}};
Aj=function(){var q=_.MB.apply(0,arguments),N=ki(q);var b=typeof q[q.length-1]==="number"?q.pop():Infinity;return q.length?q.length===1?vx(q[0]):ybJ(b)(S5D(q,N)):o9};
cbA=function(q){return q.length===1&&dYu(q[0])?q[0]:q};
ueJ=function(){var q=cbA(_.MB.apply(0,arguments));return C7(function(N,b){var y=[N].concat(_.a9(q)),J=function(){if(!b.closed)if(y.length>0){try{var E=vx(y.shift())}catch(R){J();return}var F=new I9(b,void 0,mt,mt);b.add(E.subscribe(F));F.add(J)}else b.complete()};
J()})};
eF=function(q){return C7(function(N,b){var y=0;N.subscribe(new I9(b,function(J){return q.call(void 0,J,y++)&&b.next(J)}))})};
$Yh=function(){var q=_.MB.apply(0,arguments);q=cbA(q);return q.length===1?vx(q[0]):new jF(ztn(q))};
ztn=function(q){return function(N){for(var b=[],y={i$jscomp$220:0};b&&!N.closed&&y.i$jscomp$220<q.length;y={i$jscomp$220:y.i$jscomp$220},y.i$jscomp$220++)b.push(vx(q[y.i$jscomp$220]).subscribe(new I9(N,function(J){return function(E){if(b){for(var F=0;F<b.length;F++)F!==J.i$jscomp$220&&b[F].unsubscribe();b=null}N.next(E)}}(y))))}};
tcZ=function(){var q=_.MB.apply(0,arguments),N=WtA(q),b=cbA(q);return b.length?new jF(function(y){var J=b.map(function(){return[]}),E=b.map(function(){return!1});
y.add(function(){J=E=null});
for(var F={sourceIndex$jscomp$1:0};!y.closed&&F.sourceIndex$jscomp$1<b.length;F={sourceIndex$jscomp$1:F.sourceIndex$jscomp$1},F.sourceIndex$jscomp$1++)vx(b[F.sourceIndex$jscomp$1]).subscribe(new I9(y,function(R){return function(c){J[R.sourceIndex$jscomp$1].push(c);J.every(function(z){return z.length})&&(c=J.map(function(z){return z.shift()}),y.next(N?N.apply(null,_.a9(c)):c),J.some(function(z,m){return!z.length&&E[m]})&&y.complete())}}(F),void 0,function(R){return function(){E[R.sourceIndex$jscomp$1]=
!0;
!J[R.sourceIndex$jscomp$1].length&&y.complete()}}(F)));
return function(){J=E=null}}):o9};
mYJ=function(q){var N,b,y;return!!q&&typeof q.active==="boolean"&&typeof((N=q.clock)==null?void 0:N.now)==="function"&&((b=q.clock)==null?void 0:b.timeline)!==void 0&&!((y=q.lastMeasurement)==null||!y.timestamp)&&typeof q.equivalentTo==="function"&&typeof q.extrapolateToNow==="function"&&typeof q.extrapolateToTime==="function"&&typeof q.map==="function"&&typeof q.joinWith==="function"};
rbe=function(q){function N(b){return typeof b==="boolean"||typeof b==="string"||typeof b==="number"||b===void 0||b===null}
return N(q)?!0:Array.isArray(q)?q.every(N):typeof q==="object"?Object.keys(q).every(function(b){return typeof b==="string"})&&Object.values(q).every(function(b){return Array.isArray(b)?b.every(N):N(b)}):!1};
Xhd=function(q){if(rbe(q))return q;if(mYJ(q))return{lastMeasurement:{value:Xhd(q.lastMeasurement.value),timestamp:Bx(q.lastMeasurement.timestamp,new Hx(0,q.lastMeasurement.timestamp.timeline))},active:q.active};try{return JSON.parse(JSON.stringify(q))}catch(N){}return String(q)};
qY=function(q,N){return function(b){return new jF(function(y){return b.subscribe(function(J){q.timeExecution(N,function(){y.next(J)})()},function(J){q.timeExecution(N,function(){y.error(J)})()},function(){q.timeExecution(N,function(){y.complete()})()})})}};
VcR=function(q,N){var b=!1;return new jF(function(y){var J=q.setTimeout(function(){b=!0;y.next(!0);y.complete()},N);
return function(){b||q.clearTimeout(J)}})};
jWd=function(q){q=q.global;if(q.fetchLater)return q.fetchLater.bind(q)};
NY=function(q){return C7(function(N,b){var y=null,J=!1,E;y=N.subscribe(new I9(b,void 0,function(F){E=vx(q(F,NY(q)(N)));y?(y.unsubscribe(),y=null,E.subscribe(b)):J=!0}));
J&&(y.unsubscribe(),y=null,E.subscribe(b))})};
xYz=function(q,N,b){return function(y,J){var E=b,F=N,R=0;y.subscribe(new I9(J,function(c){var z=R++;F=E?q(F,c,z):(E=!0,c);J.next(F)},void 0,void 0))}};
v7n=function(q){q=q===void 0?null:q;return C7(function(N,b){var y=!1;N.subscribe(new I9(b,function(J){y=!0;b.next(J)},void 0,function(){y||b.next(q);
b.complete()}))})};
b3=function(){return C7(function(q,N){q.subscribe(new I9(N,mt))})};
yu=function(q){return C7(function(N,b){N.subscribe(new I9(b,function(){return b.next(q)}))})};
Jb=function(q){return q<=0?function(){return o9}:C7(function(N,b){var y=0;
N.subscribe(new I9(b,function(J){++y<=q&&(b.next(J),q<=y&&b.complete())}))})};
Ep=function(q){var N=N===void 0?Xw:N;var b;q=(b=q)!=null?b:GbZ;return C7(function(y,J){var E,F=!0;y.subscribe(new I9(J,function(R){var c=N(R);if(F||!q(E,c))F=!1,E=c,J.next(R)}))})};
GbZ=function(q,N){return q===N};
QWu=function(q){q=q===void 0?YpJ:q;return C7(function(N,b){var y=!1;N.subscribe(new I9(b,function(J){y=!0;b.next(J)},void 0,function(){return y?b.complete():b.error(q())}))})};
YpJ=function(){return new OMh};
gz=function(){var q=_.MB.apply(0,arguments);return function(N){return Jbn(N,U5.apply(null,_.a9(q)))}};
whn=function(q){return C7(function(N,b){var y=0;N.subscribe(new I9(b,function(J){q.call(void 0,J,y++,N)||(b.next(!1),b.complete())},void 0,function(){b.next(!0);
b.complete()}))})};
iMn=function(){return C7(function(q,N){var b=[];q.subscribe(new I9(N,function(y){b.push(y);1<b.length&&b.shift()},void 0,function(){for(var y=_.Z(b),J=y.next();!J.done;J=y.next())N.next(J.value);
N.complete()},function(){b=null}))})};
lkD=function(q,N){var b=arguments.length>=2;return function(y){return y.pipe(q?eF(function(J,E){return q(J,E,y)}):Xw,iMn(),b?v7n(N):QWu(function(){return new OMh}))}};
Fe=function(q){var N=$i(q)?q:function(){return q};
return $i()?C7(function(b,y){var J=N();(void 0)(J).subscribe(y).add(b.subscribe(J))}):function(b){var y=new Zk(b,N);
$i(b==null?void 0:b.lift)&&(y.lift=b.lift);y.source=b;y.subjectFactory=N;return y}};
dz=function(q){var N=new RW(q,void 0,void 0);return function(b){return Fe(function(){return N})(b)}};
ch=function(q,N){return C7(xYz(q,N,arguments.length>=2))};
u3=function(){var q=_.MB.apply(0,arguments),N=ki(q);return C7(function(b,y){(N?Jbn(q,b,N):Jbn(q,b)).subscribe(y)})};
zb=function(q){return C7(function(N,b){var y=null,J=0,E=!1;N.subscribe(new I9(b,function(F){var R;(R=y)==null||R.unsubscribe();R=J++;vx(q(F,R)).subscribe(y=new I9(b,function(c){return b.next(c)},void 0,function(){y=null;
E&&!y&&b.complete()}))},void 0,function(){(E=!0,!y)&&b.complete()}))})};
$7=function(q,N){N=N===void 0?!1:N;return C7(function(b,y){var J=0;b.subscribe(new I9(y,function(E){var F=q(E,J++);(F||N)&&y.next(E);!F&&y.complete()}))})};
Ksz=function(q,N,b){var y=$i(q)||N||b?{next:q,error:N,complete:b}:q;return y?C7(function(J,E){J.subscribe(new I9(E,function(F){var R;(R=y.next)==null||R.call(y,F);E.next(F)},function(F){var R;
(R=y.error)==null||R.call(y,F);E.error(F)},function(){var F;
(F=y.complete)==null||F.call(y);E.complete()}))}):Xw};
DYA=function(){var q=_.MB.apply(0,arguments),N=WtA(q);return C7(function(b,y){for(var J=q.length,E=Array(J),F=q.map(function(){return!1}),R=!1,c={i$jscomp$230:0};c.i$jscomp$230<J;c={i$jscomp$230:c.i$jscomp$230},c.i$jscomp$230++)vx(q[c.i$jscomp$230]).subscribe(new I9(y,function(z){return function(m){E[z.i$jscomp$230]=m;
R||F[z.i$jscomp$230]||(F[z.i$jscomp$230]=!0,(R=F.every(Xw))&&(F=null))}}(c),void 0,mt));
b.subscribe(new I9(y,function(z){R&&(z=[z].concat(_.a9(E)),y.next(N?N.apply(null,_.a9(z)):z))}))})};
kbC=function(q){var N=htZ;if(N)for(var b in N)Object.prototype.hasOwnProperty.call(N,b)&&q(N[b],b,N)};
UYd=function(){var q=[];kbC(function(N){q.push(N)});
return q};
C3A=function(q){try{return!!q&&q.location.href!=null&&fkJ(q,"foo")}catch(N){return!1}};
_.ms=function(q){return new tFn(q[0].toLowerCase())};
IkD=function(q){for(var N=_.MB.apply(1,arguments),b=q[0],y=0;y<q.length-1;y++)b+=String(N[y]),b+=q[y+1];N=document.implementation.createHTMLDocument("");y=N.createElement("style");N.head.appendChild(y);N=y.sheet;N.insertRule(b,0);if(N.cssRules.length===1&&(b=N.cssRules[0],b instanceof CSSStyleRule))return new zw(b.cssText.replace(/</g,"\\3C "))};
TzA=function(q){try{return new URL(q,window.document.baseURI)}catch(N){return new URL("about:invalid")}};
sWz=function(q,N){var b=N.createRange();b.selectNode(N.body);q=BZ(q);return b.createContextualFragment(qn(q))};
n7d=function(q){q=q.nodeName;return typeof q==="string"?q:"FORM"};
akA=function(q){q=q.nodeType;return q===1||typeof q!=="number"};
rz=function(q,N,b){q.setAttribute(N,b)};
Sph=function(q){return q.parts.map(function(N){var b=N.descriptor;return""+N.url+(b?" "+b:"")}).join(" , ")};
_.Xe=function(q){var N=_.MB.apply(1,arguments);if(N.length===0)return _.hB(q[0]);for(var b=q[0],y=0;y<N.length;y++)b+=encodeURIComponent(N[y])+q[y+1];return _.hB(b)};
_.Vu=function(q,N){q=_.kB(q).toString();var b=q.split(/[?#]/),y=/[?]/.test(q)?"?"+b[1]:"";return Wsd(b[0],y,/[#]/.test(q)?"#"+(y?b[2]:b[1]):"",N)};
Wsd=function(q,N,b,y){function J(F,R){F!=null&&(Array.isArray(F)?F.forEach(function(c){return J(c,R)}):(N+=E+encodeURIComponent(R)+"="+encodeURIComponent(F),E="&"))}
var E=N.length?"&":"?";y.constructor===Object&&(y=Object.entries(y));Array.isArray(y)?y.forEach(function(F){return J(F[1],F[0])}):y.forEach(J);
return _.hB(q+N+b)};
phC=function(){var q=Zb(Lsd).toString();return _.hB(URL.createObjectURL(new Blob([q],{type:"text/javascript"})))};
P3R=function(q){var N=[],b=0,y;for(y in q)N[b++]=y;return N};
McJ=function(q,N){for(var b in q)if(q[b]==N)return!0;return!1};
o7d=function(q,N,b){for(var y in q)if(N.call(b,q[y],y,q))return y};
Abd=function(q){if(!q||typeof q!=="object")return q;if(typeof q.clone==="function")return q.clone();if(typeof Map!=="undefined"&&q instanceof Map)return new Map(q);if(typeof Set!=="undefined"&&q instanceof Set)return new Set(q);if(q instanceof Date)return new Date(q.getTime());var N=Array.isArray(q)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(q)||q instanceof DataView?{}:new q.constructor(q.length),b;for(b in q)N[b]=Abd(q[b]);return N};
etD=function(q){var N=arguments.length;if(N==1&&Array.isArray(arguments[0]))return etD.apply(null,arguments[0]);if(N%2)throw Error("ma");for(var b={},y=0;y<N;y+=2)b[arguments[y]]=arguments[y+1];return b};
BzZ=function(q){var N=arguments.length;if(N==1&&Array.isArray(arguments[0]))return BzZ.apply(null,arguments[0]);for(var b={},y=0;y<N;y++)b[arguments[y]]=!0;return b};
x7=function(q,N,b,y){this.top=q;this.right=N;this.bottom=b;this.left=y};
HMC=function(q){q=q.global;if(q.PendingGetBeacon)return q.PendingGetBeacon};
Gb=function(q){return function(N){return N.pipe(qNA(q,Fe(new vh)))}};
Y7=function(q){return function(N){return N.pipe(qNA(q,dz(1)))}};
qNA=function(q,N){function b(y){return new jF(function(J){return y.subscribe(function(E){Qu(q,function(){return void J.next(E)},3)},function(E){Qu(q,function(){return void J.error(E)},3)},function(){Qu(q,function(){return void J.complete()},3)})})}
return Vz(b,pxe(),N,Tw(),b)};
yWu=function(q){var N=NEA(q);return N===null?new Op(null):N.pipe(n7(function(b){b=b.serialize();if(bFh)b=_.JZ.btoa(b);else{for(var y=[],J=0,E=0;E<b.length;E++){var F=b.charCodeAt(E);F>255&&(y[J++]=F&255,F>>=8);y[J++]=F}b=_.Uf(y)}return b}),Jb(1),Y7(q.queue))};
JWe=function(q){var N=N===void 0?{}:N;if(typeof Event==="function")return new Event(q,N);if(typeof document!=="undefined"){var b=document.createEvent("CustomEvent");b.initCustomEvent(q,N.bubbles||!1,N.cancelable||!1,N.detail);return b}throw Error();};
ENn=function(q){return typeof q==="string"?document.getElementById(q):q};
ZFC=function(q){var N=!1;N=N===void 0?!1:N;if(q.tagName==="IMG"){if(q.complete&&(!q.naturalWidth||!q.naturalHeight))return!0;var b;if(N&&((b=q.style)==null?void 0:b.display)==="none")return!0}var y,J;return gNA.test((y=q.getAttribute("width"))!=null?y:"")&&gNA.test((J=q.getAttribute("height"))!=null?J:"")};
FWA=function(q,N){if(q.tagName==="IMG")return q.naturalWidth&&q.naturalHeight?!0:!1;try{if(q.readyState)var b=q.readyState;else{var y,J;b=(y=q.contentWindow)==null?void 0:(J=y.document)==null?void 0:J.readyState}return b==="complete"}catch(E){return N===void 0?!1:N}};
Rpn=function(q){q||(q=function(N,b,y){N.addEventListener(b,y)});
return q};
zpZ=function(q,N){var b=dIn();b=b===void 0?new cWh:b;if(q=ENn(q)){var y=Rpn(y);for(var J=!1,E=function(D){J||(J=!0,N(D))},F,R=2,c=0;c<uzn.length;++c)if(uzn[c]===q.tagName){R=3;
F=[q];break}F||(F=q.querySelectorAll(uzn.join(",")));var z=0,m=0,r=!0,X=q=!1;c={};for(var V=0;V<F.length;c={isImg:void 0},V++){var G=F[V];if(!ZFC(G))if(c.isImg=G.tagName==="IMG",FWA(G,b.crossDomainLoadedDefault))q=!0,c.isImg&&(r=!0);else{z++;var w=function(D){return function(k){z--;!z&&r&&E(R);D.isImg&&(k=k&&k.type==="error",m--,k||(r=!0),!m&&X&&r&&E(R))}}(c);
y(G,"load",w);c.isImg&&(m++,y(G,"error",w))}}m===0&&(r=!0);F=null;F=_.JZ.document.readyState==="complete";if(z===0&&!q&&F)R=5;else if(z||!q){y(_.JZ,"load",function(){!b.pendingImagesBlockLoad||!m&&r?E(4):X=!0});
return}E(R)}};
$Iu=function(q,N,b){if(q)for(var y=0;q!=null&&y<500&&!b(q);++y)q=N(q)};
tGC=function(q,N){$Iu(q,function(b){try{return b===b.parent?null:b.parent}catch(y){}return null},N)};
mIz=function(q,N){if(q.tagName=="IFRAME")N(q);else{q=q.querySelectorAll("IFRAME");for(var b=0;b<q.length&&!N(q[b]);++b);}};
rWd=function(q){return(q=q.ownerDocument)&&(q.parentWindow||q.defaultView)||null};
XYd=function(q,N,b){try{var y=JSON.parse(b.data)}catch(F){}if(typeof y==="object"&&y&&y.type==="creativeLoad"){var J=rWd(q);if(b.source&&J){var E;tGC(b.source,function(F){try{if(F.parent===J)return E=F,!0}catch(R){}});
E&&mIz(q,function(F){if(F.contentWindow===E)return N(y),!0})}}};
VGd=function(q){return typeof q==="string"?document.getElementById(q):q};
GPu=function(){var q={};return q[0]=_.Xe(jAd,"current"),q[1]=_.Xe(xIA),q[2]=_.Xe(vNC),q};
i3=function(q,N){return q.left===N.left&&q.top===N.top&&q.width===N.width&&q.height===N.height};
YNA=function(q,N){return{left:Math.max(q.left,N.left),top:Math.max(q.top,N.top),width:Math.max(0,Math.min(q.left+q.width,N.left+N.width)-Math.max(q.left,N.left)),height:Math.max(0,Math.min(q.top+q.height,N.top+N.height)-Math.max(q.top,N.top))}};
QAn=function(q,N){return{left:Math.round(q.left+N.x),top:Math.round(q.top+N.y),width:q.width,height:q.height}};
OFJ=function(q,N,b){if(q&&N!==null&&N!=N.top){if(!N.top)return new _.l3(-12245933,-12245933);N=N.top}try{return(b===void 0?0:b)?(new _.l3(N.innerWidth,N.innerHeight)).round():_.KM(N).round()}catch(y){return new _.l3(-12245933,-12245933)}};
wYA=function(q,N,b){try{if(q){if(!N.top)return new x7(-12245933,-12245933,-12245933,-12245933);N=N.top}var y=OFJ(q,N,b),J=y.height,E=y.width;if(E===-12245933)return new x7(E,E,E,E);var F=Dk(k7(N.document)),R=F.x,c=F.y;return new x7(c,R+E,c+J,R)}catch(z){return new x7(-12245933,-12245933,-12245933,-12245933)}};
iFn=function(q){var N;return(N=q.google_tag_data)!=null?N:q.google_tag_data={}};
lzz=function(q){var N,b;return typeof((N=q.navigator)==null?void 0:(b=N.userAgentData)==null?void 0:b.getHighEntropyValues)==="function"};
DIR=function(q){if(!lzz(q))return null;var N=iFn(q);if(N.uach_promise)return N.uach_promise;q=q.navigator.userAgentData.getHighEntropyValues(KWn).then(function(b){N.uach!=null||(N.uach=b);return b});
return N.uach_promise=q};
WWA=function(q){var N;return hpd(kPA(UIA(fzJ(CCu(Izz(TED(sAR(nND(new azJ,q.architecture||""),q.bitness||""),q.mobile||!1),q.model||""),q.platform||""),q.platformVersion||""),q.uaFullVersion||""),((N=q.fullVersionList)==null?void 0:N.map(function(b){var y=new SNn;y=_.Up(y,1,b.brand);return _.Up(y,2,b.version)}))||[]),q.wow64||!1)};
LWD=function(q){var N,b;return(b=(N=DIR(q))==null?void 0:N.then(function(y){return WWA(y)}))!=null?b:null};
pYA=function(q,N){return new jF(function(b){var y=!1,J=Array(N.length);J.fill(void 0);var E=new Set,F=new Set,R=function(r,X){q.running?(J[X]=r,E.add(X),y||(y=!0,Qu(q,function(){y=!1;b.next(_.LC(J))},1))):b.error(new fM(X))},c=function(r,X){F.add(X);
E.add(X);Qu(q,function(){b.error(r)},1)},z=function(r){F.add(r);
Qu(q,function(){F.size===N.length&&b.complete()},1)},m=N.map(function(r,X){return r.subscribe(function(V){return void R(V,X)},function(V){return void c(V,X)},function(){return void z(X)})});
return function(){m.forEach(function(r){return void r.unsubscribe()})}})};
oNe=function(q,N,b){function y(){if(N.debugChannel){var D=N.debugChannel,k=D.next;var f={creativeId:N.debugNames.getName(b),requiredSignals:J,signals:Object.assign({},E),hasPrematurelyCompleted:F,errorMessage:R,erroredSignalKey:c};f={specMajor:2,specMinor:0,specPatch:0,timestamp:Bx(N.timeProvider.now(),new Hx(0,N.timeProvider.timeline)),instanceId:N.debugNames.getName(N.symbol),creativeState:f};k.call(D,f)}}
for(var J=Object.keys(q),E={},F=!1,R=null,c=null,z={},m=new Set,r=[],X=[],V=_.Z(J),G=V.next(),w={};!G.done;w={key$jscomp$394:void 0},G=V.next())w.key$jscomp$394=G.value,G=q[w.key$jscomp$394],G instanceof Op?(z[w.key$jscomp$394]=G.value,m.add(w.key$jscomp$394),N.debugChannel&&(E[String(w.key$jscomp$394)]=Xhd(G.value))):(G=G.pipe(Ep(function(D,k){return mYJ(D)||mYJ(k)?!1:D===k}),n7(function(D){return function(k){N.debugChannel&&(E[String(D.key$jscomp$394)]=Xhd(k),y());
var f={};return f[D.key$jscomp$394]=k,f}}(w)),NY(function(D){return function(k){if(k instanceof fM)throw new PCD(String(D.key$jscomp$394));
throw k;}}(w)),Ksz(function(D){return function(){m.add(D.key$jscomp$394)}}(w),function(D){return function(k){c=String(D.key$jscomp$394);
R=String(k);y()}}(w),function(D){return function(){m.has(D.key$jscomp$394)||(F=!0,y())}}(w))),X.push(w.key$jscomp$394),r.push(G));
(q=Object.keys(E).length>0)&&y();V=pYA(N.queue,r).pipe(NY(function(D){if(D instanceof fM)throw new MGd(String(X[D.inputObservableIndex]));throw D;}),n7(function(D){return Object.freeze(Object.assign.apply(Object,[{},
z].concat(_.a9(D))))}));
return(r=r.length>0)&&q?Aj(U5(Object.freeze(z)),V):r?V:U5(Object.freeze(z))};
AWd=function(q,N,b,y,J){return q.performanceMonitor.timeExecution.bind(q.performanceMonitor)(733,function(){var E={};try{return N.pipe(NY(function(F){y(Object.assign({},E,{error:F}));return o9}),p7(function(F){try{var R=b(q,F)}catch(z){return y(Object.assign({},E,{error:z instanceof Error?z:String(z)})),o9}var c={};
return oNe(R,q,F.symbol).pipe(Ksz(function(z){c=z}),dz(1),Tw()).pipe(J,NY(function(z){y(Object.assign({},c,{error:z}));
return o9}),gz(void 0),n7(function(){return!0}))})).pipe(ch(function(F){return F+1},0),NY(function(F){y(Object.assign({},E,{error:F}));
return o9}))}catch(F){return y(Object.assign({},E,{error:F})),o9}})()};
CM=function(q){var N=new Map;if(typeof q!=="object"||q===null)return N;Object.values(q).forEach(function(b){b&&typeof b.extrapolateToNow==="function"&&(N.has(b.clock.timeline)||N.set(b.clock.timeline,b.clock.now()))});
return N};
epA=function(q,N){return typeof q==="string"?encodeURIComponent(q):typeof q==="number"?String(q):Array.isArray(q)?q.map(function(b){return epA(b,N)}).join(","):q instanceof Hx?q.toString():q&&typeof q.extrapolateToNow==="function"?epA(q.extrapolateUsingTimestampMap(N).value,N):q===!0?"1":q===!1?"0":q===void 0||q===null?null:q instanceof BEz?HFA(q):[q.top,
q.left,q.top+q.height,q.left+q.width].join()};
qLJ=function(q,N){q=Object.entries(q).map(function(b){var y=_.Z(b);b=y.next().value;y=y.next().value;y=epA(y,N);return y===null?"":b+"="+y}).filter(function(b){return b!==""});
return q.length?q.join("&"):""};
yXu=function(q,N){var b=NnZ,y=b3u;N=N===void 0?.01:N;return function(J){N>0&&Math.random()<=N&&(q.global.HTMLFencedFrameElement&&q.global.fence&&typeof q.global.fence.reportEvent==="function"&&q.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),J=Object.assign({},J,{errorMessage:J.error instanceof Error&&J.error.message?J.error.message:String(J.error),errorStack:J.error instanceof Error&&J.error.stack?String(J.error.stack):null,errorName:J.error instanceof
Error&&J.error.name?String(J.error.name):null,errorContext:String(q.performanceMonitor.timedFunctionContext),errorEscapedQueryId:J.escapedQueryId}),b(Object.assign({},J,{payloadMapper:function(){return function(E){try{return y(Object.assign({},E))}catch(F){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),CM(J)).forEach(function(E){q.beaconFactory.makeBeacon(E).sendNow()}))}};
JXd=function(){var q=_.MB.apply(0,arguments);return function(N){var b=N.pipe(dz(1),Tw());N=q.map(function(y){return b.pipe(y,gz(!0))});
return SF(N).pipe(Jb(1),b3())}};
ELd=function(){var q=_.MB.apply(0,arguments);return function(N){var b=N.pipe(dz(1),Tw());N=q.map(function(y){return b.pipe(y,gz(!0))});
return Aj.apply(null,_.a9(N)).pipe(Jb(1),b3())}};
gLA=function(q,N){return function(b){var y=b.pipe(dz(1),Tw());b=y.pipe(q,gz(!0));y=y.pipe(Vz(N,dz(),Tw()),gz(!0));b=SF([b,y]);return $Yh(b,y).pipe(Jb(1),b3())}};
Z3Z=function(q,N,b){b(!0)};
FRe=function(q,N){return Vz(zb(function(b){var y=q(b),J=N(b),E={};return y&&J&&E?new jF(function(F){J(y,E,function(R){F.next(Object.assign({},b,{canEmit:R}));F.complete()});
return function(){}}):IW}),eF(function(b){return b.canEmit}))};
RMz=function(q){var N={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(b){return b.pipe(zb(function(y){return new jF(function(J){function E(){R.disconnect();c.unsubscribe()}
var F=q.MutationObserver;if(F&&y.ref!==void 0){var R=new F(function(z){J.next(z)});
R.observe(y.ref,N);var c=y.JSC$9441_released.subscribe(E);return E}})}))}};
d0z=function(q){if(q.measurementDeferralState===3)return null;if(q.timeOnScreenReason!==void 0){var N=q.creativeFound===!1?"n":null;if(N!==null)return N}return q.geometricMeasurementErrors instanceof Tb?"msf":q.contextValidationErrors instanceof sp?"c":q.contextVisibilityKnown===!1?"pv":q.geometricMeasurementErrors||q.contextValidationErrors?"x":null};
u8z=function(q,N){return q.replace(cXJ,function(b,y){try{var J=_.nM.get(N,y);if(J==null||J.toString()==null)return b;J=J.toString();if(J==""||!_.dA(J==null?"":String(J)))return encodeURIComponent(J).replace(/%2C/g,",")}catch(E){}return b})};
zMD=function(q,N){var b=Object.assign({},q),y=q.userAgentClientHints;b=(delete b.userAgentClientHints,b);b=q.payloadMapper(b);var J=qLJ(b,N);return _.aW(q.urlPrefixes,function(E){var F="";typeof y==="string"&&(F="&"+qLJ({uach:y},N));var R={};return u8z(E,(R.VIEWABILITY=J,R))+F})};
NnZ=function(q,N){var b=q.payloadMapper(q),y=qLJ(b,N);return y?_.aW(q.urlPrefixes,function(J){J=J.indexOf("?")>=0?J:J+"?";J="?&".indexOf(J.slice(-1))>=0?J:J+"&";return J+y}):q.urlPrefixes};
$0z=function(){return Vz(eF(function(q){return q!==void 0}),n7(function(q){return q}))};
txh=function(q){return Vz(n7(function(){return!0}),u3(!1),Y7(q))};
m0u=function(q){return q.length<=0?o9:SF(q.map(function(N){var b=0;return N.pipe(n7(function(y){return{index:b++,value:y}}))})).pipe(eF(function(N){return N.every(function(b){return b.index===N[0].index})}),n7(function(N){return N.map(function(b){return b.value})}))};
rXJ=function(q,N){q.currentState&&(q.previousState=q.currentState);q.currentState=N;q.previousState&&q.previousState.value?(N=Math.max(0,Bx(N.timestamp,q.previousState.timestamp)),q.totalTime+=N,q.consecutiveTime+=N):q.consecutiveTime=0;return q};
X1e=function(){return Vz(ch(rXJ,{totalTime:0,consecutiveTime:0}),n7(function(q){return q.totalTime}))};
Vxz=function(){return Vz(ch(rXJ,{totalTime:0,consecutiveTime:0}),n7(function(q){return q.consecutiveTime}))};
jen=function(q,N){return function(b){return m0u(N.map(function(y){return b.pipe(q(y))}))}};
x0J=function(){var q;return Vz(Ksz(function(N){return void(q=N.timestamp)}),Vxz(),n7(function(N){return{timestamp:q,
value:Math.round(N)}}))};
vLd=function(q,N){return i3(q.topWindowViewportExternalGeometry,N.topWindowViewportExternalGeometry)&&i3(q.elementGeometry,N.elementGeometry)&&i3(q.exposedViewportLocalGeometry,N.exposedViewportLocalGeometry)&&i3(q.intersectionGeometry,N.intersectionGeometry)&&q.elementGeometrySourceName===N.elementGeometrySourceName&&q.measurementRequests===N.measurementRequests&&q.viewportGeometrySourceName===N.viewportGeometrySourceName&&q.viewportLocalAppOffset.x===N.viewportLocalAppOffset.x&&q.viewportLocalAppOffset.y===
N.viewportLocalAppOffset.y};
O3u=function(q,N){return function(b){return function(y){var J=y.pipe(Fe(new vh),Tw());y=b.element.pipe(Ep());J=J.pipe(n7(function(E){return E.value}));
return SF([y,J,N]).pipe(n7(function(E){var F=_.Z(E);E=F.next().value;var R=F.next().value;F=F.next().value;if(E.ref===void 0)var c={top:0,left:0,width:0,height:0};else{c=E.ref.getBoundingClientRect();var z=E.ref,m=q.global,r=new _.Sc(0,0),X=Wh(_.LM(z));if(fkJ(X,"parent")){do{if(X==m)var V=_.pM(z);else V=G2R(z),V=new _.Sc(V.left,V.top);r.x+=V.x;r.y+=V.y}while(X&&X!=m&&X!=X.parent&&(z=X.frameElement)&&(X=X.parent))}c={top:r.y,left:r.x,width:c.width,height:c.height}}c=QAn(c,R.viewportLocalAppOffset);
m=YNA(c,R.exposedViewportLocalGeometry);r=q.timeProvider.now();X=Object;z=X.assign;if(F!==2||q.inCrossDomainIframe||m.width<=0||m.height<=0)var G=!1;else try{var w=q.document.elementFromPoint(m.left+m.width/2,m.top+m.height/2);G=w?!YLh(w,E):!1}catch(D){G=!1}return{timestamp:r,value:z.call(X,{},R,{elementGeometrySourceName:"geo",intersectionGeometry:G?Qee.intersectionGeometry:m,elementGeometry:c})}}),Gb(q.queue))}}};
YLh=function(q,N,b){b=b===void 0?0:b;return q.ref===void 0||N.ref===void 0?!1:q.ref===N.ref||_.Ph(N.ref,function(y){return y===q.ref})?!0:N.ref.ownerDocument&&N.ref.ownerDocument.defaultView&&N.ref.ownerDocument.defaultView===N.ref.ownerDocument.defaultView.top?!1:b<10&&N.ref.ownerDocument&&N.ref.ownerDocument.defaultView&&N.ref.ownerDocument.defaultView.frameElement?YLh(q,new MY(N.ref.ownerDocument.defaultView.frameElement),b+1):!0};
luR=function(q){return function(N){return N.pipe(q.ResizeObserver?w1d(q):i3A(q),dz(1),Tw())}};
w1d=function(q){return function(N){return N.pipe(zb(function(b){var y=q.ResizeObserver;if(!y||b.ref===void 0)return U5(Qee.elementGeometry);var J=(new jF(function(E){function F(){b.ref!==void 0&&R.unobserve(b.ref);R.disconnect();c.unsubscribe()}
if(b.ref===void 0)return E.complete(),function(){};
var R=new y(function(z){z.forEach(function(m){E.next(m)})});
R.observe(b.ref);var c=b.JSC$9441_released.subscribe(F);return F})).pipe(qY(q.performanceMonitor,736),n7(function(E){return E.contentRect}));
return Aj(U5(b.ref.getBoundingClientRect()),J)}),Ep(i3))}};
i3A=function(q){return function(N){var b=N.pipe(RMz(q)),y=q.onResize;b=Aj(N.pipe(n7(function(){return JWe("resize")})),b,y);
return SF(N,b).pipe(qY(q.performanceMonitor,737),n7(function(J){J=_.Z(J).next().value;return J.ref===void 0?void 0:J.ref.getBoundingClientRect()}),$0z(),Ep(i3))}};
hMe=function(q,N){var b=KRJ(q,N).pipe(dz(1),Tw());return function(y){return function(J){J=J.pipe(zb(function(E){return E.element}),Ep());
return SF([b,J]).pipe(zb(function(E){var F=_.Z(E);E=F.next().value;F=F.next().value;return D0A(q,E.intersectionObserver,luR(q),E.observations,y,E.flushRecords,F)}),Gb(q.queue))}}};
k2J=function(q){return n7(function(N){return N.value.viewportGeometrySourceName!=="nio"?N:Object.assign({},N,{value:Object.assign({},N.value,{exposedViewportLocalGeometry:Ab(q,!0),topWindowViewportExternalGeometry:Ab(q,!0)})})})};
U0A=function(q,N){return U5(N).pipe(q,n7(function(){return N}))};
KRJ=function(q,N){return q.timeProvider.timeline!==fuD?f7(new Tb(2)):q.MutationObserver?typeof IntersectionObserver==="undefined"?f7(new Tb(0)):(new jF(function(b){var y=new vh,J=new ec(y.next.bind(y),{threshold:[].concat(_.a9(N))});b.next({observations:y.pipe(qY(q.performanceMonitor,735)),intersectionObserver:J,flushRecords:function(E){E=J.takeRecords(E);E.length>0&&y.next(E)}})})).pipe(Jb(1),dz(1),Tw()):f7(new Tb(1))};
C5A=function(q){return fbJ(q.sort(function(N,b){return N.time-b.time}),LtJ)};
D0A=function(q,N,b,y,J,E,F){return new jF(function(R){function c(){G||(G=!0,F.ref!==void 0&&N.unobserve(J,F.ref),m.unsubscribe(),V.unsubscribe(),X.unsubscribe(),w.unsubscribe())}
if(F.ref!==void 0){IuJ(N,J);N.observe(J,F.ref);var z=new Bh({timestamp:q.timeProvider.now(),value:Object.assign({},Qee,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),m=y.pipe(p7(function(D){return C5A(D)}),eF(function(D){return D.target===F.ref}),n7(function(D){return{timestamp:new Hx(D.time,fuD),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:D.rootBounds||Hh,topWindowViewportExternalGeometry:D.rootBounds||Ab(q,!0),measurementRequests:r,elementGeometrySourceName:"nio",intersectionGeometry:D.intersectionRect,elementGeometry:D.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:D.isIntersecting,isV2Visible:D.isVisible}}}),Fe(z),Tw()).subscribe(R),r=new vh,X=r.subscribe(function(){E(J);
R.next({timestamp:q.timeProvider.now(),value:z.value.value});F.ref!==void 0&&(N.unobserve(J,F.ref),N.observe(J,F.ref))}),V=U0A(b,F).subscribe(function(){r.next()}),G=!1,w=F.JSC$9441_released.subscribe(function(){return c()});
return c}})};
Tne=function(q,N){var b=q.getOnBackgrounded().pipe(n7(function(){return"b"}));
return $Yh(N,b).pipe(Jb(1),Y7(q.queue))};
qI=function(q){return function(N){var b;return N.pipe(Ksz(function(y){return void(b=y.timestamp)}),n7(function(y){return y.value}),q,n7(function(y){return{timestamp:b,
value:y}}))}};
seR=function(q){return q.intersectionGeometry.width*q.intersectionGeometry.height/(q.elementGeometry.width*q.elementGeometry.height)};
NI=function(q,N,b){b=b===void 0?function(y,J){return y===J}:b;
return q.timestamp.equals(N.timestamp)&&b(q.value,N.value)};
JW=function(q,N){return N.pipe(n7(function(b){return new yE(q.timeProvider,{timestamp:q.timeProvider.now(),value:b})}))};
nLZ=function(q){return function(N){return N.pipe(DYA(q),n7(function(b){var y=_.Z(b);b=y.next().value;y=y.next().value;var J=b.value;return{timestamp:b.timestamp,value:J>=1?!0:J<=0?!1:J>=y}}))}};
SLh=function(){return Vz(eF(function(q,N){return N>0}),aun,u3(-1),Ep())};
WRn=function(q,N,b){return q?SF([N,b]).pipe(eF(function(y){var J=_.Z(y);y=J.next().value;J=J.next().value;return y.timestamp.equals(J.timestamp)}),n7(function(y){var J=_.Z(y);
y=J.next().value;J=J.next().value;return y.value>J.value?y:J})):N};
P5n=function(q){return function(N){var b=N.pipe(LRD),y=N.pipe(p1e);return q instanceof jF?q.pipe(zb(function(J){return WRn(J,b,y)})):WRn(q.value,b,y)}};
yVC=function(q,N,b,y){var J=y.geometryIsOccluded,E=y.exposureThreshold,F=y.wasLargeAdAtRender,R=y.allowLargeAdThreshold,c=y.largeAdExposureThreshold,z=y.mayUseViewportShareExposure,m=y.hasMeasurementStarted;y=y.useIntersectionObserverV2;N=Mxd(q,b,N);b=oLJ(q,b);y=AXn(N,y);var r=eMA(q,J,z,N),X=r.pipe(n7(function(W){return W.value}),Ep(),Y7(q),ch(function(W,M){return Math.max(W,M)},0)),V=r.pipe(n7(function(W){return W.value}),SLh(),Y7(q)),G=N.pipe(BnD,n7(function(W){return W.value}),Jb(2),Ep(),Y7(q));
F=H3J(q,N,F,R);var w=F.pipe(u3(!1),Ep(),n7(function(W){return W?c:E}));
R=r.pipe(nLZ(w),Ep(),Y7(q));var D=SF([R,N]).pipe(eF(function(W){var M=_.Z(W);W=M.next().value;M=M.next().value;return W.timestamp.equals(M.timestamp)}),n7(function(W){var M=_.Z(W);
W=M.next().value;M=M.next().value;return{visible:W.value,geometry:M.value.elementGeometry}}),ch(function(W,M){return!M.visible&&W.visible?W:M},{visible:!1,
geometry:Hh}),n7(function(W){return W.geometry}),u3(Hh),Y7(q),Ep(i3));
z=z instanceof jF?z.pipe(Ep(),yu()):IW;w=SF([z,w]).pipe(yu());var k=N.pipe(eF(function(W){return W.value.viewportGeometrySourceName!=="ns"&&W.value.elementGeometrySourceName!=="ns"}),ch(function(W){return W+1},0),u3(0),Y7(q)),f=b.pipe(yu(!0),u3(!1),Y7(q));
f=SF([m,f]).pipe(n7(function(W){var M=_.Z(W);W=M.next().value;M=M.next().value;return W&&!M}),Y7(q));
var L=N.pipe(qwC,Ep()),S=L.pipe(n7(function(W){return W.value}),ch(function(W,M){return Math.max(W,M)},0),Ep(),Y7(q));
q=L.pipe(n7(function(W){return W.value}),SLh(),Y7(q));
return{shouldResetExposureSignals:z,shouldResetViewabilitySignals:w,geometrySignals:{readyGeometryWithDefault:N,measurementStrategy:N.pipe(NVR),creativePosition:D.pipe(Ep(i3)),visible:R.pipe(Ep(NI)),timestampedExposure:r.pipe(Ep(NI)),maximumExposure:X,minimumExposure:V,browserSize:N.pipe(bIn,Ep(_.BA)),timestampedScreenShare:L,maxScreenShare:S,minScreenShare:q,geometricMeasurementErrors:b,measurementRequests:N.pipe(n7(function(W){return W.value.measurementRequests})),
isLargeAd:F,geometryIsOccluded:J,hasMeasurementStarted:m,geometryMeasurable:f,validMeasurementCount:k,loadTimeExposure:G,v2VisibilityBitVector:y}}};
oLJ=function(q,N){return N.pipe(eF(function(){return!1}),n7(function(b){return b}),NY(function(b){return EN(new Op(b),q)}))};
Mxd=function(q,N,b){return N.pipe(ueJ(IW),Y7(q)).pipe(Ep(function(y,J){return NI(y,J,vLd)}),u3({timestamp:b.now(),
value:Qee}),Y7(q))};
eMA=function(q,N,b,y){b=y.pipe(P5n(b),qI(n7(function(J){return Math.round(J*100)/100})),Y7(q));
return N instanceof Op?b:SF([b,N]).pipe(n7(function(J){var E=_.Z(J);J=E.next().value;E=E.next().value;return{timestamp:E.timestamp.maximum(J.timestamp),value:E.value?0:J.value}}),Ep(NI),Y7(q))};
H3J=function(q,N,b,y){N=[N.pipe(n7(function(J){return J.value.elementGeometry.width*J.value.elementGeometry.height>=242500}))];
b instanceof jF&&N.push(b.pipe(n7(function(J){return!!J})));
b=SF(N);return y?b.pipe(n7(function(J){return J.some(function(E){return E})}),u3(!1),Ep(),Y7(q)):EN(new Op(!1),q)};
AXn=function(q,N){q=SF([q,N]).pipe(n7(function(J){var E=_.Z(J);J=E.next().value;if(E.next().value&&J.value.isIntersecting)return J.value.isV2Visible}),Ep());
var b=q.pipe(n7(function(J){return J===void 0?!0:J}),ch(function(J,E){return J||!E},!1)),y=q.pipe(ch(function(J,E){return E===void 0?J:E?!1:J!=null?J:!0},void 0),n7(function(J){return!!J}));
return SF([N,tcZ(q,b,y)]).pipe(n7(function(J){var E=_.Z(J);J=E.next().value;var F=_.Z(E.next().value);E=F.next().value;var R=F.next().value;F=F.next().value;var c=0;if(!J)return 0;if(E===void 0)return 16;E&&(c|=1);E||(c|=2);R&&(c|=4);F&&(c|=8);return c}))};
RlZ=function(q,N,b,y,J){var E=JVJ.timeThresholdMs;var F=F===void 0?new EZh(N,y):F;return(new jF(function(R){var c=b.pipe(u3(void 0),zb(function(){return gZA(J)})).pipe(n7(function(z){var m=z.value;
z=z.timestamp;var r=m.visible;m=m.consecutiveViewTime;var X=m>=E;X||!r?ZIA(F):(z=Math.max(0,Bx(N.now(),z)),FTC(F,Math.max(0,E-m-z)));return X}),ch(function(z,m){return m||z},!1),Ep()).subscribe(R);
return function(){F.dispose();c.unsubscribe()}})).pipe($7(function(R){return!R},!0),Y7(q))};
gZA=function(q){return m0u([q,q.pipe(x0J())]).pipe(n7(function(N){var b=_.Z(N);N=b.next().value;b=b.next().value;return{timestamp:N.timestamp,value:{visible:N.value,consecutiveViewTime:b.value}}}),Ep(function(N,b){return NI(N,b,function(y,J){return y.consecutiveViewTime===J.consecutiveViewTime&&y.visible===J.visible})}))};
d7n=function(){return Vz(Vxz(),ch(function(q,N){return Math.max(q,N)},0),n7(function(q){return Math.round(q)}))};
cVA=function(q){return Vz(nLZ(U5(q)),d7n())};
uCd=function(q,N){return N instanceof jF?N.pipe(zb(function(b){return(b=b?15:null)?f7(new Tb(b)):q})):(N=N.value?15:null)?f7(new Tb(N)):q};
zlA=function(q){var N=new Tb(13);if(q.length<1)return{chain:o9,capturedErrors:o9};var b=new vh,y=q[0];return{chain:q.slice(1).reduce(function(J,E){return J.pipe(NY(function(F){b.next(F);return E}))},y).pipe(NY(function(J){b.next(J);
return f7(N)}),Fe(new vh),Tw()),
capturedErrors:b}};
$7e=function(q,N){var b=q.pipe(Fe(new vh),Tw());return zb(function(y){return b.pipe(N(y))})};
m7J=function(q,N){if(q.inCrossDomainIframe)return f7(new Tb(6));var b=new vh;return Aj(U5({}),N,b).pipe(n7(function(){return{timestamp:q.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:tIC(q),topWindowViewportExternalGeometry:Ab(q,!0),measurementRequests:b,viewportLocalAppOffset:{x:0,y:0}}}}),Gb(q.queue))};
tIC=function(q){var N=Ab(q,!1);if(!q.inIframe||!C3A(q.global.parent)||q.global.parent===q.global)return N;var b=new gE(q.global.parent,q.debugChannel);b.beaconFactory=q.beaconFactory;b=tIC(b);q=q.global.frameElement.getBoundingClientRect();return YNA(QAn(YNA(b,q),{x:N.left-q.left,y:N.top-q.top}),N)};
rVJ=function(q){if(q.prerendering)return 3;var N;return(N={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[q.visibilityState||q.webkitVisibilityState||q.mozVisibilityState||""])!=null?N:0};
XCd=function(q){return q.document.JSC$9452_onVisibilityChange.pipe(n7(function(N){return N==="visible"}),Ep(),Y7(q.queue))};
VIh=function(q,N,b){var y;return N.pipe(Ep(),zb(function(J){return b.pipe(n7(function(){if(!y){y=!0;try{J.next()}finally{y=!1}}return!0}))}),u3(!1),Y7(q.queue))};
jud=function(q){return Vz(qI(n7(function(N){return N>=1?!0:N<=0?!1:N>=q})),X1e(),n7(function(N){return Math.round(N)}))};
vZu=function(q,N,b,y,J){var E=x7C;if(E.length>1)for(var F=0;F<E.length-1;F++)if(E[F]<E[F+1])throw Error();F=J.pipe(u3(void 0),zb(function(){return b.pipe(x0J())}),Ep(),Y7(q));
J=J.pipe(u3(void 0),zb(function(){return b.pipe(d7n())}),Ep(),Y7(q));
return{totalMeasurementTime:y.pipe(u3(void 0),zb(function(){return N.pipe(n7(function(R){return{timestamp:R.timestamp,value:!0}}),X1e())}),Ep(),Y7(q)),
totalUnviewedTime:y.pipe(u3(void 0),zb(function(){return N.pipe(n7(function(R){return{timestamp:R.timestamp,value:R.value===0}}),X1e())}),Ep(),Y7(q)),
maxTimeOnScreen:y.pipe(u3(void 0),zb(function(){return N.pipe(jen(cVA,E))}),Ep(_.BA),Y7(q)),
timeOnScreen:y.pipe(u3(void 0),zb(function(){return N.pipe(jen(jud,E),n7(function(R){return R.map(function(c,z){return z>0?c-R[z-1]:c})}))}),Ep(_.BA),Y7(q)),
maxConsecutiveViewTime:J,consecutiveViewTime:F.pipe(Ep(NI),Y7(q))}};
Ywe=function(q){var N=!0;N=N===void 0?!1:N;return Vz(zb(function(b){return Gfn(q.document,b,N)}),Y7(q.queue))};
Quh=function(q,N,b){var y=b.pipe(n7(function(J){return{value:J,timestamp:q.timeProvider.now()}}),Ep(NI));
return N instanceof jF?N.pipe(Ep(),zb(function(J){return J?EN(new Op({value:!1,timestamp:q.timeProvider.now()}),q.queue):y})):N.value===!1?y:new Op(!1)};
OIh=function(q,N,b,y,J,E,F){var R=JVJ;N=N instanceof jF?N.pipe(u3(!1),Ep()):N;var c=!q.isMobile();b=Quh(q,b,y);q=F.measurableCreative.pipe(txh(q.queue));return Object.assign({},R,{geometryIsOccluded:b,wasLargeAdAtRender:J,allowLargeAdThreshold:c,mayUseViewportShareExposure:N,hasMeasurementStarted:q,useIntersectionObserverV2:E})};
iIC=function(q,N,b,y,J,E){var F=1;E=E===void 0?!0:E;F=F===void 0?.01:F;var R=R===void 0?q.timeProvider.intervalObservable(100).pipe(Y7(q.queue)):R;return q.performanceMonitor.timeExecution(916,function(){return wCZ(q,N.pipe(Gb(q.queue)),b.pipe(Gb(q.queue)),y,J,E,F,R)})()};
wCZ=function(q,N,b,y,J,E,F,R){var c=XCd(q).pipe(n7(function(m){return!m})),z=new l$n(q,[new KTe(q,x7C),
new D7e(q,R)]);R=JXd(hlZ,kfJ);return AWd(q,N,function(m,r){var X=EN(new Op(r.element),m.queue).pipe(Ywe(m),Y7(m.queue)),V={loadedElement:X,shouldMeasure:X.pipe(yu(!0)),measurableCreative:X.pipe(n7(function(W){var M=M===void 0?Symbol():M;return Object.freeze({symbol:M,element:EN(new Op(W),m.queue)})})),
creativeSearchResult:EN(new Op("mue"),m.queue)},G=new Op(!1),w=new Op(!1),D=new Op(17),k=new Op(!1),f=new Op(!1),L=EN(Zz,m.queue);G=z.buildGeometrySource(V,{inApp:G,useV2:!1,requestSource:EN(D,m.queue)}).geometrySource;V=OIh(m,k,w,c,f,L,V);w=yVC(m.queue,m.timeProvider,G,V);V=w.geometrySignals;k=w.shouldResetViewabilitySignals;w=vZu(m.queue,V.timestampedExposure,V.visible,w.shouldResetExposureSignals,k);k=RlZ(m.queue,m.timeProvider,k,V.measurementRequests,V.visible);f=b.pipe(eF(function(W){return W===
r.element.ref}),n7(function(){return"ur"}));
L=VcR(m.timeProvider,J).pipe(yu("t"));f=Tne(m,Aj(f,L));L=VIh(m,V.measurementRequests,f.pipe(eF(function(W){return W!==null})));
G=f.pipe(eF(function(W){return W!==null}),n7(function(){return rVJ(m.global.document)===1}));
var S=U7d(m.document);return Object.assign({},{beaconFactory:new Op(m.beaconFactory),context:new Op(m),inferredPingId:new Op("lidar2"),timeOnScreenPingId:new Op("lidartos"),binaryContext:new Op(17),binaryVersion:new Op(y),requestSource:D,contextValidationErrors:new Op(m.validate()?null:new sp),contextVisibilityKnown:new Op(S),payloadMapper:new Op(b3u),endOfSessionReason:f,timeOnScreenReason:f,requestMeasurementOnEndOfSession:L,hasImpressionFired:f$A,crossDomainIframeState:new Op(m.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Zz,inFetchLaterBeaconExperiment:Zz,isTurtlex:Zz,turtlexReportEventData:new Op(""),reportFencedFrameEvent:IW,isViewableAttributionEnabled:Zz,inViewableAttributionExperiment:new Op(0),fetchBeaconFactory:IW,supportsPendingBeacon:Zz,supportsFetchLater:Zz,emit:new Op(Z3Z),beginToRenderEvent:new Op(Symbol()),activeViewUnmeasurableEvent:new Op(Symbol()),activeViewViewableEvent:new Op(Symbol()),creativeFound:f$A,immediateUrlPrefixes:new Op(r.immediateUrls),timeOnScreenUrlPrefixes:new Op(r.timeOnScreenUrls),
cpmavUrls:IW,viewableRelayUrls:IW,measurementDeferralState:new Op(2),urlSerializer:new Op(zMD),viewUrlSerializer:new Op(Ccd),isCreativeLoaded:X.pipe(txh(m.queue)),pageVisible:c.pipe(n7(function(W){return!W})),
eosPageVisible:G,timestampedExposureHistory:V.timestampedExposure.pipe(ch(function(W,M){W.push(M);return W},[]))},V,{viewable:JW(m,k),
maxTimeOnScreen:JW(m,w.maxTimeOnScreen),timeOnScreen:JW(m,w.timeOnScreen),maxConsecutiveViewTime:JW(m,w.maxConsecutiveViewTime),consecutiveViewTime:w.consecutiveViewTime.pipe(n7(function(W){return new yE(m.timeProvider,W)})),
totalMeasurementTime:JW(m,w.totalMeasurementTime),totalUnviewedTime:JW(m,w.totalUnviewedTime),userAgentClientHints:yWu(m),clientOrderPingCounter:new Op(new BEz)})},yXu(q,F),ELd(E?gLA(R,I$J):gLA(R,TVd),suJ))};
nZd=function(q){var N=_.MB.apply(1,arguments).filter(Boolean).join("&");if(!N)return q;var b=q.match(/[?&]adurl=/);return b?q.slice(0,b.index+1)+N+"&"+q.slice(b.index+1):q+(q.indexOf("?")<0?"?":"&")+N};
Fz=function(q,N){return N?"&"+q+"="+encodeURIComponent(N):""};
a$e=function(){try{var q,N;return!!((q=window)==null?0:(N=q.top)==null?0:N.location.href)&&!1}catch(b){return!0}};
_.RA=function(q){q&&typeof q.dispose=="function"&&q.dispose()};
_.dE=function(q){for(var N=0,b=arguments.length;N<b;++N){var y=arguments[N];_.pC(y)?_.dE.apply(null,y):_.RA(y)}};
WTd=function(){var q=Swd();q=q===void 0?"bevasrsg":q;return new Promise(function(N){var b=window===window.top?window:a$e()?window:window.top,y=b[q],J;((J=y)==null?0:J.bevasrs)?N(new cY(y.bevasrs)):(y||(y={},y=(y.nqfbel=[],y),b[q]=y),y.nqfbel.push(function(E){N(new cY(E))}))})};
LTz=function(q){var N={c:q.hm,e:q.x7n,mc:q.rxL,me:q.j6v};q.c2&&(N.co={c:q.c2.cKX,a:q.c2.pCU,s:q.c2.x3I});return N};
pCz=function(q){var N,b,y={hm:q.c,x7n:q.e,rxL:(N=q.mc)!=null?N:!1,j6v:(b=q.me)!=null?b:!1};q.co&&(y.c2={cKX:q.co.c,pCU:q.co.a,x3I:q.co.s});return y};
PcA=function(q){return function(){var N;return _.d(function(b){if(b.nextAddress==1)return b.yield(q(),2);N=b.yieldResult;return b.return({f:function(){return N.duv()},
c:function(y){return N.iYQ(y)},
m:function(y){return N.vS(pCz(y))},
mws:function(y){return N.iKb(pCz(y))}})})}};
MIn=function(q,N){var b=Swd();b=b===void 0?"bevasrsg":b;N={s:function(E){var F;return q.snapshot(Object.assign({},E.c&&{hm:E.c},E.s&&{uWx:E.s},{lRQ:(F=E.p)!=null?F:!0}))},
e:function(E){var F;return void((F=q.qGb)==null?void 0:F.call(q,E))},
c:function(E,F){return q.xzx(E,F)},
p:q.uHX,l:function(){return q.jA6()},
wpc:N?PcA(N):void 0};var y=window===window.top?window:a$e()?window:window.top,J=y[b];if(J){J.bevasrs=N;if(J.nqfbel!==void 0)for(b=_.Z(J.nqfbel),y=b.next();!y.done;y=b.next())y=y.value,y(N);J.nqfbel=void 0}else J={},J=(J.bevasrs=N,J.nqfbel=void 0,J),y[b]=J};
AVz=function(q){var N=N===void 0?51:N;var b=[];_.zP(q,oZd,6,_.$N()).forEach(function(y){_.tW(y,2)<=N&&b.push(_.tW(y,1))});
return b};
elh=function(q){var N=N===void 0?51:N;var b=[];_.zP(q,oZd,6,_.$N()).forEach(function(y){_.tW(y,2)>N&&b.push(_.tW(y,1))});
return b};
BVn=function(q){q.then(function(){},function(){})};
mW=function(q){return{fieldType:1,fieldName:q}};
rE=function(q){return{fieldType:2,fieldName:q}};
_.Xz=function(q){return{fieldType:3,fieldName:q}};
HId=function(){function q(){J[0]=1732584193;J[1]=4023233417;J[2]=2562383102;J[3]=271733878;J[4]=3285377520;m=z=0}
function N(r){for(var X=F,V=0;V<64;V+=4)X[V/4]=r[V]<<24|r[V+1]<<16|r[V+2]<<8|r[V+3];for(V=16;V<80;V++)r=X[V-3]^X[V-8]^X[V-14]^X[V-16],X[V]=(r<<1|r>>>31)&4294967295;r=J[0];var G=J[1],w=J[2],D=J[3],k=J[4];for(V=0;V<80;V++){if(V<40)if(V<20){var f=D^G&(w^D);var L=1518500249}else f=G^w^D,L=1859775393;else V<60?(f=G&w|D&(G|w),L=2400959708):(f=G^w^D,L=3395469782);f=((r<<5|r>>>27)&4294967295)+f+k+L+X[V]&4294967295;k=D;D=w;w=(G<<30|G>>>2)&4294967295;G=r;r=f}J[0]=J[0]+r&4294967295;J[1]=J[1]+G&4294967295;J[2]=
J[2]+w&4294967295;J[3]=J[3]+D&4294967295;J[4]=J[4]+k&4294967295}
function b(r,X){if(typeof r==="string"){r=unescape(encodeURIComponent(r));for(var V=[],G=0,w=r.length;G<w;++G)V.push(r.charCodeAt(G));r=V}X||(X=r.length);V=0;if(z==0)for(;V+64<X;)N(r.slice(V,V+64)),V+=64,m+=64;for(;V<X;)if(E[z++]=r[V++],m++,z==64)for(z=0,N(E);V+64<X;)N(r.slice(V,V+64)),V+=64,m+=64}
function y(){var r=[],X=m*8;z<56?b(R,56-z):b(R,64-(z-56));for(var V=63;V>=56;V--)E[V]=X&255,X>>>=8;N(E);for(V=X=0;V<5;V++)for(var G=24;G>=0;G-=8)r[X++]=J[V]>>G&255;return r}
for(var J=[],E=[],F=[],R=[128],c=1;c<64;++c)R[c]=0;var z,m;q();return{reset:q,update:b,digest:y,digestString:function(){for(var r=y(),X="",V=0;V<r.length;V++)X+="0123456789ABCDEF".charAt(Math.floor(r[V]/16))+"0123456789ABCDEF".charAt(r[V]%16);return X}}};
EfJ=function(q,N){N=N===void 0?qVA:N;if(!NOD){var b;q=(b=q.navigator)==null?void 0:b.userAgentData;if(!q||typeof q.getHighEntropyValues!=="function"||q.brands&&typeof q.brands.map!=="function")return Promise.reject(Error("ua"));b4C((q.brands||[]).map(function(J){var E=new yzz;E=_.Up(E,1,J.brand);return _.Up(E,2,J.version)}));
typeof q.mobile==="boolean"&&_.VE(JzJ,2,q.mobile);NOD=q.getHighEntropyValues(N)}var y=new Set(N);return NOD.then(function(J){var E=JzJ.clone();y.has("platform")&&_.Up(E,3,J.platform);y.has("platformVersion")&&_.Up(E,4,J.platformVersion);y.has("architecture")&&_.Up(E,5,J.architecture);y.has("model")&&_.Up(E,6,J.model);y.has("uaFullVersion")&&_.Up(E,7,J.uaFullVersion);return E.serialize()}).catch(function(){return JzJ.serialize()})};
jG=function(q,N,b,y){this.initialValue_=q;this.maxValue_=N;this.currBaseValue_=this.currValue_=q;this.randomFactor_=b||0;this.backoffFactor_=y||2};
xN=function(q){this.src=q;this.listeners={};this.typeCount_=0};
RVd=function(){for(var q;q=gfA.remove();){try{q.fn.call(q.scope)}catch(N){EJ(N)}Z4n.put(q)}Fau=!1};
_.dgJ=function(q){switch(q){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}};
czn=function(q){switch(q){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""}};
_.u$A=function(){};
xgA=function(q,N,b,y){q=zVe($gJ(tAJ(new _.vY(1828,"0"),q),new mgd)).disableWithCredentials();N.length&&rzJ(q,X4A(new VAd,N));y!==void 0&&(q.destinationUrl=y);var J=new jOZ(1828,"","",!1,"",q.build());_.YN(J,q);var E=new QE({flush:function(F){try{J.flush(F)}catch(R){b(R)}}});
E.addOnDisposeCallback(function(){setTimeout(function(){try{E.snapshotAndFlush()}finally{J.dispose()}})});
E.invocationLimit=1E5;E.flushInterval=3E4;E.JSC$9868_flushTimer.setInterval(3E4);return E};
ON=function(){var q,N,b;return(b=(q=globalThis.performance)==null?void 0:(N=q.now)==null?void 0:N.call(q))!=null?b:Date.now()};
YVd=function(q,N){if(q.disable)return new vfC;N=N?AVz(N):[];q={eU:q.eU,bCF:q.j8q,iZv:q.jWe,destinationUrl:q.destinationUrl,wGz:q.wGz,i1B:q.i1B};N=N===void 0?[]:N;return new G1d(q,N)};
QOn=function(q){if(!q)return null;q=_.wE(q,2);return q===null||q===void 0?null:BZ(q)};
_.O4J=function(q){if(!q)return null;q=_.wE(q,4);return q===null||q===void 0?null:_.hB(q)};
lMn=function(q,N){return N?w4A(N):q?i4n(q):Promise.resolve()};
w4A=function(q){return new Promise(function(N,b){var y=_.iC("SCRIPT"),J=_.O4J(q);_.R9(y,J);y.onload=function(){_.lC(y);N()};
y.onerror=function(){_.lC(y);b(Error("Fa"))};
(KF("HEAD")[0]||document.documentElement).appendChild(y)})};
i4n=function(q){return new Promise(function(N){var b=_.iC("SCRIPT");if(q){var y=_.wE(q,6);y=y===null||y===void 0?null:_.g0(y)}else y=null;_.Fw(b,y);(KF("HEAD")[0]||document.documentElement).appendChild(b);_.lC(b);N()})};
Dz=function(q,N,b){var y,J=new Promise(function(E){y=setTimeout(E,N)});
return Promise.race([q.finally(function(){return void clearTimeout(y)}),
J.then(b)])};
KaD=function(q,N){try{return globalThis.sessionStorage.setItem(q,N),!0}catch(b){return!1}};
DgJ=function(q,N,b,y){N=N===void 0?0:N;b=b===void 0?q.length:b;var J=0;for(y&&(J=DgJ(y));N<b;N++)y=typeof q==="string"?q.charCodeAt(N):q[N],J=hVJ(31,J)+y|0;return J};
k1Z=function(q,N){return[DgJ(q,0,q.length>>1,N),DgJ(q,q.length>>1)]};
UgD=function(q){var N=_.Z(k1Z(q,hW));q=N.next().value;N=N.next().value;return q.toString(16)+N.toString(16)};
fMR=function(q,N){var b=k1Z(N);q=new Uint32Array(q.buffer);N=q[0];var y=_.Z(b);b=y.next().value;y=y.next().value;for(var J=1;J<q.length;J+=2){for(var E=N,F=J,R=b,c=y,z=0;z<22;z++)F=F>>>8|F<<24,F+=E|0,F^=R+38293,E=E<<3|E>>>29,E^=F,c=c>>>8|c<<24,c+=R|0,c^=z+38293,R=R<<3|R>>>29,R^=c;E=[E,F];q[J]^=E[0];J+1<q.length&&(q[J+1]^=E[1])}};
Cvn=function(q,N,b,y,J){var E=(4-(hW.length+b.length)%4)%4,F=new Uint8Array(4+E+hW.length+4+b.length),R=new DataView(F.buffer),c=0;R.setUint32(c,Math.random()*4294967295);c=c+4+E;F.set(hW,c);c+=hW.length;R.setUint32(c,J);F.set(b,c+4);fMR(F,y);return q.insert(N,function(z){return void globalThis.sessionStorage.removeItem(z)})?KaD(N,_.Uf(F))?"s":"t":"i"};
IMD=function(q,N){var b=globalThis.sessionStorage.getItem(q);if(!b)return["m"];try{var y=_.HA(b);fMR(y,N)}catch(J){return globalThis.sessionStorage.removeItem(q),["c"]}for(N=4;N<7&&y[N]===0;)N++;for(b=0;b<hW.length;b++)if(y[N++]!==hW[b])return globalThis.sessionStorage.removeItem(q),["d"];b=(new DataView(y.buffer)).getUint32(N);return Math.floor(Date.now()/1E3)>=b?(globalThis.sessionStorage.removeItem(q),["e"]):["a",new Uint8Array(y.buffer,N+4)]};
TOJ=function(q){return globalThis.TextEncoder?(new TextEncoder).encode(q):_.kN(q)};
sOu=function(q){var N=q,b;return function(){if(N){var y=N;N=void 0;b=y.apply(this,arguments)}return b}};
aMn=function(q){return Il(function(N){if(N instanceof q)return!0;var b,y,J=N==null?void 0:(b=N.ownerDocument)==null?void 0:(y=b.defaultView)==null?void 0:y[q.name];return nfn(J)&&N instanceof J})};
_.TP=function(q,N,b){_.UN.call(this);this.JSC$10082_listener_=q;this.JSC$10082_interval_=N||0;this.handler_=b;this.callback_=(0,_.fF)(this.JSC$10084_doAction_,this)};
_.sN=function(q){q=SVR(q);return _.hB(q)};
SVR=function(q){return q===null?"null":q===void 0?"undefined":q};
Lan=function(q){if(q&&q.focus)if(q!==document.activeElement)q.focus();else return WaJ(function(){return _.d(function(N){document.activeElement&&document.activeElement.blur();return N.return(WaJ(function(){q.focus()}))})})};
_.p4Z=function(q){var N=N===void 0?5:N;setTimeout(function(){var b;return _.d(function(y){y.nextAddress==1&&(b=document.activeElement);if(y.nextAddress!=5)return(document.activeElement===b||document.activeElement===document.body)&&N>=0&&q?y.yield(Lan(q),5):y.jumpTo(0);if(document.activeElement===q)return y.return();q=q.parentElement;--N;return y.jumpTo(2)})},15)};
WaJ=function(q){return new Promise(function(N){requestAnimationFrame(function(){N(q())})})};
MAu=function(q){if(_.aA)q(_.aA);else{var N;((N=Pvu)!=null?N:Pvu=[]).push(q)}};
WY=function(){!_.aA&&_.SG&&_.ofd(_.SG());return _.aA};
_.ofd=function(q){_.aA=q;var N;(N=Pvu)==null||N.forEach(MAu);Pvu=void 0};
_.LF=function(q){_.aA&&_.aA.beforeLoadModuleCode(q)};
_.pF=function(){_.aA&&_.aA.JSC$11135_setLoaded()};
PY=function(q){return koA(q)?Number(q):String(q)};
Azd=function(q){this.action=q;this.wfv=!1};
eVn=function(q,N){Azd.call(this,"set-drive-options");this.appId=q;this.appOrigin=N};
BOA=function(q){Azd.call(this,"visibility");this.visible=q};
H4C=function(q,N,b){MI.call(this,q,N,b)};
qan=function(q){oA.call(this,q)};
NDd=function(q){q=q&&q.getWindow()||window;return q.gadgets&&q.gadgets.rpc};
ySd=function(q,N){var b=N&&N.getWindow()||window;if(NDd(N))q();else if(bYA)bYA.push(q);else var y=bYA=[q],J=b.setInterval(function(){if(NDd(N)){b.clearInterval(J);for(var E=0;E<y.length;E++)y[E]();bYA=null}},100)};
E5n=function(q,N){var b=new AW(q);_.YN(N,b);var y={passive:!1};N.listen(b,"mousewheel",function(J){return void JSA(q,J)},y).listen(q,"scroll",function(J){return void JSA(q,J)},y)};
JSA=function(q,N){var b;a:{for(b=N.target;b;){if(b.nodeType==1){var y=_.eG(b,"overflowY");if(y=="auto"||y=="scroll")break a}b=b.parentNode}b=null}if(!b||!_.BY(q,b)||b.scrollHeight==b.clientHeight||N.deltaY>0&&Math.abs(b.scrollTop-(b.scrollHeight-b.clientHeight))<=1||N.deltaY<0&&b.scrollTop==0)N.preventDefault(),N.stopPropagation()};
EL=function(q,N,b,y,J,E,F,R,c){R=R===void 0?!1:R;c=c===void 0?!1:c;MI.call(this,void 0,void 0,void 0);MI.call(this,E?E+" picker modal-dialog":"picker modal-dialog",!0,b);_.HY(q,"protocol");this.iframeManager_=new g5d;this.targetId_=q0();this.rpcToken_=q0();q=_.N0(q);_.b5(q,"hostId");this.useGapi_=!c;R&&_.yS(q,"fv2","true");this.setUrl(q.toString());this.preferredDialogWidth_=y;this.preferredDialogHeight_=J;y!==void 0||J!==void 0?y=!0:(y=_.b5(_.N0(q.toString()),"hostId"),ZYJ||(ZYJ=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),
y=!ZYJ.has(y));this.autoSizeDialog_=y;this.JSC$10272_gadgetsDomHelper_=F||this.JSC$10223_dom_;N&&(F=this.JSC$10272_gadgetsDomHelper_,N=_.b5(_.N0(this.JSC$10274_url_),"grugl")=="true"?FAJ:Rwe,NDd(F)||(F=F||k7(document),y=F.createElement("SCRIPT"),_.R9(y,N),y.type="text/javascript",F.JSC$9407_document_.body.appendChild(y)));q=q.toString();N=null;F=q.indexOf("/picker?");F>-1?N=q.substring(0,F+8-1):ZR(q,"/picker")&&(N=q);N&&this.setRelayUrl(N+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=
null;this.buttonEl_&&(this.buttons_?(q=this.buttons_,q.JSC$10257_element_=this.buttonEl_,q.render()):_.d0(this.buttonEl_,dmd),_.JX(this.buttonEl_,!!this.buttons_))};
_.$mR=function(q){var N=N===void 0?cSD:N;var b=_.en(q),y=function(E){E=_.Z(E);E.next();E=gn(E);return N(b,E)},J=function(E){var F=_.Z(E);
E=F.next().value;F=gn(F);return q.apply(E,F)};
return function(){var E=_.MB.apply(0,arguments),F=this||_.JZ,R=ulJ.get(F);R||(R={},ulJ.set(F,R));return zwu(R,[this].concat(_.a9(E)),J,y)}};
Zu=function(q){var N={};q=q.replace(/\r/g,"").split("\n");for(var b=0;b<q.length;b++){var y=q[b],J=y.indexOf(":");J<0||(N[y.substring(0,J)]=y.substring(J+2,y.length))}return N};
tdh=function(q,N,b){b=b===void 0?function(){}:b;
return q?N():b()};
_.rSd=function(q){var N;return((N=mmn.documentOverride)!=null?N:q).__wizdispatcher};
_.Re=function(q){var N=F8;F8=q;return N};
_.VdC=function(q){return q===Xvu||(q==null?void 0:q.name)==="\u0275NotFound"};
_.dn=function(q,N){var b;if((b=q)==null?0:b.isDisposed)throw Error("jb`"+String(q.debugName));for(;q!==void 0;){b=q;if(b.retrieve)return b.retrieve(N,{optional:!0});q=q.parent}return Xvu};
c1=function(q){return{"\u0275prov":{providedIn:"root",token:Symbol(q),factory:void 0,value:void 0}}};
_.jwh=function(q){var N=F8;if(!N){switch(q===void 0?3:q){case 0:q=Error("ib");break;case 1:q=Error("kb");break;case 2:q=Error("lb");break;default:q=Error("mb")}throw q;}return N};
xmD=function(q){var N=_.Re(q);q={};return q[Symbol.dispose]=function(){_.Re(N)},q};
v5e=function(q,N){q.disposables||(q.disposables=[]);q.disposables.push(N)};
u5=function(q){var N=F8;N&&!N.isDisposed&&(v5e(N,q),q.parent=N)};
Yan=function(q){if(q.disposables){for(var N=_.Z(q.disposables),b=N.next();!b.done;b=N.next())b=b.value,typeof b==="function"?b():GnJ(b);q.disposables.length=0}};
GnJ=function(q){if(!q.isDisposed){q.isDisposed=!0;var N;(N=q[Symbol.dispose])==null||N.call(q);delete q.parent;Yan(q)}};
knA=function(q){var N={retrieve:function(b){switch(b.\u0275prov.token){case Qwe.\u0275prov.token:var y=q.asyncDeps;break;case _.OYh.\u0275prov.token:y=q.rootElement;break;case wvd.\u0275prov.token:y=q.modelRootElement;break;case iYA.\u0275prov.token:y=q.appContext;break;case l3D.\u0275prov.token:y=q.rendererData;break;case KAe.\u0275prov.token:y=q.injectingConstructor;break;case DmJ.\u0275prov.token:y=q.dispatcher}if(y)b=y;else a:{for(y=N.parent;y;){var J=y;if(J.retrieve){b=J.retrieve(b);break a}y=
y.parent}y=b.\u0275prov.token;J=hwJ[y];J!==void 0?b=J:(J=b.\u0275prov.providedIn,b.\u0275prov.factory?(b=b.\u0275prov.factory(),y&&J==="root"&&(hwJ[y]=b)):b=Xvu)}return b}};
u5(N);return N};
Umn=function(){var q=_.jwh(1),N=_.dn(q,iYA);if(!_.VdC(N))return N;q=_.dn(q,DmJ);if(!_.VdC(q))return q.getOptionalAppContext()};
f3J=function(q){if(typeof document!=="undefined"&&document&&document.getElementById&&(q=document.getElementById(q))){var N=q.tagName.toUpperCase();if(N=="SCRIPT"||N=="LINK")return q}return null};
I3A=function(q,N){if((q=q===void 0?"":q)&&N)throw Error("sb");var b="";var y=_.JZ._F_jsUrl;(q=N||f3J(q))&&(b=q.src?q.src:q.getAttribute("href"));if(y&&b){if(y!=b)throw Error("tb`"+y+"`"+b);b=y}else b=y||b;if(!C7u(b))throw Error("ub");return b};
a3J=function(){if(!TDR){TDR=!0;try{var q=I3A(_.JZ._F_jsUrl?"":"base-js")}catch(y){return}var N=swe(n5h(q)),b=Object.keys(N);b.length!==0&&MAu(function(y){for(var J=_.Z(b),E=J.next();!E.done;E=J.next()){E=E.value;for(var F=_.Z(Object.keys(N[E])),R=F.next();!R.done;R=F.next())y.addExtraEdge(E,R.value)}})}};
WAz=function(){var q=Object.assign({},Sau);Object.getOwnPropertyNames(Sau).forEach(function(N){z2[N]!==void 0&&(q[N]=z2[N])});
return q};
LAA=function(q,N){if(z2.enablePerformanceTiming){var b,y;(y=(b=performance).mark)==null||y.call(b,q+"Start__"+N)}};
pve=function(q,N){if(z2.enablePerformanceTiming){var b,y;(y=(b=performance).measure)==null||y.call(b,q+"__"+N,q+"Start__"+N)}};
P7J=function(q,N,b){var y;return q&&N?q+"__"+N:(y=q!=null?q:N)!=null?y:b};
o5J=function(q,N){var b=Object.create(Mdh);b.debugName=N;!F8||u5(b);N=_.Re(b);try{q(b)}finally{_.Re(N)}return function(){return void GnJ(b)}};
ewC=function(q){return $L(q)&&ASn in q};
BDh=function(q,N){return Object.is(q,N)};
mR=function(q){var N=tX;tX=q;return N};
q2J=function(q){if(rn)throw Error("Z");if(tX!==null){var N=tX.producersTail;if(N===void 0||N.producer!==q){var b=void 0,y=tX.recomputing;if(y&&(b=N!==void 0?N.nextProducer:tX.producers,b!==void 0&&b.producer===q)){tX.producersTail=b;b.lastReadVersion=q.version;return}var J=q.consumersTail,E;if(!(E=J===void 0||J.consumer!==tX)){if(y){a:{E=tX;y=E.producersTail;if(y!==void 0){E=E.producers;do{if(E===J){y=!0;break a}if(E===y)break;E=E.nextProducer}while(E!==void 0)}y=!1}y=!y}E=y}E&&(y=VS(tX),b={producer:q,
consumer:tX,nextProducer:b,prevConsumer:J,lastReadVersion:q.version,nextConsumer:void 0},tX.producersTail=b,N!==void 0?N.nextProducer=b:tX.producers=b,y&&HYn(q,b))}}};
xL=function(q){if(!VS(q)||q.dirty)if(q.dirty||q.lastCleanEpoch!==jx)(q.producerMustRecompute(q)||NLC(q))&&q.producerRecomputeValue(q),q.dirty=!1,q.lastCleanEpoch=jx};
bod=function(q){if(q.consumers!==void 0){var N=rn;rn=!0;try{for(var b=q.consumers;b!==void 0;b=b.nextConsumer){var y=b.consumer;y.dirty||(q=void 0,y.dirty=!0,bod(y),(q=y.consumerMarkedDirty)==null||q.call(y,y))}}finally{rn=N}}};
yrd=function(){var q;return((q=tX)==null?void 0:q.consumerAllowSignalWrites)!==!1};
JrJ=function(q){q&&(q.producersTail=void 0,q.recomputing=!0);return mR(q)};
gyR=function(q){q.recomputing=!1;var N=q.producersTail,b=N!==void 0?N.nextProducer:q.producers;if(b!==void 0){if(VS(q)){do b=EyD(b);while(b!==void 0)}N!==void 0?N.nextProducer=void 0:q.producers=void 0}};
NLC=function(q){for(q=q.producers;q!==void 0;q=q.nextProducer){var N=q.producer,b=q.lastReadVersion;if(b!==N.version)return!0;xL(N);if(b!==N.version)return!0}return!1};
HYn=function(q,N){var b=q.consumersTail,y=VS(q);b!==void 0?(N.nextConsumer=b.nextConsumer,b.nextConsumer=N):(N.nextConsumer=void 0,q.consumers=N);N.prevConsumer=b;q.consumersTail=N;if(!y)for(q=q.producers;q!==void 0;q=q.nextProducer)HYn(q.producer,q)};
EyD=function(q){var N=q.producer,b=q.nextProducer,y=q.nextConsumer,J=q.prevConsumer;q.nextConsumer=void 0;q.prevConsumer=void 0;y!==void 0?y.prevConsumer=J:N.consumersTail=J;if(J!==void 0)J.nextConsumer=y;else if(N.consumers=y,!VS(N))for(q=N.producers;q!==void 0;)q=EyD(q);return b};
VS=function(q){return q.consumerIsAlwaysLive||q.consumers!==void 0};
F0u=function(q){var N=Object.create(Zod);N.computation=q;q=function(){xL(N);q2J(N);if(N.value===v1)throw N.error;return N.value};
q[G2]=N;return q};
ufu=function(q,N){var b=Object.create(RrZ);b.value=q;N!==void 0&&(b.equal=N);q=function(){q2J(b);return b.value};
q[G2]=b;return[q,function(y){return d6A(b,y)},
function(y){yrd()||crd(b);d6A(b,y(b.value))}]};
d6A=function(q,N){yrd()||crd(q);if(!q.equal(q.value,N)){q.value=N;q.version++;jx++;bod(q);var b;(b=zrd)==null||b(q)}};
t0d=function(q,N,b){var y=Object.create($6d);y.source=q;y.computation=N;b!=void 0&&(y.equal=b);q=function(){xL(y);q2J(y);if(y.value===v1)throw y.error;return y.value};
q[G2]=y;return q};
_.YL=function(q){var N=mR(null);try{return q()}finally{mR(N)}};
_.QS=function(q,N,b){b=b===void 0?"":b;q=ufu(q,N==null?void 0:N.equals);var y=q[0],J=y[G2];J.debugName=P7J(N==null?void 0:N.debugName,b,"[signal]");if(!z2.enablePerformanceTiming)return q;var E=q[1],F=q[2];return[y,function(R){m6J(function(){return void E(R)},J)},
function(R){m6J(function(){return void F(R)},J)}]};
m6J=function(q,N){LAA("signalSet",N.debugName);try{q()}finally{pve("signalSet",N.debugName)}};
X_d=function(q,N){var b=_.Z(_.QS(q,void 0,"cPpJzc"));q=b.next().value;b=b.next().value;q[rrA]=b;q[OL]=N;return q};
V0n=function(q){return!!q&&typeof q==="object"&&Object.getPrototypeOf(q)===Object.prototype};
jpZ=function(q){return typeof q==="function"&&rrA in q&&typeof q[rrA]==="function"};
x6J=function(q,N){Object.defineProperty(q,OL,{get:function(){return N}})};
i5=function(q,N){if(wn(q)){var b=q.map(function(E){return i5(E,N)});
x6J(b,N);return b}if(V0n(q)){b={};q=_.Z(Object.entries(q));for(var y=q.next();!y.done;y=q.next()){var J=_.Z(y.value);y=J.next().value;J=J.next().value;b[y]=i5(J,N)}x6J(b,N);return b}return X_d(q,N)};
vyu=function(q){if(wn(q))return q.map(function(J){return vyu(J)});
if(V0n(q)){var N={};q=_.Z(Object.entries(q));for(var b=q.next();!b.done;b=q.next()){var y=_.Z(b.value);b=y.next().value;y=y.next().value;N[b]=vyu(y)}return N}return jpZ(q)?q():q};
Y2d=function(){var q={height:0,width:0};if(!V0n(q))throw Error("Jb");var N=Symbol("Kb");return[i5(q,N),function(b,y){if(b[OL]===N)if(typeof y==="function"){var J=[].concat(_.a9(vyu(b)));y=y(J)||J;G6D(b,[].concat(_.a9(y)))}else G6D(b,y);else throw Error("Lb");}]};
G6D=function(q,N){if(jpZ(q))q[rrA](N);else if(wn(q)&&wn(N))N=i5(N,q[OL]),q.length=0,q.push.apply(q,_.a9(N));else if((V0n(q)||wn(q))&&(wn(N)||typeof N==="object"&&N!==null)){N=_.Z(Object.entries(N));for(var b=N.next();!b.done;b=N.next()){var y=_.Z(b.value);b=y.next().value;y=y.next().value;var J=q,E=J[b];Object.hasOwn(q,b)?G6D(E,y):J[b]=i5(y,q[OL])}}else throw Error("Mb");};
Qpn=function(q){return Object.create(Object.assign({},l5,q))};
w_u=function(){var q;return(q=OoJ)!=null?q:OoJ=Qpn({consumerAllowSignalWrites:!0})};
_.K3=function(q,N,b){b=b===void 0?"":b;q=F0u(q);var y=q[G2];y.debugName=P7J(N==null?void 0:N.debugName,b,"[computed]");(N==null?void 0:N.equals)!=null&&(y.equal=N.equals);return q};
Du=function(q){var N=mR(iou);try{q()}finally{mR(N)}};
K0A=function(q,N,b){var y=lyD(q);hX={name:b?y+" ("+b+")":y,isReactive:q.componentType!==kL,parent:hX};q=N();hX=hX.parent;return q};
UL=function(){var q=hX;return q?q.isReactive:!1};
C3=function(q,N,b){var y=hX;N&&(hX=N);try{return b==null?q():q.call(b)}catch(E){q=E;f3(q,hX);if(q!==D6n){hrD=hX;N=[];for(b=F8;b;){var J=void 0;N.push((J=b.debugName)!=null?J:"[context]");J=void 0;b=(J=b.parent)!=null?J:null}k6J=N.reverse()}D6n=q;throw q;}finally{hX=y}};
f3=function(q,N){try{var b=U6J(N);if(b&&!q.componentStack&&(q.componentStack=b,z2.enableComponentStacksInErrorMessages)){var y=q.message+"\n\nComponent stack: "+b;q.stack&&(q.stack=q.stack.replace(q.message,y));q.message=y}}catch(J){}};
U6J=function(q){if($L(q)&&q.name!==void 0&&q.isReactive!==void 0&&q.parent!==void 0||q===null){for(var N=0,b="";N<20&&q;)b+=q.name+" > ",q=q.parent,N++;q=b.slice(0,-3)}else if(z2.enableContextBasedComponentStacks){a:{for(q=q===void 0?F8:q;q;){if(ewC(q))break a;N=void 0;q=(N=q.parent)!=null?N:null}q=null}q=q.getComponentStack().slice(0,20).join(" > ")}else q="";return q};
lyD=function(q){return q.debugName||q.name||"[component]"};
spn=function(q){switch(q.onInitType){case fyn:C0n.schedule(q);break;case IyJ:z2.enableQueueEffectAndOnInitInitialRuns?TLJ.enqueue(q):TLJ.schedule(q);break;default:_.ol(q.onInitType)}};
R3z=function(q){if(!q.isDisposed)switch(q.effectType){case Ie:nyJ.schedule(q);break;case ayA:S2z.schedule(q);break;case ZQC:z2.enableQueueEffectAndOnInitInitialRuns||q.hasRun?FnA.enqueue(q):FnA.schedule(q);break;default:_.ol(q.effectType)}};
u0C=function(){if(T2>0)z2.flushRenderEffectsDuringRender&&nyJ.flush();else{for(var q=_.Z(dru),N=q.next();!N.done;N=q.next())N.value.flush();cDJ()}};
cDJ=function(){_.d(function(q){if(q.nextAddress==1)return q.yield(Promise.resolve(),2);for(var N=_.Z(z3C),b=N.next();!b.done;b=N.next())b.value.flush();_.hj(q)})};
t6J=function(q){sL=!0;try{for(var N=_.Z(q),b=N.next();!b.done;b=N.next()){for(var y=b.value,J=[y],E=y;E.parent!==void 0;)E=E.parent,$ru(E)&&q.has(E)&&J.push(E);for(;J.length>0;){var F=J.pop();q.delete(F);F.run()}}}finally{sL=!1}};
n3=function(q){T2--;if(q){q=_.Z(mrh);for(var N=q.next();!N.done;N=q.next())N.value.clear()}else T2>0||sL&&!z2.flushRenderEffectsDuringRender||u0C()};
rDA=function(q,N,b){N=Object.create(N);q&&(N.effectFn=q);b&&(N.debugName=b);u5(N);N.componentStack=hX;return N};
_.ae=function(q,N){q=rDA(q,XKD,N);R3z(q)};
_.Sx=function(q,N){q=rDA(q,V6A,N);R3z(q)};
jCd=function(q){return q};
xrC=function(q,N){function b(){return J()}
var y=y===void 0?"":y;var J=typeof q==="function"?t0d(q,jCd,N==null?void 0:N.equals):t0d(q.source,q.computation,N==null?void 0:N.equals);var E=J[G2];E.debugName=P7J(N==null?void 0:N.debugName,y,"[linkedSignal]");b[G2]=E;return[b,function(F){m6J(function(){xL(E);d6A(E,F);E.dirty=!1;E.lastCleanEpoch=jx},E)},
function(F){m6J(function(){xL(E);yrd()||crd(E);d6A(E,F(E.value));E.dirty=!1;E.lastCleanEpoch=jx},E)}]};
_.W1=function(q){var N=F8;if(N){var b=hX;v5e(N,function(){var y=mR(w_u());try{C3(function(){return void q()},b)}catch(J){throw z2.enableContextBasedComponentStacks&&f3(J),J;
}finally{mR(y)}})}};
L3=function(q,N){var b={};(N===void 0||N)&&u5(b);N=_.Re(b);try{q(b)}finally{_.Re(N)}return function(){return void GnJ(b)}};
_.p3=function(q){return typeof q==="function"?q():(q==null?0:q[vFu])?q.get():q};
Ghe=function(q){if(F8)throw Error("nb");L3(q,!1)};
P1=function(q,N){q=_.Re(q);try{return _.YL(N)}finally{_.Re(q)}};
M0=function(q,N){var b=U6J(hrD),y,J;var E=(J=(y=k6J)==null?void 0:y.slice())!=null?J:[];N={componentStack:b,contextTrace:E,errorSeverity:3,featureFlags:WAz(),tagName:N};return[q,N]};
OQJ=function(q,N,b){if(Object.hasOwnProperty.call(YXu,q)&&(q=YXu[q],Object.hasOwnProperty.call(q,N)&&(q=q[N],q instanceof Array))){for(var y=null,J=!1,E=0,F=q.length;E<F;++E){var R=q[E],c=R.contingentAttribute;if(!c)return R.contract;y===null&&(y={});c=Object.hasOwnProperty.call(y,c)?y[c]:y[c]=b(c);if(c===R.requiredValue)return R.contract;c==null&&(J=!0)}if(J)return null}N=QCe[N];return typeof N==="number"?N:null};
lmn=function(q,N,b){var y=null;(q=wKh[q])&&(y=q[N]);return typeof y!=="number"&&((q=wKh["*"])&&(y=q[N]),typeof y!=="number")?!1:!0===iQD[y][String(b).toLowerCase()]};
DrA=function(q,N){N=OQJ(q.toLowerCase(),N,function(){var y;(y=z2.handleError)==null||y.call.apply(y,[z2].concat(_.a9(M0(Error("Tb"),q.toLowerCase()))))});
if(N===null)return null;var b;return(b=KnC[N])!=null?b:null};
h3h=function(q,N,b){if(b===null||b===void 0)return b;N=N.toLowerCase();q=DrA(q,N);return q===null?b:q(N,b)};
khd=function(){};
ex=function(q,N){for(;q.length>N;)q.pop()};
UrJ=function(q){q=Array(q);ex(q,0);return q};
B1=function(q,N,b){if(b==null)q.removeAttribute(N);else{var y;(y=N.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":N.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?q.setAttributeNS(y,N,b):q.setAttribute(N,b)}};
fmn=function(q,N,b){q[N]=b};
Ime=function(q,N,b){q=q.style;if(typeof b==="string")q.cssText=b;else{q.cssText="";for(var y in b)if(C_R.call(b,y)){N=q;var J=y,E=b[y];J.indexOf("-")>=0?N.setProperty(J,E):N[J]=E}}};
TId=function(q,N,b){var y=typeof b;y==="object"||y==="function"?q[N]=b:B1(q,N,b)};
sCd=function(){var q=new khd;q[H1.default]=TId;q.style=Ime;return q};
nFd=function(q,N,b,y){(y[N]||y[H1.default])(q,N,b)};
SXJ=function(q,N,b){N=new amA(N,b);return q.__incrementalDOMData=N};
bc=function(q,N){if(q.__incrementalDOMData)return q.__incrementalDOMData;var b=q.nodeType===1?q.localName:q.nodeName,y=q.nodeType===1?q.getAttribute("key"):null;N=SXJ(q,b,q.nodeType===1?y||N:null);if(q.nodeType===1&&(q=q.attributes,b=q.length)){y=N._attrsArr||(N._attrsArr=UrJ(b*2));for(var J=0,E=0;J<b;J+=1,E+=2){var F=q[J],R=F.value;y[E]=F.name;y[E+1]=R}}return N};
WnJ=function(q,N,b,y,J){return N==b&&y==J};
Lne=function(q){for(var N=yq,b=JV();b!==q;){var y=b.nextSibling;N.removeChild(b);Ew.deleted.push(b);b=y}};
JV=function(){return gV?gV.nextSibling:yq.firstChild};
Z$=function(){gV=JV()};
M6n=function(q,N,b){Z$();var y;a:{if(y=gV){do{var J=y,E=q,F=N,R=bc(J,F);if(pKA(J,E,R.nameOrCtor,F,R.key))break a}while(N&&(y=y.nextSibling))}y=null}y||(q==="#text"?(b=FC.createTextNode(""),SXJ(b,"#text",null),q=b):(y=FC,J=yq,typeof q==="function"?y=new q:y=(J=q==="svg"?"http://www.w3.org/2000/svg":q==="math"?"http://www.w3.org/1998/Math/MathML":J==null||bc(J).nameOrCtor==="foreignObject"?null:J.namespaceURI)?y.createElementNS(J,q):y.createElement(q),SXJ(y,q,N),q=y,b&&q.setAttribute("nonce",b)),Ew.created.push(q),
y=q);b=y;if(b!==gV){if(P_Z.indexOf(b)>=0)for(q=yq,N=b.nextSibling,y=gV;y!==null&&y!==b;)J=y.nextSibling,q.insertBefore(y,N),y=J;else yq.insertBefore(b,gV);gV=b}};
oFA=function(q,N,b){M6n(q,N,b);yq=gV;gV=null;return yq};
ADJ=function(){Lne(null);gV=yq;yq=yq.parentNode};
HQJ=function(q,N){N=N===void 0?{}:N;var b=N.matches===void 0?WnJ:N.matches;return function(y,J,E){var F=Ew,R=FC,c=P_Z,z=Ru,m=dV,r=gV,X=yq,V=pKA;FC=y.ownerDocument;Ew=new e3A(y);pKA=b;Ru=[];dV=[];gV=null;var G=yq=y.parentNode,w,D=BIh.call(y);if((w=D.nodeType===11||D.nodeType===9?D.activeElement:null)&&y.contains(w)){for(D=[];w!==G;)D.push(w),w=w.parentNode||(G?w.host:null);G=D}else G=[];P_Z=G;try{return q(y,J,E)}finally{y=Ew,cC&&y.deleted.length>0&&cC(y.deleted),FC=R,Ew=F,pKA=V,Ru=z,dV=m,gV=r,yq=X,
P_Z=c}}};
q7z=function(q,N,b,y){uc.push(nFd);uc.push(q);uc.push(N);uc.push(b);uc.push(y)};
bAJ=function(q,N,b){var y=dV;N=N._attrsArr||(N._attrsArr=UrJ(y.length));for(var J=!N.length||!1,E=0;E<y.length;E+=2){var F=y[E];if(J)N[E]=F;else if(N[E]!==F)break;var R=y[E+1];if(J||N[E+1]!==R)N[E+1]=R,q7z(q,F,R,b)}if(E<y.length||E<N.length){for(E=J=E;E<N.length;E+=2)zf[N[E]]=N[E+1];for(E=J;E<y.length;E+=2)J=y[E],F=y[E+1],zf[J]!==F&&q7z(q,J,F,b),N[E]=J,N[E+1]=F,delete zf[J];ex(N,y.length);for(var c in zf)q7z(q,c,void 0,b),delete zf[c]}q=Ndd;Ndd=b=uc.length;for(c=q;c<b;c+=5)(0,uc[c])(uc[c+1],uc[c+
2],uc[c+3],uc[c+4]);Ndd=q;ex(uc,q);ex(y,0)};
y9C=function(q){M6n("#text",null);var N=gV;var b=bc(N);if(b.text!==q){b=b.text=q;for(var y=1;y<arguments.length;y+=1)b=(0,arguments[y])(b);N.data!==b&&(N.data=b)}};
dLZ=function(q,N,b){if(b===!1&&J9z.has(N))B1(q,N,null);else if(N!=="idomKey"&&N!=="skip"&&N!=="skipchildren"&&N!=="children"&&N!=="el")if(N.startsWith("on")){if(N[2]!==":")throw Error("Sb`"+N);if(b===void 0||b===null){var y;(y=z2.handleError)==null||y.call.apply(y,[z2].concat(_.a9(M0(Error("Xb`"+N),q.tagName))));q[N]=void 0}else{var J=N.slice(3);y=UL();if(J==="jsaction"){b=Array.isArray(b)?b:[b];b=_.Z(b);for(var E=b.next();!E.done;E=b.next()){E=E.value;if(typeof E!=="object"||E===null||typeof E.selfReg!==
"function")throw Error("$b`"+N);E.selfReg(0,q,y?_.W1:function(){})}}else{if(typeof b!=="object"||b===null)throw Error("Yb`"+N+"`"+typeof b);
if(typeof b.getFn!=="function")throw Error("Zb`"+N+"`"+Object.keys(b));if(b.selfReg)b.selfReg(0,q,J,y?_.W1:function(){});
else if(y&&q["on"+J]===void 0){var F=b.getFn(0);q.addEventListener(J,F);_.W1(function(){return void q.removeEventListener(J,F)})}else if(y||!EHd.includes(J))q["on"+J]=b.getFn(0)}}}else{if(N.startsWith("data-")&&typeof b==="string")try{b=gHC(b)}catch(R){b="zSoyz"}typeof b!=="function"||q._disposeEffects!=null?((y=N.startsWith("prop:"))&&(N=N.slice(5)),z2.enableAttributeSanitization&&(y&&ZAd(q.tagName)||(b=h3h(q.tagName,N,b))),N==="style"?("function"==typeof _.$Z&&b instanceof _.$Z&&(b=b.toString()),
FHJ(q,N,b)):y?q[N]=b:RTd(q,N,b)):(q._signalProps||(q._signalProps=[]),q._signalValues||(q._signalValues=[]),q._signalProps.push(N))}};
c9u=function(q,N,b){b=(b===void 0?{}:b).isReactive;if(N==null?0:N.el){var y=N.el,J;(J=y.onRender)==null||J.call(y,q);q._disposeRef||(q._disposeRef=function(){var E;(E=y.onUnmount)==null||E.call(y);delete q._disposeRef},b&&_.W1(function(){var E;
(E=q._disposeRef)==null||E.call(q)}))}};
ZAd=function(q){return q.length>0&&q.includes("-")&&!u4z.includes(q.toLowerCase())};
zTh=function(q){return $L(q)&&tV in q};
$LJ=function(q){return zTh(q)?q[tV].flattened:q};
tLn=function(q,N){var b=_.MB.apply(2,arguments),y;N=(y=N)!=null?y:{};y={};return y.type=q,y.props=N,y.children=b,y[mT]=!0,y};
_.rV=function(q){return q.children};
XC=function(q){var N=mLD!==tLn;mLD=q?r9d:tLn;return N};
_.Vq=function(q){return _.AZ(q)?"nodeType"in q:!1};
jI=function(){return document.createTextNode("")};
xZ=function(q){q=document.createTextNode(String(q));q._isSignalTextNode=!0;return q};
VLu=function(q){return q!=null&&q.contentKind===vC||q instanceof ev||XBJ(q)};
jPJ=function(q){var N=document.createElement("div");if(XBJ(q)&&QOn(q))_.d0(N,QOn(q));else if(q instanceof ev)_.d0(N,q);else if(q!=null&&q.contentKind===vC){if(q.contentKind!==vC)throw Error("Wb");q=BZ(q.toString());_.d0(N,q)}q=_.Z(N.childNodes);for(var b=q.next();!b.done;b=q.next())b.value._isSafeOrSanitizedHtmlNode=!0;return N};
YZ=function(q){q=typeof q;return q==="string"||q==="number"||q==="boolean"};
xLC=function(q){return q instanceof Dl||Te(q)||q instanceof zw||"function"==typeof _.$Z&&q instanceof _.$Z};
vHz=function(q,N){var b=q.parentElement;if(!b)return N;b.replaceChild(N,q);return N};
GjR=function(q,N){var b=q[0].parentElement;if(b)if(q[0].previousSibling||q[q.length-1].nextSibling){b.insertBefore(N,q[0]);for(var y=q.length-1;y>=0;y--)b.removeChild(q[y])}else b.textContent="",b.appendChild(N);return N};
Y7e=function(q,N){if(q[0].parentElement)for(var b=q[0].parentElement,y=N.length,J=q.length,E=y,F=0,R=0,c=q[J-1].nextSibling,z=null;F<J||R<E;)if(q[F]===N[R])F++,R++;else{for(;q[J-1]===N[E-1];)J--,E--;if(J===F)for(var m=E<y?R?N[R-1].nextSibling:N[E-R]:c;R<E;){var r=N[R++];b.insertBefore(r,m)}else if(E===R)for(;F<J;)m=q[F],z&&z.has(m)||b.removeChild(m),F++;else if(q[F]===N[E-1]&&N[R]===q[J-1])m=q[--J].nextSibling,b.insertBefore(N[R++],q[F++].nextSibling),b.insertBefore(N[--E],m),q[J]=N[E];else{if(!z)for(z=
new Map,m=R;m<E;)z.set(N[m],m++);m=z.get(q[F]);if(m==null)b.removeChild(q[F]),F++;else if(R<m&&m<E){r=F;for(var X=1,V=void 0;++r<J&&r<E&&(V=z.get(q[r]))!=null&&V===m+X;)X++;if(X>m-R)for(r=q[F];R<m;)b.insertBefore(N[R++],r);else b.replaceChild(N[R++],q[F++])}else F++}}return N};
OAh=function(q){if(Array.isArray(q)){if(q.length>1)throw Error("jc`"+q.length+"`"+q.map(QPd).join(", "));q=q[0]}if(q==null)return null;if(!(q instanceof _.E5)){var N,b;if((N=window)==null?0:(b=N.trustedTypes)==null?0:b.isScript(q))throw Error("ic");if(String(q).trim().length===0)return null;throw Error("kc`"+QPd(q));}return q};
wBn=function(q,N){N=OAh(N);N!==null&&_.Fw(q,N)};
iAJ=function(q){if(Array.isArray(q)){if(q.length>1)throw Error("lc`"+q.length+"`"+q.map(QPd).join(", "));q=q[0]}if(q==null)return null;if(!(q instanceof zw)){if(String(q).trim().length===0)return null;throw Error("mc`"+QPd(q));}return q};
lpD=function(q,N){N=iAJ(N);N!==null&&(q.textContent=rjh(N))};
QPd=function(q){return"("+typeof q+") "+(q!=null&&typeof q==="object"?q.constructor.name:typeof q)+" "+q};
KHd=function(){};
wV=function(q,N){N=N===void 0?{}:N;var b=DLz(),y=!0,J,E=!!z2.legacyTriggerSoyRendererEvents;E&&(J=Umn());_.ae(function(){var F=!y&&N.isControlFlowComponent&&E,R=F?b[tV].flattened[0].parentElement:void 0;y=!1;_.Qq.setUp();N.isControlFlowComponent&&T2++;var c=b[0],z=b[tV].flattened,m=XC(!0);try{var r=q(),X=hTd(c,r,b);Array.isArray(X)||(b[tV].flattened=[X]);var V=b[tV].flattened;if(z&&(!Array.isArray(z)||z.length!==0)){var G=Array.isArray(z)?z[0]:z,w=G[Ow],D=G._disposeEffects;G._disposeEffects=void 0;
G=Array.isArray(V)?V[0]:V;G[Ow]=w;G[Ow]&&(G[Ow].numNodes=G===V?1:V.length);G._disposeEffects=D}b[0]=X;N.isControlFlowComponent&&n3(!1)}catch(k){throw N.isControlFlowComponent&&n3(!0),k;}finally{XC(m),_.Qq.tearDown()}F&&(F=J,F!=null||(F=_.rSd(document).getAppContext()),F.get(kju).JSC$29582_getEventTarget().dispatchEvent(new ULD(fpZ,R,vC)))},N.debugName);
return b};
hTd=function(q,N,b){for(;typeof N==="function";)N=N();if(N!=null&&N[mT]){var y,J,E;(E=z2.handleError)==null||E.call.apply(E,[z2].concat(_.a9(M0(Error("nc`"+((y=N.type)==null?void 0:y.TAG_NAME)),(J=N.type)==null?void 0:J.TAG_NAME))))}if(q==null)return N==null?jI():YZ(N)?xZ(N):xLC(N)?xZ(N.toString()):_.Vq(N)?N:N.length===0?jI():Cth(N,b);if(_.Vq(q)){if(N==null)return vHz(q,jI());if(YZ(N))return IpJ(q,N);if(xLC(N))return IpJ(q,N.toString());if(_.Vq(N))return vHz(q,N);if(N.length===0)return vHz(q,jI());
N=Cth(N,b);Y7e([q],b[tV].flattened);return N}q=ic(q);if(N==null)return GjR(q,jI());if(YZ(N))return GjR(q,xZ(N));if(xLC(N))return GjR(q,xZ(N.toString()));if(_.Vq(N))return Y7e(q,[N])[0];if(N.length===0)return GjR(q,jI());N=Cth(N,b);Y7e(q,b[tV].flattened);return N};
IpJ=function(q,N){q.nodeType===Node.TEXT_NODE?q.textContent!==String(N)&&(q.textContent=String(N)):q=vHz(q,xZ(N));return q};
ic=function(q,N,b){return Tdh(q,N!=null?N:[],b===void 0?!1:b)};
Cth=function(q,N){var b=ic(q,void 0,!0);if(b.length===0)return jI();N[tV].flattened=b;return q};
Tdh=function(q,N,b,y,J){N=N===void 0?[]:N;b=b===void 0?!1:b;J=J===void 0?-1:J;if(q==null)return N;if(q instanceof lc){var E=q.render();return Tdh(E,N,b,y,J)}if(_.Vq(N)&&N.nodeType===Node.ELEMENT_NODE)switch(N.tagName){case "SCRIPT":wBn(N,q);return;case "STYLE":lpD(N,q);return}YZ(q)&&(q=xZ(q),y&&b&&(y[J]=q));if(VLu(q)){b=jPJ(q);b=Array.from(b.childNodes);b=_.Z(b);for(E=b.next();!E.done;E=b.next())sPD(N,E.value);return N}xLC(q)&&(q=xZ(q.toString()),y&&b&&(y[J]=q));if(_.Vq(q))return sPD(N,q);if(Array.isArray(q)){for(E=
0;E<q.length;E++)Tdh(q[E],N,b,q,E);return N}if(typeof q==="function"){E=wV(function(){var R=q();return R!=null&&!YZ(R)&&VLu(R)?(R=jPJ(R),Array.from(R.childNodes)):R},{debugName:"qmF2ne",
debugFn:q})[0];if(Array.isArray(E)){b=_.Z(E);for(E=b.next();!E.done;E=b.next())sPD(N,E.value);return N}y&&b&&(y[J]=E);return sPD(N,E)}if(q!=null&&q[mT]){y=q;J=XC(!0);var F=mLD;try{E=F.apply(null,[y.type,y.props].concat(_.a9(y.children)))}finally{XC(J)}return Tdh(E,N,b)}(F=z2.handleError)==null||F.call.apply(F,[z2].concat(_.a9(M0(Error("oc")))));return N};
DLz=function(q){var N={};N=Object.assign([],(N[tV]={flattened:[]},N));if(!q)return N;N[0]=Cth(q,N);return N};
sPD=function(q,N){Array.isArray(q)?q.push(N):q.appendChild(N);return q};
KI=function(q){if(!z2.enableLazyTsx)return q;if(Array.isArray(q)){for(var N=0;N<q.length;N++)q[N]=KI(q[N]);return q}return q instanceof lc?(q=q.render(),KI(q)):q};
apn=function(q,N){var b,y,J=lyD(q),E=function(V){y=V;V=XC(!0);var G=mR(D$);LAA("render",J);try{b=KI(q(N))}finally{pve("render",J),mR(G),XC(V)}};
E=z2.enableContextPerComponent?o5J(E,J):L3(E,z2.alwaysTrackContexts||!!F8);ewC(y);if(!N.renderedFromIdom){var F=_.Re(y);try{return nHn(q,N,b),b}finally{_.Re(F)}}!zTh(b)&&Array.isArray(b)&&(b=DLz(b));var R=$LJ(b);F=Array.isArray(R)?R[0]:R;var c=!1;if(F){var z,m=(z=N==null?void 0:N.idomKey)!=null?z:q;z=R!==F;F._disposeEffects=E;var r=F[Ow]||{},X=zTh(b)?b:r.sourceDynamicRange;Object.assign(r,{key:m,numNodes:z?R.length:1,context:y,higherOrder:!!F[Ow],sourceDynamicRange:X});F[Ow]=r}else c=!0;(function(){var V=
_.Re(y);try{nHn(q,N,R)}finally{_.Re(V)}})();
c&&E();return b};
S7h=function(q){var N={},b;for(b in q)N={prev$jscomp$24:void 0,next$jscomp$33:void 0},N.prev$jscomp$24=hV[b],N.next$jscomp$33=q[b],hV[b]=function(y){return function(){var J=_.MB.apply(0,arguments);y.prev$jscomp$24.apply(null,_.a9(J));y.next$jscomp$33.apply(null,_.a9(J))}}(N)};
WHd=function(){if(UL())throw Error("pc");return kZ};
LHA=function(q,N){if(!q.__unmounted&&N){q.__unmounted=!0;try{q.didUnmount()}catch(J){var b,y;(y=z2.handleError)==null||y.call.apply(y,[z2].concat(_.a9(M0(J,(b=q.__type)==null?void 0:b.TAG_NAME))))}hV.didUnmount(q);q.el=null;N.__instance&&delete N.__instance}};
Ptd=function(q,N,b){q._signalProps!=null&&q._disposeEffects==null&&((b===void 0?0:b)?q._disposeEffects=L3(function(){return void pBn(q,N)},z2.alwaysTrackContexts||!!F8):pBn(q,N))};
pBn=function(q,N){_.ae(function(){for(var b=q._signalProps,y=q._signalValues,J=0;J<b.length;J++){var E=b[J],F=N[E]();y[J]!==F&&(y[J]=F,dLZ(q,E,F))}},"e3YVbb")};
MLz=function(q,N,b){var y,J=[];q._disposeEffects=L3(function(){_.ae(function(){var E=b();if(E===null||E===void 0)E="";if(YZ(E)||E===null)y!=null||(y=document.createTextNode("")),y.parentNode!==q&&(y._isSignalTextNode=!0,q.insertBefore(y,N)),y.textContent=String(E);else if(VLu(E)){for(var F=J.length>0?J[J.length-1].nextSibling:N,R=_.Z(J),c=R.next();!c.done;c=R.next())q.removeChild(c.value);E=jPJ(E);J=Array.from(E.childNodes);E=_.Z(J);for(R=E.next();!R.done;R=E.next())q.insertBefore(R.value,F)}else throw c=
(R=(F=hX)==null?void 0:F.name)!=null?R:"unknown",Error("ec`"+c+"`"+typeof E);},"VvDgC")},z2.alwaysTrackContexts||!!F8)};
eTd=function(q,N){var b=_.MB.apply(2,arguments);N!=null||(N={});return!z2.enableLazyTsx||hX!=null&&!UL()?oHA(q,N,b):new A9d(q,N,b)};
oHA=function(q,N,b){if(q===_.rV)return b;if(typeof q==="function")return hX&&!UL()&&(N.renderedFromIdom=!0),K0A(q,function(){var E=BdC(q,N,b);if(E)return E;b.length>0&&(N.children=b.length===1?b[0]:b);if(q.componentType===kL){var F;o5J(function(){var R=N;if(q.componentType!==kL)F=!1;else{R||(R={});var c=new Uw(R,q),z=mR(D$);try{var m=c.render(R)}finally{mR(z)}m instanceof HTMLElement?(m.__instance=c,c.el=m,c.__type=q,q.TAG_NAME=m.tagName.toLowerCase(),hV.didPatch(c),F=m):F=m}},q.name);
if(F)return F}return apn(q,N)},N.debugInstance);
var y=HAC(q,N),J;for(J in N)dLZ(y,J,N[J]);Ptd(y,N);ic(b,y);c9u(y,N,{isReactive:!0});qee(y,N);return y};
HAC=function(q,N){q=(NyR.has(q.toLowerCase())?0:bxd.has(q.startsWith("svg:")?q.replace("svg:",""):q))?document.createElementNS("http://www.w3.org/2000/svg",q.startsWith("svg:")?q.replace("svg:",""):q):y8J(q,N)||document.createElement(q);q[J8h]=!0;return q};
EUd=function(q){if(q){var N;(N=q._disposeRef)==null||N.call(q);var b;(b=q._disposeEffects)==null||b.call(q);q.__instance&&q.__instance instanceof fI&&(N=q.__instance,LHA(N,q),N instanceof Uw&&N.disposeEffects());for(N=0;N<q.childNodes.length;N++)EUd(q.childNodes[N])}};
Zxh=function(q){gUA.push(q)===1&&requestAnimationFrame(function(){setTimeout(function(){var N=[].concat(_.a9(gUA));gUA=[];N=_.Z(N);for(var b=N.next();!b.done;b=N.next()){b=b.value;try{for(var y=0;y<b.length;y++)EUd(b[y])}catch(J){y=b=void 0,(y=(b=z2).handleError)==null||y.call.apply(y,[b].concat(_.a9(M0(J))))}}})})};
_.u=function(q,N){return mLD.apply(null,[q,N].concat(_.a9(_.MB.apply(2,arguments))))};
_.CI=function(q){return q};
_.Iu=function(q){return{isDefault:!0,children:q.children}};
_.t=function(q){var N=q.cond;if(N===void 0)return q.else&&q.else();var b=_.K3(function(){return!!N()},void 0,"JHVi8"),y=function(){var J=N();
if(!J){var E;(E=z2.handleError)==null||E.call.apply(E,[z2].concat(_.a9(M0(Fjh.nonNullableCondIsNull()))))}return J};
return wV(function(){var J=b(),E;L3(function(){var F=mR(D$);try{E=KI(J?q.then(y):q.else&&q.else())}finally{mR(F)}},!0);
return E},{debugName:q.debugInstance,
debugFn:q.then,isControlFlowComponent:!0})};
R0e=function(q){return _.t(q)};
_.Tf=function(q){return q.keyBy==="INDEX"?dPn(q):c8d(q)};
uvu=function(q){q=_.Z(q);for(var N=q.next();!N.done;N=q.next()){var b=void 0;(b=N.value)==null||b()}};
c8d=function(q){var N=q.keyBy===void 0||q.keyBy==="REFERENCE",b=N?function(m){return m}:q.keyBy,y=[],J=[],E=[],F=[],R=[],c=[],z=!0;
_.W1(function(){uvu(F)});
return wV(function(){var m=z0e(q),r=m.length;if(r===0){if(y.length===0&&!z)return E;uvu(F);y=m;J=[];for(m=0;m<y.length;m++)J.push(b(y[m]));E=[];F=[];R=[];c=[];q.fallback&&(F[0]=$PA(function(){E[0]=KI(q.fallback())}));
z=!1;return E}for(var X=new t2d,V=y.length-1;V>=0;V--)X.push(J[V],V);V=Array(r);for(var G=Array(r),w=Array(r),D=Array(r),k=Array(N?0:r),f={i$jscomp$450:0};f.i$jscomp$450<r;f={i$jscomp$450:f.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$563:void 0},f.i$jscomp$450++){f.item$jscomp$104=m[f.i$jscomp$450];f.key$jscomp$563=b(f.item$jscomp$104);var L=X.pop(f.key$jscomp$563);L!=null?(w[f.i$jscomp$450]=E[L],G[f.i$jscomp$450]=J[L],V[f.i$jscomp$450]=F[L],D[f.i$jscomp$450]=R[L],N||(k[f.i$jscomp$450]=c[L]),Du(function(S){return function(){D[S.i$jscomp$450](S.i$jscomp$450);
if(!N)k[S.i$jscomp$450](S.item$jscomp$104)}}(f)),delete F[L]):V[f.i$jscomp$450]=$PA(function(S){return function(){var W=_.Z(_.QS(S.i$jscomp$450,void 0,"Fqk1zd")),M=W.next().value;
W=W.next().value;D[S.i$jscomp$450]=W;G[S.i$jscomp$450]=S.key$jscomp$563;if(N)w[S.i$jscomp$450]=KI(q.children(S.item$jscomp$104,M));else{var qe=_.Z(_.QS(S.item$jscomp$104,void 0,"GBj5de"));W=qe.next().value;qe=qe.next().value;k[S.i$jscomp$450]=qe;w[S.i$jscomp$450]=KI(q.children(W,M))}}}(f))}uvu(F);
y=m;J=G;E=w;F=V;R=D;c=k;z=!1;return w},{debugName:q.debugInstance,
debugFn:q.each,isControlFlowComponent:!0})};
dPn=function(q){var N=[],b=[],y=[],J=[],E=!1;_.W1(function(){for(var F=_.Z(J),R=F.next();!R.done;R=F.next())R=R.value,R()});
return wV(function(){var F=z0e(q);E&&F.length>0&&(J.pop()(),N.pop(),E=!1);for(var R=Array(F.length),c={i$jscomp$451:0};c.i$jscomp$451<F.length;c={i$jscomp$451:c.i$jscomp$451},c.i$jscomp$451++)if(c.i$jscomp$451<N.length)N[c.i$jscomp$451]!==F[c.i$jscomp$451]&&(Du(function(m){return function(){return void b[m.i$jscomp$451](F[m.i$jscomp$451])}}(c)),N[c.i$jscomp$451]=F[c.i$jscomp$451]),R[c.i$jscomp$451]=y[c.i$jscomp$451];
else{var z=$PA(function(m){return function(){N[m.i$jscomp$451]=F[m.i$jscomp$451];var r=_.Z(_.QS(F[m.i$jscomp$451],void 0,"JMMLmd")),X=r.next().value;r=r.next().value;b[m.i$jscomp$451]=r;R[m.i$jscomp$451]=KI(q.children(X,m.i$jscomp$451))}}(c));
J[c.i$jscomp$451]=z}for(;N.length>F.length;)N.pop(),J.pop()(),b.pop();F.length===0&&!E&&q.fallback&&(c=$PA(function(){R[0]=KI(q.fallback())}),J[0]=c,E=!0);
return y=R},{debugName:q.debugInstance,
isControlFlowComponent:!0})};
z0e=function(q){q=q.each();return Array.isArray(q)?q:Array.from(q)};
$PA=function(q){var N=F8;return L3(function(b){var y=mR(D$);try{b.parent=N,q(b)}finally{mR(y)}},!1)};
_.sw=function(q){var N=mPD(q),b=_.K3(function(){return r8C(N)},void 0,"F1PF4");
return wV(function(){var y=b(),J;L3(function(){var E=mR(D$);try{J=KI(y())}finally{mR(E)}});
return J},{debugName:q.debugInstance,
isControlFlowComponent:!0})};
mPD=function(q){q=q.children;return Array.isArray(q)?q:[q]};
Xyn=function(q){var N=q.props;q=q.getChildren()[0];return N.when?{when:N.when,children:q}:{isDefault:!0,children:q}};
r8C=function(q){var N=function(){return null};
q=_.Z(q);for(var b=q.next();!b.done;b=q.next())if(b=b.value,b!=null&&b[mT]&&(b=b.type===_.Iu?{isDefault:!0,children:b.children[0]}:{when:b.props.when,children:b.children[0]}),b instanceof lc&&(b=Xyn(b)),b.isDefault)N=b.children;else if(b.when())return b.children;return N};
j$n=function(q){var N=null,b,y={get value(){var E,F;(F=(E=J).validateGetValue)==null||F.call(E);return J.__value},set value(E){var F,R;(R=(F=J).validateSetValue)==null||R.call(F,E);J.__value=E;J.__hasBeenSet=!0}},J=(y.__value=null,y.__hasBeenSet=!1,y.__hasErrored=!1,y.onRender=function(E){if(b&&E!==b){b._disposeRef=void 0;var F;(F=N)==null||F()}b=E;N=q(E)||null},y.onUnmount=function(){var E;
(E=N)==null||E();N=J.value=null},y[_.V2n]=!0,y);
return J};
nI=function(q){return typeof q==="symbol"};
vUR=function(q){var N=WHd();if(N==null)throw _.xPD.PRIMITIVE_INVALID_HOOK_CALL();var b=N.hookCounter++;N.hooks||(N.hooks=[]);var y=N.hooks;y[b]||(y[b]={key:q,host:N});if(q!==y[b].key){if(N.__type){var J;q=(J=N.__type)==null?void 0:J.name}else q=N instanceof Uw?lyD(N.functionComponent):"<"+N.el.tagName.toLowerCase()+">";throw _.xPD.OUT_OF_ORDER_HOOK_CALL(q);}return y[b]};
GyC=function(q,N){return!q||q.length!==(N==null?void 0:N.length)||q.some(function(b,y){return b!==N[y]})};
YeZ=function(q,N){var b=vUR("onChange"),y=WHd();GyC(b.deps,N)&&(b.deps=N,b.pendingEffect=q,y.__syncEffects||(y.__syncEffects=[]),y.__syncEffects.push(b))};
_.au=function(q,N,b){b!=null||(b={});b=b.appContext;var y=!!z2.legacyTriggerSoyRendererEvents;_.Qq.setUp();try{var J=Q$D(q,N,b);y&&(N=b,N!=null||(N=_.rSd(document).getAppContext()),N.get(kju).JSC$29582_getEventTarget().dispatchEvent(new ULD(Oxz,q,vC)));_.Qq.log(q);return J}finally{_.Qq.tearDown()}};
Q$D=function(q,N,b){var y=C3(function(){var J=mR(D$);try{return L3(function(){var E=_.rSd(_.LM(q)),F;var R=knA({rootElement:{value:q},appContext:b||(E==null?void 0:(F=E.getOptionalAppContext)==null?void 0:F.call(E)),dispatcher:E});E=_.Re(R);R=XC(!0);T2++;try{ic(N(),q),n3(!1)}catch(c){throw n3(!0),c;}finally{XC(R),_.Re(E)}},!1)}catch(E){throw z2.enableContextBasedComponentStacks&&f3(E),E;
}finally{mR(J)}});
q[wyd]=!0;return function(){q.textContent="";y();q[wyd]=!1}};
_.SI=function(q){if($ru(tX)){var N;(N=z2.handleError)==null||N.call.apply(N,[z2].concat(_.a9(M0(Error("dc")))))}var b=F8,y=hX;spn({onInitType:IyJ,run:function(){if(b&&!b.isDisposed){var J=_.Re(b);try{C3(function(){return void q()},y)}catch(E){throw z2.enableContextBasedComponentStacks&&f3(E),E;
}finally{_.Re(J)}}}})};
ixA=function(q,N){YeZ(function(){return _.YL(q)},N)};
_.WC=function(q){UL()?_.SI(function(){_.YL(q)}):YeZ(function(){return _.YL(q)},[])};
Kje=function(q){var N=[].concat(_.a9(q));q.length=0;q=_.Z(N);for(N=q.next();!N.done;N=q.next()){N=N.value;lZZ(N);var b=N.pendingEffect;N.pendingEffect=null;if(b=b==null?void 0:b())N.pendingCleanup=b}};
lZZ=function(q){var N=q.pendingCleanup;q.pendingCleanup=null;N==null||N()};
DPR=function(q,N){if(UL())return q();var b=vUR("useMemoInternal");GyC(b.deps,N)&&(b.deps=N,b.value=q());return b.value};
h0A=function(q,N){return DPR(q,N)};
kyn=function(q){return DPR(function(){return{value:q}},[])};
_.LI=function(q,N){if(!q)return null;q=Object.keys(q);q=_.Z(q);for(var b=q.next();!b.done;b=q.next()){b=b.value;var y=b.toLowerCase();if(y.indexOf(N,y.length-N.length)>-1)return b}return null};
_.PC=function(){var q=arguments,N=_.pI;q.length>1?N[q[0]]=q[1]:q.length===1&&Object.assign(N,q[0])};
_.M7=function(q,N){return q in _.pI?_.pI[q]:N};
_.ou=function(q,N){return!!_.M7(q,N)};
UPA=function(q){var N=_.pI.EXPERIMENT_FLAGS;return N?N[q]:void 0};
CEu=function(q){fZz.forEach(function(N){return N(q)})};
_.qg=function(q){return q&&window.yterr?function(){try{return q.apply(this,arguments)}catch(N){_.HC(N)}}:q};
_.HC=function(q){var N=_.Ng("yt.logging.errors.log");N?N(q,"ERROR",void 0,void 0,void 0,void 0,void 0):(N=_.M7("ERRORS",[]),N.push([q,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.PC("ERRORS",N));CEu(q)};
_.bv=function(q,N,b,y,J){var E=_.Ng("yt.logging.errors.log");E?E(q,"WARNING",N,b,y,void 0,J):(E=_.M7("ERRORS",[]),E.push([q,"WARNING",N,b,y,void 0,J]),_.PC("ERRORS",E))};
TyJ=function(q,N){N=q.split(N);for(var b={},y=0,J=N.length;y<J;y++){var E=N[y].split("=");if(E.length===1&&E[0]||E.length===2)try{var F=IZz(E[0]||""),R=IZz(E[1]||"");if(F in b){var c=b[F];Array.isArray(c)?_.PA(c,R):b[F]=[c,R]}else b[F]=R}catch(X){var z=X,m=E[0],r=String(TyJ);z.args=[{key:m,value:E[1],query:q,method:s$D===r?"unchanged":r}];nUJ.hasOwnProperty(m)||_.bv(z)}}return b};
aZn=function(q){var N=[];_.nM.forEach(q,function(b,y){var J=_.yX(y);b=Array.isArray(b)?b:[b];_.Jz(b,function(E){E==""?N.push(J):N.push(J+"="+_.yX(E))})});
return N.join("&")};
_.EV=function(q){q.charAt(0)==="?"&&(q=q.substring(1));return TyJ(q,"&")};
_.gO=function(q){return q.indexOf("?")!==-1?(q=(q||"").split("#")[0],q=q.split("?",2),_.EV(q.length>1?q[1]:q[0])):{}};
_.ZM=function(q,N){return SeR(q,N||{},!0)};
WjA=function(q,N){return SeR(q,N||{},!1)};
SeR=function(q,N,b){var y=q.split("#",2);q=y[0];y=y.length>1?"#"+y[1]:"";var J=q.split("?",2);q=J[0];J=_.EV(J[1]||"");for(var E in N)if(b||!_.nM.containsKey(J,E))J[E]=N[E];return _.F$(q,J)+y};
uv=function(q){if(!N)var N=window.location.href;var b=_.RO(q)[1]||null,y=_.dO(q);return b&&y?c4(q,N):y?_.dO(N)===y&&(Number(_.RO(N)[4]||null)||null)===(Number(_.RO(q)[4]||null)||null):!0};
_.pyC=function(q){q=Ljn(q);return q===null?!1:q[0]==="com"&&q[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Ljn=function(q){q=_.dO(q);return q!==null?q.split(".").reverse():null};
IZz=function(q){return q&&q.match(PEC)?q:z1(q)};
_.$f=function(q){return new M2d(q)};
_.tz=function(){oUh||(oUh=new A8n);return oUh};
ByZ=function(){var q=e0J;return function(){var N=_.tz();if(!N.resolve(_.$f(q))){var b={};N.addProvider((b.provide=q,b.useClass=q,b[ma]=void 0,b))}return N.resolve(q)}};
qYd=function(q){var N=_.rO,b,y;_.d(function(J){b=_.tz();return(y=b.resolve(_.$f(N)))?(q(y),J.return(Promise.resolve(y))):J.return(b.resolve(new HxA(N)).then(function(E){q(E);return E}))})};
_.x=function(q){q=X$(q);return typeof q==="string"&&q==="false"?!1:!!q};
_.VX=function(q,N){q=X$(q);return q===void 0&&N!==void 0?N:Number(q||0)};
NgJ=function(q){q=X$(q);return Array.isArray(q)?_.aW(q,function(N){return Number(N||0)}):[Number(q||0)]};
_.jA=function(q){q=X$(q);return q!==void 0?String(q):""};
_.v4=function(q){q=X$(q);return Array.isArray(q)?_.aW(q,function(N){return String(N||"")}):[String(q||"")]};
bru=function(){return _.M7("EXPERIMENTS_TOKEN","")};
X$=function(q){return _.M7("EXPERIMENT_FLAGS",{})[q]};
yeZ=function(){for(var q=[],N=_.M7("EXPERIMENTS_FORCED_FLAGS",{}),b=_.Z(Object.keys(N)),y=b.next();!y.done;y=b.next())y=y.value,q.push({key:y,value:String(N[y])});b=_.M7("EXPERIMENT_FLAGS",{});y=_.Z(Object.keys(b));for(var J=y.next();!J.done;J=y.next())J=J.value,J.startsWith("force_")&&N[J]===void 0&&q.push({key:J,value:String(b[J])});return q};
Eoe=function(){if(!JeR)return null;var q=JeR();return"open"in q?q:null};
_.god=function(q){switch(_.G1(q)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.G1=function(q){return q&&"status"in q?q.status:-1};
_.Yf=function(q,N){typeof q==="function"&&(q=_.qg(q));return window.setTimeout(q,N)};
_.QX=function(q,N){typeof q==="function"&&(q=_.qg(q));return window.setInterval(q,N)};
_.OV=function(q){window.clearTimeout(q)};
FOC=function(q){q=_.gO(q);for(var N=_.Z(Zrd),b=N.next();!b.done;b=N.next())if(q[b.value]!==void 0)return!0;return!1};
cez=function(q,N,b,y,J,E,F,R,c){b=b===void 0?"GET":b;y=y===void 0?"":y;R=R===void 0?!1:R;var z=Eoe();if(!z)return null;var m=function(){(z&&"readyState"in z?z.readyState:0)===4&&N&&_.qg(N)(z)};
"onloadend"in z?z.addEventListener("loadend",m,!1):z.onreadystatechange=m;_.x("debug_forward_web_query_parameters")&&(q=R2J(q,window.location.search));z.open(b,q,!0);E&&(z.responseType=E);F&&(z.withCredentials=!0);b=b==="POST"&&(window.FormData===void 0||!(y instanceof FormData));if(J=dcC(q,J))for(var r in J)z.setRequestHeader(r,J[r]),"content-type"===r.toLowerCase()&&(b=!1);b&&z.setRequestHeader("Content-Type","application/x-www-form-urlencoded");c&&"onprogress"in z&&(z.onprogress=function(){c(z.responseText)});
if(R&&"setAttributionReporting"in XMLHttpRequest.prototype){q={eventSourceEligible:!0,triggerEligible:!1};try{z.setAttributionReporting(q)}catch(X){_.bv(X)}}z.send(y);return z};
dcC=function(q,N){N=N===void 0?{}:N;var b=uv(q),y=_.M7("INNERTUBE_CLIENT_NAME"),J=_.x("web_ajax_ignore_global_headers_if_set"),E;for(E in uEJ){var F=_.M7(uEJ[E]),R=E==="X-Goog-AuthUser"||E==="X-Goog-PageId";E!=="X-Goog-Visitor-Id"||F||(F=_.M7("VISITOR_DATA"));var c;if(!(c=!F)){if(!(c=b||(_.dO(q)?!1:!0))){c=q;var z;if(z=_.x("add_auth_headers_to_remarketing_google_dot_com_ping")&&E==="Authorization"&&(y==="TVHTML5"||y==="TVHTML5_UNPLUGGED"||y==="TVHTML5_SIMPLY"))z=Ljn(c),z=z===null?!1:z[1]==="google"?
!0:z[2]==="google"?z[0]==="au"&&z[1]==="com"?!0:z[0]==="uk"&&z[1]==="co"?!0:!1:!1;z&&(c=_.wO(c)||"",c=c.split("/"),c="/"+(c.length>1?c[1]:""),z=c==="/pagead");c=z?!0:!1}c=!c}c||J&&N[E]!==void 0||y==="TVHTML5_UNPLUGGED"&&R||(N[E]=F)}"X-Goog-EOM-Visitor-Id"in N&&"X-Goog-Visitor-Id"in N&&delete N["X-Goog-Visitor-Id"];if(b||!_.dO(q))N["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(b||!_.dO(q)){try{var m=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(r){}m&&(N["X-YouTube-Time-Zone"]=
m)}document.location.hostname.endsWith("youtubeeducation.com")||!b&&_.dO(q)||(N["X-YouTube-Ad-Signals"]=aZn(z2u()));return N};
_.$cn=function(q,N){var b=_.dO(q);_.x("debug_handle_relative_url_for_query_forward_killswitch")||!b&&uv(q)&&(b=document.location.hostname);var y=_.wO(q);y=(b=b&&(b.endsWith("youtube.com")||b.endsWith("youtube-nocookie.com")))&&y&&y.startsWith("/api/");if(!b||y)return q;var J=_.EV(N),E={};_.Jz(Zrd,function(F){J[F]&&(E[F]=J[F])});
return WjA(q,E)};
tgd=function(q,N){N.method="POST";N.postParams||(N.postParams={});return _.iv(q,N)};
mcA=function(q,N){var b=_.M7("XSRF_FIELD_NAME"),y;N.headers&&(y=N.headers["Content-Type"]);return!N.excludeXsrf&&(!_.dO(q)||N.withCredentials||_.dO(q)===document.location.hostname)&&N.method==="POST"&&(!y||y==="application/x-www-form-urlencoded")&&!(N.postParams&&N.postParams[b])};
_.iv=function(q,N){var b=N.format||"JSON";q=red(q,N);var y=X3d(q,N),J=!1,E=Vge(q,function(c){if(!J){J=!0;R&&_.OV(R);var z=_.god(c),m=null,r=400<=c.status&&c.status<500,X=500<=c.status&&c.status<600;if(z||r||X)m=j5e(q,b,c,N.convertToSafeHtml);z&&(z=xcz(b,c,m));m=m||{};r=N.context||_.JZ;z?N.onSuccess&&N.onSuccess.call(r,c,m):N.onError&&N.onError.call(r,c,m);N.onFinish&&N.onFinish.call(r,c,m)}},N.method,y,N.headers,N.responseType,N.withCredentials,!1,N.onProgress);
y=N.timeout||0;if(N.onTimeout&&y>0){var F=N.onTimeout;var R=_.Yf(function(){J||(J=!0,E.abort(),_.OV(R),F.call(N.context||_.JZ,E))},y)}return E};
red=function(q,N){N.includeDomain&&(q=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+q);var b=_.M7("XSRF_FIELD_NAME");if(N=N.urlParams)N[b]&&delete N[b],q=_.ZM(q,N);return q};
X3d=function(q,N){var b=_.M7("XSRF_FIELD_NAME"),y=_.M7("XSRF_TOKEN"),J=N.postBody||"",E=N.postParams;mcA(q,N)&&(E||(E={}),E[b]=y);(_.x("ajax_parse_query_data_only_when_filled")&&E&&Object.keys(E).length>0||E)&&typeof J==="string"&&(J=_.EV(J),_.nM.extend(J,E),J=N.postBodyFormat&&N.postBodyFormat==="JSON"?JSON.stringify(J):_.lv(J));E=J||E&&!_.nM.isEmpty(E);!voh&&E&&N.method!=="POST"&&(voh=!0,_.HC(Error("Jc")));return J};
j5e=function(q,N,b,y){var J=null;switch(N){case "JSON":try{var E=b.responseText}catch(F){throw y=Error("Kc"),y.params=q,_.bv(y),F;}q=b.getResponseHeader("Content-Type")||"";E&&q.indexOf("json")>=0&&(E.substring(0,5)===")]}'\n"&&(E=E.substring(5)),J=JSON.parse(E));break;case "XML":if(q=(q=b.responseXML)?GrR(q):null)J={},_.Jz(q.getElementsByTagName("*"),function(F){J[F.tagName]=YYA(F)})}y&&Q5A(J);
return J};
Q5A=function(q){if(_.AZ(q))for(var N in q)N==="html_content"||ZR(N,"_html")?q[N]=BZ(q[N]):Q5A(q[N])};
xcz=function(q,N,b){if(N&&N.status===204)return!0;switch(q){case "JSON":return!!b;case "XML":return Number(b&&b.return_code)===0;case "RAW":return!0;default:return!!b}};
GrR=function(q){return q?(q=("responseXML"in q?q.responseXML:q).getElementsByTagName("root"))&&q.length>0?q[0]:null:null};
YYA=function(q){var N="";_.Jz(q.childNodes,function(b){N+=b.nodeValue});
return N};
Orn=function(q){if(q.name==="JavaException")return!0;q=q.stack;return q.includes("chrome://")||q.includes("-extension://")||q.includes("webkit-masked-url://")};
w3e=function(q){if(!q.stack)return!0;var N=!q.stack.includes("\n");return N&&q.stack.includes("ErrorType: ")||N&&q.stack.includes("Anonymous function (Unknown script")||q.stack.toLowerCase()==="not available"||q.fileName==="user-script"||q.fileName.startsWith("user-script:")?!0:!1};
_.K4=function(q){_.UN.call(this);this.JSC$10599_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!q};
liA=function(q,N){var b=q.length,y=0,J=function(){return q.charCodeAt(y++)};
do{var E=irn(J);if(E===Infinity)break;var F=E>>3;switch(E&7){case 0:E=irn(J);if(F===N)return E;break;case 1:if(F===N)return;y+=8;break;case 2:E=irn(J);if(F===N)return q.substr(y,E);y+=E;break;case 5:if(F===N)return;y+=4;break;default:return}}while(y<b)};
irn=function(q){var N=q(),b=N&127;if(N<128)return b;N=q();b|=(N&127)<<7;if(N<128)return b;N=q();b|=(N&127)<<14;if(N<128)return b;N=q();return N<128?b|(N&127)<<21:Infinity};
DcR=function(q,N,b,y){if(q)if(Array.isArray(q)){var J=y;for(y=0;y<q.length&&!(q[y]&&(J+=KOA(y,q[y],N,b),J>500));y++);y=J}else if(typeof q==="object")for(J in q){if(q[J]){var E=J;var F=q[J],R=N,c=b;E=typeof F!=="string"||E!=="clickTrackingParams"&&E!=="trackingParams"?0:(F=liA(atob(F.replace(/-/g,"+").replace(/_/g,"/")),2))?KOA(E+".ve",F,R,c):0;y+=E;y+=KOA(J,q[J],N,b);if(y>500)break}}else b[N]=DM(q),y+=b[N].length;else b[N]=DM(q),y+=b[N].length;return y};
KOA=function(q,N,b,y){b+="."+q;q=DM(N);y[b]=q;return b.length+q.length};
DM=function(q){try{return(typeof q==="string"?q:String(JSON.stringify(q))).substr(0,500)}catch(N){return"unable to serialize "+typeof q+" ("+N.message+")"}};
h2d=function(q){switch(q){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}};
_.kf=function(q,N,b,y,J){_.hz.set(q,N,{maxAge:b,path:"/",domain:y===void 0?"youtube.com":y,secure:J===void 0?!1:J})};
_.krA=function(q,N,b){_.hz.remove(q,N===void 0?"/":N,b===void 0?"youtube.com":b)};
_.UV=function(){if(_.x("embeds_web_enable_cookie_detection_fix")){if(!_.JZ.navigator.cookieEnabled)return!1}else if(!_.hz.isEnabled())return!1;if(!_.hz.isEmpty())return!0;_.x("embeds_web_enable_cookie_detection_fix")?_.hz.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.hz.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.hz.get("TESTCOOKIESENABLED")!=="1")return!1;_.hz.remove("TESTCOOKIESENABLED");return!0};
UcZ=function(){var q=_.JZ.navigator;return q?q.connection:void 0};
fin=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(q){}};
_.Iiz=function(){var q=UcZ();if(q){var N=CGz[q.type||"unknown"]||"CONN_UNKNOWN";q=CGz[q.effectiveType||"unknown"]||"CONN_UNKNOWN";N==="CONN_CELLULAR_UNKNOWN"&&q!=="CONN_UNKNOWN"&&(N=q);if(N!=="CONN_UNKNOWN")return N;if(q!=="CONN_UNKNOWN")return q}};
s5n=function(){var q=UcZ();if(q!=null&&q.effectiveType)return TgZ.hasOwnProperty(q.effectiveType)?TgZ[q.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.C4=function(){try{return _.f4(),!0}catch(q){return!1}};
_.f4=function(q){if(_.M7("DATASYNC_ID")!==void 0)return _.M7("DATASYNC_ID");throw new _.IO("Datasync ID not set",q===void 0?"unknown":q);};
_.T1=function(q){this.mechanism=q};
sV=function(q){this.mechanism=q};
n4=function(q){this.storage_=q;this.cachedIsStorageAvailable_=null};
noA=function(){var q=null;try{q=_.JZ.localStorage||null}catch(N){}n4.call(this,q)};
aiu=function(){var q=null;try{q=_.JZ.sessionStorage||null}catch(N){}n4.call(this,q)};
aO=function(q,N){this.mechanism_=q;this.JSC$10702_prefix_=N+"::"};
_.SYJ=function(q){var N=new noA;return N.isAvailable()?q?new aO(N,q):N:null};
_.WOu=function(q){var N=new aiu;return N.isAvailable()?q?new aO(N,q):N:null};
p3u=function(){var q;return(q=LOn())==null?void 0:q.get("LAST_RESULT_ENTRY_KEY",!0)};
_.L4=function(q){PGn||(_.SA?_.SA.logError(q):(_.W4.push({type:"ERROR",payload:q}),_.W4.length>10&&_.W4.shift()))};
p4=function(q,N){PGn||(_.SA?_.SA.logEvent(q,N):(_.W4.push({type:"EVENT",eventType:q,payload:N}),_.W4.length>10&&_.W4.shift()))};
P4=function(q){if(q.indexOf(":")>=0)throw Error("Rc");};
oO=function(q){return q.substr(0,q.indexOf(":"))||q};
AeC=function(){return(Mgu||oon)&&Az("applewebkit")&&!Az("version")&&(!Az("safari")||Az("gsa/"))};
Az=function(q){var N=_.Vh();return N?N.toLowerCase().indexOf(q)>=0:!1};
Hrh=function(q,N,b,y){N=oO(N);var J=q instanceof Error?q:Error("Sc`"+q);if(J instanceof eA)return J;q={objectStoreNames:b,dbName:N,dbVersion:y};if(J.name==="QuotaExceededError")return new eA("QUOTA_EXCEEDED",q);if(_.B4&&J.name==="UnknownError")return new eA("QUOTA_MAYBE_EXCEEDED",q);if(J instanceof e2n)return new eA("MISSING_INDEX",Object.assign({},q,{objectStore:J.objectStore,index:J.index}));if(J.name==="InvalidStateError"&&BgA.some(function(E){return J.message.includes(E)}))return new eA("EXECUTE_TRANSACTION_ON_CLOSED_DB",
q);
if(J.name==="AbortError")return new eA("UNKNOWN_ABORT",q,J.message);J.args=[Object.assign({},q,{name:"IdbError",originalName:J.name})];J.level="WARNING";return J};
H4=function(q,N,b){var y=p3u();return new eA("IDB_NOT_SUPPORTED",{context:{caller:q,publicName:N,version:b,hasSucceededOnce:y==null?void 0:y.hasSucceededOnce}})};
qRA=function(q){if(!q)throw Error();throw q;};
N3J=function(q){return q};
bDJ=function(q,N,b){var y=function(){try{q.removeEventListener("success",J),q.removeEventListener("error",E)}catch(F){}},J=function(){N(q.result);
y()},E=function(){b(q.error);
y()};
q.addEventListener("success",J);q.addEventListener("error",E)};
yiC=function(q){return new Promise(function(N,b){bDJ(q,N,b)})};
b7=function(q){return new qm(new Nm(function(N,b){bDJ(q,N,b)}))};
JiA=function(q,N){return new qm(new Nm(function(b,y){var J=function(){var E=q?N(q):null;E?E.then(function(F){q=F;J()},y):b()};
J()}))};
ERd=function(q,N,b){return new Promise(function(y,J){var E=N!==void 0?self.indexedDB.open(q,N):self.indexedDB.open(q);var F=b.blocked,R=b.blocking,c=b.terminated,z=b.upgrade,m=b.closed,r,X=function(){r||(r=new yr(E.result,{closed:m}));return r};
E.addEventListener("upgradeneeded",function(V){try{if(V.newVersion===null)throw Error("Xc");if(E.transaction===null)throw Error("Yc");V.dataLoss&&V.dataLoss!=="none"&&p4("IDB_DATA_CORRUPTED",{reason:V.dataLossMessage||"unknown reason",dbName:oO(q)});var G=X(),w=new JS(E.transaction);z&&z(G,function(D){return V.oldVersion<D&&V.newVersion>=D},w);
w.done.catch(function(D){J(D)})}catch(D){J(D)}});
E.addEventListener("success",function(){var V=E.result;R&&V.addEventListener("versionchange",function(){R(X())});
V.addEventListener("close",function(){p4("IDB_UNEXPECTEDLY_CLOSED",{dbName:oO(q),dbVersion:V.version});c&&c()});
y(X())});
E.addEventListener("error",function(){J(E.error)});
F&&E.addEventListener("blocked",function(){F()})})};
gRz=function(q,N,b){b=b===void 0?{}:b;return ERd(q,N,b)};
_.gD=function(q,N){N=N===void 0?{}:N;var b,y,J,E;return _.d(function(F){if(F.nextAddress==1)return _.Yi(F,2),b=self.indexedDB.deleteDatabase(q),y=N,(J=y.blocked)&&b.addEventListener("blocked",function(){J()}),F.yield(yiC(b),4);
if(F.nextAddress!=2)return _.Ea(F,0);E=_.K7(F);throw Hrh(E,q,"",-1);})};
F5Z=function(q,N){var b;return _.d(function(y){if(y.nextAddress==1)return y.yield(_.Z3(ZDu,N),2);b=y.yieldResult;return y.return(_.Fl(b,["databases"],{enableRetries:!0,mode:"readwrite"},function(J){var E=J.objectStore("databases");return E.get(q.actualName).then(function(F){if(F?q.actualName!==F.actualName||q.publicName!==F.publicName||q.userIdentifier!==F.userIdentifier:1)return E.put(q).then(function(){})})}))})};
_.Rw=function(q,N){var b;return _.d(function(y){if(y.nextAddress==1)return q?y.yield(_.Z3(ZDu,N),2):y.return();b=y.yieldResult;return y.return(b.delete("databases",q))})};
_.RSJ=function(q,N){var b,y;return _.d(function(J){return J.nextAddress==1?(b=[],J.yield(_.Z3(ZDu,N),2)):J.nextAddress!=3?(y=J.yieldResult,J.yield(_.Fl(y,["databases"],{enableRetries:!0,mode:"readonly"},function(E){b.length=0;return dD(E.objectStore("databases"),{},function(F){q(F.getValue())&&b.push(F.getValue());return F.continue()})}),3)):J.return(b)})};
dRh=function(q,N){return _.RSJ(function(b){return b.publicName===q&&b.userIdentifier!==void 0},N)};
zSD=function(){var q,N,b,y;return _.d(function(J){switch(J.nextAddress){case 1:q=p3u();if((N=q)==null?0:N.hasSucceededOnce)return J.return(!0);var E;if(E=cin)E=/WebKit\/([0-9]+)/.exec(_.Vh()),E=!!(E&&parseInt(E[1],10)>=600);E&&(E=/WebKit\/([0-9]+)/.exec(_.Vh()),E=!(E&&parseInt(E[1],10)>=602));if(E||cv)return J.return(!1);try{if(b=self,!(b.indexedDB&&b.IDBIndex&&b.IDBKeyRange&&b.IDBObjectStore))return J.return(!1)}catch(F){return J.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return J.return(!1);
_.Yi(J,2);y={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return J.yield(F5Z(y,utD),4);case 4:return J.yield(_.Rw("yt-idb-test-do-not-use",utD),5);case 5:return J.return(!0);case 2:return _.K7(J),J.return(!1)}})};
tNh=function(){if($RZ!==void 0)return $RZ;PGn=!0;return $RZ=zSD().then(function(q){PGn=!1;var N;if((N=LOn())!=null&&N.hasLocalStorage()){var b;N={hasSucceededOnce:((b=p3u())==null?void 0:b.hasSucceededOnce)||q};var y;(y=LOn())==null||y.set("LAST_RESULT_ENTRY_KEY",N,2592E3,!0)}return q})};
u7=function(){return _.Ng("ytglobal.idbToken_")||void 0};
_.$5=function(){var q=u7();return q?Promise.resolve(q):tNh().then(function(N){(N=N?utD:void 0)&&_.zn("ytglobal.idbToken_",N);return N})};
mRA=function(q){if(!_.C4())throw q=new eA("AUTH_INVALID",{dbName:q}),_.L4(q),q;var N=_.f4();return{actualName:q+":"+N,publicName:q,userIdentifier:N}};
riz=function(q,N,b,y){var J,E,F,R,c,z;return _.d(function(m){switch(m.nextAddress){case 1:return E=(J=Error().stack)!=null?J:"",m.yield(_.$5(),2);case 2:F=m.yieldResult;if(!F)throw R=H4("openDbImpl",q,N),_.x("ytidb_async_stack_killswitch")||(R.stack=R.stack+"\n"+E.substring(E.indexOf("\n")+1)),_.L4(R),R;P4(q);c=b?{actualName:q,publicName:q,userIdentifier:void 0}:mRA(q);_.Yi(m,3);return m.yield(F5Z(c,F),5);case 5:return m.yield(gRz(c.actualName,N,y),6);case 6:return m.return(m.yieldResult);case 3:return z=
_.K7(m),_.Yi(m,7),m.yield(_.Rw(c.actualName,F),9);case 9:_.Ea(m,8);break;case 7:_.K7(m);case 8:throw z;}})};
XTD=function(q,N,b){b=b===void 0?{}:b;return riz(q,N,!1,b)};
VNA=function(q,N,b){b=b===void 0?{}:b;return riz(q,N,!0,b)};
joZ=function(q,N){N=N===void 0?{}:N;var b,y;return _.d(function(J){if(J.nextAddress==1)return J.yield(_.$5(),2);if(J.nextAddress!=3){b=J.yieldResult;if(!b)return J.return();P4(q);y=mRA(q);return J.yield(_.gD(y.actualName,N),3)}return J.yield(_.Rw(y.actualName,b),0)})};
xRd=function(q,N,b){q=q.map(function(y){return _.d(function(J){return J.nextAddress==1?J.yield(_.gD(y.actualName,N),2):J.yield(_.Rw(y.actualName,b),0)})});
return Promise.all(q).then(function(){})};
vRJ=function(q){var N=N===void 0?{}:N;var b,y;return _.d(function(J){if(J.nextAddress==1)return J.yield(_.$5(),2);if(J.nextAddress!=3){b=J.yieldResult;if(!b)return J.return();P4(q);return J.yield(dRh(q,b),3)}y=J.yieldResult;return J.yield(xRd(y,N,b),0)})};
GCD=function(q,N){N=N===void 0?{}:N;var b;return _.d(function(y){if(y.nextAddress==1)return y.yield(_.$5(),2);if(y.nextAddress!=3){b=y.yieldResult;if(!b)return y.return();P4(q);return y.yield(_.gD(q,N),3)}return y.yield(_.Rw(q,b),0)})};
tS=function(q,N){return YRJ(q,N)};
ODn=function(q){return _.Z3(Qou(),q)};
wTn=function(q,N,b,y){var J,E,F;return _.d(function(R){switch(R.nextAddress){case 1:return J={config:q,hashData:N,timestamp:y!==void 0?y:(0,_.mA)()},R.yield(ODn(b),2);case 2:return E=R.yieldResult,R.yield(E.clear("hotConfigStore"),3);case 3:return R.yield(E.put("hotConfigStore",J),4);case 4:return F=R.yieldResult,R.return(F)}})};
iDd=function(q,N,b,y,J){var E,F,R;return _.d(function(c){switch(c.nextAddress){case 1:return E={config:q,hashData:N,configData:b,timestamp:J!==void 0?J:(0,_.mA)()},c.yield(ODn(y),2);case 2:return F=c.yieldResult,c.yield(F.clear("coldConfigStore"),3);case 3:return c.yield(F.put("coldConfigStore",E),4);case 4:return R=c.yieldResult,c.return(R)}})};
lCn=function(q){var N,b;return _.d(function(y){return y.nextAddress==1?y.yield(ODn(q),2):y.nextAddress!=3?(N=y.yieldResult,b=void 0,y.yield(_.Fl(N,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(J){return _.rD(J.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(E){b=E.getValue()})}),3)):y.return(b)})};
K5n=function(q){var N,b;return _.d(function(y){return y.nextAddress==1?y.yield(ODn(q),2):y.nextAddress!=3?(N=y.yieldResult,b=void 0,y.yield(_.Fl(N,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(J){return _.rD(J.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(E){b=E.getValue()})}),3)):y.return(b)})};
DRA=function(){return _.d(function(q){return q.yield(vRJ("ytGcfConfig"),0)})};
hSR=function(){return"INNERTUBE_API_KEY"in _.pI&&"INNERTUBE_API_VERSION"in _.pI};
_.Xl=function(){return{innertubeApiKey:_.M7("INNERTUBE_API_KEY"),innertubeApiVersion:_.M7("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.M7("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.M7("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.M7("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.M7("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.M7("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.M7("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.M7("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.ou("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.ou("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.M7("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.soz=function(q){var N={client:{hl:q.innertubeContextHostLanguage,gl:q.innertubeContextGeoLocation,clientName:q.innertubeContextClientName,clientVersion:q.innertubeContextClientVersion,configInfo:q.innertubeContextClientConfigInfo}};navigator.userAgent&&(N.client.userAgent=String(navigator.userAgent));var b=_.JZ.devicePixelRatio;b&&b!=1&&(N.client.screenDensityFloat=String(b));b=bru();b!==""&&(N.client.experimentsToken=b);b=yeZ();b.length>0&&(N.request={internalExperimentFlags:b});kCn(q,void 0,N);
URA(void 0,N);fCJ(void 0,N);CgC(q,void 0,N);ICd(void 0,N);_.x("start_client_gcf")&&T3d(void 0,N);_.M7("DELEGATED_SESSION_ID")&&!_.x("pageid_as_header_web")&&(N.user={onBehalfOfUser:_.M7("DELEGATED_SESSION_ID")});!_.x("fill_delegate_context_in_gel_killswitch")&&(q=_.M7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(N.user=Object.assign({},N.user,{serializedDelegationContext:q}));q=_.M7("INNERTUBE_CONTEXT");var y;if(_.x("enable_persistent_device_token")&&(q==null?0:(y=q.client)==null?0:y.rolloutToken)){var J;
N.client.rolloutToken=q==null?void 0:(J=q.client)==null?void 0:J.rolloutToken}y=Object;J=y.assign;q=N.client;b={};for(var E=_.Z(Object.entries(_.EV(_.M7("DEVICE","")))),F=E.next();!F.done;F=E.next()){var R=_.Z(F.value);F=R.next().value;R=R.next().value;F==="cbrand"?b.deviceMake=R:F==="cmodel"?b.deviceModel=R:F==="cbr"?b.browserName=R:F==="cbrver"?b.browserVersion=R:F==="cos"?b.osName=R:F==="cosver"?b.osVersion=R:F==="cplatform"&&(b.platform=R)}N.client=J.call(y,q,b);return N};
kCn=function(q,N,b){q=q.innertubeContextClientName;if(q==="WEB"||q==="MWEB"||q===1||q===2)if(N){b=_.Vr(N,nRC,96)||new nRC;var y=aCh();y=Object.keys(SRC).indexOf(y);y=y===-1?null:y;y!==null&&_.jd(b,3,y);_.ws(N,96,b)}else b&&(b.client.mainAppWebInfo=(y=b.client.mainAppWebInfo)!=null?y:{},b.client.mainAppWebInfo.webDisplayMode=aCh())};
URA=function(q,N){var b=_.Ng("yt.embedded_player.embed_url");b&&(q?(N=_.Vr(q,W5R,7)||new W5R,_.Up(N,4,b),_.ws(q,7,N)):N&&(N.thirdParty={embedUrl:b}))};
fCJ=function(q,N){var b;if(_.x("web_log_memory_total_kbytes")&&((b=_.JZ.navigator)==null?0:b.deviceMemory)){var y;b=(y=_.JZ.navigator)==null?void 0:y.deviceMemory;q?_.x5(q,95,$a(b*1E6)):N&&(N.client.memoryTotalKbytes=""+b*1E6)}};
CgC=function(q,N,b){if(q.appInstallData)if(N){var y;b=(y=_.Vr(N,vv,62))!=null?y:new vv;_.Up(b,6,q.appInstallData);_.ws(N,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=q.appInstallData)};
ICd=function(q,N){var b=_.Iiz();b&&(q?_.jd(q,61,L5d[b]):N&&(N.client.connectionType=b));_.x("web_log_effective_connection_type")&&(b=s5n())&&(q?_.jd(q,94,pTd[b]):N&&(N.client.effectiveConnectionType=b))};
_.oRC=function(q,N,b){b=b===void 0?{}:b;var y={};_.M7("EOM_VISITOR_DATA")?y={"X-Goog-EOM-Visitor-Id":_.M7("EOM_VISITOR_DATA")}:y={"X-Goog-Visitor-Id":b.visitorData||_.M7("VISITOR_DATA","")};if(N&&N.includes("www.youtube-nocookie.com"))return y;N=b.authorization||_.M7("AUTHORIZATION");N||(q?N="Bearer "+_.Ng("gapi.auth.getToken")().access_token:(Pgn.instance||(Pgn.instance=new Pgn),q=MNe(),_.x("pageid_as_header_web")||delete q["X-Goog-PageId"],y=Object.assign({},y,q)));N&&(y.Authorization=N);return y};
T3d=function(q,N){var b=AiA();if(b){var y=b.coldConfigData,J=b.coldHashData;b=b.hotHashData;if(q){var E;N=(E=_.Vr(q,vv,62))!=null?E:new vv;y=_.Up(N,1,y);_.Up(y,3,J).setHotHashData(b);_.ws(q,62,N)}else N&&(N.client.configInfo=N.client.configInfo||{},y&&(N.client.configInfo.coldConfigData=y),J&&(N.client.configInfo.coldHashData=J),b&&(N.client.configInfo.hotHashData=b))}};
Gn=function(q){for(var N=q.length;--N>=0;)q[N]=0};
eSh=function(q,N,b,y,J){this.static_tree=q;this.extra_bits=N;this.extra_base=b;this.elems=y;this.max_length=J;this.has_stree=q&&q.length};
B3n=function(q,N){this.dyn_tree=q;this.max_code=0;this.stat_desc=N};
Y5=function(q,N){q.pending_buf[q.pending++]=N&255;q.pending_buf[q.pending++]=N>>>8&255};
Qr=function(q,N,b){q.bi_valid>16-b?(q.bi_buf|=N<<q.bi_valid&65535,Y5(q,q.bi_buf),q.bi_buf=N>>16-q.bi_valid,q.bi_valid+=b-16):(q.bi_buf|=N<<q.bi_valid&65535,q.bi_valid+=b)};
Oa=function(q,N,b){Qr(q,b[N*2],b[N*2+1])};
HDd=function(q,N){var b=0;do b|=q&1,q>>>=1,b<<=1;while(--N>0);return b>>>1};
qvJ=function(q,N,b){var y=Array(16),J=0,E;for(E=1;E<=15;E++)y[E]=J=J+b[E-1]<<1;for(b=0;b<=N;b++)J=q[b*2+1],J!==0&&(q[b*2]=HDd(y[J]++,J))};
N5J=function(q){var N;for(N=0;N<286;N++)q.dyn_ltree[N*2]=0;for(N=0;N<30;N++)q.dyn_dtree[N*2]=0;for(N=0;N<19;N++)q.bl_tree[N*2]=0;q.dyn_ltree[512]=1;q.opt_len=q.static_len=0;q.last_lit=q.matches=0};
b9D=function(q){q.bi_valid>8?Y5(q,q.bi_buf):q.bi_valid>0&&(q.pending_buf[q.pending++]=q.bi_buf);q.bi_buf=0;q.bi_valid=0};
yNn=function(q,N,b){b9D(q);Y5(q,b);Y5(q,~b);wD.arraySet(q.pending_buf,q.window,N,b,q.pending);q.pending+=b};
JNn=function(q,N,b,y){var J=N*2,E=b*2;return q[J]<q[E]||q[J]===q[E]&&y[N]<=y[b]};
E8z=function(q,N,b){for(var y=q.heap[b],J=b<<1;J<=q.heap_len;){J<q.heap_len&&JNn(N,q.heap[J+1],q.heap[J],q.depth)&&J++;if(JNn(N,y,q.heap[J],q.depth))break;q.heap[b]=q.heap[J];b=J;J<<=1}q.heap[b]=y};
dKz=function(q,N,b){var y=0;if(q.last_lit!==0){do{var J=q.pending_buf[q.d_buf+y*2]<<8|q.pending_buf[q.d_buf+y*2+1];var E=q.pending_buf[q.l_buf+y];y++;if(J===0)Oa(q,E,N);else{var F=i7[E];Oa(q,F+256+1,N);var R=g8n[F];R!==0&&(E-=Z9d[F],Qr(q,E,R));J--;F=J<256?l7[J]:l7[256+(J>>>7)];Oa(q,F,b);R=Fln[F];R!==0&&(J-=RnZ[F],Qr(q,J,R))}}while(y<q.last_lit)}Oa(q,256,N)};
cNz=function(q,N){var b=N.dyn_tree,y=N.stat_desc.static_tree,J=N.stat_desc.has_stree,E=N.stat_desc.elems,F,R=-1;q.heap_len=0;q.heap_max=573;for(F=0;F<E;F++)b[F*2]!==0?(q.heap[++q.heap_len]=R=F,q.depth[F]=0):b[F*2+1]=0;for(;q.heap_len<2;){var c=q.heap[++q.heap_len]=R<2?++R:0;b[c*2]=1;q.depth[c]=0;q.opt_len--;J&&(q.static_len-=y[c*2+1])}N.max_code=R;for(F=q.heap_len>>1;F>=1;F--)E8z(q,b,F);c=E;do F=q.heap[1],q.heap[1]=q.heap[q.heap_len--],E8z(q,b,1),y=q.heap[1],q.heap[--q.heap_max]=F,q.heap[--q.heap_max]=
y,b[c*2]=b[F*2]+b[y*2],q.depth[c]=(q.depth[F]>=q.depth[y]?q.depth[F]:q.depth[y])+1,b[F*2+1]=b[y*2+1]=c,q.heap[1]=c++,E8z(q,b,1);while(q.heap_len>=2);q.heap[--q.heap_max]=q.heap[1];F=N.dyn_tree;c=N.max_code;y=N.stat_desc.static_tree;J=N.stat_desc.has_stree;E=N.stat_desc.extra_bits;var z=N.stat_desc.extra_base,m=N.stat_desc.max_length,r,X=0;for(r=0;r<=15;r++)q.bl_count[r]=0;F[q.heap[q.heap_max]*2+1]=0;for(N=q.heap_max+1;N<573;N++){var V=q.heap[N];r=F[F[V*2+1]*2+1]+1;r>m&&(r=m,X++);F[V*2+1]=r;if(!(V>
c)){q.bl_count[r]++;var G=0;V>=z&&(G=E[V-z]);var w=F[V*2];q.opt_len+=w*(r+G);J&&(q.static_len+=w*(y[V*2+1]+G))}}if(X!==0){do{for(r=m-1;q.bl_count[r]===0;)r--;q.bl_count[r]--;q.bl_count[r+1]+=2;q.bl_count[m]--;X-=2}while(X>0);for(r=m;r!==0;r--)for(V=q.bl_count[r];V!==0;)y=q.heap[--N],y>c||(F[y*2+1]!==r&&(q.opt_len+=(r-F[y*2+1])*F[y*2],F[y*2+1]=r),V--)}qvJ(b,R,q.bl_count)};
uHu=function(q,N,b){var y,J=-1,E=N[1],F=0,R=7,c=4;E===0&&(R=138,c=3);N[(b+1)*2+1]=65535;for(y=0;y<=b;y++){var z=E;E=N[(y+1)*2+1];++F<R&&z===E||(F<c?q.bl_tree[z*2]+=F:z!==0?(z!==J&&q.bl_tree[z*2]++,q.bl_tree[32]++):F<=10?q.bl_tree[34]++:q.bl_tree[36]++,F=0,J=z,E===0?(R=138,c=3):z===E?(R=6,c=3):(R=7,c=4))}};
znC=function(q,N,b){var y,J=-1,E=N[1],F=0,R=7,c=4;E===0&&(R=138,c=3);for(y=0;y<=b;y++){var z=E;E=N[(y+1)*2+1];if(!(++F<R&&z===E)){if(F<c){do Oa(q,z,q.bl_tree);while(--F!==0)}else z!==0?(z!==J&&(Oa(q,z,q.bl_tree),F--),Oa(q,16,q.bl_tree),Qr(q,F-3,2)):F<=10?(Oa(q,17,q.bl_tree),Qr(q,F-3,3)):(Oa(q,18,q.bl_tree),Qr(q,F-11,7));F=0;J=z;E===0?(R=138,c=3):z===E?(R=6,c=3):(R=7,c=4)}}};
$KD=function(q){var N=4093624447,b;for(b=0;b<=31;b++,N>>>=1)if(N&1&&q.dyn_ltree[b*2]!==0)return 0;if(q.dyn_ltree[18]!==0||q.dyn_ltree[20]!==0||q.dyn_ltree[26]!==0)return 1;for(b=32;b<256;b++)if(q.dyn_ltree[b*2]!==0)return 1;return 0};
KY=function(q,N,b){q.pending_buf[q.d_buf+q.last_lit*2]=N>>>8&255;q.pending_buf[q.d_buf+q.last_lit*2+1]=N&255;q.pending_buf[q.l_buf+q.last_lit]=b&255;q.last_lit++;N===0?q.dyn_ltree[b*2]++:(q.matches++,N--,q.dyn_ltree[(i7[b]+256+1)*2]++,q.dyn_dtree[(N<256?l7[N]:l7[256+(N>>>7)])*2]++);return q.last_lit===q.lit_bufsize-1};
hS=function(q,N){q.msg=D3[N];return N};
k5=function(q){for(var N=q.length;--N>=0;)q[N]=0};
Ua=function(q){var N=q.state,b=N.pending;b>q.avail_out&&(b=q.avail_out);b!==0&&(wD.arraySet(q.output,N.pending_buf,N.pending_out,b,q.next_out),q.next_out+=b,N.pending_out+=b,q.total_out+=b,q.avail_out-=b,N.pending-=b,N.pending===0&&(N.pending_out=0))};
Iw=function(q,N){var b=q.block_start>=0?q.block_start:-1,y=q.strstart-q.block_start,J=0;if(q.level>0){q.strm.data_type===2&&(q.strm.data_type=$KD(q));cNz(q,q.l_desc);cNz(q,q.d_desc);uHu(q,q.dyn_ltree,q.l_desc.max_code);uHu(q,q.dyn_dtree,q.d_desc.max_code);cNz(q,q.bl_desc);for(J=18;J>=3&&q.bl_tree[teA[J]*2+1]===0;J--);q.opt_len+=3*(J+1)+5+5+4;var E=q.opt_len+3+7>>>3;var F=q.static_len+3+7>>>3;F<=E&&(E=F)}else E=F=y+5;if(y+4<=E&&b!==-1)Qr(q,N?1:0,3),yNn(q,b,y);else if(q.strategy===4||F===E)Qr(q,2+(N?
1:0),3),dKz(q,fY,CY);else{Qr(q,4+(N?1:0),3);b=q.l_desc.max_code+1;y=q.d_desc.max_code+1;J+=1;Qr(q,b-257,5);Qr(q,y-1,5);Qr(q,J-4,4);for(E=0;E<J;E++)Qr(q,q.bl_tree[teA[E]*2+1],3);znC(q,q.dyn_ltree,b-1);znC(q,q.dyn_dtree,y-1);dKz(q,q.dyn_ltree,q.dyn_dtree)}N5J(q);N&&b9D(q);q.block_start=q.strstart;Ua(q.strm)};
Tn=function(q,N){q.pending_buf[q.pending++]=N};
sa=function(q,N){q.pending_buf[q.pending++]=N>>>8&255;q.pending_buf[q.pending++]=N&255};
mKu=function(q,N){var b=q.max_chain_length,y=q.strstart,J=q.prev_length,E=q.nice_match,F=q.strstart>q.w_size-262?q.strstart-(q.w_size-262):0,R=q.window,c=q.w_mask,z=q.prev,m=q.strstart+258,r=R[y+J-1],X=R[y+J];q.prev_length>=q.good_match&&(b>>=2);E>q.lookahead&&(E=q.lookahead);do{var V=N;if(R[V+J]===X&&R[V+J-1]===r&&R[V]===R[y]&&R[++V]===R[y+1]){y+=2;for(V++;R[++y]===R[++V]&&R[++y]===R[++V]&&R[++y]===R[++V]&&R[++y]===R[++V]&&R[++y]===R[++V]&&R[++y]===R[++V]&&R[++y]===R[++V]&&R[++y]===R[++V]&&y<m;);
V=258-(m-y);y=m-258;if(V>J){q.match_start=N;J=V;if(V>=E)break;r=R[y+J-1];X=R[y+J]}}}while((N=z[N&c])>F&&--b!==0);return J<=q.lookahead?J:q.lookahead};
aw=function(q){var N=q.w_size,b;do{var y=q.window_size-q.lookahead-q.strstart;if(q.strstart>=N+(N-262)){wD.arraySet(q.window,q.window,N,N,0);q.match_start-=N;q.strstart-=N;q.block_start-=N;var J=b=q.hash_size;do{var E=q.head[--J];q.head[J]=E>=N?E-N:0}while(--b);J=b=N;do E=q.prev[--J],q.prev[J]=E>=N?E-N:0;while(--b);y+=N}if(q.strm.avail_in===0)break;J=q.strm;b=q.window;E=q.strstart+q.lookahead;var F=J.avail_in;F>y&&(F=y);F===0?b=0:(J.avail_in-=F,wD.arraySet(b,J.input,J.next_in,F,E),J.state.wrap===
1?J.adler=rNn(J.adler,b,F,E):J.state.wrap===2&&(J.adler=nY(J.adler,b,F,E)),J.next_in+=F,J.total_in+=F,b=F);q.lookahead+=b;if(q.lookahead+q.insert>=3)for(y=q.strstart-q.insert,q.ins_h=q.window[y],q.ins_h=(q.ins_h<<q.hash_shift^q.window[y+1])&q.hash_mask;q.insert&&!(q.ins_h=(q.ins_h<<q.hash_shift^q.window[y+3-1])&q.hash_mask,q.prev[y&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=y,y++,q.insert--,q.lookahead+q.insert<3););}while(q.lookahead<262&&q.strm.avail_in!==0)};
XPZ=function(q,N){for(var b;;){if(q.lookahead<262){aw(q);if(q.lookahead<262&&N===0)return 1;if(q.lookahead===0)break}b=0;q.lookahead>=3&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,b=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart);b!==0&&q.strstart-b<=q.w_size-262&&(q.match_length=mKu(q,b));if(q.match_length>=3)if(b=KY(q,q.strstart-q.match_start,q.match_length-3),q.lookahead-=q.match_length,q.match_length<=q.max_lazy_match&&q.lookahead>=3){q.match_length--;
do q.strstart++,q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart;while(--q.match_length!==0);q.strstart++}else q.strstart+=q.match_length,q.match_length=0,q.ins_h=q.window[q.strstart],q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+1])&q.hash_mask;else b=KY(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++;if(b&&(Iw(q,!1),q.strm.avail_out===0))return 1}q.insert=q.strstart<2?q.strstart:2;return N===4?(Iw(q,
!0),q.strm.avail_out===0?3:4):q.last_lit&&(Iw(q,!1),q.strm.avail_out===0)?1:2};
Sd=function(q,N){for(var b,y;;){if(q.lookahead<262){aw(q);if(q.lookahead<262&&N===0)return 1;if(q.lookahead===0)break}b=0;q.lookahead>=3&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,b=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart);q.prev_length=q.match_length;q.prev_match=q.match_start;q.match_length=2;b!==0&&q.prev_length<q.max_lazy_match&&q.strstart-b<=q.w_size-262&&(q.match_length=mKu(q,b),q.match_length<=5&&(q.strategy===1||q.match_length===3&&
q.strstart-q.match_start>4096)&&(q.match_length=2));if(q.prev_length>=3&&q.match_length<=q.prev_length){y=q.strstart+q.lookahead-3;b=KY(q,q.strstart-1-q.prev_match,q.prev_length-3);q.lookahead-=q.prev_length-1;q.prev_length-=2;do++q.strstart<=y&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart);while(--q.prev_length!==0);q.match_available=0;q.match_length=2;q.strstart++;if(b&&(Iw(q,!1),q.strm.avail_out===0))return 1}else if(q.match_available){if((b=
KY(q,0,q.window[q.strstart-1]))&&Iw(q,!1),q.strstart++,q.lookahead--,q.strm.avail_out===0)return 1}else q.match_available=1,q.strstart++,q.lookahead--}q.match_available&&(KY(q,0,q.window[q.strstart-1]),q.match_available=0);q.insert=q.strstart<2?q.strstart:2;return N===4?(Iw(q,!0),q.strm.avail_out===0?3:4):q.last_lit&&(Iw(q,!1),q.strm.avail_out===0)?1:2};
VeJ=function(q,N){for(var b,y,J,E=q.window;;){if(q.lookahead<=258){aw(q);if(q.lookahead<=258&&N===0)return 1;if(q.lookahead===0)break}q.match_length=0;if(q.lookahead>=3&&q.strstart>0&&(y=q.strstart-1,b=E[y],b===E[++y]&&b===E[++y]&&b===E[++y])){for(J=q.strstart+258;b===E[++y]&&b===E[++y]&&b===E[++y]&&b===E[++y]&&b===E[++y]&&b===E[++y]&&b===E[++y]&&b===E[++y]&&y<J;);q.match_length=258-(J-y);q.match_length>q.lookahead&&(q.match_length=q.lookahead)}q.match_length>=3?(b=KY(q,1,q.match_length-3),q.lookahead-=
q.match_length,q.strstart+=q.match_length,q.match_length=0):(b=KY(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++);if(b&&(Iw(q,!1),q.strm.avail_out===0))return 1}q.insert=0;return N===4?(Iw(q,!0),q.strm.avail_out===0?3:4):q.last_lit&&(Iw(q,!1),q.strm.avail_out===0)?1:2};
j0n=function(q,N){for(var b;;){if(q.lookahead===0&&(aw(q),q.lookahead===0)){if(N===0)return 1;break}q.match_length=0;b=KY(q,0,q.window[q.strstart]);q.lookahead--;q.strstart++;if(b&&(Iw(q,!1),q.strm.avail_out===0))return 1}q.insert=0;return N===4?(Iw(q,!0),q.strm.avail_out===0?3:4):q.last_lit&&(Iw(q,!1),q.strm.avail_out===0)?1:2};
Wv=function(q,N,b,y,J){this.good_length=q;this.max_lazy=N;this.nice_length=b;this.max_chain=y;this.func=J};
xKR=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 wD.Buf16(1146);this.dyn_dtree=new wD.Buf16(122);this.bl_tree=new wD.Buf16(78);k5(this.dyn_ltree);k5(this.dyn_dtree);k5(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new wD.Buf16(16);this.heap=new wD.Buf16(573);k5(this.heap);this.heap_max=this.heap_len=0;this.depth=new wD.Buf16(573);k5(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};
v8A=function(q,N){if(!q||!q.state||N>5||N<0)return q?hS(q,-2):-2;var b=q.state;if(!q.output||!q.input&&q.avail_in!==0||b.status===666&&N!==4)return hS(q,q.avail_out===0?-5:-2);b.strm=q;var y=b.last_flush;b.last_flush=N;if(b.status===42)if(b.wrap===2)q.adler=0,Tn(b,31),Tn(b,139),Tn(b,8),b.gzhead?(Tn(b,(b.gzhead.text?1:0)+(b.gzhead.hcrc?2:0)+(b.gzhead.extra?4:0)+(b.gzhead.name?8:0)+(b.gzhead.comment?16:0)),Tn(b,b.gzhead.time&255),Tn(b,b.gzhead.time>>8&255),Tn(b,b.gzhead.time>>16&255),Tn(b,b.gzhead.time>>
24&255),Tn(b,b.level===9?2:b.strategy>=2||b.level<2?4:0),Tn(b,b.gzhead.os&255),b.gzhead.extra&&b.gzhead.extra.length&&(Tn(b,b.gzhead.extra.length&255),Tn(b,b.gzhead.extra.length>>8&255)),b.gzhead.hcrc&&(q.adler=nY(q.adler,b.pending_buf,b.pending,0)),b.gzindex=0,b.status=69):(Tn(b,0),Tn(b,0),Tn(b,0),Tn(b,0),Tn(b,0),Tn(b,b.level===9?2:b.strategy>=2||b.level<2?4:0),Tn(b,3),b.status=113);else{var J=8+(b.w_bits-8<<4)<<8;J|=(b.strategy>=2||b.level<2?0:b.level<6?1:b.level===6?2:3)<<6;b.strstart!==0&&(J|=
32);b.status=113;sa(b,J+(31-J%31));b.strstart!==0&&(sa(b,q.adler>>>16),sa(b,q.adler&65535));q.adler=1}if(b.status===69)if(b.gzhead.extra){for(J=b.pending;b.gzindex<(b.gzhead.extra.length&65535)&&(b.pending!==b.pending_buf_size||(b.gzhead.hcrc&&b.pending>J&&(q.adler=nY(q.adler,b.pending_buf,b.pending-J,J)),Ua(q),J=b.pending,b.pending!==b.pending_buf_size));)Tn(b,b.gzhead.extra[b.gzindex]&255),b.gzindex++;b.gzhead.hcrc&&b.pending>J&&(q.adler=nY(q.adler,b.pending_buf,b.pending-J,J));b.gzindex===b.gzhead.extra.length&&
(b.gzindex=0,b.status=73)}else b.status=73;if(b.status===73)if(b.gzhead.name){J=b.pending;do{if(b.pending===b.pending_buf_size&&(b.gzhead.hcrc&&b.pending>J&&(q.adler=nY(q.adler,b.pending_buf,b.pending-J,J)),Ua(q),J=b.pending,b.pending===b.pending_buf_size)){var E=1;break}E=b.gzindex<b.gzhead.name.length?b.gzhead.name.charCodeAt(b.gzindex++)&255:0;Tn(b,E)}while(E!==0);b.gzhead.hcrc&&b.pending>J&&(q.adler=nY(q.adler,b.pending_buf,b.pending-J,J));E===0&&(b.gzindex=0,b.status=91)}else b.status=91;if(b.status===
91)if(b.gzhead.comment){J=b.pending;do{if(b.pending===b.pending_buf_size&&(b.gzhead.hcrc&&b.pending>J&&(q.adler=nY(q.adler,b.pending_buf,b.pending-J,J)),Ua(q),J=b.pending,b.pending===b.pending_buf_size)){E=1;break}E=b.gzindex<b.gzhead.comment.length?b.gzhead.comment.charCodeAt(b.gzindex++)&255:0;Tn(b,E)}while(E!==0);b.gzhead.hcrc&&b.pending>J&&(q.adler=nY(q.adler,b.pending_buf,b.pending-J,J));E===0&&(b.status=103)}else b.status=103;b.status===103&&(b.gzhead.hcrc?(b.pending+2>b.pending_buf_size&&Ua(q),
b.pending+2<=b.pending_buf_size&&(Tn(b,q.adler&255),Tn(b,q.adler>>8&255),q.adler=0,b.status=113)):b.status=113);if(b.pending!==0){if(Ua(q),q.avail_out===0)return b.last_flush=-1,0}else if(q.avail_in===0&&(N<<1)-(N>4?9:0)<=(y<<1)-(y>4?9:0)&&N!==4)return hS(q,-5);if(b.status===666&&q.avail_in!==0)return hS(q,-5);if(q.avail_in!==0||b.lookahead!==0||N!==0&&b.status!==666){y=b.strategy===2?j0n(b,N):b.strategy===3?VeJ(b,N):LY[b.level].func(b,N);if(y===3||y===4)b.status=666;if(y===1||y===3)return q.avail_out===
0&&(b.last_flush=-1),0;if(y===2&&(N===1?(Qr(b,2,3),Oa(b,256,fY),b.bi_valid===16?(Y5(b,b.bi_buf),b.bi_buf=0,b.bi_valid=0):b.bi_valid>=8&&(b.pending_buf[b.pending++]=b.bi_buf&255,b.bi_buf>>=8,b.bi_valid-=8)):N!==5&&(Qr(b,0,3),yNn(b,0,0),N===3&&(k5(b.head),b.lookahead===0&&(b.strstart=0,b.block_start=0,b.insert=0))),Ua(q),q.avail_out===0))return b.last_flush=-1,0}if(N!==4)return 0;if(b.wrap<=0)return 1;b.wrap===2?(Tn(b,q.adler&255),Tn(b,q.adler>>8&255),Tn(b,q.adler>>16&255),Tn(b,q.adler>>24&255),Tn(b,
q.total_in&255),Tn(b,q.total_in>>8&255),Tn(b,q.total_in>>16&255),Tn(b,q.total_in>>24&255)):(sa(b,q.adler>>>16),sa(b,q.adler&65535));Ua(q);b.wrap>0&&(b.wrap=-b.wrap);return b.pending!==0?0:1};
GMC=function(q){if(!(this instanceof GMC))return new GMC(q);q=this.options=wD.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},q||{});q.raw&&q.windowBits>0?q.windowBits=-q.windowBits:q.gzip&&q.windowBits>0&&q.windowBits<16&&(q.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new YvC;this.strm.avail_out=0;var N=this.strm;var b=q.level,y=q.method,J=q.windowBits,E=q.memLevel,F=q.strategy;if(N){var R=1;b===-1&&(b=6);J<0?(R=0,J=-J):J>15&&
(R=2,J-=16);if(E<1||E>9||y!==8||J<8||J>15||b<0||b>9||F<0||F>4)N=hS(N,-2);else{J===8&&(J=9);var c=new xKR;N.state=c;c.strm=N;c.wrap=R;c.gzhead=null;c.w_bits=J;c.w_size=1<<c.w_bits;c.w_mask=c.w_size-1;c.hash_bits=E+7;c.hash_size=1<<c.hash_bits;c.hash_mask=c.hash_size-1;c.hash_shift=~~((c.hash_bits+3-1)/3);c.window=new wD.Buf8(c.w_size*2);c.head=new wD.Buf16(c.hash_size);c.prev=new wD.Buf16(c.w_size);c.lit_bufsize=1<<E+6;c.pending_buf_size=c.lit_bufsize*4;c.pending_buf=new wD.Buf8(c.pending_buf_size);
c.d_buf=c.lit_bufsize;c.l_buf=3*c.lit_bufsize;c.level=b;c.strategy=F;c.method=y;if(N&&N.state){N.total_in=N.total_out=0;N.data_type=2;b=N.state;b.pending=0;b.pending_out=0;b.wrap<0&&(b.wrap=-b.wrap);b.status=b.wrap?42:113;N.adler=b.wrap===2?0:1;b.last_flush=0;if(!Q0d){y=Array(16);for(E=F=0;E<28;E++)for(Z9d[E]=F,J=0;J<1<<g8n[E];J++)i7[F++]=E;i7[F-1]=E;for(E=F=0;E<16;E++)for(RnZ[E]=F,J=0;J<1<<Fln[E];J++)l7[F++]=E;for(F>>=7;E<30;E++)for(RnZ[E]=F<<7,J=0;J<1<<Fln[E]-7;J++)l7[256+F++]=E;for(J=0;J<=15;J++)y[J]=
0;for(J=0;J<=143;)fY[J*2+1]=8,J++,y[8]++;for(;J<=255;)fY[J*2+1]=9,J++,y[9]++;for(;J<=279;)fY[J*2+1]=7,J++,y[7]++;for(;J<=287;)fY[J*2+1]=8,J++,y[8]++;qvJ(fY,287,y);for(J=0;J<30;J++)CY[J*2+1]=5,CY[J*2]=HDd(J,5);O9h=new eSh(fY,g8n,257,286,15);wPR=new eSh(CY,Fln,0,30,15);i9n=new eSh([],l4h,0,19,7);Q0d=!0}b.l_desc=new B3n(b.dyn_ltree,O9h);b.d_desc=new B3n(b.dyn_dtree,wPR);b.bl_desc=new B3n(b.bl_tree,i9n);b.bi_buf=0;b.bi_valid=0;N5J(b);b=0}else b=hS(N,-2);b===0&&(N=N.state,N.window_size=2*N.w_size,k5(N.head),
N.max_lazy_match=LY[N.level].max_lazy,N.good_match=LY[N.level].good_length,N.nice_match=LY[N.level].nice_length,N.max_chain_length=LY[N.level].max_chain,N.strstart=0,N.block_start=0,N.lookahead=0,N.insert=0,N.match_length=N.prev_length=2,N.match_available=0,N.ins_h=0);N=b}}else N=-2;if(N!==0)throw Error(D3[N]);q.header&&(N=this.strm)&&N.state&&N.state.wrap===2&&(N.state.gzhead=q.header);if(q.dictionary){var z;typeof q.dictionary==="string"?z=KlZ(q.dictionary):DKh.call(q.dictionary)==="[object ArrayBuffer]"?
z=new Uint8Array(q.dictionary):z=q.dictionary;q=this.strm;E=z;F=E.length;if(q&&q.state)if(z=q.state,N=z.wrap,N===2||N===1&&z.status!==42||z.lookahead)N=-2;else{N===1&&(q.adler=rNn(q.adler,E,F,0));z.wrap=0;F>=z.w_size&&(N===0&&(k5(z.head),z.strstart=0,z.block_start=0,z.insert=0),b=new wD.Buf8(z.w_size),wD.arraySet(b,E,F-z.w_size,z.w_size,0),E=b,F=z.w_size);b=q.avail_in;y=q.next_in;J=q.input;q.avail_in=F;q.next_in=0;q.input=E;for(aw(z);z.lookahead>=3;){E=z.strstart;F=z.lookahead-2;do z.ins_h=(z.ins_h<<
z.hash_shift^z.window[E+3-1])&z.hash_mask,z.prev[E&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=E,E++;while(--F);z.strstart=E;z.lookahead=2;aw(z)}z.strstart+=z.lookahead;z.block_start=z.strstart;z.insert=z.lookahead;z.lookahead=0;z.match_length=z.prev_length=2;z.match_available=0;q.next_in=y;q.input=J;q.avail_in=b;z.wrap=N;N=0}else N=-2;if(N!==0)throw Error(D3[N]);this._dict_set=!0}};
hnn=function(q,N){N=N||{};N.gzip=!0;N=new GMC(N);N.push(q,!0);if(N.err)throw N.msg||D3[N.err];return N.result};
UKn=function(q,N){var b=kMu();b&&b.publish.call(b,q.toString(),q,N)};
s0A=function(q,N,b){var y=kMu();if(!y)return 0;var J=y.subscribe(q.toString(),function(E,F){var R=_.Ng("ytPubsub2Pubsub2SkipSubKey");R&&R==J||(R=function(){if(f4D[J])try{if(F&&q instanceof CIA&&q!=E)try{var c=q.dataClass,z=F;if(!z.args||!z.version)throw Error("$c");try{if(!c.version_){var m=new c;c.version_=m.version}var r=c.version_}catch(X){}if(!r||z.version!=r)throw Error("ad");try{F=Reflect.construct(c,_.LC(z.args))}catch(X){throw X.message="yt.pubsub2.Data.deserialize(): "+X.message,X;}}catch(X){throw X.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+q.toString()+": "+X.message,X;}N.call(b||window,F)}catch(X){_.HC(X)}},I4d[q.toString()]?_.Ng("yt.scheduler.instance")?_.pY.addLowPriorityJob(R):_.Yf(R,0):R())});
f4D[J]=!0;T5h[q.toString()]||(T5h[q.toString()]=[]);T5h[q.toString()].push(J);return J};
WlC=function(){var q=n8D,N=s0A(a4h,function(b){q.apply(void 0,arguments);SvA(N)});
return N};
SvA=function(q){var N=kMu();N&&(typeof q==="number"&&(q=[q]),_.Jz(q,function(b){N.unsubscribeByKey(b);delete f4D[b]}))};
kMu=function(){return _.Ng("ytPubsub2Pubsub2Instance")};
LlD=function(q,N,b){b=b===void 0?{sampleRate:.1}:b;Math.random()<Math.min(.02,b.sampleRate/100)&&UKn("meta_logging_csi_event",{timerName:q,timelineData:N})};
_.pPh=function(q){return q?(q=q.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.g0(q):null:null};
_.Pv=function(q){return q?(q=q.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.hB(q):null:null};
Men=function(){PIJ||(PIJ=_.Pv(_.M7("WORKER_SERIALIZATION_URL")));return PIJ||void 0};
_.ANJ=function(){var q=Men();o8n||q===void 0||(o8n=VFd(q));return o8n};
_.enZ=function(){return typeof Worker==="function"&&Men()?!0:!1};
_.NqJ=function(){if(_.enZ()&&!B5d){var q=function(b){b=b.data;if(b.op==="gzippedGelBatch"){var y=H9J.get(b.key);y&&(qkA(b.gzippedBatch,y.latencyPayload,y.url,y.options,y.sendFn),H9J.delete(b.key))}},N=_.ANJ();
N&&(N.addEventListener("message",q),N.onerror=function(){H9J.clear()},B5d=!0)}};
F_n=function(q,N,b,y,J){J=J===void 0?!1:J;var E={startTime:(0,_.mA)(),ticks:{},infos:{}};if(Mm)try{var F=bkZ(N);if(F!=null&&(F>yme||F<Jmn))y(q,b);else{if(_.x("gzip_gel_with_worker")&&(_.x("initial_gzip_use_main_thread")&&!E9z||!_.x("initial_gzip_use_main_thread"))){B5d||_.NqJ();var R=_.ANJ();if(R&&!J){H9J.set(g9Z,{latencyPayload:E,url:q,options:b,sendFn:y});R.postMessage({op:"gelBatchToGzip",serializedBatch:N,key:g9Z});g9Z++;return}}var c=hnn(Zkz(N));qkA(c,E,q,b,y)}}catch(z){_.bv(z),y(q,b)}else y(q,
b)};
qkA=function(q,N,b,y,J){E9z=!1;var E=(0,_.mA)();N.ticks.gelc=E;ow++;_.x("disable_compression_due_to_performance_degredation")&&E-N.startTime>=RQn&&(d9C++,Mm=!1);cmz(N);y.headers||(y.headers={});y.headers["Content-Encoding"]="gzip";y.postBody=q;y.postParams=void 0;J(b,y)};
zQd=function(q){var N=N===void 0?!1:N;var b=b===void 0?!1:b;var y=(0,_.mA)(),J={startTime:y,ticks:{},infos:{}},E=N?_.Ng("yt.logging.gzipForFetch",!1):!0;if(Mm&&E){if(!q.body)return q;try{var F=b?q.body:typeof q.body==="string"?q.body:JSON.stringify(q.body);E=F;if(!b&&typeof F==="string"){var R=bkZ(F);if(R!=null&&(R>yme||R<Jmn))return q;b=N?{level:1}:void 0;E=hnn(Zkz(F),b);var c=(0,_.mA)();J.ticks.gelc=c;if(N){ow++;if((_.x("disable_compression_due_to_performance_degredation")||_.x("disable_compression_due_to_performance_degradation_lr"))&&
c-y>=RQn)if(d9C++,_.x("abandon_compression_after_N_slow_zips_lr")){N=d9C/ow;var z=uYn/_.VX("compression_disable_point");ow>0&&ow%_.VX("compression_disable_point")===0&&N>=z&&(Mm=!1)}else Mm=!1;cmz(J)}}q.headers=Object.assign({},{"Content-Encoding":"gzip"},q.headers||{});q.body=E;return q}catch(m){return _.bv(m),q}}else return q};
bkZ=function(q){try{return(new Blob(q.split(""))).size}catch(N){return _.bv(N),null}};
cmz=function(q){_.x("gel_compression_csi_killswitch")||!_.x("log_gel_compression_latency")&&!_.x("log_gel_compression_latency_lr")||LlD("gel_compression",q,{sampleRate:.1})};
$9h=function(){this.blockSize=-1};
AS=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var q=1;q<this.blockSize;++q)this.pad_[q]=0;this.total_=this.inbuf_=0;this.reset()};
m9n=function(q){q=Object.assign({},q);delete q.Authorization;var N=_.tlR();if(N){var b=new AS;b.update(_.M7("INNERTUBE_API_KEY"));b.update(N);q.hash=_.Uf(b.digest(),3)}return q};
Bv=function(){rmu||(rmu=new _.ed("yt.innertube"));return rmu};
XHJ=function(q,N,b,y){if(y)return null;y=Bv().get("nextId",!0)||1;var J=Bv().get("requests",!0)||{};J[y]={method:q,request:N,authState:m9n(b),requestTime:Math.round((0,_.mA)())};Bv().set("nextId",y+1,86400,!0);Bv().set("requests",J,86400,!0);return y};
Vln=function(q){var N=Bv().get("requests",!0)||{};delete N[q];Bv().set("requests",N,86400,!0)};
x9h=function(q){var N=Bv().get("requests",!0);if(N){for(var b in N){var y=N[b];if(!(Math.round((0,_.mA)())-y.requestTime<6E4)){var J=y.authState,E=m9n(_.oRC(!1));_.nM.equals(J,E)&&(J=y.request,"requestTimeMs"in J&&(J.requestTimeMs=Math.round((0,_.mA)())),jUn(q,y.method,J,{}));delete N[b]}}Bv().set("requests",N,86400,!0)}};
v9D=function(q){var N;return(q=q==null?void 0:(N=q.error)==null?void 0:N.code)&&q>=400&&q<=599?!1:!0};
Gsn=function(q){var N;q=q==null?void 0:(N=q.error)==null?void 0:N.code;return!(q!==400&&q!==415)};
QUA=function(){if(Ykd)return Ykd();var q={};Ykd=tS("LogsDatabaseV2",{objectStores:(q.LogsRequestsStore={addedAtVersion:2},q),shared:!1,upgrade:function(N,b,y){b(2)&&Hv(N,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});b(3);b(5)&&(y=y.objectStore("LogsRequestsStore"),y.JSC$10761_wrapped.indexNames.contains("newRequest")&&y.JSC$10761_wrapped.deleteIndex("newRequest"),q6(y,"newRequestV2",["status","interface","timestamp"]));b(7)&&N.JSC$10746_wrapped.objectStoreNames.contains("sapisid")&&N.JSC$10746_wrapped.deleteObjectStore("sapisid");
b(9)&&N.JSC$10746_wrapped.objectStoreNames.contains("SWHealthLog")&&N.JSC$10746_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Ykd()};
N6=function(q){return _.Z3(QUA(),q)};
wHJ=function(q,N){var b,y,J,E;return _.d(function(F){if(F.nextAddress==1)return b={startTime:(0,_.mA)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},F.yield(N6(N),2);if(F.nextAddress!=3)return y=F.yieldResult,J=Object.assign({},q,{options:JSON.parse(JSON.stringify(q.options)),interface:_.M7("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),F.yield(y.put("LogsRequestsStore",J),3);E=F.yieldResult;b.ticks.tc=(0,_.mA)();Okn(b);return F.return(E)})};
ikA=function(q,N){var b,y,J,E,F,R,c,z,m;return _.d(function(r){if(r.nextAddress==1)return b={startTime:(0,_.mA)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},r.yield(N6(N),2);if(r.nextAddress!=3)return y=r.yieldResult,J=_.M7("INNERTUBE_CONTEXT_CLIENT_NAME",0),E=[q,J,0],F=[q,J,(0,_.mA)()],R=IDBKeyRange.bound(E,F),c="prev",_.x("use_fifo_for_networkless")&&(c="next"),z=void 0,m=q==="NEW"?"readwrite":"readonly",_.x("use_readonly_for_get_most_recent_by_status_killswitch")&&(m="readwrite"),
r.yield(_.Fl(y,["LogsRequestsStore"],{mode:m,enableRetries:!0},function(X){return _.rD(X.objectStore("LogsRequestsStore").index("newRequestV2"),{query:R,direction:c},function(V){V.getValue()&&(z=V.getValue(),q==="NEW"&&(z.status="QUEUED",V.update(z)))})}),3);
b.ticks.tc=(0,_.mA)();Okn(b);return r.return(z)})};
lPJ=function(q,N){var b;return _.d(function(y){if(y.nextAddress==1)return y.yield(N6(N),2);b=y.yieldResult;return y.return(_.Fl(b,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(J){var E=J.objectStore("LogsRequestsStore");return E.get(q).then(function(F){if(F)return F.status="QUEUED",E.put(F).then(function(){return F})})}))})};
K_D=function(q,N,b,y){b=b===void 0?!0:b;var J;return _.d(function(E){if(E.nextAddress==1)return E.yield(N6(N),2);J=E.yieldResult;return E.return(_.Fl(J,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(F){var R=F.objectStore("LogsRequestsStore");return R.get(q).then(function(c){return c?(c.status="NEW",b&&(c.sendCount+=1),y!==void 0&&(c.options.compress=y),R.put(c).then(function(){return c})):qm.resolve(void 0)})}))})};
D9J=function(q,N){var b;return _.d(function(y){if(y.nextAddress==1)return y.yield(N6(N),2);b=y.yieldResult;return y.return(b.delete("LogsRequestsStore",q))})};
hQn=function(q){var N,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(N6(q),2);N=y.yieldResult;b=(0,_.mA)()-2592E6;return y.yield(_.Fl(N,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(J){return dD(J.objectStore("LogsRequestsStore"),{},function(E){if(E.getValue().timestamp<=b)return E.delete().then(function(){return E.continue()})})}),0)})};
kse=function(){_.d(function(q){return q.yield(vRJ("LogsDatabaseV2"),0)})};
Okn=function(q){_.x("nwl_csi_killswitch")||LlD("networkless_performance",q,{sampleRate:1})};
_.fPu=function(q){return _.Z3(U9d(),q)};
CLe=function(q){var N,b;_.d(function(y){if(y.nextAddress==1)return y.yield(_.fPu(q),2);N=y.yieldResult;b=(0,_.mA)()-2592E6;return y.yield(_.Fl(N,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(J){return dD(J.objectStore("SWHealthLog"),{},function(E){if(E.getValue().timestamp<=b)return E.delete().then(function(){return E.continue()})})}),0)})};
IPD=function(q){var N;return _.d(function(b){if(b.nextAddress==1)return b.yield(_.fPu(q),2);N=b.yieldResult;return b.yield(N.clear("SWHealthLog"),0)})};
_.b0=function(q,N,b,y,J,E,F){J=J===void 0?"":J;E=E===void 0?!1:E;F=F===void 0?!1:F;if(q)if(b&&!Az("cobalt"))_.bv(new _.IO("Legacy referrer-scrubbed ping detected")),q&&TqA(q,void 0,{scrubReferrer:!0});else if(J)cez(q,N,"POST",J,y);else if(_.M7("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||y||F)cez(q,N,"GET","",y,void 0,E,F);else{b:{try{c:{var R=new sUd({url:q});if(R.urlParamValues_.dsh==="1")var c=null;else{var z=R.urlParamValues_.ae;if(z==="1"){var m=R.urlParamValues_.adurl;if(m)try{c={version:3,directUrl:decodeURIComponent(m),
asyncUrl:nZd(R.JSC$9557_url_,"act=1","ri=1",n9J(R))};break c}catch(G){}}c=z==="2"?{version:4,directUrl:nZd(R.JSC$9557_url_,"dct=1","suid="+R.suid_,"ri=1"),asyncUrl:nZd(R.JSC$9557_url_,"act=1","ri=1","suid="+R.suid_)}:null}}if(c){var r=_.wO(q);var X=!(!r||!r.endsWith("/aclk")||_.HY(q,"ri")!=="1");break b}}catch(G){}X=!1}if(X){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(q,"")){var V=!0;break b}}catch(G){}V=!1}V?(N&&N(),b=!0):b=!1}else b=!1;b||TqA(q,N)}};
TqA=function(q,N,b){b=b===void 0?{}:b;var y=new Image,J=""+aPZ++;SkC[J]=y;y.onload=y.onerror=function(){N&&SkC[J]&&N();delete SkC[J]};
b.scrubReferrer&&(y.referrerPolicy="no-referrer");y.src=q};
yQ=function(q,N){W_J(q,N==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
L_e=function(q){var N;return((N=document.featurePolicy)==null?0:N.allowedFeatures().includes("attribution-reporting"))?q+"&nis=6":q+"&nis=5"};
pHA=function(q){if(!q)return!1;try{var N;if(((N=_.EV(q))==null?void 0:N.asm)==="4")return!0}catch(b){_.HC(b)}return!1};
W_J=function(q,N){N?(q=L_e(q),_.b0(q,void 0,void 0,void 0,"",!0,!0)):_.b0(q)};
Mld=function(){PLA||(PLA=new _.ed("yt.offline"));return PLA};
o9h=function(q){if(_.x("offline_error_handling")){var N=Mld().get("errors",!0)||{};N[q.message]={name:q.name,stack:q.stack};q.level&&(N[q.message].level=q.level);Mld().set("errors",N,2592E3,!0)}};
eQh=function(q,N,b,y){y=y===void 0?!1:y;N=_.x("web_fp_via_jspb")?Object.assign({},N):N;_.x("use_cfr_monitor")&&AmC(q,N);if(_.x("use_request_time_ms_header"))N.headers&&uv(q)&&(N.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.mA)())));else{var J;if((J=N.postParams)==null?0:J.requestTimeMs)N.postParams.requestTimeMs=Math.round((0,_.mA)())}b&&Object.keys(N).length===0?_.b0(q):N.compress?N.postBody?(typeof N.postBody!=="string"&&(N.postBody=JSON.stringify(N.postBody)),F_n(q,N.postBody,
N,_.iv,y)):F_n(q,JSON.stringify(N.postParams),N,tgd,y):_.iv(q,N)};
BqA=function(q,N){_.x("use_event_time_ms_header")&&uv(q)&&(N.headers||(N.headers={}),N.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.mA)())));return N};
_.q_D=function(){HkJ||(HkJ=new _.Jr({logOfflineErrors:!0,enablePolling:!0}));return HkJ};
AmC=function(q,N){var b=N.onError?N.onError:function(){};
N.onError=function(J,E){E2().requestComplete(q,!1);b(J,E)};
var y=N.onSuccess?N.onSuccess:function(){};
N.onSuccess=function(J,E){E2().requestComplete(q,!0);y(J,E)}};
_.Naz=function(){return _.dO(document.location.toString())!=="www.youtube-nocookie.com"};
_.Jnd=function(){return _.Ng("ytNetworklessLoggingInitializationOptions")?_.btd.isNwlInitialized:_.ynA};
E0d=function(q,N){if(_.x("polymer_on_demand_shady_dom")){var b;var y=(b=q.__shady_native_firstElementChild)!=null?b:q.firstElementChild}else y=q.firstElementChild;for(;y;){if(q=N(y)?y:E0d(y,N))return q;y=y.nextElementSibling}return null};
ZtA=function(){var q=document;if("visibilityState"in q)return q.visibilityState;var N=g0d+"VisibilityState";if(N in q)return q[N]};
_.F6d=function(q,N){var b;gL(q,function(y){b=N[y];return!!b});
return b};
_.Ff=function(q){var N=RyZ(q);N?N.focus(void 0):_.Zy(q)};
RyZ=function(q){return(q=E0d(q,function(N){return _.Rp(N)?doz(N)&&!!N.offsetParent:!1}))?q:null};
_.Zy=function(q,N){q.hasAttribute("tabindex")||q.setAttribute("tabindex","-1");q.focus(N)};
cnD=function(q,N,b,y){y=y===void 0?{}:y;q.addEventListener&&(N!="mouseenter"||"onmouseenter"in document?N!="mouseleave"||"onmouseenter"in document?N=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(N="MozMousePixelScroll"):N="mouseout":N="mouseover");return _.nM.findKey(dL,function(J){var E=typeof J[4]==="boolean"&&J[4]==!!y,F=_.AZ(J[4])&&_.AZ(y)&&_.nM.equals(J[4],y);return!!J.length&&J[0]==q&&J[1]==N&&J[2]==b&&(E||F)})};
_.u0=function(q,N,b,y){y=y===void 0?{}:y;if(!q||!q.addEventListener&&!q.attachEvent)return"";var J=cnD(q,N,b,y);if(J)return J;J=++uRA.count+"";var E=!(N!="mouseenter"&&N!="mouseleave"||!q.addEventListener||"onmouseenter"in document);var F=E?function(R){R=new c_(R);if(!_.Ph(R.relatedTarget,function(c){return c==q},!0))return R.currentTarget=q,R.type=N,b.call(q,R)}:function(R){R=new c_(R);
R.currentTarget=q;return b.call(q,R)};
F=_.qg(F);q.addEventListener?(N=="mouseenter"&&E?N="mouseover":N=="mouseleave"&&E?N="mouseout":N=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(N="MozMousePixelScroll"),zyR()||typeof y==="boolean"?q.addEventListener(N,F,y):q.addEventListener(N,F,!!y.capture)):q.attachEvent("on"+N,F);dL[J]=[q,N,b,F,y];return J};
_.t_d=function(q,N,b){var y=y===void 0?{}:y;var J=_.u0(q,N,function(){_.$oC(J);b.apply(q,arguments)},y)};
_.$oC=function(q){q&&(typeof q=="string"&&(q=[q]),_.Jz(q,function(N){if(N in dL){var b=dL[N],y=b[0],J=b[1],E=b[3];b=b[4];y.removeEventListener?zyR()||typeof b==="boolean"?y.removeEventListener(J,E,b):y.removeEventListener(J,E,!!b.capture):y.detachEvent&&y.detachEvent("on"+J,E);delete dL[N]}}))};
z6=function(q){this.callback_=q;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(q=0;q<4;q++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.u0(window,"mousemove",(0,_.fF)(this.onMouseMove_,this));this.timerId_=_.QX((0,_.fF)(this.checkPosition_,this),25)};
X$D=function(){var q={};var N=q.preferMobileEvents===void 0?!1:q.preferMobileEvents;q=q.enableScrollEventListener===void 0?!0:q.enableScrollEventListener;if(_.Ng("_lact",window)==null){var b=parseInt(_.M7("LACT"),10);b=isFinite(b)?Date.now()-Math.max(b,0):-1;_.zn("_lact",b,window);_.zn("_fact",b,window);b==-1&&_.$y();moJ(window,N,q);new z6(function(){rnJ("mouse",100)})}};
moJ=function(q,N,b){N=N===void 0?!1:N;b=b===void 0?!0:b;_.u0(q.document,"keydown",_.$y);_.u0(q.document,"keyup",_.$y);_.u0(q.document,"mousedown",_.$y);_.u0(q.document,"mouseup",_.$y);N?_.u0(q,"touchmove",function(){rnJ("touchmove",200)},{passive:!0}):(_.u0(q,"resize",function(){rnJ("resize",200)}),b&&_.u0(q,"scroll",function(){rnJ("scroll",200)}));
_.u0(q.document,"touchstart",_.$y,{passive:!0});_.u0(q.document,"touchend",_.$y,{passive:!0})};
rnJ=function(q,N){V_D[q]||(V_D[q]=!0,_.pY.addLowPriorityJob(function(){_.$y();V_D[q]=!1},N))};
_.$y=function(){_.Ng("_lact",window)==null&&X$D();var q=Date.now();_.zn("_lact",q,window);_.Ng("_fact",window)==-1&&_.zn("_fact",q,window);(q=_.Ng("ytglobal.ytUtilActivityCallback_"))&&q()};
_.tr=function(){var q=_.Ng("_lact",window);return q==null?-1:Math.max(Date.now()-q,0)};
_.j0=function(q,N,b){var y=_.m0();if(y&&N){var J=y.subscribe(q,function(){var E=arguments,F=function(){Xf[J]&&N.apply&&typeof N.apply=="function"&&N.apply(b||window,E)};
try{_.jin[q]?F():_.Yf(F,0)}catch(R){_.HC(R)}},b);
Xf[J]=!0;VQ[q]||(VQ[q]=[]);VQ[q].push(J);return J}return 0};
_.xod=function(q){var N=_.m0();N&&(typeof q==="number"?q=[q]:typeof q==="string"&&(q=[parseInt(q,10)]),_.Jz(q,function(b){N.unsubscribeByKey(b);delete Xf[b]}))};
_.v0R=function(q,N){var b=_.m0();b&&b.publish.apply(b,arguments)};
_.Y_A=function(q){var N=_.m0();if(N)if(N.clear(q),q)GTd(q);else for(var b in VQ)GTd(b)};
_.m0=function(){return _.JZ.ytPubsubPubsubInstance};
GTd=function(q){VQ[q]&&(q=VQ[q],_.Jz(q,function(N){Xf[N]&&delete Xf[N]}),q.length=0)};
QiD=function(){var q,N;return"h5vcc"in xy&&((q=xy.h5vcc.traceEvent)==null?0:q.traceBegin)&&((N=xy.h5vcc.traceEvent)==null?0:N.traceEnd)?1:"performance"in xy&&xy.performance.mark&&xy.performance.measure?2:0};
Ote=function(q){var N=QiD();switch(N){case 1:xy.h5vcc.traceEvent.traceBegin("YTLR",q);break;case 2:xy.performance.mark(q+"-start");break;case 0:break;default:_.ol(N,"unknown trace type")}};
w$z=function(q){var N=QiD();switch(N){case 1:xy.h5vcc.traceEvent.traceEnd("YTLR",q);break;case 2:N=q+"-start";var b=q+"-end";xy.performance.mark(b);xy.performance.measure(q,N,b);break;case 0:break;default:_.ol(N,"unknown trace type")}};
itn=function(q){var N,b;(b=(N=window).onerror)==null||b.call(N,q.message,"",0,0,q)};
ldz=function(q){if(_.x("web_lifecycle_error_handling_killswitch"))return q();try{return q()}catch(N){itn(N)}};
K6d=function(q){return[q.auth===void 0?"undefined":q.auth,q.isJspb===void 0?"undefined":q.isJspb,q.cttAuthInfo===void 0?"undefined":q.cttAuthInfo,q.tier===void 0?"undefined":q.tier].join("/")};
_.v=function(q,N){if(q)return q[N.name]};
G6=function(){var q=_.Ng("yt.logging.ims");q||(q=new v_,_.zn("yt.logging.ims",q));return q};
siA=function(q,N){if(q.endpoint==="log_event"){DoD(q);var b=hyZ(q),y=kTz(q.payload)||"",J=Uoe(y),E=200;if(J){if(J.enabled===!1&&!_.x("web_payload_policy_disabled_killswitch"))return;E=fdz(J.tier);if(E===400){Cqd(q,N);return}}QQ[b]=!0;b={cttAuthInfo:b,isJspb:!1,tier:E};G6().storePayload(b,q.payload);IdD(N,!1,b,Tan(y))}};
adR=function(q,N,b){if(N.endpoint==="log_event"){DoD(void 0,N);var y=hyZ(N,!0),J=Uoe(q),E=200;if(J){if(J.enabled===!1&&!_.x("web_payload_policy_disabled_killswitch"))return;E=fdz(J.tier);if(E===400){n0n(q,N,b);return}}QQ[y]=!0;y={cttAuthInfo:y,isJspb:!0,tier:E};G6().storePayload(y,fU(N.payload));IdD(b,!0,y,Tan(q))}};
IdD=function(q,N,b,y){N=N===void 0?!1:N;y=y===void 0?!1:y;q&&(O2=new q);q=_.VX("tvhtml5_logging_max_batch_ads_fork")||_.VX("tvhtml5_logging_max_batch")||_.VX("web_logging_max_batch")||100;var J=(0,_.mA)(),E=S_A(N,b.tier),F=E.lastDebounceQueueFromLogTimeMs;y&&(E.useVideoStatsEndPoint=!0);y=0;b&&(y=G6().getSequenceCount(b));var R=function(){W6C({writeThenSend:!0},N,b.tier)};
y>=1E3?R():y>=q?L6u||(L6u=p$n(function(){R();L6u=void 0},0)):J-F>=10&&(Pqd(N,b.tier),E.lastDebounceQueueFromLogTimeMs=J)};
Cqd=function(q,N){if(q.endpoint==="log_event"){_.x("more_accurate_gel_parser")&&G6().storePayload({isJspb:!1},q.payload);DoD(q);var b=hyZ(q),y=new Map;y.set(b,[q.payload]);var J=kTz(q.payload)||"";N&&(O2=new N);return new _.wL(function(E,F){O2&&O2.isReady()?M_J(y,O2,E,F,{bypassNetworkless:!0},!0,Tan(J)):E()})}};
n0n=function(q,N,b){if(N.endpoint==="log_event"){DoD(void 0,N);var y=hyZ(N,!0),J=new Map;J.set(y,[fU(N.payload)]);b&&(O2=new b);return new _.wL(function(E){O2&&O2.isReady()?o0Z(J,O2,E,{bypassNetworkless:!0},!0,Tan(q)):E()})}};
hyZ=function(q,N){var b="";if(q.dangerousLogToVisitorSession)b="visitorOnlyApprovedKey";else if(q.cttAuthInfo){if(N===void 0?0:N){N=q.cttAuthInfo.token;b=q.cttAuthInfo;var y=new Anh;b.videoId?y.setVideoId(b.videoId):b.playlistId&&i0(y,2,eyh,vd(b.playlistId));Bae[N]=y}else N=q.cttAuthInfo,b={},N.videoId?b.videoId=N.videoId:N.playlistId&&(b.playlistId=N.playlistId),Htn[q.cttAuthInfo.token]=b;b=q.cttAuthInfo.token}return b};
W6C=function(q,N,b){q=q===void 0?{}:q;N=N===void 0?!1:N;new _.wL(function(y,J){var E=S_A(N,b),F=E.useVideoStatsEndPoint;E.useVideoStatsEndPoint=!1;qld(E.queueTimer);qld(E.queueMaxTimer);E.queueMaxTimer=0;O2&&O2.isReady()?b===void 0&&_.x("enable_web_tiered_gel")?NJZ(y,J,q,N,300,F):NJZ(y,J,q,N,b,F):(Pqd(N,b),y())})};
NJZ=function(q,N,b,y,J,E){var F=O2;b=b===void 0?{}:b;y=y===void 0?!1:y;J=J===void 0?200:J;E=E===void 0?!1:E;var R=new Map,c=new Map,z={isJspb:y,cttAuthInfo:void 0,tier:J},m={isJspb:y,cttAuthInfo:void 0};if(y){N=_.Z(Object.keys(QQ));for(J=N.next();!J.done;J=N.next())J=J.value,c=_.x("enable_web_tiered_gel")?G6().smartExtractMatchingEntries({keys:[z,m],sizeLimit:1E3}):G6().extractMatchingEntries({isJspb:!0,cttAuthInfo:J}),c.length>0&&R.set(J,c),(_.x("web_fp_via_jspb_and_json")&&b.writeThenSend||!_.x("web_fp_via_jspb_and_json"))&&
delete QQ[J];o0Z(R,F,q,b,!1,E)}else{R=_.Z(Object.keys(QQ));for(z=R.next();!z.done;z=R.next())z=z.value,m=_.x("enable_web_tiered_gel")?G6().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:z,tier:J},{isJspb:!1,cttAuthInfo:z}],sizeLimit:1E3}):G6().extractMatchingEntries({isJspb:!1,cttAuthInfo:z}),m.length>0&&c.set(z,m),(_.x("web_fp_via_jspb_and_json")&&b.writeThenSend||!_.x("web_fp_via_jspb_and_json"))&&delete QQ[z];M_J(c,F,q,N,b,!1,E)}};
Pqd=function(q,N){q=q===void 0?!1:q;N=N===void 0?200:N;var b=function(){W6C({writeThenSend:!0},q,N)},y=S_A(q,N),J=y===b6A||y===yED?5E3:JEz;
_.x("web_gel_timeout_cap")&&!y.queueMaxTimer&&(J=p$n(function(){b()},J),y.queueMaxTimer=J);
qld(y.queueTimer);J=_.M7("LOGGING_BATCH_TIMEOUT",_.VX("web_gel_debounce_ms",1E4));_.x("shorten_initial_gel_batch_timeout")&&EPJ&&(J=gPn);J=p$n(function(){_.VX("gel_min_batch_size")>0?G6().getSequenceCount({cttAuthInfo:void 0,isJspb:q,tier:N})>=Z6h&&b():b()},J);
y.queueTimer=J};
M_J=function(q,N,b,y,J,E,F){J=J===void 0?{}:J;var R=Math.round((0,_.mA)()),c=q.size,z=F8n(F);q=_.Z(q);var m=q.next();for(F={};!m.done;F={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},m=q.next()){var r=_.Z(m.value);m=r.next().value;r=r.next().value;F.batchRequest=_.nM.unsafeClone({context:_.soz(N.config_||_.Xl())});if(!_.pC(r)&&!_.x("throw_err_when_logevent_malformed_killswitch")){y();break}F.batchRequest.events=r;
(r=Htn[m])&&RIu(F.batchRequest,m,r);delete Htn[m];F.dangerousLogToVisitorSession=m==="visitorOnlyApprovedKey";dOh(F.batchRequest,R,F.dangerousLogToVisitorSession);cEA(J);F.onSuccess$jscomp$3=function(X){_.x("start_client_gcf")&&_.pY.addLowPriorityJob(function(){return _.d(function(V){return V.yield(uQd(X),0)})});
c--;c||b()};
F.networkFailures=0;F.onError$jscomp$5=function(X){return function(){X.networkFailures++;if(J.bypassNetworkless&&X.networkFailures===1)try{jUn(N,z,X.batchRequest,zIe({writeThenSend:!0},X.dangerousLogToVisitorSession,X.onSuccess$jscomp$3,X.onError$jscomp$5,E)),EPJ=!1}catch(V){_.HC(V),y()}c--;c||b()}}(F);
try{jUn(N,z,F.batchRequest,zIe(J,F.dangerousLogToVisitorSession,F.onSuccess$jscomp$3,F.onError$jscomp$5,E)),EPJ=!1}catch(X){_.HC(X),y()}}};
o0Z=function(q,N,b,y,J,E){y=y===void 0?{}:y;var F=Math.round((0,_.mA)()),R={value:q.size},c=new Map([].concat(_.a9(q)));c=_.Z(c);for(var z=c.next();!z.done;z=c.next()){var m=_.Z(z.value).next().value,r=q.get(m);z=new $OA;var X=N.config_||_.Xl(),V=new l0,G=new tuR;_.Up(G,1,X.innertubeContextHostLanguage);_.Up(G,2,X.innertubeContextGeoLocation);_.jd(G,16,X.innertubeContextClientNameFieldNumber);_.Up(G,17,X.innertubeContextClientVersion);if(X.innertubeContextClientConfigInfo){var w=X.innertubeContextClientConfigInfo,
D=new vv;w.coldConfigData&&_.Up(D,1,w.coldConfigData);w.appInstallData&&_.Up(D,6,w.appInstallData);w.coldHashData&&_.Up(D,3,w.coldHashData);w.hotHashData&&D.setHotHashData(w.hotHashData);_.ws(G,62,D)}(w=_.JZ.devicePixelRatio)&&w!=1&&_.x5(G,65,_.BR(w));w=bru();w!==""&&_.Up(G,54,w);w=yeZ();if(w.length>0){D=new mOC;for(var k=0;k<w.length;k++){var f=new Ko;f.setKey(w[k].key);i0(f,2,rEd,vd(w[k].value));Dy(D,15,Ko,f)}_.ws(V,5,D)}kCn(X,G);URA(V);fCJ(G);CgC(X,G);ICd(G);_.x("start_client_gcf")&&T3d(G);_.M7("DELEGATED_SESSION_ID")&&
!_.x("pageid_as_header_web")&&(X=new hr,_.Up(X,3,_.M7("DELEGATED_SESSION_ID")));!_.x("fill_delegate_context_in_gel_killswitch")&&(w=_.M7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(D=_.Vr(V,hr,3)||new hr,X=V,w=_.Up(D,18,w),_.ws(X,3,w));X=G;w=_.Z(Object.entries(_.EV(_.M7("DEVICE",""))));for(D=w.next();!D.done;D=w.next())k=_.Z(D.value),D=k.next().value,k=k.next().value,D==="cbrand"?_.Up(X,12,k):D==="cmodel"?_.Up(X,13,k):D==="cbr"?_.Up(X,87,k):D==="cbrver"?_.Up(X,88,k):D==="cos"?_.Up(X,18,
k):D==="cosver"?_.Up(X,19,k):D==="cplatform"&&_.jd(X,42,h2d(k));V.setClient(G);_.ws(z,1,V);if(G=Bae[m])a:{if(_.wE(G,ky(G,eyh,1)))V=1;else if(G.getPlaylistId())V=2;else break a;_.ws(z,4,G);G=z.getContext()||new l0;X=_.Vr(G,hr,3)||new hr;w=new U2;w.setToken(m);_.jd(w,1,V);Dy(X,12,U2,w);_.ws(G,3,X)}delete Bae[m];m=m==="visitorOnlyApprovedKey";Xkz()||_.fo(z,2,F);!m&&(V=_.M7("EVENT_ID"))&&(G=Vuz(),X=new jEC,_.Up(X,1,V),_.fo(X,2,G),_.ws(z,5,X));cEA(y);if(_.x("jspb_serialize_with_worker")&&(V=_.ANJ())&&
y.writeThenSend){_.xOZ.set(vPh,{client:N,resolve:b,networklessOptions:y,isIsolated:J,useVSSEndpoint:E,dangerousLogToVisitorSession:m,requestsOutstanding:R});V.postMessage({op:"gelBatchToSerialize",batchRequest:fU(z),clientEvents:r,key:vPh});vPh++;break}if(r){V=[];for(G=0;G<r.length;G++)try{V.push(new Co(r[G]))}catch(L){_.HC(new _.IO("Transport failed to deserialize "+String(r[G])))}r=V}else r=[];r=_.Z(r);for(V=r.next();!V.done;V=r.next())Dy(z,3,Co,V.value);r={startTime:(0,_.mA)(),ticks:{},infos:{}};
z=z.serialize();r.ticks.geljspc=(0,_.mA)();_.x("log_jspb_serialize_latency")&&LlD("gel_jspb_serialize",r,{sampleRate:.1});_.G4d(z,N,b,y,J,E,m,R)}};
_.G4d=function(q,N,b,y,J,E,F,R){y=y===void 0?{}:y;R=R===void 0?{value:0}:R;E=F8n(E);y=zIe(y,F,function(c){_.x("start_client_gcf")&&_.pY.addLowPriorityJob(function(){return _.d(function(z){return z.yield(uQd(c),0)})});
R.value--;R.value||b()},function(){R.value--;
R.value||b()},J);
y.headers["Content-Type"]="application/json+protobuf";y.postBodyFormat="JSPB";y.postBody=q;jUn(N,E,"",y);EPJ=!1};
cEA=function(q){_.x("always_send_and_write")&&(q.writeThenSend=!1)};
zIe=function(q,N,b,y,J){q={retry:!0,onSuccess:b,onError:y,networklessOptions:q,dangerousLogToVisitorSession:N,bypassMonitoring:!!J,headers:{},postBodyFormat:"",postBody:"",compress:_.x("compress_gel")||_.x("compress_gel_lr")};Xkz()&&(q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.mA)())));return q};
dOh=function(q,N,b){Xkz()||(q.requestTimeMs=String(N));_.x("unsplit_gel_payloads_in_logs")&&(q.unsplitGelPayloadsInLogs=!0);!b&&(N=_.M7("EVENT_ID"))&&(b=Vuz(),q.serializedClientEventId={serializedEventId:N,clientCounter:String(b)})};
Vuz=function(){var q=_.M7("BATCH_CLIENT_COUNTER")||0;q||(q=Math.floor(Math.random()*65535/2));q++;q>65535&&(q=1);_.PC("BATCH_CLIENT_COUNTER",q);return q};
RIu=function(q,N,b){if(b.videoId)var y="VIDEO";else if(b.playlistId)y="PLAYLIST";else return;q.credentialTransferTokenTargetId=b;q.context=q.context||{};q.context.user=q.context.user||{};q.context.user.credentialTransferTokens=[{token:N,scope:y}]};
DoD=function(q,N){var b=_.jA("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Ng("yt.logging.transport.enableScrapingForTest"))if(b)YlJ=[],_.zn("yt.logging.transport.enableScrapingForTest",!0),_.zn("yt.logging.transport.scrapedPayloadsForTesting",YlJ),_.zn("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.zn("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.zn("yt.logging.transport.scrapeClientEvent",!0);else return;b=_.Ng("yt.logging.transport.scrapedPayloadsForTesting");var y=_.Ng("yt.logging.transport.payloadToScrape");N&&(N=_.Ng("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(N.payload)())&&b.push(N);N=_.Ng("yt.logging.transport.scrapeClientEvent");if(y&&y.length>=1)for(var J=0;J<y.length;J++)if(q&&q.payload[y[J]])if(N)b.push(q.payload);else{var E=void 0;b.push(((E=q)==null?void 0:E.payload)[y[J]])}_.zn("yt.logging.transport.scrapedPayloadsForTesting",
b)};
Xkz=function(){return _.x("use_request_time_ms_header")||_.x("lr_use_request_time_ms_header")};
p$n=function(q,N){return _.x("transport_use_scheduler")===!1?_.Yf(q,N):_.x("logging_avoid_blocking_during_navigation")||_.x("lr_logging_avoid_blocking_during_navigation")?_.Ip(_.pY,function(){if(_.QEJ().currentState==="none")q();else{var b={};_.QEJ().install((b.none={callback:q},b))}},N):_.Ip(_.pY,q,N)};
qld=function(q){_.x("transport_use_scheduler")?_.pY.cancelJob(q):_.OV(q)};
uQd=function(q){var N,b,y,J,E,F,R,c,z,m;return _.d(function(r){return r.nextAddress==1?(y=(N=q)==null?void 0:(b=N.responseContext)==null?void 0:b.globalConfigGroup,J=_.v(y,O6n),F=(E=y)==null?void 0:E.hotHashData,R=_.v(y,wkC),z=(c=y)==null?void 0:c.coldHashData,(m=_.tz().resolve(_.$f(T6)))?F?J?r.yield(i6d(m,F,J),2):r.yield(i6d(m,F),2):r.jumpTo(2):r.return()):z?R?r.yield(lUA(m,z,R),0):r.yield(lUA(m,z),0):r.jumpTo(0)})};
S_A=function(q,N){N=N===void 0?200:N;return q?N===300?b6A:K8J:N===300?yED:DOe};
Uoe=function(q){if(_.x("enable_web_tiered_gel")){q=hIn[q||""];var N,b,y,J=_.tz().resolve(_.$f(T6))==null?void 0:(N=s2())==null?void 0:(b=N.loggingHotConfig)==null?void 0:(y=b.eventLoggingConfig)==null?void 0:y.payloadPolicies;if(J)for(N=0;N<J.length;N++)if(J[N].payloadNumber===q)return J[N]}};
kTz=function(q){q=Object.keys(q);q=_.Z(q);for(var N=q.next();!N.done;N=q.next())if(N=N.value,hIn[N])return N};
fdz=function(q){switch(q){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}};
Tan=function(q){return q==="gelDebuggingEvent"};
F8n=function(q){return(q===void 0?0:q)&&_.x("vss_through_gel_video_stats")?"video_stats":"log_event"};
ap=function(q,N,b,y){y=y===void 0?{}:y;var J={},E=Math.round(y.timestamp||(0,_.mA)());J.eventTimeMs=E<Number.MAX_SAFE_INTEGER?E:0;J[q]=N;q=_.tr();J.context={lastActivityMs:String(y.timestamp||!isFinite(q)?-1:q)};y.sequenceGroup&&!_.x("web_gel_sequence_info_killswitch")&&(q=J.context,N=y.sequenceGroup,N={index:k4D(N),groupKey:N},q.sequence=N,y.endOfSequence&&delete no[y.sequenceGroup]);_.x("web_tag_automated_log_events")&&(J.context.automatedLogEventSource=y.automatedLogEventSource);(y.sendIsolatedPayload?
Cqd:siA)({endpoint:"log_event",payload:J,cttAuthInfo:y.cttAuthInfo,dangerousLogToVisitorSession:y.dangerousLogToVisitorSession},b)};
k4D=function(q){no[q]=q in no?no[q]+1:0;return no[q]};
_.W_=function(q,N,b){b=b===void 0?{}:b;var y=S0;_.ou("ytLoggingEventsDefaultDisabled",!1)&&S0===S0&&(y=null);ap(q,N,y,b)};
_.Lo=function(){if(_.x("web_fp_via_jspb")){var q=!0;q=q===void 0?!1:q;var N=UOZ;UOZ=[];if(N){N=_.Z(N);for(var b=N.next();!b.done;b=N.next())b=b.value,q?ap(b.payloadName,b.payload,S0,b.options):_.W_(b.payloadName,b.payload,b.options)}W6C(void 0,!0);if(!_.x("web_fp_via_jspb_and_json"))return}W6C(void 0,!1)};
fUz=function(q,N){var b;if((b=N)==null?0:b.componentStack)return N;if(q=q.componentStack)N||(N={}),N.componentStack=q;return N};
CRZ=function(){_.Jz(_.M7("ERRORS")||[],function(q){_.po.apply(null,q)});
_.PC("ERRORS",[])};
_.P_=function(q){_.po(q)};
_.M6=function(q){_.po(q,"WARNING")};
IUJ=function(q){q instanceof Error?_.po(q):(q=_.AZ(q)?JSON.stringify(q):String(q),q=new _.IO(q),q.name="RejectedPromiseError",_.M6(q))};
TJz=function(q,N,b,y,J,E){N=N===void 0?"Unknown file":N;b=b===void 0?0:b;var F=!1,R=UPA("log_window_onerror_fraction");if(R&&Math.random()<R)F=!0;else{R=document.getElementsByTagName("script");for(var c=0,z=R.length;c<z;c++)if(R[c].src.indexOf("/debug-")>0){F=!0;break}}F&&(F=!1,J?F=!0:(typeof q==="string"?R=q:ErrorEvent&&q instanceof ErrorEvent?(F=!0,R=q.message,N=q.filename,b=q.lineno,y=q.colno):(R="Unknown error",N="Unknown file",b=0),J=new _.IO(R),J.name="UnhandledWindowError",J.message=R,J.fileName=
N,J.lineNumber=b,isNaN(y)?delete J.columnNumber:J.columnNumber=y),_.x("wiz_enable_component_stack_propagation_killswitch")||(E=fUz(J,E)),E&&_.op(J,E),F?_.po(J):_.M6(J))};
_.po=function(q,N,b,y,J,E,F,R){E=E===void 0?{}:E;E.name=b||_.M7("INNERTUBE_CONTEXT_CLIENT_NAME",1);E.version=y||_.M7("INNERTUBE_CONTEXT_CLIENT_VERSION");b=E;N=N===void 0?"ERROR":N;F=F===void 0?!1:F;N=N===void 0?"ERROR":N;F=F===void 0?!1:F;if(q&&(q.hasOwnProperty("level")&&q.level&&(N=q.level),_.x("console_log_js_exceptions")&&(y=[],y.push("Name: "+q.name),y.push("Message: "+q.message),q.hasOwnProperty("params")&&y.push("Error Params: "+JSON.stringify(q.params)),q.hasOwnProperty("args")&&y.push("Error args: "+
JSON.stringify(q.args)),y.push("File name: "+q.fileName),y.push("Stacktrace: "+q.stack),y=y.join("\n"),window.console.log(y,q)),!(sEA>=5))){y=[];J=_.Z(nPn);for(E=J.next();!E.done;E=J.next()){E=E.value;try{E()&&y.push(E())}catch(D){}}y=[].concat(_.a9(aUu),_.a9(y));var c=Slu(q);J=c.message||"Unknown Error";E=c.name||"UnknownError";var z=c.stack||q.stacktrace||"Not available";if(z.startsWith(E+": "+J)){var m=z.split("\n");m.shift();z=m.join("\n")}m=c.lineNumber||"Not available";c=c.fileName||"Not available";
var r=0;if(q.hasOwnProperty("args")&&q.args&&q.args.length)for(var X=0;X<q.args.length&&!(r=DcR(q.args[X],"params."+X,b,r),r>=500);X++);else if(q.hasOwnProperty("params")&&q.params){var V=q.params;if(typeof q.params==="object")for(X in V){if(V[X]){var G="params."+X,w=DM(V[X]);b[G]=w;r+=G.length+w.length;if(r>500)break}}else b.params=DM(V)}if(y.length)for(X=0;X<y.length&&!(r=DcR(y[X],"params.context."+X,b,r),r>=500);X++);navigator.vendor&&!b.hasOwnProperty("vendor")&&(b["device.vendor"]=navigator.vendor);
X={message:J,name:E,lineNumber:m,fileName:c,stack:z,params:b,sampleWeight:1};b=Number(q.columnNumber);isNaN(b)||(X.lineNumber=X.lineNumber+":"+b);if(q.level==="IGNORED")q=0;else a:{q=W8A();b=_.Z(q.messageWeights);for(y=b.next();!y.done;y=b.next())if(y=y.value,X.message&&X.message.match(y.messageRegExp)){q=y.weight;break a}q=_.Z(q.callbackWeights);for(b=q.next();!b.done;b=q.next())if(b=b.value,b.callback(X)){q=b.weight;break a}q=1}X.sampleWeight=q;q=_.Z(L8D);for(b=q.next();!b.done;b=q.next())if(b=
b.value,b.patternsForType[X.name])for(J=_.Z(b.patternsForType[X.name]),y=J.next();!y.done;y=J.next())if(E=y.value,y=X.message.match(E.regexp)){X.params["params.error.original"]=y[0];J=E.groups;E={};for(m=0;m<J.length;m++)E[J[m]]=y[m+1],X.params["params.error."+J[m]]=y[m+1];X.message=b.messageFn(E);break}X.params||(X.params={});q=W8A();X.params["params.errorServiceSignature"]="msg="+q.messageWeights.length+"&cb="+q.callbackWeights.length;X.params["params.serviceWorker"]="false";_.JZ.document&&_.JZ.document.querySelectorAll&&
(X.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Ar(pkd,"sample")).constructor!==Ar&&(X.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(X);if(X.sampleWeight!==0&&!PRz.has(X.message)){if(F&&_.x("web_enable_error_204"))MuJ(N===void 0?"ERROR":N,X);else{N=N===void 0?"ERROR":N;N==="ERROR"?(e0.publish("handleError",X),_.x("record_app_crashed_web")&&oPh===0&&X.sampleWeight===1&&(oPh++,F={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.x("report_client_error_with_app_crash_ks")||(F.systemHealth={crashData:{clientError:{logMessage:{message:X.message}}}}),_.W_("appCrashed",F)),AEe++):N==="WARNING"&&e0.publish("handleWarning",X);if(_.x("kevlar_gel_error_routing")){F=N;R=R===void 0?{}:R;b:{q=_.Z(eIC);for(b=q.next();!b.done;b=q.next())if(Az(b.value.toLowerCase())){q=!0;break b}q=!1}if(q)R=void 0;else{b={stackTrace:X.stack};X.fileName&&(b.filename=X.fileName);q=X.lineNumber&&X.lineNumber.split?X.lineNumber.split(":"):[];q.length!==
0&&(q.length!==1||isNaN(Number(q[0]))?q.length!==2||isNaN(Number(q[0]))||isNaN(Number(q[1]))||(b.lineNumber=Number(q[0]),b.columnNumber=Number(q[1])):b.lineNumber=Number(q[0]));q={level:"ERROR_LEVEL_UNKNOWN",message:X.message,errorClassName:X.name,sampleWeight:X.sampleWeight};F==="ERROR"?q.level="ERROR_LEVEL_ERROR":F==="WARNING"&&(q.level="ERROR_LEVEL_WARNNING");b={isObfuscated:!0,browserStackInfo:b};R.pageUrl=window.location.href;R.kvPairs=[];_.M7("FEXP_EXPERIMENTS")&&(R.experimentIds=_.M7("FEXP_EXPERIMENTS"));
y=_.M7("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!UPA("web_disable_gel_stp_ecatcher_killswitch")&&y)for(J=_.Z(Object.keys(y)),E=J.next();!E.done;E=J.next())E=E.value,R.kvPairs.push({key:E,value:String(y[E])});if(y=X.params)for(J=_.Z(Object.keys(y)),E=J.next();!E.done;E=J.next())E=E.value,R.kvPairs.push({key:"client."+E,value:String(y[E])});y=_.M7("SERVER_NAME");J=_.M7("SERVER_VERSION");y&&J&&(R.kvPairs.push({key:"server.name",value:y}),R.kvPairs.push({key:"server.version",value:J}));R={errorMetadata:R,
stackTrace:b,logMessage:q}}R&&(_.W_("clientError",R),(F==="ERROR"||_.x("errors_flush_gel_always_killswitch"))&&_.Lo())}_.x("suppress_error_204_logging")||MuJ(N,X)}try{PRz.add(X.message)}catch(D){}sEA++}}};
MuJ=function(q,N){var b=N.params||{};q={urlParams:{a:"logerror",t:"jserror",type:N.name,msg:N.message.substr(0,250),line:N.lineNumber,level:q,"client.name":b.name},postParams:{url:_.M7("PAGE_NAME",window.location.href),file:N.fileName},method:"POST"};b.version&&(q["client.version"]=b.version);if(q.postParams){N.stack&&(q.postParams.stack=N.stack);N=_.Z(Object.keys(b));for(var y=N.next();!y.done;y=N.next())y=y.value,q.postParams["client."+y]=b[y];if(b=_.M7("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(N=
_.Z(Object.keys(b)),y=N.next();!y.done;y=N.next())y=y.value,q.postParams[y]=b[y];(b=_.M7("LAVA_VERSION"))&&(q.postParams["lava.version"]=b);b=_.M7("SERVER_NAME");N=_.M7("SERVER_VERSION");b&&N&&(q.postParams["server.name"]=b,q.postParams["server.version"]=N)}_.iv(_.M7("ECATCHER_REPORT_HOST","")+"/error_204",q)};
_.BJC=function(q,N){N=N===void 0?"ERROR":N;var b=b===void 0?{}:b;var y=_.Ng("ytbin.polymer.shared.lib.tampering.info");y&&(y=y())&&(b["params.tamperingInfo"]=y.sort().join(","));_.po(q,N,void 0,void 0,!0,b)};
_.op=function(q){var N=_.MB.apply(1,arguments);q.args||(q.args=[]);Array.isArray(q.args)&&q.args.push.apply(q.args,_.a9(N))};
H6C=function(q){q.level="IGNORED"};
q$D=function(q,N){aUu.push(q);N();aUu.pop()};
H_=function(q,N){for(var b in N)N.hasOwnProperty(b)&&(q=_.B_(q,b,N[b]));return q};
_.NjC=function(q,N,b){b=b===void 0?!1:b;if(!q)return null;if(q.adInfoDialogEndpoint||q.backstageImageUploadEndpoint||q.confirmDialogEndpoint||q.clientActionEndpoint||q.createBackstagePostDialogEndpoint||q.createCommentReplyDialogEndpoint||q.flowEndpoint||q.guideBuilderEndpoint||q.liveChatDialogEndpoint||q.modalEndpoint||q.openPopupAction||q.shareEndpoint||q.shareEntityEndpoint||q.showLiveChatItemEndpoint||q.subscriptionManagerEndpoint||q.unlimitedCreateFamilyEndpoint||q.unlimitedFamilyFlowEndpoint||
q.updateCommentDialogEndpoint||q.updateCommentReplyDialogEndpoint||q.userFeedbackEndpoint||q.videoEditorEndpoint||q.ypcCancelSurveyEndpoint)return N=_.VX("polymer_report_client_url_requested_rate"),!b&&Math.random()<N&&_.M6(new _.IO("urlForEndpoint used on client endpoint",q)),null;var y=_.VX("polymer_report_missing_web_navigation_endpoint_rate");if(q.liveChatEndpoint||q.liveChatReplayEndpoint)y=0;if(!q.commandMetadata&&!q.clickTrackingParams&&Math.random()<y){var J={},E;for(E in q)J[E]="1";_.M6(new _.IO("Missing navigation data",
J))}J="";if(q.commandMetadata&&q.commandMetadata.webCommandMetadata&&q.commandMetadata.webCommandMetadata.url)J=q.commandMetadata.webCommandMetadata.url;else if(q.searchEndpoint)Math.random()<y&&_.M6(new _.IO("Should not manually handle search",q)),J="/results?search_query="+encodeURIComponent(q.searchEndpoint.query).replace(/%20/g,"+"),q.searchEndpoint.params&&(J+="&sp="+q.searchEndpoint.params);else if(q.watchEndpoint)Math.random()<y&&_.M6(new _.IO("Should not manually handle watch",q)),J="/watch?v="+
q.watchEndpoint.videoId,q.watchEndpoint.playlistId&&(J+="&list="+q.watchEndpoint.playlistId),q.watchEndpoint.index&&(J+="&index="+q.watchEndpoint.index),q.watchEndpoint.startTimeSeconds&&(J+="&t="+q.watchEndpoint.startTimeSeconds);else if(q.browseEndpoint)y=q.browseEndpoint.browseId,(E=q.browseEndpoint.canonicalBaseUrl)?J=E:y&&(J=y.substr(0,2),J=J==="FE"?y==="FEwhat_to_watch"?"/":y==="FEmy_videos"?"/my_videos":"/feed/"+y.substr(2):J==="VL"?"/playlist?list="+y.substr(2):"/channel/"+y),J&&q.browseEndpoint.query&&
(J=H_(J+"/search",{query:q.browseEndpoint.query})),J&&q.browseEndpoint.params&&(J=H_(J,{params:q.browseEndpoint.params}));else{if(q.urlEndpoint)return q.urlEndpoint.url;q.signInEndpoint?(J="https://accounts.google.com/ServiceLogin",y={},_.nM.extend(y,N||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),N=y):q.uploadEndpoint?J="//www.youtube.com/upload":q.liveChatEndpoint?(J=q.liveChatEndpoint,y=_.nM.clone(J),_.AZ(J.continuation)&&(E=Object.keys(J.continuation)[0],
y.continuation=J.continuation[E].continuation),J=H_("/youtubei/v1/live_chat/get_live_chat",y)):q.liveChatReplayEndpoint?(J=_.nM.clone(q.liveChatReplayEndpoint),J.currentPlayerState&&(_.nM.extend(J,J.currentPlayerState),delete J.currentPlayerState),J=H_("/youtubei/v1/live_chat/get_live_chat_replay",J)):q.liveChatItemContextMenuEndpoint?J=H_("/youtubei/v1/live_chat/get_item_context_menu",q.liveChatItemContextMenuEndpoint):q.liveChatPurchaseMessageEndpoint?J=H_("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
q.liveChatPurchaseMessageEndpoint):q.openSuperStickerBuyFlowCommand?J=H_("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",q.openSuperStickerBuyFlowCommand):q.videoEditEndpoint?J=H_("/edit",{video_id:q.videoEditEndpoint.videoId}):q.liveDashboardEndpoint?J=q.liveDashboardEndpoint.videoId?H_("/live_dashboard",{v:q.liveDashboardEndpoint.videoId}):"/live_dashboard":q.signalNavigationEndpoint&&q.signalNavigationEndpoint.signal&&q.signalNavigationEndpoint.signal==="WEBCAM"?J="/webcam":q.getPdgBuyFlowCommand&&
(J=H_(q.getPdgBuyFlowCommand.buyflowApiPath,{params:q.getPdgBuyFlowCommand.params}))}return J||b?H_(J,N||{}):(_.M6(new _.IO("Error: Can't construct url for endpoint","keys:"+Object.keys(q).sort().join(","),q)),null)};
bTJ=function(q){if(q){if(q.browseEndpoint)return!!q.browseEndpoint.nofollow;if(q.watchEndpoint)return!!q.watchEndpoint.nofollow;if(q.urlEndpoint)return!!q.urlEndpoint.nofollow}return!1};
_.JOJ=function(q,N){var b=N+q,y=yOA.get(b);if(y)return y;q=N+"-"+q.replace(/([A-Z])/g,"-$1").toLowerCase();yOA.set(b,q);return q};
EeZ=function(q){var N=_.LI(q,"action")||_.LI(q,"command")||_.LI(q,"endpoint");if(!N)return null;N=_.JOJ(N,"yt");_.v(q,_.qr)&&(N+="-"+_.v(q,_.qr).signal.toLowerCase().replace(/_/g,"-"));return N};
R7n=function(q){try{var N=Object.keys(q)}catch(J){return[]}for(var b=0;b<N.length;b++){var y=N[b];if(ged.test(y)||ZTn.test(y))return FIR(q[y])}return[]};
FIR=function(q){return q.command?[q.command]:q.onExecutionAction?[q.onExecutionAction]:q.onResponseReceivedCommand?[q.onResponseReceivedCommand]:q.updateFlowCommand?[q.updateFlowCommand]:q.clientActions?q.clientActions:q.action?[q.action]:q.actions||q.commands||q.onResponseReceivedActions||q.onResponseReceivedCommands||q.onResponseReceivedEndpoints||[]};
cOJ=function(q,N){N=N===void 0?!1:N;var b=_.tz().resolve(_.$f(Nr));b||(b=new dED,_.tz().addProvider({provide:Nr,useValue:b}));return b&&q&&!_.nM.isEmpty(q)?b.getUrl(q,N):""};
u3n=function(q,N,b){b=b===void 0?"":b;if(N){q.data=N;var y=cOJ(N);y?(AB(q,y),bTJ(N)||!uv(y)?q.rel="nofollow":q.removeAttribute("rel"),_.v(N,_.b_)&&_.v(N,_.b_).target==="TARGET_NEW_WINDOW"?q.target="_blank":b?q.target=b:q.removeAttribute("target")):(q.removeAttribute("href"),q.removeAttribute("rel"),q.removeAttribute("target"))}};
_.Zm=function(q,N){var b=F8;if(UL())z7n(q,function(){var E=_.MB.apply(0,arguments);P1(b,function(){N.apply(null,_.a9(E))})});
else{var y=_.JD.getInstance(),J=kyn(N);YeZ(function(){J.value=N});
_.WC(function(){var E={},F=_.EX(y,(E[q]=function(){var R=_.MB.apply(0,arguments);P1(b,function(){J.value.apply(J,_.a9(R))})},E));
return function(){var R={};_.gI(y,(R[q]="",R),F)}})}};
_.dI=function(q,N){return $EC(q,!1,N)};
_.cK=function(q,N){return $EC(q,!0,N)};
$EC=function(q,N,b){return UL()?tzC(q,N,b):mEJ(q,N,b)};
mEJ=function(q,N,b){return DPR(function(){return tzC(q,N,b)},[])};
tzC=function(q,N,b){var y=j$n(function(J){y.value=J;var E=function(){var F=mR(null);try{return b==null?void 0:b(J)}finally{mR(F)}}();
return function(){E==null||E()}});
y.__expectedTagName=q;y.__optional=N;y.isIdom=!UL();return y};
rOd=function(q){var N=F8,b=hX;return{getFn:function(){return function(y){if(!N.isDisposed){var J=function(){return q(y)};
C3(function(){return _.YL(J)},b)!==!0&&y.stopPropagation()}}}}};
XGn=function(q){if(typeof q.children==="function")return q.children(),null;q=_.Z(q.children);for(var N=q.next();!N.done;N=q.next())N=N.value,N();return null};
Vzd=function(q){var N;return((N=q.prototype)==null?void 0:N.render)===void 0};
jDD=function(q){var N=Array.isArray(q.items)?q.items:Array.from(q.items);q=q.children;return(Array.isArray(N)?N:Array.from(N)).map(q)};
vee=function(q,N,b){b=b===void 0?!1:b;C3(function(){return xEJ(q,N,b)})};
xEJ=function(q,N,b){var y=null;T2++;b=(b===void 0?0:b)?GSJ:Y$J;try{y=b(q,function(){u_(N)}),n3(!1)}catch(J){throw n3(!0),J;
}return y===null?q:y};
u_=function(q){if(q!==void 0&&q!==null)if(q instanceof lc)for(var N=yq;JV()!=null&&J8h in JV()&&N.contains(JV());)Z$();else if(Array.isArray(q))for(N=_.Z(q),q=N.next();!q.done;q=N.next())u_(q.value);else if(q instanceof Dl||q instanceof zw||"function"==typeof _.$Z&&q instanceof _.$Z)y9C(q.toString());else if(_.Vq(q)){if(JV()!==q){var b,y;N=(y=(b=hX)==null?void 0:b.name)!=null?y:"unknown";throw Error("hc`"+q.tagName+"`"+N);}Z$()}else if(q!=null&&q.contentKind===vC||q instanceof ev||XBJ(q))for(N=jPJ(q),
N=Array.from(N.childNodes),N=_.Z(N),q=N.next();!q.done;q=N.next())yq.appendChild(q.value),Z$();else if(Te(q)&&(q=q.toString()),b=typeof q,b==="boolean"||b==="number"||b==="string")y9C(q);else if(typeof q==="function"){N=yq;var J=JV();J&&(J._isSignalTextNode||J._isSafeOrSanitizedHtmlNode)||MLz(N,J,q);Z$()}else if(q.type===jDD)u_(q.type(Object.assign({},q.props,{children:q.children[0]})));else{if(typeof q.type==="string"){a:{q.__open||oFA(q.type,q.props.idomKey);J=yq;for(N in q.props)if(q.props[N]!==
QDd){var E=q.props[N];b=dV;b.push(N);b.push(E)}N=z2.attributes;N=N===void 0?zh:N;E=yq;b=bc(E);bAJ(E,b,N);Ptd(J,q.props,!0);if((q.props.skip||q.props.skipchildren)&&yq.hasChildNodes())gV=yq.lastChild;else{if(q.type==="style"&&iAJ(q.children)===null){gV=yq.lastChild;N=void 0;break a}u_(q.children)}ADJ();q.__open&&(q.__open=!1);c9u(J,q.props);N=J}return N}if(q.type===_.rV)u_(q.children);else if(!OTz(q)){N=q;try{wGR(N)}catch(F){q=F,(E=z2.handleError)==null||E.call.apply(E,[z2].concat(_.a9(M0(q,(J=N.type)==
null?void 0:J.TAG_NAME))))}N.__open&&(ADJ(),N.__open=!1)}}};
iTn=function(q,N){var b;Vzd(q)?b=new Uw(N,q):b=new q(N);b.__type=q;b.__updateContext={nextState:b.state,isForced:!1};return b};
wGR=function(q){var N=q.type,b=N.TAG_NAME;if(N===XGn)q.props.children=q.children,N(q.props);else{q.children.length>0&&(q.props.children=q.children);var y;(y=q.props).idomKey||(y.idomKey=N);if(b){var J=oFA(b,q.props.idomKey);q.__open=!0;var E=J.__instance}E||(E=iTn(N,q.props),E.props=null,J&&(J.__instance=E,E.el=J));var F;b=((F=E.__updateContext)!=null?F:{nextState:E.state,isForced:!1}).nextState;E.__updateContext=void 0;N.getDerivedStateFromProps&&(b=N.getDerivedStateFromProps(q.props,b));E.props=
q.props;E.state=b;F=function(){var R=E;hV.beforeRender(R);var c=R.render(R.props);c?(R.props.idomKey&&(c.props.idomKey=R.props.idomKey),R=c):R=void 0;if(c=R)if(c.__open=q.__open,R=u_(c),q.__open=c.__open,!N.TAG_NAME)if(R)N.TAG_NAME=R.tagName.toLowerCase(),R.__instance=E,E.el=R;else{var z;if((z=E.hooks)==null?0:z.length){var m;(m=z2.handleError)==null||m.call.apply(m,[z2].concat(_.a9(M0(Error("od")))))}}E.didPatch();hV.didPatch(E)};
(b=E.functionComponent)?K0A(b,F,E.props.debugInstance):F()}};
OTz=function(q){var N=q.type;if(!Vzd(N)||N===XGn||N.componentType===kL)return!1;q.props.children=q.children.length>1?q.children:q.children[0];var b,y=(b=q.props.idomKey)!=null?b:q.type,J;if(JV()&&((J=JV()[Ow])==null?void 0:J.key)===y){var E=JV(),F=E[Ow];if(!F)throw Error("gc`"+E.tagName);var R;(R=F.updateSignalsFromIdomProps)==null||R.call(F,q.props);l7A(F);return!0}if(KIR.has(N.name))throw R=N.name,N=(F=(E=hX)==null?void 0:E.name)!=null?F:"unknown",Error("fc`"+R+"`"+N);BdC(q.type,q.props,q.children);
q.props.renderedFromIdom=!0;(R=K0A(q.type,function(){return apn(q.type,q.props)},q.props.debugInstance))&&DEn(R);
return!0};
h7D=function(q){for(var N=0;N<ic(q).length;N++)Z$()};
l7A=function(q){var N=kSh();if(N)h7D(N);else for(var b=0;b<q.numNodes;b++)(N=kSh())?h7D(N):Z$()};
kSh=function(){var q;return(q=JV()[Ow])==null?void 0:q.sourceDynamicRange};
DEn=function(q){q=$LJ(q);q=Array.isArray(q)?q:[q];q=_.Z(q);for(var N=q.next();!N.done;N=q.next())yq.insertBefore(N.value,JV()),Z$()};
UEJ=function(){var q=WHd(),N=DPR(function(){return{value:0}},[]);
return[N.value,function(b){if(kZ!==null){var y;(y=z2.handleError)==null||y.call.apply(y,[z2].concat(_.a9(M0(Error("pd")))))}N.value=typeof b==="function"?b(N.value):b;q.__updateContext={nextState:q.state,isForced:!0};b=_.Re(q.effectContext);y=XC(!1);try{if(q.el){var J,E={},F=(E.props=q.props,E.type=q.__type,E.children=(J=q.props.children)!=null?J:[],E[mT]=!0,E);try{vee(q.el,F,!0)}catch(z){var R,c;(c=z2.handleError)==null||c.call.apply(c,[z2].concat(_.a9(M0(z,(R=q.__type)==null?void 0:R.TAG_NAME))))}}}finally{XC(y),
_.Re(b)}}]};
_.$F=function(q,N){var b=F8,y=function(J){P1(b,function(){N(J)})};
window.addEventListener(q,y,void 0);_.W1(function(){window.removeEventListener(q,y,void 0)})};
_.mn=function(q){var N=F8;return function(b){var y,J=(y=q.observer)!=null?y:_.tz().resolve(tD);y=f7n(b);var E=[];q.showOption&&E.push(J.observe(b,function(){P1(N,function(){q.visibilityCallback(!0,b)})},q.showOption));
q.hideOption&&E.push(J.observe(b,function(){P1(N,function(){q.visibilityCallback(!1,b)})},q.hideOption));
q.prescanOption&&q.prescanCallback&&E.push(J.observe(b,function(){P1(N,function(){q.prescanCallback()})},q.prescanOption));
var F;y.visibilityMonitorKeys=((F=y.visibilityMonitorKeys)!=null?F:[]).concat(E)}};
f7n=function(q){var N;return(N=q.polymerController)!=null?N:q};
sDZ=function(q,N){var b=Cxu;return _.u(_.rV,null,tdh(z2.enableLazyTsx,function(){return _.u(I7D,{id:b,value:q,children:N})},function(){var y=TjJ(b,q);
u5(y);y=_.Re(y);try{return N()}finally{_.Re(y)}}))};
I7D=function(q){var N=q.children;q=TjJ(q.id,q.value);u5(q);q=_.Re(q);try{return _.u(_.rV,null,KI(N()))}finally{_.Re(q)}};
TjJ=function(q,N){return Object.assign(Object.create(ned),{id:q,contextValue:N})};
a7C=function(q){var N,b=F8;_.ae(function(){var y=_.Re(b),J=XC(!N);try{if(N)vee(N,q.children(),!0);else if(N=KI(q.children()),!(N instanceof Element))throw Error("qd");}finally{XC(J),_.Re(y)}},"g");
return N};
_.S$d=function(q,N){var b;N=L3(function(){var y=XC(!0);T2++;try{b=ic(q()),n3(!1)}catch(J){throw n3(!0),J;}finally{XC(y)}},N===void 0?!1:N);
return[b,N]};
LIJ=function(q){var N=new WIu;N.abort(q);return N.signal};
pGR=function(){if(this.aborted){var q;throw(q=this.reason)!=null?q:new DOMException("signal is aborted without reason","AbortError");}};
oeC=function(q){var N=new WIu;q=_.Z(q);for(var b=q.next();!b.done;b=q.next())if(b=b.value,b.aborted){N.abort(b.reason);break}else Pxd.set(N.signal,N),MzZ.add(b,N.signal);return N.signal};
AOu=function(){for(var q=_.Z(MzZ.get(this)),N=q.next();!N.done;N=q.next())Pxd.get(N.value).abort(this.reason)};
e7z=function(q){var N=new WIu;setTimeout(function(){N.abort(new DOMException("signal timed out","TimeoutError"))},q);
return N.signal};
Bjn=function(){var q,N;return{promise:new Promise(function(b,y){q=b;N=y}),
resolve:q,reject:N}};
qAC=function(q){var N=Bjn(),b=N.promise;HTA.set(q,{promise:b,resolve:N.resolve,reject:N.reject});rI||(rI=[],queueMicrotask(function(){var y=[].concat(_.a9(rI));rI=null;var J=WY().loadMultiple(y);y=_.Z(y);for(var E=y.next();!E.done;E=y.next())E=E.value,J[E].then(HTA.get(E).resolve,HTA.get(E).reject)}));
rI.push(q);return b};
b0n=function(q){q=q.buf.charCodeAt(q.pos++);return NRR[q]};
X0=function(q){var N=0,b=0;do{var y=b0n(q);N|=(y&31)<<b;b+=5}while(y&32);return N<0?N+4294967296:N};
J3Z=function(q,N,b,y){var J=!0;J=J===void 0?!1:J;N=N===void 0?!1:N;y=y===void 0?{}:y;var E=y.cssRowKey||"",F=y.combinedSignature||"";!E&&window&&window._F_cssRowKey&&(E=window._F_cssRowKey,!F&&window._F_combinedSignature&&(F=window._F_combinedSignature));if(E&&typeof window._F_installCss!=="function")throw Error("Ad");var R=y.loaderClass||_.VH;q=f3J(q===void 0?"base-js":q);N=new R(j9J(I3A("",q)),E,F,J,N);J=y.useCors||q&&q.hasAttribute("crossorigin");q=y.corsMode||q&&q.getAttribute("crossorigin");
J&&(N.useCors_=J);q&&(N.corsMode_=q);y.urlMaxLength&&(N.urlMaxLength=y.urlMaxLength);b&&(N.insertPos=b);y.fetchPriority&&(N.fetchPriority=y.fetchPriority);var c=WY();c.JSC$10135_loader_=N;c.setBatchModeEnabled(!0);_.y3A=y.batchingStrategy==="BATCH"?qAC:function(z){return Promise.resolve(c.load(z))}};
Z0J=function(q,N,b){EAJ(q,N);q[N][gAe].unshift(b)};
EAJ=function(q,N){if(!q[N]||!q[N][gAe]){var b=q[N],y=b?[b]:[];q[N]=function(){for(var J=_.Z(y),E=J.next();!E.done;E=J.next())E.value.apply(this,arguments)};
q[N][gAe]=y}};
FUh=function(q){if(!q)return[];var N=[];q=_.Z(q);for(var b=q.next();!b.done;b=q.next())b=b.value,Array.isArray(b)?N.push.apply(N,_.a9(FUh(b))):N.push(b);return N};
_.xF=function(q,N){if(q&&RNz.test(q)||q==="//")return q;if(d1D===void 0){d1D=!1;try{var b=new URL("b","http://a");b.pathname="c%20d";d1D=b.href==="http://a/c%20d"}catch(y){}}N||(N=document.baseURI||window.location.href);if(d1D)try{return(new URL(q,N)).href}catch(y){return q}j6||(j6=document.implementation.createHTMLDocument("temp"),j6.base=j6.createElement("base"),j6.head.appendChild(j6.base),j6.anchor=j6.createElement("a"),j6.body.appendChild(j6.anchor));j6.base.href=N;j6.anchor.href=q;return j6.anchor.href||
q};
uOD=function(q,N){return q.replace(c3d,function(b,y,J,E){return y+"'"+_.xF(J.replace(/["']/g,""),N)+"'"+E})};
zNz=function(q){return q.substring(0,q.lastIndexOf("/")+1)};
m1n=function(){$1J=!1;for(var q=vK.length,N=0;N<q;N++){var b=vK[N];if(b)try{b()}catch(y){setTimeout(function(){throw y;})}}vK.splice(0,q);
tPn+=q};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(q){console.log("["+q.is+"]: registered")};
XDe=function(q){r3A.push(q)};
Gh=function(q){return VPn[q]||(VPn[q]=q.indexOf("-")<0?q:q.replace(jmd,function(N){return N[1].toUpperCase()}))};
YF=function(q){return VPn[q]||(VPn[q]=q.replace(x1n,"-$1").toLowerCase())};
vAh=function(q,N){var b=N.parentInfo&&vAh(q,N.parentInfo);if(b)for(q=b.firstChild,b=0;q;q=q.nextSibling){if(N.parentIndex===b++)return q}else return q};
GKC=function(q,N){q=q._methodHost||q;return function(b){if(q[N])q[N](b,b.detail);else console.warn("listener method `"+N+"` not defined")}};
QH=function(q){return q.indexOf(".")>=0};
OX=function(q){var N=q.indexOf(".");return N===-1?q:q.slice(0,N)};
YAR=function(q,N){return q.indexOf(N+".")===0};
wI=function(q,N){return N.indexOf(q+".")===0};
i_=function(q,N,b){return N+b.slice(q.length)};
Qmu=function(q,N){return q===N||YAR(q,N)||wI(q,N)};
l_=function(q){if(Array.isArray(q)){for(var N=[],b=0;b<q.length;b++)for(var y=q[b].toString().split("."),J=0;J<y.length;J++)N.push(y[J]);return N.join(".")}return q};
O0Z=function(q){return Array.isArray(q)?l_(q).split("."):q.toString().split(".")};
KQ=function(q,N,b){N=O0Z(N);for(var y=0;y<N.length;y++){if(!q)return;q=q[N[y]]}b&&(b.path=N.join("."));return q};
wDe=function(q,N,b){var y=O0Z(N),J=y[y.length-1];if(y.length>1){for(N=0;N<y.length-1;N++)if(q=q[y[N]],!q)return;q[J]=b}else q[N]=b;return y.join(".")};
i0z=function(q,N,b){var y=q[N];if(!y)y=q[N]={};else if(!q.hasOwnProperty(N)&&(y=q[N]=Object.create(q[N]),b))for(var J in y)for(q=y[J],N=y[J]=Array(q.length),b=0;b<q.length;b++)N[b]=q[b];return y};
hD=function(q,N,b,y,J,E){if(N){var F=!1,R=Dm++,c;for(c in b){var z=J?OX(c):c;if(z=N[z])for(var m=0,r=z.length,X=void 0;m<r&&(X=z[m]);m++)X.info&&X.info.lastRun===R||J&&!lIz(c,X.trigger)||(X.info&&(X.info.lastRun=R),X.fn(q,c,b,y,X.info,J,E),F=!0)}return F}return!1};
lIz=function(q,N){if(N){var b=N.name;return b==q||!(!N.structured||!YAR(b,q))||!(!N.wildcard||!wI(b,q))}return!0};
KUJ=function(q,N,b,y,J){N=typeof J.method==="string"?q[J.method]:J.method;b=J.property;N?N.call(q,q.__data[b],y[b]):J.dynamicFn||console.warn("observer method `"+J.method+"` not defined")};
D1C=function(q,N,b,y){b={value:b,queueProperty:!0};y&&(b.path=y);(0,_.kF)(q).dispatchEvent(new CustomEvent(N,{detail:b}))};
hNC=function(q,N,b,y,J,E){E=(y=(E?OX(N):N)!=N?N:null)?KQ(q,y):q.__data[N];y&&E===void 0&&(E=b[N]);D1C(q,J.eventName,E,y)};
kKn=function(q,N,b,y,J){b=q.__data[N];UX&&(b=UX(b,J.attrName,"attribute",q));q._propertyToAttribute(N,J.attrName,b)};
fIC=function(q){var N=q.constructor.__orderedComputedDeps;if(!N){N=new Map;for(var b=q.__computeEffects,y=U1e(q),J=y.counts,E=y.ready,F=y.total;y=E.shift();)N.set(y,N.size),(y=b[y])&&y.forEach(function(R){R=R.info.methodInfo;--F;--J[R]===0&&E.push(R)});
F!==0&&console.warn("Computed graph for "+q.localName+" incomplete; circular?");q.constructor.__orderedComputedDeps=N}return N};
U1e=function(q){var N=q.__computeInfo,b={};q=q.__computeEffects;var y=[],J=0,E;for(E in N){var F=N[E];J+=b[E]=F.args.filter(function(c){return!c.literal}).length+(F.dynamicFn?1:0)}for(var R in q)N[R]||y.push(R);
return{counts:b,ready:y,total:J}};
IIz=function(q,N,b,y,J){N=Ckn(q,N,b,y,J);if(N===fQ)return!1;J=J.methodInfo;if(q.__dataHasAccessor&&q.__dataHasAccessor[J])return q._setPendingProperty(J,N,!0);q[J]=N;return!1};
nAn=function(q,N,b,y,J,E,F){b.bindings=b.bindings||[];y={kind:y,target:J,parts:E,literal:F,isCompound:E.length!==1};b.bindings.push(y);y.target&&y.kind!="attribute"&&y.kind!="text"&&!y.isCompound&&y.parts[0].mode==="{"&&(b=y.parts[0],E=b.negate,y.listenerEvent=b.event||YF(J)+"-changed",y.listenerNegate=E);J=N.nodeInfoList.length;for(b=0;b<y.parts.length;b++){var R=y.parts[b];R.compoundIndex=b;E=q;F=N;var c=y,z=R,m=J;if(!z.literal)if(c.kind==="attribute"&&c.target[0]==="-")console.warn("Cannot set attribute "+
c.target+' because "-" is not a valid attribute starting character');else for(R=z.dependencies,c={index:m,binding:c,part:z,evaluator:E},z=0;z<R.length;z++)m=R[z],typeof m=="string"&&(m=TRC(m),m.wildcard=!0),E._addTemplatePropertyEffect(F,m.rootProperty,{fn:smn,info:c,trigger:m})}};
smn=function(q,N,b,y,J,E,F){F=F[J.index];var R=J.binding,c=J.part;E&&c.source&&N.length>c.source.length&&R.kind=="property"&&!R.isCompound&&F.__isPropertyEffectsClient&&F.__dataHasAccessor&&F.__dataHasAccessor[R.target]?(b=b[N],N=i_(c.source,R.target,N),F._setPendingPropertyOrPath(N,b,!1,!0)&&q._enqueueClient(F)):(N=J.evaluator._evaluateBinding(q,c,N,b,y,E),N!==fQ&&(R.isCompound&&(b=F.__dataCompoundStorage[R.target],b[c.compoundIndex]=N,N=b.join("")),R.kind==="attribute"||R.target!=="textContent"&&
(R.target!=="value"||F.localName!=="input"&&F.localName!=="textarea")||(N=N==void 0?"":N),c=N,UX&&(c=UX(c,R.target,R.kind,F)),R.kind=="attribute"?q._valueToNodeAttribute(F,c,R.target):(R=R.target,F.__isPropertyEffectsClient&&F.__dataHasAccessor&&F.__dataHasAccessor[R]?F.__readOnly&&F.__readOnly[R]||F._setPendingProperty(R,c)&&q._enqueueClient(F):q._setUnmanagedPropertyToNode(F,R,c))))};
aIA=function(q,N,b){if(b.listenerEvent){var y=b.parts[0];q.addEventListener(b.listenerEvent,function(J){var E=b.target,F=y.source,R=y.negate,c=J.detail,z=c&&c.path;z?(F=i_(E,F,z),J=c&&c.value):J=J.currentTarget[E];N.__readOnly&&N.__readOnly[F]||!N._setPendingPropertyOrPath(F,R?!J:J,!0,!!z)||c&&c.queueProperty||N._invalidateProperties()})}};
SAR=function(q,N,b,y,J,E){E=N.static||E&&(typeof E!=="object"||E[N.methodName]);J={methodName:N.methodName,args:N.args,methodInfo:J,dynamicFn:E};for(var F=0,R=void 0;F<N.args.length&&(R=N.args[F]);F++)R.literal||q._addPropertyEffect(R.rootProperty,b,{fn:y,info:J,trigger:R});E&&q._addPropertyEffect(N.methodName,b,{fn:y,info:J});return J};
Ckn=function(q,N,b,y,J){y=q._methodHost||q;var E=y[J.methodName];if(E)return q=q._marshalArgs(J.args,N,b),q===fQ?fQ:E.apply(y,q);J.dynamicFn||console.warn("method `"+J.methodName+"` not defined")};
WUA=function(q){for(var N="",b=0;b<q.length;b++)N+=q[b].literal||"";return N};
PkJ=function(q){if(q=q.match(/([^\s]+?)\(([\s\S]*)\)/)){var N={methodName:q[1],static:!0,args:LUA};return q[2].trim()?pDh(q[2].replace(/\\,/g,"&comma;").split(","),N):N}return null};
pDh=function(q,N){N.args=q.map(function(b){b=TRC(b);b.literal||(N.static=!1);return b},this);
return N};
TRC=function(q){q=q.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var N={name:q,value:"",literal:!1},b=q[0];b==="-"&&(b=q[1]);b>="0"&&b<="9"&&(b="#");switch(b){case "'":case '"':N.value=q.slice(1,-1);N.literal=!0;break;case "#":N.value=Number(q),N.literal=!0}N.literal||(N.rootProperty=OX(q),N.structured=QH(q),N.structured&&(N.wildcard=q.slice(-2)==".*",N.wildcard&&(N.name=q.slice(0,-2))));return N};
MPJ=function(q,N,b){q=KQ(q,b);q===void 0&&(q=N[b]);return q};
oAC=function(q,N,b,y){y={indexSplices:y};CQ&&!q._overrideLegacyUndefined&&(N.splices=y);q.notifyPath(b+".splices",y);q.notifyPath(b+".length",N.length);CQ&&!q._overrideLegacyUndefined&&(y.indexSplices=[])};
IC=function(q,N,b,y,J,E){oAC(q,N,b,[{index:y,addedCount:J,removed:E,object:N,type:"splice"}])};
A3h=function(q){q=uOD((q.body?q.body:q).textContent,q.baseURI);var N=document.createElement("style");N.textContent=q;return N};
BRe=function(q){q=q.trim().split(/\s+/);for(var N=[],b=0;b<q.length;b++)N.push.apply(N,_.a9(eNC(q[b])));return N};
eNC=function(q){var N=Th.import(q);if(!N)return console.warn("Could not find style data in module named",q),[];if(N._styles===void 0){q=[];q.push.apply(q,_.a9(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(N)));var b=N.querySelector("template");b&&q.push.apply(q,_.a9(H0Z(b,N.assetpath)));N._styles=q}return N._styles};
H0Z=function(q,N){if(!q._styles){for(var b=[],y=q.content.querySelectorAll("style"),J=0;J<y.length;J++){var E=y[J],F=E.getAttribute("include");F&&b.push.apply(b,_.a9(BRe(F).filter(function(R,c,z){return z.indexOf(R)===c})));
N&&(E.textContent=uOD(E.textContent,N));b.push(E)}q._styles=b}return q._styles};
qdJ=function(q){return(q=Th.import(q))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(q):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(q){var N=[];q=q.querySelectorAll("link[rel=import][type~=css]");for(var b=0;b<q.length;b++){var y=q[b];if(y.import){var J=y.import;if((y=y.hasAttribute("shady-unscoped"))&&!J._unscopedStyle){var E=A3h(J);E.setAttribute("shady-unscoped","");J._unscopedStyle=E}else J._style||(J._style=A3h(J));N.push(y?J._unscopedStyle:J._style)}}return N};
bNn=function(q){q=q.trim().split(/\s+/);for(var N="",b=0;b<q.length;b++)N+=NhR(q[b]);return N};
NhR=function(q){var N=Th.import(q);if(N&&N._cssText===void 0){var b=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(N),y=N.querySelector("template");y&&(b+=y7Z(y,N.assetpath));N._cssText=b||null}N||console.warn("Could not find style data in module named",q);return N&&N._cssText||""};
y7Z=function(q,N){var b="";q=H0Z(q,N);for(N=0;N<q.length;N++){var y=q[N];y.parentNode&&y.parentNode.removeChild(y);b+=y.textContent}return b};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(q){var N="";q=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(q);for(var b=0;b<q.length;b++)N+=q[b].textContent;return N};
sX=function(q,N){return{index:q,removed:[],addedCount:N}};
EJu=function(q,N,b,y){var J=0,E=0,F=0,R=0,c=Math.min(N-J,y-E);if(J==0&&E==0)a:{for(F=0;F<c;F++)if(q[F]!==b[F])break a;F=c}if(N==q.length&&y==b.length){R=q.length;for(var z=b.length,m=0;m<c-F&&J7e(q[--R],b[--z]);)m++;R=m}J+=F;E+=F;N-=R;y-=R;if(N-J==0&&y-E==0)return[];if(J==N){for(N=sX(J,0);E<y;)N.removed.push(b[E++]);return[N]}if(E==y)return[sX(J,N-J)];c=J;F=E;y=y-F+1;R=N-c+1;N=Array(y);for(z=0;z<y;z++)N[z]=Array(R),N[z][0]=z;for(z=0;z<R;z++)N[0][z]=z;for(z=1;z<y;z++)for(m=1;m<R;m++)if(q[c+m-1]===
b[F+z-1])N[z][m]=N[z-1][m-1];else{var r=N[z-1][m]+1,X=N[z][m-1]+1;N[z][m]=r<X?r:X}c=N.length-1;F=N[0].length-1;y=N[c][F];for(q=[];c>0||F>0;)c==0?(q.push(2),F--):F==0?(q.push(3),c--):(R=N[c-1][F-1],z=N[c-1][F],m=N[c][F-1],r=z<m?z<R?z:R:m<R?m:R,r==R?(R==y?q.push(0):(q.push(1),y=R),c--,F--):r==z?(q.push(3),c--,y=z):(q.push(2),F--,y=m));q.reverse();N=void 0;c=[];for(F=0;F<q.length;F++)switch(q[F]){case 0:N&&(c.push(N),N=void 0);J++;E++;break;case 1:N||(N=sX(J,0));N.addedCount++;J++;N.removed.push(b[E]);
E++;break;case 2:N||(N=sX(J,0));N.addedCount++;J++;break;case 3:N||(N=sX(J,0)),N.removed.push(b[E]),E++}N&&c.push(N);return c};
gJR=function(q,N){return EJu(q,q.length,N,N.length)};
J7e=function(q,N){return q===N};
Fvn=function(q){if(q instanceof ZNn)return q.value;throw Error("Id`"+q);};
RfJ=function(q,N){for(var b in N)b===null?q.style.removeProperty(b):q.style.setProperty(b,N[b])};
d$d=function(q,N){return(q=window.getComputedStyle(q).getPropertyValue(N))?q.trim():""};
$$D=function(q){requestAnimationFrame(function(){c7A?c7A(q):(u_C||(u_C=new Promise(function(N){zfZ=N}),document.readyState==="complete"?zfZ():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&zfZ()})),u_C.then(function(){q&&q()}))})};
r7d=function(q){taJ=q&&q.shimcssproperties?!1:m$d||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
vJJ=function(q){if(!(XVR.indexOf(q)>-1)&&q!=="touchend"&&Van&&jKR&&x$A)return{passive:!0}};
ONn=function(q){for(var N=Gte?["click"]:XVR,b=0,y;b<N.length;b++)y=N[b],q?(YdJ.length=0,document.addEventListener(y,QKn,!0)):document.removeEventListener(y,QKn,!0)};
nQ=function(q){var N=q.type;return XVR.indexOf(N)>-1?N==="mousemove"?(N=q.buttons===void 0?1:q.buttons,q instanceof window.MouseEvent&&!wVA&&(N=iNn[q.which]||0),!!(N&1)):(q.button===void 0?0:q.button)===0:!1};
lQd=function(q){if(q.type==="click"){if(q.detail===0)return!0;var N=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q);if(!N.nodeType||N.nodeType!==Node.ELEMENT_NODE)return!0;N=N.getBoundingClientRect();var b=q.pageX;q=q.pageY;return!(b>=N.left&&b<=N.right&&q>=N.top&&q<=N.bottom)}return!1};
Kvn=function(q,N,b){q.movefn=N;q.upfn=b;document.addEventListener("mousemove",N);document.addEventListener("mouseup",b)};
aC=function(q){document.removeEventListener("mousemove",q.movefn);document.removeEventListener("mouseup",q.upfn);q.movefn=null;q.upfn=null};
D$A=function(q,N){for(var b=document.elementFromPoint(q,N),y=b;y&&y.shadowRoot&&!window.ShadyDOM;){var J=y;y=y.shadowRoot.elementFromPoint(q,N);if(J===y)break;y&&(b=y)}return b};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q){var N=hfJ(q);return N.length>0?N[0]:q.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q){var N=q.type,b=q.currentTarget.__polymerGestures;if(b&&(b=b[N])){if(!q.__polymerGesturesHandled&&(q.__polymerGesturesHandled={},N.slice(0,5)==="touch")){var y=q.changedTouches[0];N==="touchstart"&&q.touches.length===1&&(ktn=y.identifier);if(ktn!==y.identifier)return;Van||(N==="touchstart"||N==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q)}y=
q.__polymerGesturesHandled;if(!y.skip){for(var J=0,E;J<S6.length;J++)E=S6[J],b[E.name]&&!y[E.name]&&E.flow&&E.flow.start.indexOf(q.type)>-1&&E.reset&&E.reset();for(J=0;J<S6.length;J++)E=S6[J],b[E.name]&&!y[E.name]&&(y[E.name]=!0,E[N](q))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q){var N=q.changedTouches[0],b=q.type;if(b==="touchstart")U$n=N.clientX,fQd=N.clientY,C9n=!1;else if(b==="touchmove"&&!C9n){C9n=!0;b="auto";for(var y=hfJ(q),J=0,E;J<y.length;J++)if(E=y[J],E.__polymerGesturesTouchAction){b=E.__polymerGesturesTouchAction;break}y=!1;J=Math.abs(U$n-N.clientX);N=Math.abs(fQd-N.clientY);q.cancelable&&(b==="none"?y=!0:b==="pan-x"?y=N>J:b==="pan-y"&&(y=J>N));y?q.preventDefault():
WK("track")}};
PK=function(q,N,b){return LQ[N]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q,N,b),!0):!1};
Mr=function(q,N,b){return LQ[N]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q,N,b),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q,N,b){var y=LQ[N],J=y.deps,E=y.name,F=q.__polymerGestures;F||(q.__polymerGestures=F={});for(var R=0,c,z;R<J.length;R++)c=J[R],Gte&&XVR.indexOf(c)>-1&&c!=="click"||((z=F[c])||(F[c]=z={_count:0}),z._count===0&&q.addEventListener(c,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,vJJ(c)),z[E]=(z[E]||0)+1,z._count=(z._count||0)+1);q.addEventListener(N,b);y.touchAction&&_.oC(q,y.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q,N,b){var y=LQ[N],J=y.deps;y=y.name;var E=q.__polymerGestures;if(E)for(var F=0,R,c;F<J.length;F++)R=J[F],(c=E[R])&&c[y]&&(c[y]=(c[y]||1)-1,c._count=(c._count||1)-1,c._count===0&&q.removeEventListener(R,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,vJJ(R)));q.removeEventListener(N,b)};
IQR=function(q){S6.push(q);for(var N=0;N<q.emits.length;N++)LQ[q.emits[N]]=q};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q){for(var N=0,b;N<S6.length;N++){b=S6[N];for(var y=0,J;y<b.emits.length;y++)if(J=b.emits[y],J===q)return b}return null};
_.oC=function(q,N){Van&&q instanceof HTMLElement&&AD.run(function(){q.style.touchAction=N});
q.__polymerGesturesTouchAction=N};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q,N,b){N=new Event(N,{bubbles:!0,cancelable:!0,composed:!0});N.detail=b;(0,_.kF)(q).dispatchEvent(N);N.defaultPrevented&&(q=b.preventer||b.sourceEvent)&&q.preventDefault&&q.preventDefault()};
WK=function(q){q=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q);q.info&&(q.info.prevent=!0)};
e6=function(q,N,b,y){N&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N,q,{x:b.clientX,y:b.clientY,sourceEvent:b,preventer:y,prevent:function(J){return WK(J)}})};
ThZ=function(q,N,b){if(q.prevent)return!1;if(q.started)return!0;b=Math.abs(q.y-b);return Math.abs(q.x-N)>=5||b>=5};
sKZ=function(q,N,b){if(N){var y=q.moves[q.moves.length-2],J=q.moves[q.moves.length-1],E=J.x-q.x,F=J.y-q.y,R=0;if(y){var c=J.x-y.x;R=J.y-y.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N,"track",{state:q.state,x:b.clientX,y:b.clientY,dx:E,dy:F,ddx:c,ddy:R,sourceEvent:b,hover:function(){return D$A(b.clientX,b.clientY)}})}};
aQd=function(q,N,b){var y=Math.abs(N.clientX-q.x),J=Math.abs(N.clientY-q.y),E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b||N);!E||nJZ[E.localName]&&E.hasAttribute("disabled")||!(isNaN(y)||isNaN(J)||y<=25&&J<=25||lQd(N))||q.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E,"tap",{x:N.clientX,y:N.clientY,sourceEvent:N,preventer:b})};
SdA=function(q,N,b,y,J){var E;J&&(E=typeof b==="object"&&b!==null)&&(y=q.__dataTemp[N]);y=y!==b&&(y===y||b===b);E&&y&&(q.__dataTemp[N]=b);return y};
Lvu=function(){if(BK&&!HK){if(!WvA){WvA=!0;var q=document.createElement("style");q.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(q)}return!0}return!1};
P9n=function(){return pVu};
MaJ=function(q,N){pVu=q;Object.setPrototypeOf(q,N.prototype);new N;pVu=null};
oJn=function(q,N){for(var b=0;b<N.length;b++){var y=N[b];if(!!q!=!!y.__hideTemplateChildren__)if(y.nodeType===Node.TEXT_NODE)q?(y.__polymerTextContent__=y.textContent,y.textContent=""):y.textContent=y.__polymerTextContent__;else if(y.localName==="slot")if(q)y.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.kF)((0,_.kF)(y).parentNode).replaceChild(y.__polymerReplaced__,y);else{var J=y.__polymerReplaced__;J&&(0,_.kF)((0,_.kF)(J).parentNode).replaceChild(y,J)}else y.style&&(q?(y.__polymerDisplay__=
y.style.display,y.style.display="none"):y.style.display=y.__polymerDisplay__);y.__hideTemplateChildren__=q;y._showHideChildren&&y._showHideChildren(q)}};
A7n=function(q){return(q=q.__dataHost)&&q._methodHost||q};
HNA=function(q,N,b){var y=b.mutableData?efZ:qL;yi.mixin&&(y=yi.mixin(y));var J=function(){return y.apply(this,arguments)||this};
_.Y(J,y);J.prototype.__templatizeOptions=b;J.prototype._bindTemplate(q);Bhd(J,q,N,b);return J};
Jsh=function(q,N,b,y){var J=b.forwardHostProp;if(J&&N.hasHostProps){var E=q.localName=="template",F=N.templatizeTemplateClass;if(!F){if(E){var R=b.mutableData?qnZ:NMn;F=function(){return R.apply(this,arguments)||this};
_.Y(F,R);F=N.templatizeTemplateClass=F}else{var c=q.constructor;F=function(){return c.apply(this,arguments)||this};
_.Y(F,c);F=N.templatizeTemplateClass=F}var z=N.hostProps,m;for(m in z)F.prototype._addPropertyEffect("_host_"+m,F.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:bLd(J)}),F.prototype._createNotifyingProperty("_host_"+m);J9&&y&&ysn(N,b,y)}q.__dataProto&&Object.assign(q.__data,q.__dataProto);if(E)MaJ(q,F),q.__dataTemp={},q.__dataPending=null,q.__dataOld=null,q._enableProperties();else{Object.setPrototypeOf(q,F.prototype);N=N.hostProps;for(var r in N)r="_host_"+r,r in q&&(N=q[r],delete q[r],q.__data[r]=
N)}}};
bLd=function(q){return function(N,b,y){q.call(N.__templatizeOwner,b.substring(6),y[b])}};
Bhd=function(q,N,b,y){var J=b.hostProps||{},E;for(E in y.instanceProps){delete J[E];var F=y.notifyInstanceProp;F&&q.prototype._addPropertyEffect(E,q.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:EsA(F)})}if(y.forwardHostProp&&N.__dataHost)for(var R in J)b.hasHostProps||(b.hasHostProps=!0),q.prototype._addPropertyEffect(R,q.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:gsd()})};
EsA=function(q){return function(N,b,y){q.call(N.__templatizeOwner,N,b,y[b])}};
gsd=function(){return function(q,N,b){q.__dataHost._setPendingPropertyOrPath("_host_"+N,b[N],!0,!0)}};
yi=function(q,N,b){if(E7&&!A7n(q))throw Error("Od");b=b||{};if(q.__templatizeOwner)throw Error("Pd");q.__templatizeOwner=N;var y=(N?N.constructor:qL)._parseTemplate(q),J=y.templatizeInstanceClass;J||(J=HNA(q,y,b),y.templatizeInstanceClass=J);var E=A7n(q);Jsh(q,y,b,E);b=function(){return J.apply(this,arguments)||this};
_.Y(b,J);b.prototype._methodHost=E;b.prototype.__dataHost=q;b.prototype.__templatizeOwner=N;b.prototype.__hostProps=y.hostProps;return b};
ysn=function(q,N,b){b=b.constructor._properties;q=q.propertyEffects;N=N.instanceProps;for(var y in q)if(!(b[y]||N&&N[y]))for(var J=q[y],E=0;E<J.length;E++){var F=J[E].info.part;if(!F.signature||!F.signature.static){console.warn("Property '"+y+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
ZLA=function(q,N){for(var b;N;)if(b=N.__dataHost?N:N.__templatizeInstance)if(b.__dataHost!=q)N=b.__dataHost;else return b;else N=(0,_.kF)(N).parentNode;return null};
gd=function(q){return q.localName==="slot"};
FYJ=function(){for(var q=Zp.prototype,N="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),b={},y=0;y<N.length;b={method$jscomp$33:void 0},y++)b.method$jscomp$33=N[y],q[b.method$jscomp$33]=function(J){return function(){return this.node[J.method$jscomp$33].apply(this.node,arguments)}}(b)};
RWA=function(q,N){for(var b={},y=0;y<N.length;b={name$jscomp$448:void 0},y++)b.name$jscomp$448=N[y],Object.defineProperty(q,b.name$jscomp$448,{get:function(J){return function(){return this.node[J.name$jscomp$448]}}(b),
configurable:!0})};
ddd=function(){for(var q=Zp.prototype,N=["textContent","innerHTML","className"],b={},y=0;y<N.length;b={name$jscomp$449:void 0},y++)b.name$jscomp$449=N[y],Object.defineProperty(q,b.name$jscomp$449,{get:function(J){return function(){return this.node[J.name$jscomp$449]}}(b),
set:function(J){return function(E){this.node[J.name$jscomp$449]=E}}(b),
configurable:!0})};
csA=function(){F4=document.documentElement.getAttribute("dir");F4=document.documentElement.getAttribute("dir");for(var q=0;q<RP.length;q++){var N=RP[q];N.__autoDirOptOut||N.setAttribute("dir",F4)}};
t5e=function(){dd=!0;requestAnimationFrame(function(){dd=!1;unn(zWR);setTimeout(function(){for(var q=0,N=cB.length;q<N;q++)$dD(cB.shift())})})};
unn=function(q){for(;q.length;)$dD(q.shift())};
$dD=function(q){var N=q[0],b=q[1];q=q[2];try{b.apply(N,q)}catch(y){setTimeout(function(){throw y;})}};
_.mdJ=function(q,N,b){dd||t5e();zWR.push([q,N,b])};
_.ut=function(q,N,b){dd||t5e();cB.push([q,N,b])};
V5d=function(q,N){N=N===void 0?!1:N;if(!rsJ||!Xcu||!rsJ.handlesDynamicScoping)return null;var b=Xcu.ScopingShim;if(!b)return null;var y=b.scopeForNode(q),J=(0,_.kF)(q).getRootNode(),E=function(F){if((0,_.kF)(F).getRootNode()===J){var R=Array.from(rsJ.nativeMethods.querySelectorAll.call(F,"*"));R.push(F);for(F=0;F<R.length;F++){var c=R[F];if((0,_.kF)(c).getRootNode()===J){var z=b.currentScopeForNode(c);z!==y&&(z!==""&&b.unscopeNode(c,z),b.scopeNode(c,y))}}}};
E(q);return N?(N=new MutationObserver(function(F){for(var R=0;R<F.length;R++)for(var c=F[R],z=0;z<c.addedNodes.length;z++){var m=c.addedNodes[z];m.nodeType===Node.ELEMENT_NODE&&E(m)}}),N.observe(q,{childList:!0,
subtree:!0}),N):null};
j6n=function(){document.body.removeAttribute("unresolved")};
Q6d=function(q){var N=q=q.replace(xdd,"").replace(vsh,""),b=new Gan;b.start=0;b.end=N.length;for(var y=b,J=0,E=N.length;J<E;J++)if(N[J]==="{"){y.rules||(y.rules=[]);var F=y,R=F.rules[F.rules.length-1]||null;y=new Gan;y.start=J+1;y.parent=F;y.previous=R;F.rules.push(y)}else N[J]==="}"&&(y.end=J+1,y=y.parent||b);return Ynu(b,q)};
Ynu=function(q,N){var b=N.substring(q.start,q.end-1);q.parsedCssText=q.cssText=b.trim();q.parent&&(b=N.substring(q.previous?q.previous.end:q.parent.start,q.start-1),b=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(b),b=b.replace(OLC," "),b=b.substring(b.lastIndexOf(";")+1),b=q.parsedSelector=q.selector=b.trim(),q.atRule=b.indexOf("@")===0,q.atRule?b.indexOf("@media")===0?q.type=4:b.match(wcJ)&&(q.type=7,q.keyframesName=q.selector.split(OLC).pop()):b.indexOf("--")===
0?q.type=1E3:q.type=1);if(b=q.rules)for(var y=0,J=b.length,E=void 0;y<J&&(E=b[y]);y++)Ynu(E,N);return q};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(q){return q.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var N=arguments[1],b=6-N.length;b--;)N="0"+N;return"\\"+N})};
iLn=function(q,N,b){b=b===void 0?"":b;var y="";if(q.cssText||q.rules){var J=q.rules;if(J&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(J))for(var E=0,F=J.length,R=void 0;E<F&&(R=J[E]);E++)y=iLn(R,N,y);else N?N=q.cssText:(N=q.cssText,N=N.replace(lsC,"").replace(KYn,""),N=N.replace(Ddd,"").replace(hWz,"")),(y=N.trim())&&(y="  "+y+"\n")}y&&(q.selector&&(b+=q.selector+" {\n"),b+=y,q.selector&&(b+="}\n\n"));return b};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(q){q=q[0];return!!q&&!!q.selector&&q.selector.indexOf("--")===0};
UdJ=function(q){if(q=kaZ[q])q._applyShimCurrentVersion=q._applyShimCurrentVersion||0,q._applyShimValidatingVersion=q._applyShimValidatingVersion||0,q._applyShimNextVersion=(q._applyShimNextVersion||0)+1};
fsJ=function(q){return q._applyShimCurrentVersion===q._applyShimNextVersion};
IsA=function(q){q._applyShimValidatingVersion=q._applyShimNextVersion;q._validating||(q._validating=!0,CZd.then(function(){q._applyShimCurrentVersion=q._applyShimNextVersion;q._validating=!1}))};
s6D=function(q){if(!q)return"";typeof q==="string"&&(q=Q6d(q));return iLn(q,TMJ)};
nsz=function(q){!q.__cssRules&&q.textContent&&(q.__cssRules=Q6d(q.textContent));return q.__cssRules||null};
Snh=function(q,N,b,y){if(q){var J=!1,E=q.type;if(y&&E===4){var F=q.selector.match(asA);F&&(window.matchMedia(F[1]).matches||(J=!0))}E===1?N(q):b&&E===7?b(q):E===1E3&&(J=!0);if((q=q.rules)&&!J)for(J=0,E=q.length,F=void 0;J<E&&(F=q[J]);J++)Snh(F,N,b,y)}};
WYd=function(q,N){var b=q.indexOf("var(");if(b===-1)return N(q,"","","");a:{var y=0;var J=b+3;for(var E=q.length;J<E;J++)if(q[J]==="(")y++;else if(q[J]===")"&&--y===0)break a;J=-1}y=q.substring(b+4,J);b=q.substring(0,b);q=WYd(q.substring(J+1),N);E=y.indexOf(",");if(E===-1)return N(b,y.trim(),"",q);J=y.substring(0,E).trim();y=y.substring(E+1).trim();return N(b,J,y,q)};
LYD=function(q){if(zj!==void 0)return zj;if(q.__cssBuild===void 0){var N=q.getAttribute("css-build");if(N)q.__cssBuild=N;else{a:{N=q.localName==="template"?q.content.firstChild:q.firstChild;if(N instanceof Comment&&(N=N.textContent.trim().split(":"),N[0]==="css-build")){N=N[1];break a}N=""}if(N!==""){var b=q.localName==="template"?q.content.firstChild:q.firstChild;b.parentNode.removeChild(b)}q.__cssBuild=N}}return q.__cssBuild||""};
PZd=function(q,N,b,y){for(var J=N._noAccessors,E=Object.getOwnPropertyNames(N),F=0;F<E.length;F++){var R=E[F];if(!(R in y))if(J)q[R]=N[R];else{var c=Object.getOwnPropertyDescriptor(N,R);c&&(c.configurable=!0,Object.defineProperty(q,R,c))}}for(var z in pcA)N[z]&&(b[z]=b[z]||[],b[z].push(N[z]))};
M5e=function(q,N,b){N=N||[];for(var y=q.length-1;y>=0;y--){var J=q[y];J?Array.isArray(J)?M5e(J,N):N.indexOf(J)<0&&(!b||b.indexOf(J)<0)&&N.unshift(J):console.warn("behavior is null, check for missing or 404 import")}return N};
osZ=function(q,N){for(var b in N){var y=q[b],J=N[b];q[b]=!("value"in J)&&y&&"value"in y?Object.assign({value:y.value},J):J}};
BMA=function(q,N,b){var y={},J=function(){return N.apply(this,arguments)||this};
_.Y(J,N);J._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(F)for(var c=0,z;c<F.length;c++)z=F[c],z.properties&&this.createProperties(z.properties),z.observers&&this.createObservers(z.observers,z.properties);q.properties&&this.createProperties(q.properties);q.observers&&this.createObservers(q.observers,q.properties);this._prepareTemplate()}else N._finalizeClass.call(this)};
J.prototype.created=function(){N.prototype.created.call(this);var c=y.created;if(c)for(var z=0;z<c.length;z++)c[z].call(this)};
J.prototype._registered=function(){var c=J.prototype;if(!c.hasOwnProperty("__hasRegisterFinished")){c.__hasRegisterFinished=!0;N.prototype._registered.call(this);BK&&R(c);c=Object.getPrototypeOf(this);var z=y.beforeRegister;if(z)for(var m=0;m<z.length;m++)z[m].call(c);if(z=y.registered)for(m=0;m<z.length;m++)z[m].call(c)}};
J.prototype._applyListeners=function(){N.prototype._applyListeners.call(this);var c=y.listeners;if(c)for(var z=0;z<c.length;z++){var m=c[z];if(m)for(var r in m)this._addMethodEventListenerToNode(this,r,m[r])}};
J.prototype._ensureAttributes=function(){var c=y.hostAttributes;if(c)for(var z=c.length-1;z>=0;z--){var m=c[z],r;for(r in m)this._ensureAttribute(r,m[r])}N.prototype._ensureAttributes.call(this)};
J.prototype.ready=function(){N.prototype.ready.call(this);var c=y.ready;if(c)for(var z=0;z<c.length;z++)c[z].call(this)};
J.prototype.attached=function(){N.prototype.attached.call(this);var c=y.attached;if(c)for(var z=0;z<c.length;z++)c[z].call(this)};
J.prototype.detached=function(){N.prototype.detached.call(this);var c=y.detached;if(c)for(var z=0;z<c.length;z++)c[z].call(this)};
J.prototype.attributeChanged=function(c,z,m){N.prototype.attributeChanged.call(this);var r=y.attributeChanged;if(r)for(var X=0;X<r.length;X++)r[X].call(this,c,z,m)};
_.$H.Object.defineProperties(J,{properties:{configurable:!0,enumerable:!0,get:function(){var c={};if(F)for(var z=0;z<F.length;z++)osZ(c,F[z].properties);osZ(c,q.properties);return c}},
observers:{configurable:!0,enumerable:!0,get:function(){var c=[];if(F)for(var z=0,m;z<F.length;z++)m=F[z],m.observers&&(c=c.concat(m.observers));q.observers&&(c=c.concat(q.observers));return c}}});
if(b){Array.isArray(b)||(b=[b]);var E=N.prototype.behaviors;var F=M5e(b,null,E);J.prototype.behaviors=E?E.concat(b):F}var R=function(c){if(F)for(var z=F,m=0;m<z.length;m++)PZd(c,z[m],y,Asn);PZd(c,q,y,eWJ)};
BK||R(J.prototype);J.generatedFrom=q;return J};
bGJ=function(q){var N=typeof q!=="string"?q:{is:q,notifyObserversOnUndefined:!0};N.fastInit===void 0&&(N.fastInit=!0);return function(b){if(!N.disableInheritanceCheck&&Object.getPrototypeOf(b.prototype).constructor!==_.t9)throw Error("Td");var y=b.prototype;y.is=N.is;Z0J(y,"created",function(){this.hostElement=this;this.polymerController=this});
HLJ(y,b,N.fastInit);N.notifyObserversOnUndefined&&(y._overrideLegacyUndefined=!0);if(qqA)for(var J=_.Z(Object.getOwnPropertyNames(y)),E=J.next();!E.done;E=J.next()){E=E.value;var F=Object.getOwnPropertyDescriptor(y,E);F.enumerable===!1&&(F.enumerable=!0,Object.defineProperty(y,E,F))}if("template"in b)var R=function(){return b.template};
else N.template!==void 0&&(R=N.template);if(R!==void 0){var c;Object.defineProperty(y,"_template",{get:function(){c===void 0&&(c=R());return c},
set:function(z){c=z},
configurable:!0,enumerable:!0})}Polymer(y);b[N1z]=y}};
yxd=function(q){q=q===void 0?{}:q;q.fastInit===void 0&&(q.fastInit=!0);return function(N){if(!q.disableInheritanceCheck&&Object.getPrototypeOf(N.prototype).constructor!==mH)throw Error("Ud");HLJ(N.prototype,N,q.fastInit)}};
HLJ=function(q,N,b){b=b===void 0?!1:b;Jxz(N);b?Z0J(q,"created",function(){this.disableEnforceFastDefaultValuesCheck||E_n(N,this)}):Z0J(q,"ready",function(){for(var y={},J=_.Z(FUh(this.behaviors)),E=J.next();!E.done;E=J.next())E=E.value,E.properties&&Object.assign(y,g_d(this,E.properties));
Object.assign(y,g_d(this,this.properties));E_n(N,this);J=_.Z(Object.keys(y));for(E=J.next();!E.done;E=J.next())E=E.value,this[E]=y[E]})};
E_n=function(q,N){if(qqA){q=new q;for(var b=_.Z(Object.getOwnPropertyNames(q)),y=b.next();!y.done;y=b.next())y=y.value,N[y]=q[y];for(b=N;b&&b!==Object.prototype;b=Object.getPrototypeOf(b)){y=_.Z(Object.getOwnPropertyNames(b));for(var J=y.next();!J.done;J=y.next())J=J.value,q.hasOwnProperty(J)||Object.defineProperty(q,J,ZGA(N,J))}}else q.apply(N)};
ZGA=function(q,N){return{get:function(){var b=q[N];return b instanceof Function?b.bind(q):b},
set:function(b){q[N]=b}}};
g_d=function(q,N){if(!N)return{};for(var b={},y=_.Z(Object.keys(N)),J=y.next();!J.done;J=y.next())if(J=J.value,!N[J].readOnly){var E=q[J];E!==void 0&&(b[J]=E)}return b};
Jxz=function(q){var N=new q;q=q.prototype.properties||{};for(var b=_.Z(Object.keys(q)),y=b.next();!y.done;y=b.next())if(y=y.value,N.hasOwnProperty(y)){var J=q[y];typeof J==="function"&&(q[y]=J={type:J});N[y]!=null&&J.type===Object&&(J.type=Fwn(N[y].constructor))}};
Fwn=function(q){for(var N=_.Z(RLC),b=N.next();!b.done;b=N.next())if(b=b.value,q===b)return b;return Object};
dQA=function(q){return function(N,b){N.behaviors=N.behaviors||[];N.behaviors.push(q||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",N,b).prototype:void 0));Object.defineProperty(N,b,{get:function(){return this},
enumerable:!0,configurable:!0})}};
cxu=function(q){q=q===void 0?{}:q;return function(N,b){N.properties=N.properties||{};q.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?q.type=Fwn(Reflect.getMetadata("design:type",N,b)):q.type=String);var y=q,J=N.properties[b];N.properties[b]=J?Object.assign({},J,y):y}};
ucJ=function(q){return function(N,b){N.listeners=N.listeners||{};N.listeners[q]=b}};
zLA=function(){var q=_.MB.apply(0,arguments);if(q.length===0)throw Error("Vd");return function(N,b){N.observers=N.observers||[];N.observers.push(b+"("+q.join(",")+")")}};
$Qn=function(){var q=_.MB.apply(0,arguments);return function(N,b,y){var J=Object.getOwnPropertyDescriptor(N,b).get,E="__compute__"+b;Object.defineProperty(N,E,{value:J,enumerable:!0});N.properties=N.properties||{};J=N.properties[b];J||(J={},N.properties[b]=J);J.computed=E+"("+q.join(",")+")";y.get=void 0}};
_.rd=function(q,N,b){_.UN.call(this);this.JSC$11391_id_=null;this.usingListeners_=!1;this.JSC$11391_listener_=q;this.handler_=b;this.JSC$11391_win_=N||window;this.callback_=(0,_.fF)(this.JSC$11393_doAction_,this)};
X4=function(q){this.range_=q};
Vi=function(q){this.range_=q};
vB=function(q,N,b){_.UN.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=q;this.scrollTimer_=new _.jL(50);this.JSC$11470_eventHandler_=new _.xH(this);this.scrollDelta_=new _.Sc;this.containerIsActuallyContent_=q.tagName==="BODY"||q.tagName==="HTML";this.containerBounds_=tEn(q);this.containerIsActuallyContent_&&(q=_.KM(),this.containerBounds_.height=q.height,this.containerBounds_.width=q.width);this.margin_=N||0;if(N){if(N=this.containerBounds_.clone(),q=this.margin_){var y=
Math.min(q,N.height*.25);N.top+=y;N.height-=2*y;q=Math.min(q,N.width*.25);N.left+=q;N.width-=2*q}}else N=this.containerBounds_;this.scrollBounds_=N;b||this.JSC$11470_eventHandler_.listen(_.LM(this.containerNode_),"mousemove",this.JSC$11472_onMouseMove);this.JSC$11470_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11472_onTick_)};
_.Gj=function(q){this.mechanism=q};
YH=function(q,N){this.JSC$11568_key_=q;this.JSC$11568_value_=N};
rxD=function(q){if(q>=55296&&q<=57343||q>1114111)return"\ufffd";q in mQd&&(q=mQd[q]);var N="";q>65535&&(q-=65536,N+=String.fromCharCode(q>>>10&1023|55296),q=56320|q&1023);return N+=String.fromCharCode(q)};
XEz=function(q,N){return q<N?1:-1};
jYR=function(){return function(q){return q.charAt(1)==="#"?q.charAt(2)==="X"||q.charAt(2)==="x"?rxD(parseInt(q.substr(3),16)):rxD(parseInt(q.substr(2),10)):VED[q.slice(1,-1)]}};
Gmh=function(q){return q.slice(1,q.length-1).trim().replace(xQJ,function(N){return v_R[N]||" "})};
O7=function(q){return q===32||q===9};
wd=function(q,N){return N<q.length?q.charCodeAt(N):-1};
Yqh=function(q){for(;q;){if(q._lastLineBlank)return!0;var N=q.type;if(N==="list"||N==="item")q=q._lastChild;else break}return!1};
lt=function(q){if(QYu.test(q)){var N=1,b=0,y=0;for(q[b]=="|"&&b++;b<q.length;){switch(q[b]){case "|":y=1;break;case " ":break;case "\t":break;default:y&&(y=0,N++)}b++}return OGn.test(q)?-N:N}return 0};
wEu=function(q){return q=="table"||q=="row"||q=="cell"};
iGh=function(){return new KA("document",[[1,1],[0,0]])};
loh=function(){};
Dp=function(){var q={safe:!1};q=q||{};q.softbreak=q.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=q};
UQe=function(q,N){var b="";if(q)if(q=q.toLowerCase(),q===" "||KwJ.test(q))b="space";else if(DQu.test(q))b="esc";else if(q.length==1){if(!N||hLA.test(q))b=q}else b=kmh.test(q)?q.replace("arrow",""):q=="multiply"?"*":q;return b};
T1A=function(q,N){var b=q.hasModifiers;if(N.key)b=UQe(N.key,b);else if(N.detail&&N.detail.key)b=UQe(N.detail.key,b);else{b=N.keyIdentifier;var y="";b&&(b in foZ?y=foZ[b]:CuJ.test(b)?(b=parseInt(b.replace("U+","0x"),16),y=String.fromCharCode(b).toLowerCase()):y=b.toLowerCase());(b=y)||(b=N.keyCode,y="",Number(b)&&(b>=65&&b<=90?y=String.fromCharCode(32+b):b>=112&&b<=123?y="f"+(b-112+1):b>=48&&b<=57?y=String(b-48):b>=96&&b<=105?y=String(b-96):y=Ioz[b]),b=y);b=b||""}return b===q.key&&(!q.hasModifiers||
!!N.shiftKey===!!q.shiftKey&&!!N.ctrlKey===!!q.ctrlKey&&!!N.altKey===!!q.altKey&&!!N.metaKey===!!q.metaKey)};
n_h=function(q){return q.length===1?{combo:q,key:q,event:"keydown"}:q.split("+").reduce(function(N,b){var y=b.split(":");b=y[0];y=y[1];b in sYn?(N[sYn[b]]=!0,N.hasModifiers=!0):(N.key=b,N.event=y||"keydown");return N},{combo:q.split(":").shift()})};
aon=function(q){return q.trim().split(" ").map(function(N){return n_h(N)})};
Squ=function(q,N){if(q&&q.fn){var b=q.fn;q.fn=function(){try{b.apply(this,arguments)}catch(y){if(y instanceof h9)console.warn("Argument '"+y.arg+"'"+(N?" for method '"+N+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw y;}}}return q};
LwA=function(){var q=[],N;var b=b||_.WwR.length;for(N=0;N<8;N++)q[N]=_.WwR[0|Math.random()*b];return q.join("")};
pEJ=function(){var q=_.MB.apply(0,arguments);return q.length===0?function(N){return N}:q.length===1?q[0]:q.reduce(function(N,b){return function(){return N(b.apply(null,_.a9(_.MB.apply(0,arguments))))}})};
PuJ=function(){var q=_.MB.apply(0,arguments);return function(N){return function(b,y){b=N(b,y);var J=function(){throw Error("Fe");},E={getState:b.getState,
dispatch:function(F){return J.apply(null,[F].concat(_.a9(_.MB.apply(1,arguments))))}};
y=q.map(function(F){return F(E)});
J=pEJ.apply(null,_.a9(y))(b.dispatch);return Object.assign({},b,{dispatch:J})}}};
Axn=function(q){Object.keys(q).forEach(function(N){var b=q[N];if(typeof b(void 0,{type:MEJ})==="undefined")throw Error("Ge`"+N);if(typeof b(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+o_d()})==="undefined")throw Error("He`"+N+"`"+MEJ);})};
kH=function(q){for(var N=Object.keys(q),b={},y=0;y<N.length;y++){var J=N[y];typeof q[J]==="function"&&(b[J]=q[J])}var E=Object.keys(b);try{Axn(b)}catch(R){var F=R}return function(R,c){R=R===void 0?{}:R;if(F)throw F;for(var z=!1,m={},r=0;r<E.length;r++){var X=E[r],V=R[X],G=(0,b[X])(V,c);if(typeof G==="undefined")throw R=c&&c.type,Error("Ie`"+(R?'"'+String(R)+'"':"(unknown type)")+"`"+X);m[X]=G;z=z||G!==V}return(z=z||E.length!==Object.keys(R).length)?m:R}};
eLd=function(q,N,b){function y(){if(m)throw Error("Je");return R}
function J(V){if(typeof V!=="function")throw Error("Ke`"+typeof V);if(m)throw Error("Le");var G=!0;z===c&&(z=c.slice());z.push(V);return function(){if(G){if(m)throw Error("Me");G=!1;z===c&&(z=c.slice());var w=z.indexOf(V);z.splice(w,1);c=null}}}
function E(V){if(typeof V!=="object"||V===null)var G=!1;else{for(G=V;Object.getPrototypeOf(G)!==null;)G=Object.getPrototypeOf(G);G=Object.getPrototypeOf(V)===G}if(!G)throw Error("Ne`"+typeof V);if(typeof V.type==="undefined")throw Error("Oe");if(m)throw Error("Pe");try{m=!0,R=F(R,V)}finally{m=!1}G=c=z;for(var w=0;w<G.length;w++)(0,G[w])();return V}
if(typeof N==="function"&&typeof b==="function"||typeof b==="function"&&typeof arguments[3]==="function")throw Error("Qe");typeof N==="function"&&typeof b==="undefined"&&(b=N,N=void 0);if(typeof b!=="undefined"){if(typeof b!=="function")throw Error("Re`"+typeof b);return b(eLd)(q,N)}if(typeof q!=="function")throw Error("Se`"+typeof q);var F=q,R=N,c=[],z=c,m=!1;E({type:MEJ});var r={},X=(r.dispatch=E,r.subscribe=J,r.getState=y,r.replaceReducer=function(V){if(typeof V!=="function")throw Error("Te`"+
typeof V);F=V;E({type:B1D});return X},r[HGC]=function(){var V={};
return V.subscribe=function(G){function w(){G.next&&G.next(y())}
if(typeof G!=="object"||G===null)throw new TypeError("Ue`"+typeof G);w();return{unsubscribe:J(w)}},V[HGC]=function(){return this},V},r);
return X};
q1n=function(q){function N(){J&&(J=!1,q());E&&y()}
function b(){requestAnimationFrame(N)}
function y(){var R=Date.now();if(J){if(R-F<2)return;E=!0}else J=!0,E=!1,setTimeout(b,20);F=R}
var J=!1,E=!1,F=0;return y};
U7=function(q){return typeof q==="number"?q:parseFloat(q)||0};
Nbz=function(q){return _.MB.apply(1,arguments).reduce(function(N,b){return N+U7(q["border-"+b+"-width"])},0)};
ECn=function(q){if(bJh[q])return bJh[q];var N=globalThis[q],b=N.prototype,y=q in ylZ?ylZ[q]:void 0;y=!(!y||!y.every(function(c){var z,m;return!!((z=Object.getOwnPropertyDescriptor(b,c))==null?0:(m=z.get)==null?0:m.toString().includes("[native code]"))}));
var J=q in JlJ?JlJ[q]:void 0;J=!(!J||!J.every(function(c){var z;return typeof b[c]==="function"&&((z=b[c])==null?void 0:z.toString().includes("[native code]"))}));
if(y&&J&&!globalThis.Zone)return bJh[q]=N.prototype;try{var E=document.createElement("iframe");document.body.appendChild(E);var F=E.contentWindow;if(!F)return N.prototype;var R=F[q].prototype;document.body.removeChild(E);return R?bJh[q]=R:b}catch(c){return b}};
fA=function(q,N,b){var y=q+"."+String(b);if(gCZ[y])return gCZ[y].call(N);q=ECn(q);var J;q=(J=Object.getOwnPropertyDescriptor(q,b))==null?void 0:J.get;if(!q)return N[b];gCZ[y]=q;return q.call(N)};
F4z=function(q,N){var b="Node."+String(N);if(ZJe[b])return ZJe[b].bind(q);var y=ECn("Node")[N];if(typeof y!=="function")return q[N];ZJe[b]=y;return y.bind(q)};
CA=function(q,N,b){try{if(!(N in q))return function(){};
var y=q[N],J=b(y);typeof J==="function"&&(J.prototype=J.prototype||{},Object.defineProperties(J,{__rrweb_original__:{enumerable:!1,value:y}}));q[N]=J;return function(){q[N]=y}}catch(E){return function(){}}};
s7=function(q){var N=q&&"host"in q&&"mode"in q&&IP(q)||null;return!!(N&&"shadowRoot"in N&&Tj(N)===q)};
nA=function(q){return Object.prototype.toString.call(q)==="[object ShadowRoot]"};
RFu=function(q){q.includes(" background-clip: text;")&&!q.includes(" -webkit-background-clip: text;")&&(q=q.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return q};
clh=function(q){try{var N=q.rules||q.cssRules;if(!N)return null;var b=q.href;!b&&q.ownerNode&&(b=q.ownerNode.baseURI);var y=Array.from(N,function(J){return dHh(J,b)}).join("");
return RFu(y)}catch(J){return null}};
dHh=function(q,N){if("styleSheet"in q){try{var b;if(!(b=clh(q.styleSheet))){var y=q.cssText;if(y.split('"').length<3)b=y;else{var J=["@import","url("+JSON.stringify(q.href)+")"];q.layerName===""?J.push("layer"):q.layerName&&J.push("layer("+q.layerName+")");q.supportsText&&J.push("supports("+q.supportsText+")");q.media.length&&J.push(q.media.mediaText);b=J.join(" ")+";"}}var E=b}catch(F){E=q.cssText}return q.styleSheet.href?uPA(E,q.styleSheet.href):E}E=q.cssText;"selectorText"in q&&q.selectorText.includes(":")&&
(E=E.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return N?uPA(E,N):E};
zFZ=function(q){var N=q.element;var b=q.maskInputOptions;var y=q.tagName;var J=q.type;var E=q.value;q=q.maskInputFn;E=E||"";J=J&&J.toLowerCase();if(b[y.toLowerCase()]||J&&b[J])E=q?q(E,N):"*".repeat(E.length);return E};
$HC=function(q){var N=q.getContext("2d");if(!N)return!0;for(var b=0;b<q.width;b+=50)for(var y=0;y<q.height;y+=50){var J=N.getImageData;if((new Uint32Array(("__rrweb_original__"in J?J.__rrweb_original__:J).call(N,b,y,Math.min(50,q.width-b),Math.min(50,q.height-y)).data.buffer)).some(function(E){return E!==0}))return!1}return!0};
tkR=function(q){var N=q.type;return q.hasAttribute("data-rr-is-password")?"password":N?N.toLowerCase():null};
mHR=function(q){try{var N=new URL(q,window.location.href)}catch(J){return null}var b,y;return(y=(b=N.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:b[1])!=null?y:null};
uPA=function(q,N){return(q||"").replace(rlD,function(b,y,J,E,F,R){J=J||F||R;y=y||E||"";if(!J)return b;if(X2A.test(J)||VkJ.test(J)||jXJ.test(J))return"url("+y+J+y+")";if(J[0]==="/")return b=N.indexOf("//")>-1?N.split("/").slice(0,3).join("/"):N.split("/")[0],b=b.split("?")[0],"url("+y+(b+J)+y+")";b=N.split("/");E=J.split("/");b.pop();E=_.Z(E);for(J=E.next();!J.done;J=E.next())J=J.value,J!=="."&&(J===".."?b.pop():b.push(J));return"url("+y+b.join("/")+y+")"})};
xHu=function(q,N){return(N=N===void 0?!1:N)?q.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):q.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
vCd=function(q,N){var b=b===void 0?!1:b;N=Array.from(N.childNodes);var y=[],J=0;if(N.length>1&&q&&typeof q==="string")for(var E=xHu(q,b),F=E.length/q.length,R=1;R<N.length;R++)if(N[R].textContent&&typeof N[R].textContent==="string"){for(var c=xHu(N[R].textContent,b),z=3;z<c.length&&(c[z].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,z),1)!==-1);z++);for(;z<c.length;z++){var m=c.substring(0,z),r=E.split(m),X=-1;if(r.length===2)X=r[0].length;else if(r.length>2&&r[0]===""&&N[R-1].textContent!=="")X=
E.indexOf(m,1);else if(r.length===1){m=m.substring(0,m.length-1);r=E.split(m);if(r.length<=1)return y.push(q),y;z=101}else z===c.length-1&&(X=E.indexOf(m));if(r.length>=2&&z>100){var V=N[R-1].textContent;V&&typeof V==="string"&&(X=E.indexOf(m,xHu(V).length));X===-1&&(X=r[0].length)}if(X!==-1){for(c=Math.floor(X/F);c>0&&c<q.length;){J+=1;if(J>50*N.length)return y.push(q),y;z=xHu(q.substring(0,c),b);if(z.length===X){y.push(q.substring(0,c));q=q.substring(c);E=E.substring(X);break}else c=z.length<X?
c+Math.max(1,Math.floor((X-z.length)/F)):c-Math.max(1,Math.floor((z.length-X)*F))}break}}}y.push(q);return y};
Y1n=function(){return G8d++};
OJD=function(q){if(q instanceof HTMLFormElement)return"form";q=q.tagName.toLowerCase();return QXd.test(q)?"div":q};
K4Z=function(q,N){function b(z){return(z=z.exec(N.substring(y)))?(z=z[0],y+=z.length,z):""}
if(N.trim()==="")return N;for(var y=0,J=[];;){b(w2D);if(y>=N.length)break;var E=b(iJJ);if(E.slice(-1)===",")E=l6J(q,E.substring(0,E.length-1)),J.push(E);else{var F="";E=l6J(q,E);for(var R=!1;;){var c=N.charAt(y);if(c===""){J.push((E+F).trim());break}else if(R)c===")"&&(R=!1);else if(c===","){y+=1;J.push((E+F).trim());break}else c==="("&&(R=!0);F+=c;y+=1}}}return J.join(", ")};
l6J=function(q,N){return N&&N.trim()!==""?DHC(q,N):N};
DHC=function(q,N){var b=hFh.get(q);b||(b=q.createElement("a"),hFh.set(q,b));if(!N)N="";else if(N.startsWith("blob:")||N.startsWith("data:"))return N;AB(b,N);return b.href};
k8e=function(q,N,b,y){return y?b==="src"||b==="href"&&(N!=="use"||y[0]!=="#")||b==="xlink:href"&&y[0]!=="#"||b==="background"&&(N==="table"||N==="td"||N==="th")?l6J(q,y):b==="srcset"?K4Z(q,y):b==="style"?uPA(y,DHC(q)):N==="object"&&b==="data"?l6J(q,y):y:y};
UHu=function(q,N){return(q==="video"||q==="audio")&&N==="autoplay"};
f6d=function(q,N,b){try{if(typeof N==="string"){if(q.classList.contains(N))return!0}else for(var y=q.classList.length;y--;)if(N.test(q.classList[y]))return!0;if(b)return q.matches(b)}catch(J){}return!1};
CUD=function(q,N,b){if(!q)return!1;if(q.nodeType!==q.ELEMENT_NODE)return b?CUD(aP(q),N,b):!1;for(var y=q.classList.length;y--;)if(N.test(q.classList[y]))return!0;return b?CUD(aP(q),N,b):!1};
I6A=function(q,N,b,y){if(q.nodeType===q.ELEMENT_NODE){if(!SL(q).length)return!1}else{if(WB(q)===null)return!1;q=WB(q)}try{if(typeof N==="string")if(y){if(q.closest("."+N))return!0}else{if(q.classList.contains(N))return!0}else if(CUD(q,N,y))return!0;if(b)if(y){if(q.closest(b))return!0}else if(q.matches(b))return!0}catch(J){}return!1};
Tbe=function(q,N,b){var y=q.contentWindow;if(y){var J=!1;try{var E=y.document.readyState}catch(R){return}if(E!=="complete"){var F=setTimeout(function(){J||(N(),J=!0)},b);
q.addEventListener("load",function(){clearTimeout(F);J=!0;N()})}else y.location.href==="about:blank"&&q.src!=="about:blank"&&q.src!==""||setTimeout(N,0),q.addEventListener("load",N)}};
sXJ=function(q,N,b){var y=!1;try{var J=q.sheet}catch(F){return}if(!J){var E=setTimeout(function(){y||(N(),y=!0)},b);
q.addEventListener("load",function(){clearTimeout(E);y=!0;N()})}};
S1u=function(q,N){var b=N.doc,y=N.blockClass,J=N.blockSelector,E=N.needsMask,F=N.inlineStylesheet,R=N.maskInputOptions===void 0?{}:N.maskInputOptions,c=N.maskTextFn,z=N.maskInputFn,m=N.dataURLOptions===void 0?{}:N.dataURLOptions,r=N.inlineImages,X=N.recordCanvas,V=N.keepIframeSrcFn,G=N.newlyAddedElement===void 0?!1:N.newlyAddedElement,w=N.cssCaptured===void 0?!1:N.cssCaptured;N=N.mirror;N.nodeMetaMap.has(b)?(N=N.getId(b),N=N===1?void 0:N):N=void 0;switch(q.nodeType){case q.DOCUMENT_NODE:return q.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:q.compatMode}:{type:0,childNodes:[]};case q.DOCUMENT_TYPE_NODE:return{type:1,name:q.name,publicId:q.publicId,systemId:q.systemId,rootId:N};case q.ELEMENT_NODE:return nCJ(q,{doc:b,blockClass:y,blockSelector:J,inlineStylesheet:F,maskInputOptions:R,maskInputFn:z,dataURLOptions:m,inlineImages:r,recordCanvas:X,keepIframeSrcFn:V,newlyAddedElement:G,rootId:N});case q.TEXT_NODE:return F=(y=aP(q))&&y.tagName,y="",J=F==="STYLE"?!0:void 0,(F=F==="SCRIPT"?!0:void 0)?
y="SCRIPT_PLACEHOLDER":w||(y=a6J(q),J&&y&&(y=uPA(y,DHC(b)))),!J&&!F&&y&&E&&(y=c?c(y,WB(q)):y.replace(/[\S]/g,"*")),{type:3,textContent:y||"",rootId:N};case q.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:N};case q.COMMENT_NODE:return{type:5,textContent:a6J(q)||"",rootId:N};default:return!1}};
nCJ=function(q,N){var b=N.doc,y=N.inlineStylesheet,J=N.maskInputOptions===void 0?{}:N.maskInputOptions,E=N.maskInputFn,F=N.dataURLOptions===void 0?{}:N.dataURLOptions,R=N.inlineImages,c=N.recordCanvas,z=N.keepIframeSrcFn,m=N.newlyAddedElement===void 0?!1:N.newlyAddedElement,r=N.rootId;N=f6d(q,N.blockClass,N.blockSelector);for(var X=OJD(q),V={},G=q.attributes.length,w=0;w<G;w++){var D=q.attributes[w];UHu(X,D.name)||(V[D.name]=k8e(b,X,D.name.toLowerCase(),D.value))}X==="link"&&y&&(y=Array.from(b.styleSheets).find(function(W){return W.href===
q.href}),G=null,y&&(G=clh(y)),G&&(delete V.rel,delete V.href,V._cssText=G));
X==="style"&&q.sheet&&(y=clh(q.sheet))&&(q.childNodes.length>1&&(y=vCd(y,q).join("/* rr_split */")),V._cssText=y);if(X==="input"||X==="textarea"||X==="select")y=q.value,G=q.checked,V.type!=="radio"&&V.type!=="checkbox"&&V.type!=="submit"&&V.type!=="button"&&y?V.value=zFZ({element:q,type:tkR(q),tagName:X,value:y,maskInputOptions:J,maskInputFn:E}):G&&(V.checked=G);X==="option"&&(q.selected&&!J.select?V.selected=!0:delete V.selected);X==="dialog"&&q.open&&(V.rr_open_mode=q.matches("dialog:modal")?"modal":
"non-modal");X==="canvas"&&c&&(q.__context==="2d"?$HC(q)||(V.rr_dataURL=q.toDataURL(F.type,F.quality)):"__context"in q||(J=q.toDataURL(F.type,F.quality),E=b.createElement("canvas"),E.width=q.width,E.height=q.height,E=E.toDataURL(F.type,F.quality),J!==E&&(V.rr_dataURL=J)));if(X==="img"&&R){LA||(LA=b.createElement("canvas"),W4n=LA.getContext("2d"));var k=q.currentSrc||q.getAttribute("src")||"<unknown-src>",f=q.crossOrigin,L=function(){q.removeEventListener("load",L);try{LA.width=q.naturalWidth,LA.height=
q.naturalHeight,W4n.drawImage(q,0,0),V.rr_dataURL=LA.toDataURL(F.type,F.quality)}catch(W){if(q.crossOrigin!=="anonymous"){q.crossOrigin="anonymous";q.complete&&q.naturalWidth!==0?L():q.addEventListener("load",L);return}console.warn("Cannot inline img src="+k+"! Error: "+W)}q.crossOrigin==="anonymous"&&(f?V.crossOrigin=f:q.removeAttribute("crossorigin"))};
q.complete&&q.naturalWidth!==0?L():q.addEventListener("load",L)}if(X==="audio"||X==="video")b=V,b.rr_mediaState=q.paused?"paused":"played",b.rr_mediaCurrentTime=q.currentTime,b.rr_mediaPlaybackRate=q.playbackRate,b.rr_mediaMuted=q.muted,b.rr_mediaLoop=q.loop,b.rr_mediaVolume=q.volume;m||(q.scrollLeft&&(V.rr_scrollLeft=q.scrollLeft),q.scrollTop&&(V.rr_scrollTop=q.scrollTop));N&&(m=q.getBoundingClientRect(),V={class:V.class,rr_width:m.width+"px",rr_height:m.height+"px"});X!=="iframe"||z(V.src)||(q.contentDocument||
(V.rr_src=V.src),delete V.src);var S;try{customElements.get(X)&&(S=!0)}catch(W){}return{type:2,tagName:X,attributes:V,childNodes:[],isSVG:!(q.tagName!=="svg"&&!q.ownerSVGElement)||void 0,needBlock:N,rootId:r,isCustom:S}};
pA=function(q){return q===void 0||q===null?"":q.toLowerCase()};
L4A=function(q,N){return N.comment&&q.type===5||q.type===2&&(N.script&&(q.tagName==="script"||q.tagName==="link"&&(q.attributes.rel==="preload"&&q.attributes.as==="script"||q.attributes.rel==="modulepreload")||q.tagName==="link"&&q.attributes.rel==="prefetch"&&typeof q.attributes.href==="string"&&mHR(q.attributes.href)==="js")||N.headFavicon&&(q.tagName==="link"&&q.attributes.rel==="shortcut icon"||q.tagName==="meta"&&(pA(q.attributes.name).match(/^msapplication-tile(image|color)$/)||pA(q.attributes.name)===
"application-name"||pA(q.attributes.rel)==="icon"||pA(q.attributes.rel)==="apple-touch-icon"||pA(q.attributes.rel)==="shortcut icon"))||q.tagName==="meta"&&(N.headMetaDescKeywords&&pA(q.attributes.name).match(/^description|keywords$/)||N.headMetaSocial&&(pA(q.attributes.property).match(/^(og|twitter|fb):/)||pA(q.attributes.name).match(/^(og|twitter):/)||pA(q.attributes.name)==="pinterest")||N.headMetaRobots&&(pA(q.attributes.name)==="robots"||pA(q.attributes.name)==="googlebot"||pA(q.attributes.name)===
"bingbot")||N.headMetaHttpEquiv&&q.attributes["http-equiv"]!==void 0||N.headMetaAuthorship&&(pA(q.attributes.name)==="author"||pA(q.attributes.name)==="generator"||pA(q.attributes.name)==="framework"||pA(q.attributes.name)==="publisher"||pA(q.attributes.name)==="progid"||pA(q.attributes.property).match(/^article:/)||pA(q.attributes.property).match(/^product:/))||N.headMetaVerification&&(pA(q.attributes.name)==="google-site-verification"||pA(q.attributes.name)==="yandex-verification"||pA(q.attributes.name)===
"csrf-token"||pA(q.attributes.name)==="p:domain_verify"||pA(q.attributes.name)==="verify-v1"||pA(q.attributes.name)==="verification"||pA(q.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
PB=function(q,N){var b=N.doc,y=N.mirror,J=N.blockClass,E=N.blockSelector,F=N.maskTextClass,R=N.maskTextSelector,c=N.skipChild===void 0?!1:N.skipChild,z=N.inlineStylesheet===void 0?!0:N.inlineStylesheet,m=N.maskInputOptions===void 0?{}:N.maskInputOptions,r=N.maskTextFn,X=N.maskInputFn,V=N.slimDOMOptions,G=N.dataURLOptions===void 0?{}:N.dataURLOptions,w=N.inlineImages===void 0?!1:N.inlineImages,D=N.recordCanvas===void 0?!1:N.recordCanvas,k=N.onSerialize,f=N.onIframeLoad,L=N.iframeLoadTimeout===void 0?
5E3:N.iframeLoadTimeout,S=N.onStylesheetLoad,W=N.stylesheetLoadTimeout===void 0?5E3:N.stylesheetLoadTimeout,M=N.keepIframeSrcFn===void 0?function(){return!1}:N.keepIframeSrcFn,qe=N.newlyAddedElement===void 0?!1:N.newlyAddedElement,RJ=N.cssCaptured===void 0?!1:N.cssCaptured,tZ=N.needsMask,wA=N.preserveWhiteSpace===void 0?!0:N.preserveWhiteSpace;
tZ||(tZ=I6A(q,F,R,tZ===void 0));var rA=S1u(q,{doc:b,mirror:y,blockClass:J,blockSelector:E,needsMask:tZ,inlineStylesheet:z,maskInputOptions:m,maskTextFn:r,maskInputFn:X,dataURLOptions:G,inlineImages:w,recordCanvas:D,keepIframeSrcFn:M,newlyAddedElement:qe,cssCaptured:RJ});if(!rA)return console.warn(q,"not serialized"),null;qe=y.nodeMetaMap.has(q)?y.getId(q):L4A(rA,V)||!wA&&rA.type===3&&!rA.textContent.replace(/^\s+|\s+$/gm,"").length?-2:G8d++;N=Object.assign(rA,{id:qe});y.add(q,N);if(qe===-2)return null;
k&&k(q);qe=!c;N.type===2&&(qe=qe&&!N.needBlock,delete N.needBlock,(RJ=Tj(q))&&nA(RJ)&&(N.isShadowHost=!0));if((N.type===0||N.type===2)&&qe){V.headWhitespace&&N.type===2&&N.tagName==="head"&&(wA=!1);c={doc:b,mirror:y,blockClass:J,blockSelector:E,needsMask:tZ,maskTextClass:F,maskTextSelector:R,skipChild:c,inlineStylesheet:z,maskInputOptions:m,maskTextFn:r,maskInputFn:X,slimDOMOptions:V,dataURLOptions:G,inlineImages:w,recordCanvas:D,preserveWhiteSpace:wA,onSerialize:k,onIframeLoad:f,iframeLoadTimeout:L,
onStylesheetLoad:S,stylesheetLoadTimeout:W,keepIframeSrcFn:M,cssCaptured:!1};if(N.type!==2||N.tagName!=="textarea"||N.attributes.value===void 0)for(N.type===2&&N.attributes._cssText!==void 0&&typeof N.attributes._cssText==="string"&&(c.cssCaptured=!0),qe=_.Z(Array.from(SL(q))),RJ=qe.next();!RJ.done;RJ=qe.next())(RJ=PB(RJ.value,c))&&N.childNodes.push(RJ);qe=null;if(q.nodeType===q.ELEMENT_NODE&&(qe=Tj(q))){RJ=_.Z(Array.from(SL(qe)));for(var xD=RJ.next();!xD.done;xD=RJ.next())if(xD=PB(xD.value,c))nA(qe)&&
(xD.isShadow=!0),N.childNodes.push(xD)}}(c=aP(q))&&s7(c)&&nA(c)&&(N.isShadow=!0);N.type===2&&N.tagName==="iframe"&&Tbe(q,function(){var IJ=q.contentDocument;IJ&&f&&(IJ=PB(IJ,{doc:IJ,mirror:y,blockClass:J,blockSelector:E,needsMask:tZ,maskTextClass:F,maskTextSelector:R,skipChild:!1,inlineStylesheet:z,maskInputOptions:m,maskTextFn:r,maskInputFn:X,slimDOMOptions:V,dataURLOptions:G,inlineImages:w,recordCanvas:D,preserveWhiteSpace:wA,onSerialize:k,onIframeLoad:f,iframeLoadTimeout:L,onStylesheetLoad:S,stylesheetLoadTimeout:W,
keepIframeSrcFn:M}))&&f(q,IJ)},L);
N.type===2&&N.tagName==="link"&&typeof N.attributes.rel==="string"&&(N.attributes.rel==="stylesheet"||N.attributes.rel==="preload"&&typeof N.attributes.href==="string"&&mHR(N.attributes.href)==="css")&&sXJ(q,function(){if(S){var IJ=PB(q,{doc:b,mirror:y,blockClass:J,blockSelector:E,needsMask:tZ,maskTextClass:F,maskTextSelector:R,skipChild:!1,inlineStylesheet:z,maskInputOptions:m,maskTextFn:r,maskInputFn:X,slimDOMOptions:V,dataURLOptions:G,inlineImages:w,recordCanvas:D,preserveWhiteSpace:wA,onSerialize:k,
onIframeLoad:f,iframeLoadTimeout:L,onStylesheetLoad:S,stylesheetLoadTimeout:W,keepIframeSrcFn:M});IJ&&S(q,IJ)}},W);
return N};
p2h=function(q){var N=document;q=q||{};var b=q.maskAllInputs===void 0?!1:q.maskAllInputs,y=q.slimDOM===void 0?!1:q.slimDOM;return PB(N,{doc:N,mirror:q.mirror===void 0?new ML:q.mirror,blockClass:q.blockClass===void 0?"rr-block":q.blockClass,blockSelector:q.blockSelector===void 0?null:q.blockSelector,maskTextClass:q.maskTextClass===void 0?"rr-mask":q.maskTextClass,maskTextSelector:q.maskTextSelector===void 0?null:q.maskTextSelector,skipChild:!1,inlineStylesheet:q.inlineStylesheet===void 0?!0:q.inlineStylesheet,
maskInputOptions:b===!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===!1?{password:!0}:b,maskTextFn:q.maskTextFn,maskInputFn:q.maskInputFn,slimDOMOptions:y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:y==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:y===!1?{}:y,dataURLOptions:q.dataURLOptions,
inlineImages:q.inlineImages===void 0?!1:q.inlineImages,recordCanvas:q.recordCanvas===void 0?!1:q.recordCanvas,preserveWhiteSpace:q.preserveWhiteSpace,onSerialize:q.onSerialize,onIframeLoad:q.onIframeLoad,iframeLoadTimeout:q.iframeLoadTimeout,onStylesheetLoad:q.onStylesheetLoad,stylesheetLoadTimeout:q.stylesheetLoadTimeout,keepIframeSrcFn:q.keepIframeSrcFn===void 0?function(){return!1}:q.keepIframeSrcFn,
newlyAddedElement:!1})};
oP=function(q,N,b){b=b===void 0?document:b;var y={capture:!0,passive:!0};b.addEventListener(q,N,y);return function(){return b.removeEventListener(q,N,y)}};
A9=function(q,N,b){b=b===void 0?{}:b;var y=null,J=0;return function(){var E=_.MB.apply(0,arguments),F=Date.now();J||b.leading!==!1||(J=F);var R=N-(F-J),c=this;R<=0||R>N?(y&&(clearTimeout(y),y=null),J=F,q.apply(c,E)):y||b.trailing===!1||(y=setTimeout(function(){J=b.leading===!1?0:Date.now();y=null;q.apply(c,E)},R))}};
PUZ=function(q,N,b,y,J){J=J===void 0?window:J;var E=J.Object.getOwnPropertyDescriptor(q,N);J.Object.defineProperty(q,N,y?b:{set:function(F){var R=this;setTimeout(function(){b.set.call(R,F)},0);
E&&E.set&&E.set.call(this,F)}});
return function(){return PUZ(q,N,E||{},!0)}};
Mku=function(q){var N=q.document,b,y,J,E;return{left:N.scrollingElement?N.scrollingElement.scrollLeft:q.pageXOffset!==void 0?q.pageXOffset:N.documentElement.scrollLeft||(N==null?void 0:N.body)&&((b=WB(N.body))==null?void 0:b.scrollLeft)||(N==null?void 0:(y=N.body)==null?void 0:y.scrollLeft)||0,top:N.scrollingElement?N.scrollingElement.scrollTop:q.pageYOffset!==void 0?q.pageYOffset:(N==null?void 0:N.documentElement.scrollTop)||(N==null?void 0:N.body)&&((J=WB(N.body))==null?void 0:J.scrollTop)||(N==
null?void 0:(E=N.body)==null?void 0:E.scrollTop)||0}};
oCD=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
AlA=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
eFn=function(q){return q?q.nodeType===q.ELEMENT_NODE?q:WB(q):null};
eL=function(q,N,b,y){if(!q)return!1;q=eFn(q);if(!q)return!1;try{if(typeof N==="string"){if(q.classList.contains(N)||y&&q.closest("."+N)!==null)return!0}else if(CUD(q,N,y))return!0}catch(J){}return b&&(q.matches(b)||y&&q.closest(b)!==null)?!0:!1};
Bbd=function(q,N,b){return q.tagName==="TITLE"&&b.headTitleMutations?!0:N.getId(q)===-2};
HJA=function(q,N){if(s7(q))return!1;var b=N.getId(q);return N.has(b)?(b=aP(q))&&b.nodeType===q.DOCUMENT_NODE?!1:b?HJA(b,N):!0:!0};
qIJ=function(){var q=q===void 0?window:q;"NodeList"in q&&!q.NodeList.prototype.forEach&&(q.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in q&&!q.DOMTokenList.prototype.forEach&&(q.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
NHJ=function(q,N){return!(q.nodeName!=="LINK"||q.nodeType!==q.ELEMENT_NODE||!q.getAttribute||q.getAttribute("rel")!=="stylesheet"||!N.nodeMetaMap.get(q))};
y5C=function(q){var N=null,b;"getRootNode"in q&&((b=bpu(q))==null?void 0:b.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&IP(bpu(q))&&(N=IP(bpu(q)));return N};
J5z=function(q){var N=q.ownerDocument;if(N){if(!(N=F4z(N,"contains")(q)))if(N=q.ownerDocument){for(var b;b=y5C(q);)q=b;N=F4z(N,"contains")(q)}else N=!1}else N=!1;return N};
EQu=function(q,N){q.delete(N);SL(N).forEach(function(b){return EQu(q,b)})};
gQJ=function(q,N){for(var b=[q];b.length;)q=b.pop(),N.has(q)||(N.add(q),SL(q).forEach(function(y){return b.push(y)}))};
ZpC=function(q,N){q.size===0?q=!1:q=(N=aP(N))?q.has(N):!1;return q};
REZ=function(q,N){return q.size===0?!1:FXD(q,N)};
FXD=function(q,N){return(N=aP(N))?q.has(N)?!0:FXD(q,N):!1};
BB=function(q){try{if("composedPath"in q){var N=q.composedPath();if(N.length)return N[0]}else if("path"in q&&q.path.length)return q.path[0]}catch(b){}return q&&q.target};
c5A=function(q,N){var b=new djA;HB.push(b);b.init(q);q=new (ECn("MutationObserver").constructor)(qP(b.processMutations.bind(b)));q.observe(N,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return q};
zEz=function(q){var N=q.mousemoveCb;var b=q.sampling;var y=q.doc;var J=q.mirror;if(b.mousemove===!1)return function(){};
var E=[],F,R=A9(qP(function(z){var m=Date.now()-F;N(E.map(function(r){r.timeOffset-=m;return r}),z);
E=[];F=null}),typeof b.mousemoveCallback==="number"?b.mousemoveCallback:500);
q=qP(A9(qP(function(z){var m=BB(z),r=z.changedTouches?z.changedTouches[0]:z,X=r.clientX;r=r.clientY;F||(F=ugu());E.push({x:X,y:r,id:J.getId(m),timeOffset:ugu()-F});R(typeof DragEvent!=="undefined"&&z instanceof DragEvent?12:z instanceof MouseEvent?1:6)}),typeof b.mousemove==="number"?b.mousemove:50,{trailing:!1}));
var c=[oP("mousemove",q,y),oP("touchmove",q,y),oP("drag",q,y)];return qP(function(){c.forEach(function(z){return z()})})};
$jA=function(q){var N=q.mouseInteractionCb;var b=q.doc;var y=q.mirror;var J=q.blockClass;var E=q.blockSelector;q=q.sampling;if(q.mouseInteraction===!1)return function(){};
var F=q.mouseInteraction===!0||q.mouseInteraction===void 0?{}:q.mouseInteraction,R=[],c=null,z=function(m){return function(r){var X=BB(r);if(!eL(X,J,E,!0)){var V=null,G=m;if("pointerType"in r){switch(r.pointerType){case "mouse":V=0;break;case "touch":V=2;break;case "pen":V=1}V===2&&(NP[m]===1?G="TouchStart":NP[m]===0&&(G="TouchEnd"))}else r.changedTouches&&(V=2);if(V!==null){if(c=V,G.startsWith("Touch")&&V===2||G.startsWith("Mouse")&&V===0)V=null}else NP[m]===2&&(V=c,c=null);if(r=r.changedTouches?
r.changedTouches[0]:r)X=y.getId(X),qP(N)(Object.assign({},{type:NP[G],id:X,x:r.clientX,y:r.clientY},V!==null&&{pointerType:V}))}}};
Object.keys(NP).filter(function(m){return Number.isNaN(Number(m))&&!m.endsWith("_Departed")&&F[m]!==!1}).forEach(function(m){var r=m.toLowerCase(),X=z(m);
if(window.PointerEvent)switch(NP[m]){case 1:case 0:r=r.replace("mouse","pointer");break;case 7:case 9:return}R.push(oP(r,X,b))});
return qP(function(){R.forEach(function(m){return m()})})};
tTJ=function(q){var N=q.scrollCb;var b=q.doc;var y=q.mirror;var J=q.blockClass;var E=q.blockSelector;return oP("scroll",qP(A9(qP(function(F){var R=BB(F);R&&!eL(R,J,E,!0)&&(F=y.getId(R),R===b&&b.defaultView?(R=Mku(b.defaultView),N({id:F,x:R.left,y:R.top})):N({id:F,x:R.scrollLeft,y:R.scrollTop}))}),q.sampling.scroll||100)),b)};
mjC=function(q,N){var b=q.viewportResizeCb;var y=-1,J=-1;return oP("resize",qP(A9(qP(function(){var E=oCD(),F=AlA();if(y!==E||J!==F)b({width:Number(F),height:Number(E)}),y=E,J=F}),200)),N.win)};
VTJ=function(q){function N(D){var k=BB(D),f=D.isTrusted,L=k&&k.tagName;k&&L==="OPTION"&&(k=WB(k));if(!(!k||!L||r5n.indexOf(L)<0||eL(k,F,R,!0)||k.classList.contains(c)||z&&k.matches(z))){var S=k.value,W=!1;D=tkR(k)||"";if(D==="radio"||D==="checkbox")W=k.checked;else if(m[L.toLowerCase()]||m[D])S=zFZ({element:k,maskInputOptions:m,tagName:L,type:D,value:S,maskInputFn:r});b(k,V?{text:S,isChecked:W,userTriggered:f}:{text:S,isChecked:W});f=k.name;D==="radio"&&f&&W&&J.querySelectorAll('input[type="radio"][name="'+
f+'"]').forEach(function(M){if(M!==k){var qe=M.value;b(M,V?{text:qe,isChecked:!W,userTriggered:!1}:{text:qe,isChecked:!W})}})}}
function b(D,k){var f=Xwn.get(D);f&&f.text===k.text&&f.isChecked===k.isChecked||(Xwn.set(D,k),D=E.getId(D),qP(y)(Object.assign({},k,{id:D})))}
var y=q.inputCb;var J=q.doc;var E=q.mirror;var F=q.blockClass;var R=q.blockSelector;var c=q.ignoreClass;var z=q.ignoreSelector;var m=q.maskInputOptions;var r=q.maskInputFn;var X=q.sampling;var V=q.userTriggeredOnInput;var G=(X.input==="last"?["change"]:["input","change"]).map(function(D){return oP(D,qP(N),J)}),w=J.defaultView;
if(!w)return function(){G.forEach(function(D){return D()})};
q=w.Object.getOwnPropertyDescriptor(w.HTMLInputElement.prototype,"value");X=[[w.HTMLInputElement.prototype,"value"],[w.HTMLInputElement.prototype,"checked"],[w.HTMLSelectElement.prototype,"value"],[w.HTMLTextAreaElement.prototype,"value"],[w.HTMLSelectElement.prototype,"selectedIndex"],[w.HTMLOptionElement.prototype,"selected"]];q&&q.set&&G.push.apply(G,_.a9(X.map(function(D){return PUZ(D[0],D[1],{set:function(){qP(N)({target:this,isTrusted:!1})}},!1,w)})));
return qP(function(){G.forEach(function(D){return D()})})};
xjh=function(q){var N=[],b,y,J,E;jSA("CSSGroupingRule")&&((b=q.parentRule)==null?void 0:(y=b.constructor)==null?void 0:y.name)==="CSSGroupingRule"||jSA("CSSMediaRule")&&q.parentRule instanceof CSSMediaRule||jSA("CSSSupportsRule")&&q.parentRule instanceof CSSSupportsRule||jSA("CSSConditionRule")&&((J=q.parentRule)==null?void 0:(E=J.constructor)==null?void 0:E.name)==="CSSConditionRule"?(q=Array.from(q.parentRule.cssRules).indexOf(q),N.unshift(q)):q.parentStyleSheet&&(q=Array.from(q.parentStyleSheet.cssRules).indexOf(q),
N.unshift(q));return N};
bE=function(q,N,b){var y,J;if(!q)return{};q.ownerNode?y=N.getId(q.ownerNode):J=b.getId(q);return{styleId:J,id:y}};
G5d=function(q,N){var b=q.styleSheetRuleCb;var y=q.mirror;var J=q.stylesheetManager;var E=N.win;if(!E.CSSStyleSheet||!E.CSSStyleSheet.prototype)return function(){};
var F=E.CSSStyleSheet.prototype.insertRule;E.CSSStyleSheet.prototype.insertRule=new yY(F,{apply:qP(function(X,V,G){var w=_.Z(G),D=w.next().value;w=w.next().value;var k=bE(V,y,J.styleMirror),f=k.id;k=k.styleId;(f&&f!==-1||k&&k!==-1)&&b({id:f,styleId:k,adds:[{rule:D,index:w}]});return X.apply(V,G)})});
E.CSSStyleSheet.prototype.addRule=function(X,V,G){G=G===void 0?this.cssRules.length:G;return E.CSSStyleSheet.prototype.insertRule.apply(this,[X+" { "+V+" }",G])};
var R=E.CSSStyleSheet.prototype.deleteRule;E.CSSStyleSheet.prototype.deleteRule=new yY(R,{apply:qP(function(X,V,G){var w=_.Z(G).next().value,D=bE(V,y,J.styleMirror),k=D.id;D=D.styleId;(k&&k!==-1||D&&D!==-1)&&b({id:k,styleId:D,removes:[{index:w}]});return X.apply(V,G)})});
E.CSSStyleSheet.prototype.removeRule=function(X){return E.CSSStyleSheet.prototype.deleteRule.apply(this,[X])};
if(E.CSSStyleSheet.prototype.replace){var c=E.CSSStyleSheet.prototype.replace;E.CSSStyleSheet.prototype.replace=new yY(c,{apply:qP(function(X,V,G){var w=_.Z(G).next().value,D=bE(V,y,J.styleMirror),k=D.id;D=D.styleId;(k&&k!==-1||D&&D!==-1)&&b({id:k,styleId:D,replace:w});return X.apply(V,G)})})}if(E.CSSStyleSheet.prototype.replaceSync){var z=E.CSSStyleSheet.prototype.replaceSync;
E.CSSStyleSheet.prototype.replaceSync=new yY(z,{apply:qP(function(X,V,G){var w=_.Z(G).next().value,D=bE(V,y,J.styleMirror),k=D.id;D=D.styleId;(k&&k!==-1||D&&D!==-1)&&b({id:k,styleId:D,replaceSync:w});return X.apply(V,G)})})}var m={};
vQJ("CSSGroupingRule")?m.CSSGroupingRule=E.CSSGroupingRule:(vQJ("CSSMediaRule")&&(m.CSSMediaRule=E.CSSMediaRule),vQJ("CSSConditionRule")&&(m.CSSConditionRule=E.CSSConditionRule),vQJ("CSSSupportsRule")&&(m.CSSSupportsRule=E.CSSSupportsRule));var r={};Object.entries(m).forEach(function(X){var V=_.Z(X);X=V.next().value;V=V.next().value;r[X]={insertRule:V.prototype.insertRule,deleteRule:V.prototype.deleteRule};V.prototype.insertRule=new yY(r[X].insertRule,{apply:qP(function(G,w,D){var k=_.Z(D),f=k.next().value;
k=k.next().value;var L=bE(w.parentStyleSheet,y,J.styleMirror),S=L.id;L=L.styleId;(S&&S!==-1||L&&L!==-1)&&b({id:S,styleId:L,adds:[{rule:f,index:[].concat(_.a9(xjh(w)),[k||0])}]});return G.apply(w,D)})});
V.prototype.deleteRule=new yY(r[X].deleteRule,{apply:qP(function(G,w,D){var k=_.Z(D).next().value,f=bE(w.parentStyleSheet,y,J.styleMirror),L=f.id;f=f.styleId;(L&&L!==-1||f&&f!==-1)&&b({id:L,styleId:f,removes:[{index:[].concat(_.a9(xjh(w)),[k])}]});return G.apply(w,D)})})});
return qP(function(){E.CSSStyleSheet.prototype.insertRule=F;E.CSSStyleSheet.prototype.deleteRule=R;c&&(E.CSSStyleSheet.prototype.replace=c);z&&(E.CSSStyleSheet.prototype.replaceSync=z);Object.entries(m).forEach(function(X){var V=_.Z(X);X=V.next().value;V=V.next().value;V.prototype.insertRule=r[X].insertRule;V.prototype.deleteRule=r[X].deleteRule})})};
QSn=function(q,N){var b=q.mirror;var y=q.stylesheetManager;var J=null;J=N.nodeName==="#document"?b.getId(N):b.getId(IP(N));var E,F,R;q=N.nodeName==="#document"?(E=N.defaultView)==null?void 0:E.Document:(F=N.ownerDocument)==null?void 0:(R=F.defaultView)==null?void 0:R.ShadowRoot;var c=(q==null?0:q.prototype)?Object.getOwnPropertyDescriptor(q==null?void 0:q.prototype,"adoptedStyleSheets"):void 0;if(J===null||J===-1||!q||!c)return function(){};
Object.defineProperty(N,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var z;return(z=c.get)==null?void 0:z.call(this)},
set:function(z){var m,r=(m=c.set)==null?void 0:m.call(this,z);if(J!==null&&J!==-1)try{YIR(y,z,J)}catch(X){}return r}});
return qP(function(){Object.defineProperty(N,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})};
Ope=function(q,N){var b=q.styleDeclarationCb;var y=q.mirror;var J=q.ignoreCSSAttributes;var E=q.stylesheetManager;var F=N.win;var R=F.CSSStyleDeclaration.prototype.setProperty;F.CSSStyleDeclaration.prototype.setProperty=new yY(R,{apply:qP(function(z,m,r){var X=_.Z(r),V=X.next().value,G=X.next().value;X=X.next().value;if(J.has(V))return R.apply(m,[V,G,X]);var w,D=bE((w=m.parentRule)==null?void 0:w.parentStyleSheet,y,E.styleMirror);w=D.id;D=D.styleId;(w&&w!==-1||D&&D!==-1)&&b({id:w,styleId:D,set:{property:V,
value:G,priority:X},index:xjh(m.parentRule)});return z.apply(m,r)})});
var c=F.CSSStyleDeclaration.prototype.removeProperty;F.CSSStyleDeclaration.prototype.removeProperty=new yY(c,{apply:qP(function(z,m,r){var X=_.Z(r).next().value;if(J.has(X))return c.apply(m,[X]);var V,G=bE((V=m.parentRule)==null?void 0:V.parentStyleSheet,y,E.styleMirror);V=G.id;G=G.styleId;(V&&V!==-1||G&&G!==-1)&&b({id:V,styleId:G,remove:{property:X},index:xjh(m.parentRule)});return z.apply(m,r)})});
return qP(function(){F.CSSStyleDeclaration.prototype.setProperty=R;F.CSSStyleDeclaration.prototype.removeProperty=c})};
wwd=function(q){var N=q.mediaInteractionCb;var b=q.blockClass;var y=q.blockSelector;var J=q.mirror;var E=q.sampling;q=q.doc;var F=qP(function(c){return A9(qP(function(z){if((z=BB(z))&&!eL(z,b,y,!0)){var m=z.currentTime,r=z.volume,X=z.muted,V=z.playbackRate,G=z.loop;N({type:c,id:J.getId(z),currentTime:m,volume:r,muted:X,playbackRate:V,loop:G})}}),E.media||500)}),R=[oP("play",F(0),q),
oP("pause",F(1),q),oP("seeked",F(2),q),oP("volumechange",F(3),q),oP("ratechange",F(4),q)];return qP(function(){R.forEach(function(c){return c()})})};
ipA=function(q){var N=q.fontCb;q=q.doc;var b=q.defaultView;if(!b)return function(){};
var y=[],J=new WeakMap,E=b.FontFace;b.FontFace=function(F,R,c){var z=new E(F,R,c);J.set(z,{family:F,buffer:typeof R!=="string",descriptors:c,fontSource:typeof R==="string"?R:JSON.stringify(Array.from(new Uint8Array(R)))});return z};
q=CA(q.fonts,"add",function(F){return function(R){setTimeout(qP(function(){var c=J.get(R);c&&(N(c),J.delete(R))}),0);
return F.apply(this,[R])}});
y.push(function(){b.FontFace=E});
y.push(q);return qP(function(){y.forEach(function(F){return F()})})};
lNn=function(q){var N=q.doc,b=q.mirror,y=q.blockClass,J=q.blockSelector,E=q.selectionCb,F=!0;q=qP(function(){var R=N.getSelection();if(R&&!(F&&(R==null?0:R.isCollapsed))){F=R.isCollapsed||!1;for(var c=[],z=R.rangeCount||0,m=0;m<z;m++){var r=R.getRangeAt(m),X=r.startContainer,V=r.startOffset,G=r.endContainer;r=r.endOffset;eL(X,y,J,!0)||eL(G,y,J,!0)||c.push({start:b.getId(X),startOffset:V,end:b.getId(G),endOffset:r})}E({ranges:c})}});
q();return oP("selectionchange",q)};
KXA=function(q){var N=q.doc;var b=q.customElementCb;return(q=N.defaultView)&&q.customElements?CA(q.customElements,"define",function(y){return function(J,E,F){try{b({define:{name:J}})}catch(R){console.warn("Custom element callback failed for "+J)}return y.apply(this,[J,E,F])}}):function(){}};
DjD=function(q,N){var b=q.mutationCb,y=q.mousemoveCb,J=q.mouseInteractionCb,E=q.scrollCb,F=q.viewportResizeCb,R=q.inputCb,c=q.mediaInteractionCb,z=q.styleSheetRuleCb,m=q.styleDeclarationCb,r=q.canvasMutationCb,X=q.fontCb,V=q.selectionCb,G=q.customElementCb;q.mutationCb=function(){var w=_.MB.apply(0,arguments);N.mutation&&N.mutation.apply(N,_.a9(w));b.apply(null,_.a9(w))};
q.mousemoveCb=function(){var w=_.MB.apply(0,arguments);N.mousemove&&N.mousemove.apply(N,_.a9(w));y.apply(null,_.a9(w))};
q.mouseInteractionCb=function(){var w=_.MB.apply(0,arguments);N.mouseInteraction&&N.mouseInteraction.apply(N,_.a9(w));J.apply(null,_.a9(w))};
q.scrollCb=function(){var w=_.MB.apply(0,arguments);N.scroll&&N.scroll.apply(N,_.a9(w));E.apply(null,_.a9(w))};
q.viewportResizeCb=function(){var w=_.MB.apply(0,arguments);N.viewportResize&&N.viewportResize.apply(N,_.a9(w));F.apply(null,_.a9(w))};
q.inputCb=function(){var w=_.MB.apply(0,arguments);N.input&&N.input.apply(N,_.a9(w));R.apply(null,_.a9(w))};
q.mediaInteractionCb=function(){var w=_.MB.apply(0,arguments);N.mediaInteaction&&N.mediaInteaction.apply(N,_.a9(w));c.apply(null,_.a9(w))};
q.styleSheetRuleCb=function(){var w=_.MB.apply(0,arguments);N.styleSheetRule&&N.styleSheetRule.apply(N,_.a9(w));z.apply(null,_.a9(w))};
q.styleDeclarationCb=function(){var w=_.MB.apply(0,arguments);N.styleDeclaration&&N.styleDeclaration.apply(N,_.a9(w));m.apply(null,_.a9(w))};
q.canvasMutationCb=function(){var w=_.MB.apply(0,arguments);N.canvasMutation&&N.canvasMutation.apply(N,_.a9(w));r.apply(null,_.a9(w))};
q.fontCb=function(){var w=_.MB.apply(0,arguments);N.font&&N.font.apply(N,_.a9(w));X.apply(null,_.a9(w))};
q.selectionCb=function(){var w=_.MB.apply(0,arguments);N.selection&&N.selection.apply(N,_.a9(w));V.apply(null,_.a9(w))};
q.customElementCb=function(){var w=_.MB.apply(0,arguments);N.customElement&&N.customElement.apply(N,_.a9(w));G.apply(null,_.a9(w))}};
hEd=function(q,N){N=N===void 0?{}:N;var b=q.doc.defaultView;if(!b)return function(){};
DjD(q,N);var y;q.recordDOM&&(y=c5A(q,q.doc));var J=zEz(q),E=$jA(q),F=tTJ(q),R=mjC(q,{win:b}),c=VTJ(q),z=wwd(q),m=function(){},r=function(){},X=function(){},V=function(){};
q.recordDOM&&(m=G5d(q,{win:b}),r=QSn(q,q.doc),X=Ope(q,{win:b}),q.collectFonts&&(V=ipA(q)));var G=lNn(q),w=KXA(q),D=[];q=_.Z(q.plugins);for(N=q.next();!N.done;N=q.next())N=N.value,D.push(N.observer(N.callback,b,N.options));return qP(function(){HB.forEach(function(f){return f.reset()});
var k;(k=y)==null||k.disconnect();J();E();F();R();c();z();m();r();X();V();G();w();D.forEach(function(f){return f()})})};
jSA=function(q){return typeof window[q]!=="undefined"};
vQJ=function(q){return!!(typeof window[q]!=="undefined"&&window[q].prototype&&"insertRule"in window[q].prototype&&"deleteRule"in window[q].prototype)};
k5A=function(q){q=new Uint8Array(q);for(var N="",b=0;b<q.byteLength;b++)N+=String.fromCharCode(q[b]);return btoa(N)};
UjJ=function(q,N,b){if(q instanceof Array)return q.map(function(J){return UjJ(J,N,b)});
if(q!==null){if(q instanceof Float32Array||q instanceof Float64Array||q instanceof Int32Array||q instanceof Uint32Array||q instanceof Uint8Array||q instanceof Uint16Array||q instanceof Int16Array||q instanceof Int8Array||q instanceof Uint8ClampedArray)return{rr_type:q.constructor.name,args:[Object.values(q)]};if(q instanceof ArrayBuffer){var y=q.constructor.name;q=k5A(q);return{rr_type:y,base64:q}}if(q instanceof DataView)return{rr_type:q.constructor.name,args:[UjJ(q.buffer,N,b),q.byteOffset,q.byteLength]};
if(q instanceof HTMLImageElement)return{rr_type:q.constructor.name,src:q.src};if(q instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:q.toDataURL()};if(q instanceof ImageData)return{rr_type:q.constructor.name,args:[UjJ(q.data,N,b),q.width,q.height]};if(fND(q,N)||typeof q==="object")return y=q.constructor.name,q=ClR(q,N,b),{rr_type:y,index:q}}return q};
THR=function(q,N,b,y){for(var J=[],E=_.Z(Object.getOwnPropertyNames(N.CanvasRenderingContext2D.prototype)),F=E.next(),R={};!F.done;R={prop$jscomp$58:void 0},F=E.next()){R.prop$jscomp$58=F.value;try{if(typeof N.CanvasRenderingContext2D.prototype[R.prop$jscomp$58]==="function"){var c=CA(N.CanvasRenderingContext2D.prototype,R.prop$jscomp$58,function(z){return function(m){return function(){var r=_.MB.apply(0,arguments),X=this;eL(this.canvas,b,y,!0)||setTimeout(function(){var V=INd(r,N,X);q(X.canvas,{type:J8["2D"],
property:z.prop$jscomp$58,args:V})},0);
return m.apply(this,r)}}}(R));
J.push(c)}}catch(z){F=PUZ(N.CanvasRenderingContext2D.prototype,R.prop$jscomp$58,{set:function(m){return function(r){q(this.canvas,{type:J8["2D"],property:m.prop$jscomp$58,args:[r],setter:!0})}}(R)}),J.push(F)}}return function(){J.forEach(function(z){return z()})}};
sSJ=function(q,N,b,y){var J=[];try{var E=CA(q.HTMLCanvasElement.prototype,"getContext",function(F){return function(R){var c=_.MB.apply(1,arguments);if(!eL(this,N,b,!0)){var z=R==="experimental-webgl"?"webgl":R;"__context"in this||(this.__context=z);y&&["webgl","webgl2"].includes(z)&&(c[0]&&typeof c[0]==="object"?(z=c[0],z.preserveDrawingBuffer||(z.preserveDrawingBuffer=!0)):c.splice(0,1,{preserveDrawingBuffer:!0}))}return F.apply(this,[R].concat(_.a9(c)))}});
J.push(E)}catch(F){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){J.forEach(function(F){return F()})}};
nQJ=function(q,N,b,y,J,E){for(var F=[],R=_.Z(Object.getOwnPropertyNames(q)),c=R.next(),z={};!c.done;z={prop$jscomp$59:void 0},c=R.next())if(z.prop$jscomp$59=c.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(z.prop$jscomp$59))try{if(typeof q[z.prop$jscomp$59]==="function"){var m=CA(q,z.prop$jscomp$59,function(r){return function(X){return function(){var V=_.MB.apply(0,arguments),G=X.apply(this,V);ClR(G,E,this);"tagName"in this.canvas&&!eL(this.canvas,y,J,!0)&&(V=
INd(V,E,this),b(this.canvas,{type:N,property:r.prop$jscomp$59,args:V}));return G}}}(z));
F.push(m)}}catch(r){c=PUZ(q,z.prop$jscomp$59,{set:function(X){return function(V){b(this.canvas,{type:N,property:X.prop$jscomp$59,args:[V],setter:!0})}}(z)}),F.push(c)}return F};
aNA=function(q,N,b,y){var J=[];J.push.apply(J,_.a9(nQJ(N.WebGLRenderingContext.prototype,1,q,b,y,N)));typeof N.WebGL2RenderingContext!=="undefined"&&J.push.apply(J,_.a9(nQJ(N.WebGL2RenderingContext.prototype,2,q,b,y,N)));return function(){J.forEach(function(E){return E()})}};
ywd=function(q){var N=q=q===void 0?{}:q,b=N.emit,y=N.checkoutEveryNms,J=N.checkoutEveryNth,E=N.blockClass===void 0?"rr-block":N.blockClass,F=N.blockSelector===void 0?null:N.blockSelector,R=N.ignoreClass===void 0?"rr-ignore":N.ignoreClass,c=N.ignoreSelector===void 0?null:N.ignoreSelector,z=N.maskTextClass===void 0?"rr-mask":N.maskTextClass,m=N.maskTextSelector===void 0?null:N.maskTextSelector,r=N.inlineStylesheet===void 0?!0:N.inlineStylesheet,X=N.maskAllInputs,V=N.maskInputOptions,G=N.slimDOMOptions,
w=N.maskInputFn,D=N.maskTextFn,k=N.hooks,f=N.packFn,L=N.sampling===void 0?{}:N.sampling,S=N.dataURLOptions===void 0?{}:N.dataURLOptions,W=N.mousemoveWait,M=N.recordDOM===void 0?!0:N.recordDOM,qe=N.recordCanvas===void 0?!1:N.recordCanvas,RJ=N.recordCrossOriginIframes===void 0?!1:N.recordCrossOriginIframes,tZ=N.recordAfter===void 0?q.recordAfter==="DOMContentLoaded"?q.recordAfter:"load":N.recordAfter,wA=N.userTriggeredOnInput===void 0?!1:N.userTriggeredOnInput,rA=N.collectFonts===void 0?!1:N.collectFonts,
xD=N.inlineImages===void 0?!1:N.inlineImages,IJ=N.plugins,sJ=N.keepIframeSrcFn===void 0?function(){return!1}:N.keepIframeSrcFn,Sn=N.ignoreCSSAttributes===void 0?new Set([]):N.ignoreCSSAttributes;
Ee=N.errorHandler;var YE=RJ?window.parent===window:!0,xE=!1;if(!YE)try{window.parent.document&&(xE=!1)}catch(t4){xE=!0}if(YE&&!b)throw Error("$e");if(!YE&&!xE)return function(){};
W!==void 0&&L.mousemove===void 0&&(L.mousemove=W);gy.reset();var qv=X===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:V!==void 0?V:{password:!0},mM=G===!0||G==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:G==="all",headMetaDescKeywords:G==="all",headTitleMutations:G==="all"}:
G?G:{};qIJ();var Ox,h4=0,QC=function(t4){for(var gp=_.Z(IJ||[]),oJ=gp.next();!oJ.done;oJ=gp.next())oJ=oJ.value,oJ.eventProcessor&&(t4=oJ.eventProcessor(t4));f&&!xE&&(t4=f(t4));return t4};
ZZ=function(t4,gp){t4.timestamp=ugu();var oJ;((oJ=HB[0])==null?0:oJ.isFrozen())&&t4.type!==2&&(t4.type!==3||t4.data.source!==0)&&HB.forEach(function(bB){return bB.unfreeze()});
YE?b==null||b(QC(t4),gp):xE&&(gp={type:"rrweb",event:QC(t4),origin:window.location.origin,isCheckout:gp},window.parent.postMessage(gp,"*"));t4.type===2?(Ox=t4,h4=0):t4.type!==3||t4.data.source===0&&t4.data.isAttachIframe||(h4++,t4=y&&t4.timestamp-Ox.timestamp>y,(J&&h4>=J||t4)&&SIA(!0))};
var rp=function(t4){ZZ({type:3,data:Object.assign({},{source:0},t4)})},Fd=function(t4){return ZZ({type:3,
data:Object.assign({},{source:3},t4)})},yF=function(t4){return ZZ({type:3,
data:Object.assign({},{source:9},t4)})},vR=new WXd({mutationCb:rp,
adoptedStyleSheetCb:function(t4){return ZZ({type:3,data:Object.assign({},{source:15},t4)})}}),ej=new LXA({mirror:gy,
mutationCb:rp,stylesheetManager:vR,recordCrossOriginIframes:RJ,wrappedEmit:ZZ});q=_.Z(IJ||[]);for(N=q.next();!N.done;N=q.next())N=N.value,N.getMirror&&N.getMirror({nodeMirror:gy,crossOriginIframeMirror:ej.crossOriginIframeMirror,crossOriginIframeStyleMirror:ej.crossOriginIframeStyleMirror});var Go=new pwJ;Plz=new MTn({recordCanvas:qe,mutationCb:yF,win:window,blockClass:E,blockSelector:F,mirror:gy,sampling:L.canvas,dataURLOptions:S});var qN=new oQD({mutationCb:rp,scrollCb:Fd,bypassOptions:{blockClass:E,
blockSelector:F,maskTextClass:z,maskTextSelector:m,inlineStylesheet:r,maskInputOptions:qv,dataURLOptions:S,maskTextFn:D,maskInputFn:w,recordCanvas:qe,inlineImages:xD,sampling:L,slimDOMOptions:mM,iframeManager:ej,stylesheetManager:vR,canvasManager:Plz,keepIframeSrcFn:sJ,processedNodeManager:Go},mirror:gy});SIA=function(t4){t4=t4===void 0?!1:t4;if(M){ZZ({type:4,data:{href:window.location.href,width:AlA(),height:oCD()}},t4);vR.reset();qN.init();HB.forEach(function(oJ){return oJ.lock()});
var gp=p2h({mirror:gy,blockClass:E,blockSelector:F,maskTextClass:z,maskTextSelector:m,inlineStylesheet:r,maskAllInputs:qv,maskTextFn:D,maskInputFn:w,slimDOM:mM,dataURLOptions:S,recordCanvas:qe,inlineImages:xD,onSerialize:function(oJ){oJ.nodeName==="IFRAME"&&gy.nodeMetaMap.get(oJ)&&A5n(ej,oJ);NHJ(oJ,gy)&&eEe(vR,oJ);oJ&&Tj(oJ)&&BHd(qN,Tj(oJ),document)},
onIframeLoad:function(oJ,bB){HpZ(ej,oJ,bB);oJ.contentWindow&&oJ.contentDocument&&qUn(qN,oJ.contentWindow.Element,oJ.contentDocument)},
onStylesheetLoad:function(oJ,bB){NPD(vR,oJ,bB)},
keepIframeSrcFn:sJ});gp?(ZZ({type:2,data:{node:gp,initialOffset:Mku(window)}},t4),HB.forEach(function(oJ){return oJ.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&YIR(vR,document.adoptedStyleSheets,gy.getId(document))):console.warn("Failed to snapshot the document")}};
try{var O5=[],p1=function(t4){var gp;return qP(hEd)({mutationCb:rp,mousemoveCb:function(oJ,bB){return ZZ({type:3,data:{source:bB,positions:oJ}})},
mouseInteractionCb:function(oJ){return ZZ({type:3,data:Object.assign({},{source:2},oJ)})},
scrollCb:Fd,viewportResizeCb:function(oJ){return ZZ({type:3,data:Object.assign({},{source:4},oJ)})},
inputCb:function(oJ){return ZZ({type:3,data:Object.assign({},{source:5},oJ)})},
mediaInteractionCb:function(oJ){return ZZ({type:3,data:Object.assign({},{source:7},oJ)})},
styleSheetRuleCb:function(oJ){return ZZ({type:3,data:Object.assign({},{source:8},oJ)})},
styleDeclarationCb:function(oJ){return ZZ({type:3,data:Object.assign({},{source:13},oJ)})},
canvasMutationCb:yF,fontCb:function(oJ){return ZZ({type:3,data:Object.assign({},{source:10},oJ)})},
selectionCb:function(oJ){ZZ({type:3,data:Object.assign({},{source:14},oJ)})},
customElementCb:function(oJ){ZZ({type:3,data:Object.assign({},{source:16},oJ)})},
blockClass:E,ignoreClass:R,ignoreSelector:c,maskTextClass:z,maskTextSelector:m,maskInputOptions:qv,inlineStylesheet:r,sampling:L,recordDOM:M,recordCanvas:qe,inlineImages:xD,userTriggeredOnInput:wA,collectFonts:rA,doc:t4,maskInputFn:w,maskTextFn:D,keepIframeSrcFn:sJ,blockSelector:F,slimDOMOptions:mM,dataURLOptions:S,mirror:gy,iframeManager:ej,stylesheetManager:vR,shadowDomManager:qN,processedNodeManager:Go,canvasManager:Plz,ignoreCSSAttributes:Sn,plugins:(IJ==null?void 0:(gp=IJ.filter(function(oJ){return oJ.observer}))==
null?void 0:gp.map(function(oJ){return{observer:oJ.observer,
options:oJ.options,callback:function(bB){return ZZ({type:6,data:{plugin:oJ.name,payload:bB}})}}}))||[]},k)};
bvh(ej,function(t4){try{O5.push(p1(t4.contentDocument))}catch(gp){console.warn(gp)}});
var $E=function(){SIA();O5.push(p1(document))};
document.readyState==="interactive"||document.readyState==="complete"?$E():(O5.push(oP("DOMContentLoaded",function(){ZZ({type:0,data:{}});tZ==="DOMContentLoaded"&&$E()})),O5.push(oP("load",function(){ZZ({type:1,
data:{}});tZ==="load"&&$E()},window)));
return function(){O5.forEach(function(t4){try{t4()}catch(gp){String(gp).toLowerCase().includes("cross-origin")||console.warn(gp)}});
Go.destroy();Ee=void 0}}catch(t4){console.warn(t4)}};
_.Q=function(q,N){N=qn(BZ(N));q.innerHTML=N};
g2h=function(q){var N=Jwe;N||(N=E2n(),N=Jwe=_.nM.transpose(N));N=N[q];return typeof N==="string"?N:_.Fv(q)};
Zvd=function(q){q=String(q).toLowerCase();var N=E2n()[q];return typeof N==="string"?N:_.R$(q)};
FzA=function(q){q=q.toLowerCase();q=E2n()[q];return typeof q==="string"?q:null};
E2n=function(){if(!Rgn){for(var q=Object.assign({},dtR),N=_.Z(cwA),b=N.next();!b.done;b=N.next())b=b.value,q[b.toLowerCase()]=b;Rgn=q}return Rgn};
$tu=function(q,N){var b=window.customElements;return b&&b.get(q)||umC[q]===!0?2:N.name==="HTMLUnknownElement"?1:N.name==="HTMLElement"&&zgD.test(q)?3:0};
rwJ=function(q,N){switch(N){case "innerHTML":return tRz(q)===1?2:null;case "textContent":return q=tRz(q),q===1||q===6?1:null;default:var b,y;return(y=(b=mtn[q.localName])==null?void 0:b[N])!=null?y:null}};
tRz=function(q){var N=q.localName,b=$tu(N,q.constructor);switch(b){case 0:case 1:return X7d(N,q);case 3:case 2:return 1;default:_.ol(b,"got an unknown element classification")}};
X7d=function(q,N){var b=Object.hasOwnProperty.call(VRh,q)?VRh[q]:null;return b!==null?b:Object.hasOwnProperty.call(jgd,q)&&N instanceof SVGElement?jgd[q]:null};
xtu=function(q,N){return N};
GJe=function(q){return(q=q.split(v2J,2))?{url:q[0],metadata:q[1]}:null};
Qge=function(q){var N=String(q.url).replace(YUh,encodeURIComponent);if(q=q.metadata){YUh.lastIndex=0;if(YUh.test(q))return null;N+=" "+q}return N};
lLd=function(q){function N(z){var m=z.localName;if(!z.getAttribute("is")&&$tu(m,z.constructor)===2){var r;return(r=c)!=null?r:c=document.createElement("polyresinuncustomized")}(z=R[m])||(z=R[m]=document.createElement(m));return z}
var b=q.reportHandler||void 0,y=q.safeTypesBridge||Ovh,J=/^$/;if(q=q.allowedIdentifierPrefixes){q=_.Z(q);for(var E=q.next();!E.done;E=q.next())J=new RegExp(J.source+"|^"+_.w7A(E.value))}b&&b(!1,"initResin",null);var F=ivR(J,y,b),R={},c=null;return function(z,m,r){var X=z.nodeType;if(X!==Node.ELEMENT_NODE){if(X===Node.TEXT_NODE){m=z.parentElement;r=!m;if(m&&m.nodeType===Node.ELEMENT_NODE){X=m.localName;var V=$tu(X,m.constructor);switch(V){case 0:case 1:m=X7d(X,m);r=m===1||m===6;break;case 3:case 2:r=
!0;break;default:_.ol(V,"got an unknown element classification")}}if(r)return function(k){return""+y(k,"STRING",k)}}return function(k){if(!k&&k!==document.all)return k;
b&&b(!0,"Failed to sanitize "+(z.parentElement&&z.parentElement.nodeName)+" #text node to value "+k,z.parentElement);return dy}}var G=z.localName;
X=N(z);var w=null;switch(r){case "attribute":if(Zvd(m)in X)break;return function(k){return k};
case "property":if(m in X){w=rwJ(X,m);break}if((V=FzA(m))&&V in X)break;return function(k){return k};
default:_.ol(r,"got an unknown resin type, expected either 'property' or 'attribute'")}var D=r==="attribute"?m.toLowerCase():g2h(m);w||(w=OQJ(G,D,function(k){var f=z.getAttribute(k);return!f||/[\[\{]/.test(k)?null:f}));
return function(k){var f=cy,L=null;if(!k&&k!==document.all)return k;if(w!=null){var S=F[w],W=S.safeType;L=S.safeReplacement;W&&(f=y(k,W,cy));f===cy&&(S.filterString?(f=String(y(k,"STRING",k)),f=S.filterString(G,D,f)):S.filterRaw&&(f=S.filterRaw(G,D,k,z)),f===L&&(f=cy))}f===cy&&(f=L||dy,b&&b(!0,"Failed to sanitize attribute of <"+G+">: <"+G+" "+D+'="'+k+'">',z));return f}}};
ivR=function(q,N,b){return[,{filterRaw:function(y,J,E){return E},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:KzJ,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:KzJ,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:dy,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:DtJ,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(y,J,E){E=
String(E).toLowerCase();return lmn(y,J,E)?E:dy},
safeReplacement:dy,safeType:void 0},,{filterRaw:void 0,filterString:function(y,J,E){return q.test(E)?E:dy},
safeReplacement:dy,safeType:"CONSTANT"},{filterRaw:function(y,J,E,F){if(typeof E==="string")var R=(R=E.match(hgd))?R.map(GJe).filter(Boolean):[];else if(Array.isArray(E))R=E;else return KzJ;var c=R;R=[];var z=[],m={};if(Array.isArray(c))for(var r=0,X=c.length;r<X;++r){var V=c[r],G=V&&V.url;if(G){var w=N(G,"URL",m);if(w){var D=w!==m;(D?R:z).push({url:D?w:G,metadata:V.metadata})}}}else z.push(c);c=z.length?JSON.stringify(z):null;z=cy;if(R.length){if(!Array.isArray(R))throw Error();z=R.map(Qge).filter(Boolean).join(" , ")||
cy}c&&b&&b(!0,"Failed to sanitize attribute value of <"+y+">: <"+y+" "+J+'="'+E+'">: '+c,F);return z===cy?KzJ:z},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
kJe=function(q){var N=lLd(q);return function(b,y,J,E){return E||E===document.all?N(b,y,J)(E):E}};
uE=function(q,N){function b(){function J(R,c,z){for(c=Reflect.getMetadata("parameters",R)||[];c.length<=z;)c.push(null);c[z]=c[z]||[];c[z].push(F);Reflect.defineMetadata(c,R);return R}
var E=_.MB.apply(0,arguments);if(this instanceof b)return y.apply(this,E),this;var F=new (Function.prototype.bind.apply(b,[null].concat(_.a9(E))));J.annotation=F;return J}
var y=Utu(N);b.prototype.toString=function(){return"@"+q};
return b.annotationCls=b};
Utu=function(q){return function(){var N=_.MB.apply(0,arguments),b=this;q.forEach(function(y,J){J=N[J];if(Array.isArray(y))b[y[0]]=J&&J!==void 0?J:y[1];else for(var E in y)b[E]=J&&J[E]!==void 0?J[E]:y[E]})}};
fLu=function(q){return q!==void 0&&q!==null};
zy=function(q){if(typeof q==="string")return q;if(q===void 0||q===null)return""+q;if(q.overriddenName)return q.overriddenName;if(q.name)return q.name;q=q.toString();var N=q.indexOf("\n");return N===-1?q:q.substring(0,N)};
CKn=function(q){q.__forward_ref__=CKn;q.toString=function(){return zy(this())};
return q};
$U=function(q){return typeof q==="function"&&q.hasOwnProperty("__forward_ref__")&&q.__forward_ref__===CKn?q():q};
ILe=function(q){return q?q.map(function(N){return new (Function.prototype.bind.apply(N.type.annotationCls,[null].concat(_.a9(N.args?N.args:[]))))}):[]};
TPn=function(q){for(var N=[],b=0;b<q.length;++b){if(N.indexOf(q[b])>-1){N.push(q[b]);break}N.push(q[b])}return N};
sgJ=function(q){return q.length>1?" ("+TPn(q.slice().reverse()).map(function(N){return zy(N.token)}).join(" -> ")+")":""};
aLd=function(q,N,b,y){if(y){var J=Error("cf``"+(y instanceof Error?y.message:y));J.ngOriginalError=y}else J=Error();J.addKey=n2J;J.keys=[N];J.injectors=[q];J.constructResolvingMessage=b;J.message=J.constructResolvingMessage();J.ngOriginalError=y;return J};
n2J=function(q,N){this.injectors.push(q);this.keys.push(N);this.message=this.constructResolvingMessage()};
SUJ=function(q,N){return aLd(q,N,function(){return"No provider for "+zy(this.keys[0].token)+"!"+sgJ(this.keys)})};
Wzz=function(q,N){return aLd(q,N,function(){return"Cannot instantiate cyclic dependency!"+sgJ(this.keys)})};
Lze=function(q,N,b){return aLd(q,b,function(){var y=zy(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+y+"!"+sgJ(this.keys)+"."},N)};
p7D=function(q,N){for(var b=[],y=0,J=N.length;y<J;y++){var E=N[y];E&&E.length!=0?b.push(E.map(zy).join(" ")):b.push("?")}return Error("gf`"+zy(q)+"`"+b.join(", ")+"`"+zy(q))};
HvR=function(q){var N=void 0,b=void 0;if(q&&q.useClass!==void 0){N=q.useClass;var y=$U(q.useClass);var J=PKD.factory(y);y=MRC(y)}else q&&q.useExisting!==void 0?(J=function(E){return E},y=[o2h(t8.get($U(q.useExisting)))]):q&&q.useFactory!==void 0?(J=q.useFactory,y=Awn(q.useFactory,q.deps)):(b=q.useValue,J=function(){return q.useValue},y=egR);
return new BPd(J,y,N,b)};
Nkd=function(q){return new qCA(t8.get($U(q.provide)),[HvR(q)],q.multi)};
ytd=function(q){q=bzC(q,[]).map(Nkd);for(var N=new Map,b=0;b<q.length;b++){var y=q[b],J=N.get(y.key.id);if(J){if(y.multiProvider!==J.multiProvider)throw Error("jf`"+J+"`"+y);if(y.multiProvider)for(var E=0;E<y.resolvedFactories.length;E++)J.resolvedFactories.push(y.resolvedFactories[E]);else N.set(y.key.id,y)}else J=void 0,y.multiProvider?J=new qCA(y.key,y.resolvedFactories.slice(),y.multiProvider):J=y,N.set(y.key.id,J)}return Array.from(N.values())};
bzC=function(q,N){q.forEach(function(b){if(b instanceof Jth)N.push({provide:b,useClass:b});else if(b&&typeof b=="object"&&b.provide!==void 0)N.push(b);else if(b instanceof Array)bzC(b,N);else throw Error("ff`"+b);});
return N};
Awn=function(q,N){if(N){var b=N.map(function(y){return[y]});
return N.map(function(y){return Ecu(q,y,b)})}return MRC(q)};
MRC=function(q){var N=PKD.parameters(q);if(!N)return[];if(N.some(function(b){return b==null}))throw p7D(q,N);
return N.map(function(b){return Ecu(q,b,N)})};
Ecu=function(q,N,b){var y=null,J=!1;if(!Array.isArray(N))return N instanceof gcC?Zze(N.token,J,null):Zze(N,J,null);for(var E=null,F=0;F<N.length;++F){var R=N[F];if(R instanceof Jth)y=R;else if(R instanceof gcC)y=R.token;else if(R instanceof FSD)J=!0;else if(R instanceof Rjn||R instanceof d2d)E=R}y=$U(y);if(y!=null)return Zze(y,J,E);throw p7D(q,b);};
Zze=function(q,N,b){return new ctA(t8.get($U(q)),N,b)};
uJA=function(q,N){for(var b=Array(q.providers.length),y=0;y<q.providers.length;++y){var J=y;if(y<0||y>=q.providers.length)throw Error("hf`"+y);b[J]=N(q.providers[y])}return b};
zjR=function(q){return typeof q==="function"&&PKD.parameters(q).every(function(N){return!!N})};
m2e=function(q){var N=$2Z;tVu.get(q)||tVu.set(q,new N);return tVu.get(q)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(q)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(q)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q,N){var b,y;if(q.contains(N))return!0;q=_.mj(q).querySelectorAll("content,slot");for(b=0;b<q.length;++b){var J=_.mj(q[b]).getDistributedNodes();for(y=0;y<J.length;++y)if(J[y].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(J[y],N))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q){q.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(q)&&q.preventDefault();q.targetTouches&&(q=q.targetTouches[0],rtn=q.pageX,Xtn=q.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 q=0,N=ry.length;q<N;q++)document.addEventListener(ry[q],_._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 q=0,N=ry.length;q<N;q++)document.removeEventListener(ry[q],_._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(q){var N=_.mj(q).rootTarget;q.type!=="touchmove"&&VVd!==N&&(VVd=N,jNh=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.mj(q).path));if(!jNh.length)return!0;if(q.type==="touchstart")return!1;q=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(q);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(jNh,q.deltaX,q.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q){for(var N=[],b=q.indexOf(x2J),y=0;y<=b;y++)if(q[y].nodeType===Node.ELEMENT_NODE){var J=q[y],E=J.style;E.overflow!=="scroll"&&E.overflow!=="auto"&&(E=window.getComputedStyle(J));E.overflow!=="scroll"&&E.overflow!=="auto"||N.push(J)}return N};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q,N,b){if(N||b)for(var y=Math.abs(b)>=Math.abs(N),J=0;J<q.length;J++){var E=q[J];if(y?b<0?E.scrollTop>0:E.scrollTop<E.scrollHeight-E.clientHeight:N<0?E.scrollLeft>0:E.scrollLeft<E.scrollWidth-E.clientWidth)return E}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q){var N={deltaX:q.deltaX,deltaY:q.deltaY};"deltaX"in q||("wheelDeltaX"in q&&"wheelDeltaY"in q?(N.deltaX=-q.wheelDeltaX,N.deltaY=-q.wheelDeltaY):"wheelDelta"in q?(N.deltaX=0,N.deltaY=-q.wheelDelta):"axis"in q?(N.deltaX=q.axis===1?q.detail:0,N.deltaY=q.axis===2?q.detail:0):q.targetTouches&&(q=q.targetTouches[0],N.deltaX=rtn-q.pageX,N.deltaY=Xtn-q.pageY));return N};
vcd=function(q){this.element=q;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
YCJ=function(q){this.element=q;this.color=window.getComputedStyle(q).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");_.mj(this.waveContainer).appendChild(this.wave);Gqu(this)};
Xv=function(q,N){for(var b in q)if(b.toLowerCase()===N.toLowerCase())return q[b]};
QNJ=function(q,N){for(var b in q)if(b.toLowerCase()===N.toLowerCase()){delete q[b];break}};
wtz=function(q){q=_.nM.clone(q);for(var N=0;N<OzZ.length;++N){var b=OzZ[N],y=Xv(q,b);y&&(q["X-Goog-Upload-Header-"+b]=y,QNJ(q,b))}return q};
izd=function(q){q=_.nM.clone(q);QNJ(q,"X-Goog-Upload-Status")};
KSR=function(q){return lhA.some(function(N){return N.test(q)})};
U2e=function(q,N){var b;var y=(b=q.formContent)==null?void 0:b.locale;b=y==null?void 0:y.split("-")[0];y=y&&D2A.includes(y)?y:b&&D2A.includes(b)?b:void 0;y=(y!=null?y:"en").replaceAll("-","_").toLowerCase();var J;q=((J=q.initializationData)==null?0:J.useNightlyRelease)?"nightly":"live";var E;return(N==null?0:(E=N.getEnableAlohaBinarySplit)==null?0:E.call(N))?_.Xe(hjC,q):_.Xe(kqu,q,y)};
Ihd=function(q,N,b,y){if(fhA&&CWZ===N)return fhA;CWZ=N;var J=U2e(q,y);return fhA=N.feedbackV2GlobalObject?Promise.resolve(N.feedbackV2GlobalObject):new Promise(function(E,F){var R=_.iC("SCRIPT");_.R9(R,J);R.onload=function(){N.feedbackV2GlobalObject?E(N.feedbackV2GlobalObject):F(Error("mf"))};
R.onerror=function(){F(Error("nf`"+J.toString()))};
b.body.appendChild(R)})};
nch=function(q,N,b,y){if(TkJ&&sNA===N)return TkJ;sNA=N;var J=U2e(q,y);return TkJ=N.feedbackV2GlobalObject?Promise.resolve(N.feedbackV2GlobalObject):new Promise(function(E,F){var R=_.iC("SCRIPT");_.R9(R,J);R.onload=function(){N.feedbackV2GlobalObject?E(N.feedbackV2GlobalObject):F(Error("mf"))};
R.onerror=function(){F(Error("nf`"+J.toString()))};
b.body.appendChild(R)})};
ahD=function(q,N,b,y,J){J=J===void 0?!0:J;var E,F,R,c,z;return _.d(function(m){switch(m.nextAddress){case 1:return E=Date.now(),m.yield(Ihd(q,b,y,N),2);case 2:F=m.yieldResult;if(!(J||((c=q.initializationData)==null?0:c.useNightlyRelease)||((z=q.initializationData)==null?0:z.isLocalServer))){R=F.initializeFeedbackClient(q,E,N);m.jumpTo(3);break}return m.yield(F.initializeFeedbackClientAsync(q,E,N),4);case 4:R=m.yieldResult;case 3:return R.initiateAloha(),m.return(R)}})};
SCn=function(q,N,b,y){var J,E,F;return _.d(function(R){if(R.nextAddress==1)return J=Date.now(),R.yield(nch(q,b,y.document,N),2);if(R.nextAddress!=3)return E=R.yieldResult,R.yield(E.initializeFeedbackClientAsync(q,J,N,y),3);F=R.yieldResult;F.initiateAloha();return R.return(F)})};
WSJ=function(q,N,b){var y=!0;y=y===void 0?!0:y;var J,E,F,R,c,z,m,r;return _.d(function(X){J=b||_.JZ;if((E=N)==null?0:(R=(F=E).getEnableAlohaBinarySplit)==null?0:R.call(F)){c=J;if(c.isFormOpened)throw new VY;c.isFormOpened=!0;q.callbacks=q.callbacks||{};z=q.callbacks.onClose||function(){};
q.callbacks.onClose=function(V){c.isFormOpened=!1;z(V)};
try{return X.return(SCn(q,N,c,J))}catch(V){throw c.isFormOpened=!1,V;}}else{m=J;if(m.isFormOpened)throw new VY;m.isFormOpened=!0;q.callbacks=q.callbacks||{};r=q.callbacks.onClose||function(){};
q.callbacks.onClose=function(V){m.isFormOpened=!1;r(V)};
try{return X.return(ahD(q,N,m,J.document,y))}catch(V){throw m.isFormOpened=!1,V;}}_.hj(X)})};
ocn=function(q,N){return _.d(function(b){return b.return(new Promise(function(y,J){Number.isInteger(Number(q))&&Number(q)>0?(J=LSR(N!=null?N:"")+"/aloha_form_properties?productId="+q,ptD(J,function(E){E=E.target;var F=null;try{var R=JSON,c=R.stringify;if(E.JSC$9877_xhr_){var z=E.JSC$9877_xhr_.responseText;z.indexOf(")]}'\n")==0&&(z=z.substring(5));var m=(0,_.j2)(z)}else m=void 0;F=oBA(PWR,c.call(R,m))}catch(r){c=new PWR,m=MVd(),m=_.xU(m,13,!1),m=_.xU(m,14,!0),m=_.xU(m,15,!0),m=_.xU(m,20,!1),F=_.ws(c,
1,m)}y(F)},"GET","",{},2E3,!0)):J(Error("of`"+q))}))})};
LSR=function(q){return KSR(q)?q:"https://www.google.com/tools/feedback"};
HzZ=function(q){q=q.match(new RegExp(Atu,"gi"))||[];q=_.Z(q);for(var N=q.next();!N.done;N=q.next()){N=N.value;a:{var b=_.Z(ejJ);for(var y=b.next();!y.done;y=b.next())if(y.value.test(N)){b=!1;break a}b=!0}if(!b)a:{b=_.Z(BkJ);for(y=b.next();!y.done;y=b.next())if(y.value.test(N)){b=!0;break a}b=!1}if(b)return!0}return!1};
qDd=function(q,N){var b={},y=Object.keys(q);y=_.Z(y);for(var J=y.next();!J.done;J=y.next())J=J.value,b[J]=N(J,q[J]);return b};
NCC=function(q){switch(q){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"}};
yGJ=function(q){if(window.crypto&&window.crypto.getRandomValues)try{var N=Array(q),b=new Uint8Array(q);window.crypto.getRandomValues(b);for(var y=0;y<N.length;y++)N[y]=b[y];return N}catch(E){}N=Array(q);for(b=0;b<q;b++){y=Date.now();for(var J=0;J<y%23;J++)N[b]=Math.random();N[b]=Math.floor(Math.random()*256)}if(bin)for(b=1,y=0;y<bin.length;y++)N[b%q]^=N[(b-1)%q]/4^bin.charCodeAt(y),b++;return N};
vy=function(q){q=yGJ(q);for(var N=[],b=0;b<q.length;b++)N.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(q[b]&63));return N.join("")};
JGn=function(){var q=_.JZ.ytLoggingDocDocumentNonce_;q||(q=vy(16),_.zn("ytLoggingDocDocumentNonce_",q));return q};
gTJ=function(q){q&&_.W_("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:ETh,clientScreenNonce:q})};
Zin=function(q){return _.M7("client-screen-nonce-store",{})[q===void 0?0:q]};
FCe=function(q,N){N=N===void 0?0:N;var b=_.M7("client-screen-nonce-store");b||(b={},_.PC("client-screen-nonce-store",b));b[N]=q};
RUZ=function(q){q=q===void 0?0:q;return q===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+q};
dCJ=function(q){return _.M7(RUZ(q===void 0?0:q))};
_.QY=function(q){return(q=dCJ(q===void 0?0:q))?new Gy({veType:q,youtubeData:void 0,jspbYoutubeData:void 0}):null};
cGu=function(){var q=_.M7("csn-to-ctt-auth-info");q||(q={},_.PC("csn-to-ctt-auth-info",q));return q};
uKZ=function(){return Object.values(_.M7("client-screen-nonce-store",{})).filter(function(q){return q!==void 0})};
_.Oe=function(q){q=Zin(q===void 0?0:q);if(!q&&!_.ou("USE_CSN_FALLBACK",!0))return null;q||(q="UNDEFINED_CSN");return q?q:null};
$CZ=function(q){for(var N=_.Z(Object.values(zUd)),b=N.next();!b.done;b=N.next())if(_.Oe(b.value)===q)return!0;return!1};
tQZ=function(q,N,b){var y=cGu();(b=_.Oe(b))&&delete y[b];N&&(y[q]=N)};
wy=function(q){return cGu()[q]};
_.iE=function(q,N,b,y){b=b===void 0?0:b;if(q!==Zin(b)||N!==_.M7(RUZ(b)))if(tQZ(q,y,b),FCe(q,b),_.PC(RUZ(b),N),N=function(){setTimeout(function(){gTJ(q)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(N)}catch(J){N()}else N()};
mCe=function(q,N){N=N===void 0?"":N;var b=[],y;for(y in q)if(q.hasOwnProperty(y)){var J=N!==""?N+"."+y:y;typeof q[y]==="object"?b.push.apply(b,_.a9(mCe(q[y],J))):b.push([J,q[y]])}b.sort();return b};
_.Kx=function(q){var N=_.MB.apply(1,arguments);if(!lE(q)||N.some(function(y){return!lE(y)}))throw Error("pf");
N=_.Z(N);for(var b=N.next();!b.done;b=N.next())rGD(q,b.value)};
rGD=function(q,N){for(var b in N)if(lE(N[b])){if(b in q&&!lE(q[b]))throw Error("qf");b in q||(q[b]={});rGD(q[b],N[b])}else if(X0C(N[b])){if(b in q&&!X0C(q[b]))throw Error("rf");b in q||(q[b]=[]);VQA(q[b],N[b])}else q[b]=N[b];return q};
VQA=function(q,N){N=_.Z(N);for(var b=N.next();!b.done;b=N.next())b=b.value,lE(b)?q.push(rGD({},b)):X0C(b)?q.push(VQA([],b)):q.push(b);return q};
lE=function(q){return typeof q==="object"&&!Array.isArray(q)};
X0C=function(q){return typeof q==="object"&&Array.isArray(q)};
xCn=function(q){for(var N=_.Z(Object.entries(jVR)),b=N.next();!b.done;b=N.next())if(b=_.Z(b.value),b.next(),b=b.next().value,b==="SLI_STATUS_"+q)return b;return"SLI_STATUS_UNKNOWN"};
_.DZ=function(q,N,b,y){return vTA(q,N,function(){return new _.GWz(q,N,b,y)})};
_.YDA=function(){return _.DZ("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
QVd=function(){return _.DZ("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
h8=function(){return _.DZ("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
Oin=function(){return _.DZ("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
w0z=function(){return _.DZ("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
iin=function(){return _.DZ("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
DCd=function(q){q&&(q.dataset?q.dataset[lYd()]="true":_.cx([_.ms(KCR)],q,"data-loaded","true".toString()))};
hUe=function(q){return q?q.dataset?q.dataset[lYd()]:q.getAttribute("data-loaded"):null};
lYd=function(){return kWR.loaded||(kWR.loaded="loaded".replace(/\-([a-z])/g,function(q,N){return N.toUpperCase()}))};
_.kU=function(q,N,b){UCC(q,N,b===void 0?null:b)};
_.Cen=function(q,N){q&&N&&(q=""+_.en(N),(q=fYd[q])&&_.xod(q))};
UCC=function(q,N,b){b=b===void 0?null:b;var y=_.IYZ(typeof q==="string"?q:q.toString()),J=document.getElementById(y),E=J&&hUe(J),F=J&&!E;E?N&&N():(N&&(E=_.j0(y,N),N=""+_.en(N),fYd[N]=E),F||(J=TCA(q,y,function(){hUe(J)||(DCd(J),_.v0R(y),_.Yf(function(){_.Y_A(y)},0))},b)))};
TCA=function(q,N,b,y){y=y===void 0?null:y;var J=_.iC("SCRIPT");J.id=N;J.onload=function(){b&&setTimeout(b,0)};
J.onreadystatechange=function(){switch(J.readyState){case "loaded":case "complete":J.onload()}};
y&&J.setAttribute("nonce",y);_.R9(J,typeof q==="string"?_.sN(q):q);q=document.getElementsByTagName("head")[0]||document.body;q.insertBefore(J,q.firstChild);return J};
_.IYZ=function(q){var N=document.createElement("a");AB(N,q);return"js-"+Ue(N.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
sVA=function(q){var N=_.M7("INNERTUBE_HOST_OVERRIDE");N&&(q=String(N)+String(_.fx(q)));return q};
nTJ=function(q){var N={};_.x("json_condensed_response")&&(N.prettyPrint="false");return q=WjA(q,N)};
_.Cx=function(q){return uv(q)?"same-origin":"include"};
_.I$=function(q){return uv(q)?"same-origin":"cors"};
Ty=function(q,N,b){b=b===void 0?{}:b;q={method:N===void 0?"POST":N,mode:_.I$(q),credentials:_.Cx(q)};N={};for(var y=_.Z(Object.keys(b)),J=y.next();!J.done;J=y.next())J=J.value,b[J]&&(N[J]=b[J]);Object.keys(N).length>0&&(q.headers=N);return q};
_.se=function(q,N){N=N===void 0?{}:N;return"service:"+q+"/"+Object.keys(N).sort().map(function(b){return b+":"+N[b]}).join("/")};
aYn=function(q){var N,b,y,J;q=(N=_.v(q,_.nx))==null?void 0:(b=N.watchEndpointSupportedOnesieConfig)==null?void 0:(y=b.html5PlaybackOnesieConfig)==null?void 0:(J=y.commonConfig)==null?void 0:J.url;if(!q)return[];N=new _.a$(q);return N.JSC$10113_domain_?["https://"+N.JSC$10113_domain_+"/generate_204"]:[]};
_.LCJ=function(){return SDd()||AeC()||WCR&&Az("version/")?!0:_.M7("EOM_VISITOR_DATA")?!1:!0};
p0z=function(q){var N=q.docid||q.video_id||q.videoId||q.id;if(N)return N;N=q.raw_player_response;N||(q=q.player_response)&&(N=JSON.parse(q));return N&&N.videoDetails&&N.videoDetails.videoId||null};
Peu=function(q){return q.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
S2=function(q){return!isNaN(Number(q))&&!_.dA(q)};
_.Lx=function(q,N,b,y){y=y===void 0?!0:y;var J=_.M7("VALID_SESSION_TEMPDATA_DOMAINS",[]),E=_.dO(window.location.href);E&&J.push(E);E=_.dO(q);if(_.aJ(J,E)||!E&&_.gA(q,"/"))if(J=document.createElement("a"),AB(J,q),q=J.href)if(q=_.fx(q),q=_.Wy(q))y&&!N.csn&&(N.itct||N.ved)&&(N=Object.assign({csn:_.Oe()},N)),b?(b=parseInt(b,10),isFinite(b)&&b>0&&MQJ(q,N,b)):MQJ(q,N)};
AGd=function(q){var N=_.M7("VALID_SESSION_TEMPDATA_DOMAINS",[]),b=_.dO(window.location.href);b&&N.push(b);b=_.dO(q);if(!(_.aJ(N,b)||!b&&_.gA(q,"/")))return null;q=_.fx(q);(q=_.Wy(q))?(q=oTh(q),q=(q=_.hz.get(q,void 0)||null)?_.EV(q):{}):q=null;return q};
MQJ=function(q,N,b){q=oTh(q);N=N?_.lv(N):"";b=b||5;_.LCJ()&&_.kf(q,N,b)};
oTh=function(q){for(var N=_.Z(eUn),b=N.next();!b.done;b=N.next())q=_.px(q,b.value);return"ST-"+Ue(q).toString(36)};
_.BCR=function(q){if(q.requestFullscreen)q=q.requestFullscreen(void 0);else if(q.webkitRequestFullscreen)q=q.webkitRequestFullscreen();else if(q.mozRequestFullScreen)q=q.mozRequestFullScreen();else if(q.msRequestFullscreen)q=q.msRequestFullscreen();else if(q.webkitEnterFullscreen)q=q.webkitEnterFullscreen();else return Promise.reject(Error("Af"));return q instanceof Promise?q:Promise.resolve()};
_.MP=function(q){var N;_.F6d(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.Py()==q&&(N=document):N=q;if(N&&(q=_.F6d(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],N))){q.call(N)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.Py=function(){var q=q===void 0?!1:q;var N=_.F6d(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(q)for(;N&&N.shadowRoot;)N=N.shadowRoot.fullscreenElement;return N?N:null};
_.o$=function(q,N){N=N===void 0?!0:N;q.addEventListener("wheel",HiJ);q.overscrollConfig={cooldown:N}};
_.A8=function(q){q.overscrollConfig=void 0;q.removeEventListener("wheel",HiJ)};
HiJ=function(q){var N=q.deltaY,b=q.target,y=null;if(window.Polymer&&window.Polymer.Element){if(b=q.path||q.composedPath&&q.composedPath()){b=_.Z(b);for(var J=b.next();!J.done&&(J=J.value,!qjd(J,N));J=b.next())if(J.overscrollConfig){y=J;break}}}else for(;b&&!qjd(b,N);){if(b.overscrollConfig){y=b;break}b=b.parentElement}y&&(N=y.overscrollConfig,N.cooldown?(y=q.deltaY,b=N.lastDeltaY||0,N.lastDeltaY=y,J=N.lastStopped||0,b&&J&&b>0==y>0?Math.abs(b)>=Math.abs(y)?(y=J+1200,b=!1):(y=J+600,b=!0):(y=Date.now()+
600,b=!0),y>Date.now()&&(q.preventDefault(),b&&(N.lastStopped=Date.now()))):q.preventDefault())};
qjd=function(q,N){return N<0&&q.scrollTop>0||N>0&&q.scrollTop<q.scrollHeight-q.clientHeight-1?(q=getComputedStyle(q).overflowY,q=="auto"||q=="scroll"):!1};
_.e2=function(q,N,b,y){y||(y={bubbles:!0,cancelable:!1,composed:!0});b!==null&&b!==void 0&&(y.detail=b);var J=new CustomEvent(N,y);_.x("untrack_fire_custom_event_killswitch")?q.dispatchEvent(J):_.YL(function(){return void q.dispatchEvent(J)});
return J};
NUn=function(q){var N=window,b=function(y){N.removeEventListener("yt-navigate-start",b);return q.call(N,y)};
N.addEventListener("yt-navigate-start",b,void 0)};
_.By=function(q,N,b,y){N=new bOJ(N,!(y===void 0||!y),b);_.e2(q,"yt-action",N);return N.returnValue};
_.Hy=function(q,N,b){return _.By(q,N,b,!0)};
_.Nc=function(q,N,b,y){N&&N.length&&N.forEach(function(J){var E=EeZ(J);E&&(_.x("handle_service_request_actions")&&J.commandMetadata&&J.commandMetadata.webCommandMetadata&&J.commandMetadata.webCommandMetadata.sendPost?_.qc(b?b:q,[J]):_.Hy(q,E,[J,b,y]))})};
_.qc=function(q,N){var b=[q];N&&b.push.apply(b,N);N=_.By(q,"yt-service-request",b);return N.length>0&&(N=N[0],_.e2(q,"yt-service-request-sent",N),N&&N.ajaxPromise)?(N.ajaxPromise.then(function(y){_.e2(q,"yt-service-request-completed",y)},function(y){_.e2(q,"yt-service-request-error",{error:y,
params:b})},q),N.ajaxPromise):_.bG()};
_.Je=function(q,N){if(_.x("handle_service_request_actions"))_.Nc(N,q,N);else{q=_.Z(q);for(var b=q.next();!b.done;b=q.next()){b=b.value;var y=void 0;((y=_.v(b,_.y6))==null?0:y.commands)?_.Je(_.v(b,_.y6).commands,N):(y=void 0,((y=_.v(b,_.EY))==null?0:y.actions)?_.Je(_.v(b,_.EY).actions,N):(y=void 0,((y=_.v(b.commandMetadata,_.gg))==null?0:y.sendPost)?_.qc(N,[b]):_.Nc(N,[b],N)))}}};
_.JTn=function(q,N,b){N=N===void 0?{}:N;typeof N==="function"&&(N={callback:N});b||N._c&&N._c.jsl&&N._c.jsl.h||_.nM.extend(N,{_c:{jsl:{h:_.M7("GAPI_HINT_PARAMS")}}});(N.gapiHintOverride||_.M7("GAPI_HINT_OVERRIDE"))&&(b=_.gO(document.location.href).gapi_jsh)&&_.nM.extend(N,{_c:{jsl:{h:b}}});yTD(q,N)};
_.FE=function(q,N,b){N=N===void 0?{}:N;q=(q=q in Zi?Zi[q]:b)||"";b={};for(var y in N){b={key$jscomp$844:b.key$jscomp$844};b.key$jscomp$844=y;var J=function(E){return function(){return String(N[E.key$jscomp$844])}}(b);
q=q.replace(new RegExp("\\$\\{"+b.key$jscomp$844+"\\}","gi"),J);q=q.replace(new RegExp("\\$"+b.key$jscomp$844,"gi"),J)}return q};
_.R5=function(q,N){return EzZ(q in Zi?Zi[q]:{},N)};
EzZ=function(q,N){var b=_.M7("I18N_PLURAL_RULES");b||(b=function(y){return y==1?"one":"other"});
return(q=q["case"+N]||q[b(N)])?q.replace("#",N.toString()):N+""};
Fmd=function(q){var N=gzu(q),b=document.getElementById(N),y=b&&hUe(b);y||b&&!y||(b=ZOR(q,N,function(){if(!hUe(b)){DCd(b);_.v0R(N);var J=_.dg(_.Y_A,N);_.Yf(J,0)}}))};
ZOR=function(q,N,b){var y=document.createElement("link");y.id=N;y.onload=function(){b&&setTimeout(b,0)};
q=_.sN(q);_.u$(y,q,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(y);return y};
gzu=function(q){var N=_.iC("A");AB(N,Ix(q));return"css-"+Ue(N.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.dMC=function(q){var N=Rad();q!==N&&(N=_.c3(),!_.x("web_autonav_allow_off_by_default")&&q||_.uG(0,141,!0),_.uG(0,140,!q),N.save())};
Rad=function(){var q=_.c3();return _.x("web_autonav_allow_off_by_default")&&!q.getFlag(141)&&_.M7("AUTONAV_OFF_BY_DEFAULT")?!1:!q.getFlag(140)};
cTD=function(q,N){var b,y;q=((b=q.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(y=b.videoAuthorizationToken)==null?void 0:y.credentialTransferTokens)||[];for(b=0;b<q.length;++b)if(q[b].scope===N)return q[b].token||void 0};
u6d=function(q){for(var N=0,b=0;b<q.length;b++)N=N*31+q.charCodeAt(b),b<q.length-1&&(N%=0x800000000000);return N%1E5};
_.zr=function(q){return _.Ng("ytcsi."+(q||"")+"data_")||zaZ(q)};
_.$Mz=function(q){q=_.zr(q);q.metadata||(q.metadata={});return q.metadata};
_.tDu=function(q){q=_.zr(q);q.tick||(q.tick={});return q.tick};
_.$o=function(q){q=_.zr(q);if(q.gel){var N=q.gel;N.gelInfos||(N.gelInfos={});N.gelTicks||(N.gelTicks={})}else q.gel={gelTicks:{},gelInfos:{}};return q.gel};
_.mMZ=function(q){q=_.$o(q);q.gelInfos||(q.gelInfos={});return q.gelInfos};
rTh=function(q){var N=_.zr(q).nonce;N||(N=vy(16),_.zr(q).nonce=N);return N};
zaZ=function(q){var N={tick:{},info:{}};_.zn("ytcsi."+(q||"")+"data_",N);return N};
Xad=function(){var q=_.Ng("ytcsi.debug");q||(q=[],_.zn("ytcsi.debug",q),_.zn("ytcsi.reference",{}));return q};
_.te=function(q){q=q||"";var N=VDu();if(N[q])return N[q];var b=Xad(),y={timerName:q,info:{},tick:{},span:{},jspbInfo:[]};b.push(y);return N[q]=y};
jte=function(q){q=q||"";var N=VDu();N[q]&&delete N[q];var b=Xad(),y={timerName:q,info:{},tick:{},span:{},jspbInfo:[]};b.push(y);N[q]=y};
VDu=function(){var q=_.Ng("ytcsi.reference");if(q)return q;Xad();return _.Ng("ytcsi.reference")};
_.vzn=function(q){return xMn[q]||"LATENCY_ACTION_UNKNOWN"};
OOC=function(q,N,b){b=b===void 0?{}:b;var y=!1;_.ou("ytLoggingEventsDefaultDisabled",!1)&&(y=!0);y=y?null:S0;b=b===void 0?{}:b;var J=Math.round(b.timestamp||(0,_.mA)());_.fo(N,1,J<Number.MAX_SAFE_INTEGER?J:0);J=new GIJ;if(b.lact)_.fo(J,1,isFinite(b.lact)?b.lact:-1);else if(b.timestamp)_.fo(J,1,-1);else{var E=_.tr();_.fo(J,1,isFinite(E)?E:-1)}if(b.sequenceGroup&&!_.x("web_gel_sequence_info_killswitch")){E=b.sequenceGroup;var F=k4D(E),R=new YjA;_.fo(R,2,F);_.Up(R,1,E);_.ws(J,3,R);b.endOfSequence&&delete Qtz[b.sequenceGroup]}_.ws(N,
33,J);(b.sendIsolatedPayload?n0n:adR)(q,{endpoint:"log_event",payload:N,cttAuthInfo:b.cttAuthInfo,dangerousLogToVisitorSession:b.dangerousLogToVisitorSession},y)};
_.rg=function(){return(_.x("csi_use_time_origin")||_.x("csi_use_time_origin_tvhtml5"))&&_.mO.timeOrigin?Math.floor(_.mO.timeOrigin):_.mO.timing.navigationStart};
_.wad=function(q,N){_.XE("_start",q,N)};
_.V6=function(q,N){if(!_.x("web_csi_action_sampling_enabled")||!_.zr(N).actionDisabled){var b=_.te(N||"");_.Kx(b.info,q);q.loadType&&(b=q.loadType,_.$Mz(N).loadType=b);_.Kx(_.mMZ(N),q);b=rTh(N);N=_.zr(N).cttAuthInfo;iOR().info(q,b,N)}};
lDn=function(){var q,N,b,y;return((y=_.tz().resolve(_.$f(T6))==null?void 0:(q=s2())==null?void 0:(N=q.loggingHotConfig)==null?void 0:(b=N.csiConfig)==null?void 0:b.debugTicks)!=null?y:[]).map(function(J){return Object.values(J)[0]})};
_.XE=function(q,N,b){if(!_.x("web_csi_action_sampling_enabled")||!_.zr(b).actionDisabled){var y=rTh(b),J;if(J=_.x("web_csi_debug_sample_enabled")&&y){(_.tz().resolve(_.$f(T6))==null?0:s2())&&!KmR&&(KmR=!0,_.XE("gcfl",(0,_.mA)(),b));var E,F,R;J=(_.tz().resolve(_.$f(T6))==null?void 0:(E=s2())==null?void 0:(F=E.loggingHotConfig)==null?void 0:(R=F.csiConfig)==null?void 0:R.debugSampleWeight)||0;if(E=J!==0)b:{E=lDn();if(E.length>0)for(F=0;F<E.length;F++)if(q===E[F]){E=!0;break b}E=!1}E?(J=u6d(y)%J!==0,
_.zr(b).debugTicksExcludedLogged||(E={},E.debugTicksExcluded=J,_.V6(E,b)),_.zr(b).debugTicksExcludedLogged=!0):J=!1}if(!J){q[0]!=="_"&&DMA(q,b,N);J=_.te(b||"");J.tick[q]=N||(0,_.mA)();if(J.callback&&J.callback[q])for(J=_.Z(J.callback[q]),E=J.next();!E.done;E=J.next())E=E.value,E();J=_.$o(b);J.gelTicks&&(J.gelTicks[q]=!0);E=_.tDu(b);J=N||(0,_.mA)();_.x("log_repeated_ytcsi_ticks")?q in E||(E[q]=J):E[q]=J;E=_.zr(b).cttAuthInfo;q==="_start"?iOR().baseline(y,N,E):iOR().tick(q,y,N,E);_.haJ(b);return J}}};
DMA=function(q,N,b){if(_.mO.mark)if(q.startsWith("mark_")||(q="mark_"+q),N&&(q+=" ("+N+")"),b===void 0||_.x("web_csi_disable_alt_time_performance_mark"))_.mO.mark(q);else{b=_.x("csi_use_performance_navigation_timing")?b-_.mO.timeOrigin:b-(_.mO.timeOrigin||_.mO.timing.navigationStart);try{_.mO.mark(q,{startTime:b})}catch(y){}}};
kIC=function(){var q,N=(q=_.mO.getEntriesByType)==null?void 0:q.call(_.mO,"mark");N&&N.forEach(function(b){if(b.name.startsWith("mark_")){var y;(y=_.mO.clearMarks)==null||y.call(_.mO,b.name)}})};
_.UMJ=function(){switch(ZtA()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.fDJ=function(q){var N={},b=function(E,F,R){F=F.match("_rid")?F.split("_rid")[0]:F;typeof R==="number"&&(R=JSON.stringify(R));E.requestIds?E.requestIds.push({endpoint:F,id:R}):E.requestIds=[{endpoint:F,id:R}]};
q=_.Z(Object.entries(q));for(var y=q.next();!y.done;y=q.next()){var J=_.Z(y.value);y=J.next().value;J=J.next().value;switch(y){case "GetBrowse_rid":b(N,y,J);break;case "GetGuide_rid":b(N,y,J);break;case "GetHome_rid":b(N,y,J);break;case "GetPlayer_rid":b(N,y,J);break;case "GetSearch_rid":b(N,y,J);break;case "GetSettings_rid":b(N,y,J);break;case "GetTrending_rid":b(N,y,J);break;case "GetWatchNext_rid":b(N,y,J);break;case "yt_red":N.isRedSubscriber=!!J;break;case "yt_ad":N.isMonetized=!!J}}return N};
IDd=function(q,N,b,y,J,E){if(!_.x("web_csi_action_sampling_enabled")||!_.zr(E).actionDisabled){var F=_.$o(E);if(F.gelSpans)F.gelSpans[q]=!0;else{var R={};F.gelSpans=(R[q]=!0,R)}CQJ++;q={spanName:q,spanLengthUsec:String(Math.round(N*1E3)),spanNonce:CQJ};y&&(q.spanInfo=y);J&&(q.parentSpanNonce=J);b&&(q.spanStartTimeUsec=String(Math.round(b*1E3)));_.te(E||"").span[String(q.spanName)]=q;b=_.$o(E);b.gelSpans||(b.gelSpans={});_.Kx(b.gelSpans,q);b=rTh(E);E=_.zr(E).cttAuthInfo;iOR().span(q,b,E);return q.spanNonce}};
_.TUn=function(q){var N=_.jg("aft",q);if(N)return N;N=_.M7((q||"")+"TIMING_AFT_KEYS",["ol"]);for(var b=N.length,y=0;y<b;y++){var J=_.jg(N[y],q);if(J)return J}return NaN};
_.stn=function(q,N){_.zn("ytglobal.timing"+(N||"")+"ready_",q)};
_.jg=function(q,N){if(q=_.tDu(N)[q])return typeof q==="number"?q:q[q.length-1]};
_.haJ=function(q){var N=_.jg("_start",q),b=_.TUn(q),y=!nzz;N&&b&&y&&(UKn(aDn,new Sjn(Math.round(b-N),q)),nzz=!0)};
Lmu=function(q){zaZ(q);Wmd();kIC();q||(_.M7("TIMING_ACTION")&&_.PC("PREVIOUS_ACTION",_.M7("TIMING_ACTION")),_.PC("TIMING_ACTION",""))};
_.pau=function(q){q=q===void 0?{}:q;_.qg(function(){xo();jte();Lmu();_.stn(!1);q.cttAuthInfo&&(_.zr().cttAuthInfo=q.cttAuthInfo);_.PC("TIMING_AFT_KEYS",[]);q.isHot?_.v3({loadType:"hot"}):_.v3({loadType:"warm"});_.PC("TIMING_ACTION","");delete _.M7("TIMING_INFO",{}).yt_lt;_.qg(_.wad)(q.startTime,void 0)})()};
_.Yo=function(q,N,b,y){N=N===void 0?{}:N;_.qg(function(){var J=b?b:q;Gr(J);var E=N.sampleRate;if(!_.x("web_csi_action_sampling_enabled")||E===void 0||E<=1)E=!1;else{var F=rTh(J);E=u6d(F)%E!==0}E&&(_.zr(J).actionDisabled=!0);_.te(J||"").info.actionType=q;N.cttAuthInfo&&(_.zr(J).cttAuthInfo=N.cttAuthInfo);_.PC(J+"TIMING_ACTION",q);_.qg(_.wad)(N.startTime,J);E={actionType:y||_.vzn(q)};N.logPreviousAction&&(E.previousAction=_.vzn(_.M7("TIMING_ACTION")));(F=_.Oe())&&F!=="UNDEFINED_CSN"&&(E.clientScreenNonce=
F);_.v3(E,J);_.stn(!0,J)})()};
Gr=function(q){_.qg(function(){xo(q);jte(q);Lmu(q)})()};
PQA=function(){_.qg(function(){var q=[],N;for(N in _.Ng("ytcsi.".slice(0,-1)))N.endsWith("data_")&&q.push(N.slice(0,-5));q=_.Z(q);for(N=q.next();!N.done;N=q.next())Gr(N.value);xo()})()};
_.ozu=function(q){return _.qg(function(){return _.MDh("_start",q)})()};
_.v3=function(q,N,b){_.qg(_.V6)(q,N,b===void 0?!1:b)};
_.Q6=function(q,N,b){return _.qg(_.XE)(q,N,b)};
_.MDh=function(q,N){return _.qg(function(){var b=_.tDu(N);return q in b})()};
ean=function(q){if(!_.x("universal_csi_network_ticks"))return"";q=_.wO(q)||"";for(var N=Object.keys(ATA),b=0;b<N.length;b++){var y=N[b];if(q.includes(y))return y}return""};
HOA=function(q){if(!_.x("universal_csi_network_ticks"))return function(){};
var N=ATA[q];return N?(_.OY(N),function(){var b=_.x("universal_csi_network_ticks")?(b=BUA[q])?_.OY(b):!1:!1;return b}):function(){}};
_.OY=function(q,N,b){return _.qg(function(){if(_.MDh(q,b))return!1;_.Q6(q,N,b);return!0})()};
_.wg=function(q,N,b){_.qg(function(){if(!_.ozu(b)||_.MDh(q,b))return!1;_.Q6(q,N,b);return!0})()};
_.iG=function(q){return _.qg(_.jg)(q,void 0)};
xo=function(q){_.ozu(q)&&_.Q6("aa",void 0,q)};
_.JIz=function(q,N,b,y,J,E,F,R,c){var z=qMu();R=new Gy({veType:N,youtubeData:E,jspbYoutubeData:R});E=Di({},z);J&&(E.cttAuthInfo=J);J={csn:z,pageVe:R.getAsJson()};_.x("expectation_logging")&&c&&c.screenCreatedLoggingExpectations&&(J.screenCreatedLoggingExpectations=c.screenCreatedLoggingExpectations);b&&b.visualElement?(J.implicitGesture={parentCsn:b.clientScreenNonce,gesturedVe:b.visualElement.getAsJson()},F&&(J.implicitGesture.gestureType=F)):b&&_.M6(new _.IO("newScreen() parent element does not have a VE - rootVe",
N));y&&(J.cloneCsn=y);q?ap("screenCreated",J,q,E):_.W_("screenCreated",J,E);UKn(a4h,new NeD(z));he.clear();bmd.clear();yIA.clear();return z};
ko=function(q,N,b,y,J,E){E=E===void 0?{}:E;E3C(q,N,b,[y],J===void 0?!1:J,E)};
E3C=function(q,N,b,y,J,E){J=J===void 0?!1:J;E=E===void 0?{}:E;Object.assign(E,Di({cttAuthInfo:wy(N)||void 0},N));for(var F=_.Z(y),R=F.next();!R.done;R=F.next()){R=R.value;var c=R.getAsJson();(_.nM.isEmpty(c)||!c.trackingParams&&!c.veType)&&_.M6(Error("Bf"));if(_.x("no_client_ve_attach_unless_shown")){var z=g3n(R,N);if(c.veType&&!bmd.has(z)&&!yIA.has(z)&&!J){if(!_.x("il_attach_cache_limit")||he.size<1E3){he.set(z,[q,N,b,R]);return}_.x("il_attach_cache_limit")&&he.size>1E3&&_.M6(new _.IO("IL Attach cache exceeded limit"))}R=
g3n(b,N);he.has(R)?Zmd(b,N):yIA.set(R,!0)}}y=y.filter(function(m){m.csn!==N?(m.csn=N,m=!0):m=!1;return m});
b={csn:N,parentVe:b.getAsJson(),childVes:_.aW(y,function(m){return m.getAsJson()})};
N==="UNDEFINED_CSN"?UY("visualElementAttached",E,b):q?ap("visualElementAttached",b,q,E):_.W_("visualElementAttached",b,E)};
Rsn=function(q,N,b,y,J){FJJ(q,N,b,J)};
FJJ=function(q,N,b,y){dzZ(b,N);var J=Di({cttAuthInfo:wy(N)||void 0},N);b={csn:N,ve:b.getAsJson(),eventType:1};y&&(b.clientData=y);N==="UNDEFINED_CSN"?UY("visualElementShown",J,b):q?ap("visualElementShown",b,q,J):_.W_("visualElementShown",b,J)};
cIh=function(q,N,b,y){dzZ(b,N);var J=Di({cttAuthInfo:wy(N)||void 0},N);b={csn:N,ve:b.getAsJson(),eventType:4};y&&(b.clientData=y);N==="UNDEFINED_CSN"?UY("visualElementShown",J,b):q?ap("visualElementShown",b,q,J):_.W_("visualElementShown",b,J)};
uFD=function(q,N,b,y,J){var E=(y=y===void 0?!1:y)?16:8;y=Di({cttAuthInfo:wy(N)||void 0,endOfSequence:y},N);b={csn:N,ve:b.getAsJson(),eventType:E};J&&(b.clientData=J);N==="UNDEFINED_CSN"?UY("visualElementHidden",y,b):q?ap("visualElementHidden",b,q,y):_.W_("visualElementHidden",b,y)};
$zD=function(q,N,b,y,J){zsR(q,N,b,void 0,y,J)};
zsR=function(q,N,b,y,J){dzZ(b,N);y=y||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var E=Di({cttAuthInfo:wy(N)||void 0},N);b={csn:N,ve:b.getAsJson(),gestureType:y};J&&(b.clientData=J);N==="UNDEFINED_CSN"?UY("visualElementGestured",E,b):q?ap("visualElementGestured",b,q,E):_.W_("visualElementGestured",b,E)};
tOA=function(q,N,b,y){var J=Di({cttAuthInfo:wy(N)||void 0},N);b={csn:N,ve:b.getAsJson(),clientData:y};N==="UNDEFINED_CSN"?UY("visualElementStateChanged",J,b):q?ap("visualElementStateChanged",b,q,J):_.W_("visualElementStateChanged",b,J)};
mzz=function(){var q=yGJ(16);for(var N=[],b=0;b<q.length;b++)N.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(q[b]&63));return N.join("")};
UY=function(q,N,b){rIR.push({payloadName:q,payload:b,jspbPayload:void 0,options:N});Xbd||(Xbd=WlC())};
n8D=function(q){if(rIR){for(var N=_.Z(rIR),b=N.next();!b.done;b=N.next())b=b.value,b.payload&&(b.payload.csn=q.csn,_.W_(b.payloadName,b.payload,b.options));rIR.length=0}Xbd=0};
g3n=function(q,N){return""+q.getAsJson().veType+q.getAsJson().veCounter+N};
dzZ=function(q,N){if(_.x("no_client_ve_attach_unless_shown")){var b=g3n(q,N);bmd.set(b,!0);Zmd(q,N)}};
Zmd=function(q,N){q=g3n(q,N);he.has(q)&&(N=he.get(q)||[],ko(N[0],N[1],N[2],N[3],!0),he.delete(q))};
Di=function(q,N){_.x("log_sequence_info_on_gel_web")&&(q.sequenceGroup=N);return q};
_.fr=function(q,N,b){_.qg(ko)(void 0,q,N,b)};
_.Cr=function(q,N,b){_.qg(E3C)(void 0,q,N,b)};
_.I5=function(q,N){_.qg(Rsn)(void 0,q,N,void 0,void 0,void 0)};
_.Tr=function(q,N,b){_.qg(function(){_.Jz(N,function(y){cIh(void 0,q,y,b)})})()};
_.sY=function(q,N,b,y){_.qg(function(){_.Jz(N,function(J){uFD(void 0,q,J,b,y)})})()};
_.nr=function(q,N,b){_.qg($zD)(void 0,q,N,b,void 0)};
_.a5=function(q,N,b,y){_.qg(zsR)(void 0,q,N,b,y,void 0)};
_.Sg=function(q,N,b){_.qg(tOA)(void 0,q,N,b,void 0)};
VOA=function(q,N){W3.set(q,N)};
jMd=function(q){Lr.initialized=!0;Lr.sessionId=q.sessionId||"";Lr.enabledSpans=q.enabledSpans;q.shouldSampleFn!=null&&(Lr.shouldSampleFn=q.shouldSampleFn)};
xzA=function(q){Lr.processors.push(q)};
v3Z=function(q){return Lr.initialized?Lr.enabledSpans?Lr.enabledSpans[q]:!0:!1};
OmD=function(q,N,b){return v3Z(q)&&Lr.shouldSampleFn(q,N,GDz)?new YMn(q,N,b):QMn};
wbd=function(q,N,b){if(typeof b==="function"){var y=b;b=void 0}var J=OmD(q,N,b),E;if(((E=b)==null?void 0:E.endTime)!=null)return y&&_.M6(Error("Ff")),J;var F;J!==QMn&&((F=b)==null?void 0:F.active)!==!1&&Lr.stack.push(J);if(!y)return J;if(J===QMn)return y(J);try{var R=y(J);if(R instanceof Promise)return R.then(function(c){J.end();return c},function(c){J.end(2);
throw c;});
J.end();return R}catch(c){throw J.end(2),c;}};
lOu=function(){e0.subscribe("handleError",function(q){try{for(var N in imA)try{var b=imA[N];typeof imA[N]==="function"&&(b=b());q.params[N]=typeof imA[N]==="object"?JSON.stringify(b):String(b)}catch(y){_.M6(y)}}catch(y){_.M6(y)}})};
KJn=function(){};
DzR=function(q,N){var b=Object.keys(q);q=new _.IO("[Command Handler] "+N,{filteredCommandNames:b,originalCommand:q});_.po(q)};
hsJ=function(q,N){DzR(q,N+" was called but not set")};
kDe=function(q){return function(){return new q}};
pr=function(q){return function(){return _.tz().resolve(q)}};
Uzn=function(q,N){var b=_.v(q,_.qr);if(b&&(b=N[b.signal]))return b();q=_.Z(Object.keys(q));for(b=q.next();!b.done;b=q.next())if(b=b.value,N[b]&&(b=N[b]))return b()};
_.P3=function(q,N,b,y){return{browseEndpoint:{browseId:q},commandMetadata:{webCommandMetadata:{url:N,rootVe:b,webPageType:y===void 0?"WEB_PAGE_TYPE_BROWSE":y}}}};
fOD=function(q,N,b){var y=N=N===void 0?0:N;b=b===void 0?0:b;var J=b-y;return _.Mc(q,"PPSV",void 0,void 0,(J>600?0:J<60||b<=0||y/b>.9)?0:N)};
_.Mc=function(q,N,b,y,J){var E="/watch?v="+q;q={videoId:q};N&&(q.playlistId=N,E+="&list="+N);y&&(E+="&pp="+y);J&&(q.startTimeSeconds=J,E+="&t="+J+"s");N={watchEndpoint:q,commandMetadata:{webCommandMetadata:{url:E,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};b&&(N.clickTrackingParams=b);y&&(_.v(N,_.nx).playerParams=y);return N};
CoZ=function(q){return{browseEndpoint:{browseId:"VL"+q},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+q,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
IOJ=function(q){if(q){var N;if(q){var b=(N=_.v(q.commandMetadata,_.gg))==null?void 0:N.url;N=!(!b||b==="/service_ajax")}else N=!1;if(N)return q;var y;if(q=(y=_.v(q,_.y6))==null?void 0:y.commands)for(y=_.Z(q),q=y.next();!q.done;q=y.next())if(q=IOJ(q.value))return q}};
_.o5=function(q){return{runs:[{text:q}]}};
Tez=function(q,N){return q&&N?{runs:[{text:q,navigationEndpoint:N}]}:void 0};
Ae=function(q){return q?_.o5(q):void 0};
_.eg=function(q){return q?{simpleText:q}:void 0};
_.B3=function(q){var N=q.type;q=q.payload;N={type:N};q!==void 0&&(N.payload=q);return N};
sMD=function(q,N,b){for(var y=Object.assign({},q),J=_.Z(Object.keys(N)),E=J.next();!E.done;E=J.next()){E=E.value;var F=q[E],R=N[E];if(R===void 0)delete y[E];else if(F===void 0)y[E]=R;else if(Array.isArray(R)&&Array.isArray(F))y[E]=b?[].concat(_.a9(F),_.a9(R)):R;else if(!Array.isArray(R)&&_.AZ(R)&&!Array.isArray(F)&&_.AZ(F))y[E]=sMD(F,R,b);else if(typeof R===typeof F)y[E]=R;else return N=new _.IO("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:E,originalValue:F,updateValue:R}),
_.po(N),q}return y};
SMd=function(q){if(!q.length)return"";try{if(n3D)return n3D.decode(q);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(q)}catch(F){}for(var N=0,b=[],y=q.length;N<y;){for(var J=0;J<1024&&N<y;){var E=q[N++];if(E<128)aOR[J++]=E;else{if(E<224)E=(E&31)<<6|q[N++]&63;else if(E<240)E=(E&15)<<12|(q[N++]&63)<<6|q[N++]&63;else{if(J+1===1024){--N;break}E=(E&7)<<18|(q[N++]&63)<<12|(q[N++]&63)<<6|q[N++]&63;E-=65536;aOR[J++]=55296|E>>10;E=56320|E&1023}aOR[J++]=E}}E=String.fromCharCode.apply(String,
aOR);J<1024&&(E=E.substring(0,J));b.push(E)}return b.join("")};
LJu=function(q,N){var b;if((b=WJd)==null?0:b.encodeInto)return N=WJd.encodeInto(q,N),N.read<q.length?q.length*4:N.written;for(var y=b=0;y<q.length;y++){var J=q.charCodeAt(y);J<128?N[b++]=J:(J<2048?N[b++]=J>>6|192:((J&64512)===55296&&y+1<q.length&&(q.charCodeAt(y+1)&64512)===56320?(J=65536+((J&1023)<<10)+(q.charCodeAt(++y)&1023),N[b++]=J>>18|240,N[b++]=J>>12&63|128):N[b++]=J>>12|224,N[b++]=J>>6&63|128),N[b++]=J&63|128)}return b};
pbu=function(q,N,b){if(N&&b&&b.buffer===N.exports.memory.buffer){var y=N.realloc(b.byteOffset,q);if(y)return new Uint8Array(N.exports.memory.buffer,y,q)}q=N?new Uint8Array(N.exports.memory.buffer,N.malloc(q),q):new Uint8Array(q);b&&q.set(b);return q};
_.qR=function(q){q=new Pod(new MOe([_.HA(decodeURIComponent(q))]));if(o3z(q,2)){var N=H3(q);var b=q.pos;var y=q.arrayView;b=b===void 0?0:b;var J=N===void 0?-1:N;b=b===void 0?0:b;J=J===void 0?-1:J;if(y.totalLength&&J){J<0&&(J=y.totalLength-b);y.focus(b);if(!(b-y.arrayPos+J<=y.arrays[y.arrayIdx].length)){var E=y.arrayIdx,F=y.arrayPos;y.focus(b+J-1);F=new Uint8Array(y.arrayPos+y.arrays[y.arrayIdx].length-F);for(var R=0,c=E;c<=y.arrayIdx;c++)F.set(y.arrays[c],R),R+=y.arrays[c].length;y.arrays.splice(E,
y.arrayIdx-E+1,F);y.arrayIdx=0;y.arrayPos=0;y.focus(b)}E=y.arrays[y.arrayIdx];y=new DataView(E.buffer,E.byteOffset+b-y.arrayPos,J)}else y=new DataView(new ArrayBuffer(0));y=new Uint8Array(y.buffer,y.byteOffset,y.byteLength);q.pos+=N;N=y}else N=void 0;N=N?SMd(N):void 0;q=o3z(q,4)?H3(q):void 0;y=AIu[q];if(typeof y==="undefined")throw q=new _.IO("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:q}),_.po(q),q;return{entityTypeFieldNumber:q,entityType:y,entityId:N}};
_.yU=function(q,N,b){b=b===void 0?0:b;var y=new esh;if(WJd)q=WJd.encode(q);else{var J=new Uint8Array(Math.ceil(q.length*1.2)),E=LJu(q,J);J.length<E&&(J=new Uint8Array(E),E=LJu(q,J));J.length>E&&(J=J.subarray(0,E));q=J}q!==void 0&&(NR(y,18),J=q.length,NR(y,J),bg(y,J),y.buf.set(q,y.pos),y.pos+=J);q=Bed[N];if(typeof q==="undefined")throw b=new _.IO("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:N}),_.po(b),b;q!==void 0&&(NR(y,32),NR(y,q));NR(y,40);NR(y,1);N=new Uint8Array(y.buf.buffer,
y.buf.byteOffset,y.pos);return encodeURIComponent(_.Uf(N,b))};
Hmd=function(q){q=q.key||q.id;if(!q)throw Error("Hf");return q};
Nwh=function(q,N){q=q===void 0?{}:q;return qSJ(q,N)};
bPd=function(q,N,b,y){if(y===void 0)return y=Object.assign({},q[N]||{}),b=(delete y[b],y),y={},Object.assign({},q,(y[N]=b,y));var J={},E={};return Object.assign({},q,(E[N]=Object.assign({},q[N],(J[b]=y,J)),E))};
y2z=function(q,N,b,y,J){var E=q[N];if(E==null||!E[b])return q;y=sMD(E[b],y,J==="REPEATED_FIELDS_MERGE_OPTION_APPEND");J={};E={};return Object.assign({},q,(E[N]=Object.assign({},q[N],(J[b]=y,J)),E))};
_.Ji=function(q,N,b){return q[N]?q[N][b]||null:null};
E6Z=function(){if(J2J)return J2J();var q={};J2J=tS("PersistentEntityStoreDb",{objectStores:(q.EntityStore={addedAtVersion:1},q.EntityAssociationStore={addedAtVersion:2},q),shared:!1,upgrade:function(N,b){b(1)&&q6(Hv(N,"EntityStore",{keyPath:"key"}),"entityType","entityType");b(2)&&(N=Hv(N,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),q6(N,"byParentEntityKey","parentEntityKey"),q6(N,"byChildEntityKey","childEntityKey"))},
version:3});return J2J()};
g6n=function(q){return _.Z3(E6Z(),q)};
ER=function(q){return window.Int32Array?new Int32Array(q):Array(q)};
FNn=function(q){return _.Z3(ZPh(),q)};
RPZ=function(q){return new g3("WRONG_DATA_TYPE",{encoderVersion:q})};
dAd=function(q){return q instanceof Error?new g3("UNKNOWN_ENCODE_ERROR",{originalMessage:q.message}):new g3("UNKNOWN_ENCODE_ERROR")};
c2n=function(q){return q instanceof Error?new g3("UNKNOWN_DECODE_ERROR",{originalMessage:q.message}):new g3("UNKNOWN_DECODE_ERROR")};
u2A=function(q,N){q=q instanceof g3?q:N(q);_.po(q);throw q;};
zPn=function(q){q=(new TextEncoder).encode(q).subarray(0,16);var N=new Uint8Array(16);N.set(q);return N};
tUd=function(q){var N=$AC[q];if(N)return N;_.M6(new _.IO("Entity model not found.",{entityType:q}))};
_.ZC=function(){mAd||(mAd=r2n());return mAd};
r2n=function(){var q,N,b;return _.d(function(y){if(y.nextAddress==1)return _.Yi(y,2),y.yield(_.$5(),4);if(y.nextAddress!=2){q=y.yieldResult;if(!q||!_.C4()||typeof _.JZ.BroadcastChannel==="undefined")return y.return();N=new XWh;return y.return(new Ft(q,N))}b=_.K7(y);b instanceof Error&&_.po(b);return y.return()})};
_.Ro=function(q,N){var b;return _.d(function(y){if(y.nextAddress==1){b=q.mutations;if(!b||b.length<=0)return y.return();N&&N.dispatch(_.B3({type:"ENTITY_LOADED",payload:b}));return y.yield(VUd(b),2)}b.length=0;_.hj(y)})};
VUd=function(q){var N;return _.d(function(b){return b.nextAddress==1?b.yield(_.ZC(),2):(N=b.yieldResult)?b.yield(_.d3(N,"readwrite",function(y){for(var J={},E=_.Z(q),F=E.next(),R={};!F.done;R={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},F=E.next())R.mutation$jscomp$8=F.value,R.mutation$jscomp$8.entityKey&&jzA(R.mutation$jscomp$8)&&(R.mutationEntityType$jscomp$3=(0,_.nM.getAnyKey)(R.mutation$jscomp$8.payload),F=void 0,R.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(F=function(c){return function(){return _.xAZ(y,
c.mutation$jscomp$8.payload[c.mutationEntityType$jscomp$3],c.mutationEntityType$jscomp$3)}}(R)),R.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(F=function(c){return function(){return v6d(y,c.mutation$jscomp$8.entityKey)}}(R)),R.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(F=function(c){return function(){return GVe(y,c.mutation$jscomp$8.entityKey,c.mutation$jscomp$8.payload[c.mutationEntityType$jscomp$3],c.mutationEntityType$jscomp$3)}}(R)),F&&(J[R.mutation$jscomp$8.entityKey]=
J[R.mutation$jscomp$8.entityKey]?J[R.mutation$jscomp$8.entityKey].then(F):F()));
return qm.all(Object.values(J))}),0):b.return()})};
jzA=function(q){var N;q=(N=q.options)==null?void 0:N.persistenceOption;return q==="ENTITY_PERSISTENCE_OPTION_PERSIST"||q==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
OPD=function(q,N){var b,y;_.d(function(J){if(J.nextAddress==1)return J.yield(_.ZC(),2);if(J.nextAddress!=3)return(b=J.yieldResult)?J.yield(_.d3(b,"readonly",function(E){var F={},R=Object.keys(N).map(function(c){var z=N[c]?[].concat(_.a9(N[c])):[];return YSz(E,c,z,F)});
return qm.all(R).then(function(){return F})}),3):J.return();
y=J.yieldResult;Object.keys(y).length>0&&q.dispatch(QzR(y));_.hj(J)})};
YSz=function(q,N,b,y){return cT(q,N,b).then(function(J){y[N]=wWh(b,J)})};
wWh=function(q,N){if(N.length!==q.length)throw Error("Kf");return N.reduce(function(b,y,J){b[q[J]]=y;return b},{})};
KNC=function(q){var N=q.filter(function(J){var E;return(J==null?void 0:(E=J.transferEntity)==null?void 0:E.transferState)==="TRANSFER_STATE_COMPLETE"}).length,b=q.filter(function(J){var E;
return(J==null?void 0:(E=J.transferEntity)==null?void 0:E.transferState)==="TRANSFER_STATE_FAILED"}).length,y=q.filter(function(J){var E;
return(J==null?void 0:(E=J.transferEntity)==null?void 0:E.transferState)&&iPd.includes(J.transferEntity.transferState)});
if(!(N||y!=null&&y.length))return 0;N=_.lGJ(y)+N;q=q.length-b;return q===0?0:Math.round(N*100/q)/100};
_.lGJ=function(q){var N=[];N=N.concat.apply(N,_.a9(q.filter(function(E){return E.streamEntity}).map(function(E){var F=Object.assign({},E.streamEntity),R,c=(R=E.transferEntity)==null?void 0:R.transferState;
F.streamsProgress=F.streamsProgress||[];F.streamsProgress=F.streamsProgress.map(function(z){var m=Object.assign({},z);m.numBytesDownloaded=c==="TRANSFER_STATE_COMPLETE"?z.numTotalBytes:z.numBytesDownloaded;return m});
return F}).map(function(E){return E.streamsProgress})));
var b=q=0;N=_.Z(N);for(var y=N.next();!y.done;y=N.next()){var J=y.value;y=Number(J.numBytesDownloaded);J=Number(J.numTotalBytes);b+=isNaN(y)?0:y;q+=isNaN(J)?0:J}return q===0?0:Math.round(b*100/q)/100};
DAR=function(q){if(!q||!q.expirationTimestamp||!q.action)return!1;var N=(0,_.mA)()/1E3;return Number(q.expirationTimestamp)>=N};
ug=function(q){return q&&q.expirationTimestamp&&q.action?DAR(q)&&q.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.zC=function(q){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(q||"TRANSFER_STATE_UNKNOWN")};
hPh=function(q){var N=new esh;if(q!==void 0){var b=Math.ceil(Math.log2(q.length*4+2)/7);b=b===void 0?2:b;NR(N,10);N.submessagePosStack.push(N.pos);N.submessagePosStack.push(b);N.pos+=b;bg(N,q.length*1.2);b=LJu(q,N.buf.subarray(N.pos));N.pos+b>N.buf.length&&(bg(N,b),b=LJu(q,N.buf.subarray(N.pos)));N.pos+=b;q=N.submessagePosStack.pop();b=N.submessagePosStack.pop();for(var y=N.pos-b-q;q--;){var J=q?128:0;N.view.setUint8(b++,y&127|J);y>>=7}}N=new Uint8Array(N.buf.buffer,N.buf.byteOffset,N.pos);return(new TextDecoder("utf-8")).decode(N)};
_.$R=function(q){var N=0;q=_.Z(q);for(var b=q.next(),y={};!b.done;y={transferState$jscomp$3:void 0},b=q.next()){var J=b.value,E=void 0;b=(E=J.streamEntity)!=null?E:{};E=void 0;y.transferState$jscomp$3=(E=J.transferEntity)==null?void 0:E.transferState;E=J=void 0;((J=b)==null?0:(E=J.streamsProgress)==null?0:E.length)&&b.streamsProgress.forEach(function(F){return function(R){R=Number(F.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?R.numTotalBytes:R.numBytesDownloaded);isFinite(R)&&(N+=R)}}(y))}return N};
kVd=function(q){return q.some(function(N){var b;if(!(N==null?0:(b=N.transferEntity)==null?0:b.transferState)){var y;return!(N==null?0:(y=N.policyEntity)==null?0:y.action)||N.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return iPd.includes(N.transferEntity.transferState)})};
UAd=function(q,N){if(!N)return!1;if(_.x("of_pb_en_po_ks"))return!0;var b;q=(b=_.Ji(q,"offlineVideoPolicy",_.yU(N,"offlineVideoPolicy")))!=null?b:void 0;return!!q&&ug(q)};
_.Cdh=function(q){var N=["TRANSFER_STATE_COMPLETE"];N=N===void 0?fGd:N;return q.filter(function(b){var y,J;return N.includes((J=(y=b.transferEntity)==null?void 0:y.transferState)!=null?J:"TRANSFER_STATE_UNKNOWN")})};
IGJ=function(q,N){if(N){var b,y=(b=_.Ji(q,"playbackData",_.yU(N,"playbackData")))!=null?b:null,J;b=(J=_.Ji(q,"transfer",_.yU(N,"transfer")))!=null?J:null;var E;J=(E=_.Ji(q,"offlineVideoStreams",_.yU(N,"offlineVideoStreams")))!=null?E:null;var F;q=(F=_.Ji(q,"offlineVideoPolicy",_.yU(N,"offlineVideoPolicy")))!=null?F:null;if(y||b||J||q)return{playbackDataEntity:y,transferEntity:b,streamEntity:J,policyEntity:q}}};
_.ti=function(q){var N=q.playbackData;if(!N)return[];var b=[];N=_.Z(Object.keys(N));for(var y=N.next();!y.done;y=N.next()){var J=y.value;if(!Twe(q,_.qR(J).entityId)&&(y=IGJ(q,_.qR(J).entityId))){var E=void 0,F=void 0;J=(F=Number((E=_.Ji(q,"playbackData",J))==null?void 0:E.streamDownloadTimestampSeconds))!=null?F:(0,_.mA)();b.push({entity:y,streamDownloadTimestamp:J})}}return b.sort(function(R,c){var z=R.streamDownloadTimestamp,m=c.streamDownloadTimestamp;return m===z?R.entity.streamEntity&&!c.entity.streamEntity?
1:-1:m-z}).map(function(R){return R.entity})};
szd=function(q){return _.Cdh(_.ti(q))};
_.n6d=function(q){return _.ti(q).filter(function(N){var b;if(((b=N.policyEntity)==null?0:b.action)&&N.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var y;if((y=N.transferEntity)==null?0:y.transferState){var J;return iPd.includes((J=N.transferEntity)==null?void 0:J.transferState)}return!0})};
Twe=function(q,N){var b;return((b=_.Ji(q,"downloadStatusEntity",_.yU(N,"downloadStatusEntity")))==null?void 0:b.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
aGR=function(q){var N;if(q==null?0:(N=q.playbackDataEntity)==null?0:N.key)return _.qR(q.playbackDataEntity.key).entityId;var b;if(q==null?0:(b=q.transferEntity)==null?0:b.key)return _.qR(q.transferEntity.key).entityId;var y;if(q==null?0:(y=q.streamEntity)==null?0:y.key)return _.qR(q.streamEntity.key).entityId;var J;if(q==null?0:(J=q.policyEntity)==null?0:J.key)return _.qR(q.policyEntity.key).entityId};
WNn=function(q){var N=new Set,b;q=(b=q.mainDownloadsListEntity)==null?void 0:b[SSd];var y;if(!(q==null?0:(y=q.downloads)==null?0:y.length))return N;var J;q==null||(J=q.downloads)==null||J.forEach(function(E){(E==null?0:E.videoItem)&&N.add(E.videoItem)});
return N};
m5=function(q,N){if(N){var b=_.Ji(q,"mainVideoEntity",_.yU(N,"mainVideoEntity")),y=_.Ji(q,"downloadStatusEntity",_.yU(N,"downloadStatusEntity")),J=_.Ji(q,"ytMainChannelEntity",_.yU(N,"ytMainChannelEntity")),E={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};q=IGJ(q,N);y=(y==null?void 0:y.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.x("woffle_render_failed_download_state_ks")&&(y==null?void 0:y.downloadState)==="DOWNLOAD_STATE_FAILED";!q&&y&&(q=E);if(q&&b&&
J)return Object.assign({},{videoEntity:b,channelEntity:J},q)}};
pWu=function(q,N){return LNJ(q,N)==="TRANSFER_STATE_COMPLETE"&&UAd(q,N)};
PdA=function(q,N){if(!N)return!1;var b;q=(b=_.Ji(q,"playbackData",_.yU(N,"playbackData")))!=null?b:void 0;return!!q&&!!q.playerResponseJson};
LNJ=function(q,N){if(!N)return"TRANSFER_STATE_UNKNOWN";var b=_.Ji(q,"transfer",_.yU(N,"transfer"));if(b){var y;return(y=b.transferState)!=null?y:"TRANSFER_STATE_UNKNOWN"}b=_.Ji(q,"offlineOrchestrationActionWrapperEntity",_.yU(N,"offlineOrchestrationActionWrapperEntity"));q=_.Ji(q,"mainVideoEntity",_.yU(N,"mainVideoEntity"));return b||q?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
MUe=function(q,N){if(!N)return"TRANSFER_STATE_UNKNOWN";if(q=_.Ji(q,"transfer",_.yU(N,"transfer"))){var b;return(b=q.transferState)!=null?b:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
o6J=function(q,N){return N&&(q=_.Ji(q,"videoPlaybackPositionEntity",_.yU(N,"videoPlaybackPositionEntity")),q==null?0:q.lastPlaybackPositionSeconds)?Number(q.lastPlaybackPositionSeconds):0};
ePe=function(q,N){return A2A(q).some(function(b){var y;return(b==null?void 0:(y=b.mainPlaylistEntity)==null?void 0:y.playlistId)===N})};
HPz=function(q,N,b){var y=BwJ(q,N);if(!y.length)return[];N=[];y=_.Z(y);for(var J=y.next();!J.done;J=y.next()){J=J.value;var E=m5(q,J);b&&LNJ(q,J)!=="TRANSFER_STATE_COMPLETE"||E&&N.push(E)}return N};
BwJ=function(q,N){if(!N)return[];var b=_.yU(N,"mainPlaylistEntity"),y;N=(y=q.mainPlaylistEntity)==null?void 0:y[b];y=[];if(N==null||!N.videos)return y;N=_.Z(N.videos);for(b=N.next();!b.done;b=N.next()){b=b.value;var J=void 0,E=void 0,F=void 0,R=(J=q)==null?void 0:(E=J.mainPlaylistVideoEntity)==null?void 0:(F=E[b])==null?void 0:F.video;R&&(b=_.qR(R).entityId)&&y.push(b)}return y};
quh=function(q,N){if(N){var b=_.Ji(q,"mainPlaylistEntity",_.yU(N,"mainPlaylistEntity")),y=_.Ji(q,"mainPlaylistDownloadStateEntity",_.yU(N,"mainPlaylistDownloadStateEntity"));q=_.Ji(q,"ytMainChannelEntity",_.yU(N,"ytMainChannelEntity"));if(y&&b)return Object.assign({},{mainPlaylistEntity:b,mainPlaylistDownloadStateEntity:y},!!q&&{channelEntity:q})}};
A2A=function(q){return NTC(q).sort(function(N,b){return b.addedTimestampMillis-N.addedTimestampMillis}).map(function(N){return N.downloadedPlaylistEntities})};
NTC=function(q){var N=q.mainPlaylistDownloadStateEntity,b=[];if(!N)return b;for(var y=_.Z(Object.keys(N)),J=y.next();!J.done;J=y.next()){var E=J.value;J=quh(q,_.qR(E).entityId);var F=void 0;E=Number((F=N[E])==null?void 0:F.addedTimestampMillis);F=isNaN(E)?(0,_.mA)():E;J!==void 0&&b.push({downloadedPlaylistEntities:J,addedTimestampMillis:F})}return b};
bVe=function(q){var N,b=(N=q.mainPlaylistVideoEntity)!=null?N:{};return new Set(A2A(q).reduce(function(y,J){y=y===void 0?[]:y;var E,F;J==null||(E=J.mainPlaylistEntity)==null||(F=E.videos)==null||F.forEach(function(R){var c;(R=(c=b[R])==null?void 0:c.video)&&y.push(R)});
return y},[]))};
y$h=function(q){return"downloadedMusicPlaylistEntities"in q};
J$n=function(q){return"mainPlaylistEntity"in q&&"mainPlaylistDownloadStateEntity"in q};
EYR=function(q){return"videoEntity"in q&&"channelEntity"in q};
gYA=function(q){var N=q.musicPlaylistDownloadMetadataEntity,b=[];if(!N)return b;for(var y=_.Z(Object.keys(N)),J=y.next();!J.done;J=y.next()){J=J.value;a:{var E=q,F=_.qR(J).entityId;if(F){var R=_.Ji(E,"musicPlaylist",_.yU(F,"musicPlaylist"));E=_.Ji(E,"musicPlaylistDownloadMetadataEntity",_.yU(F,"musicPlaylistDownloadMetadataEntity"));if(R&&E){R={musicPlaylistEntity:R,musicPlaylistDownloadStateEntity:E};break a}}R=void 0}E=void 0;J=Number((E=N[J])==null?void 0:E.addedTimestampMillis);J=isNaN(J)?(0,_.mA)():
J;R!==void 0&&b.push({downloadedMusicPlaylistEntities:R,addedTimestampMillis:J})}return b};
ZVZ=function(q){var N=new Set;q=_.Z(q);for(var b=q.next();!b.done;b=q.next())if(b=b.value,"musicPlaylistEntity"in b&&"musicPlaylistDownloadStateEntity"in b){b=_.Z(b.musicPlaylistEntity.tracks);for(var y=b.next();!y.done;y=b.next())N.add(y.value)}return N};
Fuu=function(q,N){if(N){var b=_.Ji(q,"musicTrack",_.yU(N,"musicTrack")),y=_.Ji(q,"musicArtist",_.yU(N,"musicArtist"))||{};if((q=IGJ(q,N))&&b&&y)return Object.assign({},{musicTrackEntity:b,musicArtistEntity:y},q)}};
RZd=function(q){var N=q.musicTrackDownloadMetadataEntity,b=[];if(!N)return[];N=_.Z(Object.keys(N));for(var y=N.next();!y.done;y=N.next()){var J=y.value;y=Fuu(q,_.qR(J).entityId);var E=void 0;J=Number((E=_.Ji(q,"musicTrackDownloadMetadataEntity",J))==null?void 0:E.addedTimestampMillis);E=isNaN(J)?(0,_.mA)():J;y!==void 0&&b.push({downloadedMusicEntities:y,addedTimestampMillis:E})}return b};
u5C=function(q,N){if(!N)return[];if(Object.values(dTn).includes(N))return c$C(q,N);N=_.yU(N,"musicPlaylist");var b;q=(b=q.musicPlaylist)==null?void 0:b[N];b=[];if(q==null||!q.tracks)return b;q=_.Z(q.tracks);for(N=q.next();!N.done;N=q.next())(N=_.qR(N.value).entityId)&&b.push(N);return b};
c$C=function(q,N){var b=new Set,y=gYA(q).map(function(E){return E.downloadedMusicPlaylistEntities});
y=ZVZ(y);y=_.Z(y);for(var J=y.next();!J.done;J=y.next())(J=_.qR(J.value).entityId)&&b.add(J);return zZh(q).downloadedMusicEntities.filter(function(E){var F;if((F=E.musicTrackEntity)!=null&&F.videoId){E=E.musicTrackEntity;if(F=N==="PPOM"?!0:!b.has(E.videoId))b:switch(E=E.musicVideoType,N){case "PPSE":F=E==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:F=E!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}E=F}else E=!1;return E}).map(function(E){var F;
return(F=E.musicTrackEntity)==null?void 0:F.videoId})};
zZh=function(q){var N=RZd(q).sort(function(b,y){return y.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return"downloadedMusicEntities"in b?b.downloadedMusicEntities:y$h(b)?b.downloadedMusicPlaylistEntities:{}});
q=gYA(q).sort(function(b,y){return y.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return"downloadedMusicEntities"in b?b.downloadedMusicEntities:y$h(b)?b.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:N,downloadedMusicPlaylistEntities:q}};
t9d=function(q,N){N=_.M7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?u5C(q,N):BwJ(q,N);if(!N.length)return"TRANSFER_STATE_UNKNOWN";N=N.map(function(b){return MUe(q,b)});
return $Tz(N)};
$Tz=function(q){var N=new Set(q);if(N.has("TRANSFER_STATE_FAILED")&&N.size===1)return"TRANSFER_STATE_FAILED";N.delete("TRANSFER_STATE_FAILED");if(N.has("TRANSFER_STATE_UNKNOWN")&&N.size===1)return"TRANSFER_STATE_PRE_TRANSFER";N.delete("TRANSFER_STATE_UNKNOWN");if(N.has("TRANSFER_STATE_PRE_TRANSFER")&&N.size===1||N.size===0)return"TRANSFER_STATE_PRE_TRANSFER";q=N.has("TRANSFER_STATE_TRANSFERRING");N=N.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return q||N?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
r3=function(q){var N=q.mainVideoDownloadStateEntity,b=[];if(!N)return[];N=_.Z(Object.keys(N));for(var y=N.next();!y.done;y=N.next()){var J=y.value;if(!Twe(q,_.qR(J).entityId)){y=m5(q,_.qR(J).entityId);var E=void 0,F=void 0;J=(F=Number((E=_.Ji(q,"mainVideoDownloadStateEntity",J))==null?void 0:E.addedTimestampMillis))!=null?F:(0,_.mA)();y!==void 0&&b.push({downloadedVideoEntities:y,addedTimestampMillis:J})}}return b};
mTJ=function(q){return r3(q).sort(function(N,b){return b.addedTimestampMillis-N.addedTimestampMillis}).map(function(N){return N.downloadedVideoEntities})};
_.XQn=function(q){var N=bVe(q),b=_.Xt(q),y=WNn(q),J=r3(q).filter(function(F){var R,c;if((F==null?void 0:(R=F.downloadedVideoEntities)==null?void 0:(c=R.transferEntity)==null?void 0:c.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var z,m;F=F==null?void 0:(z=F.downloadedVideoEntities)==null?void 0:(m=z.videoEntity)==null?void 0:m.key;return _.x("kevlar_use_library_entity")?F&&(y.has(F)||b[F]):F&&!N.has(F)}),E=NTC(q).filter(function(F){return t9d(q,F.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.a9(J),_.a9(E)).sort(function(F,R){return R.addedTimestampMillis-F.addedTimestampMillis}).map(function(F){return r$n(F)})};
V9Z=function(q,N){if(N&&UAd(q,N)){var b,y,J=(y=(b=_.Ji(q,"playbackData",_.yU(N,"playbackData")))!=null?b:void 0)==null?void 0:y.playerResponseJson;if(J){try{var E=JSON.parse(J);var F=_.Ji(q,"transfer",_.yU(N,"transfer")),R=o6J(q,N);R&&(E=Object.assign({},E,{playerConfig:Object.assign({},E.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+R*1E3}}})}));E.cotn=F==null?void 0:F.cotn}catch(c){}return E}}};
_.xTA=function(q){var N,b,y;q=(y=(b=((N=q.downloadsPageViewConfigurationEntity)!=null?N:{})[_.VU])==null?void 0:b.smartDownloadsOptInBannerVisibility)!=null?y:{};var J;return(J=_.v(q,jRA))!=null?J:{}};
_.Xt=function(q){var N,b,y;q=(y=(b=((N=q.mainDownloadsListEntity)!=null?N:{})[_.vYh])==null?void 0:b.downloads)!=null?y:[];N={};b=_.Z(q);for(y=b.next();!y.done;y=b.next())q=void 0,N[(q=y.value.videoItem)!=null?q:""]=!0;return N};
GED=function(q){var N=_.Xt(q);if(Object.keys(N).length===0)return!1;var b=q.mainVideoEntity;if(!b)return!0;b=_.Z(Object.keys(b));for(var y=b.next();!y.done;y=b.next()){y=y.value;var J=_.qR(y).entityId;if(N[y]&&!Twe(q,J))return!1}return!0};
_.jN=function(q){var N=_.Xt(q);return r3(q).sort(function(b,y){return b.addedTimestampMillis-y.addedTimestampMillis}).map(function(b){return b.downloadedVideoEntities}).filter(function(b){var y;
return(b=b==null?void 0:(y=b.videoEntity)==null?void 0:y.key)&&!!N[b]})};
_.QRu=function(q){var N,b,y;q=(y=(b=((N=q.downloadsPageViewConfigurationEntity)!=null?N:{})[_.VU])==null?void 0:b.downloadsUpsellBannerVisibility)!=null?y:{};var J;return(J=_.v(q,Yud))!=null?J:{}};
r$n=function(q){return"downloadedVideoEntities"in q?q.downloadedVideoEntities:"downloadedPlaylistEntities"in q?q.downloadedPlaylistEntities:{}};
OVn=function(q){var N=_.Xt(q),b=bVe(q),y=r3(q).filter(function(J){var E,F;return(J=J==null?void 0:(E=J.downloadedVideoEntities)==null?void 0:(F=E.videoEntity)==null?void 0:F.key)&&!N[J]&&!b.has(J)});
q=NTC(q);return[].concat(_.a9(y),_.a9(q)).sort(function(J,E){return E.addedTimestampMillis-J.addedTimestampMillis}).map(function(J){return r$n(J)})};
_.xR=function(q){if(!_.x("kevlar_use_library_entity"))return OVn(q);var N=r3(q).filter(function(y){var J,E;if(J=y=y==null?void 0:(J=y.downloadedVideoEntities)==null?void 0:(E=J.videoEntity)==null?void 0:E.key){var F,R,c;J=((R=(F=q.mainDownloadsListEntity)==null?void 0:F[SSd])==null?0:(c=R.downloads)==null?0:c.length)?WNn(q).has(y):!1}return J}),b=NTC(q);
return[].concat(_.a9(N),_.a9(b)).sort(function(y,J){return J.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return r$n(y)})};
wQA=function(q){var N=_.Xt(q),b=bVe(q);return mTJ(q).filter(function(y){var J;return(y=y==null?void 0:(J=y.videoEntity)==null?void 0:J.key)&&!N[y]&&!b.has(y)})};
iVD=function(q){if(!_.x("kevlar_use_library_entity"))return wQA(q);var N=_.Xt(q),b=WNn(q);return mTJ(q).filter(function(y){var J;return(y=y==null?void 0:(J=y.videoEntity)==null?void 0:J.key)&&!N[y]&&b.has(y)})};
lcA=function(q,N){N=_.yU(N,"settingEntity");var b,y,J;return!!((J=(y=((b=q.settingEntity)!=null?b:{})[N])==null?void 0:y.settingOptionValue)!=null?J:{}).boolValue};
_.vT=function(q){var N=_.jN(q);if(kVd(N))return 0;var b=[];N=_.Z(N);for(var y=N.next();!y.done;y=N.next()){y=y.value;var J=void 0,E=void 0;if((J=y)==null?0:(E=J.videoEntity)==null?0:E.key)J=_.qR(y.videoEntity.key).entityId,y=q,J=_.yU(J,"mainVideoDownloadStateEntity"),y=_.Ji(y,"mainVideoDownloadStateEntity",J),(y=Number(y==null?void 0:y.addedTimestampMillis))&&b.push(y)}return Math.max.apply(Math,_.a9(b))};
_.GC=function(q){return q.ui.richGridMiniMode};
_.YR=function(q){return q.ui.richGridItemsPerRow};
_.Kuh=function(q){return q.ui.richGridSlimItemsPerRow};
_.DTD=function(q){return q.ui.guideIsExpanded};
_.QU=function(q){return q.ui.miniplayerIsActive};
hZA=function(q){return q.ui.singleOptionSurveyIsActive};
_.OR=function(q){var N;return((N=q.ui)==null?void 0:N.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.kEZ=function(q){return _.OR(q)==="WEB_PAGE_TYPE_WATCH"};
_.UTJ=function(q){return _.OR(q)==="WEB_PAGE_TYPE_SHORTS"};
_.fcC=function(q){return q.ui.inlinePreviewIsActive};
_.Cwn=function(q){return q.ui.inlinePreviewIsEnabled};
_.IcZ=function(q){return q.ui.miniplayerPlaybackState};
_.w3=function(q){return q.ui.isOnline};
_.TTA=function(q){return q.ui.frostedGlassMode};
_.ig=function(q,N){return LNJ(q.entities,N)};
_.lg=function(q,N){return t9d(q.entities,N)};
sRn=function(q,N){var b;if(N){var y;q=(y=_.Ji(q.entities,"offlineVideoPolicy",_.yU(N,"offlineVideoPolicy")))==null?void 0:y.action}else q=void 0;return(b=q)!=null?b:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
nYJ=function(q,N){var b;N?(q=_.Ji(q.entities,"offlineVideoPolicy",_.yU(N,"offlineVideoPolicy")),q=Number(q==null?void 0:q.expirationTimestamp)):q=void 0;return(b=q)!=null?b:0};
_.acJ=function(q){return _.ti(q.entities).length};
Sun=function(q,N){return m5(q.entities,N)};
WuA=function(q,N){return quh(q.entities,N)};
KD=function(q,N){return(q=m5(q.entities,N))?_.lGJ([q]):0};
_.LuR=function(q,N){var b=_.M7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(b){var y=q.entities;var J=u5C(y,N);if(J.length){var E=[];J=_.Z(J);for(var F=J.next();!F.done;F=J.next())(F=Fuu(y,F.value))&&E.push(F);y=E}else y=[]}else y=HPz(q.entities,N);var R;if(b){var c=q.entities;N?(N=_.yU(N,"musicPlaylist"),c=(R=c.musicPlaylist)==null?void 0:R[N],R=c!=null&&c.tracks?c.tracks.length:0):R=0}else R=q.entities,N?(N=_.yU(N,"mainPlaylistEntity"),R=(c=R.mainPlaylistEntity)==null?void 0:c[N],R=R!=null&&R.videos?
R.videos.length:0):R=0;return y.length!==R?0:y?KNC(y):0};
_.pQh=function(q){return q.download.isLeaderTab};
_.Pwn=function(q,N,b){if(!N&&b){var y=q.entities;if(b){var J=hPh(b),E,F;N=(F=(E=_.Ji(y,"offlineabilityEntity",_.yU(J,"offlineabilityEntity")))==null?void 0:E.addToOfflineButtonState)!=null?F:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else N="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else E=q.entities,N?(F=hPh(N),N=(J=(y=_.Ji(E,"offlineabilityEntity",_.yU(F,"offlineabilityEntity")))==null?void 0:y.addToOfflineButtonState)!=null?J:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):N="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return N};
M9z=function(q,N){q=q.entities;if(N){N=hPh(N);var b,y;N=(y=(b=_.Ji(q,"offlineabilityEntity",_.yU(N,"offlineabilityEntity")))==null?void 0:b.addToOfflineButtonState)!=null?y:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else N="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return N};
_.oYu=function(q){var N=q.entities;q=_.w3(q);var b=lcA(N,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.x("kevlar_modern_downloads_page")&&b)var y=!1;else{var J,E;N=(E=(J=((y=N.downloadsPageViewConfigurationEntity)!=null?y:{})[_.VU])==null?void 0:J.smartDownloadsOptInBannerVisibility)!=null?E:{};y=q?!!N.visibleWithConnection:!!N.visibleWithoutConnection}return y};
_.A$e=function(q){return lcA(q.entities,"SMART_DOWNLOADS_ENABLED")};
_.eZC=function(q){return GED(q.entities)};
BTC=function(q){return _.jN(q.entities).every(function(N){var b;return(N==null?void 0:(b=N.transferEntity)==null?void 0:b.transferState)&&!iPd.includes(N.transferEntity.transferState)})};
_.HVn=function(q){var N,b,y,J=(y=(b=((N=q.entities.downloadsPageViewConfigurationEntity)!=null?N:{})[_.VU])==null?void 0:b.downloadsUpsellBannerVisibility)!=null?y:{};return _.w3(q)?!!J.visibleWithConnection:!!J.visibleWithoutConnection};
_.q6n=function(q,N){return Twe(q.entities,N)};
N7d=function(q,N){if(N){var b,y;q=(y=(b=_.Ji(q.entities,"downloadStatusEntity",_.yU(N,"downloadStatusEntity")))==null?void 0:b.downloadState)!=null?y:"DOWNLOAD_STATE_UNKNOWN"}else q="DOWNLOAD_STATE_UNKNOWN";return q};
DC=function(q,N){return o6J(q.entities,N)};
Ewz=function(q){q=bge(q);var N=q.hours===void 0?0:q.hours,b=q.minutes===void 0?0:q.minutes,y=q.seconds===void 0?0:q.seconds,J=N>0;q=[];J&&(N=y0d(N),q.push(N));N=J;N=N===void 0?!1:N;b=(["af","be","lt"].includes(hi)||N)&&b<10?J0J().format(b):(new Intl.NumberFormat("en-u-nu-latn")).format(b);q.push(b);b=J0J().format(y);q.push(b);b=":";"da fi id si sr sr-Latn".split(" ").includes(hi)&&(b=".");return q.join(b)};
_.Zgu=function(q){q=bge(q);var N=q.hours===void 0?0:q.hours,b=q.minutes===void 0?0:q.minutes,y=q.seconds===void 0?0:q.seconds;q=[];if(N>0){var J=gwn().format({hours:N});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(hi)||N>9999)J=J.replace(N.toString(),y0d(N)),hi==="km"&&(J=J.replace(".",","));q.push(J)}b>0&&q.push(gwn().format({minutes:b}));y>0&&q.push(gwn().format({seconds:y}));N="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");b=hi=="am"?"{0}\u1363 ":hi=="fa"?"{0}\u060c\u200f ":
hi=="my"?"{0} - ":hi=="ne"?"{0},":hi=="th"?"{0} ":hi=="ur"?"{0}\u060c ":hi=="ar"||hi=="ar-XB"?"{0} \u0648":hi=="ja"||hi=="zh-CN"||hi=="zh-HK"||hi=="zh-TW"?"{0}\u3001":"{0}, ";y=hi=="am"?"\u1363 ":hi=="fa"?"\u060c\u200f ":hi=="my"?" - ":hi=="th"?" ":hi=="ur"?"\u060c ":hi=="ar"||hi=="ar-XB"?" \u0648":hi=="ja"||hi=="zh-CN"||hi=="zh-HK"||hi=="zh-TW"?"\u3001":", ";J=hi=="am"?" \u12a5\u1293 {0}":hi=="as"?" \u0986\u09f0\u09c1 {0}":hi=="az"?" v\u0259 {0}":hi=="bn"?" \u098f\u09ac\u0982 {0}":hi=="cs"?" a\u00a0{0}":
hi=="de"?" und {0}":hi=="el"?" \u03ba\u03b1\u03b9 {0}":hi=="eu"?" eta {0}":hi=="fa"?"\u060c \u0648 {0}":hi=="fil"?", at {0}":hi=="gu"?" \u0a85\u0aa8\u0ac7 {0}":hi=="hi"?", \u0914\u0930 {0}":hi=="hu"?" \u00e9s {0}":hi=="hy"?" \u0587 {0}":hi=="id"?", dan {0}":hi=="iw"?" \u05d5-{0}":hi=="ja"?"\u3001{0}":hi=="ka"?" \u10d3\u10d0 {0}":hi=="km"?" \u1793\u17b7\u1784 {0}":hi=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":hi=="ko"?" \ubc0f {0}":hi=="ky"?" \u0436\u0430\u043d\u0430 {0}":hi=="lt"?" ir {0}":hi==
"lv"?" un {0}":hi=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":hi=="mr"?" \u0906\u0923\u093f {0}":hi=="ms"?" dan {0}":hi=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":hi=="ne"?" \u0930 {0}":hi=="or"?", \u0b13 {0}":hi=="pa"?" \u0a05\u0a24\u0a47 {0}":hi=="ro"?" \u0219i {0}":hi=="si"?", \u0dc3\u0dc4 {0}":hi=="sk"?" a {0}":hi=="sl"?" in {0}":hi=="sq"?" dhe {0}":hi=="sv"?" och {0}":hi=="sw"?" na {0}":hi=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":hi=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
hi=="th"?" \u0e41\u0e25\u0e30{0}":hi=="tr"?" ve {0}":hi=="ur"?"\u060c \u0627\u0648\u0631 {0}":hi=="uz"?" va {0}":hi=="vi"?" v\u00e0 {0}":hi=="zh-HK"?"\u53ca{0}":hi=="zu"?", ne-{0}":hi=="af"||hi=="nl"?" en {0}":hi=="ar"||hi=="ar-XB"?" \u0648{0}":hi=="be"||hi=="uk"?" \u0456 {0}":hi=="en-GB"||hi=="en-IN"?" and {0}":hi=="en"||hi=="en-XA"?", and {0}":hi=="et"||hi=="fi"?" ja {0}":hi=="fr"||hi=="fr-CA"?" et {0}":hi=="zh-CN"||hi=="zh-TW"?"\u548c{0}":hi=="da"||hi=="is"||hi=="no"?" og {0}":hi=="es"||hi=="es-419"||
hi=="es-US"?" y {0}":hi=="kk"||hi=="lo"||hi=="mn"?", {0}":hi=="bg"||hi=="mk"||hi=="ru"||hi=="sr"?" \u0438 {0}":hi=="gl"||hi=="it"||hi=="pt-BR"||hi=="pt-PT"?" e {0}":" i {0}";var E=hi=="am"?"{0} \u12a5\u1293 {1}":hi=="as"?"{0} \u0986\u09f0\u09c1 {1}":hi=="az"?"{0} v\u0259 {1}":hi=="bn"?"{0} \u098f\u09ac\u0982 {1}":hi=="de"?"{0} und {1}":hi=="el"?"{0} \u03ba\u03b1\u03b9 {1}":hi=="eu"?"{0} eta {1}":hi=="fa"?"{0} \u0648 {1}":hi=="fil"?"{0} at {1}":hi=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":hi=="hi"?"{0} \u0914\u0930 {1}":
hi=="hu"?"{0} \u00e9s {1}":hi=="hy"?"{0} \u0587 {1}":hi=="iw"?"{0} \u05d5-{1}":hi=="ja"?"{0}\u3001{1}":hi=="ka"?"{0} \u10d3\u10d0 {1}":hi=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":hi=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":hi=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":hi=="ko"?"{0} \ubc0f {1}":hi=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":hi=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":hi=="lt"?"{0} ir {1}":hi=="lv"?"{0} un {1}":hi=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":hi=="mn"?"{0}, {1}":hi==
"mr"?"{0} \u0906\u0923\u093f {1}":hi=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":hi=="ne"?"{0} \u0930 {1}":hi=="or"?"{0} \u0b13 {1}":hi=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":hi=="ro"?"{0} \u0219i {1}":hi=="si"?"{0} \u0dc3\u0dc4 {1}":hi=="sl"?"{0} in {1}":hi=="sq"?"{0} dhe {1}":hi=="sv"?"{0} och {1}":hi=="sw"?"{0} na {1}":hi=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":hi=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":hi=="th"?"{0}\u0e41\u0e25\u0e30{1}":hi=="tr"?"{0} ve {1}":hi=="ur"?
"{0} \u0627\u0648\u0631 {1}":hi=="uz"?"{0} va {1}":hi=="vi"?"{0} v\u00e0 {1}":hi=="zh-HK"?"{0}\u53ca{1}":hi=="zu"?"{0} ne-{1}":hi=="af"||hi=="nl"?"{0} en {1}":hi=="ar"||hi=="ar-XB"?"{0} \u0648{1}":hi=="be"||hi=="uk"?"{0} \u0456 {1}":hi=="cs"||hi=="sk"?"{0} a\u00a0{1}":hi=="et"||hi=="fi"?"{0} ja {1}":hi=="fr"||hi=="fr-CA"?"{0} et {1}":hi=="id"||hi=="ms"?"{0} dan {1}":hi=="zh-CN"||hi=="zh-TW"?"{0}\u548c{1}":hi=="da"||hi=="is"||hi=="no"?"{0} og {1}":hi=="es"||hi=="es-419"||hi=="es-US"?"{0} y {1}":hi==
"bg"||hi=="mk"||hi=="ru"||hi=="sr"?"{0} \u0438 {1}":hi=="en"||hi=="en-GB"||hi=="en-IN"||hi=="en-XA"?"{0} and {1}":hi=="gl"||hi=="it"||hi=="pt-BR"||hi=="pt-PT"?"{0} e {1}":"{0} i {1}";hi==="sq"?(J=J.replace("dhe","e"),E=E.replace("dhe","e")):hi==="th"?(y=y.replace("{0}"," {0}"),E=E.replace("{0}","{0} "),E=E.replace("{1}"," {1}")):hi==="ne"?y=",":hi==="zh-CN"?y="":N.includes(hi)&&(y=" ");return q.length<2?q.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(hi)?
q.length===2?E.replace("{0}",q[0]).replace("{1}",q[1]):b.replace("{0}",q[0])+q.slice(1,-1).join(y)+J.replace("{0}",q[q.length-1]):q.join(y)};
bge=function(q){var N=q.hours||0,b=q.minutes||0,y=q.seconds||0;N=y+b*60+N*3600+(q.days||0)*86400+(q.weeks||0)*604800+(q.months||0)*2629800+(q.years||0)*31557600;if(N<=0)return{hours:0,minutes:0,seconds:0};q=N;N=Math.floor(q/3600);q%=3600;b=Math.floor(q/60);y=Math.floor(q%60);return{hours:N,minutes:b,seconds:y}};
y0d=function(q){q=(new Intl.NumberFormat("en-u-nu-latn")).format(q);var N=["fr"],b="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(hi)?q.replace(",","\u00a0"):N.includes(hi)?q.replace(",","\u202f"):b.includes(hi)?q.replace(",","."):q};
J0J=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
gwn=function(){Fyd||(UR=RkA,Fyd=new dJn);return Fyd};
c0z=function(q){try{return(new _.fD(5)).format(q)}catch(N){}};
CD=function(q){return{thumbnailOverlayDownloadingRenderer:{state:q}}};
uxJ=function(){var q=_.FE("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.o5(q),icon:{iconType:"PLAY_ALL"}}}};
zkn=function(q){q=_.Io(q,2);return hi!=="ru"&&hi!=="es_419"&&hi!=="es-419"&&hi!=="es"&&hi!=="es_US"&&hi!=="es-US"&&hi!=="fr"&&hi!=="pl"&&hi!=="it"&&hi!=="nl"&&hi!=="uk"&&hi!=="fr_CA"&&hi!=="fr-CA"||q===""?q:q[0].toLocaleUpperCase()+q.substring(1)};
tsu=function(q){return function(N){var b=q(),y=_.Io(N,b.dateFormat);N=_.Io(N,b.timeFormat);var J=$JZ.DATETIMEFORMATS[b.joinerStyle];J=J.replace(/'(?!')/g,"");J=J.replace("{0}",N);J=J.replace("{1}",y);return b.capitalize(J)}};
mJz=function(q){return q?typeof q.seconds==="string"&&(q.nanos===void 0||typeof q.nanos==="number"):!1};
r0D=function(q){return new Date(Number(q.seconds)*1E3+(q.nanos||0)*1E-6)};
_.Io=function(q,N){if(typeof q.getTime==="function")q={date:q};else if(mJz(q))q={date:r0D(q)};else if(typeof mJz(q.timestamp)&&typeof q.i18nInternalSecondsEastOfUtc==="number")q={date:r0D(q.timestamp),timeZone:TC(-q.i18nInternalSecondsEastOfUtc/60)};else throw Error("Lf`"+JSON.stringify(q));var b=q;q=b.date;b=b.timeZone;N=X6u(N).format(q,b);hi==="zh-TW"&&(q=b?Number(X6u("H").format(q,b)):q.getHours(),N=q<5?N.replace("\u4e0a\u5348","\u51cc\u6668"):q<8?N.replace("\u4e0a\u5348","\u65e9\u4e0a"):q<12?
N.replace("\u4e0a\u5348","\u4e0a\u5348"):q<13?N.replace("\u4e0b\u5348","\u4e2d\u5348"):q<19?N.replace("\u4e0b\u5348","\u4e0b\u5348"):N.replace("\u4e0b\u5348","\u665a\u4e0a"));return N};
X6u=function(q){if(VsJ.has(q))return VsJ.get(q);var N=jkd(q);N=xJz(N);vwu!==!0&&(vwu=!0);G9J=!0;G9J=!1;N=new sR(N,$JZ);VsJ.set(q,N);return N};
jkd=function(q){return(new sR(q,$JZ)).patternParts_.map(function(N){return N.type===0?"'"+N.text+"'":N.text}).join("")};
xJz=function(q){return hi==="en"||hi==="es_US"||hi==="es-US"?q:q.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(N,b,y){return"H".repeat(b.length)+y})};
KyA=function(q,N){Y6D||(UR=RkA,Y6D=new Qkz);var b=Y6D;a:if(q=OgD(q),N=OgD(N||new Date),q>N)b=q.getTime()-N.getTime()>6048E5?_.Io(q,1):w6C(q);else{for(var y=0;igC(q,12*(y+1))<N;)++y;if(y>0)b=b.format(-y,0);else{for(y=0;igC(q,y+1)<N;)++y;if(y>0)b=b.format(-y,2);else{q=N.getTime()-q.getTime();N=_.Z(ltz);for(y=N.next();!y.done;y=N.next()){y=y.value;var J=y.unit,E=Math.floor(q/y.unitDuration);if(E>=(y.threshold===void 0?1:y.threshold)){b=b.format(-E,J);break a}}b=b.format(-0,7)}}}return b};
OgD=function(q){if(typeof q.getTime==="function")return q;if(mJz(q))return r0D(q);throw Error("Mf`"+JSON.stringify(q));};
igC=function(q,N){for(var b=0,y;;++b)if(y=new Date(q.getFullYear(),q.getMonth()+N,q.getDate()-b,q.getHours(),q.getMinutes(),q.getSeconds()),y.getMonth()===(q.getMonth()+N)%12)return y};
_.nD=function(q){return{runs:[{text:q}]}};
_.ao=function(q){if(q&&q.simpleText)return q.simpleText;var N="";if(q&&q.runs)for(var b=0;b<q.runs.length;b++)q.runs[b].text&&(N+=q.runs[b].text);return N};
hkD=function(q,N,b,y){return q.videoEntity&&!q.policyEntity&&b!=="DOWNLOAD_STATE_FAILED"?[CD("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:ug(q.policyEntity)&&N!=="TRANSFER_STATE_FAILED"&&N!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?N==="TRANSFER_STATE_PAUSED_BY_USER"?[CD("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.zC(N)?[CD("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:q.videoEntity.lengthSeconds?DJJ(q.videoEntity.lengthSeconds,y):[]:
[CD("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
DJJ=function(q,N){var b=[{thumbnailOverlayTimeStatusRenderer:{text:_.o5(Ewz({seconds:q})),style:"DEFAULT"}}];N&&(q=N<=0||q<=0?0:N>=q?100:Math.ceil(N*100/q),q>0&&b.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:q}}));return b};
k9Z=function(q,N,b,y,J){if(N==="TRANSFER_STATE_UNKNOWN"||!q)return{};if(_.zC(N)||N==="TRANSFER_STATE_PRE_TRANSFER")var E=[CD("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var F,R;if(N==="TRANSFER_STATE_COMPLETE"&&((F=q.mainPlaylistEntity)==null?0:(R=F.videos)==null?0:R.length)){var c;q=(E=q.mainPlaylistEntity)==null?void 0:(c=E.videos)==null?void 0:c.length;E=(E=c0z(q))?{thumbnailOverlayBottomPanelRenderer:{text:_.o5(E),icon:{iconType:"PLAYLISTS"}}}:void 0;E=[uxJ(),Object.assign({},
E!=null?E:{})]}else E=[]}a:if(N==="TRANSFER_STATE_PRE_TRANSFER")b=Ae(_.FE("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(N==="TRANSFER_STATE_TRANSFER_IN_QUEUE")b=Ae(_.FE("WAITING_TO_DOWNLOAD"));else if(_.zC(N))b=Math.floor(b*100).toString(),b=Ae(_.FE("DOWNLOADING_PERCENT",{percent:b},"Downloading... "+b+"%"));else{if(y&&(_.x("playlist_is_offline_selector_killswitch")&&(J=_.tz().resolve(_.Jr).isNetworkAvailable()),J)){b=Tez(_.FE("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
CoZ(y));break a}b=void 0}N=N==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.FE("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},E.length?{thumbnailOverlays:E}:{},b?{viewPlaylistText:b}:{viewPlaylistText:_.nD("")},N.length?{badges:N}:{})};
UJe=function(q,N,b,y,J,E){if(N==="TRANSFER_STATE_UNKNOWN"||!q)return{};if(y==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var F=hkD(q,N,y);if(q.videoEntity&&!q.policyEntity&&y!=="DOWNLOAD_STATE_FAILED"){var R=_.FE("WAITING_TO_DOWNLOAD");if(R)return{shortViewCountText:_.nD(R),publishedTimeText:void 0,thumbnailOverlays:F}}if(!ug(q.policyEntity)){E=q.policyEntity&&!DAR(q.policyEntity)?_.FE("DOWNLOAD_EXPIRED",{},"Download expired"):
_.FE("TRANSFER_FAILED",{},"Download failed");var c;if((c=q.policyEntity)==null?0:c.shortMessageForDisabledAction)E=q.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Ae(E),publishedTimeText:void 0,thumbnailOverlays:F}}if(N==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.nD(_.FE("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:F};if(N==="TRANSFER_STATE_FAILED"||N==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.nD(_.FE("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:F};if(N==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(c=_.FE("WAITING_TO_DOWNLOAD"),y==="DOWNLOAD_STATE_PAUSED"&&(c=_.FE("DOWNLOAD_PAUSED",{},"Download paused")),c))return{shortViewCountText:_.nD(c),publishedTimeText:void 0,thumbnailOverlays:F};if(_.zC(N))return q=Math.floor(b*100).toString(),{shortViewCountText:_.nD(_.FE("DOWNLOADING_PERCENT",{percent:q},"Downloading... "+q+"%")),publishedTimeText:void 0,thumbnailOverlays:F};N=void 0;q.videoEntity.publishedTimestampMillis&&
(N=new Date,J&&(N=new Date(J)),N=Ae(KyA(new Date(Number(q.videoEntity.publishedTimestampMillis)),N)));J=[];_.x("kevlar_woffle_badge_killswitch")||(J=[{metadataBadgeRenderer:{label:_.FE("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var z;q=Ae((z=q.videoEntity.localizedStrings)==null?void 0:z.viewCount);return Object.assign({},E?{shortViewCountText:void 0}:{shortViewCountText:q},E?{}:{publishedTimeText:N},{badges:J,thumbnailOverlays:F})};
CPJ=function(q,N){q=q===void 0?ftA:q;switch(N.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:N.payload.playlistId,inviteLinkURL:N.payload.inviteLinkUrl};default:return q}};
uih=function(q,N){q=q===void 0?Ite:q;switch(N.type){case "SET_CURRENT_FORM_ID":return N=N.payload.formId,q.currentFormId===N?q:{currentFormId:N,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var b=N.payload;N=b.groupId;b=b.command;if(q.currentFormId){var y=Object.assign({},q.commandsMap);y[N]=b;q=Object.assign({},q,{commandsMap:y})}return q;case "RESET_COMMAND_MAP":return Object.assign({},q,{commandsMap:{}});default:return q}};
$8n=function(q,N){q=q===void 0?zHZ:q;switch(N.type){case "UPDATE_CANVAS_MODE":return Object.assign({},q,{currentMode:N.payload.currentMode});default:return q}};
m8C=function(q,N){q=q===void 0?tmu:q;switch(N.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},q,{guideIsExpanded:N.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},q,{scrollAtTop:N.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},q,{guideIsVisibleButNotPersistent:N.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},q,{miniplayerIsActive:N.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},q,{singleOptionSurveyIsActive:N.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},q,{slimlineSurveyRatingSelectedIndex:N.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},q,{richGridMiniMode:N.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},q,{richGridItemsPerRow:N.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},q,{richGridSlimItemsPerRow:N.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},q,{richGridContainerWidth:N.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},q,{richGridStyle:N.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},q,{currentPageType:N.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},q,{inlinePreviewIsActive:N.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},q,{inlinePreviewIsEnabled:N.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},q,{darkModeIsEnabled:N.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
q,{miniplayerPlaybackState:N.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},q,{tabGesturesIsActive:N.payload});case "SET_ONLINE_STATUS":return Object.assign({},q,{isOnline:N.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},q,{chipBarIsSticky:N.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},q,{frostedGlassMode:N.payload});default:return q}};
rPd=function(){return _.x("kevlar_disable_theater_mode_persistence")?!1:_.ou("START_IN_THEATER_MODE")};
VmC=function(q,N){q=q===void 0?XXd:q;switch(N.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},q,{transcription:N.payload});case "SET_OVERLAY_STATE":return Object.assign({},q,{overlay:N.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return q}};
lvJ=function(){return kH(Object.assign({},{continuation:jQz,download:x8h,canvas:$8n,reportChannelAbuse:v$d,share:G7n,talkToRecs:YbD,ui:m8C,voiceSearch:VmC,watch:QQZ,ypc:OEA,shorts:wXu,radioButtonGroup:uih,collabInviteLink:CPJ},iEJ))};
hHd=function(){return _.x("web_player_entities_middleware")?new SN(lvJ(),[K$h,D8D]):new SN(lvJ(),[K$h])};
_.WT=function(){k7A||(k7A=hHd());return k7A};
U8A=function(q,N,b){if(q.length)return{titleText:_.o5(N!=null?N:_.FE("DOWNLOADS",void 0,"Downloads")),contents:q.map(function(y){var J=y.videoEntity;y={videoId:J.videoId,title:Ae(J.title),shortBylineText:Ae(y.channelEntity.title),thumbnail:J.thumbnail};var E=J.videoId?DC(_.WT().getState(),J.videoId):0;J.videoId&&b?y.navigationEndpoint=_.Mc(J.videoId,b,void 0,void 0,E):J.videoId&&(y.navigationEndpoint=fOD(J.videoId,E,J.lengthSeconds));J.lengthSeconds&&(y.thumbnailOverlays=DJJ(J.lengthSeconds,E));return{playlistPanelVideoRenderer:y}}),
totalVideos:q.length}};
fvZ=function(q){return(q=(0,_.nM.getValueByKeys)(q,"playlistId"))?{playlistId:q}:null};
CfR=function(){return{}};
Ivd=function(q,N){return new _.wL(function(b,y){q.then(function(J){if(J){if(J=N(J))return b(J);y()}},y)})};
T2A=function(q){var N,b,y,J=(N=q.contents)==null?void 0:(b=N.twoColumnWatchNextResults)==null?void 0:(y=b.autoplay)==null?void 0:y.autoplay,E,F,R;N=(E=q.contents)==null?void 0:(F=E.twoColumnWatchNextResults)==null?void 0:(R=F.playlist)==null?void 0:R.playlist;return J&&N&&N.playlistId?{rawResponse:q,autoplayRenderer:J,playlistPanelRenderer:N,playlistId:N.playlistId}:null};
n$u=function(q){var N=N===void 0?"UNKNOWN_INTERFACE":N;if(q.length===1)return q[0];var b=sQu[N];if(b){b=new RegExp(b);for(var y=_.Z(q),J=y.next();!J.done;J=y.next())if(J=J.value,b.exec(J))return J}var E=[];Object.entries(sQu).forEach(function(F){var R=_.Z(F);F=R.next().value;R=R.next().value;N!==F&&E.push(R)});
b=new RegExp(E.join("|"));q.sort(function(F,R){return F.length-R.length});
y=_.Z(q);for(J=y.next();!J.done;J=y.next())if(J=J.value,!b.exec(J))return J;return q[0]};
_.LD=function(q){return"/youtubei/v1/"+n$u(q)};
_.pD=function(q,N){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:q}}},N!==void 0?{durationHintMs:N}:{})}};
_.PT=function(q,N){return _.pD(_.nD(q),N)};
avA=function(q,N){var b={mode:"NORMAL"};q&&(b.autoplayVideo=q.navigationEndpoint,b.nextButtonVideo=q.navigationEndpoint);N&&(b.previousButtonVideo=N.navigationEndpoint);return b};
L$D=function(q,N,b){if(!b||!b.sets)return{sets:[avA(q,N)]};var y=b.sets.find(function(F){return F.mode==="NORMAL"}),J=(0,_.nM.unsafeClone)(b);
if(!y)return J.sets.push(avA(q,N)),J;if(!q)return b;y=_.nM.getValueByKeys.apply(null,[y].concat(_.a9(SbR)));var E=_.nM.getValueByKeys.apply(null,[q].concat(_.a9(W$h)));if(y===E)return b;J.sets=J.sets.filter(function(F){return F.mode!=="NORMAL"});
J.sets.push(avA(q,N));return J};
pXA=function(q){return!!q.playlistPanelVideoRenderer&&!q.playlistPanelVideoRenderer.unplayableText};
PfD=function(q){return!!q.playlistPanelVideoRenderer&&!!q.playlistPanelVideoRenderer.title};
MmJ=function(q,N){if(N.contents&&!(q>=N.contents.length)&&(q=N.contents.slice(q).find(pXA)))return q.playlistPanelVideoRenderer};
o$n=function(q,N){if(N.contents)return(N=N.contents.find(function(b){return!!b.playlistPanelVideoRenderer&&b.playlistPanelVideoRenderer.videoId===q}))?N.playlistPanelVideoRenderer:void 0};
APD=function(q,N){return N.contents?N.contents.findIndex(function(b){return!!b.playlistPanelVideoRenderer&&b.playlistPanelVideoRenderer.videoId===q}):-1};
eHd=function(q,N){return N.contents?N.contents.findIndex(function(b){return!!b.playlistPanelVideoRenderer&&b.playlistPanelVideoRenderer.playlistSetVideoId===q}):-1};
B2h=function(q,N){q.contents&&N!==-1&&q.contents.splice(N,1).length===1&&q.totalVideos!==void 0&&(--q.totalVideos,delete q.videoCountText)};
_.HEh=function(q){var N=[];if(!q||!q.contents)return N;q=_.Z(q.contents);for(var b=q.next();!b.done;b=q.next())b=b.value,b.playlistPanelVideoRenderer&&b.playlistPanelVideoRenderer.videoId&&N.push(b.playlistPanelVideoRenderer.videoId);return N};
_.qoD=function(q){if(q&&q.contents)return(q=q.contents.find(function(N){return!!N.playlistPanelVideoRenderer&&!!N.playlistPanelVideoRenderer.selected})||q.contents[q.currentIndex])?q.playlistPanelVideoRenderer:void 0};
NmC=function(q,N,b,y,J,E,F){J=J===void 0?!1:J;E=E===void 0?!1:E;F=F===void 0?!1:F;if(q.contents&&q.contents.length!==0){y&&(q.contents=q.contents.filter(y));y=q.contents.length;for(var R=0;R<y;R++){var c=q.contents[R].playlistPanelVideoRenderer;c&&(R===N?(E&&delete c.menu,c.indexText=_.nD("\u25b6")):J||q.isInfinite||c.indexText===void 0?delete c.indexText:c.indexText=_.nD((R+1+b).toString()))}q.currentIndex=N+b;F&&(delete q.videoCountText,q.totalVideos=y)}};
_.MR=function(q){q=bRJ(q);if(q){var N=q.length;var b=-85%N;b<0&&(b=N+b);q=q.slice(N-b)+q.slice(0,N-b)}else q="";b="";for(N=0;N<q.length&&q[N]!==ydz;N++)b+=q[N];return b};
_.Jdz=function(q,N){var b=document.body;N=N===void 0?function(R){return R}:N;
var y,J=null;q=_.Z(q);for(y=q.next();!y.done;y=q.next()){var E=y.value;y="div";E[2]&&(y=N(E[2]));y=document.createElement(y);J||(J=y);var F=E[0];E=E[1];F&&(y.id=N(F));if(E)for(E=_.Z(E),F=E.next();!F.done;F=E.next())y.classList.add(N(F.value));b.appendChild(y);b=y}return[J,b]};
Eth=function(q,N){for(var b="",y=0;y<N;y++)b+=q.charAt(Math.floor(Math.random()*q.length));return b};
oo=function(q){return Eth("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",q)};
Ai=function(q){return Eth("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",q)};
eN=function(q){return Eth("0123456789",q)};
gth=function(){var q=performance.now(),N=new Date;var b="2."+N.getFullYear()+String(N.getMonth()+1).padStart(2,"0")+String(N.getDate()).padStart(2,"0");for(var y,J=Math.floor(Math.random()*11)+15,E=[],F=0;F<J;F++)E.push(Math.floor(Math.random()*26476865)+24547720);y=E.join(",");var R=oo(10),c=oo(100),z=oo(102),m=oo(106),r=oo(108),X=oo(11),V=oo(1140),G=oo(123),w=oo(14),D=oo(16),k=oo(1900),f=oo(23),L=oo(26),S=oo(34),W=oo(397),M=oo(44),qe=oo(5),RJ=oo(72),tZ=oo(74),wA=oo(75),rA=oo(88),xD=oo(91),IJ="rr5---sn-5hneknee rr5---sn-hgn7rnls rr1---sn-q4fl6nsd rr4---sn-ntqe6nes rr3---sn-ntq7yner rr1---sn-q4fl6ns7 rr4---sn-q4fl6nsk rr5---sn-q4flrney rr5---sn-q4fl6nlz rr4---sn-q4fl6nds rr1---sn-aigzrnz7 rr2---sn-4g5e6nsk rr1---sn-q4flrnl7 rr1---sn-5hneknek rr2---sn-aigzrn7d rr4---sn-t0a7lnee rr5---sn-q4fl6nsr rr5---sn-ntq7yns7 rr4---sn-q4fl6n6d rr4---sn-4g5lznes".split(" ");
var sJ=IJ[Math.floor(Math.random()*IJ.length)];var Sn=(new Date("2010-01-01")).getTime();var YE=(new Date(Sn+Math.random()*((new Date).getTime()-Sn))).toISOString().split("T")[0];for(var xE,qv=[],mM=0;mM<4;mM++)qv.push(Math.floor(Math.random()*100));xE=qv.join(".");var Ox=Number(eN(5)),h4=Number(eN(6)),QC=Number(eN(7)),rp=Number(eN(9)),Fd=eN(1),yF=eN(10),vR=eN(16),ej=eN(19),Go=eN(2),qN=eN(20),O5=eN(21),p1=eN(3),$E=eN(4),t4=eN(5),gp=eN(6),oJ=eN(7),bB=eN(8),tB=eN(9);var JB=Eth("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var XA=[Ai(5),Ai(5),Ai(5)].join("%2C"),LU=[eN(3),eN(5),eN(5)].join("%2C"),uC=Ai(0),jc=Ai(1),L1=Ai(10),Of=Ai(108),Ef=Ai(11),hb=Ai(12),bC=Ai(13),CF=Ai(14),X8=Ai(15),Wx=Ai(16),Mg=Ai(17),KC=Ai(18),nC=Ai(19),Me=Ai(2),jj=Ai(20),Gc=Ai(22),Uh=Ai(23),DW=Ai(24),lT=Ai(266),wx=Ai(3),SX=Ai(30),WZ=Ai(34),VF=Ai(35),oW=Ai(36),oe=Ai(4),Lc=Ai(40),AX=Ai(43),yH=Ai(47),sv=Ai(5),IA=Ai(6),rb=Ai(7),Jh=Ai(75),rL=Ai(8),vW=Ai(80),pQ=Ai(9),wz="https://www."+Ai(12)+".com",XP={},zv={},iW={},rv={},lW={},$x={},Qi={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:y}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:b},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+Ai(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:b},{key:"client.name",value:"WEB"},{key:"client.fexp",value:y}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:O5+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+Ai(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Lc,ypcGetOfflineUpsellEndpoint:{params:vW}},trackingParams:VF+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+LU+"&mn="+XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fmp4&ns="+DW+"&cnr="+Go+"&ratebypass=yes&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&c=WEB&txp="+oJ+"&n="+D+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:h4,width:640,height:360,lastModified:vR,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:oJ,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+LU+"&mn="+
XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fmp4&ns="+DW+"&cnr="+Go+"&ratebypass=yes&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&c=WEB&txp="+oJ+"&n="+D+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Of+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:h4,width:1280,
height:720,lastModified:vR,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:oJ,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+LU+"&mn="+XA+"&ms="+
XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fmp4&ns="+DW+"&gir="+wx+"&clen="+tB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:QC,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:tB,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:QC,approxDurationMs:oJ},{itag:248,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+LU+"&mn="+XA+"&ms="+XA+"&mv="+
jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fwebm&ns="+DW+"&gir="+wx+"&clen="+tB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/webm; codecs="vp9"',bitrate:QC,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:tB,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:QC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:oJ},{itag:399,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+
LU+"&mn="+XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fmp4&ns="+DW+"&gir="+wx+"&clen="+tB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:QC,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:tB,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:QC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:oJ},{itag:136,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+
LU+"&mn="+XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fmp4&ns="+DW+"&gir="+wx+"&clen="+tB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:QC,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:tB,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:h4,approxDurationMs:oJ},{itag:247,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+LU+"&mn="+
XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fwebm&ns="+DW+"&gir="+wx+"&clen="+tB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/webm; codecs="vp9"',bitrate:QC,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:tB,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:h4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:oJ},{itag:398,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+
LU+"&mn="+XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fmp4&ns="+DW+"&gir="+wx+"&clen="+tB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:QC,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:tB,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:h4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:oJ},{itag:135,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+
LU+"&mn="+XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fmp4&ns="+DW+"&gir="+wx+"&clen="+bB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:h4,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:bB,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:h4,approxDurationMs:oJ},{itag:244,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+LU+"&mn="+
XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fwebm&ns="+DW+"&gir="+wx+"&clen="+bB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Of+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/webm; codecs="vp9"',bitrate:h4,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:bB,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:h4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:oJ},{itag:397,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+
LU+"&mn="+XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fmp4&ns="+DW+"&gir="+wx+"&clen="+bB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:h4,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:bB,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:h4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:oJ},{itag:134,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+
LU+"&mn="+XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fmp4&ns="+DW+"&gir="+wx+"&clen="+bB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:h4,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:bB,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:h4,highReplication:!0,approxDurationMs:oJ},{itag:243,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+
LU+"&mn="+XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fwebm&ns="+DW+"&gir="+wx+"&clen="+bB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/webm; codecs="vp9"',bitrate:h4,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:bB,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:h4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:oJ},{itag:396,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+
LU+"&mn="+XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fmp4&ns="+DW+"&gir="+wx+"&clen="+bB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:h4,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:bB,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:h4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:oJ},{itag:133,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+
LU+"&mn="+XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fmp4&ns="+DW+"&gir="+wx+"&clen="+bB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:h4,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:bB,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:h4,approxDurationMs:oJ},{itag:242,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+LU+"&mn="+
XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fwebm&ns="+DW+"&gir="+wx+"&clen="+bB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/webm; codecs="vp9"',bitrate:h4,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:bB,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:h4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:oJ},{itag:395,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+
LU+"&mn="+XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fmp4&ns="+DW+"&gir="+wx+"&clen="+bB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:h4,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:bB,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:h4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:oJ},{itag:160,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+
LU+"&mn="+XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fmp4&ns="+DW+"&gir="+wx+"&clen="+bB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:h4,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:bB,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ox,approxDurationMs:oJ},{itag:278,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+LU+"&mn="+
XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fwebm&ns="+DW+"&gir="+wx+"&clen="+bB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/webm; codecs="vp9"',bitrate:h4,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:bB,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ox,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:oJ},{itag:394,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&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="+
LU+"&mn="+XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=video%2Fmp4&ns="+DW+"&gir="+wx+"&clen="+bB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Ox,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:bB,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ox,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:oJ},{itag:140,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
LU+"&mn="+XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=audio%2Fmp4&ns="+DW+"&gir="+wx+"&clen="+bB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:h4,
initRange:{start:"0",end:"631"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:bB,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:h4,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:oJ,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+LU+"&mn="+XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+
Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=audio%2Fwebm&ns="+DW+"&gir="+wx+"&clen="+oJ+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'audio/webm; codecs="opus"',bitrate:Ox,initRange:{start:"0",end:"265"},indexRange:{start:p1,
end:$E},lastModified:vR,contentLength:oJ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Ox,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:oJ,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+LU+"&mn="+XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=audio%2Fwebm&ns="+
DW+"&gir="+wx+"&clen="+oJ+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'audio/webm; codecs="opus"',bitrate:Ox,initRange:{start:"0",end:"265"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:oJ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Ox,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:oJ,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+sJ+".googlevideo.com/videoplayback?expire="+yF+"&ei="+f+"&ip="+xE+"&id=o-AF"+AX+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+LU+"&mn="+XA+"&ms="+XA+"&mv="+jc+"&mvi="+Fd+"&pl="+Go+"&initcwndbps="+oJ+"&siu="+Fd+"&spc="+M+"&vprv="+Fd+"&svpuc="+Fd+"&mime=audio%2Fwebm&ns="+DW+"&gir="+wx+"&clen="+bB+"&dur="+bB+"&lmt="+vR+"&mt="+yF+"&fvip=3&keepalive="+wx+"&c=WEB&txp="+
oJ+"&n="+Wx+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'audio/webm; codecs="opus"',bitrate:h4,initRange:{start:"0",end:"265"},indexRange:{start:p1,end:$E},lastModified:vR,contentLength:bB,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:h4,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:oJ,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="+tB+"&docid="+X+"&ei="+f+"&feature="+R+"&fexp="+uC+"&ns="+Me+"&plid="+D+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+jc+"&el="+L1+"&len="+$E+"&of="+Gc+
"&uga="+Go+"&vm="+lT},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+tB+"&docid="+X+"&ei="+f+"&feature="+R+"&fexp="+uC+"&ns="+Me+"&plid="+D+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+jc+"&el="+L1+"&len="+$E+"&of="+Gc+"&uga="+Go+"&vm="+lT},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+tB+"&docid="+X+"&ei="+f+"&feature="+R+"&fexp="+uC+"&ns="+Me+"&plid="+D+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
jc+"&el="+L1+"&len="+$E+"&of="+Gc+"&uga="+Go+"&vm="+lT},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+f+"&m="+rA+"&oid="+Gc+"&plid="+D+"&pltype="+rb+"&ptchn="+Gc+"&ptk="+w+"&video_id="+X},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+tB+"&docid="+X+"&ei="+f+"&event="+CF+"&feature="+R+"&fexp="+uC+"&ns="+Me+"&plid="+D+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+jc},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
Wx+"&ver=2&cmt=1."+p1+"&fmt="+p1+"&fs=0&rt="+t4+"&euri&lact="+p1+"&cl="+tB+"&mos="+Fd+"&volume=100&cbrand="+sv+"&cbr="+IA+"&cbrver="+xE+"&c=WEB&cver="+b+"&cplayer=UNIPLAYER&cos="+pQ+"&cosver="+oJ+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+Go+"&len="+bB+"&fexp="+XA+"&feature=g-high-rec&afmt="+p1+"&muted=0&conn=1&docid="+X+"&ei="+f+"&plid="+D+"&vm="+Ai(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
X+"&caps="+wx+"&opi="+tB+"&xoaf="+Fd+"&hl="+Me+"&ip="+xE+"&ipbits="+Fd+"&expire="+yF+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+xE+"&key="+wx+"&lang="+qe,name:{simpleText:Ef},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+X+"&caps="+wx+"&opi="+tB+"&xoaf="+Fd+"&hl="+Me+"&ip="+xE+"&ipbits="+Fd+"&expire="+yF+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+xE+"&key="+wx+"&kind="+wx+"&lang="+Me,name:{simpleText:oe},
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:Ef,title:hb,lengthSeconds:"1155",keywords:[rL,Mg,nC,sv],channelId:DW,isOwnerViewing:!1,shortDescription:sv,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+X+"/hqdefault.jpg?sqp=-oaymwE"+oW+"G&rs="+WZ,width:168,height:94},{url:"https://i.ytimg.com/vi/"+X+"/hqdefault.jpg?sqp=-oaymwE"+oW+
"G&rs="+WZ,width:196,height:110},{url:"https://i.ytimg.com/vi/"+X+"/hqdefault.jpg?sqp=-oaymwE"+oW+"G&rs="+S,width:246,height:138},{url:"https://i.ytimg.com/vi/"+X+"/hqdefault.jpg?sqp=-oaymwE"+oW+"G&rs="+S,width:336,height:188},{url:"https://i.ytimg.com/vi/"+X+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:oJ,author:bC,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:oJ,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
Gc+"/featured_channel.jpg?v="+rL,width:40,height:40}]},trackingParams:VF+"=",navigationEndpoint:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{url:"/channel/"+DW,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:DW}},channelName:bC,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Ef}]},subscribed:!1,enabled:!0,type:"FREE",channelId:DW,showPreferences:!1,subscribedButtonText:{runs:[{text:sv}]},unsubscribedButtonText:{runs:[{text:nC}]},
trackingParams:VF+"=",unsubscribeButtonText:{runs:[{text:X8}]},serviceEndpoints:[{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[DW],params:rL}},{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Lc,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:VF+"=",dialogMessages:[{runs:[{text:rL},
{text:rL},{text:Wx}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:pQ}]},serviceEndpoint:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[DW],params:rL}},accessibility:{label:jj},trackingParams:VF+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:hb}]},accessibility:{label:pQ},
trackingParams:VF+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:KC}},unsubscribeAccessibility:{accessibilityData:{label:rb}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:bB},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[DW],
params:rL}},unsubscribeCommand:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[DW],params:rL}},addToWatchLaterCommand:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Ef,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Ef}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+X+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+oW+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+X+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Ef,width:1280,
height:720},title:{simpleText:KC},description:{simpleText:IA},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+nC,externalChannelId:DW,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:oJ,category:"Travel & Events",publishDate:YE,ownerChannelName:bC,uploadDate:YE}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:bC},trackingParams:VF+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Lc,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:VF+"="}}],headerText:{simpleText:jj},icon:{infoCardIconRenderer:{trackingParams:VF+"="}},closeButton:{infoCardIconRenderer:{trackingParams:VF+"="}},trackingParams:VF+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:VF+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Ef+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:JB,interpreterSafeUrl:(XP.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+SX+".js",XP),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:jj},{text:rb,bold:!0}]},endpoint:{clickTrackingParams:Lc,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:VF+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:hb}]},actionButton:{buttonRenderer:{text:{runs:[{text:Mg}]},navigationEndpoint:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+X,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
X,target:"TARGET_NEW_WINDOW"}},trackingParams:VF+"="}},trackingParams:VF+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+RJ+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+RJ+"=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:oJ,endMs:oJ,title:{accessibility:{accessibilityData:{label:IA}},simpleText:sv},metadata:{simpleText:CF},callToAction:{simpleText:IA},dismiss:{simpleText:Ef},endpoint:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{url:"/channel/"+DW,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:DW}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:jj}]},subscribed:!1,enabled:!0,type:"FREE",channelId:DW,showPreferences:!1,
subscribedButtonText:{runs:[{text:rL}]},unsubscribedButtonText:{runs:[{text:Ef}]},trackingParams:VF+"=",unsubscribeButtonText:{runs:[{text:bC}]},serviceEndpoints:[{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[DW],params:rL}},{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Lc,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:VF+
"=",dialogMessages:[{runs:[{text:Mg},{text:bC},{text:pQ}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:rL}]},serviceEndpoint:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[DW],params:rL}},accessibility:{label:hb},trackingParams:VF+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:sv}]},
accessibility:{label:sv},trackingParams:VF+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:oe}},unsubscribeAccessibility:{accessibilityData:{label:Mg}}}},trackingParams:VF+"=",isSubscribe:!0,id:qN}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+X+"/hqdefault.jpg?sqp=-oaymwE"+oW+"G&rs="+S,width:168,height:94},{url:"https://i.ytimg.com/vi/"+X+"/hqdefault.jpg?sqp=-oaymwE"+oW+"G&rs="+WZ,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+X+"/hqdefault.jpg?sqp=-oaymwE"+oW+"G&rs="+S,width:246,height:138},{url:"https://i.ytimg.com/vi/"+X+"/hqdefault.jpg?sqp=-oaymwE"+oW+"G&rs="+S,width:336,height:188},{url:"https://i.ytimg.com/vi/"+X+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:oJ,endMs:oJ,title:{accessibility:{accessibilityData:{label:hb}},simpleText:oe},metadata:{simpleText:rb},endpoint:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Ef,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Ef,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+sJ+".googlevideo.com/videoplayback?source=youtube&oeis="+Fd+"&c=WEB&oad="+$E+"&ovd="+$E+"&oaad="+t4+"&oavd="+t4+"&ocs="+p1+"&oewis="+Fd+"&oputc="+Fd+"&ofpcc="+Fd+"&siu="+Fd+"&msp="+Fd+"&odepv="+Fd+
"&id=o-AF"+AX+"&ip="+xE+"&initcwndbps="+oJ+"&mt="+yF+"&oweuc="+uC}}}}},trackingParams:VF+"=",id:qN,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:CF}},simpleText:L1},style:"DEFAULT"}}]}}],startMs:oJ,trackingParams:VF+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:Fd,offsetEndMilliseconds:t4},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tB+";dc_trk_cid="+tB+";dc_dbm_token="+r+";ord="+yF+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fd+";dc_rui="+Fd+";dc_exteid="+qN+";dc_av="+p1+";dc_sk="+Fd+";dc_ctype="+Go+";dc_ref=http://www.youtube.com/video/"+Ef+";dc_pubid="+Fd+";dc_btype=23?gclid="+xD+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Fd+"&ns="+Fd+"&event="+Fd+"&device="+Fd+"&content_v="+X+"&el="+L1+"&ei="+f+"&devicever="+b+"&bti="+oJ+"&format="+gp+"&break_type="+Fd+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Fd+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+xE+"&slot_pos="+Fd+"&slot_len="+Fd+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+LU+"&ad_len="+t4+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Ef+"&aqi="+f+"&ad_rmp="+Fd+"&sli="+Fd}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+
";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+gp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+oJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&ctype="+p1+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_engaged_view&ctype="+p1+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+gp+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
tB+";dc_trk_cid="+tB+";dc_dbm_token="+r+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fd+";ord="+tB+";dc_rui="+Fd+";dc_exteid="+ej+";dc_av="+Fd+";dc_sk="+Fd+";dc_ctype="+Go+";dc_pubid="+Fd+";dc_btype=3?gclid="+xD+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+z+"&sig="+Uh+"&ad_cpn=[AD_CPN]&id="+IA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+IA+"&dc_pubid="+Fd+"&dc_exteid="+qN+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+z+"&sig="+Uh+"&ad_cpn=[AD_CPN]&id="+IA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Fd},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+IA+"&avm="+Fd+"&dc_pubid="+Fd+"&dc_exteid="+
qN+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&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="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
z+"&sig="+Uh+"&ad_cpn=[AD_CPN]&id="+IA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Fd},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+IA+"&dc_pubid="+Fd+"&dc_exteid="+qN+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+gp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+gp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Lc,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+
p1+"&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/"+X+"/mqdefault.jpg",width:320,height:180}]},trackingParams:VF+"="},trackingParams:VF+
"=",templatedCountdown:{templatedAdText:{text:jj,isTemplated:!0,trackingParams:VF+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:KC,isTemplated:!1,trackingParams:VF+"="},trackingParams:VF+"="}},trackingParams:VF+"=",skipOffsetMilliseconds:5E3}},trackingParams:VF+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Wx},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:VF+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:X8,isTemplated:!1,trackingParams:VF+"="},trackingParams:VF+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:X8,isTemplated:!0,trackingParams:VF+"="}},trackingParams:VF+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Lc,openPopupAction:{popup:{aboutThisAdRenderer:{url:(zv.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+k+"&hl="+Me+"&origin=www.youtube.com&ata_theme="+oe,zv),trackingParams:VF+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:VF+"="}},hoverText:{runs:[{text:Mg}]},trackingParams:VF+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+yH+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:VF+"="},headline:{text:oe,isTemplated:!1,trackingParams:VF+"="},description:{text:IA,
trackingParams:VF+"="},actionButton:{buttonRenderer:{text:{simpleText:rL},navigationEndpoint:{clickTrackingParams:Lc,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tB+";dc_trk_cid="+tB+";dc_dbm_token="+r+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fd+";ord="+tB+";dc_rui="+Fd+";dc_exteid="+qN+";dc_av="+Fd+";dc_sk="+Fd+";dc_ctype="+Go+";dc_pubid="+Fd+";dc_btype=3?gclid="+xD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:VF+"="}},startMs:Fd,trackingParams:VF+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:rL},elementId:Mg}},elementId:Wx,trackingParams:VF+"=",legacyInfoCardVastExtension:hb,sodarExtensionData:{siub:hb,bgub:L1,scs:sv,bgp:CF},externalVideoId:Ef,adLayoutLoggingData:{serializedAdServingDataEntry:sv},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+yH+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:VF+"="},
headline:{text:Mg,isTemplated:!1,trackingParams:VF+"="},description:{text:hb,isTemplated:!1,trackingParams:VF+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:L1},navigationEndpoint:{clickTrackingParams:Lc,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tB+";dc_trk_cid="+tB+";dc_dbm_token="+r+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fd+";ord="+tB+";dc_rui="+Fd+";dc_exteid="+
qN+";dc_av="+Fd+";dc_sk="+Fd+";dc_ctype="+Go+";dc_pubid="+Fd+";dc_btype=3?gclid="+xD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+
Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:VF+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:VF+"="}},navigationEndpoint:{clickTrackingParams:Lc,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tB+";dc_trk_cid="+
tB+";dc_dbm_token="+r+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fd+";ord="+tB+";dc_rui="+Fd+";dc_exteid="+qN+";dc_av="+Fd+";dc_sk="+Fd+";dc_ctype="+Go+";dc_pubid="+Fd+";dc_btype=3?gclid="+xD+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+
G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:VF+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:VF+"="},abandonCommands:{commands:[{clickTrackingParams:Lc,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&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="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+
Fd+"="+Fd+";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Lc,commandExecutorCommand:{commands:[{clickTrackingParams:Lc,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:X8,isTemplated:!1,trackingParams:VF+
"="},trackingParams:VF+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:IA},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+oJ+";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="+tB+";dc_trk_cid="+tB+";ord="+yF+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fd+";dc_rui="+Fd+";dc_exteid="+qN+";dc_av="+p1+";dc_sk="+Fd+";dc_ctype="+Go+";dc_ref=http://www.youtube.com/video/"+Ef+";dc_pubid="+Fd+";dc_btype=23?gclid="+xD+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Fd+"&ns="+Fd+"&event="+Fd+"&device="+Fd+"&content_v="+X+"&el="+L1+"&ei="+f+"&devicever="+b+"&bti="+oJ+"&format="+gp+"&break_type="+Fd+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Fd+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+xE+"&slot_pos="+Fd+"&slot_len="+Fd+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
LU+"&ad_len="+t4+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Ef+"&aqi="+f+"&ad_rmp="+Fd+"&sli="+Fd}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+gp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+
L+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+oJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&ctype="+p1+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,
attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_engaged_view&ctype="+p1+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+gp+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+z+"&sig="+Uh+"&ad_cpn=[AD_CPN]&id="+
IA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+IA+"&dc_pubid="+Fd+"&dc_exteid="+qN+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+z+
"&sig="+Uh+"&ad_cpn=[AD_CPN]&id="+IA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Fd},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+IA+"&avm="+Fd+"&dc_pubid="+Fd+"&dc_exteid="+qN+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&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="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+z+"&sig="+Uh+"&ad_cpn=[AD_CPN]&id="+IA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Fd},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+IA+"&dc_pubid="+Fd+"&dc_exteid="+qN+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+gp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+gp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+
p1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&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/"+X+"/mqdefault.jpg",width:320,height:180}]},trackingParams:VF+"="},trackingParams:VF+"=",templatedCountdown:{templatedAdText:{text:hb,isTemplated:!0,trackingParams:VF+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:hb,isTemplated:!1,trackingParams:VF+"="},trackingParams:VF+"="}},
trackingParams:VF+"=",skipOffsetMilliseconds:5E3}},trackingParams:VF+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:rL},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:VF+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:IA,isTemplated:!1,trackingParams:VF+"="},trackingParams:VF+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:IA,
isTemplated:!0,trackingParams:VF+"="}},trackingParams:VF+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Lc,openPopupAction:{popup:{aboutThisAdRenderer:{url:(iW.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+k+"&hl="+Me+"&origin=www.youtube.com&ata_theme="+oe,iW),trackingParams:VF+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:VF+"="}},hoverText:{runs:[{text:KC}]},trackingParams:VF+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+tZ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:VF+"="},headline:{text:pQ,isTemplated:!1,trackingParams:VF+"="},description:{text:IA,trackingParams:VF+"="},actionButton:{buttonRenderer:{text:{simpleText:Ef},navigationEndpoint:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:VF+"="}},startMs:Fd,trackingParams:VF+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:CF},elementId:L1}},elementId:rL,trackingParams:VF+"=",legacyInfoCardVastExtension:Ef,sodarExtensionData:{siub:Wx,bgub:bC,scs:rL,bgp:nC},externalVideoId:Ef,adLayoutLoggingData:{serializedAdServingDataEntry:Mg},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+tZ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:VF+"="},headline:{text:rL,
isTemplated:!1,trackingParams:VF+"="},description:{text:L1,isTemplated:!1,trackingParams:VF+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:X8},navigationEndpoint:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:VF+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:VF+"="}},navigationEndpoint:{clickTrackingParams:Lc,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+
Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:VF+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:VF+"="},abandonCommands:{commands:[{clickTrackingParams:Lc,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&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="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+Go+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Lc,commandExecutorCommand:{commands:[{clickTrackingParams:Lc,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:oe,isTemplated:!1,trackingParams:VF+"="},trackingParams:VF+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:oe},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fd+";dc_exteid="+qN+";met="+Fd+";ecn"+Fd+"="+Fd+";etm1="+Fd+";eid1="+
oJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:CF}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:oe}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:t4,offsetEndMilliseconds:gp},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+f+"&m_pos="+Go+"&token=ALHj"+W+"&index="+Fd+"&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="+b+"&m_pos_ms="+t4}},adSlotLoggingData:{serializedSlotAdServingDataEntry:IA}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:gp,offsetEndMilliseconds:gp},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+f+"&m_pos="+p1+"&token=ALHj"+W+"&index="+Fd+"&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="+
b+"&m_pos_ms="+gp}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Mg}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:gp,offsetEndMilliseconds:gp},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+f+"&m_pos="+p1+"&token=ALHj"+W+"&index="+Fd+"&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="+
b+"&m_pos_ms="+gp}},adSlotLoggingData:{serializedSlotAdServingDataEntry:rb}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:gp,offsetEndMilliseconds:gp},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+f+"&m_pos="+p1+"&token=ALHj"+W+"&index="+Fd+"&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="+
b+"&m_pos_ms="+gp}},adSlotLoggingData:{serializedSlotAdServingDataEntry:rb}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:gp,offsetEndMilliseconds:Go},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+f+"&m_pos="+p1+"&token=ALHj"+W+"&index="+Fd+"&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="+
b+"&m_pos_ms="+gp}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Mg}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Go,offsetEndMilliseconds:Go},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+f+"&m_pos="+Go+"&token=ALHj"+W+"&index="+Fd+"&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="+
b+"&m_pos_ms="+Go}},adSlotLoggingData:{serializedSlotAdServingDataEntry:jj}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:X8,isTemplated:!1,trackingParams:VF+"="},description:{text:pQ,isTemplated:!1,trackingParams:VF+"="},actionButton:{buttonRenderer:{text:{simpleText:Mg},navigationEndpoint:{clickTrackingParams:Lc,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
tB+";dc_trk_cid="+tB+";dc_dbm_token="+r+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fd+";ord="+tB+";dc_rui="+Fd+";dc_exteid="+qN+";dc_av="+Fd+";dc_sk="+Fd+";dc_ctype="+Go+";dc_pubid="+Fd+";dc_btype=3?gclid="+xD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:VF+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+yH+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:VF+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+wA+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:VF+"="},navigationEndpoint:{clickTrackingParams:Lc,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tB+";dc_trk_cid="+tB+";dc_dbm_token="+r+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fd+";ord="+tB+
";dc_rui="+Fd+";dc_exteid="+qN+";dc_av="+Fd+";dc_sk="+Fd+";dc_ctype="+Go+";dc_pubid="+Fd+";dc_btype=3?gclid="+xD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:VF+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Lc,openPopupAction:{popup:{aboutThisAdRenderer:{url:(rv.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+k+"&hl="+Me+"&origin=www.youtube.com&ata_theme="+oe,rv),trackingParams:VF+"="}},popupType:"DIALOG"}},trackingParams:VF+"="}},hoverText:{runs:[{text:Ef}]},trackingParams:VF+"="}},adVideoId:Ef,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Ef},associatedCompositePlayerBytesLayoutId:Wx}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:pQ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Mg,isTemplated:!1,trackingParams:VF+"="},description:{text:bC,isTemplated:!1,trackingParams:VF+"="},actionButton:{buttonRenderer:{text:{simpleText:KC},navigationEndpoint:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+
G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:VF+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+tZ+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:VF+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Jh+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:VF+"="},navigationEndpoint:{clickTrackingParams:Lc,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+
Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:VF+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Lc,openPopupAction:{popup:{aboutThisAdRenderer:{url:(lW.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+k+"&hl="+Me+"&origin=www.youtube.com&ata_theme="+oe,lW),trackingParams:VF+"="}},popupType:"DIALOG"}},trackingParams:VF+"="}},
hoverText:{runs:[{text:bC}]},trackingParams:VF+"="}},adVideoId:Ef,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+Ef+"&cid="+L+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:L1},associatedCompositePlayerBytesLayoutId:Wx}},adSlotLoggingData:{serializedSlotAdServingDataEntry:sv}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Wx,
isTemplated:!1,trackingParams:VF+"="},description:{text:hb,isTemplated:!1,trackingParams:VF+"="},actionButton:{buttonRenderer:{text:{simpleText:jj},navigationEndpoint:{clickTrackingParams:Lc,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tB+";dc_trk_cid="+tB+";dc_dbm_token="+r+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fd+";ord="+tB+";dc_rui="+Fd+";dc_exteid="+qN+";dc_av="+Fd+";dc_sk="+Fd+";dc_ctype="+
Go+";dc_pubid="+Fd+";dc_btype=3?gclid="+xD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+
S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:VF+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+yH+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:VF+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+wA+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:VF+
"="},navigationEndpoint:{clickTrackingParams:Lc,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tB+";dc_trk_cid="+tB+";dc_dbm_token="+r+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fd+";ord="+tB+";dc_rui="+Fd+";dc_exteid="+qN+";dc_av="+Fd+";dc_sk="+Fd+";dc_ctype="+Go+";dc_pubid="+Fd+";dc_btype=3?gclid="+xD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+G+"AxAA&ase=2&num="+Fd+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+wz+"&label=video_click_to_advertiser_site&ctype="+p1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:VF+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Lc,openPopupAction:{popup:{aboutThisAdRenderer:{url:($x.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+k+"&hl="+Me+"&origin=www.youtube.com&ata_theme="+oe,$x),trackingParams:VF+"="}},popupType:"DIALOG"}},trackingParams:VF+
"="}},hoverText:{runs:[{text:IA}]},trackingParams:VF+"="}},adVideoId:Ef,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+G+"AxAA&sigh="+X+"&cid="+L+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:pQ},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:Wx}},adSlotLoggingData:{serializedSlotAdServingDataEntry:oe}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:SX,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:SX,command:{innertubeCommand:{clickTrackingParams:Lc,ypcGetOfflineUpsellEndpoint:{params:vW}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:VF+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:yF,nanos:rp}}}},X7=JSON.stringify(Qi),GV=performance.now()-q;return{objectRepresentation:Qi,jsonRepresentation:X7,generationTime:GV}};
ZRn=function(q,N){if(q===N)return!0;if(!q||!N||typeof q!==typeof N)return!1;if(q instanceof Array&&N instanceof Array){if(q.length!==N.length)return!1;for(var b=0;b<q.length;b++)if(!ZRn(q[b],N[b]))return!1;return!0}if(typeof q==="object"&&typeof N==="object"&&q&&N){for(b in q)if(!(b in N&&ZRn(q[b],N[b])))return!1;for(var y in N)if(!(y in q))return!1;return!0}return!1};
_.HT=function(){if(!BT){BT=new QE(new FPA);var q=_.VX("client_streamz_web_flush_count",-1);q!==-1&&(BT.invocationLimit=q)}return BT};
qK=function(q,N,b,y){if(q===N)return!0;if(Array.isArray(q)&&Array.isArray(N)){if(q.length!==N.length)return!1;for(var J=0;J<q.length;J++)if(!qK(q[J],N[J],b,y))return!1;return!0}if(q instanceof Set||N instanceof Set){if(q instanceof Set&&N instanceof Set){if(q.size!==N.size)return!1;y=_.Z(q.values());for(J=y.next();!J.done;J=y.next())if(!N.has(J.value))return!1;return!0}return!1}if(q instanceof Function){if(y)return!0;q.name===""&&_.po(Error("Qf"),"ERROR");return!1}if(q instanceof Date&&N instanceof
Date)return q.getTime()===N.getTime();if(q instanceof Object&&N instanceof Object){if(Rbn(q)&&Rbn(N))try{return q.equals(N)}catch(F){_.po(Error("Rf`"+F),"ERROR")}J=Object.getOwnPropertyNames(q).filter(function(F){return b?q[F]!==void 0:!0});
var E=Object.getOwnPropertyNames(N).filter(function(F){return b?N[F]!==void 0:!0});
if(J.length!==E.length)return!1;J=_.Z(J);for(E=J.next();!E.done;E=J.next())if(E=E.value,!qK(q[E],N[E],b,y))return!1;return!0}return!1};
Rbn=function(q){q=Object.getPrototypeOf(q).equals;return q instanceof Function&&q.length===1};
_.uVA=function(){return _.d(function(q){if(q.nextAddress==1)return dWu!==2?q.jumpTo(2):q.yield(cdn(),3);q.nextAddress!=2&&(dWu=q.yieldResult);return q.return(dWu)})};
_.tYZ=function(){return _.d(function(q){if(q.nextAddress==1)return _.x("ab_pl_man")?zbA!==2?q.jumpTo(2):q.yield($WR(),3):q.return(1);q.nextAddress!=2&&(zbA=q.yieldResult);return q.return(zbA)})};
XFC=function(){return _.d(function(q){if(q.nextAddress==1)return _.x("ab_fk_sk_cl")?mWh!==2?q.jumpTo(2):q.yield(rdA(),3):q.return(1);q.nextAddress!=2&&(mWh=q.yieldResult);return q.return(mWh)})};
_.xWe=function(){return _.d(function(q){if(q.nextAddress==1)return _.x("ab_det_apb_b")?VYn!==2?q.jumpTo(2):q.yield(jrD(),3):q.return(1);q.nextAddress!=2&&(VYn=q.yieldResult);return q.return(VYn)})};
YoJ=function(){var q;return _.d(function(N){if(N.nextAddress==1)return N.yield(Promise.all([_.uVA(),_.xWe(),_.tYZ(),XFC()]),2);if(N.nextAddress!=3)return vtJ()?N.return(!0):N.yield(_.GQz(),3);q=N.yieldResult;return N.return(q===0)})};
vtJ=function(){var q=!1,N=function(b,y){Qrd.increment(y,b);b===0&&(q=!0)};
N(_.ORn(),"j.s_");N(dWu,"f.i_");N(VYn,"a.b_");N(zbA,"p.m_");N(mWh,"i.f_");wFA===2&&(wFA=_.iRA(lVJ));N(wFA,"e.h_");_.x("ks_det_gpbl")||N(_.KPJ(),"p.i_");_.x("ks_get_o_pp")||N(_.DWz(),"g.o_");_.x("ab_deg_unex_thr")||N(_.hbh(),"a.o_");N(kQJ,"s.t_");_.x("ab_det_sc_inj_enf")&&N(_.UWd(),"s.i_");N(fVu,"d.p_");N(_.CDA(_.NK),"o.p_");N(_.IVJ()===0?0:_.TmA(),"o.a_");return _.x("debug_sk_em_precheck")?!0:q};
ntD=function(){var q=[].concat(_.a9(srD));try{var N=gth();q.push({jsonRepresentation:N.jsonRepresentation,objectRepresentation:N.objectRepresentation})}catch(b){q=[].concat(_.a9(srD))}return q};
aVu=function(){var q=["adPlacements","adSlots"];try{return q.filter(function(){return!0}).length!==q.length?0:1}catch(N){return 0}};
_.DWz=function(){if(aVu()===0)return 0;var q=gth(),N=q.objectRepresentation,b=(0,_.nM.unsafeClone)(N),y=[];if(N&&typeof N==="object")for(var J in N)y.push(J);else return 4;q=q.objectRepresentation.adPlacements;if(!(q&&q.length>0))return 4;try{if(!ZRn(y,Object.getOwnPropertyNames(N)))return 0}catch(E){return 0}return ZRn(b,N)?1:0};
_.CDA=function(q){if(!q||!q.length||typeof q==="string")return 0;for(var N=Object.getOwnPropertyNames(Object.prototype),b=0;b<q.length;b++)for(var y=_.MR(q[b]),J=_.Z(N),E=J.next();!E.done;E=J.next())if(y===E.value)return 0;return 1};
Sod=function(q){var N=_.MR(q[1]);if(q[0]===null)return N;q=q[0];for(var b={},y=0;y<q.length;y++){var J=_.MR(q[y]);if(y===0)b[J]=N;else{var E={};E[J]=b;b=E}}return b};
_.IVJ=function(){for(var q=_.bI,N=0;N<q.length;N++){var b=Sod(q[N]),y=[];y.push(b);if(y.length===0)return 0}return 1};
_.TmA=function(){for(var q=_.bI,N={},b=0;b<q.length;N={zSb:void 0},b++){var y=[Sod(q[b])];N.zSb=[];y.forEach(function(J){return function(E){J.zSb[J.zSb.length]=E}}(N));
if(N.zSb.length===0)return 0}return 1};
_.ORn=function(){for(var q=_.Z(ntD()),N=q.next();!N.done;N=q.next()){var b=N.value;N=b.jsonRepresentation;b=b.objectRepresentation;try{var y=JSON.parse(N);if(!qK(y,b,!1,!1))return 0}catch(J){return 0}}return 1};
_.UWd=function(){try{var q=_.v4("ab_det_sc_inj_val");q.length===1&&q[0]===""&&(q=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var N=document.querySelectorAll("script"),b=_.Z(N),y=b.next();!y.done;y=b.next())for(var J=y.value,E=_.Z(q),F=E.next();!F.done;F=E.next()){var R=F.value;N=void 0;if((N=J.textContent)==null?0:N.includes(R))return 0}}catch(c){return 4}return 1};
_.GQz=function(){var q,N,b,y,J,E,F;return _.d(function(R){switch(R.nextAddress){case 1:_.Yi(R,2),q=_.Z(srD),N=q.next();case 4:if(N.done)return R.return(1);y=b=N.value;J=y.jsonRepresentation;E=y.objectRepresentation;return R.yield((new Response(J,{status:200})).json(),7);case 7:F=R.yieldResult;if(!qK(F,E,!1,!1))return R.return(0);N=q.next();R.jumpTo(4);break;case 2:return _.K7(R),R.return(4)}})};
_.hbh=function(){try{btoa("abc")}catch(q){return 0}return 1};
cdn=function(){var q,N,b,y,J,E,F,R,c,z,m;return _.d(function(r){switch(r.nextAddress){case 1:_.Yi(r,2),q=_.Z(ntD()),N=q.next();case 4:if(N.done)return r.return(1);y=b=N.value;J=y.jsonRepresentation;E=y.objectRepresentation;F=btoa(J);R="data:application/json;base64,"+F;c=new Request(R);Object.defineProperty(c,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(c,"method",{get:function(){return"POST"}});
Object.defineProperty(c,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(c,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(c,"body",{get:function(){return new ReadableStream}});
return r.yield(fetch(c),7);case 7:return z=r.yieldResult,r.yield(z.json(),8);case 8:m=r.yieldResult;if(!qK(m,E,!1,!1))return r.return(0);N=q.next();r.jumpTo(4);break;case 2:return _.K7(r),r.return(4)}})};
_.iRA=function(q){if(!q||!q.length||typeof q==="string")return 0;for(var N=function(J){return _.MR(J)},b=2,y=0;y<q.length&&(b=_.WPJ(_.Jdz(q[y],N)),b!==0);y++);
return b};
_.WPJ=function(q){var N=_.Z(q);q=N.next().value;N=N.next().value;try{var b=document.createElement("div");document.body.appendChild(b);var y=getComputedStyle(b).display;document.body.removeChild(b);if(y==="none")return 4;var J=getComputedStyle(N).display==="none"?0:1;document.body.removeChild(q);return J}catch(E){return 4}};
rdA=function(){var q,N,b;return _.d(function(y){q=new _.yk;N=document.createElement("button");N.classList.add("ytp-ad-skip-button");N.style.opacity="0";N.style.height="0px";N.style.width="0px";N.style.padding="0px";N.style.border="none";b=function(){N.parentElement&&N.parentElement.removeChild(N)};
N.onclick=function(){q.resolve(0);b()};
document.body.appendChild(N);setTimeout(function(){b();q.resolve(1)},50);
return y.return(q.promise)})};
$WR=function(){var q,N,b,y,J,E,F;return _.d(function(R){q=new _.yk;N=document.createElement("ytd-player");try{document.body.prepend(N)}catch(c){return R.return(4)}b=function(){N.parentElement&&N.parentElement.removeChild(N)};
N.getElementsByTagName("div").length>0?y=N.getElementsByTagName("div")[0]:(y=document.createElement("div"),N.appendChild(y));J=document.createElement("div");y.appendChild(J);E=document.createElement("video");F=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});E.src=_.sh(_.PZ(F));E.ontimeupdate=function(){b();q.resolve(0)};
J.appendChild(E);E.classList.add("html5-main-video");setTimeout(function(){J.classList.add("ad-interrupting")},200);
setTimeout(function(){b();q.resolve(1)},5E3);
return R.return(q.promise)})};
LPA=function(q){var N=gth().objectRepresentation.playbackTracking;if(N){var b=[],y;b.push(N==null?void 0:(y=N.videostatsPlaybackUrl)==null?void 0:y.baseUrl);var J;b.push(N==null?void 0:(J=N.videostatsDelayplayUrl)==null?void 0:J.baseUrl);var E;b.push(N==null?void 0:(E=N.videostatsWatchtimeUrl)==null?void 0:E.baseUrl);var F;b.push(N==null?void 0:(F=N.ptrackingUrl)==null?void 0:F.baseUrl);var R;b.push(N==null?void 0:(R=N.qoeUrl)==null?void 0:R.baseUrl);var c;b.push(N==null?void 0:(c=N.atrUrl)==null?
void 0:c.baseUrl);N=_.Z(b);for(b=N.next();!b.done;b=N.next())if((b=b.value)&&q.test(b))return b.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
pFZ=function(q,N){var b,y;return _.d(function(J){switch(J.nextAddress){case 1:b=[],y=0;case 2:if(!(y<3)){J.jumpTo(4);break}return J.yield(fetch(q,{cache:"no-store",method:N}).then(function(E){b.push(E.status)}).catch(function(){b.push(-1)}),3);
case 3:y++;J.jumpTo(2);break;case 4:return J.return(b)}})};
PDe=function(q){return q.domainLookupStart===0&&q.domainLookupEnd===0&&q.connectStart===0&&q.connectEnd===0||q.duration===0};
MYu=function(q,N,b){b=b===void 0?"GET":b;var y,J,E,F,R,c,z,m,r,X;return _.d(function(V){if(V.nextAddress==1)return V.yield(Promise.all([pFZ(q,b),pFZ(N,b)]),2);y=V.yieldResult;J=_.Z(y);E=J.next().value;F=J.next().value;R=E;c=F;if(Math.min.apply(Math,_.a9(c))!==Math.max.apply(Math,_.a9(c))||Math.min.apply(Math,_.a9(R))!==Math.max.apply(Math,_.a9(R)))return V.return(2);if(Math.min.apply(Math,_.a9(c))===Math.min.apply(Math,_.a9(R)))return V.return(1);m=(z=performance.getEntriesByName(q))==null?void 0:
z[0];X=(r=performance.getEntriesByName(N))==null?void 0:r[0];return m&&X?PDe(X)?V.return(1):PDe(m)?V.return(0):V.return(1):V.return(2)})};
jrD=function(){var q;return _.d(function(N){var b=[];var y;var J,E,F;(J=y=(J=gth().objectRepresentation.streamingData)==null?void 0:(E=J.formats)==null?void 0:(F=E[0])==null?void 0:F.url)&&J&&!y.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(J=J.replace("initcwndbps","ctier=L&initcwndbps"),J=J.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),y={testUrl:J,baseUrl:y,method:"GET"}):y=void 0;y&&b.push(y);_.x("ab_net_tp_e")&&b.push({testUrl:_.JZ.location.origin+"/ad_companion",baseUrl:_.JZ.location.origin+
"/generate_204",method:"OPTIONS"});_.x("ab_fix_creator_view_cnt")&&(b.length=0,(y=LPA(/api\/stats\/atr/))&&b.push({testUrl:_.JZ.location.origin+y,baseUrl:_.JZ.location.origin+"/generate_204",method:"POST"}));_.x("ad_net_pb_pbp")&&(y=LPA(/api\/stats\/qoe/))&&b.push({testUrl:_.JZ.location.origin+y,baseUrl:_.JZ.location.origin+"/feed/download",method:"GET"});b=b.length!==0?b[Math.floor(Math.random()*b.length)]:void 0;return(q=b)?N.return(MYu(q.testUrl,q.baseUrl,q.method)):N.return(4)})};
_.KPJ=function(){if(_.JZ.lGp===void 0||_.JZ.lGp===null||typeof _.JZ.lGp!=="function")return 2;try{return _.JZ.lGp()===!0?0:1}catch(q){return 0}};
otC=function(q){switch(q){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.ol(q,"unknown result type")}};
_.Adn=function(q,N){var b=Number(_.M7("CATSTAT",0));if(N.z0F===void 0)return b;N=N.z0F;q=otC(q);return b&~(3<<N)|q<<N};
ebA=function(q){var N,b;if((q=(N=q.auxiliaryUi)==null?void 0:(b=N.messageRenderers)==null?void 0:b.bkaEnforcementMessageViewModel)&&q.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return q};
HRA=function(){for(var q=_.Z(Object.values(_.Bmh)),N=q.next();!N.done;N=q.next())N=N.value,N.vAg&&N.z0F&&_.PC("CATSTAT",_.Adn(2,N))};
_.g5=function(q,N){q=_.JN("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",q);(N===void 0?0:N)?_.qEn(q,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Ev().logFlowEvent(q,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
bSd=function(){if(!NKn){if(Polymer.Base){var q=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{q.apply(this,arguments)}catch(r){_.HC(r)}};
var N=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{N.apply(this,arguments)}catch(r){_.HC(r)}};
var b=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{b.apply(this,arguments)}catch(r){_.HC(r)}};
var y=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{y.apply(this,arguments)}catch(r){_.HC(r)}};
var J=Polymer.Base._listen,E=new WeakMap;Polymer.Base._listen=function(r,X,V){var G=function(){try{V.apply(this,arguments)}catch(w){_.HC(w)}};
E.set(V,G);J.call(this,r,X,G)};
var F=Polymer.Base._unlisten;Polymer.Base._unlisten=function(r,X,V){F.call(this,r,X,E.get(V))}}if(Polymer.Async){var R=Polymer.Async,c=R._atEndOfMicrotask;
R._atEndOfMicrotask=function(){try{c.apply(R,arguments)}catch(r){_.HC(r)}}}if(Polymer.RenderStatus){var z=Polymer.RenderStatus,m=z.afterNextRender;
z.afterNextRender=function(r,X,V){m.call(z,r,function(){try{X.apply(this,arguments)}catch(G){_.HC(G)}},V)}}NKn=!0}};
_.JvA=function(q){var N=q?_.wO(q):"";if(N){if(N.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(N.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(N.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(N.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(N.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.x("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(N.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";N=N.toLowerCase();if(N==="/")return"home";if(N==="/channel_memberships")return"channel-memberships-shopfront";if(N.indexOf("/feed/trending")===0)return"trending";if(N.indexOf("/feed/explore")===0)return"explore";if(N.indexOf("/live")===0)return"live";if(N.indexOf("/results")===0)return"search";if(N.indexOf("/sports")===0)return"sports";if(N.indexOf("/fashion")===0||N.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(N))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(N))return _.x("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(N.indexOf("/channel/")===0||N.indexOf("/user/")===0||N.indexOf("/gaming")===0||N.indexOf("/post/")===0)return"channel";if(yvd(q))return"show";if(N==="/playlist"||N.indexOf("/playlist/")===0||N==="/view_play_list"||N.indexOf("/view_play_list/")===0||N.indexOf("/show/")===0)return"playlist";if(N==="/companion_canvas")return"companion-canvas";if(N==="/feed/history"||
N.indexOf("/feed/history/")===0)return"history";if(N==="/new")return"labs";if(N==="/feed/subscriptions")return"subscriptions";if(N.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(N==="/history_controls")return"standalone";if(N.indexOf("/account")===0||N==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(N.indexOf("/paid_memberships")===0||N.indexOf("/refund")===0||N.indexOf("/purchases")===0||N.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(N.indexOf("/product")===
0)return"yts-products";if(N.indexOf("/premium")===0||N.indexOf("/musicpremium")===0)return N.indexOf("/premium/offers")===0||N.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(N==="/cart/checkout"||N==="/cart")return"ypc-checkout";if(N.indexOf("/reporthistory")===0)return _.x("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(N.indexOf("/feed/downloads")===0||N.indexOf("/redeem")===0)return"browse";if(N.indexOf("/hashtag")===0)return"hashtag-landing-page";if(N.indexOf("/handle")===
0)return"handle";if(N.indexOf("/source")===0)return"audio-pivot";if(N.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(N.indexOf("/playables")===0)return"playables";if(N.indexOf("/create/live/join")===0)return"open-in-app";if(N.indexOf("/shorts")===0)return"shorts";if(N.indexOf("/feed/channels")===0)return"subscriptions-channels";var b=q?_.wO(q):"";b&&b.indexOf("/watch")===0&&_.x("web_watch_enable_learning_journey")?(q=_.gO(q),q=!!q.list&&q.list.indexOf("LJPP")===0):q=!1;if(q)return"learning_journey_watch";
if(_.x("enable_new_page_subtypes_for_ai_companion")&&N==="/feed/courses")return"your-courses"}};
_.Z4=function(q){var N,b;(q=(b=_.v(q==null?void 0:q.commandMetadata,_.gg))==null?void 0:b.url)&&(N=_.JvA(q));return N};
yvd=function(q){var N=q?_.wO(q):"";if(!N)return!1;N=N.toLowerCase();return N.indexOf("/show/")===0||N.indexOf("/playlist")===0&&(q=_.gO(q),q.list&&q.list.indexOf("EL")===0)?!0:!1};
d5=function(q){var N="unknown",b;var y=((b=_.v(q==null?void 0:q.commandMetadata,_.gg))==null?void 0:b.webPageType)||"";y?(b=y.toLowerCase(),b.startsWith("web_page_type_")&&(b=b.slice(14))):b=y;b&&ExZ[b.toUpperCase()]?N=ExZ[b.toUpperCase()]:_.v(q,_.FH)||_.v(q,gxC)?N="browse":_.v(q,_.R0)?N="search":_.v(q,_.nx)&&(N="watch");N==="watch"&&_.Z4(q||null)==="learning_journey_watch"&&(N="learning_journey_watch");N==="unknown"&&_.M6(Error("Tf`"+JSON.stringify({clickTrackingParams:q==null?void 0:q.clickTrackingParams,
commandMetadata:q==null?void 0:q.commandMetadata,allEndpointKeys:Object.keys(q||[])})));return N};
_.cP=function(q){if(!_.ZSz||q)_.ZSz=_.KM();return _.ZSz};
_.Fon=function(q){return!!_.v(q,_.nx)||!!_.v(q,_.uI)&&_.x("kevlar_enable_shorts_prefetch")};
_.RYJ=function(q,N){q=_.v(q,_.nx)||_.v(q,_.uI);return"v"+q.videoId+(q.playlistId?"-pl"+q.playlistId:"")+(N?"-an1":"")+(q.params?"-pr"+q.params:"")};
_.dwC=function(q){var N=new zM(_.M7("ONE_PICK_URL",""));N.urlParamMap_.set("hostId",q);(q=_.M7("GAPI_LOCALE"))&&N.urlParamMap_.set("hl",q);(q=_.M7("SESSION_INDEX"))&&N.urlParamMap_.set("authuser",q);(q=_.M7("DELEGATED_SESSION_ID"))&&N.urlParamMap_.set("groupId",q);return N};
uTZ=function(){var q=_.tz(),N=q.resolve(_.$8);q=q.resolve(_.tN);return new cvd(N,q)};
$wh=function(q){if(window.IntersectionObserver)return new zYZ(q,400);throw new TypeError("Vf");};
mwA=function(){var q=Hammer.TouchAction,N=q.prototype.preventDefaults;q.prototype.preventDefaults=function(b){var y=this.actions.indexOf("pan-down")>-1;if(!y)return N.call(this,b);if(!tid){var J=b.srcEvent;b=b.direction;var E;if((E=this.manager)==null?0:E.session.prevented)J.preventDefault();else if(y&&b&Hammer.DIRECTION_DOWN)return this.preventSrc(J)}}};
rvd=function(q){if(!q||q.size===0)return Hammer.DIRECTION_ALL;if(q.size===2){if(q.has("up")&&q.has("down"))return Hammer.DIRECTION_VERTICAL;if(q.has("right")&&q.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(q.size===1){if(q.has("up"))return Hammer.DIRECTION_UP;if(q.has("down"))return Hammer.DIRECTION_DOWN;if(q.has("right"))return Hammer.DIRECTION_RIGHT;if(q.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.Viz=function(){return Xjn?Promise.resolve(Xjn):new Promise(function(q,N){var b=self.indexedDB.open("swpushnotificationsdb");b.onerror=N;b.onsuccess=function(){var y=b.result;if(y.objectStoreNames.contains("swpushnotificationsstore"))Xjn=y,q(Xjn);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.Viz()};
b.onupgradeneeded=jHZ})};
jHZ=function(q){q=q.target.result;q.objectStoreNames.contains("swpushnotificationsstore")&&q.deleteObjectStore("swpushnotificationsstore");q.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
_.r5=function(q,N,b){var y=b&&b>0?b:0;b=y?Date.now()+y*1E3:0;if((y=y?_.ml.getLocalStorage():_.ml.getSessionStorage())&&window.JSON){typeof N!=="string"&&(N=JSON.stringify(N,void 0));try{y.set(q,N,b)}catch(J){y.remove(q)}}};
_.XH=function(q){var N=_.ml.getSessionStorage(),b=_.ml.getLocalStorage();if(!N&&!b||!window.JSON)return null;try{var y=N.get(q)}catch(J){}if(typeof y!=="string")try{y=b.get(q)}catch(J){}if(typeof y!=="string")return null;try{y=JSON.parse(y,void 0)}catch(J){}return y};
_.Vk=function(q){try{var N=_.ml.getSessionStorage(),b=_.ml.getLocalStorage();N&&N.remove(q);b&&b.remove(q)}catch(y){}};
vxn=function(q){var N=xwD(),b;return _.d(function(y){switch(y.nextAddress){case 1:return _.Yi(y,2),y.yield(q.match(N,{cacheName:"yt-appshell-assets"}),4);case 4:b=y.yieldResult;_.Ea(y,3);break;case 2:_.K7(y);case 3:return y.return(b)}})};
xwD=function(){var q=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?Gvn.registration.scope:YEh;q.endsWith("/")&&(q=q.slice(0,-1));return q+"/app_shell_home"};
QHd=function(q){q.map(function(N){return N.source}).join("|")};
_.OSJ=function(q){return _.d(function(N){return N.return(vxn(q))})};
wju=function(){var q=window.caches,N;return _.d(function(b){if(b.nextAddress==1)return b.yield(_.OSJ(q),2);N=b.yieldResult;return b.return(!!N)})};
Uwz=function(){_.d(function(q){if(q.nextAddress==1){if(iSZ)return q.jumpTo(0);iSZ=!0;if(_.x("enable_system_health_primes_monitoring"))return _.QX(l2h,3E4),Kon(),q.return();if(!(Math.random()<_.VX("web_system_health_fraction")))return q.jumpTo(0);Dwn={heightPixels:screen.height,widthPixels:screen.width};je&&!isNaN(je.jsHeapSizeLimit)&&(Dwn.memoryTotalKbytes=String(Math.round(je.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(Dwn.devicePixelRatio=window.devicePixelRatio);return q.yield(hYA(),4)}_.QX(l2h,
3E4);return q.yield(kvu(),0)})};
hYA=function(){return _.d(function(q){if(q.nextAddress==1)return x8.intersectionObserverPresent="IntersectionObserver"in window,x8.serviceWorkerPresent="serviceWorker"in navigator,x8.webSharePresent="share"in navigator,x8.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,x8.cacheStoragePresent="caches"in window,x8.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,x8.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
x8.webkitTemporaryStoragePresent="webkitTemporaryStorage"in vP&&vP.webkitTemporaryStorage&&"queryUsageAndQuota"in vP.webkitTemporaryStorage,x8.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",q.yield(tNh(),2);x8.indexedDbPresent=q.yieldResult;x8.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;x8.broadcastChannelPresent="BroadcastChannel"in window;x8.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(x8.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,x8.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.hj(q)})};
l2h=function(){var q=9E4+Math.random()*2E3;_.tr()>q||(_.x("enable_system_health_primes_monitoring")?Kon():kvu())};
kvu=function(){var q;return _.d(function(N){if(N.nextAddress==1)return N.yield(f2h(),2);q=N.yieldResult;_.W_("systemHealthCaptured",q);_.hj(N)})};
Kon=function(){var q={metric:{}},N=C1A();N.networkEvents.length&&(q.metric.networkEvents=I2A(N));_.W_("systemHealthCaptured",q)};
f2h=function(){var q,N,b,y,J,E,F,R,c,z;return _.d(function(m){switch(m.nextAddress){case 1:q={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)};N=window.screen;_.x("enable_is_extended_monitoring")&&N&&"isExtended"in N&&(q.isExtended=!!N.isExtended);b={metric:{staticContext:Dwn,dynamicContext:q,webMetric:TKJ,webApiSupport:x8}};
if(y=_.Oe())b.csn=y;je&&(b.metric.webMetric.currentHeapKbytes=Math.round(je.usedJSHeapSize/1E3));window.matchMedia&&(b.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,b.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,b.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in vP&&typeof vP.getBattery==="function")){m.jumpTo(2);break}return m.yield(vP.getBattery(),3);case 3:if(J=
m.yieldResult)b.metric.dynamicContext.chargingStatus=J.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(b.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(x8.storageEstimatePresent)return m.yield(navigator.storage.estimate(),8);if(!x8.webkitTemporaryStoragePresent){m.jumpTo(5);break}return m.yield(sHd(),7);case 7:E=m.yieldResult;m.jumpTo(5);break;case 8:E=m.yieldResult;case 5:return b.metric.dynamicContext.deviceStorageQuotaMbytes=((F=E)==null?0:F.quota)?String(Math.round(E.quota/
1048576/10)*10):"-1",b.metric.dynamicContext.deviceStorageUsageMbytes=((R=E)==null?0:R.usage)?String(Math.round(E.usage/1048576/10)*10):"-1",c=b.metric.dynamicContext,m.yield(wju(),9);case 9:return c.hasAppShell=m.yieldResult,z=C1A(),z.networkEvents.length&&(b.metric.networkEvents=I2A(z)),m.return(b)}})};
sHd=function(){return new Promise(function(q){var N;x8.webkitTemporaryStoragePresent&&(N=vP.webkitTemporaryStorage)!=null&&N.queryUsageAndQuota?vP.webkitTemporaryStorage.queryUsageAndQuota(function(b,y){q({usage:b,quota:y})}):q(void 0)})};
_.GM=function(q){q&=16777215;q=[(q&16711680)>>16,(q&65280)>>8,q&255];return nxe(q[0],q[1],q[2])};
_.Y8=function(q){q=[(q&16711680)>>>16,(q&65280)>>>8,q&255,(q&4278190080)>>>24];if(!_.a2D(q,function(N){return N===(N&255)}))throw Error("Wf`"+q.join(","));
return"rgba("+q[0]+","+q[1]+","+q[2]+","+(q[3]/255).toFixed(3)+")"};
_.SEJ=function(q){return[(q&16711680)>>>16,(q&65280)>>>8,q&255]};
_.Wod=function(q){q=q.map(function(N){N/=255;return N<=.03928?N/12.92:Math.pow((N+.05)/1.05,2.4)});
return q[0]*.2126+q[1]*.7152+q[2]*.0722};
Qk=function(q,N){q=_.SEJ(q);return"rgba("+q[0]+", "+q[1]+", "+q[2]+", "+N+")"};
Ov=function(q){return(q&4278190080)>>>24===0?Qk(q,"1"):_.Y8(q)};
_.Lod=function(){try{return!!self.localStorage}catch(q){return!1}};
oxd=function(){if(pjA())_.M6(Error("Xf"));else{var q=document.createElement("iframe");q.style.display="none";var N=N===void 0?window.location.href:N;var b=_.Pv(_.M7("PERSIST_IDENTITY_IFRAME_URL"));N=b?b:(new URL(N)).host.indexOf("studio")===0?_.Xe(P1n,"persist_identity"):_.Xe(Mie,"persist_identity");_.b$(q,1,N);q.id="persist_identity";var y;(y=document.body)==null||y.appendChild(q)}};
pjA=function(){var q=Avh;q||(q=document.querySelector("#persist_identity"));return q};
eYe=function(){var q=!1;try{q=!!window.sessionStorage.getItem("session_logininfo")}catch(N){q=!0}return(_.M7("INNERTUBE_CLIENT_NAME")==="WEB"||_.M7("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&q};
BKJ=function(q,N){if(!eYe())return!1;N||(N=_.M7("LOGIN_INFO"));return N?(q.session_logininfo=N,!0):!1};
qrJ=function(q,N){q=q===void 0?!1:q;if((N===void 0||!N)&&HSJ!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.ou("LOG_STICKINESS",!1)){N=_.Oe();var b=_.QY(),y={identityStickinessData:{initialState:HSJ}};N&&b&&_.Sg(N,b,y)}if(N=pjA())if(b=N.src?(new URL(N.src)).origin:"*",q){var J;(J=N.contentWindow)==null||J.postMessage({action:"clear"},b)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(q=window.sessionStorage.getItem("session_logininfo"))){var E;(E=N.contentWindow)==null||E.postMessage({loginInfo:q},b)}};
_.w5=function(q){q=q===void 0?!0:q;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.PC("LOGIN_INFO",""),q&&window.sessionStorage.setItem("from_switch_account","1"),qrJ(!0,q)}catch(N){}};
NoJ=function(q){q&&(q.startsWith("https://accounts.google.com/AddSession")?_.w5():q.startsWith("https://accounts.google.com/ServiceLogin")?_.w5():q.startsWith("https://myaccount.google.com")&&_.N0(q).getPath().endsWith("/youtubeoptions")&&_.w5())};
iI=function(q,N){NoJ(q);if(_.ou("LOGGED_IN",!0)&&eYe()){var b=AGd(q);b==null&&(b={});BKJ(b,N)&&_.Lx(q,b)}};
buh=function(){function q(N){for(N=N.target;N&&N.nodeName!=="A";)if(N=N.parentNode,!(N&&N instanceof HTMLElement))return;if(N&&!N.hasAttribute("download")&&N.getAttribute("rel")!=="external"&&N.href)return N.href}
document.addEventListener("mousedown",function(N){N.button!==0&&(N=q(N))&&iI(N)});
document.addEventListener("click",function(N){(N=q(N))&&iI(N)})};
ElZ=function(){var q=new yAR;try{if(_.ou("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(R){q.increment(5,!1);return}if(_.M7("LOGIN_INFO")){var N=JAJ?JAJ:window.location;_.M7("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&oxd();var b=AGd(N.href);b==null&&(b={});var y=b.session_logininfo,J=Number(window.sessionStorage.getItem("stickiness_reload")),E=y===_.M7("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
J>=2||E)J>=2?q.increment(2,E):E?q.increment(7,E):window.sessionStorage.getItem("session_logininfo")||(q.increment(3,E),HSJ="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.M7("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.M7("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))q.increment(4,E),window.sessionStorage.removeItem("stickiness_reload");
else if(J<2){window.sessionStorage.setItem("stickiness_reload",String(J+1));var F=N.href;F=_.px(F,"sttick");iI(F,window.sessionStorage.getItem("session_logininfo"));F=_.ZM(F,{sttick:J});q.increment(J,E);_.XxC(N,F)}}else q.increment(6,!1)}else _.w5(!1)}catch(R){}};
_.lI=function(q,N,b,y,J){N=N===void 0?{}:N;b=b===void 0?"":b;y=y===void 0?window:y;q=_.F$(q,N);iI(q);b=_.pc(q+b,J);_.XxC(y.location,b)};
gld=function(q){if(q.urlEndpoint){if(q=_.gO(q.urlEndpoint.url),q.adurl)return z1(q.adurl)}else if(q.watchEndpoint)return"//www.youtube.com/watch?v="+q.watchEndpoint.videoId;return null};
ZuC=function(q){if(!q||!q.reportingPings)return null;var N={};q.reportingPings.forEach(function(b){b.pingType in N?N[b.pingType].push(b.url):N[b.pingType]=[b.url]});
return{adpings:aZn(N)}};
_.D4=function(q){q=q===void 0?!1:q;var N=_.c3(),b="USER_INTERFACE_THEME_LIGHT";N.getFlag(165)?b="USER_INTERFACE_THEME_DARK":N.getFlag(174)?b="USER_INTERFACE_THEME_LIGHT":_.K9()&&(b="USER_INTERFACE_THEME_DARK");return q?b:F1J()||b};
_.Rhu=function(){return!_.x("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.K9=function(){return _.Rhu()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.hN=function(){var q=_.c3();return _.Rhu()&&!q.getFlag(165)&&!q.getFlag(174)};
F1J=function(){var q=q===void 0?window.location.href:q;if(_.x("kevlar_disable_theme_param"))return null;var N=_.wO(q);if(_.dye(N))return"USER_INTERFACE_THEME_DARK";try{var b=_.gO(q).theme;return cAn.get(b)||null}catch(y){}return null};
_.dye=function(q){return _.x("enable_dark_theme_only_on_shorts")?!(q==null||!q.startsWith("/shorts/")):!1};
_.$yd=function(q,N,b,y,J){N=N===void 0?!1:N;b=b===void 0?!1:b;var E=_.M7("INNERTUBE_CONTEXT");if(!E)return _.po(Error("ag")),{};E=(0,_.nM.unsafeClone)(E);_.x("web_no_tracking_params_in_shell_killswitch")||delete E.clickTracking;E.client||(E.client={});var F=E.client;F.clientName==="MWEB"&&F.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(F.clientFormFactor=_.M7("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");F.screenWidthPoints=window.innerWidth;F.screenHeightPoints=window.innerHeight;F.screenPixelDensity=
Math.round(window.devicePixelRatio||1);F.screenDensityFloat=window.devicePixelRatio||1;F.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());F.userInterfaceTheme=_.D4();if(!N){var R=_.Iiz();R&&(F.connectionType=R);_.x("web_log_effective_connection_type")&&(R=s5n())&&(E.client.effectiveConnectionType=R)}var c;if(_.x("web_log_memory_total_kbytes")&&((c=_.JZ.navigator)==null?0:c.deviceMemory)){var z;c=(z=_.JZ.navigator)==null?void 0:z.deviceMemory;E.client.memoryTotalKbytes=""+c*1E6}N&&y&&!_.x("web_it_context_set_original_url_ks")&&
(F.originalUrl=usd(_.JZ.location.href,y).toString());_.x("web_gcf_hashes_innertube")&&(R=AiA())&&(z=R.coldConfigData,c=R.coldHashData,R=R.hotHashData,E.client.configInfo=E.client.configInfo||{},z&&(E.client.configInfo.coldConfigData=z),c&&(E.client.configInfo.coldHashData=c),R&&(E.client.configInfo.hotHashData=R));z=_.gO(_.JZ.location.href);!_.x("web_populate_internal_geo_killswitch")&&z.internalcountrycode&&(F.internalGeo=z.internalcountrycode);!_.x("web_populate_client_screen_killswitch")&&J&&(F.clientScreen=
J);F.clientName==="MWEB"||F.clientName==="WEB"?(F.mainAppWebInfo||(F.mainAppWebInfo={}),F.mainAppWebInfo.graftUrl=y||_.JZ.location.href,_.x("kevlar_woffle")&&_.k8.instance&&(y=_.k8.instance,F.mainAppWebInfo.pwaInstallabilityStatus=!y.appInstalledEventFired&&y.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),F.mainAppWebInfo.webDisplayMode=aCh(),F.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):F.clientName==="TVHTML5"&&
(!_.x("web_lr_app_quality_killswitch")&&(y=_.M7("LIVING_ROOM_APP_QUALITY"))&&(F.tvAppInfo=Object.assign(F.tvAppInfo||{},{appQuality:y})),y=_.M7("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(F.tvAppInfo=Object.assign(F.tvAppInfo||{},{certificationScope:y}));!_.x("web_populate_time_zone_itc_killswitch")&&(y=fin())&&(F.timeZone=y);(y=bru())?F.experimentsToken=y:delete F.experimentsToken;F=yeZ();y=_.zhZ();y=(0,_.nM.getValues)(y.tokenJars);E.request=Object.assign({},E.request,{internalExperimentFlags:F,consistencyTokenJars:y});
!_.x("web_prequest_context_killswitch")&&(F=_.M7("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(E.request.externalPrequestContext=F);y=_.c3();F=y.getFlag(58);y=y.get("gsml","");E.user=Object.assign({},E.user);F&&(E.user.enableSafetyMode=F);y&&(E.user.lockedSafetyMode=!0);_.x("warm_op_csn_cleanup")?b&&(N=_.Oe())&&(E.clientScreenNonce=N):!N&&(N=_.Oe())&&(E.clientScreenNonce=N);q&&(E.clickTracking={clickTrackingParams:q});if(q=_.Ng("yt.mdx.remote.remoteClient_"))E.remoteClient=q;_.Uv.getInstance().setLocationOnInnerTubeContext(E);
try{var m=z2u(),r=m.bid;delete m.bid;E.adSignalsInfo={params:[],bid:r};for(var X=_.Z(Object.entries(m)),V=X.next();!V.done;V=X.next()){var G=_.Z(V.value),w=G.next().value,D=G.next().value;m=w;r=D;q=void 0;(q=E.adSignalsInfo.params)==null||q.push({key:m,value:""+r})}var k,f;if(((k=E.client)==null?void 0:k.clientName)==="TVHTML5"||((f=E.client)==null?void 0:f.clientName)==="TVHTML5_UNPLUGGED"){var L=_.M7("INNERTUBE_CONTEXT");L.adSignalsInfo&&(E.adSignalsInfo.advertisingId=L.adSignalsInfo.advertisingId,
E.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",E.adSignalsInfo.limitAdTracking=L.adSignalsInfo.limitAdTracking)}}catch(S){_.po(S)}return E};
_.f9=function(){return{isShellLoad:_.ou("IS_SHELL_LOAD",!1)}};
myu=function(){navigator.serviceWorker.getRegistrations().then(function(q){q.forEach(t$z)})};
t$z=function(q){q&&_.rAz(Xfd,q.scope)};
_.rAz=function(q,N){N={scope:N||_.jA("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.kB(q),N)};
C9=function(q,N,b,y){if(N&&N.serializedYpcCujLoggingParams){if(b){var J={};J.transactionErrorType=b;y&&(J.errorMessage=y);N.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:J}}}b={};b.ypcCujContext=N;q=_.JN("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",q,b);_.Ev().logFlowEvent(q,"FLOW_TYPE_YPC_ACQUISITION")}};
_.V$h=function(q,N,b,y){var J={};J.serializedTransactionFlowLoggingParams=N;b&&(J.errorType=b);y&&(J.errorMessage=y);_.W_(q,J);_.Lo()};
_.jZh=function(q){q&&_.V$h("transactionFlowStarted",q)};
_.xyJ=function(q){q&&_.V$h("transactionFlowCancelled",q)};
_.I0=function(q,N,b){N&&_.V$h("transactionFlowFailed",N,q,b)};
vlA=function(q){var N=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");N&&(N.inert=q)};
_.TM=function(){this.megabloxUrl_=null};
_.n9=function(q){try{var N=Gke==null?void 0:Gke.composedPath(q)}catch(b){N=q.composedPath?q.composedPath():[]}return N&&N.length>0?N:q.composedPath?q.composedPath():[]};
_.a0=function(q){return _.n9(q)[0]};
Se=function(q){return q instanceof ShadowRoot?ShadowRoot:q instanceof DocumentFragment?DocumentFragment:q instanceof Document?Document:HTMLElement};
YrA=function(q){if(q instanceof Element)return Element.prototype;if(q instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("eg`"+q);};
QZd=function(q,N){return _.x("sunnydom_native_scoped_query_selectors")?YrA(q).querySelector.call(q,N):Se(q).prototype.querySelector.call(q,N)};
OuA=function(q,N){return _.x("sunnydom_native_scoped_query_selectors")?YrA(q).querySelectorAll.call(q,N):Se(q).prototype.querySelectorAll.call(q,N)};
wfD=function(q){var N,b,y;return(y=(b=(N=q.parentElement)!=null?N:q.__shady_native_parentElement)!=null?b:q.__shady_parentElement)!=null?y:null};
iuz=function(q){var N,b,y;return(y=(b=(N=q.parentNode)!=null?N:q.__shady_native_parentNode)!=null?b:q.__shady_parentNode)!=null?y:null};
l0d=function(q){var N,b,y;return(y=(b=(N=q.nextSibling)!=null?N:q.__shady_native_nextSibling)!=null?b:q.__shady_nextSibling)!=null?y:null};
K1n=function(q){var N,b,y;return(y=(b=(N=q.previousSibling)!=null?N:q.__shady_native_previousSibling)!=null?b:q.__shady_previousSibling)!=null?y:null};
DyZ=function(q){var N,b,y;return(y=(b=(N=q.nextElementSibling)!=null?N:q.__shady_native_nextElementSibling)!=null?b:q.__shady_nextElementSibling)!=null?y:null};
hhz=function(q){var N,b,y;return(y=(b=(N=q.previousElementSibling)!=null?N:q.__shady_native_previousElementSibling)!=null?b:q.__shady_previousElementSibling)!=null?y:null};
kkJ=function(q){var N,b,y;return new Set([].concat(_.a9((N=q.children)!=null?N:[]),_.a9((b=q.__shady_native_children)!=null?b:[]),_.a9((y=q.__shady_children)!=null?y:[])))};
Uyz=function(q){var N,b,y;return new Set([].concat(_.a9((N=q.childNodes)!=null?N:[]),_.a9((b=q.__shady_native_childNodes)!=null?b:[]),_.a9((y=q.__shady_childNodes)!=null?y:[])))};
_.WP=function(q){if(!(q instanceof Element))return null;q=q.classList?Array.from(q.classList):void 0;if(!q)return null;var N=q.indexOf("style-scope");return N>-1&&N+1<q.length?q[N+1]:null};
L9=function(q){if(!(q instanceof HTMLElement))return null;var N=q&&(q.$$||q.polymerController)?q.tagName.toLowerCase():null;return N?N:_.WP(q)};
f0u=function(q,N){return _.x("sunnydom_native_scoped_query_selectors")?q+".style-scope."+N:q.replace(/[^a-z]*[^\s]+/g,function(b){return b+".style-scope."+N})};
CzA=function(q,N){return N?q.split(",").map(function(b){return f0u(b.trim(),N)}).join(", "):q};
_.p9=function(q){var N,b,y,J;return(J=(y=(b=(N=q.root)!=null?N:q.shadowRoot)!=null?b:q.__shady_native_shadowRoot)!=null?y:q.__shady_shadowRoot)!=null?J:q};
I0n=function(q){var N,b,y;return(y=(b=(N=q.__shady_parentNode)!=null?N:q.__shady_native_parentNode)!=null?b:q.parentNode)!=null?y:null};
ToZ=function(q){var N,b;return(b=(N=iuz(q))!=null?N:q.host)!=null?b:null};
sZn=function(q){for(;q&&!(q instanceof HTMLElement);)q=ToZ(q);return q};
nlR=function(q){var N=sZn(q);return q===N?_.WP(q):N?L9(N):null};
a0J=function(q){return(q=sZn(q))?L9(q):null};
Srd=function(q){if(q instanceof Comment)return!1;if(q instanceof Text){var N,b;if(((b=(N=q.textContent)==null?void 0:N.trim())!=null?b:"")==="")return!1}return!0};
PP=function(q,N,b){var y=N(q);for(b=b===void 0?a0J(q):b;y&&(nlR(y)!==b||!Srd(y));)q=y,y=N(q);return y};
W1Z=function(q,N,b){if(!N)return null;q=a0J(q);return nlR(N)===q&&Srd(N)?N:PP(N,b,q)};
L1z=function(q){return PP(q,I0n,_.WP(q))};
pfJ=function(q){return PP(q,DyZ)};
Pzd=function(q){return PP(q,l0d)};
M$A=function(q){return PP(q,hhz)};
olJ=function(q){return PP(q,K1n)};
AAd=function(q){return W1Z(q,q.firstChild||null,l0d)};
ehe=function(q){var N,b,y;var J=(y=(b=(N=q.firstElementChild)!=null?N:q.__shady_native_firstElementChild)!=null?b:q.__shady_firstElementChild)!=null?y:null;return W1Z(q,J,DyZ)};
BoC=function(q){var N,b,y;var J=(y=(b=(N=q.lastChild)!=null?N:q.__shady_native_lastChild)!=null?b:q.__shady_lastChild)!=null?y:null;return W1Z(q,J,K1n)};
Huz=function(q){var N,b,y;var J=(y=(b=(N=q.lastElementChild)!=null?N:q.__shady_native_lastElementChild)!=null?b:q.__shady_lastElementChild)!=null?y:null;return W1Z(q,J,hhz)};
qin=function(q){var N=a0J(q);return Array.from(Uyz(q)).filter(function(b){return nlR(b)===N})};
Nld=function(q){var N=L9(q);return Array.from(kkJ(q)).filter(function(b){return _.WP(b)===N})};
b_J=function(q){if(!q)return null;var N=_.WP(q);if(!N){var b;return(b=Node.prototype.getRootNode)==null?void 0:b.call(q)}N=N.toUpperCase();for(q=wfD(q);q&&q.tagName!==N;)q=wfD(q);return q?_.p9(q):null};
_.MK=function(q,N,b){if(q instanceof HTMLElement&&_.WP(q)===b){var y=Array.from(q.classList).indexOf("style-scope");if(y===-1)q.classList.add("style-scope"),q.classList.add(N);else if(!(y+1>=q.classList.length)){y=q.classList[y+1];var J,E;q==null||(J=q.classList)==null||(E=J.replace)==null||E.call(J,y,N)}}if(q instanceof HTMLElement||q instanceof DocumentFragment)for(J=_.Z(kkJ(q)),E=J.next();!E.done;E=J.next())_.MK(E.value,N,b);return q};
o0=function(q,N){if(q instanceof HTMLElement&&_.WP(q)===N){var b=Array.from(q.classList).indexOf("style-scope");b===-1||b+1>=q.classList.length||q.classList.remove("style-scope",q.classList[b+1])}if(q instanceof HTMLElement||q instanceof DocumentFragment){b=_.Z(q.children);for(var y=b.next();!y.done;y=b.next())o0(y.value,N)}return q};
_.yYR=function(q,N){return Se(q).prototype.appendChild.call(q,N)};
JYz=function(q,N){if(q===N)return!0;q=Uyz(q);return Array.from(q).some(function(b){return JYz(b,N)})};
_.ee=function(q,N){if(q instanceof AN)return q;(N==null?0:N.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(q,"ownerDocument")&&Object.defineProperty(q,"ownerDocument",{get:function(){return window.document}});
return new AN(q)};
grJ=function(){var q=AN.prototype,N=[].concat(_.a9(ErZ?[]:["getRootNode"]),["setAttribute","removeAttribute"]);N=_.Z(N);for(var b=N.next(),y={};!b.done;y={method$jscomp$53:void 0},b=N.next())y.method$jscomp$53=b.value,q[y.method$jscomp$53]=function(J){return function(){return this.host[J.method$jscomp$53].apply(this.host,arguments)}}(y)};
Fih=function(){var q=AN.prototype,N=[].concat(_.a9(ErZ?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.a9(Z_J?[]:["querySelector","querySelectorAll"]));N=_.Z(N);for(var b=N.next(),y={};!b.done;y={method$jscomp$54:void 0},b=N.next())y.method$jscomp$54=b.value,q[y.method$jscomp$54]=function(J){return function(){return this.root[J.method$jscomp$54].apply(this.root,arguments)}}(y)};
cYe=function(){var q=AN.prototype,N=[].concat(_.a9(Red?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.a9(dqC?[]:["parentNode"]));N=_.Z(N);for(var b=N.next(),y={};!b.done;y={prop$jscomp$67:void 0},b=N.next())y.prop$jscomp$67=b.value,Object.defineProperty(q,y.prop$jscomp$67,{get:function(J){return function(){return this.host[J.prop$jscomp$67]}}(y),
configurable:!0})};
$qn=function(){var q=AN.prototype,N=["activeElement"].concat(_.a9(Red?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.a9(uhd?[]:["children"]),_.a9(zen?[]:["lastChild"]));N=_.Z(N);for(var b=N.next(),y={};!b.done;y={prop$jscomp$68:void 0},b=N.next())y.prop$jscomp$68=b.value,Object.defineProperty(q,y.prop$jscomp$68,{get:function(J){return function(){return this.root[J.prop$jscomp$68]}}(y),
configurable:!0})};
tCd=function(){for(var q=AN.prototype,N=_.Z(["innerHTML","textContent"]),b=N.next(),y={};!b.done;y={prop$jscomp$69:void 0},b=N.next())y.prop$jscomp$69=b.value,Object.defineProperty(q,y.prop$jscomp$69,{get:function(J){return function(){return this.root[J.prop$jscomp$69]}}(y),
set:function(J){return function(E){this.root[J.prop$jscomp$69]=E}}(y),
configurable:!0})};
mqD=function(q){var N=AN.prototype;q=_.Z(Object.entries(q));for(var b=q.next(),y={};!b.done;y={fn$jscomp$403:void 0},b=q.next()){var J=_.Z(b.value);b=J.next().value;J=J.next().value;y.fn$jscomp$403=J;N[b]=function(E){return function(){return E.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.a9(arguments)))}}(y)}};
Xeh=function(){for(var q=AN.prototype,N=_.Z(Object.entries(rYA)),b=N.next(),y={};!b.done;y={fn$jscomp$404:void 0},b=N.next()){var J=_.Z(b.value);b=J.next().value;J=J.next().value;y.fn$jscomp$404=J;Object.defineProperty(q,b,{get:function(E){return function(){return E.fn$jscomp$404.apply(null,[this.host.node||this.host].concat(_.a9(arguments)))}}(y),
configurable:!0})}};
_.BP=function(q){return q instanceof VCD||q instanceof Document?q:new VCD(q)};
jcZ=function(){for(var q=VCD.prototype,N=_.Z("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),b=N.next(),y={};!b.done;y={method$jscomp$55:void 0},b=N.next())y.method$jscomp$55=b.value,q[y.method$jscomp$55]=function(J){return function(){return HTMLElement.prototype[J.method$jscomp$55].call.apply(HTMLElement.prototype[J.method$jscomp$55],[this.node].concat(_.a9(arguments)))}}(y)};
xqZ=function(){for(var q=VCD.prototype,N=_.Z("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),b=N.next(),y={};!b.done;y={prop$jscomp$70:void 0},b=N.next())y.prop$jscomp$70=b.value,Object.defineProperty(q,y.prop$jscomp$70,{get:function(J){return function(){var E;return(E=this.node["__shady_native_"+J.prop$jscomp$70])!=null?E:this.node[J.prop$jscomp$70]}}(y),
configurable:!0})};
_.HP=function(q,N,b){b===void 0&&(b=!q.classList.contains(N));b?q.classList.add(N):q.classList.remove(N)};
_.bL=function(q,N,b){b===void 0&&(b=!q.hasAttribute(N));if(N==="class")throw Error("fg");b?_.BP(q).setAttribute(N,""):_.BP(q).removeAttribute(N)};
vrd=function(q){return(q.localName!=="slot"?[]:(0,_.yb)(q).assignedNodes({flatten:!0})).filter(function(N){return N.nodeType===Node.ELEMENT_NODE})};
_.GFJ=function(q){return(q=_.ee(q).querySelector("slot"))&&q.localName==="slot"?vrd(q):[]};
_.Jm=function(q,N){window.ShadyCSS&&window.ShadyCSS.styleSubtree(q,N)};
Ek=function(q,N){var b=N.bind(q);return function(y){b(y,y.detail)}};
_.gq=function(q,N){var b=Yih.get(q);b||(b=new WeakMap,Yih.set(q,b));if(b.has(N))return b.get(N);if(_.x("web_fi_listen_disable_bound_fn_helper")){var y=N.bind(q);q=function(J){y(J,J==null?void 0:J.detail)}}else q=Ek(q,N);
b.set(N,q);return q};
wen=function(q,N){Qcz(q);q.created[O_A].push(N)};
Qcz=function(q){if(!q.created||!q.created[O_A]){var N=q.created,b=N?[N]:[];q.created=function(){for(var y=_.Z(b),J=y.next();!J.done;J=y.next())J.value.apply(this)};
q.created[O_A]=b}};
i_z=function(q){return function(){var N=_.MB.apply(0,arguments);return function(b,y,J){q.apply(null,_.a9(N))(b,y,J)}}};
lgz=function(){return function(){var q=_.MB.apply(0,arguments);return function(N,b,y){dQA.apply(null,_.a9(q))(N,b,y)}}};
_.O=function(q){return lgz()(q)};
_.l=function(){return i_z($Qn).apply(null,_.a9(_.MB.apply(0,arguments)))};
_.ZP=function(q){return _.x("pbcm_fi_listen_decorators")?Kih(q):i_z(ucJ)(q)};
Kih=function(q){return function(N,b){wen(N,function(){var y=this[b],J=_.x("web_fi_listen_disable_bound_fn_helper")?function(E){y(E,E.detail)}.bind(this):Ek(this,y);
DqJ.has(q)?PK(this.hostElement,q,J):this.hostElement.addEventListener(q,J)})}};
_.FY=function(){return i_z(zLA).apply(null,_.a9(_.MB.apply(0,arguments)))};
_.U=function(q){q=q===void 0?{}:q;return i_z(cxu)(q)};
_.RU=function(q){if(q.hostElement&&q!==q.hostElement){var N=_.mj(q.hostElement);N=q.renderIdom?N:N.shadowRoot}N||(q=q.root,N=q instanceof Node?_.mj(q):null);return N};
_.dq=function(q){return heJ?kFJ(q):function(N,b){Object.defineProperty(N,b,{get:function(){var y;return(y=_.RU(this))==null?void 0:y.querySelector(q)},
enumerable:!0,configurable:!0})}};
kFJ=function(q){return function(N,b){Object.defineProperty(N,b,{get:function(){var y,J=(y=_.ee(this.hostElement))==null?void 0:y.querySelector(q);if(J)return J;var E;return(E=_.RU(this))==null?void 0:E.querySelector(q)},
enumerable:!0,configurable:!0})}};
_.cH=function(q){return heJ?UqZ(q):function(N,b){Object.defineProperty(N,b,{get:function(){var y;return(y=_.RU(this))==null?void 0:y.querySelectorAll(q)},
enumerable:!0,configurable:!0})}};
UqZ=function(q){return function(N,b){Object.defineProperty(N,b,{get:function(){var y,J=(y=_.ee(this.hostElement))==null?void 0:y.querySelectorAll(q);if(J==null?0:J.length)return J;var E;return(E=_.RU(this))==null?void 0:E.querySelectorAll(q)},
enumerable:!0,configurable:!0})}};
fgA=function(q){return function(N){if(![_.t9,_.C].includes(Object.getPrototypeOf(N.prototype).constructor))throw Error("gg");bGJ(Object.assign({},typeof q!=="string"?q:{is:q,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(N)}};
_.zs=function(){var q=q===void 0?{}:q;return function(N){if(![mH,_.uL].includes(Object.getPrototypeOf(N.prototype).constructor))throw Error("hg");yxd(Object.assign({},q,{disableInheritanceCheck:!0}))(N)}};
IgR=function(q,N){CJZ[q]!=null||(CJZ[q]=new Set);CJZ[q].add(N)};
_.$9=function(){var q=_.FY.apply(null,_.a9(_.MB.apply(0,arguments)));return function(N,b){IgR(N.is,b);q(N,b)}};
rq=function(q,N,b){if(tm(q)&&!TlZ.has(N)){N=N.replace(/^JSC\$[\d]+_/,"");N=N.replace(/\.\d+(\.|$)/g,function(E,F){return".#"+F});
m_[q]!=null||(m_[q]={});var y,J;(y=m_[q])[J=N]!=null||(y[J]=new Set);m_[q][N].has(b)||(m_[q][N].add(b),_.W_("polymerPropertyAccessEvent",{componentName:q,propertyName:N,accessType:b}))}};
sch=function(){return _.x("polymer_property_access_logging_debug")||_.x("polymer_enable_property_access_logging")};
tm=function(q){if(_.x("polymer_property_access_logging_debug"))return!0;if(!_.x("polymer_enable_property_access_logging"))return!1;nrJ||(nrJ=Date.now());return(Ue(q)+nrJ)%100<_.VX("polymer_property_access_logging_percent")};
agD=function(q,N){return tm(N)&&q.hostElement.loggingStatus?new Proxy(q,{get:function(b,y,J){if(b.hostElement.loggingStatus.bypassProxyController)return b[y];b.hostElement.loggingStatus.isExternalGet=!0;var E=b[y];b.hostElement.loggingStatus.isExternalGet=!1;if(E instanceof Function)return function(){var F=_.MB.apply(0,arguments);try{return b.hostElement.loggingStatus.currentExternalCall=y,rq(N,y,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),E.apply(this===J?b:this,F)}finally{b.hostElement.loggingStatus.currentExternalCall=
void 0}};
rq(N,y,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return E},
set:function(b,y,J){if(b.hostElement.loggingStatus.bypassProxyController)return b[y]=J,!0;b.hostElement.loggingStatus.isRendererStamper?rq(N,y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):b.hostElement.loggingStatus.isDeclarativeExternal||rq(N,y,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{b.hostElement.loggingStatus.currentExternalSet=y,b[y]=J}finally{b.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):q};
Sid=function(q,N){q&&q.loggingStatus&&!q.loggingStatus.isDeclarativeExternal&&!q.loggingStatus.isExternalGet&&q.loggingStatus.currentExternalSet!==N&&rq(q.tagName.toLowerCase(),N,"PROPERTY_ACCESS_GET_INTERNAL")};
XY=function(q,N,b){q&&(b||q.loggingStatus&&!q.loggingStatus.isInitializing&&!q.loggingStatus.isDefiningPropertyAccessor&&q.loggingStatus.currentExternalSet!==N)&&rq(q.tagName.toLowerCase(),N,"PROPERTY_ACCESS_SET_INTERNAL")};
WiA=function(){return{_definePropertyAccessor:function(q,N){var b=this,y=b.hostElement.loggingStatus;y&&(y.isDefiningPropertyAccessor=!0);var J=b[q];J!==void 0&&(b.__data?b._setPendingProperty(q,J):(b.__dataProto!=null||(b.__dataProto={}),b.__dataProto[q]=J));y&&(y.isDefiningPropertyAccessor=!1);Object.defineProperty(this,q,{get:function(){Sid(b.hostElement,q);return this.__data[q]},
set:function(E){N||this._setPendingProperty(q,E,!0)&&this._invalidateProperties()}})},
created:function(){var q=this._setPendingProperty.bind(this);this._setPendingProperty=function(N,b,y){XY(this.hostElement,N);return q.apply(this,[N,b,y])}}}};
Lin=function(q){sch()&&_.O(Vb.prototype)(q.prototype,"__templateBindingLoggingBehavior")};
pen=function(q,N){if(N.resolvedFactories.length!==q.resolvedFactories.length)return!0;N=_.Z(N.resolvedFactories.entries());for(var b=N.next();!b.done;b=N.next()){var y=_.Z(b.value);b=y.next().value;y=y.next().value;if(y.providerClass){if(y.providerClass!==q.resolvedFactories[b].providerClass)return!0}else if(y.providerValue){if(y.providerValue!==q.resolvedFactories[b].providerValue)return!0}else if(y.factory!==q.resolvedFactories[b].factory)return!0}return!1};
PJu=function(q,N){q=_.Z(q);for(var b=q.next();!b.done;b=q.next())if(b=b.value,b.constructor===Array)PJu(b,N);else{var y=N;y.has(b)||(b.inject&&y.add(b),b.behaviors&&PJu(b.behaviors,y))}};
jl=function(q,N){var b=q[N];q[N]=function(){var y=_.MB.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(b)return b.apply(this,y)}};
eeJ=function(){_.x9.Class=function(b,y){b=MCz(b,y);jl(b.prototype,"created");return b};
jl(vH.prototype,"_initializeProperties");jl(_.Gs.prototype,"_initializeProperties");if(orA)jl(AYn,"created");else{var q=function(){jl(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))q();else{var N=customElements.define;customElements.define=function(b,y,J){N.call(customElements,b,y,J);b==="tp-yt-iron-list"&&(q(),customElements.define=N)}}}};
H_n=function(q,N){q.prototype.behaviors=q.prototype.behaviors||[];q.prototype.behaviors.unshift(BlR.InjectBehavior);q.prototype.provide=N};
_.Ok=function(q){return function(N){if(!q.disableElementRegistration){q.noInjection||H_n(N,q.providers);var b=N.prototype;b.__templateHelpers||dQA(Y9.prototype)(b,"__templateHelpers");b=q.is;q8J||(q8J=Date.now());(Ue(b)+q8J)%100<_.VX("polymer_log_prop_change_observer_percent")&&dQA(Qb.prototype)(N.prototype,"__propertyObserverObserver");N.prototype.behaviors=N.prototype.behaviors||[];N.prototype.behaviors.unshift(_.Nid.YtHostElementBehavior);Lin(N);fgA({is:q.is,notifyObserversOnUndefined:q.notifyObserversOnUndefined!==
!1,fastInit:q.fastInit,template:q.template,disableEnforceFastDefaultValuesCheck:!0})(N)}}};
_.I=function(q){return _.Ok({is:q.is,template:q.template,disableElementRegistration:q.disableElementRegistration,cssBuildOptOut:q.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
JJR=function(q,N){if(b8z){q=new q;for(var b=_.Z(Object.getOwnPropertyNames(q)),y=b.next();!y.done;y=b.next())y=y.value,N[y]=q[y];for(b=N;b&&b!==Object.prototype;b=Object.getPrototypeOf(b)){y=_.Z(Object.getOwnPropertyNames(b));for(var J=y.next();!J.done;J=y.next())J=J.value,q.hasOwnProperty(J)||Object.defineProperty(q,J,yJd(N,J))}}else q.apply(N)};
yJd=function(q,N){return{get:function(){var b=q[N];return b instanceof Function?b.bind(q):b},
set:function(b){q[N]=b}}};
gpJ=function(q,N){for(var b=q._noAccessors,y=_.Z(Object.getOwnPropertyNames(q)),J=y.next();!J.done;J=y.next())if(J=J.value,!Epu.has(J))if(b)N[J]=q[J];else{var E=Object.getOwnPropertyDescriptor(q,J);E&&(E.configurable=!0,Object.defineProperty(N,J,E))}};
Z8R=function(q,N,b){return function(y){if(b){var J=b();y.model=J}if(q[N])q[N](y,y.detail)}};
wq=function(q){var N=[];if(typeof q==="string")q.length>0&&N.push.apply(N,_.a9(q.split(".")));else{q=_.Z(q);for(var b=q.next();!b.done;b=q.next())b=b.value,typeof b==="string"?N.push.apply(N,_.a9(b.split("."))):N.push(b)}return N};
F3z=function(q,N){if(N[N.length-1]!=="*"&&N[N.length-1]!=="splices"){for(var b=0;b<N.length;b++){if(!q)return;q=q[N[b]]}return q}};
Rod=function(q,N){if(q.length>N.length)return!1;for(var b=0;b<q.length;b++)if(q[b]!==N[b])return!1;return!0};
cJA=function(q,N,b){if(N.type==="compute"){var y=N.getter.bind(b);var J=N.args}else y=function(){return b[N.method.methodName].apply(b,_.a9(_.MB.apply(0,arguments)))},J=N.method.args;
dVd(q,N.propertyKey,y,J,N.value)};
zon=function(q,N){if(N.readOnly){var b=Object.getOwnPropertyDescriptor(q.model,N.propertyKey);Object.defineProperty(q.model,N.propertyKey,{get:b.get,set:function(){}});
q.model[uZz(N.propertyKey)]=b.set}};
$Vu=function(q,N,b){if(b){var y=N.propertyKey,J=N.selector;N=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.a9(N.selectorArgs.map(function(E){return{type:"path",path:E}})));
dVd(q,y,function(E){var F=_.MB.apply(1,arguments);return J.apply(null,[b.getState()].concat(_.a9(F)))},N)}};
mVd=function(q,N,b){var y=_.Fv(N.propertyKey)+"-changed";tpz(q,function(J){var E={value:J.value,queueProperty:!0};J.path.split(".").length>1&&(E.path=J.path);b.dispatchEvent(new CustomEvent(y,{detail:E}))},[{type:"wildcard",
path:N.propertyKey}])};
rJz=function(q,N,b){tpz(q,function(){b[N.method.methodName].apply(b,_.a9(_.MB.apply(0,arguments)))},N.method.args)};
uZz=function(q){return"_set"+(q.charAt(0).toUpperCase()+q.slice(1))};
X8D=function(){var q,N=L3(function(b){q=b},!1);
return[q,N]};
Giu=function(q){q=q.trim().replace(VpJ,",").replace(jyz,"$1");var N=q[0];N==="-"&&(N=q[1]);if(N>="0"&&N<="9")return{type:"literal",value:Number(q)};if(N==="'"||N==='"')return{type:"literal",value:q.slice(1,-1)};if(N=q.match(xVZ)){N=N[1];var b=vph[N];if(b)return{type:b,path:q.slice(0,-(N.length+1))}}return{type:"path",path:q}};
w8J=function(q){var N=q.match(Y8D);if(N)return q={methodName:N[1],args:Qyn},N[2].trim()&&(N=N[2].replace(O8u,"&comma;").split(","),q.args=N.map(Giu)),q};
i8n=function(q,N,b,y){y=y===void 0?!1:y;N=_.Fv(N);var J=UX;J&&(b=J(b,N,"attribute",q));iL(q,b,N,y)};
iL=function(q,N,b,y){N=lfD(N,y===void 0?!1:y);N===void 0?q.removeAttribute(b):q.setAttribute(b,N)};
lfD=function(q,N){switch(typeof q){case "object":case "function":if(q instanceof Date)return q.toString();if(q){if((N===void 0?0:N)&&!_.x("polymer_reflect_objects_as_boolean_killswitch"))return q?"":void 0;N=window.trustedTypes?window.trustedTypes.isHTML(q)||window.trustedTypes.isScript(q)||window.trustedTypes.isScriptURL(q):void 0;if(N)return q;try{return JSON.stringify(q)}catch(b){_.M6(Error("Dg`"+q))}}break;case "boolean":return q?"":void 0;default:return q!==null&&q!==void 0?q.toString():void 0}};
K3n=function(q){if(q===void 0)throw Error("Eg");return q};
ffn=function(q,N,b,y){var J=DVe(y);if(J.length){y=b;var E="property";hoz.test(b)?E="attribute":b[b.length-1]==="$"&&(b=b.slice(0,-1),E="attribute");var F=kiJ(J);F&&E==="attribute"&&(b==="class"&&q.hasAttribute("class")&&(F+=" "+q.getAttribute(b)),iL(q,F,b));E==="attribute"&&y==="disable-upgrade$"&&q.setAttribute("disable-upgrade","");q.localName==="input"&&y==="value"&&q.setAttribute("value","");q.removeAttribute(y);E==="property"&&(b=_.R$(b));N=K3n(N);UVJ(N,E,b,J);return!0}return b.slice(0,3)===
"on-"?(q.removeAttribute(b),(E=N).events!=null||(E.events=[]),N.events.push({name:b.slice(3),value:y}),!0):b==="id"?(N.id=y,!0):!1};
DVe=function(q){for(var N=[],b=0,y;(y=Cpu.exec(q))!==null;){y.index>b&&N.push({type:"literal",value:q.slice(b,y.index)});var J=y[1][0];b=!!y[2];y=y[3].trim();if(J==="{")throw Error("Fg");(J=w8J(y))?N.push({type:"method",negate:b,signature:J}):N.push({type:"path",negate:b,path:y});b=Cpu.lastIndex}b&&b<q.length&&(q=q.substring(b))&&N.push({type:"literal",value:q});return N};
kiJ=function(q){for(var N="",b=0;b<q.length;b++){var y=q[b];y.type==="literal"&&(N+=y.value)}return N};
UVJ=function(q,N,b,y){q.bindings!=null||(q.bindings=[]);q.bindings.push({kind:N,target:b,parts:y})};
afC=function(q,N,b){var y=!1;if(q.localName==="template"){y=b;var J=N.stripWhitespace;J=Ifn(q,J===void 0?!1:J);var E=q.content.ownerDocument.createDocumentFragment();J.content=E;E.appendChild(q.content);y&&(y.templateInfo=J);y=!0}else q.localName==="slot"&&(N.hasInsertionPoint=!0);if(q.firstChild&&(J=b,q.localName!=="script"&&q.localName!=="style")){E=0;for(var F=q.firstChild;F;){var R=F;if(R.localName==="template"){var c=R.getAttribute("is");if((F=c==="dom-if")||c==="dom-repeat"){R.removeAttribute("is");
c=R.ownerDocument.createElement("ps-"+c);R.parentNode.replaceChild(c,R);c.appendChild(R);var z=Array.from(R.attributes);z=_.Z(z);for(var m=z.next();!m.done;m=z.next())m=m.value,F?TiD.has(m.name)&&iL(c,m.value,m.name):syA.has(m.name)?iL(c,m.value,m.name):npD.has(m.name),R.removeAttribute(m.name);F=c}else F=R}if(F.nodeType===Node.TEXT_NODE){R=void 0;c=q;for(z=F;((R=z.nextSibling)==null?void 0:R.nodeType)===Node.TEXT_NODE;)m=void 0,(m=z).textContent!=null||(m.textContent=""),z.nextSibling.textContent&&
(z.textContent+=z.nextSibling.textContent),c.removeChild(z.nextSibling);if(N.stripWhitespace&&F.textContent&&!F.textContent.trim()){q.removeChild(F);F=F.nextSibling;continue}}afC(F,N,{parentIndex:E,parentInfo:J});F.parentNode&&E++;F=F.nextSibling}}var r;if((r=q.hasAttributes)==null?0:r.call(q)){r=b=K3n(b);J=!1;E=Array.from(q.attributes);E=_.Z(E);for(R=E.next();!R.done;R=E.next())R=R.value,J=ffn(q,r,R.name,R.value)||J;y=J||y}q.nodeType===Node.TEXT_NODE&&(r=DVe(q.textContent),r.length&&(q.textContent=
kiJ(r)||" ",b=K3n(b),UVJ(b,"text","textContent",r),y=!0));b&&y&&(b.infoIndex=N.nodeInfoList.push(b)-1)};
Ifn=function(q,N){N={nodeInfoList:[],stripWhitespace:(N===void 0?!1:N)||q.hasAttribute("strip-whitespace")};afC(q.content,N);return N};
S8e=function(q){Object.assign(q,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
L3n=function(q,N,b){N.signalCache!=null||(N.signalCache={});var y=N.signalCache[b];if(!y){var J=b.split(".");y=!W3A(q,J[0]);if(J.length>1&&y){var E=q.getPathMutationSignal(J);y=function(){var F=P1(q.owner,function(){return q.getWithPath([J[0]])}),R,c=(R=E())==null?void 0:R.value;
return{rootWasDefined:F!==void 0,value:c}}}else y=function(){var F=q.getWithPath(J);
return{rootWasDefined:F!==void 0,value:F}};
N.signalCache[b]=y}return y()};
PpR=function(q,N,b,y,J){N=N.parts.map(function(F,R){if(F.type==="literal"){b.partWasDefined!=null||(b.partWasDefined=[]);var c;(c=b.partWasDefined)[R]||(c[R]=F.value!==void 0);return F.value}var z;if(F.type==="method"){var m,r=(m=(z=b.partWasDefined)==null?void 0:z[R])!=null?m:!1;r||(r=F.signature.args.every(function(G){return G.type==="literal"}));
var X=!1,V=!0;z=F.signature.args.map(function(G){if(G.type==="literal")return G.value;if(G.type!=="path")throw Error("Gg`"+G.type);var w=L3n(q,b,G.path);G=w.value;w=w.rootWasDefined;X||(X=w);V&&(V=w);return G});
r||(r=J===1?V:X);b.partWasDefined!=null||(b.partWasDefined={});b.partWasDefined[R]=r;if(!r)return;z=(R=L3n(q,b,F.signature.methodName).value)&&typeof R==="function"?R.apply(y,z):void 0}else m=L3n(q,b,F.path),z=m.value,b.partWasDefined!=null||(b.partWasDefined={}),(r=b.partWasDefined)[R]||(r[R]=z!==void 0||m.rootWasDefined);F.negate&&(z=!z);return z});
if(N.length===1){var E;return((E=b.partWasDefined)==null?0:E[0])?N[0]:p8J}return N.join("")};
MpJ=function(q){return typeof q==="object"&&!!q&&"notifyPath"in q&&"canNotifyPath"in q};
opn=function(q){return typeof q==="object"&&!!q&&"notifyPath"in q};
AJZ=function(q){return"polymerController"in q};
eoR=function(q,N){N=""+wq(N)[0];if(MpJ(q))return q.canNotifyPath(N);if(AJZ(q)&&MpJ(q.polymerController))return q.polymerController.canNotifyPath(N);if(opn(q)){var b;return!((b=q.properties)==null||!b[N])}if(AJZ(q)&&opn(q.polymerController)){var y;return!((y=q.polymerController.properties)==null||!y[N])}return!1};
BiA=function(q,N,b){MpJ(q)||opn(q)?q.notifyPath(N,b):AJZ(q)&&(MpJ(q.polymerController)||opn(q.polymerController))&&q.polymerController.notifyPath(N,b)};
qQh=function(q,N,b){if(b!==p8J){q.kind==="attribute"||q.target!=="textContent"&&(q.target!=="value"||N.localName!=="input"&&N.localName!=="textarea")||(b=b===void 0?"":b);var y,J=(y=H8A.Polymer)==null?void 0:y.sanitizeDOMValue;J&&(b=J(b,q.target,q.kind,N));if(q.kind==="attribute"){q=q.target;if(q==="class"||q==="name"||q==="slot")N=(0,_.yb)(N);iL(N,b,q)}else if(q=q.target,b!==N[q]||typeof b==="object")N.loggingStatus&&(N.loggingStatus.isDeclarativeExternal=!0,rq(N.localName,q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
N[q]=b,N.loggingStatus&&(N.loggingStatus.isDeclarativeExternal=!1)}};
NFn=function(q,N,b,y){var J=N.parts[0];if(N.parts.length!==1||J.type!=="path"||!eoR(b,N.target))return!1;var E=_.Z(J.path.split(".")),F=E.next().value,R=gn(E);if(W3A(q,F))return!1;y.signalCache!=null||(y.signalCache={});E=y.signalCache[J.path];var c;E=(c=E)==null?void 0:c().value;if((E==null?void 0:E.path)!==void 0){y=wq(E.path);var z=wq(J.path);y=[N.target].concat(_.a9(y.slice(z.length-1)));BiA(b,y,J.negate?!E.value:E.value);return!0}var m=lL(q,F);var r=m.getChangeRecordSignal(R),X=!1;E=function(){if(!X){var G=
P1(q.owner,function(){return m.getWithPath([])});
X||(X=G!==void 0)}return{value:r(),rootWasDefined:X}};
y.signalCache[J.path]=E;y.partWasDefined!=null||(y.partWasDefined={});E=E();(z=y.partWasDefined)[0]||(z[0]=E.rootWasDefined);var V=P1(q.owner,function(){return m.getWithPath(R)});
y.partWasDefined[0]&&P1(q.owner,function(){return void qQh(N,b,J.negate?!V:V)});
return!0};
bdh=function(q,N,b,y,J,E){if(!NFn(q,N,b,y)){var F=PpR(q,N,y,J,E);P1(q.owner,function(){return void qQh(N,b,F)})}};
yKJ=function(q,N,b,y,J,E){b=_.Z(b);for(var F=b.next(),R={};!F.done;R={infoIndex:void 0},F=b.next()){F=F.value;var c=F.bindings;R.infoIndex=F.infoIndex;F=F.parentInfo;if(c){c=_.Z(c);for(var z=c.next(),m={};!z.done;m={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},z=c.next()){m.b$jscomp$257=z.value;if(R.infoIndex===void 0)throw Error("Hg");m.bindingCtx$jscomp$4={};q.effect(function(r,X){return function(){J&&!J()||bdh(q,r.b$jscomp$257,N[X.infoIndex],r.bindingCtx$jscomp$4,y,E)}}(m,R))}}F&&yKJ(q,N,[F],
y,J,E)}};
JKh=function(q,N){q=(N.parentInfo?JKh(q,N.parentInfo):q).firstChild;for(var b=0;q;q=q.nextSibling)if(N.parentIndex===b++)return q;throw Error("Ig");};
gOJ=function(q,N,b,y){q=document.importNode(q.content,!0);q.__noInsertionPoint=!(y==null?0:y.hasInsertionPoint);for(var J=Array(N.length),E={},F=0;F<N.length;F++){var R=N[F],c=JKh(q,R);J[F]=c;R.id&&(E[R.id]=c);if(R.templateInfo){var z=c.parentElement;z&&(z.templateInfo=R.templateInfo,z.parentSignalProxy=b,z.eventListenerHost=y.eventListenerHost,z.stampingEnabled=y.enabledSignal)}z=void 0;if((z=R.events)==null?0:z.length)for(z=0;z<R.events.length;z++){var m=R.events[z];EOd(y.eventListenerHost,c,m.name,
m.value,y.getModel)}}yKJ(b,J,N,y.thisCtx,y.enabledSignal,y.methodInvocationRequirement);return{root:q,nodes:J,nodesById:E}};
FfJ=function(q,N){q=q();var b;(b=ZdA.ShadyCSS)==null||b.prepareTemplate(q,N);N=Ifn(q);return{template:q,nodeInfoList:N.nodeInfoList,hasInsertionPoint:N.hasInsertionPoint}};
cKu=function(){RvA=!1;for(var q=Kk.length,N=0;N<q;N++){var b=Kk[N];if(b)try{b()}catch(y){Promise.resolve().then(function(){throw y;})}}Kk.splice(0,q);
dlA+=q};
twu=function(q){RvA||(RvA=!0,uXz.textContent=(zvD++).toString());Kk.push(q);return $lh++};
_.k9=function(q,N,b){DP++;q=N?new mle(DP,q,N,b):new rKA(DP,q);hm.set(DP,q);return DP};
XJZ=function(q){(q=hm.get(q))&&q.cancel()};
jLh=function(q,N){q=Vwu.get(q);return q?(N=q.get(N))?N:null:null};
_.Uk=function(q,N,b,y){var J=jLh(q,N);if(!J){J=new xlu;var E=Vwu.get(q);E||(E=new Map,Vwu.set(q,E));E.set(N,J)}q=b.bind(q);J.run(q,y,void 0)};
_.vOD=function(q,N){var b;(b=jLh(q,N))==null||b.cancel()};
GHC=function(q){var N;(N=jLh(q,"doRender"))==null||N.flush()};
fk=function(q){var N;return(N=q.hostElement)!=null?N:q};
YQh=function(q){var N=q.indexOf(".");return N===-1?q:q.slice(0,N)};
QLZ=function(q,N,b,y,J,E){E=(J=(y=E?YQh(N):N)?N:null)?q.get(J):q.__data[N];J&&E===void 0&&(E=b[N]);_.e2(q.hostElement,Peu(y)+"-changed",{value:E,queueProperty:!0,path:J!=null?J:void 0},{bubbles:!1,composed:!1})};
OdR=function(q,N){q.__isReflecting=!0;i8n(q.hostElement,N,q.__data[N]);q.__isReflecting=!1};
wJn=function(q){if(q._onIronRequestResizeNotifications){var N=q._onIronRequestResizeNotifications.bind(q);q._onIronRequestResizeNotifications=function(b){_.a0(b)!==q.hostElement&&N(b)}}q._ariaActiveAttributeChanged&&(q._ariaActiveAttributeChanged=q._ariaActiveAttributeChanged.bind(q.hostElement));
q._activeChanged&&(q._activeChanged=function(b){q.toggles?iL(q.hostElement,b?"true":"false",q.ariaActiveAttribute):q.hostElement.removeAttribute(q.ariaActiveAttribute);q._changedButtonState()});
q._asyncClick&&(q._asyncClick=function(){_.k9(function(){q.hostElement.click()},1)});
!q.keyEventTarget||q.keyEventTarget instanceof EventTarget||(q.keyEventTarget=fk(q.keyEventTarget));q._disabledChanged&&(q._disabledChanged=q._disabledChanged.bind(q.hostElement));q._observeItems&&(q._observeItems=function(b){var y=fk(b);return _.mj(y).observeNodes(function(J){q._updateItems();q._updateSelected();_.e2(y,"iron-items-changed",J,{bubbles:!1,cancelable:!1})})});
q._updateItems&&q._updateItems===_.Ck._updateItems&&(q._updateItems=function(){var b=_.mj(q.hostElement).queryDistributedElements(q.selectable||"*");b=Array.prototype.filter.call(b,q._bindFilterItem);q._setItems(b)});
q._computeKeyboardClass&&(q._computeKeyboardClass=function(b){_.HP(q.hostElement,"keyboard-focus",b)});
q.ensureRipple&&(q.ensureRipple=function(b){if(q.hasRipple&&!q.hasRipple()){if(!q._createRipple)return;q._ripple=q._createRipple();q._ripple.noink=q.noink;var y=q._rippleContainer||q.hostElement;y&&_.ee(y).appendChild(q._ripple)}var J;if(b&&((J=q._ripple)==null?0:J.uiDownAction)){y=_.ee(q._rippleContainer||q.hostElement);var E;J=(E=b.composedPath())==null?void 0:E[0];y.contains(J)&&q._ripple.uiDownAction(b)}});
q._updateMultiselectable&&(q._updateMultiselectable=function(b){b?q.hostElement.setAttribute("aria-multiselectable","true"):q.hostElement.removeAttribute("aria-multiselectable")})};
idC=function(q,N,b){b=_.Z(b);for(var y=b.next();!y.done;y=b.next())JJR(y.value.constructor,q);JJR(N.constructor,q)};
Kfu=function(q,N){q=_.Z(q);for(var b=q.next();!b.done;b=q.next())if(b=b.value,b.type==="signal"){var y=b.propertyKey;if(N.hasOwnProperty(y)&&N[y]!=null&&b.attributeType===Object){a:{y=N[y].constructor;for(var J=_.Z(l_A),E=J.next();!E.done;E=J.next())if(E=E.value,y===E){y=E;break a}y=Object}b.attributeType=y}}};
Dln=function(){};
hvA=function(q){var N;return(N=q.hostElement)!=null?N:q};
kHA=function(){throw Error("Mg");};
UlJ=function(q,N){q.constructor.prototype.useSignals=!0;var b=new q.constructor;idC(b,q,N.behaviors);Kfu(N.reactiveSchemas,b);b={};for(var y=_.Z(N.reactiveSchemas),J=y.next();!J.done;J=y.next())J=J.value,J.type==="signal"&&(b[J.propertyKey]=J.attributeType);var E={copyPropertiesToProto:kHA,didRegister:!1,typesForSignals:b},F=["disable-upgrade"].concat(_.a9(N.observedAttributes)),R=function(c){IU.call(this,q,N,E,c)};
_.Y(R,IU);_.$H.Object.defineProperties(R,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return F}}});
E.copyPropertiesToProto=function(){for(var c=0;c<N.behaviors.length;c++)gpJ(N.behaviors[c],R.prototype);gpJ(q,R.prototype)};
N.legacyOptimizations||E.copyPropertiesToProto();R.prototype.is=q.is;return R};
f_n=function(q,N){if(Object.getPrototypeOf(N.prototype).constructor!==_.C)throw Error("Ng");N.prototype.is=q.is;return UlJ(N.prototype,q)};
CNn=function(q){return q.type==="compute"||q.type==="computeWithMethod"};
I_J=function(q){for(var N=q.reactiveSchemas.filter(CNn),b=new Map,y=new Map,J=new Map,E=_.Z(N),F=E.next();!F.done;F=E.next())F=F.value,b.set(F.propertyKey,F),y.set(F.propertyKey,[]),J.set(F.propertyKey,0);E=0;N=_.Z(N);for(F=N.next();!F.done;F=N.next()){F=F.value;for(var R=_.Z(F.type==="computeWithMethod"?F.method.args:F.args),c=R.next();!c.done;c=R.next())c=c.value,c.type!=="literal"&&(c=c.path.split(".")[0],y.has(c)&&(y.get(c).push(F.propertyKey),J.set(F.propertyKey,J.get(F.propertyKey)+1),E++))}F=
[].concat(_.a9(y.keys())).filter(function(z){return J.get(z)===0});
for(N=[];F.length;)for(R=F.shift(),N.push(b.get(R)),R=_.Z(y.get(R)),c=R.next();!c.done;c=R.next())c=c.value,J.set(c,J.get(c)-1),E--,J.get(c)===0&&F.push(c);b=q.reactiveSchemas.filter(function(z){return!CNn(z)});
q.reactiveSchemas=[].concat(_.a9(b),_.a9(N))};
TFA=function(q,N){if(N.properties)for(var b=_.Z(Object.entries(N.properties)),y=b.next();!y.done;y=b.next()){var J=_.Z(y.value);y=J.next().value;J=J.next().value;q.properties[y]=typeof J==="function"?{type:J}:J}N.observers&&q.observers.push.apply(q.observers,_.a9(N.observers));N.disabledPolySiReactions&&q.disabledPolySiReactions.push.apply(q.disabledPolySiReactions,_.a9(N.disabledPolySiReactions))};
sLz=function(q,N){for(var b=N.length-1;b>=0;b--){var y=N[b];Array.isArray(y)?sLz(q,y):q.indexOf(y)<0&&q.unshift(y)}};
nOu=function(q,N){q.reactiveSchemas=q.reactiveSchemas.filter(function(b){return b.type==="observe"&&N.includes(b.method.methodName)||CNn(b)&&N.includes(b.propertyKey)?!1:!0})};
SQu=function(q,N){var b=N.prototype,y,J,E={is:q.is,reactiveSchemas:[],observedAttributes:[],behaviors:[BlR.InjectBehavior,Y9.prototype],disableElementRegistration:q.disableElementRegistration,provide:(y=q.providers)!=null?y:[],reactivityMode:q.reactivityMode,signalProperties:(J=b.signalProperties)!=null?J:[]};"template"in N?E.templateGetter=function(){return N.template}:q.getTemplate&&(E.templateGetter=q.getTemplate);
b.behaviors&&sLz(E.behaviors,b.behaviors);a_h(E,N);return E};
a_h=function(q,N){for(var b=N.prototype,y={properties:{},observers:[],disabledPolySiReactions:[]},J=_.Z(q.behaviors),E=J.next();!E.done;E=J.next())TFA(y,E.value);TFA(y,b);if(q.signalProperties)for(b=_.Z(q.signalProperties),J=b.next();!J.done;J=b.next())delete y.properties[J.value];b=_.Z(Object.entries(y.properties));for(J=b.next();!J.done;J=b.next()){E=_.Z(J.value);J=E.next().value;E=E.next().value;var F=void 0;if((F=q.signalProperties)==null||!F.includes(J)){F=void 0;var R=q,c=E.type;if(!c)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{c=Reflect.getMetadata("design:type",N,J);for(var z=_.Z(Wfd),m=z.next();!m.done;m=z.next())if(m=m.value,c===m){c=m;break a}c=Object}else c=String;E.computed||E.selector||(R.reactiveSchemas.push({type:"signal",propertyKey:J,value:E.value,attributeType:c,readOnly:E.readOnly}),R.observedAttributes.push(_.Fv(J)));E.reflectToAttribute&&R.reactiveSchemas.push({type:"reflect",propertyKey:J});if(E.computed){c=w8J(E.computed);if(!c)throw Error("Og");R.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:J,method:c,value:E.value})}E.observer&&R.reactiveSchemas.push({type:"observe",method:{methodName:E.observer,args:[{type:"path",path:J}]}});E.notify&&R.reactiveSchemas.push({type:"notify",propertyKey:J});E.selector&&R.reactiveSchemas.push({type:"redux",propertyKey:J,selector:E.selector,selectorArgs:(F=E.selectorArgs)!=null?F:[]})}}Lfn&&I_J(q);N=_.Z(y.observers);for(J=N.next();!J.done;J=N.next())b=q,J=J.value,(E=w8J(J))?b.reactiveSchemas.push({type:"observe",method:E}):console.log('Warning: unable to parse observe declaration: "'+
J+'"');nOu(q,y.disabledPolySiReactions)};
pJz=function(q,N){for(var b=0;b<N.length;b++){var y=N[b],J=void 0;(J=y).showHideApi!=null||(J.showHideApi={});J=void 0;!!q!==!((J=y.showHideApi)==null||!J.hideTemplateChildren)&&(y.nodeType===Node.TEXT_NODE?q?(y.showHideApi.polymerTextContent=y.textContent,y.textContent=""):(J=void 0,y.textContent=(J=y.showHideApi.polymerTextContent)!=null?J:null):y instanceof Element&&y.localName==="slot"?q?(y.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.yb)((0,_.yb)(y).parentNode).replaceChild(y.showHideApi.polymerReplaced,
y)):(J=y.showHideApi.polymerReplaced)&&(0,_.yb)((0,_.yb)(J).parentNode).replaceChild(y,J):y instanceof HTMLElement&&y.style&&(q?(y.showHideApi.polymerDisplay=y.style.display,y.style.display="none"):y.style.display=y.showHideApi.polymerDisplay));y.showHideApi.hideTemplateChildren=q;y.showHideChildren&&y.showHideChildren(q)}};
Mwd=function(){if(!PNn){var q=document.createElement("style");q.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(q);PNn=!0}};
Ts=function(){return _.x("disable_hidden_dom_if_using_stamper")};
oOn=function(q,N){var b=_.sk().getState();return N?q.apply(null,[b].concat(_.a9(N))):q(b)};
BFC=function(){if(AKA)return AKA;var q=_.Z(_.QS(0,void 0,"MB1Hb")),N=q.next().value;q.next();var b=q.next().value;_.sk().subscribe(function(){evC(b)});
return AKA=N};
evC=function(q){Hdn||(Hdn=!0,Promise.resolve().then(function(){q(function(N){return N+1});
Hdn=!1}))};
_.sk=function(){return qmh.getAppStore()};
NWd=function(q,N){return qmh.getSelectFn()(q,N)};
_.nk=function(q){qmh.getDispatchFn()(q)};
bwJ=function(q,N){var b={},y;for(y in q)b[y]=N(q[y],y);return b};
_.aU=function(q,N){return function(){var b;return(b=_.p3(q))!=null?b:N}};
_.Sl=function(q,N){var b=Object.assign({},q),y;for(y in N)N.hasOwnProperty(y)&&(b[y]=_.aU(q[y],N[y]));return b};
yqR=function(q,N,b){q instanceof Element&&(b.debugName||(b.debugName="<"+q.tagName.toLowerCase()+(q.tagName.includes("-")?">":"."+q.className+">")),_.x("ytwiz_enable_debug_component_props")&&(q.debugProps||(q.debugProps=bwJ(N,function(y){return function(){return y()}}))))};
_.n=function(q,N){var b=function(y){return wbd("ytComponent",{},function(J){var E=JqA={};var F;if(((F=b)==null?0:F.idomCompat)&&y.renderedFromIdom){var R;F=typeof b.idomCompat==="object"?(R=b)==null?void 0:R.idomCompat.callbacks:{};F=_.Z(EGJ(y,F,b.debugName));R=F.next().value;F.next();F=F.next().value;var c=gGA(q,R);E.privateValue=c;JqA=void 0;yqR(c,R,b);J.addAttributes({debugName:b.debugName});J=$LJ(c);J=Array.isArray(J)?J[0]:J;J[Ow]||(J[Ow]={});J[Ow].updateSignalsFromIdomProps=F;Zwz(R,c);return c}F=
bwJ(y,F2A);R=gGA(q,F);E.privateValue=R;JqA=void 0;yqR(R,F,b);J.addAttributes({debugName:b.debugName});Zwz(F,R);return R})};
b.debugName=N===void 0?"":N;return b};
gGA=function(q,N){q=q(N);return KI(q)};
ROR=function(q,N){q[N]||(q=new _.IO("IDOM interop setter undefined. Key:",N),_.po(q))};
F2A=function(q,N){return N==="children"||N==="ref"||typeof q==="function"||q===void 0?q:function(){return _.p3(q)}};
EGJ=function(q,N,b){var y={},J={},E={},F={},R;for(R in q){F={key$jscomp$952:F.key$jscomp$952};F.key$jscomp$952=R;var c=q[F.key$jscomp$952];if(F.key$jscomp$952==="children"||F.key$jscomp$952==="ref")y[F.key$jscomp$952]=c;else if(typeof c==="function")F.key$jscomp$952 in N||c.length>0?(E[F.key$jscomp$952]=c,y[F.key$jscomp$952]=function(m){return function(){return E[m.key$jscomp$952].apply(E,_.a9(_.MB.apply(0,arguments)))}}(F)):y[F.key$jscomp$952]=c;
else if(!(q[F.key$jscomp$952]===void 0&&F.key$jscomp$952 in N)){var z=_.Z(_.QS(q[F.key$jscomp$952],{debugName:F.key$jscomp$952+":cwis:"+b},"cvwbof"));c=z.next().value;z=z.next().value;y[F.key$jscomp$952]=c;J[F.key$jscomp$952]=z}}return[y,J,function(m){var r={},X;for(X in m)r={key$jscomp$951:r.key$jscomp$951,val$jscomp$122:void 0},r.key$jscomp$951=X,r.val$jscomp$122=m[r.key$jscomp$951],r.key$jscomp$951!=="children"&&r.key$jscomp$951!=="ref"&&(typeof r.val$jscomp$122==="function"?r.key$jscomp$951 in
N?E[r.key$jscomp$951]=r.val$jscomp$122:r.val$jscomp$122.length>0&&(E[r.key$jscomp$951]=r.val$jscomp$122,_.M6(new _.IO("Callback detected that was not set in the idomCompat callbacks map. Key:",r.key$jscomp$951))):r.key$jscomp$951 in N&&r.val$jscomp$122===void 0||(ROR(J,r.key$jscomp$951),Du(function(V){return function(){J[V.key$jscomp$951](V.val$jscomp$122)}}(r))))}]};
uoA=function(q,N,b){var y=BMA(q.prototype,dkC,q.prototype.behaviors);y.prototype.is=N;y.prototype.localName=N;b&&cqn(y,b);return function(J){J&&(y.prototype.hostElement=J);var E=new y;E.root=E;E.hostElement=J;return E}};
cqn=function(q,N){var b;Object.defineProperty(q.prototype,"_template",{get:function(){b===void 0&&(b=N());return b},
set:function(y){b=y},
configurable:!0,enumerable:!0})};
rqA=function(q,N,b,y){function J(){if(!V){for(var G=new Set,w=_.Z(m),D=w.next();!D.done;D=w.next()){D=D.value;for(var k=_.Z(Object.getOwnPropertyNames(D)),f=k.next();!f.done;f=k.next()){f=f.value;var L=void 0,S=(L=Object.getOwnPropertyDescriptor(D,f))==null?void 0:L.value;S&&S instanceof Function&&!WH(f)&&(!R[f]||_.x("polymer_forward_method_killswitch"))&&G.add(f)}}w=_.Z(Object.entries(Object.getOwnPropertyDescriptors(q.prototype)));for(D=w.next();!D.done;D=w.next())k=_.Z(D.value),D=k.next().value,
k=k.next().value,k.value instanceof Function&&!WH(D)&&G.add(D);V=G}return V}
zOJ(q,N,y==null?void 0:y.providers);HLJ(q.prototype,q,!0);var E=uoA(q,N,b),F,R=(F=q.prototype.properties)!=null?F:{},c,z,m=(z=(c=q.prototype.behaviors)==null?void 0:c.flat(Infinity))!=null?z:[];b=_.Z(m);for(F=b.next();!F.done;F=b.next())R=Object.assign({},F.value.properties,R);var r=[].concat(_.a9($kz),_.a9(Object.keys(R).map(function(G){return _.Fv(G)}))),X=!1,V;
return{ctor:function(G,w){var D=E(G),k,f;G=[].concat(_.a9((k=y==null?void 0:y.allowedProps)!=null?k:[]),_.a9((f=y==null?void 0:y.allowedPropsFromBehaviors)!=null?f:[]));D.allowedProps=G.length>0?G:void 0;k={};f=_.Z(r);for(G=f.next();!G.done;G=f.next())G=G.value,k[G]=_.R$(G);D.__dataAttributes=k;var L=D.ready.bind(D);D.ready=function(){w.beforeReady();L();if(tm(N)&&!X){var S=D.__templateInfo;if(S==null?0:S.hostProps){S=_.Z(Object.keys(S.hostProps));for(var W=S.next();!W.done;W=S.next())rq(N,W.value,
"PROPERTY_ACCESS_GET_INTERNAL")}X=!0}};
D._overrideLegacyUndefined=!0;return D},
props:R,observedAttributes:r,getInitialMethods:J,getPropsToForwardBeforeRegister:function(){for(var G=[],w=new Set,D=_.Z(Object.keys(R)),k=D.next();!k.done;k=D.next())k=k.value,G.push([k,R[k].readOnly]),w.add(k);D=J();k=_.Z(Object.keys(Object.getOwnPropertyDescriptors(q.prototype)));for(var f=k.next();!f.done;f=k.next())f=f.value,!tfe(f)||D.has(f)||w.has(f)||(G.push([f,!1]),w.add(f));w=_.Z(mkd);for(D=w.next();!D.done;D=w.next())G.push([D.value,!0]);return G},
getPropsToForwardBeforeReady:function(G){for(var w=[],D=_.Z(Object.entries(G)),k=D.next();!k.done;k=D.next()){var f=_.Z(k.value);k=f.next().value;f=f.next().value;if(tfe(k)&&!(f instanceof Function)&&(w.push([k,!1]),tm(N))){var L=f=void 0;(L=(f=G)._createPropertyAccessor)==null||L.call(f,k)}}return w},
shouldForwardProp:tfe,shouldLog:tm}};
zOJ=function(q,N,b){H_n(q,b);q.prototype.behaviors.unshift(Xpd);if(sch()){if(tm(N)){var y;(y=q.prototype).behaviors!=null||(y.behaviors=[]);q.prototype.behaviors.unshift(WiA())}Lin(q)}_.O(Y9.prototype)(q.prototype,"__templateHelpers")};
WH=function(q){return VfZ.has(q)||q.startsWith("__compute__")};
tfe=function(q){return!WH(q)&&!q.startsWith("_")&&!q.endsWith("_")};
YmJ=function(q,N){function b(){var X=c();X=_.Z(X);for(var V=X.next();!V.done;V=X.next()){var G=_.Z(V.value);V=G.next().value;G=G.next().value;j1Z(r.prototype,V,G)}y=!0}
var y=!1,J=q.ctor,E=q.getInitialMethods,F=q.observedAttributes,R=q.getPropsToForwardBeforeReady,c=q.getPropsToForwardBeforeRegister,z=q.shouldForwardProp,m=q.shouldLog,r=function(){var X=HTMLElement.call(this)||this;X.didForwardDynamicProps=!1;X.loggingStatus={};y||b();X.inst=J(X,{beforeReady:function(){X.didForwardDynamicProps||(X.forwardDynamicProps(),X.didForwardDynamicProps=!0)}});
X.controllerProxy=agD(X.inst,N);X.forwardMethods();return X};
_.Y(r,HTMLElement);r.prototype.forwardMethods=function(){for(var X=this,V=_.Z(this.inst.getExtraMethodsToForward()),G=V.next(),w={};!G.done;w={method$jscomp$65:void 0},G=V.next()){var D=_.Z(G.value);G=D.next().value;D=D.next().value;w.method$jscomp$65=D;this[G]=function(k){return function(){return k.method$jscomp$65.call.apply(k.method$jscomp$65,[X.inst].concat(_.a9(_.MB.apply(0,arguments))))}}(w)}V=_.Z(E());
for(w=V.next();!w.done;w=V.next())w=w.value,z(w)&&xkC(this,w),m(N)&&!WH(w)&&vGn(this.inst,w)};
r.prototype.forwardDynamicProps=function(){var X=R(this.inst);X=_.Z(X);for(var V=X.next();!V.done;V=X.next()){var G=_.Z(V.value);V=G.next().value;G=G.next().value;j1Z(this,V,G);m(N)&&!WH(V)&&G_A(this.inst,V)}};
r.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
r.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
r.prototype.attributeChangedCallback=function(X,V,G){this.inst.attributeChangedCallbackWrapper(X,V,G)};
_.$H.Object.defineProperties(r.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return N}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.$H.Object.defineProperties(r,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return F}}});
customElements.define(N,r)};
j1Z=function(q,N,b){q.hasOwnProperty(N)||Object.defineProperty(q,N,{get:function(){var y,J=((y=q.is)!=null?y:q.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||rq(J,N,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,y=this.polymerController[N],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,y},
set:function(y){if(!b){var J,E=((J=q.is)!=null?J:q.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||rq(E,N,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=N,this.loggingStatus.bypassProxyController=!0,this.polymerController[N]!==y&&(J={},this.polymerController.setProperties((J[N]=y,J)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
xkC=function(q,N,b){var y=q.polymerController;q[N]=function(){var J=_.MB.apply(0,arguments);q.loggingStatus.currentExternalCall=N;q.loggingStatus.bypassProxyController=!0;var E,F=((E=q.is)!=null?E:q.tagName).toLowerCase();rq(F,N,"PROPERTY_ACCESS_CALL_EXTERNAL");var R;E=(R=b!=null?b:y[N])==null?void 0:R.call.apply(R,[y].concat(_.a9(J)));q.loggingStatus.currentExternalCall=void 0;q.loggingStatus.bypassProxyController=!1;return E}};
vGn=function(q,N){var b=q.hostElement,y=q[N];q[N]=function(){var J=_.MB.apply(0,arguments);if(b.loggingStatus.currentExternalCall!==N){var E,F=((E=b.is)!=null?E:b.tagName).toLowerCase();rq(F,N,"PROPERTY_ACCESS_CALL_INTERNAL")}return y==null?void 0:y.apply(q,J)}};
G_A=function(q,N){var b=Object.getOwnPropertyDescriptor(q,N);b&&!b.get&&Object.defineProperty(q,N,{get:function(){Sid(q.hostElement,N);return b.value},
set:function(y){XY(q.hostElement,N);b.value=y}})};
Q1J=function(q){return _.x("poly_si_dom_repeat_detached_fix_killswitch")||q.tagName!=="PS-DOM-REPEAT"?q.tagName==="DOM-REPEAT":!0};
wpR=function(q,N){var b=OwA(q);q instanceof Element&&b.unshift(q);q=_.Z(b.filter(Q1J));for(var y=q.next();!y.done;y=q.next()){var J=void 0;y=_.Z((J=y.value.__instances)!=null?J:[]);for(J=y.next();!J.done;J=y.next())if(J=J.value,J.root){J=Array.from(J.root.children);J=_.Z(J);for(var E=J.next();!E.done;E=J.next())b.push.apply(b,_.a9(wpR(E.value,N)))}}return b.filter(function(F){return F.usePatchedLifecycles&&F.lifecycleIsConnected===N})};
OwA=function(q){var N=null;q instanceof Element?N=Element.prototype.querySelectorAll:q instanceof DocumentFragment&&(N=DocumentFragment.prototype.querySelectorAll);return N?Array.from(N.call(q,"*")):[]};
Lk=function(q){_.YL(function(){for(var N=_.Z(wpR(q,!1)),b=N.next();!b.done;b=N.next()){b=b.value;b.lifecycleIsConnected=!0;try{var y=void 0,J=void 0,E=void 0,F=void 0;(y=(F=b.polymerController)!=null?F:b)==null||(E=(J=y).connectedCallback)==null||E.call(J)}catch(R){_.po(R)}}})};
pk=function(q){_.YL(function(){for(var N=_.Z(wpR(q,!0)),b=N.next();!b.done;b=N.next()){b=b.value;b.lifecycleIsConnected=!1;try{var y=void 0,J=void 0,E=void 0,F=void 0;(y=(F=b.polymerController)!=null?F:b)==null||(E=(J=y).disconnectedCallback)==null||E.call(J)}catch(R){_.po(R)}}})};
UkA=function(){if(!iwd){iwd=!0;var q=[Node];PH&&q.push(PH.Wrapper);var N=Node.prototype.insertBefore,b=Node.prototype.removeChild;q=_.Z(q);for(var y=q.next(),J={};!y.done;J={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},y=q.next())y=y.value,J.nativeInsertBefore=y.prototype.insertBefore,y.prototype.insertBefore=function(F){return function(R,c){if(R instanceof DocumentFragment){var z=Array.from(R.children);R=F.nativeInsertBefore.call(this,R,c);
if(this.isConnected&&F.nativeInsertBefore===N)for(c=_.Z(z),z=c.next();!z.done;z=c.next())Lk(z.value);return R}z=R instanceof Element&&R.isConnected;c=F.nativeInsertBefore.call(this,R,c);z&&pk(R);this.isConnected&&Lk(R);return c}}(J),J.nativeAppendChild=y.prototype.appendChild,y.prototype.appendChild=function(F){return function(R){if(R instanceof DocumentFragment){var c=Array.from(R.children);
R=F.nativeAppendChild.call(this,R);if(this.isConnected){c=_.Z(c);for(var z=c.next();!z.done;z=c.next())Lk(z.value)}return R}c=R instanceof Element&&R.isConnected;z=F.nativeAppendChild.call(this,R);c&&pk(R);this.isConnected&&Lk(R);return z}}(J),J.nativeRemoveChild=y.prototype.removeChild,y.prototype.removeChild=function(F){return function(R){var c=R instanceof Element&&R.isConnected,z=F.nativeRemoveChild.call(this,R);
c&&b===F.nativeRemoveChild&&pk(R);return z}}(J),J.nativeReplaceChild=y.prototype.replaceChild,y.prototype.replaceChild=function(F){return function(R,c){if(R instanceof DocumentFragment){var z=Array.from(R.children);
R=F.nativeReplaceChild.call(this,R,c);if(this.isConnected)for(pk(c),c=_.Z(z),z=c.next();!z.done;z=c.next())Lk(z.value);return R}z=R instanceof Element&&R.isConnected;var m=this.isConnected,r=F.nativeReplaceChild.call(this,R,c);m&&pk(c);z&&pk(R);m&&Lk(R);return r}}(J);
q=[Element];PH&&q.push(PH.Wrapper);q=_.Z(q);y=q.next();for(J={};!y.done;J={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},y=q.next())y=y.value,y.prototype.before=lJD(y.prototype.before),y.prototype.after=lJD(y.prototype.after),J.nativeReplaceWith=y.prototype.replaceWith,y.prototype.replaceWith=function(F){return function(){var R=_.MB.apply(0,arguments),c=_.Z(K2n(R)),z=c.next().value,
m=c.next().value;c=this.isConnected;F.nativeReplaceWith.apply(this,R);R=_.Z(m);for(m=R.next();!m.done;m=R.next())pk(m.value);if(c)for(pk(this),z=_.Z(z),c=z.next();!c.done;c=z.next())c=c.value,c instanceof Element&&Lk(c)}}(J),J.nativeRemove=y.prototype.remove,y.prototype.remove=function(F){return function(){var R=this.isConnected;
F.nativeRemove.call(this);R&&pk(this)}}(J),J.nativeInsertAdjacentElement=y.prototype.insertAdjacentElement,y.prototype.insertAdjacentElement=function(F){return function(R,c){var z=c.isConnected;
R=F.nativeInsertAdjacentElement.call(this,R,c);z&&pk(c);R.isConnected&&Lk(R);return R}}(J),J.nativeSetAttribute=y.prototype.setAttribute,y.prototype.setAttribute=function(F){return function(R,c){var z=DkA(this);
if(!z.usePatchedLifecycles)return F.nativeSetAttribute.call(this,R,c);var m=this.getAttribute(R);F.nativeSetAttribute.call(this,R,c);c=this.getAttribute(R);hOC(z,R,m,c)}}(J),J.nativeRemoveAttribute=y.prototype.removeAttribute,y.prototype.removeAttribute=function(F){return function(R){var c=DkA(this);
if(!c.usePatchedLifecycles)return F.nativeRemoveAttribute.call(this,R);var z=this.getAttribute(R);F.nativeRemoveAttribute.call(this,R);z!==null&&hOC(c,R,z,null)}}(J),J.nativeToggleAttribute=y.prototype.toggleAttribute,y.prototype.toggleAttribute=function(F){return function(R,c){var z=DkA(this);
if(!this.usePatchedLifecycles)return F.nativeToggleAttribute.call(this,R,c);var m=this.getAttribute(R),r=m!==null;c=F.nativeToggleAttribute.call(this,R,c);c!==r&&hOC(z,R,m,c?"":null);return c}}(J);
q=[Document,DocumentFragment,Element,ShadowRoot];PH&&q.push(PH.Wrapper);q=_.Z(q);for(J=q.next();!J.done;J=q.next())J=J.value,J.prototype.prepend=lJD(J.prototype.prepend),J.prototype.append=lJD(J.prototype.append);(PH==null?void 0:PH.noPatch)===!0&&k_Z();document.readyState==="complete"?Lk(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Lk(document.body)});
var E=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");E&&E.get&&E.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:E.enumerable,configurable:!0,get:E.get,set:function(F){F||pk(this);E.set.call(this,F);return F}})}};
lJD=function(q){return function(){var N=_.MB.apply(0,arguments),b=_.Z(K2n(N)),y=b.next().value;b=b.next().value;q.apply(this,N);N=_.Z(b);for(b=N.next();!b.done;b=N.next())pk(b.value);if(this.isConnected)for(y=_.Z(y),N=y.next();!N.done;N=y.next())N=N.value,N instanceof Element&&Lk(N)}};
k_Z=function(){for(var q=_.Z(fJn),N=q.next();!N.done;N=q.next()){N=N.value.prototype;for(var b=_.Z(CFA),y=b.next();!y.done;y=b.next()){y=y.value;var J=Object.getOwnPropertyDescriptor(N,y);J&&Object.defineProperty(N,"__shady_native_"+y,J)}}};
hOC=function(q,N,b,y){var J,E;if((J=q.polymerController)==null?0:(E=J.observedAttributes)==null?0:E.includes(N))if(q=q.polymerController,q.attributeChangedCallbackWrapper)q.attributeChangedCallbackWrapper.call(q,N,b,y);else{var F;(F=q.attributeChangedCallback)==null||F.call(q,N,b,y)}};
K2n=function(q){var N=[],b=[];q=_.Z(q);for(var y=q.next();!y.done;y=q.next())y=y.value,y instanceof Element&&y.isConnected&&b.push(y),y instanceof DocumentFragment?N.push.apply(N,_.a9(Array.from(y.children))):N.push(y);return[N,b]};
DkA=function(q){return!(q instanceof Element)&&q.node instanceof Element?q.node:q};
IJn=function(q,N){var b=N?["children"].concat(_.a9(N)):["children"];N=[];b=_.Z(b);for(var y=b.next();!y.done;y=b.next()){var J=y.value;if(q.hasOwnProperty(J)){y=q[J];y=typeof y==="function"?y():y;y=Array.isArray(y)?y:[y];y=KI(y).flat();if(J!=="children"){J=Peu(J);for(var E=_.Z(y),F=E.next();!F.done;F=E.next())F=F.value,F instanceof Element&&F.setAttribute("slot",J)}N.push(y)}}N.length===0?q=[]:(q=KI(_.u("div",null,N)),q=Array.from(q.childNodes));return q};
s1A=function(q,N,b){var y={};_.ae(function(){var J={},E;for(E in N)if(N.hasOwnProperty(E)){var F=void 0,R=void 0;if(!(((F=b.slotProps)==null?0:F.includes(E))||E==="children"||((R=b.callbackProps)==null?0:R.includes(E))||E==="ref")&&(F=_.p3(N[E]),y[E]!==F)){y[E]=F;R=void 0;var c=(R=q.hostElement)!=null?R:q;!b.skipHostForwardedProps&&TWD.has(E)&&(c[E]=F);J[E]=F}}Du(function(){if(q.setProperties)q.setProperties(J);else for(var z=_.Z(Object.entries(J)),m=z.next();!m.done;m=z.next()){var r=_.Z(m.value);
m=r.next().value;r=r.next().value;q[m]=r}})},"j")};
aJJ=function(q,N,b,y){var J=IJn(b,y.slotProps),E=(0,_.yb)(q);J=_.Z(J);for(var F=J.next();!F.done;F=J.next())E.appendChild(F.value);s1A(N,b,y);y=_.Z(y.callbackProps||[]);J=y.next();for(E={};!J.done;E={kebabEventName:void 0,eventListener:void 0},J=y.next())F=J=J.value,String(J).substring(0,2)==="on"&&b[F]?(E.kebabEventName=Peu(String(J).substring(2)),E.eventListener=b[F],q.addEventListener(E.kebabEventName,E.eventListener),_.W1(function(m){return function(){q.removeEventListener(m.kebabEventName,m.eventListener)}}(E))):
N[F]=b[F];
if(b.ref){b=_.Z(nGd(b.ref));var R=b.next().value,c=b.next().value,z=N.attached.bind(N);N.attached=function(){R(q);z()};
_.W1(function(){c()})}};
nGd=function(q){if(typeof q==="function"){var N;return[function(b){N=q(b)},
function(){var b;(b=N)==null||b()}]}if(!q.onRender||!q.onUnmount)throw Error("Sg");
return[q.onRender,q.onUnmount]};
Smu=function(q,N){N=N===void 0?{}:N;var b=function(y){var J=document.createElement(q),E;var F=(E=J.polymerController)!=null?E:J;aJJ(J,F,y,N);return J};
b.debugName=q+" (CoW wrapped)";return b};
PFd=function(q,N,b,y,J){y=y===void 0?{}:y;var E=W2J,F=!1;E?(F=!0,W2J=void 0):(L2u=N,E=document.createElement(N),L2u=void 0);var R=E;R.usePatchedLifecycles=!0;R.lifecycleIsConnected=!1;E.loggingStatus={};var c=ppd(q,N,E,y,J);_.W1(function(){R.lifecycleIsConnected&&(R.lifecycleIsConnected=!1,c.disconnectedCallback())});
F||(E.__noInsertionPoint=!0,aJJ(E,c,b,y));return E};
ppd=function(q,N,b,y,J){J=J===void 0?rqA:J;Mfe[N]!=null||(Mfe[N]=J(q,N,y==null?void 0:y.getTemplate,y));var E=Mfe[N],F=E.ctor;J=E.getInitialMethods;var R=E.getPropsToForwardBeforeReady;q=E.getPropsToForwardBeforeRegister;y=E.shouldForwardProp;var c=E.observedAttributes,z=E.shouldLog,m=F(b,{beforeReady:function(){var r=m;r._takeAttributes?r._takeAttributes():r.setPropertiesFromInitialAttributeValues&&r.setPropertiesFromInitialAttributeValues();r=_.Z(R(b.polymerController));for(var X=r.next();!X.done;X=
r.next()){var V=_.Z(X.value);X=V.next().value;V=V.next().value;j1Z(b,X,V);z(N)&&!WH(X)&&G_A(b.polymerController,X)}b.polymerController=agD(m,N)}});
b.polymerController=m;b.polymerController.observedAttributes=c;E=_.Z(m.getExtraMethodsToForward());for(F=E.next();!F.done;F=E.next())c=_.Z(F.value),F=c.next().value,c=c.next().value,xkC(b,F,c);J=_.Z(J());for(E=J.next();!E.done;E=J.next())E=E.value,y(E)&&xkC(b,E),z(N)&&!WH(E)&&vGn(m,E);q=_.Z(q());for(y=q.next();!y.done;y=q.next())J=_.Z(y.value),y=J.next().value,J=J.next().value,j1Z(b,y,J);return m};
oGJ=function(q){var N=M9;M9=q;return N};
BWh=function(q){if(AqR.has(q)&&M9&&eOA(M9)===q){var N;(N=M9)._numRenders!=null||(N._numRenders=0);M9._numRenders++;if(M9._numRenders>1)throw Error("Tg");return M9}};
qHR=function(q){var N=eOA(q);M9!==q&&N.includes("-")&&Hwz.set(q,!0)};
eOA=function(q){var N;return(N=q==null?void 0:q.tagName.toLowerCase())!=null?N:""};
NGJ=function(q,N){if(q.componentType===kL)throw Error("Ug");AqR.add(N);var b=function(){var y=HTMLElement.call(this)||this;y.is=N;if(L2u===N)return y.isInert=!0,y;y.createElement();return y};
_.Y(b,HTMLElement);b.prototype.createElement=function(){if(!this.isInert){W2J=this;var y=_.Z(_.S$d(function(){return _.u(q,null)})).next().value;
W2J=void 0;S8e(this);return y}};
customElements.define(N,b)};
yUz=function(q,N,b,y,J){q.prototype.is=N;(y==null?0:y.useSink)?b$J(q,N,b,y,J):(b=rqA(q,N,b,y),YmJ(b,N));return q};
b$J=function(q,N,b,y,J){UkA();var E=_.n(function(F){return PFd(q,N,F,Object.assign({},y,{getTemplate:b}),J)},"k");
E.debugName=N+" (CoW wrapped)";NGJ(E,N);return E};
E1h=function(q){return!JUu.has(q)};
FQz=function(q,N,b,y){function J(){if(!r){for(var X=new Set(g1R),V=_.Z(E.behaviors),G=V.next();!G.done;G=V.next()){G=G.value;for(var w=_.Z(Object.getOwnPropertyNames(G)),D=w.next();!D.done;D=w.next()){D=D.value;var k=void 0,f=(k=Object.getOwnPropertyDescriptor(G,D))==null?void 0:k.value;f&&f instanceof Function&&(!z[D]||_.x("polymer_forward_method_killswitch"))&&X.add(D)}}V=_.Z(Object.entries(Object.getOwnPropertyDescriptors(q.prototype)));for(G=V.next();!G.done;G=V.next())w=_.Z(G.value),G=w.next().value,
w=w.next().value,w.value instanceof Function&&X.add(G);r=X}return r}
var E=SQu({is:N,disableElementRegistration:!1,getTemplate:b,providers:y==null?void 0:y.providers,reactivityMode:y==null?void 0:y.reactivityMode},q);if((y==null?0:y.allowedProps)||(y==null?0:y.allowedPropsFromBehaviors)){var F,R;E.allowedProps=[].concat(_.a9((F=y.allowedProps)!=null?F:[]),_.a9((R=y.allowedPropsFromBehaviors)!=null?R:[]))}var c=f_n(E,q);N=c.observedAttributes;var z={};b=_.Z(E.reactiveSchemas);for(y=b.next();!y.done;y=b.next())if(y=y.value,y.type==="signal")z[y.propertyKey]={readOnly:y.readOnly},
y.readOnly&&(z[uZz(y.propertyKey)]={readOnly:!0});else if(y.type==="compute"||y.type==="computeWithMethod"||y.type==="redux")z[y.propertyKey]={readOnly:!0};var m=E.reactiveSchemas.length,r;return{ctor:function(X,V){X=new c(X);X.beforeReady=V.beforeReady;return X},
props:z,observedAttributes:N,getInitialMethods:J,getPropsToForwardBeforeRegister:function(){for(var X=[],V=new Set,G=_.Z(Z$Z),w=G.next();!w.done;w=G.next())w=w.value,X.push([w,w!=="observers"&&w!=="properties"]),V.add(w);G=_.Z(Object.keys(z));for(w=G.next();!w.done;w=G.next())w=w.value,X.push([w,z[w].readOnly]),V.add(w);G=J();w=_.Z(Object.keys(Object.getOwnPropertyDescriptors(q.prototype)));for(var D=w.next();!D.done;D=w.next())D=D.value,!E1h(D)||G.has(D)||V.has(D)||(X.push([D,!1]),V.add(D));X.push(["allowedProps",
!0]);return X},
getPropsToForwardBeforeReady:function(X){var V=[];X=_.Z(Object.keys(X));for(var G=X.next();!G.done;G=X.next()){G=G.value;var w=J();E1h(G)&&!w.has(G)&&V.push([G,!1])}X=_.Z(E.reactiveSchemas.slice(m));for(G=X.next();!G.done;G=X.next())G=G.value,G.type!=="compute"&&G.type!=="computeWithMethod"&&G.type!=="redux"&&G.type!=="signal"||V.push([G.propertyKey,G.type==="signal"?G.readOnly:!0]);return V},
shouldForwardProp:E1h,shouldLog:tm}};
_.a=function(q,N,b,y){var J,E,F=(E=(J=y)==null?void 0:J.mode)!=null?E:0;y!=null||(y={});var R;(R=y).reactivityMode!=null||(R.reactivityMode=0);F===1&&_.v4("creator_poly_si_disable_list").includes(N)&&(F=2);return F===1?yUz(q,N,b,Object.assign({},y,{useSink:!0}),FQz):yUz(q,N,b,Object.assign({},y,{useSink:F===2}))};
_.oU=function(){return function(q,N,b,y){var J,E,F=(E=(J=y)==null?void 0:J.mode)!=null?E:2;y!=null||(y={});var R;(R=y).reactivityMode!=null||(R.reactivityMode=0);if(F===0)throw Error("Vg`"+F);return b$J(q,N,b,y,F===1?FQz:void 0)}};
_.Am=function(q){return _.x("creator_poly_si_killswitch")?!1:_.x("force_all_poly_si_batches")&&(q==="poly_si_all_on_test_check"||q==="creator_poly_si_batch_050"?0:q)||document.documentElement.hasAttribute("use-signals")?!0:!q||_.x(q+"_holdback_enabled")&&_.x("kevlar_polysi_holdback")?!1:_.x(q)};
el=function(q){return q?q.icon?q.icon.iconType.toLowerCase():q.customThumbnail?"member":"":""};
RqD=function(q){if(!q)return"";q=_.Z(q);for(var N=q.next();!N.done;N=q.next())if((N=N.value)&&N.liveChatAuthorBadgeRenderer&&(N=el(N.liveChatAuthorBadgeRenderer))&&N!=="verified")return N;return""};
dhA=function(q,N){if(!q)return null;var b;return((b=q.find(function(y){return y&&y.liveChatAuthorBadgeRenderer?el(y.liveChatAuthorBadgeRenderer)===N:!1}))==null?void 0:b.liveChatAuthorBadgeRenderer)||null};
_.mhJ=function(q){var N=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;q=cUz(q);N=cUz(N);var b=uBZ(q.hex);N=uBZ(N.hex);var y=N[0]/255;var J=N[1]/255,E=N[2]/255,F=Math.max(y,J,E),R=Math.min(y,J,E),c=0,z=0,m=.5*(F+R);F!=R&&(F==y?c=60*(J-E)/(F-R):F==J?c=60*(E-y)/(F-R)+120:F==E&&(c=60*(y-J)/(F-R)+240),z=0<m&&m<=.5?(F-R)/(2*m):(F-R)/(2-2*m));y=[Math.round(c+360)%360,z,m];b=zqJ(b,N);for(q=$hd(q.hex);b<4.5;){q=y[2]>=.5?q.darker((4.5-b)/2):q.brighter((4.5-b)/2);b=q.toString();
J=toA(b);if(!J.length)throw Error("Xd`"+b);b=J;b=zqJ(b,N)}return q.hex()};
zqJ=function(q,N){q=_.Wod(q);N=_.Wod(N);return(Math.max(q,N)+.05)/(Math.min(q,N)+.05)};
_.BH=function(q){return"#"+("000000"+(q&16777215).toString(16)).slice(-6)};
_.rUn=function(q){for(var N=0,b=0;b<q.length;b++)N=q.charCodeAt(b)+((N<<5)-N);q="#";for(b=0;b<3;b++)q+=("00"+(N>>b*8&255).toString(16)).slice(-2);return q};
XLd=function(q){q=(q||"").split(":");q.length===1&&q.unshift("yt-icons");q[1]=q[1].toLowerCase();return q};
YHe=function(q,N){var b=(N=N===void 0?!1:N)?Vod:jjn,y=N?xhz:v1d;q.getIconNames().forEach(function(J){J=N?J:J.substring(J.indexOf(":")+1);q.name==="yt-icons"?G$h.add(J):J.includes("-filled")?b.add(J):y.add(J)})};
HH=function(q,N,b,y){b=b===void 0?!1:b;y=y===void 0?!1:y;var J,E,F;return _.d(function(R){if(R.nextAddress==1)return R.yield(QjA,2);if(y)return R.return(G$h.has(q));J=b?Vod:jjn;E=b?xhz:v1d;return N?(F=q.includes("-filled")?q:q.concat("-filled"),R.return(J.has(F))):R.return(E.has(q))})};
_.qo=function(q){if(O$e(q))return q.toString();var N=wLn.get(q);if(N)return N;N=q.toLowerCase();var b="yt-icons",y=N.replace(/_/g,"-");switch(q){case "MY_CHANNEL":N="account_circle";break;case "ADD_TO_LIBRARY":N="add";break;case "ALERT_WARN_RED":N="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":N="person_music";break;case "BLOCK_USER":N="block";break;case "CAPTIONS":N="closed_caption";break;case "CLOSED_CAPTION":b="av";N="closed-caption";break;case "COLLECTION":b="maps";N="layers";break;case "CONTACT":b=
"icons";N="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":b="yt-studio-system-icons";N=y.split("creator-studio-")[1];break;case "DISMISSAL":N="close";break;case "DO_NOT_DISTURB":N="block";break;case "DOGFOOD":b="icons";N="pets";break;case "DRAFT":N="paper_corner_folded";
break;case "EMPTY_LIKE":N="like_outline";break;case "EXIT_APP":N="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":N=y;break;case "GAMES":b="ytg";N="my-games";break;case "GO_TO_PAGE":N="arrow-forward";break;case "GROUP":b="social";break;case "HIDE":N="not_interested";break;case "INPUT_COMPONENT":b="icons";N="settings-input-component";break;case "KIDS_BLOCK":N="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":b="ytg";N="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":b=
"ytg";N="membership-post-purchase";break;case "MULTIVIEW":N="screen_multi_view";break;case "MY_LOCATION":b="maps";N=y;break;case "NOTIFICATIONS_INBOX":N="NOTIFICATIONS";break;case "NEXT":N="chevron_right";break;case "OFFLINE":N="power-settings-new";break;case "PAUSE":b="miniplayer";break;case "PAYMENT":b="icons";break;case "PHONE_DOWNLOAD":N="phone_download";break;case "PREMIUM_STANDALONE":b="yt-logos";N="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":b="yt-logos";N="premium_standalone_cairo";
break;case "QUESTION_ANSWER":N="question_answer";break;case "REDEEM":b="icons";N="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":N="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":N="library_add";break;case "SCHOOL":b="yt-sys-icons";N="creator_academy";break;case "SETTINGS_LIGHT":N="settings_applications";break;case "SETTINGS_MATERIAL":N="settings";break;case "SEARCH_HISTORY":N="watch_history";break;case "SHOPPING_BAG":N="bag";break;case "SOCIAL":case "PEOPLE":b=
"yt-icons";N="people";break;case "STAFF_PICK":b="ytg";N="spotlight";break;case "START_DVR":N="add";break;case "STOP_DVR":b="av";N="stop";break;case "TAB_LIKED":N="like";break;case "TAB_INBOX":N="mail";break;case "TERMS_OF_SERVICE":b="icons";N="description";break;case "TRENDING":N="fire";break;case "UNBLOCK_USER":N="remove";break;case "UNPLUGGED_DARK_THEME":b="image";N="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":N="live";break;case "UNPLUGGED_SPORTS":b="ytu";N="visibility-off";break;
case "VIDEOS":b="av";N="play-circle-filled";break;case "YOUTUBE":b="yt-logos";N="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":b="yt-logos-ext";N="yt-logo-red-updated";break;case "YOUTUBE_LOGO":b="yt-logos-ext";N="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":b="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":b="shorts";N=y;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":b="yt-sys-icons";N="youtube_improve_tv";break;case "OUTLINE_BAG":b=
"yt-sys-icons";N="bag";break;case "QUEUE_PLAY_LAST":b="yt-sys-icons";N="list_queue_last";break;case "SLASH_CIRCLE_LEFT":N="slash_circle_left";break;case "SPEED_1_POINT_2X":N="1_point_2x";break;case "SPEED_1_POINT_5X":N="1_point_5x";break;case "SPEED_1_POINT_8X":N="1_point_8x";break;case "SPEED_POINT_2X":N="point_2x";break;case "SPEED_POINT_5X":N="point_5x";break;case "SPEED_POINT_8X":N="point_8x";break;case "SPEED_1X":N="1x";break;case "SPEED_2X":N="2x";break;case "TAB_BOOKMARK":N="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":b="yt-sys-icons";N="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":b="yt-sys-icons";N="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":b="yt-sys-icons",N="tic_tac_toe"}N=b+":"+N;wLn.set(q,N);return N};
O$e=function(q){var N;_.x("kevlar_use_wil_icons")?N=!!_.tz().resolve(_.No).resolveIcon({iconName:q.toString()}):N=!1;return N};
_.yI=function(q,N,b,y){b=b===void 0?{}:b;y=y===void 0?!1:y;b===null&&(b={});var J=_.v4("kevlar_command_handler_command_banlist");J=_.Z(J);for(var E=J.next();!E.done;E=J.next())if(E=q?q.hasOwnProperty(E.value):void 0,E)return!1;J=_.v(q.commandMetadata,_.gg);return y&&J!=null&&J.url?!1:!N.disableCommandHandlerOverride&&_.bq.instance?(y=_.bq.instance,b.form||(b.form={element:N}),b.form.element||(b.form.element=N),!b.clickedVisualElement&&N.visualElement&&(b.clickedVisualElement=N.visualElement),y.resolveCommand(q,
b),!0):!1};
i$d=function(q,N){q=Jn(q);for(var b=_.Z(q.visibilityMonitorKeys||[]),y=b.next();!y.done;y=b.next())N.unobserveByKey(y.value);q.visibilityMonitorKeys=void 0};
hqd=function(q,N){if(_.Oe()){if(_.x("kevlar_vimio_use_shared_monitor"))lwA(q,N.data);else if(!lwA(q,N.data))return;var b=N.data,y=KQD(b);if(_.x("enable_client_ve_spec_logging"))i$d(q,N.observer);else{var J=Jn(q);J.trackedParams&&J.trackedParams!==y&&i$d(q,N.observer)}J=Jn(q);!b||J.data&&J.data===b||(J.data=b);Dhn(q,N);J.trackedParams=y}};
Dhn=function(q,N){var b=N.observer;if(!b&&_.x("web_skip_missing_vimio_observer")){var y,J;_.M6(new _.IO("VisibilityObserver is not defined.",q.tagName,q.trackedParams,(y=N.data)==null?void 0:y.trackingParams,(J=N.data)==null?void 0:J.loggingDirectives))}else{var E=N.layer,F=N.visibilityCallback||function(){},R=N.prescanCallback,c=Jn(q);
y=[];N.showOption&&y.push(b.observe(q,function(){N.skipLogging&&N.skipLogging()||_.E_().reportShown(c,void 0,E);F(!0)},N.showOption));
N.hideOption&&y.push(b.observe(q,function(){_.E_().reportHidden(c,void 0,E);F(!1)},N.hideOption));
N.prescanOption&&R&&y.push(b.observe(q,function(){R()},N.prescanOption));
c.visibilityMonitorKeys=y}};
lwA=function(q,N){q=Jn(q);if(q.visualElement&&!N)return!0;if(!N)return!1;var b=!1;if(_.x("enable_client_ve_spec_logging")){var y,J;b=!!((y=N.loggingDirectives)==null?0:(J=y.clientVeSpec)==null?0:J.uiType)}y=KQD(N);if(!y&&!b)return!1;_.x("mweb_component_visibility_logging")&&(q.veContainer||(q.veContainer={}),q.veContainer.trackingParams=y);if(q.trackedParams&&q.trackedParams===y)return!1;var E;if(_.x("enable_client_ve_spec_logging")&&((E=q.visualElement)==null?0:E.isClientVe())){var F;E=(F=q.visualElement)==
null?void 0:F.getAsJspb();var R,c,z,m;if(_.tW(E,2)===((R=N.loggingDirectives)==null?void 0:(c=R.clientVeSpec)==null?void 0:c.uiType)&&_.tW(E,3,-1)===((z=N.loggingDirectives)==null?void 0:(m=z.clientVeSpec)==null?void 0:m.elementIndex))return!1}if(_.x("enable_client_ve_spec_logging")){var r,X;!q.visualElement&&((r=N.loggingDirectives)==null?0:(X=r.clientVeSpec)==null?0:X.uiType)&&(R=N.loggingDirectives.clientVeSpec,N=R.uiType,F=R.elementIndex,R=R.clientYoutubeData,q.visualElement=_.Zd(_.FR(),{veType:N,
elementIndex:F,clientYouTubeData:R}))}return!0};
KQD=function(q){if(q==null?0:q.rendererContext){var N=_.v(q.rendererContext,_.Ri);if(N==null?0:N.loggingDirectives)return N.loggingDirectives.trackingParams}return(q==null?0:q.loggingDirectives)?q.loggingDirectives.trackingParams:q==null?void 0:q.trackingParams};
Jn=function(q){var N;return(N=q.polymerController)!=null?N:q};
ChR=function(q){_.E_();if(_.qg(da().JSC$12802_elementShouldLogGesture).bind(da())(q,4)){k$z(q);var N=Uhh(q);fwh.set(q,N)}};
k$z=function(q){fwh.has(q)&&(fwh.get(q).cancel("untrack hover element"),fwh.delete(q))};
Uhh=function(q){var N,b=[],y=!1,J=new _.wL(function(E,F){c$(q,"mouseenter",_.qg(function(){var R,c,z;return _.d(function(m){if(m.nextAddress==1)return N=(0,_.mA)(),R=Iwn(q),b.push(R),c=TGd(q,function(){y=!0;F(Error("Wg"))}),m.yield(R,2);
if(m.nextAddress!=3)return c&&uq(c),z=sjd(q),b.push(z),m.yield(z,3);E();_.hj(m)})}))});
J.then(function(){var E=(0,_.mA)()-N;E=Math.round(E);if(!(500>E||6E5<=E)){var F=q.getScreenLayer?q.getScreenLayer():void 0;F=_.Oe(F)||"";var R=n1A(_.E_(),q);_.a5(F,q.visualElement?q.visualElement:_.zT(R),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:E}})}ChR(q)},function(){$0&&($0(),$0=null);
y&&(k$z(q),ChR(q))});
return J};
Iwn=function(q){var N;return(new _.wL(function(b,y){$0=function(){y(Error("Xg"))};
N=_.pY.debounce(_.qg(function(){uq(J);b()}),1,100);
var J=_.tn(q,"mousemove",N)})).thenCatch(function(){var b=_.pY.cancelDebouncedJobMap.get(N);
b&&_.pY.cancelJob(b)})};
sjd=function(q){var N;return(new _.wL(function(b,y){$0=function(){y(Error("Yg"))};
N=c$(q,"mouseleave",_.qg(function(){b()}))})).thenCatch(function(){uq(N)})};
TGd=function(q,N){return c$(q,"mouseleave",_.qg(N))};
SHe=function(q){awd&&_.m6.cancel(awd);awd=_.m6.run(function(){_.e2(q,"yt-visibility-refresh");awd=0})};
WQR=function(q){q=Number(q);return"rgba("+[q>>16&255,q>>8&255,q&255,(q>>24&255)/255].join()+")"};
pLh=function(q){if(!q)return!1;if(_.v(q,_.LQD))return!0;var N;if(q=(N=_.v(q,_.y6))==null?void 0:N.commands)for(N=_.Z(q),q=N.next();!q.done;q=N.next())if(_.v(q.value,_.LQD))return!0;return!1};
Phh=function(q){var N=!0;N=N===void 0?!0:N;if(!q.useSignals&&!q.experimentalPropertiesChanged||_.x("experimental_templating_behavior_nopatch_killswitch")){var b=q._propertiesChanged;q._propertiesChanged=function(y,J,E){N?q.debounceRender():q.doRender();b&&b.call(q,y,J,E)}}};
Mou=function(q,N){if(q.useSignals||q.experimentalPropertiesChanged)if(_.x("experimental_templating_behavior_nopatch_killswitch"))q.experimentalPropertiesChanged=function(){};
else return;var b=new Set,y=[q].concat(_.a9(q.behaviors));y=_.Z(y);for(var J=y.next();!J.done;J=y.next()){J=J.value;for(var E in J.properties)b.has(E)||(q._addPropertyEffect(E,"function",N),b.add(E))}};
o1h=function(){var q=Polymer.Element,N=q._prepareTemplate;q._prepareTemplate=function(){N.call(this);var b=this.prototype;if(b.experimentalTemplatingInUse&&b.experimentalTemplatingInUse()&&b.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.po(Error("Zg"));else{b=this.template.content.childNodes;for(var y=b.length-1;y>=0;y--){var J=b[y];J.nodeName!=="STYLE"&&J.nodeName!=="LINK"&&J.nodeName!=="SCRIPT"&&J.nodeName!=="#comment"&&J.remove()}}}};
AUD=function(q){var N=!0;N=N===void 0?!0:N;o1h();var b=q.ready;q.ready=function(){this._template=null;b.call(this)};
Mou(q,N?q.debounceRender:q.doRender)};
BGu=function(q,N,b){if(b===null||b===void 0)return b;var y=OQJ(q.tagName.toLowerCase(),N,function(){throw Error("Tb");});
if(y===null)return b;y=eqR[y];var J;if((J=y.isUnwrappable)==null?0:J.call(y,b)){if(y.unwrap)return y.unwrap(b);throw Error("bh");}return y.filterString?y.filterString(q.tagName,N,String(b)):b};
H$d=function(q,N,b){var y=N[N.length-1]!=="$",J=BGu(q,N,b);if(y)if(typeof J==="function"&&N.startsWith("reactiveon")&&N===N.toLowerCase()){var E=F8;fmn(q,N.slice(8),function(F){P1(E,function(){J(F)})})}else q[N]=J;
else b=J==null?null:String(J),B1(q,N.slice(0,-1),b)};
VI=function(q){qsn.length===0&&requestAnimationFrame(function(){setTimeout(function(){var N=qsn.slice();qsn.length=0;N=_.Z(N);for(var b=N.next();!b.done;b=N.next()){b=b.value;try{b()}catch(y){_.ra(y)}}})});
qsn.push(q)};
NvR=function(q){if(q){var N=q.component;if(N){var b;N==null||(b=N.events)==null||b.publish("DISCONNECTED");var y;N==null||(y=N.onDisconnected)==null||y.call(N)}var J,E;(J=q.__spec)==null||(E=J.didUnmount)==null||E.call(J);for(N=0;N<q.childNodes.length;N++)NvR(q.childNodes[N])}};
bfn=function(q,N,b){var y=N&&N.key,J=Ru;J[0]=q;J[1]=y;J[2]=void 0;for(var E in N)N.hasOwnProperty(E)&&(q=N[E],y=dV,y.push(E),y.push(q));N=Ru;a:{if(E=Ru[2])for(q=0;q<E.length;q+=2)if(E[q]==="nonce"){E=E[q+1];break a}E=""}E=oFA(N[0],N[1],E);q=bc(E);y=N[2];if(!q.staticsApplied&&(q.staticsApplied=!0,y&&y.length))if((J=q._attrsArr)&&J.length){for(J=0;J<y.length;J+=2)j_[y[J]]=J+1;J=q._attrsArr||(q._attrsArr=UrJ(0));for(var F=0,R=0;R<J.length;R+=2){var c=J[R],z=J[R+1],m=j_[c];m?y[m]===z&&delete j_[c]:(J[F]=
c,J[F+1]=z,F+=2)}ex(J,F);for(var r in j_)nFd(E,r,y[j_[r]],zh),delete j_[r]}else for(r=0;r<y.length;r+=2)nFd(E,y[r],y[r+1],zh);bAJ(E,q,zh);ex(N,0);b&&b(yq);ADJ()};
_.x0=function(q,N,b){b===void 0?delete q[N.name]:q[N.name]=b};
_.v$=function(q){var N={androidIncludeFontPadding:!1},b=0,y=[],J=[],E=[];if(q.simpleText)return N.content=q.simpleText,N;if(q.runs===void 0)return N.content="",N;q=_.Z(q.runs);for(var F=q.next();!F.done;F=q.next()){F=F.value;var R=F.text,c=void 0,z=(c=R)==null?void 0:c.length;if(R&&z){y.push(R);if(F.bold||F.italics||F.strikethrough||F.underline||F.textColor!=null&&F.textColor!==0||F.deemphasize){R=J;c=R.push;var m={startIndex:b,length:z};F.bold&&(m.weightLabel="FONT_WEIGHT_MEDIUM");F.italics&&(m.italic=
!0);F.strikethrough&&(m.strikethrough="LINE_STYLE_SINGLE");F.underline&&(m.underline="LINE_STYLE_SINGLE");F.textColor!=null&&F.textColor!==0?document.documentElement.hasAttribute("dark")?m.fontColor=F.darkModeTextColor||F.textColor:m.fontColor=F.textColor:F.deemphasize&&(document.documentElement.hasAttribute("dark")?m.fontColor=parseInt("ff"+yFA("#aaa").substring(1),16):m.fontColor=parseInt("ff"+yFA("#606060").substring(1),16));c.call(R,m)}F.navigationEndpoint&&(R=E,c=R.push,m={startIndex:b,length:z,
onTap:{innertubeCommand:F.navigationEndpoint}},F.loggingDirectives&&_.x0(m,JFA,F.loggingDirectives),c.call(R,m));b+=z}}N.content=y.join("");N.styleRuns=J.length?J:void 0;N.commandRuns=E.length?E:void 0;return N};
gWC=function(q){if(q==null||!q.runs)return!0;q=_.Z(q.runs);for(var N=q.next();!N.done;N=q.next())if(N=N.value,N.bracket||N.errorUnderline||N.deemphasize||_.v(N,GT)||_.v(N,EWA))return!1;return!0};
ZfJ=function(q,N){return function(b){var y=N.unit;if(y!==b)throw Error("eh`"+q+"`"+y+"`"+b);return N}};
Y0=function(q){if(!((q==null?0:q.value)&&(q==null?0:q.unit)))return"";switch(q.unit){case "DIMENSION_UNIT_FRACTION":var N="%";break;default:N="px"}q=q.value;N==="%"&&(q*=100);return""+q+N};
FZR=function(q){try{return q()}catch(N){_.M6(N)}};
_.O_=function(q){var N=_.v(q,_.QI);if(N)return N;if((N=_.v(q,R8J))&&N.commands)return d5J(N.commands);if((N=_.v(q,cFA))&&N.commands)return d5J(N.commands);if((q=_.v(q,u7C))&&q.identifier&&q.command&&(z8D||(z8D=[]),!z8D.includes(q.identifier)))return z8D.push(q.identifier),_.v(q.command,_.QI)};
d5J=function(q){if(q.length!==0){var N=[];q=_.Z(q);for(var b=q.next();!b.done;b=q.next())(b=_.O_(b.value))&&N.push(b);return{commandExecutorCommand:{commands:N}}}};
_.iq=function(q){var N=q.defaultTarget,b=q.elementConfig,y=q.elementsCommand,J=q.skipOnClick,E=q.forceNewState,F=q.additionalCommandArgs,R=q.innertubeCommand||_.O_(y);if(R){q={};var c=$5A(R);y=c.navigatingCommand;c=c.href;y&&c?(q.href$=c,tWJ(q,y,c,N),_.x("web_atagconfig_pointerdown")&&m5h(q,y),E&&(q["force-new-state$"]=!0)):(q.role$="button",q.href$="javascript:void(0);");_.v(R,rFC)&&(q["aria-haspopup$"]=!0);J||(q.onclick=function(z){var m={};if(XmC(z)){var r=(F==null?void 0:F.clickedVisualElement)||
(F==null?void 0:F.getClickedVisualElement)&&F.getClickedVisualElement();r&&(m={clickedVisualElement:r});m=Object.assign({},{form:{element:z.target,event:z,createScreenConfig:m}},F);z.preventDefault();_.wa(R,m)}});
return Object.assign({},b,q)}};
VWn=function(q){if(q.length){if(q.length===1)return q[0];var N={};_.x0(N,_.y6,{commands:q});return N}};
lq=function(q){return q&&q.href$!=="javascript:void(0);"};
$5A=function(q){var N,b=((N=_.v(q,_.y6))==null?void 0:N.commands)||[q];q=_.Z(b);for(N=q.next();!N.done;N=q.next()){N=N.value;var y=void 0,J=void 0;b=(J=_.v((y=N)==null?void 0:y.commandMetadata,_.gg))==null?void 0:J.url;_.x("web_remove_web_navigation_endpoint_data")||(y=void 0,b=b||((y=_.v(N,j2A))==null?void 0:y.url));if(b&&b!=="/service_ajax"){if(y=_.ax(b,x5A))return q=_.sh(y),{navigatingCommand:N,href:q};_.M6(new _.IO("AttributedString URL could not be sanitized",b))}}return{}};
XmC=function(q){return q.button!==void 0?q.button===0&&!(q.shiftKey||q.altKey||q.metaKey||q.ctrlKey):!(q.shiftKey||q.altKey||q.metaKey||q.ctrlKey)};
tWJ=function(q,N,b,y){b=!uv(b);var J,E,F;if((J=_.v(N,_.FH))!=null&&J.nofollow||(E=_.v(N,_.nx))!=null&&E.nofollow||(F=_.v(N,_.b_))!=null&&F.nofollow||b)q.rel$="nofollow";var R;N=((R=_.v(N,_.b_))==null?void 0:R.target)==="TARGET_NEW_WINDOW"?"_blank":y===void 0?"":y;q.target$=N};
m5h=function(q,N){N.clickTrackingParams&&(q.params={itct:N.clickTrackingParams});q.onpointerdown=function(b){vWR(b)};
q._data=N};
GBz=function(q){(q.loggingUrls||[]).forEach(function(N){yQ(N.baseUrl,N.attributionSrcMode)})};
vWR=function(q){var N=q.currentTarget;q=FZR(function(){return N.href});
var b=N.params;q&&_.Lx(q,b||{},8,!0)};
_.Kt=function(q,N){(q=_.O_(q))&&_.wa(q,N)};
_.wa=function(q,N){qYd(function(b){N?b.resolveCommand(q,N):b.resolveCommand(q)})};
wmA=function(q,N){var b=["yt-core-attributed-string__link"];N!=null&&N.noLinkColor||((N==null?0:N.isOverlay)?b.push("yt-core-attributed-string__link--overlay-call-to-action-color"):b.push("yt-core-attributed-string__link--call-to-action-color"),(N==null?0:N.linkInheritColor)&&b.push("yt-core-attributed-string--link-inherit-color"));b={className:b.join(" "),tabindex$:"0"};var y=q.onTap||q.onLongPress;if(!y)return b;var J=Ysu(q);J&&(b["aria-label$"]=J);N=_.iq({elementsCommand:y,elementConfig:b,skipOnClick:!(N==
null||!N.skipOnClick),forceNewState:!0});q.onLongPress&&(y=new Q2Z(function(){var E=_.O_(q.onLongPress);E&&_.tz().resolve(_.rO).resolveCommand(E)}),N&&OfC(y,N));
return N||b};
Ysu=function(q){var N,b;return(N=q.onTapOptions)==null?void 0:(b=N.accessibilityInfo)==null?void 0:b.accessibilityLabel};
ifJ=function(q){var N=q;q<=16777215&&(N+=parseInt("ff000000",16));return _.Y8(N)};
lad=function(q){var N=q.isDarkTheme;var b=q.extension;q=q.runColor;var y=void 0;if(b=b==null?void 0:b.colorMap){N=N?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";b=_.Z(b);for(var J=b.next();!J.done;J=b.next())if(J=J.value,N===J.key){y=J.value;break}}y==null&&q&&(y=q);if(y)return ifJ(y)};
Dd=function(q){var N=q.config;var b=q.image;var y=q.imageConfig;var J=q.imageWrapperConfig;var E=q.run;var F=q.tag;var R=q.textLength;var c=q.startIndex===void 0?0:q.startIndex;q=q.length;c===void 0&&(c=0);E={run:E,startIndex:c,endIndex:q!==void 0?c+q:R,tag:F};b&&(E.image=b);y&&(E.imageConfig=y);J&&(E.imageWrapperConfig=J);N&&(E.config=N);return E};
D5n=function(q,N){var b=[];b.push("yt-core-attributed-string");(N==null?0:N.className)&&b.push(N==null?void 0:N.className);(N==null?0:N.ellipsisTruncate)?b.push("yt-core-attributed-string--ellipsis-truncate"):(N==null?0:N.noWrap)?b.push("yt-core-attributed-string--white-space-no-wrap"):(N==null?0:N.noPreWrap)||b.push("yt-core-attributed-string--white-space-pre-wrap");(N==null?0:N.linkInheritColor)&&b.push("yt-core-attributed-string--link-inherit-color");q.alignment&&b.push(KZJ(q.alignment));q.lineBreakMode&&
b.push("yt-core-attributed-string--word-wrapping");return b.join(" ")};
h8u=function(q,N){if(q.weight)return q.weight;switch(q.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 N?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
kBd=function(q){switch(q){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"}};
KZJ=function(q){switch(q){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"}};
U_=function(q,N,b){var y=N;q.content&&b&&(b=q.content.indexOf("\n"),b!==-1&&(y=Math.min(N,b)));if(!q.content||q.content.length<=y)N=q;else if(q.attachmentRuns||q.commandRuns||q.decorationRuns||q.styleRuns||q.paragraphStyleRuns){N=hn(q.content,y);b=y;var J=q.attachmentRuns;if(J){var E=[];J=_.Z(J);for(var F=J.next();!F.done;F=J.next())F=Object.assign({},F.value),F.startIndex===void 0||F.startIndex>=b||(F.length||(F.length=0),F.length+F.startIndex>b&&(F.length=b-F.startIndex),E.push(F));b=E}else b=void 0;
E=U5A(y,q.commandRuns);J=y;var R=q.decorationRuns;if(R){F=[];R=_.Z(R);for(var c=R.next();!c.done;c=R.next()){c=c.value;var z=_.v(c.textDecorator,k0);if(z&&z.startIndex!==void 0&&!(z.startIndex>=J)){c=Object.assign({},c,{textDecorator:{highlightTextDecorator:Object.assign({},z)}});z=_.v(c.textDecorator,k0);if(!z.length||z.length+z.startIndex>J)z.length=J-z.startIndex;F.push(c)}}J=F}else J=void 0;F=U5A(y,q.styleRuns);if(R=q.paragraphStyleRuns)for(q=[],R=_.Z(R),c=R.next();!c.done;c=R.next()){var m=c.value;
c=Object.assign({},m);if(!(c.startIndex===void 0||c.startIndex>=y)){if(!c.length||c.length+c.startIndex>y)c.length=y-c.startIndex;z=[];var r=void 0,X=void 0;if((r=m)==null?0:(X=r.listGroup)==null?0:X.listItems)for(m=_.Z(m.listGroup.listItems),r=m.next();!r.done;r=m.next())if(r=Object.assign({},r.value),!(r.startIndex===void 0||r.startIndex>=y)){if(!r.length||r.length+r.startIndex>y)r.length=y-r.startIndex;z.push(r)}z.length>0&&(c.listGroup||(c.listGroup={}),c.listGroup=Object.assign({},c.listGroup,
{listItems:z}));q.push(c)}}else q=void 0;N={content:N,attachmentRuns:b,commandRuns:E,decorationRuns:J,styleRuns:F,paragraphStyleRuns:q}}else N=Object.assign({},q,{content:hn(q.content,y)});return N};
U5A=function(q,N){if(N){var b=[];N=_.Z(N);for(var y=N.next();!y.done;y=N.next())if(y=Object.assign({},y.value),!(y.startIndex===void 0||y.startIndex>=q)){if(!y.length||y.length+y.startIndex>q)y.length=q-y.startIndex;b.push(y)}return b}};
hn=function(q,N){var b=N,y;if(y=b>0)y=q.charCodeAt(b-1),y=y>=55296&&y<=56319;y&&(b=q.charCodeAt(b),y=b>=56320&&b<=57343);y&&--N;return q.substring(0,N)};
Tvn=function(q,N,b){b=b===void 0?faZ:b;if(q){var y=_.tz().resolve(tD);y||_.x("mweb_no_observer_killswitch")?hqd(q,{data:N,observer:y,visibilityCallback:b,hideOption:CSh,showOption:IaD,layer:q.layer}):_.M6(new _.IO("Warning: monitorVisibility called with null observer",q.tagName,N==null?void 0:N.loggingDirectives,N==null?void 0:N.trackingParams))}else _.M6(new _.IO("Warning: monitorVisibility called with null element",N==null?void 0:N.loggingDirectives,N==null?void 0:N.trackingParams,N==null?void 0:
N.rendererContext))};
pmd=function(q,N){var b=[],y=q.content.length,J,E=(J=_.tz().resolve(_.$f(_.ft)))==null?void 0:J();if(q.paragraphStyleRuns){J=_.Z(q.paragraphStyleRuns);for(var F=J.next();!F.done;F=J.next()){var R=b.push,c=R.apply;var z=void 0;F=F.value;if((z=F.listGroup)!=null&&z.listItems){z=[];b:switch(F.listGroup.listType){case "LIST_TYPE_BULLET":var m="ul";break b;default:m="span"}z.push(Dd({run:F,textLength:y,tag:m,config:{className:"yt-core-attributed-string__list-group"},startIndex:F.startIndex,length:F.length}));
m=_.Z(F.listGroup.listItems);for(var r=m.next();!r.done;r=m.next()){r=r.value;b:switch(F.listGroup.listType){case "LIST_TYPE_BULLET":var X="li";break b;default:X="span"}z.push(Dd({run:F,textLength:y,tag:X,startIndex:r.startIndex,length:r.length}))}F=z}else F=[];c.call(R,b,_.a9(F))}}if(q.styleRuns&&(N==null||!N.noStyleRuns))for(J=_.Z(q.styleRuns),R=J.next();!R.done;R=J.next()){F=R=R.value;z=E;c=N;z=lad({extension:_.v(F.styleRunExtensions,s2J),isDarkTheme:z===void 0?!1:z,runColor:F.fontColor});r=F;
m=[];z&&m.push("yt-core-attributed-string--link-inherit-color");r.italic&&m.push("yt-core-attributed-string--italicized");r.underline&&r.strikethrough?m.push("yt-core-attributed-string--underline-strikethrough",kBd(r.underline)):r.underline?m.push("yt-core-attributed-string--underlined",kBd(r.underline)):r.strikethrough&&m.push("yt-core-attributed-string--strikethrough",kBd(r.strikethrough));if(r.baselineOffset){a:switch(r.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":r="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":r="yt-core-attributed-string--baseline-offset-superscript";break a;default:r="yt-core-attributed-string--baseline-offset-unknown"}m.push(r)}m=m.join(" ");r={};if(F.weight||F.weightLabel)r.fontWeight=h8u(F,c==null?void 0:c.isHeadline).toString();z&&(r.color=z);b.push(Dd({run:R,textLength:y,tag:"span",config:{className:m,style:r},startIndex:R.startIndex,length:R.length}))}if(q.decorationRuns)for(J=_.Z(q.decorationRuns),R=J.next();!R.done;R=J.next())R=R.value,
c={},R.textDecorator&&(m=R.textDecorator,F=E===void 0?!1:E,r=[],z=_.v(m,k0),m=_.v(m,nWD),z?(m=r,r=m.concat,X=[],(F=lad({extension:_.v(z.highlightTextDecoratorExtensions,aan),isDarkTheme:F,runColor:z.backgroundColor}))&&X.push("background-color: "+F+";"),z.backgroundCornerRadius!==void 0&&X.push("border-radius: "+z.backgroundCornerRadius+"px;"),z.leftPadding!==void 0&&X.push("padding-left: "+z.leftPadding+"px;"),z.rightPadding!==void 0&&X.push("padding-right: "+z.rightPadding+"px;"),z.topPadding!==
void 0&&X.push("padding-top: "+z.topPadding+"px;"),z.bottomPadding!==void 0&&X.push("padding-bottom: "+z.bottomPadding+"px;"),r=r.call(m,X)):m&&(z=r,r=z.concat,F=F?"#2ba640":"#107516",F=m.color?ifJ(m.color):F,F=["padding: 2px;","border-top: solid "+F+" 2px;","border-bottom: solid "+F+" 2px;","background: linear-gradient(135deg, "+F+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+F+" 3px, rgba(0, 0, 0, 0) 3px);"],r=r.call(z,F)),F=r.join(" "),c.style$=F,F=R.textDecorator,z=[],m=_.v(F,
nWD),_.v(F,k0)?z.push("yt-core-attributed-string--highlight-text-decorator"):m&&z.push("yt-core-attributed-string--bracket-text-decorator"),F=z.join(" "),c.className=F,c.dir="auto"),F=_.v(R.textDecorator,k0),z=_.v(R.textDecorator,nWD),m=_.v(R.textDecorator,k0),r=_.v(R.textDecorator,nWD),b.push(Dd({run:R,textLength:y,tag:"span",config:c,startIndex:(F==null?void 0:F.startIndex)||(z==null?void 0:z.startIndex)||0,length:(m==null?void 0:m.length)||(r==null?void 0:r.length)||0}));if(q.commandRuns&&(N==
null||!N.noEndpoints))for(E=_.Z(q.commandRuns),J=E.next();!J.done;J=E.next())J=J.value,R=wmA(J,N),b.push(Dd({run:J,textLength:y,tag:"a",config:R,startIndex:J.startIndex,length:J.length}));if(q.attachmentRuns)for(q=_.Z(q.attachmentRuns),E=q.next();!E.done;E=q.next()){E=E.value;c=R=void 0;J={className:"yt-core-attributed-string--inline-block-mod"};if((c=E.element)==null?0:c.properties){c=(R=E.element)==null?void 0:R.properties;R=[];c=_.v(c,SsA);if(c==null?0:c.margin)c=c.margin,c.left&&R.push("margin-left: "+
Y0(c.left)+";"),c.right&&R.push("margin-right: "+Y0(c.right)+";"),c.top&&R.push("margin-top: "+Y0(c.top)+";"),c.bottom&&R.push("margin-bottom: "+Y0(c.bottom)+";");R=R.length!==0?R.join(" "):void 0;J.style$=R}F=void 0;R={alt:"",preserveHeight:!0,preserveWidth:!0};c=["yt-core-attributed-string__image-element"];if(E.alignment){a:switch(E.alignment){case "ALIGNMENT_BASELINE":z="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":z="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:z="yt-core-attributed-string__image-element--image-alignment-bottom"}c.push(z)}if((F=E.element)==null?0:F.properties)F=[],z=_.v(E.element.properties,SsA),(z==null?0:z.height)&&F.push("height: "+Y0(z.height)+";"),(z==null?0:z.width)&&F.push("width: "+Y0(z.width)+";"),F=F.length!==0?F.join(" "):void 0,R.style$=F,z=void 0,F=((z=_.v(E.element.properties,WZu))==null?void 0:z.label)||"",R.alt=F;R.className=c.join(" ");c=void 0;m=z=void 0;F=((m=E.element)==null?0:m.type)?(z=_.v(E.element.type,
LZz))==null?void 0:z.image:void 0;b.push(Dd({run:E,textLength:y,tag:"img",image:F,imageConfig:R,imageWrapperConfig:J,startIndex:E.startIndex,length:(c=E.length)!=null?c:0}))}if(N==null?0:N.headerRuns)for(N=_.Z(N.headerRuns),q=N.next();!q.done;q=N.next())if(q=q.value,q.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(q.headerMapping)){a:{switch(q.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":E=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":E="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":E="yt-core-attributed-string--heading-3";break a}E=void 0}b.push(Dd({run:q,textLength:y,tag:"span",config:E?{className:E}:void 0,startIndex:q.startIndex,length:q.length}))}return b};
_.Ct=function(q){return(q==null?void 0:q.content)!==void 0};
PSD=function(q){return _.Ct(q)?q:_.v$(q)};
MWJ=function(q){return q.image!==void 0&&q.imageConfig!==void 0};
oWD=function(q,N){return!!N||!(q.commandRuns&&q.commandRuns.length!==0||q.paragraphStyleRuns&&q.paragraphStyleRuns.length!==0)};
AFA=function(q,N){if(N==null?0:N.userInput)for(q=_.Z(q),N=q.next();!N.done;N=q.next())if(N=N.value,N.tag!=="a"&&N.tag!=="li"){var b=void 0;(b=N).config||(b.config={});N.config.dir=N.tag==="ul"?_.tz().resolve(_.Ii):"auto"}};
e8J=function(q){return function(N){var b=q.run;(b.onTap!==void 0||b.onLongPress!==void 0)&&_.v(b,JFA)&&Tvn(N,{loggingDirectives:_.v(b,JFA)})}};
BvC=function(q){return function(N){for(var b in q)(zh[b]||zh[H1["default"]])(N,b,q[b])}};
b5C=function(q,N){Hfn(N);var b={data:null,start:0,end:q.length,parts:[]};N=_.Z(N);for(var y=N.next();!y.done;y=N.next())y=y.value,qPe(b,y.startIndex,y.endIndex,y);N9J(q,b);return b};
qPe=function(q,N,b,y){for(var J=_.Z(q.parts),E=J.next();!E.done;E=J.next()){E=E.value;if(typeof E==="string")throw Error("gh");if(E.start<=N&&b<=E.end){qPe(E,N,b,y);return}}q.parts.push({data:y,parts:[],start:N,end:b})};
N9J=function(q,N){for(var b=N.parts.length;b>=0;b--){var y=N.parts[b],J=N.parts[b-1],E=b===N.parts.length?N.end:y.start;J=b===0?N.start:J.end;E!==J&&N.parts.splice(b,0,q.slice(J,E));y&&N9J(q,y)}};
Hfn=function(q){q.sort(function(N,b){if(N.startIndex<b.startIndex)return-1;if(b.startIndex<N.startIndex)return 1;N=N.endIndex-N.startIndex;b=b.endIndex-b.startIndex;return N>b?-1:b>N?1:0})};
_.ygJ=function(q){var N=q.thumbnails;if(N){q={sources:[]};N=_.Z(N);for(var b=N.next();!b.done;b=N.next()){b=b.value;var y={};y.url=b.url;y.width=b.width;y.height=b.height;q.sources.push(y)}return q}};
JgJ=function(q,N,b,y){if(!N)return q.length>=1?q[q.length-1]:null;if(y)for(var J=_.Z(q),E=J.next();!E.done;E=J.next()){E=E.value;var F=void 0,R=(F=E.url)==null?void 0:F.indexOf(y);if(R!==void 0&&R>=0)return E}y=_.Z(q);for(J=y.next();!J.done;J=y.next())if(J=J.value,J.width&&J.height&&(b&&J.width>=N||!b&&J.height>=N))return J;for(N=q.length-1;N>=0;N--)if(b&&q[N].width||!b&&q[N].height)return q[N];return q[0]};
_.EbD=function(q){var N;return(q=(N=q.sources)==null?void 0:N[0])?q.width/q.height:0};
_.gbn=function(q){if(q.sources){q=_.Z(q.sources);for(var N=q.next();!N.done;N=q.next()){N=N.value;var b=void 0;if((b=N.clientResource)==null?0:b.imageName)return N}}};
Fqu=function(q){var N={};q=_.v(q.processor,Z5J);var b=(q=q==null?void 0:(b=q.imageTint)==null?void 0:b.color)?_.Y8(q):void 0;b&&(N.color=b);return N};
RcZ=function(q){var N;if((N=q.clientResource)!=null&&N.imageColor)return _.Y8(q.clientResource.imageColor)};
_.cgd=function(q,N,b,y,J,E,F){if(!N||N.length===0||N[0].clientResource)return null;if(b&&N[0].url)return N[0].url;y===void 0&&(y=!0);if(y){var R;q=d4d*(J||(q==null?void 0:(R=q.getBoundingClientRect())==null?void 0:R.width)||0)}else{var c;q=d4d*(E||(q==null?void 0:(c=q.getBoundingClientRect())==null?void 0:c.height)||0)}N=JgJ(N,q,y,F);return(N==null?0:N.url)?N.url:(N==null?0:N.imageData)?N.imageData:null};
uuz=function(q,N,b){b=b?[b]:[];q.opacity&&b.push("opacity: "+q.opacity+";");N&&q.placeholderColor?(q=_.Y8(q.placeholderColor),b.push("background-color: "+q+";")):b.push("background-color: transparent;");return b.join(" ")};
zcu=function(q,N,b,y,J){var E=["ytCoreImageHost"];N&&E.push(N);b||E.push("ytCoreImageFillParentHeight");y||E.push("ytCoreImageFillParentWidth");switch(q.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":E.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":E.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":E.push("ytCoreImageContentModeCenter");break;default:E.push("ytCoreImageContentModeScaleToFill")}q.flipForRtlLayout&&E.push("ytCoreImageFlipRtl");
switch(J){case "TOP_START":var F;E.push(((F=document.body)==null?void 0:F.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return E.join(" ")};
tMd=function(q){var N;if(q==null?0:(N=q.clientResource)==null?0:N.imageName){var b;q=(b=q.clientResource)==null?void 0:b.imageName;a:{switch(q){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":b="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":b="yt-logos-ext:yt-logo-updated";break a}b=void 0}return b||$4e.get(q)||q}};
X9n=function(q){return _.x("mweb_wiz_skip_render")?m4A(q):rgn(q)};
m4A=function(q){return function(N){var b=oFA("wink-root");gV=yq.lastChild;ADJ();vee(b,_.u(q,N))}};
rgn=function(q){var N=N===void 0?!1:N;return function(b){if(!N||!_.x("mweb_skip_keto_to_c3_if_no_data")||b.data!==void 0){var y=XC(!1);try{var J=b.children;_.x("mweb_render_outside_patch_killswitch")||yq?J?u_(_.u(q,b,J)):u_(_.u(q,b)):_.M6(new _.IO("ketoToC3 called outside of a patch",{tagName:q.TAG_NAME}))}finally{XC(y)}}}};
VMn=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
x4h=function(q,N){q.onViewportEntered=N;jbD.observe(q)};
vbZ=function(){var q={rootMargin:"10%",threshold:.01};_.x("mweb_enable_set_io_root_to_null_safari")?q.root=null:_.x("mweb_enable_set_io_root_to_body_safari")&&(q.root=document.body);return new IntersectionObserver(function(N,b){N.filter(function(y){return y.intersectionRect.height>0}).forEach(function(y){y=y.target;
if(!_.x("mweb_enable_only_update_image_when_connected")||y.isConnected!==!1){var J;(J=y.onViewportEntered)==null||J.call(y);b.unobserve(y)}})},q)};
G0h=function(q,N,b,y,J){function E(){if(y){var R=y.loadedClass,c=y.notifyOnUnloaded;R&&_.TT(q,R);c&&q.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function F(){var R=b(N,q);R&&q.getAttribute("src")!==R&&(_.x("mweb_enable_only_update_image_when_connected")&&q.isConnected===!1||R===q.src||(q.src=R),E())}
J=J===void 0?!0:J;q.removeAttribute("src");E();N&&(J?x4h(q,F):F())};
YPu=function(q,N,b){if(!N)return!1;N=b(N,q);b=q.getAttribute("src");return N&&N===b&&q.complete};
QbJ=function(q,N){for(var b in N)b==="className"?q.className=N[b]:(zh[b]||zh[H1.default])(q,b,N[b])};
O5C=function(q,N,b,y){X9n(_.s_)({contentMode:N.contentMode,loadedClass:N.loadedClass,isPreloaded:N.isPreloaded,notifyOnLoaded:N.notifyOnLoaded,notifyOnUnloaded:N.notifyOnUnloaded,preferredThumbnail:N.preferredThumbnail,preserveHeight:N.preserveHeight,preserveWidth:N.preserveWidth,objectPosition:N.objectPosition,targetWidth:N.targetWidth,targetHeight:N.targetHeight,shouldShowPlaceholder:N.shouldShowPlaceholder,useWidth:N.useWidth,isToggled:N.isToggled,alt:N.alt,className:N.className,onerror:N.onerror,
onload:N.onload,style$:N.style$,color:N.color,width:N.width,height:N.height,"aria-hidden$":N["aria-hidden$"],draggable:N.draggable,"data-disabled$":N["data-disabled$"],data:q,callback:b,renderLazy:y===void 0?!0:y,hideOn404:!1})};
i5d=function(q,N,b){b=b===void 0?!1:b;var y=q.sources!==void 0?q:_.ygJ(q);if(y){var J=N.onload;N.onload=function(z){var m=z.target;b&&m.naturalWidth===120||_.nt(m,"ytCoreImageLoaded");N.notifyOnLoaded&&m.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));J==null||J(z)};
N.targetWidth&&N.preserveWidth&&(N.width=N.targetWidth);N.targetHeight&&N.preserveHeight&&(N.height=N.targetHeight);var E=_.gbn(y),F=E&&tMd(E),R=Fqu(y);if(F)return(q=RcZ(E)||R.color)&&(N.color=q),{type:"icon",iconName:F,config:Object.assign({},N,N.alt?{}:{"aria-hidden$":"true"},{"aria-label$":N.alt,role:"img"})};if(q.sources===void 0){N.alt=q.accessibility&&q.accessibility.accessibilityData&&q.accessibility.accessibilityData.label||N.alt;N.style$=uuz(q,N.shouldShowPlaceholder,N.style$);var c;N.isPreloaded=
!((c=_.v(q,w9h))==null||!c.isPreloaded)}N.contentMode&&!y.contentMode&&(y.contentMode=N.contentMode);N.className=zcu(y,N.className,N.preserveHeight,N.preserveWidth,N.objectPosition);N.loadedClass="ytCoreImageLoaded";return{type:"image",image:y,config:N}}};
_.ai=function(){var q=_.MB.apply(0,arguments);return _.cK(lrD,function(N){var b=q.map(function(y){return y==null?void 0:y(N)});
return function(){return void b.forEach(function(y){return void(y==null?void 0:y())})}})};
S_=function(q,N){var b=N==null?void 0:N.initial;return _.K3(function(){_.p3(!0);return b=q(b)},{equals:N==null?void 0:N.isEqual},"rSlKsc")};
KqA=function(q,N){if(q===N)return!0;if(q===void 0||N===void 0)return!1;var b,y,J,E,F,R,c,z;return q.content===N.content&&((b=q.styleRuns)==null?void 0:b.length)===((y=N.styleRuns)==null?void 0:y.length)&&((J=q.commandRuns)==null?void 0:J.length)===((E=N.commandRuns)==null?void 0:E.length)&&((F=q.attachmentRuns)==null?void 0:F.length)===((R=N.attachmentRuns)==null?void 0:R.length)&&((c=q.decorationRuns)==null?void 0:c.length)===((z=N.decorationRuns)==null?void 0:z.length)};
k0h=function(q,N){if(q){var b=PSD(q);if(b!=null&&b.content)if(_.x("attr_string_reactive_c3"))N=N||{},N.contentAsserted=!0,X9n(D4Z)({text:b,config:N});else{var y;q=oWD(b,(y=N)==null?void 0:y.ariaLabel);var J;y=q?(J=N)==null?void 0:J.ariaLabel:null;J=q?"text":null;var E;bfn("span",{className:D5n(b,N),dir$:((E=N)==null?0:E.userInput)?"auto":void 0,"aria-label$":y,role$:J},function(){if(b.styleRuns||b.commandRuns||b.attachmentRuns||b.decorationRuns||b.paragraphStyleRuns){var F=pmd(b,N);AFA(F,N);F=b5C(b.content,
F);F=_.Z(F.parts);for(var R=F.next();!R.done;R=F.next())hcz(R.value)}else y9C(b.content)})}}};
hcz=function(q){typeof q==="string"?y9C(q):MWJ(q.data)?bfn("span",q.data.imageWrapperConfig,function(){O5C(q.data.image,q.data.imageConfig)}):bfn(q.data.tag,q.data.config,function(N){e8J(q.data)(N);
N=_.Z(q.parts);for(var b=N.next();!b.done;b=N.next())hcz(b.value)})};
frJ=function(q){return q.parts.map(U4n)};
U4n=function(q){if(typeof q==="string")return q;q=MWJ(q.data)?_.u("span",{el:_.ai(BvC(q.data.imageWrapperConfig))},_.u(_.s_,Object.assign({},{data:q.data.image},q.data.imageConfig))):_.u(q.data.tag,{el:_.ai(e8J(q.data),BvC(q.data.config))},q.parts.map(U4n));return KI(q)};
CjD=function(q,N){return q===N?!0:q===void 0||N===void 0?!1:q.noStyleRuns===N.noStyleRuns&&q.noLinkColor===N.noLinkColor&&q.noEndpoints===N.noEndpoints&&q.headerRuns===N.headerRuns&&q.isOverlay===N.isOverlay&&q.linkInheritColor===N.linkInheritColor&&q.userInput===N.userInput&&q.isHeadline===N.isHeadline};
Irz=function(q){return function(){var N,b,y,J,E,F,R,c,z,m,r,X,V,G;return{ariaLabel:(N=q.ariaLabel)==null?void 0:N.call(q),className:(b=q.className)==null?void 0:b.call(q),ellipsisTruncate:(y=q.ellipsisTruncate)==null?void 0:y.call(q),isOverlay:(J=q.isOverlay)==null?void 0:J.call(q),linkInheritColor:(E=q.linkInheritColor)==null?void 0:E.call(q),noEndpoints:(F=q.noEndpoints)==null?void 0:F.call(q),noStyleRuns:(R=q.noStyleRuns)==null?void 0:R.call(q),noLinkColor:(c=q.noLinkColor)==null?void 0:c.call(q),
noPreWrap:(z=q.noPreWrap)==null?void 0:z.call(q),noWrap:(m=q.noWrap)==null?void 0:m.call(q),skipOnClick:(r=q.skipOnClick)==null?void 0:r.call(q),userInput:(X=q.userInput)==null?void 0:X.call(q),headerRuns:(V=q.headerRuns)==null?void 0:V.call(q),isHeadline:(G=q.isHeadline)==null?void 0:G.call(q)}}};
sbA=function(q,N){q=new T9J(q,N);_.po(q);throw q;};
nbn=function(q,N,b){var y=oGJ(q);q._numRenders=0;try{var J=_.S$d(function(){return _.u(N,Object.assign({},b))})}catch(F){var E=function(R){R.args||(R.args=[]);
R.args.push("Error in web component wrapper");R.args.push(q.tagName.toLowerCase());return R};
_.P_(F instanceof Error?E(F):new T9J("Wiz rendering error",q.tagName.toLowerCase()));throw F;}finally{oGJ(y)}return J};
_.P$=function(q,N,b){function y(m){var r={};m=_.Z(m);for(var X=m.next();!X.done;X=m.next()){X=X.value;var V=void 0,G=void 0,w=void 0,D=_.R$((w=(G=(V=X).getAttribute)==null?void 0:G.call(V,"slot"))!=null?w:"children");if(V=r[D])V.push(X);else if(D in E||D==="children")r[D]=[X]}m=_.Z(Object.keys(r));D=m.next();for(X={};!D.done;X={content$jscomp$59:void 0},D=m.next())D=D.value,D!=="children"&&(X.content$jscomp$59=r[D],r[D]=function(k){return function(){return k.content$jscomp$59}}(X));
return r}
b=b===void 0?{}:b;var J,E=(J=b.props)!=null?J:{};AqR.add(N);var F=arn();J=function(){var m=F.apply(this,arguments)||this;m.rawProps={};m.queuingRender=!1;m.dispose=function(){};
m.isWebComponentWrapper=!0;m.isReparenting=!1;m.hasRendered=!1;return m};
_.Y(J,F);J.prototype.render=function(){this.hasRendered=!0;for(var m=_.Z([].concat(_.a9(this.attributes))),r=m.next();!r.done;r=m.next())r=r.value,r.name!=="slot"&&r.name!=="hidden"&&this.removeAttribute(r.name);m=Object.assign({},this.componentProps,this.slotProps);r=_.Z(nbn(this,q,m));m=r.next().value;r=r.next().value;!(m[0]instanceof Element)||m.length>1?sbA("Wrapped Wiz components must return a single root element.",N):(m=m[0].tagName.toLowerCase(),m!==N&&sbA("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(m+" !== '"+N),N),this.dispose=r)};
J.prototype.setUpProps=function(){for(var m=this.rawProps,r=this.attributes,X=_.Z(Object.keys(E)),V=X.next();!V.done;V=X.next()){V=V.value;var G=void 0;((G=this)==null?0:G[V])&&this[V]!==SPu&&m[V]===void 0&&(m[V]=this[V],(G=Object.getOwnPropertyDescriptor(this.constructor.prototype,V))&&Object.defineProperty(this,V,G))}X=_.Z(r);for(V=X.next();!V.done;V=X.next()){G=V.value;V=_.R$(G.name);var w=V==="class"&&!r.getNamedItem("class-name");if(V in E||w)G=G.value===""||G.value==="true"?!0:G.value==="false"?
!1:isNaN(Number(G.value))?G.value:Number(G.value),V!=="class"||m.className?m[V]=G:m.className=G}r={};for(var D in E)E[D]!==_.W$&&E[D]!==Wqn&&(m[D]instanceof Function&&sbA("Function props must be configured as STATIC, not SIGNAL.",N),V=_.Z(_.QS(m[D],void 0,"RKERzf")),X=V.next().value,V=V.next().value,r[D]=V,m[D]=X);m=_.Z([m,r]);this.componentProps=m.next().value;this.setters=m.next().value;this.slotProps=y(this.childNodes)};
J.prototype.connectedCallback=function(){Hwz.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in E&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
J.prototype.disconnectedCallback=function(){if(!Hwz.has(this)){var m;a:{if(_.Lt)for(m=this;m;){if(_.pt.has(m)){m=!0;break a}m=m.parentElement}m=!1}if(m)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){m=_.Z([].concat(_.a9(this.attributes)));for(var r=m.next();!r.done;r=m.next()){r=r.value;var X=void 0;r.name==="slot"||r.name==="hidden"&&((X=b.unsafeExternallySettableAttributes)==null?0:X.has("hidden"))||this.removeAttribute(r.name)}}this.innerText="";S8e(this)}}};
J.prototype._setPendingPropertyOrPath=function(){};
J.prototype.notifyPath=function(){};
_.$H.Object.defineProperties(J.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var R=_.Z(Object.keys(E)),c=R.next(),z={};!c.done;z={prop$jscomp$109:void 0},c=R.next())z.prop$jscomp$109=c.value,c=void 0,((c=b.legacyPolymer)==null?0:c.forwardHostProps)&&TWD.has(z.prop$jscomp$109)||Object.defineProperty(J.prototype,z.prop$jscomp$109,{set:function(m){return function(r){var X=this;Hwz.has(this)||(this.setters?Du(function(){var V,G;return void((G=(V=X.setters)[m.prop$jscomp$109])==null?void 0:G.call(V,r))}):(this.rawProps[m.prop$jscomp$109]=r,this.queuingRender&&m.prop$jscomp$109===
"data"&&r!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(z),
get:LqJ.has(z.prop$jscomp$109)?void 0:function(){return SPu}});
customElements.define(N,J)};
_.p9n=function(q,N){return(q=_.Mo(q,N))?_.sh(_.pc(q)):null};
_.oi=function(q){if(q=_.Mo(q,Number.MAX_VALUE,void 0,"width"))return _.pc(q)};
_.Mo=function(q,N,b,y){y=y===void 0?"width":y;if(!q||!q.length)return null;if(_.x("kevlar_tuner_should_always_use_device_pixel_ratio")){var J=window.devicePixelRatio;_.x("kevlar_tuner_should_clamp_device_pixel_ratio")?J=Math.min(J,_.VX("kevlar_tuner_clamp_device_pixel_ratio")):_.x("kevlar_tuner_should_use_thumbnail_factor")&&(J=_.VX("kevlar_tuner_thumbnail_factor"));Pjn=J}else Pjn||(Pjn=window.devicePixelRatio);J=Pjn;_.x("kevlar_tuner_should_always_use_device_pixel_ratio")?N*=J:J>1&&(N*=J);if(_.x("kevlar_tuner_min_thumbnail_quality"))return q[0].url||
null;J=q.length;if(_.x("kevlar_tuner_max_thumbnail_quality"))return q[J-1].url||null;if(b)for(var E=0;E<J;E++)if(q[E].url.indexOf(b)>=0)return q[E].url||null;for(b=0;b<J;b++)if(q[b][y]>=N)return q[b].url||null;for(N=J-1;N>0;N--)if(q[N][y])return q[N].url||null;return q[0].url||null};
AgJ=function(){An.size?setTimeout(function(){e_(MMA)},0):obn=0};
MMA=function(){var q=(0,_.mA)(),N=null,b=!1;An.forEach(function(J){J.loaded=!0;J.loadTime=q;J.pendingPaint=!1;var E=ech.get(J);E&&E.resolve(q);N=J;b||!J.ftlEligible&&J.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(b=!0)});
var y;((y=N)==null?0:y.markDirty)&&N.markDirty();An.clear();obn=0;b&&B9z(q)};
H5n=function(q){An.add(q);q.pendingPaint=!0;obn||(obn=_.B$(_.pY,AgJ))};
qKJ=function(q){q.loaded=!1;q.loadTime=Infinity;var N=ech.get(q);N&&(N.reject(Error("mh")),ech.delete(q));q.pendingPaint&&(An.delete(q),q.pendingPaint=!1)};
_.NXd=function(q){var N=q.indexOf(":");return N===-1?{originalName:q}:{originalName:q.substring(0,N),datasyncId:q.substring(N+1)}};
_.yfC=function(){return _.d(function(q){if(bWA!==void 0)return q.return(bWA);bWA=new Promise(function(N){var b;return _.d(function(y){switch(y.nextAddress){case 1:return _.Yi(y,2),y.yield(_.H$.open("test-only"),4);case 4:return y.yield(_.H$.delete("test-only"),5);case 5:_.Ea(y,3);break;case 2:if(b=_.K7(y),b instanceof Error&&b.name==="SecurityError")return N(!1),y.return();case 3:N("caches"in window),_.hj(y)}})});
return q.return(bWA)})};
gnA=function(){return _.d(function(q){if(q.nextAddress==1)return q.yield(_.yfC(),2);if(!q.yieldResult)return q.return(void 0);Jfz||(Jfz=new EnD);return q.return(Jfz)})};
ZWd=function(q){var N,b,y,J;return _.d(function(E){switch(E.nextAddress){case 1:return E.yield(gnA(),2);case 2:N=E.yieldResult;if(!N)throw Error("oh");return E.yield(N.open("yt-player-local-img"),3);case 3:return b=E.yieldResult,E.yield(b.match(q),4);case 4:y=E.yieldResult;if(!y)throw Error("ph");return E.yield(y.blob(),5);case 5:return J=E.yieldResult,E.return(J)}})};
F9n=function(q,N){for(var b in q)if(q.hasOwnProperty(b)&&N[b])return b;return null};
RAd=function(q){return"stamp"+q.replace("-","_")+"_"};
dGC=function(q){var N=q.match(/\[\[([\w\.]+)\]\]/);if(N&&N.length>1)return N[1];_.po(Error("rh`"+q));return null};
cfJ=function(q){return q===void 0?_.ou("REUSE_COMPONENTS",!1):q||!1};
$GR=function(q,N,b){b&&(N.is?(uUe.has(N)&&(q=uUe.get(N),b=q.listener,delete N[q.property],b.type==="element"&&N.removeEventListener(b.eventName,b.handler),uUe.delete(N)),zAD(N)):N.__proto__==HTMLElement.prototype&&(N=new _.IO("Rendererstamper removed a non custom element","Stamper: "+q+" element: "+(N&&N.nodeName)),_.M6(N)))};
t7d=function(q,N,b,y){var J=N.node?N.node:N;_.ee(b).parentNode===J&&(N.removeChild(b),$GR(q,b,y));if(q=qO.get(b))qO.delete(b),_.pY.cancelJob(q);b.hidden=!1};
mGA=function(q,N,b,y){if(N&&N.children&&(b=N.children[b]))if(_.ou("DEFERRED_DETACH"))for(;b&&!qO.has(b);){var J=q,E=N,F=b,R=y;F.hidden=!0;J=_.Ip(_.pY,t7d.bind(null,J,E,F,R),0);qO.set(F,J);b=b.nextElementSibling}else for(;(F=N.lastElementChild)&&(N.removeChild(F),$GR(q,F,y),F!=b););};
_.NO=function(){for(var q=_.MB.apply(0,arguments),N=!0,b=_.Z(q),y=b.next();!y.done;y=b.next())if(typeof y.value!=="string"){N=!1;break}return N?q.join(" ").trim()||void 0:function(){for(var J="",E=_.Z(q),F=E.next();!F.done;F=E.next())if(F=F.value,typeof F==="function"&&(F=F()),F)if(typeof F==="string")J+=" "+F;else for(var R in F)if(F.hasOwnProperty(R)){var c=F[R];typeof c==="function"&&(c=c());c&&(J+=" "+R)}J=J.trim()||void 0;return _.p3(J)}};
_.rfn=function(q,N){return _.Ji(q.entities,"markersEngagementPanelSyncEntity",N)};
_.bR=function(q,N){return _.Ji(q.entities,"playerStateEntity",N)};
Xgd=function(q,N){return _.Ji(q.entities,"fantasyWinProbabilityEntity",N)};
V7d=function(q,N){return _.Ji(q.entities,"fantasyTeamEntity",N)};
jhu=function(q,N){return _.Ji(q.entities,"fantasyPlayerEntity",N)};
xGh=function(q,N){return _.Ji(q.entities,"booleanEntity",N)};
vnu=function(q,N){return _.Ji(q.entities,"qrCodeEntity",N)};
GlC=function(q){return _.Ji(q.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
QhJ=function(q){var N;return(N=YKh[q])!=null?N:"EVENT_SPAN_TYPE_UNKNOWN"};
OWC=function(q){var N=q.nodeName;if(q.id)return N+="#"+q.id;if(q.classList)for(var b=_.Z(q.classList),y=b.next();!y.done;y=b.next())N+="."+y.value;q.parentElement&&(N=OWC(q.parentElement)+" > "+N);return N};
wgu=function(q){return function(N){var b=QhJ(N.type);return b==="EVENT_SPAN_TYPE_UNKNOWN"?q(N):wbd("event",{type:b,nodepath:N.target instanceof Element?OWC(N.target):void 0},function(){return q(N)})}};
_.y0=function(q){q&&v3Z("event")&&(q=wgu(q));return rOd(function(N){var b,y=(b=q)==null?void 0:b(N);return typeof y==="boolean"?y:!0})};
JE=function(q){return function(){return q()?q():void 0}};
DGd=function(q){var N=_.dI("animated-rolling-character"),b=kyn(),y=S2(q.character)||S2(q.previousCharacter),J=_.Z(UEJ()),E=J.next().value,F=J.next().value;_.WC(function(){if(window.ResizeObserver&&_.x("web_fix_rolling_numbers_zoom_safari")){var R=new _.El(function(){var z,m,r=Math.round(((m=(z=N.value.querySelector("div"))==null?void 0:z.getBoundingClientRect().height)!=null?m:0)*100)/100;r&&F(r)},500),c=new ResizeObserver(function(){R.fire()});
c.observe(N.value);return function(){c.disconnect();R.dispose()}}});
YeZ(function(){var R=_.x("web_fix_rolling_numbers_zoom_safari")?E:q.marginMultiplier;if(R){var c;(c=b.value)==null||c.cancel();y?(c=q.previousCharacter?Number(q.previousCharacter)+10:q.rollUp?0:30,q.shouldAnimate||(c-=iWd(q,c))):(c=q.rollUp?0:2,q.shouldAnimate||(c-=q.rollUp?-1:1));N.value.style.marginTop="-"+c*R+"px";q.shouldAnimate?b.value=lnC(N.value,q,c,y,R):N.value.style.display=q.character?"":"none"}});
return _.u("animated-rolling-character",{el:N,class:"animatedRollingCharacterHost"},tdh(y,function(){for(var R=[],c=1;c<30;c++)R.push(_.u("div",null,c%10));return _.u(_.rV,null,_.u("div",null,"\u00a0"),R,_.u("div",null,"\u00a0"))},function(){return K9A(q.character)}))};
K9A=function(q){return _.u(_.rV,null,_.u("div",null,"\u00a0"),_.u(_.rV,null,tdh(!q||_.dA(q),function(){return _.u("div",null,"\u00a0")},function(){return _.u("div",null,q)})),_.u("div",null,"\u00a0"))};
lnC=function(q,N,b,y,J){b=new Animation(new KeyframeEffect(q,[{transform:"translateY(0px)"},{transform:"translateY("+(y?iWd(N,b):N.rollUp?-1:1)*J+"px)"}],hAe),document.timeline);N.character?(q.style.display="",b.onfinish=null):b.onfinish=function(){q.style.display="none"};
b.play();return b};
iWd=function(q,N){var b=Number(q.character)+10;if(q.previousCharacter)if(q.character){var y=Number(q.character),J=Number(q.previousCharacter);q=q.rollUp?J<y?b:b+10:J<y?b-10:b}else q=q.rollUp?30:0;else q=q.character==="0"?b:q.rollUp?b-10:b+10;return N-q};
klz=function(q){return function(N){var b={},y;for(y in N){var J=void 0,E=void 0;((J=void 0)==null?0:(E=J.callbacks)==null?0:E[y])||(b[y]=N[y])}return _.u(a7C,null,function(){for(var F in b)N[F]=_.p3(b[F]);N.disableReactiveLogging=!0;return _.u(q,Object.assign({},N))})}};
C4J=function(q,N,b,y,J,E,F){b=new Animation(new KeyframeEffect(q,[{transform:"translateY(0px)"},{transform:"translateY("+(E?UGJ(N,b,y,J):y?-1:1)*F+"px)"}],fnh),document.timeline);N?(q.style.display="",b.onfinish=null):b.onfinish=function(){q.style.display="none"};
b.play();return b};
UGJ=function(q,N,b,y){var J=Number(q)+10;N?q?(q=Number(q),N=Number(N),b=b?N<q?J:J+10:N<q?J-10:J):b=b?30:0:b=q==="0"?J:b?J-10:J+10;return y-b};
TXu=function(q){var N=kyn(),b=kyn();ixA(function(){N.value=q.numberText;b.value=q.numberValue},[q.numberText]);
var y=q.fontSizeMultiplier?q.heightPx*q.fontSizeMultiplier:q.heightPx,J=h0A(function(){if(q.numberText){var F=q.numberText;var R=q.forceRollUp||!b.value||!q.numberValue||b.value<q.numberValue;var c=!!q.shouldAnimate,z=N.value,m=[],r=0,X=0,V=(z?z.replace(/\D/g,"").length:0)-(F?F.replace(/\D/g,"").length:0);z=z?z.split(/(\d)/).filter(Boolean):[];for(F=F.split(/(\d)/).filter(Boolean);V<0;){var G=F[X];m.push({character:G,rollUp:R,marginMultiplier:y,shouldAnimate:c});X++;S2(G)&&V++}for(;r<V;)G=z[r],m.push({previousCharacter:G,
rollUp:R,marginMultiplier:y,shouldAnimate:c}),r++,S2(G)||V++;for(;X<F.length;)V=F[X],G=z[r],S2(V)===S2(G)?(X++,r++):S2(V)?(r++,V=void 0):S2(G)&&(X++,G=void 0),m.push({character:V,previousCharacter:G,rollUp:R,marginMultiplier:y,shouldAnimate:c});R=m}else R=[];return R},[q.numberText]),E=q.numberText?["height: "+y+"px;",
"line-height: "+q.heightPx+"px;"].join(" "):"";return _.u("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:E,dir:"ltr","aria-hidden":"true"},J.map(function(F){return _.u(InJ,Object.assign({},F))}))};
shA=function(q){switch(q){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}};
_.nnR=function(q,N){if(!q&&!N)return"medium";q=Math.max(q||0,N||0);return q>=256?"large":q>=96?"medium":"small"};
ane=function(q){switch(q){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
SKJ=function(q){return new KeyframeEffect(q,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
W9A=function(q){return new KeyframeEffect(q,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.gJ=function(q){if(q.length===0)return xrC(q,"E");var N=_.Z(xrC({source:function(){return q()},
computation:function(J,E){return(E==null?0:E.value)?q(E.value):J}},"F")),b=N.next().value,y=N.next().value;
N=N.next().value;return[b,y,N]};
_.ZU=function(q){return function(){var N="",b;for(b in q){for(var y=q[b];typeof y==="function";)y=y();y!==void 0&&y!==null&&(N+="; "+b+": "+y)}return N.length>0?_.p3(N.slice(2)):_.p3()}};
L9n=function(q){switch(q){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"}};
pgJ=function(q,N){if(N)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(q)switch(q){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"}};
eAA=function(q,N,b,y,J,E,F){var R=P4u(q),c=R.disabled,z=R.iconPosition,m=R.style,r=R.focused,X=function(){return!!w()&&z()==="icon-only"},V=function(){return!!w()&&z()==="icon-only-40"},G=function(){return!!w()&&z()==="icon-with-label"},w=function(){return!!N||!(y==null||!y())};
return{type:function(){return m()==="call-to-action-inverse"?"text":m()==="overlay-dark"&&q().type!=="filled"&&q().type!=="tonal"?"tonal":q().type},
shouldFocus:function(){return(r()||(E==null?void 0:E()))&&!c()},
hasIconLeading:function(){return!!w()&&z()==="leading"},
hasIconTrailing:function(){return!!w()&&z()==="trailing"},
hasIconLeadingTrailing:function(){return!!w()&&!!(b||J!=null&&J())&&z()==="leading-trailing"},
hasIconOnly:X,hasIconOnly40:V,hasIconWithLabel:G,iconButton:function(){return X()||V()||G()},
visiblyDisabled:function(){return(c()?"disabled":q().state)==="disabled"||c()},
overrideSmallSizeIcon:function(){return!q().ignoreIconSizeOverride&&M7C(q(),w())},
iconToRender:N?N:function(){return _.u(_.FQ,{icon:y,gradientColor:function(){var D;return(D=q().customColors)==null?void 0:D.iconGradientColor},
size:function(){return onA(q(),!0,q().ignoreIconSizeOverride)},
active:function(){return q().toggled},
iconFilter:function(){return Afd(q())},
animateIcon:F})},
secondaryIconToRender:b?b:function(){return _.u(_.FQ,{icon:J,size:function(){return onA(q(),!0,q().ignoreIconSizeOverride)},
active:function(){return q().toggled},
iconFilter:function(){return Afd(q())}})}}};
P4u=function(q){return{size:function(){return q().size},
style:function(){return q().style},
focused:function(){return q().focused},
disabled:function(){return q().disabled},
onTap:function(N){var b,y;return(y=(b=q()).onTap)==null?void 0:y.call(b,N)},
alignByText:function(){return q().alignByText},
aTagConfig:function(){return q().aTagConfig},
customColors:function(){return q().customColors},
segmentedPosition:function(){return q().segmentedPosition},
toggled:function(){return q().toggled},
toggleable:function(){return q().toggleable},
accessibilityLabel:function(){return q().accessibilityLabel},
onToggle:function(N){var b,y;return(y=(b=q()).onToggle)==null?void 0:y.call(b,N)},
iconPosition:function(){return q().iconPosition},
oneOffCustomTextWrap:function(){return q().oneOffCustomTextWrap},
disableTextEllipsis:function(){return q().disableTextEllipsis},
disableBackdropFilter:function(){return q().disableBackdropFilter},
tooltipText:function(){return q().tooltipText},
tooltipShape:function(){return q().tooltipShape},
ariaHidden:function(){return q().ariaHidden},
tabIndex:function(){return q().tabIndex},
buttonText:function(){return q().buttonText},
formattedButtonText:function(){return q().formattedButtonText},
animatedTextProps:function(){return q().animatedTextProps},
onClickRateLimitMs:function(){return q().onClickRateLimitMs}}};
M7C=function(q,N){N=(q.iconPosition==="icon-only"||q.iconPosition==="icon-only-40"||q.iconPosition==="icon-with-label")&&N;return!q.segmentedPosition&&N&&q.size==="S"};
onA=function(q,N,b){switch(q.size){case "XS":return 16;case "S":return!b&&M7C(q,N)?24:16;default:return 24}};
BXC=function(q){switch(q){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"}};
HWC=function(q){switch(q){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"}};
q9R=function(q){switch(q){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"}};
Afd=function(q){if(q.style==="overlay-dark"&&q.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
RE=function(q){return q&&q.endsWith("px")?Number(q.slice(0,-2)):0};
yoC=function(q,N){var b=_.Z(_.gJ(function(){var J,E;return(E=q())!=null?E:N==null?void 0:(J=N())==null?void 0:J.text})),y=b.next().value;
return[function(J){var E=_.K3(function(){var c;return Object.assign({},{location:"bottom",offset:16,delay:1},N==null?void 0:N(),{text:(c=y())!=null?c:""})},void 0,"IJU38d");
_.Sx(function(){var c=E();_.YL(function(){_.pY.addJob(function(){dJ.notify(J,c)},4)})},"WlsgZc");
var F=function(){NSu(J,E())},R=function(){bXC()};
J.addEventListener("mouseenter",F);J.addEventListener("focus",F);J.addEventListener("mouseleave",R);J.addEventListener("blur",R);J.addEventListener("tap",R);_.W1(function(){J.removeEventListener("mouseenter",F);J.removeEventListener("mouseleave",R);J.removeEventListener("focus",F);J.removeEventListener("blur",R);J.removeEventListener("tap",R);bXC()})},
b.next().value]};
EjA=function(q,N){if(!F8){var b;Ghe(function(){return b=sDZ(q,N)});
return b}q.parent=JoR();return sDZ(q,N)};
JoR=function(){var q=_.dn(F8||void 0,Cxu);return _.VdC(q)?void 0:q};
ck=function(q,N){_.wa(q,Object.assign({},N,{forceClickLogging:!0}))};
gjR=function(q){switch(q){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"}};
FLn=function(q,N){var b=_.O_(q==null?void 0:q.onTap),y={};b&&(y.getClickedVisualElement=function(){var J;return ZXd(q,b,N==null?void 0:(J=N.value)==null?void 0:J.visualElement)});
y=_.iq({elementsCommand:q.onTap,forceNewState:!0,additionalCommandArgs:y});return lq(y)?y:void 0};
Rmh=function(q,N,b,y){ck(q,Object.assign({},{form:{element:N,event:b}},y))};
dun=function(q,N,b,y,J){var E=void 0;return function(F){var R=_.O_(b?q==null?void 0:q.onDisabledTap:q==null?void 0:q.onTap);if(R){var c;E=(c=E)!=null?c:N==null?void 0:N.value;if(R)if(_.x("web_button_vm_click_client_ve_killswitch"))Rmh(R,E,F);else{var z;c=ZXd(q,R,(z=E)==null?void 0:z.visualElement);if(J){Rmh(R,J,F,{clickedVisualElement:c,form:{element:J}});return}Rmh(R,E,F,{clickedVisualElement:c})}}y&&y(F)}};
ZXd=function(q,N,b){N=N==null?void 0:N.clickTrackingParams;var y,J;q=q==null?void 0:(y=q.loggingDirectives)==null?void 0:(J=y.clientVeSpec)==null?void 0:J.uiType;if(b&&q&&!N)return b};
coA=function(q){switch(q){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"}};
ukd=function(q){switch(q){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"}};
zmA=function(q){switch(q){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"}};
$ud=function(q){switch(q){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"}};
_.uR=function(q){return _.K3(function(){BFC()();return NWd(q)},{debugName:"d8B62c"},"DEXkhd")};
tyD=function(q,N){return _.Ji(q.entities,"engagementToolbarStateEntityPayload",N)};
roA=function(q){(q=_.zT(q))&&_.muJ(q)};
_.muJ=function(q){var N=_.Oe();N&&_.I5(N,q)};
Xuh=function(q,N,b){_.By(q,"yt-open-popup-action",[N,b||q])};
Vyn=function(q,N){var b=_.LI(q,"endpoint"),y=_.LI(q,"action");return(b=y?y:b)&&N&&(b=N.navigationEndpointPopupMap[b])&&(q=_.Ng(b,q),(b=_.LI(q,"renderer"))&&N.supportedPopups.hasOwnProperty(b))?{openPopupAction:{popupType:N.popupTypeMap[b],popup:q}}:null};
jqA=function(q,N,b,y){if(y){var J;b=b==null?void 0:(J=b.data)==null?void 0:J.contents;(J=b instanceof Array&&b.length?b[0]:b)&&(b=_.LI(J,"renderer"))&&y.supportedPopups.hasOwnProperty(b)&&(N.stopPropagation(),Xuh(q,{openPopupAction:{popupType:y.popupTypeMap[b],popup:J}}))}};
GXn=function(q,N,b,y){y=y===void 0?!1:y;var J=xue(N);if(J){J.href&&iI(J.href);var E=N.button;E=E!==void 0?E===0&&!z4(N):!z4(N);J.data&&E&&vjJ(q,J,N,b,y)}};
vjJ=function(q,N,b,y,J){J=J===void 0?!1:J;var E=_.VX("pbj_navigate_limit",-1)===0;Y9d(N);_.tz().resolve(_.$f(Nr));var F=N.data;if(Object.keys(F).length!==0)if(!_.x("unplugged_web_disable_actions_for_cec_endpoint")&&_.v(F,_.y6))_.x("endpoint_behavior_command_executor_fix_killswitch")||(b.preventDefault(),b.stopPropagation()),_.Nc(q,[F],q);else if(y=Vyn(F,y))F.loggingUrls&&F.loggingUrls.forEach(function(c){c.baseUrl&&_.b0(c.baseUrl)}),b.preventDefault(),b.stopPropagation(),Xuh(q,y,N);
else{var R=Qqu(0,N.data,b);if(q=N.getForm)q=q(),R.tempData=R.tempData||{},R.tempData=Object.assign({},R.tempData,q);q=_.n9(b);if(y=q.find(function(c){return!!c.visualElement}))R.createScreenConfig=R.createScreenConfig||{},R.createScreenConfig.clickedVisualElement=y.visualElement;
if(!E)if(b.preventDefault(),b.stopPropagation(),_.v(F,_.OXD)&&!J&&_.bq.instance)_.bq.instance.resolveCommand(F,R);else if(_.x("kevlar_command_handler_formatted_string")&&!J&&_.bq.instance&&wun(F))J=q.find(function(c){return!!c.is})||b.target,b={form:Object.assign({},R,{event:b,
element:J,originatingNode:N})},_.bq.instance.resolveCommand(F,b);else{F=_.n9(b);b=[];for(J=0;J<F.length;J++)(E=F[J].is)&&b.push(E);q$D({parents:b.join(","),text:N.innerText},function(){_.e2(N,"yt-navigate",R)})}}};
iXd=function(q){if(q=xue(q))Y9d(q),NoJ(q.href)};
xue=function(q){q=_.n9(q);for(var N,b=0;b<q.length;b++)if(N=q[b],N.tagName==="A"&&N.classList.contains("yt-simple-endpoint")){if(!N.data)break;return N}return null};
z4=function(q){return q.shiftKey||q.altKey||q.metaKey||q.ctrlKey};
lAC=function(q,N){var b={itct:N.clickTrackingParams};_.x("kevlar_client_side_screens")&&(!_.v(N,_.uI)||_.x("kevlar_exclude_endpoint_killswitch"))&&(b.endpoint=JSON.stringify(N));_.x("enable_unknown_lact_fix_on_html5")&&_.tz().resolve(_.$f(_.$P))&&(b.lact=_.tr());BKJ(b);_.Lx(q,b)};
Y9d=function(q){q.href&&Object.keys(q.data).length!==0&&lAC(q.href,q.data)};
wun=function(q){for(var N=_.Z(KLA),b=N.next();!b.done;b=N.next())if(q[b.value])return!1;return!0};
Dud=function(){if(tE)return tE;if(window.lottie)return tE=Promise.resolve(window.lottie);var q=_.Pv(_.M7("LOTTIE_URL"));return q?tE=new Promise(function(N,b){var y=document.createElement("script");y.addEventListener("load",function(){N(lottie)});
y.addEventListener("error",function(J){var E="Lottie library failed to load.";J?J.message&&(E+=" Original description: "+J.message,_.op(J,E)):J=Error(E);_.M6(J);b(J)});
y.setAttribute("async","");_.R9(y,q);document.head.appendChild(y)}):Promise.reject(Error("sh"))};
hmd=function(){return tE?tE:Dud()};
kXA=function(q){if(q)switch(q){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.x("kevlar_use_wil_icons"))return q=(q=GlC(_.WT().getState()))&&q.animationLightUrl&&q.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:q.animationLightUrl,pathDarkTheme:q.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,q?q:m8.get("LIKE");break;case "LIKE_DELHI_PLAYER":return m8.get("LIKE_DELHI_PLAYER")}};
Uud=function(q){var N=kXA(q);if(N)return N;switch(q){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return m8.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return m8.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return m8.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return m8.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return m8.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return m8.get("NOTIFICATION_BELL")}};
fAC=function(q,N){if(!q.closest)return!1;N=!!kXA(N);return _.M7("ID_TOKEN")&&N?!!q.closest("segmented-like-dislike-button-view-model")||!!q.closest("yt-player-quick-action-buttons"):!1};
IAd=function(q,N){if(!q||Crz)N=!1;else{var b;if(!(b=fAC(q,N)))if(q.closest)if(b=!_.M7("ID_TOKEN"),q=q.closest("ytd-subscription-notification-toggle-button-renderer-next"),b||!q)b=!1;else{var y;b=((y=q.data)==null?void 0:y.targetId)==="notification-bell"&&N!=="EXPAND_MORE"}else b=!1;N=b}return N};
TSJ=function(q){var N,b;return _.d(function(y){switch(y.nextAddress){case 1:return _.Yi(y,2),y.yield(fetch(q),4);case 4:return N=y.yieldResult,y.yield(N.json(),5);case 5:return y.return(y.yieldResult);case 2:b=_.K7(y),_.M6(b),_.hj(y)}})};
sqn=function(q,N){var b,y,J;return _.d(function(E){if(E.nextAddress==1)return(b=N?q.pathDarkTheme:q.path)?E.yield(Promise.all([TSJ(b),Dud()]),2):E.return();y=E.yieldResult;J=y[0];rJ.set(b,J);_.hj(E)})};
aAJ=function(q,N,b,y){function J(F,R){if(N.value===R&&!N.cancelled){for(;q.firstChild;)q.removeChild(q.firstChild);q.classList.add("ytSpecIconShapeHost");F(q,y)}}
var E=_.njR(_.tz().resolve(_.No),b);typeof E==="function"?(N.value=null,J(E,null)):(N.value=E,E.then(function(F){J(F,E)}))};
S9z=function(q,N){var b=document.createElement("div"),y=_.au(b,function(){return _.u(_.t,{cond:q,then:function(J){return _.u(_.XQ,{data:J,options:N})}})},"ca");
return[b,y]};
_.V0=function(q,N){if(N){var b={};WLA.forEach(function(y){y=LLD(N,y,"--yt-lightsource-");Object.assign(b,y)});
puh.forEach(function(y){y=LLD(N,y,"--yt-basic-");Object.assign(b,y)});
_.Jm(q,b)}};
LLD=function(q,N,b){var y={};y[b+_.Fv(N)]=q&&q[N]?_.Y8(q[N]):"";return y};
_.xP=function(q,N,b){ju[q]||(ju[q]={});ju[q][N]=b};
_.vk=function(q){ju[q]||(ju[q]={});return ju[q]};
PrZ=function(q){if(!q)return{};var N=q.foregroundTitleColor,b=q.backgroundColor;q=q.borderColor;var y="text";q?y="outline":b&&(y="filled");return{type:y,customColors:{color:N?_.Y8(N):void 0,backgroundColor:b?_.Y8(b):void 0,borderColor:q?_.Y8(q):void 0}}};
BSR=function(q){var N=q.renderer;var b=q.element;var y=q.commandController;var J=q.onTapCallback;var E=q.skipCommandHandling;var F=q.overrides;var R=q.forceIcon;var c=q.forceModernIconButton;var z=q.forceDisabled;var m=q.isSubscribe===void 0?!1:q.isSubscribe;var r=q.isPressed===void 0?!1:q.isPressed;var X=q.useButtonSize===void 0?!1:q.useButtonSize;q=Myn(N);m&&(q.style="mono",q.type="filled");R=!N.icon||!R&&N.text?N.icon?N.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:c?"icon-only":"icon-only-40";R==="icon-only-40"&&(q.type="text");var V;c=Object;m=c.assign;X=ojJ(N,X);r=!!N.isSelected||!_.x("web_propagate_is_pressed_killswitch")&&!!r;var G=N.isSelected!==void 0;z=z===void 0?N.isDisabled:z;var w=N.text?_.v$(N.text):void 0;var D,k,f,L=((D=N.accessibilityData)==null?void 0:(k=D.accessibilityData)==null?void 0:k.label)||((f=N.accessibility)==null?void 0:f.label);D=L?L:_.ao(N.text);b=AoC(N,b,y,J,E);y=emd(N);y!=null&&y.length?(y=_.iq({innertubeCommand:VWn(y),
forceNewState:!0}),y=lq(y)?y:void 0):y=void 0;return m.call(c,{},q,X,{iconPosition:R},F,{focused:!1,toggled:r,toggleable:G,disabled:z,formattedButtonText:w,accessibilityLabel:D,onTap:b,aTagConfig:y},PrZ((V=N.colorData)==null?void 0:V.basicColorPaletteData),{oneOffCustomTextWrap:N.oneOffCustomTextWrap})};
AoC=function(q,N,b,y,J){return function(E){var F=emd(q);y(F,E);if(!J){F=_.Z(F);for(var R=F.next();!R.done;R=F.next())ck(R.value,{form:{element:N,event:E},commandController:b})}}};
emd=function(q){var N=[];q.command&&N.push(q.command);q.serviceEndpoint&&N.push(q.serviceEndpoint);q.navigationEndpoint&&N.push(q.navigationEndpoint);return N};
ojJ=function(q,N){if(N)switch(q.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(q.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
Myn=function(q){switch(q.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"}}};
HXD=function(q,N){return typeof q!=="object"||q===null?!1:Object.keys(N).every(function(b){return b in q})};
G4=function(q){return Object.fromEntries(Object.keys(q).map(function(N){return[N,N]}))};
qWn=function(q,N,b){return qDd(b,function(y,J){return function(E){var F=_.MB.apply(1,arguments);return HXD(E,q)?J.apply(null,[E[N]].concat(_.a9(F))):J.apply(null,[E].concat(_.a9(F)))}})};
YP=function(q){return function(N,b){return qWn(q,N,b)}};
N4d=function(q,N){var b;return(b=_.Ji(q,"playlistLoopStateEntity",N))!=null?b:void 0};
bZJ=function(q,N){var b;return(b=_.Ji(q,"toggleMenuServiceItemEntity",N))!=null?b:void 0};
_.Q0=function(q){return q!=null&&q.watch?q.watch.isTheaterMode:!1};
_.Ol=function(q){return q!=null&&q.watch?q.watch.isWatchFullscreen:!1};
_.wJ=function(q){if(_.y1d(q))return!0;q=_.J1A(q);return _.x("web_watch_enable_single_column_grid_view")?q:!1};
_.y1d=function(q){return q!=null&&q.watch?q.watch.isSwatcherooActive:!1};
_.J1A=function(q){return q.watch.isWatchNarrowWidth};
_.Emn=function(q){return q.watch.openEngagementPanels};
iR=function(q,N){return _.Ji(q.entities,"likeStatusEntity",N)};
gmD=function(q,N){return _.Ji(q.entities,"likeCountEntity",N)};
_.ZZA=function(q,N){return _.Ji(q.entities,"stringEntity",N)};
FEA=function(q,N){return _.Ji(q.entities,"dataFreshnessEntity",N)};
R1A=function(q,N){if(!q)return!1;var b,y=(b=_.v(q,_.EY))==null?void 0:b.signal;if(y&&N.signalEndpointMap)return!!N.signalEndpointMap[y];var J;if((b=(J=_.v(q,_.lR))==null?void 0:J.request)&&N.continuationEndpointMap)return!!N.continuationEndpointMap[b];for(var E in q)if(N.commandEndpointMap[E])return!0;return!1};
daC=function(q,N){if(N.streamingEndpointMap)for(var b in q)if(N.streamingEndpointMap[b]&&(q=N.streamingEndpointMap[b]))return q()};
c1J=function(q,N){var b,y=(b=_.v(q,_.EY))==null?void 0:b.signal;if(y&&N.signalEndpointMap&&(b=N.signalEndpointMap[y]))return b();var J;if((b=(J=_.v(q,_.lR))==null?void 0:J.request)&&N.continuationEndpointMap&&(J=N.continuationEndpointMap[b]))return J();for(var E in q)if(N.commandEndpointMap[E]&&(q=N.commandEndpointMap[E]))return q()};
uNz=function(q){var N={"Content-Type":"application/json"};_.M7("EOM_VISITOR_DATA")?N["X-Goog-EOM-Visitor-Id"]=_.M7("EOM_VISITOR_DATA"):_.M7("VISITOR_DATA")&&(N["X-Goog-Visitor-Id"]=_.M7("VISITOR_DATA"));N["X-Youtube-Bootstrap-Logged-In"]=_.M7("LOGGED_IN",!1);_.M7("DEBUG_SETTINGS_METADATA")&&(N["X-Debug-Settings-Metadata"]=_.M7("DEBUG_SETTINGS_METADATA"));if(q!=="cors"){var b=_.M7("INNERTUBE_CONTEXT_CLIENT_NAME");b&&(N["X-Youtube-Client-Name"]=b);(b=_.M7("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(N["X-Youtube-Client-Version"]=
b);(b=_.M7("CHROME_CONNECTED_HEADER"))&&(N["X-Youtube-Chrome-Connected"]=b);(b=_.M7("DOMAIN_ADMIN_STATE"))&&(N["X-Youtube-Domain-Admin-State"]=b)}_.ou("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(q=_.M7("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(N["X-YouTube-Lava-Device-Context"]=q):q!=="cors"&&_.ou("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(q=_.M7("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(N["X-YouTube-Lava-Device-Context"]=q);return N};
z1C=function(q,N){N.watchNextResponse||N.reelItemWatchResponse?N.watchNextResponse?q.content=N.watchNextResponse:q.content=N.reelItemWatchResponse:N.playerResponse?q.player=N.playerResponse:N.reelWatchSequenceResponse&&(q.reelSequence=N.reelWatchSequenceResponse)};
K6=function(q){return function(){return new q}};
DU=function(q){var N=_.tz();return function(){return N.resolve(q)}};
_.hE=function(q){if(!q)return null;for(var N=[],b=0;b<q.textSegments.length;b++){var y=q.textSegments[b];y.text?N.push(y):y.emojiId&&N.push({emoji_id:y.emojiId})}return{text_segments:N}};
XnJ=function(q,N,b,y,J,E,F){E=E===void 0?[]:E;var R=new _.kP;R.endpoint=b;if(!b)return _.P_(new _.IO("handle undefined endpoint",N.tagName)),R;var c=R7n(b);c.length&&(_.Nc(q,c,N,y),R.actions=c);b.loggingUrls&&b.loggingUrls.forEach(function(m){m.baseUrl&&yQ(m.baseUrl,m.attributionSrcMode)});
c=!_.x("web_skip_impression_click_killswitch")&&y&&y.impression;if(b.clickTrackingParams&&!$aA(b)&&!t4u(N)&&!c&&(c=_.FR(),!_.Ul(c,N))){var z=N.getScreenLayer&&N.getScreenLayer();z?c.clickCommand(b,null,z):c.clickCommand(b,null)}c=!1;for(z=0;z<E.length;z++)if((0,E[z])(N,b,y)){c=!0;break}!c&&man(b)&&(R.ajaxPromise=r1A(q,N,b,y,J,F));return R};
t4u=function(q){var N;return(q=(N=q.data)==null?void 0:N.navigationEndpoint)&&!!q.clickTrackingParams};
$aA=function(q){var N=_.v(q,_.EY);if(N&&(N=N.signal)&&V4e.indexOf(N)>=0)return!0;for(var b in q)if(j8D.indexOf(b)>=0)return!0;return!1};
man=function(q){var N;if(((N=_.v(q,_.EY))==null?void 0:N.signal)==="CLIENT_SIGNAL")return!1;for(var b in q)if(xaZ.indexOf(b)>=0)return!1;q=Object.keys(q);return q.length===1&&q[0]==="loggingUrls"?!1:!0};
KEd=function(q,N,b,y,J,E,F){var R=_.f6.instance;if(R&&_.C6(R,y))var c=_.IE(R,y,J).then(function(m){return(m==null?0:m.data)?m:{data:m}});
else c=q.requestDataForServiceEndpoint(y,J),_.v(y,vmZ)||_.v(y,G3J)||_.v(y,_.YWJ)||_.v(y,Q8n)||_.M6(new _.IO("No RequestBuilder for endpoint",y));var z=_.T4();z.promise.thenCatch(function(){var m=_.LI(y,"action")||_.LI(y,"command")||_.LI(y,"endpoint");m&&(m=y[m],m.hasOwnProperty("onFailureAction")?_.Nc(N,[m.onFailureAction],b):m.hasOwnProperty("onFailureCommand")&&_.Nc(N,m.onFailureCommand,b));c.cancel("Resolver promise rejected")});
c.then(function(m){if(m){var r=m.error;if(r){if(E&&E.onServerError)E.onServerError(y,m);z.reject(new _.IO("Response error",y,r))}else if(m=m.data)if(r=m.error){if(E&&E.onServerError)E.onServerError(y,m);z.reject(new _.IO("Returned error",y,r))}else{OZh(N,b,m,y);wnD(m);if(r=FIR(m))for(var X=_.Z(r),V=X.next();!V.done;V=X.next()){V=V.value;var G=_.tz().resolve(_.$f(iZn))||l8C;if(!_.f6.instance||!G.some(function(D){return!!_.v(y,D)})||_.x("kevlar_response_processor_allowlist_killswitch")){var w=G=void 0;
((w=_.v((G=V)==null?void 0:G.commandMetadata,_.gg))==null?0:w.sendPost)?_.qc(N,[V]):_.Nc(N,[V],b)}}(X=_.v(m==null?void 0:m.frameworkUpdates,sl))&&F&&F(X);if(E&&E.onSuccess)E.onSuccess(y,m);z.resolve(new _.n6(m,r))}}else z.reject(new _.IO("Invalid service endpoint provided",y))},function(m){z.reject(m)});
return z.promise};
wnD=function(q){var N;(q=(N=_.v(q==null?void 0:q.onResponseReceivedCommand,_.DaA))==null?void 0:N.continuationItems)&&(q==null?void 0:q.length)===1&&_.v(q[0],h1n)&&_.Q6("so_r",void 0,"search_overview_answer")};
r1A=function(q,N,b,y,J,E){var F;return(F=N.getNetworkManager&&N.getNetworkManager()?N.getNetworkManager():_.tz().resolve(_.$f(_.$8)))?KEd(F,q,N,b,y,J,E):_.ra("No network manager.")};
OZh=function(q,N,b,y){if(b=b.trackingParams||b.loggingDirectives&&b.loggingDirectives.trackingParams){var J;(_.v(y,_.aE)||_.v(y,k3A)||_.v(y,Uad))&&y.clickTrackingParams?J=_.zT(y.clickTrackingParams):_.x("web_graft_to_parent_command")&&y.clickTrackingParams&&(J=_.zT(y.clickTrackingParams));var E;y=(E=N.getScreenLayer)==null?void 0:E.call(N);N=_.FR().graftServerVe(b,J,y);_.Hy(q,"yt-store-grafted-ve-action",[N])}};
_.f8J=function(q){var N=new Image;return new _.wL(function(b,y){N.addEventListener("load",function(){b()});
N.addEventListener("error",function(){y()});
N.src=q})};
CHd=function(q){return!!q};
I8h=function(q){return!!q};
T4D=function(q,N,b){var y=q.rowIndex;y!==void 0&&_.Hy(q.hostElement,"yt-section-reactive-dismissal",[y,N,b])};
_.Su=function(q,N,b){q=_.Z(q);for(var y=q.next();!y.done;y=q.next()){y=y.value;if(y===N)break;for(var J=_.Z(b),E=J.next();!E.done;E=J.next())if(E=E.value,y.tagName===E||!_.x("web_event_button_role_check_killswitch")&&y.role==="button"&&E==="BUTTON")return!0}return!1};
_.Wk=function(q,N,b){q=_.Z(q);for(var y=q.next();!y.done;y=q.next()){y=y.value;if(y===N)break;for(var J=_.Z(b),E=J.next();!E.done;E=J.next())if(y.id===E.value)return!0}return!1};
_.Pk=function(){var q=_.tz().resolve(_.$f(_.L6));return q?(q=q.getCurrentPage())?_.p6(q):null:null};
_.MO=function(){var q=_.Pk();if(!q){var N=_.tz().resolve(_.$f(_.L6)),b=N?typeof N:"no page manager";N=N?N.getCurrentPage():null;b=new _.IO("Player is missing when requested.",b,N?N.tagName:"no page");_.po(b)}return q};
_.p6=function(q){return q&&q.getPlayer?q.getPlayer():null};
s8A=function(q,N){q={args:{raw_player_response:q}};N&&(q.args=Object.assign({},q.args,N));return q};
nmd=function(q){if(q.args){if(q.args.raw_player_response)return q.args.raw_player_response;if(q.args.player_response)return JSON.parse(q.args.player_response)}};
_.a8D=function(q,N){var b={url:"/watch?v="+q.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};q.playlistId&&(b.url+="&list="+q.playlistId);q.playerParams&&(b.url+="&pp="+q.playerParams);q={watchEndpoint:q,commandMetadata:{webCommandMetadata:b}};N&&(q.clickTrackingParams=N);return q};
WEe=function(){return SWd||!!_.Ng("yt.player.Application")};
pnn=function(){return LEA||!!document.querySelector("link#player-css")};
M4d=function(){function q(){SWd=!0;PHh.resolve()}
var N,b;return _.d(function(y){PHh||(PHh=new _.yk,WEe()?q():(N=document.createElement("script"),N.addEventListener("load",q),b=_.sN(_.M7("PLAYER_JS_URL")),_.R9(N,b),document.head.appendChild(N)));return y.return(PHh.promise)})};
A1R=function(){function q(){LEA=!0;omu.resolve()}
if(!omu)if(omu=new _.yk,pnn())q();else{var N=document.createElement("link");N.id="player-css";N.addEventListener("load",q);var b=_.sN(_.M7("PLAYER_CSS_URL"));_.u$(N,b,"stylesheet");document.head.appendChild(N)}return omu.promise};
e1J=function(){return WEe()&&pnn()?Promise.resolve([]):Promise.all([M4d(),A1R()])};
B4n=function(q,N,b){var y={args:{}};q&&(y.args.raw_player_response=q);N&&(y.args.raw_watch_next_response=N);b&&(y.args=Object.assign({},y.args,b));return y};
bhR=function(q,N,b){var y=!1;y=y===void 0?!0:y;q=typeof q==="string"?_.oE(document,q):q;var J=HZd+"_"+_.en(q),E=qgJ[J];if(E&&y)return Nrd(N,b)?E.api.loadVideoByPlayerVars(N.args||null):E.loadNewVideoConfig(N),E.api;E=new AE(q,J,N,b,void 0);qgJ[J]=E;E.addOnDisposeCallback(function(){delete qgJ[E.getId()]});
return E.api};
Nrd=function(q,N){return N&&N.serializedExperimentFlags?N.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):q&&q.args&&q.args.fflags?q.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
yMd=function(){var q=new _.yk;q.resolved=!1;var N=q.resolve;q.resolve=function(b){q.resolved=!0;N(b)};
return q};
EdZ=function(q){var N={};JMD().install((N.document_disposed={callback:q},N))};
eu=function(q,N){if(!q&&Math.random()<=_.VX("kevlar_unified_player_logging_threshold")){q=Error("uh`"+(N?N:"Unspecified error"));if(_.x("kevlar_unified_player_throw_errors"))throw q;_.M6(q)}};
_.gdC=function(){var q=_.Ng("ytDebugData.callbacks");q||(q={},_.zn("ytDebugData.callbacks",q));return q};
FDz=function(q,N){var b=_.gdC();if(_.x("web_dd_iu")||ZhC.includes(q))b[q]=N};
RKJ=function(){return _.d(function(q){return q.return({isLeader:_.pQh(_.WT().getState()),c:_.M7("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.M7("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
dFh=function(){var q;_.d(function(N){if(N.nextAddress==1)return FDz("APP_STATE",RKJ),N.yield(_.tz().resolve(_.Bk),2);q=N.yieldResult;FDz("PI",function(){return _.d(function(b){return b.return(q.getVideoStats())})});
_.hj(N)})};
cMR=function(q){return!!q&&q.length>0&&q[0].loggingUrls!=null&&q[0].loggingUrls.length>0};
ubZ=function(){var q=_.M7("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(q==null?void 0:q.length)===2?q[1]:null};
zKz=function(q){if(!q)return[];var N=[];q=_.Z(q);for(var b=q.next();!b.done;b=q.next())if(b=b.value,b.loggingUrls){b=_.Z(b.loggingUrls);for(var y=b.next();!y.done;y=b.next())y=y.value,y.baseUrl&&N.push(y.baseUrl)}return N};
$FD=function(q){var N=_.Wy(_.fx(_.JZ.location.href));q=_.Wy(_.fx(q));return _.x("kevlar_clear_non_displayable_url_params")?N==Hk(q):Hk(N)==Hk(q)};
Hk=function(q){var N=_.t8d(q);q=q.slice(0);var b=["frags"];_.x("kevlar_hide_pp_url_param")&&b.push("pp");_.x("kevlar_hide_time_continue_url_param")&&b.push("time_continue");b=_.Z(b);for(var y=b.next();!y.done;y=b.next())y=y.value,q=_.px(_.Wy(q),y);return _.Wy(q)+(N?"#"+N:"")};
qE=function(q,N){N=Number(N)*1E3;var b=Math.round((0,_.mA)()),y=b.toString();q={innertubeResponse:q,serverDateTimestampMs:y,lastModifiedTimestampMs:y,expireTimestampMs:(b+N).toString()};if(N=_.M7("INNERTUBE_CONTEXT_CLIENT_NAME"))q.clientName=N;return q};
rMR=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++mFA};
XSd=function(q){return!isNaN(q)&&q>0};
j7h=function(){_.x("web_adaptive_repeat_ase")&&V8d&&_.W_("applicationStarted",V8d)};
_.xFn=function(){var q=_.QY(),N=_.Oe();N&&q&&_.sY(N,[q],!0)};
GZn=function(q){return q&&vdz.some(function(N){return q.includes(N)})};
lSZ=function(q){var N=_.v(q,_.b_);if(!N)return!1;var b=N.url,y=N.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!b)return _.po(Error("zh")),!1;if(N.target==="TARGET_NEW_WINDOW"){N={};_.x("resolve_url_parent_tracking_params")&&(!_.dO(b)||c4(window.location.href,b))&&(N={endpoint:q,itct:q.clickTrackingParams});BKJ(N);q=null;try{if(y){a:{var J=b,E=N;y=y===void 0?!1:y;E&&_.Lx(J,E);var F=_.pc(J),R=_.sh(F);J!=R&&_.bv(Error("Yf`"+J));J=R;try{if(y){R=J;R=L_e(R);iI(R);q=_.yz(window,R,"_blank",
"attributionsrc");break a}}catch(X){_.HC(X)}iI(J);q=_.yz(window,F,"_blank")}Ygh(_.tz().resolve(Q7D),q,b);return!0}}catch(X){_.po(X)}_.Lx(b,N);N={target:"_blank",noopener:!1};F=window;R=Te(b)?b:_.pc(typeof b.href!="undefined"?b.href:String(b));y=self.crossOriginIsolated!==void 0;q="strict-origin-when-cross-origin";window.Request&&(q=(new Request("/")).referrerPolicy);J=N.noreferrer;if(y&&J&&q==="unsafe-url")throw Error("ve");q=J&&!y;J=N.target||b.target;E=[];var c=[],z=!1;for(r in N){var m=N[r];switch(r){case "width":case "height":case "top":case "left":E.push(r+
"="+m);break;case "target":break;case "noopener":case "noreferrer":m?c.push(r):(z=!0,c.push(r+"=false"));break;case "attributionsrc":E.push(r+(m?"="+m:""));break;default:E.push(r+"="+(m?1:0))}}var r=J!==void 0&&!["_blank","_self","_top","_parent",""].includes(J);r=OJ()&&r;OhA&&y&&E.length===0&&c.length>0&&!r&&!z?(c.length===2&&(c=["noreferrer"]),_.yz(F,R,J,c[0]),q=wSn()):(r=E.join(","),_.hZ()&&F.navigator&&F.navigator.standalone&&J&&J!="_self"?(r=_.iC("A"),AB(r,R),r.target=J,q&&(r.rel="noreferrer"),
((N=N.attributionsrc)||N==="")&&r.setAttribute("attributionsrc",N),N=document.createEvent("MouseEvent"),N.initMouseEvent("click",!0,!0,F,1),r.dispatchEvent(N),r=wSn()):q?(r=_.yz(F,"",J,r),F=_.sh(R),r&&(r.opener=null,F===""&&(F="javascript:''"),F='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+NE(F)+'">',F=BZ(F),(N=r.document)&&N.write&&(N.write(qn(F)),N.close()))):((r=_.yz(F,R,J,r))&&N.noopener&&(r.opener=null),r&&N.noreferrer&&(r.opener=null)),q=r);Ygh(_.tz().resolve(Q7D),
q,b);return!0}r=_.wO(b);r=GZn(r)||b==="https://studio.youtube.com/";if(_.dO(b)&&!c4(window.location.href,b)||r)iI(b),xo(),_.lI(b,void 0,void 0,window.top,ihJ);else return _.M6(new _.IO("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",q)),!1;return!0};
_.hKA=function(q,N){N=N===void 0?0:N;if(!(_.v(q,KDR)||_.v(q,DFn)||_.v(q,_.b_)&&_.v(q,_.b_).url))return!1;var b,y=(b=_.v(q,_.b_))==null?void 0:b.url;b=y?{externalLinkData:{url:y}}:null;return _.FR().clickCommand(q,b,N)};
UFd=function(q,N,b,y,J){J=J===void 0?{}:J;return function(E){var F,R;var c=((F=q.loggingDirectives)==null?0:(R=F.clientVeSpec)==null?0:R.uiType)?_.bx(q.loggingDirectives.clientVeSpec.uiType):void 0;J.clickedVisualElement||(J.clickedVisualElement=c);c=kZh(q,N);b(c,E);c=_.Z(c);for(F=c.next();!F.done;F=c.next()){F=F.value;R=y;var z=E,m=J;m.form?m.form.event=z:m.form={element:R,event:z};ck(F,m)}}};
kZh=function(q,N){var b=[];N?(q.toggledCommand&&b.push(q.toggledCommand),q.toggledServiceEndpoint&&b.push(q.toggledServiceEndpoint)):(q.defaultCommand&&b.push(q.defaultCommand),q.defaultServiceEndpoint&&b.push(q.defaultServiceEndpoint),q.defaultNavigationEndpoint&&b.push(q.defaultNavigationEndpoint));return b};
fSR=function(q,N){var b=q.toggledStyle||q.style,y;switch((y=N?b:q.style)==null?void 0:y.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"}}};
_.yR=function(){return _.d(function(q){return q.nextAddress==1?q.yield(_.tz().resolve(_.Bk),2):q.return(_.tz().resolve(Can)())})};
_.JO=function(){return _.tz().resolve(Can)()};
_.gj=function(){return{lottieEl:void 0}};
ISD=function(q,N){return q.startsWith(N.uniqueId)};
TrJ=function(q){var N,b;_.d(function(y){if(y.nextAddress==1)return y.yield(_.yR(),2);N=y.yieldResult;if((b=N)==null||!b.addEventListener)return Z7(),y.return();N.addEventListener("onCueRangeEnter",q);_.hj(y)})};
s7A=function(q){var N,b;_.d(function(y){if(y.nextAddress==1)return y.yield(_.yR(),2);N=y.yieldResult;if((b=N)==null||!b.removeEventListener)return Z7(),y.return();N.removeEventListener("onCueRangeEnter",q);_.hj(y)})};
ndu=function(q){var N,b,y,J,E;_.d(function(F){if(F.nextAddress==1)return F.yield(_.yR(),2);N=F.yieldResult;if((b=N)==null||!b.addCueRange)return Z7(),F.return();y=_.Z(q.timings);for(J=y.next();!J.done;J=y.next())E=J.value,N.addCueRange(q.uniqueId+"-"+E,E/1E3,(E+100)/1E3);_.hj(F)})};
aSu=function(q){var N,b,y,J,E;_.d(function(F){if(F.nextAddress==1)return F.yield(_.yR(),2);N=F.yieldResult;if((b=N)==null||!b.removeCueRange)return Z7(),F.return();y=_.Z(q.timings);for(J=y.next();!J.done;J=y.next())E=J.value,N.removeCueRange(q.uniqueId+"-"+E);_.hj(F)})};
SgD=function(){var q,N,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(_.yR(),2);q=y.yieldResult;if((N=q)==null||!N.getPlayerState)return Z7(),y.return();b=q.getPlayerState();return y.return(b===2)})};
Z7=function(){_.M6(new _.IO("Smartimation player does not exist or is corrupted"))};
WDJ=function(){try{var q;return(q=window.CSS)!=null&&q.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(N){return _.M6(new _.IO("Smartimation CSS.supports threw an error")),!1}};
eKu=function(q,N,b,y,J){var E=q.playlistId?LDA:pSd;N=N();b=b();J=!!q.videoId&&J()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.zC(N))return Pan({data:q,actionType:E,disabled:J},b);if(q.videoId&&y())return M8J({data:q,actionType:E,disabled:J});switch(N){case "TRANSFER_STATE_UNKNOWN":return M8J({data:q,actionType:E,disabled:J});case "TRANSFER_STATE_FAILED":return q.videoId?odA({data:q,actionType:E,disabled:J}):AMn({data:q,actionType:E,disabled:J});case "TRANSFER_STATE_COMPLETE":return AMn({data:q,
actionType:E,disabled:J});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return Pan({data:q,actionType:E,disabled:J},b);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return q.videoId?odA({data:q,actionType:E,disabled:J}):M8J({data:q,actionType:E,disabled:J});default:return M8J({data:q,actionType:E,disabled:J})}};
Brd=function(q,N){var b=q.onTapCommand,y=_.O_(b);if(q.videoId&&_.v(y,_.F3))return _.v(y,_.F3).action=N,b;q.playlistId&&_.v(y,_.RD)&&(_.v(y,_.RD).action=N);return b};
M8J=function(q){var N=q.data;var b=q.actionType;q=q.disabled;return{text:HhJ,iconType:"OFFLINE_DOWNLOAD",onTap:Brd(N,b.ACTION_ADD),disabled:q}};
Pan=function(q,N){var b=q.data;var y=q.actionType;q=q.disabled;var J="OFFLINE_DOWNLOAD";N>=0&&N<=.1?J="OFFLINE_DOWNLOADING_ZERO":N>.1&&N<=.3?J="OFFLINE_DOWNLOADING_TWENTY":N>.3&&N<=.5?J="OFFLINE_DOWNLOADING_FORTY":N>.5&&N<=.7?J="OFFLINE_DOWNLOADING_SIXTY":N>.7&&N<1?J="OFFLINE_DOWNLOADING_EIGHTY":N===1&&(J="OFFLINE_PIN");return{text:qcn,iconType:J,onTap:Brd(b,y.ACTION_REMOVE_WITH_PROMPT),disabled:q}};
AMn=function(q){var N=q.data;var b=q.actionType;q=q.disabled;return{text:NNJ,iconType:"OFFLINE_PIN",onTap:Brd(N,b.ACTION_REMOVE_WITH_PROMPT),disabled:q}};
odA=function(q){var N=q.data;var b=q.actionType;q=q.disabled;return{text:byA,iconType:"OFFLINE_DOWNLOAD",onTap:Brd(N,b.ACTION_RETRY),disabled:q}};
_.dj=function(q,N){var b=BFC();return _.K3(function(){b();return NWd(q,[_.p3(N)||""])},{debugName:"LUZslf"},"Z105t")};
yQR=function(q){var N=_.dj(_.ig,function(){return q().videoId}),b=_.dj(_.lg,function(){return q().playlistId});
return function(){return q().videoId?N:q().playlistId?b:_.Z(_.QS("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
JQR=function(q){var N=_.dj(KD,function(){return q().videoId}),b=_.dj(_.LuR,function(){return q().playlistId});
return function(){return q().videoId?N:q().playlistId?b:_.Z(_.QS(0,void 0,"K4tgOc")).next().value}};
EMu=function(q){var N=_.dj(_.q6n,function(){return q().videoId});
return function(){return q().videoId?N:_.Z(_.QS(!1,void 0,"Oaxwcf")).next().value}};
gMn=function(q){var N=_.dj(M9z,function(){return q().videoId});
return function(){return q().videoId?N:_.Z(_.QS("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
Zyd=function(){return{}};
_.uGz=function(q,N,b){return{submitForm:function(){var y,J,E,F;return _.d(function(R){if(R.nextAddress==1){y=Fhe(q());if(!y)return R.return();if(y.onSubmit)return RCn(N),y.onSubmit(),RCn(b),R.return();if(!y.submitConfig||!y.formData)return R.jumpTo(0);y.disableDuringSubmission&&d3h(q(),!0);RCn(N);return R.yield(cQd(y.submitConfig,y.formData()),3)}J=R.yieldResult;RCn(b);if(((E=J)==null?0:E.submitResult)&&((F=y)==null?0:F.onSubmitResult))y.onSubmitResult(J.submitResult);y.disableDuringSubmission&&d3h(q(),
!1);return R.return()})},
isValid:function(){var y=Fhe(q());if(y){var J;return!((J=y.isValid)==null||!J.call(y))}return!0},
isSubmitting:function(){var y,J;return!!((y=Fhe(q()))==null?0:(J=y.isSubmitting)==null?0:J.call(y))}}};
_.cG=function(){if(!zCJ){var q=_.Z(_.QS(new Map,void 0,"Y1XnBc"));zCJ=q.next().value;$3n=q.next().value}return zCJ};
_.tSD=function(q){$3n(new Map(q))};
Fhe=function(q){if(q)return _.cG()().get(q)};
cQd=function(q,N){var b;return _.d(function(y){return y.nextAddress==1?N?(b=_.tz().resolve(_.$f(m3J)))&&q.submitId?y.yield(b.submitForm(q.submitId,N,rQn,q.params,q.clickTrackingParams),2):y.return(Promise.reject(Error("Bh"))):y.return(Promise.reject(Error("Ah"))):y.return(y.yieldResult)})};
d3h=function(q,N){if(q){var b=_.cG();b().set(q,Object.assign({},b().get(q),{isSubmitting:function(){return N}}));
_.tSD(b())}};
RCn=function(q){if(q){var N=_.tz().resolve(_.rO);N&&(q=_.O_(q()))&&N.resolveCommand(q)}};
j4A=function(q,N){N=N===void 0?{shouldPersist:!0}:N;return{useUpdatableData:function(b,y){var J=_.K3(function(){return q(b())},void 0,"Gmrblb"),E=XqD(b,J,y,N);
_.Sx(function(){if(J()!=null){VSd.set(J(),E);var F=J();_.W1(function(){VSd.delete(F)})}},"j4hx9b");
return E},
getData:function(b){var y;return(y=VSd.get(q(b)))==null?void 0:y[0]()},
updateData:function(b,y){b=q(b);b=VSd.get(b);if(!b)return!1;var J=_.Z(b);b=J.next().value;J=J.next().value;y=y(b());J(y);return!0}}};
XqD=function(q,N,b,y){y=y===void 0?{}:y;var J=_.Z(_.gJ(function(){var R=q(),c=N();return x3z(R,c,b,y)})),E=J.next().value,F=J.next().value;
return[E,function(R){F(R);var c=N();if(y.shouldPersist&&c!=null){var z,m=(z=b==null?void 0:b.map(function(r){return r()}))!=null?z:[];
_.ux.set(c,[R,m])}}]};
x3z=function(q,N,b,y){y=y===void 0?{}:y;if(N==null||!y.shouldPersist)return q;y=_.ux.get(N);if(!y)return q;var J=_.Z(y);y=J.next().value;var E=J.next().value,F;J=(F=b==null?void 0:b.map(function(R){return R()}))!=null?F:[];
if((E==null?0:E.length)&&(b==null?0:b.length)&&J.some(function(R,c){return R!==E[c]}))return _.ux.remove(N),q;
(b==null?0:b.length)&&_.ux.set(N,[y,J]);return y};
vMd=function(q){var N=_.Z(_.QS(!0,void 0,"bKtO6d")),b=N.next().value;N.next();return function(){var y=KI(q.children());return _.u(_.t,{cond:b,then:function(){return y},
else:q.fallback})}()};
_.zS=function(q){var N=GYR(q),b=N.data,y=N.mapping,J=N.wrapper;N=N.pendingFallback;var E=function(){return YcR(_.p3(b))},F=function(){var R=E(),c=[];
R=_.Z(R);for(var z=R.next();!z.done;z=R.next()){var m=void 0;z=z.value;var r=void 0;for(m in z)if(!(!z).hasOwnProperty(m)){r=m;break}(m=r)&&c.push(m)}return c};
return q.data?_.u(vMd,{fallback:N},function(){return _.u(_.Tf,{each:F},function(R,c){var z=J?function(r){return J(function(){return y[R](r,c)},m,c)}:function(r){return y[R](r,c)};
z.debugName||(z.debugName=String(R));if(!y[String(R)])return document.createComment("");z.componentType!==kL&&Q4A(String(R));var m=OyA(E,R,c);return _.u(z,{data:m})})}):_.u(_.rV,null)};
GYR=function(q){var N=q.targetId||wqn(q.children);if(!q.data||!N)return Object.assign({},q,{mapping:q.children});var b="stamper-"+iye++,y=function(){var R;return(R=typeof q.targetId==="function"?q.targetId(b):q.targetId)!=null?R:b};
N=_.Z(lFh(function(){var R=YcR(q.data());R.targetId=y;return R})).next().value;
var J=Object.assign({},(_.tz().resolve(_.$f(KhD))||{}).replaceableMapping,q.children);if(q.replacementWrapper){var E=J.notificationTextRenderer,F=J.notificationMultiActionRenderer;E&&(J.notificationTextRenderer=function(R,c){return q.replacementWrapper(E({data:R.data},c))});
F&&(J.notificationMultiActionRenderer=function(R,c){return q.replacementWrapper(F({data:R.data},c))})}return Object.assign({},q,{data:N,
mapping:J,wrapper:function(R,c,z){return EjA({targetId:y,stamperIndex:z},q.wrapper?function(){return q.wrapper(R,c,z)}:R)}})};
OyA=function(q,N,b){var y;return _.K3(function(){var J=q()[b()];if(J)y=J[N];else return _.M6(new _.IO("Stamper failed to find "+String(N)+" at index "+b()+" of data array of length "+(q().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),y;return J[N]},void 0,"AtsHlc")};
wqn=function(q){q=_.Z(Object.keys(q));for(var N=q.next();!N.done;N=q.next())if(N=N.value,D3R.includes(N)||hCn.includes(N)||kYh.includes(N))return!0;return!1};
YcR=function(q){return q?Array.isArray(q)&&q instanceof Array?q:[q]:[]};
Q4A=function(q){if(_.x("web_enable_renderer_logger")){var N;(N=_.tz().resolve(_.$f(U3C)))!=null&&N.loggingEnabled&&!N.ids.has(q)&&N.ids.add(q)}};
fFe=function(){var q,N;return(N=(q=_.tz().resolve(_.$f(_.ft)))==null?void 0:q())!=null?N:!1};
IFJ=function(q,N){q=q===void 0?CbC:q;switch(N.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},q,{isOpen:N.payload});default:return q}};
s4C=function(q,N){q=q===void 0?TNJ:q;switch(N.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},q,{isAllowed:N.payload});default:return q}};
aFz=function(q,N){q=q===void 0?nMJ:q;switch(N.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},q,{errorMessage:N.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},q,{title:N.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},q,{privacy:N.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},q,{isDisabled:N.payload});default:return q}};
WhA=function(q,N){q=q===void 0?ScC:q;switch(N.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},q,{isOpen:N.payload});default:return q}};
pqC=function(q,N){q=q===void 0?LhC:q;switch(N.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},q,{isFullscreen:N.payload});case "SET_NAVIGATION_BUTTON":var b=N.payload.targetId,y=Object.assign({},q.navigationButtons);y[b]=N.payload.button;return Object.assign({},q,{navigationButtons:y});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},q,{topPanelId:N.payload});case "SET_SECONDARY_HEADER":return b=N.payload.panelId,y=Object.assign({},q.secondaryHeader),y[b]=N.payload.secondaryHeader,
Object.assign({},q,{secondaryHeader:y});default:return q}};
AQZ=function(){return kH(Object.assign({},{voiceSearch:VmC,engagementPanel:pqC,bottomSheet:IFJ,cinematicSetting:s4C,shorts:wXu,drawerLayout:WhA,createPlaylist:aFz,locationCollection:Pbn,reportChannel:MSu,reportForm:oMd},iEJ))};
eCn=function(q,N){_.pY.addLowPriorityJob(function(){var b,y,J;return _.d(function(E){switch(E.nextAddress){case 1:return _.Yi(E,2),E.yield(Dud(),4);case 4:return E.yield(fetch(q),5);case 5:return b=E.yieldResult,E.yield(b.json(),6);case 6:y=E.yieldResult;rJ.set(q,y);requestAnimationFrame(function(){N(y)});
_.Ea(E,0);break;case 2:J=_.K7(E),_.M6(J),_.hj(E)}})})};
BNz=function(q){var N={animationConfig:{},listeners:{}},b=function(){q(!0)};
N.listeners.data_failed=b;N.listeners.error=b;N.listeners.data_ready=function(){q(!1)};
return N};
NYD=function(q){var N=q.model;var b=q.subscribed;var y=q.isOverlay;var J=q.element;var E=q.commandController;var F=q.notificationState;if(b){var R,c;var z=(N==null?void 0:(R=N.buttonStyle)==null?void 0:R.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:N==null?void 0:(c=N.unsubscribeButtonContent)==null?void 0:c.buttonText}else{var m;z=N==null?void 0:(m=N.subscribeButtonContent)==null?void 0:m.buttonText}a:{var r;switch(N==null?void 0:(r=N.buttonStyle)==
null?void 0:r.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":R="S";break a;default:R="M"}}a:if(y)y="overlay";else switch(N.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":y="overlay";break a;default:y="mono"}a:if(b)var X="tonal";else switch((X=N.buttonStyle)==null?void 0:X.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":X=
"tonal";break a;default:X="filled"}return{style:y,type:X,state:N.disableSubscribeButton?"disabled":"active",size:R,focused:q.focused,toggled:b,accessibilityLabel:Hyn(N,b,F),buttonText:z,iconPosition:N.disableNotificationBell?"none":"leading-trailing",onTap:q0z(N,b,J,E),disableTextEllipsis:!!q.disableTextEllipsis}};
q0z=function(q,N,b,y){return function(J){if(N){var E;var F=q.disableNotificationBell?_.O_(q==null?void 0:(E=q.unsubscribeButtonContent)==null?void 0:E.onTapCommand):_.O_(q==null?void 0:q.onShowSubscriptionOptions)}else{var R;F=_.O_(q==null?void 0:(R=q.subscribeButtonContent)==null?void 0:R.onTapCommand)}F&&ck(F,{form:{element:b==null?void 0:b.value},commandController:y});J.stopPropagation()}};
Hyn=function(q,N,b){if(N){if(q==null?0:q.disableNotificationBell){var y;return q==null?void 0:(y=q.unsubscribeButtonContent)==null?void 0:y.accessibilityText}switch(b){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var J;return q==null?void 0:(J=q.bellAccessibilityData)==null?void 0:J.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var E;return q==null?void 0:(E=q.bellAccessibilityData)==null?void 0:E.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var F;return q==null?void 0:(F=
q.bellAccessibilityData)==null?void 0:F.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var R;return q==null?void 0:(R=q.bellAccessibilityData)==null?void 0:R.disabledLabel;default:var c;return q==null?void 0:(c=q.unsubscribeButtonContent)==null?void 0:c.accessibilityText}}else{var z;return q==null?void 0:(z=q.subscribeButtonContent)==null?void 0:z.accessibilityText}};
bBn=function(q,N){return _.Ji(q.entities,"subscriptionStateEntity",N)};
yRR=function(q,N){return _.Ji(q.entities,"subscriptionNotificationStateEntity",N)};
JRR=function(q,N){return _.Ji(q.entities,"upcomingEventReminderStateEntity",N)};
EXd=function(q,N){return _.Ji(q.entities,"commentEntityPayload",N)};
gXn=function(q,N){return _.Ji(q.entities,"engagementToolbarSurfaceEntityPayload",N)};
ZBh=function(q,N){return _.Ji(q.entities,"triStateButtonStateEntityPayload",N)};
FFe=function(q,N){return _.Ji(q.entities,"commerceCartCheckoutButtonEntity",N)};
R4e=function(q,N){return _.Ji(q.entities,"commandEntity",N)};
dSC=function(q){if(q){switch(q){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":q="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":q="NOTIFICATIONS_OFF";break;default:q="NOTIFICATIONS_NONE"}return q}};
cRz=function(q,N,b){b.subscribed!==N&&((b=b.key)&&_.nk(_.$e("subscriptionStateEntity",b,{key:b,subscribed:N})),q.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:N})),N||_.By(q,"yt-unsubscribe-action"))};
z4J=function(q){q=_.v(_.O_(q),_.tO);var N,b,y,J;return(J=_.v(q==null?void 0:(N=q.panelLoadingStrategy)==null?void 0:(b=N.inlineContent)==null?void 0:(y=b.sheetViewModel)==null?void 0:y.content,uId))==null?void 0:J.listItems};
$SJ=function(q,N){if(q.onShowSubscriptionOptions&&N&&(q=z4J(q.onShowSubscriptionOptions),q!=null&&q.length)){var b=dSC(N);q.forEach(function(y){y=_.v(y,_.mI);var J,E,F,R,c=y==null?void 0:(J=y.leadingImage)==null?void 0:(E=J.sources)==null?void 0:(F=E[0])==null?void 0:(R=F.clientResource)==null?void 0:R.imageName;y&&c&&(y.isSelected=c===b)})}};
tbA=function(q,N,b,y){N&&b?q.style.width=b+"px":!N&&y&&(q.style.width=y+"px")};
mSe=function(q,N,b){var y;(y=q.lottieEl)==null||y.goToAndPlay(0);var J;(J=N.lottieEl)==null||J.goToAndPlay(0);_.rj(_.pY,function(){var E;(E=b.lottieEl)==null||E.goToAndPlay(0)},300)};
rRZ=function(q){return!(q==null||!q.iconName||(q==null?0:q.title))};
XrJ=function(q,N,b,y){b&&_.pY.cancelJob(b);b=_.pY.addLowPriorityJob(function(){y(void 0)},5E3);
y(b);N&&q!==(N.likeStatus==="LIKE")&&N.key&&_.nk(_.$e("likeStatusEntity",N.key,{key:N.key,likeStatus:q?"LIKE":"INDIFFERENT",hadUserInteraction:q}))};
_.Vbd=function(q,N){return _.Ji(q.entities,"accountLinkStatusEntity",N)};
jsA=function(q,N){return _.Ji(q.entities,"hatsSurveyEntity",N)};
xSn=function(q,N){return _.Ji(q.entities,"hatsSurveyStateEntity",N)};
vXh=function(q,N){return _.Ji(q.entities,"quantityIncrementerEntity",N)};
GGn=function(q){switch(q){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}};
Y0n=function(q){switch(q){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}};
Qsd=function(q){switch(q){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"}};
_.wrd=function(q){var N=_.VX("web_generic_client_event_wait_period ",0);N||(N=3E5);var b=OBu.get(q);!_.x("enable_web_client_experiment_event_timeout_killswitch")&&b&&(0,_.mA)()-b<N||(OBu.set(q,(0,_.mA)()),_.W_("genericClientExperimentEvent",{eventType:q}))};
_.iBd=function(q,N){var b,y,J,E;a:{var F=q.style;if(F===void 0)F=17;else switch(F){case "LIVE":F=18;break a;default:F=17}}return{type:F,text:N?Ewz({seconds:N}):_.ao(q.text),accessibilityText:(b=q.text)==null?void 0:(y=b.accessibility)==null?void 0:(J=y.accessibilityData)==null?void 0:J.label,icon:(E=q.icon)==null?void 0:E.iconType}};
l9e=function(q){switch(q){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
KFA=function(q){if(!q)return"";var N,b=(N=_.tz().resolve(_.$f(_.ft)))==null?void 0:N(),y;if(!b&&((y=q.vibrantColorPalette)==null?0:y.iconInactiveColor))return Qk(q.vibrantColorPalette.iconInactiveColor,"1");var J;return b&&((J=q.darkColorPalette)==null?0:J.iconInactiveColor)?Qk(q.darkColorPalette.iconInactiveColor,"1"):q.color?Qk(q.color,"1"):q.sampledThumbnailColor?(q=q.sampledThumbnailColor,"rgba("+q.red+","+q.green+","+q.blue+");"):""};
_.X3=function(q,N){if(!q.includes("DATE_PLACEHOLDER"))return q;var b=new Date(0);b.setUTCSeconds(N);return q.replace("DATE_PLACEHOLDER",DSe(b))};
h4h=function(q,N,b){return function(y){var J=q.command;J&&(ck(J,{form:{element:b}}),N([J],y))}};
USd=function(q,N,b,y,J){return function(E){var F=kGd(q,N);F&&ck(F,{form:{element:b},commandController:y});J&&E.stopPropagation()}};
kGd=function(q,N){if(q.signInEndpoint&&!_.x("web_subscribe_sign_in_endpoint_killswitch"))return q.signInEndpoint;if(N){if(q.serviceEndpoints)return q.serviceEndpoints[1];if(q.onUnsubscribeEndpoints)return q.onUnsubscribeEndpoints[0]}else{if(q.serviceEndpoints)return q.serviceEndpoints[0];if(q.onSubscribeEndpoints)return q.onSubscribeEndpoints[0]}};
f9Z=function(q,N){var b,y,J,E;N=N&&((b=q.unsubscribeAccessibility)==null?void 0:(y=b.accessibilityData)==null?void 0:y.label)||((J=q.subscribeAccessibility)==null?void 0:(E=J.accessibilityData)==null?void 0:E.label);return q.longSubscriberCountText?[N,_.ao(q.longSubscriberCountText)].filter(function(F){return F}).join(" "):N};
VR=function(q,N){return N||(q==null?0:q.isChannelDelegate)?"disabled":"active"};
Ciz=function(q,N){var b;switch((b=q.style)==null?void 0:b.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:VR(q)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:VR(q)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:VR(q,!0)};case "OVERLAY":return N?{style:"overlay",type:"tonal",state:VR(q)}:{style:"overlay",type:"filled",state:VR(q)};default:return N?{style:"mono",type:"tonal",state:VR(q)}:{style:"mono",type:"filled",state:VR(q)}}};
_.jz=function(){for(var q=[],N=_.Z(_.MB.apply(0,arguments)),b=N.next();!b.done;b=N.next())if(b=b.value)if(typeof b==="string")q.push(b);else{b=_.Z(Object.entries(b));for(var y=b.next();!y.done;y=b.next()){var J=_.Z(y.value);y=J.next().value;(J=J.next().value)&&q.push(y)}}return q.join(" ")};
I9D=function(q){switch(q){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
TYZ=function(q){switch(q){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
ssJ=function(q,N){var b=q.map(function(y){return y.toString()});
return _.y0(function(y){if(b.includes(y.key)){N&&y.preventDefault();var J;(J=y.currentTarget)==null||J.click()}})};
_.nXJ=function(){return ssJ(["Enter"])};
_.a9A=function(){return ssJ(["Enter"," "],!0)};
_.xe=function(q){if(q.composedPath)return q.composedPath();if(!q.__composedPath){for(var N=[],b=q.target;b;)N.push(b),b=b.parentNode;N.push(window);q.__composedPath=N}return q.__composedPath};
_.vG=function(q,N,b){q=_.Z(q);for(var y=q.next();!y.done;y=q.next()){y=y.value;if(y===N)break;for(var J=_.Z(b),E=J.next();!E.done;E=J.next())if(E=E.value,y.tagName===E||y.role==="button"&&E==="BUTTON")return!0}return!1};
WFd=function(q,N){var b,y=(b=N.observer)!=null?b:_.tz().resolve(tD);if(q){b=S0J(q);var J=[];N.showOption&&J.push(y.observe(q,function(){N.visibilityCallback(!0,q)},N.showOption));
N.hideOption&&J.push(y.observe(q,function(){N.visibilityCallback(!1,q)},N.hideOption));
N.prescanOption&&N.prescanCallback&&J.push(y.observe(q,function(){N.prescanCallback()},N.prescanOption));
var E;b.visibilityMonitorKeys=((E=b.visibilityMonitorKeys)!=null?E:[]).concat(J)}};
S0J=function(q){var N;return(N=q.polymerController)!=null?N:q};
_.Ye=function(q){return!!_.GS(q)};
_.QR=function(q,N,b,y,J){return function(E){var F=JoR();_.Sx(function(){if(E){LFe(E,q(),J);var R=prn(E,q(),N,b,y,F);_.W1(R)}},"lrewVd")}};
LFe=function(q,N,b){var y=PiR(N),J=Mbn(N);N=y&&oXd;var E=J&&ARu;(y||J)&&WFd(q,{visibilityCallback:function(F){var R=_.tz().resolve(_.rO);F&&y?R.resolveCommand(y,{form:{element:b?q:void 0},disableClickTracking:!0}):!F&&J&&R.resolveCommand(J,{form:{element:b?q:void 0},disableClickTracking:!0})},
showOption:N,hideOption:E})};
prn=function(q,N,b,y,J,E){var F=new Map;if(N=_.GS(N)){var R;q=(y==null?void 0:(R=y.onTap)==null?void 0:R.value)||q;b=e4J(N,q,b==null?void 0:b.onTap,J,E);q.addEventListener("click",b);F.set("click",b)}return function(){for(var c=_.Z(F),z=c.next();!z.done;z=c.next()){var m=_.Z(z.value);z=m.next().value;m=m.next().value;q.removeEventListener(z,m)}}};
_.GS=function(q){var N;return(q=(N=_.v(q,_.O$))==null?void 0:N.onTap)&&_.O_(q)};
PiR=function(q){var N;return(q=(N=_.v(q,_.O$))==null?void 0:N.onVisible)&&_.O_(q)};
Mbn=function(q){var N;return(q=(N=_.v(q,_.O$))==null?void 0:N.onHidden)&&_.O_(q)};
e4J=function(q,N,b,y,J){var E=function(R){_.tz().resolve(_.rO).resolveCommand(q,R)},F=function(R){y&&_.vG(_.xe(R),N,y)||E(R.target?{form:{element:R.target,
sourceData:q,mutationContext:J}}:void 0)};
b&&(F=function(R){b(R,E)});
return F};
BYe=function(q){switch(q){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}};
HBJ=function(q){var N=q.numAvatarsInCluster;switch(q.clusterSize){case "small":return N===2?22:18;case "40":return N===2?24:22;default:return N===2?24:20}};
qTd=function(q,N){return function(b){var y=Object.keys(N);_.Sx(function(){if(q!=null&&q()){for(var J=_.Z(y),E=J.next();!E.done;E=J.next())E=E.value,b.addEventListener(E,N[E]);_.W1(function(){for(var F=_.Z(y),R=F.next();!R.done;R=F.next())R=R.value,b.removeEventListener(R,N[R])})}},"bXZGfe")}};
N6J=function(q){switch(HBJ(q)){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""}};
bad=function(q){switch(q){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""}};
y6A=function(q){switch(HBJ(q)){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""}};
J6A=function(q){switch(q){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""}};
EKJ=function(q){switch(q){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}};
gKC=function(q){return q==="medium"||q==="48"||q==="large"||q==="extra-large"||q==="extra-extra-large"||q==="giant"};
ZaA=function(q){return!!((q==null?0:q.includes(3))||(q==null?0:q.includes(5)))};
R6n=function(q){var N=q.data;return{size:Fcz(N.avatarImageSize),type:N.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:q.onTap,decorations:q.decorations||[],badgeText:q.badgeText,accessibilityText:q.accessibilityText,avatarButtonCustomClassName:q.avatarButtonCustomClassName,clusterLayoutConfig:q.clusterLayoutConfig}};
Fcz=function(q){switch(q){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"}};
dUA=function(q){switch(q){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}};
c6A=function(q){switch(q){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""}};
uLD=function(q){var N=q.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",b,y=q.avatars&&q.avatars.length>0?(b=_.v(q.avatars[0],_.wj))==null?void 0:b.avatarImageSize:"AVATAR_SIZE_UNKNOWN";b=dUA(y)||0;if(N){var J,E=(J=q.avatarClusterSize)!=null?J:"AVATAR_SIZE_M";N=dUA(E);var F,R,c=Math.min((R=(F=q.avatars)==null?void 0:F.length)!=null?R:0,4),z;return{avatars:((z=q.avatars)==null?void 0:z.slice(0,4))||[],avatarSizeInPx:b,avatarStackStyle:{width:N+"px",height:N+"px",position:"relative"},avatarStyle:function(r){var X=
HBJ({clusterSize:Fcz(E),numAvatarsInCluster:c,avatarIndex:r});var V=dUA(E);c===3&&r===2?(V=(V-X)/2,V=(_.M7("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*V):V=void 0;return{position:"absolute",top:c===2&&r===1||c===3&&r===2||c===4&&r>=2?"0":void 0,bottom:c===2&&r===0||c>2&&r<2?"0":void 0,left:c===2&&r===1||c>2&&(r===1||r===3)?"0":void 0,right:c<=3&&r===0||c===4&&(r===0||r===2)?"0":void 0,transform:V?"translateX("+V+"px)":void 0,width:X+"px",height:X+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(r){return{clusterSize:Fcz(q.avatarClusterSize),numAvatarsInCluster:c,avatarIndex:r}},
avatarButtonCustomClassName:void 0}}var m;return{avatars:((m=q.avatars)==null?void 0:m.slice())||[],avatarSizeInPx:b,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:c6A(y),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
z6J=function(q,N,b){return function(){ck(q,{form:{element:N},commandController:b})}};
$Uu=function(q){switch(q){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
ttJ=function(q){switch(q){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"}};
mUJ=function(q){if("accessibilityText"in q)return q.accessibilityText||"";if("title"in q){var N,b,y;return((N=q.title)==null?void 0:(b=N.accessibility)==null?void 0:(y=b.accessibilityData)==null?void 0:y.label)||""}if("accessibility"in q){var J,E;return((J=q.accessibility)==null?void 0:(E=J.accessibilityData)==null?void 0:E.label)||""}return""};
r6J=function(q){return"inlinePlayerData"in q};
ix=function(q){return new XlJ(q)};
Vte=function(q){switch(q){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"}};
jaR=function(q){switch(q){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}};
xUh=function(q){switch(q){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}};
vKz=function(q){return function(N){q&&(q.thumbnailElRef=N.thumbnailElRef,q.thumbnail=N.thumbnail,q.thumbnailOverlays=N.thumbnailOverlays,q.thumbnailSize=N.thumbnailSize)}};
GRJ=function(q){switch(q){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
Qan=function(q){var N=_.Z(_.QS(!1,void 0,"E6wDDe")),b=N.next().value,y=N.next().value;_.WC(function(){var J=q==null?void 0:q();if(J){var E=_.tz().resolve(_.$f(YTn));if(E){var F={triggeringElement:J,onDwellTriggeredFn:function(){y(!0)},
onDwellEndFn:function(){y(!1)}};
E.registerElement(F);_.W1(function(){_.lx(E,F)})}}});
return b};
OaC=function(q,N,b){b?b(N):_.Kt(N,q.target?{form:{element:q.target}}:void 0)};
_.KT=function(q,N,b,y){return function(J){_.Sx(function(){function E(m){m=m.composedPath();m=_.Z(m);for(var r=m.next();!r.done;r=m.next()){r=r.value;if(r===J)break;if(r.className.indexOf("HostIsClickableAdComponent")>=0||r.tagName==="A".toString()||r.tagName==="BUTTON".toString())return!0}return!1}
var F=new Map,R,c=(R=q())==null?void 0:R.onTap;if(c){R=function(m){E(m)||OaC(m,c,N)};
var z=function(m){E(m)||m.key!=="Enter"||OaC(m,c,N)};
(b==null?0:b())||_.x("enable_web_home_top_landscape_image_layout_level_click")?(J.addEventListener("tap",R),F.set("tap",R)):(J.addEventListener("click",R),F.set("click",R));if(y==null?0:y())J.addEventListener("keydown",z),F.set("keydown",z)}_.W1(function(){for(var m=_.Z(F),r=m.next();!r.done;r=m.next()){var X=_.Z(r.value);r=X.next().value;X=X.next().value;J.removeEventListener(r,X)}})},"D7XqOc")}};
wlu=function(q,N){var b,y=(b=q.interaction)==null?void 0:b.onTap;if(q=_.iq({elementsCommand:y,forceNewState:!0,skipOnClick:!0}))return q.onclick=function(J){XmC(J)&&(J.preventDefault(),y&&OaC(J,y,N))},lq(q)?q:void 0};
iaA=function(q){switch(q){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
lKA=function(q){switch(q){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"}};
Kcd=function(q){switch(q){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"}};
_.DUZ=function(q){return _.x("rich_grid_enable_dynamic_offset")&&q?Math.max((q-_.VX("rich_grid_dynamic_offset_anchor_width",1300))/100*_.VX("rich_grid_dynamic_offset_offset_per_100",10),_.VX("rich_grid_dynamic_offset_lower_bound",-60)):0};
h6n=function(q,N){switch(N){case 4:return 16;case 1:return q<528?16:q<1024?32:48;case 2:return(q>=528?16:8)/2;case 3:return(q<528?16:q<1024?32:48)+(q>=528?16:8)/2;default:return 0}};
kRd=function(q){var N=q.originalContainerWidth;var b=q.sizing;var y=q.standardUnit;if(q.isCompactList&&N<528)return 1;switch(b){case "STANDARD":return y;case "COMPACT":return y+1;case "EXTRA_COMPACT":return _.x("web_responsive_extra_compact_2x")?y*2:_.x("web_responsive_current")?y===1?2:y%2===0?y/2*3:y+2:y<4?y*2:Math.ceil(y*3/2);case "MINI":return y>1?y*2:3;default:return y}};
fKe=function(q){var N=q.containerWidth;var b=q.peek;var y=q.gutter;var J=q.numItems;q=q.ignoreMaxWidthLimit;N=b?Math.max((N-b-y*J)/J,0):Math.max((N-y*(J-1))/J,0);return q?N:Math.min(N,UUz)};
_.D7=function(q){var N=q.containerWidth;var b=q.hasPeek;var y=q.sizing;var J=q.marginSettings;var E=q.isCompactList;var F=q.enableFullBleedForSingleCol;var R=q.standardUnitMinWidth;y=y||"STANDARD";b=!!b;q=N>=528?16:8;var c=b?N>=528?48:24:0;J=h6n(N,J);var z=Math.max(N-J*2,0);R=_.x("kevlar_disable_min_width_override")?void 0:R;R=Math.min(Math.max(Math.floor((z-c+q)/((R!=null?R:COh)+_.DUZ(N)+q)),1),6);var m=(F=!!F&&R===1)||R===1&&y!=="STANDARD";b=b||m?z:Math.min(z,(UUz+q)*R-q);y=kRd({originalContainerWidth:N,
sizing:y,standardUnit:R,isCompactList:E});return{itemWidth:fKe({containerWidth:b,peek:c,gutter:q,numItems:y,ignoreMaxWidthLimit:m}),gutter:q,maxContainerWidth:b,numItems:y,margin:F?0:J,contentMargin:h6n(N,1),typographyBump:fKe({containerWidth:b,peek:c,gutter:q,numItems:R,ignoreMaxWidthLimit:m})>400&&!(E&&N<528),standardUnit:R}};
hO=function(q){switch(q){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.IKD=function(q){if(q){var N;if((N=q.responsiveContainerConfiguration)==null?0:N.responsiveSize)return hO(q.responsiveContainerConfiguration.responsiveSize);if(q.layoutSizing)switch(q.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"}}};
T6R=function(q){if(q.fullbleed)return 1;switch(q.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
WcA=function(q,N,b,y,J,E,F,R,c){a:if(q===4&&y==="LOCKUP_CONTENT_TYPE_SOURCE")var z=1;else switch(q){case 3:z=1;break a;default:z=0}var m=saZ(q,y);a:switch(q){case 4:E=!!(E&&E<100);break a;default:E=!1}a:switch(q){case 3:case 4:var r=y==="LOCKUP_CONTENT_TYPE_CHANNEL"||y==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:r=!1}return{metadataOnThumbnail:m,isOverlay:R||m,isCard:nKe(y,F),sizing:N!=null?N:"STANDARD",typographyBump:b!=null?b:!1,isTiny:E,isCentered:r,isCollection:aKn(y),arrangement:z,addMarginForFullbleed:q===
1&&y!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:q===1&&y==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:STA(y,J,c),disableRounding:q===5||nKe(y,F)||q===1&&y==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:aKn(y)?2:0,useLegacyTypography:!(c==null||!c.useLegacyTypography),useRichGridLegacyTypography:!(c==null||!c.useRichGridLegacyTypography)&&!_.x("web_enable_typography_bump"),compactMetadata:z===0&&y==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:c==null?void 0:c.onFocusEffect,titleMaxLines:y==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
aKn=function(q){switch(q){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}};
nKe=function(q,N){if(N&&q==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(q){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
saZ=function(q,N){if(N==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(q){case 5:return!0;case 4:return!1;default:return!1}};
STA=function(q,N,b){if(N&&(b==null||!b.alwaysRespectPodcastShowAspectRatio||q!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(q){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}};
_.ke=function(q){if(q){var N;return((N=_.tz().resolve(_.$f(_.ft)))==null?0:N())?q.darkThemeImage:q.image}};
POC=function(q,N,b,y,J,E){if(J&&E&&N==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:J,height:E};if(!b)return{};J=b.size;b=b.allowFullWidth;if(N==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&b)return{fullWidth:!0};if(J===void 0)return{};switch(q){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:J,height:J};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:J,height:1/LcC*J};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:J*
ple,height:J};default:return(y==null?0:y.height)&&(y==null?0:y.width)?y.width/y.height>1?{maxWidth:J*ple}:{maxWidth:J}:{maxWidth:J}}};
MtR=function(q){var N;return q&&((N=_.ke(q.themedImage))!=null?N:q.image)};
oKe=function(q){var N;return q==null?void 0:(N=q.sources)==null?void 0:N[0]};
A6h=function(q){switch(q){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"}};
_.e6e=function(q){if(q)return"content-id-"+q};
B6d=function(q){switch(q.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"}}};
Han=function(q){var N=_.U$.currentPageSubTypeSelector(_.sk().getState())||"";return q?q+N:""};
q3A=function(q){switch(q){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
beA=function(q){var N=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],b=_.Z(_.QS(void 0,void 0,"JrqNsb")),y=b.next().value,J=b.next().value,E=_.Z(_.QS(void 0,void 0,"rWytse"));b=E.next().value;var F=E.next().value;E=_.Z(_.QS(void 0,void 0,"DHRqxe"));var R=E.next().value,c=E.next().value;return{touchFeedbackEvents:{pointerUpEvent:y,pointerDownEvent:b,pointerLeaveEvent:R},touchFeedbackOnPointerUp:_.y0(function(z){NQZ(_.xe(z),N)||(J(z),F(void 0),c(void 0))}),
touchFeedbackOnPointerDown:_.y0(function(z){q==null||q(z);NQZ(_.xe(z),N)||(F(z),J(void 0),c(void 0))}),
touchFeedbackOnPointerLeave:_.y0(function(z){NQZ(_.xe(z),N)||(c(z),F(void 0),J(void 0))})}};
NQZ=function(q,N){N=N===void 0?[]:N;N=[].concat(_.a9(N),["BUTTON".toString()]);q=_.Z(q);for(var b=q.next();!b.done;b=q.next()){b=b.value;for(var y=_.Z(N),J=y.next();!J.done;J=y.next())if(b.tagName===J.value)return!0}return!1};
ykA=function(q){switch(q){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"}};
JkJ=function(q){return q.scrollHeight-q.offsetHeight>1};
EIJ=function(q,N){var b;return U_(q,((b=q.content)==null?void 0:b.length)||0,!N)};
FBn=function(q,N,b,y,J,E){if(!N||gID){var F;return U_(q,((F=q.content)==null?void 0:F.length)||0,!0)}N=y.value;if(!b.value||!N||!q.content)return q;b=0;y=q.content.length;F=0;ZeJ||(ZeJ=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var R=ZeJ;for(J=J*E*R;b<=y;)E=Math.floor(b+(y-b)/2),R=U_(q,E)||q,N.firstChild&&(N.firstChild.textContent=R.content),N.scrollHeight>J?y=E-1:(F=E,b=E+1);return U_(q,F)};
R$J=function(q,N){var b,y;return(((b=q.content)==null?void 0:b.length)||0)>(((y=N.content)==null?void 0:y.length)||0)};
dXu=function(q,N,b,y,J,E){var F=_.dI("truncated-text-content"),R=_.dI("truncated-text-content"),c=_.dI("button"),z=_.dI("button"),m=_.dI("button"),r=_.tz().resolve(_.Ii),X=_.Z(_.gJ(function(){return EIJ(q(),J())})),V=X.next().value,G=X.next().value;
X=_.Z(_.gJ(function(){return R$J(q(),V())}));
var w=X.next().value,D=X.next().value,k=null;_.Sx(function(){function f(){if(F.value&&c.value&&m.value){var W=E()?q():FBn(q(),J(),F,R,N(),b());G(W);requestAnimationFrame(function(){if(F.value&&c.value&&m.value){var M=JkJ(F.value)||R$J(q(),W);D(M);if(!y()){var qe=JkJ(F.value),RJ=b(),tZ=F.value,wA=c.value,rA=m.value,xD=r==="rtl";if(tZ&&wA){var IJ=wA.offsetLeft;xD&&(IJ=tZ.offsetWidth-wA.offsetWidth-wA.offsetLeft);if(M){M=wA.offsetWidth;wA=tZ.offsetWidth;var sJ=qe?wA-M-70:IJ-70;RJ="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
RJ+"rem,\n      #000 "+RJ+"rem,\n      #000 100%), linear-gradient(\n      to "+((xD?"left":"right")+",\n      #000 0px,\n      #000 "+sJ+"px,\n      transparent "+(qe?wA-M:sJ+70)+"px)");tZ.style.setProperty("-webkit-mask-image",RJ);tZ.style.setProperty("mask-image",RJ)}else tZ.style.setProperty("-webkit-mask-image",""),tZ.style.setProperty("mask-image","");qe?xD?(rA.style.setProperty("left","0"),rA.style.setProperty("right","unset")):(rA.style.setProperty("left",""),rA.style.setProperty("right",
"0")):xD?(rA.style.setProperty("left","unset"),rA.style.setProperty("right",IJ+"px")):(rA.style.setProperty("left",IJ+"px"),rA.style.setProperty("right","unset"))}}}})}}
var L,S;(L=k)==null||(S=L.stop)==null||S.call(L);L=new _.El(f,17);f();k=L},"KjwIxd");
_.WC(function(){G(EIJ(q(),J()));D(R$J(q(),V()));var f=function(){ZeJ=void 0;var S,W;(S=k)==null||(W=S.fire)==null||W.call(S)};
if(window.ResizeObserver){var L=new ResizeObserver(f);L.observe(F.value);_.W1(function(){var S,W;(S=k)==null||(W=S.stop)==null||W.call(S);L.disconnect()})}else window.addEventListener("resize",f),_.W1(function(){var S,W;
(S=k)==null||(W=S.stop)==null||W.call(S);window.removeEventListener("resize",f)})});
return{isTruncated:w,displayText:V,contentRef:F,hiddenRef:R,placeholderTruncationTextRef:c,hiddenTruncationTextRef:z,truncationTextRef:m}};
ckh=function(q){return{content:q!=null?q:""}};
urh=function(q){return _.O_(q.onTap)||_.GS(q.rendererContext)};
z$d=function(q){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:q.overflowMenuA11yLabel,onTap:function(N){N.preventDefault();N.stopPropagation();if(q.overflowMenuOnTap){var b=_.iq({elementsCommand:q.overflowMenuOnTap,forceNewState:!0});if(b==null?0:b.onclick)b.onclick(N)}}}};
_.fT=function(q,N,b,y,J){y=y===void 0?{}:y;if(!J||Math.random()<5E-4){N=N||null;b=b||null;q=q instanceof Error?q:new _.IO(q);if(q.args)for(var E=_.Z(q.args),F=E.next();!F.done;F=E.next())F=F.value,F instanceof Object&&(y=Object.assign({},F,y));y.category="H5 Ads Control Flow";N&&(y.slot=N?"slot:  "+N.slotType:"");b&&(y.layout=b?"layout:  "+b.layoutType:"",y.layoutId=b.layoutId);J&&(y.known_error_aggressively_sampled=!0);q.args=[y];_.M6(q)}};
_.$XR=function(q,N){N=_.pD(N);_.By(q,"yt-open-popup-action",[N,q])};
_.CT=function(q,N){_.$XR(q,_.nD(N))};
mXz=function(q){if(!q)return"";if(t3J[q])return t3J[q];ID||(ID=_.iC("A"));ID.href!==q&&AB(ID,q);var N=ID.pathname;t3J[q]=N.startsWith("/")?N:"/"+N;return t3J[q]};
rkh=function(){var q=mXz(window.location.href);if(q==="/")return"home";if(q.startsWith("/results"))return"search";if(q.startsWith("/watch"))return"watch";if(q.startsWith("/shorts"))return"shorts";if(q.startsWith("/hashtag"))return"hashtag";if(q.startsWith("/create_channel"))return"create_channel";if(q.startsWith("/@")||q.startsWith("/user/")||q.startsWith("/channel/"))return"channel";if(q.startsWith("/experiments"))return"experiments";if(q.startsWith("/sponsor_channel"))return"sponsorship";if(q.startsWith("/select_site"))return"settings";
if(q.startsWith("/locate"))return"locate";if(q.startsWith("/redeem"))return"redeem";if(q.startsWith("/musicpremium")||q.startsWith("/premium")||q.startsWith("/red"))return"premium";if(q.startsWith("/paid_memberships"))return"paid_memberships";if(q.startsWith("/oops"))return"oops";if(q.startsWith("/clip"))return"clip";var N;return(TS==null?void 0:(N=TS.response)==null?void 0:N.page)==="404"?"404":q.startsWith("/feed/history")?"history":q.startsWith("/feed/library")?"library":q.startsWith("/feed/subscriptions")?
"subscriptions":q.startsWith("/feed/trending")?"trending":q.startsWith("/feed/news_destination")?"news":q.startsWith("/playlist")?"playlist":q.startsWith("/minor_moment")?"minor_moment":q.startsWith("/playable/")||q.match("^/playables/(?!saved).")?"mini_app":q.startsWith("/playables")?"playables":q.startsWith("/create/live/join")?"open_in_app":q.startsWith("/feed/explore")?"explore":"browse"};
_.nT=function(){var q=TS==null?void 0:TS.response,N=q==null?void 0:q.endpoint;if(!N)return(q==null?void 0:q.page)==="watch"?"watch":rkh();var b;q=(b=_.v(N==null?void 0:N.commandMetadata,_.gg))==null?void 0:b.webPageType;b=!1;if(q&&!XIA.includes(q))switch(q){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 y;return((y=_.v(N==null?void 0:N.commandMetadata,_.gg))==null?0:y.url)&&mXz(_.v(N.commandMetadata,_.gg).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var J;return(N=(J=_.v(N,_.FH))==null?void 0:J.browseId)?V3h[N]||"browse":"browse";default:b=!0}if(_.v(N,_.s$)||_.v(N,jdn))return"sponsorship";J=mXz(window.location.href);if(J.startsWith("/experiments"))return"experiments";if(J.startsWith("/create_channel"))return"create_channel";
if(_.v(N,_.b_)&&J.startsWith("/shorts"))return"shorts";if(_.v(N,_.b_)&&J.startsWith("/watch"))return"watch";b&&(N=new _.IO("Unsupported mWeb page type",{pathname:J,webPageType:q}),_.po(N));return"browse"};
aD=function(q,N,b,y){return q&&N?q!==b||N!==y?(_.fT(Error("Kh"),void 0,void 0,{"stored-slot":q,"stored-layout":N,"latest-slot":b,"latest-layout":y}),!1):!0:!1};
vIz=function(q,N,b){return q({targetId:N},function(y){return b.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},y,{contents:[b.continuationItems?_.v(b.continuationItems[0],xXJ):{}]}):b.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},y,{header:b.continuationItems?b.continuationItems[0]:void 0}):Object.assign({},y,{contents:b.continuationItems?b.continuationItems:[]})})};
GdA=function(q,N,b,y){if(N=N.trackingParams){var J,E=(J=b.getScreenLayer)==null?void 0:J.call(b);b=_.Oe(E);J=_.QY(E);if(b&&J){var F=_.zT(N);_.x("combine_ve_grafts")?q.graftServerVe(N,J,E):_.fr(b,J,F);y==null||y(F)}}};
Qdd=function(q){var N;return((N=Y3J.get(q))==null?void 0:N.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
iee=function(q,N){var b={type:N.slotType,controlFlowManagerLayer:Oee.get(N.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};N.slotEntryTrigger&&(b.entryTriggerType=N.slotEntryTrigger.triggerType);N.slotPhysicalPosition!==1&&(b.slotPhysicalPosition=N.slotPhysicalPosition);if(q){b.debugData={slotId:N.slotId};if(q=N.slotEntryTrigger)b.debugData.slotEntryTriggerData=wIR(q);q=N.slotFulfillmentTriggers;b.debugData.fulfillmentTriggerData=[];q=_.Z(q);for(var y=q.next();!y.done;y=q.next())b.debugData.fulfillmentTriggerData.push(wIR(y.value));
N=N.slotExpirationTriggers;b.debugData.expirationTriggerData=[];N=_.Z(N);for(q=N.next();!q.done;q=N.next())b.debugData.expirationTriggerData.push(wIR(q.value))}return b};
wIR=function(q,N){var b={type:q.triggerType};N!=null&&(b.category=N);q.triggeringSlotId!=null&&(b.triggerSourceData||(b.triggerSourceData={}),b.triggerSourceData.associatedSlotId=q.triggeringSlotId);q.triggeringLayoutId!=null&&(b.triggerSourceData||(b.triggerSourceData={}),b.triggerSourceData.associatedLayoutId=q.triggeringLayoutId);return b};
lTh=function(q,N,b,y){N={opportunityType:N};q&&(y||b)&&(y=_.aW(y||[],function(J){return iee(q,J)}),N.debugData=Object.assign({},b&&b.length>0?{associatedSlotId:b}:{},y.length>0?{slots:y}:{}));
return N};
KBu=function(q){return Sz(q.opportunityAdapterMap).concat(Sz(q.triggerAdapterMap)).concat(Sz(q.fulfillmentAdapterFactoryMap)).concat(Sz(q.slotAdapterFactoryMap)).concat(Sz(q.layoutRenderingAdapterFactoryMap))};
Sz=function(q){var N=[];q=_.Z(q.values());for(var b=q.next();!b.done;b=q.next())b=b.value,b.isAdsControlFlowEventListener&&N.push(b);return N};
LT=function(q){var N=q.slotId,b=q.slotType,y=q.slotPhysicalPosition;return N===void 0?new WG("Cannot construct a slot due to the missing id.",{adSlotMetadata:q}):b===void 0?new WG("Cannot construct a slot due to the missing type.",{adSlotMetadata:q}):y===void 0?new WG("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:q}):{slotId:N,slotType:b,slotPhysicalPosition:y,managerLayer:"external",adSlotLoggingData:q.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new DXD}};
h$d=function(q){var N=q.layoutId,b=q.layoutType;return N===void 0?new pT("Cannot construct a layout due to the missing id.",{adLayoutMetadata:q}):b===void 0?new pT("Cannot construct a layout due to the missing type.",{adLayoutMetadata:q}):{layoutId:N,layoutType:b,managerLayer:"external",adLayoutLoggingData:q.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new DXD,interactionLoggingAdsClientData:{}}};
kdn=function(q){if(q.querySelector("img")){var N=q.querySelector("img");N.addEventListener("error",function(){ZWd(N.src).then(function(b){(b=_.PZ(b).toString())?N.src=b:N.removeAttribute("src")}).catch(function(){N.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
ME=function(q,N){if(N&&(UXA(N.viewableCommand)||UXA(N.endOfSessionCommand))){var b=fTC(N==null?void 0:N.viewableCommand);N=fTC(N==null?void 0:N.endOfSessionCommand);if(!PG){var y=_.VX("custom_active_view_tos_timeout_ms");PG=y>0&&y!==36E5?new CsJ(ITC(),y):new CsJ(ITC())}TQu(PG,q);sdZ(PG,q,b,N)}};
oD=function(q){PG&&TQu(PG,q)};
ITC=function(){var q=_.M7("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(q==null?void 0:q.length)===2?q[1]:null};
UXA=function(q){q=_.O_(q);return!(q==null||!q.loggingUrls)&&q.loggingUrls.length>0};
fTC=function(q){if(!q)return[];var N=[],b,y;((y=(b=_.O_(q))==null?void 0:b.loggingUrls)!=null?y:[]).forEach(function(J){J.baseUrl&&N.push(J.baseUrl)});
return N};
nIn=function(q){if(_.x("stop_av_measurement_on_detach"))return function(){oD(q)}};
aTD=function(q){return function(){_.x("stop_av_measurement_on_detach")&&oD(q)}};
S3R=function(q){if(_.x("stop_av_measurement_on_detach"))return function(){oD(q)}};
WBh=function(q){return q.shorts.isDesktopSmallWidth};
_.LBn=function(q){return q.shorts.isShortsActive};
_.pID=function(q){return q.shorts.isWatchWhileMode};
_.AO=function(q){return q.shorts.isFullscreen};
_.ez=function(q){return q.shorts.isShortsPipActive};
M3n=function(q){var N,b;if(q=(N=_.v(q.reelsAdCardButtoned,Psu))==null?void 0:(b=N.animatedRenderingConfig)==null?void 0:b.easeOutSeconds)return q+"s"};
Aku=function(q,N,b){return _.d(function(y){return y.return(new Promise(function(J){var E=new Image;E.onload=function(){J(new oIn(q,N,b,E.naturalWidth,E.naturalHeight))};
E.src=b.toString()}))})};
e$n=function(q,N){return Math.round(q/1E-5)===Math.round(N/1E-5)};
BQJ=function(q,N){return Math.round(q/1E-5)===Math.round(N/1E-5)};
Hen=function(q,N){return q.year===N.year&&q.month===N.month&&q.day===N.day};
qOe=function(q,N){return q.year!==N.year?q.year<N.year:q.month!==N.month?q.month<N.month:q.day<N.day};
bHZ=function(q){return q.day===Ncu(q.year,q.month)?q.month===11?{year:q.year+1,month:0,day:1}:{year:q.year,month:q.month+1,day:1}:{year:q.year,month:q.month,day:q.day+1}};
ycD=function(){var q=new Date,N={year:q.getFullYear(),month:q.getMonth(),day:q.getDate()};return{start:N,end:{year:q.getFullYear()+2,month:q.getMonth(),day:q.getDate()},selectedDate:bHZ(N)}};
Jcz=function(q){return(new sR(2)).format(new Date(q.year,q.month,q.day))};
E4z=function(q){return{year:q.getFullYear(),month:q.getMonth(),day:q.getDate()}};
g4h=function(q,N){q=(q+(Number(N.utcOffsetSec)+(new Date(q*1E3)).getTimezoneOffset()*60))*1E3;N=E4z(new Date(q));return{date:N,secondsSinceMidnight:Math.floor((q-(new Date(N.year,N.month,N.day)).getTime())/1E3)}};
ZHz=function(q,N){N=N.months.findIndex(function(b){return b.year===q.year&&b.month===q.month});
return N>=0?N:void 0};
Fbz=function(q){if(!q)return!1;try{if(q.host&&q.host.tagName==="YT-FORMATTED-STRING"&&q.host.id==="contenteditable-textarea"||q.nodeType===Node.ELEMENT_NODE&&q.tagName==="YTD-COMMENTBOX")return!0}catch(N){return!1}return Fbz(q.parentNode)};
BG=function(q){return q?!(q.tagName!=="A"||!q.href||!q.classList.contains("yt-simple-endpoint")):!1};
Rin=function(q){return q?q.tagName==="IMG"&&q.classList.contains("emoji"):!1};
dDz=function(q,N,b){if(!q)return null;var y=BG(q);if(y&&b)return N=q.pathname.substring(q.pathname.indexOf("/channel/")+9),document.createTextNode("@"+N);if(y&&!b)return document.createTextNode("");if(Rin(q))return b=q.alt,q=q.dataset.emojiId,!q&&N&&(N=_.HG(N,b))&&N.isCustomEmoji&&(q=N.emojiId),q?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+q+">"):document.createTextNode(b);y=q.cloneNode(!1);for(var J=0;J<q.childNodes.length;++J){var E=dDz(q.childNodes[J],N,b);E&&y.appendChild(E)}return y};
q1=function(q){return q?BG(q)?q:q1(q.lastChild):null};
ccA=function(q){return q?BG(q)?q:ccA(q.firstChild):null};
upD=function(q){if(!q)return null;for(var N=q.previousSibling;N;)if(N.nodeType===Node.ELEMENT_NODE&&N.nodeName==="BR")N=N.previousSibling;else if(N.nodeType===Node.TEXT_NODE&&/\s+/.test(N.textContent))N=N.previousSibling;else break;(N=q1(N))?q=N:q=(q=q.parentNode)?q1(q.previousElementSibling):null;return q};
ziJ=function(q){if(!q)return null;for(var N=q.nextSibling;N;)if(N.nodeType===Node.ELEMENT_NODE&&N.nodeName==="BR")N=N.nextSibling;else if(N.nodeType===Node.TEXT_NODE&&/\s+/.test(N.textContent))N=N.nextSibling;else break;return(N=ccA(N))?N:ziJ(q.parentNode)};
$DR=function(q){var N=_.N1(),b=N.JSC$11424_getStartNode();if(!Fbz(b.parentNode))return null;N=N.JSC$11424_getStartOffset();if(b.nodeType===Node.TEXT_NODE){var y=_.Ph(b,BG);if(y){if(q&&N===0||!q&&N===b.length)return y}else{if(q&&N===b.length)return!b||b.nodeName==="BR"||b.nextElementSibling&&_.bk(b.nextElementSibling,"display")==="block"?null:ccA(b.nextElementSibling);if(!q&&N===0)return b?q1(b.previousElementSibling):null}}if(b.nodeType===Node.ELEMENT_NODE)if(q){if(0<=N&&N<b.childNodes.length)return ccA(b.childNodes[N])}else if(0<
N&&N<=b.childNodes.length)return q1(b.childNodes[N-1]);return null};
tBA=function(q,N,b){if(!q)return null;if(q.nodeType===Node.TEXT_NODE)if(b){var y=upD(q);if(y&&!/^\s+\S/.test(q.wholeText.substr(0,N)))return y}else if((y=ziJ(q))&&!/\S\s+/.test(q.wholeText.substr(N,q.wholeText.length)))return y;return q.nodeType===Node.ELEMENT_NODE?b?upD(q.childNodes[N]):ziJ(q.childNodes[N]):tBA(q.parentNode,N,b)};
mDd=function(q){if(q.hasChildNodes())switch(q.tagName){case "DIV":case "A":case "SPAN":var N="";for(q=q.firstChild;q;q=q.nextSibling)N+=mDd(q);return N;default:return""}else switch(q.nodeType){case 3:return q.textContent;default:return""}};
y_=function(q,N){return q.year===N.year&&q.month===N.month&&q.day===N.day};
J3=function(q,N){return q.year!==N.year?q.year<N.year:q.month!==N.month?q.month<N.month:q.day<N.day};
rcD=function(q){return{year:q.getFullYear(),month:q.getMonth(),day:q.getDate()}};
XOz=function(q){var N=zkn;N=N===void 0?zkn:N;N(new Date(q.year,q.month,q.day))};
EA=function(q){return rcD(new Date(Number(q.seconds)*1E3))};
VBh=function(q){return q.year!==void 0&&q.month!==void 0&&q.day!==void 0};
jnA=function(q){return q.start!==void 0&&q.end!==void 0};
xDA=function(q){return jnA(q)?q.start:q};
v4n=function(q){return jnA(q)?q.end:void 0};
YOn=function(q,N){for(var b=[],y=new Date(q.start.year,q.start.month);y.getFullYear()<q.end.year||y.getFullYear()===q.end.year&&y.getMonth()<=q.end.month;){var J=b,E=J.push,F=y.getFullYear(),R=y.getMonth(),c=q,z=N,m=void 0,r=[],X=Object.freeze({extraCssClass:"invisible"}),V=new Date(F,R),G=rcD(V);V=V.getDay();for(var w=rcD(new Date);G.month===R;){V!==GOz&&m||(m=Array.from({length:7}).fill(X),r.push(m));var D={date:{year:F,month:R,day:G.day},extraCssClass:"",debugClass:""};D.extraCssClass=z(D.date,
G,w,c).trim();m[(V-GOz+7)%7]=D;G=G.day===Ncu(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};V=(V+1)%7}E.call(J,{weeks:r,monthLabel:gR.SHORTMONTHS[R]+" "+F,year:F,month:R,monthLabelExtraCssClass:r[0][2]===X?"shift-down-label":""});y.setMonth(y.getMonth()+1)}return b};
Qnd=function(q,N){N=N.months.findIndex(function(b){return b.year===q.year&&b.month===q.month});
return N>=0?N:void 0};
wOA=function(q,N){a:{var b=b===void 0?[2,3]:b;b=_.Z(b);for(var y=b.next();!y.done;y=b.next()){var J=new Date;if((new OHJ(y.value)).parse(N,J,{validate:!0})){J.setHours(0,0,0,0);N=J;break a}}N=null}if(!N)return{isValid:!1,value:void 0};N=rcD(N);b=q.end;return J3(N,q.start)||J3(b,N)?{isValid:!1,value:void 0}:{isValid:!0,value:N}};
hiA=function(q){var N=iHZ;N=N===void 0?lEz:N;var b=q.columnsToShow||[],y=KbJ(q.columnDimensions,q.columnsToShow,q.leftFloatingColumns,N);return b.map(function(J,E){var F=q.columns[J];if(F===void 0)throw Error("Qh");var R=y?y[E]:"";var c=q.getCustomTooltip?q.getCustomTooltip(J,F.headerTooltipParagraphs):F.headerTooltipParagraphs;var z=DDA(q,J);return{type:J,index:E,style:R,classes:z,headerName:F.headerName||"",headerIcon:F.headerIcon,headerTooltipParagraphs:c||[],headerTooltipHelpContext:F.headerTooltipHelpContext,
sortOrders:F.sortOrders||[],selectionState:F.isSelectionCheckbox?q.selectionState:void 0}})};
DDA=function(q,N){var b=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],y=q.columns[N];if(y===void 0)return"";var J=b.includes("DEFAULTS")&&y.cssClass?[y.cssClass]:[];if(b.includes("SORTING")){y.sortOrders&&y.sortOrders.length&&J.push("sortable");if(q.sorting&&q.sorting.columnType===N)a:switch(q.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var E="column-sorted";break a;default:E=""}else E="";E&&J.push(E)}b.includes("FLOATING")&&(N=q.columnsToShow.indexOf(N),q.leftFloatingColumns&&N<q.leftFloatingColumns&&
J.push("floating-column"),q.leftFloatingColumns&&N===q.leftFloatingColumns-1&&J.push("last-floating-column"));b.includes("RIGHT_ALIGN")&&y.rightAlignHeader&&J.push("right-align");return J.filter(function(F){return F}).join(" ")};
KbJ=function(q,N,b,y){b=b===void 0?0:b;y=y===void 0?lEz:y;if(q){var J=[],E=0;kOe(q,N,y).forEach(function(F,R){var c="min-width:"+F.minWidth+"px;padding-left:"+F.paddingLeft+"px;padding-right:"+F.paddingRight+"px;flex:"+F.flexGrow+" 0 "+F.minWidth+"px;";F.maxWidth!==Infinity&&(c=[c,"max-width:"+F.maxWidth+"px;"].join(""));E>0&&R<b&&(c=[c,"left:"+E+"px;"].join(""));J.push(c);E+=F.minWidth+F.paddingLeft+F.paddingRight});
return J}};
kOe=function(q,N,b){b=b===void 0?lEz:b;return N.map(function(y,J){y=q&&q[y]||{};var E=J===0?b.paddingLeftFirstColumn:b.padding;y.paddingLeft!==void 0&&(E=y.paddingLeft);J=J===N.length-1?b.paddingRightLastColumn:b.padding;y.paddingRight!==void 0&&(J=y.paddingRight);return{paddingLeft:E,paddingRight:J,minWidth:y.minWidth!==void 0?y.minWidth:b.minWidth,maxWidth:y.maxWidth!==void 0?y.maxWidth:b.maxWidth,flexGrow:y.flexGrow!==void 0?y.flexGrow:b.flexGrow}})};
UDD=function(q){var N=q.reduce(function(y,J){var E=J.columnId,F={};J.headerText&&(F.headerName=_.ao(J.headerText));J.rightAlignHeader&&(F.rightAlignHeader=J.rightAlignHeader);var R;if((R=J.headerIcon)==null?0:R.iconType)F.headerIcon=_.qo(J.headerIcon.iconType);y[E]=F;return y},{}),b=q.filter(function(y){return!y.hideColumn}).map(function(y){return y.columnId});
q=q.filter(function(y){return!!y.dimensions}).reduce(function(y,J){y[J.columnId]=J.dimensions;
return y},{});
return{columns:N,columnsToShow:b,columnDimensions:q}};
_.fEd=function(q){return q?q.simpleText?q.simpleText:q.runs?q.runs.map(function(N){return N.text}).join(""):"":""};
aEJ=function(q){var N=q.data;var b=q.onTap;var y=q.isSelected;var J=q.onFocusIn;if(!N)return{};q=Cme(N);y===void 0&&(y=N==null?void 0:N.isSelected);var E;return{text:IEu(N,q),startIcon:(E=N.icon)==null?void 0:E.iconType,state:y?0:2,type:0,style:TcZ(N),onTap:snJ(N,b),accessibilityLabel:n4C(N,q),onFocusIn:function(){return J==null?void 0:J()}}};
IEu=function(q,N){if(!N)return q.text?_.fEd(q.text):void 0};
TcZ=function(q){var N;switch((N=q.style)==null?void 0:N.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
snJ=function(q,N){return function(b){N==null||N(b,q)}};
Cme=function(q){q=q.style&&q.style.styleType;return!gID&&q==="STYLE_EXPLORE_LAUNCHER_CHIP"};
n4C=function(q,N){if(N){var b,y,J;return(J=(b=q.accessibilityData)==null?void 0:(y=b.accessibilityData)==null?void 0:y.label)!=null?J:IEu(q,!1)}};
SOD=function(){var q;return[function(N,b,y){return _.e2(q,N,b,y)},
function(N){q=N}]};
Wbu=function(q,N){return _.Ji(q.entities,"chipEntity",N)};
pOe=function(q,N,b,y){return function(){var J=LbJ.has(q.displayType)&&q.selected,E=J&&q.deselectCommand?q.deselectCommand:q.tapCommand;!E||J&&y||_.Kt(E,{form:{element:N==null?void 0:N.value}});b==null||b()}};
MBJ=function(q,N){if(q=q.onUpdateText){var b;q=(b=_.v(q,Pmn))==null?void 0:b.stepId}else q=void 0;b=q;N=N==null?void 0:N.stepStates;if(b&&N){var y,J;return(y=N[b])==null?void 0:(J=y.userQuery)==null?void 0:J.userQuery}};
ZI=function(q){return{signalAction:{signal:q}}};
eiC=function(){return _.M7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?o4d:_.AcA};
BcR=function(q,N){q=q===void 0?"SOFT_RELOAD_PAGE":q;N=N===void 0?49504:N;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.o5(_.FE("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:N}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:q}}]}}}};
HHz=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.o5(_.FE("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:eiC()}};
qZC=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.o5(_.FE("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:eiC()}};
Ntu=function(q,N){var b=_.o5(_.FE("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),y=_.o5(_.FE("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),J={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.o5(_.FE("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};J.serviceEndpoint=q?q:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[ZI("SOFT_RELOAD_PAGE")]}};return{title:b,bodyText:y,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:J},
style:{value:N!=null?N:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
yhZ=function(q){q=q===void 0?{}:q;return{title:_.o5(q.localizedZeroStateTitleText===void 0?"":q.localizedZeroStateTitleText),bodyText:_.o5(q.localizedZeroStateMessage===void 0?"":q.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.o5(q.localizedZeroStateButtonText===void 0?"":q.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[bqn]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
EkC=function(q){q=q===void 0?{}:q;return{title:_.o5(q.localizedOptInBannerTitleText===void 0?"":q.localizedOptInBannerTitleText),titleLength:19,subtitle:_.o5(q.localizedOptInMessage===void 0?"":q.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.o5(_.FE("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:_.o5(_.FE("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:[JhA]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Fpd=function(q,N){var b=N=N===void 0?{}:N;N=b.offlineTitleText===void 0?"":b.offlineTitleText;var y=b.offlineDescriptionText===void 0?"":b.offlineDescriptionText,J=b.formattedSupplementalText,E=b.actionButtonText===void 0?"":b.actionButtonText,F=b.titleText===void 0?"":b.titleText;b=b.descriptionText===void 0?"":b.descriptionText;var R={title:E,accessibilityText:E,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};q||(F=N,b=y,R={title:E,accessibilityText:E,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.o5(F),titleLength:F.length,overrideTitleMaxFontSize:30,subtitle:_.o5(b),supplementalText:J,primaryButton:{buttonViewModel:R},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[gku]},darkTileImage:{thumbnails:[Zqd]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.chZ=function(q,N,b,y,J,E,F,R,c,z,m){J=J===void 0?!1:J;E=E===void 0?!1:E;F=F===void 0?0:F;R=R===void 0?-Infinity:R;c=c===void 0?!1:c;z=z===void 0?!1:z;m=m===void 0?!1:m;var r=[],X=_.o5(_.FE("SMART_DOWNLOADS",void 0,"Smart downloads")),V=_.o5(RBz(F,R,q.length));R=F=void 0;z?F={statementBannerRenderer:Fpd(m,y)}:J?q.length>0?R=dfD(q,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.x("kevlar_manual_downloads_above"),X,V):c?R={alertBannerViewModel:{heading:{content:b.localizedOptInBannerTitleText===
void 0?"":b.localizedOptInBannerTitleText},body:{content:b.localizedPromptMessage===void 0?"":b.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.FE("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.FE("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:_.vYh}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:E&&(R={backgroundPromoRenderer:{bodyText:_.o5(_.FE("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}):
E&&(R={alertBannerViewModel:{heading:{content:b.localizedOptInBannerTitleText===void 0?"":b.localizedOptInBannerTitleText},body:{content:b.localizedOptInMessage===void 0?"":b.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.FE("TURN_ON",void 0,"Turn on"),accessibilityText:_.FE("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}}}}}});b=_.o5(_.FE("YOUR_DOWNLOADS",void 0,"Your downloads"));y=void 0;N.length>0?(y=void 0,_.x("kevlar_display_downloads_numbers")&&(y=_.o5(_.R5("VIDEO_COUNT",N.length))),y=dfD(N,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,b,y)):J||q.length||
z||(y={backgroundPromoRenderer:{bodyText:_.o5(_.FE("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}}}});F?r.push({richSectionRenderer:{content:F}}):R&&!_.x("kevlar_manual_downloads_above")&&r.push({richSectionRenderer:{content:R,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
y&&r.push({richSectionRenderer:{content:y,loggingDirectives:{clientVeSpec:{uiType:51721}}}});R&&_.x("kevlar_manual_downloads_above")&&r.push({richSectionRenderer:{content:R,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(N.length>0||J&&q.length>0&&!z)&&r.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.o5(_.FE("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:r}};
_.zBC=function(q){return uan(q,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.$fZ=function(q){return uan(q,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
uan=function(q,N){var b=[];q=dfD(q,N,!0);b.push({richSectionRenderer:{content:q}});return{contents:b}};
dfD=function(q,N,b,y,J){b=b===void 0?!1:b;var E="RESPONSIVE_SIZE_STANDARD";_.x("kevlar_standard_rich_grid_on_offline_home")&&N==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?E="RESPONSIVE_SIZE_STANDARD":_.x("kevlar_modern_downloads_compact")?E="RESPONSIVE_SIZE_COMPACT":_.x("kevlar_modern_downloads_extra_compact")?E="RESPONSIVE_SIZE_EXTRA_COMPACT":_.x("kevlar_modern_downloads_tiny")&&(E="RESPONSIVE_SIZE_TINY");q={isExpanded:b,contents:FO(q),entitySelectorType:N,responsiveContainerConfiguration:{responsiveSize:E}};
y&&(q.title=y);J&&(q.subtitle=J);b||(_.x("kevlar_smart_downloads_show_more_button")?(q.showMoreButton={buttonRenderer:{accessibility:{label:_.FE("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.o5(_.FE("SHOW_MORE",void 0,"Show more"))}},q.showLessButton={buttonRenderer:{accessibility:{label:_.FE("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.o5(_.FE("SHOW_LESS",void 0,"Show less"))}}):(q.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.FE("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}}}},q.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.FE("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}}}},q.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.FE("VIEW_ALL",void 0,"View all"),accessibilityText:_.FE("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:_.P3("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:q}};
FO=function(q){var N=[];q=_.Z(q);for(var b=q.next();!b.done;b=q.next())if(b=b.value,EYR(b)){var y=N,J=y.push;var E=void 0;if(b==null?0:(E=b.videoEntity)==null?0:E.videoId){E=DC(_.WT().getState(),b.videoEntity.videoId);var F=_.WT().getState();var R=_.yU(b.videoEntity.videoId,"mainVideoEntity");F=!!_.Xt(F.entities)[R];F={videoId:b.videoEntity.videoId,title:Ae(b.videoEntity.title),shortBylineText:Ae(b.channelEntity.title),thumbnail:b.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:F&&_.x("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:fOD(b.videoEntity.videoId,E,b.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.FE("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};b.videoEntity.lengthSeconds&&(F.thumbnailOverlays=DJJ(b.videoEntity.lengthSeconds,E));F.isWatched=E>0;_.x("kevlar_modern_downloads_page")&&(F.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:b.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.FE("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},F.badges=void 0);b=F}else b={};J.call(y,{richItemRenderer:{content:{videoRenderer:b},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(J$n(b)){y=N;J=y.push;var c=R=E=void 0,z=void 0,m=void 0,r=void 0,X=void 0,V=void 0,G=void 0,w=void 0,D=void 0,k=void 0;F=b.mainPlaylistEntity.playlistId;var f=b==null?void 0:(k=b.mainPlaylistEntity)==null?void 0:(D=k.thumbnailStyleData)==null?void 0:(w=D[0])==null?void 0:(G=w.value)==null?void 0:(V=G.collageThumbnail)==
null?void 0:V.coverThumbnail;if(F&&f){V=CoZ(F);!_.x("enable_offline_playlist_page")&&(b==null?0:(X=b.mainPlaylistEntity)==null?0:X.videos)&&(X=b==null?void 0:(r=b.mainPlaylistEntity)==null?void 0:(m=r.videos)==null?void 0:m[0],m=_.qR(X).entityId,m=JSON.parse(m).videoId,m!==void 0&&(V=DC(_.WT().getState(),m),V=_.Mc(m,F,void 0,void 0,V)));m=[];if(b==null?0:(z=b.mainPlaylistEntity)==null?0:(c=z.videos)==null?0:c.length)c=uxJ(),z=Object,m=z.assign,r=(r=c0z(b==null?void 0:b.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.o5(r),icon:{iconType:"PLAYLISTS"}}}:void 0,m=[c,m.call(z,{},(R=r)!=null?R:{})];b={playlistId:F,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:f}},navigationEndpoint:V,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:m,title:Ae(b.mainPlaylistEntity.title),shortBylineText:Ae(b==null?void 0:(E=b.channelEntity)==null?void 0:E.title),badges:[{metadataBadgeRenderer:{label:_.FE("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.x("kevlar_modern_downloads_page")&&(b.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:t1n,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:F,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.FE("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},b.badges=void 0)}else b=void 0;J.call(y,{richItemRenderer:{content:{playlistRenderer:b},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return N};
RBz=function(q,N,b){q=q?mfd(q):"";N!==void 0&&isFinite(N)?N===0?N=_.FE("UPDATING",void 0,"Updating..."):(N=KyA(new Date(N),new Date),N=_.FE("UPDATED_TIME",{relative_time:N},"Updated "+N)):N="";var y="";q&&N&&(y=" \u2022 ");if(b&&_.x("kevlar_display_downloads_numbers")){b=_.R5("VIDEO_COUNT",b);if(q||N)y=" \u2022 ";return b+y+q+y+N}return q+y+N};
rhu=function(q){return A2A(q.entities).length};
_.Xzd=function(q,N,b){var y=hO(q.responsiveSize),J;q=!((J=q.responsiveMap)==null||!J.some(function(E){return E.containerSize==="CONTAINER_SIZE_NARROW"&&E.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:b,containerWidth:N,sizing:y,enableFullBleedForSingleCol:!1,isCompactList:y==="COMPACT"&&q}};
V1n=function(q,N){return _.Ji(q.entities,"votingEntity",N)};
Rm=function(q){if(q){var N;return((N=_.tz().resolve(_.$f(_.ft)))==null?0:N())?q.darkTheme:q.lightTheme}};
jGA=function(q,N){if(q.simpleText)return Object.assign({},q,{simpleText:hn(q.simpleText,N)});if(!q.runs)return q;for(var b=Object.assign({},q,{runs:[]}),y=0,J=_.Z(q.runs),E=J.next();!E.done;E=J.next())if(E=E.value,E.text)if(y+E.text.length<=N)b.runs.push(E),y+=E.text.length;else return b.runs.push(Object.assign({},E,{text:hn(E.text,N-y)})),b;return q};
xfd=function(q,N){return _.Ji(q.entities,"chipBarStateEntity",N)};
vkJ=function(q){switch(q){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""}};
GNd=function(q,N){return{triggeringElement:q,onDwellTriggeredFn:function(){var b={triggeringElement:q,loadVideoPreviewEventData:N},y=document.querySelector(".video-preview");y&&y.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:b}))},
onDwellEndFn:function(){var b=document.querySelector(".video-preview");b&&b.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
YZR=function(q,N){var b=_.tz().resolve(_.$f(YTn)),y=function(){var J=N();return b&&J?GNd(q.value,J):null};
_.Sx(function(){var J=y();b&&J&&Promise.resolve().then(function(){b.registerElement(J)});
_.W1(function(){b&&J&&Promise.resolve().then(function(){_.lx(b,J)})})},"csPUge")};
Oqn=function(q){var N=q.dataset.resizeObserverId;if(N)return N;N=""+QGA++;return q.dataset.resizeObserverId=N};
wzA=function(q){q=_.Z(q);for(var N=q.next();!N.done;N=q.next()){N=N.value;var b=Oqn(N.target),y=Object.assign({},{target:N.target},dR.get(b));if(y!=null&&y.contentRect?y.contentRect.width!==N.contentRect.width||y.contentRect.height!==N.contentRect.height:1)for(dR.set(b,{borderBoxSize:N.borderBoxSize,contentBoxSize:N.contentBoxSize,contentRect:N.contentRect,devicePixelContentBoxSize:N.devicePixelContentBoxSize}),b=_.Z(cD.get(b)||[]),y=b.next();!y.done;y=b.next())y=y.value,y(N)}};
l1D=function(q,N){var b=Oqn(q);cD.has(b)||cD.set(b,new Set);cD.get(b).add(N);dR.has(b)&&N(Object.assign({},{target:q},dR.get(b)));uk||(uk=new iqC(wzA));N=uk;N.observe(q)};
KpZ=function(q,N){var b=Oqn(q);cD.has(b)&&(cD.get(b).delete(N),cD.get(b).size===0&&(cD.delete(b),dR.delete(b),uk.unobserve(q),delete q.dataset.resizeObserverId));cD.size===0&&uk&&(uk.disconnect(),uk=void 0)};
hBd=function(q,N){var b=_.tz().resolve(tD);return Dfd.map(function(y){return b.observe(q,N,y)})};
kNh=function(q){var N=_.tz().resolve(tD);q.forEach(function(b){N.unobserveByKey(b)})};
_.zK=function(q){var N=_.Z(Y2d()),b=N.next().value,y=N.next().value,J=Object.assign({},UfA,q),E=f1d(function(F){var R=F.contentRect.height;if((F=F.contentRect.width)||R||J.canHaveZeroSize)b.width()===F&&b.height()===R||y(b,{height:R,width:F})},J.throttleMs);
return[b,function(F){var R=[];J.useVisibilityObserver&&(R=hBd(F,function(c,z){requestAnimationFrame(function(){z==="visible"?l1D(F,E):KpZ(F,E)})}));
R.length||l1D(F,E);return function(){R.length&&(kNh(R),R.length=0);KpZ(F,E)}}]};
I1Z=function(q,N,b,y,J){q=N?q.switchOffCommand:q.switchOnCommand;if(y&&J)CYZ(q,b,J);else{var E,F;(E=_.iq({elementsCommand:q}))==null||(F=E.onclick)==null||F.call(E,b)}};
CYZ=function(q,N,b){q=_.iq({elementsCommand:q,additionalCommandArgs:{commandController:{onSuccess:function(){b(!1)},
onServerError:function(){b(!1)}}}});
if(q==null?0:q.onclick)q.onclick(N),b(!0)};
sGZ=function(q){if(q)return _.v(q,TtZ)};
nkA=function(q){if(q)switch(q){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}};
a1n=function(q,N){if(!((q==null?0:q.entitySelectorType)&&(q==null?0:q.entityKey)))return{};switch(q.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.x("enable_web_shorts_captions_language_command")){var b;var y=(b=_.JO())==null?void 0:b.getOption("captions","track");var J,E=typeof(y==null?void 0:y.translationLanguage)==="object"&&((J=y.translationLanguage)==null?void 0:J.languageName)||(y==null?void 0:y.displayName)||"";y={data:Object.assign({},
!!E&&{selectionText:{content:E}},!!E&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof y==="undefined"})}}else y={};return y;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.x("web_shorts_audio_track_picker")){var F;J=((F=_.JO())==null?void 0:F.getAudioTrack())||void 0;b=J==null?void 0:(E=J.getLanguageInfo())==null?void 0:E.getName();J={data:Object.assign({},{selectionText:{content:b}},b&&!(J==null?0:(y=J.getLanguageInfo())==
null?0:y.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else J={};return J;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return y=q!=null&&q.entityKey?(y=_.bR(N,q.entityKey))?{isHidden:(y==null?void 0:y.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},y;default:return{}}};
SZJ=function(q,N){return function(b){var y=function(J){_.vG(_.xe(J),b,N)||q(J)};
b.addEventListener("click",y);return function(){b.removeEventListener("click",y)}}};
_.Wpn=function(q){return function(){return _.v(q(),_.$A)}};
Lph=function(q){switch(q){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
pzd=function(q){return Lph(q==null?void 0:q.all)};
PYn=function(q){var N={};(q=q==null?void 0:q.padding)&&(N.padding=Lph(q.vertical)+"px "+Lph(q.horizontal)+"px");return N};
M1z=function(q){switch(q){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
okD=function(q){switch(q){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"}};
Ahh=function(q){switch(q){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"}};
eBC=function(q,N){if(N)return{containerStyles:PYn(N),itemStyles:function(b,y){var J={flex:"1"},E=N==null?void 0:N.flexDirection;b:switch(E){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":b=!!b;break b;default:b=!!y}b||(b=_.M7("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",E==="FLEX_DIRECTION_ROW"||E==="FLEX_DIRECTION_ROW_REVERSE"?(E=pzd(N==null?void 0:N.gap)+"px",b?J["margin-left"]=E:J["margin-right"]=E):J["margin-bottom"]=pzd(N==null?void 0:N.gap)+"px",J.flex=
"1");return J},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(N==null?void 0:N.flexDirection)==="FLEX_DIRECTION_ROW"||(N==null?void 0:N.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
Bte=function(q){return q<528?"CONTAINER_SIZE_NARROW":q<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
Hqd=function(q,N){q=_.Z(q.responsiveMap||[]);for(var b=q.next();!b.done;b=q.next())if(b=b.value,b.containerSize===N)return b.containerType};
_.qyh=function(q,N){if(N){var b=N.responsiveSize;q=Bte(q);var y=Hqd(N,q);if(y&&b){a:{if(y==="CONTAINER_TYPE_VERTICAL_LIST")if(b==="RESPONSIVE_SIZE_STANDARD"){if(q!=="CONTAINER_SIZE_NARROW"){var J="50%";break a}}else{J=q==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}J=void 0}return{responsiveSize:b,containerSize:q,containerType:y,force16By9ThumbnailAspectRatio:!N.enableContentSpecificAspectRatio,contentPreviewWidth:J,fullbleed:(y==="CONTAINER_TYPE_VERTICAL_LIST"||y==="CONTAINER_TYPE_GRID")&&q===
"CONTAINER_SIZE_NARROW"&&!1}}}};
NZZ=function(q,N){var b={};switch(N){case "CONTAINER_TYPE_VERTICAL_LIST":b["flex-direction"]="column";b.padding="0 "+q.margin+"px";break;case "CONTAINER_TYPE_GRID":b["flex-direction"]="row";b.flex="none";b["flex-wrap"]="wrap";b.width=q.maxContainerWidth?q.maxContainerWidth+q.gutter+"px":void 0;b.padding="0 "+(q.margin-q.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":b["flex-direction"]="row",b.flex="none",b["overflow-x"]="auto",b.width=q.maxContainerWidth?q.maxContainerWidth+"px":void 0,
b.padding="0 "+q.margin+"px"}return b};
b2Z=function(q,N){if(N){var b=Hqd(N,Bte(q));a:switch(b){case "CONTAINER_TYPE_GRID":var y=3;break a;default:y=1}y=_.Xzd(N,q,y);var J=_.D7(y);return{containerLayoutConfig:_.qyh(q,N),containerStyles:NZZ(J,b),itemStyles:function(E,F){E={};switch(b){case "CONTAINER_TYPE_VERTICAL_LIST":F||(E["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":E.width=J.itemWidth+"px";E["margin-right"]=J.gutter/2+"px";E["margin-left"]=J.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":E.width=J.itemWidth+
"px",E.flex="none",F||(E["margin-right"]=J.gutter+"px")}return E}}}};
Z2J=function(q,N,b){if(N)return[yyn];switch(q){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[t3];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return b?[t3]:[Jye,t3];case "TRANSFER_STATE_PAUSED_BY_USER":return[Ehu,t3];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[ghA,t3];default:return[yyn]}};
FxR=function(q,N,b,y){return Z2J(q,N,y).map(function(J){var E=J.text,F=J.iconType,R=J.videoAction;J=J.playlistAction;E=E?{content:E}:void 0;F=F&&{sources:[{clientResource:{imageName:F}}]};var c=(0,_.nM.unsafeClone)(b);if(c){var z=_.v(c,_.F3),m=_.v(c,_.RD);z&&R?z.action=R:m&&J&&(m.action=J)}return{title:E,leadingImage:F,rendererContext:c&&{commandContext:{onTap:{innertubeCommand:c}}}}})};
RDh=function(q){q=_.GS(q.rendererContext);var N;return(N=_.v(q,_.RD))==null?void 0:N.playlistId};
d_u=function(q){var N;return(N=q.listItems)==null?void 0:N.some(function(b){var y;return _.Ye((y=_.v(b,_.mI))==null?void 0:y.rendererContext)})};
zDA=function(q){var N;return(N=q.listItems)==null?void 0:N.some(function(b){var y,J,E=(J=(y=_.v(b,cyA))==null?void 0:y.defaultListItem)!=null?J:b;b=_.v(E,_.mI);return!!_.v(b==null?void 0:b.leadingAccessory,u9n)})};
_.mU=function(q){var N=_.tz().resolve(_.$f(_.ft));return N!=null&&N()?q.darkThemeColorPalette:q.lightThemeColorPalette};
_.XO=function(q){return{primaryTextColor:rR(q,0),secondaryTextColor:rR(q,1),optionColor:rR(q,2),backgroundColor:rR(q,3),videoBackgroundColor:rR(q,4)}};
rR=function(q,N){if(q){switch(N){case 0:q=q.primaryTitleColor;break;case 1:q=q.secondaryTitleColor;break;case 2:q=q.surgeColor;break;case 3:q=q.section2Color;break;case 4:q=q.section3Color;break;default:return}if(q)return _.GM(q)}};
m_Z=function(q){var N=q.element;var b=q.veType;var y=q.storedVisualElement===void 0?null:q.storedVisualElement;var J=q.elementIndex===void 0?0:q.elementIndex;q=q.clientYouTubeData;var E=_.Oe();E!==$_u&&(tKu.clear(),$_u=E);if(N.visualElement&&tKu.has(N.visualElement))return null;if(y&&tKu.has(y))return N.visualElement=y,null;b=_.Zd(_.FR(),{veType:b,elementIndex:J,clientYouTubeData:q});if(!b)return null;N.visualElement=b;tKu.add(b);return b};
_.V_=function(q,N,b,y){b=b===void 0?null:b;y=y===void 0?faZ:y;var J=J===void 0?null:J;VI(function(){if(N){b instanceof Function&&(b=b());var E=m_Z({element:N,veType:q,storedVisualElement:b,clientYouTubeData:void 0});E&&(Tvn(N,J),y(E))}})};
ryJ=function(q){return q?_.Y8(q):""};
XUd=function(q){return(q==null?void 0:q.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
VKA=function(q,N){return _.Ji(q.entities,"videoOverviewAsyncDataEntity",N)};
j3A=function(q,N){var b;return"linear-gradient(to bottom, "+((b=N==null?void 0:N.map(function(y){var J=q?y.darkThemeColor:y.lightThemeColor;return J?_.Y8(J)+" "+((y==null?void 0:y.startLocation)||0)*100+"%":"transparent"}))==null?void 0:b.join(", "))+")"};
x_J=function(q,N,b,y,J){if(!((y==null?0:y.height)&&(y==null?0:y.width)))return{size:0};var E=y.width;y=y.height;if(J)return N==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||N==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&E>y?{size:312/ple}:N==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(b!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||q!==1&&q!==2||N!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&N!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&N!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(N==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||N==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||y===E)switch(q){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(N==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||y>E)switch(q){case 1:case 3:return{size:240*LcC};default:return{size:360*LcC}}switch(q){case 1:case 2:return{size:1/ple*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.vhz=function(q){if(!("matchMedia"in window))return _.bv(Error("Rh")),function(){return!1};
var N=window.matchMedia(q);q=_.Z(_.QS(N.matches,void 0,"waIHpe"));var b=q.next().value,y=q.next().value,J=function(E){y(E.matches)};
N.addEventListener?(N.addEventListener("change",J),_.W1(function(){N.removeEventListener("change",J)})):N.addListener&&(N.addListener(J),_.W1(function(){N.removeListener(J)}));
return b};
Gpz=function(q){return q==="IMAGE_BANNER_STYLE_INSET"||q==="IMAGE_BANNER_STYLE_UNKNOWN"};
Yye=function(){if(!("matchMedia"in window))return _.bv(Error("Rh")),function(){return 0};
var q=window.matchMedia("(max-width: 527.9px)"),N=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),b=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),y=window.matchMedia("(min-width: 1024px)"),J=_.Z(_.QS(q.matches,void 0,"TmIKcb")),E=J.next().value,F=J.next().value;J=_.Z(_.QS(N.matches,void 0,"Z0fTKd"));var R=J.next().value,c=J.next().value;J=_.Z(_.QS(b.matches,void 0,"w4xy7b"));var z=J.next().value,m=J.next().value;J=_.Z(_.QS(y.matches,void 0,"DrbNC"));var r=J.next().value,
X=J.next().value,V=function(k){F(k.matches)},G=function(k){c(k.matches)},w=function(k){m(k.matches)},D=function(k){X(k.matches)};
_.WC(function(){q.addEventListener?(q.addEventListener("change",V),N.addEventListener("change",G),b.addEventListener("change",w),y.addEventListener("change",D)):q.addListener&&(q.addListener(V),N.addListener(G),b.addListener(w),y.addListener(D));_.W1(function(){q.removeEventListener?(q.removeEventListener("change",V),N.removeEventListener("change",G),b.removeEventListener("change",w),y.removeEventListener("change",D)):q.removeListener&&(q.removeListener(V),N.removeListener(G),b.removeListener(w),
y.removeListener(D))})});
return function(){return E()?1:R()?2:z()?3:r()?4:0}};
Q3R=function(q){var N=0;q=_.Z([q.title,q.metadata,q.actions,q.description,q.attribution]);for(var b=q.next();!b.done;b=q.next())b.value&&N++;return N};
O2C=function(q){return q===1||q===2?1:0};
i2d=function(q){q=(new wUu).parse(q);return(new Dp).render(q).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(N){var b=N.split(":").map(Number),y=0,J=0;if(b.length===3)b=_.Z(b),y=b.next().value,J=b.next().value,b=b.next().value;else if(b.length===2)b=_.Z(b),J=b.next().value,b=b.next().value;else if(b.length===1)b=_.Z(b).next().value;else throw Error("Sh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(y*3600+J*60+b)+'" role="button">'+N+"</span>"})};
lBA=function(q){q=_.Z(q.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var N=q.next(),b={};!N.done;b={clickHandler$jscomp$5:void 0},N=q.next()){N=N.value;b.clickHandler$jscomp$5=function(J){J=Number(J.target.getAttribute("data-time"));if(isNaN(J))throw Error("Th");var E;(E=_.JO())==null||E.seekTo(J,!0)};
var y=function(J){return function(E){E.key!=="Enter"&&E.key!=="Space"||(0,J.clickHandler$jscomp$5)(E)}}(b);
N.setAttribute("tabindex","0");N.removeEventListener("click",b.clickHandler$jscomp$5);N.removeEventListener("keydown",y);N.addEventListener("click",b.clickHandler$jscomp$5);N.addEventListener("keydown",y)}};
Kxn=function(){return _.u("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.u(jP,{percentWidth:100}),_.u(jP,{animationDelay:200}),_.u(jP,{animationDelay:400}),_.u(jP,{animationDelay:600}),_.u(jP,{animationDelay:800,percentWidth:60}),_.u("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.u(jP,{percentWidth:100}),_.u(jP,{animationDelay:200}),_.u(jP,{animationDelay:400}),_.u(jP,{animationDelay:600,percentWidth:50}))};
jP=function(q){return _.u("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(q.percentWidth===void 0?100:q.percentWidth)+"%"},_.u("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(q.animationDelay===void 0?0:q.animationDelay)+"ms"}))};
D_J=function(){var q=_.Z(_.QS(function(){return""},void 0,"dXJHWc")),N=q.next().value;
return[function(){return N()()},
q.next().value]};
hDR=function(q,N){q=q?mfd(q):"";N!==void 0&&isFinite(N)?N===0?N=_.FE("UPDATING",void 0,"Updating..."):(N=KyA(new Date(N),new Date),N=_.FE("UPDATED_TIME",{relative_time:N},"Updated "+N)):N="";var b="";q&&N&&(b=" \u2022 ");return _.o5(q+b+N)};
fBn=function(q,N,b,y,J,E){N=N===void 0?0:N;var F=kpe[N],R=F.title,c=F.iconType,z=F.topButtonRenderer,m=F.sectionClientVE;F=F.videoClientVE;var r;if(N!==1||q.length){b=[];q=_.Z(q);for(y=q.next();!y.done;y=q.next()){var X=y.value;if(EYR(X))b.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:X.videoEntity.videoId,title:Ae(X.videoEntity.title),shortBylineText:Ae(X.channelEntity.title),thumbnail:X.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:X.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.FE("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:F}}}}}});else if(J$n(X)){y=b;var V=y.push;var G=void 0,w=void 0,D=void 0,k=void 0,f=void 0,L=void 0,S=void 0,W=void 0,M=X.mainPlaylistEntity.playlistId,qe=X==null?void 0:(W=X.mainPlaylistEntity)==null?void 0:(S=W.thumbnailStyleData)==null?void 0:(L=S[0])==null?void 0:(f=L.value)==null?void 0:(k=f.collageThumbnail)==null?void 0:k.coverThumbnail;k=CoZ(M);if(!_.x("enable_offline_playlist_page")&&
(X==null?0:(D=X.mainPlaylistEntity)==null?0:D.videos)){b:{D=X==null?void 0:(w=X.mainPlaylistEntity)==null?void 0:w.videos;w=_.WT().getState().entities;if(D!=null&&D.length&&w)for(D=_.Z(D),f=D.next();!f.done;f=D.next())if(f=_.qR(f.value).entityId,(f=JSON.parse(f).videoId)&&MUe(w,f)==="TRANSFER_STATE_COMPLETE"){w=f;break b}w=""}w!==void 0&&(k=DC(_.WT().getState(),w),k=_.Mc(w,M,void 0,void 0,k))}w=Tez(_.FE("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),CoZ(M));X=M&&qe&&w?{playlistId:M,navigationEndpoint:k,
viewPlaylistText:w,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:qe}},title:Ae(X.mainPlaylistEntity.title),shortBylineText:Ae(X==null?void 0:(G=X.channelEntity)==null?void 0:G.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:U_n,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:M,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.FE("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:F}}}:
void 0;V.call(y,{gridPlaylistRenderer:X})}}F={gridRenderer:{items:b}};N===1&&(r=hDR(J,E))}else if(y){var RJ=_.o5((V=b==null?void 0:b.localizedPromptMessage)!=null?V:"");F={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.o5(_.FE("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.vYh}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.o5(_.FE("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};r=hDR(J,E)}else RJ=_.o5(_.FE("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
F={};return{contents:[{shelfRenderer:{title:R,titleAnnotation:r,icon:{iconType:c},subtitle:RJ,content:F,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:z}]}}}}],loggingDirectives:{clientVeSpec:{uiType:m}}}};
CVA=function(q,N,b,y,J,E,F,R,c,z,m){b=b===void 0?{}:b;y=y===void 0?{}:y;J=J===void 0?!1:J;E=E===void 0?!1:E;F=F===void 0?!1:F;R=R===void 0?!1:R;c=c===void 0?!1:c;z=z===void 0?0:z;m=m===void 0?-Infinity:m;if(!(N.length||q.length||J||R))return E?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:yhZ(b)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.o5(_.FE("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 r=[];q.length&&r.push(fBn(q,0));R?r.push({contents:[{statementBannerRenderer:Fpd(c,y)}]}):J?r.push(fBn(N,1,b,F,z,m)):E&&r.push({contents:[{statementBannerRenderer:EkC(b)}]});(J&&N.length||q.length)&&r.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.o5(_.FE("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 r.map(function(X){return{itemSectionRenderer:X}})};
xA=function(q,N){if(typeof q!=="object")return null;q=_.Z(Object.entries(q));for(var b=q.next();!b.done;b=q.next()){var y=_.Z(b.value);b=y.next().value;y=y.next().value;if(b===N)return b;if(y=xA(y,N))return b+"."+y}return null};
vD=function(q){var N=q.content;return(q=q.styleRuns)&&N?{runs:q.map(function(b){var y={text:N.slice(b.startIndex,b.startIndex+b.length)};b.fontColor&&(y.textColor=b.fontColor);return y})}:{simpleText:N}};
s3C=function(q,N,b,y){var J=IBe;y&&(q.quantity=y);if(!q.quantity||!q.maxQuantity)return{};y=q.minusButton;var E=q.plusButton,F,R,c,z;return{value:q.quantity,maxValue:q.maxQuantity,onChangeCallback:function(m){J(q,m)},
minusLabel:(F=_.v(y,TZh))==null?void 0:F.label,minimumReachedLabel:(R=_.v(y,TZh))==null?void 0:R.limitReachedLabel,plusLabel:(c=_.v(E,TZh))==null?void 0:c.label,maximumReachedLabel:(z=_.v(E,TZh))==null?void 0:z.limitReachedLabel,disabled:N,onRemoveCommand:b}};
IBe=function(q,N){var b=q.quantityIncrementerEntityKey;if(b){var y={};y.quantity=N;_.nk(_.GK("quantityIncrementerEntity",b,y));q.onChangeCommand&&_.Kt(q.onChangeCommand)}};
nhn=function(q){if(q)return q===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(q).overflowY)?q:nhn(q.parentElement)};
Wxd=function(q,N){(q=aBd(q))&&((_.x("enable_mini_app_command_handler_mweb_fix")?0:N)?SyA.push({command:q,sourceData:{},commandContext:void 0}):_.tz().resolve(_.rO).resolveCommand(q))};
aBd=function(q){return _.v(q,_.QI)};
Lxe=function(){var q=window.performance.timeOrigin+window.performance.now(),N=(new _.YA).setSeconds(q/1E9);return _.NB(N,2,_.Rf(q%1E9),0)};
PVJ=function(q,N){var b;q=(b=_.v(_.v(q,_.QI),pUh))==null?void 0:b.methodName;var y,J;(b=window.youtubewebview||((y=window.webkit)==null?void 0:(J=y.messageHandlers)==null?void 0:J.youtubewebview))&&q&&(y=new Q_,q=_.Up(y,1,q),q=_.Uf(q.JSC$12628_serializeBinary()),N=_.Uf(N),b.postMessage(q+","+N))};
OA=function(q,N){var b=_.v(_.v(q,_.QI),pUh);b&&(N&&(b.serializedAdditionalMetadata=_.Uf(N)),Wxd(q,!0))};
MKh=function(q){switch(q){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"}};
ohz=function(){return!!_.M7("ID_TOKEN")};
BZd=function(q){return q instanceof Error&&q.cause instanceof AyA&&q.cause.rpcErrorCode!==void 0?!eDz.includes(q.cause.rpcErrorCode):!0};
qzd=function(){return _.F$(H2A,{authuser:""+(_.M7("SESSION_INDEX")||0)})};
wR=function(q,N,b,y){b=b===void 0?"MINI_APP_SDK_API_UNSPECIFIED":b;y=y===void 0?"":y;var J=new _.IO;b={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:y,sdkApi:b};q instanceof Error&&(J.message=q.message,J.name=q.name,q.cause instanceof AyA&&q.cause.rpcErrorCode!==void 0&&(b.rpcErrorCode=q.cause.rpcErrorCode));var E;(E=N.onError)==null||E.call(N,{loggingError:J,metadata:b})};
bsC=function(q,N,b,y){switch(q){case "MINI_APP_SOURCE_GAMESNACKS":return new ik(N,b,y);default:return new N$J(N,b,y)}};
yuZ=function(q){switch(q){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"}};
Jun=function(q){switch(q){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"}};
EVz=function(q){switch(q){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"}};
gVd=function(){return Math.floor(Math.random()*4)+1};
ZsA=function(q,N,b,y){q=_.Z(Object.entries(q));for(var J=q.next(),E={};!J.done;E={message$jscomp$995:void 0},J=q.next()){var F=_.Z(J.value);J=F.next().value;F=F.next().value;E.message$jscomp$995=F;N.push(setTimeout(function(R){return function(){y(!1);b(R.message$jscomp$995.text)}}(E),E.message$jscomp$995.delayMs));
Number(J)>0&&N.push(setTimeout(function(){y(!0)},E.message$jscomp$995.delayMs-400))}};
Fkh=function(q,N){var b=b===void 0?faZ:b;_.x("mweb_fix_monitor_visibility_after_render")?q&&VI(function(){Tvn(q,N,b)}):VI(function(){Tvn(q,N,b)})};
R5h=function(q,N){var b=document.createElement("ytd-engagement-panel-section-list-renderer");b.data=q;var y=N!=null?N:{};q=y.isPersistentPanel;N=y.hideDelayMs;y=y.overscrollContain;q=Object.assign({},q&&{isPersistentPanel:q},N&&{hideDelayMs:N},y&&{overscrollContain:y});Object.assign(b,q);return b};
z5D=function(q){din||(din=cun(new _.fD(1,void 0,void 0,ujn),0));var N=din.format(Math.floor(q));N=hi==="be"||hi==="bg"||hi==="es"||hi==="et"||hi==="hu"||hi==="ka"||hi==="lv"||hi==="pl"||hi==="pt-PT"||hi==="sq"?N.replace(new RegExp("^(\\d)"+ujn.GROUP_SEP.replace(".","\\.")+"(\\d+("+ujn.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):N;return q>=1E3&&q<=9999&&N[1]==="."&&(hi==="sl"||hi==="it")?N.replace(".",""):N};
miR=function(q,N,b,y){if(q)return y=y||q.likeStatus,N?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:y==="LIKE",isDisabled:!q.likesAllowed,defaultIcon:{iconType:b},defaultText:y==="LIKE"?q.likeCountWithUnlikeText:q.likeCountText,toggledText:y==="LIKE"?q.likeCountText:q.likeCountWithLikeText,defaultNavigationEndpoint:$in(q,"LIKE"),defaultServiceEndpoint:thu(q,"LIKE"),toggledServiceEndpoint:thu(q,"INDIFFERENT"),defaultTooltip:_.ao(q.likeCountTooltipText),toggledTooltip:_.ao(q.likeCountTooltipText),
targetId:q.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:y==="DISLIKE",isDisabled:!q.likesAllowed,defaultIcon:{iconType:b},defaultText:y==="DISLIKE"?q.dislikeCountWithUndislikeText:q.dislikeCountText,toggledText:y==="DISLIKE"?q.dislikeCountText:q.dislikeCountWithDislikeText,defaultNavigationEndpoint:$in(q,"DISLIKE"),defaultServiceEndpoint:thu(q,"DISLIKE"),toggledServiceEndpoint:thu(q,"INDIFFERENT"),defaultTooltip:_.ao(q.dislikeCountTooltipText),
toggledTooltip:_.ao(q.dislikeCountTooltipText)}};
$in=function(q,N){if(N==="LIKE")return q.likeCommand;if(N==="DISLIKE")return q.dislikeNavigationEndpoint};
thu=function(q,N){var b;return(b=q.serviceEndpoints)==null?void 0:b.find(function(y){var J;return((J=_.v(y,_.lk))==null?void 0:J.status)===N})};
_.Vhn=function(q,N,b){return window.spf&&!_.x("web_disable_spfjs_client")?rue(q,N,b):X5d(q,N)};
rue=function(q,N,b){var y=null,J=(new _.wL(function(E,F){var R={};if(N){R.method=N.method;var c=N.postParams||{};mcA(q,N)&&(c[_.M7("XSRF_FIELD_NAME")]=_.M7("XSRF_TOKEN"));R.postData=_.lv(c);N.type&&(R.type=N.type);c=N.headers}R.headers=dcC(q,c);_.x("debug_forward_web_query_parameters")&&(q=_.$cn(q,window.location.search));R.experimental_headers=R.headers;R.onError=function(z){z.err&&z.xhr&&(z.err.params={url:z.xhr.responseURL,response:z.xhr.responseText.substr(0,64)});F(z.err)};
R.onPartDone=function(z){b&&b.call(null,z.part)};
R.onDone=function(z){var m=jvu(z.response,"xsrf_token");c4(window.location.href,q)&&m&&_.PC("XSRF_TOKEN",m);if(m=jvu(z.response,"service_worker_killswitch"))_.PC("SERVICE_WORKER_KILLSWITCH",m),myu();E(z.response)};
y=spf.request(q,R)})).then(xiu);
J.thenCatch(function(E){var F=E instanceof _.K0,R=E&&E.hasOwnProperty("params")&&E.params.response?E.params.response:"";E instanceof Error&&(R?F?H6C(E):R===')]}\'\n{"reload":"now"}'?H6C(E):(vVD(E,q,R),GUR(E,R)?_.M6(E):_.po(E)):H6C(E));y&&y.abort()});
return J};
xiu=function(q){if(q.type==="multipart"){var N=q.timing;q=q.parts.reduce(function(b,y){Object.assign(b,y);return b},{});
q.timing=q.timing||{};Object.assign(q.timing,N);q.type="reduced"}return q};
X5d=function(q,N){N=N===void 0?{}:N;var b=null,y=new _.wL(function(J,E){N.onFinish=function(F){if(F.readyState===XMLHttpRequest.DONE)if(F.status===200){if(F.responseType!=="json"){var R=F.response;R.substring(0,5)===")]}'\n"&&(R=R.substring(5));try{var c=JSON.parse(R)}catch(z){c=z}}else c=F.response;c instanceof Error?E(c):(R=jvu(c,"xsrf_token"),c4(window.location.href,q)&&R&&_.PC("XSRF_TOKEN",R),F=F.responseURL,window.performance&&window.performance.getEntriesByName?(R=window.performance.getEntriesByName(F).pop())?
F={responseStart:(0,_.mA)()-(R.responseEnd-R.responseStart)}:(Math.random()<.01&&(R=Error("ei"),R.params=F,_.M6(R)),F={responseStart:-1}):F={responseStart:0},c.timing=c.timing||{},Object.assign(c.timing,F),J(c))}else E(Error("di`"+F.status))};
(b=_.iv(q,N))||E(Error("di`"+b.status))});
y.thenCatch(function(J){J instanceof Error&&(vVD(J,q),GUR(J)&&(J.level="WARNING"))});
_.x("cancel_pending_navs")&&y.thenCatch(function(){b.abort()});
return y};
jvu=function(q,N){var b=q[N],y=q.parts;q.type==="multipart"&&y&&(b=(q=y.find(function(J){return N in J}))&&q[N]);
return b};
vVD=function(q,N,b){var y=q.message||"";N={original:y,url:N};if(b)if(y=y.match(/position:?\s*(\d+)/)){y=y&&Number(y[1])?Number(y[1]):0;var J=Math.max(y-25,0);N.position=y;N.response=b.substring(J,y+25)}else N.response=b.substring(0,50);_.op(q,N);try{q.message="JSON parse error"}catch(E){}};
GUR=function(q,N){q=q.message||"";q=!!(q.indexOf("<")>=0||q.indexOf("end of ")>=0||q.indexOf("Unterminated string")>=0||q.indexOf("Unexpected EOF"));if(!q&&N)for(var b=N.length,y=!1,J=0;J<b;J++)if(y&&N[J]==="\\")J++;else if(N[J]==='"')y=!y;else if(N[J]==="<"&&!y){q=!0;break}return q};
Yze=function(){return document.documentElement.hasAttribute("dark")};
_.QvZ=function(q,N){if(q!=="GFEEDBACK"&&q!=="GUIDED_HELP")_.HC(Error("fi`"+q));else{var b=_.tz().resolve(_.$f(_.L6));if(b&&(b=b.getCurrentPage())&&b.getServiceTrackingParams&&(b=b.getServiceTrackingParams()))for(var y=0,J;J=b[y++];)if(J.service===q){if(q=J.params)for(b=0;y=q[b++];)N[y.key]=y.value;break}}};
_.OsZ=function(q){var N=_.Pk();N&&(N=N.getPlayer())&&(N.pauseVideo(),q.playback_id=N.getVideoData().cpn,q.eid=N.getVideoData().eventId,Object.assign(q,N.getFeedbackProductData()))};
w5d=function(){var q={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.M7("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(q.enableAnonymousFeedback=!0);_.M7("SESSION_INDEX")&&(q.authuser=String(_.M7("SESSION_INDEX")));_.x("enable_pageid_for_feedback")&&_.M7("DELEGATED_SESSION_ID")&&(q.pageId=String(_.M7("DELEGATED_SESSION_ID")));return q};
_.DI=function(q){_.x("enable_ypc_spinners")&&_.By(q,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},q])};
_.h3=function(q){_.x("enable_ypc_spinners")&&_.By(q,"yt-close-popup-action",["yt-loading-renderer"])};
isA=function(q){return new Promise(function(N,b){_.wa({verifyCommand:{recaptchaToken:q.recaptchaResponse}},{commandController:{onSuccess:function(y,J){J||b("ChallengeService did not return a response.");var E;N({challengeCompleted:(E=J.verified)!=null?E:!1})},
onServerError:function(y,J){b(J)}}})})};
lxh=function(q,N,b,y){N({recaptchaResponse:y}).then(function(J){J.challengeCompleted?_.UV()?(b(3),_.tz().resolve(_.rO).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:q}})):b(2):b(4)},function(){b(4)})};
Din=function(q,N,b){_.kU(_.Xe(KkZ,_.M7("HL")),function(){var y;(y=window.grecaptcha)==null||y.ready(function(){var J=window.grecaptcha;J?(b(J.render(q,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:lxh.bind(null,q,isA,N)})),N(1)):N(4)})})};
h5h=function(q,N){return function(){switch(N()){case 0:return q().captchaLoadingMessage;case 1:return q().challengeReason;case 3:return q().captchaSuccessfulMessage;case 2:return q().captchaCookieSetFailureMessage;case 4:return q().captchaFailedMessage;default:return q().challengeReason}}()};
_.kA=function(){if(!kUZ){var q=document.querySelector("#player.skeleton");q&&(_.lC(q),kUZ=!0)}};
_.fxd=function(){return UiJ=vtJ()};
T$z=function(){return _.d(function(q){return CAz!==void 0?q.return():q.yield(IxD(),0)})};
IxD=function(){return _.d(function(q){if(q.nextAddress==1)return q.yield(YoJ(),2);UiJ=q.yieldResult;CAz=_.pY.addLowPriorityJob(IxD,5E3);_.hj(q)})};
LkJ=function(q){var N=N===void 0?svD:N;var b,y,J=(b=q.responseContext)==null?void 0:(y=b.mainAppWebResponseContext)==null?void 0:y.trackingParam;if(!J){N.increment("MISSING");var E,F,R,c,z,m;_.M6(new _.IO("282054944_a",{sNR:!!((E=q.responseContext)==null?0:(F=E.mainAppWebResponseContext)==null?0:F.loggedOut),dHJ:((R=q.responseContext)==null?void 0:R.mainAppWebResponseContext)===void 0,bJJ:q.responseContext===void 0,cp:(c=q.playabilityStatus)==null?void 0:c.contextParams,bnm:(((z=q.streamingData)==
null?void 0:z.formats)||[]).length>0,azQ:(((m=q.streamingData)==null?void 0:m.adaptiveFormats)||[]).length>0,os:!!q.offlineState,cotn:q.cotn}));return 2}b="";try{b=nVA(J)}catch(V){return N.increment("C_ERROR"),_.po(V),2}try{var r=_.axh(b);var X=Szu(r)}catch(V){return N.increment("P_ERROR"),_.po(V),2}X=_.zP(X,WkC,1,_.$N());J=[];X=_.Z(X);for(r=X.next();!r.done;r=X.next())y=r.value,r=y.getPath(),b=(0,_.nM.getValueByKeys)(q,r.split(".")),b=String(b===void 0||b===null?"":b),y=y.getValue()||"",E=/[+\-\/_]/g,
b.replace(E,"")!==y.replace(E,"")&&(N.increment("MISMATCH"),_.x("ab_mis_log_err")&&(b=new _.IO("282054944_p",{qUD:r,g:String(b),e:String(y)}),_.po(b)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(r)||(r.match(/enforcementMessageViewModel/i)?J.push(3):J.push(2)));if(J.length>0)return Math.max.apply(Math,_.a9(J));N.increment("SUCCESS");return 1};
MhJ=function(q){var N=new UA;if(q.interpreterJavascript){var b=_.pPh(q.interpreterJavascript);b=Zb(b).toString();var y=new p5J;_.Up(y,6,b);_.ws(N,1,y,f1)}else q.interpreterUrl&&(b=_.Pv(q.interpreterUrl),b=_.kB(b).toString(),y=new _.PAu,_.Up(y,4,b),_.ws(N,2,y,f1));q.interpreterHash&&_.f0(N,3,q.interpreterHash,f1);q.program&&_.f0(N,4,q.program,f1);q.globalName&&_.f0(N,5,q.globalName,f1);q.clientExperimentsStateBlob&&_.f0(N,7,q.clientExperimentsStateBlob,f1);return N};
C0=function(q){var N={};q=_.Z(q.split("&"));for(var b=q.next();!b.done;b=q.next())b=b.value.split("="),b.length===2&&(N[b[0]]=b[1]);return N};
oVD=function(q){return Number(q.t)||7200};
Swd=function(){if(_.x("bg_st_hr"))return"havuokmhhs-0";var q,N=((q=globalThis.performance)==null?void 0:q.timeOrigin)||0;return"havuokmhhs-"+Math.floor(N)};
Aud=function(){return new Promise(function(q){var N=window;N.ntpevasrs!==void 0?q(new Im(N.ntpevasrs)):(N.ntpqfbel===void 0&&(N.ntpqfbel=[]),N.ntpqfbel.push(function(b){q(new Im(b))}))})};
e5J=function(q){var N=q.cUS.bind(q);_.zn("yt.aba.att",N);q=q.xoF.bind(q);_.zn("yt.aba.att2",q)};
Hsd=function(q){switch(_.wO(q.input)){case _.LD(B$n):var N={};return N.encryptedVideoId=q.innerTubeRequest.externalVideoId,N}return{}};
bbA=function(q){switch(_.wO(q.input)){case _.LD(B$n):if(_.x("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.LD(qFe):if(_.x("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.LD(TK):if(_.x("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&q.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.LD(NfZ):var N,b;if(_.x("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((b=_.v((N=q.config)==null?void 0:N.command,_.aE))==null?0:b.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.JHA=function(q){var N;if(q.playlistVideoRenderer&&((N=q.playlistVideoRenderer)==null?0:N.engagementBar))return yHA(q.playlistVideoRenderer.engagementBar);if(_.v(q,sA)){var b;if(q=(b=_.v(q,sA))==null?void 0:b.engagementBar)return yHA(q)}return""};
yHA=function(q){if(!q)return"";q=_.v(q,_.EuC);if(q==null||!q.actions)return"";q=_.Z(q.actions);for(q=q.next();!q.done;q=q.next()){q=_.v(q.value,_.guJ);var N=void 0;if((N=q)==null||!N.itemId)break;return q.itemId}return""};
_.Zbd=function(q){var N;if(q.playlistVideoRenderer&&((N=q.playlistVideoRenderer)==null?0:N.videoId))return q.playlistVideoRenderer.videoId;if(_.v(q,sA)){var b,y;if(q=(b=_.v(q,sA))==null?void 0:(y=b.playlistItemData)==null?void 0:y.videoId)return q}return""};
_.Fru=function(q){var N;if(q.playlistVideoRenderer&&((N=q.playlistVideoRenderer)==null?0:N.voteCount))return q.playlistVideoRenderer.voteCount;if(_.v(q,sA)){var b,y;if(q=(b=_.v(q,sA))==null?void 0:(y=b.playlistItemData)==null?void 0:y.voteCount)return q}return 0};
_.n0=function(q,N){return _.Ji(q.entities,"flowStateEntity",N)};
dZR=function(q,N,b,y){var J=void 0;q=_.Z(q[N.iconName]||[]);for(var E=q.next();!E.done;E=q.next()){E=E.value;var F=N.iconSize;var R=N.iconStyle;F=!F||F===E[2];var c=RzJ[E[0]];y&&y!==E[1]||!F||R&&R!==c?R=!1:J?(R=RzJ[E[0]],R=!!N.iconStyle||R==="youtube_outline",F=J.version<=E[1],R=(!!N.iconSize||E[2]===24)&&R&&F):R=!0;R&&(J={name:N.iconName,style:RzJ[E[0]],size:E[2],version:E[1],allowMirroring:!!E[3],url:b(N.iconName,E)})}return J};
cHh=function(q,N,b,y){return q+(""+RzJ[b[0]]+((y===void 0?0:y)?"_experimental":"")+"/"+N+"/v"+b[1]+"/")+(b[2]+"px.svg")};
uSC=function(q){return _.M7("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.M7("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":q};
zzZ=function(q,N){return cHh("https://fonts.gstatic.com/s/i/",q,N)};
$Zu=function(q,N){return cHh("https://fonts.gstatic.com/s/i/",q,N,!0)};
tZu=function(q,N){return cHh("https://www.gstatic.com/youtube/img/icons/web/",q,N)};
rHZ=function(q){var N=q.enabled;var b=q.itemPlaybackModel;var y=q.thumbnailElRef;var J=q.containerElRef;var E=q.options;var F;_.Sx(function(){var R=J==null?void 0:J.value;var c,z=(c=y())==null?void 0:c.value;c=b();var m=E();if(N&&c&&R&&z&&(m==null?0:m.thumbnail)){var r={data:c,hostElement:R},X,V,G=[].concat(_.a9((X=m.thumbnailOverlays)!=null?X:[]),_.a9((V=c.overlays)!=null?V:[]));V=c.itemPlaybackOptions;X=(V==null?void 0:V.enableRoundedPlayer)||m.enableRounding;V=V==null?void 0:V.disableTimeStatusOverlay;
var w,D;R={mediaRenderer:r,lockupElement:R,thumbnailElement:z,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.O_((w=c.inlinePlayerData)==null?void 0:w.onVisible),navigationEndpoint:_.O_((D=c.inlinePlayerData)==null?void 0:D.onSelect),thumbnail:m.thumbnail,thumbnailOverlays:G,accessibilityText:m.accessibilityText||""},thumbnailSize:m.thumbnailSize,enableRounding:X,mouseleaveCallback:m.mouseleaveCallback,hideTimeDisplay:V}}}else R=void 0;if(w=R){var k;(k=F)==null||am(k);F=ix(w);var f,L;
((f=b())==null?0:(L=f.inlinePlayerData)==null?0:L.forceImpAutoplay)&&mZz(F)}},"BLiQOd");
_.W1(function(){var R;(R=F)==null||am(R)})};
XNZ=function(q){q=atob(q);for(var N=[],b=0;b<q.length;b++)N.push(q.charCodeAt(b));return new Blob([new Uint8Array(N)],{type:"image/png"})};
j_n=function(q,N,b,y){y=y===void 0?"INSERTION_POSITION_UNSPECIFIED":y;return q({targetId:N},function(J){var E,F=(E=J.contents)!=null?E:[];E=b!=null?b:[];var R=VZZ(F);switch(y){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},J,{contents:[].concat(_.a9(F.slice(0,R)),_.a9(E),_.a9(F.slice(R+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},J,{contents:[].concat(_.a9(E),_.a9(F))});case "INSERTION_POSITION_LAST":return Object.assign({},J,{contents:[].concat(_.a9(F),_.a9(E))});
default:return J}})};
vuu=function(q,N,b,y,J){J=J===void 0?"RELATIVE_INSERTION_POSITION_AFTER":J;return q({targetId:N},function(E){var F,R=(F=E.contents)!=null?F:[];F=xZh(R,b);if(F<0)return E;F=J==="RELATIVE_INSERTION_POSITION_BEFORE"?F:F+1;return Object.assign({},E,{contents:[].concat(_.a9(R.slice(0,F)),_.a9(y),_.a9(R.slice(F)))})})};
VZZ=function(q){var N=q.findIndex(function(b){return _.v(b,_.SP)});
return N>=0?N:q.length};
xZh=function(q,N){return q.findIndex(function(b){a:{b=_.Z(Object.values(b));for(var y=b.next();!y.done;y=b.next())if((y=y.value)&&y.targetId){b=y.targetId;break a}b=""}return b===N})};
YFn=function(q,N,b){return q({targetId:N},function(y){var J,E=(J=y.contents)!=null?J:[];return Object.assign({},y,{contents:GAd(E,b)})})};
GAd=function(q,N){return q.filter(function(b){var y=N.includes;a:{b=_.Z(Object.values(b));for(var J=b.next();!J.done;J=b.next())if((J=J.value)&&J.targetId){b=J.targetId;break a}b=""}return!y.call(N,b||"")})};
_.Q_R=function(q,N){return{engagementPanelSectionListRenderer:{panelIdentifier:q,identifier:N,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
ObR=function(q,N){q=q.getAvailableAudioTracks();if(q.length)return q==null?void 0:q.find(function(b){var y;return(b==null?void 0:(y=b.getLanguageInfo())==null?void 0:y.getId())===N})};
_.ibn=function(q){var N,b=(N=q.getOption("captions","tracklist",{includeAsr:!0}))!=null?N:[];return b=wND(b,q)};
l5n=function(q){return q.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
wND=function(q,N){N=l5n(N);if(N==null||!N.length)return q;var b=N.filter(function(F){return F});
N=q.filter(function(F){return F.languageCode.startsWith("en")});
b=_.Z(b);for(var y=b.next();!y.done;y=b.next())if(y=y.value,N.length){var J=N[0],E=Object.assign({},J);J.languageCode!==y.languageCode&&(E.displayName=J.languageName+" >> "+y.languageName,E.translationLanguage=y,q.push(E))}return q};
Krz=function(q,N,b){q=_.ibn(q);if(q.length)return b?q.find(function(y){if(typeof(y==null?void 0:y.translationLanguage)==="object"){var J;return((J=y.translationLanguage)==null?void 0:J.languageCode)===N}return!1}):q==null?void 0:q.find(function(y){return y.languageCode===N})};
DZJ=function(q){return q.getOption("captions","tracklist",{includeAsr:!0})};
hzh=function(q){var N=q.getAvailableAudioTracks();if(N!=null&&N.length){var b=q.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.a9(N.map(function(y){return{listItemViewModel:{title:{content:y.getLanguageInfo().getName()},isSelected:y.getLanguageInfo().getId()===(b==null?void 0:b.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:y.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
kAA=function(q){return q.getOption("captions","tracklist",{includeAsr:!0})};
UZJ=function(q){var N=kAA(q);if(N==null?0:N.length)return N;q.loadModule("captions");return kAA(q)};
f5n=function(q){var N=q.getOption("captions","track");if(N)return N;q.loadModule("captions");return q.getOption("captions","track")};
I5D=function(q){var N=UZJ(q);if(N!=null&&N.length){var b=f5n(q),y;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.FE("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(b==null?0:b.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.a9(N.map(function(J){return{listItemViewModel:{title:{content:J.displayName},
isSelected:J.displayName===(b==null?void 0:b.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:J.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.FE("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!b.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!b.translationLanguage&&{selectionText:{content:(b==null?void 0:(y=b.translationLanguage)==null?void 0:y.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[C6n(q)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
C6n=function(q){var N=l5n(q);if(N==null||!N.length)throw Error("Ei");var b=f5n(q);q=N.filter(function(y){return!y.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.a9(q.map(function(y){var J;return{listItemViewModel:{title:{content:y.languageName},isSelected:y.languageName===(b==null?void 0:(J=b.translationLanguage)==null?void 0:J.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:y.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
a5A=function(q){return new Promise(function(N,b){if(q===void 0)_.po(Error("Ii"),"ERROR"),b(Error("Ii"));else{b=new _.TfJ;var y=_.s_D();b=b.init();var J=_.nuR(_.M7("YPC_MB_URL"),!0);Promise.all([b,J]).then(function(){var E=_.WD.payments.business.integration.ClientTokenFactory.createClientToken(q,y);N(E)})}})};
LrR=function(q,N,b,y,J,E,F){var R=_.T4();b=b.replace(/-/g,"+").replace(/_/g,"/");var c=_.c3().get("hl"),z=_.L0(_.TM),m=N==null?void 0:N.element;m&&_.DI(m);SFR(N,!0);_.Wrd(z,b,R.resolve,function(){m&&_.h3(m)},function(r){m&&_.h3(m);
R.reject(r)},c,y?function(r){y&&_.IE(q,y,{backend_analytics:r})}:void 0,R.resolve,J,E,F);
return R.promise};
SFR=function(q,N){!(q=q==null?void 0:q.element)||q.tagName!=="YT-BUTTON-RENDERER"&&q.tagName!=="YTD-BUTTON-RENDERER"||(q.disabled=N)};
pNC=function(){var q=_.FE("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.o5(q),actionButton:{buttonRenderer:qZC()}}},popupType:"TOAST"}};
P6d=function(){var q=_.FE("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.o5(q),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
MZR=function(q){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:q}]}}};
p0=function(q,N,b,y){var J;return _.d(function(E){if(E.nextAddress==1)return _.Yi(E,2),E.yield(q,4);if(E.nextAddress!=2)return(J=_.ti(N.getState().entities).length>0)?E.return({title:_.o5(_.FE("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.o5(_.FE("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:HHz()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
E.return(Ntu(b,y));_.K7(E);return E.return(Ntu(b,y))})};
ouD=function(q,N){return N?N==="PPSV"||ePe(q,N):!1};
AHd=function(q){q.responseContext||(q.responseContext={});q.responseContext.maxAgeSeconds=0;return q};
M1=function(q){var N;return _.d(function(b){return b.nextAddress==1?b.yield(ezJ(q,"service:topbar:fallback"),2):(N=b.yieldResult)&&_.PD(N)?b.return(AHd(_.PD(N))):b.return()})};
BfD=function(q){var N;return _.d(function(b){return b.nextAddress==1?b.yield(ezJ(q,"service:downloads_settings:fallback"),2):(N=b.yieldResult)&&_.PD(N)?b.return(N):b.return()})};
ezJ=function(q,N){var b;return _.d(function(y){if(y.nextAddress==1)return q?y.yield(q.get(N),2):y.return();b=y.yieldResult;return!b||!_.PD(b)||!isNaN(Number(b.data.expireTimestampMs))&&b.isExpired()?y.return():y.return(b)})};
Hbd=function(q){var N=_.tz().resolve(BD).getState().entities;return q.playlistId?ouD(N,q.playlistId):!1};
NuJ=function(q){var N=_.VX("web_pbj_log_warning_rate",0);N=N>0&&Math.random()<N;if(!_.v(q,_.uI))return N&&_.M6(Error("bj")),!1;var b;return _.x("shorts_controller_retrieve_seedless_sequence_v2")&&((b=_.v(q,_.uI))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:qGn(q)?!0:(N&&_.M6(Error("cj")),!1)};
qGn=function(q){var N=(_.v(q,_.nx)||_.v(q,_.uI)).videoId;if(!N||!bKA.test(N))return!1;var b;return(q=(b=_.v(q.commandMetadata,_.gg))==null?void 0:b.url)&&(q.includes(N)||q.startsWith("/clip"))?!0:!1};
_.Jpn=function(){var q=_.c3();return q.getFlag(192)?q.getFlag(190):!(_.x("web_watch_cinematics_disabled_by_default")||_.x("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&ypz())};
_.HD=function(q,N,b){var y={};y.currentUrl=N;y.vis=q.vis!==void 0?q.vis:0;y.splay=!1;N=_.c3();y.autoCaptionsDefaultOn=N.getFlag(66);N.getFlag(141)?N.getFlag(140)?y.autonavState="STATE_OFF":y.autonavState="STATE_ON":y.autonavState="STATE_NONE";y.html5Preference="HTML5_PREF_WANTS";isNaN(_.M7("STS"))||(y.signatureTimestamp=_.M7("STS"));q.autonav&&(y.autoplay=!0,y.autonav=!0);q.mutedAutoplay&&(y.autoplay=!0,y.mutedAutoplay=!0);q.inlinePlayback&&(y.autoplay=!0,y.autonav=!1,y.isInlineUnmutedPlayback=!!q.inlineUnmuted);
y.referer=b;y.lactMilliseconds=q.lact!==void 0?q.lact.toString():"-1";_.x("enable_unknown_lact_fix_on_html5")&&y.lactMilliseconds==="-1"&&_.M6(new _.IO("Unknown LACT is set in playbackContext.",{"lact in tempData":q.lact||"undefined",autonav:q.autonav||"undefined"}));q={};N.getFlag(194)&&(q.hasShownAmbientMode=!0);N.getFlag(192)&&(q.hasToggledOffAmbientMode=!0);_.Jpn()&&(q.watchAmbientModeEnabled=!0);y.watchAmbientModeContext=q;return y};
EvJ=function(q){var N={},b=q.pbis||0;b&&(N.playbackBeginsInSeconds=b);q.prefetch_reason&&q.prefetch_reason==="hc_pbis"&&(N.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return N};
gvJ=function(q,N){var b;if(N==null?0:(b=N.requestTemplate)==null?0:b.panelId)q.panelId=N.requestTemplate.panelId;var y;if(N==null?0:(y=N.requestTemplate)==null?0:y.params)q.params=N.requestTemplate.params};
Fgz=function(){if(ZKA)return ZKA();var q=!_.x("idb_response_store_auth_killswitch"),N={};ZKA=tS("yt-it-response-store",{objectStores:(N.ResponseStore={addedAtVersion:1},N),shared:!q,upgrade:function(b,y){y(1)&&(b=Hv(b,"ResponseStore",{keyPath:["key","clientName"]}),q6(b,"byExpiration","expireTimestampMs"),q6(b,"byInterface","clientName"))},
version:1});return ZKA()};
Rdz=function(q){return _.Z3(Fgz(),q)};
cpC=function(q,N){var b;return _.d(function(y){return y.nextAddress==1?y.yield(_.$5(),2):(b=y.yieldResult)?y.return(new dsh(q,N,b)):y.return()})};
uDn=function(q){var N=Object.keys(q)[0];if(N)return q.screenExit&&(N=N+";"+q.screenExit.screen),N};
zdn=function(q){var N=new Map;q=_.Z(q);for(var b=q.next();!b.done;b=q.next())b=b.value,b!=null&&(N.has(b.taskType)||N.set(b.taskType,[]),N.get(b.taskType).push(b));return N};
$sJ=function(q){q=[].concat(_.a9(q)).sort(function(b,y){return b-y});
var N=Math.floor(q.length/2);return q.length%2?q[N]:(q[N-1]+q[N])/2};
rpC=function(q,N){q=q===void 0?TJz:q;N=N===void 0?{}:N;_.zn("yt.logging.errors.log",_.po);CRZ();trJ(W8A(),N);window.onerror=q;msA=IUJ;window.addEventListener("unhandledrejection",function(b){if(b.reason instanceof Error){var y=b.reason;_.op(y,{source:"unhandledrejection"});y.name==="AbortError"&&(y.level="WARNING")}IUJ(b.reason);b.preventDefault()})};
_.XiZ=function(q){var N,b,y,J,E,F,R,c,z,m,r,X,V,G,w,D,k,f,L,S,W,M,qe,RJ,tZ,wA,rA,xD,IJ,sJ,Sn,YE,xE,qv,mM,Ox,h4,QC,rp,Fd;return _.d(function(yF){if(yF.nextAddress==1)return yF.yield(_.d3(q,{mode:"readonly",enableRetries:!0},function(vR){return cT(vR,"playbackData").then(function(ej){var Go=ej.map(function($E){return $E.transfer}).filter(function($E){return!!$E}),qN=ej.map(function($E){return $E.offlineVideoPolicy}).filter(function($E){return!!$E}),O5=ej.filter(function($E){return!!$E.key}).map(function($E){return _.yU(_.qR($E.key).entityId,
"downloadStatusEntity")});
Go=cT(vR,"transfer",Go);qN=cT(vR,"offlineVideoPolicy",qN);O5=cT(vR,"downloadStatusEntity",O5);var p1=Go.then(function($E){$E=$E.reduce(function(t4,gp){(gp==null?0:gp.offlineVideoStreams)&&t4.push.apply(t4,_.a9(gp.offlineVideoStreams));return t4},[]).filter(function(t4){return!!t4});
return cT(vR,"offlineVideoStreams",$E)});
return qm.all([Go,qN,p1,O5]).then(function($E){var t4=_.Z($E);$E=t4.next().value;var gp=t4.next().value;var oJ=t4.next().value;t4=t4.next().value;return[ej,$E,gp,oJ,t4]})})}),2);
if(yF.nextAddress!=3)return N=yF.yieldResult,yF.yield(_.d3(q,{mode:"readonly",enableRetries:!0},function(vR){return cT(vR,"mainDownloadsListEntity").then(function(ej){var Go,qN;return(qN=(Go=ej[0])==null?void 0:Go.downloads)!=null?qN:[]})}),3);
b=yF.yieldResult;y=_.Z(N);J=y.next().value;E=y.next().value;F=y.next().value;R=y.next().value;c=y.next().value;z=J;m=E;r=F;X=R;V=c;G={};w={};D={};k={};f={};L=[];S=_.Z(m);for(W=S.next();!W.done;W=S.next())(M=W.value)&&(G[M.key]=M);qe=_.Z(r);for(RJ=qe.next();!RJ.done;RJ=qe.next())(tZ=RJ.value)&&(w[tZ.key]=tZ);wA=_.Z(V);for(rA=wA.next();!rA.done;rA=wA.next())(xD=rA.value)&&(D[xD.key]=xD);IJ=_.Z(X);for(sJ=IJ.next();!sJ.done;sJ=IJ.next())(Sn=sJ.value)&&(k[Sn.key]=Sn);YE=_.Z(b);for(xE=YE.next();!xE.done;xE=
YE.next())qv=xE.value,mM=void 0,f[(mM=qv.videoItem)!=null?mM:""]=!0,qv.videoItem&&(h4=Ox=void 0,QC=(h4=(Ox=_.qR(qv.videoItem))==null?void 0:Ox.entityId)!=null?h4:"",L.push({externalVideoId:QC}));rp=z.filter(function(vR){if(!vR||!vR.key||!vR.offlineVideoPolicy)return!1;vR=_.qR(vR.key).entityId;vR=_.yU(vR,"downloadStatusEntity");var ej;return!(vR&&((ej=D[vR])==null?void 0:ej.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
Fd=rp.map(function(vR){var ej=G[vR.transfer],Go=[];if(ej==null?0:ej.offlineVideoStreams)for(var qN=_.Z(ej.offlineVideoStreams),O5=qN.next();!O5.done;O5=qN.next())(O5=k[O5.value])&&Go.push(O5);qN=w[vR.offlineVideoPolicy];O5=f;var p1=vR==null?void 0:vR.playerResponseTimestamp,$E=_.qR(qN.key).entityId;vR=_.yU($E,"mainVideoEntity");if(qN.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var t4="OFFLINE_VIDEO_STATE_DISABLED";qN.expirationTimestamp&&Number(qN.expirationTimestamp)<Date.now()/1E3&&(t4="OFFLINE_VIDEO_STATE_EXPIRED")}else if(qN.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")t4="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(ej==null?void 0:ej.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":t4="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":t4="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":t4="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":t4="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":t4="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":t4="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:t4="OFFLINE_VIDEO_STATE_UNKNOWN"}if(t4==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(ej==null?void 0:ej.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":t4="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":t4="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":t4=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}$E={id:$E,videoState:t4};if(ej==null?0:ej.cotn)$E.cotn=ej.cotn;if(ej==null?0:ej.maximumDownloadQuality)$E.selectedVideoQuality=ej==null?void 0:ej.maximumDownloadQuality;if(ej==null?0:ej.lastProgressTimeMs)$E.lastProgressTimeMs=ej.lastProgressTimeMs;p1&&($E.playerResponseSavedTimeMs=String(Number(p1)*1E3));ej=String;p1=0;Go=_.Z(Go);for(t4=Go.next();!t4.done;t4=Go.next())if(t4=t4.value,t4.streamsProgress){t4=_.Z(t4.streamsProgress);for(var gp=t4.next();!gp.done;gp=
t4.next()){var oJ=void 0;p1+=Number((oJ=gp.value.numBytesDownloaded)!=null?oJ:0)}}$E.downloadedBytes=ej(p1);$E.selectedOfflineMode=O5[vR]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";qN.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&($E.offlinePlaybackDisabledReason=qN.offlinePlaybackDisabledReason);return $E});
return yF.return({offlineVideos:Fd,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:L}}})})};
Vrd=function(){var q;return _.d(function(N){return N.nextAddress==1?N.yield(_.ZC(),2):(q=N.yieldResult)?N.return(_.XiZ(q)):N.return({state:"PES Unavailable"})})};
vvZ=function(){var q,N,b,y;return _.d(function(J){if(J.nextAddress==1)return J.yield(_.ZC(),2);if(J.nextAddress!=3)return(q=J.yieldResult)?J.yield(jIh(q),3):J.return({state:"PES Unavailable"});N=J.yieldResult;b={};y=N.reduce(function(E,F){E[F.key]=F;return E},b);
return J.return(xsd(y))})};
xsd=function(q){for(var N={},b=[],y=_.Z(Object.keys(q)),J=y.next();!J.done;J=y.next()){var E=J.value;J=q[E];var F=void 0;if(((F=J)==null?void 0:F.entityType)==="mainVideoEntity"){delete q[E];var R=J.data;J={};if(R){var c=void 0;F=(c=R.videoId)!=null?c:"vid-"+E;E=q;J.video=R;delete J.video.formattedDescription;delete J.video.thumbnail;R.owner&&(c=E[R.owner],c==null?0:c.data)&&(delete E[c.key],J.video.owner=c.data,delete J.video.owner.avatar);if(R=R.downloadState)if(c=E[R],c==null?0:c.data)if(delete E[R],
R=c.data.playbackData)if(c=E[R],c!=null&&c.data){delete E[R];R=c.data;delete R.playerResponseJson;J.playbackData=R;if(R.transfer&&(c=E[R.transfer],c==null?0:c.data)){delete E[c.key];var z=c.data;J.transfer=z;c=[];z=_.Z(z.offlineVideoStreams||[]);for(var m=z.next();!m.done;m=z.next())if(m=E[m.value])delete E[m.key],c.push(m.data);c&&(J.streams=c)}(R=R.offlineVideoPolicy)&&(R=E[R])&&R.data&&(delete E[R.key],J.offlineVideoPolicy=R.data)}N[F]=J}}else J&&J.entityType==="offlineOrchestrationActionWrapperEntity"&&
J.data&&(delete q[J.key],F=J.data,E=void 0,b.push({id:F.rootActionId,type:((E=F.actionProto)==null?void 0:E.actionType)||"",entity:J}))}N.wrapperEntities=b;Object.keys(q).length>0&&(N.unknownKeys=q);return N};
GuA=function(){var q,N,b,y,J,E,F,R,c;return _.d(function(z){if(z.nextAddress==1)return q=(new _.ed("")).hasLocalStorage(),y=!!((N=_.JZ.crypto)==null?0:(b=N.subtle)==null?0:b.importKey),J=!!_.JZ.BroadcastChannel,E=!!_.JZ.navigator.locks,z.yield(tNh(),2);F=z.yieldResult;R=q&&y&&J&&E&&F;c={isSupported:R};if(R)return z.return(c);c.missingBrowserFeatures=[];F||c.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");q||c.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
y||c.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");J||c.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");E||c.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return z.return(c)})};
YGD=function(q,N,b,y){var J=!1,E={contentId:void 0,contentType:"video"};N=_.Z(Object.entries(N));for(var F=N.next();!F.done;F=N.next()){var R=_.Z(F.value);F=R.next().value;R=R.next().value;q.includes(F)&&!b.has(R)?(E.contentId=R,b.add(R),J=!0):F==="contentType"?R==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(E.contentType="playlist"):typeof R==="object"&&R!==null&&YGD(q,R,b,y)}J&&y.push(E)};
QId=function(){var q;return!((q=q$?q$:null)==null||!q.window)};
_.wiD=function(q){if(_.ln()&&_.vDR("Chromium")>=120){var N=_.OKC().mediaSession;try{N.setActionHandler("enterpictureinpicture",function(){q()})}catch(b){}}};
iKn=function(q){for(var N=[],b=_.Z(document.styleSheets),y=b.next(),J={};!y.done;J={node$jscomp$779:void 0},y=b.next())J.node$jscomp$779=y.value.ownerNode,J.node$jscomp$779&&(J.node$jscomp$779 instanceof HTMLStyleElement||J.node$jscomp$779 instanceof HTMLLinkElement)&&N.push(new Promise(function(E){return function(F){var R=E.node$jscomp$779.cloneNode(!0);R.onload=function(){F()};
R.onerror=function(){_.M6(Error("tj"));F()};
q.document.head.appendChild(R)}}(J)));
return Promise.all(N)};
TuR=function(q){var N=[_.ms(lHd),_.ms(Kgn),_.ms(Dsh)];hdR(window.document.documentElement,q.document.documentElement,[_.ms(kun),_.ms(Usd),_.ms(fHz),_.ms(C8z),_.ms(IHZ)]);hdR(window.document.body,q.document.body,N)};
hdR=function(q,N,b){q=_.Z(q.attributes);for(var y=q.next();!y.done;y=q.next())if(y=y.value)try{_.cx(b,N,y.name,y.value)}catch(J){}};
nvD=function(q,N){q=new _.N$(q.document.documentElement);q.start(sIu,N);return q};
aHn=function(q){var N=q.document.documentElement;N.addEventListener("click",function(b){GXn(N,b)});
N.addEventListener("touchstart",function(b){iXd(b)});
N.addEventListener("mousedown",function(b){iXd(b)})};
WgD=function(q,N,b,y){y=y===void 0?!1:y;N=new SGR(N||q,b||q);return{x:q.x+((y===void 0?0:y)?N.lengthX*-1:N.lengthX)*.2,y:q.y+((y===void 0?0:y)?N.lengthY*-1:N.lengthY)*.2}};
LgJ=function(q){if(!q)return!1;var N=q.status==="OK"||q.status==="LIVE_STREAM_OFFLINE",b,y,J,E=(J=(b=q.errorScreen)==null?void 0:b.playerLegacyDesktopYpcTrailerRenderer)!=null?J:(y=q.errorScreen)==null?void 0:y.ypcTrailerRenderer;return!!N||!!E};
_.piA=function(q,N){if(!q)return!1;var b,y=(b=q.errorScreen)==null?void 0:b.playerLegacyDesktopYpcOfferRenderer,J;N=!!(N==null?0:(J=N.playerOverlayRenderer)==null?0:J.gatedActionsOverlayRenderer);return!!LgJ(q)||!!y||!!N};
ovC=function(q){return P8J(q,0,"gclid",q.search(Mre))>=0||P8J(q,0,"gad_source",q.search(Mre))>=0};
Aph=function(q){var N=[],b=0;return{clear:function(){b=N.length=0},
push:function(y){N[b]=y;b=(b+1)%q},
iterate:function(){return function J(){var E,F,R,c;return _.b9(J,function(z){switch(z.nextAddress){case 1:_.i$(z,2),E=N.length,F=0;case 4:if(!(F<E)){z.jumpTo(2);break}R=b+F;c=_.yD;return z.yield(N[R%E],7);case 7:c(z.yieldResult);F++;z.jumpTo(4);break;case 2:_.w0(z),_.l$(z,0)}})}()}}};
edd=function(q){q.eventsToIgnore||(q.eventsToIgnore=[]);var N=q.eventsToIgnore.map(QhJ),b=new Set(N),y=Aph(q.bufferSize);return{flush:function(){var J=Array.from(y.iterate());y.clear();J=J.map(function(E){return{name:E.name,timestamp:E.startTime,attributes:E.attributes}});
return JSON.stringify(J)},
onSpanStart:function(J){J.name==="event"&&b.has(J.attributes.type)||y.push(J)}}};
Buh=function(q){q=edd(q);var N=q.flush;xzA({onSpanStart:q.onSpanStart});e0.subscribe("handleError",function(b){try{b.params.breadcrumbs=N()}catch(y){_.po(y,"WARNING")}})};
HKZ=function(){Gr("web_tracing_action");_.Yo("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
q4A=function(){Gr("web_tracing_action");_.Yo("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
bjA=function(q,N,b){if(N===void 0){NBd||(q4A(),setInterval(q4A,6E5),NBd=!0);var y="web_tracing_action"}else y=N;var J,E=((J=q.endTime)!=null?J:q.startTime)-q.startTime,F={};J=q.name;var R=q.startTime;F={webTracing:(F[q.name]=q.attributes,F)};b=_.qg(IDd)(J,E,R,F,b,y);if(q.children)for(q=_.Z(q.children),y=q.next();!y.done;y=q.next())bjA(y.value,N,b)};
yLR=function(q){var N=KJn.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(b){b.data&&typeof b.data==="object"&&(b=b.data,b.from==="extension"&&b.app==="yt.telemetry"&&(N("Received message from extension",b),q.onMessage(b)))});
return function(b,y){b={app:"yt.telemetry",from:"app",key:b,payload:y};N("Sending message to extension",b);window.postMessage(b,"*")}};
JLJ=function(){var q=q===void 0?3E3:q;var N=yLR({onMessage:function(){}}),b=[];
return{onSpanEnd:function(y){y.parentId==null&&b.push(y)===1&&setTimeout(function(){var J=[].concat(_.a9(b));b.length=0;N("spansReported",{spans:J})},q)}}};
ESh=function(q){q=q===void 0?400:q;var N=[],b=[];return{start:function(){return ywd({checkoutEveryNth:q,emit:function(y,J){J&&(N=b,b=[]);b.push(y)}})},
getRecording:function(){return[].concat(_.a9(N),_.a9(b))}}};
Fen=function(){(new gSJ({sessionReplayEvents:_.VX("web_tracing_session_replay",0)})).subscribe(function(q){if(q.sessionReplayEvents>0)try{var N=ESh(q.sessionReplayEvents);N.start();if(_.x("web_tracing_session_replay_demo")){var b=console.log;window.exportSessionReplay=function(){var y=JSON.stringify(N.getRecording(),null,2);y=Zjd(new Blob([y],{type:"text/plain"}));var J=document.createElement("a");J.download="session_replay.json";J.dataset.downloadurl=["application/json",J.download,J.href].join(":");
J.style.display="none";J.href=y;J.click();URL.revokeObjectURL(y);b("View replay at go/yt-session-replay-viewer")}}}catch(y){_.M6(Error("vj"))}})};
dbd=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var q=window.performance.getEntriesByType("navigation");if(q.length>0){var N=q[0],b=window.performance.timeOrigin;wbd("pageLoad",{navigationType:RRA(N.type),unloadEventStart:Math.round(N.unloadEventStart),unloadEventEnd:Math.round(N.unloadEventEnd),domInteractive:Math.round(N.domInteractive),domContentLoadedEventStart:Math.round(N.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(N.domContentLoadedEventEnd),
domComplete:Math.round(N.domComplete),loadEventStart:Math.round(N.loadEventStart),loadEventEnd:Math.round(N.loadEventEnd),redirectCount:N.redirectCount},{active:!1,startTime:b+N.startTime,endTime:b+N.loadEventEnd})}}catch(y){}})};
RRA=function(q){switch(q){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"}};
tqC=function(){for(var q=cLe.value,N={},b=_.Z(q.enabledSpansArray),y=b.next();!y.done;y=b.next())N[y.value]=!0;jMd({sessionId:JGn(),enabledSpans:N,shouldSampleFn:function(J,E,F){if(uqC){var R;return J==="shortToShort"||(F==null?void 0:(R=F.rootSpan())==null?void 0:R.name)==="shortToShort"}return!0}});
lOu();v3Z("pageLoad")&&dbd();q.exportToCsi&&xzA(zRD);q.exportToDevTools&&xzA(JLJ());q.maxBreadcrumbs>0&&Buh({eventsToIgnore:$bA,bufferSize:q.maxBreadcrumbs})};
mbu=function(q){return new Promise(function(N){window.setTimeout(N,q)})};
rLJ=function(q){var N={bicf:function(E){q.ciy=E},
blc:function(){return q.getLatestChallengeResponse()},
bcr:function(E){q.pfK.push(E)}},b=window;
b.ntpevasrs=N;if(b.ntpqfbel!==void 0)for(var y=_.Z(b.ntpqfbel),J=y.next();!J.done;J=y.next())J=J.value,J(N);b.ntpqfbel=void 0};
XMZ=function(q){return _.d(function(N){if(N.nextAddress==1)return _.Yi(N,2),N.yield(q.duv(),4);if(N.nextAddress!=2)return _.Ea(N,0);_.K7(N);_.hj(N)})};
Vqu=function(q){var N,b;(N=q.ytcsi)==null||(b=N.tick)==null||b.call(N,"pot_ist")};
jBZ=function(q){if(q instanceof Error){var N=_.Ng("yt.logging.errors.log");N&&N(q,"WARNING")}};
xbh=function(q){try{var N=JSON.parse(q);if(N.bgChallenge)return N}catch(b){}};
GLC=function(){var q=window,N={networkStatusManagerPromise:_.tz().resolve(new HxA(_.Jr)),initialChallengeSli:_.x("wpo_att_sli")?new _.GWz("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};q=q===void 0?window:q;var b=q.ytAtR,y;N==null||(y=N.initialChallengeSli)==null||_.J7(y);if(b){if(b=xbh(b)){var J;N==null||(J=N.initialChallengeSli)==null||_.Ed(J,"SUCCESS");vSC(b,N)}q.ytAtR=void 0}else q.ytAtRC=function(E){if(E=xbh(E)){var F;N==null||(F=N.initialChallengeSli)==null||
_.Ed(F,"SUCCESS");vSC(E,N);q.ytAtRC=void 0}}};
OjZ=function(){if(Y4J)return Y4J;try{var q=_.iC("IFRAME");_.Nn(q,_.Xe(QBA));q.sandbox.add("allow-same-origin");q.style.display="none";document.body.appendChild(q);return Y4J=q}catch(N){q=new _.IO("Failed to create sandbox iframe"),_.po(q)}};
wMd=function(q){var N,b;return(b=q==null?void 0:(N=q.contentWindow)==null?void 0:N.fetch)!=null?b:window.fetch};
ijJ=function(q){var N,b;return(b=q==null?void 0:(N=q.contentWindow)==null?void 0:N.Request)!=null?b:window.Request};
lXA=function(q){var N,b;return(b=q==null?void 0:(N=q.contentWindow)==null?void 0:N.TextDecoder)!=null?b:window.TextDecoder};
KeJ=function(){return function(q,N){_.M7("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[q]=N}};
Dbh=function(){return function(q,N){var b={};b[q]=N;q=_.qg(_.fDJ)(b);Object.keys(q).length>0&&_.v3(q)}};
Ubd=function(){if(ZtA()==="hidden")var q="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else ZtA()==="visible"&&(q="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",hRh=null);q&&kLJ(q)};
kLJ=function(q){if(q==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||q==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(fXD===q)return;fXD=q}var N=9E4+Math.random()*2E3;if(q!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.tr()>N)&&ZtA()==="visible"){N=-1;hRh&&(N=Math.round((0,_.mA)()-hRh));var b=String;var y=_.Ng("_fact",window);y=y==null||y==-1?-1:Math.max(Date.now()-y,0);_.W_("foregroundHeartbeat",{firstActivityMs:b(y),clientDocumentNonce:ETh,index:String(C2R),lastEventDeltaMs:String(N),trigger:q});
_.zn("_fact",-1,window);C2R++;hRh=(0,_.mA)()}};
IXR=function(q,N,b,y,J,E){N=new Uint8Array(N);if(q.length===0)return N;var F=0;J=J!=null?J:q.length-1;for(var R=b;R<=J;R++){var c=q[R],z=R===b?y:0,m=void 0,r=R===J?(m=E)!=null?m:c.length:c.length;c=c.subarray(z,r);N.set(c,F);F+=c.length}return N};
_.TBn=function(){try{return!!self.sessionStorage}catch(q){return!1}};
sBn=function(){var q=navigator;return new Promise(function(N,b){var y;(y=q.webkitTemporaryStorage)!=null&&y.queryUsageAndQuota?q.webkitTemporaryStorage.queryUsageAndQuota(function(J,E){N({usage:J,quota:E})},function(J){b(J)}):b(Error("Ej"))})};
nSA=function(q,N){var b={errorSeverity:N.errorSeverity.toString(),wizFeatureFlags:Object.entries(N.featureFlags).join("\n")};fUz(N,b);N=N.errorSeverity;N===3?_.po(q,"ERROR",void 0,void 0,void 0,b):N===2&&_.po(q,"WARNING",void 0,void 0,void 0,b);_.x("cow_if_errors_in_popup")&&N===3&&q.message.indexOf("<If>")!==-1&&window.alert(q.message)};
aXJ=function(q,N){var b=W3.get(q)||{layerNode:N};b.layerNode=N;VOA(q,b);q.getScreenLayer=function(){return gh(b.layerNode)}};
S4J=function(q){var N;q=q.parentNode;for(var b;q&&((N=W3.get(q))==null||!N.isRenderer)&&!((b=q.polymerController)!=null?b:q).isRenderer_;)q=q.parentNode||q.host;if(N=q)return W3.get(N)};
WeR=function(q){if(q){W3.delete(q);var N=_.tz().resolve(tD);i$d(q,N)}};
pMn=function(q,N,b){if(b===void 0?0:b){if(b=q.getAttribute("client-ve-type"),N.data&&!N.disableReactiveLogging||b)_.ae(function(){Len(q,_.p3(N.data))},"xg"),_.W1(function(){return void WeR(q)})}else typeof N.data!=="function"&&Len(q,N.data)};
Len=function(q,N){P2C++;Mqu(q,N)&&_.pY.addJob(function(){_.ZQ(_.pY,function(){if(Mqu(q,N)&&q.ownerDocument.documentElement===document.documentElement&&q){var b;if(q.getAttribute("layer")){var y=b=Number(q.getAttribute("layer")),J=W3.get(q);J?J.layerNode.layer=y:aXJ(q,new oSd(y));(y=S4J(q))&&(J=W3.get(q))!=null&&(J.layerNode.parent=y.layerNode)}else if(b=W3.get(q))b=gh(b.layerNode);else{b=gh;y=new oSd;if(J=S4J(q))y.parent=J.layerNode;aXJ(q,y);b=b(y)}b!=null||(b=0);y=q.getAttribute("client-ve-type");
J=Number(y);var E=!1;y=!1;var F=W3.get(q),R;if((R=F)&&!(R=F[ALJ]!==N)&&(R=J)){var c;R=((c=W3.get(q))==null?void 0:c.clientVeType)===void 0}R&&(F[ALJ]=N,E=y=F.isRenderer=!0);W3.has(q)&&(W3.get(q).clientVeType=J);q.visualElement&&(y=!0);if(_.x("wiz_next_ld_fix_client_ve_spec")){var z;c=((z=_.v(N==null?void 0:N.rendererContext,_.Ri))==null?void 0:z.loggingDirectives)||(N==null?void 0:N.loggingDirectives)}else c=N==null?void 0:N.loggingDirectives;c&&c.clientVeSpec&&(z=eRA(_.E_(),q),z=_.BBC(_.FR(),c,z||
void 0,b))&&(q.visualElement=z);!q.visualElement&&J&&E&&(q.veType=J,z=void 0,_.x("wiz_next_client_ve_parent_fix")&&(z=eRA(_.E_(),q)),z=_.Zd(_.FR(),q,z,b),q.visualElement=z);y&&(z=_.tz().resolve(tD),hqd(q,{data:N,observer:z,layer:b,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
Mqu=function(q,N){return(N==null?0:N.trackingParams)||(N==null?0:N.loggingDirectives)||_.v(N==null?void 0:N.rendererContext,_.Ri)||q.getAttribute("client-ve-type")?!0:!1};
HjZ=function(q,N,b){q.componentType!==kL&&b instanceof HTMLElement&&N&&!_.x("cow_logging_in_component_wrapper")&&pMn(b,N,!0)};
y_A=function(){if(!qtz){qtz=!0;var q=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.x("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:_.x("enable_wiz_context_per_component")||!1},{handleError:nSA,enableComponentStacksInErrorMessages:!1});Object.assign(z2,q);BdC=N8A;bnD();y8J=BWh;qee=qHR}};
bnD=function(){_.x("cow_logging_in_component_wrapper")?(Zwz=function(q,N){N instanceof HTMLElement&&pMn(N,q,!0)},nHn=function(){}):(Zwz=function(){},nHn=HjZ)};
J_D=function(q,N,b){N=N===void 0?{}:N;var y,J=(y=_.v(q.commandMetadata,_.gg))==null?void 0:y.url;y=N.form||{};!b||y.element||y.skipDefaultElement||(N.form=N.form||{},N.form.element=b);if(J&&J!=="/service_ajax")return{type:0,command:q,form:N.form};if(_.x("kevlar_service_command_check")){if(_.C6(_.tz().resolve(_.tN),q))return Object.assign({},{type:1,command:q},N)}else{var E;if((E=_.v(q.commandMetadata,_.gg))==null?0:E.apiUrl)return Object.assign({},{type:1,command:q},N)}return{type:2,command:q,form:N.form}};
Egz=function(q){if(q.form){var N=q.form,b=Object.assign({},N);N=N.element;b=(delete b.element,b);if(N)return[_.qc(N,[q.command,b,q.commandController])]}return[]};
ggR=function(q){if(q.form){var N=q.form,b=Object.assign({},N);N=N.element;b=(delete b.element,b);N&&_.Nc(N,[q.command],N,b)}};
FGn=function(q,N,b){var y=new Zne(q,N),J=new F_(q,N,b);q={"/youtubei/v1/browse":new RK(q,N,b),"/youtubei/v1/player":y,"/youtubei/v1/navigation/resolve_url":new dh,"/youtubei/v1/next":J,"/youtubei/v1/guide":new cV(b),"/youtubei/v1/search":new u9(q,N,b),"/youtubei/v1/reel/reel_item_watch":new zt(q,N,b),"/youtubei/v1/get_watch":new $J(y,J)};q["/youtubei/v1/account/account_menu"]=new t7;q["/youtubei/v1/notification/get_notification_menu"]=new mv;return q};
X_=function(){var q=_.tz().resolve(_.rh);return Promise.resolve(R9C(q,_.JZ.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
dxe=function(q){return q&&(q=_.VD(_.t8d(q)))?(new URLSearchParams(q)).get("service"):null};
vV=function(q,N){_.B$(_.ja(),function(){_.Q6("adl")});
_.tz().resolve(c_A)(N);q=q.root;q.loadData&&q.loadData(N);(N==null?0:N.response)?_.Ed(Oin(),"SUCCESS"):_.M6(new _.IO("Lifecycle: No response in data",_.ou("IS_SHELL_LOAD"),N?N.page:"NO_PAGE",N?N.endpoint:"NO_ENDPOINT"));q.polymerController.$["page-manager"].lazyPrepareCriticalPages((N==null?void 0:N.page)||"",N.endpoint);var b,y;((y=_.v(N==null?void 0:(b=N.endpoint)==null?void 0:b.commandMetadata,_.gg))==null?0:y.webPageType)&&_.WT().dispatch(_.xJ(_.v(N.endpoint.commandMetadata,_.gg).webPageType))};
uMA=function(){var q,N;return _.d(function(b){switch(b.nextAddress){case 1:q=window;if(!q.getDataPromise){b.jumpTo(2);break}_.Yi(b,3);return b.yield(q.getDataPromise(),5);case 5:return b.return(b.yieldResult);case 3:return _.K7(b),b.yield(X_(),6);case 6:return b.return(b.yieldResult);case 2:if(q.getInitialData)return N=q.getInitialData(),q.getInitialData=void 0,b.return(N);throw Error("Gj`"+_.JZ.location.href);}})};
$xd=function(){_.PC("CSI_SERVICE_NAME","youtube");_.v3({loadType:"cold"});_.x("kevlar_log_lcp")&&z9d(function(q){_.Q6("lcp",q.value)})};
tHd=function(){var q=_.HY(document.location.href,"enable");q&&q.indexOf("scraper")>-1&&_.PC("ADD_SCRAPER_ATTRIBUTES",!0)};
jTd=function(q){var N=q.root;q=[mxh,r_h,_.Gt];_.x("web_feedback_endpoint_autolog_allowlist_killswitch")&&q.push(_.YJ,Xoz);VHn(function(b,y){return J_D(b,y,N)},function(b){if(!b.command)return[];
var y;((y=b.form)==null?0:y.element)?b.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},b.form,{endpoint:b.command})})):N.handleNavigate(b);return[]},q);
_.tz().addProvider({provide:_.rO,useValue:_.bq.instance})};
vgJ=function(){var q={},N={},b;for(b in xxh){var y=_.Z(_.QS(xxh[b],void 0,"IAtZ7"));q[b]=y.next().value;N[b]=y.next().value}return[q,function(J){for(var E in J){var F=void 0;(F=N[E])==null||F(J[E])}}]};
_.QD=function(q,N,b){N=N===void 0?!1:N;var y=_.nM.getValueByKeys(q,"contents","twoColumnWatchNextResults","results","results","contents"),J=_.nM.getValueByKeys(q,"contents","twoColumnWatchNextResults","playlist","playlist")||null;N&&(J=null);var E=N=null;if(J)N=_.nM.getValueByKeys(J,"titleText"),E=_.nM.unsafeClone(_.nM.getValueByKeys(J,"longBylineText")),y="",E&&(y=_.ao(E)),E=_.nD(y);else if(y){y=_.Z(y);for(var F=y.next();!F.done;F=y.next())F=F.value,F.videoPrimaryInfoRenderer&&(N=_.nM.getValueByKeys.apply(_.nM,
[F].concat(_.a9(GxC)))),F.videoSecondaryInfoRenderer&&(E=_.nM.getValueByKeys.apply(_.nM,[F].concat(_.a9(YtA))))}else _.bv(Error("Lj"));var R;q.currentVideoEndpoint?R=q.currentVideoEndpoint:_.bv(Error("Mj"));var c;b&&(c=_.nM.getValueByKeys(b,"playabilityStatus","miniplayer","miniplayerRenderer"));q={miniplayerTitle:N,miniplayerSubtitle:E,watchEndpoint:R,playlistData:J};c&&(q.miniplayerRenderer=c);return q};
QTd=function(q){if(q)return _.v$(q)};
_.OnC=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");}}};
woA=function(q){return q.videoDuration?q.numTaps>1&&q.tapDirection!==0?_.Od(q.draggedTime/q.videoDuration,0,1):_.Od((q.playedTime||0)/q.videoDuration,0,1):0};
inJ=function(q){return q.videoDuration?q.isDragging||q.numTaps>1&&q.tapDirection!==0?_.Od(q.draggedTime/q.videoDuration,0,1):_.Od((q.playedTime||0)/q.videoDuration,0,1):0};
KGC=function(q){var N,b,y;return _.v(q==null?void 0:(N=q.markersMap)==null?void 0:(b=N.find(function(J){return J.key==="HEATSEEKER"}))==null?void 0:(y=b.value)==null?void 0:y.heatmap,ljd)};
Dxd=function(q){var N,b;return(b=(N=KGC(q))==null?void 0:N.heatMarkersDecorations)!=null?b:[]};
h9D=function(q){if(_.x("mweb_supported_chapters_killswitch"))return!0;var N;return!!(q==null?0:(N=q.markersMap)==null?0:N.find(function(b){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(b.key)}))};
_.kxd=function(q){var N=Object,b=N.assign,y;q={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(y=q==null?void 0:q.getPlayerState())!=null?y:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return b.call(N,{},{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},q,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
Uxh=function(q){return function(N){var b=q(),y,J=(y=b.playerApi)==null?void 0:y.getPlayerState();N&&N!==b.playerState&&(N===1||N===2)&&b.setState({playerState:J})}};
CMn=function(q){return function(N){var b=q(),y=b.playerApi;y&&(N==null?void 0:N.type)==="newdata"&&(fjd&&(clearTimeout(fjd),fjd=void 0),_.x("web_shorts_use_progress_state_for_gapless")?(N=y==null?void 0:y.getProgressState(N==null?void 0:N.playertype),N=N.seekableEnd-N.seekableStart):N=y==null?void 0:y.getDuration(N==null?void 0:N.playertype),b.setState({playedTime:0,videoDuration:N}))}};
IjZ=function(q){return function(N){var b=q(),y=b.playerApi;if(y){var J=y.getPresentingPlayerType();_.x("web_shorts_use_progress_state_for_gapless")?(y=y.getProgressState(J),y=y.seekableEnd-y.seekableStart):y=y.getDuration(J);b.setState({playedTime:N,videoDuration:y})}}};
sTz=function(q){_.V_(112394,q,function(){return T8d},function(N){T8d=N})};
Stu=function(q,N){if(!q)return[];var b,y,J;q=((b=q.markersMap)==null?void 0:(y=b.find(function(E){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(E.key)}))==null?void 0:(J=y.value)==null?void 0:J.chapters)||[];
!ngd(q)||(N==null?0:N.ignoreStub)||(q=[aju()].concat(_.a9(q)));return q};
aju=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
ngd=function(q){if(q.length===0)return!1;var N;return((N=_.v(q[0],wh))==null?void 0:N.timeRangeStartMillis)!==0};
i9=function(q){return q?q.timeRangeStartMillis||0:0};
LGR=function(q,N){if(q.isDragging&&N)return q=WGZ(q,N),q===-1?aju():Stu(N)[q]};
WGZ=function(q,N){return q.isDragging&&N?Stu(N,{ignoreStub:!0}).findIndex(function(b,y,J){b=poe(q);return PMh(b,J,y).scrubberHovering}):-1};
poe=function(q){return Object.assign({},q,{videoDuration:q.videoDuration*1E3,playedTime:q.playedTime*1E3,draggedTime:q.draggedTime*1E3})};
PMh=function(q,N,b){var y=i9(_.v(N[b],wh));N=i9(_.v(N[b+1],wh))||q.videoDuration;b=q.isDragging;var J;if(J=q.isDragging)J=q.draggedTime,J=J!==null&&J>=y&&J<N;var E=q.playedTime;return E!==null&&E>=y&&E<N?{videoPosition:"active",isScrubbing:b,scrubberHovering:J}:q.playedTime<y?{videoPosition:"pending",isScrubbing:b,scrubberHovering:J}:{videoPosition:"seen",isScrubbing:b,scrubberHovering:J}};
MHA=function(q,N){return q.videoPosition==="seen"||(N===void 0?0:N)>0};
ogD=function(q,N,b){N=q/N.storyboardInterval;var y=Stu(b);if(!y.length)return-N*72;b=0;y=_.Z(y);for(var J=y.next();!J.done;J=y.next())if(i9(_.v(J.value,wh))/1E3<q)b++;else break;return-(N*72)-b*56};
A_A=function(q){return q?q.width/q.columns:0};
e9C=function(q){return q.isHovering?q.hoveredTime:q.draggedTime};
B8e=function(q,N){q=q.draggedTime*1E3;return q>=N.visibleTimeRangeStartMillis&&q<=N.visibleTimeRangeEndMillis};
_.HnA=function(q){if(q===void 0||Number.isNaN(q))return"--:--";var N=Math.abs(Math.floor(q)),b=Math.floor(N/86400),y=Math.floor(N%86400/3600),J=Math.floor(N%3600/60);N=Math.floor(N%60);var E="";b>0&&(E+=b+":",y<10&&(E+="0"));if(b>0||y>0)E+=y+":",J<10&&(E+="0");E+=J+":";N<10&&(E+="0");E+=N;return q>=0?E:"-"+E};
qBZ=function(q,N){return function(){var b=e9C(q());var y=N();var J=q().playerApi;if(J&&J.getNumberOfStoryboardLevels()!==0){var E=J.getStoryboardFrameIndex(b,1);E!==-1?y=J.getStoryboardFrame(E,1):(b=J.getStoryboardFrameIndex(b,0),J=J.getStoryboardFrame(b,0),y&&J&&(J.height*=3,J.width*=3),y=J)}else y=null;if(!y)return null;N()&&(y.width=90*y.columns,y.height=160*y.rows);return y}};
_.N_d=function(q){if(!q||q.getVideoData)return q};
blA=function(){var q;return{playerApi:(q=_.JO())!=null?q:void 0}};
yCd=function(q){var N;_.d(function(b){if(b.nextAddress==1)return b.yield(_.yR(),2);if(N=b.yieldResult)N.unMute(!0),N.setVolume(q,!0);_.hj(b)})};
JCd=function(q,N){q&&(q.value=""+N,q.style.setProperty("--gradient-percent",N+"%"))};
Eqd=function(q){var N;return(N=q==null?void 0:q.value)!=null?N:0};
gqA=function(){var q;_.d(function(N){if(N.nextAddress==1)return N.yield(_.yR(),2);q=N.yieldResult;if(!q)return N.return();q.isMuted()?q.unMute(!0):q.mute(!0);_.hj(N)})};
ZlZ=function(q){var N=_.tz().resolve(_.l9).getPlayerElement();N&&q&&(q===1?N.pause():N.play())};
FVn=function(q){_.Hy(q,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
RGn=function(q){_.Hy(q,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
cCd=function(q){return _.au(q.document.body,function(){return _.u(dph,null)},"kh")};
uWA=function(){var q;return(q=navigator.userActivation)==null?void 0:q.isActive};
zGA=function(){var q=window.performance.getEntriesByType("navigation");return q?q.map(function(N){return N.type}).includes("reload"):!1};
xpJ=function(){KN(KN(KN(KN(KN(KN(KN(_.tz().resolve(_.DQ),_.$pn),_.tJd),_.mph),_.rCd),_.Xse),_.VJe),_.jFu)};
vqC=function(q,N){N=N===void 0?!1:N;var b,y,J,E;return _.d(function(F){if(F.nextAddress==1)return N||!_.x("kevlar_shorts_seedless_retry_initial_load")||(b=window,y=!(!b.getDataPromise&&!b.getInitialData),y)?F.yield(uMA(),2):(setTimeout(vqC.bind(window,q,!0),1E3),F.return());if(F.nextAddress!=3)return J=F.yieldResult,F.yield(Ggu(J),3);E=F.yieldResult;vV(q,E);_.hj(F)})};
Ggu=function(q){var N;if((N=q.response)==null||!N.replacementEndpoint)return _.bG(q);N=_.tz().resolve(_.rh);q=q.response;_.v(q.replacementEndpoint,_.uI)&&q.sequenceContinuation&&(_.v(q.replacementEndpoint,_.uI).sequenceParams=q.sequenceContinuation);return h7(N,q.replacementEndpoint,{},_.JZ.location.href,"shorts",function(){},function(){return!1})};
QFJ=function(q){var N=_.tz().resolve(YBe);q.playerResponse&&N.handleResponse(q.playerResponse);q.response&&N.handleResponse(q.response)};
Olu=function(q){var N=_.WT(),b,y=_.v((b=q.response)==null?void 0:b.frameworkUpdates,sl),J;b=_.v((J=q.playerResponse)==null?void 0:J.frameworkUpdates,sl);var E;q=_.v((E=q.reelWatchSequenceResponse)==null?void 0:E.frameworkUpdates,sl);y&&_.Ro(y,N);b&&_.Ro(b,N);q&&_.Ro(q,N)};
wsZ=function(q){var N;_.x("enable_redirect_linking_for_desktop_web_client")&&((N=window.location.hash)==null?0:N.includes("redirect_state"))&&q.url&&(q.url=q.url.toString()+window.location.hash)};
KVh=function(q){var N=_.tz(),b=N.resolve(_.rh);N=N.resolve(_.ilZ);q.endpoint&&(b=led(b,q.endpoint),b.content&&q.response&&_.kJ(N,q.response,b.content),b.player&&q.playerResponse&&_.kJ(N,q.playerResponse,b.player),b.reelSequence&&q.reelWatchSequenceResponse&&_.kJ(N,q.reelWatchSequenceResponse,b.reelSequence))};
Ud=function(q,N){QFJ(N);Olu(N);var b;(N==null?0:N.url)&&((b=window.location.hash)==null?0:b.includes("redirect_state"))&&(wsZ(N),(b=dxe(N.url))&&_.By(q.root,"yt-initialize-third-party",[b,N]));KVh(N);b=_.tz();var y=b.resolve(Dpz);N.playerResponse&&b.resolve(hGJ).handleResponse(N.playerResponse);if(N.playerResponse){b=void 0;if(_.x("ab_v_vid_sig")&&N.endpoint){var J,E=(J=_.v(N.endpoint,_.nx))!=null?J:_.v(N.endpoint,_.uI);E&&(b=E.videoId)}kgz(y,N.playerResponse,b)}N.playerResponse&&ebA(N.playerResponse)&&
_.x("web_enable_ab_rsp_cl")?T$z().then(function(){UpA(y,N.playerResponse);vV(q,N)}):vV(q,N)};
CyA=function(q){if(q=q.root.data){var N=_.tz().resolve(fez);q.endpoint&&(q.response&&N.handleResponse(q.response,void 0,document.querySelector("ytd-app")),q.playerResponse&&N.handleResponse(q.playerResponse),q.reelWatchSequenceResponse&&N.handleResponse(q.reelWatchSequenceResponse))}};
IeJ=function(q){var N,b,y,J,E,F;return _.d(function(R){switch(R.nextAddress){case 1:N=window;if(!N.getDataPromise){R.jumpTo(2);break}_.Yi(R,3);return R.yield(N.getDataPromise(),5);case 5:b=R.yieldResult;Ud(q,b);_.Ea(R,4);break;case 3:return _.K7(R),R.yield(X_(),6);case 6:y=R.yieldResult,vV(q,y);case 4:return R.return();case 2:if(!_.x("sw_nav_preload_pbj")){R.jumpTo(7);break}N.fetchInitialData=function(){var c;return _.d(function(z){if(z.nextAddress==1)return z.yield(X_(),2);c=z.yieldResult;vV(q,c);
_.hj(z)})};
if(N.getInitialData){N.loadInitialData=function(c){Ud(q,c)};
J=N.getInitialData();N.getInitialData=void 0;Ud(q,J);R.jumpTo(8);break}N.fetchInitialData=void 0;return R.yield(X_(),9);case 9:E=R.yieldResult,vV(q,E);case 8:return R.return();case 7:N.getInitialData?(F=N.getInitialData(),N.getInitialData=void 0,Ud(q,F)):N.loadInitialData=function(c){Ud(q,c)},_.hj(R)}})};
sFu=function(){var q=new T_J;_.ofd(q);q.registerInitializationCallback(function(){J3Z(void 0,void 0,void 0,_.x("web_enable_mss_batching_ks")?void 0:{batchingStrategy:"BATCH"})});
q.registerCallback("error",function(N,b,y){_.HC(Error("Wj`"+b+"`"+y))})};
nqu=typeof Object.create=="function"?Object.create:function(q){var N=function(){};
N.prototype=q;return new N};
aed=typeof Object.defineProperties=="function"?Object.defineProperty:function(q,N,b){if(q==Array.prototype||q==Object.prototype)return q;q[N]=b.value;return q};
SBD=function(q){q=["object"==typeof globalThis&&globalThis,q,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var N=0;N<q.length;++N){var b=q[N];if(b&&b.Math==Math)return b}throw Error("a");};
_.$H=SBD(this);WVA="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.$H.BigInt64Array&&(WVA.push("BigInt64"),WVA.push("BigUint64"));var psA=function(q,N){if(N)for(var b=0;b<WVA.length;b++)LVd(WVA[b]+"Array.prototype."+q,N)},fN=function(q,N){N&&LVd(q,N)},LVd=function(q,N){var b=_.$H;
q=q.split(".");for(var y=0;y<q.length-1;y++){var J=q[y];if(!(J in b))return;b=b[J]}q=q[q.length-1];y=b[q];N=N(y);N!=y&&N!=null&&aed(b,q,{configurable:!0,writable:!0,value:N})},PyJ=function(){function q(){function b(){}
new b;Reflect.construct(b,[],function(){});
return new b instanceof b}
if(typeof Reflect!="undefined"&&Reflect.construct){if(q())return Reflect.construct;var N=Reflect.construct;return function(b,y,J){b=N(b,y);J&&Reflect.setPrototypeOf(b,J.prototype);return b}}return function(b,y,J){J===void 0&&(J=b);
J=nqu(J.prototype||Object.prototype);return Function.prototype.apply.call(b,J,y)||J}}(),MJe;
if(typeof Object.setPrototypeOf=="function")MJe=Object.setPrototypeOf;else{var oqR;a:{var ACn={a:!0},eGn={};try{eGn.__proto__=ACn;oqR=eGn.a;break a}catch(q){}oqR=!1}MJe=oqR?function(q,N){q.__proto__=N;if(q.__proto__!==N)throw new TypeError("b`"+q);return q}:null}CN=MJe;
_.Y=function(q,N){q.prototype=nqu(N.prototype);q.prototype.constructor=q;if(CN)CN(q,N);else for(var b in N)if(b!="prototype")if(Object.defineProperties){var y=Object.getOwnPropertyDescriptor(N,b);y&&Object.defineProperty(q,b,y)}else q[b]=N[b];q.superClass_=N.prototype};
B_J=function(q){var N=0;return function(){return N<q.length?{done:!1,value:q[N++]}:{done:!0}}};
_.Z=function(q){var N=typeof Symbol!="undefined"&&Symbol.iterator&&q[Symbol.iterator];if(N)return N.call(q);if(typeof q.length=="number")return{next:B_J(q)};throw Error("c`"+String(q));};
gn=function(q){for(var N,b=[];!(N=q.next()).done;)b.push(N.value);return b};
_.a9=function(q){return q instanceof Array?q:gn(_.Z(q))};
_.Tt=function(q){return IK(q,q)};
IK=function(q,N){q.raw=N;Object.freeze&&(Object.freeze(q),Object.freeze(N));return q};
sd=function(q,N){return Object.prototype.hasOwnProperty.call(q,N)};
HlJ=function(q){if(q==null)throw new TypeError("d");return Object(q)};
qJE=typeof Object.assign=="function"?Object.assign:function(q,N){q=HlJ(q);for(var b=1;b<arguments.length;b++){var y=arguments[b];if(y)for(var J in y)sd(y,J)&&(q[J]=y[J])}return q};
fN("Object.assign",function(q){return q||qJE});
var nN=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},NAE=function(q){if(q.isRunning_)throw new TypeError("f");
q.isRunning_=!0};
nN.prototype.JSC$8797_next_=function(q){this.yieldResult=q};
var bCv=function(q,N){q.abruptCompletion_={exception:N,isException:!0};q.nextAddress=q.catchAddress_||q.finallyAddress_};
nN.prototype.return=function(q){this.abruptCompletion_={return:q};this.nextAddress=this.finallyAddress_};
nN.prototype.yield=function(q,N){this.nextAddress=N;return{value:q}};
nN.prototype.jumpTo=function(q){this.nextAddress=q};
_.hj=function(q){q.nextAddress=0};
_.Yi=function(q,N,b){q.catchAddress_=N;b!=void 0&&(q.finallyAddress_=b)};
_.i$=function(q,N){q.catchAddress_=0;q.finallyAddress_=N||0};
_.Ea=function(q,N,b){q.nextAddress=N;q.catchAddress_=b||0};
_.K7=function(q,N){q.catchAddress_=N||0;N=q.abruptCompletion_.exception;q.abruptCompletion_=null;return N};
_.w0=function(q,N,b,y){y?q.finallyContexts_[y]=q.abruptCompletion_:q.finallyContexts_=[q.abruptCompletion_];q.catchAddress_=N||0;q.finallyAddress_=b||0};
_.l$=function(q,N,b){b=q.finallyContexts_.splice(b||0)[0];(b=q.abruptCompletion_=q.abruptCompletion_||b)?b.isException?q.nextAddress=q.catchAddress_||q.finallyAddress_:b.jumpTo!=void 0&&q.finallyAddress_<b.jumpTo?(q.nextAddress=b.jumpTo,q.abruptCompletion_=null):q.nextAddress=q.finallyAddress_:q.nextAddress=N};
yZ1=function(q){this.JSC$8802_context_=new nN;this.program_=q};
EDF=function(q,N){NAE(q.JSC$8802_context_);var b=q.JSC$8802_context_.yieldAllIterator_;if(b)return JZx(q,"return"in b?b["return"]:function(y){return{value:y,done:!0}},N,q.JSC$8802_context_.return);
q.JSC$8802_context_.return(N);return aK(q)};
JZx=function(q,N,b,y){try{var J=N.call(q.JSC$8802_context_.yieldAllIterator_,b);if(!(J instanceof Object))throw new TypeError("e`"+J);if(!J.done)return q.JSC$8802_context_.isRunning_=!1,J;var E=J.value}catch(F){return q.JSC$8802_context_.yieldAllIterator_=null,bCv(q.JSC$8802_context_,F),aK(q)}q.JSC$8802_context_.yieldAllIterator_=null;y.call(q.JSC$8802_context_,E);return aK(q)};
aK=function(q){for(;q.JSC$8802_context_.nextAddress;)try{var N=q.program_(q.JSC$8802_context_);if(N)return q.JSC$8802_context_.isRunning_=!1,{value:N.value,done:!1}}catch(b){q.JSC$8802_context_.yieldResult=void 0,bCv(q.JSC$8802_context_,b)}q.JSC$8802_context_.isRunning_=!1;if(q.JSC$8802_context_.abruptCompletion_){N=q.JSC$8802_context_.abruptCompletion_;q.JSC$8802_context_.abruptCompletion_=null;if(N.isException)throw N.exception;return{value:N.return,done:!0}}return{value:void 0,done:!0}};
gDT=function(q){this.next=function(N){NAE(q.JSC$8802_context_);q.JSC$8802_context_.yieldAllIterator_?N=JZx(q,q.JSC$8802_context_.yieldAllIterator_.next,N,q.JSC$8802_context_.JSC$8797_next_):(q.JSC$8802_context_.JSC$8797_next_(N),N=aK(q));return N};
this.throw=function(N){NAE(q.JSC$8802_context_);q.JSC$8802_context_.yieldAllIterator_?N=JZx(q,q.JSC$8802_context_.yieldAllIterator_["throw"],N,q.JSC$8802_context_.JSC$8797_next_):(bCv(q.JSC$8802_context_,N),N=aK(q));return N};
this.return=function(N){return EDF(q,N)};
this[Symbol.iterator]=function(){return this}};
_.b9=function(q,N){N=new gDT(new yZ1(N));CN&&q.prototype&&CN(N,q.prototype);return N};
ZCx=function(q){function N(y){return q.next(y)}
function b(y){return q.throw(y)}
return new Promise(function(y,J){function E(F){F.done?y(F.value):Promise.resolve(F.value).then(N,b).then(E,J)}
E(q.next())})};
_.d=function(q){return ZCx(new gDT(new yZ1(q)))};
fN("Symbol",function(q){if(q)return q;var N=function(E,F){this.$jscomp$symbol$id_=E;aed(this,"description",{configurable:!0,writable:!0,value:F})};
N.prototype.toString=function(){return this.$jscomp$symbol$id_};
var b="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",y=0,J=function(E){if(this instanceof J)throw new TypeError("g");return new N(b+(E||"")+"_"+y++,E)};
return J});
fN("Symbol.iterator",function(q){if(q)return q;q=Symbol("h");aed(Array.prototype,q,{configurable:!0,writable:!0,value:function(){return FdR(B_J(this))}});
return q});
fN("Symbol.asyncIterator",function(q){return q?q:Symbol("i")});
FdR=function(q){q={next:q};q[Symbol.iterator]=function(){return this};
return q};
_.Qz=function(q){var N=q[Symbol.asyncIterator];return N!==void 0?N.call(q):new Ru1(_.Z(q))};
Ru1=function(q){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return q};
this.next=function(N){return Promise.resolve(q.next(N))};
this["throw"]=function(N){return new Promise(function(b,y){var J=q["throw"];J!==void 0?b(J.call(q,N)):(b=q["return"],b!==void 0&&b.call(q),y(new TypeError("j")))})};
q["return"]!==void 0&&(this["return"]=function(N){return Promise.resolve(q["return"](N))})};
_.MB=function(){for(var q=Number(this),N=[],b=q;b<arguments.length;b++)N[b-q]=arguments[b];return N};
_.yD=function(q){return q};
fN("globalThis",function(q){return q||_.$H});
fN("Reflect",function(q){return q?q:{}});
fN("Reflect.construct",function(){return PyJ});
fN("Reflect.setPrototypeOf",function(q){return q?q:CN?function(N,b){try{return CN(N,b),!0}catch(y){return!1}}:null});
fN("Promise",function(q){function N(){this.batch_=null}
function b(F){return F instanceof J?F:new J(function(R){R(F)})}
if(q&&(typeof _.$H.PromiseRejectionEvent!=="undefined"||!_.$H.Promise||_.$H.Promise.toString().indexOf("[native code]")===-1))return q;N.prototype.asyncExecute=function(F){if(this.batch_==null){this.batch_=[];var R=this;this.asyncExecuteFunction(function(){R.executeBatch_()})}this.batch_.push(F)};
var y=_.$H.setTimeout;N.prototype.asyncExecuteFunction=function(F){y(F,0)};
N.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var F=this.batch_;this.batch_=[];for(var R=0;R<F.length;++R){var c=F[R];F[R]=null;try{c()}catch(z){this.asyncThrow_(z)}}}this.batch_=null};
N.prototype.asyncThrow_=function(F){this.asyncExecuteFunction(function(){throw F;})};
var J=function(F){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var R=this.createResolveAndReject_();try{F(R.resolve,R.reject)}catch(c){R.reject(c)}};
J.prototype.createResolveAndReject_=function(){function F(z){return function(m){c||(c=!0,z.call(R,m))}}
var R=this,c=!1;return{resolve:F(this.resolveTo_),reject:F(this.JSC$8834_reject_)}};
J.prototype.resolveTo_=function(F){if(F===this)this.JSC$8834_reject_(new TypeError("n"));else if(F instanceof J)this.settleSameAsPromise_(F);else{a:switch(typeof F){case "object":var R=F!=null;break a;case "function":R=!0;break a;default:R=!1}R?this.resolveToNonPromiseObj_(F):this.fulfill_(F)}};
J.prototype.resolveToNonPromiseObj_=function(F){var R=void 0;try{R=F.then}catch(c){this.JSC$8834_reject_(c);return}typeof R=="function"?this.settleSameAsThenable_(R,F):this.fulfill_(F)};
J.prototype.JSC$8834_reject_=function(F){this.settle_(2,F)};
J.prototype.fulfill_=function(F){this.settle_(1,F)};
J.prototype.settle_=function(F,R){if(this.state_!=0)throw Error("o`"+F+"`"+R+"`"+this.state_);this.state_=F;this.result_=R;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
J.prototype.scheduleUnhandledRejectionCheck_=function(){var F=this;y(function(){if(F.notifyUnhandledRejection_()){var R=_.$H.console;typeof R!=="undefined"&&R.error(F.result_)}},1)};
J.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var F=_.$H.CustomEvent,R=_.$H.Event,c=_.$H.dispatchEvent;if(typeof c==="undefined")return!0;typeof F==="function"?F=new F("unhandledrejection",{cancelable:!0}):typeof R==="function"?F=new R("unhandledrejection",{cancelable:!0}):(F=_.$H.document.createEvent("CustomEvent"),F.initCustomEvent("unhandledrejection",!1,!0,F));F.promise=this;F.reason=this.result_;return c(F)};
J.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var F=0;F<this.onSettledCallbacks_.length;++F)E.asyncExecute(this.onSettledCallbacks_[F]);this.onSettledCallbacks_=null}};
var E=new N;J.prototype.settleSameAsPromise_=function(F){var R=this.createResolveAndReject_();F.callWhenSettled_(R.resolve,R.reject)};
J.prototype.settleSameAsThenable_=function(F,R){var c=this.createResolveAndReject_();try{F.call(R,c.resolve,c.reject)}catch(z){c.reject(z)}};
J.prototype.then=function(F,R){function c(X,V){return typeof X=="function"?function(G){try{z(X(G))}catch(w){m(w)}}:V}
var z,m,r=new J(function(X,V){z=X;m=V});
this.callWhenSettled_(c(F,z),c(R,m));return r};
J.prototype.catch=function(F){return this.then(void 0,F)};
J.prototype.callWhenSettled_=function(F,R){function c(){switch(z.state_){case 1:F(z.result_);break;case 2:R(z.result_);break;default:throw Error("p`"+z.state_);}}
var z=this;this.onSettledCallbacks_==null?E.asyncExecute(c):this.onSettledCallbacks_.push(c);this.isRejectionHandled_=!0};
J.resolve=b;J.reject=function(F){return new J(function(R,c){c(F)})};
J.race=function(F){return new J(function(R,c){for(var z=_.Z(F),m=z.next();!m.done;m=z.next())b(m.value).callWhenSettled_(R,c)})};
J.all=function(F){var R=_.Z(F),c=R.next();return c.done?b([]):new J(function(z,m){function r(G){return function(w){X[G]=w;V--;V==0&&z(X)}}
var X=[],V=0;do X.push(void 0),V++,b(c.value).callWhenSettled_(r(X.length-1),m),c=R.next();while(!c.done)})};
return J});
var Sa=function(q,N,b){if(q==null)throw new TypeError("q`"+b);if(N instanceof RegExp)throw new TypeError("r`"+b);return q+""};
fN("String.prototype.startsWith",function(q){return q?q:function(N,b){var y=Sa(this,N,"startsWith"),J=y.length,E=N.length;b=Math.max(0,Math.min(b|0,y.length));for(var F=0;F<E&&b<J;)if(y[b++]!=N[F++])return!1;return F>=E}});
fN("Object.setPrototypeOf",function(q){return q||CN});
fN("Symbol.dispose",function(q){return q?q:Symbol("s")});
fN("SuppressedError",function(q){function N(b,y,J){if(!(this instanceof N))return new N(b,y,J);J=Error(J);"stack"in J&&(this.stack=J.stack);this.message=J.message;this.error=b;this.suppressed=y}
if(q)return q;_.Y(N,Error);N.prototype.name="SuppressedError";return N});
fN("Array.from",function(q){return q?q:function(N,b,y){b=b!=null?b:function(R){return R};
var J=[],E=typeof Symbol!="undefined"&&Symbol.iterator&&N[Symbol.iterator];if(typeof E=="function"){N=E.call(N);for(var F=0;!(E=N.next()).done;)J.push(b.call(y,E.value,F++))}else for(E=N.length,F=0;F<E;F++)J.push(b.call(y,N[F],F));return J}});
var deT=function(q,N,b){q instanceof String&&(q=String(q));for(var y=q.length,J=0;J<y;J++){var E=q[J];if(N.call(b,E,J,q))return{i:J,v:E}}return{i:-1,v:void 0}};
fN("Array.prototype.find",function(q){return q?q:function(N,b){return deT(this,N,b).v}});
fN("WeakMap",function(q){function N(){}
function b(c){var z=typeof c;return z==="object"&&c!==null||z==="function"}
function y(c){if(!sd(c,E)){var z=new N;aed(c,E,{value:z})}}
function J(c){var z=Object[c];z&&(Object[c]=function(m){if(m instanceof N)return m;Object.isExtensible(m)&&y(m);return z(m)})}
if(function(){if(!q||!Object.seal)return!1;try{var c=Object.seal({}),z=Object.seal({}),m=new q([[c,2],[z,3]]);if(m.get(c)!=2||m.get(z)!=3)return!1;m.delete(c);m.set(z,4);return!m.has(c)&&m.get(z)==4}catch(r){return!1}}())return q;
var E="$jscomp_hidden_"+Math.random();J("freeze");J("preventExtensions");J("seal");var F=0,R=function(c){this.JSC$8842_id_=(F+=Math.random()+1).toString();if(c){c=_.Z(c);for(var z;!(z=c.next()).done;)z=z.value,this.set(z[0],z[1])}};
R.prototype.set=function(c,z){if(!b(c))throw Error("t");y(c);if(!sd(c,E))throw Error("u`"+c);c[E][this.JSC$8842_id_]=z;return this};
R.prototype.get=function(c){return b(c)&&sd(c,E)?c[E][this.JSC$8842_id_]:void 0};
R.prototype.has=function(c){return b(c)&&sd(c,E)&&sd(c[E],this.JSC$8842_id_)};
R.prototype.delete=function(c){return b(c)&&sd(c,E)&&sd(c[E],this.JSC$8842_id_)?delete c[E][this.JSC$8842_id_]:!1};
return R});
fN("Map",function(q){if(function(){if(!q||typeof q!="function"||!q.prototype.entries||typeof Object.seal!="function")return!1;try{var R=Object.seal({x:4}),c=new q(_.Z([[R,"s"]]));if(c.get(R)!="s"||c.size!=1||c.get({x:4})||c.set({x:4},"t")!=c||c.size!=2)return!1;var z=c.entries(),m=z.next();if(m.done||m.value[0]!=R||m.value[1]!="s")return!1;m=z.next();return m.done||m.value[0].x!=4||m.value[1]!="t"||!z.next().done?!1:!0}catch(r){return!1}}())return q;
var N=new WeakMap,b=function(R){this[0]={};this[1]=E();this.size=0;if(R){R=_.Z(R);for(var c;!(c=R.next()).done;)c=c.value,this.set(c[0],c[1])}};
b.prototype.set=function(R,c){R=R===0?0:R;var z=y(this,R);z.list||(z.list=this[0][z.id]=[]);z.entry?z.entry.value=c:(z.entry={next:this[1],previous:this[1].previous,head:this[1],key:R,value:c},z.list.push(z.entry),this[1].previous.next=z.entry,this[1].previous=z.entry,this.size++);return this};
b.prototype.delete=function(R){R=y(this,R);return R.entry&&R.list?(R.list.splice(R.index,1),R.list.length||delete this[0][R.id],R.entry.previous.next=R.entry.next,R.entry.next.previous=R.entry.previous,R.entry.head=null,this.size--,!0):!1};
b.prototype.clear=function(){this[0]={};this[1]=this[1].previous=E();this.size=0};
b.prototype.has=function(R){return!!y(this,R).entry};
b.prototype.get=function(R){return(R=y(this,R).entry)&&R.value};
b.prototype.entries=function(){return J(this,function(R){return[R.key,R.value]})};
b.prototype.keys=function(){return J(this,function(R){return R.key})};
b.prototype.values=function(){return J(this,function(R){return R.value})};
b.prototype.forEach=function(R,c){for(var z=this.entries(),m;!(m=z.next()).done;)m=m.value,R.call(c,m[1],m[0],this)};
b.prototype[Symbol.iterator]=b.prototype.entries;var y=function(R,c){var z=c&&typeof c;z=="object"||z=="function"?N.has(c)?z=N.get(c):(z=""+ ++F,N.set(c,z)):z="p_"+c;var m=R[0][z];if(m&&sd(R[0],z))for(R=0;R<m.length;R++){var r=m[R];if(c!==c&&r.key!==r.key||c===r.key)return{id:z,list:m,index:R,entry:r}}return{id:z,list:m,index:-1,entry:void 0}},J=function(R,c){var z=R[1];
return FdR(function(){if(z){for(;z.head!=R[1];)z=z.previous;for(;z.next!=z.head;)return z=z.next,{done:!1,value:c(z)};z=null}return{done:!0,value:void 0}})},E=function(){var R={};
return R.previous=R.next=R.head=R},F=0;
return b});
fN("Set",function(q){if(function(){if(!q||typeof q!="function"||!q.prototype.entries||typeof Object.seal!="function")return!1;try{var b=Object.seal({x:4}),y=new q(_.Z([b]));if(!y.has(b)||y.size!=1||y.add(b)!=y||y.size!=1||y.add({x:4})!=y||y.size!=2)return!1;var J=y.entries(),E=J.next();if(E.done||E.value[0]!=b||E.value[1]!=b)return!1;E=J.next();return E.done||E.value[0]==b||E.value[0].x!=4||E.value[1]!=E.value[0]?!1:J.next().done}catch(F){return!1}}())return q;
var N=function(b){this.JSC$8856_map_=new Map;if(b){b=_.Z(b);for(var y;!(y=b.next()).done;)this.add(y.value)}this.size=this.JSC$8856_map_.size};
N.prototype.add=function(b){b=b===0?0:b;this.JSC$8856_map_.set(b,b);this.size=this.JSC$8856_map_.size;return this};
N.prototype.delete=function(b){b=this.JSC$8856_map_.delete(b);this.size=this.JSC$8856_map_.size;return b};
N.prototype.clear=function(){this.JSC$8856_map_.clear();this.size=0};
N.prototype.has=function(b){return this.JSC$8856_map_.has(b)};
N.prototype.entries=function(){return this.JSC$8856_map_.entries()};
N.prototype.values=function(){return this.JSC$8856_map_.values()};
N.prototype.keys=N.prototype.values;N.prototype[Symbol.iterator]=N.prototype.values;N.prototype.forEach=function(b,y){var J=this;this.JSC$8856_map_.forEach(function(E){return b.call(y,E,E,J)})};
return N});
fN("Math.log2",function(q){return q?q:function(N){return Math.log(N)/Math.LN2}});
fN("Object.values",function(q){return q?q:function(N){var b=[],y;for(y in N)sd(N,y)&&b.push(N[y]);return b}});
fN("Object.is",function(q){return q?q:function(N,b){return N===b?N!==0||1/N===1/b:N!==N&&b!==b}});
fN("Array.prototype.includes",function(q){return q?q:function(N,b){var y=this;y instanceof String&&(y=String(y));var J=y.length;b=b||0;for(b<0&&(b=Math.max(b+J,0));b<J;b++){var E=y[b];if(E===N||Object.is(E,N))return!0}return!1}});
fN("String.prototype.includes",function(q){return q?q:function(N,b){return Sa(this,N,"includes").indexOf(N,b||0)!==-1}});
fN("Object.entries",function(q){return q?q:function(N){var b=[],y;for(y in N)sd(N,y)&&b.push([y,N[y]]);return b}});
fN("Number.isFinite",function(q){return q?q:function(N){return typeof N!=="number"?!1:!isNaN(N)&&N!==Infinity&&N!==-Infinity}});
fN("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
fN("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
fN("Number.isInteger",function(q){return q?q:function(N){return Number.isFinite(N)?N===Math.floor(N):!1}});
fN("Number.isSafeInteger",function(q){return q?q:function(N){return Number.isInteger(N)&&Math.abs(N)<=Number.MAX_SAFE_INTEGER}});
fN("String.prototype.endsWith",function(q){return q?q:function(N,b){var y=Sa(this,N,"endsWith");b===void 0&&(b=y.length);b=Math.max(0,Math.min(b|0,y.length));for(var J=N.length;J>0&&b>0;)if(y[--b]!=N[--J])return!1;return J<=0}});
var cZM=function(q,N){q instanceof String&&(q+="");var b=0,y=!1,J={next:function(){if(!y&&b<q.length){var E=b++;return{value:N(E,q[E]),done:!1}}y=!0;return{done:!0,value:void 0}}};
J[Symbol.iterator]=function(){return J};
return J};
fN("Array.prototype.entries",function(q){return q?q:function(){return cZM(this,function(N,b){return[N,b]})}});
fN("Math.trunc",function(q){return q?q:function(N){N=Number(N);if(isNaN(N)||N===Infinity||N===-Infinity||N===0)return N;var b=Math.floor(Math.abs(N));return N<0?-b:b}});
fN("Number.isNaN",function(q){return q?q:function(N){return typeof N==="number"&&isNaN(N)}});
fN("Array.prototype.keys",function(q){return q?q:function(){return cZM(this,function(N){return N})}});
fN("Array.prototype.values",function(q){return q?q:function(){return cZM(this,function(N,b){return b})}});
fN("Array.prototype.fill",function(q){return q?q:function(N,b,y){var J=this.length||0;b<0&&(b=Math.max(0,J+b));if(y==null||y>J)y=J;y=Number(y);y<0&&(y=Math.max(0,J+y));for(b=Number(b||0);b<y;b++)this[b]=N;return this}});
psA("fill",function(q){return q?q:Array.prototype.fill});
fN("Object.fromEntries",function(q){return q?q:function(N){var b={};if(!(Symbol.iterator in N))throw new TypeError("v`"+N);N=N[Symbol.iterator].call(N);for(var y=N.next();!y.done;y=N.next()){y=y.value;if(Object(y)!==y)throw new TypeError("w");b[y[0]]=y[1]}return b}});
fN("String.prototype.replaceAll",function(q){return q?q:function(N,b){if(N instanceof RegExp&&!N.global)throw new TypeError("x");return N instanceof RegExp?this.replace(N,b):this.replace(new RegExp(String(N).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),b)}});
fN("Object.getOwnPropertySymbols",function(q){return q?q:function(){return[]}});
fN("String.prototype.repeat",function(q){return q?q:function(N){var b=Sa(this,null,"repeat");if(N<0||N>1342177279)throw new RangeError("y");N|=0;for(var y="";N;)if(N&1&&(y+=b),N>>>=1)b+=b;return y}});
fN("Array.prototype.findIndex",function(q){return q?q:function(N,b){return deT(this,N,b).i}});
fN("Array.prototype.flatMap",function(q){return q?q:function(N,b){var y=[];Array.prototype.forEach.call(this,function(J,E){J=N.call(b,J,E,this);Array.isArray(J)?y.push.apply(y,J):y.push(J)});
return y}});
fN("String.prototype.codePointAt",function(q){return q?q:function(N){var b=Sa(this,null,"codePointAt"),y=b.length;N=Number(N)||0;if(N>=0&&N<y){N|=0;var J=b.charCodeAt(N);if(J<55296||J>56319||N+1===y)return J;N=b.charCodeAt(N+1);return N<56320||N>57343?J:(J-55296)*1024+N+9216}}});
fN("String.fromCodePoint",function(q){return q?q:function(N){for(var b="",y=0;y<arguments.length;y++){var J=Number(arguments[y]);if(J<0||J>1114111||J!==Math.floor(J))throw new RangeError("z`"+J);J<=65535?b+=String.fromCharCode(J):(J-=65536,b+=String.fromCharCode(J>>>10&1023|55296),b+=String.fromCharCode(J&1023|56320))}return b}});
fN("String.prototype.trimLeft",function(q){function N(){return this.replace(/^[\s\xa0]+/,"")}
return q||N});
fN("String.prototype.trimStart",function(q){return q||String.prototype.trimLeft});
fN("String.prototype.padStart",function(q){return q?q:function(N,b){var y=Sa(this,null,"padStart");N-=y.length;b=b!==void 0?String(b):" ";return(N>0&&b?b.repeat(Math.ceil(N/b.length)).substring(0,N):"")+y}});
fN("Promise.prototype.finally",function(q){return q?q:function(N){return this.then(function(b){return Promise.resolve(N()).then(function(){return b})},function(b){return Promise.resolve(N()).then(function(){throw b;
})})}});
fN("Math.imul",function(q){return q?q:function(N,b){N=Number(N);b=Number(b);var y=N&65535,J=b&65535;return y*J+((N>>>16&65535)*J+y*(b>>>16&65535)<<16>>>0)|0}});
fN("Object.hasOwn",function(q){return q?q:function(N,b){return Object.prototype.hasOwnProperty.call(N,b)}});
fN("Math.sign",function(q){return q?q:function(N){N=Number(N);return N===0||isNaN(N)?N:N>0?1:-1}});
fN("Array.prototype.flat",function(q){return q?q:function(N){N=N===void 0?1:N;var b=[];Array.prototype.forEach.call(this,function(y){Array.isArray(y)&&N>0?(y=Array.prototype.flat.call(y,N-1),b.push.apply(b,y)):b.push(y)});
return b}});
fN("String.raw",function(q){return q?q:function(N,b){N=HlJ(N);for(var y=N.raw,J=y.length,E="",F=0;F<J;++F)E+=y[F],F+1<J&&F+1<arguments.length&&(E+=String(arguments[F+1]));return E}});
fN("WeakSet",function(q){if(function(){if(!q||!Object.seal)return!1;try{var b=Object.seal({}),y=Object.seal({}),J=new q([b]);if(!J.has(b)||J.has(y))return!1;J.delete(b);J.add(y);return!J.has(b)&&J.has(y)}catch(E){return!1}}())return q;
var N=function(b){this.JSC$8867_map_=new WeakMap;if(b){b=_.Z(b);for(var y;!(y=b.next()).done;)this.add(y.value)}};
N.prototype.add=function(b){this.JSC$8867_map_.set(b,!0);return this};
N.prototype.has=function(b){return this.JSC$8867_map_.has(b)};
N.prototype.delete=function(b){return this.JSC$8867_map_.delete(b)};
return N});
fN("Reflect.ownKeys",function(q){return q?q:function(N){var b=[],y=Object.getOwnPropertyNames(N);N=Object.getOwnPropertySymbols(N);for(var J=0;J<y.length;J++)(y[J].substring(0,14)=="jscomp_symbol_"?N:b).push(y[J]);return b.concat(N)}});
fN("Object.getOwnPropertyDescriptors",function(q){return q?q:function(N){for(var b={},y=Reflect.ownKeys(N),J=0;J<y.length;J++)b[y[J]]=Object.getOwnPropertyDescriptor(N,y[J]);return b}});
fN("Promise.allSettled",function(q){function N(y){return{status:"fulfilled",value:y}}
function b(y){return{status:"rejected",reason:y}}
return q?q:function(y){var J=this;y=Array.from(y,function(E){return J.resolve(E).then(N,b)});
return J.all(y)}});
fN("Number.parseInt",function(q){return q||parseInt});
_._DumpException=window._DumpException||function(q){throw q;};
window._DumpException=_._DumpException;var udR=window.ytcsi;udR&&typeof udR.tick==="function"&&udR.tick("rses_dpj");var zuT,WV,LN,pN,$ej,tnx,mej,rZ1,KU,XAJ;zuT=zuT||{};_.JZ=this||self;_.zn=function(q,N,b){q=q.split(".");b=b||_.JZ;for(var y;q.length&&(y=q.shift());)q.length||N===void 0?b[y]&&b[y]!==Object.prototype[y]?b=b[y]:b=b[y]={}:b[y]=N};
WV=function(q,N){var b=_.Ng("WIZ_global_data.oxN3nb");q=b&&b[q];return q!=null?q:N};
LN=_.JZ._F_toggles_default_kevlar_base||[];pN=function(){};
pN.get=function(){return null};
_.y3A=null;_.Ng=function(q,N){q=q.split(".");N=N||_.JZ;for(var b=0;b<q.length;b++)if(N=N[q[b]],N==null)return null;return N};
_.PV=function(q){q.instance_=void 0;q.getInstance=function(){return q.instance_?q.instance_:q.instance_=new q}};
_.NN=function(q){var N=typeof q;return N!="object"?N:q?Array.isArray(q)?"array":N:"null"};
_.pC=function(q){var N=_.NN(q);return N=="array"||N=="object"&&typeof q.length=="number"};
_.AZ=function(q){var N=typeof q;return N=="object"&&q!=null||N=="function"};
_.en=function(q){return Object.prototype.hasOwnProperty.call(q,$ej)&&q[$ej]||(q[$ej]=++tnx)};
$ej="closure_uid_"+(Math.random()*1E9>>>0);tnx=0;mej=function(q,N,b){return q.call.apply(q.bind,arguments)};
rZ1=function(q,N,b){if(!q)throw Error();if(arguments.length>2){var y=Array.prototype.slice.call(arguments,2);return function(){var J=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(J,y);return q.apply(N,J)}}return function(){return q.apply(N,arguments)}};
_.fF=function(q,N,b){_.fF=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?mej:rZ1;return _.fF.apply(null,arguments)};
_.dg=function(q,N){var b=Array.prototype.slice.call(arguments,1);return function(){var y=b.slice();y.push.apply(y,arguments);return q.apply(this,y)}};
_.M$=function(){return Date.now()};
KU=function(q){return q};
_.oK=function(q,N){function b(){}
b.prototype=N.prototype;q.superClass_=N.prototype;q.prototype=new b;q.prototype.constructor=q;q.base=function(y,J,E){for(var F=Array(arguments.length-2),R=2;R<arguments.length;R++)F[R-2]=arguments[R];return N.prototype[J].apply(y,F)}};
XAJ=function(q){return q};var Vnv,jJR;_.p=function(q,N,b,y){var J=arguments.length,E=J<3?N:y===null?y=Object.getOwnPropertyDescriptor(N,b):y,F;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")E=Reflect.decorate(q,N,b,y);else for(var R=q.length-1;R>=0;R--)if(F=q[R])E=(J<3?F(E):J>3?F(N,b,E):F(N,b))||E;J>3&&E&&Object.defineProperty(N,b,E)};
_.P=function(q,N){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(q,N)};
Vnv=function(q,N){if(N!==null&&N!==void 0){if(typeof N!=="object"&&typeof N!=="function")throw new TypeError("A");if(b===void 0){if(!Symbol.dispose)throw new TypeError("C");var b=N[Symbol.dispose]}if(typeof b!=="function")throw new TypeError("D");q.stack.push({value:N,dispose:b,async:!1})}return N};
jJR=function(q){function N(E){q.error=q.hasError?new SuppressedError(E,q.error,"An error was suppressed during disposal."):E;q.hasError=!0}
function b(){for(;y=q.stack.pop();)try{if(!y.async&&J===1)return J=0,q.stack.push(y),Promise.resolve().then(b);if(y.dispose){var E=y.dispose.call(y.value);if(y.async)return J|=2,Promise.resolve(E).then(b,function(F){N(F);return b()})}else J|=1}catch(F){N(F)}if(J===1)return q.hasError?Promise.reject(q.error):Promise.resolve();
if(q.hasError)throw q.error;}
var y,J=0;b()};var xex="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(" ");qJD()&&xex.push("details:not(:has(summary))");var bCe=xex.join(",");_.oK(_.bn,Error);_.bn.prototype.name="CustomError";var vDq;var Gz1=void 0,YJo,QJx=typeof TextDecoder!=="undefined",cZd,den=typeof String.prototype.isWellFormed==="function",RuC=typeof TextEncoder!=="undefined";var OCJ;_.kN=function(q){for(var N=[],b=0,y=0;y<q.length;y++){var J=q.charCodeAt(y);J<128?N[b++]=J:(J<2048?N[b++]=J>>6|192:((J&64512)==55296&&y+1<q.length&&(q.charCodeAt(y+1)&64512)==56320?(J=65536+((J&1023)<<10)+(q.charCodeAt(++y)&1023),N[b++]=J>>18|240,N[b++]=J>>12&63|128):N[b++]=J>>12|224,N[b++]=J>>6&63|128),N[b++]=J&63|128)}return N};
OCJ=function(q){for(var N=[],b=0,y=0;b<q.length;){var J=q[b++];if(J<128)N[y++]=String.fromCharCode(J);else if(J>191&&J<224){var E=q[b++];N[y++]=String.fromCharCode((J&31)<<6|E&63)}else if(J>239&&J<365){E=q[b++];var F=q[b++],R=q[b++];J=((J&7)<<18|(E&63)<<12|(F&63)<<6|R&63)-65536;N[y++]=String.fromCharCode(55296+(J>>10));N[y++]=String.fromCharCode(56320+(J&1023))}else E=q[b++],F=q[b++],N[y++]=String.fromCharCode((J&15)<<12|(E&63)<<6|F&63)}return N.join("")};var $D=String.prototype.trim?function(q){return q.trim()}:function(q){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(q)[1]},wAv=/&/g,iCx=/</g,lRl=/>/g,KdE=/"/g,Deo=/'/g,hux=/\x00/g,kz4=/[\x00&<>"']/;var A7=!!(LN[0]>>15&1),UeF=!!(LN[0]&1024),fRE=!!(LN[0]>>16&1),Cnv=!!(LN[0]&8),IRq=!!(LN[0]&2),TAq=!!(LN[0]&4),sJ1=!!(LN[0]&16),nDF=!!(LN[0]&128);var jn=A7?fRE:WV(610401301,!1),aRM=A7?Cnv:WV(772657768,!1),SJR=A7?IRq:WV(513659523,!1),Wd4=A7?UeF||!TAq:WV(568333945,!0),OhA=A7?sJ1:WV(1331761403,!1),xNC=A7?UeF||!nDF:WV(748402147,!0);var vA,LdT=_.JZ.navigator;vA=LdT?LdT.userAgentData||null:null;var gL;_.Tz=function(q,N){return Array.prototype.indexOf.call(q,N,void 0)};
_.Jz=function(q,N,b){Array.prototype.forEach.call(q,N,b)};
_.ea=function(q,N,b){return Array.prototype.filter.call(q,N,b)};
_.aW=function(q,N,b){return Array.prototype.map.call(q,N,b)};
gL=function(q,N,b){return Array.prototype.some.call(q,N,b)};
_.a2D=function(q,N,b){return Array.prototype.every.call(q,N,b)};var BV=function(q){BV[" "](q);return q};
BV[" "]=function(){};
var fkJ=function(q,N){try{return BV(q[N]),!0}catch(b){}return!1},zwu=function(q,N,b,y){y=y?y(N):N;
return Object.prototype.hasOwnProperty.call(q,y)?q[y]:q[y]=b(N)};var pA1,cv,Pnq,Mn1,AZR,euE,WCR,BAj,HCE,qx1,gID,b1o,y4E,Z1F,FMx,RJl;_.OKC=function(){return _.JZ.navigator||null};
pA1=tnA();_.HV=men();cv=Gz("Edge");Pnq=cv||_.HV;_.qd=Gz("Gecko")&&!(_.zz(_.Vh(),"WebKit")&&!Gz("Edge"))&&!(Gz("Trident")||Gz("MSIE"))&&!Gz("Edge");_.Nd=_.zz(_.Vh(),"WebKit")&&!Gz("Edge");Mn1=_.Nd&&Gz("Mobile");_.oDo=_.QJJ();AZR=_.OCu();euE=(DR()?vA.platform==="Linux":Gz("Linux"))||_.wAe();WCR=_.Gzd();BAj=YJz();HCE=Gz("iPad");qx1=Gz("iPod");_.NxT=_.hZ();gID=_.zz(_.Vh(),"KaiOS");b1o=function(){var q=_.JZ.document;return q?q.documentMode:void 0};
a:{var J4x="",EER=function(){var q=_.Vh();if(_.qd)return/rv:([^\);]+)(\)|;)/.exec(q);if(cv)return/Edge\/([\d\.]+)/.exec(q);if(_.HV)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(q);if(_.Nd)return/WebKit\/(\S+)/.exec(q);if(pA1)return/(?:Version)[ \/]?(\S+)/.exec(q)}();
EER&&(J4x=EER?EER[1]:"");if(_.HV){var gEx=b1o();if(gEx!=null&&gEx>parseFloat(J4x)){y4E=String(gEx);break a}}y4E=J4x}Z1F=y4E;FMx={};_.bZ=function(q){return zwu(FMx,q,function(){return _.md(Z1F,q)>=0})};
if(_.JZ.document&&_.HV){var dvv=b1o();RJl=dvv?dvv:parseInt(Z1F,10)||void 0}else RJl=void 0;_.c4j=RJl;var Mgu,oon,u1x;_.yW=OJ();Mgu=YJz()||Gz("iPod");oon=Gz("iPad");u1x=_.Vne();_.Js=_.ln();_.B4=_.XAu()&&!_.hZ();var zJo,En,bFh,bRJ,tjj,$vq;zJo={};En=null;bFh=_.qd||_.Nd||typeof _.JZ.btoa=="function";_.Uf=function(q,N){N===void 0&&(N=0);$vq();N=zJo[N];for(var b=Array(Math.floor(q.length/3)),y=N[64]||"",J=0,E=0;J<q.length-2;J+=3){var F=q[J],R=q[J+1],c=q[J+2],z=N[F>>2];F=N[(F&3)<<4|R>>4];R=N[(R&15)<<2|c>>6];c=N[c&63];b[E++]=z+F+R+c}z=0;c=y;switch(q.length-J){case 2:z=q[J+1],c=N[(z&15)<<2]||y;case 1:q=q[J],b[E]=N[q>>2]+N[(q&3)<<4|z>>4]+c+y}return b.join("")};
bRJ=function(q){var N="";tjj(q,function(b){N+=String.fromCharCode(b)});
return N};
_.axh=function(q){var N=[];tjj(q,function(b){N.push(b)});
return N};
_.HA=function(q){var N=q.length,b=N*3/4;b%3?b=Math.floor(b):_.un("=.",q[N-1])&&(b=_.un("=.",q[N-2])?b-2:b-1);var y=new Uint8Array(b),J=0;tjj(q,function(E){y[J++]=E});
return J!==b?y.subarray(0,J):y};
tjj=function(q,N){function b(c){for(;y<q.length;){var z=q.charAt(y++),m=En[z];if(m!=null)return m;if(!_.dA(z))throw Error("H`"+z);}return c}
$vq();for(var y=0;;){var J=b(-1),E=b(0),F=b(64),R=b(64);if(R===64&&J===-1)break;N(J<<2|E>>4);F!=64&&(N(E<<4&240|F>>2),R!=64&&N(F<<6&192|R))}};
$vq=function(){if(!En){En={};for(var q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),N=["+/=","+/","-_=","-_.","-_"],b=0;b<5;b++){var y=q.concat(N[b].split(""));zJo[b]=y;for(var J=0;J<y.length;J++){var E=y[J];En[E]===void 0&&(En[E]=J)}}}};var BAn=typeof Uint8Array!=="undefined",aRd=!_.HV&&typeof btoa==="function",SJA=/[-_.]/g,sJd={"-":"+",_:"/",".":"="},Dq={};var K1,r4E;K1=function(q,N){if(N!==Dq)throw Error("J");this.JSC$8901_value_=q;if(q!=null&&q.length===0)throw Error("I");};
_.kE=function(){return mvF||(mvF=new K1(null,Dq))};
r4E=function(q){return new Uint8Array(WKJ(q)||0)};
K1.prototype.isEmpty=function(){return this.JSC$8901_value_==null};
K1.prototype.sizeBytes=function(){var q=WKJ(this);return q?q.length:0};
var WKJ=function(q){if(Dq!==Dq)throw Error("J");var N=q.JSC$8901_value_;N==null||BAn&&N!=null&&N instanceof Uint8Array||(typeof N==="string"?N=WdZ(N):(_.NN(N),N=null));return N==null?N:q.JSC$8901_value_=N},mvF;var pAC=void 0;var Ex=typeof Symbol==="function"&&typeof Symbol()==="symbol",XRM=J4("jas",void 0,!0),slD=J4(void 0,"0di"),ye=J4(void 0,"1oa"),ha=J4(void 0,Symbol()),bUn=J4(void 0,"0ub"),JaZ=J4(void 0,"0ubs"),Ocz=J4(void 0,"0ubsb"),GcJ=J4(void 0,"0actk"),wp=J4("m_m","messagePrototypeMarker",!0),tXn=J4(void 0,"vps"),H1J=J4();var oDz,Mnd,of,Vj1;oDz={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};Mnd=Object.defineProperties;_.gx=Ex?XRM:"internalArrayState";Vj1=[];cR(Vj1,7);of=Object.freeze(Vj1);var iB={},QF={},jl1=function(q,N,b){this.iterable=q;this.mapper=N;this.thisArg=b};
jl1.prototype.next=function(){var q=this.iterable.next();q.done||(q.value=this.mapper.call(this.thisArg,q.value));return q};
jl1.prototype[Symbol.iterator]=function(){return this};
var xvj=Object.freeze({}),f1={};_.vE1=Il(function(q){return q!==null&&q!==void 0});var J4A=Il(function(q){return typeof q==="number"}),y4D=Il(function(q){return typeof q==="string"}),gEJ=Il(function(q){return typeof q==="boolean"}),GoJ=Il(function(q){return q!=null&&typeof q==="object"&&typeof q.then==="function"}),nfn=Il(function(q){return typeof q==="function"}),$L=Il(function(q){return!!q&&(typeof q==="object"||typeof q==="function")});var EEA=typeof _.JZ.BigInt==="function"&&typeof _.JZ.BigInt(0)==="bigint";var koA=Il(function(q){return EEA?q>=Yxx&&q<=Qlx:q[0]==="-"?Z1h(q,O14):Z1h(q,wRJ)}),O14=Number.MIN_SAFE_INTEGER.toString(),Yxx=EEA?BigInt(Number.MIN_SAFE_INTEGER):void 0,wRJ=Number.MAX_SAFE_INTEGER.toString(),Qlx=EEA?BigInt(Number.MAX_SAFE_INTEGER):void 0;var i14=typeof Uint8Array.prototype.slice==="function",sx=0,n1=0,dve;var uB,mK,yC,ta,VjC;uB=typeof BigInt==="function"?BigInt.asIntN:void 0;_.VC=typeof BigInt==="function"?BigInt.asUintN:void 0;mK=Number.isSafeInteger;yC=Number.isFinite;ta=Math.trunc;VjC=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var mNA={};var A4n={},lq1=function(){try{var q=function(){return PyJ(Map,[],this.constructor)};
_.Y(q,Map);BV(new q);return!1}catch(N){return!0}}(),gM=function(){this.JSC$8920_map_=new Map};
_.g=gM.prototype;_.g.get=function(q){return this.JSC$8920_map_.get(q)};
_.g.set=function(q,N){this.JSC$8920_map_.set(q,N);this.size=this.JSC$8920_map_.size;return this};
_.g.delete=function(q){q=this.JSC$8920_map_.delete(q);this.size=this.JSC$8920_map_.size;return q};
_.g.clear=function(){this.JSC$8920_map_.clear();this.size=this.JSC$8920_map_.size};
_.g.has=function(q){return this.JSC$8920_map_.has(q)};
_.g.entries=function(){return this.JSC$8920_map_.entries()};
_.g.keys=function(){return this.JSC$8920_map_.keys()};
_.g.values=function(){return this.JSC$8920_map_.values()};
_.g.forEach=function(q,N){return this.JSC$8920_map_.forEach(q,N)};
gM.prototype[Symbol.iterator]=function(){return this.entries()};
var Zs=function(){if(lq1)return Object.setPrototypeOf(gM.prototype,Map.prototype),Object.defineProperties(gM.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),gM;var q=function(){return PyJ(Map,[],this.constructor)};
_.Y(q,Map);return q}(),lB=function(q,N,b,y){b=b===void 0?LMJ:b;
y=y===void 0?LMJ:y;var J=Zs.call(this)||this;J.arrayState=q[_.gx]|0;J.valueCtor=N;J.keyToApi=b;J.valueToApi=J.valueCtor?PTn:y;for(var E=0;E<q.length;E++){var F=q[E],R=b(F[0],!1,!0),c=F[1];N?c===void 0&&(c=null):c=y(F[1],!1,!0,void 0,void 0,J.arrayState);Zs.prototype.set.call(J,R,c)}return J};
_.Y(lB,Zs);var KMx=function(q){if(q.arrayState&2)throw Error("N");},$Nh=function(q,N){return zo(Array.from(Zs.prototype.entries.call(q),N))};
_.g=lB.prototype;_.g.clear=function(){KMx(this);Zs.prototype.clear.call(this)};
_.g.delete=function(q){KMx(this);return Zs.prototype.delete.call(this,this.keyToApi(q,!0,!1))};
_.g.entries=function(){if(this.valueCtor){var q=Zs.prototype.keys.call(this);q=new jl1(q,MjA,this)}else q=Zs.prototype.entries.call(this);return q};
_.g.values=function(){if(this.valueCtor){var q=Zs.prototype.keys.call(this);q=new jl1(q,lB.prototype.get,this)}else q=Zs.prototype.values.call(this);return q};
_.g.forEach=function(q,N){this.valueCtor?Zs.prototype.forEach.call(this,function(b,y,J){q.call(N,J.get(y),y,J)}):Zs.prototype.forEach.call(this,q,N)};
_.g.set=function(q,N){KMx(this);q=this.keyToApi(q,!0,!1);return q==null?this:N==null?(Zs.prototype.delete.call(this,q),this):Zs.prototype.set.call(this,q,this.valueToApi(N,!0,!0,this.valueCtor,!1,this.arrayState))};
_.g.has=function(q){return Zs.prototype.has.call(this,this.keyToApi(q,!1,!1))};
_.g.get=function(q){q=this.keyToApi(q,!1,!1);var N=Zs.prototype.get.call(this,q);if(N!==void 0){var b=this.valueCtor;return b?(b=this.valueToApi(N,!1,!0,b,this.callToMutableOnAccess,this.arrayState),b!==N&&Zs.prototype.set.call(this,q,b),b):N}};
lB.prototype[Symbol.iterator]=function(){return this.entries()};
lB.prototype.toJSON=void 0;var oEZ;var FKJ=function(){},gaD=function(q,N){for(var b in q)!isNaN(b)&&N(q,+b,q[b])},Rxh=function(q){var N=new FKJ;
gaD(q,function(b,y,J){N[y]=Mv(J)});
N.reviveUnknownFields=q.reviveUnknownFields;return N},qfd={reviveIntoImmutable:!0};var ZUA;var ran,XdD;var Dv4,Hd,i0,ky,hJ1,ts,Dy,kox,UvE,VW,fqx,j5,Ga,Ys;Dv4=_.To(0);_.Fn={};_.R6=function(q,N,b,y,J){N=Hd(q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N,b,J);if(N!==null||y&&q.noLegacyNull!==QF)return N};
Hd=function(q,N,b,y){if(N===-1)return null;var J=N+(b?0:-1),E=q.length-1;if(!(E<1+(b?0:-1))){if(J>=E){var F=q[E];if(F!=null&&typeof F==="object"&&F.constructor===Object){b=F[N];var R=!0}else if(J===E)b=F;else return}else b=q[J];if(y&&b!=null){y=y(b);if(y==null)return y;if(!Object.is(y,b))return R?F[N]=y:q[J]=y,y}return b}};
_.x5=function(q,N,b,y){Wd(q);var J=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Pd(J,J[_.gx]|0,N,b,y);return q};
_.dM=function(q,N,b){q=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Tpz(q,q[_.gx]|0,N,b)!==void 0};
_.cc=function(q,N,b,y){var J=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Tpz(J,J[_.gx]|0,N,ky(q,y,b))!==void 0};
_.$N=function(q){return q===xvj?2:4};
_.uZ=function(q,N){q=_.R6(q,N,void 0,void 0,hxJ);return q==null?_.kE():q};
i0=function(q,N,b,y){Wd(q);var J=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=J[_.gx]|0;if(y==null){var F=fWu(J);if(CBd(F,J,E,b)===N)F.set(b,0);else return q}else E=IWR(J,E,b,N);Pd(J,E,N,y);return q};
_.za=function(q,N,b,y){var J=q[_.gx]|0,E=C1(J);J=IWR(q,J,b,N,E);Pd(q,J,N,y,E)};
ky=function(q,N,b){return _.$s(q,N)===b?b:-1};
_.$s=function(q,N){q=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return CBd(fWu(q),q,void 0,N,void 0)};
hJ1=function(q,N,b){var y=q[_.gx]|0,J=C1(y),E=Hd(q,b,J);if(E!=null&&E[wp]===iB){if(!iT(E))return af(E),E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var F=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(E)&&(F=E);if(F){var R=F[_.gx]|0;R&2&&(F=nU(F,R))}F=If(F,N);F!==E&&Pd(q,y,b,F,J);return F};
_.Vr=function(q,N,b,y){var J=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=J[_.gx]|0;N=Tpz(J,E,N,b,y);if(N==null)return N;E=J[_.gx]|0;if(!iT(q,E)){var F=pRC(N);F!==N&&(af(q)&&(J=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=J[_.gx]|0),N=F,E=Pd(J,E,b,N,y),pU(J,E))}return N};
_.zP=function(q,N,b,y){var J=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return sfD(q,J,J[_.gx]|0,N,b,y,!1,!0)};
_.ws=function(q,N,b,y){b=nah(b);_.x5(q,N,b,y);b&&!iT(b)&&pU(q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return q};
_.iX=function(q,N,b,y){y=nah(y);i0(q,N,b,y);y&&!iT(y)&&pU(q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return q};
ts=function(q,N,b){Wd(q);var y=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=y[_.gx]|0;if(b==null)return Pd(y,J,N),q;for(var E=b===of?7:b[_.gx]|0,F=E,R=Bd(E),c=R||Object.isFrozen(b),z=!0,m=!0,r=0;r<b.length;r++){var X=b[r];R||(X=iT(X),z&&(z=!X),m&&(m=X))}R||(E=z?13:5,E=m?E&-4097:E|4096);c&&E===F||(b=Mv(b),F=0,E=Aa(E,J));E!==F&&cR(b,E);J=Pd(y,J,N,b);2&E||!(4096&E||16&E)||pU(y,J);return q};
Dy=function(q,N,b,y){Sfh(q,N,b,y);return q};
kox=function(q,N,b){Sfh(q,N,mY,void 0,b,1,!0);return q};
_.rM=function(q,N,b){q=_.R6(q,N,void 0,b);N=typeof q;q=q==null?q:N==="bigint"?_.To((0,_.VC)(64,q)):_.Ja(q)?N==="string"?_.hJC(q):_.KMJ(q):void 0;return q};
_.Xn=function(q,N){var b=b===void 0?!1:b;var y;return(y=_.XRd(_.R6(q,N)))!=null?y:b};
_.tW=function(q,N,b){b=b===void 0?0:b;var y;return(y=_.dp(_.R6(q,N)))!=null?y:b};
UvE=function(q,N){var b=b===void 0?0:b;q=_.xvn(_.R6(q,N));return q!=null?q:b};
VW=function(q,N,b){b=b===void 0?Dv4:b;var y;return(y=_.CTJ(_.R6(q,N)))!=null?y:b};
fqx=function(q){var N=N===void 0?Dv4:N;var b;return(b=_.rM(q,23))!=null?b:N};
j5=function(q,N){var b=b===void 0?0:b;var y;return(y=_.R6(q,N,void 0,void 0,_.HR))!=null?y:b};
_.xs=function(q,N,b,y){b=b===void 0?"":b;var J;return(J=_.Ya(_.R6(q,N,y)))!=null?J:b};
_.vc=function(q,N){var b=b===void 0?0:b;var y;return(y=_.FA(_.R6(q,N)))!=null?y:b};
Ga=function(q,N){var b=b===void 0?"0":b;q=fqJ(_.R6(q,N),!0);return q!=null?q:b};
Ys=function(q,N,b){return _.xs(q,ky(q,b,N))};
_.QW=function(q,N,b,y){return _.Vr(q,N,ky(q,y,b),void 0)};
_.wE=function(q,N){return _.Ya(_.R6(q,N,void 0,_.Fn))};
_.VE=function(q,N,b){return _.x5(q,N,r4D(b))};
_.xU=function(q,N,b){return _.NB(q,N,r4D(b),!1)};
_.On=function(q,N,b){return _.x5(q,N,_.Rf(b))};
_.fo=function(q,N,b){return _.x5(q,N,$a(b))};
_.Up=function(q,N,b){return _.x5(q,N,vd(b))};
_.f0=function(q,N,b,y){return _.NB(q,N,vd(b),"",y)};
_.jd=function(q,N,b){return _.x5(q,N,b==null?b:_.ZW(b))};
_.wM=function(q,N,b){return _.NB(q,N,b==null?b:_.ZW(b),0)};var Eh=function(q,N,b){this.buffer=q;if(b&&!N)throw Error();this.JSC$8932_isImmutable=N};var CTx=function(q,N,b,y){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8935_start_=0;this.init(q,N,b,y)},iZ,Tx1,slE,nEx,aqE,Sxv,tvZ,IqF;
_.g=CTx.prototype;_.g.init=function(q,N,b,y){var J=y===void 0?{}:y;y=J.aliasBytesFields===void 0?!1:J.aliasBytesFields;J=J.treatNewDataAsImmutable===void 0?!1:J.treatNewDataAsImmutable;this.aliasBytesFields=y;this.treatNewDataAsImmutable=J;q&&(q=LKn(q,this.treatNewDataAsImmutable),this.bytes_=q.buffer,this.bytesAreImmutable_=q.JSC$8932_isImmutable,this.JSC$8935_start_=N||0,this.end_=b!==void 0?this.JSC$8935_start_+b:this.bytes_.length,this.cursor_=this.JSC$8935_start_)};
_.g.free=function(){this.clear();IqF.length<100&&IqF.push(this)};
_.g.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8935_start_=0;this.aliasBytesFields=!1};
_.g.reset=function(){this.cursor_=this.JSC$8935_start_};
_.g.atEnd=function(){return this.cursor_==this.end_};
_.lZ=function(q,N){var b=0,y=0,J=0,E=q.bytes_,F=q.cursor_;do{var R=E[F++];b|=(R&127)<<J;J+=7}while(J<32&&R&128);if(J>32)for(y|=(R&127)>>4,J=3;J<32&&R&128;J+=7)R=E[F++],y|=(R&127)<<J;iZ(q,F);if(!(R&128))return N(b>>>0,y>>>0);throw Error();};
iZ=function(q,N){q.cursor_=N;if(N>q.end_)throw Error();};
_.KL=function(q){var N=q.bytes_,b=q.cursor_,y=N[b++],J=y&127;if(y&128&&(y=N[b++],J|=(y&127)<<7,y&128&&(y=N[b++],J|=(y&127)<<14,y&128&&(y=N[b++],J|=(y&127)<<21,y&128&&(y=N[b++],J|=y<<28,y&128&&N[b++]&128&&N[b++]&128&&N[b++]&128&&N[b++]&128&&N[b++]&128)))))throw Error();iZ(q,b);return J};
_.Ds=function(q){var N=q.bytes_,b=q.cursor_,y=N[b],J=N[b+1],E=N[b+2];N=N[b+3];iZ(q,q.cursor_+4);return(y<<0|J<<8|E<<16|N<<24)>>>0};
Tx1=function(q){var N=_.Ds(q);q=_.Ds(q);return u1A(N,q)};
slE=function(q){var N=_.Ds(q);q=(N>>31)*2+1;var b=N>>>23&255;N&=8388607;return b==255?N?NaN:q*Infinity:b==0?q*1.401298464324817E-45*N:q*Math.pow(2,b-150)*(N+8388608)};
nEx=function(q){var N=_.Ds(q),b=_.Ds(q);q=(b>>31)*2+1;var y=b>>>20&2047;N=4294967296*(b&1048575)+N;return y==2047?N?NaN:q*Infinity:y==0?q*4.9E-324*N:q*Math.pow(2,y-1075)*(N+4503599627370496)};
aqE=function(q){for(var N=0,b=q.cursor_,y=b+10,J=q.bytes_;b<y;){var E=J[b++];N|=E;if((E&128)===0)return iZ(q,b),!!(N&127)}throw Error();};
Sxv=function(q,N){if(N<0)throw Error();var b=q.cursor_;N=b+N;if(N>q.end_)throw Error();q.cursor_=N;return b};
tvZ=function(q,N){if(N==0)return _.kE();var b=Sxv(q,N);q.aliasBytesFields&&q.bytesAreImmutable_?b=q.bytes_.subarray(b,b+N):(q=q.bytes_,N=b+N,b=b===N?new Uint8Array(0):i14?q.slice(b,N):new Uint8Array(q.subarray(b,N)));return b.length==0?_.kE():new K1(b,Dq)};
IqF=[];var LMx=function(q,N,b,y){if(IqF.length){var J=IqF.pop();J.init(q,N,b,y);q=J}else q=new CTx(q,N,b,y);this.decoder_=q;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;WMR(this,y)},WMR=function(q,N){N=N===void 0?{}:N;
q.discardUnknownFields=N.discardUnknownFields===void 0?!1:N.discardUnknownFields},XZn=function(q,N,b,y){if(pR1.length){var J=pR1.pop();
WMR(J,y);J.decoder_.init(q,N,b,y);return J}return new LMx(q,N,b,y)},uye,$BZ,hs,PTT,pR1;
LMx.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;pR1.length<100&&pR1.push(this)};
LMx.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
uye=function(q){if(q.decoder_.atEnd())return!1;q.fieldCursor_=q.decoder_.cursor_;var N=_.KL(q.decoder_)>>>0,b=N>>>3;N&=7;if(!(N>=0&&N<=5))throw Error();if(b<1)throw Error();q.nextField_=b;q.nextWireType_=N;return!0};
$BZ=function(q){switch(q.nextWireType_){case 0:q.nextWireType_!=0?$BZ(q):aqE(q.decoder_);break;case 1:q=q.decoder_;iZ(q,q.cursor_+8);break;case 2:if(q.nextWireType_!=2)$BZ(q);else{var N=_.KL(q.decoder_)>>>0;q=q.decoder_;iZ(q,q.cursor_+N)}break;case 5:q=q.decoder_;iZ(q,q.cursor_+4);break;case 3:N=q.nextField_;do{if(!uye(q))throw Error();if(q.nextWireType_==4){if(q.nextField_!=N)throw Error();break}$BZ(q)}while(1);break;default:throw Error();}};
hs=function(q,N,b){var y=q.decoder_.end_,J=_.KL(q.decoder_)>>>0;J=q.decoder_.cursor_+J;var E=J-y;E<=0&&(q.decoder_.end_=J,b(N,q,void 0,void 0,void 0),E=J-q.decoder_.cursor_);if(E)throw Error();q.decoder_.cursor_=J;q.decoder_.end_=y;return N};
PTT=function(q){var N=_.KL(q.decoder_)>>>0;q=q.decoder_;var b=Sxv(q,N);q=q.bytes_;if(QJx){var y=q,J;(J=YJo)||(J=YJo=new TextDecoder("utf-8",{fatal:!0}));N=b+N;y=b===0&&N===y.length?y:y.subarray(b,N);try{var E=J.decode(y)}catch(z){if(Gz1===void 0){try{J.decode(new Uint8Array([128]))}catch(m){}try{J.decode(new Uint8Array([97])),Gz1=!0}catch(m){Gz1=!1}}!Gz1&&(YJo=void 0);throw z;}}else{E=b;N=E+N;b=[];for(var F=null,R,c;E<N;)R=q[E++],R<128?b.push(R):R<224?E>=N?yh():(c=q[E++],R<194||(c&192)!==128?(E--,
yh()):b.push((R&31)<<6|c&63)):R<240?E>=N-1?yh():(c=q[E++],(c&192)!==128||R===224&&c<160||R===237&&c>=160||((J=q[E++])&192)!==128?(E--,yh()):b.push((R&15)<<12|(c&63)<<6|J&63)):R<=244?E>=N-2?yh():(c=q[E++],(c&192)!==128||(R<<28)+(c-144)>>30!==0||((J=q[E++])&192)!==128||((y=q[E++])&192)!==128?(E--,yh()):(R=(R&7)<<18|(c&63)<<12|(J&63)<<6|y&63,R-=65536,b.push((R>>10&1023)+55296,(R&1023)+56320))):yh(),b.length>=8192&&(F=FdA(F,b),b.length=0);E=FdA(F,b)}return E};
_.MjR=function(q){var N=_.KL(q.decoder_)>>>0;return tvZ(q.decoder_,N)};
_.oE4=function(q,N,b){var y=_.KL(q.decoder_)>>>0;for(y=q.decoder_.cursor_+y;q.decoder_.cursor_<y;)b.push(N(q.decoder_))};
pR1=[];var A4T=function(q,N){this.JSC$8942_lo=q>>>0;this.JSC$8942_hi=N>>>0},h_n=function(q){q=BigInt.asUintN(64,q);
return new A4T(Number(q&BigInt(4294967295)),Number(q>>BigInt(32)))},MXd=function(q){if(!q)return eJ1||(eJ1=new A4T(0,0));
if(!/^\d+$/.test(q))return null;PR(q);return new A4T(sx,n1)},eJ1,DBe=function(q,N){this.JSC$8944_lo=q>>>0;
this.JSC$8944_hi=N>>>0},pdJ=function(q){if(!q)return Bxj||(Bxj=new DBe(0,0));
if(!/^-?\d+$/.test(q))return null;PR(q);return new DBe(sx,n1)},Bxj;var ks=function(){this.JSC$8946_buffer_=[]},Xy,jv,H1l;
ks.prototype.length=function(){return this.JSC$8946_buffer_.length};
ks.prototype.end=function(){var q=this.JSC$8946_buffer_;this.JSC$8946_buffer_=[];return q};
Xy=function(q,N,b){for(;b>0||N>127;)q.JSC$8946_buffer_.push(N&127|128),N=(N>>>7|b<<25)>>>0,b>>>=7;q.JSC$8946_buffer_.push(N)};
jv=function(q,N){for(;N>127;)q.JSC$8946_buffer_.push(N&127|128),N>>>=7;q.JSC$8946_buffer_.push(N)};
_.UBz=function(q,N){if(N>=0)jv(q,N);else{for(var b=0;b<9;b++)q.JSC$8946_buffer_.push(N&127|128),N>>=7;q.JSC$8946_buffer_.push(1)}};
H1l=function(q,N){PR(N);zJz(function(b,y){Xy(q,b>>>0,y>>>0)})};
ks.prototype.writeUint8=function(q){this.JSC$8946_buffer_.push(q>>>0&255)};
_.m7=function(q,N){q.JSC$8946_buffer_.push(N>>>0&255);q.JSC$8946_buffer_.push(N>>>8&255);q.JSC$8946_buffer_.push(N>>>16&255);q.JSC$8946_buffer_.push(N>>>24&255)};
ks.prototype.writeInt8=function(q){this.JSC$8946_buffer_.push(q>>>0&255)};var qfM,ds,CXd,sxA,BpC;qfM=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new ks};
ds=function(q,N){N.length!==0&&(q.blocks_.push(N),q.totalLength_+=N.length)};
_.NpF=function(q,N){_.$B(q,N,2);N=q.encoder_.end();ds(q,N);N.push(q.totalLength_);return N};
_.bUj=function(q,N){var b=N.pop();for(b=q.totalLength_+q.encoder_.length()-b;b>127;)N.push(b&127|128),b>>>=7,q.totalLength_++;N.push(b);q.totalLength_++};
_.$B=function(q,N,b){jv(q.encoder_,N*8+b)};
CXd=function(q,N,b){if(b!=null)switch(oaC(b),_.$B(q,N,1),typeof b){case "number":q=q.encoder_;FMJ(b);_.m7(q,sx);_.m7(q,n1);break;case "bigint":b=h_n(b);q=q.encoder_;N=b.JSC$8942_hi;_.m7(q,b.JSC$8942_lo);_.m7(q,N);break;default:b=MXd(b),q=q.encoder_,N=b.JSC$8942_hi,_.m7(q,b.JSC$8942_lo),_.m7(q,N)}};
sxA=function(q,N,b){_.$B(q,N,2);jv(q.encoder_,b.length);ds(q,q.encoder_.end());ds(q,b)};
BpC=function(q,N,b,y){b!=null&&(N=_.NpF(q,N),y(b,q),_.bUj(q,N))};var AaD,yaF,Ja4,Ea1,gaE,FKl,RxF,ca1,uA1;AaD=gs();yaF=gs();Ja4=gs();Ea1=gs();gaE=gs();_.ZUx=gs();_.Un=gs();FKl=gs();RxF=gs();_.dN1=gs();ca1=gs();uA1=gs();_.zxM=gs();_.$NF=gs();_.Rx=function(q,N,b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q,N,b)};
_.Rx.prototype.toJSON=function(){return fU(this)};
_.Rx.prototype.serialize=function(q){return JSON.stringify(fU(this,q))};
var oBA=function(q,N){if(N==null||N=="")return new q;N=JSON.parse(N);if(!Array.isArray(N))throw Error("V");return new q(euD(N))};
_.Rx.prototype.getExtension=function(q){yah(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q.fieldIndex);Nph(this,q.fieldIndex);return q.ctor?q.isRepeated?q.getExtensionFn(this,q.ctor,q.fieldIndex,_.$N(),q.JSC$8957_hasMessageId):q.getExtensionFn(this,q.ctor,q.fieldIndex,q.JSC$8957_hasMessageId):q.isRepeated?q.getExtensionFn(this,q.fieldIndex,_.$N(),q.JSC$8957_hasMessageId):q.getExtensionFn(this,q.fieldIndex,q.defaultValue,q.JSC$8957_hasMessageId)};
_.Rx.prototype.clone=function(){var q=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=q[_.gx]|0;return iUC(this,q,N)?wdR(this,q,!0):new this.constructor(nU(q,N,!1))};
_.Rx.prototype[wp]=iB;_.Rx.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Zl=function(q,N,b){this.$$binaryReaderFn=q;this.$$binaryWriterFn=N;q=KU(AaD);this.$$isMsg=!!q&&b===q||!1},JBC=exn(function(q,N,b,y,J){if(q.nextWireType_!==2)return!1;
hs(q,hJ1(N,y,b),J);return!0},qhd),EBJ=exn(function(q,N,b,y,J){if(q.nextWireType_!==2)return!1;
hs(q,hJ1(N,y,b),J);return!0},qhd),jxd=Symbol(),F7e=Symbol(),cBe=Symbol(),GeD=Symbol(),mBz=Symbol(),Nsz,bcd;var pZJ,tXj,fL,mNx,raj,XdE,VXE,I6,xN1,vaE,Gcl,Yf4,Qfq,wdq,iU1,lW1,KK1,DNq,hxx;pZJ=function(q,N){var b=new qfM;Yhe(q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b,Fy(jxd,VvC,xBd,N));ds(b,b.encoder_.end());q=new Uint8Array(b.totalLength_);N=b.blocks_;for(var y=N.length,J=0,E=0;E<y;E++){var F=N[E];q.set(F,J);J+=F.length}b.blocks_=[q];return q};
tXj=exn(function(q,N,b,y,J){if(q.nextWireType_!==2)return!1;q=hs(q,If([void 0,void 0],y),J);q=Mv(q);y=N[_.gx]|0;J=C1(y);if(y&2)throw Error();var E=Hd(N,b,J);if(E instanceof lB)(E.arrayState&2)!=0?(E=$Nh(E),E.push(q),Pd(N,y,b,E,J)):(N=E,b=N.keyToApi(q[0],!1,!0),q=q[1],q=N.valueCtor?q===void 0?null:q:N.valueToApi(q,!1,!0,void 0,!1,N.arrayState),Zs.prototype.set.call(N,b,q));else if(Array.isArray(E)){var F=E[_.gx]|0;F&8192||cR(E,F|=8192);F&2&&(E=kcd(E),Pd(N,y,b,E,J));E.push(q)}else Pd(N,y,b,zo([q]),
J);return!0},function(q,N,b,y,J){if(N instanceof lB)N.forEach(function(R,c){BpC(q,b,If([c,
R],y),J)});
else if(Array.isArray(N)){for(var E=0;E<N.length;E++){var F=N[E];Array.isArray(F)&&BpC(q,b,If(F,y),J)}zo(N)}});
fL=_.uX(function(q,N,b){if(q.nextWireType_!==1)return!1;_.ze(N,b,nEx(q.decoder_));return!0},llA,uA1);
mNx=_.uX(function(q,N,b,y){if(q.nextWireType_!==1)return!1;_.za(N,b,y,nEx(q.decoder_));return!0},llA,uA1);
raj=_.uX(function(q,N,b){if(q.nextWireType_!==5)return!1;_.ze(N,b,slE(q.decoder_));return!0},K7e,ca1);
XdE=_.icA(function(q,N,b){if(q.nextWireType_!==5&&q.nextWireType_!==2)return!1;N=_.bX(N,N[_.gx]|0,b);q.nextWireType_==2?_.oE4(q,slE,N):N.push(slE(q.decoder_));return!0},function(q,N,b){N=_.wZJ(_.HR,N,!0);
if(N!=null&&N.length)for(_.$B(q,b,2),jv(q.encoder_,N.length*4),b=0;b<N.length;b++){var y=q.encoder_;c4n(N[b]);_.m7(y,sx)}},ca1);
VXE=_.uX(function(q,N,b,y){if(q.nextWireType_!==5)return!1;_.za(N,b,y,slE(q.decoder_));return!0},K7e,ca1);
_.jfx=_.uX(function(q,N,b){if(q.nextWireType_!==0)return!1;_.ze(N,b,_.lZ(q.decoder_,_.mvh));return!0},_.Ve,_.Un);
_.CL=_.uX(function(q,N,b){if(q.nextWireType_!==0)return!1;_.ze(N,b,_.lZ(q.decoder_,WR));return!0},_.Ve,_.Un);
I6=_.uX(function(q,N,b){if(q.nextWireType_!==0)return!1;q=_.lZ(q.decoder_,WR);_.ze(N,b,q===0?void 0:q);return!0},_.Ve,_.Un);
xN1=_.uX(function(q,N,b,y){if(q.nextWireType_!==0)return!1;_.za(N,b,y,_.lZ(q.decoder_,WR));return!0},_.Ve,_.Un);
vaE=_.uX(function(q,N,b){if(q.nextWireType_!==0)return!1;_.ze(N,b,_.lZ(q.decoder_,_.Sj));return!0},ken,FKl);
_.Ta=_.uX(function(q,N,b){if(q.nextWireType_!==0)return!1;_.ze(N,b,_.lZ(q.decoder_,u1A));return!0},ken,FKl);
_.sn=_.uX(function(q,N,b){if(q.nextWireType_!==0)return!1;_.ze(N,b,_.KL(q.decoder_));return!0},flh,Ea1);
Gcl=_.uX(function(q,N,b){if(q.nextWireType_!==0)return!1;q=_.KL(q.decoder_);_.ze(N,b,q===0?void 0:q);return!0},flh,Ea1);
Yf4=_.uX(function(q,N,b,y){if(q.nextWireType_!==0)return!1;_.za(N,b,y,_.KL(q.decoder_));return!0},flh,Ea1);
Qfq=_.uX(function(q,N,b){if(q.nextWireType_!==1)return!1;_.ze(N,b,Tx1(q.decoder_));return!0},_.Ilh,_.dN1);
_.OU1=_.icA(function(q,N,b){if(q.nextWireType_!==1&&q.nextWireType_!==2)return!1;N=_.bX(N,N[_.gx]|0,b);q.nextWireType_==2?_.oE4(q,Tx1,N):N.push(Tx1(q.decoder_));return!0},function(q,N,b){N=_.wZJ(TxC,N,!1);
if(N!=null)for(var y=0;y<N.length;y++)CXd(q,b,N[y])},_.dN1);
_.nL=_.uX(function(q,N,b){if(q.nextWireType_!==0)return!1;_.ze(N,b,aqE(q.decoder_));return!0},TsC,yaF);
_.Wc=_.uX(function(q,N,b){if(q.nextWireType_!==0)return!1;q=aqE(q.decoder_);_.ze(N,b,q===!1?void 0:q);return!0},TsC,yaF);
wdq=_.uX(function(q,N,b,y){if(q.nextWireType_!==0)return!1;_.za(N,b,y,aqE(q.decoder_));return!0},TsC,yaF);
_.LL=_.uX(function(q,N,b){if(q.nextWireType_!==2)return!1;_.ze(N,b,PTT(q));return!0},nBJ,Ja4);
_.pL=_.uX(function(q,N,b){if(q.nextWireType_!==2)return!1;q=PTT(q);_.ze(N,b,q===""?void 0:q);return!0},nBJ,Ja4);
_.Pc=_.uX(function(q,N,b,y){if(q.nextWireType_!==2)return!1;_.za(N,b,y,PTT(q));return!0},nBJ,Ja4);
iU1=_.icA(function(q,N,b){if(q.nextWireType_!==2)return!1;q=PTT(q);_.bX(N,N[_.gx]|0,b).push(q);return!0},function(q,N,b){N=_.wZJ(_.Ya,N,!0);
if(N!=null)for(var y=0;y<N.length;y++){var J=q,E=b,F=N[y];F!=null&&sxA(J,E,udA(F))}},Ja4);
lW1=void 0;lW1=lW1===void 0?AaD:lW1;_.Md=new Zl(function(q,N,b,y,J){if(q.nextWireType_!==2)return!1;y=If(void 0,y);_.bX(N,N[_.gx]|0,b).push(y);hs(q,y,J);return!0},function(q,N,b,y,J){if(Array.isArray(N)){for(var E=0;E<N.length;E++)aln(q,N[E],b,y,J);
q=N[_.gx]|0;q&1||cR(N,q|1)}},lW1);
_.o6=exn(function(q,N,b,y,J,E){if(q.nextWireType_!==2)return!1;var F=N[_.gx]|0;IWR(N,F,E,b,C1(F));N=hJ1(N,y,b);hs(q,N,J);return!0},aln);
_.As=_.uX(function(q,N,b){if(q.nextWireType_!==2)return!1;_.ze(N,b,_.MjR(q));return!0},_.Shn,_.zxM);
KK1=_.uX(function(q,N,b,y){if(q.nextWireType_!==2)return!1;_.za(N,b,y,_.MjR(q));return!0},_.Shn,_.zxM);
_.e5=_.uX(function(q,N,b){if(q.nextWireType_!==0)return!1;_.ze(N,b,_.KL(q.decoder_)>>>0);return!0},W7n,gaE);
DNq=_.uX(function(q,N,b,y){if(q.nextWireType_!==0)return!1;_.za(N,b,y,_.KL(q.decoder_)>>>0);return!0},W7n,gaE);
_.Bc=_.uX(function(q,N,b){if(q.nextWireType_!==0)return!1;_.ze(N,b,_.KL(q.decoder_));return!0},_.L7Z,_.$NF);
_.Hc=_.uX(function(q,N,b){if(q.nextWireType_!==0)return!1;q=_.KL(q.decoder_);_.ze(N,b,q===0?void 0:q);return!0},_.L7Z,_.$NF);
hxx=_.uX(function(q,N,b){if(q.nextWireType_!==0)return!1;_.ze(N,b,_.lZ(q.decoder_,$vR));return!0},function(q,N,b){N=Iqh(N);
if(N!=null&&(PBd(N),N!=null))switch(_.$B(q,b,0),typeof N){case "number":q=q.encoder_;b=N;N=b<0;b=Math.abs(b)*2;FMJ(b);b=sx;var y=n1;N&&(b==0?y==0?y=b=4294967295:(y--,b=4294967295):b--);sx=b;n1=y;Xy(q,sx,n1);break;case "bigint":q=q.encoder_;N=N<<BigInt(1)^N>>BigInt(63);sx=Number(BigInt.asUintN(32,N));n1=Number(BigInt.asUintN(32,N>>BigInt(32)));Xy(q,sx,n1);break;default:H1l(q.encoder_,N)}},RxF);var fWJ=function(){var q=kc1,N=UN1;this.fieldIndex=175237375;this.ctor=N;this.isRepeated=0;this.getExtensionFn=_.Vr;this.defaultValue=void 0;this.JSC$8957_hasMessageId=q.messageId!=null?f1:void 0};
fWJ.prototype.register=function(){BV(this)};var CBM=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(CBM,_.Rx);var IWq=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(IWq,_.Rx);var BsC=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(BsC,_.Rx);var Tpo=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Tpo,_.Rx);var sfE=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(sfE,_.Rx);var naF=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(naF,_.Rx);var aWx=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(aWx,_.Rx);aWx.prototype.getData=function(){return _.uZ(this,2)};var SfF=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(SfF,_.Rx);var WKx=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(WKx,_.Rx);WKx.prototype.getStyle=function(){return _.Vr(this,CBM,1)};var Oh=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Oh,_.Rx);Oh.prototype.getPayloadCase=function(){return _.$s(this,lX)};
Oh.prototype.getStyle=function(){return _.QW(this,WKx,6,lX)};
var LKj=function(){var q=new Oh,N=new sfE;return _.iX(q,7,lX,N)},pdx=function(){var q=new Oh,N=new naF;
return _.iX(q,8,lX,N)},lX=[1,
2,3,4,5,6,7,8];var PBM=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(PBM,_.Rx);var MXM=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(MXM,_.Rx);var oa1=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(oa1,_.Rx);var AaE=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(AaE,_.Rx);var exT=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(exT,_.Rx);var Bp1=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Bp1,_.Rx);var HU4=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(HU4,_.Rx);var qhM=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(qhM,_.Rx);qhM.prototype.getData=function(){return _.uZ(this,2)};var Nso=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Nso,_.Rx);var e_J=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(e_J,_.Rx);e_J.prototype.getPayloadCase=function(){return _.$s(this,qQ)};
var qQ=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var NQ=function(q,N){q=Error.call(this,q);this.message=q.message;"stack"in q&&(this.stack=q.stack);this.code=N===void 0?2:N};
_.Y(NQ,Error);var bcM=Promise;var yBF=function(q){this.channelPromise=q};
yBF.prototype.send=function(q,N,b){this.channelPromise.then(function(y){y.send(q,N,b)})};var JB1=function(q,N){this.data=q;this.channel=N};
JB1.prototype.reply=function(q,N,b){this.channel.send(q,N,b)};var EBl=function(q){this.JSC$9023_port_=q};
EBl.prototype.send=function(q,N,b){b=b===void 0?[]:b;var y=new MessageChannel;gBx(y.port1,N);this.JSC$9023_port_.postMessage(q,[y.port2].concat(b))};
var Zcx=function(q,N){gBx(q,N);return new EBl(q)},gBx=function(q,N){N&&(q.onmessage=function(b){N(new JB1(b.data,Zcx(b.ports[0])))})};var F7v=function(q){this.verifier_=q};
F7v.prototype.verify=function(q){return this.verifier_(q)};
var R_J=function(q){var N=Object.create(null);(typeof q==="string"?[q]:q).forEach(function(b){if(b==="null")throw Error("X");N[b]=!0});
return function(b){return N[b]===!0}};_.dB1=function(){if(!_.JZ.addEventListener||!Object.defineProperty)return!1;var q=!1,N=Object.defineProperty({},"passive",{get:function(){q=!0}});
try{var b=function(){};
_.JZ.addEventListener("test",b,N);_.JZ.removeEventListener("test",b,N)}catch(y){}return q}();var cBv;_.bu=function(q){var N=q.destination;var b=q.iframe;var y=q.origin;var J=q.channelName===void 0?"ZNWN1d":q.channelName;var E=q.onMessage===void 0?void 0:q.onMessage;q=q.onEstablished===void 0?void 0:q.onEstablished;return cBv({destination:N,getSource:function(){return b.contentWindow},
originVerifier:y instanceof F7v?y:typeof y==="function"?new F7v(y):new F7v(R_J(y)),channelName:J,onMessage:E,onEstablished:q})};
cBv=function(q){var N=q.destination;var b=q.getSource;var y=q.originVerifier;var J=q.token===void 0?void 0:q.token;var E=q.channelName;var F=q.onMessage===void 0?void 0:q.onMessage;var R=q.onEstablished===void 0?void 0:q.onEstablished;return new yBF(new bcM(function(c,z){var m=function(r){r.source&&r.source===b()&&y.verify(r.origin)&&(r.data.n||r.data)===E&&(N.removeEventListener("message",m,!1),J&&r.data.t!==J?z(Error("Y`"+E+"`"+J+"`"+r.data.t)):(c(Zcx(r.ports[0],F)),R&&R(r)))};
N.addEventListener("message",m,!1)}))};var uyv=function(q){try{q()}catch(N){EJ(N)}};var $B4=function(q){var N=this;var b=q.getMessageType;var y=q.onUnregisteredMessage===void 0?function(){}:q.onUnregisteredMessage;
var J=q.onBeforeRegisteredMessage===void 0?function(){}:q.onBeforeRegisteredMessage;
q=q.onAfterRegisteredMessage===void 0?function(){}:q.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=b;this.onUnregisteredMessage_=y;this.onBeforeRegisteredMessage_=J;this.onAfterRegisteredMessage_=q;this.onMessage=function(E){return z_1(N,E)}};
$B4.prototype.register=function(q,N){this.registry_.set(q,N);return this};
var z_1=function(q,N){var b=q.getMessageType_(N.data),y=q.registry_.get(b);y?(uyv(function(){return q.onBeforeRegisteredMessage_(N,b)}),uyv(function(){return y(N)}),uyv(function(){return q.onAfterRegisteredMessage_(N,b)})):uyv(function(){return q.onUnregisteredMessage_(N,b)})};var tv4=function(q){this.JSC$9040_channel_=q},rBx,XZT;
tv4.prototype.send=function(q,N,b){this.JSC$9040_channel_.send(fU(q),N,b)};
_.mBo=function(q,N){return function(b){var y=new q(b.data);return N(new JB1(y,b.channel))}};
rBx=function(q){return function(N){return q(new JB1(N.data,new tv4(N.channel)))}};
XZT=function(q,N){return rBx(_.mBo(q,N))};var Vv1=function(q,N,b,y){this.registry=q;this.delegate=N;this.receiveMessageConstructor=b;this.createInitMessage=y;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},ABz=function(q){var N=new $B4({getMessageType:q.getPayloadCase});
return new Vv1(N,new tv4(_.bu({iframe:q.child,destination:window,origin:q.origin,channelName:q.channelName,onMessage:XZT(q.receiveMessageConstructor,N.onMessage)})),q.receiveMessageConstructor,q.createInitMessage)},jxM=function(q,N){q.createInitMessage=N};
Vv1.prototype.send=function(q){if(!this.initialised)throw new NQ("Attempted to send a message before initialisation.");this.delegate.send(q)};
var xB1=function(q,N){return _.d(function(b){if(!q.initialised)throw new NQ("Attempted to send a message before initialisation.");return b.return(new Promise(function(y){q.delegate.send(N,XZT(q.receiveMessageConstructor,y))}))})};
Vv1.prototype.init=function(){var q=this;return _.d(function(N){if(q.initialised)throw new NQ("Attempted to initialise twice. The SDK can only be initialised once.");if(q.createInitMessage!==void 0){var b=q.delegate,y=b.send,J=q.createInitMessage;var E=new IWq;var F=[].concat(_.a9(q.features));E=_.qB(E,1,F,_.ZW);y.call(b,J.call(q,E))}q.initialised=!0;_.hj(N)})};
var y7=function(q,N){if(q.initialised)throw new NQ('Attempted to set up API "'+N+'" after initialisation. All APIs must be set up before initialising the SDK.');q.features.add(N);return q.registry};
_.$H.Object.defineProperties(Vv1.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var vBE=function(q){this.channel=q;this.registered=!1};
vBE.prototype.update=function(q){if(this.channel.isInitialised){if(!this.registered)throw new NQ("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var N=new Oh;var b=new Tpo;b=_.VE(b,1,q);N=_.iX(N,2,lX,b);this.channel.send(N)}else this.register();this.JSC$9054_audioEnabled=q};
vBE.prototype.register=function(){y7(this.channel,1);this.registered=!0};
vBE.prototype.isAudioEnabled=function(){return this.JSC$9054_audioEnabled};var GeE=function(q){this.channel=q};
_.g=GeE.prototype;_.g.onFirstFrameReady=function(q){y7(this.channel,2).register(11,function(N){N=_.QW(N.data,PBM,11,qQ);if(!N)throw new NQ("Unexpectedly nonexistent GameFirstFrameReadyEvent");q(_.xs(N,1))})};
_.g.onReady=function(q){y7(this.channel,2).register(4,function(N){N=_.QW(N.data,oa1,4,qQ);if(!N)throw new NQ("Unexpectedly nonexistent GameReadyEvent");q(_.xs(N,1))})};
_.g.onLevelComplete=function(q){y7(this.channel,2).register(5,function(N){N=_.QW(N.data,AaE,5,qQ);if(!N)throw new NQ("Unexpectedly nonexistent LevelCompleteEvent");q(_.xs(N,1),_.tW(N,2))})};
_.g.onGameOver=function(q){y7(this.channel,2).register(6,function(N){N=_.QW(N.data,MXM,6,qQ);if(!N)throw new NQ("Unexpectedly nonexistent GameOverEvent");q(_.xs(N,1))})};
_.g.pause=function(){var q=this;if(!this.channel.isInitialised)return y7(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new NQ("Using unregistered Game Feature: pause.");var N=LKj();return new Promise(function(b){return _.d(function(y){if(y.nextAddress==1)return y.yield(xB1(q.channel,N),2);b();_.hj(y)})})};
_.g.resume=function(){var q=this;if(!this.channel.isInitialised)return y7(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new NQ("Using unregistered Game Feature: resume.");var N=pdx();return new Promise(function(b){return _.d(function(y){if(y.nextAddress==1)return y.yield(xB1(q.channel,N),2);b();_.hj(y)})})};var Yhv=function(q){this.channel=q};
Yhv.prototype.onReady=function(q){y7(this.channel,5).register(8,function(N){if(!_.QW(N.data,exT,8,qQ))throw new NQ("Unexpectedly nonexistent PageReadyEvent");q()})};var QxJ=function(q){this.channel=q};
QxJ.prototype.onChange=function(q){y7(this.channel,3).register(7,function(N){N=_.QW(N.data,Bp1,7,qQ);if(!N)throw new NQ("Unexpectedly nonexistent ScoreEvent");q(_.xs(N,1),_.tW(N,2))})};var Oco={load:function(){throw new NQ("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new NQ("Storage used, but storage.onSave() listener not set!");}},wZl=function(q){this.channel=q;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},icx=function(q){y7(q.channel,4).register(2,Oco.load).register(3,Oco.save);
q.initialSetupDone=!0};
wZl.prototype.onLoad=function(q){this.initialSetupDone||icx(this);this.loadRegistered||(this.loadRegistered=!0,y7(this.channel,4).register(2,function(N){var b,y,J;return _.d(function(E){if(E.nextAddress==1){b=_.QW(N.data,HU4,2,qQ);if(!b)throw new NQ("Unexpectedly nonexistent StorageLoad");y=_.xs(b,1);return E.yield(q(y),2)}J=E.yieldResult;var F=N.reply,R=new Oh;var c=new aWx;c=_.Up(c,1,y);c=_.x5(c,2,_.Ux(J,!1));R=_.iX(R,3,lX,c);F.call(N,R);_.hj(E)})}))};
wZl.prototype.onSave=function(q){this.initialSetupDone||icx(this);this.saveRegistered||(this.saveRegistered=!0,y7(this.channel,4).register(3,function(N){var b,y,J;return _.d(function(E){if(E.nextAddress==1){b=_.QW(N.data,qhM,3,qQ);if(!b)throw new NQ("Unexpectedly nonexistent StorageSave");y=_.xs(b,1);J=r4E(b.getData());return E.yield(q(y,J),2)}var F=N.reply,R=new Oh;var c=new SfF;c=_.Up(c,1,y);R=_.iX(R,4,lX,c);F.call(N,R);_.hj(E)})}))};var llx=function(q){this.channel=q};
llx.prototype.update=function(q){if(!this.channel.features.has(6))throw new NQ("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var N=new Oh,b=new WKx;q=_.ws(b,1,q);N=_.iX(N,6,lX,q);this.channel.send(N)};
llx.prototype.register=function(){y7(this.channel,6)};var K7v=function(q){this.channel=q;this.userActivityLoggingIntervalMs=0};
K7v.prototype.onUserActivity=function(q,N){this.userActivityLoggingIntervalMs=N;y7(this.channel,7).register(9,function(b){if(!_.QW(b.data,Nso,9,qQ))throw new NQ("Unexpectedly nonexistent ClickEvent");q()})};var DBv=function(q){var N=this;this.channel=q;this.init=this.channel.init.bind(this.channel);this.page=new Yhv(this.channel);this.game=new GeE(this.channel);this.audio=new vBE(this.channel);this.score=new QxJ(this.channel);this.storage=new wZl(this.channel);this.style=new llx(this.channel);this.userActivity=new K7v(this.channel);jxM(this.channel,function(b){var y=new BsC;b=_.ws(y,1,b);b=_.On(b,3,N.userActivity.userActivityLoggingIntervalMs);y=N.audio.isAudioEnabled();y!==void 0&&_.VE(b,2,y);y=new Oh;
return _.iX(y,5,lX,b)})};var h_T=function(){this.timedFunctionContext=0};
h_T.prototype.timeExecution=function(q,N){var b=this;return function(){var y=_.MB.apply(0,arguments);b.timedFunctionContext=q;return N.apply(null,_.a9(y))}};var keT=function(){var q={};this.priorityTasks=(q[3]=[],q[2]=[],q[1]=[],q);this.isFlushing=!1},Qu=function(q,N,b){var y=UBo(q,b);
q.priorityTasks[b].push(N);y&&q.priorityTasks[b].length===1&&q.flush()},UBo=function(q,N){return Object.keys(q.priorityTasks).map(function(b){return Number(b)}).filter(function(b){return!isNaN(b)&&b>N}).every(function(b){return q.priorityTasks[b].length===0})};
keT.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(q){return q.length>0});)flF(this,3),flF(this,2),flF(this,1)}catch(q){throw Object.values(this.priorityTasks).forEach(function(N){return void N.splice(0,N.length)}),q;
}finally{this.isFlushing=!1}}};
var flF=function(q,N){for(;UBo(q,N)&&q.priorityTasks[N].length>0;)q.priorityTasks[N][0](),q.priorityTasks[N].shift()};
_.$H.Object.defineProperties(keT.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(q){return q.length>0})}}});var EiA={};var CX1=globalThis.trustedTypes,q5R=CX1,b7e;var Dl=function(q){this.privateDoNotAccessOrElseWrappedResourceUrl=q};
Dl.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var IlF,Ts1,sxx,nBl,alT,Shj,W7j,L74;IlF=_.Tt([""]);Ts1=IK(["\x00"],["\\0"]);sxx=IK(["\n"],["\\n"]);nBl=IK(["\x00"],["\\u0000"]);alT=_.Tt([""]);Shj=IK(["\x00"],["\\0"]);W7j=IK(["\n"],["\\n"]);L74=IK(["\x00"],["\\u0000"]);_.pZx=JjD(function(q){return q(IlF)})||JjD(function(q){return q(Ts1)})||JjD(function(q){return q(sxx)})||JjD(function(q){return q(nBl)});
_.PXx=_.fc(alT)&&_.fc(Shj)&&_.fc(W7j)&&_.fc(L74);var Sv;_.Cc=function(q,N){this.privateDoNotAccessOrElseWrappedUrl=N};
_.Cc.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.MvM=Ix("about:blank");Sv=Ix("about:invalid#zClosurez");var giC=function(q){this.isValid=q},oBx=new giC(function(q){return/^[^:]*([/?#]|$)/.test(q)}),ABo=nc("data"),e_x=nc("http"),Bs1=nc("https"),Hc1=nc("ftp"),q5q=nc("mailto"),N0M=nc("intent"),b7v=nc("vnd.youtube"),Z7n=[ABo,
e_x,Bs1,q5q,Hc1,oBx],RXA=Kc(function(){return typeof URL==="function"}),yjF=["data:",
"http:","https:","mailto:","ftp:"],cjn=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var ev=function(q){this.privateDoNotAccessOrElseWrappedHtml=q};
ev.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var dmd=Kc(function(){return new ev(CX1?CX1.emptyHTML:"")});var JjE={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"},zXd=function(q,N){var b=Error.call(this,q+" cannot be used with intent "+JjE[N]);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.type=q;this.intent=N;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.Y(zXd,Error);_.E5=function(q){this.privateDoNotAccessOrElseWrappedScript=q};
_.E5.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var tFn=function(q){this.privateDoNotAccessOrElseWrappedAttributePrefix=q};
tFn.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var mnd="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var zw=function(q){this.privateDoNotAccessOrElseWrappedStyleSheet=q};
zw.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var Slu=function(q){var N=_.Ng("window.location.href");q==null&&(q='Unknown Error of type "null/undefined"');if(typeof q==="string")return{message:q,name:"Unknown error",lineNumber:"Not available",fileName:N,stack:"Not available"};var b=!1;try{var y=q.lineNumber||q.line||"Not available"}catch(F){y="Not available",b=!0}try{var J=q.fileName||q.filename||q.sourceURL||_.JZ.$googDebugFname||N}catch(F){J="Not available",b=!0}N=EiR(q);if(!(!b&&q.lineNumber&&q.fileName&&q.stack&&q.message&&q.name)){b=q.message;
if(b==null){if(q.constructor&&q.constructor instanceof Function){if(q.constructor.name)b=q.constructor.name;else if(b=q.constructor,Jx[b])b=Jx[b];else{b=String(b);if(!Jx[b]){var E=/function\s+([^\(]+)/m.exec(b);Jx[b]=E?E[1]:"[Anonymous]"}b=Jx[b]}b='Unknown Error of type "'+b+'"'}else b="Unknown Error of unknown type";typeof q.toString==="function"&&Object.prototype.toString!==q.toString&&(b+=": "+q.toString())}return{message:b,name:q.name||"UnknownError",lineNumber:y,fileName:J,stack:N||"Not available"}}return{message:q.message,
name:q.name,lineNumber:q.lineNumber,fileName:q.fileName,stack:N}},EiR=function(q,N){N||(N={});
N[gi1(q)]=!0;var b=q.stack||"",y=q.cause;y&&!N[gi1(y)]&&(b+="\nCaused by: ",y.stack&&y.stack.indexOf(y.toString())==0||(b+=typeof y==="string"?y:y.message+"\n"),b+=EiR(y,N));q=q.errors;if(Array.isArray(q)){y=1;var J;for(J=0;J<q.length&&!(y>4);J++)N[gi1(q[J])]||(b+="\nInner error "+y++ +": ",q[J].stack&&q[J].stack.indexOf(q[J].toString())==0||(b+=typeof q[J]==="string"?q[J]:q[J].message+"\n"),b+=EiR(q[J],N));J<q.length&&(b+="\n... "+(q.length-J)+" more inner errors")}return b},gi1=function(q){var N=
"";
typeof q.toString==="function"&&(N=""+q);return N+q.stack},Jx={};var Z7j,z1,NE,RXx,dnM,Ft1,q0,Ue,uwJ;Z7j=function(q,N){for(var b=q.split("%s"),y="",J=Array.prototype.slice.call(arguments,1);J.length&&b.length>1;)y+=b.shift()+J.shift();return y+b.join("%s")};
_.yX=function(q){return encodeURIComponent(String(q))};
z1=function(q){return decodeURIComponent(q.replace(/\+/g," "))};
NE=function(q){kz4.test(q)&&(q.indexOf("&")!=-1&&(q=q.replace(wAv,"&amp;")),q.indexOf("<")!=-1&&(q=q.replace(iCx,"&lt;")),q.indexOf(">")!=-1&&(q=q.replace(lRl,"&gt;")),q.indexOf('"')!=-1&&(q=q.replace(KdE,"&quot;")),q.indexOf("'")!=-1&&(q=q.replace(Deo,"&#39;")),q.indexOf("\x00")!=-1&&(q=q.replace(hux,"&#0;")));return q};
RXx=function(q){var N={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var b=_.JZ.document.createElement("div");return q.replace(Ft1,function(y,J){var E=N[y];if(E)return E;J.charAt(0)=="#"&&(J=Number("0"+J.slice(1)),isNaN(J)||(E=String.fromCharCode(J)));E||(_.d0(b,BZ(y+" ")),E=b.firstChild.nodeValue.slice(0,-1));return N[y]=E})};
dnM=function(q){return q.replace(/&([^;]+);/g,function(N,b){switch(b){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return b.charAt(0)!="#"||(b=Number("0"+b.slice(1)),isNaN(b))?N:String.fromCharCode(b)}})};
Ft1=/&([^;\s<&]+);?/g;_.w7A=function(q){return String(q).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.cjT=String.prototype.repeat?function(q,N){return q.repeat(N)}:function(q,N){return Array(N+1).join(q)};
_.Eq=function(q,N){if(!Number.isFinite(q))return String(q);q=String(q);var b=q.indexOf(".");b===-1&&(b=q.length);var y=q[0]==="-"?"-":"";y&&(q=q.substring(1));return y+(0,_.cjT)("0",Math.max(0,N-b))+q};
q0=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.M$()).toString(36)};
Ue=function(q){for(var N=0,b=0;b<q.length;++b)N=31*N+q.charCodeAt(b)>>>0;return N};
_.R$=function(q){return String(q).replace(/\-([a-z])/g,function(N,b){return b.toUpperCase()})};
_.Fv=function(q){return String(q).replace(/([A-Z])/g,"-$1").toLowerCase()};
uwJ=function(q){return q.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(N,b,y){return b+y.toUpperCase()})};var zX1=function(){this.names=new Map};
zX1.prototype.getName=function(q){var N=this.names.get(q);if(N)return N;var b;N=(b=q.description)!=null?b:q0();this.names.set(q,N);return N};var $no=function(q){var N=Error.call(this,q?q.length+" errors occurred during unsubscription:\n"+q.map(function(b,y){return y+1+") "+b.toString()}).join("\n  "):"");
this.message=N.message;"stack"in N&&(this.stack=N.stack);this.errors=q;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.Y($no,Error);var tj=function(q){this.initialTeardown=q;this.closed=!1;this._teardowns=this._parentage=null};
_.g=tj.prototype;
_.g.unsubscribe=function(){if(!this.closed){this.closed=!0;var q=this._parentage;if(Array.isArray(q))for(var N=_.Z(q),b=N.next();!b.done;b=N.next())b.value.remove(this);else q==null||q.remove(this);N=this.initialTeardown;if($i(N))try{N()}catch(E){var y=E instanceof $no?E.errors:[E]}var J=this._teardowns;if(J)for(this._teardowns=null,N=_.Z(J),b=N.next();!b.done;b=N.next()){b=b.value;try{$i(b)?b():b.unsubscribe()}catch(E){b=void 0,y=(b=y)!=null?b:[],E instanceof $no?y=[].concat(_.a9(y),_.a9(E.errors)):
y.push(E)}}if(y)throw new $no(y);}};
_.g.add=function(q){if(q&&q!==this)if(this.closed)$i(q)?q():q.unsubscribe();else{if(q instanceof tj){if(q.closed||q._hasParent(this))return;q._addParent(this)}var N;(this._teardowns=(N=this._teardowns)!=null?N:[]).push(q)}};
_.g._hasParent=function(q){var N=this._parentage;return N===q||Array.isArray(N)&&N.includes(q)};
_.g._addParent=function(q){var N=this._parentage;this._parentage=Array.isArray(N)?(N.push(q),N):N?[N,q]:q};
_.g._removeParent=function(q){var N=this._parentage;N===q?this._parentage=null:Array.isArray(N)&&xnh(N,q)};
_.g.remove=function(q){var N=this._teardowns;N&&xnh(N,q);q instanceof tj&&q._removeParent(this)};
var tFT=new tj;tFT.closed=!0;tj.JSC$9150_EMPTY=tFT;var Gwn=function(){setTimeout.apply(null,_.a9(_.MB.apply(0,arguments)))};var g1=function(q){tj.call(this);this.JSC$9155_isStopped=!1;this.destination=q instanceof g1?q:new Zo(!q||$i(q)?{next:q!=null?q:void 0}:q);viA(q)&&q.add(this)};
_.Y(g1,tj);g1.JSC$9150_EMPTY=tj.JSC$9150_EMPTY;g1.create=function(q,N,b){return new Fc(q,N,b)};
_.g=g1.prototype;_.g.next=function(q){this.JSC$9155_isStopped||this._next(q)};
_.g.error=function(q){this.JSC$9155_isStopped||(this.JSC$9155_isStopped=!0,this._error(q))};
_.g.complete=function(){this.JSC$9155_isStopped||(this.JSC$9155_isStopped=!0,this._complete())};
_.g.unsubscribe=function(){this.closed||(this.JSC$9155_isStopped=!0,tj.prototype.unsubscribe.call(this))};
_.g._next=function(q){this.destination.next(q)};
_.g._error=function(q){this.destination.error(q);this.unsubscribe()};
_.g._complete=function(){this.destination.complete();this.unsubscribe()};
var Zo=function(q){this.partialObserver=q};
Zo.prototype.next=function(q){var N=this.partialObserver;if(N.next)try{N.next(q)}catch(b){r0(b)}};
Zo.prototype.error=function(q){var N=this.partialObserver;if(N.error)try{N.error(q)}catch(b){r0(b)}else r0(q)};
Zo.prototype.complete=function(){var q=this.partialObserver;if(q.complete)try{q.complete()}catch(N){r0(N)}};
var Fc=function(q,N,b){g1.call(this);var y;$i(q)||!q?y={next:q!=null?q:void 0,error:N!=null?N:void 0,complete:b!=null?b:void 0}:y=q;this.destination=new Zo(y)};
_.Y(Fc,g1);Fc.JSC$9150_EMPTY=g1.JSC$9150_EMPTY;Fc.create=g1.create;var xi=typeof Symbol==="function"&&Symbol.observable||"@@observable";var jF=function(q){q&&(this._subscribe=q)};
_.g=jF.prototype;_.g.lift=function(q){var N=new jF;N.source=this;N.operator=q;return N};
_.g.subscribe=function(q,N,b){q=q&&q instanceof g1||q&&$i(q.next)&&$i(q.error)&&$i(q.complete)&&viA(q)?q:new Fc(q,N,b);N=this.operator;b=this.source;q.add(N?N.call(q,b):b?this._subscribe(q):this._trySubscribe(q));return q};
_.g._trySubscribe=function(q){try{return this._subscribe(q)}catch(N){q.error(N)}};
_.g.forEach=function(q,N){var b=this;N=Q9z(N);return new N(function(y,J){var E=b.subscribe(function(F){try{q(F)}catch(R){J(R),E==null||E.unsubscribe()}},J,y)})};
_.g._subscribe=function(q){var N;return(N=this.source)==null?void 0:N.subscribe(q)};
jF.prototype[xi]=function(){return this};
jF.prototype.pipe=function(){var q=_.MB.apply(0,arguments);return q.length?Y5A(q)(this):this};
jF.create=function(q){return new jF(q)};var mn1=function(){var q=Error.call(this,"object unsubscribed");this.message=q.message;"stack"in q&&(this.stack=q.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.Y(mn1,Error);var vh=function(){this.observers=[];this.hasError=this.JSC$9171_isStopped=this.closed=!1;this.thrownError=null};
_.Y(vh,jF);_.g=vh.prototype;_.g.lift=function(q){var N=new RY(this,this);N.operator=q;return N};
_.g._throwIfClosed=function(){if(this.closed)throw new mn1;};
_.g.next=function(q){this._throwIfClosed();if(!this.JSC$9171_isStopped){var N=this.observers.slice();N=_.Z(N);for(var b=N.next();!b.done;b=N.next())b.value.next(q)}};
_.g.error=function(q){this._throwIfClosed();if(!this.JSC$9171_isStopped){this.hasError=this.JSC$9171_isStopped=!0;this.thrownError=q;for(var N=this.observers;N.length;)N.shift().error(q)}};
_.g.complete=function(){this._throwIfClosed();if(!this.JSC$9171_isStopped){this.JSC$9171_isStopped=!0;for(var q=this.observers;q.length;)q.shift().complete()}};
_.g.unsubscribe=function(){this.JSC$9171_isStopped=this.closed=!0;this.observers=null};
_.g._trySubscribe=function(q){this._throwIfClosed();return jF.prototype._trySubscribe.call(this,q)};
_.g._subscribe=function(q){this._throwIfClosed();this._checkFinalizedStatuses(q);return this._innerSubscribe(q)};
_.g._innerSubscribe=function(q){var N=this,b=this.JSC$9171_isStopped,y=this.observers;return this.hasError||b?tj.JSC$9150_EMPTY:(y.push(q),new tj(function(){return xnh(N.observers,q)}))};
_.g._checkFinalizedStatuses=function(q){var N=this.thrownError,b=this.JSC$9171_isStopped;this.hasError?q.error(N):b&&q.complete()};
vh.create=function(q,N){return new RY(q,N)};
var RY=function(q,N){vh.call(this);this.destination=q;this.source=N};
_.Y(RY,vh);RY.create=vh.create;RY.prototype.next=function(q){var N,b;(N=this.destination)==null||(b=N.next)==null||b.call(N,q)};
RY.prototype.error=function(q){var N,b;(N=this.destination)==null||(b=N.error)==null||b.call(N,q)};
RY.prototype.complete=function(){var q,N;(q=this.destination)==null||(N=q.complete)==null||N.call(q)};
RY.prototype._subscribe=function(q){var N,b;return(b=(N=this.source)==null?void 0:N.subscribe(q))!=null?b:tj.JSC$9150_EMPTY};var Bh=function(q){vh.call(this);this._value=q};
_.Y(Bh,vh);Bh.create=vh.create;Bh.prototype._subscribe=function(q){var N=vh.prototype._subscribe.call(this,q);!N.closed&&q.next(this._value);return N};
Bh.prototype.getValue=function(){var q=this.thrownError,N=this._value;if(this.hasError)throw q;this._throwIfClosed();return N};
Bh.prototype.next=function(q){vh.prototype.next.call(this,this._value=q)};
_.$H.Object.defineProperties(Bh.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var o9=new jF(function(q){return q.complete()});var lbd=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var Und=function(q){return q&&typeof q.length==="number"&&typeof q!=="function"};var rjF={now:function(){return(rjF.delegate||Date).now()},
delegate:void 0};var RW=function(q,N,b){q=q===void 0?Infinity:q;N=N===void 0?Infinity:N;b=b===void 0?rjF:b;vh.call(this);this.bufferSize=q;this.windowTime=N;this.timestampProvider=b;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=N===Infinity;this.bufferSize=Math.max(1,q);this.windowTime=Math.max(1,N)};
_.Y(RW,vh);RW.create=vh.create;RW.prototype.next=function(q){var N=this.buffer,b=this.infiniteTimeWindow,y=this.timestampProvider,J=this.windowTime;this.JSC$9171_isStopped||(N.push(q),!b&&N.push(y.now()+J));Xx1(this);vh.prototype.next.call(this,q)};
RW.prototype._subscribe=function(q){this._throwIfClosed();Xx1(this);for(var N=this._innerSubscribe(q),b=this.infiniteTimeWindow,y=this.buffer.slice(),J=0;J<y.length&&!q.closed;J+=b?1:2)q.next(y[J]);this._checkFinalizedStatuses(q);return N};
var Xx1=function(q){var N=q.bufferSize,b=q.timestampProvider,y=q.buffer;q=q.infiniteTimeWindow;var J=(q?1:2)*N;N<Infinity&&J<y.length&&y.splice(0,y.length-J);if(!q){N=b.now();b=0;for(q=1;q<y.length&&y[q]<=N;q+=2)b=q;b&&y.splice(0,b+1)}};var j9l=function(q,N){N=N===void 0?VFM:N;this.schedulerActionCtor=q;this.now=N};
j9l.prototype.schedule=function(q,N,b){N=N===void 0?0:N;return(new this.schedulerActionCtor(this,q)).schedule(b,N)};
var VFM=rjF.now;var OMh=function(){var q=Error.call(this,"no elements in sequence");this.message=q.message;"stack"in q&&(this.stack=q.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.Y(OMh,Error);var I9=function(q,N,b,y,J){g1.call(this,q);this.onUnsubscribe=J;N&&(this._next=function(E){try{N(E)}catch(F){this.destination.error(F)}});
b&&(this._error=function(E){try{b(E)}catch(F){this.destination.error(F)}this.unsubscribe()});
y&&(this._complete=function(){try{y()}catch(E){this.destination.error(E)}this.unsubscribe()})};
_.Y(I9,g1);I9.JSC$9150_EMPTY=g1.JSC$9150_EMPTY;I9.create=g1.create;I9.prototype.unsubscribe=function(){var q;this.closed||(q=this.onUnsubscribe)!=null&&q.call(this);g1.prototype.unsubscribe.call(this)};var Zk=function(q,N){this.source=q;this.subjectFactory=N;this._subject=null;this._refCount=0;this._connection=null};
_.Y(Zk,jF);Zk.create=jF.create;Zk.prototype._subscribe=function(q){return xnF(this).subscribe(q)};
var xnF=function(q){var N=q._subject;if(!N||N.JSC$9171_isStopped)q._subject=q.subjectFactory();return q._subject};
Zk.prototype._teardown=function(){this._refCount=0;var q=this._connection;this._subject=this._connection=null;q==null||q.unsubscribe()};
Zk.prototype.connect=function(){var q=this,N=this._connection;if(!N){N=this._connection=new tj;var b=xnF(this);N.add(this.source.subscribe(new I9(b,void 0,function(y){q._teardown();b.error(y)},function(){q._teardown();
b.complete()},function(){return q._teardown()})));
N.closed&&(this._connection=null,N=tj.JSC$9150_EMPTY)}return N};var P$J=Array.isArray;var oin=Array.isArray,vix=Object,Aju=vix.getPrototypeOf,eXA=vix.prototype,B0h=vix.keys;var L7=function(q,N,b){g1.call(this,q);this._next=N;this.shouldComplete=b};
_.Y(L7,g1);L7.JSC$9150_EMPTY=g1.JSC$9150_EMPTY;L7.create=g1.create;L7.prototype._complete=function(){this.shouldComplete()?g1.prototype._complete.call(this):this.unsubscribe()};var ZMh=["addListener","removeListener"],g7n=["addEventListener","removeEventListener"],Rtd=["on","off"];var d1=function(){tj.call(this)};
_.Y(d1,tj);d1.JSC$9150_EMPTY=tj.JSC$9150_EMPTY;d1.prototype.schedule=function(){return this};var Gwj=function(q,N){return setInterval.apply(null,[q,N].concat(_.a9(_.MB.apply(2,arguments))))};var cE=function(q,N){tj.call(this);this.scheduler=q;this.work=N;this.pending=!1};
_.Y(cE,d1);cE.JSC$9150_EMPTY=d1.JSC$9150_EMPTY;cE.prototype.schedule=function(q,N){N=N===void 0?0:N;if(this.closed)return this;this.state=q;q=this.id;var b=this.scheduler;q!=null&&(this.id=Y5R(this,q,N));this.pending=!0;this.delay=N;this.id=this.id||this.requestAsyncId(b,this.id,N);return this};
cE.prototype.requestAsyncId=function(q,N,b){b=b===void 0?0:b;return Gwj(q.flush.bind(q,this),b)};
var Y5R=function(q,N,b){b=b===void 0?0:b;if(b!=null&&q.delay===b&&q.pending===!1)return N;clearInterval(N)};
cE.prototype.execute=function(q,N){if(this.closed)return Error("ha");this.pending=!1;if(q=this._execute(q,N))return q;this.pending===!1&&this.id!=null&&(this.id=Y5R(this,this.id,null))};
cE.prototype._execute=function(q){var N=!1;try{this.work(q)}catch(y){N=!0;var b=!!y&&y||Error(y)}if(N)return this.unsubscribe(),b};
cE.prototype.unsubscribe=function(){if(!this.closed){var q=this.id,N=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;xnh(N,this);q!=null&&(this.id=Y5R(this,q,null));this.delay=null;d1.prototype.unsubscribe.call(this)}};var Q9o=function(q,N){N=N===void 0?VFM:N;j9l.call(this,q,N);this.actions=[];this.active=!1;this.scheduled=void 0};
_.Y(Q9o,j9l);Q9o.prototype.flush=function(q){var N=this.actions;if(this.active)N.push(q);else{var b;this.active=!0;do if(b=q.execute(q.state,q.delay))break;while(q=N.shift());this.active=!1;if(b){for(;q=N.shift();)q.unsubscribe();throw b;}}};var IW=new jF(mt);var dYu=Array.isArray;var uu=function(q,N){cE.call(this,q,N);this.scheduler=q;this.work=N};
_.Y(uu,cE);uu.JSC$9150_EMPTY=cE.JSC$9150_EMPTY;uu.prototype.schedule=function(q,N){N=N===void 0?0:N;if(N>0)return cE.prototype.schedule.call(this,q,N);this.delay=N;this.state=q;this.scheduler.flush(this);return this};
uu.prototype.execute=function(q,N){return N>0||this.closed?cE.prototype.execute.call(this,q,N):this._execute(q,N)};
uu.prototype.requestAsyncId=function(q,N,b){b=b===void 0?0:b;return b!=null&&b>0||b==null&&this.delay>0?cE.prototype.requestAsyncId.call(this,q,N,b):q.flush(this)};var O7q=function(){Q9o.apply(this,arguments)};
_.Y(O7q,Q9o);var LtJ=new O7q(uu);var wxR=function(){this.performanceMonitor=new h_T;this.queue=new keT;this.internalSymbol=Symbol();this.debugNames=new zX1};
wxR.prototype.getOnBackgrounded=function(){return IW};
_.$H.Object.defineProperties(wxR.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var zm=function(q,N){N=Error.call(this,N?q+": "+N:String(q));this.message=N.message;"stack"in N&&(this.stack=N.stack);this.code=q;this.__proto__=zm.prototype;this.name=String(q)};
_.Y(zm,Error);var Tb=function(q){zm.call(this,1E3,'sfr:"'+q+'"');this.measurementStrategyFailureReason=q;this.__proto__=Tb.prototype};
_.Y(Tb,zm);var sp=function(){zm.call(this,1003);this.__proto__=sp.prototype};
_.Y(sp,zm);var $_=function(){zm.call(this,1009);this.__proto__=$_.prototype};
_.Y($_,zm);var i7l=function(){zm.call(this,1011);this.__proto__=i7l.prototype};
_.Y(i7l,zm);var lbM=function(){zm.call(this,1007);this.__proto__=sp.prototype};
_.Y(lbM,zm);var fM=function(q){zm.call(this,1004,String(q));this.inputObservableIndex=q;this.__proto__=fM.prototype};
_.Y(fM,zm);var PCD=function(q){zm.call(this,1010,q);this.__proto__=MGd.prototype};
_.Y(PCD,zm);var MGd=function(q){zm.call(this,1005,q);this.__proto__=MGd.prototype};
_.Y(MGd,zm);var KtT=function(q){var N=_.MB.apply(1,arguments),b=this;this.orderedFactories=[];this.orderedFactories.push(q);N.forEach(function(y){b.orderedFactories.push(y)})};
KtT.prototype.isSupported=function(q){return this.orderedFactories.some(function(N){return N.isSupported(q)})};
KtT.prototype.makeBeacon=function(q,N){for(var b=0;b<this.orderedFactories.length;b++)if(this.orderedFactories[b].isSupported(N))return this.orderedFactories[b].makeBeacon(q,N);throw new $_;};var fuD=Symbol("ia"),DnJ=Symbol("ja"),Hx=function(q,N){this.value=q;this.timeline=N},Bx=function(q,N){if(N.timeline!==q.timeline)throw new lbM;
return q.value-N.value};
_.g=Hx.prototype;_.g.equals=function(q){return Bx(this,q)===0};
_.g.maximum=function(q){if(q.timeline!==this.timeline)throw new lbM;return this.value>=q.value?this:q};
_.g.round=function(){return new Hx(Math.round(this.value),this.timeline)};
_.g.add=function(q){return new Hx(this.value+q,this.timeline)};
_.g.toString=function(){return String(this.value)};var tx=function(q,N){this.context=q;this.JSC$9277_pinger=N};
tx.prototype.isSupported=function(q){return this.JSC$9277_pinger.isSupported(q)};
tx.prototype.makeBeacon=function(q,N){if(!this.isSupported(N))throw new $_;return new mw(this.context,this.JSC$9277_pinger,N!=null?N:void 0,q)};
var mw=function(q,N,b,y){var J=this;this.JSC$9283_pinger=N;this.properties=b;this.url=y;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var E;this.method=(E=b==null?void 0:b.beaconMethod)!=null?E:"GET";this.backgroundedSubscription=q.getOnBackgrounded().subscribe(function(){J.sendNow()})};
mw.prototype.deactivate=function(){this.internalIsPending=!1};
mw.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9283_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var q,N;this.JSC$9283_pinger.pingWithHeadersAndBody((q=this.properties)!=null?q:{},this.customHeaders,(N=this.body)!=null?N:"",this.url)}else this.JSC$9283_pinger.ping(this.url);this.internalIsPending=!1}catch(b){}else this.internalIsPending=!1};
mw.prototype.setHeader=function(q,N){this.customHeaders.set(q,N)};
_.$H.Object.defineProperties(mw.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var kwx=function(){for(var q=_.Z(_.MB.apply(0,arguments)),N=q.next();!N.done;N=q.next())if(N=N.value,N.available()){this.timeProvider=N;return}this.timeProvider=new hXx};
_.g=kwx.prototype;_.g.available=function(){return this.timeProvider.available()};
_.g.now=function(){return this.timeProvider.now()};
_.g.setTimeout=function(q,N){return this.timeProvider.setTimeout(q,N)};
_.g.clearTimeout=function(q){this.timeProvider.clearTimeout(q)};
_.g.interval=function(q,N){var b=this.intervalObservable(q).subscribe(N);return function(){return void b.unsubscribe()}};
_.g.intervalObservable=function(q){return this.timeProvider.intervalObservable(q)};
_.$H.Object.defineProperties(kwx.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var hXx=function(){this.timeline=Symbol()};
_.g=hXx.prototype;_.g.available=function(){return!1};
_.g.now=function(){return new Hx(0,this.timeline)};
_.g.setTimeout=function(){return 0};
_.g.clearTimeout=function(){};
_.g.interval=function(){return function(){}};
_.g.intervalObservable=function(){return IW};var r1=function(q,N){this.intrinsicFunctionNamespace=q;this.performanceMonitor=N};
_.g=r1.prototype;_.g.setTimeout=function(q,N){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,q),N)};
_.g.clearTimeout=function(q){this.intrinsicFunctionNamespace.clearTimeout(q)};
_.g.interval=function(q,N){var b=this.intervalObservable(q).subscribe(N);return function(){return void b.unsubscribe()}};
_.g.intervalObservable=function(q){var N=this;return new jF(function(b){var y=0,J=N.intrinsicFunctionNamespace.setInterval(function(){b.next(y++)},q);
return function(){N.intrinsicFunctionNamespace.clearInterval(J)}})};
_.g.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var Un1=function(q,N){r1.call(this,q,N);this.timeline=DnJ};
_.Y(Un1,r1);Un1.prototype.now=function(){return new Hx(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
Un1.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&r1.prototype.available.call(this)};var fbx=function(q,N){r1.call(this,q,N);this.timeline=fuD};
_.Y(fbx,r1);fbx.prototype.now=function(){return new Hx(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
fbx.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&r1.prototype.available.call(this)};var Ib1=function(q){this.context=q;if(C$x===void 0)a:{var N,b,y=(N=q.global)==null?void 0:(b=N.document)==null?void 0:b.createElement("meta");if(y)try{y.httpEquiv="origin-trial";y.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";q.global.document.head.append(y);C$x=y;break a}catch(J){}C$x=void 0}},
C$x;
Ib1.prototype.isSupported=function(q){return jWd(this.context)!==void 0&&!(q==null||!q.endOfSession)&&!Xc(this.context)&&!(q==null?0:q.attributionEnabled)&&!(q==null?0:q.customHeaders)&&!(q==null?0:q.customBody)};
Ib1.prototype.makeBeacon=function(q,N){if(!this.isSupported(N))throw new $_;return new V7(this.context,q,N)};
var V7=function(q,N,b){this.context=q;this.properties=b;this.JSC$9310_urlWithoutToken=N;var y;this.beaconMethod=(y=b==null?void 0:b.beaconMethod)!=null?y:"GET";q=jWd(this.context);if(q===void 0)throw Error();this.fetchLater=q;T0j(this,s9l(this))},T0j=function(q,N){q.beaconResult&&q.beaconResult.activated||(q.beaconAbort=new AbortController,q.beaconResult=q.fetchLater(N,{method:q.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:q.beaconAbort.signal,activateAfter:96E4}))},s9l=function(q){q=q.JSC$9310_urlWithoutToken;
return(q.slice(-1)[0]==="&"?q:q+"&")+"flapi=1"};
V7.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
V7.prototype.sendNow=function(){};
V7.prototype.setHeader=function(){};
_.$H.Object.defineProperties(V7.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9310_urlWithoutToken},
set:function(q){this.JSC$9310_urlWithoutToken=q;q=s9l(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);T0j(this,q)}},
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 ni1=function(q){this.context=q};
ni1.prototype.isSupported=function(){return!Xc(this.context)&&!!this.context.global.fetch};
ni1.prototype.ping=function(){var q=this;return Aj.apply(null,_.a9(_.MB.apply(0,arguments).map(function(N){return Gw(q.context.global.fetch(N,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(n7(function(b){return b.status===200}))}))).pipe(whn(function(N){return N}),lkD())};
ni1.prototype.pingWithHeadersAndBody=function(q,N,b){for(var y=_.MB.apply(3,arguments),J=this,E=new Headers,F=_.Z(N.entries()),R=F.next();!R.done;R=F.next()){var c=_.Z(R.value);R=c.next().value;c=c.next().value;E.set(R,c)}var z,m=(z=q.keepAlive)!=null?z:!1;Aj.apply(null,_.a9(y.map(function(r){return Gw(J.context.global.fetch(r,Object.assign({},{method:String(q.beaconMethod),cache:"no-cache"},m?{keepalive:!0}:{},{mode:"no-cors",headers:E,body:b}))).pipe(n7(function(X){return X.status===200}))}))).pipe(whn(function(r){return r}),
lkD())};var abM,f1d,S5E;_.jE=function(){};
_.CC=function(q){return q};
abM=function(q){var N=N||0;return function(){return q.apply(this,Array.prototype.slice.call(arguments,0,N))}};
_.x_=function(q){var N=!1,b;return function(){N||(b=q(),N=!0);return b}};
_.vE=function(q,N){var b=0;return function(y){_.JZ.clearTimeout(b);var J=arguments;b=_.JZ.setTimeout(function(){q.apply(void 0,J)},N)}};
f1d=function(q,N){var b=0,y=!1,J=[],E=function(){b=0;y&&(y=!1,F())},F=function(){b=_.JZ.setTimeout(E,N);
var R=J;J=[];q.apply(void 0,R)};
return function(R){J=arguments;b?y=!0:F()}};
S5E=function(q,N){var b=0,y=function(){b=0};
return function(J){b||(b=_.JZ.setTimeout(y,N),q.apply(void 0,arguments))}};var Ltx=function(){return jn&&vA?vA.mobile:!Wtx()&&(Gz("iPod")||Gz("iPhone")||Gz("Android")||Gz("IEMobile"))},Wtx=function(){return jn&&vA?!vA.mobile&&(Gz("iPad")||Gz("Android")||Gz("Silk")):Gz("iPad")||Gz("Android")&&!Gz("Mobile")||Gz("Silk")};var Gm=function(q,N,b,y,J){this.allowedElements=q;this.elementPolicies=N;this.allowedGlobalAttributes=b;this.globalAttributePolicies=y;this.globallyAllowedAttributePrefixes=J},pxv=function(q,N,b){b=q.elementPolicies.get(b);
return(b==null?0:b.has(N))?b.get(N):q.allowedGlobalAttributes.has(N)?{policyAction:1}:(b=q.globalAttributePolicies.get(N))?b:q.globallyAllowedAttributePrefixes&&[].concat(_.a9(q.globallyAllowedAttributePrefixes)).some(function(y){return N.indexOf(y)===0})?{policyAction:1}:{policyAction:0}};var P$l="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(" "),
MFT=[["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}]])]],oiT="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(" "),
AjJ=[["dir",{policyAction:3,conditions:Kc(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:Kc(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:Kc(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:Kc(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],eXR=new Gm(new Set(P$l),new Map(MFT),new Set(oiT),new Map(AjJ)),B0F=new Gm(new Set(P$l.concat(["BUTTON",
"INPUT"])),new Map(MFT),new Set(Kc(function(){return oiT.concat(["class","id","name"])})),new Map(Kc(function(){return AjJ.concat([["style",
{policyAction:1}]])})));var H7F,qpl,bMx;H7F=function(q,N,b,y,J){this.JSC$9367_sanitizerTable=q;this.styleElementSanitizer=N;this.styleAttributeSanitizer=b;this.JSC$9367_resourceUrlPolicy=y;this.JSC$9367_navigationUrlPolicy=J;this.changes=[]};
_.Nzx=function(q,N){var b=document.implementation.createHTMLDocument("");q=qpl(q,N,b);b=b.body;b.appendChild(q);b=(new XMLSerializer).serializeToString(b);b=b.slice(b.indexOf(">")+1,b.lastIndexOf("</"));return BZ(b)};
qpl=function(q,N,b){N=sWz(N,b);N=document.createTreeWalker(N,5,function(R){if(R.nodeType===3)R=1;else if(akA(R))if(R=n7d(R),R===null)R=2;else{var c=q.JSC$9367_sanitizerTable;R=R!=="FORM"&&(c.allowedElements.has(R)||c.elementPolicies.has(R))?1:2}else R=2;return R});
for(var y=N.nextNode(),J=b.createDocumentFragment(),E=J;y!==null;){var F=void 0;if(y.nodeType===3)q.styleElementSanitizer&&E.nodeName==="STYLE"?(y=q.styleElementSanitizer(y.data),F=q.createTextNode(y)):F=q.createTextNode(y.data);else if(akA(y))F=bMx(q,y,b);else throw Error("Z");E.appendChild(F);if(y=N.firstChild())E=F;else for(;!(y=N.nextSibling())&&(y=N.parentNode());)E=E.parentNode}return J};
H7F.prototype.createTextNode=function(q){return document.createTextNode(q)};
bMx=function(q,N,b){var y,J=n7d(N);b=b.createElement(J);N=N.attributes;for(var E=_.Z(N),F=E.next();!F.done;F=E.next()){var R=F.value;F=R.name;R=R.value;var c=pxv(q.JSC$9367_sanitizerTable,F,J);a:{if(y=c.conditions){y=_.Z(y);for(var z=y.next();!z.done;z=y.next()){var m=_.Z(z.value);z=m.next().value;m=m.next().value;var r=void 0;if((z=(r=N.getNamedItem(z))==null?void 0:r.value)&&!m.has(z)){y=!1;break a}}}y=!0}if(y)switch(c.policyAction){case 1:rz(b,F,R);break;case 2:throw Error();case 3:rz(b,F,R.toLowerCase());
break;case 4:q.styleAttributeSanitizer?(R=q.styleAttributeSanitizer(R),rz(b,F,R)):rz(b,F,R);break;case 5:q.JSC$9367_resourceUrlPolicy?(c={type:2,attributeName:F,elementName:J},R=TzA(R),(R=q.JSC$9367_resourceUrlPolicy(R,c))&&rz(b,F,R.toString())):rz(b,F,R);break;case 6:if(q.JSC$9367_resourceUrlPolicy){c={type:2,attributeName:F,elementName:J};y=[];R=_.Z(R.split(","));for(z=R.next();!z.done;z=R.next())m=_.Z(z.value.trim().split(/\s+/,2)),z=m.next().value,m=m.next().value,y.push({url:z,descriptor:m});
R={parts:[]};y=_.Z(y);for(z=y.next();!z.done;z=y.next())z=z.value,m=TzA(z.url),(m=q.JSC$9367_resourceUrlPolicy(m,c))&&R.parts.push({url:m.toString(),descriptor:z.descriptor});rz(b,F,Sph(R))}else rz(b,F,R);break;case 7:c=R;if(q.JSC$9367_navigationUrlPolicy){c={type:2,attributeName:F,elementName:J};R=TzA(R);R=q.JSC$9367_navigationUrlPolicy(R,c);if(R===null)break;c=R.toString()}R=c;c=_.dnd(R);c=c!==void 0&&yjF.indexOf(c.toLowerCase())!==-1?R:"about:invalid#zClosurez";rz(b,F,c)}}return b};
_.ybx=Kc(function(){return new H7F(eXR)});
_.JbT=Kc(function(){return new H7F(B0F)});var E7l=function(){this.calledBuild=!1;this.JSC$9379_sanitizerTable=eXR},g7T=function(){E7l.apply(this,arguments)};
_.Y(g7T,E7l);g7T.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new H7F(this.JSC$9379_sanitizerTable,void 0,void 0,this.JSC$9379_resourceUrlPolicy,this.JSC$9379_navigationUrlPolicy)};var ZMF=/[^#]*/;var htZ={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"},Fs1=_.x_(function(){return UYd()}),
dYJ=function(){var q=Rt1("IFRAME"),N={};
_.Jz(Fs1(),function(b){q.sandbox&&q.sandbox.supports&&q.sandbox.supports(b)&&(N[b]=!0)});
return N},Rt1=function(q,N){N=N===void 0?document:N;
return N.createElement(String(q).toLowerCase())};var Y_;_.Od=function(q,N,b){return Math.min(Math.max(q,N),b)};
Y_=function(q,N,b){return q+b*(N-q)};_.Sc=function(q,N){this.x=q!==void 0?q:0;this.y=N!==void 0?N:0};
_.g=_.Sc.prototype;_.g.clone=function(){return new _.Sc(this.x,this.y)};
_.g.equals=function(q){return q instanceof _.Sc&&(this==q?!0:this&&q?this.x==q.x&&this.y==q.y:!1)};
_.g.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.g.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.g.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.g.translate=function(q,N){q instanceof _.Sc?(this.x+=q.x,this.y+=q.y):(this.x+=Number(q),typeof N==="number"&&(this.y+=N));return this};
_.g.scale=function(q,N){this.x*=q;this.y*=typeof N==="number"?N:q;return this};_.l3=function(q,N){this.width=q;this.height=N};
_.g=_.l3.prototype;_.g.clone=function(){return new _.l3(this.width,this.height)};
_.g.area=function(){return this.width*this.height};
_.g.aspectRatio=function(){return this.width/this.height};
_.g.isEmpty=function(){return!this.area()};
_.g.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.g.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.g.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.g.scale=function(q,N){this.width*=q;this.height*=typeof N==="number"?N:q;return this};var cbR;_.nM={};cbR="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.nM.add=function(q,N,b){if(q!==null&&N in q)throw Error("na`"+N);q[N]=b};
_.nM.clear=function(q){for(var N in q)delete q[N]};
_.nM.clone=function(q){var N={},b;for(b in q)N[b]=q[b];return N};
_.nM.contains=function(q,N){return McJ(q,N)};
_.nM.containsKey=function(q,N){return q!==null&&N in q};
_.nM.containsValue=McJ;_.nM.create=etD;_.nM.createImmutableView=function(q){var N=q;Object.isFrozen&&!Object.isFrozen(q)&&(N=Object.create(q),Object.freeze(N));return N};
_.nM.createSet=BzZ;_.nM.equals=function(q,N){for(var b in q)if(!(b in N)||q[b]!==N[b])return!1;for(var y in N)if(!(y in q))return!1;return!0};
_.nM.every=function(q,N,b){for(var y in q)if(!N.call(b,q[y],y,q))return!1;return!0};
_.nM.extend=function(q,N){for(var b,y,J=1;J<arguments.length;J++){y=arguments[J];for(b in y)q[b]=y[b];for(var E=0;E<cbR.length;E++)b=cbR[E],Object.prototype.hasOwnProperty.call(y,b)&&(q[b]=y[b])}};
_.nM.filter=function(q,N,b){var y={},J;for(J in q)N.call(b,q[J],J,q)&&(y[J]=q[J]);return y};
_.nM.findKey=o7d;_.nM.findValue=function(q,N,b){return(N=o7d(q,N,b))&&q[N]};
_.nM.forEach=function(q,N,b){for(var y in q)N.call(b,q[y],y,q)};
_.nM.get=function(q,N,b){return q!==null&&N in q?q[N]:b};
_.nM.getAllPropertyNames=function(q,N,b){if(!q)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return P3R(q);for(var y={};q&&(q!==Object.prototype||N)&&(q!==Function.prototype||b);){for(var J=Object.getOwnPropertyNames(q),E=0;E<J.length;E++)y[J[E]]=!0;q=Object.getPrototypeOf(q)}return P3R(y)};
_.nM.getAnyKey=function(q){for(var N in q)return N};
_.nM.getAnyValue=function(q){for(var N in q)return q[N]};
_.nM.getCount=function(q){var N=0,b;for(b in q)N++;return N};
_.nM.getKeys=P3R;_.nM.getSuperClass=function(q){return(q=Object.getPrototypeOf(q.prototype))&&q.constructor};
_.nM.getValueByKeys=function(q,N){var b=_.pC(N),y=b?N:arguments;for(b=b?0:1;b<y.length;b++){if(q==null)return;q=q[y[b]]}return q};
_.nM.getValues=function(q){var N=[],b=0,y;for(y in q)N[b++]=q[y];return N};
_.nM.isEmpty=function(q){for(var N in q)return!1;return!0};
_.nM.isImmutableView=function(q){return!!Object.isFrozen&&Object.isFrozen(q)};
_.nM.map=function(q,N,b){var y={},J;for(J in q)y[J]=N.call(b,q[J],J,q);return y};
_.nM.remove=function(q,N){var b;(b=N in q)&&delete q[N];return b};
_.nM.set=function(q,N,b){q[N]=b};
_.nM.setIfUndefined=function(q,N,b){return N in q?q[N]:q[N]=b};
_.nM.setWithReturnValueIfNotSet=function(q,N,b){if(N in q)return q[N];b=b();return q[N]=b};
_.nM.some=function(q,N,b){for(var y in q)if(N.call(b,q[y],y,q))return!0;return!1};
_.nM.transpose=function(q){var N={},b;for(b in q)N[q[b]]=b;return N};
_.nM.unsafeClone=Abd;var Ar=function(q,N){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=q===pkd&&N||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=uel};
Ar.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var ztT=function(q){return q instanceof Ar&&q.constructor===Ar&&q.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===uel?q.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},uel={},pkd={};
new Ar(pkd,"");var k7,KF,Oq,$YF,rbv,mYx,Wh,Vcq,xYo,jWM,KG,v7j,lkE,iMT,whj,Kso,DYx,ht4,kb1,doz,UY1,C3x,IkE,fkx,Q7;k7=function(q){return q?new Q7(_.LM(q)):vDq||(vDq=new Q7)};
_.oE=function(q,N){return typeof N==="string"?q.getElementById(N):N};
KF=function(q,N){return(N||document).getElementsByTagName(String(q))};
_.tc4=function(q){return $YF("yt-formatted-string","paper-input-input",q)};
Oq=function(q,N,b,y){q=y||q;return(N=N&&N!="*"?String(N).toUpperCase():"")||b?q.querySelectorAll(N+(b?"."+b:"")):q.getElementsByTagName("*")};
$YF=function(q,N,b){var y=document,J=q&&q!="*"?String(q).toUpperCase():"";return J||N?(b||y).querySelector(J+(N?"."+N:"")):Oq(y,q,N,b)[0]||null};
rbv=function(q,N){_.nM.forEach(N,function(b,y){y=="style"?q.style.cssText=b:y=="class"?q.className=b:y=="for"?q.htmlFor=b:mYx.hasOwnProperty(y)?q.setAttribute(mYx[y],b):_.gA(y,"aria-")||_.gA(y,"data-")?q.setAttribute(y,b):q[y]=b})};
mYx={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"};_.KM=function(q){q=(q||window).document;q=q.compatMode=="CSS1Compat"?q.documentElement:q.body;return new _.l3(q.clientWidth,q.clientHeight)};
_.XhM=function(q){var N=_.w1(q);q=q.defaultView;return new _.Sc((q==null?void 0:q.pageXOffset)||N.scrollLeft,(q==null?void 0:q.pageYOffset)||N.scrollTop)};
_.w1=function(q){return q.scrollingElement?q.scrollingElement:_.Nd||q.compatMode!="CSS1Compat"?q.body||q.documentElement:q.documentElement};
Wh=function(q){return q?q.defaultView:window};
_.iu=function(q,N,b){return Vcq(document,arguments)};
Vcq=function(q,N){var b=N[1],y=jWM(q,String(N[0]));b&&(typeof b==="string"?y.className=b:Array.isArray(b)?y.className=b.join(" "):rbv(y,b));N.length>2&&xYo(q,y,N,2);return y};
xYo=function(q,N,b,y){function J(R){R&&N.appendChild(typeof R==="string"?q.createTextNode(R):R)}
for(;y<b.length;y++){var E=b[y];if(!_.pC(E)||_.AZ(E)&&E.nodeType>0)J(E);else{a:{if(E&&typeof E.length=="number"){if(_.AZ(E)){var F=typeof E.item=="function"||typeof E.item=="string";break a}if(typeof E==="function"){F=typeof E.item=="function";break a}}F=!1}_.Jz(F?_.LC(E):E,J)}}};
_.iC=function(q){return jWM(document,q)};
jWM=function(q,N){N=String(N);q.contentType==="application/xhtml+xml"&&(N=N.toLowerCase());return q.createElement(N)};
_.lu=function(){return document.createTextNode("\n")};
KG=function(q){if(q.nodeType!=1)return!1;switch(q.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};
v7j=function(q,N){xYo(_.LM(q),q,arguments,1)};
_.Do=function(q){for(var N;N=q.firstChild;)q.removeChild(N)};
_.hx=function(q,N){N.parentNode&&N.parentNode.insertBefore(q,N)};
_.k_=function(q,N){N.parentNode&&N.parentNode.insertBefore(q,N.nextSibling)};
_.lC=function(q){return q&&q.parentNode?q.parentNode.removeChild(q):null};
_.Gb4=function(q,N){var b=N.parentNode;b&&b.replaceChild(q,N)};
_.Ypx=function(q){var N,b=q.parentNode;if(b&&b.nodeType!=11)if(q.removeNode)q.removeNode(!1);else{for(;N=q.firstChild;)b.insertBefore(N,q);_.lC(q)}};
_.Uq=function(q){return q.children!=void 0?q.children:Array.prototype.filter.call(q.childNodes,function(N){return N.nodeType==1})};
_.OMF=function(q){return q.nextElementSibling!==void 0?q.nextElementSibling:_.QWJ(q.nextSibling,!0)};
_.QWJ=function(q,N){for(;q&&q.nodeType!=1;)q=N?q.nextSibling:q.previousSibling;return q};
_.Rp=function(q){return _.AZ(q)&&q.nodeType==1};
_.BY=function(q,N){if(!q||!N)return!1;if(q.contains&&N.nodeType==1)return q==N||q.contains(N);if(typeof q.compareDocumentPosition!="undefined")return q==N||!!(q.compareDocumentPosition(N)&16);for(;N&&q!=N;)N=N.parentNode;return N==q};
lkE=function(q,N){if(q==N)return 0;if(q.compareDocumentPosition)return q.compareDocumentPosition(N)&2?1:-1;if("sourceIndex"in q||q.parentNode&&"sourceIndex"in q.parentNode){var b=q.nodeType==1,y=N.nodeType==1;if(b&&y)return q.sourceIndex-N.sourceIndex;var J=q.parentNode,E=N.parentNode;return J==E?whj(q,N):!b&&_.BY(J,N)?-1*iMT(q,N):!y&&_.BY(E,q)?iMT(N,q):(b?q.sourceIndex:J.sourceIndex)-(y?N.sourceIndex:E.sourceIndex)}y=_.LM(q);b=y.createRange();b.selectNode(q);b.collapse(!0);q=y.createRange();q.selectNode(N);
q.collapse(!0);return b.compareBoundaryPoints(_.JZ.Range.START_TO_END,q)};
iMT=function(q,N){var b=q.parentNode;if(b==N)return-1;for(;N.parentNode!=b;)N=N.parentNode;return whj(N,q)};
whj=function(q,N){for(;N=N.previousSibling;)if(N==q)return-1;return 1};
Kso=function(q){var N,b=arguments.length;if(!b)return null;if(b==1)return arguments[0];var y=[],J=Infinity;for(N=0;N<b;N++){for(var E=[],F=arguments[N];F;)E.unshift(F),F=F.parentNode;y.push(E);J=Math.min(J,E.length)}E=null;for(N=0;N<J;N++){F=y[0][N];for(var R=1;R<b;R++)if(F!=y[R][N])return E;E=F}return E};
_.LM=function(q){return q.nodeType==9?q:q.ownerDocument||q.document};
DYx=function(q){return q.contentDocument||q.contentWindow.document};
_.fG=function(q,N){if("textContent"in q)q.textContent=N;else if(q.nodeType==3)q.data=String(N);else if(q.firstChild&&q.firstChild.nodeType==3){for(;q.lastChild!=q.firstChild;)q.removeChild(q.lastChild);q.firstChild.data=String(N)}else _.Do(q),q.appendChild(_.LM(q).createTextNode(String(N)))};
ht4={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};kb1={IMG:" ",BR:"\n"};doz=function(q){var N;q.tagName=="A"&&q.hasAttribute("href")||q.tagName=="INPUT"||q.tagName=="TEXTAREA"||q.tagName=="SELECT"||q.tagName=="BUTTON"?N=!q.disabled&&(!q.hasAttribute("tabindex")||UY1(q)):N=q.hasAttribute("tabindex")&&UY1(q);return N};
UY1=function(q){q=q.tabIndex;return typeof q==="number"&&q>=0&&q<32768};
C3x=function(q){var N=[];fkx(q,N,!0);q=N.join("");q=q.replace(/ \xAD /g," ").replace(/\xAD/g,"");q=q.replace(/\u200B/g,"");q=q.replace(/ +/g," ");q!=" "&&(q=q.replace(/^\s*/,""));return q};
IkE=function(q){var N=[];fkx(q,N,!1);return N.join("")};
fkx=function(q,N,b){if(!(q.nodeName in ht4))if(q.nodeType==3)b?N.push(String(q.nodeValue).replace(/(\r\n|\r|\n)/g,"")):N.push(q.nodeValue);else if(q.nodeName in kb1)N.push(kb1[q.nodeName]);else for(q=q.firstChild;q;)fkx(q,N,b),q=q.nextSibling};
_.Tzx=function(q,N,b){if(!N&&!b)return null;var y=N?String(N).toUpperCase():null;return _.Ph(q,function(J){return(!y||J.nodeName==y)&&(!b||typeof J.className==="string"&&_.aJ(J.className.split(/\s+/),b))},!0)};
_.Ph=function(q,N,b){q&&!b&&(q=q.parentNode);for(b=0;q;){if(N(q))return q;q=q.parentNode;b++}return null};
Q7=function(q){this.JSC$9407_document_=q||_.JZ.document||document};
_.g=Q7.prototype;_.g.getElement=function(q){return _.oE(this.JSC$9407_document_,q)};
_.g.$=Q7.prototype.getElement;_.g.getElementsByTagName=function(q,N){return(N||this.JSC$9407_document_).getElementsByTagName(String(q))};
_.g.getElementsByTagNameAndClass=function(q,N,b){return Oq(this.JSC$9407_document_,q,N,b)};
_.g.$$=Q7.prototype.getElementsByTagNameAndClass;_.g.setProperties=rbv;_.g.JSC$9409_createDom=function(q,N,b){return Vcq(this.JSC$9407_document_,arguments)};
_.g.createElement=function(q){return jWM(this.JSC$9407_document_,q)};
_.g.createTextNode=function(q){return this.JSC$9407_document_.createTextNode(String(q))};
_.g.getWindow=function(){return this.JSC$9407_document_.defaultView};
var Dk=function(q){return _.XhM(q.JSC$9407_document_)};
_.g=Q7.prototype;_.g.appendChild=function(q,N){q.appendChild(N)};
_.g.append=v7j;_.g.canHaveChildren=KG;_.g.removeNode=_.lC;_.g.getChildren=_.Uq;_.g.contains=_.BY;_.g.isFocusable=doz;_.g=x7.prototype;_.g.getWidth=function(){return this.right-this.left};
_.g.getHeight=function(){return this.bottom-this.top};
_.g.clone=function(){return new x7(this.top,this.right,this.bottom,this.left)};
_.g.contains=function(q){return this&&q?q instanceof x7?q.left>=this.left&&q.right<=this.right&&q.top>=this.top&&q.bottom<=this.bottom:q.x>=this.left&&q.x<=this.right&&q.y>=this.top&&q.y<=this.bottom:!1};
_.g.expand=function(q,N,b,y){_.AZ(q)?(this.top-=q.top,this.right+=q.right,this.bottom+=q.bottom,this.left-=q.left):(this.top-=q,this.right+=Number(N),this.bottom+=Number(b),this.left-=Number(y));return this};
_.g.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};
_.g.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};
_.g.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};
_.g.translate=function(q,N){q instanceof _.Sc?(this.left+=q.x,this.right+=q.x,this.top+=q.y,this.bottom+=q.y):(this.left+=q,this.right+=q,typeof N==="number"&&(this.top+=N,this.bottom+=N));return this};
_.g.scale=function(q,N){N=typeof N==="number"?N:q;this.left*=q;this.right*=q;this.top*=N;this.bottom*=N;return this};var CG=function(q,N,b,y){this.left=q;this.top=N;this.width=b;this.height=y};
_.g=CG.prototype;_.g.clone=function(){return new CG(this.left,this.top,this.width,this.height)};
_.g.boundingRect=function(q){var N=Math.max(this.left+this.width,q.left+q.width),b=Math.max(this.top+this.height,q.top+q.height);this.left=Math.min(this.left,q.left);this.top=Math.min(this.top,q.top);this.width=N-this.left;this.height=b-this.top};
_.g.contains=function(q){return q instanceof _.Sc?q.x>=this.left&&q.x<=this.left+this.width&&q.y>=this.top&&q.y<=this.top+this.height:this.left<=q.left&&this.left+this.width>=q.left+q.width&&this.top<=q.top&&this.top+this.height>=q.top+q.height};
_.g.distance=function(q){var N=q.x<this.left?this.left-q.x:Math.max(q.x-(this.left+this.width),0);q=q.y<this.top?this.top-q.y:Math.max(q.y-(this.top+this.height),0);return Math.sqrt(N*N+q*q)};
_.g.getSize=function(){return new _.l3(this.width,this.height)};
_.g.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};
_.g.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};
_.g.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};
_.g.translate=function(q,N){q instanceof _.Sc?(this.left+=q.x,this.top+=q.y):(this.left+=q,typeof N==="number"&&(this.top+=N));return this};
_.g.scale=function(q,N){N=typeof N==="number"?N:q;this.left*=q;this.width*=q;this.top*=N;this.height*=N;return this};var n7M,sq,G2R,Tm,Ls1,WsM,ph1,tEn,P3q,o71;_.IY=function(q,N,b){if(typeof N==="string")(N=_.sWo(q,N))&&(q.style[N]=b);else for(var y in N){b=q;var J=N[y],E=_.sWo(b,y);E&&(b.style[E]=J)}};
n7M={};_.sWo=function(q,N){var b=n7M[N];if(!b){var y=_.R$(N);b=y;q.style[y]===void 0&&(y=(_.Nd?"Webkit":_.qd?"Moz":null)+uwJ(y),q.style[y]!==void 0&&(b=y));n7M[N]=b}return b};
_.bk=function(q,N){var b=_.LM(q);return b.defaultView&&b.defaultView.getComputedStyle&&(q=b.defaultView.getComputedStyle(q,null))?q[N]||q.getPropertyValue(N)||"":""};
_.eG=function(q,N){return _.bk(q,N)||(q.currentStyle?q.currentStyle[N]:null)||q.style&&q.style[N]};
_.akx=function(q){return _.eG(q,"position")};
sq=function(q,N,b){if(N instanceof _.Sc){var y=N.x;N=N.y}else y=N,N=b;q.style.left=Tm(y,!1);q.style.top=Tm(N,!1)};
G2R=function(q){try{return q.getBoundingClientRect()}catch(N){return{left:0,top:0,right:0,bottom:0}}};
_.pM=function(q){var N=_.LM(q),b=new _.Sc(0,0);if(q==(N?_.LM(N):document).documentElement)return b;q=G2R(q);N=Dk(k7(N));b.x=q.left+N.x;b.y=q.top+N.y;return b};
_.SpF=function(q,N,b){if(N instanceof _.l3)b=N.height,N=N.width;else if(b==void 0)throw Error("oa");q.style.width=Tm(N,!0);q.style.height=Tm(b,!0)};
Tm=function(q,N){typeof q=="number"&&(q=(N?Math.round(q):q)+"px");return q};
Ls1=function(q){return WsM(q)};
WsM=function(q){var N=ph1;if(_.eG(q,"display")!="none")return N(q);var b=q.style,y=b.display,J=b.visibility,E=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";q=N(q);b.display=y;b.position=E;b.visibility=J;return q};
ph1=function(q){var N=q.offsetWidth,b=q.offsetHeight,y=_.Nd&&!N&&!b;return(N===void 0||y)&&q.getBoundingClientRect?(q=G2R(q),new _.l3(q.right-q.left,q.bottom-q.top)):new _.l3(N,b)};
tEn=function(q){var N=_.pM(q);q=WsM(q);return new CG(N.x,N.y,q.width,q.height)};
P3q=function(q,N){q=q.style;"opacity"in q?q.opacity=N:"MozOpacity"in q?q.MozOpacity=N:"filter"in q&&(q.filter=N===""?"":"alpha(opacity="+Number(N)*100+")")};
_.JX=function(q,N){q.style.display=N?"":"none"};
_.Mcl=function(q){return"rtl"==_.eG(q,"direction")};
o71=function(q){var N=_.bk(q,"marginLeft"),b=_.bk(q,"marginRight"),y=_.bk(q,"marginTop");q=_.bk(q,"marginBottom");return new x7(parseFloat(y),parseFloat(b),parseFloat(q),parseFloat(N))};
_.AbM=function(q){var N=_.bk(q,"borderLeftWidth"),b=_.bk(q,"borderRightWidth"),y=_.bk(q,"borderTopWidth");q=_.bk(q,"borderBottomWidth");return new x7(parseFloat(y),parseFloat(b),parseFloat(q),parseFloat(N))};var nG=function(q){this.context=q};
nG.prototype.isSupported=function(q){return(q==null?0:q.attributionEnabled)||(q==null?void 0:q.beaconMethod)==="POST"||(q==null?0:q.customHeaders)||(q==null?0:q.customBody)||(q==null?0:q.keepAlive)?!1:!Xc(this.context)};
nG.prototype.ping=function(){var q=this;return U5(_.MB.apply(0,arguments).map(function(N){try{var b=q.context.global,y=!1;y=y===void 0?!1:y;b.google_image_requests||(b.google_image_requests=[]);var J=Rt1("IMG",b.document);y&&(J.attributionSrc="");J.src=N;b.google_image_requests.push(J);return!0}catch(E){return!1}}).every(function(N){return N}))};
nG.prototype.pingWithHeadersAndBody=function(q,N,b){this.ping.apply(this,_.a9(_.MB.apply(3,arguments)))};var etE=function(q){this.context=q};
etE.prototype.isSupported=function(q){return Bz4&&!Xc(this.context)&&HMC(this.context)!==void 0&&!(q==null?0:q.attributionEnabled)&&(q==null?void 0:q.beaconMethod)!=="POST"&&!(q==null?0:q.customHeaders)&&!(q==null?0:q.customBody)};
etE.prototype.makeBeacon=function(q,N){if(!this.isSupported(N))throw new $_;return new aY(this.context,q)};
var Bz4=!1,aY=function(q,N){this.context=q;this.JSC$9428_urlWithoutToken=N;q=HMC(this.context);if(q===void 0)throw Error();this.wrappedBeacon=new q(HM1(this),{})},HM1=function(q){q=q.JSC$9428_urlWithoutToken;
return(q.slice(-1)[0]==="&"?q:q+"&")+"pbapi=1"};
aY.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
aY.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
aY.prototype.setHeader=function(){};
_.$H.Object.defineProperties(aY.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9428_urlWithoutToken},
set:function(q){this.JSC$9428_urlWithoutToken=q;this.wrappedBeacon.setURL(HM1(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(q){if(q!=="GET")throw new $_;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var qNR=function(q){this.context=q};
qNR.prototype.isSupported=function(q){if((q==null?0:q.attributionEnabled)||(q==null?void 0:q.beaconMethod)==="GET"||(q==null?0:q.customHeaders)||(q==null?0:q.customBody)||(q==null?0:q.keepAlive))return!1;var N;return!Xc(this.context)&&((N=this.context.global.navigator)==null?void 0:N.sendBeacon)!==void 0};
qNR.prototype.ping=function(){var q=this;return U5(_.MB.apply(0,arguments).map(function(N){var b;return(b=q.context.global.navigator)==null?void 0:b.sendBeacon(N)}).every(function(N){return N}))};
qNR.prototype.pingWithHeadersAndBody=function(q,N,b){this.ping.apply(this,_.a9(_.MB.apply(3,arguments)))};var Op=function(q){this.value=q},EN=function(q,N){return U5(q.value).pipe(Y7(N))},Zz=new Op(!1),f$A=new Op(!0);var MY=function(q){this.value=q;this.releasedSubject=new vh};
MY.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.$H.Object.defineProperties(MY.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9441_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var uzn=["FRAME","IMG","IFRAME"],gNA=/^[01](px)?$/,cWh=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},dIn=function(){var q=new cWh;
q.crossDomainLoadedDefault=!0;q.pendingImagesBlockLoad=!0;return q};var NEx=function(q,N){var b=VGd(q);if(b)if(b.onCreativeLoad)b.onCreativeLoad(N);else{var y=N?[N]:[],J=function(E){for(var F=0;F<y.length;++F)try{y[F](1,E)}catch(R){}y={push:function(R){R(1,E)}}};
b.onCreativeLoad=function(E){y.push(E)};
b.setAttribute("data-creative-load-listener","");b.addEventListener("creativeLoad",function(E){J(E.detail)});
_.JZ.addEventListener("message",function(E){XYd(b,J,E)})}};var SE=function(q,N){var b=this;this.global=q;this.parentContext=N;this.JSC$9452_onVisibilityChange=this.document?Aj(U5(!0),Mn(this.document,"visibilitychange")).pipe(qY(this.parentContext.performanceMonitor,748),n7(function(){return b.getVisibilityState()}),Ep()):U5("visible");
this.document?Mn(this.document,"DOMContentLoaded").pipe(qY(this.parentContext.performanceMonitor,739),Jb(1)):U5(JWe("DOMContentLoaded"))},U7d=function(q){return q.document!==null&&q.document.visibilityState!==void 0};
SE.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
SE.prototype.querySelector=function(q){return this.document?this.document.querySelector(q):null};
SE.prototype.querySelectorAll=function(q){return this.document?_.LC(this.document.querySelectorAll(q)):[]};
SE.prototype.elementFromPoint=function(q,N){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;q=this.document.elementFromPoint(q,N);return q===null?null:new MY(q)};
var Gfn=function(q,N,b){b=b===void 0?!1:b;if(N.ref===void 0||!q.document)return U5(N).pipe(qY(q.parentContext.performanceMonitor,749));var y=new RW(1),J=function(){y.next(N)};
b||NEx(N.ref,J);zpZ(N.ref,J);return y.pipe(qY(q.parentContext.performanceMonitor,749),Jb(1))};
_.$H.Object.defineProperties(SE.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return fkJ(this.global,"document")?this.global.document||null:null}}});var jAd=_.Tt(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),xIA=_.Tt(["./reach_worklet.js"]),vNC=_.Tt(["./reach_worklet.js"]),bFF=_.Tt(["./reach_worklet.html"]),yWJ=_.Tt(["./reach_worklet.js"]),JWv=_.Tt(["./reach_worklet.js"]);_.Xe(bFF);_.Xe(yWJ);_.Xe(JWv);var Hh={left:0,top:0,width:0,height:0};var ENT,gNx,ZF1,FWR,c4,dIT,cWF,uzT,P8J,Mre,tG1,mIo;ENT=function(q,N,b,y,J,E,F){var R="";q&&(R+=q+":");b&&(R+="//",N&&(R+=N+"@"),R+=b,y&&(R+=":"+y));J&&(R+=J);E&&(R+="?"+E);F&&(R+="#"+F);return R};
gNx=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.RO=function(q){return q.match(gNx)};
_.VD=function(q,N){return q?N?decodeURI(q):decodeURIComponent(q):q};
ZF1=function(q){q=_.RO(q)[1]||null;!q&&_.JZ.self&&_.JZ.self.location&&(q=_.JZ.self.location.protocol.slice(0,-1));return q?q.toLowerCase():""};
_.dO=function(q){return _.VD(_.RO(q)[3]||null,!0)};
_.wO=function(q){return _.VD(_.RO(q)[5]||null,!0)};
_.t8d=function(q){var N=q.indexOf("#");return N<0?null:q.slice(N+1)};
FWR=function(q){q=_.RO(q);return ENT(q[1],q[2],q[3],q[4])};
_.Rpj=function(q){q=_.RO(q);return ENT(q[1],null,q[3],q[4])};
_.fx=function(q){q=_.RO(q);return ENT(null,null,null,null,q[5],q[6],q[7])};
_.Wy=function(q){var N=q.indexOf("#");return N<0?q:q.slice(0,N)};
c4=function(q,N){q=_.RO(q);N=_.RO(N);return q[3]==N[3]&&q[1]==N[1]&&q[4]==N[4]};
dIT=function(q,N){if(q){q=q.split("&");for(var b=0;b<q.length;b++){var y=q[b].indexOf("="),J=null;if(y>=0){var E=q[b].substring(0,y);J=q[b].substring(y+1)}else E=q[b];N(E,J?z1(J):"")}}};
cWF=function(q){var N=q.indexOf("#");N<0&&(N=q.length);var b=q.indexOf("?");if(b<0||b>N){b=N;var y=""}else y=q.substring(b+1,N);return[q.slice(0,b),y,q.slice(N)]};
uzT=function(q,N){return N?q?q+"&"+N:N:q};
_.zp4=function(q,N){if(!N)return q;q=cWF(q);q[1]=uzT(q[1],N);return q[0]+(q[1]?"?"+q[1]:"")+q[2]};
_.$IJ=function(q,N,b){if(Array.isArray(N))for(var y=0;y<N.length;y++)_.$IJ(q,String(N[y]),b);else N!=null&&b.push(q+(N===""?"":"="+_.yX(N)))};
_.lv=function(q){var N=[],b;for(b in q)_.$IJ(b,q[b],N);return N.join("&")};
_.F$=function(q,N){N=_.lv(N);return _.zp4(q,N)};
_.WE=function(q,N,b){b=b!=null?"="+_.yX(b):"";return _.zp4(q,N+b)};
P8J=function(q,N,b,y){for(var J=b.length;(N=q.indexOf(b,N))>=0&&N<y;){var E=q.charCodeAt(N-1);if(E==38||E==63)if(E=q.charCodeAt(N+J),!E||E==61||E==38||E==35)return N;N+=J+1}return-1};
Mre=/#|$/;_.HY=function(q,N){var b=q.search(Mre),y=P8J(q,0,N,b);if(y<0)return null;var J=q.indexOf("&",y);if(J<0||J>b)J=b;y+=N.length+1;return z1(q.slice(y,J!==-1?J:0))};
tG1=/[?&]($|#)/;_.px=function(q,N){for(var b=q.search(Mre),y=0,J,E=[];(J=P8J(q,y,N,b))>=0;)E.push(q.substring(y,J)),y=Math.min(q.indexOf("&",J)+1||b,b);E.push(q.slice(y));return E.join("").replace(tG1,"$1")};
_.B_=function(q,N,b){return _.WE(_.px(q,N),N,b)};
mIo=function(q){var N=cWF(window.location.href),b=N[1],y=[];b&&b.split("&").forEach(function(J){var E=J.indexOf("=");E=E>=0?J.slice(0,E):J;q.hasOwnProperty(E)||y.push(J)});
N[1]=uzT(y.join("&"),_.lv(q));return N[0]+(N[1]?"?"+N[1]:"")+N[2]};var SNn=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(SNn,_.Rx);var azJ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(azJ,_.Rx);var fzJ=function(q,N){return _.Up(q,2,N)},nND=function(q,N){return _.Up(q,3,N)};
azJ.prototype.getModel=function(){return _.xs(this,4)};
var Izz=function(q,N){return _.Up(q,4,N)},UIA=function(q,N){return _.Up(q,5,N)},sAR=function(q,N){return _.Up(q,9,N)},kPA=function(q,N){return ts(q,10,N)},hpd=function(q,N){return _.VE(q,11,N)},CCu=function(q,N){return _.Up(q,1,N)},TED=function(q,N){return _.VE(q,7,N)};var KWn="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var gE=function(q,N,b,y){q=q===void 0?window:q;N=N===void 0?null:N;b=b===void 0?new h_T:b;y=y===void 0?GPu():y;wxR.call(this);var J=this;this.global=q;this.debugChannel=N;this.performanceMonitor=b;this.onPageHide=E7J(function(){return Mn(J.global,"pagehide")}).pipe(qY(this.performanceMonitor,941));
this.onLoad=E7J(function(){return Mn(J.global,"load")}).pipe(qY(this.performanceMonitor,738),Jb(1));
this.onResize=E7J(function(){return Mn(J.global,"resize")}).pipe(qY(this.performanceMonitor,741));
this.onMessage=E7J(function(){return Mn(J.global,"message")}).pipe(qY(this.performanceMonitor,740));
this.document=new SE(this.global,this);this.timeProvider=new kwx(new fbx(this.intrinsicFunctionNamespace,this.performanceMonitor),new Un1(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new KtT(new Ib1(this),new etE(this),new tx(this,new ni1(this)),new tx(this,new qNR(this)),new tx(this,new nG(this)))};
_.Y(gE,wxR);gE.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(q){return q}};
var Xc=function(q){var N=q.global;return!!q.global.HTMLFencedFrameElement&&!!N.fence&&typeof N.fence.reportEvent==="function"};
_.g=gE.prototype;_.g.reportFencedFrameEvent=function(q){Xc(this)&&this.global.fence.reportEvent(q)};
_.g.getOnBackgrounded=function(){return this.onPageHide.pipe(qY(this.performanceMonitor,942),Y7(this.queue),n7(function(){}))};
_.g.postMessage=function(q,N,b){b=b===void 0?[]:b;this.global.postMessage(q,N,b)};
_.g.getWidth=function(){return C3A(this.global)?this.global.width:0};
_.g.getHeight=function(){return C3A(this.global)?this.global.height:0};
_.g.isMobile=function(){return Wtx()||Ltx()};
var Ab=function(q,N){try{var b=wYA(N,q.global,q.isMobile());return{left:b.left,top:b.top,width:b.getWidth(),height:b.getHeight()}}catch(y){return Hh}};
gE.prototype.validate=function(){var q=this.beaconFactory.isSupported()||Xc(this);return this.global&&this.timeProvider.available()&&q};
var NEA=function(q){return(q=LWD(q.global))?Gw(q):null};
_.$H.Object.defineProperties(gE.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(q){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(q){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!C3A(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}}});_.rWM=!_.HV&&!_.XAu();var Ccd=function(q){return q};var TVd=function(q){return q.pipe(eF(function(N){var b=N.endOfSessionReason;var y;return((y=N.viewable)==null?void 0:y.extrapolateToNow().value)||b!=void 0}),Jb(1),b3())};var BEz=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},HFA=function(q){var N=q.sequenceNumber.toString(10).padStart(2,"0");
N=""+q.startTime+N;q.sequenceNumber<99&&q.sequenceNumber++;return N};var kfJ=Vz($7(function(q){return q.endOfSessionReason===void 0}),n7(function(q){return Object.assign({},q,{timestamps:CM(q)})}),eF(function(q){var N=q.viewable;
q=q.timestamps;var b;return(b=N==null?void 0:N.extrapolateUsingTimestampMap(q).value)!=null?b:!1}),n7(function(q){var N=q.beaconFactory;
var b=q.timestampedExposureHistory;var y=q.timeOnScreen;var J=q.binaryContext;q=q.timestamps;if(N===void 0||b===void 0||y===void 0||J===void 0)return!1;if(y.extrapolateUsingTimestampMap(q).value.every(function(E){return E>=0}))return!0;
b=b.map(function(E){return E.timestamp+":"+E.value}).join(",");
y=qLJ({bin:J,tos:y},q);N.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+y+("&eh="+b)).sendNow();return!0}),$7(function(q){return!q}),b3());var b3u=function(q){return{id:q.pingId,mcvt:q.maxConsecutiveViewTime,p:q.creativePosition,asp:q.adSpeedPosition,tm:q.totalMeasurementTime,tu:q.totalUnviewedTime,mtos:q.maxTimeOnScreen,tos:q.timeOnScreen,v:q.binaryVersion,bin:q.binaryContext,avms:q.measurementStrategy,bs:q.browserSize,mc:q.maximumExposure,"if":q.crossDomainIframeState,vu:q.delayedImpressionJsState,app:q.inApp,mse:q.mraidError,mtop:q.mraidSituation,itpl:q.injectedTemplateId,adk:q.adKey,exk:q.awbidKey,rs:q.requestSource,la:q.isLargeAd,
cr:q.isContentRecommendationAd,uach:q.userAgentClientHints,vs:q.viewState,r:q.reasonCode,pay:q.hasCpmavUrl,co:q.clientPingOrderCounter,rst:q.adRenderStartTime,rpt:q.adRenderPeriodTime,isd:q.initialScrollDepth,lsd:q.loadedScrollDepth,context:q.errorContext,msg:q.errorMessage,stack:q.errorStack,name:q.errorName,ec:q.hasElementChanged,sfr:q.strategyFailureReasons,met:q.creativeSearchResult,wmsd:q.webMeasurementStartDiagnostic,pv:q.pageVisible,epv:q.eosPageVisible,pbe:q.inStatefulBeaconExperiment,fle:q.inFetchLaterBeaconExperiment,
vae:q.inViewableAttributionExperiment,spb:q.supportsPendingBeacon,sfl:q.supportsFetchLater,ffslot:q.isFencedFrameSlotTurtlex,reach:q.sharedStorageReachMode,io2:q.v2VisibilityBitVector,rxdbg:q.rxDebugger,omida:q.omidAppId,omidp:q.omidPartner,omidpv:q.omidPartnerVersion,omidor:q.omidOcclusionReasons,omidv:q.omidVersion,omids:q.omidSessionType,omidam:q.omidAccessMode,omidct:q.omidCreativeType,omidia:q.omidInApp,omiddc:q.omidDeviceCategory,omidlat:q.omidLastActivity,omiddit:q.omidDeviceIdleTime,qid:q.errorEscapedQueryId}};var I$J=function(q){var N=[];return q.pipe(n7(function(b){var y=b.beaconFactory,J=b.fetchBeaconFactory,E=b.timeOnScreen,F=b.timeOnScreenUrlPrefixes,R=b.payloadMapper,c=b.timeOnScreenPingId,z=b.timeOnScreenReason,m=b.urlSerializer,r=b.viewable,X=b.hasImpressionFired,V=b.inStatefulBeaconExperiment,G=b.supportsPendingBeacon,w=b.supportsFetchLater,D=b.turtlexReportEventData;if(!b.geometryMeasurable||!X||b.maxTimeOnScreen===void 0||E===void 0||F===void 0||R===void 0||c===void 0||m===void 0||y===void 0)return!1;
if(b.isTurtlex){if(z===void 0)return!1;F=b.reportFencedFrameEvent;if(!F)return!1;F({eventType:"active-view-time-on-screen",eventData:D!=null?D:"",destination:["buyer"]});return!0}if(!(V||w||z))return!1;D=CM(b);var k;r=(k=r==null?void 0:r.extrapolateUsingTimestampMap(D).value)!=null?k:!1;k=m(Object.assign({},b,{pingId:c,viewState:r?4:3,reasonCode:z!=null?z:"u",payloadMapper:R,urlPrefixes:F}),D);if(V){for(;N.length>F.length;)b=void 0,(b=N.shift())==null||b.deactivate();k.forEach(function(L,S){S>=N.length?
N.push(y.makeBeacon(L)):N[S].url=L});
return G&&J&&z!==void 0?(k.forEach(function(L){J.makeBeacon(L).sendNow()}),!0):z!==void 0}if(G&&J&&z!==void 0)return k.forEach(function(L){J.makeBeacon(L).sendNow()}),!0;
if(w&&J){for(;N.length>F.length;)G=void 0,(G=N.shift())==null||G.deactivate();var f=m(Object.assign({},b,{pingId:c,viewState:r?4:3,reasonCode:z!=null?z:"u",payloadMapper:R,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),D)[0];k.forEach(function(L,S){S>=N.length?N.push(y.makeBeacon(f,{endOfSession:!0})):N[S].url=f});
return z!==void 0?(k.forEach(function(L){J.makeBeacon(L).sendNow()}),!0):z!==void 0}return z!==void 0?(k.forEach(function(L){y.makeBeacon(L).sendNow()}),!0):!1}),$7(function(b){return!b}),b3())};var suJ=Vz(eF(function(q){return q.immediateUrlPrefixes!==void 0&&q.payloadMapper!==void 0&&q.urlSerializer!==void 0&&q.inferredPingId!==void 0&&q.beaconFactory!==void 0}),eF(function(q){return d0z(q)!==null}),FRe(function(q){return q.activeViewUnmeasurableEvent},function(q){return q.emit}),n7(function(q){if(q.isTurtlex){var N=q.reportFencedFrameEvent;
if(N){var b;N({eventType:"active-view-unmeasurable",eventData:(b=q.turtlexReportEventData)!=null?b:"",destination:["buyer"]})}}else{b=void 0;var y=d0z(q);if(y==="x"){var J,E=(J=q.geometricMeasurementErrors)!=null?J:q.contextValidationErrors;E&&(N=E.stack,b=E.message)}q.urlSerializer(Object.assign({},q,{urlPrefixes:q.immediateUrlPrefixes,payloadMapper:q.payloadMapper,pingId:q.inferredPingId,viewState:2,reasonCode:y,errorMessage:b,errorStack:N}),CM(q)).forEach(function(F){q.beaconFactory.makeBeacon(F).sendNow()})}}),
Jb(1),b3());var cXJ=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var hlZ=Vz(eF(function(q){return q.payloadMapper!==void 0&&q.immediateUrlPrefixes!==void 0&&q.urlSerializer!==void 0&&q.inferredPingId!==void 0&&q.beaconFactory!==void 0}),n7(function(q){return Object.assign({},q,{timestamps:CM(q)})}),eF(function(q){var N=q.viewable;
var b=q.hasImpressionFired;q=q.timestamps;var y;return!!b&&((y=N==null?void 0:N.extrapolateUsingTimestampMap(q).value)!=null?y:!1)}),FRe(function(q){return q.activeViewViewableEvent},function(q){return q.emit}),n7(function(q){var N=q.beaconFactory,b=q.turtlexReportEventData;
if(q.isTurtlex){var y=q.reportFencedFrameEvent;if(!y)return!1;y({eventType:"active-view-viewable",eventData:b!=null?b:"",destination:["buyer"]});return!0}b=q.urlSerializer(Object.assign({},q,{urlPrefixes:q.immediateUrlPrefixes,payloadMapper:q.payloadMapper,pingId:q.inferredPingId,viewState:4,reasonCode:"v"}),q.timestamps);(y=q.cpmavUrls)&&y.length>0&&q.viewUrlSerializer&&q.viewUrlSerializer(y,q).forEach(function(J){N.makeBeacon(J).sendNow()});
(y=q.viewableRelayUrls)&&y.length>0&&q.viewUrlSerializer&&q.viewUrlSerializer(y,q).forEach(function(J){N.makeBeacon(J).sendNow()});
b.forEach(function(J){N.makeBeacon(J,{attributionEnabled:q.isViewableAttributionEnabled}).sendNow()});
return!0}),$7(function(q){return!q}),b3());var bIn=n7(function(q){return[q.value.topWindowViewportExternalGeometry.width,q.value.topWindowViewportExternalGeometry.height]});var ec=function(q,N){this.callback=q;this.options=N;this.intersectionObserverV2=this.intersectionObserverV1=null},IuJ=function(q,N){N?q.intersectionObserverV2||(N=Object.assign({},q.options,{delay:100,
trackVisibility:!0}),q.intersectionObserverV2=new IntersectionObserver(q.callback,N)):q.intersectionObserverV1||(q.intersectionObserverV1=new IntersectionObserver(q.callback,q.options))},XY1=function(q,N){q=N?q.intersectionObserverV2:q.intersectionObserverV1;
if(!q)throw new i7l;return q};
ec.prototype.observe=function(q,N){XY1(this,q).observe(N)};
ec.prototype.unobserve=function(q,N){XY1(this,q).unobserve(N)};
ec.prototype.disconnect=function(q){XY1(this,q).disconnect()};
ec.prototype.takeRecords=function(q){return XY1(this,q).takeRecords()};var Qee={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Hh,topWindowViewportExternalGeometry:Hh,measurementRequests:new vh,elementGeometrySourceName:"ns",elementGeometry:Hh,intersectionGeometry:Hh,viewportLocalAppOffset:{x:0,y:0}};var LRD=qI(Vz(n7(function(q){var N;return(N=q.exposureOverride)!=null?N:seR(q)}),n7(function(q){return isFinite(q)?q:0}))),BnD=qI(Vz(n7(function(q){var N;
return(N=q.exposureOverride)!=null?N:seR(q)}),n7(function(q){return isFinite(q)?q:-1})));var LG=function(q,N){this.a=q;this.b=N;if(q.clock.timeline!==N.clock.timeline)throw Error();};
LG.prototype.equivalentTo=function(q){return q instanceof LG?this.a.equivalentTo(q.a)&&this.b.equivalentTo(q.b):!1};
LG.prototype.extrapolateToTime=function(q){var N=this.a.extrapolateToTime(q).value,b=this.b.extrapolateToTime(q).value;return{timestamp:q,value:[N,b]}};
_.$H.Object.defineProperties(LG.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 q=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),N=this.a.lastMeasurement.timestamp.equals(q)?this.a.lastMeasurement.value:this.a.extrapolateToTime(q).value,b=this.b.lastMeasurement.timestamp.equals(q)?this.b.lastMeasurement.value:this.b.extrapolateToTime(q).value;return{timestamp:q,value:[N,b]}}}});var pG=function(q,N){this.input=q;this.mapFunction=N;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
pG.prototype.equivalentTo=function(q){return q instanceof pG?this.input.equivalentTo(q.input)&&this.mapFunction===q.mapFunction:!1};
pG.prototype.extrapolateToTime=function(q){q=this.input.extrapolateToTime(q);return{timestamp:q.timestamp,value:this.mapFunction(q.value)}};
_.$H.Object.defineProperties(pG.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var PE=function(){};
PE.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
PE.prototype.extrapolateUsingTimestampMap=function(q){var N=this.clock.timeline,b,y=(b=q.get(N))!=null?b:this.clock.now();q.set(N,y);return this.extrapolateToTime(y)};
PE.prototype.map=function(q){return new VG1(this,q)};
PE.prototype.joinWith=function(q){return new jAM(this,q)};
var jAM=function(){LG.apply(this,arguments);this.map=PE.prototype.map;this.joinWith=PE.prototype.joinWith;this.extrapolateToNow=PE.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=PE.prototype.extrapolateUsingTimestampMap};
_.Y(jAM,LG);var VG1=function(){pG.apply(this,arguments);this.map=PE.prototype.map;this.joinWith=PE.prototype.joinWith;this.extrapolateToNow=PE.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=PE.prototype.extrapolateUsingTimestampMap};
_.Y(VG1,pG);var yE=function(q,N){this.lastMeasurement=N;this.extrapolateToNow=PE.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=PE.prototype.extrapolateUsingTimestampMap;this.map=PE.prototype.map;this.joinWith=PE.prototype.joinWith;this.clock=q};
yE.prototype.equivalentTo=function(q){return q.active};
yE.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.$H.Object.defineProperties(yE.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var NVR=n7(function(q){if(q.value.viewportGeometrySourceName==="omid"){if(q.value.elementGeometrySourceName==="nio")return"omio";if(q.value.elementGeometrySourceName==="geo")return"omgeo"}return q.value.elementGeometrySourceName==="geo"||q.value.elementGeometrySourceName==="nio"?q.value.viewportGeometrySourceName:q.value.elementGeometrySourceName});var aun=Vz(eF(function(q){return!isNaN(q)}),ch(function(q,N){return isNaN(q)?N:Math.min(q,N)},NaN),Ep());var p1e=qI(Vz(n7(function(q){return q.intersectionGeometry.width*q.intersectionGeometry.height/(q.exposedViewportLocalGeometry.width*q.exposedViewportLocalGeometry.height)}),n7(function(q){return isFinite(q)?Math.min(1,q):0})));var qwC=Vz(qI(n7(function(q){q=q.exposureOverride?q.elementGeometry.width*q.elementGeometry.height*q.exposureOverride/(q.topWindowViewportExternalGeometry.width*q.topWindowViewportExternalGeometry.height):q.intersectionGeometry.width*q.intersectionGeometry.height/(q.topWindowViewportExternalGeometry.width*q.topWindowViewportExternalGeometry.height);return isFinite(q)?q:0})));var EZh=function(q,N){var b=this;this.timeProvider=q;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=N.pipe(Ep()).subscribe(function(y){ZIA(b);b.measurementRequestObserver=y})},FTC=function(q,N){ZIA(q);
q.lastMeasurementRequest=q.timeProvider.setTimeout(function(){var b;return void((b=q.measurementRequestObserver)==null?void 0:b.next())},N)},ZIA=function(q){q.lastMeasurementRequest!==null&&q.timeProvider.clearTimeout(q.lastMeasurementRequest);
q.lastMeasurementRequest=null};
EZh.prototype.dispose=function(){ZIA(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var xIR=function(){};var l$n=function(q,N){this.context=q;this.strategies=N};
_.Y(l$n,xIR);l$n.prototype.buildGeometrySource=function(q,N){var b=this.strategies.map(function(E){return E.buildGeometrySource(q,N)}),y=zlA(b.map(function(E){return E.geometrySource})),J=y.capturedErrors.pipe(vN1());
return{geometrySource:y.chain.pipe(Y7(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:J,strategyErrors:y.capturedErrors}].concat(_.a9(b.map(function(E){return E.additionalOutputs}))))}};
var vN1=function(){return ch(function(q,N){N instanceof Tb?q.push(N.measurementStrategyFailureReason):q.push(-1);return q},[])};var D7e=function(q,N){this.context=q;this.poller=N};
_.Y(D7e,xIR);D7e.prototype.buildGeometrySource=function(q,N){var b=$7e(m7J(this.context,this.poller),O3u(this.context,N.requestSource));return{geometrySource:uCd(q.measurableCreative.pipe(b),N.inApp),additionalOutputs:{}}};var KTe=function(q,N,b){b=b===void 0?hMe(q,N):b;this.context=q;this.intersectionObserverStrategy=b};
_.Y(KTe,xIR);KTe.prototype.buildGeometrySource=function(q,N){var b=this.intersectionObserverStrategy(N.useV2);return{geometrySource:uCd(q.measurableCreative.pipe(b,k2J(this.context)),N.inApp),additionalOutputs:{}}};var GPJ=function(q,N,b){var y=y===void 0?Symbol():y;this.element=q;this.immediateUrls=N;this.timeOnScreenUrls=b;this.symbol=y};var JVJ=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),x7C=Object.freeze([1,.75,JVJ.exposureThreshold,JVJ.largeAdExposureThreshold,0]);var CsJ=function(q,N){N=N===void 0?36E5:N;var b=b===void 0?!0:b;this.creatives=new vh;this.elementsToUnregister=new vh;this.elementMap=new Map;var y=new gE(window,null);y.beaconFactory=new tx(y,new nG(y));iIC(y,this.creatives,this.elementsToUnregister,q,N,b).subscribe()},sdZ=function(q,N,b,y){if(!q.elementMap.has(N)){var J=new MY(N);
q.elementMap.set(N,J);q.creatives.next(new GPJ(J,b,y))}},TQu=function(q,N){q.elementsToUnregister.next(N);
var b=q.elementMap.get(N);b!==void 0&&(b.release(),q.elementMap.delete(N))};var sUd=function(q){var N=q.url;q=q.uaDataValues;this.JSC$9557_url_=N;this.uaDataValues_=q;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var b=/[?&]([^&=]+)=([^&]*)/g;q=b.exec(N);)this.urlParamValues_[q[1]]=q[2]},n9J=function(q){q=q.uaDataValues_;
if(!q)return"";var N=Fz("uap",q.platform)+Fz("uapv",q.platformVersion)+Fz("uafv",q.uaFullVersion)+Fz("uaa",q.architecture)+Fz("uam",q.model)+Fz("uab",q.bitness);q.fullVersionList&&(N+="&uafvl="+encodeURIComponent(q.fullVersionList.map(function(b){return encodeURIComponent(b.brand)+";"+encodeURIComponent(b.version)}).join("|")));
q.wow64!=null&&(N+="&uaw="+Number(q.wow64));return N.slice(1)};var YNR=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(YNR,_.Rx);YNR.prototype.getId=function(){return _.xs(this,1)};var MQ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(MQ,_.Rx);MQ.prototype.getSeconds=function(){return VW(this,1)};
MQ.prototype.setSeconds=function(q){return _.NB(this,1,$a(q),"0")};_.YA=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(_.YA,_.Rx);_.YA.prototype.getSeconds=function(){return VW(this,1)};
_.YA.prototype.setSeconds=function(q){return _.NB(this,1,$a(q),"0")};
_.QAj=function(q){var N=Number(Ga(q,1));q=_.tW(q,2);return new Date(N*1E3+q/1E6)};var oY=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(oY,_.Rx);oY.prototype.getUrl=function(){return _.xs(this,1)};
oY.prototype.setUrl=function(q){return _.f0(this,1,q)};
oY.prototype.getHeight=function(){return _.tW(this,2)};
oY.prototype.getWidth=function(){return _.tW(this,3)};var Ax=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Ax,_.Rx);Ax.prototype.getAspectRatio=function(){return j5(this,1)};
Ax.prototype.getDuration=function(){return _.Vr(this,MQ,2)};var OFl=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(OFl,_.Rx);var wYR=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(wYR,_.Rx);var iFj=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(iFj,_.Rx);var lzo=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(lzo,_.Rx);var KWj=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(KWj,_.Rx);var DIq=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(DIq,_.Rx);var hpM=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(hpM,_.Rx);var kPx=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(kPx,_.Rx);var UIR=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(UIR,_.Rx);var eE=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(eE,_.Rx);var BE=[2,4,5,6,7];var fzl=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(fzl,_.Rx);var mY=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(mY,_.Rx);_.g=mY.prototype;_.g.getId=function(){return _.Vr(this,YNR,1)};
_.g.getName=function(){return _.xs(this,2)};
_.g.setDescription=function(q){return _.f0(this,3,q)};
_.g.getUrl=function(){return _.xs(this,8)};
_.g.setUrl=function(q){return _.f0(this,8,q)};
var HE=function(q){return _.zP(q,oY,10,_.$N())};
mY.prototype.getOwner=function(q){var N=_.eX(this,40,_.Ya,3,!0);HCD(N,q);return N[q]};
var qH=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(qH,_.Rx);_.NH=[0,I6,Gcl];_.bU=[0,I6,Gcl];var CCJ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(CCJ,_.Rx);var yL=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(yL,_.Rx);yL.prototype.getStatus=function(){return _.vc(this,1)};
yL.prototype.removeItem=function(q){return kox(this,2,q)};var Izo=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Izo,_.Rx);Izo.prototype.getName=function(){return _.xs(this,8)};var Jl=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Jl,_.Rx);Jl.prototype.getCommand=function(){return _.vc(this,1)};
Jl.prototype.getSource=function(){return _.Vr(this,Izo,2)};
Jl.prototype.setVisible=function(q){return _.xU(this,5,q)};
Jl.prototype.removeItem=function(q){return kox(this,7,q)};var TEE=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(TEE,_.Rx);TEE.prototype.getCommand=function(){return _.vc(this,1)};
TEE.prototype.removeItem=function(q){return kox(this,4,q)};
var sAq=_.Qe(TEE);var E1=function(q,N,b){b=b===void 0?Error():b;var y=Error.call(this);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.code=q;N+=":";b instanceof Error?(this.message=N+b.message,this.stack=b.stack||""):(this.message=N+String(b),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.Y(E1,Error);_.UN=function(){this.JSC$9615_disposed_=this.JSC$9615_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.UN.prototype.JSC$9615_disposed_=!1;_.UN.prototype.isDisposed=function(){return this.JSC$9615_disposed_};
_.UN.prototype.dispose=function(){this.JSC$9615_disposed_||(this.JSC$9615_disposed_=!0,this.disposeInternal())};
_.UN.prototype[Symbol.dispose]=function(){this.dispose()};
_.YN=function(q,N){q.addOnDisposeCallback(_.dg(_.RA,N))};
_.UN.prototype.addOnDisposeCallback=function(q,N){this.JSC$9615_disposed_?N!==void 0?q.call(N):q():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),N&&(q=q.bind(N)),this.onDisposeCallbacks_.push(q))};
_.UN.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var gb=function(q){_.UN.call(this);this.wpc=q};
_.Y(gb,_.UN);gb.prototype.duv=function(){return this.wpc.f()};
gb.prototype.iYQ=function(q){return this.wpc.c(q)};
gb.prototype.vS=function(q){return this.wpc.m(LTz(q))};
gb.prototype.iKb=function(q){return this.wpc.mws(LTz(q))};
var cY=function(q){_.UN.call(this);var N=this;this.vm=q;this.okq="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.d1L=void 0;this.uHX=this.vm.p;this.eZu=this.qGb.bind(this);this.addOnDisposeCallback(function(){return void nNE(N)})};
_.Y(cY,_.UN);var azl=function(q){var N;return _.d(function(b){if(b.nextAddress==1){if(!q.vm.wpc)throw new E1(30,"NWA");return q.lDX?b.return(q.lDX):b.yield(q.vm.wpc(),2)}N=b.yieldResult;q.lDX=new gb(N);return b.return(q.lDX)})};
cY.prototype.snapshot=function(q){return this.vm.s(Object.assign({},q.hm&&{c:q.hm},q.uWx&&{s:q.uWx},q.vlO!==void 0&&{p:q.vlO}))};
cY.prototype.qGb=function(q){this.vm.e(q)};
cY.prototype.xzx=function(q,N){return this.vm.c(q,N,!1)};
var nNE=function(q){q.d1L!==void 0&&(q.okq.forEach(function(N){var b;(b=q.d1L)==null||b.removeEventListener(N,q.eZu)}),q.d1L=void 0)};
cY.prototype.jA6=function(){return this.vm.l()};var Z6=function(){_.UN.apply(this,arguments);this.eg8=1};
_.Y(Z6,_.UN);Z6.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.eg8++;return this};
Z6.prototype.dispose=function(){--this.eg8||_.UN.prototype.dispose.call(this)};var SNT=function(q){this.oYq=q;q.addNewEventMetric("/client_streamz/bg/frs",_.Xz("mk"))};
SNT.prototype.record=function(q,N){this.oYq.record("/client_streamz/bg/frs",q,N)};
var WWx=function(q){this.rTg=q;q.addNewEventMetric("/client_streamz/bg/wrl",_.Xz("mn"),rE("ac"),rE("sc"),_.Xz("rk"),_.Xz("mk"))};
WWx.prototype.record=function(q,N,b,y,J,E){this.rTg.record("/client_streamz/bg/wrl",q,N,b,y,J,E)};
var LWE=function(q){this.jHd=q;q.addNewCounter("/client_streamz/bg/ec",_.Xz("en"),_.Xz("mk"))};
LWE.prototype.increment=function(q,N){this.jHd.JSC$9868_incrementCounter("/client_streamz/bg/ec",q,N)};
var pYR=function(q){this.uQC=q;q.addNewEventMetric("/client_streamz/bg/el",_.Xz("en"),_.Xz("mk"))};
pYR.prototype.record=function(q,N,b){this.uQC.record("/client_streamz/bg/el",q,N,b)};
var PCE=function(q){this.pdV=q;q.addNewCounter("/client_streamz/bg/cec",rE("ec"),_.Xz("mk"))};
PCE.prototype.increment=function(q,N){this.pdV.JSC$9868_incrementCounter("/client_streamz/bg/cec",q,N)};
var MGM=function(q){this.nYK=q;q.addNewCounter("/client_streamz/bg/po/csc",rE("cs"),_.Xz("mk"))};
MGM.prototype.increment=function(q,N){this.nYK.JSC$9868_incrementCounter("/client_streamz/bg/po/csc",q,N)};
var oNv=function(q){this.vYg=q;q.addNewCounter("/client_streamz/bg/po/ctav",_.Xz("av"),_.Xz("mk"))};
oNv.prototype.increment=function(q,N){this.vYg.JSC$9868_incrementCounter("/client_streamz/bg/po/ctav",q,N)};
var AW1=function(q){this.xku=q;q.addNewCounter("/client_streamz/bg/po/cwsc",_.Xz("su"),_.Xz("mk"))};
AW1.prototype.increment=function(q,N){this.xku.JSC$9868_incrementCounter("/client_streamz/bg/po/cwsc",q,N)};var VAd=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(VAd,_.Rx);var X4A=function(q,N){return _.qB(q,3,N,jlC)};var epR=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(epR,_.Rx);var BEo=[1,2,3];var HFR=[0,BEo,_.Pc,Yf4,wdq];var qLx=[0,_.Md,[0,fL,_.CL]];var Nn4=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Nn4,_.Rx);var b3J=[1,2,3];var yXJ=[0,b3J,xN1,mNx,_.o6,qLx];var JXM=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(JXM,_.Rx);var EL1=[0,_.Md,HFR,yXJ];var gLR=[0,_.LL];var Z34=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Z34,_.Rx);var FRv=[0,_.LL,-1,_.nL];var RMo=[0,_.LL,-1,_.sn,_.nL];var d0o=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(d0o,_.Rx);var cXl=[1,2,3];var u8o=[0,cXl,_.o6,FRv,_.o6,RMo,_.o6,gLR];var zME=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(zME,_.Rx);zME.prototype.JSC$9688_serializeBinary=PXJ([0,_.LL,u8o,iU1,_.Md,EL1,Qfq,_.OU1]);var $0o=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y($0o,_.Rx);var rXl=function(q){var N=new zME;N=_.Up(N,1,q.JSC$9804_metricName);var b=txF(q);N=_.qB(N,3,b,_.jX);b=[];for(var y=[],J=_.Z(q.cellMap.keys()),E=J.next();!E.done;E=J.next())y.push(E.value.split(","));for(J=0;J<y.length;J++){E=y[J];for(var F=q.cellType,R=q.getCells(E)||[],c=[],z=0;z<R.length;z++){var m=R[z],r=m&&m.cellValue;m=new Nn4;switch(F){case 3:r=Number(r);Number.isFinite(r)&&i0(m,1,b3J,$a(r));break;case 2:i0(m,2,b3J,_.BR(Number(r)))}c.push(m)}F=c;for(R=0;R<F.length;R++){c=F[R];z=new JXM;c=_.ws(z,
2,c);z=[];m=m0J(q);for(r=0;r<m.length;r++){var X=m[r],V=E[r],G=new epR;switch(X){case 3:i0(G,1,BEo,vd(String(V)));break;case 2:X=Number(V);Number.isFinite(X)&&i0(G,2,BEo,_.Rf(X));break;case 1:i0(G,3,BEo,r4D(V==="true"))}z.push(G)}ts(c,1,z);b.push(c)}}ts(N,4,b);return N};var X1v=function(q){if(!q)return"";if(/^about:(?:blank|srcdoc)$/.test(q))return window.origin||"";q.indexOf("blob:")===0&&(q=q.substring(5));q=q.split("#")[0].split("?")[0];q=q.toLowerCase();q.indexOf("//")==0&&(q=window.location.protocol+q);/^[\w\-]*:\/\//.test(q)||(q=window.location.href);var N=q.substring(q.indexOf("://")+3),b=N.indexOf("/");b!=-1&&(N=N.substring(0,b));b=q.substring(0,q.indexOf("://"));if(!b)throw Error("qa`"+q);if(b!=="http"&&b!=="https"&&b!=="chrome-extension"&&b!=="moz-extension"&&
b!=="file"&&b!=="android-app"&&b!=="chrome-search"&&b!=="chrome-untrusted"&&b!=="chrome"&&b!=="app"&&b!=="devtools")throw Error("ra`"+b);q="";var y=N.indexOf(":");if(y!=-1){var J=N.substring(y+1);N=N.substring(0,y);if(b==="http"&&J!=="80"||b==="https"&&J!=="443")q=":"+J}return b+"://"+N+q};var jeT=function(q,N,b){var y=String(_.JZ.location.href);return y&&q&&N?[N,Vxo(X1v(y),q,b||null)].join(" "):null},Vxo=function(q,N,b){var y=[],J=[];
if((Array.isArray(b)?2:1)==1)return J=[N,q],_.Jz(y,function(R){J.push(R)}),x0l(J.join(" "));
var E=[],F=[];_.Jz(b,function(R){F.push(R.key);E.push(R.value)});
b=Math.floor((new Date).getTime()/1E3);J=E.length==0?[b,N,q]:[E.join(":"),b,N,q];_.Jz(y,function(R){J.push(R)});
q=x0l(J.join(" "));q=[b,q];F.length==0||q.push(F.join(""));return q.join("_")},x0l=function(q){var N=HId();
N.update(q);return N.digestString().toLowerCase()};var FP=function(q){this.JSC$9699_document_=q||{cookie:""}},vLM;
_.g=FP.prototype;_.g.isEnabled=function(){if(!_.JZ.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};
_.g.set=function(q,N,b){var y=!1;if(typeof b==="object"){var J=b.sameSite;y=b.secure||!1;var E=b.domain||void 0;var F=b.path||void 0;var R=b.maxAge}if(/[;=\s]/.test(q))throw Error("sa`"+q);if(/[;\r\n]/.test(N))throw Error("ta`"+N);R===void 0&&(R=-1);b=E?";domain="+E:"";F=F?";path="+F:"";y=y?";secure":"";R=R<0?"":R==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+R*1E3)).toUTCString();this.JSC$9699_document_.cookie=q+"="+N+b+F+R+y+(J!=null?";samesite="+J:"")};
_.g.get=function(q,N){for(var b=q+"=",y=(this.JSC$9699_document_.cookie||"").split(";"),J=0,E;J<y.length;J++){E=$D(y[J]);if(E.lastIndexOf(b,0)==0)return E.slice(b.length);if(E==q)return""}return N};
_.g.remove=function(q,N,b){var y=this.containsKey(q);this.set(q,"",{maxAge:0,path:N,domain:b});return y};
_.g.getKeys=function(){return vLM(this).keys};
_.g.getValues=function(){return vLM(this).values};
_.g.isEmpty=function(){return!this.JSC$9699_document_.cookie};
_.g.getCount=function(){return this.JSC$9699_document_.cookie?(this.JSC$9699_document_.cookie||"").split(";").length:0};
_.g.containsKey=function(q){return this.get(q)!==void 0};
_.g.containsValue=function(q){for(var N=vLM(this).values,b=0;b<N.length;b++)if(N[b]==q)return!0;return!1};
_.g.clear=function(){for(var q=vLM(this).keys,N=q.length-1;N>=0;N--)this.remove(q[N])};
vLM=function(q){q=(q.JSC$9699_document_.cookie||"").split(";");for(var N=[],b=[],y,J,E=0;E<q.length;E++)J=$D(q[E]),y=J.indexOf("="),y==-1?(N.push(""),b.push(J)):(N.push(J.substring(0,y)),b.push(J.substring(y+1)));return{keys:N,values:b}};
_.hz=new FP(typeof document=="undefined"?null:document);var SDd,G2q;SDd=function(){var q=_.JZ.__SAPISID||_.JZ.__APISID||_.JZ.__3PSAPISID||_.JZ.__1PSAPISID||_.JZ.__OVERRIDE_SID;if(q)return!0;typeof document!=="undefined"&&(q=new FP(document),q=q.get("SAPISID")||q.get("APISID")||q.get("__Secure-3PAPISID")||q.get("__Secure-1PAPISID"));return!!q};
G2q=function(q,N,b,y){(q=_.JZ[q])||typeof document==="undefined"||(q=(new FP(document)).get(N));return q?jeT(q,b,y):null};
_.tlR=function(q){var N=X1v(_.JZ==null?void 0:_.JZ.location.href),b=[];if(SDd()){N=N.indexOf("https:")==0||N.indexOf("chrome-extension:")==0||N.indexOf("chrome-untrusted://new-tab-page")==0||N.indexOf("moz-extension:")==0;var y=N?_.JZ.__SAPISID:_.JZ.__APISID;y||typeof document==="undefined"||(y=new FP(document),y=y.get(N?"SAPISID":"APISID")||y.get("__Secure-3PAPISID"));(y=y?jeT(y,N?"SAPISIDHASH":"APISIDHASH",q):null)&&b.push(y);N&&((N=G2q("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",q))&&b.push(N),
(q=G2q("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",q))&&b.push(q))}return b.length==0?null:b.join(" ")};var YLF=function(){this.minSize=1024};
YLF.prototype.compress=function(q){var N,b,y,J;return _.d(function(E){switch(E.nextAddress){case 1:return N=new CompressionStream("gzip"),b=(new Response(N.readable)).arrayBuffer(),y=N.writable.getWriter(),E.yield(y.write((new TextEncoder).encode(q)),2);case 2:return E.yield(y.close(),3);case 3:return J=Uint8Array,E.yield(b,4);case 4:return E.return(new J(E.yieldResult))}})};
YLF.prototype.isSupported=function(q){return q<this.minSize?!1:typeof CompressionStream!=="undefined"};var Qev=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Qev,_.Rx);var RX=function(q,N){this.intervalMs=q;this.callback=N;this.enabled=!1;this.nowFn=function(){return _.M$()};
this.lastTimeMs=this.nowFn()};
RX.prototype.setInterval=function(q){this.intervalMs=q;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
RX.prototype.start=function(){var q=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){q.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
RX.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
RX.prototype.tick=function(){var q=this;if(this.enabled){var N=Math.max(this.nowFn()-this.lastTimeMs,0);N<this.intervalMs*.8?this.timer=setTimeout(function(){q.tick()},this.intervalMs-N):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var O3J=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(O3J,_.Rx);var w1M=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(w1M,_.Rx);var i3R=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(i3R,_.Rx);i3R.prototype.getTransmissionType=function(){return _.vc(this,1)};var yzz=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(yzz,_.Rx);var db=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(db,_.Rx);var b4C=function(q){ts(JzJ,1,q)};
db.prototype.getModel=function(){return _.xs(this,6)};
var luq=_.Qe(db);var KRl=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(KRl,_.Rx);var qVA=["platform","platformVersion","architecture","model","uaFullVersion"],JzJ=new db,NOD=null;var c2=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(c2,_.Rx);var D0x=function(q){return _.jd(q,1,1)};var hMv=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q,4)};
_.Y(hMv,_.Rx);_.uU=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q,36)};
_.Y(_.uU,_.Rx);_.uU.prototype.getExperimentIds=function(){return _.Vr(this,Qev,16)};var k2x=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q,19)};
_.Y(k2x,_.Rx);k2x.prototype.setLogSource=function(q){return _.jd(this,2,q)};
k2x.prototype.setScheduler=function(q){return _.jd(this,10,q)};var fuE=function(q,N){this.isServiceWorkerScope=N=N===void 0?!1:N;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new k2x;Number.isInteger(q)&&this.logRequest.setLogSource(q);N||(this.locale=document.documentElement.getAttribute("lang"));U0R(this,new c2)};
fuE.prototype.setLogSource=function(q){this.logRequest.setLogSource(q);return this};
var U0R=function(q,N){_.ws(q.logRequest,1,N);_.vc(N,1)||D0x(N);q.isServiceWorkerScope||(N=z8(q),_.xs(N,5)||_.Up(N,5,q.locale));q.uach&&(N=z8(q),_.Vr(N,db,9)||_.ws(N,9,q.uach))},C5x=function(q,N){q.transmissionType=N},Iul=function(q){var N=N===void 0?qVA:N;
var b=q.isServiceWorkerScope?void 0:Wh();b?EfJ(b,N).then(function(y){q.uach=luq(y!=null?y:"[]");y=z8(q);_.ws(y,9,q.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},z8=function(q){var N=_.Vr(q.logRequest,c2,1);
N||(N=new c2,U0R(q,N));q=N;N=_.Vr(q,KRl,11);N||(N=new KRl,_.ws(q,11,N));return N};
fuE.prototype.build=function(q,N,b,y,J,E){N=N===void 0?0:N;b=b===void 0?0:b;y=y===void 0?null:y;J=J===void 0?0:J;E=E===void 0?0:E;if(!this.isServiceWorkerScope){var F=z8(this);var R=new i3R;R=_.jd(R,1,this.transmissionType);R=_.VE(R,2,this.isFinal);b=_.On(R,3,b>0?b:void 0);b=_.On(b,4,J>0?J:void 0);b=_.On(b,5,E>0?E:void 0);J=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;E=J[_.gx]|0;b=iT(b,E)?b:iUC(b,J,E)?wdR(b,J):new b.constructor(nU(J,E,!0));_.ws(F,10,b)}F=this.logRequest.clone();b=Date.now().toString();
F=_.x5(F,4,$a(b));q=q.slice();q=ts(F,3,q);y&&(F=new O3J,y=_.On(F,13,y),F=new w1M,y=_.ws(F,2,y),F=new hMv,y=_.ws(F,1,y),y=_.jd(y,2,9),_.ws(q,18,y));N&&_.fo(q,14,N);return q};jG.prototype.currBackoffCount_=0;jG.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
jG.prototype.getValue=function(){return this.currValue_};
var Tnv=function(q){q.currBaseValue_=Math.min(q.maxValue_,q.currBaseValue_*q.backoffFactor_);q.currValue_=Math.min(q.maxValue_,q.currBaseValue_+(q.randomFactor_?Math.round(q.randomFactor_*(Math.random()-.5)*2*q.currBaseValue_):0));q.currBackoffCount_++};var kc1=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q,8)};
_.Y(kc1,_.Rx);var seq=_.Qe(kc1);var UN1=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(UN1,_.Rx);var $C;$C=new fWJ;var tl=function(q){_.UN.call(this);var N=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9777_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$9777_sendBeaconApiEnabled=!1;this.logSource=q.logSource;this.getAuthHeaderValue=
q.getAuthHeaderValue||function(){};
this.logRequestBuilder=new fuE(q.logSource,q.isServiceWorkerScope);this.network=q.network||null;this.productID=q.productID||null;this.bufferSize=1E3;this.clearcutUrl=q.urlOverride||null;this.sessionIndex=q.sessionIndex||null;this.disableAutomaticFlush=q.disableAutomaticFlush||!1;this.withCredentials=!q.disableWithCredentials;this.isServiceWorkerScope=q.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!Wh()&&!!Wh().navigator&&Wh().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(nL4())).searchParams&&!!(new URL(nL4())).searchParams.set;var b=D0x(new c2);U0R(this.logRequestBuilder,b);this.flushBackoff=new jG(1E4,3E5,.1);q=auj(this,q.backgroundJobDeferrer);this.JSC$9777_flushTimer=new RX(this.flushBackoff.getValue(),q);this.backupTimer=new RX(6E5,q);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){SLF(N);
var y;(y=N.metalogService)==null||y.flush()}}),document.addEventListener("pagehide",function(){SLF(N);
var y;(y=N.metalogService)==null||y.flush()}))};
_.Y(tl,_.UN);var auj=function(q,N){return q.isBrowserSupported?N?function(){N().then(function(){q.flush()})}:function(){q.flush()}:function(){}};
tl.prototype.disposeInternal=function(){SLF(this);this.JSC$9777_flushTimer.stop();this.backupTimer.stop();_.UN.prototype.disposeInternal.call(this)};
var WRT=function(q){q.clearcutUrl||(q.clearcutUrl=nL4());try{return(new URL(q.clearcutUrl)).toString()}catch(N){return(new URL(q.clearcutUrl,Wh().location.origin)).toString()}};
tl.prototype.dispatch=function(q){if(q instanceof _.uU)this.log(q);else try{var N=new _.uU,b=q.serialize();var y=_.Up(N,8,b);this.log(y)}catch(J){m4(this,4,1)}};
var m4=function(q,N,b){q.metalogService&&q.metalogService.increment(N,b)};
tl.prototype.log=function(q){m4(this,2,1);if(this.isBrowserSupported){q=q.clone();var N=this.sequencePosition++;q=_.fo(q,21,N);this.componentId&&_.Up(q,26,this.componentId);N=q;if(fqJ(_.R6(N,1))==null){var b=Date.now();b=Number.isFinite(b)?b.toString():"0";_.x5(N,1,$a(b))}_.UvD(_.R6(N,15))!=null||_.fo(N,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(b=this.experimentIds.clone(),_.ws(N,16,b));m4(this,1,1);N=this.pendingEvents.length-this.bufferSize+1;N>0&&(this.pendingEvents.splice(0,N),
this.numLogsDroppedSinceLastFlush+=N,m4(this,3,N));this.pendingEvents.push(q);this.disableAutomaticFlush||this.JSC$9777_flushTimer.enabled||this.JSC$9777_flushTimer.start()}};
tl.prototype.flush=function(q,N){var b=this;if(this.pendingEvents.length===0)q&&q();else if(this.JSC$9777_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,LRE(this);else{var y=Date.now();if(this.noFlushUntilMs>y&&this.startWaitingMs<y)N&&N("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?C5x(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var J=this.pendingEvents.length,
E=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),F=this.getAuthHeaderValue();if(F&&this.lastFailedAuth===F)N&&N("stale-auth-token");else{this.pendingEvents=[];this.JSC$9777_flushTimer.enabled&&this.JSC$9777_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;y=E.serialize();var R;this.JSC$9777_compressor&&this.JSC$9777_compressor.isSupported(y.length)&&
(R=this.JSC$9777_compressor.compress(y));var c=p1v(this,y,F),z=function(X){b.flushBackoff.reset();b.JSC$9777_flushTimer.setInterval(b.flushBackoff.getValue());if(X){var V=null;try{var G=JSON.stringify(JSON.parse(X.replace(")]}'\n","")));V=seq(G)}catch(w){}V&&(X=Number(VW(V,1,_.To("-1"))),X>0&&(b.startWaitingMs=Date.now(),b.noFlushUntilMs=b.startWaitingMs+X),yah(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,$C.fieldIndex),Nph(V,$C.fieldIndex),V=$C.ctor?$C.getExtensionFn(V,$C.ctor,$C.fieldIndex,
$C.JSC$8957_hasMessageId):$C.getExtensionFn(V,$C.fieldIndex,null,$C.JSC$8957_hasMessageId),V=V===null?void 0:V)&&(V=_.tW(V,1,-1),V!==-1&&(b.flushBackoff=new jG(V<1?1:V,3E5,.1),b.JSC$9777_flushTimer.setInterval(b.flushBackoff.getValue())))}q&&q();b.numRetriesSinceLastSuccessfulFlush=0},m=function(X,V){var G=_.zP(E,_.uU,3,_.$N());
var w=Number(VW(E,14));Tnv(b.flushBackoff);b.JSC$9777_flushTimer.setInterval(b.flushBackoff.getValue());X===401&&F&&(b.lastFailedAuth=F);w&&(b.numLogsDroppedSinceLastFlush+=w);V===void 0&&(V=b.isRetryable(X));V&&(b.pendingEvents=G.concat(b.pendingEvents),b.disableAutomaticFlush||b.JSC$9777_flushTimer.enabled||b.JSC$9777_flushTimer.start());m4(b,7,1);N&&N("net-send-failed",X);++b.numRetriesSinceLastSuccessfulFlush},r=function(){b.network&&b.network.send(c,z,m)};
R?R.then(function(X){m4(b,5,J);c.requestHeaders["Content-Encoding"]="gzip";c.requestHeaders["Content-Type"]="application/binary";c.body=X;c.bodyType=2;r()},function(){m4(b,6,J);
r()}):r()}}}};
var p1v=function(q,N,b){b=b===void 0?null:b;var y=y===void 0?q.withCredentials:y;var J={},E=new URL(WRT(q));b&&(J.Authorization=b);q.sessionIndex&&(J["X-Goog-AuthUser"]=q.sessionIndex,E.searchParams.set("authuser",q.sessionIndex));q.pageId&&(Object.defineProperty(J,"X-Goog-PageId",{value:q.pageId}),E.searchParams.set("pageId",q.pageId));return{url:E.toString(),body:N,bodyType:1,requestHeaders:J,requestType:"POST",withCredentials:y,timeoutMillis:q.timeoutMillis}},SLF=function(q){q.logRequestBuilder.isFinal=
!0;
q.flush();q.logRequestBuilder.isFinal=!1},LRE=function(q){P5T(q,function(N,b){N=new URL(N);
N.searchParams.set("format","json");var y=!1;try{y=Wh().navigator.sendBeacon(N.toString(),b.serialize())}catch(J){}y||(q.isSendBeaconSupported=!1);return y})},P5T=function(q,N){if(q.pendingEvents.length!==0){var b=new URL(WRT(q));
b.searchParams.delete("format");var y=q.getAuthHeaderValue();y&&b.searchParams.set("auth",y);b.searchParams.set("authuser",q.sessionIndex||"0");for(y=0;y<10&&q.pendingEvents.length;++y){var J=q.pendingEvents.slice(0,32),E=q.logRequestBuilder.build(J,q.numLogsDroppedSinceLastFlush,q.numRetriesSinceLastSuccessfulFlush,q.productID,q.persistedLogRecoveredCount,q.persistedLogExpiredCount);if(!N(b.toString(),E)){++q.numRetriesSinceLastSuccessfulFlush;break}q.numLogsDroppedSinceLastFlush=0;q.numRetriesSinceLastSuccessfulFlush=
0;q.persistedLogRecoveredCount=0;q.persistedLogExpiredCount=0;q.pendingEvents=q.pendingEvents.slice(J.length)}q.JSC$9777_flushTimer.enabled&&q.JSC$9777_flushTimer.stop()}};
tl.prototype.isRetryable=function(q){return 500<=q&&q<600||q===401||q===0};
var nL4=function(){return"https://play.google.com/log?format=json&hasfast=true"};var MxM=function(){this.abortSupported=typeof AbortController!=="undefined"};
MxM.prototype.send=function(q,N,b){var y=this,J,E,F,R,c,z,m,r,X,V;return _.d(function(G){switch(G.nextAddress){case 1:return E=(J=y.abortSupported?new AbortController:void 0)?setTimeout(function(){J.abort()},q.timeoutMillis):void 0,_.Yi(G,2,3),F=Object.assign({},{method:q.requestType,
headers:Object.assign({},q.requestHeaders)},q.body&&{body:q.body},q.withCredentials&&{credentials:"include"},{signal:q.timeoutMillis&&J?J.signal:null}),G.yield(fetch(q.url,F),5);case 5:R=G.yieldResult;if(R.status!==200){(c=b)==null||c(R.status);G.jumpTo(3);break}if((z=N)==null){G.jumpTo(7);break}return G.yield(R.text(),8);case 8:z(G.yieldResult);case 7:case 3:_.w0(G);clearTimeout(E);_.l$(G,0);break;case 2:m=_.K7(G);switch((r=m)==null?void 0:r.name){case "AbortError":(X=b)==null||X(408);break;default:(V=
b)==null||V(400)}G.jumpTo(3)}})};
MxM.prototype.getTransmissionType=function(){return 4};_.vY=function(q,N){N=N===void 0?"0":N;_.UN.call(this);this.logSource=q;this.sessionIndex=N;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9795_clearExperimentIds=this.productID=null;this.JSC$9795_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.Y(_.vY,_.UN);var tAJ=function(q,N){q.buildLabel=N;return q},$gJ=function(q,N){q.network=N;
return q},rzJ=function(q,N){q.JSC$9795_clearExperimentIds=N},zVe=function(q){q.JSC$9795_sendBeaconApiEnabled=!0;
return q};
_.vY.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.vY.prototype.build=function(){this.network||(this.network=new MxM);var q=new tl({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.tlR,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.YN(this,q);if(this.buildLabel){var N=this.buildLabel,b=
z8(q.logRequestBuilder);_.Up(b,7,N)}q.JSC$9777_compressor=new YLF;this.componentId&&(q.componentId=this.componentId);this.productID&&(q.productID=this.productID);this.pageId&&(q.pageId=this.pageId);this.JSC$9795_clearExperimentIds&&((b=this.JSC$9795_clearExperimentIds)?(q.experimentIds||(q.experimentIds=new Qev),N=q.experimentIds,b=b.serialize(),_.Up(N,4,b)):q.experimentIds&&_.x5(q.experimentIds,4));this.JSC$9795_sendBeaconApiEnabled&&(q.JSC$9777_sendBeaconApiEnabled=q.isSendBeaconSupported);Iul(q.logRequestBuilder);
this.bufferSize&&(q.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(q);return q};var jOZ=function(q,N,b,y,J,E,F){q=q===void 0?-1:q;N=N===void 0?"":N;b=b===void 0?"":b;y=y===void 0?!1:y;J=J===void 0?"":J;_.UN.call(this);this.logSource=q;this.componentId=N;E?N=E:(q=new _.vY(q,"0"),q.componentId=N,_.YN(this,q),b!==""&&(q.destinationUrl=b),y&&(q.serviceWorkerScopeEnabled=!0),J&&tAJ(q,J),F&&$gJ(q,F),N=q.build());this.JSC$9799_transport=N};
_.Y(jOZ,_.UN);jOZ.prototype.flush=function(q){q=q||[];if(q.length){for(var N=new $0o,b=[],y=0;y<q.length;y++){var J=q[y],E=rXl(J);b.push(E);J.clear()}ts(N,1,b);this.JSC$9799_transport.dispatch(N);this.JSC$9799_transport.flush()}};var oLl=function(q){this.cellValue=q};var VL=function(q,N,b){this.JSC$9804_metricName=q;this.cellType=N;this.fields=b||[];this.cellMap=new Map},m0J=function(q){return q.fields.map(function(N){return N.fieldType})},txF=function(q){return q.fields.map(function(N){return N.fieldName})};
_.g=VL.prototype;_.g.addCell=function(q){var N=_.MB.apply(1,arguments),b=this.getCells(N);b?b.push(new oLl(q)):this.JSC$9804_setCell(q,N)};
_.g.JSC$9804_setCell=function(q){var N=this.JSC$9804_getKey(_.MB.apply(1,arguments));this.cellMap.set(N,[new oLl(q)])};
_.g.getCells=function(){var q=this.JSC$9804_getKey(_.MB.apply(0,arguments));return this.cellMap.has(q)?this.cellMap.get(q):void 0};
_.g.getCell=function(){var q=this.getCells(_.MB.apply(0,arguments));return q&&q.length?q[0]:void 0};
_.g.clear=function(){this.cellMap.clear()};
_.g.JSC$9804_getKey=function(){var q=_.MB.apply(0,arguments);return q?q.join(","):"key"};var AXT=function(q,N){VL.call(this,q,3,N)};
_.Y(AXT,VL);AXT.prototype.JSC$9807_incrementCounterBy=function(q){var N=_.MB.apply(1,arguments),b=0,y=this.getCell(N);y&&(b=y.cellValue);this.JSC$9804_setCell(b+q,N)};var eMx=function(q,N){VL.call(this,q,2,N)};
_.Y(eMx,VL);eMx.prototype.record=function(q){this.addCell(q,_.MB.apply(1,arguments))};_.jk=function(q){this.id=q};
_.jk.prototype.toString=function(){return this.id};_.xC=function(q,N){this.type=q instanceof _.jk?String(q):q;this.currentTarget=this.target=N;this.defaultPrevented=this.propagationStopped_=!1};
_.xC.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.xC.prototype.preventDefault=function(){this.defaultPrevented=!0};_.v2=function(q,N){_.xC.call(this,q?q.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;q&&this.init(q,N)};
_.oK(_.v2,_.xC);
_.v2.prototype.init=function(q,N){var b=this.type=q.type,y=q.changedTouches&&q.changedTouches.length?q.changedTouches[0]:null;this.target=q.target||q.srcElement;this.currentTarget=N;N=q.relatedTarget;N||(b=="mouseover"?N=q.fromElement:b=="mouseout"&&(N=q.toElement));this.relatedTarget=N;y?(this.clientX=y.clientX!==void 0?y.clientX:y.pageX,this.clientY=y.clientY!==void 0?y.clientY:y.pageY,this.screenX=y.screenX||0,this.screenY=y.screenY||0):(this.offsetX=_.Nd||q.offsetX!==void 0?q.offsetX:q.layerX,
this.offsetY=_.Nd||q.offsetY!==void 0?q.offsetY:q.layerY,this.clientX=q.clientX!==void 0?q.clientX:q.pageX,this.clientY=q.clientY!==void 0?q.clientY:q.pageY,this.screenX=q.screenX||0,this.screenY=q.screenY||0);this.button=q.button;this.keyCode=q.keyCode||0;this.key=q.key||"";this.charCode=q.charCode||(b=="keypress"?q.keyCode:0);this.ctrlKey=q.ctrlKey;this.altKey=q.altKey;this.shiftKey=q.shiftKey;this.metaKey=q.metaKey;this.pointerId=q.pointerId||0;this.pointerType=q.pointerType;this.state=q.state;
this.timeStamp=q.timeStamp;this.event_=q;q.defaultPrevented&&_.v2.superClass_.preventDefault.call(this)};
_.v2.prototype.isButton=function(q){return this.event_.button==q};
_.v2.prototype.stopPropagation=function(){_.v2.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.v2.prototype.preventDefault=function(){_.v2.superClass_.preventDefault.call(this);var q=this.event_;q.preventDefault?q.preventDefault():q.returnValue=!1};var BnE="closure_listenable_"+(Math.random()*1E6|0),G8=function(q){return!(!q||!q[BnE])};var H3l=0;var qw1=function(q,N,b,y,J){this.listener=q;this.proxy=null;this.src=N;this.type=b;this.capture=!!y;this.handler=J;this.key=++H3l;this.removed=this.callOnce=!1},NVq=function(q){q.removed=!0;
q.listener=null;q.proxy=null;q.src=null;q.handler=null};xN.prototype.add=function(q,N,b,y,J){var E=q.toString();q=this.listeners[E];q||(q=this.listeners[E]=[],this.typeCount_++);var F=bIj(q,N,y,J);F>-1?(N=q[F],b||(N.callOnce=!1)):(N=new qw1(N,this.src,E,!!y,J),N.callOnce=b,q.push(N));return N};
xN.prototype.remove=function(q,N,b,y){q=q.toString();if(!(q in this.listeners))return!1;var J=this.listeners[q];N=bIj(J,N,b,y);return N>-1?(NVq(J[N]),_.Dez(J,N),J.length==0&&(delete this.listeners[q],this.typeCount_--),!0):!1};
var yV1=function(q,N){var b=N.type;if(!(b in q.listeners))return!1;var y=_.WA(q.listeners[b],N);y&&(NVq(N),q.listeners[b].length==0&&(delete q.listeners[b],q.typeCount_--));return y};
xN.prototype.removeAll=function(q){q=q&&q.toString();var N=0,b;for(b in this.listeners)if(!q||b==q){for(var y=this.listeners[b],J=0;J<y.length;J++)++N,NVq(y[J]);delete this.listeners[b];this.typeCount_--}return N};
xN.prototype.getListener=function(q,N,b,y){q=this.listeners[q.toString()];var J=-1;q&&(J=bIj(q,N,b,y));return J>-1?q[J]:null};
xN.prototype.hasListener=function(q,N){var b=q!==void 0,y=b?q.toString():"",J=N!==void 0;return _.nM.some(this.listeners,function(E){for(var F=0;F<E.length;++F)if(!(b&&E[F].type!=y||J&&E[F].capture!=N))return!0;return!1})};
var bIj=function(q,N,b,y){for(var J=0;J<q.length;++J){var E=q[J];if(!E.removed&&E.listener==N&&E.capture==!!b&&E.handler==y)return J}return-1};var JVx,EZF,gZx,FT1,Rl4,c$,uq,uCM,d7T,cVx,YC,zlx,ZIR;JVx="closure_lm_"+(Math.random()*1E6|0);EZF={};gZx=0;_.tn=function(q,N,b,y,J){if(y&&y.once)return c$(q,N,b,y,J);if(Array.isArray(N)){for(var E=0;E<N.length;E++)_.tn(q,N[E],b,y,J);return null}b=ZIR(b);return G8(q)?q.listen(N,b,_.AZ(y)?!!y.capture:!!y,J):FT1(q,N,b,!1,y,J)};
FT1=function(q,N,b,y,J,E){if(!N)throw Error("va");var F=_.AZ(J)?!!J.capture:!!J,R=YC(q);R||(q[JVx]=R=new xN(q));b=R.add(N,b,y,F,E);if(b.proxy)return b;y=Rl4();b.proxy=y;y.src=q;y.listener=b;if(q.addEventListener)_.dB1||(J=F),J===void 0&&(J=!1),q.addEventListener(N.toString(),y,J);else if(q.attachEvent)q.attachEvent(d7T(N.toString()),y);else if(q.addListener&&q.removeListener)q.addListener(y);else throw Error("wa");gZx++;return b};
Rl4=function(){var q=cVx,N=function(b){return q.call(N.src,N.listener,b)};
return N};
c$=function(q,N,b,y,J){if(Array.isArray(N)){for(var E=0;E<N.length;E++)c$(q,N[E],b,y,J);return null}b=ZIR(b);return G8(q)?q.listenOnce(N,b,_.AZ(y)?!!y.capture:!!y,J):FT1(q,N,b,!0,y,J)};
_.QL=function(q,N,b,y,J){if(Array.isArray(N))for(var E=0;E<N.length;E++)_.QL(q,N[E],b,y,J);else y=_.AZ(y)?!!y.capture:!!y,b=ZIR(b),G8(q)?q.unlisten(N,b,y,J):q&&(q=YC(q))&&(N=q.getListener(N,b,y,J))&&uq(N)};
uq=function(q){if(typeof q==="number"||!q||q.removed)return!1;var N=q.src;if(G8(N))return yV1(N.eventTargetListeners_,q);var b=q.type,y=q.proxy;N.removeEventListener?N.removeEventListener(b,y,q.capture):N.detachEvent?N.detachEvent(d7T(b),y):N.addListener&&N.removeListener&&N.removeListener(y);gZx--;(b=YC(N))?(yV1(b,q),b.typeCount_==0&&(b.src=null,N[JVx]=null)):NVq(q);return!0};
uCM=function(q,N,b,y,J){b=ZIR(b);y=!!y;return G8(q)?q.getListener(N,b,y,J):q?(q=YC(q))?q.getListener(N,b,y,J):null:null};
d7T=function(q){return q in EZF?EZF[q]:EZF[q]="on"+q};
cVx=function(q,N){if(q.removed)q=!0;else{N=new _.v2(N,this);var b=q.listener,y=q.handler||q.src;q.callOnce&&uq(q);q=b.call(y,N)}return q};
YC=function(q){q=q[JVx];return q instanceof xN?q:null};
zlx="__closure_events_fn_"+(Math.random()*1E9>>>0);ZIR=function(q){if(typeof q==="function")return q;q[zlx]||(q[zlx]=function(N){return q.handleEvent(N)});
return q[zlx]};_.O1=function(){_.UN.call(this);this.eventTargetListeners_=new xN(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.oK(_.O1,_.UN);_.O1.prototype[BnE]=!0;_.g=_.O1.prototype;_.g.setParentEventTarget=function(q){this.parentEventTarget_=q};
_.g.addEventListener=function(q,N,b,y){_.tn(this,q,N,b,y)};
_.g.removeEventListener=function(q,N,b,y){_.QL(this,q,N,b,y)};
_.g.dispatchEvent=function(q){var N,b=this.parentEventTarget_;if(b)for(N=[];b;b=b.parentEventTarget_)N.push(b);b=this.actualEventTarget_;var y=q.type||q;if(typeof q==="string")q=new _.xC(q,b);else if(q instanceof _.xC)q.target=q.target||b;else{var J=q;q=new _.xC(y,b);_.nM.extend(q,J)}J=!0;var E;if(N)for(E=N.length-1;!q.propagationStopped_&&E>=0;E--){var F=q.currentTarget=N[E];J=$7v(F,y,!0,q)&&J}q.propagationStopped_||(F=q.currentTarget=b,J=$7v(F,y,!0,q)&&J,q.propagationStopped_||(J=$7v(F,y,!1,q)&&
J));if(N)for(E=0;!q.propagationStopped_&&E<N.length;E++)F=q.currentTarget=N[E],J=$7v(F,y,!1,q)&&J;return J};
_.g.disposeInternal=function(){_.O1.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.g.listen=function(q,N,b,y){return this.eventTargetListeners_.add(String(q),N,!1,b,y)};
_.g.listenOnce=function(q,N,b,y){return this.eventTargetListeners_.add(String(q),N,!0,b,y)};
_.g.unlisten=function(q,N,b,y){return this.eventTargetListeners_.remove(String(q),N,b,y)};
_.g.removeAllListeners=function(q){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(q):0};
var $7v=function(q,N,b,y){N=q.eventTargetListeners_.listeners[String(N)];if(!N)return!0;N=N.concat();for(var J=!0,E=0;E<N.length;++E){var F=N[E];if(F&&!F.removed&&F.capture==b){var R=F.listener,c=F.handler||F.src;F.callOnce&&yV1(q.eventTargetListeners_,F);J=R.call(c,y)!==!1&&J}}return J&&!y.defaultPrevented};
_.O1.prototype.getListener=function(q,N,b,y){return this.eventTargetListeners_.getListener(String(q),N,b,y)};
_.O1.prototype.hasListener=function(q,N){return this.eventTargetListeners_.hasListener(q!==void 0?String(q):void 0,N)};var wb=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(q){return q&&AsyncContext.Snapshot.wrap(q)}:function(q){return q};var tI1=function(q,N){this.create_=q;this.reset_=N;this.occupants_=0;this.JSC$9839_head_=null};
tI1.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var q=this.JSC$9839_head_;this.JSC$9839_head_=q.next;q.next=null}else q=this.create_();return q};
tI1.prototype.put=function(q){this.reset_(q);this.occupants_<100&&(this.occupants_++,q.next=this.JSC$9839_head_,this.JSC$9839_head_=q)};var m7l=function(){this.workTail_=this.workHead_=null};
m7l.prototype.add=function(q,N){var b=Z4n.get();b.set(q,N);this.workTail_?this.workTail_.next=b:this.workHead_=b;this.workTail_=b};
m7l.prototype.remove=function(){var q=null;this.workHead_&&(q=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),q.next=null);return q};
var Z4n=new tI1(function(){return new rVx},function(q){return q.reset()}),rVx=function(){this.next=this.scope=this.fn=null};
rVx.prototype.set=function(q,N){this.fn=q;this.scope=N;this.next=null};
rVx.prototype.reset=function(){this.next=this.scope=this.fn=null};var XCM,Fau,gfA,VIF;Fau=!1;gfA=new m7l;_.iU=function(q,N){XCM||VIF();Fau||(XCM(),Fau=!0);gfA.add(q,N)};
VIF=function(){var q=Promise.resolve(void 0);XCM=function(){q.then(RVd)}};var juM=function(q){q.prototype.$goog_Thenable=!0},x71=function(q){if(!q)return!1;
try{return!!q.$goog_Thenable}catch(N){return!1}};var vZJ,Gfj,Ywv,OIF,wC4,iI1,hl4,f$x,sul,I$x,msA;_.wL=function(q,N){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(q!=_.jE)try{var b=this;q.call(N,function(y){b.resolve_(2,y)},function(y){b.resolve_(3,y)})}catch(y){this.resolve_(3,y)}};
vZJ=function(){this.next=this.context=this.JSC$9850_onRejected=this.JSC$9850_onFulfilled=this.child=null;this.always=!1};
vZJ.prototype.reset=function(){this.context=this.JSC$9850_onRejected=this.JSC$9850_onFulfilled=this.child=null;this.always=!1};
Gfj=new tI1(function(){return new vZJ},function(q){q.reset()});
Ywv=function(q,N,b){var y=Gfj.get();y.JSC$9850_onFulfilled=q;y.JSC$9850_onRejected=N;y.context=b;return y};
_.bG=function(q){if(q instanceof _.wL)return q;var N=new _.wL(_.jE);N.resolve_(2,q);return N};
_.ra=function(q){return new _.wL(function(N,b){b(q)})};
OIF=function(q,N,b){QuF(q,N,b,null)||_.iU(_.dg(N,q))};
_.lU=function(q){return new _.wL(function(N,b){var y=q.length,J=[];if(y)for(var E=function(z,m){y--;J[z]=m;y==0&&N(J)},F=function(z){b(z)},R,c=0;c<q.length;c++)R=q[c],OIF(R,_.dg(E,c),F);
else N(J)})};
wC4=function(q){return new _.wL(function(N){var b=q.length,y=[];if(b)for(var J=function(R,c,z){b--;y[R]=c?{fulfilled:!0,value:z}:{fulfilled:!1,reason:z};b==0&&N(y)},E,F=0;F<q.length;F++)E=q[F],OIF(E,_.dg(J,F,!0),_.dg(J,F,!1));
else N(y)})};
iI1=function(q){return new _.wL(function(N,b){var y=q.length,J=[];if(y)for(var E=function(z){N(z)},F=function(z,m){y--;
J[z]=m;y==0&&b(J)},R,c=0;c<q.length;c++)R=q[c],OIF(R,E,_.dg(F,c));
else N(void 0)})};
_.T4=function(){var q,N,b=new _.wL(function(y,J){q=y;N=J});
return new l$j(b,q,N)};
_.wL.prototype.then=function(q,N,b){return KTv(this,wb(typeof q==="function"?q:null),wb(typeof N==="function"?N:null),b)};
juM(_.wL);hl4=function(q,N,b,y){D7v(q,Ywv(N||_.jE,b||null,y))};
_.KJ=function(q,N){N=wb(N);N=Ywv(N,N);N.always=!0;D7v(q,N);return q};
_.wL.prototype.finally=function(q){var N=this;q=wb(q);return new _.wL(function(b,y){hl4(N,function(J){q();b(J)},function(J){q();
y(J)})})};
_.wL.prototype.thenCatch=function(q,N){return KTv(this,null,wb(q),N)};
_.wL.prototype.catch=_.wL.prototype.thenCatch;_.wL.prototype.cancel=function(q){if(this.state_==0){var N=new _.K0(q);_.iU(function(){kfx(this,N)},this)}};
var kfx=function(q,N){if(q.state_==0)if(q.parent_){var b=q.parent_;if(b.callbackEntries_){for(var y=0,J=null,E=null,F=b.callbackEntries_;F&&(F.always||(y++,F.child==q&&(J=F),!(J&&y>1)));F=F.next)J||(E=F);J&&(b.state_==0&&y==1?kfx(b,N):(E?(y=E,y.next==b.callbackEntriesTail_&&(b.callbackEntriesTail_=y),y.next=y.next.next):U7M(b),f$x(b,J,3,N)))}q.parent_=null}else q.resolve_(3,N)},D7v=function(q,N){q.callbackEntries_||q.state_!=2&&q.state_!=3||Cc1(q);
q.callbackEntriesTail_?q.callbackEntriesTail_.next=N:q.callbackEntries_=N;q.callbackEntriesTail_=N},KTv=function(q,N,b,y){var J=Ywv(null,null,null);
J.child=new _.wL(function(E,F){J.JSC$9850_onFulfilled=N?function(R){try{var c=N.call(y,R);E(c)}catch(z){F(z)}}:E;
J.JSC$9850_onRejected=b?function(R){try{var c=b.call(y,R);c===void 0&&R instanceof _.K0?F(R):E(c)}catch(z){F(z)}}:F});
J.child.parent_=q;D7v(q,J);return J.child};
_.wL.prototype.unblockAndFulfill_=function(q){this.state_=0;this.resolve_(2,q)};
_.wL.prototype.unblockAndReject_=function(q){this.state_=0;this.resolve_(3,q)};
_.wL.prototype.resolve_=function(q,N){this.state_==0&&(this===N&&(q=3,N=new TypeError("xa")),this.state_=1,QuF(N,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=N,this.state_=q,this.parent_=null,Cc1(this),q!=3||N instanceof _.K0||I$x(this,N)))};
var QuF=function(q,N,b,y){if(q instanceof _.wL)return hl4(q,N,b,y),!0;if(x71(q))return q.then(N,b,y),!0;if(_.AZ(q))try{var J=q.then;if(typeof J==="function")return TV1(q,J,N,b,y),!0}catch(E){return b.call(y,E),!0}return!1},TV1=function(q,N,b,y,J){var E=!1,F=function(c){E||(E=!0,b.call(J,c))},R=function(c){E||(E=!0,y.call(J,c))};
try{N.call(q,F,R)}catch(c){R(c)}},Cc1=function(q){q.executing_||(q.executing_=!0,_.iU(q.executeCallbacks_,q))},U7M=function(q){var N=null;
q.callbackEntries_&&(N=q.callbackEntries_,q.callbackEntries_=N.next,N.next=null);q.callbackEntries_||(q.callbackEntriesTail_=null);return N};
_.wL.prototype.executeCallbacks_=function(){for(var q;q=U7M(this);)f$x(this,q,this.state_,this.result_);this.executing_=!1};
f$x=function(q,N,b,y){if(b==3&&N.JSC$9850_onRejected&&!N.always)for(;q&&q.hadUnhandledRejection_;q=q.parent_)q.hadUnhandledRejection_=!1;if(N.child)N.child.parent_=null,sul(N,b,y);else try{N.always?N.JSC$9850_onFulfilled.call(N.context):sul(N,b,y)}catch(J){msA.call(null,J)}Gfj.put(N)};
sul=function(q,N,b){N==2?q.JSC$9850_onFulfilled.call(q.context,b):q.JSC$9850_onRejected&&q.JSC$9850_onRejected.call(q.context,b)};
I$x=function(q,N){q.hadUnhandledRejection_=!0;_.iU(function(){q.hadUnhandledRejection_&&msA.call(null,N)})};
msA=EJ;_.K0=function(q){_.bn.call(this,q)};
_.oK(_.K0,_.bn);_.K0.prototype.name="cancel";var l$j=function(q,N,b){this.promise=q;this.resolve=N;this.reject=b};var D6;_.jL=function(q,N){_.O1.call(this);this.JSC$9862_interval_=q||1;this.timerObject_=N||_.JZ;this.boundTick_=(0,_.fF)(this.tick_,this);this.last_=_.M$()};
_.oK(_.jL,_.O1);_.g=_.jL.prototype;_.g.enabled=!1;_.g.JSC$9864_timer_=null;_.g.setInterval=function(q){this.JSC$9862_interval_=q;this.JSC$9864_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9864_timer_&&this.stop()};
_.g.tick_=function(){if(this.enabled){var q=_.M$()-this.last_;q>0&&q<this.JSC$9862_interval_*.8?this.JSC$9864_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9862_interval_-q):(this.JSC$9864_timer_&&(this.timerObject_.clearTimeout(this.JSC$9864_timer_),this.JSC$9864_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.g.start=function(){this.enabled=!0;this.JSC$9864_timer_||(this.JSC$9864_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9862_interval_),this.last_=_.M$())};
_.g.stop=function(){this.enabled=!1;this.JSC$9864_timer_&&(this.timerObject_.clearTimeout(this.JSC$9864_timer_),this.JSC$9864_timer_=null)};
_.g.disposeInternal=function(){_.jL.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
D6=function(q,N,b){if(typeof q==="function")b&&(q=(0,_.fF)(q,b));else if(q&&typeof q.handleEvent=="function")q=(0,_.fF)(q.handleEvent,q);else throw Error("ya");return Number(N)>2147483647?-1:_.JZ.setTimeout(q,N||0)};
_.nZ1=function(q){var N=null;return(new _.wL(function(b,y){N=D6(function(){b(void 0)},q);
N==-1&&y(Error("za"))})).thenCatch(function(b){_.JZ.clearTimeout(N);
throw b;})};var QE=function(q){_.UN.call(this);this.streamzLogger=q;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9868_flushTimer=new _.jL(this.flushInterval);this.JSC$9868_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.YN(this,this.JSC$9868_flushTimer)};
_.Y(QE,_.UN);QE.prototype.sendIsolatedPayload=function(q){this.shouldSendIsolatedPayload=q;this.invocationLimit=1};
var a$v=function(q){q.JSC$9868_flushTimer.enabled||q.JSC$9868_flushTimer.start();q.invocationCount++;q.invocationCount>=q.invocationLimit&&q.snapshotAndFlush()};
QE.prototype.snapshotAndFlush=function(){var q=this.metricMap.values();q=[].concat(_.a9(q)).filter(function(N){return N.cellMap.size});
q.length&&this.streamzLogger.flush(q,this.shouldSendIsolatedPayload);Sw1(q);this.invocationCount=0;this.JSC$9868_flushTimer.enabled&&this.JSC$9868_flushTimer.stop()};
QE.prototype.addNewCounter=function(q){var N=_.MB.apply(1,arguments);this.metricMap.has(q)||this.metricMap.set(q,new AXT(q,N))};
QE.prototype.addNewEventMetric=function(q){var N=_.MB.apply(1,arguments);this.metricMap.has(q)||this.metricMap.set(q,new eMx(q,N))};
var WT1=function(q,N){return q.disabledMetrics.has(N)?void 0:q.metricMap.get(N)};
QE.prototype.JSC$9868_incrementCounter=function(q){this.JSC$9868_incrementCounterBy(q,1,_.MB.apply(1,arguments))};
QE.prototype.JSC$9868_incrementCounterBy=function(q,N){var b=_.MB.apply(2,arguments),y=WT1(this,q);y&&y instanceof AXT&&(y.JSC$9807_incrementCounterBy(N,b),a$v(this))};
QE.prototype.record=function(q,N){var b=_.MB.apply(2,arguments),y=WT1(this,q);y&&y instanceof eMx&&(y.record(N,b),a$v(this))};
var Sw1=function(q){for(var N=0;N<q.length;N++)q[N].clear()};_.hl=function(q,N,b){b=b===void 0?{}:b;N=Error.call(this,N);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.code=q;this.metadata=b;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.Y(_.hl,Error);_.hl.prototype.toString=function(){var q="RpcError("+(czn(this.code)||String(this.code))+")";this.message&&(q+=": "+this.message);return q};_.LTo=_.JZ.JSON.parse;_.kC=_.JZ.JSON.stringify;_.j2=_.JZ.JSON.parse;_.pCo=function(q){switch(q){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 Pcx=function(q){switch(q){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var MIT,oZ1=function(){};
_.oK(oZ1,_.u$A);oZ1.prototype.createInstance=function(){return new XMLHttpRequest};
MIT=new oZ1;_.U1=function(q){_.O1.call(this);this.headers=new Map;this.JSC$9877_xmlHttpFactory_=q||null;this.JSC$9877_active_=!1;this.JSC$9877_xhr_=null;this.JSC$9877_lastUri_="";this.JSC$9877_lastErrorCode_=0;this.JSC$9877_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9877_timeoutId_=null;this.responseType_="";this.JSC$9877_withCredentials_=!1};
_.oK(_.U1,_.O1);var AVo=/^https?$/i,elF=["POST","PUT"],BVj=[],ptD=function(q,N,b,y,J,E,F){var R=new _.U1;BVj.push(R);N&&R.listen("complete",N);R.listenOnce("ready",R.cleanupSend_);E&&(R.timeoutInterval_=Math.max(0,E));F&&(R.JSC$9877_withCredentials_=F);R.send(q,b,y,J)};
_.U1.prototype.cleanupSend_=function(){this.dispose();_.WA(BVj,this)};
_.U1.prototype.send=function(q,N,b,y){if(this.JSC$9877_xhr_)throw Error("Aa`"+this.JSC$9877_lastUri_+"`"+q);N=N?N.toUpperCase():"GET";this.JSC$9877_lastUri_=q;this.JSC$9877_lastError_="";this.JSC$9877_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9877_active_=!0;this.JSC$9877_xhr_=this.createXhr();this.JSC$9877_xhr_.onreadystatechange=wb((0,_.fF)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9877_xhr_.open(N,String(q),!0),this.inOpen_=!1}catch(F){HIM(this,F);return}q=b||"";b=new Map(this.headers);
if(y)if(Object.getPrototypeOf(y)===Object.prototype)for(var J in y)b.set(J,y[J]);else if(typeof y.keys==="function"&&typeof y.get==="function"){J=_.Z(y.keys());for(var E=J.next();!E.done;E=J.next())E=E.value,b.set(E,y.get(E))}else throw Error("Ba`"+String(y));y=Array.from(b.keys()).find(function(F){return"content-type"==F.toLowerCase()});
J=_.JZ.FormData&&q instanceof _.JZ.FormData;!_.aJ(elF,N)||y||J||b.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");N=_.Z(b);for(y=N.next();!y.done;y=N.next())b=_.Z(y.value),y=b.next().value,b=b.next().value,this.JSC$9877_xhr_.setRequestHeader(y,b);this.responseType_&&(this.JSC$9877_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9877_xhr_&&this.JSC$9877_xhr_.withCredentials!==this.JSC$9877_withCredentials_&&(this.JSC$9877_xhr_.withCredentials=this.JSC$9877_withCredentials_);
try{this.JSC$9877_timeoutId_&&(clearTimeout(this.JSC$9877_timeoutId_),this.JSC$9877_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9877_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9877_xhr_.send(q),this.inSend_=!1}catch(F){HIM(this,F)}};
_.U1.prototype.createXhr=function(){return this.JSC$9877_xmlHttpFactory_?this.JSC$9877_xmlHttpFactory_.createInstance():MIT.createInstance()};
_.U1.prototype.timeout_=function(){typeof zuT!="undefined"&&this.JSC$9877_xhr_&&(this.JSC$9877_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9877_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var HIM=function(q,N){q.JSC$9877_active_=!1;q.JSC$9877_xhr_&&(q.inAbort_=!0,q.JSC$9877_xhr_.abort(),q.inAbort_=!1);q.JSC$9877_lastError_=N;q.JSC$9877_lastErrorCode_=5;qVR(q);NOE(q)},qVR=function(q){q.errorDispatched_||(q.errorDispatched_=!0,q.dispatchEvent("complete"),q.dispatchEvent("error"))};
_.U1.prototype.abort=function(q){this.JSC$9877_xhr_&&this.JSC$9877_active_&&(this.JSC$9877_active_=!1,this.inAbort_=!0,this.JSC$9877_xhr_.abort(),this.inAbort_=!1,this.JSC$9877_lastErrorCode_=q||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),NOE(this))};
_.U1.prototype.disposeInternal=function(){this.JSC$9877_xhr_&&(this.JSC$9877_active_&&(this.JSC$9877_active_=!1,this.inAbort_=!0,this.JSC$9877_xhr_.abort(),this.inAbort_=!1),NOE(this,!0));_.U1.superClass_.disposeInternal.call(this)};
_.U1.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)b41(this);else this.onReadyStateChangeEntryPoint_()};
_.U1.prototype.onReadyStateChangeEntryPoint_=function(){b41(this)};
var b41=function(q){if(q.JSC$9877_active_&&typeof zuT!="undefined")if(q.inSend_&&_.fJ(q)==4)setTimeout(q.onReadyStateChange_.bind(q),0);else if(q.dispatchEvent("readystatechange"),q.isComplete()){q.JSC$9877_active_=!1;try{if(q.isSuccess())q.dispatchEvent("complete"),q.dispatchEvent("success");else{q.JSC$9877_lastErrorCode_=6;try{var N=_.fJ(q)>2?q.JSC$9877_xhr_.statusText:""}catch(b){N=""}q.JSC$9877_lastError_=N+" ["+q.getStatus()+"]";qVR(q)}}finally{NOE(q)}}},NOE=function(q,N){if(q.JSC$9877_xhr_){q.JSC$9877_timeoutId_&&
(clearTimeout(q.JSC$9877_timeoutId_),q.JSC$9877_timeoutId_=null);
var b=q.JSC$9877_xhr_;q.JSC$9877_xhr_=null;N||q.dispatchEvent("ready");try{b.onreadystatechange=null}catch(y){}}};
_.U1.prototype.isActive=function(){return!!this.JSC$9877_xhr_};
_.U1.prototype.isComplete=function(){return _.fJ(this)==4};
_.U1.prototype.isSuccess=function(){var q=this.getStatus(),N;if(!(N=Pcx(q))){if(q=q===0)q=ZF1(String(this.JSC$9877_lastUri_)),q=!AVo.test(q);N=q}return N};
_.fJ=function(q){return q.JSC$9877_xhr_?q.JSC$9877_xhr_.readyState:0};
_.g=_.U1.prototype;_.g.getStatus=function(){try{return _.fJ(this)>2?this.JSC$9877_xhr_.status:-1}catch(q){return-1}};
_.g.getResponseText=function(){try{return this.JSC$9877_xhr_?this.JSC$9877_xhr_.responseText:""}catch(q){return""}};
_.g.getResponse=function(){try{if(!this.JSC$9877_xhr_)return null;if("response"in this.JSC$9877_xhr_)return this.JSC$9877_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9877_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9877_xhr_)return this.JSC$9877_xhr_.mozResponseArrayBuffer}return null}catch(q){return null}};
_.g.getAllResponseHeaders=function(){return this.JSC$9877_xhr_&&_.fJ(this)>=2?this.JSC$9877_xhr_.getAllResponseHeaders()||"":""};
_.g.getLastError=function(){return typeof this.JSC$9877_lastError_==="string"?this.JSC$9877_lastError_:String(this.JSC$9877_lastError_)};var mgd=function(){};
mgd.prototype.send=function(q,N,b){N=N===void 0?function(){}:N;
b=b===void 0?function(){}:b;
ptD(q.url,function(y){y=y.target;y.isSuccess()?N(y.getResponseText()):b(y.getStatus())},q.requestType,q.body,q.requestHeaders,q.timeoutMillis,q.withCredentials)};
mgd.prototype.getTransmissionType=function(){return 1};var yzo=function(q,N){this.mkC=q;this.event=N;this.startTime=ON()},vfC;
yzo.prototype.done=function(){this.mkC.wa(this.event,ON()-this.startTime)};
var CJ=function(){Z6.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.Y(CJ,Z6);_.IX=function(q,N,b){var y=ON();N=N();q.wa(b,ON()-y);return N};
vfC=function(){CJ.apply(this,arguments)};
_.Y(vfC,CJ);_.g=vfC.prototype;_.g.yGP=function(){};
_.g.hk=function(){};
_.g.wa=function(){};
_.g.logError=function(){};
_.g.um=function(){};
_.g.zKS=function(){};
_.g.lkb=function(){};
_.g.cto=function(){};
var Jzl=function(q){CJ.call(this);var N=this;this.lK=q;this.TEST_ONLY={jcO:function(){return N.lK},
getExperimentIds:function(){return N.lK.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void N.lK.dispose()})};
_.Y(Jzl,CJ);_.g=Jzl.prototype;_.g.update=function(q){this.lK.dispose();this.lK=q};
_.g.hk=function(q){this.lK.hk(q)};
_.g.wa=function(q,N){this.lK.wa(q,N)};
_.g.logError=function(q){this.lK.logError(q)};
_.g.um=function(){this.lK.um()};
_.g.zKS=function(q){this.lK.zKS(q)};
_.g.lkb=function(q){this.lK.lkb(q)};
_.g.cto=function(q){this.lK.cto(q)};
_.g.yGP=function(q){this.lK.yGP(q)};
var Efx=function(q,N){_.UN.call(this);var b=this;this.callback=q;this.uzD=N;this.nOu=-N;this.addOnDisposeCallback(function(){return void clearTimeout(b.timer)})};
_.Y(Efx,_.UN);var gfR=function(q){if(q.timer===void 0){var N=Math.max(0,q.nOu+q.uzD-ON());q.timer=setTimeout(function(){try{q.callback()}finally{q.nOu=ON(),q.timer=void 0}},N)}},Z4T=function(q,N){CJ.call(this);
this.metrics=q;this.eU=N};
_.Y(Z4T,CJ);_.g=Z4T.prototype;_.g.yGP=function(q){this.metrics.q8N.record(q,this.eU)};
_.g.hk=function(q){this.metrics.eventCount.increment(q,this.eU)};
_.g.wa=function(q,N){this.metrics.qrV.record(N,q,this.eU)};
_.g.logError=function(q){this.metrics.errorCount.increment(q,this.eU)};
_.g.zKS=function(q){this.metrics.s9N.increment(q,this.eU)};
_.g.lkb=function(q){this.metrics.zZg.increment(q,this.eU)};
_.g.cto=function(q){this.metrics.gli.increment(q,this.eU)};
var G1d=function(q,N){N=N===void 0?[]:N;var b={eU:q.eU||"_",bCF:q.bCF||[],iZv:q.iZv|0,destinationUrl:q.destinationUrl,wGz:q.wGz||function(){},
i1B:q.i1B||function(E,F){return xgA(E,F,b.wGz,b.destinationUrl)}},y=b.i1B("51",b.bCF.concat(N));
Z4T.call(this,{q8N:new SNT(y),errorCount:new PCE(y),eventCount:new LWE(y),qrV:new pYR(y),hcV:new WWx(y),s9N:new MGM(y),zZg:new oNv(y),gli:new AW1(y)},b.eU);var J=this;this.TEST_ONLY={getExperimentIds:function(){return J.options.bCF.concat(J.k7i).sort(function(E,F){return E-F})}};
this.options=b;this.service=y;this.t6K=!q.i1B;this.flushDebouncer=new Efx(function(){return void J.service.snapshotAndFlush()},b.iZv);
this.addOnDisposeCallback(function(){J.flushDebouncer.dispose();J.t6K&&J.service.dispose()});
(this.k7i=N.slice()).sort(_.fRD)};
_.Y(G1d,Z4T);G1d.prototype.um=function(){gfR(this.flushDebouncer)};var p5J=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(p5J,_.Rx);_.PAu=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(_.PAu,_.Rx);var UA=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q,0,UA.messageId)};
_.Y(UA,_.Rx);var FaJ=_.Mvd(UA);UA.messageId="bfkj";var oZd=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(oZd,_.Rx);var RVM=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(RVM,_.Rx);var dgx=_.Qe(RVM);_.yk=function(){var q=this;this.promise=new Promise(function(N,b){q.resolve=N;q.reject=b})};_.T8=function(q){_.UN.call(this);var N=this;this.cOp=Math.floor(Math.random()*200);this.z3n=new RVM;if("challenge"in q&&FaJ(q.challenge)){var b=_.xs(q.challenge,4,void 0,f1);var y=_.xs(q.challenge,5,void 0,f1);_.xs(q.challenge,7,void 0,f1)&&(this.z3n=dgx(_.xs(q.challenge,7,void 0,f1)))}else b=q.program,y=q.globalName;this.addOnDisposeCallback(function(){var G,w,D;return _.d(function(k){if(k.nextAddress==1)return k.yield(N.zbx,2);G=k.yieldResult;w=G.vB9;(D=w)==null||D();_.hj(k)})});
this.f7=YVd(q.bKo||{},this.z3n);_.YN(this,this.f7);var J=new _.yk;this.zbx=J.promise;this.f7.hk("t");var E=this.f7.share(),F=new yzo(E,"t"),R=function(G,w,D,k){if(!N.f7.isDisposed()){var f="k";w?f="h":D&&(f="u");f!=="k"?k!==0&&(N.f7.hk(f),N.f7.wa(f,G)):N.cOp<=0?(N.f7.hk(f),N.f7.wa(f,G),N.cOp=Math.floor(Math.random()*200)):N.cOp--}},c=function(G,w,D,k){Promise.resolve().then(function(){F.done();
E.um();E.dispose();J.resolve({lEI:G,vB9:w,deD:D,ieY:k})})};
if(!_.JZ[y])throw this.f7.logError(25),Error("Ca");if(!_.JZ[y].a)throw this.f7.logError(26),Error("Da");try{var z=_.JZ[y].a;y=[];for(var m=[],r=AVz(this.z3n),X=0;X<r.length;X++)y.push(r[X]),m.push(1);var V=elh(this.z3n);for(r=0;r<V.length;r++)y.push(V[r]),m.push(2);this.uXE=_.Z(z(b,c,!0,q.yNV,R,[y,m],_.xs(this.z3n,5),!1)).next().value;this.uHX=J.promise.then(function(){})}catch(G){throw this.f7.logError(28),G;
}};
_.Y(_.T8,_.UN);_.T8.prototype.snapshot=function(q){if(this.isDisposed())throw Error("Ea");this.f7.hk("n");var N=this.f7.share();return this.zbx.then(function(b){var y=b.lEI;return new Promise(function(J){var E=new yzo(N,"n");y(function(F){E.done();N.yGP(F.length);N.um();N.dispose();J(F)},[q.hm,
q.uWx,q.m6V,q.vlO])})})};
_.T8.prototype.qGb=function(q){this.zbx.then(function(N){var b;(b=N.deD)==null||b(q)})};
_.T8.prototype.xzx=function(q,N){return this.zbx.then(function(b){var y;return(y=b.ieY)==null?void 0:y(q,N,!1)})};
_.T8.prototype.jA6=function(){return this.f7.share()};var czT=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(czT,_.Rx);var XBJ=_.Mvd(czT);var u$x=function(){this.promises={};this.cVO=null},zVv=function(){u$x.instance||(u$x.instance=new u$x);
return u$x.instance},tAl=function(q,N){return $gl(q,_.Vr(N,p5J,1,f1),_.Vr(N,_.PAu,2,f1),_.xs(N,3,void 0,f1))},$gl=function(q,N,b,y){if(!N&&!b)return Promise.resolve();
if(!y)return lMn(N,b);var J;(J=q.promises)[y]||(J[y]=new Promise(function(E,F){lMn(N,b).then(function(){q.cVO=y;E()},function(R){delete q.promises[y];
F(R)})}));
return q.promises[y]};var mg1=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(mg1,_.Rx);var rzx=function(q,N){return _.f0(q,1,N)},X4R=function(q,N){return _.f0(q,2,N)};var s1=function(q){_.UN.call(this);var N=this;this.options=q;this.y5n=new _.yk;this.uHX=this.y5n.promise;this.wSb=new _.yk;this.bjO=1;this.dDS=new _.yk;this.hAF=[];this.txS=q.txS||function(){};
this.gjz=new Jzl(YVd(q.bKo||{}));VAM(this,q.n2,q.ys8,q.dFE,q.xhV,Object.assign({},jO4,q.em6||{}));this.addOnDisposeCallback(function(){return void xgR(N)})};
_.Y(s1,_.UN);s1.prototype.snapshot=function(q){var N=this;return _.d(function(b){switch(b.nextAddress){case 1:if(N.isDisposed())throw Error("Ea");if(N.yw||N.yVK){b.jumpTo(2);break}return b.yield(N.wSb.promise,2);case 2:if(!N.yw){b.jumpTo(4);break}return b.yield(N.yw.snapshot(q),5);case 5:return b.return(b.yieldResult);case 4:throw N.yVK;}})};
var vf1=function(q){var N;return _.d(function(b){if(q.isDisposed())throw Error("Ea");(N=q.g3)!=null&&(N.endTimeMs=0,N.resolver(1));return b.yield(q.dDS.promise,0)})},xgR=function(q){q.yVK=Error("Ga");
q.wSb.resolve();BVn(q.y5n.promise);q.y5n.reject(Error("Ga"));q.gjz.dispose();Promise.all(q.hAF).then(function(){var b;return _.d(function(y){(b=q.yw)==null||b.dispose();q.yw=void 0;_.hj(y)})});
q.hAF=[];var N;(N=q.g3)!=null&&(N.endTimeMs=0,N.resolver(1));BVn(q.dDS.promise);q.dDS.reject(Error("Ga"))};
s1.prototype.qGb=function(q){var N,b;(N=this.yw)==null||(b=N.qGb)==null||b.call(N,q)};
s1.prototype.xzx=function(q,N){var b,y,J;return(J=(b=this.yw)==null?void 0:(y=b.xzx)==null?void 0:y.call(b,q,N))!=null?J:Promise.resolve()};
var G1M=function(q,N){var b=q.txS;q.txS=function(){b();N()}},YVM=function(q,N){q.isDisposed()||(q.yw=N,q.gjz.update(N.jA6()),q.wSb.resolve(),q.y5n.resolve(void 0),q.txS())};
s1.prototype.handleError=function(q){if(!this.isDisposed()){this.yVK=q;this.wSb.resolve();var N,b;(b=(N=this.options).qME)==null||b.call(N,q)}};
var QOT=function(q,N){N&&(Promise.all(q.hAF).then(function(){return void N.dispose()}),q.hAF=[])},nJ=function(q,N){q.bjO=N;
var b,y;(y=(b=q.options).cUE)==null||y.call(b,N)},O4l=function(q){q.isDisposed()||(q.dDS.resolve(),q.dDS=new _.yk)},VAM=function(q,N,b,y,J,E){y=y===void 0?zVv():y;
J=J===void 0?Promise.resolve(void 0):J;var F,R,c,z,m,r,X,V,G,w,D,k;_.d(function(f){switch(f.nextAddress){case 1:return f.yield(0,3);case 3:R=null;if(!F){f.jumpTo(6);break}nJ(q,7);_.Yi(f,7);return f.yield(Dz(F.snapshot({}),E.hRg,function(){return Promise.resolve("E:CTO")}),9);
case 9:R=f.yieldResult;_.Ea(f,6);break;case 7:_.K7(f),R="E:UCE";case 6:c=void 0,z=F?E.xWY:E.hii,m=new jG(z,E.tAK,E.eiu,E.vii),r=1;case 10:if(!(r<=E.maxAttempts)){f.jumpTo(12);break}if(r===1){f.jumpTo(13);break}nJ(q,0);q.g3=new w4x(m.getValue(),E.f1F,E.l1q);return f.yield(q.g3.promise,14);case 14:X=f.yieldResult,q.g3=void 0,X===1?(r=1,m.reset()):Tnv(m);case 13:_.Yi(f,15);V=void 0;if(b){V=b;f.jumpTo(17);break}nJ(q,5);G=y.cVO;return f.yield(Dz(i4j(N,G,R),E.eOi,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:V=f.yieldResult;case 17:return nJ(q,3),f.yield(Dz(tAl(y,V),E.gOK,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return nJ(q,8),f.yield(J,20);case 20:return w=new _.T8({challenge:V,bKo:q.options.bKo,yNV:q.options.yNV}),f.yield(Dz(w.uHX,E.rAE,function(){return Promise.reject(Error("Ja"))}),21);
case 21:c=w;f.jumpTo(12);break;case 15:D=_.K7(f),q.handleError(D),O4l(q);case 11:r++;f.jumpTo(10);break;case 12:if(q.isDisposed()){f.jumpTo(5);break}c&&(b=void 0,QOT(q,F),F=c,YVM(q,c),O4l(q));nJ(q,2);q.g3=new w4x(E.mpg,E.f1F,E.l1q);return f.yield(q.g3.promise,22);case 22:q.g3=void 0;if(q.isDisposed()){f.jumpTo(5);break}f.jumpTo(3);break;case 5:(k=F)==null||k.dispose(),_.hj(f)}})};
s1.prototype.jA6=function(){return this.gjz.share()};
var jO4={mpg:432E5,f1F:3E5,l1q:10,hRg:1E4,eOi:3E4,gOK:3E4,rAE:6E4,hii:1E3,xWY:6E4,tAK:6E5,eiu:.25,vii:2,maxAttempts:10},w4x=function(q,N,b){var y=this;this.endTimeMs=Date.now()+q;this.promise=new Promise(function(E){y.resolver=E});
var J=function(){var E=y.endTimeMs-Date.now();E<=b?y.resolver(0):setTimeout(J,Math.min(E,N))};
J()};var lMj,hVJ=(lMj=Math.imul)!=null?lMj:function(q,N){return q*N|0},hW=[196,
200,224,18],aX=function(q,N,b){b=b===void 0?[]:b;this.maxItems=q;this.lG=N===void 0?0:N;this.bx=b},KaE=function(q){var N=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!N)return new aX(q);var b=N.split(",");if(b.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new aX(q);N=b.slice(1);N.length===1&&N[0]===""&&(N=[]);b=Number(b[0]);return isNaN(b)||b<0||b>N.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new aX(q)):new aX(q,b,N)};
aX.prototype.serialize=function(){return String(this.lG)+","+this.bx.join()};
aX.prototype.insert=function(q,N){var b=void 0;if(this.bx[this.lG]!==q){var y=this.bx.indexOf(q);y!==-1?(this.bx.splice(y,1),y<this.lG&&this.lG--,this.bx.splice(this.lG,0,q)):(b=this.bx[this.lG],this.bx[this.lG]=q)}this.lG=(this.lG+1)%this.maxItems;q=KaD("iU5q-!O9@$",this.serialize());b&&q&&N(b);return q};
var Dgl=function(q,N){this.hMF=N;try{var b=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(y){b=!1}b&&(this.index=KaE(q))},hVl=function(q,N,b,y,J){var E=q.index?_.IX(q.hMF,function(){return Cvn(q.index,UgD(N),b,y,J)},"W"):"u";
q.hMF.cto(E)},k14=function(q,N,b){var y=_.Z(q.index?_.IX(q.hMF,function(){return IMD(UgD(N),b)},"R"):["u"]),J=y.next().value;
y=y.next().value;q.hMF.lkb(J);return y};var UgE={toString:function(q){var N=[],b=0;q-=-2147483648;N[b++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(q%52);for(q=Math.floor(q/52);q>0;)N[b++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(q%62),q=Math.floor(q/62);return N.join("")}};var IME=function(q){q=fMq(q);for(var N=2654435769,b=2654435769,y=314159265,J=q.length,E=J,F=0,R=function(){N-=b;N-=y;N^=y>>>13;b-=y;b-=N;b^=N<<8;y-=N;y-=b;y^=b>>>13;N-=b;N-=y;N^=y>>>12;b-=y;b-=N;b^=N<<16;y-=N;y-=b;y^=b>>>5;N-=b;N-=y;N^=y>>>3;b-=y;b-=N;b^=N<<10;y-=N;y-=b;y^=b>>>15};E>=12;E-=12,F+=12)N+=CvT(q,F),b+=CvT(q,F+4),y+=CvT(q,F+8),R();
y+=J;switch(E){case 11:y+=q[F+10]<<24;case 10:y+=q[F+9]<<16;case 9:y+=q[F+8]<<8;case 8:b+=q[F+7]<<24;case 7:b+=q[F+6]<<16;case 6:b+=q[F+5]<<8;case 5:b+=q[F+4];case 4:N+=q[F+3]<<24;case 3:N+=q[F+2]<<16;case 2:N+=q[F+1]<<8;case 1:N+=q[F]}R();return UgE.toString(y)},fMq=function(q){for(var N=[],b=0;b<q.length;b++)N.push(q.charCodeAt(b));
return N},CvT=function(q,N){return q[N]+(q[N+1]<<8)+(q[N+2]<<16)+(q[N+3]<<24)};var Sk=function(q){_.UN.call(this);this.gb=q;this.avQ=new _.yk};
_.Y(Sk,_.UN);var TOx=function(q,N){var b=setTimeout(function(){q.avQ.resolve()},N);
q.addOnDisposeCallback(function(){return void clearTimeout(b)})};
Sk.prototype.iKb=function(q,N){var b=this.vS(q);N==null||N(b);return _.IX(this.gb,function(){return _.Uf(b,2)},this.a1b)};
var sOJ=function(q,N,b,y){return _.IX(q.gb,function(){return b?q.iKb(N,y):q.vS(N,y)},q.kUB)},nfT=function(q,N,b,y){Sk.call(this,q);
this.vLe=N;this.huQ=b;this.kUB="m";this.a1b="x";this.xhE=0;TOx(this,y)};
_.Y(nfT,Sk);nfT.prototype.vS=function(q,N){var b=this;this.gb.hk(this.kUB);++this.xhE>=this.huQ&&this.avQ.resolve();var y=q();q=_.IX(this.gb,function(){return b.vLe(y)},"C");
if(q===void 0)throw new E1(17,"YNJ:Undefined");if(!(q instanceof Uint8Array))throw new E1(18,"ODM:Invalid");N==null||N(q);return q};
var aMj=function(q,N,b){Sk.call(this,q);this.xTi=N;this.kUB="f";this.a1b="z";TOx(this,b)};
_.Y(aMj,Sk);aMj.prototype.vS=function(){return this.xTi};
var SVq=function(q,N,b){Sk.call(this,q);this.d6i=N;this.kUB="w";this.a1b="z";TOx(this,b)};
_.Y(SVq,Sk);SVq.prototype.vS=function(){var q=this;return _.IX(this.gb,function(){return _.HA(q.d6i)},"d")};
SVq.prototype.iKb=function(){return this.d6i};
var Wax=function(q,N){Sk.call(this,q);this.error=N;this.kUB="e";this.a1b="y"};
_.Y(Wax,Sk);var LaT=function(q,N){var b=(N(q.error.message)+":"+N(q.error.stack)).substring(0,2048);N=b.length+1;b=TOJ(b);var y=new Uint8Array(4+b.length);y.set([42,N&127|128,N>>7,q.error.code]);y.set(b,4);return y};
Wax.prototype.vS=function(){if(this.v8Q)return this.v8Q;this.v8Q=LaT(this,function(q){return"_"+IME(q)});
return LaT(this,function(q){return q})};
var p44=function(q,N,b){Sk.call(this,q);this.waF=N;this.clientState=b;this.kUB="S";this.a1b="q"};
_.Y(p44,Sk);p44.prototype.vS=function(){var q=Math.floor(Date.now()/1E3),N=[Math.random()*255,Math.random()*255],b=N.concat([this.waF&255,this.clientState],[q>>24&255,q>>16&255,q>>8&255,q&255]);q=new Uint8Array(2+b.length);q[0]=34;q[1]=b.length;q.set(b,2);b=q.subarray(2);for(var y=N=N.length;y<b.length;++y)b[y]^=b[y%N];this.gb.zKS(this.clientState);return q};var PvJ={mTK:3E4,a9u:2E4},W2=function(q){_.UN.call(this);var N=this;this.tQB=new _.yk;this.qpW=0;this.v1=void 0;this.state=2;this.vm=q.vm;this.n2=q.n2;this.em6=Object.assign({},PvJ,q.em6||{});this.hG=q.vm.jA6();var b;this.onError=(b=q.onError)!=null?b:function(){};
this.iRQ=q.iRQ||!1;if(MAJ(q)){var y=this.vm;this.may=function(){return vf1(y).catch(function(F){F=N.reportError(new E1(N.s8?20:32,"TRG:Disposed",F));N.v1=F;var R;(R=N.s8)==null||R.dispose();N.s8=void 0;N.tQB.reject(F)})};
G1M(y,function(){return void ofM(N)});
y.bjO===2&&ofM(this)}else this.may=q.ikE,ofM(this);var J=this.hG.share();J.hk("o");var E=new yzo(J,"o");this.tQB.promise.then(function(){E.done();J.um();J.dispose()},function(){return void J.dispose()});
this.addOnDisposeCallback(function(){N.s8?(N.s8.dispose(),N.s8=void 0):N.v1?N.hG.um():(N.v1=N.reportError(new E1(32,"TNP:Disposed")),N.hG.um(),N.tQB.reject(N.v1))});
_.YN(this,this.hG)};
_.Y(W2,_.UN);W2.prototype.duv=function(){return this.tQB.promise};
var AzM=function(q,N){if(!(N instanceof E1))if(N instanceof _.hl){var b=Error(N.toString());b.stack=N.stack;N=new E1(11,"EBH:Error",b)}else N=new E1(12,"BSO:Unknown",N);return q.reportError(N)},ofM=function(q){var N,b,y,J,E,F,R,c,z,m,r,X,V,G,w;
return _.d(function(D){switch(D.nextAddress){case 1:N=void 0;q.qpW++;b=new _.yk;q.vm instanceof s1&&q.vm.hAF.push(b.promise);if(!q.iRQ){D.jumpTo(2);break}y=new _.yk;setTimeout(function(){return void y.resolve()});
return D.yield(y.promise,2);case 2:return J=q.hG.share(),_.Yi(D,4,5),q.state=5,E={},F=[],D.yield(Dz(q.vm.snapshot({hm:E,m6V:F}),q.em6.a9u,function(){return Promise.reject(new E1(15,"MDA:Timeout"))}),7);
case 7:R=D.yieldResult;if(q.isDisposed())throw new E1(q.s8?20:32,"MDA:Disposed");c=F[0];q.state=6;return D.yield(Dz(eVj(q.n2,R),q.em6.mTK,function(){return Promise.reject(new E1(10,"BWB:Timeout"))}),8);
case 8:z=D.yieldResult;if(q.isDisposed())throw new E1(q.s8?20:32,"BWB:Disposed");q.state=7;N=_.IX(J,function(){var f=BOx(q,z,b,c);f.avQ.promise.then(function(){return void q.may()});
return f},"i");
case 5:_.w0(D);J.dispose();_.l$(D,6);break;case 4:m=_.K7(D);(r=N)==null||r.dispose();if(!q.v1){X=AzM(q,m);b.resolve();var k;if(k=q.vm instanceof s1&&q.qpW<2)a:if(m instanceof E1)k=m.code!==32&&m.code!==20&&m.code!==10;else{if(m instanceof _.hl)switch(m.code){case 2:case 13:case 14:case 4:break;default:k=!1;break a}k=!0}if(k)return V=(1+Math.random()*.25)*(q.s8?6E4:1E3),G=setTimeout(function(){return void q.may()},V),q.addOnDisposeCallback(function(){return void clearTimeout(G)}),D.return();
q.v1=X}J.logError(q.s8?13:14);q.tQB.reject(q.v1);return D.return();case 6:q.state=8,q.qpW=0,(w=q.s8)==null||w.dispose(),q.s8=N,q.tQB.resolve(),_.hj(D)}})},BOx=function(q,N,b,y){var J=UvE(N,2)*1E3;
if(J<=0)throw new E1(31,"TTM:Invalid");if(_.xs(N,4))return new SVq(q.hG,_.xs(N,4),J);if(!UvE(N,3))return new aMj(q.hG,r4E(_.uZ(N,1)),J);if(!y)throw new E1(4,"PMD:Undefined");y=y(r4E(_.uZ(N,1)));if(!(y instanceof Function))throw new E1(16,"APF:Failed");q.dwu=Math.floor((Date.now()+J)/1E3);q=new nfT(q.hG,y,UvE(N,3),J);q.addOnDisposeCallback(function(){return void b.resolve()});
return q};
W2.prototype.vS=function(q){return H41(this,Object.assign({},q),!1)};
W2.prototype.iKb=function(q){return H41(this,Object.assign({},q),!0)};
W2.prototype.iYQ=function(q){if(q>150)return!1;try{return this.cache=new Dgl(q,this.hG),!0}catch(N){return this.reportError(new E1(22,"GBJ:init",N)),!1}};
W2.prototype.reportError=function(q){this.hG.logError(q.code);this.onError(q);return q};
var qaj=function(q,N){N=N instanceof E1?N:new E1(5,"TVD:error",N);return q.reportError(N)},H41=function(q,N,b){try{if(q.isDisposed())throw new E1(21,"BNT:disposed");
if(!q.s8&&q.v1)throw q.v1;var y,J;return(J=(y=NDM(q,N,b))!=null?y:bYx(q,N,b))!=null?J:yS1(q,N,b)}catch(E){if(!N.j6v)throw qaj(q,E);return JSx(q,b,E)}},NDM=function(q,N,b){var y;
return(y=q.s8)==null?void 0:sOJ(y,function(){return E5j(q,N)},b,function(J){var E;
if(q.s8 instanceof nfT&&((E=N.c2)==null?0:E.x3I))try{var F;(F=q.cache)==null||hVl(F,E5j(q,N),J,N.c2.cKX,q.dwu-120)}catch(R){q.reportError(new E1(24,"ELX:write",R))}})},bYx=function(q,N,b){var y;
if((y=N.c2)!=null&&y.pCU)try{var J,E=(J=q.cache)==null?void 0:k14(J,E5j(q,N),N.c2.cKX);return E?b?_.IX(q.hG,function(){return _.Uf(E,2)},"a"):E:void 0}catch(F){q.reportError(new E1(23,"RXO:read",F))}},yS1=function(q,N,b){var y={stack:[],
error:void 0,hasError:!1};try{if(!N.rxL)throw new E1(29,"SDF:notready");return sOJ(Vnv(y,new p44(q.hG,0,q.state)),function(){return E5j(q,N)},b)}catch(J){y.error=J,y.hasError=!0}finally{jJR(y)}},JSx=function(q,N,b){var y={stack:[],
error:void 0,hasError:!1};try{var J=qaj(q,b);return sOJ(Vnv(y,new Wax(q.hG,J)),function(){return[]},N)}catch(E){y.error=E,y.hasError=!0}finally{jJR(y)}},E5j=function(q,N){return N.x7n?N.x7n:N.hm?_.IX(q.hG,function(){return N.x7n=TOJ(N.hm)},"c"):[]},MAJ=function(q){return Il(function(N){if(!$L(N))return!1;
for(var b=_.Z(Object.entries(q)),y=b.next();!y.done;y=b.next()){var J=_.Z(y.value);y=J.next().value;J=J.next().value;if(!(y in N)){if(J.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!J(N[y]))return!1}return!0})}({vm:function(q){return Il(function(N){return N instanceof q})}(s1)},"");var g51=function(){var q=_.HT();this.JSC$9995_streamzService=q;q.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",mW("cookie_enabled"),mW("cookie_3p_enabled"),_.Xz("browser"))};
g51.prototype.increment=function(q,N,b){this.JSC$9995_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",q,N,b)};
var yAR=function(){var q=_.HT();this.JSC$10019_streamzService=q;q.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",rE("tick"),mW("from_st_cookie"))};
yAR.prototype.increment=function(q,N){this.JSC$10019_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",q,N)};
var ZYl=function(){var q=_.HT();this.JSC$10025_streamzService=q;q.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Xz("status"))};
ZYl.prototype.increment=function(q){this.JSC$10025_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",q)};
var FAx=function(){var q=_.HT();this.JSC$10028_streamzService=q;q.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Xz("stage"),mW("is_using_ytd_player"),mW("has_expandable_tiles"))};
FAx.prototype.increment=function(q,N,b){this.JSC$10028_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",q,N,b)};
var Rwv=function(){var q=_.HT();this.JSC$10031_streamzService=q;q.addNewCounter("/client_streamz/youtube/web/response_signature",_.Xz("check_status"))};
Rwv.prototype.increment=function(q){this.JSC$10031_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/web/response_signature",q)};
var dm1=function(){var q=_.HT();this.JSC$10034_streamzService=q;q.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Xz("sig"),rE("de"))};
dm1.prototype.increment=function(q,N){this.JSC$10034_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/web/e_sig_log",q,N)};
var cSE=function(){var q=_.HT();this.JSC$10037_streamzService=q;q.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Xz("sig"),rE("de"))};
cSE.prototype.increment=function(q,N){this.JSC$10037_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/web/e_sig_en",q,N)};
_.ull=function(){var q=_.HT();this.JSC$10040_streamzService=q;q.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Xz("action"))};
_.ull.prototype.increment=function(q){this.JSC$10040_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/web/enforcement_intent",q)};var LJ=window;var zwJ=(new Date).getTime();_.nM.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.nM.createSet("action","cite","data","formaction","href","manifest","poster","src");var $mq=function(q){this.servicePromise_=q;q.then((0,_.fF)(function(){},this),function(){},this)},tdF=function(q,N,b){q.servicePromise_.then(function(y){var J=y[N];
if(!J)throw Error("Ka`"+N);return J.apply(y,b)})},XvJ=function(q,N,b){for(var y=Array(arguments.length-2),J=2;J<arguments.length;J++)y[J-2]=arguments[J];
J=mmj(q,N).then(function(E){return E.apply(null,y)},function(E){E=Error("La`"+N+"`"+q+"`"+E,{cause:E});
delete rS1[N];return _.ra(E)});
return new $mq(J)},rS1={},mmj=function(q,N){var b=rS1[N];
if(b)return b;b=(b=_.Ng(N))?_.bG(b):(new _.wL(function(y,J){var E=(new Q7(document)).createElement("SCRIPT");E.async=!0;_.R9(E,_.hB(ztT(q)));E.onload=E.onreadystatechange=function(){E.readyState&&E.readyState!="loaded"&&E.readyState!="complete"||y()};
E.onerror=function(F){J(Error("Ma`"+N+"`"+q,{cause:F}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(E)})).then(function(){var y=_.Ng(N);
if(!y)throw Error("Na`"+N+"`"+q);return y});
return rS1[N]=b};var Vd1={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},xmE=function(){var q=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=sOu(function(){return _.d(function(N){if(N.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?N.return(Promise.resolve()):N.yield(jwF(q),2);q.rsaForList.length>
0&&document.addEventListener("click",q.requestAccessForHelpPanel);_.hj(N)})});
this.requestAccessForHelpPanel=function(){if(!(q.rsaForPromises.length>0)){for(var N=_.Z(q.rsaForList),b=N.next();!b.done;b=N.next()){b=b.value;try{q.rsaForPromises.push(document.requestStorageAccessFor(b))}catch(y){}}Promise.all(q.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){q.reset()})}}};
xmE.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var jwF=function(q){var N,b,y,J;return _.d(function(E){switch(E.nextAddress){case 1:N=_.Z(Object.values(Vd1)),b=N.next();case 2:if(b.done){E.jumpTo(0);break}y=b.value;_.Yi(E,5);return E.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:y}),7);case 7:J=E.yieldResult;J.state!=="granted"&&q.rsaForList.push(y);_.Ea(E,3);break;case 5:_.K7(E);E.jumpTo(0);break;case 3:b=N.next(),E.jumpTo(2)}})};(new xmE).initialize();var v5v=function(q){this.JSC$10054_loader_=q};
v5v.prototype.startHelp=function(q){tdF(this.JSC$10054_loader_,"startHelp",arguments)};
v5v.prototype.JSC$10056_loadChatSupport=function(q){tdF(this.JSC$10054_loader_,"loadChatSupport",arguments)};
var Yaj=function(q,N){N=N||{};q=XvJ(Gnx,"help.service.Lazy.create",q,{apiKey:N.apiKey||N.apiKey,asxUiUri:N.asxUiUri||N.asxUiUri,environment:N.environment||N.environment,flow:N.flow||N.flow,frdProductData:N.frdProductData||N.frdProductData,frdProductDataSerializedJspb:N.frdProductDataSerializedJspb||N.frdProductDataSerializedJspb,helpCenterPath:N.helpCenterPath||N.helpCenterPath,locale:N.locale||N.locale||"en-US".replace(/-/g,"_"),nonce:N.nonce||N.nonce,productData:N.productData||N.productData,receiverUri:N.receiverUri||
N.receiverUri,renderApiUri:N.renderApiUri||N.renderApiUri,theme:N.theme||N.theme,window:N.window||N.window});return new v5v(q)},Gnx=new Ar(pkd,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var Qwv=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Qwv,_.Rx);var OYF=_.Qe(Qwv);var wv1=[0,_.pL,I6,Gcl];_.iYR=new function(q,N,b,y){this.configType=q;this.flagName=b;this.defaultValue=y;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 KAv=function(){this.retriever=_.tz().resolve(l3E)};_.WD={get payments(){return window.payments}};aMn(Node);aMn(Element);var Dml=aMn(HTMLElement);aMn(SVGElement);var hwx,knx,MH,UmT;hwx=function(q){return typeof q.className=="string"?q.className:q.getAttribute&&q.getAttribute("class")||""};
knx=function(q){return q.classList?q.classList:hwx(q).match(/\S+/g)||[]};
_.pJ=function(q,N){typeof q.className=="string"?q.className=N:q.setAttribute&&q.setAttribute("class",N)};
_.P2=function(q,N){return q.classList?q.classList.contains(N):_.aJ(knx(q),N)};
_.nt=function(q,N){if(q.classList)q.classList.add(N);else if(!_.P2(q,N)){var b=hwx(q);_.pJ(q,b+(b.length>0?" "+N:N))}};
MH=function(q,N){if(q.classList)Array.prototype.forEach.call(N,function(J){_.nt(q,J)});
else{var b={};Array.prototype.forEach.call(knx(q),function(J){b[J]=!0});
Array.prototype.forEach.call(N,function(J){b[J]=!0});
N="";for(var y in b)N+=N.length>0?" "+y:y;_.pJ(q,N)}};
_.TT=function(q,N){q.classList?q.classList.remove(N):_.P2(q,N)&&_.pJ(q,Array.prototype.filter.call(knx(q),function(b){return b!=N}).join(" "))};
UmT=function(q,N){q.classList?Array.prototype.forEach.call(N,function(b){_.TT(q,b)}):_.pJ(q,Array.prototype.filter.call(knx(q),function(b){return!_.aJ(N,b)}).join(" "))};var f3x=function(q){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=q.document},TDq=function(q,N){C7J(q);
var b=document.createElement("div"),y;(y=N.parentNode)==null||y.insertBefore(b,N);b.tabIndex=0;b.id="fc-focus-trap-pre-div";b=document.createElement("div");var J;(J=N.parentNode)==null||J.insertBefore(b,N.nextSibling);b.tabIndex=0;b.id="fc-focus-trap-post-div";var E=I3x(q,N),F=I3x(q,N,!0);E&&F&&(q.focusChangeHandler=function(){var R=q.document.activeElement;if(R)if(_.BY(N,R))q.previouslyFocusedElement=R;else if(R===q.document.activeElement)switch(q.previouslyFocusedElement){case E:F.focus();q.previouslyFocusedElement=
F;break;default:E.focus(),q.previouslyFocusedElement=E}},q.document.addEventListener("focus",q.focusChangeHandler,!0),q.document.addEventListener("focusin",q.focusChangeHandler))},C7J=function(q){q.focusChangeHandler&&(document.removeEventListener("focus",q.focusChangeHandler,!0),document.removeEventListener("focusin",q.focusChangeHandler),q.focusChangeHandler=null);
var N;(N=document.getElementById("fc-focus-trap-pre-div"))==null||N.remove();var b;(b=document.getElementById("fc-focus-trap-post-div"))==null||b.remove()},swv=function(q,N,b,y,J){b=b===void 0?!0:b;
var E;J=(E=J===void 0?null:J)!=null?E:I3x(q,N,y===void 0?!1:y);J!==null&&(J.focus(),b&&TDq(q,N))};
f3x.prototype.disableButton=function(q,N){N=N===void 0?null:N;q.disabled=!0;N&&_.nt(q,N)};
var I3x=function(q,N,b){b=b===void 0?!1:b;if(doz(N)&&!b)return N;var y=b?[].slice.call(N.children,0).reverse():N.children;y=_.Z(y);for(var J=y.next();!J.done;J=y.next())if(J=J.value,Dml(J)&&(J=I3x(q,J,b)))return J;return doz(N)&&b?N:null};var n5F=function(q){this.originalBodyOverflow="";this.JSC$10081_domHelper=k7(q);var N;this.isScrollingEnabled=((N=this.JSC$10081_domHelper.JSC$9407_document_.body)==null?void 0:N.style.overflow)!=="hidden"};
n5F.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10081_domHelper.JSC$9407_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.oK(_.TP,_.UN);_.g=_.TP.prototype;_.g.JSC$10084_id_=0;_.g.disposeInternal=function(){_.TP.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10082_listener_;delete this.handler_};
_.g.start=function(q){this.stop();this.JSC$10084_id_=D6(this.callback_,q!==void 0?q:this.JSC$10082_interval_)};
_.g.stop=function(){this.isActive()&&_.JZ.clearTimeout(this.JSC$10084_id_);this.JSC$10084_id_=0};
_.g.fire=function(){this.stop();this.JSC$10084_doAction_()};
_.g.isActive=function(){return this.JSC$10084_id_!=0};
_.g.JSC$10084_doAction_=function(){this.JSC$10084_id_=0;this.JSC$10082_listener_&&this.JSC$10082_listener_.call(this.handler_)};_.xH=function(q){_.UN.call(this);this.handler_=q;this.JSC$10085_keys_={}};
_.oK(_.xH,_.UN);var a3x=[];_.xH.prototype.listen=function(q,N,b,y){Array.isArray(N)||(N&&(a3x[0]=N.toString()),N=a3x);for(var J=0;J<N.length;J++){var E=_.tn(q,N[J],b||this.handleEvent,y||!1,this.handler_||this);if(!E)break;this.JSC$10085_keys_[E.key]=E}return this};
_.xH.prototype.listenOnce=function(q,N,b,y){return SaJ(this,q,N,b,y)};
var SaJ=function(q,N,b,y,J,E){if(Array.isArray(b))for(var F=0;F<b.length;F++)SaJ(q,N,b[F],y,J,E);else{N=c$(N,b,y||q.handleEvent,J,E||q.handler_||q);if(!N)return q;q.JSC$10085_keys_[N.key]=N}return q};
_.xH.prototype.unlisten=function(q,N,b,y,J){if(Array.isArray(N))for(var E=0;E<N.length;E++)this.unlisten(q,N[E],b,y,J);else if(q=uCM(q,N,b||this.handleEvent,_.AZ(y)?!!y.capture:!!y,J||this.handler_||this))uq(q),delete this.JSC$10085_keys_[q.key];return this};
_.xH.prototype.removeAll=function(){_.nM.forEach(this.JSC$10085_keys_,function(q,N){this.JSC$10085_keys_.hasOwnProperty(N)&&uq(q)},this);
this.JSC$10085_keys_={}};
_.xH.prototype.disposeInternal=function(){_.xH.superClass_.disposeInternal.call(this);this.removeAll()};
_.xH.prototype.handleEvent=function(){throw Error("Oa");};var oX=function(){_.UN.call(this);this.services_={}};
_.oK(oX,_.UN);oX.prototype.connect=function(q){q&&q()};
oX.prototype.isConnected=function(){return!0};
oX.prototype.registerService=function(q,N,b){this.services_[q]={callback:N,objectPayload:!!b}};
oX.prototype.getService=function(q,N){var b=this.services_[q];return b?b:this.defaultService_?{callback:_.dg(this.defaultService_,q),objectPayload:_.AZ(N)}:null};
var WAo=function(q,N){if(N&&typeof q==="string")try{return JSON.parse(q)}catch(b){return null}else if(!N&&typeof q!=="string")return(0,_.kC)(q);return q};
oX.prototype.disposeInternal=function(){oX.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 Al=function(q,N){this.sequence_=[];this.onCancelFunction_=q;this.defaultScope_=N||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};
Al.prototype.cancel=function(q){if(this.fired_)this.result_ instanceof Al&&this.result_.cancel();else{if(this.parent_){var N=this.parent_;delete this.parent_;q?N.cancel(q):(N.branches_--,N.branches_<=0&&N.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new ek(this))}};
Al.prototype.continue_=function(q,N){this.blocked_=!1;LAR(this,q,N)};
var LAR=function(q,N,b){q.fired_=!0;q.result_=b;q.hadError_=!N;pvv(q)},MdF=function(q){if(q.fired_){if(!q.silentlyCanceled_)throw new P7x(q);
q.silentlyCanceled_=!1}};
Al.prototype.callback=function(q){MdF(this);LAR(this,!0,q)};
Al.prototype.errback=function(q){MdF(this);LAR(this,!1,q)};
var o5x=function(q,N,b){B2(q,N,null,b)};
Al.prototype.finally=function(q){var N=this;return AST(new Promise(function(b,y){B2(N,function(J){q();b(J)},function(J){q();
y(J)})}))};
var B2=function(q,N,b,y){var J=q.fired_;J||(N===b?N=b=wb(N):(N=wb(N),b=wb(b)));q.sequence_.push([N,b,y]);J&&pvv(q)};
Al.prototype.then=function(q,N,b){var y,J,E=new _.wL(function(F,R){J=F;y=R});
B2(this,J,function(F){F instanceof ek?E.cancel():y(F);return ew1},this);
return E.then(q,N,b)};
juM(Al);var BDF=function(q,N){N instanceof Al?o5x(q,(0,_.fF)(N.branch,N)):o5x(q,function(){return N})};
Al.prototype.branch=function(q){var N=new Al;B2(this,N.callback,N.errback,N);q&&(N.parent_=this,this.branches_++);return N};
Al.prototype.isError=function(q){return q instanceof Error};
var HYT=function(q){return gL(q.sequence_,function(N){return typeof N[1]==="function"})},ew1={},pvv=function(q){if(q.unhandledErrorId_&&q.fired_&&HYT(q)){var N=q.unhandledErrorId_,b=q2l[N];
b&&(_.JZ.clearTimeout(b.JSC$10102_id_),delete q2l[N]);q.unhandledErrorId_=0}q.parent_&&(q.parent_.branches_--,delete q.parent_);N=q.result_;for(var y=b=!1;q.sequence_.length&&!q.blocked_;){var J=q.sequence_.shift(),E=J[0],F=J[1];J=J[2];if(E=q.hadError_?F:E)try{var R=E.call(J||q.defaultScope_,N);R===ew1&&(R=void 0);R!==void 0&&(q.hadError_=q.hadError_&&(R==N||q.isError(R)),q.result_=N=R);if(x71(N)||typeof _.JZ.Promise==="function"&&N instanceof _.JZ.Promise)y=!0,q.blocked_=!0}catch(c){N=c,q.hadError_=
!0,HYT(q)||(b=!0)}}q.result_=N;y&&(R=(0,_.fF)(q.continue_,q,!0),y=(0,_.fF)(q.continue_,q,!1),N instanceof Al?(B2(N,R,y),N.blocking_=!0):N.then(R,y));b&&(N=new NL1(N),q2l[N.JSC$10102_id_]=N,q.unhandledErrorId_=N.JSC$10102_id_)},AST=function(q){var N=new Al;
q.then(function(b){N.callback(b)},function(b){N.errback(b)});
return N},P7x=function(){_.bn.call(this)};
_.oK(P7x,_.bn);P7x.prototype.message="Deferred has already fired";P7x.prototype.name="AlreadyCalledError";var ek=function(){_.bn.call(this)};
_.oK(ek,_.bn);ek.prototype.message="Deferred was canceled";ek.prototype.name="CanceledError";var NL1=function(q){this.JSC$10102_id_=_.JZ.setTimeout((0,_.fF)(this.throwError,this),0);this.JSC$10102_error_=q};
NL1.prototype.throwError=function(){delete q2l[this.JSC$10102_id_];throw this.JSC$10102_error_;};
var q2l={};var bo1={1:"NativeMessagingTransport"},yr1=["pu","lru","pru","lpu","ppu"],EyE=function(){for(var q=10,N=Jrx,b=N.length,y="";q-- >0;)y+=N.charAt(Math.floor(Math.random()*b));return y},Jrx="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var H2=function(q){_.UN.call(this);this.JSC$10105_domHelper_=q||k7()};
_.oK(H2,_.UN);H2.prototype.transportType=0;H2.prototype.getWindow=function(){return this.JSC$10105_domHelper_.getWindow()};
H2.prototype.getName=function(){return bo1[String(this.transportType)]||""};var qj=function(q,N,b,y,J){H2.call(this,b);this.JSC$10108_channel_=q;this.protocolVersion_=J||2;this.peerHostname_=N||"*";this.JSC$10108_eventHandler_=new _.xH(this);this.maybeAttemptToConnectTimer_=new _.jL(100,this.getWindow());this.oneSidedHandshake_=!!y;this.setupAckReceived_=new Al;this.setupAckSent_=new Al;this.JSC$10108_connected_=new Al;this.endpointId_=EyE();this.peerEndpointId_=null;this.oneSidedHandshake_?gyq(this.JSC$10108_channel_)==1?BDF(this.JSC$10108_connected_,this.setupAckReceived_):
BDF(this.JSC$10108_connected_,this.setupAckSent_):(BDF(this.JSC$10108_connected_,this.setupAckReceived_),this.protocolVersion_==2&&BDF(this.JSC$10108_connected_,this.setupAckSent_));o5x(this.JSC$10108_connected_,this.notifyConnected_,this);this.JSC$10108_connected_.callback(!0);this.JSC$10108_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.oK(qj,H2);qj.prototype.peerProtocolVersion_=null;qj.prototype.initialized_=!1;qj.prototype.transportType=1;var Zo1={};qj.prototype.sendTimerId_=0;
var d6x=function(q){var N=q.event_.data;if(typeof N!=="string")return!1;var b=N.indexOf("|"),y=N.indexOf(":");if(b==-1||y==-1)return!1;var J=N.substring(0,b);b=N.substring(b+1,y);N=N.substring(y+1);if(y=Nj[J])return y.xpcDeliver(b,N,q.event_.origin),!0;y=F0J(N)[0];for(var E in Nj){var F=Nj[E];if(gyq(F)==1&&!F.isConnected()&&b=="tp"&&(y=="SETUP"||y=="SETUP_NTPV2")&&Rr4(F,q.event_.origin))return delete Nj[F.name],F.name=J,Nj[J]=F,F.xpcDeliver(b,N),!0}return!1},cr1=function(q){q.protocolVersion_!=2||
q.peerProtocolVersion_!=null&&q.peerProtocolVersion_!=2||q.send("tp","SETUP_NTPV2,"+q.endpointId_);
q.peerProtocolVersion_!=null&&q.peerProtocolVersion_!=1||q.send("tp","SETUP")},ufJ=function(q,N){if(q.protocolVersion_!=2||q.peerProtocolVersion_!=null&&q.peerProtocolVersion_!=2||N!=2){if(q.peerProtocolVersion_!=null&&q.peerProtocolVersion_!=1||N!=1)return;
q.send("tp","SETUP_ACK")}else q.send("tp","SETUP_ACK_NTPV2");q.setupAckSent_.fired_||q.setupAckSent_.callback(!0)},zr1=function(q,N){N>q.peerProtocolVersion_&&(q.peerProtocolVersion_=N);
q.peerProtocolVersion_==1&&(q.setupAckSent_.fired_||q.oneSidedHandshake_||q.setupAckSent_.callback(!0),q.peerEndpointId_=null)};
_.g=qj.prototype;_.g.connect=function(){var q=this.getWindow(),N=_.en(q),b=Zo1[N];typeof b!=="number"&&(b=0);b==0&&_.tn(q.postMessage?q:q.document,"message",d6x,!1,qj);Zo1[N]=b+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.g.maybeAttemptToConnect_=function(){var q=gyq(this.JSC$10108_channel_)==0;this.oneSidedHandshake_&&q||this.JSC$10108_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),cr1(this))};
_.g.send=function(q,N){var b=this.JSC$10108_channel_.peerWindowObject_;b&&(this.send=function(y,J){var E=this,F=this.JSC$10108_channel_.name;this.sendTimerId_=D6(function(){E.sendTimerId_=0;try{var R=b.postMessage?b:b.document;R.postMessage&&R.postMessage(F+"|"+y+":"+J,E.peerHostname_)}catch(c){}},0)},this.send(q,N))};
_.g.notifyConnected_=function(){var q=this.JSC$10108_channel_,N=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;q.isConnected()||q.connectionDelay_&&q.connectionDelay_.isActive()||(q.state_=2,_.RA(q.connectionDelay_),N!==void 0?(q.connectionDelay_=new _.TP(q.connectCb_,N),q.connectionDelay_.start()):(q.connectionDelay_=null,q.connectCb_()))};
_.g.disposeInternal=function(){if(this.initialized_){var q=this.getWindow(),N=_.en(q),b=Zo1[N];Zo1[N]=b-1;b==1&&_.QL(q.postMessage?q:q.document,"message",d6x,!1,qj)}this.sendTimerId_&&(_.JZ.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.RA(this.JSC$10108_eventHandler_);delete this.JSC$10108_eventHandler_;_.RA(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10108_connected_.cancel();delete this.JSC$10108_connected_;delete this.send;qj.superClass_.disposeInternal.call(this)};
var F0J=function(q){q=q.split(",");q[1]=q[1]||null;return q};var t0M;_.bl=function(q){if(q.getValues&&typeof q.getValues=="function")return q.getValues();if(typeof Map!=="undefined"&&q instanceof Map||typeof Set!=="undefined"&&q instanceof Set)return Array.from(q.values());if(typeof q==="string")return q.split("");if(_.pC(q)){for(var N=[],b=q.length,y=0;y<b;y++)N.push(q[y]);return N}return _.nM.getValues(q)};
_.$61=function(q){if(q.getKeys&&typeof q.getKeys=="function")return q.getKeys();if(!q.getValues||typeof q.getValues!="function"){if(typeof Map!=="undefined"&&q instanceof Map)return Array.from(q.keys());if(!(typeof Set!=="undefined"&&q instanceof Set)){if(_.pC(q)||typeof q==="string"){var N=[];q=q.length;for(var b=0;b<q;b++)N.push(b);return N}return _.nM.getKeys(q)}}};
t0M=function(q,N,b){if(q.forEach&&typeof q.forEach=="function")q.forEach(N,b);else if(_.pC(q)||typeof q==="string")Array.prototype.forEach.call(q,N,b);else for(var y=_.$61(q),J=_.bl(q),E=J.length,F=0;F<E;F++)N.call(b,J[F],y&&y[F],q)};var usd,RS,cw,vyJ,m6x,X_M,rrR,x6x,V0j;
_.a$=function(q,N){this.JSC$10113_domain_=this.userInfo_=this.scheme_="";this.JSC$10113_port_=null;this.fragment_=this.JSC$10113_path_="";this.JSC$10113_ignoreCase_=!1;var b;q instanceof _.a$?(this.JSC$10113_ignoreCase_=N!==void 0?N:q.JSC$10113_ignoreCase_,_.yw(this,q.scheme_),this.userInfo_=q.userInfo_,_.J5(this,q.JSC$10113_domain_),_.EI(this,q.JSC$10113_port_),_.gH(this,q.getPath()),_.ZN(this,q.JSC$10113_queryData_.clone()),_.Fg(this,q.fragment_)):q&&(b=_.RO(String(q)))?(this.JSC$10113_ignoreCase_=
!!N,_.yw(this,b[1]||"",!0),this.userInfo_=RS(b[2]||""),_.J5(this,b[3]||"",!0),_.EI(this,b[4]),_.gH(this,b[5]||"",!0),_.ZN(this,b[6]||"",!0),_.Fg(this,b[7]||"",!0)):(this.JSC$10113_ignoreCase_=!!N,this.JSC$10113_queryData_=new _.dH(null,this.JSC$10113_ignoreCase_))};
_.a$.prototype.toString=function(){var q=[],N=this.scheme_;N&&q.push(cw(N,m6x,!0),":");var b=this.JSC$10113_domain_;if(b||N=="file")q.push("//"),(N=this.userInfo_)&&q.push(cw(N,m6x,!0),"@"),q.push(_.yX(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),b=this.JSC$10113_port_,b!=null&&q.push(":",String(b));if(b=this.getPath())this.JSC$10113_domain_&&b.charAt(0)!="/"&&q.push("/"),q.push(cw(b,b.charAt(0)=="/"?rrR:X_M,!0));(b=this.JSC$10113_queryData_.toString())&&q.push("?",b);(b=this.fragment_)&&q.push("#",
cw(b,V0j));return q.join("")};
_.a$.prototype.resolve=function(q){var N=this.clone(),b=!!q.scheme_;b?_.yw(N,q.scheme_):b=!!q.userInfo_;b?N.userInfo_=q.userInfo_:b=!!q.JSC$10113_domain_;b?_.J5(N,q.JSC$10113_domain_):b=q.JSC$10113_port_!=null;var y=q.getPath();if(b)_.EI(N,q.JSC$10113_port_);else if(b=!!q.JSC$10113_path_){if(y.charAt(0)!="/")if(this.JSC$10113_domain_&&!this.JSC$10113_path_)y="/"+y;else{var J=N.getPath().lastIndexOf("/");J!=-1&&(y=N.getPath().slice(0,J+1)+y)}J=y;if(J==".."||J==".")y="";else if(_.un(J,"./")||_.un(J,
"/.")){y=_.gA(J,"/");J=J.split("/");for(var E=[],F=0;F<J.length;){var R=J[F++];R=="."?y&&F==J.length&&E.push(""):R==".."?((E.length>1||E.length==1&&E[0]!="")&&E.pop(),y&&F==J.length&&E.push("")):(E.push(R),y=!0)}y=E.join("/")}else y=J}b?_.gH(N,y):b=q.JSC$10113_queryData_.toString()!=="";b?_.ZN(N,q.JSC$10113_queryData_.clone()):b=!!q.fragment_;b&&_.Fg(N,q.fragment_);return N};
_.a$.prototype.clone=function(){return new _.a$(this)};
_.yw=function(q,N,b){q.scheme_=b?RS(N,!0):N;q.scheme_&&(q.scheme_=q.scheme_.replace(/:$/,""));return q};
_.J5=function(q,N,b){q.JSC$10113_domain_=b?RS(N,!0):N;return q};
_.EI=function(q,N){if(N){N=Number(N);if(isNaN(N)||N<0)throw Error("Pa`"+N);q.JSC$10113_port_=N}else q.JSC$10113_port_=null;return q};
_.a$.prototype.getPath=function(){return this.JSC$10113_path_};
_.gH=function(q,N,b){q.JSC$10113_path_=b?RS(N,!0):N;return q};
_.ZN=function(q,N,b){N instanceof _.dH?(q.JSC$10113_queryData_=N,jp4(q.JSC$10113_queryData_,q.JSC$10113_ignoreCase_)):(b||(N=cw(N,x6x)),q.JSC$10113_queryData_=new _.dH(N,q.JSC$10113_ignoreCase_));return q};
_.yS=function(q,N,b){q.JSC$10113_queryData_.set(N,b);return q};
_.b5=function(q,N){return q.JSC$10113_queryData_.get(N)};
_.Fg=function(q,N,b){q.fragment_=b?RS(N):N;return q};
_.ul=function(q){_.yS(q,"zx",q0());return q};
_.N0=function(q,N){return q instanceof _.a$?q.clone():new _.a$(q,N)};
usd=function(q,N){q instanceof _.a$||(q=_.N0(q));N instanceof _.a$||(N=_.N0(N));return q.resolve(N)};
RS=function(q,N){return q?N?decodeURI(q.replace(/%25/g,"%2525")):decodeURIComponent(q):""};
cw=function(q,N,b){return typeof q==="string"?(q=encodeURI(q).replace(N,vyJ),b&&(q=q.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),q):null};
vyJ=function(q){q=q.charCodeAt(0);return"%"+(q>>4&15).toString(16)+(q&15).toString(16)};
m6x=/[#\/\?@]/g;X_M=/[#\?:]/g;rrR=/[#\?]/g;x6x=/[#\?@]/g;V0j=/#/g;_.dH=function(q,N){this.count_=this.keyMap_=null;this.encodedQuery_=q||null;this.JSC$10114_ignoreCase_=!!N};
_.z5=function(q){q.keyMap_||(q.keyMap_=new Map,q.count_=0,q.encodedQuery_&&dIT(q.encodedQuery_,function(N,b){q.add(z1(N),b)}))};
_.g=_.dH.prototype;_.g.getCount=function(){_.z5(this);return this.count_};
_.g.add=function(q,N){_.z5(this);this.encodedQuery_=null;q=$Q(this,q);var b=this.keyMap_.get(q);b||this.keyMap_.set(q,b=[]);b.push(N);this.count_+=1;return this};
_.g.remove=function(q){_.z5(this);q=$Q(this,q);return this.keyMap_.has(q)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(q).length,this.keyMap_.delete(q)):!1};
_.g.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.g.isEmpty=function(){_.z5(this);return this.count_==0};
_.g.containsKey=function(q){_.z5(this);q=$Q(this,q);return this.keyMap_.has(q)};
_.g.containsValue=function(q){var N=this.getValues();return _.aJ(N,q)};
_.g.forEach=function(q,N){_.z5(this);this.keyMap_.forEach(function(b,y){b.forEach(function(J){q.call(N,J,y,this)},this)},this)};
_.g.getKeys=function(){_.z5(this);for(var q=Array.from(this.keyMap_.values()),N=Array.from(this.keyMap_.keys()),b=[],y=0;y<N.length;y++)for(var J=q[y],E=0;E<J.length;E++)b.push(N[y]);return b};
_.g.getValues=function(q){_.z5(this);var N=[];if(typeof q==="string")this.containsKey(q)&&(N=N.concat(this.keyMap_.get($Q(this,q))));else{q=Array.from(this.keyMap_.values());for(var b=0;b<q.length;b++)N=N.concat(q[b])}return N};
_.g.set=function(q,N){_.z5(this);this.encodedQuery_=null;q=$Q(this,q);this.containsKey(q)&&(this.count_-=this.keyMap_.get(q).length);this.keyMap_.set(q,[N]);this.count_+=1;return this};
_.g.get=function(q,N){if(!q)return N;q=this.getValues(q);return q.length>0?String(q[0]):N};
_.G6E=function(q,N,b){q.remove(N);b.length>0&&(q.encodedQuery_=null,q.keyMap_.set($Q(q,N),_.LC(b)),q.count_+=b.length)};
_.dH.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var q=[],N=Array.from(this.keyMap_.keys()),b=0;b<N.length;b++){var y=N[b],J=_.yX(y);y=this.getValues(y);for(var E=0;E<y.length;E++){var F=J;y[E]!==""&&(F+="="+_.yX(y[E]));q.push(F)}}return this.encodedQuery_=q.join("&")};
_.dH.prototype.clone=function(){var q=new _.dH;q.encodedQuery_=this.encodedQuery_;this.keyMap_&&(q.keyMap_=new Map(this.keyMap_),q.count_=this.count_);return q};
var $Q=function(q,N){N=String(N);q.JSC$10114_ignoreCase_&&(N=N.toLowerCase());return N},jp4=function(q,N){N&&!q.JSC$10114_ignoreCase_&&(_.z5(q),q.encodedQuery_=null,q.keyMap_.forEach(function(b,y){var J=y.toLowerCase();
y!=J&&(this.remove(y),_.G6E(this,J,b))},q));
q.JSC$10114_ignoreCase_=N};
_.dH.prototype.extend=function(q){for(var N=0;N<arguments.length;N++)t0M(arguments[N],function(b,y){this.add(y,b)},this)};var t5=function(q,N){oX.call(this);for(var b=0,y;y=yr1[b];b++)if(y in q&&!/^https?:\/\//.test(q[y]))throw Error("Ra`"+q[y]+"`"+y);this.cfg_=q;this.name=this.cfg_.cn||EyE();this.JSC$10109_domHelper_=N||k7();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.xH(this);q.lpu=q.lpu||FWR(this.JSC$10109_domHelper_.getWindow().location.href)+"/robots.txt";q.ppu=q.ppu||FWR(q.pu||"")+"/robots.txt";Nj[this.name]=this;uCM(window,"unload",Y2M)||c$(window,"unload",Y2M)};
_.oK(t5,oX);var Qpj=RegExp("^%*tp$"),Ool=RegExp("^%+tp$");_.g=t5.prototype;_.g.connectionDelay_=null;_.g.peerWindowDeferred_=null;_.g.transport_=null;_.g.state_=1;_.g.isConnected=function(){return this.state_==2};
_.g.peerWindowObject_=null;_.g.iframeElement_=null;_.g.getConfig=function(){return this.cfg_};
_.g.connect=function(q){this.connectCb_=q||_.jE;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?o5x(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.g.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10109_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var q=this.iframeElement_.contentWindow;q||(q=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=q}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$10109_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new qj(this,this.cfg_.ph,this.JSC$10109_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()()};
_.g.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.RA(this.transport_);this.connectCb_=this.transport_=null;_.RA(this.connectionDelay_);this.connectionDelay_=null};
_.g.send=function(q,N){if(this.isConnected()){try{var b=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(J){b=!1}if(b){_.AZ(N)&&(N=(0,_.kC)(N));b=this.transport_;var y=b.send;Qpj.test(q)&&(q="%"+q);q=q.replace(/[%:|]/g,encodeURIComponent);y.call(b,q,N)}else this.close()}};
_.g.xpcDeliver=function(q,N,b){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.fF)(this.xpcDeliver,this,q,N,b));else if(Rr4(this,b)&&!this.isDisposed()&&this.state_!=3)if(q&&q!="tp")this.isConnected()&&(q=q.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),q=Ool.test(q)?q.substring(1):q,q=this.getService(q,N))&&(N=WAo(N,q.objectPayload),N!=null&&q.callback(N));else switch(q=this.transport_,b=F0J(N),N=b[1],b[0]){case "SETUP_ACK":zr1(q,1);q.setupAckReceived_.fired_||q.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":q.protocolVersion_==2&&(zr1(q,2),q.setupAckReceived_.fired_||q.setupAckReceived_.callback(!0));break;case "SETUP":zr1(q,1);ufJ(q,1);break;case "SETUP_NTPV2":q.protocolVersion_==2&&(b=q.peerProtocolVersion_,zr1(q,2),ufJ(q,2),b!=1&&q.peerEndpointId_==null||q.peerEndpointId_==N||cr1(q),q.peerEndpointId_=N)}};
var gyq=function(q){var N=q.cfg_.role;return typeof N==="number"?N:window.parent==q.peerWindowObject_?1:0},Rr4=function(q,N){var b=q.cfg_.ph;
return _.dA(N==null?"":String(N))||_.dA(b==null?"":String(b))||N==q.cfg_.ph};
t5.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Nj[this.name];_.RA(this.peerLoadHandler_);delete this.peerLoadHandler_;t5.superClass_.disposeInternal.call(this)};
var Y2M=function(){for(var q in Nj)_.RA(Nj[q])},Nj={};var ioJ=function(q,N){this.win=q;this.allowAdsHttpEndpoint=N;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10123_domHelper=k7(q);this.scrollManager=new n5F(q);this.accessibilityManager=new f3x(q);w_J(this)},w_J=function(q){var N=function(){q.allowAdsPopup&&q.allowAdsPopup.style.setProperty("display","none","important");
q.wallElement.style.setProperty("display","","important");C7J(q.accessibilityManager);swv(q.accessibilityManager,q.wallElement.querySelector(".fc-dialog-container"),!1,!1,q.wallElement.querySelector(".fc-button-whitelist"));q.scrollManager.enableScrolling()};
q.allowAdsPopup=q.JSC$10123_domHelper.JSC$9409_createDom("DIV",{"class":"fc-whitelist-root"});q.allowAdsPopup.style.setProperty("display","none","important");q.JSC$10123_domHelper.appendChild(q.JSC$10123_domHelper.JSC$9407_document_.body,q.allowAdsPopup);var b=q.JSC$10123_domHelper.JSC$9409_createDom("DIV",{"class":"fc-dialog-overlay"});q.JSC$10123_domHelper.appendChild(q.allowAdsPopup,b);var y=q.JSC$10123_domHelper.JSC$9409_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:N});q.JSC$10123_domHelper.appendChild(q.allowAdsPopup,
y);b=q.JSC$10123_domHelper.JSC$9409_createDom("IFRAME");b.className="fc-whitelist-dialog";b.frameBorder="0";b.id="fc-whitelist-iframe";b.tabIndex="0";_.Nn(b,q.allowAdsHttpEndpoint);q.JSC$10123_domHelper.appendChild(y,b);y={};y.pu=_.kB(q.allowAdsHttpEndpoint).toString();y.tp=1;y.cn="fc-whitelist-channel";y.ifrid=b.id;y.osh=!0;q.allowAdsCrossPageChannel=new t5(y);q.allowAdsCrossPageChannel.registerService("close",N);q.allowAdsCrossPageChannel.registerService("refresh",function(){q.win.location.reload()});
q.allowAdsCrossPageChannel.registerService("resize",function(J){if(J){var E=q.allowAdsPopup.querySelector(".fc-whitelist-dialog");J.width&&E.style.setProperty("width",J.width,"important");J.height&&E.style.setProperty("height",J.height,"important")}},!0);
q.allowAdsCrossPageChannel.connect()};
ioJ.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10123_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var mX=window,rH=document,lyE=mX.location,K0x=function(){},D6T=/\[native code\]/,Xg=function(q,N,b){return q[N]=q[N]||b},hrE=function(q){q=q.sort();
for(var N=[],b=void 0,y=0;y<q.length;y++){var J=q[y];J!=b&&N.push(J);b=J}return N},Vw=function(){var q;
if((q=Object.create)&&D6T.test(q))q=q(null);else{q={};for(var N in q)q[N]=void 0}return q},jT=Xg(mX,"gapi",{});var xQ={};xQ=Xg(mX,"___jsl",Vw());Xg(xQ,"I",0);Xg(xQ,"hel",10);var k6x=function(){var q=lyE.href;if(xQ.dpo)var N=xQ.h;else{N=xQ.h;var b=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),y=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(q=q&&(b.exec(q)||y.exec(q)))try{N=decodeURIComponent(q[2])}catch(J){}}return N},U6l=function(q){var N=Xg(xQ,"PQ",[]);
xQ.PQ=[];var b=N.length;if(b===0)q();else for(var y=0,J=function(){++y===b&&q()},E=0;E<b;E++)N[E](J)},fyj=function(q){return Xg(Xg(xQ,"H",Vw()),q,Vw())};var vw=function(q){this.JSC$10125_obj_=q};
vw.prototype.value=function(){return this.JSC$10125_obj_};
vw.prototype.getWidth=function(){return this.JSC$10125_obj_.width};
vw.prototype.getHeight=function(){return this.JSC$10125_obj_.height};
vw.prototype.getStyle=function(){return this.JSC$10125_obj_.style};var C0T=function(q){this.JSC$10128_obj_=q||{}};
_.g=C0T.prototype;_.g.value=function(){return this.JSC$10128_obj_};
_.g.setUrl=function(q){this.JSC$10128_obj_.url=q;return this};
_.g.getUrl=function(){return this.JSC$10128_obj_.url};
_.g.getStyle=function(){return this.JSC$10128_obj_.style};
_.g.getId=function(){return this.JSC$10128_obj_.id};
_.g.getContext=function(){return this.JSC$10128_obj_.context};
var Iyx=function(q){q.JSC$10128_obj_.attributes=q.JSC$10128_obj_.attributes||{};return new vw(q.JSC$10128_obj_.attributes)};var TLx=function(){C0T.apply(this,arguments)};
_.Y(TLx,C0T);var spj=Xg(xQ,"perf",Vw());Xg(spj,"g",Vw());var nyx=Xg(spj,"i",Vw());Xg(spj,"r",[]);Vw();Vw();var S2o=function(q,N,b){N&&N.length>0&&(N=ayR(N),b&&b.length>0&&(N+="___"+ayR(b)),N.length>28&&(N=N.substr(0,28)+(N.length-28)),b=N,N=Xg(nyx,"_p",Vw()),Xg(N,b,Vw())[q]=(new Date).getTime(),N=spj.r,typeof N==="function"?N(q,"_p",b):N.push([q,"_p",b]))},ayR=function(q){return q.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var W0q=Vw(),L04=[],G5=function(q){throw Error("Ua`"+q);};
L04.push(["jsl",function(q){for(var N in q)if(Object.prototype.hasOwnProperty.call(q,N)){var b=q[N];typeof b=="object"?xQ[N]=Xg(xQ,N,[]).concat(b):Xg(xQ,N,b)}if(N=q.u)q=Xg(xQ,"us",[]),q.push(N),(N=/^https:(.*)$/.exec(N))&&q.push("http:"+N[1])}]);
var p_x=/^(\/[a-zA-Z0-9_\-]+)+$/,P01=[/\/amp\//,/\/amp$/,/^\/amp$/],M0q=/^[a-zA-Z0-9\-_\.,!]+$/,oy1=/^gapi\.loaded_[0-9]+$/,Aro=/^[a-zA-Z0-9,._-]+$/,qXM=function(q,N,b,y,J){var E=q.split(";"),F=E.shift(),R=W0q[F],c=null;R?c=R(E,N,b,y):G5("no hint processor for: "+F);c||G5("failed to generate load url");N=c;b=N.match(erq);(y=N.match(BLR))&&y.length===1&&HoM.test(N)&&b&&b.length===1||G5("failed sanity: "+q);try{q="?";if(J&&J.length>0){Ueh(J);var z=J.join(",");c=c+"?le="+z;q="&"}if(xQ.rol){var m=xQ.ol;
m&&m.length&&(c=""+c+q+"ol="+m.length)}}catch(r){}return c},yD1=function(q,N,b,y){q=NIF(q);
oy1.test(b)||G5("invalid_callback");N=bQv(N);y=y&&y.length?bQv(y):null;var J=function(E){return encodeURIComponent(E).replace(/%2C/g,",")};
return[encodeURIComponent(q.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",J(q.version),"/m=",J(N),y?"/exm="+J(y):"","/rt=j/sv=1/d=1/ed=1",q.activeMods?"/am="+J(q.activeMods):"",q.resourceSig?"/rs="+J(q.resourceSig):"",q.zcms?"/t="+J(q.zcms):"","/cb=",J(b)].join("")},NIF=function(q){q.charAt(0)!=="/"&&G5("relative path");
for(var N=q.substring(1).split("/"),b=[];N.length;){q=N.shift();if(!q.length||q.indexOf(".")==0)G5("empty/relative directory");else if(q.indexOf("=")>0){N.unshift(q);break}b.push(q)}q={};for(var y=0,J=N.length;y<J;++y){var E=N[y].split("="),F=decodeURIComponent(E[0]),R=decodeURIComponent(E[1]);E.length==2&&F&&R&&(q[F]=q[F]||R)}N="/"+b.join("/");p_x.test(N)||G5("invalid_prefix");b=0;for(y=P01.length;b<y;++b)P01[b].test(N)&&G5("invalid_prefix");b=JDj(q,"k",!0);y=JDj(q,"am");J=JDj(q,"rs");q=JDj(q,"t");
return{pathPrefix:N,version:b,activeMods:y,resourceSig:J,zcms:q}},bQv=function(q){for(var N=[],b=0,y=q.length;b<y;++b){var J=q[b].replace(/\./g,"_").replace(/-/g,"_");
Aro.test(J)&&N.push(J)}return N.join(",")},JDj=function(q,N,b){q=q[N];
!q&&b&&G5("missing: "+N);if(q){if(M0q.test(q))return q;G5("invalid: "+N)}return null},HoM=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,BLR=/\/cb=/g,erq=/\/\//g;
W0q.m=function(q,N,b,y){(q=q[0])||G5("missing_hint");return"https://apis.google.com"+yD1(q,N,b,y)};
var EFo=decodeURI("%73cript"),gFq=/^[-+_0-9\/A-Za-z]+={0,2}$/,ZQ1=function(q,N){for(var b=[],y=0;y<q.length;++y){var J=q[y],E;if(E=J){a:{for(E=0;E<N.length;E++)if(N[E]===J)break a;E=-1}E=E<0}E&&b.push(J)}return b},FnR=function(){var q=xQ.nonce;
return q!==void 0?q&&q===String(q)&&q.match(gFq)?q:xQ.nonce=null:rH.querySelector?(q=rH.querySelector("script[nonce]"))?(q=q.nonce||q.getAttribute("nonce")||"",q&&q===String(q)&&q.match(gFq)?xQ.nonce=q:xQ.nonce=null):null:null},cDx=function(q){if(rH.readyState!="loading")R3o(q);
else{var N=FnR(),b="";N!==null&&(b=' nonce="'+N+'"');q="<"+EFo+' src="'+encodeURI(q)+'"'+b+"></"+EFo+">";rH.write(drJ?drJ.createHTML(q):q)}},R3o=function(q){var N=rH.createElement(EFo);
N.setAttribute("src",drJ?drJ.createScriptURL(q):q);q=FnR();q!==null&&N.setAttribute("nonce",q);N.async="true";(q=rH.getElementsByTagName(EFo)[0])?q.parentNode.insertBefore(N,q):(rH.head||rH.body||rH.documentElement).appendChild(N)},z31=function(q,N,b){u01(function(){var y=N===k6x()?Xg(jT,"_",Vw()):Vw();
y=Xg(fyj(N),"_",y);q(y)},b)},yTD=function(q,N){var b=N||{};
typeof N=="function"&&(b={},b.callback=N);var y=(N=b)&&N._c;if(y)for(var J=0;J<L04.length;J++){var E=L04[J][0],F=L04[J][1];F&&Object.prototype.hasOwnProperty.call(y,E)&&F(y[E],q,N)}N=[];q?N=q.split(":"):b.features&&(N=b.features);if(!(q=b.h)&&(q=k6x(),!q))throw Error("Va");$rJ(N||[],b,q)},$rJ=function(q,N,b){q=hrE(q)||[];
var y=N.callback,J=N.config,E=N.timeout,F=N.ontimeout,R=N.onerror,c=void 0;typeof R=="function"&&(c=R);var z=null,m=!1;if(E&&!F||!E&&F)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";R=Xg(fyj(b),"r",[]).sort();var r=Xg(fyj(b),"L",[]).sort(),X=xQ.le||[],V=[].concat(R),G=function(L,S){if(m)return 0;mX.clearTimeout(z);r.push.apply(r,w);var W=((jT||{}).config||{}).update;W?W(J):J&&Xg(xQ,"cu",[]).push(J);if(S){S2o("me0",L,V);try{z31(S,b,c)}finally{S2o("me1",L,V)}}return 1};
E>0&&(z=mX.setTimeout(function(){m=!0;F()},E));
var w=ZQ1(q,r);if(w.length){w=ZQ1(q,R);var D=Xg(xQ,"CP",[]),k=D.length;D[k]=function(L){if(!L)return 0;S2o("ml1",w,V);var S=function(M){D[k]=null;G(w,L)&&U6l(function(){y&&y();M()})},W=function(){var M=D[k+1];
M&&M()};
k>0&&D[k-1]?D[k]=function(){S(W)}:S(W)};
if(w.length){var f="loaded_"+xQ.I++;jT[f]=function(L){D[k](L);jT[f]=null};
q=qXM(b,w,"gapi."+f,R,X);R.push.apply(R,w);S2o("ml0",w,V);N.sync||mX.___gapisync?cDx(q):R3o(q)}else D[k](K0x)}else G(w)&&y&&y()},t6l;
var mrF=null,rDR=_.JZ.trustedTypes;if(rDR&&rDR.createPolicy){try{mrF=rDR.createPolicy("goog#gapi",{createHTML:XAJ,createScript:XAJ,createScriptURL:XAJ})}catch(q){_.JZ.console&&_.JZ.console.error(q.message)}t6l=mrF}else t6l=mrF;var drJ=t6l,u01=function(q,N){if(xQ.hee&&xQ.hel>0)try{return q()}catch(b){N&&N(b),xQ.hel--,yTD("debug_error",function(){try{window.___jsl.hefn(b)}catch(y){throw b;}})}else try{return q()}catch(b){throw N&&N(b),b;
}},XKE=jT.load;
XKE&&Xg(xQ,"ol",[]).push(XKE);jT.load=function(q,N){return u01(function(){return yTD(q,N)})};var Pvu;var jC1=function(q,N){var b=b||[];this.serviceId_=q;this.moduleId_=N||null;this.dependencies_=[];V6x(this,b)};
jC1.prototype.toString=function(){return this.serviceId_};
jC1.prototype.getModuleId=function(){return this.moduleId_};
var V6x=function(q,N){var b=!1;b=b===void 0?!1:b;q.dependencies_=q.dependencies_.concat(N);if(b){if(!q.moduleId_)throw Error("Wa`"+q.serviceId_);N.map(function(y){return y.getModuleId()}).forEach(function(y){MAu(function(J){J.addExtraEdge(q.moduleId_,y)})})}};var kju=new jC1("MpJwZc","MpJwZc");var Oxz=new _.jk("a"),fpZ=new _.jk("c"),ULD=function(q,N,b){_.xC.call(this,q,N);this.node=N;this.kind=b};
_.Y(ULD,_.xC);var xr1=function(){this.JSC$10141_keys_={};this.urlPrefix_="";this.JSC$10141_queryData_={}};
xr1.prototype.toString=function(){var q=this.urlPrefix_+vFJ(this),N=_.lv(this.JSC$10141_queryData_),b="";N!=""&&(b="?"+N);return q+b};
var Ghv=function(q){q=YQ(q,"md");return!!q&&q!=="0"},vFJ=function(q){var N=[],b=function(y){q.JSC$10141_keys_[y]!==void 0&&N.push(y+"="+q.JSC$10141_keys_[y])};
Ghv(q)?(b("md"),b("k"),b("ck"),b("am"),b("rs"),b("gssmodulesetproto"),b("slk"),b("dti")):(b("sdch"),b("k"),b("ck"),b("am"),b("rt"),"d"in q.JSC$10141_keys_||Qw(q,"d","0"),b("d"),b("exm"),b("excm"),(q.JSC$10141_keys_.excm||q.JSC$10141_keys_.exm)&&N.push("ed=1"),b("im"),b("dg"),b("sm"),YQ(q,"br")!="1"&&YQ(q,"br")!="0"||b("br"),b("br-d"),YQ(q,"rb")=="1"&&b("rb"),YQ(q,"zs")!=="0"&&b("zs"),YXJ(q)!==""&&b("wt"),b("gssmodulesetproto"),b("ujg"),b("sp"),b("rs"),b("cb"),b("ee"),b("slk"),b("dti"),b("m"));return N.join("/")},
YQ=function(q,N){return q.JSC$10141_keys_[N]?q.JSC$10141_keys_[N]:null},Qw=function(q,N,b){b?q.JSC$10141_keys_[N]=b:delete q.JSC$10141_keys_[N]},QCv=function(q,N){q.urlPrefix_=N},OQl=function(q,N){N&&N.length>0?(N.sort(),Qw(q,"exm",N.join(","))):Qw(q,"exm",null)},wKF=function(q,N){N&&N.length>0?(N.sort(),Qw(q,"excm",N.join(","))):Qw(q,"excm",null)},iQE=function(q){return(q=YQ(q,"m"))?q.split(","):[]},YXJ=function(q){switch(YQ(q,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},lmj=function(q,N){var b=Object.keys(N).filter(function(y){return!!Object.keys(N[y]).length}).map(function(y){var J=Object.keys(N[y]);
J.length>1&&J.sort();return y+":"+J.join(",")});
b.sort();Qw(q,"ee",b.join(";"))},swe=function(q){var N=YQ(q,"ee");
if(!N)return{};q={};N=_.Z(N.split(";"));for(var b=N.next();!b.done;b=N.next()){var y=_.Z(b.value.split(":"));b=y.next().value;y=y.next().value;q[b]={};y=_.Z(y.split(","));for(var J=y.next();!J.done;J=y.next())q[b][J.value]=!0}return q},Kn1=function(q){delete q.JSC$10141_keys_.m;
delete q.JSC$10141_keys_.exm;delete q.JSC$10141_keys_.ed};
xr1.prototype.clone=function(){var q=new xr1;q.JSC$10141_keys_=Object.assign({},this.JSC$10141_keys_);q.urlPrefix_=this.urlPrefix_;q.JSC$10141_queryData_=Object.assign({},this.JSC$10141_queryData_);return q};
var n5h=function(q,N){N=N===void 0?!0:N;var b=DrR(q),y=new xr1,J=_.RO(b)[5];_.nM.forEach(h3F,function(F){var R=J.match("/"+F+"=([^/]+)");R&&Qw(y,F,R[1])});
var E="";E=q.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";QCv(y,q.substr(0,q.indexOf(E)+E.length));if(!N)return y;(q=_.RO(b)[6]||null)&&dIT(q,function(F,R){y.JSC$10141_queryData_[F]=R});
return y},C7u=function(q){q=_.wO(DrR(q));
return q===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(q)?/\/k=/.test(q):!1},DrR=function(q){return q.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?q.substr(65):q},h3F={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"},khM=RegExp("^loaded_(g|h)?[_\\d]+$");_.OI=function(q){this.JSC$10153_id_=q;this.opts={}};
_.OI.prototype.JSC$10155_setLabel=function(q){this.label_=q||void 0;return this};
_.OI.prototype.addUploadMetadata=function(q,N){var b=this.opts.data||{};b[q]=N;this.opts.data=b;return this};
var Urx=function(q){var N=_.nM.filter(q.opts,function(b){return b!==null});
N=_.nM.isEmpty(N)?null:N;q=[q.JSC$10153_id_,q.label_,N];N=lRJ(q);return q=q.slice(0,N+1)};
_.OI.prototype.toString=function(){var q=Urx(this);return"("+_.aW(q,function(N){return JSON.stringify(N)}).join(",")+")"};
_.OI.prototype.getId=function(){return this.JSC$10153_id_};
_.OI.prototype.getOptions=function(){return _.nM.clone(this.opts)};var wH=function(){_.OI.call(this,"image-search")};
_.Y(wH,_.OI);wH.prototype.setSize=function(q){this.opts.imgsz=q;return this};
wH.prototype.JSC$10155_setLabel=function(q){_.OI.prototype.JSC$10155_setLabel.call(this,q);return this};
wH.prototype.addUploadMetadata=function(q,N){_.OI.prototype.addUploadMetadata.call(this,q,N);return this};var il=function(){_.OI.call(this,"maps")};
_.Y(il,_.OI);il.prototype.setZoom=function(q){this.opts.zoom=q;return this};
il.prototype.JSC$10155_setLabel=function(q){_.OI.prototype.JSC$10155_setLabel.call(this,q);return this};
il.prototype.addUploadMetadata=function(q,N){_.OI.prototype.addUploadMetadata.call(this,q,N);return this};_.ll=function(){_.OI.call(this,"photos")};
_.Y(_.ll,_.OI);_.ll.prototype.JSC$10155_setLabel=function(q){_.OI.prototype.JSC$10155_setLabel.call(this,q);return this};
_.ll.prototype.addUploadMetadata=function(q,N){_.OI.prototype.addUploadMetadata.call(this,q,N);return this};var Kp=function(){_.OI.call(this,"url")};
_.Y(Kp,_.OI);var fmT=function(){var q=new Kp;q.opts.type="video";q.opts.site="youtube.com";return q};
Kp.prototype.JSC$10155_setLabel=function(q){_.OI.prototype.JSC$10155_setLabel.call(this,q);return this};
Kp.prototype.addUploadMetadata=function(q,N){_.OI.prototype.addUploadMetadata.call(this,q,N);return this};var DN=function(){_.OI.call(this,"video-search")};
_.Y(DN,_.OI);var C_q=function(){var q=new DN;q.opts.site="youtube.com";return q};
DN.prototype.JSC$10155_setLabel=function(q){_.OI.prototype.JSC$10155_setLabel.call(this,q);return this};
DN.prototype.addUploadMetadata=function(q,N){_.OI.prototype.addUploadMetadata.call(this,q,N);return this};var Imv=function(){_.OI.call(this,"web")};
_.Y(Imv,_.OI);Imv.prototype.JSC$10155_setLabel=function(q){_.OI.prototype.JSC$10155_setLabel.call(this,q);return this};
Imv.prototype.addUploadMetadata=function(q,N){_.OI.prototype.addUploadMetadata.call(this,q,N);return this};var h5=function(){this.items_=[];this.opts={}},TI1=function(q){switch(q){case "image-search":return new wH;
case "maps":return new il;case "photos":return new _.ll;case "url":return new Kp;case "video-search":return new DN;case "web":return new Imv}return new _.OI(q)};
h5.prototype.addView=function(q){this.items_.push(typeof q==="string"?TI1(q):q);return this};
var sC1=function(q){return"("+_.aW(q.items_,function(N){return N.toString()}).join(",")+")"};
h5.prototype.toString=function(){return sC1(this)};
h5.prototype.getViews=function(q,N){N=N===void 0?[]:N;for(var b=this.items_,y=0;y<b.length;y++){var J=b[y];J instanceof h5?J.getViews(q,N):J.getId()==q&&N.push(J)}return N};
h5.prototype.getOptions=function(){return _.nM.clone(this.opts)};var oA=function(q){this.basePickerUrl_=q||"https://docs.google.com/picker";this.nav_=new h5};
oA.prototype.nav_=null;oA.prototype.addView=function(q){this.nav_.addView(q);return this};
oA.prototype.getBaseUrl=function(){return this.basePickerUrl_};
oA.prototype.getViews=function(q){return this.nav_.getViews(q)};
_.nFM=function(q,N){q.callback_=N;return q};var amx=new Map;amx.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");amx.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");amx.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var SXx=new Set;SXx.add("application/vnd.google-apps.kix");SXx.add("application/vnd.google-apps.ritz");SXx.add("application/vnd.google-apps.punch");var NdM=function(q,N,b){var y=b&&_.xs(b,1);b=Wnx(b);var J=q[0].getId();switch(_.vc(J,2)){case 13:return Lnv(q,N,y,b);case 3:return pKx(q,N,y,b);case 10:return P_4(q,N,y,b);case 27:return P_4(q,N,y,b);case 12:return M6j(q,N);case 2:return oFR(q,N,y,b);case 5:return ADl(q,N,y,b);case 9:return e3x(q,N,y,b);case 6:return BIF(q,N,y,b);case 25:return HQx(q,N,y,b);case 1:return _.dM(q[0],OFl,26)?q7o(q,N,y,b):P_4(q,N,y,b);default:return{}}},BIF=function(q,N,b,y){q=q.map(function(J){return{id:J.getId().getId(),
serviceId:"youtube",name:J.getName(),description:_.xs(J,3),type:kQ(J),lastEditedUtc:_.QAj(_.Vr(J,_.YA,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:J.getUrl(),embedUrl:_.xs(J,13),thumbnails:UI(HE(J))}});
return{action:N,docs:q,viewToken:y,view:b||"youtube",v2Translated:!0}},oFR=function(q,N,b,y){var J=q.map(function(E){var F=E.getId().getId(),R=_.xs(E,7),c=E.getName(),z=kQ(E),m=_.QAj(_.Vr(E,_.YA,12)).getTime(),r=E.getUrl(),X=Number(fqx(E)),V=_.xs(E,3),G=_.xs(E,11),w=UI(HE(E));
var D=_.Vr(E,qH,21);D=_.Xn(D,1);var k=_.Vr(E,qH,21);k=_.xs(k,10);var f=_.xs(E,13);var L=_.Vr(E,qH,21);L=_.Xn(L,9);var S=_.Vr(E,qH,21);S=_.xs(S,11);F={id:F,serviceId:"docs",mimeType:R,name:c,type:z,lastEditedUtc:m,url:r,sizeBytes:X,description:V,iconUrl:G,thumbnails:w,isShared:D,downloadUrl:k,embedUrl:f,copyable:L,resourceKey:S};R=_.Vr(E,qH,21);_.Xn(R,12)&&(F.uploadState="success",F.isNew=!0);R=_.Vr(E,qH,21);_.dM(R,Ax,3)&&(E=_.Vr(E,qH,21),E=_.Vr(E,Ax,3),_.dM(E,MQ,2)&&(R=PY(E.getDuration().getSeconds()),
c=E.getDuration(),c=_.tW(c,2),F.duration=R+c/1E9),F.aspectRatio=E.getAspectRatio());return F});
return{action:N,docs:J,viewToken:y,view:b||"all",extraUserInputs:bAl(q),v2Translated:!0}},ADl=function(q,N,b,y){q=q.map(function(J){var E=_.Vr(J,fzl,15);
E=_.Vr(E,oY,1);Dy(J,10,oY,E);return{id:J.getId().getId(),serviceId:"web",mimeType:_.xs(J,7),name:J.getName(),type:kQ(J),url:J.getUrl(),description:_.xs(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:UI(HE(J))}});
return{action:N,docs:q,viewToken:y,view:b||"image-search",v2Translated:!0}},e3x=function(q,N,b,y){q=q.map(function(J){return{serviceId:"url",
name:HE(J)[0].getUrl().split("/").pop(),type:kQ(J),mimeType:_.xs(J,7),url:J.getUrl(),description:_.xs(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:UI(HE(J))}});
return{action:N,docs:q,viewToken:y,view:b||"url",v2Translated:!0}},q7o=function(q,N,b,y){q=q.map(function(J){return{id:J.getId().getId(),
serviceId:"picasa",name:J.getName(),type:kQ(J),description:_.xs(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:UI(HE(J))}});
return{action:N,docs:q,viewToken:y,view:b||"webcam",v2Translated:!0}},P_4=function(q,N,b,y){return{action:N,
docs:q.map(y91),viewToken:y,view:J9o(b||"upload",q),extraUserInputs:bAl(q),v2Translated:!0}},J9o=function(q,N){return N.some(function(b){var y;
return((y=_.Vr(b,eE,30))==null?void 0:_.vc(y,3))===9})?q+"/gmailphotos":q},pKx=function(q,N,b,y){var J=q.map(function(E){var F={id:E.getId().getId(),
serviceId:"picasa",mimeType:_.xs(E,7),name:E.getName(),type:kQ(E),lastEditedUtc:_.QAj(_.Vr(E,_.YA,12)).getTime(),url:E.getUrl(),sizeBytes:Number(fqx(E)),description:_.xs(E,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:UI(HE(E)),mediaKey:E.getId().getId(),parentId:_.xs(E,4)},R,c=(R=_.Vr(E,lzo,18))==null?void 0:_.Vr(R,iFj,3);c&&(F.latitude=j5(c,1),F.longitude=j5(c,2));var z;E=(z=_.Vr(E,lzo,18))==null?void 0:VW(z,6);z=E!=null?PY(E):void 0;z&&(F.version=
z);return F});
return{action:N,docs:J,viewToken:y,view:b||"photos",extraUserInputs:bAl(q),v2Translated:!0}},Lnv=function(q,N,b,y){q=q.map(function(J){return{id:J.getId().getId(),
serviceId:"et",name:HE(J)[0].getUrl().split("/").pop(),description:_.xs(J,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:UI(HE(J),"etjpg")}});
return{action:N,docs:q,viewToken:y,view:b||"et",v2Translated:!0}},HQx=function(q,N,b,y){q=q.map(function(J){var E=J.getId().getId(),F=y["2"];
return{id:E,serviceId:F.type!=="gmail_themes"&&F.parent==="6226252643674576769"?"picasa":"static_themes",name:J.getName(),mimeType:_.xs(J,7),type:kQ(J),description:_.xs(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:J.getUrl(),embedUrl:J.getUrl(),thumbnails:UI(HE(J))}});
return{action:N,docs:q,viewToken:y,view:b||"photos",v2Translated:!0}},M6j=function(q,N){q=q.map(function(b){var y=_.Vr(b,wYR,27);
y=_.eX(y,1,_.Ya,_.$N())[0];return{id:b.getId().getId(),serviceId:"contacts",mimeType:_.xs(b,7),name:b.getName(),description:_.xs(b,3),url:"mailto:"+y,thumbnail:[{url:_.xs(b,11)}],email:y}});
return{action:N,docs:q,view:"contacts",v2Translated:!0}},Wnx=function(q){if(!q)return{};
var N=_.xs(q,3);N=N&&JSON.parse(N)||{};return{0:_.xs(q,1),1:_.xs(q,2),2:N}},UI=function(q,N){N=N===void 0?"":N;
if(!q.length)return null;N=="etjpg"&&(q=q.filter(function(b){return b.getUrl().includes("w1200-h300")}));
return q.map(function(b){return{url:b.getUrl(),height:b.getHeight(),width:b.getWidth(),type:N}})},bAl=function(q){return{isAttachment:q.some(function(N){return _.Xn(N,31)})}},y91=function(q){var N,b={id:(N=q.getId())==null?void 0:N.getId(),
serviceId:EH1(q),mimeType:_.xs(q,7),name:q.getName(),type:kQ(q),sizeBytes:Number(fqx(q)),description:_.xs(q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:UI(HE(q)),isNew:!0};if(N=_.Vr(q,eE,30)){b.dataUrl=_.xs(N,1)||null;a:{var y=_.Vr(q,eE,30);switch(_.vc(y,3)){case 9:y=_.QW(y,kPx,2,BE);y={remoteRefs:y&&_.xs(y,1)};break a;case 10:case 15:y=_.QW(y,hpM,4,BE);var J=HE(q);y={photo_id:y&&_.xs(y,1),media_key:q.getId().getId(),media_type:_.vc(q,6)===1?1:2,image_url:J&&
J[0].getUrl(),width:J&&String(J[0].getWidth()),height:J&&String(J[0].getHeight())};break a}y=null}b.uploadMetadata=y;b.uploadId=_.xs(N,9)||null;b.uploadState=gH1(N)||null}(y=N&&_.QW(N,hpM,4,BE))&&(b.id=_.xs(y,1));(y=N&&_.QW(N,UIR,5,BE))&&(b.contentId=_.xs(y,1));(y=N&&_.QW(N,KWj,7,BE))&&(b.contentId=_.xs(y,1));(y=N&&_.QW(N,DIq,6,BE))&&(b.contentId=_.xs(y,1));(N==null?void 0:_.vc(N,3))===1&&(b.mediaKey=q.getId().getId());return b},EH1=function(q){var N;
switch(((N=_.Vr(q,eE,30))==null?void 0:_.vc(N,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},kQ=function(q){switch(_.vc(q,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 _.xs(q,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},gH1=function(q){switch(q==null?void 0:_.vc(q,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 dL4,ZA1,FHx,RT1;_.c9J=function(q,N){var b=N||{};N=b.document||document;var y=_.kB(q).toString(),J=(new Q7(N)).createElement("SCRIPT"),E={script_:J,timeout_:void 0},F=new Al(ZA1,E),R=null,c=b.timeout!=null?b.timeout:5E3;c>0&&(R=window.setTimeout(function(){FHx(J,!0);F.errback(new RT1(1,"Timeout reached for loading script "+y))},c),E.timeout_=R);
J.onload=J.onreadystatechange=function(){J.readyState&&J.readyState!="loaded"&&J.readyState!="complete"||(FHx(J,b.cleanupWhenDone||!1,R),F.callback(null))};
J.onerror=function(){FHx(J,!0,R);F.errback(new RT1(0,"Error while loading script "+y))};
E=b.attributes||{};_.nM.extend(E,{type:"text/javascript",charset:"UTF-8"});rbv(J,E);_.R9(J,q);dL4(N).appendChild(J);return F};
dL4=function(q){var N=KF("HEAD",q);return N&&N.length!==0?N[0]:q.documentElement};
ZA1=function(){if(this&&this.script_){var q=this.script_;q&&q.tagName=="SCRIPT"&&FHx(q,!0,this.timeout_)}};
FHx=function(q,N,b){b!=null&&_.JZ.clearTimeout(b);q.onload=function(){};
q.onerror=function(){};
q.onreadystatechange=function(){};
N&&window.setTimeout(function(){_.lC(q)},0)};
RT1=function(q,N){var b="Jsloader error (code #"+q+")";N&&(b+=": "+N);_.bn.call(this,b);this.code=q};
_.oK(RT1,_.bn);var u4o=_.Tt(["https://apis.google.com/js/api.js"]),zTF=_.Xe(u4o),r9M=function(q,N,b){b=b===void 0?{}:b;var y=!1,J=$Ll(q,N,b).then(function(F){y=!0;return F}),E=_.nZ1(5E3).then(function(){return y?$Ll(q,N,b):tLT(N,b).then(function(F){return mLE(F,q)})});
return iI1([J,E])},$Ll=function(q,N,b){b=b===void 0?{}:b;
return XBx(N,b).then(function(y){return mLE(y,q)})},mLE=function(q,N){var b=_.gA(N,"gapi.")?N.slice(5):N;
return q[b]?_.bG(q[b]):new _.wL(function(y,J){var E=D6(function(){J(Error("Ya"))},3E4);
q.load(N,{callback:function(){_.JZ.clearTimeout(E);y(q[b])},
onerror:function(F){_.JZ.clearTimeout(E);J(F)}})})},XBx=function(q,N){N=N===void 0?{}:N;
return q.gapi&&q.gapi.load?_.bG(q.gapi):tLT(q,N)},tLT=function(q,N){N=N===void 0?{}:N;
return _.c9J(zTF,{document:q.document,attributes:N}).then(function(){return q.gapi})},VLJ=function(){};
VLJ.prototype.load=function(q,N,b){N=N===void 0?window:N;b=b===void 0?{}:b;var y=Date.now();return r9M(q,N,b).then(function(J){var E=Date.now();return{library:J,loadStartMs:y,loadEndMs:E}},function(J){throw J instanceof Error?J:Error(String(J));
})};var g5d=function(){_.UN.call(this);this.gapiLoader_=new VLJ;this.origin_=null;this.gapiPickerIframeResolver_=_.T4();this.gapiIframesResolver_=_.T4();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.Y(g5d,_.UN);var jPl=function(q,N){var b=b===void 0?{}:b;var y=_.Ng("gapi.iframes",N);return y?(q=Date.now(),_.bG({library:y,loadStartMs:q,loadEndMs:q})):q.gapiLoader_.load("gapi.iframes",N,b)},xL1=function(q,N,b,y,J,E){var F=!1;
F=F===void 0?!1:F;jPl(q,Wh(N.ownerDocument)).then(function(R){var c=R.library;q.gapiIframesResolver_.resolve(c);R=q.gapiPickerIframeResolver_;var z=R.resolve,m=F;m=m===void 0?!1:m;var r={};r["host-message-handler"]=b;q.hostMessageHandlerInternal_=r;var X=_.N0(y);X=_.N0(X);X=_.EI(_.J5(_.yw(new _.a$,X.scheme_),X.JSC$10113_domain_),X.JSC$10113_port_).toString();q.origin_=X;X=(new TLx).setUrl(y);X.JSC$10128_obj_.where=N;X.JSC$10128_obj_.allowPost=m;X.JSC$10128_obj_.messageHandlers=r;m=_.Ng("makeWhiteListIframesFilter",
c)([q.origin_]);X.JSC$10128_obj_.messageHandlersFilter=m;J!=null&&(X.JSC$10128_obj_.id=J);E!=null&&(X.JSC$10128_obj_.rpctoken=E);m=Iyx(X);m.JSC$10125_obj_.style={display:"block","min-width":"100%",width:"1px"};m.JSC$10125_obj_.height="100%";Iyx(X).value().allow="camera 'src' "+q.origin_;c=c.getContext().openChild(X.value());z.call(R,c)},function(R){q.gapiIframesResolver_.reject(R);
q.gapiPickerIframeResolver_.reject(R)});
return q.gapiPickerIframeResolver_.promise},vHo=function(q,N){return _.lU([q.gapiIframesResolver_.promise,
q.gapiPickerIframeResolver_.promise]).then(function(b){var y=_.Z(b);b=y.next().value;return(y=y.next().value)?y.send("picker-message-handler",N,void 0,_.Ng("makeWhiteListIframesFilter",b)([q.origin_])):_.ra(Error("Za"))})};
g5d.prototype.disposeInternal=function(){Gjq(this);_.UN.prototype.disposeInternal.call(this)};
var Gjq=function(q){q.gapiPickerIframeResolver_.promise.then(function(N){N&&(N.unregister("host-message-handler"),delete q.hostMessageHandlerInternal_["host-message-handler"])})};var Y7v=function(){this.nextId=0};var OAF=function(q,N){switch(q.action){case "select-contacts":q=QPM(q.contacts);break;case "visibility":q=q.visible;var b=new Jl;q=_.wM(b,1,7).setVisible(q);b={};b["iframe-command"]=q.serialize();q=b;break;default:q=null}return q?vHo(N,q):_.bG()},QPM=function(q){if(!q||q.length==0)return null;
var N=new Jl;_.wM(N,1,11);var b=new Y7v;q.forEach(function(y){if(y.email){var J=new mY;J=_.f0(J,2,y.name?y.name:y.email);var E=new wYR;y=_.aWA(E,1,_.jX,y.email,_.Ya);y=_.ws(J,27,y);J=new YNR;E=":"+(b.nextId++).toString(36);J=_.f0(J,1,E);J=_.wM(J,2,12);y=_.ws(y,1,J)}else y=null;y&&Dy(N,7,mY,y)});
q={};q["iframe-command"]=N.serialize();return q};_.wBT=function(){if(AZR){var q=/Windows NT ([0-9.]+)/;return(q=q.exec(_.Vh()))?q[1]:"0"}return _.oDo?(q=/1[0|1][_.][0-9_.]+/,(q=q.exec(_.Vh()))?q[0].replace(/_/g,"."):"10"):WCR?(q=/Android\s+([^\);]+)(\)|;)/,(q=q.exec(_.Vh()))?q[1]:""):BAj||HCE||qx1?(q=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(q=q.exec(_.Vh()))?q[1].replace(/_/g,"."):""):""}();var fp;fp=function(q){return(q=q.exec(_.Vh()))?q[1]:""};
_.iAx=function(){if(_.yW)return fp(/Firefox\/([0-9.]+)/);if(_.HV||cv||pA1)return Z1F;if(_.Js){if(_.hZ()||_.QJJ()){var q=fp(/CriOS\/([0-9.]+)/);if(q)return q}return fp(/Chrome\/([0-9.]+)/)}if(_.B4&&!_.hZ())return fp(/Version\/([0-9.]+)/);if(Mgu||oon){if(q=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Vh()))return q[1]+"."+q[2]}else if(u1x)return(q=fp(/Android\s+([0-9.]+)/))?q:fp(/Version\/([0-9.]+)/);return""}();var lpE=function(){};
_.PV(lpE);lpE.prototype.nextId_=0;_.Cp=function(q){return":"+(q.nextId_++).toString(36)};var IS=function(q){_.O1.call(this);this.JSC$10223_dom_=q||k7();this.JSC$10223_id_=null;this.inDocument_=!1;this.JSC$10223_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.oK(IS,_.O1);IS.prototype.idGenerator_=lpE.getInstance();IS.prototype.getId=function(){return this.JSC$10223_id_||(this.JSC$10223_id_=_.Cp(this.idGenerator_))};
IS.prototype.getElement=function(){return this.JSC$10223_element_};
var T5=function(q){q.googUiComponentHandler_||(q.googUiComponentHandler_=new _.xH(q));return q.googUiComponentHandler_},KHM=function(q,N){if(q==N)throw Error("$a");
var b;if(b=N&&q.parent_&&q.JSC$10223_id_){b=q.parent_;var y=q.JSC$10223_id_;b=b.childIndex_&&y?_.nM.get(b.childIndex_,y)||null:null}if(b&&q.parent_!=N)throw Error("$a");q.parent_=N;IS.superClass_.setParentEventTarget.call(q,N)};
IS.prototype.setParentEventTarget=function(q){if(this.parent_&&this.parent_!=q)throw Error("ab");IS.superClass_.setParentEventTarget.call(this,q)};
IS.prototype.JSC$10225_createDom=function(){this.JSC$10223_element_=this.JSC$10223_dom_.createElement("DIV")};
IS.prototype.render=function(q){DLo(this,q)};
var DLo=function(q,N,b){if(q.inDocument_)throw Error("bb");q.JSC$10223_element_||q.JSC$10225_createDom();N?N.insertBefore(q.JSC$10223_element_,b||null):q.JSC$10223_dom_.JSC$9407_document_.body.appendChild(q.JSC$10223_element_);q.parent_&&!q.parent_.inDocument_||q.enterDocument()};
_.g=IS.prototype;_.g.decorate=function(q){if(this.inDocument_)throw Error("bb");if(q&&this.canDecorate(q)){this.wasDecorated_=!0;var N=_.LM(q);this.JSC$10223_dom_&&this.JSC$10223_dom_.JSC$9407_document_==N||(this.JSC$10223_dom_=k7(q));this.decorateInternal(q);this.enterDocument()}else throw Error("cb");};
_.g.canDecorate=function(){return!0};
_.g.decorateInternal=function(q){this.JSC$10223_element_=q};
_.g.enterDocument=function(){this.inDocument_=!0;hTM(this,function(q){!q.inDocument_&&q.getElement()&&q.enterDocument()})};
_.g.exitDocument=function(){hTM(this,function(q){q.inDocument_&&q.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.g.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);hTM(this,function(q){q.dispose()});
!this.wasDecorated_&&this.JSC$10223_element_&&_.lC(this.JSC$10223_element_);this.parent_=this.model_=this.JSC$10223_element_=this.childIndex_=this.children_=null;IS.superClass_.disposeInternal.call(this)};
_.g.getModel=function(){return this.model_};
_.g.addChild=function(q,N){var b=this.children_?this.children_.length:0;if(q.inDocument_&&(N||!this.inDocument_))throw Error("bb");if(b<0||b>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);q.parent_==this?(_.nM.set(this.childIndex_,q.getId(),q),_.WA(this.children_,q)):_.nM.add(this.childIndex_,q.getId(),q);KHM(q,this);_.kzZ(this.children_,b,0,q);q.inDocument_&&this.inDocument_&&q.parent_==this?(N=this.getContentElement(),
(N.childNodes[b]||null)!=q.getElement()&&(q.getElement().parentElement==N&&N.removeChild(q.getElement()),b=N.childNodes[b]||null,N.insertBefore(q.getElement(),b))):N?(this.JSC$10223_element_||this.JSC$10225_createDom(),b=this.children_?this.children_[b+1]||null:null,DLo(q,this.getContentElement(),b?b.JSC$10223_element_:null)):this.inDocument_&&!q.inDocument_&&q.JSC$10223_element_&&q.JSC$10223_element_.parentNode&&q.JSC$10223_element_.parentNode.nodeType==1&&q.enterDocument()};
_.g.getContentElement=function(){return this.JSC$10223_element_};
var hTM=function(q,N){q.children_&&q.children_.forEach(N,void 0)};
IS.prototype.removeChild=function(q,N){if(q){var b=typeof q==="string"?q:q.getId();q=this.childIndex_&&b?_.nM.get(this.childIndex_,b)||null:null;b&&q&&(_.nM.remove(this.childIndex_,b),_.WA(this.children_,q),N&&(q.exitDocument(),q.JSC$10223_element_&&_.lC(q.JSC$10223_element_)),KHM(q,null))}if(!q)throw Error("eb");return q};_.oK(eVn,Azd);_.oK(BOA,Azd);var kjJ;_.nM.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var ULE=function(q,N){N?q.setAttribute("role",N):q.removeAttribute("role")},sI=function(q,N,b){Array.isArray(b)&&(b=b.join(" "));
var y="aria-"+N;b===""||b==void 0?(kjJ||(b={},kjJ=(b.atomic=!1,b.autocomplete="none",b.dropeffect="none",b.haspopup=!1,b.live="off",b.multiline=!1,b.multiselectable=!1,b.orientation="vertical",b.readonly=!1,b.relevant="additions text",b.required=!1,b.sort="none",b.busy=!1,b.disabled=!1,b.hidden=!1,b.invalid="false",b)),b=kjJ,N in b?q.setAttribute(y,b[N]):q.removeAttribute(y)):q.setAttribute(y,b)};var fp4;_.np=function(q,N,b){_.O1.call(this);this.target=q;this.handle=N||q;this.limits=b||new CG(NaN,NaN,NaN,NaN);this.JSC$10228_document_=_.LM(q);this.JSC$10228_eventHandler_=new _.xH(this);_.YN(this,this.JSC$10228_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;_.tn(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=fp4};
_.oK(_.np,_.O1);fp4=_.JZ.document&&_.JZ.document.documentElement&&!!_.JZ.document.documentElement.setCapture&&!!_.JZ.document.releaseCapture;_.CtF=function(q,N){q.hysteresisDistanceSquared_=Math.pow(N,2)};
_.g=_.np.prototype;_.g.setEnabled=function(q){this.enabled_=q};
_.g.disposeInternal=function(){_.np.superClass_.disposeInternal.call(this);_.QL(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10228_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10228_document_.releaseCapture();this.handle=this.target=null};
_.g.startDrag=function(q){var N=q.type=="mousedown";if(!this.enabled_||this.dragging_||N&&(!q.isButton(0)||_.oDo&&q.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new aS("start",this,q.clientX,q.clientY,q)))this.dragging_=!0,N&&q.preventDefault();else return;else N&&q.preventDefault();N=this.JSC$10228_document_;var b=N.documentElement,y=!this.useSetCapture_;this.JSC$10228_eventHandler_.listen(N,["touchmove","mousemove"],this.handleMove_,
{capture:y,passive:!1});this.JSC$10228_eventHandler_.listen(N,["touchend","mouseup"],this.endDrag,y);this.useSetCapture_?(b.setCapture(!1),this.JSC$10228_eventHandler_.listen(b,"losecapture",this.endDrag)):this.JSC$10228_eventHandler_.listen(Wh(N),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10228_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,y);this.clientX=this.startX=q.clientX;this.clientY=this.startY=q.clientY;this.screenX=q.screenX;this.screenY=q.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Dk(k7(this.JSC$10228_document_))}};
_.g.endDrag=function(q,N){this.JSC$10228_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10228_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new aS("end",this,q.clientX,q.clientY,q,Ipl(this,this.deltaX),TdF(this,this.deltaY),N||q.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.g.handleMove_=function(q){if(this.enabled_){var N=q.clientX-this.clientX,b=q.clientY-this.clientY;this.clientX=q.clientX;this.clientY=q.clientY;this.screenX=q.screenX;this.screenY=q.screenY;if(!this.dragging_){var y=this.startX-this.clientX,J=this.startY-this.clientY;if(y*y+J*J>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new aS("start",this,q.clientX,q.clientY,q)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(q);return}}b=sPE(this,N,b);N=b.x;b=b.y;this.dragging_&&this.dispatchEvent(new aS("beforedrag",
this,q.clientX,q.clientY,q,N,b))&&(nHT(this,q,N,b),q.preventDefault())}};
var sPE=function(q,N,b){var y=Dk(k7(q.JSC$10228_document_));N+=y.x-q.pageScroll.x;b+=y.y-q.pageScroll.y;q.pageScroll=y;q.deltaX+=N;q.deltaY+=b;return new _.Sc(Ipl(q,q.deltaX),TdF(q,q.deltaY))};
_.np.prototype.onScroll_=function(q){var N=sPE(this,0,0);q.clientX=this.clientX;q.clientY=this.clientY;nHT(this,q,N.x,N.y)};
var nHT=function(q,N,b,y){q.target.style.left=b+"px";q.target.style.top=y+"px";q.dispatchEvent(new aS("drag",q,N.clientX,N.clientY,N,b,y))},Ipl=function(q,N){var b=q.limits;
q=isNaN(b.left)?null:b.left;b=isNaN(b.width)?0:b.width;return Math.min(q!=null?q+b:Infinity,Math.max(q!=null?q:-Infinity,N))},TdF=function(q,N){var b=q.limits;
q=isNaN(b.top)?null:b.top;b=isNaN(b.height)?0:b.height;return Math.min(q!=null?q+b:Infinity,Math.max(q!=null?q:-Infinity,N))};
_.np.prototype.isDragging=function(){return this.dragging_};
var aS=function(q,N,b,y,J,E,F){_.xC.call(this,q);this.clientX=b;this.clientY=y;this.browserEvent=J;this.left=E!==void 0?E:N.deltaX;this.top=F!==void 0?F:N.deltaY};
_.oK(aS,_.xC);var ST=function(q){this.JSC$10235_map_=new Map;var N=arguments.length;if(N>1){if(N%2)throw Error("ma");for(var b=0;b<N;b+=2)this.set(arguments[b],arguments[b+1])}else q&&this.addAll(q)};
_.g=ST.prototype;_.g.getCount=function(){return this.JSC$10235_map_.size};
_.g.getValues=function(){return Array.from(this.JSC$10235_map_.values())};
_.g.getKeys=function(){return Array.from(this.JSC$10235_map_.keys())};
_.g.containsKey=function(q){return this.JSC$10235_map_.has(q)};
_.g.containsValue=function(q){return this.getValues().some(function(N){return N==q})};
_.g.equals=function(q,N){var b=this;N=N===void 0?function(y,J){return y===J}:N;
return this===q?!0:this.JSC$10235_map_.size!=q.getCount()?!1:this.getKeys().every(function(y){return N(b.JSC$10235_map_.get(y),q.get(y))})};
_.g.isEmpty=function(){return this.JSC$10235_map_.size==0};
_.g.clear=function(){this.JSC$10235_map_.clear()};
_.g.remove=function(q){return this.JSC$10235_map_.delete(q)};
_.g.get=function(q,N){return this.JSC$10235_map_.has(q)?this.JSC$10235_map_.get(q):N};
_.g.set=function(q,N){this.JSC$10235_map_.set(q,N);return this};
_.g.addAll=function(q){if(q instanceof ST){q=_.Z(q.JSC$10235_map_);for(var N=q.next();!N.done;N=q.next()){var b=_.Z(N.value);N=b.next().value;b=b.next().value;this.JSC$10235_map_.set(N,b)}}else if(q)for(q=_.Z(Object.entries(q)),N=q.next();!N.done;N=q.next())b=_.Z(N.value),N=b.next().value,b=b.next().value,this.JSC$10235_map_.set(N,b)};
_.g.forEach=function(q,N){var b=this;N=N===void 0?this:N;this.JSC$10235_map_.forEach(function(y,J){return q.call(N,y,J,b)})};
_.g.clone=function(){return new ST(this)};(function(){for(var q=["ms","moz","webkit","o"],N,b=0;N=q[b]&&!_.JZ.requestAnimationFrame;++b)_.JZ.requestAnimationFrame=_.JZ[N+"RequestAnimationFrame"],_.JZ.cancelAnimationFrame=_.JZ[N+"CancelAnimationFrame"]||_.JZ[N+"CancelRequestAnimationFrame"];if(!_.JZ.requestAnimationFrame){var y=0;_.JZ.requestAnimationFrame=function(J){var E=(new Date).getTime(),F=Math.max(0,16-(E-y));y=E+F;return _.JZ.setTimeout(function(){J(E+F)},F)};
_.JZ.cancelAnimationFrame||(_.JZ.cancelAnimationFrame=function(J){clearTimeout(J)})}})();
var apT=[[],[]],S7F=0,WHM=!1,LHx=0,PtM=function(q,N){var b=LHx++,y={measureTask:{id:b,fn:q.measure,context:N},mutateTask:{id:b,fn:q.mutate,context:N},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(y.args||(y.args=[]),y.args.length=0,y.args.push.apply(y.args,arguments),y.args.push(y.state)):y.args&&y.args.length!=0?(y.args[0]=y.state,y.args.length=1):y.args=[y.state];y.isScheduled||(y.isScheduled=!0,apT[S7F].push(y));WHM||(WHM=!0,window.requestAnimationFrame(pBT))}},pBT=
function(){WHM=!1;
var q=apT[S7F],N=q.length;S7F=(S7F+1)%2;for(var b,y=0;y<N;++y){b=q[y];var J=b.measureTask;b.isScheduled=!1;J.fn&&J.fn.apply(J.context,b.args)}for(y=0;y<N;++y)b=q[y],J=b.mutateTask,b.isScheduled=!1,J.fn&&J.fn.apply(J.context,b.args),b.state={};q.length=0};var MLo=_.Tt(["about:blank"]),oHR=_.Tt(["javascript:undefined"]),A9M=_.Xe(MLo);_.kB(A9M);var eT1=_.Xe(oHR);_.kB(eT1);var Ww=function(q){_.O1.call(this);this.JSC$10241_element_=q;this.listenKeyIn_=_.tn(this.JSC$10241_element_,"focus",this,!0);this.listenKeyOut_=_.tn(this.JSC$10241_element_,"blur",this,!0)};
_.oK(Ww,_.O1);Ww.prototype.handleEvent=function(q){var N=new _.v2(q.event_);N.type=q.type=="focusin"||q.type=="focus"?"focusin":"focusout";this.dispatchEvent(N)};
Ww.prototype.disposeInternal=function(){Ww.superClass_.disposeInternal.call(this);uq(this.listenKeyIn_);uq(this.listenKeyOut_);delete this.JSC$10241_element_};var Bd1=function(q,N){this.JSC$10244_element_=q;this.JSC$10244_dom_=N};var Lp=function(q,N){IS.call(this,N);this.useIframeMask_=!!q;this.lastFocus_=null;this.resizeBackgroundTask_=PtM({mutate:this.resizeBackground_},this);PtM({mutate:this.updateModalAndBackground_},this)};
_.oK(Lp,IS);_.g=Lp.prototype;_.g.focusHandler_=null;_.g.visible_=!1;_.g.bgEl_=null;_.g.bgIframeEl_=null;_.g.tabCatcherElement_=null;_.g.backwardTabWrapInProgress_=!1;_.g.getCssClass=function(){return"goog-modalpopup"};
_.g.getBackgroundElement=function(){return this.bgEl_};
_.g.JSC$10225_createDom=function(){Lp.superClass_.JSC$10225_createDom.call(this);var q=this.getElement(),N=$D(this.getCssClass()).split(" ");MH(q,N);q.tabIndex=0;_.JX(q,!1);HA1(this);qev(this)};
var HA1=function(q){if(q.useIframeMask_&&!q.bgIframeEl_){var N=q.JSC$10223_dom_.JSC$9409_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Nn(N,A9M);q.bgIframeEl_=N;q.bgIframeEl_.className=q.getCssClass()+"-bg";_.JX(q.bgIframeEl_,!1);P3q(q.bgIframeEl_,0)}q.bgEl_||(q.bgEl_=q.JSC$10223_dom_.JSC$9409_createDom("DIV",q.getCssClass()+"-bg"),_.JX(q.bgEl_,!1))},qev=function(q){q.tabCatcherElement_||(q.tabCatcherElement_=q.JSC$10223_dom_.createElement("SPAN"),_.JX(q.tabCatcherElement_,
!1),q.tabCatcherElement_.tabIndex=0,q.tabCatcherElement_.style.position="absolute")};
_.g=Lp.prototype;_.g.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.g.canDecorate=function(q){return!!q&&q.tagName=="DIV"};
_.g.decorateInternal=function(q){Lp.superClass_.decorateInternal.call(this,q);q=$D(this.getCssClass()).split(" ");MH(this.getElement(),q);HA1(this);qev(this);this.getElement().tabIndex=0;_.JX(this.getElement(),!1)};
_.g.enterDocument=function(){this.bgIframeEl_&&_.hx(this.bgIframeEl_,this.getElement());_.hx(this.bgEl_,this.getElement());Lp.superClass_.enterDocument.call(this);_.k_(this.tabCatcherElement_,this.getElement());this.focusHandler_=new Ww(this.JSC$10223_dom_.JSC$9407_document_);T5(this).listen(this.focusHandler_,"focusin",this.onFocus);Nyq(this,!1)};
_.g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.RA(this.focusHandler_);Lp.superClass_.exitDocument.call(this);_.lC(this.bgIframeEl_);_.lC(this.bgEl_);_.lC(this.tabCatcherElement_)};
_.g.setVisible=function(q){if(q!=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_&&Nyq(this,q),q){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10223_dom_.JSC$9407_document_.activeElement}catch(J){}this.updateModalAndBackground_();T5(this).listen(this.JSC$10223_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10223_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);bxM(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)c$(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){T5(this).unlisten(this.JSC$10223_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10223_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)c$(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var N=this.JSC$10223_dom_,b=N.JSC$9407_document_.body,y=N.JSC$9407_document_.activeElement||b;if(!this.lastFocus_||this.lastFocus_==b){this.lastFocus_=null;break a}(y==b||N.contains(this.getElement(),y))&&this.lastFocus_.focus()}catch(J){}this.lastFocus_=
null}}};
var Nyq=function(q,N){q.modalAriaVisibilityHelper_||(q.modalAriaVisibilityHelper_=new Bd1(q.JSC$10223_element_,q.JSC$10223_dom_));q=q.modalAriaVisibilityHelper_;if(N){q.hiddenElements_||(q.hiddenElements_=[]);N=q.JSC$10244_dom_.getChildren(q.JSC$10244_dom_.JSC$9407_document_.body);for(var b=0;b<N.length;b++){var y=N[b],J;if(J=y!=q.JSC$10244_element_)J=y.getAttribute("aria-hidden"),J=!(J==null||J==void 0?0:String(J));J&&(sI(y,"hidden",!0),q.hiddenElements_.push(y))}}else if(q.hiddenElements_){for(N=
0;N<q.hiddenElements_.length;N++)q.hiddenElements_[N].removeAttribute("aria-hidden");q.hiddenElements_=null}};
Lp.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var bxM=function(q,N){q.bgIframeEl_&&_.JX(q.bgIframeEl_,N);q.bgEl_&&_.JX(q.bgEl_,N);_.JX(q.getElement(),N);_.JX(q.tabCatcherElement_,N)};
_.g=Lp.prototype;_.g.onShow=function(){this.dispatchEvent("show")};
_.g.onHide=function(){bxM(this,!1);this.dispatchEvent("hide")};
_.g.isVisible=function(){return this.visible_};
_.g.focus=function(){this.focusElement_()};
_.g.resizeBackground_=function(){this.bgIframeEl_&&_.JX(this.bgIframeEl_,!1);this.bgEl_&&_.JX(this.bgEl_,!1);var q=this.JSC$10223_dom_.JSC$9407_document_;var N=_.KM(Wh(this.JSC$10223_dom_.JSC$9407_document_)||window);var b=Math.max(N.width,Math.max(q.body.scrollWidth,q.documentElement.scrollWidth));q=Math.max(N.height,Math.max(q.body.scrollHeight,q.documentElement.scrollHeight));this.bgIframeEl_&&(_.JX(this.bgIframeEl_,!0),_.SpF(this.bgIframeEl_,b,q));this.bgEl_&&(_.JX(this.bgEl_,!0),_.SpF(this.bgEl_,
b,q))};
_.g.reposition=function(){var q;if(_.akx(this.getElement())=="fixed")var N=q=0;else N=Dk(this.JSC$10223_dom_),q=N.x,N=N.y;var b=Ls1(this.getElement());var y=_.KM(Wh(this.JSC$10223_dom_.JSC$9407_document_)||window);q=Math.max(q+y.width/2-b.width/2,0);N=Math.max(N+y.height/2-b.height/2,0);sq(this.getElement(),q,N);sq(this.tabCatcherElement_,q,N)};
_.g.onFocus=function(q){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():q.target==this.tabCatcherElement_&&D6(this.focusElement_,0,this)};
_.g.focusElement_=function(){try{this.getElement().focus()}catch(q){}};
_.g.disposeInternal=function(){_.RA(this.popupShowTransition_);this.popupShowTransition_=null;_.RA(this.popupHideTransition_);this.popupHideTransition_=null;_.RA(this.bgShowTransition_);this.bgShowTransition_=null;_.RA(this.bgHideTransition_);this.bgHideTransition_=null;Lp.superClass_.disposeInternal.call(this)};var MI=function(q,N,b){Lp.call(this,N,b);this.JSC$10254_class_=q||"modal-dialog";this.buttons_=(new pp).addButton(y8x,!0).addButton(J8F,!1,!0)};
_.oK(MI,Lp);_.g=MI.prototype;_.g.escapeToCancel_=!0;_.g.hasTitleCloseButton_=!0;_.g.modal_=!0;_.g.draggable_=!0;_.g.backgroundElementOpacity_=.5;_.g.title_="";_.g.JSC$10256_dragger_=null;_.g.JSC$10256_disposeOnHide_=!1;_.g.titleEl_=null;_.g.titleTextEl_=null;_.g.titleTextId_=null;_.g.titleCloseEl_=null;_.g.contentEl_=null;_.g.buttonEl_=null;_.g.getCssClass=function(){return this.JSC$10254_class_};
_.g.setTitle=function(q){this.title_=q;this.titleTextEl_&&_.fG(this.titleTextEl_,q)};
_.g.getTitle=function(){return this.title_};
_.g.getContent=function(){return""};
_.g.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var EUM=function(q){q.getElement()||q.render();return q.getElement()};
MI.prototype.getBackgroundElement=function(){this.getElement()||this.render();return MI.superClass_.getBackgroundElement.call(this)};
var gUx=function(q,N){q.backgroundElementOpacity_=N;q.getElement()&&(N=q.getBackgroundElement())&&P3q(N,q.backgroundElementOpacity_)};
MI.prototype.setDraggable=function(q){this.draggable_=q;ZxF(this,q&&this.inDocument_)};
MI.prototype.handleDrag=function(){};
var ZxF=function(q,N){var b=$D(q.JSC$10254_class_+"-title-draggable").split(" ");q.getElement()&&(N?MH(q.titleEl_,b):UmT(q.titleEl_,b));N&&!q.JSC$10256_dragger_?(N=new _.np(q.getElement(),q.titleEl_),q.JSC$10256_dragger_=N,MH(q.titleEl_,b),_.tn(q.JSC$10256_dragger_,"start",q.setDraggerLimits_,!1,q),_.tn(q.JSC$10256_dragger_,"drag",q.handleDrag,!1,q)):!N&&q.JSC$10256_dragger_&&(q.JSC$10256_dragger_.dispose(),q.JSC$10256_dragger_=null)};
_.g=MI.prototype;
_.g.JSC$10225_createDom=function(){MI.superClass_.JSC$10225_createDom.call(this);var q=this.getElement(),N=this.JSC$10223_dom_;this.titleTextId_=this.getId();var b=this.getId()+".contentEl";this.titleEl_=N.JSC$9409_createDom("DIV",this.JSC$10254_class_+"-title",this.titleTextEl_=N.JSC$9409_createDom("SPAN",{className:this.JSC$10254_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=N.JSC$9409_createDom("SPAN",this.JSC$10254_class_+"-title-close"));v7j(q,this.titleEl_,this.contentEl_=
N.JSC$9409_createDom("DIV",{className:this.JSC$10254_class_+"-content",id:b}),this.buttonEl_=N.JSC$9409_createDom("DIV",this.JSC$10254_class_+"-buttons"));ULE(this.titleTextEl_,"heading");ULE(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;sI(this.titleCloseEl_,"label","Close");ULE(q,"dialog");sI(q,"labelledby",this.titleTextId_||"");_.JX(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(q=this.buttons_,q.JSC$10257_element_=this.buttonEl_,q.render());_.JX(this.buttonEl_,!!this.buttons_);
gUx(this,this.backgroundElementOpacity_)};
_.g.decorateInternal=function(q){MI.superClass_.decorateInternal.call(this,q);q=this.getElement();var N=this.JSC$10254_class_+"-content";this.contentEl_=Oq(document,null,N,q)[0];this.contentEl_||(this.contentEl_=this.JSC$10223_dom_.JSC$9409_createDom("DIV",N),q.appendChild(this.contentEl_));N=this.JSC$10254_class_+"-title";var b=this.JSC$10254_class_+"-title-text",y=this.JSC$10254_class_+"-title-close";(this.titleEl_=Oq(document,null,N,q)[0])?(this.titleTextEl_=Oq(document,null,b,this.titleEl_)[0],
this.titleCloseEl_=Oq(document,null,y,this.titleEl_)[0]):(this.titleEl_=this.JSC$10223_dom_.JSC$9409_createDom("DIV",N),q.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=C3x(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.iu("SPAN",{className:b,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;sI(q,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10223_dom_.JSC$9409_createDom("SPAN",y),this.titleEl_.appendChild(this.titleCloseEl_));_.JX(this.titleCloseEl_,this.hasTitleCloseButton_);N=this.JSC$10254_class_+"-buttons";(this.buttonEl_=Oq(document,null,N,q)[0])?(this.buttons_=new pp(this.JSC$10223_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10223_dom_.JSC$9409_createDom("DIV",N),q.appendChild(this.buttonEl_),this.buttons_&&(q=this.buttons_,q.JSC$10257_element_=this.buttonEl_,q.render()),_.JX(this.buttonEl_,
!!this.buttons_));gUx(this,this.backgroundElementOpacity_)};
_.g.enterDocument=function(){MI.superClass_.enterDocument.call(this);T5(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);T5(this).listen(this.buttonEl_,"click",this.onButtonClick_);ZxF(this,this.draggable_);T5(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var q=this.getElement();ULE(q,"dialog");this.titleTextEl_.id!==""&&sI(q,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){q=this.JSC$10223_dom_;
var N=this.getBackgroundElement();q.removeNode(this.bgIframeEl_);q.removeNode(N)}this.isVisible()&&Nyq(this,!1)}};
_.g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);ZxF(this,!1);MI.superClass_.exitDocument.call(this)};
_.g.setVisible=function(q){q!=this.isVisible()&&(this.inDocument_||this.render(),MI.superClass_.setVisible.call(this,q))};
_.g.onShow=function(){MI.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.g.onHide=function(){MI.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10256_disposeOnHide_&&this.dispose()};
_.g.setDraggerLimits_=function(){var q=this.JSC$10223_dom_.JSC$9407_document_,N=_.KM(Wh(q)||window),b=Math.max(q.body.scrollWidth,N.width);q=Math.max(q.body.scrollHeight,N.height);var y=Ls1(this.getElement());_.akx(this.getElement())=="fixed"?this.JSC$10256_dragger_.limits=new CG(0,0,Math.max(0,N.width-y.width),Math.max(0,N.height-y.height)):this.JSC$10256_dragger_.limits=new CG(0,0,b-y.width,q-y.height)};
_.g.onTitleCloseClick_=function(){FjF(this)};
var FjF=function(q){if(q.hasTitleCloseButton_){var N=q.buttons_,b=N&&N.cancelButton_;b?(N=N.get(b),q.dispatchEvent(new Pw(b,N))&&q.setVisible(!1)):q.setVisible(!1)}},R0v=function(q){q.hasTitleCloseButton_=!1;
q.titleCloseEl_&&_.JX(q.titleCloseEl_,q.hasTitleCloseButton_)};
MI.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;MI.superClass_.disposeInternal.call(this)};
MI.prototype.onButtonClick_=function(q){a:{for(q=q.target;q!=null&&q!=this.buttonEl_;){if(q.tagName=="BUTTON")break a;q=q.parentNode}q=null}if(q&&!q.disabled){q=q.name;var N=this.buttons_.get(q);this.dispatchEvent(new Pw(q,N))&&this.setVisible(!1)}};
MI.prototype.onKey_=function(q){var N=!1,b=!1,y=this.buttons_,J=q.target;if(q.type=="keydown")if(this.escapeToCancel_&&q.keyCode==27){var E=y&&y.cancelButton_;J=J.tagName=="SELECT"&&!J.disabled;E&&!J?(b=!0,N=y.get(E),N=this.dispatchEvent(new Pw(E,N))):J||(N=!0)}else{if(q.keyCode==9&&q.shiftKey&&J==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(m){}D6(this.resetBackwardTabWrap_,0,this)}}else if(q.keyCode==13){if(J.tagName=="BUTTON"&&!J.disabled)E=J.name;
else if(J==this.titleCloseEl_)FjF(this);else if(y){var F=y.defaultButton_,R;if(R=F)a:{R=KF("BUTTON",y.JSC$10257_element_);for(var c,z=0;c=R[z];z++)if(c.name==F||c.id==F){R=c;break a}R=null}J=(J.tagName=="TEXTAREA"||J.tagName=="SELECT"||J.tagName=="A")&&!J.disabled;!R||R.disabled||J||(E=F)}E&&y&&(b=!0,N=this.dispatchEvent(new Pw(E,String(y.get(E)))))}else J!=this.titleCloseEl_||q.keyCode!=32&&q.key!=" "||FjF(this);if(N||b)q.stopPropagation(),q.preventDefault();N&&this.setVisible(!1)};
var Pw=function(q,N){this.type="dialogselect";this.key=q;this.caption=N};
_.oK(Pw,_.xC);var pp=function(q){ST.call(this);q||k7();this.cancelButton_=this.JSC$10257_element_=this.defaultButton_=null};
_.oK(pp,ST);_.g=pp.prototype;_.g.clear=function(){ST.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.g.set=function(q,N,b,y){ST.prototype.set.call(this,q,N);b&&(this.defaultButton_=q);y&&(this.cancelButton_=q);return this};
_.g.addButton=function(q,N,b){return this.set(q.key,q.caption,N,b)};
_.g.render=function(){if(this.JSC$10257_element_){_.d0(this.JSC$10257_element_,dmd);var q=k7(this.JSC$10257_element_);this.forEach(function(N,b){N=q.JSC$9409_createDom("BUTTON",{name:b},N);b==this.defaultButton_&&(N.className="goog-buttonset-default");this.JSC$10257_element_.appendChild(N)},this)}};
_.g.decorate=function(q){if(q&&q.nodeType==1){this.JSC$10257_element_=q;q=KF("BUTTON",this.JSC$10257_element_);for(var N,b,y,J=0;N=q[J];J++)if(b=N.name||N.id,y=C3x(N)||N.value,b){var E=J==0;this.set(b,y,E,N.name=="cancel");E&&_.nt(N,"goog-buttonset-default")}}};
_.g.getElement=function(){return this.JSC$10257_element_};
var y8x={key:"ok",caption:"OK"},J8F={key:"cancel",caption:"Cancel"},dPT={key:"yes",caption:"Yes"},c8M={key:"no",caption:"No"},uvJ={key:"save",caption:"Save"},z0v={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new pp).addButton(y8x,!0,!0),(new pp).addButton(y8x,!0).addButton(J8F,!1,!0),(new pp).addButton(dPT,!0).addButton(c8M,!1,!0),(new pp).addButton(dPT).addButton(c8M,!0).addButton(J8F,!1,!0),(new pp).addButton(z0v).addButton(uvJ).addButton(J8F,!0,!0));_.oK(H4C,MI);_.oK(qan,oA);var $Px=_.Tt(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),t21=_.Tt(["//apis.google.com/js/rpc.js"]),Rwe=_.Xe($Px),FAJ=_.Xe(t21),bYA=null;var AW=function(q,N){_.O1.call(this);this.JSC$10266_element_=q;q=_.Rp(this.JSC$10266_element_)?this.JSC$10266_element_:this.JSC$10266_element_?this.JSC$10266_element_.body:null;this.isRtl_=!!q&&_.Mcl(q);this.listenKey_=_.tn(this.JSC$10266_element_,_.qd?"DOMMouseScroll":"mousewheel",this,N)};
_.oK(AW,_.O1);AW.prototype.handleEvent=function(q){var N=0,b=0,y=q.event_;y.type=="mousewheel"?(q=mPE(-y.wheelDelta),y.wheelDeltaX!==void 0?(N=mPE(-y.wheelDeltaX),b=mPE(-y.wheelDeltaY)):b=q):(q=y.detail,q>100?q=3:q<-100&&(q=-3),y.axis!==void 0&&y.axis===y.HORIZONTAL_AXIS?N=q:b=q);typeof this.maxDeltaX_==="number"&&(N=_.Od(N,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(b=_.Od(b,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(N=-N);N=new r81(q,y,N,b);this.dispatchEvent(N)};
var mPE=function(q){return _.Nd&&(_.oDo||euE)&&q%40!=0?q:q/40};
AW.prototype.disposeInternal=function(){AW.superClass_.disposeInternal.call(this);uq(this.listenKey_);this.listenKey_=null};
var r81=function(q,N,b,y){_.v2.call(this,N);this.type="mousewheel";this.detail=q;this.deltaX=b;this.deltaY=y};
_.oK(r81,_.v2);_.L0=function(q){var N="instance_";if(q.instance_&&q.hasOwnProperty(N))return q.instance_;N=new q;return q.instance_=N};var ZYJ;var Xyj=_.Tt(["https://about:blank"]),V2T=_.Tt(['javascript:""']),j$T=_.Tt(["about:blank"]);_.oK(EL,H4C);_.g=EL.prototype;_.g.JSC$10274_url_="";_.g.JSC$10274_iframe_=null;_.g.iframeLoaded_=!1;_.g.loadedFired_=!1;_.g.callback_=function(){};
_.g.enterDocument=function(){EL.superClass_.enterDocument.call(this);E5n(this.getBackgroundElement(),T5(this))};
_.g.render=function(q){var N=this;EL.superClass_.render.call(this,q);this.useGapi_?jPl(this.iframeManager_,window).then(function(){return xPE(N)}).then(null,function(){N.callback_({action:"error"})}):vUq(this)};
var xPE=function(q){var N=q.JSC$10223_dom_.JSC$9409_createDom("div",["picker-dialog-content","picker-frame"]);_.JX(N,!1);q.getContentElement().appendChild(N);return xL1(q.iframeManager_,N,function(b){var y=sAq(b["iframe-command"]);switch(y.getCommand()){case 1:b=q.callback_;y=_.Vr(y,yL,2);var J="";switch(y.getStatus()){case 2:J="cancel";break;case 1:J="picked";break;case 3:J="error"}var E=_.zP(y,mY,2,_.$N(xvj));y=E.length===0?{action:J}:NdM(E,J,_.Vr(y,CCJ,7));b.call(q,y);q.setVisible(!1);break;case 4:R0v(q);
q.callback_({action:"loaded"});break;case 7:case 8:b=q.callback_;a:{J=y.getCommand();E=_.Vr(y,yL,2);switch(J){case 7:J="uploadScheduled";break;case 8:J="uploadStateChange";break;default:y={};break a}y=_.zP(E,mY,2,_.$N(xvj));if(y.length===0)y={action:J};else{var F=_.Vr(E,CCJ,7);E=F&&_.xs(F,1);F=Wnx(F);y=P_4(y,J,E,F)}}b.call(q,y)}},q.JSC$10274_url_,q.targetId_,q.rpcToken_).then(function(b){q.JSC$10274_iframe_=b.getIframeEl();
Gy1(q);_.JX(q.JSC$10274_iframe_.parentElement,!0);_.nt(q.getElement(),"picker-dialog");Ye4(q);return b})},vUq=function(q){q.JSC$10274_iframe_=q.JSC$10223_dom_.JSC$9409_createDom("IFRAME",{id:q.targetId_,
name:q.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Nn(q.JSC$10274_iframe_,Q$E(q));_.nt(q.getElement(),"picker-dialog");q.getContentElement().appendChild(q.JSC$10274_iframe_);T5(q).listen(q.JSC$10274_iframe_,"load",function(){return void Gy1(q)});
q.JSC$10274_iframe_.src=q.JSC$10274_url_;Ye4(q)},wy1=function(q){Oxo(q,(0,_.fF)(function(N){N.setAuthToken(this.targetId_,this.rpcToken_)},q))},Ye4=function(q){var N=_.b5(_.N0(q.JSC$10274_url_),"title");
N&&q.setTitle(N)},Q$E=function(q){return _.vDR("Internet Explorer")>=7&&_.gA(q.JSC$10274_url_,"https")?_.Xe(Xyj):_.HV?_.Xe(V2T):_.Xe(j$T)},Gy1=function(q){wy1(q);
q.iframeLoaded_=!0;q.JSC$10274_iframe_.tabIndex=0;q.isVisible()&&q.focus()};
EL.prototype.handleKeydown_=function(q){q.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),q.stopPropagation(),q.preventDefault())};
var Oxo=function(q,N){var b=q.JSC$10272_gadgetsDomHelper_;ySd(function(){N(b.getWindow().gadgets.rpc)},b)};
EL.prototype.setUrl=function(q){q=_.yS(new _.a$(q),"rpcService",this.targetId_);_.yS(q,"rpctoken",this.rpcToken_);_.Fg(q,"rpctoken="+this.rpcToken_);_.yw(q,"https");this.JSC$10274_url_=q.toString();this.JSC$10274_iframe_&&(this.JSC$10274_iframe_.src=this.JSC$10274_url_)};
var ixx=function(q,N){q.callback_=N;Oxo(q,(0,_.fF)(function(b){b.register(this.targetId_,(0,_.fF)(this.handlePickerAction_,this))},q))};
EL.prototype.handlePickerAction_=function(q){var N=q.action;N=="loaded"&&(this.loadedFired_=!0,lZ4(this,new BOA(this.isVisible())),Kjv(this),R0v(this),T5(this).unlisten(this.JSC$10223_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10274_iframe_.tabIndex=0);N!="picked"&&N!="cancel"||this.setVisible(!1);this.callback_(q)};
var Kjv=function(q){q.JSC$10274_appId_&&lZ4(q,new eVn(q.JSC$10274_appId_,window.location.protocol+"//"+window.location.host))};
EL.prototype.setRelayUrl=function(q){Oxo(this,(0,_.fF)(function(N){N.setRelayUrl(this.targetId_,q)},this))};
var lZ4=function(q,N){q.useGapi_&&OAF(N,q.iframeManager_).then(null,function(){q.callback_({action:"error"})});
Oxo(q,(0,_.fF)(function(b){b.call(this.targetId_,"picker",null,N)},q))};
EL.prototype.resizePicker_=function(){var q=Wh(this.JSC$10223_dom_.JSC$9407_document_)||window;if(_.b5(_.N0(this.JSC$10274_url_),"ignoreLimits")=="true")q=new _.l3(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.b5(_.N0(this.JSC$10274_url_),"shadeDialog")=="true"){var N=EUM(this);N=o71(N);var b=_.KM(q);q=b.width-80;b=b.height-40;N&&(q-=N.left?N.left:0,q-=N.right?N.right:0,b-=N.top?N.top:0,b-=N.bottom?N.bottom:0);q=new _.l3(q>0?q:0,b>0?b:0)}else(N=this.preferredDialogWidth_)?(N=Math.max(320,
Math.min(1051,N)),(b=this.preferredDialogHeight_)||(b=_.KM(q).height*.85),b=Math.max(480,Math.min(650,b))):(N=_.KM(q),b=N.width*.618,b=b<N.height?Math.round(Math.max(480,Math.min(650,b*.85))):Math.round(Math.max(480,Math.min(650,N.height*.85))),N=Math.round(b/.618)),q=_.KM(q),N=Math.min(N,Math.max(q.width,320)),b=Math.min(b,Math.max(q.height,480)),q=new _.l3(N,b);_.SpF(this.getContentElement(),q);this.reposition()};
EL.prototype.reposition=function(){if(_.b5(_.N0(this.JSC$10274_url_),"shadeDialog")=="true"){var q=Ls1(this.getElement()),N=_.KM(this.JSC$10223_dom_.getWindow());q=Math.floor(N.width/2-q.width/2);N=EUM(this);if(N=o71(N)){var b=N.left?N.left:0;b+=N.right?N.right:0;q=Math.floor(q-b/2)}q=q>0?q:0;N=Dk(this.JSC$10223_dom_).y;sq(this.getElement(),q,N)}else EL.superClass_.reposition.call(this)};
EL.prototype.setVisible=function(q){if(q!=this.isVisible()&&this.autoSizeDialog_){var N=this.JSC$10223_dom_.getWindow();q?(this.resizePicker_(),T5(this).listen(N,"resize",this.resizePicker_),this.iframeLoaded_||T5(this).listen(N,"keydown",this.handleKeydown_)):(T5(this).unlisten(N,"resize",this.resizePicker_),this.iframeLoaded_||T5(this).unlisten(N,"keydown",this.handleKeydown_))}EL.superClass_.setVisible.call(this,q);lZ4(this,new BOA(q))};
EL.prototype.focus=function(){EL.superClass_.focus.call(this);if(this.JSC$10274_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10274_iframe_.focus()}catch(q){}};var zM=function(q,N){N=N===void 0?EL:N;oA.call(this,q);this.pickerConstructor=N;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(q=window.location.origin)||(q=window.location.protocol+"//"+window.location.host);q&&this.urlParamMap_.set("origin",q);this.postProcessors_=[]};
_.Y(zM,qan);zM.prototype.JSC$10279_disposeOnHide_=!1;
zM.prototype.build=function(){this.JSC$10180_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10180_appId_);this.getRelayUrl()||this.setRelayUrl(_.gH(_.Fg(_.ZN(_.N0(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var q=new this.pickerConstructor(DPq(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);q.JSC$10256_disposeOnHide_=this.JSC$10279_disposeOnHide_;
q.JSC$10274_appId_=this.JSC$10180_appId_;q.loadedFired_&&Kjv(q);ixx(q,this.callback_);return q};
var h0R=function(q){q.urlParamMap_.set("multiselectEnabled","true");return q};
_.g=zM.prototype;_.g.getHeight=function(){return this.dialogHeight_};
_.g.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.g.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.g.getTitle=function(){return this.urlParamMap_.get("title")};
_.g.getWidth=function(){return this.dialogWidth_};
var kyj=function(q){q.JSC$10279_disposeOnHide_=void 0;return q};
zM.prototype.setRelayUrl=function(q){this.urlParamMap_.set("parent",q);return this};
var UPR=function(q,N){q.urlParamMap_.set("selectButtonLabel",N);return q};
zM.prototype.setSize=function(q,N){this.dialogWidth_=q;this.dialogHeight_=N;return this};
zM.prototype.setTitle=function(q){this.urlParamMap_.set("title",q);return this};
var DPq=function(q){q.postProcessors_.length&&q.urlParamMap_.set("pp",JSON.stringify(q.postProcessors_));q.urlParamMap_.set("nav",sC1(q.nav_));var N=new _.a$(q.getBaseUrl());q.urlParamMap_.forEach(function(b,y){_.yS(N,y,b)});
return N};var IZo=function(q,N){q.name!==void 0?(this.name=q.name,this.code=fZo[q.name]):(this.code=q=q.code,this.name=CEJ(q));_.bn.call(this,Z7j("%s %s",this.name,N))};
_.oK(IZo,_.bn);var CEJ=function(q){var N=_.nM.findKey(fZo,function(b){return q==b});
if(N===void 0)throw Error("hb`"+q);return N},Mj={},fZo=(Mj.AbortError=3,Mj.EncodingError=5,Mj.InvalidModificationError=9,Mj.InvalidStateError=7,Mj.NotFoundError=1,Mj.NotReadableError=4,Mj.NoModificationAllowedError=6,Mj.PathExistsError=12,Mj.QuotaExceededError=10,Mj.SecurityError=2,Mj.SyntaxError=8,Mj.TypeMismatchError=11,Mj);var Tyx=function(q,N){_.xC.call(this,q.type,N);this.event_=q};
_.oK(Tyx,_.xC);var s$E=function(q,N,b){b===void 0&&(b=q.size);return q.slice?q.slice(N,b):null};var ulJ=new WeakMap,cSD=function(q,N){q=[q];for(var b=N.length-1;b>=0;--b)q.push(typeof N[b],N[b]);return q.join("\v")};_.$mR(function(){if(!_.JZ.Blob)return!1;var q=new Uint8Array(100);try{var N=new Blob([q])}catch(b){return!1}return N.size!=100?!1:!0});
var nUx=_.$mR(function(){if(!_.JZ.Blob)return!1;var q=new Uint8Array(100);try{var N=new Blob([q])}catch(b){return!1}return s$E(N,0,1)===null?!1:!0});_.JZ.U3bHHf!=null||(_.JZ.U3bHHf=0);_.JZ.U3bHHf++;_.aZT=new WeakMap;_.Seq=new WeakMap;var mmn={};var F8=void 0;var Xvu=Symbol("pb");var DmJ=c1("WizInjectionContext_Dispatcher");var mT=Symbol("qb");var lc,fI;lc=function(){this.afterRenderCallbacks=null};
_.V2n=Symbol("rb");fI=function(q){this.props=q;this.__unmounted=!1};
fI.prototype.didPatch=function(){};
fI.prototype.didMount=function(){};
fI.prototype.didUnmount=function(){};
fI.prototype.didUpdate=function(){};_.OYh=c1("WizInjectionContext_RootElement");var iYA=c1("WizInjectionContext_AppContext"),wvd=c1("WizInjectionContext_ModelRootElement"),l3D=c1("WizInjectionContext_RendererData"),KAe=c1("WizInjectionContext_InjectingConstructor"),Qwe=c1("WizInjectionContext_AsyncDeps"),hwJ={};var TDR=!1;var Sau={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:SJR,enableLazyTsx:Wd4,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:aRM,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var z2=Object.assign({},{attributes:{},handleError:function(q){throw q;}},Sau);var WjR=Symbol("vb"),Ie=Symbol("wb"),ZQC=Symbol("xb"),ayA=Symbol("yb"),$ru=Il(function(q){return $L(q)&&WjR in q});var ASn=Symbol("zb"),oS={},Mdh=(oS[ASn]=!0,oS.debugName="[component]",oS.getComponentStack=function(){for(var q=[],N=this;N;)ewC(N)&&q.push(N.debugName),N=N.parent;return q},oS.registerSignal=function(){},oS.registerEffect=function(){},oS);var tX=null,rn=!1,jx=1,G2=Symbol("Db"),l5={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 A5=Symbol("Eb"),eT=Symbol("Fb"),v1=Symbol("Gb"),Zod=Object.assign({},l5,{value:A5,dirty:!0,error:null,equal:BDh,kind:"computed",producerMustRecompute:function(q){return q.value===A5||q.value===eT},
producerRecomputeValue:function(q){if(q.value===eT)throw Error("Z");var N=q.value;q.value=eT;var b=JrJ(q),y=!1;try{var J=q.computation();mR(null);y=N!==A5&&N!==v1&&J!==v1&&q.equal(N,J)}catch(E){J=v1,q.error=E}finally{mR(b),q&&gyR(q)}y?q.value=N:(q.value=J,q.version++)}});Object.assign({},l5,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var crd=function(){throw Error();};var zrd=null,RrZ=Object.assign({},l5,{equal:BDh,value:void 0,kind:"signal"});var $6d=Object.assign({},l5,{value:A5,dirty:!0,error:null,equal:BDh,kind:"linkedSignal",producerMustRecompute:function(q){return q.value===A5||q.value===eT},
producerRecomputeValue:function(q){if(q.value===eT)throw Error("Z");var N=q.value;q.value=eT;var b=JrJ(q);try{var y=q.source();var J=q.computation(y,N===A5||N===v1?void 0:{source:q.sourceValue,value:N});q.sourceValue=y}catch(E){J=v1,q.error=E}finally{mR(b),q&&gyR(q)}N!==A5&&J!==v1&&q.equal(N,J)?q.value=N:(q.value=J,q.version++)}});Object.assign({},l5,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(q){q.schedule!==null&&q.schedule(q.ref)},
cleanupFn:function(){}});var rrA=Symbol("Hb"),OL=Symbol("Ib");var wn=Array.isArray;var OoJ;var Ljj={},iou=Qpn(Object.assign({},{consumerAllowSignalWrites:!0},Ljj)),D$=Qpn(Object.assign({},{consumerAllowSignalWrites:!0},Ljj));var kL=Symbol("Nb");var hX=null,D6n,hrD=null,k6J;var T2=0,sL=!1,Bw=function(){this.queue=new Set};
Bw.prototype.schedule=function(q){this.queue.add(q)};
Bw.prototype.remove=function(q){this.queue.delete(q)};
Bw.prototype.clear=function(){this.queue.clear()};
var IyJ=Symbol("Ob"),fyn=Symbol("Pb"),Hw=function(){Bw.apply(this,arguments)};
_.Y(Hw,Bw);Hw.prototype.flush=function(){if(this.queue.size){sL=!0;for(var q=_.Z(this.queue),N=q.next();!N.done;N=q.next()){N=N.value;this.queue.delete(N);try{N.run()}catch(b){py1(b)}}sL=!1}};
var PE1=function(){Hw.apply(this,arguments)};
_.Y(PE1,Hw);var C0n=new PE1,M2M=function(){Hw.apply(this,arguments)};
_.Y(M2M,Hw);M2M.prototype.schedule=function(q){return _.d(function(N){if(N.nextAddress==1)return N.yield(Promise.resolve(),2);q.run();_.hj(N)})};
M2M.prototype.enqueue=function(q){this.queue.add(q)};
var TLJ=new M2M,qt=function(){Bw.apply(this,arguments)};
_.Y(qt,Bw);qt.prototype.flush=function(){this.queue.size&&t6J(this.queue)};
var oUF=function(){qt.apply(this,arguments)};
_.Y(oUF,qt);oUF.prototype.schedule=function(q){q.hasRun?this.queue.add(q):q.run()};
oUF.prototype.flush=function(){if(this.queue.size)if(z2.flushRenderEffectsDuringRender){var q=this.queue;this.queue=new Set;t6J(q)}else t6J(this.queue)};
var nyJ=new oUF,A8j=function(){qt.apply(this,arguments)};
_.Y(A8j,qt);A8j.prototype.schedule=function(q){return _.d(function(N){if(N.nextAddress==1)return N.yield(Promise.resolve(),2);q.run();_.hj(N)})};
A8j.prototype.enqueue=function(q){this.queue.add(q)};
var FnA=new A8j,e0l=function(){qt.apply(this,arguments)};
_.Y(e0l,qt);var S2z=new e0l,dru=[nyJ,C0n,S2z],z3C=[TLJ,FnA],By4=[nyJ,S2z,FnA],mrh=[].concat(_.a9(dru),_.a9(z3C)),Hxx=[];zrd=function(){u0C();for(var q=_.Z(Hxx),N=q.next();!N.done;N=q.next())N=N.value,N()};
var py1=EJ;var Nt={},qYM=Object.assign({},l5,(Nt[WjR]=!0,Nt.effectType=Ie,Nt.isResettableContext=!0,Nt.hasRun=!1,Nt.effectFn=null,Nt.consumerIsAlwaysLive=!0,Nt.consumerAllowSignalWrites=!0,Nt.consumerMarkedDirty=R3z,Nt.kind="effect",Nt.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(rn)throw Error("Qb");this.dirty=!1;if(!this.hasRun||NLC(this)){this.hasRun=!0;Yan(this);var q=_.Re(this),N=JrJ(this);LAA("effectRun",this.debugName);try{C3(this.effectFn,this.componentStack,this)}catch(b){throw z2.enableContextBasedComponentStacks&&
f3(b),b;}finally{pve("effectRun",this.debugName),mR(N),this&&gyR(this),_.Re(q)}}}},Nt.componentStack=void 0,Nt.debugName="[effect]",Nt[Symbol.dispose]=function(){if(VS(this))for(var q=this.producers;q!==void 0;)q=EyD(q);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;q=_.Z(By4);for(var N=q.next();!N.done;N=q.next())N.value.remove(this);GnJ(this)},Nt));var XKD=Object.assign({},qYM,{effectType:Ie});var V6A=Object.assign({},qYM,{effectType:ZQC});var vFu=Symbol("Rb");var J9z=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 QCe={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},YXu=
{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}]}},VRh={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},iQD=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],wKh={"*":{async:1,dir:0,loading:2,target:3}};var Ngx=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,bK={},KnC=(bK[1]=null,bK[2]=function(q,N){return N instanceof ev?qn(N):Sv.toString()},bK[3]=function(q,N){return Te(N)?_.sh(N):Ngx.test(String(N))?String(N):Sv.toString()},bK[4]=function(q,N){return N instanceof Dl?_.kB(N):Sv.toString()},bK[5]=function(q,N){return String(N)},bK[7]=null,bK[8]=null,bK[10]=null,bK);var QDd=Symbol("Ub");var mfd=function(q){var N=brJ,b=q,y="",J="",E=1;q<0&&(q=-q);if(q===Infinity)q=(Infinity*Math.sign(b)).toString();else{for(var F=0;F<ye4.length;F++){var R=ye4[F];E=N[R];if(q>=E||E<=1&&q>.1*E){y=R;break}}y?(y+="B",J=" "):E=1;q=Math.round(b/E*10)/10+J+y}return q},ye4="Y Z E P T G M K  m u n".split(" "),brJ={"":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};_.Jeq=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 vC={};RegExp.prototype.hasOwnProperty("sticky");var gHC=function(q){q=String(q);for(var N=function(y,J,E){for(var F=Math.min(J.length-E,y.length),R=0;R<F;R++){var c=J[E+R];if(y[R]!==("A"<=c&&c<="Z"?c.toLowerCase():c))return!1}return!0},b=0;(b=q.indexOf("<",b))!=-1;){if(N("\x3c/script",q,b)||N("\x3c!--",q,b))return"zSoyz";
b+=1}return q};var H1={default:"__default"};var C_R=Object.prototype.hasOwnProperty;khd.prototype=Object.create(null);var zh=sCd();var cC=null;var e3A=function(q){this.created=[];this.deleted=[];this.node=q};var BIh=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var q=this,N=q;q;)N=q,q=q.parentNode;return N};var amA=function(q,N){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=q;this.key=N;this.text=void 0};var Ew=null,gV=null,yq=null,FC=null,P_Z=[],pKA=WnJ,Ru=[],dV=[],Y$J=function(q){return HQJ(function(N,b,y){yq=gV=N;gV=null;b(y);Lne(null);gV=yq;yq=yq.parentNode;return N},q)}(),GSJ=function(q){return HQJ(function(N,b,y){var J={nextSibling:N};
gV=J;b(y);yq&&Lne(N.nextSibling);return J===gV?null:gV},q)}();var uc=[],Ndd=0;var zf=new khd;var j_=new khd;var Eov=sCd(),RTd=Eov[H1.default],FHJ=Eov.style,EHd=["focusin","focusout"],u4z="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var BdC=function(){},nHn=function(){},y8J=function(){},qee=function(){};var tV=Symbol("bc");var r9d,mLD=tLn;var Ow=Symbol("cc");var bxd=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(" ")),
NyR=new Set(["a","font","script","style","title"]);_.Qq={setUp:KHd,tearDown:KHd,log:KHd,logNodeRange:KHd,graft:function(q,N){N()}};var hV={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var kZ=null,Uw=function(q,N){fI.call(this,q);var b=this;this.functionComponent=N;this.hooks=[];this.hookCounter=0;this.disposeEffects=L3(function(y){b.effectContext=y;_.W1(function(){LHA(b,b.el)})},z2.alwaysTrackContexts||!!F8)};
_.Y(Uw,fI);Uw.prototype.render=function(q){var N=kZ;kZ=this;this.hookCounter=0;var b=mR(D$),y=_.Re(this.effectContext);try{return LAA("render",this.componentName),this.functionComponent(q)}finally{pve("render",this.componentName),_.Re(y),mR(b),kZ=N}};
_.$H.Object.defineProperties(Uw.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return lyD(this.functionComponent)}}});var J8h=Symbol("qc"),A9d=function(q,N,b){this.afterRenderCallbacks=null;this.kind=q;this.props=N;this.children=b};
_.Y(A9d,lc);A9d.prototype.render=function(){var q=oHA(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var N=_.Z(this.afterRenderCallbacks),b=N.next();!b.done;b=N.next())b=b.value,q=b(q);return q};
A9d.prototype.getChildren=function(){return this.children};var gUA=[];crd=function(q){throw Error("ob`"+q.debugName);};
(function(){var q=cC;cC=function(N){q==null||q(N);Zxh(N)}})();Object.assign({},qYM,{effectType:Ie,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var q=this.elementRef;var N;q.element!=null||(q.element=(N=q.document.getElementById(q.value))!=null?N:void 0);q=q.element;for(N=this.attributes;N;){var b=N.signal();b!==N.prevValue&&(N.prevValue=b,N.namespace===1?q[N.name]=b:J9z.has(N.name)?B1(q,N.name,b?"":null):B1(q,N.name,b));N=N.next}}});_.CI.debugName="tbhMcf";_.Iu.debugName="zyMFzb";Object.assign({},qYM,{effectType:Ie,hasRun:!0});_.t.debugName="RlDudd";var Fjh={nonNullableCondIsNull:function(){return Error("uc")}};var t2d=function(){this.map=new Map};
t2d.prototype.push=function(q,N){var b=this.map;b.has(q)&&(this.multi||(this.multi=new Map),this.multi.set(N,b.get(q)));b.set(q,N)};
t2d.prototype.pop=function(q){var N=this.map,b=N.get(q),y;b!==void 0&&((y=this.multi)==null?0:y.has(b))?(N.set(q,this.multi.get(b)),this.multi.delete(b)):N.delete(q);return b};_.Tf.debugName="nsTGHd";_.sw.debugName="vI1rtf";_.xPD={OUT_OF_ORDER_HOOK_CALL:function(q){return Error("vc`"+q)},
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(q,N){return Error("zc`"+((N===void 0?0:N)?"IDOM":"Reactive")+"`"+(nI(q)?q.description:q))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(q,N){return Error("Ac`"+(nI(q)?q.description:q)+"`"+N)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(q){return Error("Bc`"+(nI(q)?q.description:q))},
USE_ELEMENT_NOT_ASSIGNED:function(q){return Error("Cc`"+(nI(q)?q.description:q))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(q){return Error("Dc`"+(nI(q)?q.description:q))}};r9d=eTd;var wyd=Symbol("Ec");S7h({beforeRender:function(q){var N=_.Re(q.effectContext);try{var b;((b=q.__syncEffects)==null?0:b.length)&&Kje(q.__syncEffects)}finally{_.Re(N)}},
didPatch:function(q){var N=_.Re(q.effectContext);try{var b;((b=q.__syncEffects)==null?0:b.length)&&Kje(q.__syncEffects)}finally{_.Re(N)}},
didUnmount:function(q){var N;((N=q.hooks)==null?0:N.length)&&q.hooks.forEach(lZZ)}});var go1,ZrM,FO1;go1=_.JZ.window;_.pI=(go1==null?void 0:(ZrM=go1.yt)==null?void 0:ZrM.config_)||(go1==null?void 0:(FO1=go1.ytcfg)==null?void 0:FO1.data_)||{};_.zn("yt.config_",_.pI);var R2x={},fZz=[];_.IO=function(q){var N=_.MB.apply(1,arguments);var b=Error.call(this,q);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.args=[].concat(_.a9(N));Object.setPrototypeOf(this,this.constructor.prototype)};
_.Y(_.IO,Error);var bOJ=function(q,N,b){this.actionName=q;this.optionalAction=N===void 0?!1:N;this.args=b===void 0?null:b;this.returnValue=[]};_.yT=function(q){this.name=q};_.qr=new _.yT("signalAction");var PEC=/^[\w.]*$/,nUJ={q:!0,search_query:!0},s$D=String(TyJ);var ma;ma=Symbol("Fc");_.Jw=function(q){this.name=q};
_.Jw.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var M2d=function(q){this.key=q},HxA=function(q){this.deferredKey=q},A8n=function(){var q=this;
this.providers=new Map;this.JSC$10569_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(q.providers)}}};
A8n.prototype.addProvider=function(q){this.providers.set(q.provide,q);var N=this.JSC$10569_deferred.get(q.provide);if(N)try{N.resolver(this.resolve(q.provide))}catch(b){N.rejector(b)}};
A8n.prototype.resolve=function(q){return q instanceof HxA?dc1(this,q):q instanceof M2d?ceo(this,q.key,[],!0):ceo(this,q,[])};
var dc1=function(q,N){N=N.deferredKey;if(q.JSC$10569_deferred.has(N))return q.JSC$10569_deferred.get(N).promise;var b={};b.promise=new Promise(function(y,J){b.resolver=y;b.rejector=J});
q.JSC$10569_deferred.set(N,b);return b.promise},ceo=function(q,N,b,y){y=y===void 0?!1:y;
if(b.indexOf(N)>-1)throw Error("Gc`"+N);if(q.cachedValues.has(N))return q.cachedValues.get(N);if(!q.providers.has(N)){if(y)return;throw Error("Hc`"+N);}y=q.providers.get(N);b.push(N);if(y.useValue!==void 0)var J=y.useValue;else if(y.useFactory)J=y[ma]?uEx(q,y[ma],b):[],J=y.useFactory.apply(y,_.a9(J));else if(y.useClass){J=y.useClass;var E=J[ma]?uEx(q,J[ma],b):[];J=new (Function.prototype.bind.apply(J,[null].concat(_.a9(E))))}else throw Error("Ic`"+N);b.pop();y.skipCache||q.cachedValues.set(N,J);return J},
uEx=function(q,N,b){return N?N.map(function(y){return y instanceof M2d?ceo(q,y.key,b,!0):ceo(q,y,b)}):[]};var oUh;var Nr=new _.Jw("ENDPOINT_HANDLER_TOKEN");_.b_=new _.yT("urlEndpoint");var z2J=function(){this.data=[];this.cachedPackedInt52=-1};
z2J.prototype.set=function(q,N){N=N===void 0?!0:N;0<=q&&q<52&&Number.isInteger(q)&&this.data[q]!==N&&(this.data[q]=N,this.cachedPackedInt52=-1)};
z2J.prototype.get=function(q){return!!this.data[q]};
var $cT=function(q){q.cachedPackedInt52===-1&&(q.cachedPackedInt52=q.data.reduce(function(N,b,y){return N+(b?Math.pow(2,y):0)},0));
return q.cachedPackedInt52};var z2u=function(q){var N=tg1;q=q===void 0?_.Ng("yt.ads.biscotti.lastId_")||"":q;var b=Object,y=b.assign,J={};J.dt=zwJ;J.flash="0";a:{try{var E=N.JSC$10575_win_.top.location.href}catch(qe){E=2;break a}E=E?E===N.doc_.location.href?0:1:2}J=(J.frm=E,J);try{J.u_tz=-(new Date).getTimezoneOffset();try{var F=LJ.history.length}catch(qe){F=0}J.u_his=F;var R;J.u_h=(R=LJ.screen)==null?void 0:R.height;var c;J.u_w=(c=LJ.screen)==null?void 0:c.width;var z;J.u_ah=(z=LJ.screen)==null?void 0:z.availHeight;var m;J.u_aw=
(m=LJ.screen)==null?void 0:m.availWidth;var r;J.u_cd=(r=LJ.screen)==null?void 0:r.colorDepth}catch(qe){}F=N.JSC$10575_win_;try{var X=F.screenX;var V=F.screenY}catch(qe){}try{var G=F.outerWidth;var w=F.outerHeight}catch(qe){}try{var D=F.innerWidth;var k=F.innerHeight}catch(qe){}try{var f=F.screenLeft;var L=F.screenTop}catch(qe){}try{D=F.innerWidth,k=F.innerHeight}catch(qe){}try{var S=F.screen.availWidth;var W=F.screen.availTop}catch(qe){}X=[f,L,X,V,S,W,G,w,D,k];V=OFJ(!1,N.JSC$10575_win_.top);G={};
var M=M===void 0?_.JZ:M;w=new z2J;"SVGElement"in M&&"createElementNS"in M.document&&w.set(0);D=dYJ();D["allow-top-navigation-by-user-activation"]&&w.set(1);D["allow-popups-to-escape-sandbox"]&&w.set(2);M.crypto&&M.crypto.subtle&&w.set(3);"TextDecoder"in M&&"TextEncoder"in M&&w.set(4);M=$cT(w);N=(G.bc=M,G.bih=V.height,G.biw=V.width,G.brdim=X.join(),G.vis=rVJ(N.doc_),G.wgl=!!LJ.WebGLRenderingContext,G);b=y.call(b,J,N);b.ca_type="image";q&&(b.bid=q);return b},tg1=new function(){var q=window.document;
this.JSC$10575_win_=window;this.doc_=q};
_.zn("yt.ads_.signals_.getAdSignalsString",function(q){return aZn(z2u(q))});_.M$();navigator.userAgent.indexOf(" (CrKey ");var JeR="XMLHttpRequest"in _.JZ?function(){return new XMLHttpRequest}:null;var mcx="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),reM=[].concat(_.a9(mcx),["client_dev_set_cookie"]);var uEJ={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"},Zrd="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(_.a9(mcx)),voh=!1,R2J=_.$cn,Vge=cez;var L8D=[{messageFn:function(q){return"Cannot read property '"+q.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(q){return"Cannot call '"+q.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(q){return q.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var X3M={messageWeights:[],callbackWeights:[{callback:Orn,weight:500},{callback:w3e,weight:500}]};var Vgv=function(){this.callbackWeights=[];this.messageWeights=[]},j5v,W8A=function(){if(!j5v){var q=j5v=new Vgv;
q.messageWeights.length=0;q.callbackWeights.length=0;trJ(q,X3M)}return j5v},trJ=function(q,N){N.messageWeights&&q.messageWeights.push.apply(q.messageWeights,N.messageWeights);
N.callbackWeights&&q.callbackWeights.push.apply(q.callbackWeights,N.callbackWeights)};_.oK(_.K4,_.UN);_.K4.prototype.subscribe=function(q,N,b){var y=this.topics_[q];y||(y=this.topics_[q]=[]);var J=this.JSC$10599_key_;this.subscriptions_[J]=q;this.subscriptions_[J+1]=N;this.subscriptions_[J+2]=b;this.JSC$10599_key_=J+3;y.push(J);return J};
var xco=function(q){var N=e0,b=!1,y=N.subscribe("handleError",function(J){b||(b=!0,this.unsubscribeByKey(y),q.apply(void 0,arguments))},N)};
_.K4.prototype.unsubscribe=function(q,N,b){if(q=this.topics_[q]){var y=this.subscriptions_;if(q=q.find(function(J){return y[J+1]==N&&y[J+2]==b}))return this.unsubscribeByKey(q)}return!1};
_.K4.prototype.unsubscribeByKey=function(q){var N=this.subscriptions_[q];if(N){var b=this.topics_[N];this.publishDepth_!=0?(this.pendingKeys_.push(q),this.subscriptions_[q+1]=function(){}):(b&&_.WA(b,q),delete this.subscriptions_[q],delete this.subscriptions_[q+1],delete this.subscriptions_[q+2])}return!!N};
_.K4.prototype.publish=function(q,N){var b=this.topics_[q];if(b){var y=Array(arguments.length-1),J=arguments.length,E;for(E=1;E<J;E++)y[E-1]=arguments[E];if(this.async_)for(E=0;E<b.length;E++)J=b[E],voF(this.subscriptions_[J+1],this.subscriptions_[J+2],y);else{this.publishDepth_++;try{for(E=0,J=b.length;E<J&&!this.isDisposed();E++){var F=b[E];this.subscriptions_[F+1].apply(this.subscriptions_[F+2],y)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;b=this.pendingKeys_.pop();)this.unsubscribeByKey(b)}}return E!=
0}return!1};
var voF=function(q,N,b){_.iU(function(){q.apply(N,b)})};
_.K4.prototype.clear=function(q){if(q){var N=this.topics_[q];N&&(N.forEach(this.unsubscribeByKey,this),delete this.topics_[q])}else this.subscriptions_.length=0,this.topics_={}};
_.K4.prototype.getCount=function(q){if(q){var N=this.topics_[q];return N?N.length:0}q=0;for(N in this.topics_)q+=this.getCount(N);return q};
_.K4.prototype.disposeInternal=function(){_.K4.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var e0=new _.K4;var vv=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(vv,_.Rx);vv.prototype.getColdHashData=function(){return _.xs(this,3)};
vv.prototype.getHotHashData=function(){return _.xs(this,5)};
vv.prototype.setHotHashData=function(q){return _.Up(this,5,q)};var nRC=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(nRC,_.Rx);var tuR=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(tuR,_.Rx);_.g=tuR.prototype;_.g.getDeviceId=function(){return _.xs(this,6)};
_.g.getExperimentIds=function(q){var N=_.eX(this,9,_.dp,3,!0);HCD(N,q);return N[q]};
_.g.getPlayerType=function(){return _.vc(this,36)};
_.g.setHomeGroupInfo=function(q){return _.ws(this,81,q)};
_.g.clearLocationPlayabilityToken=function(){return _.x5(this,89)};var Ko=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Ko,_.Rx);Ko.prototype.setKey=function(q){return _.Up(this,1,q)};
Ko.prototype.getValue=function(){return Ys(this,2,rEd)};
var rEd=[2,3,4,5,6];var Grq=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Grq,_.Rx);Grq.prototype.setTrackingParams=function(q){return _.x5(this,1,_.Ux(q,!1))};var mOC=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(mOC,_.Rx);var W5R=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(W5R,_.Rx);W5R.prototype.getExperimentIds=function(q){var N=_.eX(this,5,_.xvn,3,!0);HCD(N,q);return N[q]};var U2=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(U2,_.Rx);U2.prototype.getToken=function(){return _.wE(this,2)};
U2.prototype.setToken=function(q){return _.Up(this,2,q)};var hr=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(hr,_.Rx);hr.prototype.setSafetyMode=function(q){return _.jd(this,5,q)};var l0=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(l0,_.Rx);l0.prototype.setClient=function(q){return _.ws(this,1,q)};var SRC={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 aCh;_.k8=function(){var q=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.JZ.addEventListener("beforeinstallprompt",function(N){N.preventDefault();q.deferredInstallPrompt=N});
_.JZ.addEventListener("appinstalled",function(){q.appInstalledEventFired=!0},{once:!0})};
aCh=function(){if(!_.JZ.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.JZ.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.JZ.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.JZ.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.JZ.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(q){return"WEB_DISPLAY_MODE_UNKNOWN"}};var Pgn=function(){this.syncHeaders=!0},MNe=function(q){var N={},b=[];
"USER_SESSION_ID"in _.pI&&b.push({key:"u",value:_.M7("USER_SESSION_ID")});if(b=_.tlR(b))N.Authorization=b,b=q=q==null?void 0:q.sessionIndex,b===void 0&&(b=Number(_.M7("SESSION_INDEX",0)),b=isNaN(b)?0:b),_.x("voice_search_auth_header_removal")||(N["X-Goog-AuthUser"]=b.toString()),"INNERTUBE_HOST_OVERRIDE"in _.pI||(N["X-Origin"]=window.location.origin),q===void 0&&"DELEGATED_SESSION_ID"in _.pI&&(N["X-Goog-PageId"]=_.M7("DELEGATED_SESSION_ID"));return N};var YYx={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var EU=_.Ng("ytglobal.prefsUserPrefsPrefs_")||{},Q5x;_.zn("ytglobal.prefsUserPrefsPrefs_",EU);_.gP=function(){this.cookieName=_.M7("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.M7("ALT_PREF_COOKIE_DOMAIN","youtube.com");var q=_.hz.get(this.cookieName,void 0);q&&this.parse(q)};
_.c3=function(){Q5x||(Q5x=new _.gP);return Q5x};
_.gP.prototype.get=function(q,N){OrT(q);w3v(q);q=EU[q]!==void 0?EU[q].toString():null;return q!=null?q:N?N:""};
_.gP.prototype.set=function(q,N){OrT(q);w3v(q);if(N==null)throw Error("Lc");EU[q]=N.toString()};
_.gP.prototype.getFlag=function(q){return!!((irj("f"+(Math.floor(q/31)+1))||0)&1<<q%31)};
_.uG=function(q,N,b){q="f"+(Math.floor(N/31)+1);N=1<<N%31;var y=irj(q)||0;y=b?y|N:y&~N;y===0?delete EU[q]:(b=y.toString(16),EU[q]=b.toString())};
_.gP.prototype.remove=function(q){OrT(q);w3v(q);delete EU[q]};
_.gP.prototype.save=function(){var q=!0;_.x("web_secure_pref_cookie_killswitch")&&(q=!1);_.kf(this.cookieName,this.dump(),63072E3,this.cookieDomain,q)};
_.gP.prototype.clear=function(){_.nM.clear(EU)};
_.gP.prototype.dump=function(){var q=[],N;for(N in EU)EU.hasOwnProperty(N)&&q.push(N+"="+encodeURIComponent(String(EU[N])));return q.join("&")};
var w3v=function(q){if(/^f([1-9][0-9]*)$/.test(q))throw Error("Mc`"+q);},OrT=function(q){if(!/^\w+$/.test(q))throw Error("Nc`"+q);
},irj=function(q){q=EU[q]!==void 0?EU[q].toString():null;
return q!=null&&/^[A-Fa-f0-9]+$/.test(q)?parseInt(q,16):null};
_.gP.prototype.parse=function(q){q=decodeURIComponent(q).split("&");for(var N=0;N<q.length;N++){var b=q[N].split("="),y=b[0];(b=b[1])&&(EU[y]=b.toString())}};var CGz={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"},L5d={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},pTd={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},TgZ={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var e_;_.ZL=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.Ip=function(q,N,b){return q.addJob(N,0,b)};
_.ZL.prototype.addLowPriorityJob=function(q,N){return this.addJob(q,1,N)};
_.rj=function(q,N,b){return q.addJob(N,2,b)};
_.ZQ=function(q,N,b){return q.addJob(N,3,b)};
_.B$=function(q,N,b){return q.addJob(N,4,b)};
e_=function(q){var N=_.Ng("yt.scheduler.instance.addImmediateJob");N?N(q):q()};
_.ZL.prototype.debounce=function(q,N,b){var y=this,J=0,E=function(){J&&y.cancelJob(J);J=y.addJob(q,N,b);y.cancelDebouncedJobMap.set(E,J)};
return E};
_.ZL.prototype.cancelThrottle=function(q){(q=this.cancelThrottledJobMap.get(q))&&q()};var Fm=function(){_.ZL.apply(this,arguments)},liR;
_.Y(Fm,_.ZL);_.ja=function(){Fm.instance||(Fm.instance=new Fm);return Fm.instance};
Fm.prototype.addJob=function(q,N,b){b!==void 0&&Number.isNaN(Number(b))&&(b=void 0);var y=_.Ng("yt.scheduler.instance.addJob");return y?y(q,N,b):b===void 0?(q(),NaN):_.Yf(q,b||0)};
Fm.prototype.cancelJob=function(q){if(q===void 0||!Number.isNaN(Number(q))){var N=_.Ng("yt.scheduler.instance.cancelJob");N?N(q):_.OV(q)}};
Fm.prototype.start=function(){var q=_.Ng("yt.scheduler.instance.start");q&&q()};
Fm.prototype.pause=function(){var q=_.Ng("yt.scheduler.instance.pause");q&&q()};
liR=function(){_.ja();var q=_.Ng("yt.scheduler.instance.setPriorityThreshold");q&&q(4)};
_.pY=_.ja();_.T1.prototype.set=function(q,N){N===void 0?this.mechanism.remove(q):this.mechanism.set(q,(0,_.kC)(N))};
_.T1.prototype.get=function(q){try{var N=this.mechanism.get(q)}catch(b){return}if(N!==null)try{return JSON.parse(N)}catch(b){throw"Storage: Invalid value was encountered";}};
_.T1.prototype.remove=function(q){this.mechanism.remove(q)};var Rg=function(q){this.mechanism=q};
_.oK(Rg,_.T1);var KOR=function(q){this.data=q},Dcq=function(q){return q===void 0||q instanceof KOR?q:new KOR(q)};
Rg.prototype.set=function(q,N){Rg.superClass_.set.call(this,q,Dcq(N))};
Rg.prototype.getWrapper=function(q){q=Rg.superClass_.get.call(this,q);if(q===void 0||q instanceof Object)return q;throw"Storage: Invalid value was encountered";};
Rg.prototype.get=function(q){if(q=this.getWrapper(q)){if(q=q.data,q===void 0)throw"Storage: Invalid value was encountered";}else q=void 0;return q};_.oK(sV,Rg);_.h2M=function(q){var N=q.creation;q=q.expiration;return!!q&&q<_.M$()||!!N&&N>_.M$()};
sV.prototype.set=function(q,N,b){if(N=Dcq(N)){if(b){if(b<_.M$()){sV.prototype.remove.call(this,q);return}N.expiration=b}N.creation=_.M$()}sV.superClass_.set.call(this,q,N)};
sV.prototype.getWrapper=function(q,N){var b=sV.superClass_.getWrapper.call(this,q);if(b)if(!N&&_.h2M(b))sV.prototype.remove.call(this,q);else return b};var dP=function(){};
dP.prototype.next=function(){return c7};
var c7={done:!0,value:void 0},uK=function(q){return{value:q,done:!1}};
dP.prototype.__iterator__=function(){return this};
_.krR=function(q){if(q instanceof dP)return q;if(typeof q.__iterator__=="function")return q.__iterator__(!1);if(_.pC(q)){var N=0,b=new dP;b.next=function(){for(;;){if(N>=q.length)return c7;if(N in q)return uK(q[N++]);N++}};
return b}throw Error("Oc");};var Uc4=function(q){if(q instanceof zJ||q instanceof $2||q instanceof tw)return q;if(typeof q.next=="function")return new zJ(function(){return q});
if(typeof q[Symbol.iterator]=="function")return new zJ(function(){return q[Symbol.iterator]()});
if(typeof q.__iterator__=="function")return new zJ(function(){return q.__iterator__()});
throw Error("Pc");},zJ=function(q){this.func_=q};
zJ.prototype.__iterator__=function(){return new $2(this.func_())};
zJ.prototype[Symbol.iterator]=function(){return new tw(this.func_())};
zJ.prototype.toEs6=function(){return new tw(this.func_())};
var $2=function(q){this.JSC$10684_iter_=q};
_.Y($2,dP);$2.prototype.next=function(){return this.JSC$10684_iter_.next()};
$2.prototype[Symbol.iterator]=function(){return new tw(this.JSC$10684_iter_)};
$2.prototype.toEs6=function(){return new tw(this.JSC$10684_iter_)};
var tw=function(q){zJ.call(this,function(){return q});
this.JSC$10687_iter_=q};
_.Y(tw,zJ);tw.prototype.next=function(){return this.JSC$10687_iter_.next()};var fiT=function(){};var mz=function(){};
_.oK(mz,fiT);mz.prototype.getCount=function(){for(var q=0,N=_.Z(this),b=N.next();!b.done;b=N.next())q++;return q};
mz.prototype[Symbol.iterator]=function(){return Uc4(this.__iterator__(!0)).toEs6()};
mz.prototype.clear=function(){var q=Array.from(this);q=_.Z(q);for(var N=q.next();!N.done;N=q.next())this.remove(N.value)};_.oK(n4,mz);_.g=n4.prototype;_.g.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var q=this.storage_;if(q)try{q.setItem("__sak","1");q.removeItem("__sak");var N=!0}catch(b){N=b instanceof DOMException&&(b.name==="QuotaExceededError"||b.code===22||b.code===1014||b.name==="NS_ERROR_DOM_QUOTA_REACHED")&&q&&q.length!==0}else N=!1;this.cachedIsStorageAvailable_=N}return this.cachedIsStorageAvailable_};
_.g.set=function(q,N){rP(this);try{this.storage_.setItem(q,N)}catch(b){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.g.get=function(q){rP(this);q=this.storage_.getItem(q);if(typeof q!=="string"&&q!==null)throw"Storage mechanism: Invalid value was encountered";return q};
_.g.remove=function(q){rP(this);this.storage_.removeItem(q)};
_.g.getCount=function(){rP(this);return this.storage_.length};
_.g.__iterator__=function(q){rP(this);var N=0,b=this.storage_,y=new dP;y.next=function(){if(N>=b.length)return c7;var J=b.key(N++);if(q)return uK(J);J=b.getItem(J);if(typeof J!=="string")throw"Storage mechanism: Invalid value was encountered";return uK(J)};
return y};
_.g.clear=function(){rP(this);this.storage_.clear()};
_.g.key=function(q){rP(this);return this.storage_.key(q)};
var rP=function(q){if(q.storage_==null)throw Error("Qc");q.isAvailable()||EJ(Error("Qc"))};_.oK(noA,n4);_.oK(aiu,n4);_.oK(aO,mz);aO.prototype.set=function(q,N){this.mechanism_.set(this.JSC$10702_prefix_+q,N)};
aO.prototype.get=function(q){return this.mechanism_.get(this.JSC$10702_prefix_+q)};
aO.prototype.remove=function(q){this.mechanism_.remove(this.JSC$10702_prefix_+q)};
aO.prototype.__iterator__=function(q){var N=this.mechanism_[Symbol.iterator](),b=this,y=new dP;y.next=function(){var J=N.next();if(J.done)return J;for(J=J.value;J.slice(0,b.JSC$10702_prefix_.length)!=b.JSC$10702_prefix_;){J=N.next();if(J.done)return J;J=J.value}return uK(q?J.slice(b.JSC$10702_prefix_.length):b.mechanism_.get(J))};
return y};_.ed=function(q){this.expiringStorage_=(q=_.SYJ(q))?new sV(q):null;this.JSC$10706_domain_=document.domain||window.location.hostname};
_.g=_.ed.prototype;_.g.hasLocalStorage=function(){return!!this.expiringStorage_};
_.g.set=function(q,N,b,y){b=b||31104E3;this.remove(q);if(this.hasLocalStorage())try{this.expiringStorage_.set(q,N,Date.now()+b*1E3);return}catch(E){}var J="";if(y)try{J=escape((0,_.kC)(N))}catch(E){return}else J=escape(N);_.kf(q,J,b,this.JSC$10706_domain_)};
_.g.get=function(q,N){var b=void 0,y=!this.hasLocalStorage();if(!y)try{b=this.expiringStorage_.get(q)}catch(J){y=!0}if(y&&(b=_.hz.get(q,void 0))&&(b=unescape(b),N))try{b=JSON.parse(b)}catch(J){this.remove(q),b=void 0}return b};
_.g.remove=function(q){this.hasLocalStorage()&&this.expiringStorage_.remove(q);_.krA(q,"/",this.JSC$10706_domain_)};
_.g.getCreationTime=function(q){return this.hasLocalStorage()&&(q=(this.expiringStorage_.getWrapper(q)||{}).creation,typeof q==="number")?q:null};var LOn=function(){var q;return function(){q||(q=new _.ed("ytidb"));return q}}();var PGn;_.W4=[];PGn=!1;var cin=Mgu||oon;var Xm={},CGo=(Xm.AUTH_INVALID="No user identifier specified.",Xm.EXPLICIT_ABORT="Transaction was explicitly aborted.",Xm.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Xm.MISSING_INDEX="Index not created.",Xm.MISSING_OBJECT_STORES="Object stores not created.",Xm.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Xm.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Xm.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Xm.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Xm.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Xm.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Xm.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Xm),VT={},Iio=(VT.AUTH_INVALID="ERROR",VT.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",VT.EXPLICIT_ABORT="IGNORED",
VT.IDB_NOT_SUPPORTED="ERROR",VT.MISSING_INDEX="WARNING",VT.MISSING_OBJECT_STORES="ERROR",VT.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",VT.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",VT.QUOTA_EXCEEDED="WARNING",VT.QUOTA_MAYBE_EXCEEDED="WARNING",VT.UNKNOWN_ABORT="WARNING",VT.INCOMPATIBLE_DB_VERSION="WARNING",VT),jR={},Tg4=(jR.AUTH_INVALID=!1,jR.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,jR.EXPLICIT_ABORT=!1,jR.IDB_NOT_SUPPORTED=!1,jR.MISSING_INDEX=!1,jR.MISSING_OBJECT_STORES=!1,jR.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,jR.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,jR.QUOTA_EXCEEDED=!1,jR.QUOTA_MAYBE_EXCEEDED=!0,jR.UNKNOWN_ABORT=!0,jR.INCOMPATIBLE_DB_VERSION=!1,jR),eA=function(q,N,b,y,J){N=N===void 0?{}:N;b=b===void 0?CGo[q]:b;y=y===void 0?Iio[q]:y;J=J===void 0?Tg4[q]:J;_.IO.call(this,b,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:q},N));this.type=q;this.message=b;this.level=y;this.retryable=J;Object.setPrototypeOf(this,eA.prototype)};
_.Y(eA,_.IO);var s5j=function(q,N){eA.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:N,foundObjectStores:q},CGo.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,s5j.prototype)};
_.Y(s5j,eA);var e2n=function(q,N){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.index=q;this.objectStore=N;Object.setPrototypeOf(this,e2n.prototype)};
_.Y(e2n,Error);var BgA=["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 Nm=function(q){this.executor=q},qm=function(q){var N=this;
this.state={status:"PENDING"};this.JSC$10734_onFulfilled=[];this.JSC$10734_onRejected=[];q=q.executor;var b=function(J){if(N.state.status==="PENDING"){N.state={status:"FULFILLED",value:J};J=_.Z(N.JSC$10734_onFulfilled);for(var E=J.next();!E.done;E=J.next())E=E.value,E()}},y=function(J){if(N.state.status==="PENDING"){N.state={status:"REJECTED",
reason:J};J=_.Z(N.JSC$10734_onRejected);for(var E=J.next();!E.done;E=J.next())E=E.value,E()}};
try{q(b,y)}catch(J){y(J)}};
qm.all=function(q){return new qm(new Nm(function(N,b){var y=[],J=q.length;J===0&&N(y);for(var E={i$jscomp$468:0};E.i$jscomp$468<q.length;E={i$jscomp$468:E.i$jscomp$468},++E.i$jscomp$468)qm.resolve(q[E.i$jscomp$468]).then(function(F){return function(R){y[F.i$jscomp$468]=R;J--;J===0&&N(y)}}(E)).catch(function(F){b(F)})}))};
qm.resolve=function(q){return new qm(new Nm(function(N,b){q instanceof qm?q.then(N,b):N(q)}))};
qm.reject=function(q){return new qm(new Nm(function(N,b){b(q)}))};
qm.prototype.then=function(q,N){var b=this,y=q!=null?q:N3J,J=N!=null?N:qRA;return new qm(new Nm(function(E,F){b.state.status==="PENDING"?(b.JSC$10734_onFulfilled.push(function(){nox(b,b,y,E,F)}),b.JSC$10734_onRejected.push(function(){aiJ(b,b,J,E,F)})):b.state.status==="FULFILLED"?nox(b,b,y,E,F):b.state.status==="REJECTED"&&aiJ(b,b,J,E,F)}))};
qm.prototype.catch=function(q){return this.then(void 0,q)};
var nox=function(q,N,b,y,J){try{if(q.state.status!=="FULFILLED")throw Error("Tc");var E=b(q.state.value);E instanceof qm?SYx(q,N,E,y,J):y(E)}catch(F){J(F)}},aiJ=function(q,N,b,y,J){try{if(q.state.status!=="REJECTED")throw Error("Uc");
var E=b(q.state.reason);E instanceof qm?SYx(q,N,E,y,J):y(E)}catch(F){J(F)}},SYx=function(q,N,b,y,J){N===b?J(new TypeError("Vc")):b.then(function(E){E instanceof qm?SYx(q,N,E,y,J):y(E)},function(E){J(E)})};var x2;x2=window;_.mA=x2.ytcsi&&x2.ytcsi.now?x2.ytcsi.now:x2.performance&&x2.performance.timing&&x2.performance.now&&x2.performance.timing.navigationStart?function(){return x2.performance.timing.navigationStart+x2.performance.now()}:function(){return(new Date).getTime()};var yr=function(q,N){this.JSC$10746_wrapped=q;this.options=N;this.transactionCount=0;this.startedMs=Math.round((0,_.mA)());this.hasUnknownAbortedTransaction=!1},v7=function(){return _.x("idb_immediate_commit")},p3J,PGT,QT,Ae1;
yr.prototype.add=function(q,N,b){return _.Fl(this,[q],{mode:"readwrite",enableRetries:!0,commit:v7()},function(y){return y.objectStore(q).add(N,b)})};
yr.prototype.clear=function(q){return _.Fl(this,[q],{mode:"readwrite",enableRetries:!0},function(N){return N.objectStore(q).clear()})};
yr.prototype.close=function(){this.JSC$10746_wrapped.close();var q;((q=this.options)==null?0:q.closed)&&this.options.closed()};
yr.prototype.count=function(q,N){return _.Fl(this,[q],{mode:"readonly",enableRetries:!0,commit:v7()},function(b){return b.objectStore(q).count(N)})};
var Hv=function(q,N,b){q=q.JSC$10746_wrapped.createObjectStore(N,b);return new GJ(q)};
yr.prototype.delete=function(q,N){return _.Fl(this,[q],{mode:"readwrite",enableRetries:!0,commit:v7()&&!(N instanceof IDBKeyRange)},function(b){return b.objectStore(q).delete(N)})};
var WOJ=function(q,N){return _.Fl(q,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(b){return b.objectStore("ResponseStore").index("byInterface").delete(N)})};
yr.prototype.get=function(q,N){return _.Fl(this,[q],{mode:"readonly",enableRetries:!0,commit:v7()},function(b){return b.objectStore(q).get(N)})};
yr.prototype.getAll=function(q,N,b){return _.Fl(this,[q],{mode:"readonly",enableRetries:!0},function(y){return y.objectStore(q).getAll(N,b)})};
yr.prototype.put=function(q,N,b){return _.Fl(this,[q],{mode:"readwrite",enableRetries:!0,commit:v7()},function(y){return y.objectStore(q).put(N,b)})};
yr.prototype.objectStoreNames=function(){return Array.from(this.JSC$10746_wrapped.objectStoreNames)};
_.Fl=function(q,N,b,y){var J,E,F,R,c,z,m,r,X,V,G,w;return _.d(function(D){switch(D.nextAddress){case 1:var k={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof b==="string"?k.mode=b:Object.assign(k,b);J=k;q.transactionCount++;E=J.enableRetries?3:1;F=0;case 2:if(R){D.jumpTo(4);break}F++;c=Math.round((0,_.mA)());_.Yi(D,5);z=q.JSC$10746_wrapped.transaction(N,J.mode);k=D.yield;var f=!!J.commit;var L=new JS(z);f=LOj(L,y,f);return k.call(D,f,7);case 7:return m=D.yieldResult,r=Math.round((0,_.mA)()),
p3J(q,c,r,F,void 0,N.join(),J),D.return(m);case 5:X=_.K7(D);V=Math.round((0,_.mA)());G=Hrh(X,q.JSC$10746_wrapped.name,N.join(),q.JSC$10746_wrapped.version);if((w=G instanceof eA&&!G.retryable)||F>=E)p3J(q,c,V,F,G,N.join(),J),R=G;D.jumpTo(2);break;case 4:return D.return(Promise.reject(R))}})};
p3J=function(q,N,b,y,J,E,F){N=b-N;J?(J instanceof eA&&(J.type==="QUOTA_EXCEEDED"||J.type==="QUOTA_MAYBE_EXCEEDED")&&p4("QUOTA_EXCEEDED",{dbName:oO(q.JSC$10746_wrapped.name),objectStoreNames:E,transactionCount:q.transactionCount,transactionMode:F.mode}),J instanceof eA&&J.type==="UNKNOWN_ABORT"&&(b-=q.startedMs,b<0&&b>=2147483648&&(b=0),p4("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:E,transactionDuration:N,transactionCount:q.transactionCount,dbDuration:b}),q.hasUnknownAbortedTransaction=!0),
PGT(q,!1,y,E,N,F.tag),_.L4(J)):PGT(q,!0,y,E,N,F.tag)};
PGT=function(q,N,b,y,J,E){p4("TRANSACTION_ENDED",{objectStoreNames:y,connectionHasUnknownAbortedTransaction:q.hasUnknownAbortedTransaction,duration:J,isSuccessful:N,tryCount:b,tag:E===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":E})};
yr.prototype.getName=function(){return this.JSC$10746_wrapped.name};
var GJ=function(q){this.JSC$10761_wrapped=q};
GJ.prototype.add=function(q,N){return b7(this.JSC$10761_wrapped.add(q,N))};
GJ.prototype.autoIncrement=function(){return this.JSC$10761_wrapped.autoIncrement};
GJ.prototype.clear=function(){return b7(this.JSC$10761_wrapped.clear()).then(function(){})};
var q6=function(q,N,b){q.JSC$10761_wrapped.createIndex(N,b,{unique:!1})};
GJ.prototype.count=function(q){return b7(this.JSC$10761_wrapped.count(q))};
var MgJ=function(q,N){return dD(q,{query:N},function(b){return b.delete().then(function(){return b.continue()})}).then(function(){})};
GJ.prototype.delete=function(q){return q instanceof IDBKeyRange?MgJ(this,q):b7(this.JSC$10761_wrapped.delete(q))};
GJ.prototype.get=function(q){return b7(this.JSC$10761_wrapped.get(q))};
GJ.prototype.getAll=function(q,N){return"getAll"in IDBObjectStore.prototype?b7(this.JSC$10761_wrapped.getAll(q,N)):ooT(this,q,N)};
var ooT=function(q,N,b){var y=[];return dD(q,{query:N},function(J){if(!(b!==void 0&&y.length>=b))return y.push(J.getValue()),J.continue()}).then(function(){return y})};
GJ.prototype.index=function(q){try{return new Y2(this.JSC$10761_wrapped.index(q))}catch(N){if(N instanceof Error&&N.name==="NotFoundError")throw new e2n(q,this.JSC$10761_wrapped.name);throw N;}};
GJ.prototype.getName=function(){return this.JSC$10761_wrapped.name};
GJ.prototype.keyPath=function(){return this.JSC$10761_wrapped.keyPath};
GJ.prototype.put=function(q,N){return b7(this.JSC$10761_wrapped.put(q,N))};
var dD=function(q,N,b){q=q.JSC$10761_wrapped.openCursor(N.query,N.direction);return Ae1(q).then(function(y){return JiA(y,b)})},JS=function(q){var N=this;
this.JSC$10769_wrapped=q;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(b,y){N.JSC$10769_wrapped.addEventListener("complete",function(){b()});
N.JSC$10769_wrapped.addEventListener("error",function(J){J.currentTarget===J.target&&y(N.JSC$10769_wrapped.error)});
N.JSC$10769_wrapped.addEventListener("abort",function(){var J=N.JSC$10769_wrapped.error;if(J)y(J);else if(!N.aborted){J=eA;for(var E=N.JSC$10769_wrapped.objectStoreNames,F=[],R=0;R<E.length;R++){var c=E.item(R);if(c===null)throw Error("Wc");F.push(c)}J=new J("UNKNOWN_ABORT",{objectStoreNames:F.join(),dbName:N.JSC$10769_wrapped.db.name,mode:N.JSC$10769_wrapped.mode});y(J)}})})},LOj=function(q,N,b){var y=new Promise(function(J,E){try{var F=N(q);
b&&q.commit();F.then(function(R){J(R)}).catch(E)}catch(R){E(R),q.abort()}});
return Promise.all([y,q.done]).then(function(J){return _.Z(J).next().value})};
JS.prototype.abort=function(){this.JSC$10769_wrapped.abort();this.aborted=!0;throw new eA("EXPLICIT_ABORT");};
JS.prototype.commit=function(){if(!this.aborted){var q,N;(N=(q=this.JSC$10769_wrapped).commit)==null||N.call(q)}};
JS.prototype.objectStore=function(q){q=this.JSC$10769_wrapped.objectStore(q);var N=this.objectStoreCache.get(q);N||(N=new GJ(q),this.objectStoreCache.set(q,N));return N};
var Y2=function(q){this.JSC$10771_wrapped=q};
Y2.prototype.count=function(q){return b7(this.JSC$10771_wrapped.count(q))};
Y2.prototype.delete=function(q){return _.rD(this,{query:q},function(N){return N.delete().then(function(){return N.continue()})})};
Y2.prototype.get=function(q){return b7(this.JSC$10771_wrapped.get(q))};
Y2.prototype.getAll=function(q,N){return"getAll"in IDBIndex.prototype?b7(this.JSC$10771_wrapped.getAll(q,N)):e2T(this,q,N)};
var e2T=function(q,N,b){var y=[];return _.rD(q,{query:N},function(J){if(!(b!==void 0&&y.length>=b))return y.push(J.getValue()),J.continue()}).then(function(){return y})};
Y2.prototype.keyPath=function(){return this.JSC$10771_wrapped.keyPath};
Y2.prototype.unique=function(){return this.JSC$10771_wrapped.unique};
_.rD=function(q,N,b){q=q.JSC$10771_wrapped.openCursor(N.query===void 0?null:N.query,N.direction===void 0?"next":N.direction);return Ae1(q).then(function(y){return JiA(y,b)})};
QT=function(q,N){this.request=q;this.cursor=N};
Ae1=function(q){return b7(q).then(function(N){return N?new QT(q,N):null})};
QT.prototype.continue=function(q){this.cursor.continue(q);return Ae1(this.request)};
QT.prototype.delete=function(){return b7(this.cursor.delete()).then(function(){})};
QT.prototype.getValue=function(){return this.cursor.value};
QT.prototype.update=function(q){return b7(this.cursor.update(q))};var OU=function(q,N){this.name=q;this.options=N;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},Bgx;
OU.prototype.openDb=function(q,N,b){b=b===void 0?{}:b;return gRz(q,N,b)};
OU.prototype.delete=function(q){q=q===void 0?{}:q;return _.gD(this.name,q)};
Bgx=function(q,N){return new eA("INCOMPATIBLE_DB_VERSION",{dbName:q.name,oldVersion:q.options.version,newVersion:N})};
_.Z3=function(q,N){if(!N)throw H4("openWithToken",oO(q.name));return q.open()};
OU.prototype.open=function(){var q=this;if(!this.isCompatible)throw Bgx(this);if(this.connectionPromise)return this.connectionPromise;var N,b=function(){q.connectionPromise===N&&(q.connectionPromise=void 0)},y={blocking:function(E){E.close()},
closed:b,terminated:b,upgrade:this.options.upgrade},J=function(){var E,F,R,c,z,m,r,X,V,G;return _.d(function(w){switch(w.nextAddress){case 1:return F=(E=Error().stack)!=null?E:"",_.Yi(w,2),w.yield(q.openDb(q.name,q.options.version,y),4);case 4:for(var D=R=w.yieldResult,k=q.options,f=[],L=_.Z(Object.keys(k.objectStores)),S=L.next();!S.done;S=L.next()){S=S.value;var W=k.objectStores[S],M=W.removedAtVersion===void 0?Number.MAX_VALUE:W.removedAtVersion;!(D.JSC$10746_wrapped.version>=W.addedAtVersion)||
D.JSC$10746_wrapped.version>=M||D.JSC$10746_wrapped.objectStoreNames.contains(S)||f.push(S)}c=f;if(c.length===0){w.jumpTo(5);break}z=Object.keys(q.options.objectStores);m=R.objectStoreNames();if(q.timesReopenedToFixMissingObjectStore<_.VX("ytidb_reopen_db_retries",0))return q.timesReopenedToFixMissingObjectStore++,R.close(),_.L4(new eA("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:q.name,expectedObjectStores:z,foundObjectStores:m})),w.return(J());if(!(q.timesDeletedToFixMissingObjectStore<_.VX("ytidb_remake_db_retries",
1))){w.jumpTo(6);break}q.timesDeletedToFixMissingObjectStore++;return w.yield(q.delete(),7);case 7:return _.L4(new eA("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:q.name,expectedObjectStores:z,foundObjectStores:m})),w.return(J());case 6:throw new s5j(m,z);case 5:return w.return(R);case 2:r=_.K7(w);if(r instanceof DOMException?r.name!=="VersionError":"DOMError"in self&&r instanceof DOMError?r.name!=="VersionError":!(r instanceof Object&&"message"in r)||r.message!=="An attempt was made to open a database using a lower version than the existing version."){w.jumpTo(8);
break}return w.yield(q.openDb(q.name,void 0,Object.assign({},y,{upgrade:void 0})),9);case 9:X=w.yieldResult;V=X.JSC$10746_wrapped.version;if(q.options.version!==void 0&&V>q.options.version+1)throw X.close(),q.isCompatible=!1,Bgx(q,V);return w.return(X);case 8:throw b(),r instanceof Error&&!_.x("ytidb_async_stack_killswitch")&&(r.stack=r.stack+"\n"+F.substring(F.indexOf("\n")+1)),Hrh(r,q.name,"",(G=q.options.version)!=null?G:-1);}})};
return this.connectionPromise=N=J()};var ZDu=new OU("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(q,N){N(1)&&Hv(q,"databases",{keyPath:"actualName"})}});var $RZ,utD=new function(){}(new function(){});new _.yk;var HrF=function(q,N){OU.call(this,q,N);this.options=N;P4(q)};
_.Y(HrF,OU);var YRJ=function(q,N){var b;return function(){b||(b=new HrF(q,N));return b}};
HrF.prototype.openDb=function(q,N,b){b=b===void 0?{}:b;return(this.options.shared?VNA:XTD)(q,N,Object.assign({},b))};
HrF.prototype.delete=function(q){q=q===void 0?{}:q;return(this.options.shared?GCD:joZ)(this.name,q)};var qRx={},Qou=tS("ytGcfConfig",{objectStores:(qRx.coldConfigStore={addedAtVersion:1},qRx.hotConfigStore={addedAtVersion:1},qRx),shared:!1,upgrade:function(q,N){N(1)&&(q6(Hv(q,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),q6(Hv(q,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var N3l=function(){_.UN.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var q=_.Ng("yt.gcf.config.hotUpdateCallbacks");q?(this.localHotConfigJobQueue=[].concat(_.a9(q)),this.sharedHotConfigJobQueue=q):(this.sharedHotConfigJobQueue=[],_.zn("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.Y(N3l,_.UN);N3l.prototype.disposeInternal=function(){for(var q=_.Z(this.localHotConfigJobQueue),N=q.next();!N.done;N=q.next()){var b=this.sharedHotConfigJobQueue;N=b.indexOf(N.value);N>=0&&b.splice(N,1)}this.localHotConfigJobQueue.length=0;_.UN.prototype.disposeInternal.call(this)};var T6=function(){var q=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new N3l;this.TEST_ONLY={initializeConfigDb:function(){q.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return q.coldGlobalConfigGroup},
setHotConfigGroup:function(N){bDl(q,N)},
setHotHashData:function(N){q.setHotHashData(N)},
setColdConfigGroup:function(N){yi1(q,N)},
getColdHashData:function(){return q.coldHashData},
getHotHashData:function(){return q.hotHashData},
getHotConfigGroup:function(){return q.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return JiR()},
getExportedHotConfigGroup:function(){return wP()},
getExportedColdHashData:function(){return _.Ng("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Ng("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){ERM(q)},
resetInstance:function(){q.setHotHashData(void 0);gRo(q);delete T6.instance},
setDebounceTimer:function(N){q.debounceTimer=N},
getDebounceTimer:function(){return q.debounceTimer}}},ZDJ=function(){if(!T6.instance){var q=new T6;
T6.instance=q}return T6.instance},dRF=function(q){var N;
_.d(function(b){if(b.nextAddress==1)return _.x("start_client_gcf")||_.x("delete_gcf_config_db")?_.x("start_client_gcf")?b.yield(_.$5(),3):b.jumpTo(2):b.return();b.nextAddress!=2&&((N=b.yieldResult)&&_.C4()&&!_.x("delete_gcf_config_db")?(q.isConfigDbInitialized=!0,ERM(q)):(F54(q),RSl(q)));return _.x("delete_gcf_config_db")?b.yield(DRA(),0):b.jumpTo(0)})},s2=function(){var q;
return(q=wP())!=null?q:_.M7("RAW_HOT_CONFIG_GROUP")},cij=function(q){var N,b,y,J,E,F;
return _.d(function(R){switch(R.nextAddress){case 1:if(q.hotGlobalConfigGroup)return R.return(wP());if(!q.isConfigDbInitialized)return N=H4("getHotConfig IDB not initialized"),_.bv(N),R.return(Promise.reject(N));b=u7();y=_.M7("TIME_CREATED_MS");if(!b){J=H4("getHotConfig token error");_.bv(J);R.jumpTo(2);break}return R.yield(K5n(b),3);case 3:if((E=R.yieldResult)&&E.timestamp>y)return bDl(q,E.config),q.setHotHashData(E.hashData),R.return(wP());case 2:RSl(q);if(!(b&&q.hotGlobalConfigGroup&&q.hotHashData)){R.jumpTo(4);
break}return R.yield(wTn(q.hotGlobalConfigGroup,q.hotHashData,b,y),4);case 4:return q.hotGlobalConfigGroup?R.return(wP()):(F=new _.IO("Config not available in ytConfig"),_.bv(F),R.return(Promise.reject(F)))}})},zSE=function(q){var N,b,y,J,E,F;
return _.d(function(R){switch(R.nextAddress){case 1:if(q.coldGlobalConfigGroup)return R.return(JiR());if(!q.isConfigDbInitialized)return N=H4("getColdConfig IDB not initialized"),_.bv(N),R.return(Promise.reject(N));b=u7();y=_.M7("TIME_CREATED_MS");if(!b){J=H4("getColdConfig");_.bv(J);R.jumpTo(2);break}return R.yield(lCn(b),3);case 3:if((E=R.yieldResult)&&E.timestamp>y)return yi1(q,E.config),utE(q,E.configData),gRo(q,E.hashData),R.return(JiR());case 2:F54(q);if(!(b&&q.coldGlobalConfigGroup&&q.coldHashData&&
q.configData)){R.jumpTo(4);break}return R.yield(iDd(q.coldGlobalConfigGroup,q.coldHashData,q.configData,b,y),4);case 4:return q.coldGlobalConfigGroup?R.return(JiR()):(F=new _.IO("Config not available in ytConfig"),_.bv(F),R.return(Promise.reject(F)))}})},ERM=function(q){if(!q.hotGlobalConfigGroup||!q.coldGlobalConfigGroup){if(!u7()){var N=H4("scheduleGetConfigs");
_.bv(N)}q.initJob||(q.initJob=_.pY.addLowPriorityJob(function(){return _.d(function(b){switch(b.nextAddress){case 1:return _.Yi(b,2),b.yield(cij(q),4);case 4:_.Ea(b,3);break;case 2:_.K7(b);case 3:return _.Yi(b,5),b.yield(zSE(q),7);case 7:_.Ea(b,6);break;case 5:_.K7(b);case 6:q.initJob&&(q.initJob=0),_.hj(b)}})},100))}},i6d=function(q,N,b){var y,J,E;
return _.d(function(F){switch(F.nextAddress){case 1:if(!_.x("start_client_gcf")){F.jumpTo(0);break}b&&bDl(q,b);q.setHotHashData(N);y=u7();if(!y){F.jumpTo(3);break}if(b){F.jumpTo(4);break}return F.yield(K5n(y),5);case 5:J=F.yieldResult,b=(E=J)==null?void 0:E.config;case 4:return F.yield(wTn(b,N,y),3);case 3:if(b)for(var R=b,c=_.Z(q.configUpdateService.sharedHotConfigJobQueue),z=c.next();!z.done;z=c.next())z=z.value,z(R);_.hj(F)}})},lUA=function(q,N,b){var y,J,E,F;
return _.d(function(R){if(R.nextAddress==1){if(!_.x("start_client_gcf"))return R.jumpTo(0);gRo(q,N);return(y=u7())?b?R.jumpTo(4):R.yield(lCn(y),5):R.jumpTo(0)}R.nextAddress!=4&&(J=R.yieldResult,b=(E=J)==null?void 0:E.config);if(!b)return R.jumpTo(0);F=b.configData;return R.yield(iDd(b,N,F,y),0)})},AiA=function(){var q=ZDJ(),N=(0,_.mA)()-q.debounceTimer;
if(!(q.debounceTimer!==0&&N<_.VX("send_config_hash_timer"))){N=_.Ng("yt.gcf.config.coldConfigData");var b=_.Ng("yt.gcf.config.hotHashData"),y=_.Ng("yt.gcf.config.coldHashData");N&&b&&y&&(q.debounceTimer=(0,_.mA)());return{coldConfigData:N,hotHashData:b,coldHashData:y}}},F54=function(q){yi1(q,_.M7("RAW_COLD_CONFIG_GROUP"));
gRo(q,_.M7("SERIALIZED_COLD_HASH_DATA"));var N;utE(q,(N=q.coldGlobalConfigGroup)==null?void 0:N.configData)},RSl=function(q){bDl(q,_.M7("RAW_HOT_CONFIG_GROUP"));
q.setHotHashData(_.M7("SERIALIZED_HOT_HASH_DATA"))},bDl=function(q,N){q.hotGlobalConfigGroup=N;
_.zn("yt.gcf.config.hotConfigGroup",q.hotGlobalConfigGroup||null)},yi1=function(q,N){q.coldGlobalConfigGroup=N;
_.zn("yt.gcf.config.coldConfigGroup",q.coldGlobalConfigGroup||null)};
T6.prototype.setHotHashData=function(q){this.hotHashData=q;_.zn("yt.gcf.config.hotHashData",this.hotHashData||null)};
var gRo=function(q,N){q.coldHashData=N;_.zn("yt.gcf.config.coldHashData",q.coldHashData||null)},utE=function(q,N){q.configData=N;
_.zn("yt.gcf.config.coldConfigData",q.configData||null)},wP=function(){return _.Ng("yt.gcf.config.hotConfigGroup")},JiR=function(){return _.Ng("yt.gcf.config.coldConfigGroup")};var wD={},$R4=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";wD.assign=function(q){for(var N=Array.prototype.slice.call(arguments,1);N.length;){var b=N.shift();if(b){if(typeof b!=="object")throw new TypeError("Zc`"+b);for(var y in b)Object.prototype.hasOwnProperty.call(b,y)&&(q[y]=b[y])}}return q};
wD.shrinkBuf=function(q,N){if(q.length===N)return q;if(q.subarray)return q.subarray(0,N);q.length=N;return q};
var tNF={arraySet:function(q,N,b,y,J){if(N.subarray&&q.subarray)q.set(N.subarray(b,b+y),J);else for(var E=0;E<y;E++)q[J+E]=N[b+E]},
flattenChunks:function(q){var N,b;var y=b=0;for(N=q.length;y<N;y++)b+=q[y].length;var J=new Uint8Array(b);y=b=0;for(N=q.length;y<N;y++){var E=q[y];J.set(E,b);b+=E.length}return J}},mRx={arraySet:function(q,N,b,y,J){for(var E=0;E<y;E++)q[J+E]=N[b+E]},
flattenChunks:function(q){return[].concat.apply([],q)}};
wD.setTyped=function(){$R4?(wD.Buf8=Uint8Array,wD.Buf16=Uint16Array,wD.Buf32=Int32Array,wD.assign(wD,tNF)):(wD.Buf8=Array,wD.Buf16=Array,wD.Buf32=Array,wD.assign(wD,mRx))};
wD.setTyped();var rio=!0;try{new Uint8Array(1)}catch(q){rio=!1}
var KlZ=function(q){var N,b,y=q.length,J=0;for(N=0;N<y;N++){var E=q.charCodeAt(N);if((E&64512)===55296&&N+1<y){var F=q.charCodeAt(N+1);(F&64512)===56320&&(E=65536+(E-55296<<10)+(F-56320),N++)}J+=E<128?1:E<2048?2:E<65536?3:4}var R=new wD.Buf8(J);for(N=b=0;b<J;N++)E=q.charCodeAt(N),(E&64512)===55296&&N+1<y&&(F=q.charCodeAt(N+1),(F&64512)===56320&&(E=65536+(E-55296<<10)+(F-56320),N++)),E<128?R[b++]=E:(E<2048?R[b++]=192|E>>>6:(E<65536?R[b++]=224|E>>>12:(R[b++]=240|E>>>18,R[b++]=128|E>>>12&63),R[b++]=
128|E>>>6&63),R[b++]=128|E&63);return R};var rNn={};rNn=function(q,N,b,y){var J=q&65535|0;q=q>>>16&65535|0;for(var E;b!==0;){E=b>2E3?2E3:b;b-=E;do J=J+N[y++]|0,q=q+J|0;while(--E);J%=65521;q%=65521}return J|q<<16|0};for(var nY={},iK,XTE=[],VNR=0;VNR<256;VNR++){iK=VNR;for(var jo4=0;jo4<8;jo4++)iK=iK&1?3988292384^iK>>>1:iK>>>1;XTE[VNR]=iK}nY=function(q,N,b,y){b=y+b;for(q^=-1;y<b;y++)q=q>>>8^XTE[(q^N[y])&255];return q^-1};var D3={};D3={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 g8n=[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],Fln=[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],l4h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],teA=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],fY=Array(576);Gn(fY);var CY=Array(60);Gn(CY);var l7=Array(512);Gn(l7);var i7=Array(256);Gn(i7);var Z9d=Array(29);Gn(Z9d);var RnZ=Array(30);Gn(RnZ);var O9h,wPR,i9n,Q0d=!1;var LY;
LY=[new Wv(0,0,0,0,function(q,N){var b=65535;for(b>q.pending_buf_size-5&&(b=q.pending_buf_size-5);;){if(q.lookahead<=1){aw(q);if(q.lookahead===0&&N===0)return 1;if(q.lookahead===0)break}q.strstart+=q.lookahead;q.lookahead=0;var y=q.block_start+b;if(q.strstart===0||q.strstart>=y)if(q.lookahead=q.strstart-y,q.strstart=y,Iw(q,!1),q.strm.avail_out===0)return 1;if(q.strstart-q.block_start>=q.w_size-262&&(Iw(q,!1),q.strm.avail_out===0))return 1}q.insert=0;if(N===4)return Iw(q,!0),q.strm.avail_out===0?3:
4;q.strstart>q.block_start&&Iw(q,!1);return 1}),
new Wv(4,4,8,4,XPZ),new Wv(4,5,16,8,XPZ),new Wv(4,6,32,32,XPZ),new Wv(4,4,16,16,Sd),new Wv(8,16,32,32,Sd),new Wv(8,16,128,128,Sd),new Wv(8,32,128,256,Sd),new Wv(32,128,258,1024,Sd),new Wv(32,258,258,4096,Sd)];var YvC={};YvC=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 DKh=Object.prototype.toString;
GMC.prototype.push=function(q,N){var b=this.strm,y=this.options.chunkSize;if(this.ended)return!1;var J=N===~~N?N:N===!0?4:0;typeof q==="string"?b.input=KlZ(q):DKh.call(q)==="[object ArrayBuffer]"?b.input=new Uint8Array(q):b.input=q;b.next_in=0;b.avail_in=b.input.length;do{b.avail_out===0&&(b.output=new wD.Buf8(y),b.next_out=0,b.avail_out=y);q=v8A(b,J);if(q!==1&&q!==0)return xRM(this,q),this.ended=!0,!1;if(b.avail_out===0||b.avail_in===0&&(J===4||J===2))if(this.options.to==="string"){var E=wD.shrinkBuf(b.output,
b.next_out);N=E;E=E.length;if(E<65537&&(N.subarray&&rio||!N.subarray))N=String.fromCharCode.apply(null,wD.shrinkBuf(N,E));else{for(var F="",R=0;R<E;R++)F+=String.fromCharCode(N[R]);N=F}this.chunks.push(N)}else N=wD.shrinkBuf(b.output,b.next_out),this.chunks.push(N)}while((b.avail_in>0||b.avail_out===0)&&q!==1);if(J===4)return(b=this.strm)&&b.state?(y=b.state.status,y!==42&&y!==69&&y!==73&&y!==91&&y!==103&&y!==113&&y!==666?q=hS(b,-2):(b.state=null,q=y===113?hS(b,-3):0)):q=-2,xRM(this,q),this.ended=
!0,q===0;J===2&&(xRM(this,0),b.avail_out=0);return!0};
var xRM=function(q,N){N===0&&(q.result=q.options.to==="string"?q.chunks.join(""):wD.flattenChunks(q.chunks));q.chunks=[];q.err=N;q.msg=q.strm.msg};var vRx=typeof TextEncoder!=="undefined"?new TextEncoder:null,Zkz=vRx?function(q){return vRx.encode(q)}:function(q){q=_.kN(q);
for(var N=new Uint8Array(q.length),b=0;b<N.length;b++)N[b]=q[b];return N};var ATA={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},BUA={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var lK=function(q,N){this.version=q;this.args=N};
lK.prototype.serialize=function(){return{version:this.version,args:this.args}};var CIA=function(q,N){this.topic=q;this.dataClass=N};
CIA.prototype.toString=function(){return this.topic};var GCE=_.Ng("ytPubsub2Pubsub2Instance")||new _.K4;_.K4.prototype.subscribe=_.K4.prototype.subscribe;_.K4.prototype.unsubscribeByKey=_.K4.prototype.unsubscribeByKey;_.K4.prototype.publish=_.K4.prototype.publish;_.K4.prototype.clear=_.K4.prototype.clear;_.zn("ytPubsub2Pubsub2Instance",GCE);var f4D=_.Ng("ytPubsub2Pubsub2SubscribedKeys")||{};_.zn("ytPubsub2Pubsub2SubscribedKeys",f4D);var T5h=_.Ng("ytPubsub2Pubsub2TopicToKeys")||{};_.zn("ytPubsub2Pubsub2TopicToKeys",T5h);
var I4d=_.Ng("ytPubsub2Pubsub2IsAsync")||{};_.zn("ytPubsub2Pubsub2IsAsync",I4d);_.zn("ytPubsub2Pubsub2SkipSubKey",null);var o8n=void 0,PIJ=void 0;var yme=_.VX("max_body_size_to_compress",5E5),Jmn=_.VX("min_body_size_to_compress",500),Mm=!0,d9C=0,ow=0,RQn=_.VX("compression_performance_threshold_lr",250),uYn=_.VX("slow_compressions_before_abandon_count",4),B5d=!1,H9J=new Map,g9Z=1,E9z=!0;_.oK(AS,$9h);AS.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 YRx=function(q,N,b){b||(b=0);var y=q.W_;if(typeof N==="string")for(var J=0;J<16;J++)y[J]=N.charCodeAt(b)<<24|N.charCodeAt(b+1)<<16|N.charCodeAt(b+2)<<8|N.charCodeAt(b+3),b+=4;else for(J=0;J<16;J++)y[J]=N[b]<<24|N[b+1]<<16|N[b+2]<<8|N[b+3],b+=4;for(N=16;N<80;N++)b=y[N-3]^y[N-8]^y[N-14]^y[N-16],y[N]=(b<<1|b>>>31)&4294967295;N=q.chain_[0];b=q.chain_[1];J=q.chain_[2];for(var E=q.chain_[3],F=q.chain_[4],R,c,z=0;z<80;z++)z<40?z<20?(R=E^b&(J^E),c=1518500249):(R=b^J^E,c=1859775393):z<60?(R=b&J|E&(b|J),
c=2400959708):(R=b^J^E,c=3395469782),R=(N<<5|N>>>27)+R+F+c+y[z]&4294967295,F=E,E=J,J=(b<<30|b>>>2)&4294967295,b=N,N=R;q.chain_[0]=q.chain_[0]+N&4294967295;q.chain_[1]=q.chain_[1]+b&4294967295;q.chain_[2]=q.chain_[2]+J&4294967295;q.chain_[3]=q.chain_[3]+E&4294967295;q.chain_[4]=q.chain_[4]+F&4294967295};
AS.prototype.update=function(q,N){if(q!=null){N===void 0&&(N=q.length);for(var b=N-this.blockSize,y=0,J=this.buf_,E=this.inbuf_;y<N;){if(E==0)for(;y<=b;)YRx(this,q,y),y+=this.blockSize;if(typeof q==="string")for(;y<N;){if(J[E]=q.charCodeAt(y),++E,++y,E==this.blockSize){YRx(this,J);E=0;break}}else for(;y<N;)if(J[E]=q[y],++E,++y,E==this.blockSize){YRx(this,J);E=0;break}}this.inbuf_=E;this.total_+=N}};
AS.prototype.digest=function(){var q=[],N=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var b=this.blockSize-1;b>=56;b--)this.buf_[b]=N&255,N/=256;YRx(this,this.buf_);for(b=N=0;b<5;b++)for(var y=24;y>=0;y-=8)q[N]=this.chain_[b]>>y&255,++N;return q};var rmu;var DL=function(q){var N=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(m){N.databaseToken=m},
triggerThrottle:function(){N.throttledSend()},
cancelThrottle:function(){N.cancelThrottledSend()},
immediateSend:function(m){return _.d(function(r){return r.yield(N.immediateSend(m),0)})},
requestWithinAgeLimit:function(m,r){return N.requestWithinAgeLimit(m,r)},
retryQueuedRequests:function(){N.retryQueuedRequests()}};
var b;this.throttleTimeout=(b=q.throttleTimeout)!=null?b:100;var y;this.retryMaxAttempts=(y=q.retryMaxAttempts)!=null?y:1;var J;this.requestAgeLimitMs=(J=q.requestAgeLimitMs)!=null?J:2592E6;var E;this.queuedRequestAgeLimitMs=(E=q.queuedRequestAgeLimitMs)!=null?E:12E4;var F;this.retryDelayMs=(F=q.retryDelayMs)!=null?F:5E3;var R;this.databaseToken=(R=q.databaseToken)!=null?R:void 0;this.enableCleaning=!!q.enableCleaning;var c;this.cleaningRate=(c=q.cleaningRate)!=null?c:.1;var z;this.potentialEsfErrorLimit=
(z=q.potentialEsfErrorLimit)!=null?z:10;q.handleError&&(this.handleError=q.handleError);q.handleWarning&&(this.handleWarning=q.handleWarning);q.disableYtIdbTransactions&&(this.disableYtIdbTransactions=q.disableYtIdbTransactions);q.bypassDbTokenDependency&&(this.bypassDbTokenDependency=q.bypassDbTokenDependency);this.getBooleanFlag=q.getBooleanFlag;this.jobManager=q.jobManager;this.logsStore=q.logsStore;this.networkManager=q.networkManager;this.sendFn=q.sendFn;this.onlineEvent=q.onlineEvent;this.offlineEvent=
q.offlineEvent;Kv(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&QoJ(this)},QoJ=function(q){Kv(q)&&!q.disableYtIdbTransactions&&(q.initialized=!0,q.enableCleaning&&Math.random()<=q.cleaningRate&&q.logsStore.cleanLogsStore(q.databaseToken),q.retryQueuedRequests(),q.networkManager.isNetworkAvailable()&&q.throttledSend(),q.networkManager.listen(q.onlineEvent,q.throttledSend.bind(q)),q.networkManager.listen(q.offlineEvent,q.cancelThrottledSend.bind(q)))};
_.g=DL.prototype;_.g.writeThenSend=function(q,N){var b=this;N=N===void 0?{}:N;if(Kv(this)&&this.initialized){var y={url:q,options:N,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(y,this.databaseToken).then(function(J){y.id=J;b.networkManager.isNetworkAvailable()&&b.immediateSend(y)}).catch(function(J){b.immediateSend(y);
ODT(b,J)})}else this.sendFn(q,N)};
_.g.sendThenWrite=function(q,N,b){var y=this;N=N===void 0?{}:N;if(Kv(this)&&this.initialized){var J={url:q,options:N,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(J.skipRetry=b);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!J.skipRetry){if(!J.skipRetry){var E=N.onError?N.onError:function(){};
N.onError=function(F,R){return _.d(function(c){if(c.nextAddress==1)return c.yield(y.logsStore.set(J,y.databaseToken).catch(function(z){ODT(y,z)}),2);
E(F,R);_.hj(c)})}}this.sendFn(q,N,J.skipRetry)}else this.logsStore.set(J,this.databaseToken).catch(function(F){y.sendFn(q,N,J.skipRetry);
ODT(y,F)})}else this.sendFn(q,N,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&b)};
_.g.sendAndWrite=function(q,N){var b=this;N=N===void 0?{}:N;if(Kv(this)&&this.initialized){var y={url:q,options:N,timestamp:this.now(),status:"NEW",sendCount:0},J=!1,E=N.onSuccess?N.onSuccess:function(){};
y.options.onSuccess=function(F,R){y.id!==void 0?b.logsStore.deleteRequest(y.id,b.databaseToken):J=!0;b.networkManager.networkStatusHint&&b.getBooleanFlag&&b.getBooleanFlag("vss_network_hint")&&b.networkManager.networkStatusHint(!0);E(F,R)};
this.sendFn(y.url,y.options,void 0,!0);this.logsStore.set(y,this.databaseToken).then(function(F){y.id=F;J&&b.logsStore.deleteRequest(y.id,b.databaseToken)}).catch(function(F){ODT(b,F)})}else this.sendFn(q,N,void 0,!0)};
_.g.throttledSend=function(){var q=this;if(!Kv(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var N;return _.d(function(b){if(b.nextAddress==1)return b.yield(q.logsStore.getMostRecentByStatus("NEW",q.databaseToken),2);if(b.nextAddress!=3)return N=b.yieldResult,N?b.yield(q.immediateSend(N),3):(q.cancelThrottledSend(),b.return());q.intervalJob&&(q.intervalJob=0,q.throttledSend());_.hj(b)})},this.throttleTimeout))};
_.g.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.g.immediateSend=function(q){var N=this,b;return _.d(function(y){switch(y.nextAddress){case 1:if(!Kv(N))throw Error("cd");if(q.id===void 0){y.jumpTo(2);break}return y.yield(N.logsStore.markAsQueued(q.id,N.databaseToken),3);case 3:(b=y.yieldResult)||N.handleWarning(Error("dd"));case 2:if(N.requestWithinAgeLimit(q,N.requestAgeLimitMs)){y.jumpTo(4);break}N.handleWarning(Error("ed"));if(q.id===void 0){y.jumpTo(5);break}return y.yield(N.logsStore.deleteRequest(q.id,N.databaseToken),5);case 5:return y.return();
case 4:q.skipRetry||(q=wTT(N,q));if(!q){y.jumpTo(0);break}if(!q.skipRetry||q.id===void 0){y.jumpTo(8);break}return y.yield(N.logsStore.deleteRequest(q.id,N.databaseToken),8);case 8:N.sendFn(q.url,q.options,!!q.skipRetry),_.hj(y)}})};
var wTT=function(q,N){if(!Kv(q))throw Error("fd");var b=N.options.onError?N.options.onError:function(){};
N.options.onError=function(J,E){var F,R,c,z;return _.d(function(m){switch(m.nextAddress){case 1:F=v9D(E);(R=Gsn(E))&&q.getBooleanFlag&&q.getBooleanFlag("web_enable_error_204")&&q.handleError(Error("gd"),N.url,E);if(!(q.getBooleanFlag&&q.getBooleanFlag("nwl_consider_error_code")&&F||q.getBooleanFlag&&!q.getBooleanFlag("nwl_consider_error_code")&&q.potentialEsfErrorCounter<=q.potentialEsfErrorLimit)){m.jumpTo(2);break}if(!q.networkManager.sendNetworkCheckRequest){m.jumpTo(3);break}return m.yield(q.networkManager.sendNetworkCheckRequest(),
3);case 3:if(q.networkManager.isNetworkAvailable()){m.jumpTo(2);break}b(J,E);if(!q.getBooleanFlag||!q.getBooleanFlag("nwl_consider_error_code")||((c=N)==null?void 0:c.id)===void 0){m.jumpTo(6);break}return m.yield(q.logsStore.resetRequest(N.id,q.databaseToken,!1),6);case 6:return m.return();case 2:if(q.getBooleanFlag&&q.getBooleanFlag("nwl_consider_error_code")&&!F&&q.potentialEsfErrorCounter>q.potentialEsfErrorLimit)return m.return();q.potentialEsfErrorCounter++;if(((z=N)==null?void 0:z.id)===void 0){m.jumpTo(8);
break}return N.sendCount<q.retryMaxAttempts?m.yield(q.logsStore.resetRequest(N.id,q.databaseToken,!0,R?!1:void 0),12):m.yield(q.logsStore.deleteRequest(N.id,q.databaseToken),8);case 12:q.jobManager.addLowPriorityJob(function(){q.networkManager.isNetworkAvailable()&&q.throttledSend()},q.retryDelayMs);
case 8:b(J,E),_.hj(m)}})};
var y=N.options.onSuccess?N.options.onSuccess:function(){};
N.options.onSuccess=function(J,E){var F;return _.d(function(R){if(R.nextAddress==1)return((F=N)==null?void 0:F.id)===void 0?R.jumpTo(2):R.yield(q.logsStore.deleteRequest(N.id,q.databaseToken),2);q.networkManager.networkStatusHint&&q.getBooleanFlag&&q.getBooleanFlag("vss_network_hint")&&q.networkManager.networkStatusHint(!0);y(J,E);_.hj(R)})};
return N};
DL.prototype.requestWithinAgeLimit=function(q,N){q=q.timestamp;return this.now()-q>=N?!1:!0};
DL.prototype.retryQueuedRequests=function(){var q=this;if(!Kv(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(N){N&&!q.requestWithinAgeLimit(N,q.queuedRequestAgeLimitMs)?q.jobManager.addLowPriorityJob(function(){return _.d(function(b){if(b.nextAddress==1)return N.id===void 0?b.jumpTo(2):b.yield(q.logsStore.resetRequest(N.id,q.databaseToken),2);q.retryQueuedRequests();_.hj(b)})}):q.networkManager.isNetworkAvailable()&&q.throttledSend()})};
var ODT=function(q,N){q.writeError&&!q.networkManager.isNetworkAvailable()?q.writeError(N):q.handleError(N)},Kv=function(q){return!!q.databaseToken||q.bypassDbTokenDependency};var Ykd;var hIn={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,coordinatedSamplingTriggered:532};var iDM={},U9d=tS("ServiceWorkerLogsDatabase",{objectStores:(iDM.SWHealthLog={addedAtVersion:1},iDM),shared:!0,upgrade:function(q,N){N(1)&&q6(Hv(q,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var SkC={},aPZ=0;var PLA;var hw=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},E2=function(){if(!hw.instance){var q=_.Ng("yt.networkRequestMonitor.instance")||new hw;
_.zn("yt.networkRequestMonitor.instance",q);hw.instance=q}return hw.instance};
hw.prototype.requestComplete=function(q,N){N&&(this.anyRequestHasSucceeded=!0);q=this.removeParams(q);this.requestMap.get(q)||this.requestMap.set(q,N)};
hw.prototype.isEndpointCFR=function(q){q=this.removeParams(q);return(q=this.requestMap.get(q))?!1:q===!1&&this.anyRequestHasSucceeded?!0:null};
hw.prototype.removeParams=function(q){return q.split("?")[0]};
hw.prototype.removeParams=hw.prototype.removeParams;hw.prototype.isEndpointCFR=hw.prototype.isEndpointCFR;hw.prototype.requestComplete=hw.prototype.requestComplete;hw.getInstance=E2;var k2=function(q){_.O1.call(this);var N=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=q!=null?q:{addLowPriorityJob:function(J,E){return setTimeout(J,E)},
cancelJob:function(J){clearTimeout(J)}};
var b,y;this.isOnline=(y=(b=window.navigator)==null?void 0:b.onLine)!=null?y:!0;this.onNavigatorChange=function(){return _.d(function(J){return J.yield(lCj(N),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||K5j(this)};
_.Y(k2,_.O1);k2.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete k2.instance};
k2.prototype.isNetworkAvailable=function(){return this.isOnline};
var K5j=function(q){q.pollingJob=q.jobManager.addLowPriorityJob(function(){var N;return _.d(function(b){if(b.nextAddress==1)return q.isOnline?((N=window.navigator)==null?0:N.onLine)?b.jumpTo(3):b.yield(lCj(q),3):b.yield(lCj(q),3);K5j(q);_.hj(b)})},3E4)},lCj=function(q,N){return q.networkRequestPromise?q.networkRequestPromise:q.networkRequestPromise=new Promise(function(b){var y,J,E,F;
return _.d(function(R){switch(R.nextAddress){case 1:return y=window.AbortController?new window.AbortController:void 0,E=(J=y)==null?void 0:J.signal,F=!1,_.Yi(R,2,3),y&&(q.abortTimeoutKey=q.jobManager.addLowPriorityJob(function(){y.abort()},N||2E4)),R.yield(fetch("/generate_204",{method:"HEAD",
signal:E}),5);case 5:F=!0;case 3:_.w0(R);q.networkRequestPromise=void 0;q.abortTimeoutKey&&(q.jobManager.cancelJob(q.abortTimeoutKey),q.abortTimeoutKey=0);F!==q.isOnline&&(q.isOnline=F,q.isOnline?q.dispatchEvent("networkstatus-online"):q.dispatchEvent("networkstatus-offline"));b(F);_.l$(R,0);break;case 2:_.K7(R),F=!1,R.jumpTo(3)}})})};var UU=function(){_.O1.call(this);var q=this;this.shouldFlushErrors=!1;k2.instance||(k2.instance=new k2(_.pY));this.sharedNetworkStatusManager=k2.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(q.shouldFlushErrors&&_.x("offline_error_handling")){var N=Mld().get("errors",!0);if(N){for(var b in N)if(N[b]){var y=new _.IO(b,"sent via offline_errors");y.name=N[b].name;y.stack=N[b].stack;y.level=N[b].level;_.HC(y)}Mld().set("errors",{},2592E3,!0)}}})};
_.Y(UU,_.O1);var DRR=function(){if(!UU.instance){var q=_.Ng("yt.networkStatusManager.instance")||new UU;_.zn("yt.networkStatusManager.instance",q);UU.instance=q}return UU.instance};
_.g=UU.prototype;_.g.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.g.networkStatusHint=function(q){this.sharedNetworkStatusManager.isOnline=q};
_.g.getWindowStatus=function(){var q=window.navigator.onLine;return q===void 0?!0:q};
_.g.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.g.listen=function(q,N){return this.sharedNetworkStatusManager.listen(q,N)};
_.g.sendNetworkCheckRequest=function(q){q=lCj(this.sharedNetworkStatusManager,q);q.then(function(N){_.x("use_cfr_monitor")&&E2().requestComplete("generate_204",N)});
return q};
UU.prototype.sendNetworkCheckRequest=UU.prototype.sendNetworkCheckRequest;UU.prototype.listen=UU.prototype.listen;UU.prototype.enableErrorFlushing=UU.prototype.enableErrorFlushing;UU.prototype.getWindowStatus=UU.prototype.getWindowStatus;UU.prototype.networkStatusHint=UU.prototype.networkStatusHint;UU.prototype.isNetworkAvailable=UU.prototype.isNetworkAvailable;UU.getInstance=DRR;_.Jr=function(q){q=q===void 0?{}:q;_.O1.call(this);var N=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=DRR();var b=_.Ng("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);b&&(q.rateLimit?(this.rateLimit=q.rateLimit,b("networkstatus-online",function(){hSq(N,"publicytnetworkstatus-online")}),b("networkstatus-offline",function(){hSq(N,"publicytnetworkstatus-offline")})):(b("networkstatus-online",function(){N.dispatchEvent("publicytnetworkstatus-online")}),b("networkstatus-offline",
function(){N.dispatchEvent("publicytnetworkstatus-offline")})))};
_.Y(_.Jr,_.O1);_.Jr.prototype.isNetworkAvailable=function(){var q=_.Ng("yt.networkStatusManager.instance.isNetworkAvailable");return q?q.bind(this.nsmInstance)():!0};
_.Jr.prototype.networkStatusHint=function(q){var N=_.Ng("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);N&&N(q)};
_.Jr.prototype.sendNetworkCheckRequest=function(q){var N=this,b;return _.d(function(y){b=_.Ng("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(N.nsmInstance);return _.x("skip_network_check_if_cfr")&&E2().isEndpointCFR("generate_204")?y.return(new Promise(function(J){var E;N.networkStatusHint(((E=window.navigator)==null?void 0:E.onLine)||!0);J(N.isNetworkAvailable())})):b?y.return(b(q)):y.return(!0)})};
var hSq=function(q,N){q.rateLimit?q.lastJobTime?(_.pY.cancelJob(q.schedulerJob),q.schedulerJob=_.pY.addLowPriorityJob(function(){q.lastPublicSignalSent!==N&&(q.dispatchEvent(N),q.lastPublicSignalSent=N,q.lastJobTime=(0,_.mA)())},q.rateLimit-((0,_.mA)()-q.lastJobTime))):(q.dispatchEvent(N),q.lastPublicSignalSent=N,q.lastJobTime=(0,_.mA)()):q.dispatchEvent(N)};var HkJ,fv=function(){DL.call(this,{logsStore:{cleanLogsStore:hQn,deleteRequest:D9J,getMostRecentByStatus:ikA,markAsQueued:lPJ,resetRequest:K_D,set:wHJ},networkManager:_.q_D(),handleError:function(q,N,b){var y,J=b==null?void 0:(y=b.error)==null?void 0:y.code;if(J===400||J===415){var E;q=new _.IO(q.message,N,b==null?void 0:(E=b.error)==null?void 0:E.code);_.bv(q,void 0,void 0,void 0,!0)}else _.HC(q)},
handleWarning:_.bv,sendFn:eQh,now:_.mA,writeError:o9h,jobManager:_.ja(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.VX("potential_esf_error_limit",10),getBooleanFlag:_.x,disableYtIdbTransactions:!(_.C4()&&_.Naz())});this.initializationPromise=new _.yk;_.x("networkless_immediately_drop_all_requests")&&kse();GCD("LogsDatabaseV2")};
_.Y(fv,DL);_.URR=function(){var q=_.Ng("yt.networklessRequestController.instance");q||(q=new fv,_.zn("yt.networklessRequestController.instance",q),_.x("networkless_logging")&&_.$5().then(function(N){q.databaseToken=N;QoJ(q);q.initializationPromise.resolve();q.enableCleaning&&Math.random()<=q.cleaningRate&&q.databaseToken&&CLe(q.databaseToken);_.x("networkless_immediately_drop_sw_health_store")&&kCT(q)}));
return q};
fv.prototype.writeThenSend=function(q,N){N||(N={});N=BqA(q,N);_.C4()||(this.initialized=!1);DL.prototype.writeThenSend.call(this,q,N)};
fv.prototype.sendThenWrite=function(q,N,b){N||(N={});N=BqA(q,N);_.C4()||(this.initialized=!1);DL.prototype.sendThenWrite.call(this,q,N,b)};
fv.prototype.sendAndWrite=function(q,N){N||(N={});N=BqA(q,N);_.C4()||(this.initialized=!1);DL.prototype.sendAndWrite.call(this,q,N)};
fv.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var kCT=function(q){var N;_.d(function(b){if(!q.databaseToken)throw N=H4("clearSWHealthLogsDb"),N;return b.return(IPD(q.databaseToken).catch(function(y){q.handleError(y)}))})};_.ynA=!1;_.btd=_.JZ.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.ynA};_.zn("ytNetworklessLoggingInitializationOptions",_.btd);var S0=function(q){var N=this;this.config_=null;q?this.config_=q:hSR()&&(this.config_=_.Xl());_.Ip(_.pY,function(){x9h(N)},5E3)};
S0.prototype.isReady=function(){!this.config_&&hSR()&&(this.config_=_.Xl());return!!this.config_};
var jUn=function(q,N,b,y){!_.M7("VISITOR_DATA")&&N!=="visitor_id"&&Math.random()<.01&&_.bv(new _.IO("Missing VISITOR_DATA when sending innertube request.",N,b,y));if(!q.isReady()){var J=new _.IO("innertube xhrclient not ready",N,b,y);_.HC(J);throw J;}var E={headers:y.headers||{},method:"POST",postParams:b,postBody:y.postBody,postBodyFormat:y.postBodyFormat||"JSON",onTimeout:function(){y.onTimeout()},
onFetchTimeout:y.onTimeout,onSuccess:function(r,X){if(y.onSuccess)y.onSuccess(X)},
onFetchSuccess:function(r){if(y.onSuccess)y.onSuccess(r)},
onProgress:function(r){if(y.onProgress)y.onProgress(r)},
onError:function(r,X){if(y.onError)y.onError(X)},
onFetchError:function(r){if(y.onError)y.onError(r)},
timeout:y.timeout,withCredentials:!0,compress:y.compress};E.headers["Content-Type"]||(E.headers["Content-Type"]="application/json");var F="";(J=q.config_.innertubeHostOverride)&&(F=J);var R=q.config_.innertubeUseThirdPartyAuth||!1,c=_.oRC(R,F,y);Object.assign(E.headers,c);E.headers.Authorization&&!F&&R&&(E.headers["x-origin"]=window.location.origin);var z=_.ZM(F+("/youtubei/"+q.config_.innertubeApiVersion+"/"+N),{alt:"json"}),m=function(r){r=r===void 0?!1:r;var X;if(y.retry&&F!="www.youtube-nocookie.com"&&
(r||_.x("skip_ls_gel_retry")||E.headers["Content-Type"]!=="application/json"||(X=XHJ(N,b,c,R)),X)){var V=E.onSuccess,G=E.onFetchSuccess;E.onSuccess=function(k,f){Vln(X);V(k,f)};
b.onFetchSuccess=function(k,f){Vln(X);G(k,f)}}try{if(r&&y.retry&&!y.networklessOptions.bypassNetworkless)E.method="POST",y.networklessOptions.writeThenSend?_.URR().writeThenSend(z,E):_.URR().sendAndWrite(z,E);
else if(y.compress){var w=!y.networklessOptions.writeThenSend;if(E.postBody){var D=E.postBody;typeof D!=="string"&&(D=JSON.stringify(E.postBody));F_n(z,D,E,_.iv,w)}else F_n(z,JSON.stringify(E.postParams),E,tgd,w)}else tgd(z,E)}catch(k){if(k.name==="InvalidAccessError")X&&(Vln(X),X=0),_.bv(Error("id"));else throw k;}X&&_.Ip(_.pY,function(){x9h(q)},5E3)};
_.Jnd()?tNh().then(function(r){m(r)}):m(!1)};var YjA=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(YjA,_.Rx);var fCx=0,g0d=_.Nd?"webkit":_.qd?"moz":_.HV?"ms":pA1?"o":"";_.zn("ytDomDomGetNextId",_.Ng("ytDomDomGetNextId")||function(){return++fCx});var Cg1={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},c_=function(q){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(q=
q||window.event){this.event=q;for(var N in q)N in Cg1||(this[N]=q[N]);this.scale=q.scale;this.rotation=q.rotation;var b=q.target||q.srcElement;b&&b.nodeType==3&&(b=b.parentNode);this.target=b;var y=q.relatedTarget;if(y)try{y=y.nodeName?y:null}catch(J){y=null}else this.type=="mouseover"?y=q.fromElement:this.type=="mouseout"&&(y=q.toElement);this.relatedTarget=y;this.clientX=q.clientX!=void 0?q.clientX:q.pageX;this.clientY=q.clientY!=void 0?q.clientY:q.pageY;this.keyCode=q.keyCode?q.keyCode:q.which;
this.charCode=q.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=q.altKey;this.ctrlKey=q.ctrlKey;this.shiftKey=q.shiftKey;this.metaKey=q.metaKey;this.pageX_=q.pageX;this.pageY_=q.pageY}}catch(J){}},IC1=function(q){if(document.body&&document.documentElement){var N=document.body.scrollTop+document.documentElement.scrollTop;
q.pageX_=q.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);q.pageY_=q.clientY+N}};
c_.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
c_.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
c_.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var dL=_.JZ.ytEventsEventsListeners||{};_.zn("ytEventsEventsListeners",dL);var uRA=_.JZ.ytEventsEventsCounter||{count:0};_.zn("ytEventsEventsCounter",uRA);var zyR=_.x_(function(){var q=!1;try{var N=Object.defineProperty({},"capture",{get:function(){q=!0}});
window.addEventListener("test",null,N)}catch(b){}return q});_.oK(z6,_.UN);z6.prototype.onMouseMove_=function(q){q.pageX_===void 0&&IC1(q);var N=q.pageX_;q.pageY_===void 0&&IC1(q);this.position_=new _.Sc(N,q.pageY_)};
z6.prototype.checkPosition_=function(){if(this.position_){var q=(0,_.mA)();if(this.previousTime_!=0){var N=this.previousPosition_,b=this.position_,y=N.x-b.x;N=N.y-b.y;y=Math.sqrt(y*y+N*N)/(q-this.previousTime_);this.cycles_[this.index_]=Math.abs((y-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(b=N=0;b<4;b++)N+=this.cycles_[b]||0;N>=3&&this.callback_();this.previousVelocity_=y}this.previousTime_=q;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
z6.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.$oC(this.mouseListenerKey_)};var V_D={};var wkC=new _.yT("rawColdConfigGroup");var O6n=new _.yT("rawHotConfigGroup");var T31=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(T31,_.Rx);var GIJ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(GIJ,_.Rx);var Co=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q,500)};
_.Y(Co,_.Rx);Co.prototype.getPayloadCase=function(){return _.$s(this,soo)};
Co.prototype.getContext=function(){return _.Vr(this,GIJ,33)};
var soo=[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 jEC=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(jEC,_.Rx);var Anh=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Anh,_.Rx);Anh.prototype.setVideoId=function(q){return i0(this,1,eyh,vd(q))};
Anh.prototype.getPlaylistId=function(){return _.wE(this,ky(this,eyh,2))};
var eyh=[1,2];var $OA=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y($OA,_.Rx);$OA.prototype.getContext=function(){return _.Vr(this,l0,1)};
$OA.prototype.getTier=function(){return _.vc(this,7)};var nR1,Xf,VQ;nR1=_.JZ.ytPubsubPubsubInstance||new _.K4;Xf=_.JZ.ytPubsubPubsubSubscribedKeys||{};VQ=_.JZ.ytPubsubPubsubTopicToKeys||{};_.jin=_.JZ.ytPubsubPubsubIsSynchronous||{};_.K4.prototype.subscribe=_.K4.prototype.subscribe;_.K4.prototype.unsubscribeByKey=_.K4.prototype.unsubscribeByKey;_.K4.prototype.publish=_.K4.prototype.publish;_.K4.prototype.clear=_.K4.prototype.clear;_.zn("ytPubsubPubsubInstance",nR1);_.zn("ytPubsubPubsubTopicToKeys",VQ);_.zn("ytPubsubPubsubIsSynchronous",_.jin);
_.zn("ytPubsubPubsubSubscribedKeys",Xf);var xy=window;var Cv=_.x("web_enable_lifecycle_monitoring")&&QiD()!==0,aCF=_.x("web_enable_lifecycle_monitoring");var SR1=function(q){var N=this;var b=b===void 0?0:b;var y=y===void 0?_.ja():y;this.JSC$10967_defaultPriority=b;this.scheduler=y;this.completedResolver=new _.yk;this.scheduledPayloads=q;for(q={i$jscomp$492:0};q.i$jscomp$492<this.scheduledPayloads.length;q={payload$jscomp$20:void 0,i$jscomp$492:q.i$jscomp$492},q.i$jscomp$492++)q.payload$jscomp$20=this.scheduledPayloads[q.i$jscomp$492],b=function(J){return function(){J.payload$jscomp$20.job();N.scheduledPayloads[J.i$jscomp$492].processed=!0;N.scheduledPayloads.every(function(E){return E.processed===
!0})&&N.completedResolver.resolve()}}(q),y=this.getPriority(q.payload$jscomp$20),y=this.scheduler.addJob(b,y),this.scheduledPayloads[q.i$jscomp$492]=Object.assign({},q.payload$jscomp$20,{job:b,
jobId:y})};
SR1.prototype.flushJobs=function(){var q=this,N=Array.from(this.scheduledPayloads.keys()).sort(function(y,J){return q.getPriority(q.scheduledPayloads[J])-q.getPriority(q.scheduledPayloads[y])});
N=_.Z(N);for(var b=N.next();!b.done;b=N.next())b=this.scheduledPayloads[b.value],b.jobId===void 0||b.processed||(this.scheduler.cancelJob(b.jobId),this.scheduler.addJob(b.job,10))};
SR1.prototype.cancel=function(){for(var q=_.Z(this.scheduledPayloads),N=q.next();!N.done;N=q.next())N=N.value,N.jobId===void 0||N.processed||this.scheduler.cancelJob(N.jobId),N.processed=!0;this.completedResolver.resolve()};
SR1.prototype.getPriority=function(q){var N;return(N=q.priority)!=null?N:this.JSC$10967_defaultPriority};var Ig=function(q){this.state=q;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Cv&&Ote(this.state)};
Ig.prototype.install=function(q){this.plugins.push(q);return this};
Ig.prototype.uninstall=function(){var q=this;_.MB.apply(0,arguments).forEach(function(N){N=q.plugins.indexOf(N);N>-1&&q.plugins.splice(N,1)})};
Ig.prototype.transition=function(q,N){var b=this;Cv&&w$z(this.state);var y=this.transitions.find(function(E){return Array.isArray(E.from)?E.from.find(function(F){return F===b.state&&E.to===q}):E.from===b.state&&E.to===q});
if(y){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);W5q(this,q,N);this.state=q;Cv&&Ote(this.state);y=y.action.bind(this);var J=this.plugins.filter(function(E){return E[q]}).map(function(E){return E[q]});
y(L5M(this,J),N)}else throw Error("jd`"+this.state+"`"+q);};
var L5M=function(q,N){var b=N.filter(function(J){return pT1(q,J)===10}),y=N.filter(function(J){return pT1(q,J)!==10});
return q.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var J=_.MB.apply(0,arguments);return _.d(function(E){if(E.nextAddress==1)return E.yield(q.runImmediateJobsAsync.apply(q,[b].concat(_.a9(J))),2);q.setJobSetWithScheduledJobs.apply(q,[y].concat(_.a9(J)));_.hj(E)})}:function(){var J=_.MB.apply(0,arguments);
q.runImmediateJobsSync.apply(q,[b].concat(_.a9(J)));q.setJobSetWithScheduledJobs.apply(q,[y].concat(_.a9(J)))}};
Ig.prototype.runImmediateJobsSync=function(q){var N=_.MB.apply(1,arguments);_.ja();for(var b=_.Z(q),y=b.next(),J={};!y.done;J={lifecycle$jscomp$2:void 0},y=b.next())J.lifecycle$jscomp$2=y.value,e_(function(E){return function(){PgT(E.lifecycle$jscomp$2.name);ldz(function(){return E.lifecycle$jscomp$2.callback.apply(E.lifecycle$jscomp$2,_.a9(N))});
TJ(E.lifecycle$jscomp$2.name)}}(J))};
Ig.prototype.runImmediateJobsAsync=function(q){var N=_.MB.apply(1,arguments),b,y,J,E;return _.d(function(F){F.nextAddress==1&&(_.ja(),b=_.Z(q),y=b.next(),J={});if(F.nextAddress!=3){if(y.done)return F.jumpTo(0);J.lifecycle$jscomp$3=y.value;J.asyncJobCompletion=void 0;E=function(R){return function(){PgT(R.lifecycle$jscomp$3.name);var c=ldz(function(){return R.lifecycle$jscomp$3.callback.apply(R.lifecycle$jscomp$3,_.a9(N))});
GoJ(c)?R.asyncJobCompletion=_.x("web_lifecycle_error_handling_killswitch")?c.then(function(){TJ(R.lifecycle$jscomp$3.name)}):c.then(function(){TJ(R.lifecycle$jscomp$3.name)},function(z){itn(z);
TJ(R.lifecycle$jscomp$3.name)}):TJ(R.lifecycle$jscomp$3.name)}}(J);
e_(E);return J.asyncJobCompletion?F.yield(J.asyncJobCompletion,3):F.jumpTo(3)}J={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};y=b.next();return F.jumpTo(2)})};
Ig.prototype.setJobSetWithScheduledJobs=function(q){var N=_.MB.apply(1,arguments),b=this,y=q.map(function(J){return{job:function(){PgT(J.name);ldz(function(){return J.callback.apply(J,_.a9(N))});
TJ(J.name)},
priority:pT1(b,J)}});
y.length&&(this.jobSet=new SR1(y))};
var pT1=function(q,N){var b,y;return(y=(b=q.overridePriority)!=null?b:N.priority)!=null?y:0},PgT=function(q){Cv&&q&&Ote(q)},TJ=function(q){Cv&&q&&w$z(q)},W5q=function(q,N,b){aCF&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+q.constructor.name+"] '"+q.state+"' to '"+N+"'"),console.log("with message: ",b),console.groupEnd())};
_.$H.Object.defineProperties(Ig.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var MNv=function(q){Ig.call(this,q===void 0?"none":q);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(){}}]},oR1;
_.Y(MNv,Ig);MNv.prototype.runApplicationNavigationBegin=function(q,N){var b=this;this.navigationTimer=_.Ip(_.pY,function(){b.currentState==="application_navigating"&&b.transition("none")},5E3);
q(N==null?void 0:N.event)};
MNv.prototype.runApplicationNavigationEnd=function(q,N){this.navigationTimer&&(_.pY.cancelJob(this.navigationTimer),this.navigationTimer=null);q(N==null?void 0:N.event)};
_.QEJ=function(){oR1||(oR1=new MNv);return oR1};var YlJ=[];_.zn("yt.logging.transport.getScrapedGelPayloads",function(){return YlJ});var v_=function(){var q=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return q.totalEntries}}};
v_.prototype.storePayload=function(q,N){q=K6d(q);this.store[q]?this.store[q].push(N):(this.memoizedKeySequences={},this.store[q]=[N]);this.totalEntries++;_.x("more_accurate_gel_parser")&&(N=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(N));return q};
v_.prototype.smartExtractMatchingEntries=function(q){if(!q.keys.length)return[];for(var N=Aix(this,q.keys.splice(0,1)[0]),b=[],y=0;y<N.length;y++)this.store[N[y]]&&q.sizeLimit&&(this.store[N[y]].length<=q.sizeLimit?(b.push.apply(b,_.a9(this.store[N[y]])),delete this.store[N[y]]):b.push.apply(b,_.a9(this.store[N[y]].splice(0,q.sizeLimit))));this.totalEntries-=b.length;(q==null?0:q.sizeLimit)&&b.length<(q==null?void 0:q.sizeLimit)&&(q.sizeLimit-=b.length,b.push.apply(b,_.a9(this.smartExtractMatchingEntries(q))));
return b};
v_.prototype.extractMatchingEntries=function(q){q=Aix(this,q);for(var N=[],b=0;b<q.length;b++)this.store[q[b]]&&(N.push.apply(N,_.a9(this.store[q[b]])),delete this.store[q[b]]);this.totalEntries-=N.length;return N};
v_.prototype.getSequenceCount=function(q){q=Aix(this,q);for(var N=0,b=0;b<q.length;b++){var y=void 0;N+=((y=this.store[q[b]])==null?void 0:y.length)||0}return N};
var Aix=function(q,N){var b=K6d(N);if(q.memoizedKeySequences[b])return q.memoizedKeySequences[b];var y=Object.keys(q.store)||[];if(y.length<=1&&K6d(N)===y[0])return y;for(var J=[],E=0;E<y.length;E++){var F=y[E].split("/");if(eSF(N.auth,F[0])){var R=N.isJspb;eSF(R===void 0?"undefined":R?"true":"false",F[1])&&eSF(N.cttAuthInfo,F[2])&&(R=N.tier,R=R===void 0?"undefined":JSON.stringify(R),eSF(R,F[3])&&J.push(y[E]))}}return q.memoizedKeySequences[b]=J},eSF=function(q,N){return q===void 0||q==="undefined"?
!0:q===N};
v_.prototype.getSequenceCount=v_.prototype.getSequenceCount;v_.prototype.extractMatchingEntries=v_.prototype.extractMatchingEntries;v_.prototype.smartExtractMatchingEntries=v_.prototype.smartExtractMatchingEntries;v_.prototype.storePayload=v_.prototype.storePayload;var gPn,JEz,Z6h,O2,B3T,DOe,K8J,yED,b6A,L6u,EPJ,vPh,Htn;gPn=_.VX("initial_gel_batch_timeout",2E3);JEz=_.VX("gel_queue_timeout_max_ms",6E4);Z6h=_.VX("gel_min_batch_size",5);O2=void 0;B3T=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
DOe=new B3T;K8J=new B3T;yED=new B3T;b6A=new B3T;EPJ=!0;vPh=1;_.xOZ=new Map;Htn=_.JZ.ytLoggingTransportTokensToCttTargetIds_||{};_.zn("ytLoggingTransportTokensToCttTargetIds_",Htn);var Bae=_.JZ.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.zn("ytLoggingTransportTokensToJspbCttTargetIds_",Bae);var QQ={};var no=_.JZ.ytLoggingGelSequenceIdObj_||{};_.zn("ytLoggingGelSequenceIdObj_",no);var UOZ=[];var PRz=new Set,sEA=0,AEe=0,oPh=0,aUu=[],nPn=[],eIC=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var dED=function(){};
dED.prototype.getUrl=function(q,N){N=N===void 0?!1:N;return q.hasOwnProperty("shareEndpoint")?null:_.NjC(q,null,N)};
var Qqu=function(q,N,b){q={endpoint:N,actions:[]};b=(b.path?b.path[0]:b.target).icon||"";N=b.indexOf(":");N>0&&(b=b.substr(N+1));b&&q.actions.push(b);return q};var ZTn=/Command$/,ged=/Endpoint$/,yOA=new Map;var HD1,qvl;HD1=1;_.JD=function(){this.actionRoutingMap=new Map};
_.JD.prototype.triggerAction=function(q){var N=new bOJ(q,!1,_.MB.apply(1,arguments));this.handleAction(N);return N.returnValue};
_.JD.prototype.triggerOptionalAction=function(q){var N=new bOJ(q,!0,_.MB.apply(1,arguments));this.handleAction(N);return N.returnValue};
_.sU=function(q,N,b){N.forEach(function(y){var J=EeZ(y);J&&q.triggerOptionalAction(J,y,b,void 0)})};
_.JD.prototype.handleAction=function(q){var N=this.actionRoutingMap.get(q.actionName);N&&qvl(q,N);q.optionalAction||q.returnValue.length!==0||(q=new _.IO("Unhandled action",q.actionName),_.bv(q))};
qvl=function(q,N){N.forEach(function(b){var y=null;b?y=b.apply(null,q.args):(b=Error("kd"),b.params=q.actionName,_.HC(b));q.returnValue.push(y)})};
_.EX=function(q,N,b){b||(b=HD1++);for(var y=_.Z(Object.keys(N)),J=y.next();!J.done;J=y.next()){J=J.value;var E=q.actionRoutingMap.get(J);E||(E=new Map,q.actionRoutingMap.set(J,E));q.registerActionHandler(b,J,N[J],E)}return b};
_.JD.prototype.registerActionHandler=function(q,N,b,y){y.set(q,_.qg(b))};
_.gI=function(q,N,b){N=_.Z(Object.keys(N));for(var y=N.next();!y.done;y=N.next())(y=q.actionRoutingMap.get(y.value))&&y.delete(b)};
_.PV(_.JD);var z7n=function(q,N){var b=_.JD.getInstance();_.WC(function(){var y={},J=_.EX(b,(y[q]=N,y));_.W1(function(){var E={};_.gI(b,(E[q]="",E),J)})})};var lrD=Symbol("md");r9d=eTd;var KIR=new Set(["For","If","Match","Watch"]),N5l={},b9E=(N5l[H1.default]=function(){return dLZ},N5l.style=function(){return dLZ},N5l),yNj;
for(yNj in b9E)z2.attributes[yNj]=b9E[yNj](z2.attributes[yNj]);var tD=new _.Jw("VISIBILITY_OBSERVER");var ned={retrieve:function(q){return this.id.\u0275prov.token===q.\u0275prov.token?this.contextValue:this?_.dn(this,this.id):Xvu}};var N8A=function(q,N,b){if(q!==XGn)return!1;q=Y$J(document.createElement("div"),function(){var y=XC(!1);try{b[0]()}finally{XC(y)}});
q=Array.from(q.childNodes);q.length===1&&(q=q[0]);return q};var JNT=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(q){}var E8o=typeof WeakRef==="function";var g8j=function(q){this.value=q};
g8j.prototype.deref=function(){return this.value};
var Z9M=E8o?WeakRef:g8j,FlT=function(q){this.newKeyHandler=q;this.map=new WeakMap};
FlT.prototype.add=function(q,N){this.map.has(q)||(this.newKeyHandler(q),this.map.set(q,[]));this.map.get(q).push(new Z9M(N))};
FlT.prototype.get=function(q){var N=this;return function y(){var J,E,F,R,c,z,m,r,X,V,G;return _.b9(y,function(w){switch(w.nextAddress){case 1:_.i$(w,2);J=N.map.get(q);if(!J)return w.return();E=0;F=_.Z(J);R=F.next();case 4:if(R.done){w.jumpTo(6);break}c=R.value;z=c.deref();if(!z){w.jumpTo(5);break}E++;m=_.yD;return w.yield(z,8);case 8:m(w.yieldResult);case 5:R=F.next();w.jumpTo(4);break;case 6:if(2*E<J.length){r=0;X=_.Z(J);for(V=X.next();!V.done;V=X.next())G=V.value,G.deref()&&(J[r++]=G);J.length=
r}case 2:_.w0(w),_.l$(w,0)}})}()};var Rn4=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},MzZ=new FlT(function(q){q.addEventListener("abort",AOu,{once:!0})}),Pxd=new WeakMap,dKo=function(q){q=q===void 0?nv:q;
this.signal=new q};
dKo.prototype.abort=function(q){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=q,q=new Event("abort"),this.signal.dispatchEvent(q))};
var nv=function(){this.target=Rn4();this.aborted=!1;this.onabort=null};
nv.prototype.throwIfAborted=function(){pGR.call(this)};
nv.prototype.addEventListener=function(q,N,b){this.target.addEventListener(q,N,b)};
nv.prototype.removeEventListener=function(q,N,b){this.target.removeEventListener(q,N,b)};
nv.prototype.dispatchEvent=function(q){if(this.onabort&&q.type==="abort")this.onabort(q);return this.target.dispatchEvent(q)};
nv.abort=LIJ;nv.timeout=e7z;nv.any=oeC;var WIu=JNT?AbortController:dKo,ag=JNT?AbortSignal:nv;typeof ag.abort!=="function"&&(ag.abort=LIJ);typeof ag.prototype.throwIfAborted!=="function"&&(ag.prototype.throwIfAborted=pGR);typeof ag.any!=="function"&&(ag.any=oeC);typeof ag.timeout!=="function"&&(ag.timeout=e7z);var rI=null,HTA=new Map;var cNo=function(q){q=q.clone();Kn1(q);Qw(q,"dg",null);Qw(q,"d","0");OQl(q,null);wKF(q,null);return q},uHJ=!0,zn1=function(q,N,b){var y=b===void 0?{}:b;
b=y.cssRowKey===void 0?void 0:y.cssRowKey;var J=y.combinedSignature===void 0?void 0:y.combinedSignature;var E=y.extraEdges===void 0?void 0:y.extraEdges;y=y.callback===void 0?void 0:y.callback;Qw(q,"m",N.join(","));E&&lmj(q,E);b&&(Qw(q,"ck",b),J?Qw(q,"rs",J):uHJ&&(uHJ=!1));if(y){if(y!=null&&!khM.test(y))throw Error("Xa`"+y);Qw(q,"cb",y)}q=q.toString();_.gA(q,"/")&&(q=FWR(document.location.href)+q);return _.hB(q)};var teR=function(q){return $KE(q).then(function(N){return JSON.parse(N.responseText)})},$KE=function(q){var N={},b=N.xmlHttpFactory?N.xmlHttpFactory.createInstance():MIT.createInstance();
return(new _.wL(function(y,J){var E;try{b.open("GET",q,!0)}catch(c){J(new SR("Error opening XHR: "+c.message,q,b))}b.onreadystatechange=function(){if(b.readyState==4){_.JZ.clearTimeout(E);var c;!(c=Pcx(b.status))&&(c=b.status===0)&&(c=ZF1(q),c=!(c=="http"||c=="https"||c==""));c?y(b):J(new mKJ(b.status,q,b))}};
b.onerror=function(){J(new SR("Network error",q,b))};
if(N.headers)for(var F in N.headers){var R=N.headers[F];R!=null&&b.setRequestHeader(F,R)}N.withCredentials&&(b.withCredentials=N.withCredentials);N.responseType&&(b.responseType=N.responseType);N.mimeType&&b.overrideMimeType(N.mimeType);N.timeoutMs>0&&(E=_.JZ.setTimeout(function(){b.onreadystatechange=function(){};
b.abort();J(new rNT(q,b))},N.timeoutMs));
try{b.send(null)}catch(c){b.onreadystatechange=function(){},_.JZ.clearTimeout(E),J(new SR("Error sending XHR: "+c.message,q,b))}})).thenCatch(function(y){y instanceof _.K0&&b.abort();
throw y;})},SR=function(q,N,b){_.bn.call(this,q+", url="+N);
this.url=N;this.xhr=b};
_.oK(SR,_.bn);SR.prototype.name="XhrError";var mKJ=function(q,N,b){SR.call(this,"Request Failed, status="+q,N,b);this.status=q};
_.oK(mKJ,SR);mKJ.prototype.name="XhrHttpError";var rNT=function(q,N){SR.call(this,"Request timed out",q,N)};
_.oK(rNT,SR);rNT.prototype.name="XhrTimeoutError";pN=pN||{};var W7=function(){_.UN.call(this)};
_.oK(W7,_.UN);W7.prototype.initialize=function(){};var XP4=function(q,N){this.fn_=q;this.handler_=N};
XP4.prototype.execute=function(q){this.fn_&&(this.fn_.call(this.handler_||null,q),this.fn_=this.handler_=null)};
XP4.prototype.abort=function(){this.handler_=this.fn_=null};var Lv=function(q,N){_.UN.call(this);this.deps_=q;this.JSC$11122_id_=N;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.oK(Lv,_.UN);Lv.prototype.moduleConstructor_=W7;Lv.prototype.module_=null;Lv.prototype.getId=function(){return this.JSC$11122_id_};
Lv.prototype.registerCallback=function(q,N){return pv(this.onloadCallbacks_,q,N)};
var Vex=function(q,N){pv(q.onErrorCallbacks_,N)},pv=function(q,N,b){N=new XP4(N,b);
q.push(N);return N};
Lv.prototype.isLoaded=function(){return!!this.module_};
Lv.prototype.onLoad=function(q){var N=new this.moduleConstructor_;N.initialize(q());this.module_=N;N=(N=j0T(this.earlyOnloadCallbacks_,q()))||j0T(this.onloadCallbacks_,q());N||(this.onErrorCallbacks_.length=0);return N};
Lv.prototype.onError=function(q){(q=j0T(this.onErrorCallbacks_,q))&&EJ(Error("rd`"+q));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var j0T=function(q,N){for(var b=[],y=0;y<q.length;y++)try{q[y].execute(N)}catch(J){EJ(J),b.push(J)}q.length=0;return b.length?b:null};
Lv.prototype.disposeInternal=function(){Lv.superClass_.disposeInternal.call(this);_.RA(this.module_)};var xKq,wPq,Q0M,O9F,GM1,Yv1,hnj,Kl4,DKF;
_.VH=function(q,N,b,y,J){y=y===void 0?!1:y;J=J===void 0?!1:J;var E=E===void 0?!0:E;this.scsReferenceUrl_=n5h(_.kB(q).toString(),E);this.cssRowKey_=N;this.combinedSignature_=b;this.useNegativeLoading_=y;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(q=YQ(this.scsReferenceUrl_,"excm"))?q.split(","):[];this.shouldScanForCss_=J;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;a3J();_.P7(this,iQE(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
xKq=function(q,N){if(N.href||N.getAttribute("data-href"))if(N=N.href||N.getAttribute("data-href"),C7u(N)&&!n5h(N).urlPrefix_.endsWith("_/js/")){N=iQE(n5h(N));N=_.Z(N);for(var b=N.next();!b.done;b=N.next())b=b.value,q.loadedCssModuleList_.includes(b)||q.loadedCssModuleList_.push(b)}};
_.VH.prototype.JSC$11127_loadModules=function(q,N,b){var y=b===void 0?{}:b;N=y.extraEdges;b=y.onError;var J=y.onSuccess;y=y.forceReload;if(!q)throw Error("sd");if(this.shouldScanForCss_){for(var E=_.Z(document.getElementsByTagName("style")),F=E.next();!F.done;F=E.next())xKq(this,F.value);E=_.Z(document.getElementsByTagName("link"));for(F=E.next();!F.done;F=E.next())xKq(this,F.value)}v8R(this,GM1(this,q),N,b,J,y)};
var v8R=function(q,N,b,y,J,E){y=y===void 0?function(){}:y;
J=J===void 0?function(){}:J;
E=E===void 0?!1:E;Yv1(q,N,function(F,R,c){c=c===void 0?R:c;q.enableFallbackFetch&&E?q.loadWithFetch(F,R,y,J,c):q.load(F,R,y,J,c,b)},b)||y(-1)};
_.VH.prototype.loadWithFetch=function(){_.d(function(){throw Error("td");})};
_.VH.prototype.maybeSetAdditionalFields=function(){};
wPq=function(q,N,b){if(q.useNegativeLoading_){var y=q.scsReferenceUrl_;q={cssRowKey:q.cssRowKey_,combinedSignature:q.combinedSignature_,extraEdges:b,requestedModuleIds:Q0M(q),requestedCssModuleIds:O9F(q)};var J=q===void 0?{}:q;q=J.requestedModuleIds===void 0?[]:J.requestedModuleIds;b=J.requestedCssModuleIds===void 0?[]:J.requestedCssModuleIds;var E=J.cssRowKey===void 0?void 0:J.cssRowKey;var F=J.combinedSignature===void 0?void 0:J.combinedSignature;var R=J.extraEdges===void 0?void 0:J.extraEdges;
J=J.callback===void 0?void 0:J.callback;y=cNo(y);Qw(y,"d","1");OQl(y,q);wKF(y,b);N=zn1(y,N,{cssRowKey:E,combinedSignature:F,extraEdges:R,callback:J})}else y=q.scsReferenceUrl_,q={cssRowKey:q.cssRowKey_,combinedSignature:q.combinedSignature_,requestedModuleIds:Q0M(q),requestedCssModuleIds:O9F(q)},R=q===void 0?{}:q,q=R.requestedCssModuleIds===void 0?[]:R.requestedCssModuleIds,b=R.cssRowKey===void 0?void 0:R.cssRowKey,E=R.combinedSignature===void 0?void 0:R.combinedSignature,F=R.extraEdges===void 0?
void 0:R.extraEdges,R=R.callback===void 0?void 0:R.callback,y=cNo(y),wKF(y,q),N=zn1(y,N,{cssRowKey:b,combinedSignature:E,extraEdges:F,callback:R});return N};
_.P7=function(q,N){for(var b=!1,y=[],J=0;J<N.length;++J){var E=N[J];q.requestedModuleMap_[E]||(q.requestedModuleMap_[E]=!0,q.requestedModuleList_.push(E),b=!0,y.push(E))}b&&(q.requestedModuleListSorted_=!1)};
_.Mt=function(q,N){for(var b=[],y=0;y<N.length;++y){var J=N[y];q.requestedModuleMap_[J]&&(delete q.requestedModuleMap_[J],_.WA(q.requestedModuleList_,J),b.push(J))}};
_.VH.prototype.load=function(q,N,b,y,J){J=J===void 0?N:J;_.kB(q);var E=this.useCors_,F=this.corsMode_,R=this.fetchPriority,c=_.iC("SCRIPT");_.R9(c,q);E&&(c.crossOrigin=F);c.async=!1;R&&c.setAttribute("fetchpriority",R);_.P7(this,N);_.i9T(this,q,c,N,b,y,J)};
_.i9T=function(q,N,b,y,J,E,F){F=F===void 0?y:F;q.lastScript_=b;q.insertPos.insertBefore(b,q.insertPos.firstChild);_.l4F(b,y,function(){b.parentElement.removeChild(b);q.lastScript_==b&&(q.lastScript_=null);E()},function(R){b.parentElement.removeChild(b);
q.lastScript_==b&&(q.lastScript_=null);_.Mt(q,R);q.pendingModuleGraphUpdate_?q.pendingModuleGraphUpdate_.then(function(){J(-1,N)}):J(-1,N)},F)};
_.l4F=function(q,N,b,y,J){J=J===void 0?N:J;var E=N.length,F=function(){E=0;q.onload=null;q.onerror=null;R=function(){}},R=function(){F();
var z=J.filter(function(m){return!WY().getModuleInfo(m).isLoaded()});
z.length!==0?y(z,"Response was successful but was missing module(s) "+z+"."):b()},c=function(){E--;
E==0&&R()};
N.forEach(function(z){z=WY().getModuleInfo(z);z.isLoaded()?c():(pv(z.earlyOnloadCallbacks_,c),Vex(z,c))});
q.onload=function(){return R()};
q.onerror=function(){F();y(N)}};
Q0M=function(q){q.requestedModuleListSorted_||(q.requestedModuleListSorted_=!0,q.requestedModuleList_.sort());return q.requestedModuleList_};
O9F=function(q){q=q.loadedCssModuleList_;q.sort();return q};
GM1=function(q,N){return N.filter(function(b){return!q.requestedModuleMap_[b]})};
Yv1=function(q,N,b,y){if(q.pendingModuleGraphUpdate_)return q.pendingModuleGraphUpdate_.then(function(){Yv1(q,N,b,y)}),!0;
if(!q.useNegativeLoading_){var J=[],E=Object.assign({},q.requestedModuleMap_);Kl4(q,N,function(m){J.push(m.getId())},y,function(m){return!m.isLoaded()},E);
N=J}for(E=0;E<N.length;){for(var F=N.length-E,R=E==0?N:N.slice(E,N.length),c=wPq(q,R,y),z=_.kB(c).toString();z.length>q.urlMaxLength;)if(F>1)F-=Math.ceil((z.length-q.urlMaxLength)/6),F=Math.max(F,1),R=N.slice(E,E+F),c=wPq(q,R,y),z=_.kB(c).toString();else return q.useNegativeLoading_?(q.useNegativeLoading_=!1,q.pendingModuleGraphUpdate_=DKF(q).then(function(m){hnj(q,m,y)}),Yv1(q,N.slice(E),b,y)):!1;
E+=F;q.useNegativeLoading_?b(c,R):b(c,R,E===N.length?N:[])}return!0};
hnj=function(q,N,b){WY().setAllModuleInfoString((N||{}).moduleGraph);Kl4(q,Q0M(q),function(y){_.P7(q,[y.getId()])},b);
q.pendingModuleGraphUpdate_=null};
Kl4=function(q,N,b,y,J,E){E=E===void 0?{}:E;var F=WY();N=_.Z(N);for(var R=N.next();!R.done;R=N.next()){R=R.value;var c=F.getModuleInfo(R);if(!(E[R]||J&&!J(c))){E[R]=!0;var z=c.deps_||[];if(y){var m=[];y[R]&&(m=Object.keys(y[R]));z=z.concat(m)}Kl4(q,z,b,y,J,E);b(c)}}};
DKF=function(q){q=q.scsReferenceUrl_.clone();Kn1(q);Qw(q,"dg",null);Qw(q,"md","1");return teR(q.toString())};var NRR=new Uint8Array(123);var kMJ=[];var UKT=function(){this.JSC$10135_loader_=null};
_.g=UKT.prototype;_.g.setBatchModeEnabled=function(){};
_.g.setAllModuleInfoString=function(){};
_.g.addExtraEdge=function(){throw Error("ud");};
_.g.removeExtraEdge=function(){throw Error("vd");};
_.g.getModuleContext=function(){return null};
_.g.isActive=function(){return!1};
_.g.isUserActive=function(){return!1};
_.g.registerInitializationCallback=function(){};
_.g.registerCallback=function(){};var og=function(q,N,b,y,J){var E=Error.call(this);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.name="ModuleLoadFailure";this.type=q;this.status=N;this.requestedModuleIds=b;this.url=y;this.cause=J;this.message=this.toString()};
_.Y(og,Error);og.prototype.toString=function(){return f4E(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var f4E=function(q){switch(q.type){case og.Type.UNAUTHORIZED:return"Unauthorized";case og.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case og.Type.TIMEOUT:return"Timed out";case og.Type.OLD_CODE_GONE:return"Out of date module id";case og.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+q.type}};
pN.ModuleLoadFailure=og;pN.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Aw=function(){this.moduleIds_=this.JSC$10135_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11140_extraEdges_={};this.JSC$11140_callbackMap_={};this.JSC$11140_currentlyLoadingModule_=this.baseModuleInfo_=new Lv([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Al;this.isDisposed_=this.userLastActive_=this.lastActive_=this.batchModeEnabled_=
!1};
_.oK(Aw,UKT);var CIR=function(q,N){_.bn.call(this,"Error loading "+q+": "+N)};
_.oK(CIR,_.bn);Aw.prototype.setBatchModeEnabled=function(q){this.batchModeEnabled_=q};
Aw.prototype.setAllModuleInfoString=function(q,N){if(!(this instanceof Aw))this.setAllModuleInfoString(q,N);else if(typeof q==="string"){if(q.startsWith("d$")){q=q.substring(2);for(var b=[],y=0,J=q.indexOf("/"),E=0,F=!1,R=0;;){var c=F?q.substring(E):q.substring(E,J);if(c.length===0)y++,E="sy"+y.toString(36),c=[];else{var z=c.indexOf(":");if(z<0)E=c,c=[];else if(z===c.length-1)E=c.substring(0,z),c=Array(b[R-1]);else{E=c.substring(0,z);c=c.substring(z+1).split(",");z=R;for(var m=0;m<c.length;m++)z-=
c[m].length===0?1:Number(c[m]),c[m]=b[z]}z=0;if(E.length===0)z=1;else if(E.charAt(0)==="+"||E.charAt(0)==="-")z=Number(E);z!==0&&(y+=z,E="sy"+y.toString(36))}b.push(E);I4M(this,E,c);if(F)break;E=J+1;J=q.indexOf("/",E);J===-1&&(F=!0);R++}this.moduleIds_=b}else if(q.startsWith("p$"))T5F(this,q);else{q=q.split("/");b=[];for(y=0;y<q.length;y++){R=q[y].split(":");J=R[0];F=[];if(R[1])for(F=R[1].split(","),R=0;R<F.length;R++)F[R]=b[parseInt(F[R],36)];b.push(J);I4M(this,J,F)}this.moduleIds_=b}N&&N.length?
(_.PA(this.loadingModuleIds_,N),this.lastInitialModuleId_=_.UJ(N)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11140_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11140_currentlyLoadingModule_=null,(N=this.baseModuleInfo_.onLoad((0,_.fF)(this.getModuleContext,this)))&&N.length&&s0x(this,new pN.ModuleLoadFailure(pN.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,N[0])),eR(this))}};
var T5F=function(q,N){var b=N.substring(2);for(N=0;N<64;N++)NRR["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(N)]=N;var y={buf:b,pos:0};X0(y);var J=X0(y),E=X0(y)+1;N=Array(J);var F=Array(J),R=Array(J);E=Array(E);var c=0,z=0,m=y.pos,r=y.buf.indexOf("|",y.pos);y.pos=r+1;for(r=0;r<J;r++){var X=X0(y),V=X&2,G=X&1;X>>>=2;G?(c+=X>>>1^-(X&1),X="sy"+c.toString(36)):(G=m,m+=X,X=b.substring(G,m));N[r]=X;V&&(E[z++]=X)}E[z]="";y.pos++;z=J&-2;b=J&1;for(c=0;c<z;c+=2)m=b0n(y),R[c]=
m&7,R[c+1]=m>>>3&7;b&&(b=b0n(y),R[z]=b&7);y.pos++;for(z=0;z<J;z++)R[z]===7&&(R[z]=X0(y));y.pos++;for(b=z=0;b<J;b++){c=R[b];m=c===0?kMJ:Array(c);F[b]=m;r=z;for(V=0;V<c;V++)r-=X0(y),m[V]=E[r];E[z]===N[b]&&z++}for(y=0;y<N.length;y++)I4M(q,N[y],F[y]);q.moduleIds_=N};
_.g=Aw.prototype;_.g.getModuleInfo=function(q){return this.moduleInfoMap[q]};
_.g.addExtraEdge=function(q,N){var b=this.getModuleInfo(q);b&&b.isLoaded()?this.load(N):(this.JSC$11140_extraEdges_[q]||(this.JSC$11140_extraEdges_[q]={}),this.JSC$11140_extraEdges_[q][N]=!0)};
_.g.removeExtraEdge=function(q,N){if(this.JSC$11140_extraEdges_[q]){delete this.JSC$11140_extraEdges_[q][N];for(var b in this.JSC$11140_extraEdges_[q])return;delete this.JSC$11140_extraEdges_[q]}};
_.g.isActive=function(){return this.loadingModuleIds_.length>0};
_.g.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var eR=function(q){var N=q.lastActive_,b=q.isActive();b!=N&&(q.executeCallbacks_(b?"active":"idle"),q.lastActive_=b);N=q.isUserActive();N!=q.userLastActive_&&(q.executeCallbacks_(N?"userActive":"userIdle"),q.userLastActive_=N)},I4M=function(q,N,b){q.moduleInfoMap[N]?(q=q.moduleInfoMap[N].deps_,q!=b&&q.splice.apply(q,[0,
q.length].concat(_.a9(b)))):q.moduleInfoMap[N]=new Lv(b,N)},a4F=function(q,N,b){var y=[];
Ueh(N,y);N=[];for(var J={},E=0;E<y.length;E++){var F=y[E],R=q.getModuleInfo(F);if(!R)throw Error("wd`"+F);var c=new Al;J[F]=c;R.isLoaded()?c.callback(null):(n8E(q,F,R,!!b,c),q.isModuleLoading(F)||N.push(F))}N.length>0&&(q.loadingModuleIds_.length===0?q.loadModules_(N):(q.requestedModuleIdsQueue_.push(N),eR(q)));return J},n8E=function(q,N,b,y,J){b.registerCallback(J.callback,J);
Vex(b,function(E){J.errback(new CIR(N,E))});
q.isModuleLoading(N)?y&&(SvR(q,N),eR(q)):y&&SvR(q,N)};
Aw.prototype.loadModules_=function(q,N,b){var y=this;N=N===void 0?0:N;var J=Wl1(this,q);this.loadingModuleIds_=J;this.requestedLoadingModuleIds_=this.batchModeEnabled_?q:_.LC(J);eR(this);if(J.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,J);q=this.JSC$10135_loader_;if(!q)throw Error("xd");if(Object.keys(this.JSC$11140_extraEdges_).length>0&&!q.supportsExtraEdges)throw Error("yd");b=(0,_.fF)(q.JSC$11127_loadModules,q,_.LC(J),this.moduleInfoMap,{extraEdges:this.JSC$11140_extraEdges_,
forceReload:!!b,onError:function(E,F){var R=y.requestedLoadingModuleIds_;E=E!=null?E:void 0;var c=(N===void 0?0:N)+1,z=_.LC(J);y.requestedLoadingModuleIds_=R;J.forEach(_.dg(_.WA,y.requestedModuleIds_),y);E==401?(s0x(y,new pN.ModuleLoadFailure(pN.ModuleLoadFailure.Type.UNAUTHORIZED,E)),y.requestedModuleIdsQueue_.length=0):E==410?(LlE(y,new pN.ModuleLoadFailure(pN.ModuleLoadFailure.Type.OLD_CODE_GONE,E)),pPF(y)):c>=3?(LlE(y,new pN.ModuleLoadFailure(pN.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,E,z,
F)),pPF(y)):y.loadModules_(y.requestedLoadingModuleIds_,c,E==8001||!1)},
onTimeout:(0,_.fF)(this.handleLoadTimeout_,this)});(q=Math.pow(N,2)*5E3)?_.JZ.setTimeout(b,q):b()}};
var Wl1=function(q,N){N=N.filter(function(J){return q.moduleInfoMap[J].isLoaded()?(_.JZ.setTimeout(function(){return Error("zd`"+J)},0),!1):!0});
for(var b=[],y=0;y<N.length;y++)b=b.concat(PIl(q,N[y]));Ueh(b);return!q.batchModeEnabled_&&b.length>1?(N=b.shift(),q.requestedModuleIdsQueue_=b.map(function(J){return[J]}).concat(q.requestedModuleIdsQueue_),[N]):b},PIl=function(q,N){var b=_.nM.createSet(q.requestedModuleIds_),y=[];
b[N]||y.push(N);N=[N];for(var J=0;J<N.length;J++)for(var E=q.getModuleInfo(N[J]).deps_,F=E.length-1;F>=0;F--){var R=E[F];q.getModuleInfo(R).isLoaded()||b[R]||(y.push(R),N.push(R))}y.reverse();Ueh(y);return y};
Aw.prototype.JSC$11135_setLoaded=function(){if(this.JSC$11140_currentlyLoadingModule_){var q=this.JSC$11140_currentlyLoadingModule_.getId(),N=[];if(this.JSC$11140_extraEdges_[q]){for(var b=_.Z(Object.keys(this.JSC$11140_extraEdges_[q])),y=b.next();!y.done;y=b.next()){y=y.value;var J=this.getModuleInfo(y);J&&!J.isLoaded()&&(this.removeExtraEdge(q,y),N.push(y))}this.loadMultiple(N)}this.isDisposed()||((N=this.moduleInfoMap[q].onLoad((0,_.fF)(this.getModuleContext,this)))&&N.length&&s0x(this,new pN.ModuleLoadFailure(pN.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,N[0])),_.WA(this.userInitiatedLoadingModuleIds_,q),_.WA(this.loadingModuleIds_,q),this.loadingModuleIds_.length===0&&pPF(this),this.lastInitialModuleId_&&q==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),eR(this),this.JSC$11140_currentlyLoadingModule_=null)}};
Aw.prototype.isModuleLoading=function(q){if(_.aJ(this.loadingModuleIds_,q))return!0;for(var N=0;N<this.requestedModuleIdsQueue_.length;N++)if(_.aJ(this.requestedModuleIdsQueue_[N],q))return!0;return!1};
Aw.prototype.load=function(q,N){return a4F(this,[q],N)[q]};
Aw.prototype.loadMultiple=function(q){return a4F(this,q)};
var SvR=function(q,N){_.aJ(q.userInitiatedLoadingModuleIds_,N)||q.userInitiatedLoadingModuleIds_.push(N)};
Aw.prototype.beforeLoadModuleCode=function(q){var N=this;this.JSC$11140_currentlyLoadingModule_&&this.JSC$11140_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11135_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[q]&&Mej(this,this.moduleInfoMap[q].deps_||[],function(b){b.module_=new W7;_.WA(N.loadingModuleIds_,b.getId())},function(b){return!b.isLoaded()});
this.JSC$11140_currentlyLoadingModule_=this.getModuleInfo(q)};
Aw.prototype.registerInitializationCallback=function(q){this.JSC$11140_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new Lv([],"synthetic_module_overhead"),this.JSC$11140_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);pv(this.JSC$11140_currentlyLoadingModule_.earlyOnloadCallbacks_,q)};
Aw.prototype.handleLoadTimeout_=function(){LlE(this,new pN.ModuleLoadFailure(pN.ModuleLoadFailure.Type.TIMEOUT));pPF(this)};
var LlE=function(q,N){q.requestedLoadingModuleIds_.length>1?q.requestedModuleIdsQueue_=q.requestedLoadingModuleIds_.map(function(b){return[b]}).concat(q.requestedModuleIdsQueue_):s0x(q,N)},s0x=function(q,N){var b=q.requestedLoadingModuleIds_;
q.loadingModuleIds_.length=0;for(var y=[],J=0;J<q.requestedModuleIdsQueue_.length;J++){var E=q.requestedModuleIdsQueue_[J].filter(function(c){var z=PIl(this,c);return gL(b,function(m){return _.aJ(z,m)})},q);
_.PA(y,E)}for(J=0;J<b.length;J++)_.KdD(y,b[J]);for(J=0;J<y.length;J++){for(E=0;E<q.requestedModuleIdsQueue_.length;E++)_.WA(q.requestedModuleIdsQueue_[E],y[J]);_.WA(q.userInitiatedLoadingModuleIds_,y[J])}if(J=q.JSC$11140_callbackMap_.error)for(E=0;E<J.length;E++)for(var F=J[E],R=0;R<y.length;R++)F("error",y[R],N);for(y=0;y<b.length;y++)if(q.moduleInfoMap[b[y]])q.moduleInfoMap[b[y]].onError(N);q.requestedLoadingModuleIds_.length=0;eR(q)},pPF=function(q){for(;q.requestedModuleIdsQueue_.length;){var N=
q.requestedModuleIdsQueue_.shift().filter(function(b){return!this.getModuleInfo(b).isLoaded()},q);
if(N.length>0){q.loadModules_(N);return}}eR(q)};
Aw.prototype.registerCallback=function(q,N){Array.isArray(q)||(q=[q]);for(var b=0;b<q.length;b++){var y=q[b],J=N,E=this.JSC$11140_callbackMap_;E[y]||(E[y]=[]);E[y].push(J)}};
Aw.prototype.executeCallbacks_=function(q){for(var N=this.JSC$11140_callbackMap_[q],b=0;N&&b<N.length;b++)N[b](q)};
var Mej=function(q,N,b,y,J){y=y===void 0?function(){return!0}:y;
J=J===void 0?{}:J;N=_.Z(N);for(var E=N.next();!E.done;E=N.next()){E=E.value;var F=q.getModuleInfo(E);!J[E]&&y(F)&&(J[E]=!0,Mej(q,F.deps_||[],b,y,J),b(F))}};
Aw.prototype.dispose=function(){_.dE(_.nM.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11140_callbackMap_={};this.isDisposed_=!0};
Aw.prototype.isDisposed=function(){return this.isDisposed_};
_.SG=function(){return new Aw};var o8T=[5E3,2E4],T_J=function(){this.JSC$10135_loader_=null;this.JSC$11148_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11148_queue_=[];this.JSC$11148_extraEdges_=Object.create(null);this.JSC$11148_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.Y(T_J,UKT);_.g=T_J.prototype;_.g.setAllModuleInfoString=function(){this.JSC$11148_currentlyLoadingModule_&&this.JSC$11148_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11135_setLoaded()};
_.g.getModuleInfo=function(q){var N=this.JSC$11148_moduleInfoMap_[q];N||(N=new Lv([],q),this.JSC$11148_moduleInfoMap_[q]=N);return N};
_.g.addExtraEdge=function(q,N){this.getModuleInfo(q).isLoaded()?this.load(N):(this.JSC$11148_extraEdges_[q]||(this.JSC$11148_extraEdges_[q]={}),this.JSC$11148_extraEdges_[q][N]=!0)};
_.g.removeExtraEdge=function(q,N){if(this.JSC$11148_extraEdges_[q]){delete this.JSC$11148_extraEdges_[q][N];for(var b in this.JSC$11148_extraEdges_[q])return;delete this.JSC$11148_extraEdges_[q]}};
_.g.isModuleLoading=function(q){return!!this.loadingModules_[q]};
_.g.load=function(q){ANl(this,[q]);return en4(this,q)};
_.g.loadMultiple=function(q){var N=this,b=Object.create(null),y=[];q.forEach(function(J){b[J]||(b[J]=en4(N,J),y.push(J))});
ANl(this,y);return b};
_.g.beforeLoadModuleCode=function(q){var N;((N=this.JSC$11148_currentlyLoadingModule_)==null?void 0:N.getId())==="synthetic_module_overhead"&&this.JSC$11135_setLoaded();var b,y;B5M(this,(y=(b=this.JSC$11148_moduleInfoMap_[q])==null?void 0:b.deps_)!=null?y:[],function(J){J.module_=new W7},function(J){return!J.isLoaded()});
this.JSC$11148_currentlyLoadingModule_=this.getModuleInfo(q)};
_.g.JSC$11135_setLoaded=function(){if(this.JSC$11148_currentlyLoadingModule_){var q=this.JSC$11148_currentlyLoadingModule_.getId(),N=[];if(this.JSC$11148_extraEdges_[q]){for(var b=_.Z(Object.keys(this.JSC$11148_extraEdges_[q])),y=b.next();!y.done;y=b.next())y=y.value,this.getModuleInfo(y).isLoaded()||(this.removeExtraEdge(q,y),N.push(y));this.loadMultiple(N)}this.JSC$11148_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11148_currentlyLoadingModule_=null;(!this.isModuleLoading(q)&&/^sy[0-9a-z]{0,4}$/.test(q)||q==="synthetic_module_overhead")&&delete this.JSC$11148_moduleInfoMap_[q];this.unsetModulesAsLoading(q)}};
_.g.registerInitializationCallback=function(q){this.JSC$11148_currentlyLoadingModule_||(this.JSC$11148_moduleInfoMap_.synthetic_module_overhead=new Lv([],"synthetic_module_overhead"),this.JSC$11148_currentlyLoadingModule_=this.JSC$11148_moduleInfoMap_.synthetic_module_overhead);pv(this.JSC$11148_currentlyLoadingModule_.earlyOnloadCallbacks_,q)};
_.g.setModulesAsLoading=function(){var q=this;_.MB.apply(0,arguments).forEach(function(N){q.loadingModules_[N]=!0})};
_.g.unsetModulesAsLoading=function(){var q=this;_.MB.apply(0,arguments).forEach(function(N){delete q.loadingModules_[N]})};
var en4=function(q,N){return new _.wL(function(b,y){var J=q.getModuleInfo(N);J.isLoaded()?b(null):(J.registerCallback(function(){b(null)}),Vex(J,function(E){var F="Error loading "+N+": "+E;
E instanceof pN.ModuleLoadFailure&&E.url&&(F=F+", requested url: "+E.url.toString());y(Error(F))}))})},ANl=function(q,N){N=N.filter(function(b){return!q.isModuleLoading(b)&&!q.getModuleInfo(b).isLoaded()});
N.length>0&&(q.setModulesAsLoading.apply(q,_.a9(N)),q.JSC$11148_queue_.push(N),H9l(q))},H9l=function(q){for(var N={};q.activeLoads_<Infinity&&q.JSC$11148_queue_.length>0;N={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})N.ids$jscomp$37=q.JSC$11148_queue_.shift().filter(function(b){return!q.getModuleInfo(b).isLoaded()}),N.ids$jscomp$37.length>0&&(q.activeLoads_++,N.finishLoad=function(b){return function(){q.activeLoads_--;
H9l(q);b.finishLoad=function(){}}}(N),_.lU(N.ids$jscomp$37.map(function(b){return en4(q,b)})).then(function(b){return function(){(0,b.finishLoad)()}}(N)),N.attempt$jscomp$6=0,N.load$jscomp$1=function(b){return function(){if(Object.keys(q.JSC$11148_extraEdges_).length>0&&!q.JSC$10135_loader_.supportsExtraEdges)throw Error("yd");
q.JSC$10135_loader_.JSC$11127_loadModules(b.ids$jscomp$37,q.JSC$11148_moduleInfoMap_,{extraEdges:q.JSC$11148_extraEdges_,onError:function(y,J){var E=o8T[b.attempt$jscomp$6++];E!==void 0?setTimeout(function(){(0,b.load$jscomp$1)()},E):(q.unsetModulesAsLoading.apply(q,_.a9(b.ids$jscomp$37)),(0,b.finishLoad)(),b.ids$jscomp$37.forEach(function(F){F=q.getModuleInfo(F);
if(!F.isLoaded())F.onError(new pN.ModuleLoadFailure(pN.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,y,b.ids$jscomp$37,J))}))}})}}(N),(0,N.load$jscomp$1)())},B5M=function(q,N,b,y,J){y=y===void 0?function(){return!0}:y;
J=J===void 0?{}:J;N=_.Z(N);for(var E=N.next();!E.done;E=N.next()){E=E.value;var F=q.getModuleInfo(E);!J[E]&&y(F)&&(J[E]=!0,B5M(q,F.deps_||[],b,y,J),b(F))}};var qkx=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var gAe=Symbol("Bd");window.JSCompiler_renameProperty=function(q){return q};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var Nql=!qkx||HTMLElement.es5Shimmed||_.JZ.Reflect===void 0||_.JZ.customElements===void 0||_.JZ.customElements.polyfillWrapFlushCallback||!1,bk4,arn=function(){var q=HTMLElement;if(Nql)return q;if(bk4!==void 0)return bk4;var N=_.JZ.Reflect,b=function(){return N.construct(q,[],this.constructor)};
b.prototype=q.prototype;b.prototype.constructor=b;b.es5Shimmed=!0;Object.setPrototypeOf(b,q);return bk4=b},ymv=!1;Nql||ymv||(ymv=!0,_.JZ.HTMLElement=arn());/*

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 c3d=/(url\()([^)]*)(\))/g,RNz=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,d1D,j6;var HK=!window.ShadyDOM||!window.ShadyDOM.inUse,JmT=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),E9o=!window.customElements.polyfillWrapFlushCallback,g94;if(g94=HK&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var Zko=new CSSStyleSheet;Zko.replaceSync("");var F_j=document.createElement("div");F_j.attachShadow({mode:"open"});F_j.shadowRoot.adoptedStyleSheets=[Zko];g94=F_j.shadowRoot.adoptedStyleSheets[0]===Zko}catch(q){g94=!1}
var RQj=g94,d91=window.Polymer&&window.Polymer.rootPath||zNz(document.baseURI||window.location.href),UX=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,x$A=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,E7=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,cmo=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,BK=window.Polymer&&window.Polymer.legacyOptimizations||!1,J9=window.Polymer&&window.Polymer.legacyWarnings||!1,uYT=window.Polymer&&window.Polymer.syncInitialRender||
!1,CQ=window.Polymer&&window.Polymer.legacyUndefined||!1,zQM=window.Polymer&&window.Polymer.orderedComputed||!1,B7=window.Polymer&&window.Polymer.removeNestedTemplates||!1,H7=window.Polymer&&window.Polymer.fastDomIf||!1,q2=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,$9F=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,tlq=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var N2={},m9T={},Th=function(){return HTMLElement.apply(this,arguments)||this};
_.Y(Th,HTMLElement);Th.import=function(q,N){return q?(q=N2[q]||m9T[q.toLowerCase()])&&N?q.querySelector(N):q:null};
Th.prototype.attributeChangedCallback=function(q,N,b){N!==b&&this.register()};
Th.prototype.register=function(q){if(q=q||this.id){if(E7&&(N2[q]||m9T[q.toLowerCase()])!==void 0)throw N2[q]=m9T[q.toLowerCase()]=null,Error("Cd`"+q);this.id=q;N2[q]=m9T[q.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.$H.Object.defineProperties(Th.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var q=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;q=_.xF(this.getAttribute("assetpath")||"",q.baseURI);this.__assetpath=zNz(q)}return this.__assetpath}}});
_.$H.Object.defineProperties(Th,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
Th["import"]=Th.import;Th.prototype.modules=N2;customElements.define("dom-module",Th);var rmJ=0,tPn=0,vK=[],XHx=0,$1J=!1,Vlj=document.createTextNode(""),jUj,AD;(new window.MutationObserver(m1n)).observe(Vlj,{characterData:!0});_.bW={after:function(q){return{run:function(N){return window.setTimeout(N,q)},
cancel:function(N){window.clearTimeout(N)}}},
run:function(q,N){return window.setTimeout(q,N)},
cancel:function(q){window.clearTimeout(q)}};
_.m6={run:function(q){return window.requestAnimationFrame(q)},
cancel:function(q){window.cancelAnimationFrame(q)}};
jUj={run:function(q){return window.requestIdleCallback?window.requestIdleCallback(q):window.setTimeout(q,16)},
cancel:function(q){window.cancelIdleCallback?window.cancelIdleCallback(q):window.clearTimeout(q)}};
AD={run:function(q){$1J||($1J=!0,Vlj.textContent=XHx++);vK.push(q);return rmJ++},
cancel:function(q){var N=q-tPn;if(N>=0){if(!vK[N])throw Error("Dd`"+q);vK[N]=null}}};var x9F=0,yO=function(q){var N=q.__mixinApplications;N||(N=new WeakMap,q.__mixinApplications=N);var b=x9F++;return function(y){var J=y.__mixinSet;if(J&&J[b])return y;var E=N,F=E.get(y);F||(F=q(y),E.set(y,F),y=Object.create(F.__mixinSet||J||null),y[b]=!0,F.__mixinSet=y);return F}};_.kF=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(q){return ShadyDOM.patch(q)}:function(q){return q};var v9E=yO(function(q){var N=function(){var b=q.call(this)||this;b.__dataEnabled=!1;b.__dataReady=!1;b.__dataInvalid=!1;b.__data={};b.__dataPending=null;b.__dataOld=null;b.__dataInstanceProps=null;b.__dataCounter=0;b.__serializing=!1;b._initializeProperties();return b};
_.Y(N,q);N.createProperties=function(b){var y=this.prototype,J;for(J in b)J in y||y._createPropertyAccessor(J)};
N.attributeNameForProperty=function(b){return b.toLowerCase()};
N.typeForProperty=function(){};
N.prototype._createPropertyAccessor=function(b,y){this._addPropertyToAttributeMap(b);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[b]||(this.__dataHasAccessor[b]=!0,this._definePropertyAccessor(b,y))};
N.prototype._addPropertyToAttributeMap=function(b){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var y=this.__dataAttributes[b];y||(y=this.constructor.attributeNameForProperty(b),this.__dataAttributes[y]=b);return y};
N.prototype._definePropertyAccessor=function(b,y){Object.defineProperty(this,b,{get:function(){return this.__data[b]},
set:y?function(){}:function(J){this._setPendingProperty(b,J,!0)&&this._invalidateProperties()}})};
N.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
N.prototype._initializeProperties=function(){for(var b in this.__dataHasAccessor)this.hasOwnProperty(b)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[b]=this[b],delete this[b])};
N.prototype._initializeInstanceProperties=function(b){Object.assign(this,b)};
N.prototype._setProperty=function(b,y){this._setPendingProperty(b,y)&&this._invalidateProperties()};
N.prototype._getProperty=function(b){return this.__data[b]};
N.prototype._setPendingProperty=function(b,y){var J=this.__data[b],E=this._shouldPropertyChange(b,y,J);E&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||b in this.__dataOld||(this.__dataOld[b]=J),this.__data[b]=y,this.__dataPending[b]=y);return E};
N.prototype._isPropertyPending=function(b){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(b))};
N.prototype._invalidateProperties=function(){var b=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,AD.run(function(){b.__dataInvalid&&(b.__dataInvalid=!1,b._flushProperties())}))};
N.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
N.prototype._flushProperties=function(){this.__dataCounter++;var b=this.__data,y=this.__dataPending,J=this.__dataOld;this._shouldPropertiesChange(b,y,J)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(b,y,J));this.__dataCounter--};
N.prototype._shouldPropertiesChange=function(b,y){return!!y};
N.prototype._propertiesChanged=function(){};
N.prototype._shouldPropertyChange=function(b,y,J){return J!==y&&(J===J||y===y)};
N.prototype.attributeChangedCallback=function(b,y,J,E){y!==J&&this._attributeToProperty(b,J);q.prototype.attributeChangedCallback&&q.prototype.attributeChangedCallback.call(this,b,y,J,E)};
N.prototype._attributeToProperty=function(b,y,J){if(!this.__serializing){var E=this.__dataAttributes;b=E&&E[b]||b;this[b]=this._deserializeValue(y,J||this.constructor.typeForProperty(b))}};
N.prototype._propertyToAttribute=function(b,y,J){this.__serializing=!0;J=arguments.length<3?this[b]:J;this._valueToNodeAttribute(this,J,y||this.constructor.attributeNameForProperty(b));this.__serializing=!1};
N.prototype._valueToNodeAttribute=function(b,y,J){y=this._serializeValue(y);if(J==="class"||J==="name"||J==="slot")b=(0,_.kF)(b);y===void 0?b.removeAttribute(J):b.setAttribute(J,y===""&&window.trustedTypes?window.trustedTypes.emptyScript:y)};
N.prototype._serializeValue=function(b){switch(typeof b){case "boolean":return b?"":void 0;default:return b!=null?b.toString():void 0}};
N.prototype._deserializeValue=function(b,y){switch(y){case Boolean:return b!==null;case Number:return Number(b);default:return b}};
return N});var Gsj=0,r3A=[];var YkM=yO(function(q){function N(E){E=Object.getPrototypeOf(E);return E.prototype instanceof J?E:null}
function b(E){if(!E.hasOwnProperty("__ownProperties")){var F=null;if(E.hasOwnProperty("properties")){var R=E.properties;if(R){F={};for(var c in R){var z=R[c];F[c]=typeof z==="function"?{type:z}:z}}}E.__ownProperties=F}return E.__ownProperties}
var y=v9E(q),J=function(){return y.apply(this,arguments)||this};
_.Y(J,y);J.finalize=function(){if(!this.hasOwnProperty("__finalized")){var E=N(this);E&&E.finalize();this.__finalized=!0;this._finalizeClass()}};
J._finalizeClass=function(){var E=b(this);E&&this.createProperties(E)};
J.typeForProperty=function(E){return(E=this._properties[E])&&E.type};
J.prototype._initializeProperties=function(){Gsj++;this.constructor.finalize();y.prototype._initializeProperties.call(this)};
J.prototype.connectedCallback=function(){y.prototype.connectedCallback&&y.prototype.connectedCallback.call(this);this._enableProperties()};
J.prototype.disconnectedCallback=function(){y.prototype.disconnectedCallback&&y.prototype.disconnectedCallback.call(this)};
_.$H.Object.defineProperties(J,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var E=this;if(!this.hasOwnProperty("__observedAttributes")){XDe(this.prototype);var F=this._properties;this.__observedAttributes=F?Object.keys(F).map(function(R){return E.prototype._addPropertyToAttributeMap(R)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var E=N(this);this.__properties=Object.assign({},E&&E._properties,b(this))}return this.__properties}}});
return J});var VPn={},jmd=/-[a-z]/g,x1n=/([A-Z])/g;for(var QUR={},Okj=HTMLElement.prototype;Okj;){for(var wHl=Object.getOwnPropertyNames(Okj),ikR=0;ikR<wHl.length;ikR++)QUR[wHl[ikR]]=!0;Okj=Object.getPrototypeOf(Okj)}var lPl=window.trustedTypes?function(q){return trustedTypes.isHTML(q)||trustedTypes.isScript(q)||trustedTypes.isScriptURL(q)}:function(){return!1},K_E=yO(function(q){var N=v9E(q);
q=function(){return N.apply(this,arguments)||this};
_.Y(q,N);q.createPropertiesForAttributes=function(){for(var b=this.observedAttributes,y=0;y<b.length;y++)this.prototype._createPropertyAccessor(Gh(b[y]))};
q.attributeNameForProperty=function(b){return YF(b)};
q.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);N.prototype._initializeProperties.call(this)};
q.prototype._initializeProtoProperties=function(b){for(var y in b)this._setProperty(y,b[y])};
q.prototype._ensureAttribute=function(b,y){this.hasAttribute(b)||this._valueToNodeAttribute(this,y,b)};
q.prototype._serializeValue=function(b){switch(typeof b){case "object":if(b instanceof Date)return b.toString();if(b){if(lPl(b))return b;try{return JSON.stringify(b)}catch(y){return""}}default:return N.prototype._serializeValue.call(this,b)}};
q.prototype._deserializeValue=function(b,y){switch(y){case Object:try{var J=JSON.parse(b)}catch(E){J=b}break;case Array:try{J=JSON.parse(b)}catch(E){J=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+b)}break;case Date:J=isNaN(b)?String(b):Number(b);J=new Date(J);break;default:J=N.prototype._deserializeValue.call(this,b,y)}return J};
q.prototype._definePropertyAccessor=function(b,y){if(!QUR[b]){var J=this[b];J!==void 0&&(this.__data?this._setPendingProperty(b,J):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[b]=J))}N.prototype._definePropertyAccessor.call(this,b,y)};
q.prototype._hasAccessor=function(b){return this.__dataHasAccessor&&this.__dataHasAccessor[b]};
q.prototype._isPropertyPending=function(b){return!!(this.__dataPending&&b in this.__dataPending)};
return q});var D9x={"dom-if":!0,"dom-repeat":!0},hQT=!1,ksv=!1,U9M=function(){var q=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(N){return N}});
return function(N,b,y){b=b.getAttribute(y);q&&y.startsWith("on-")?N.setAttribute(y,q.createScript(b,y)):N.setAttribute(y,b)}}(),fPJ=yO(function(q){var N=function(){return q.apply(this,arguments)||this};
_.Y(N,q);N._parseTemplate=function(b,y){if(!b._templateInfo){var J=b._templateInfo={};J.nodeInfoList=[];J.nestedTemplate=!!y;J.stripWhiteSpace=y&&y.stripWhiteSpace||b.hasAttribute&&b.hasAttribute("strip-whitespace");this._parseTemplateContent(b,J,{parent:null})}return b._templateInfo};
N._parseTemplateContent=function(b,y,J){return this._parseTemplateNode(b.content,y,J)};
N._parseTemplateNode=function(b,y,J){var E=!1;b.localName!="template"||b.hasAttribute("preserve-content")?b.localName==="slot"&&(y.hasInsertionPoint=!0):E=this._parseTemplateNestedTemplate(b,y,J)||E;if(!hQT){hQT=!0;var F=document.createElement("textarea");F.placeholder="a";ksv=F.placeholder===F.textContent}ksv&&b.localName==="textarea"&&b.placeholder&&b.placeholder===b.textContent&&(b.textContent=null);b.firstChild&&this._parseTemplateChildNodes(b,y,J);b.hasAttributes&&b.hasAttributes()&&(E=this._parseTemplateNodeAttributes(b,
y,J)||E);return E||J.noted};
N._parseTemplateChildNodes=function(b,y,J){if(b.localName!=="script"&&b.localName!=="style")for(var E=b.firstChild,F=0,R;E;E=R){if(E.localName=="template"){var c=E.getAttribute("is");if(c&&D9x[c])for(R=E,R.removeAttribute("is"),E=R.ownerDocument.createElement(c),R.parentNode.replaceChild(E,R),E.appendChild(R);R.attributes.length;)c=R.attributes[0].name,U9M(E,R,c),R.removeAttribute(c)}R=E.nextSibling;if(E.nodeType===Node.TEXT_NODE){for(c=R;c&&c.nodeType===Node.TEXT_NODE;)E.textContent+=c.textContent,
R=c.nextSibling,b.removeChild(c),c=R;if(y.stripWhiteSpace&&!E.textContent.trim()){b.removeChild(E);continue}}c={parentIndex:F,parentInfo:J};this._parseTemplateNode(E,y,c)&&(c.infoIndex=y.nodeInfoList.push(c)-1);E.parentNode&&F++}};
N._parseTemplateNestedTemplate=function(b,y,J){y=this._parseTemplate(b,y);(y.content=b.content.ownerDocument.createDocumentFragment()).appendChild(b.content);J.templateInfo=y;return!0};
N._parseTemplateNodeAttributes=function(b,y,J){for(var E=!1,F=Array.from(b.attributes),R=F.length-1,c;c=F[R];R--)E=this._parseTemplateNodeAttribute(b,y,J,c.name,c.value)||E;return E};
N._parseTemplateNodeAttribute=function(b,y,J,E,F){return E.slice(0,3)==="on-"?(b.removeAttribute(E),J.events=J.events||[],J.events.push({name:E.slice(3),value:F}),!0):E==="id"?(J.id=F,!0):!1};
N._contentForTemplate=function(b){var y=b._templateInfo;return y&&y.content||b.content};
N.prototype._stampTemplate=function(b,y){b&&!b.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(b);y=y||this.constructor._parseTemplate(b);var J=y.nodeInfoList;b=document.importNode(y.content||b.content,!0);b.__noInsertionPoint=!y.hasInsertionPoint;var E=b.nodeList=Array(J.length);b.$={};for(var F=0,R=J.length,c=void 0;F<R&&(c=J[F]);F++){var z=E[F]=vAh(b,c);c.id&&(b.$[c.id]=z);var m=z,r=c,X=y;r.templateInfo&&(m._templateInfo=r.templateInfo,m._parentTemplateInfo=
X);if(c.events&&c.events.length)for(m=0,r=c.events,X=void 0;m<r.length&&(X=r[m]);m++)this._addMethodEventListenerToNode(z,X.name,X.value,this)}return b};
N.prototype._addMethodEventListenerToNode=function(b,y,J,E){J=GKC(E||b,J);this._addEventListenerToNode(b,y,J);return J};
N.prototype._addEventListenerToNode=function(b,y,J){b.addEventListener(y,J)};
N.prototype._removeEventListenerFromNode=function(b,y,J){b.removeEventListener(y,J)};
return N});var Dm=0,fQ=[],CLv={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},IPE=/[A-Z]/,TqR=function(q,N,b,y,J){var E=J?OX(q):q;if(N=N[E])for(E=0;E<N.length;E++){var F=N[E];if(F.info.lastRun!==Dm&&(!J||lIz(q,F.trigger))){F.info.lastRun=Dm;F=F.info;for(var R=b,c=y,z=0,m=R.length-1,r=-1;z<=m;){var X=z+m>>1,V=c.get(R[X].methodInfo)-c.get(F.methodInfo);if(V<0)z=X+1;else if(V>0)m=X-1;else{r=X;break}}r<
0&&(r=m+1);R.splice(r,0,F)}}},LUA=[],sUM=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"),EC=yO(function(q){var N=fPJ(K_E(q));
q=function(){var b=N.call(this)||this;b.__isPropertyEffectsClient=!0;return b};
_.Y(q,N);q.prototype._initializeProperties=function(){N.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};
q.prototype._registerHost=function(){if(Jt.length){var b=Jt[Jt.length-1];b._enqueueClient(this);this.__dataHost=b}};
q.prototype._initializeProtoProperties=function(b){this.__data=Object.create(b);this.__dataPending=Object.create(b);this.__dataOld={}};
q.prototype._initializeInstanceProperties=function(b){var y=this.__readOnly,J;for(J in b)y&&y[J]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[J]=this.__dataPending[J]=b[J])};
q.prototype._addPropertyEffect=function(b,y,J){this._createPropertyAccessor(b,y=="__readOnly");var E=i0z(this,y,!0)[b];E||(E=this[y][b]=[]);E.push(J)};
q.prototype._removePropertyEffect=function(b,y,J){b=i0z(this,y,!0)[b];J=b.indexOf(J);J>=0&&b.splice(J,1)};
q.prototype._hasPropertyEffect=function(b,y){y=this[y];return!(!y||!y[b])};
q.prototype._hasReadOnlyEffect=function(b){return this._hasPropertyEffect(b,"__readOnly")};
q.prototype._hasNotifyEffect=function(b){return this._hasPropertyEffect(b,"__notifyEffects")};
q.prototype._hasReflectEffect=function(b){return this._hasPropertyEffect(b,"__reflectEffects")};
q.prototype._hasComputedEffect=function(b){return this._hasPropertyEffect(b,"__computeEffects")};
q.prototype._setPendingPropertyOrPath=function(b,y,J,E){if(E||OX(Array.isArray(b)?b[0]:b)!==b){if(!E&&(E=KQ(this,b),b=wDe(this,b,y),!b||!N.prototype._shouldPropertyChange.call(this,b,y,E)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(b,y,J)){if(J=this.__dataLinkedPaths)for(var F in J)E=J[F],wI(F,b)?(E=i_(F,E,b),this._setPendingPropertyOrPath(E,y,!0,!0)):wI(E,b)&&(E=i_(E,F,b),this._setPendingPropertyOrPath(E,y,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[b])return this._setPendingProperty(b,
y,J);this[b]=y}return!1};
q.prototype._setUnmanagedPropertyToNode=function(b,y,J){if(J!==b[y]||typeof J=="object")y==="className"&&(b=(0,_.kF)(b)),b[y]=J};
q.prototype._setPendingProperty=function(b,y,J){var E=this.__dataHasPaths&&QH(b);if(this._shouldPropertyChange(b,y,(E?this.__dataTemp:this.__data)[b])){this.__dataPending||(this.__dataPending={},this.__dataOld={});b in this.__dataOld||(this.__dataOld[b]=this.__data[b]);E?this.__dataTemp[b]=y:this.__data[b]=y;this.__dataPending[b]=y;if(E||this.__notifyEffects&&this.__notifyEffects[b])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[b]=J;return!0}return!1};
q.prototype._setProperty=function(b,y){this._setPendingProperty(b,y,!0)&&this._invalidateProperties()};
q.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
q.prototype._enqueueClient=function(b){this.__dataPendingClients=this.__dataPendingClients||[];b!==this&&this.__dataPendingClients.push(b)};
q.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
q.prototype.__enableOrFlushClients=function(){var b=this.__dataPendingClients;if(b){this.__dataPendingClients=null;for(var y=0;y<b.length;y++){var J=b[y];J.__dataEnabled?J.__dataPending&&J._flushProperties():J._enableProperties()}}};
q.prototype._readyClients=function(){this.__enableOrFlushClients()};
q.prototype.setProperties=function(b,y){for(var J in b)!y&&this.__readOnly&&this.__readOnly[J]||this._setPendingPropertyOrPath(J,b[J],!0);this._invalidateProperties()};
q.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
q.prototype._propertiesChanged=function(b,y,J){b=this.__dataHasPaths;this.__dataHasPaths=!1;var E;if(E=this.__computeEffects)if(zQM){Dm++;var F=fIC(this),R=[],c;for(c in y)TqR(c,E,R,F,b);for(;c=R.shift();)IIz(this,"",y,J,c)&&TqR(c.methodInfo,E,R,F,b);Object.assign(J,this.__dataOld);Object.assign(y,this.__dataPending);this.__dataPending=null}else for(F=y;hD(this,E,F,J,b);)Object.assign(J,this.__dataOld),Object.assign(y,this.__dataPending),F=this.__dataPending,this.__dataPending=null;E=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(y,J,b);this._flushClients();hD(this,this.__reflectEffects,y,J,b);hD(this,this.__observeEffects,y,J,b);if(E){F=this.__notifyEffects;R=Dm++;for(var z in E)if(E[z]){if(c=F){var m=F;c=R;var r=z,X=y,V=J,G=b,w=!1,D=G?OX(r):r;if(m=m[D]){D=0;for(var k=m.length,f=void 0;D<k&&(f=m[D]);D++)f.info&&f.info.lastRun===c||G&&!lIz(r,f.trigger)||(f.info&&(f.info.lastRun=c),f.fn(this,r,X,V,f.info,G,void 0),w=!0)}c=w}if(c)var L=!0;else{if(c=b)c=z,r=y,X=OX(c),X!==
c?(X=YF(X)+"-changed",D1C(this,X,r[c],c),c=!0):c=!1;c&&(L=!0)}}var S;L&&(S=this.__dataHost)&&S._invalidateProperties&&S._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
q.prototype._propagatePropertyChanges=function(b,y,J){this.__propagateEffects&&hD(this,this.__propagateEffects,b,y,J);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,b,y,J)};
q.prototype._runEffectsForTemplate=function(b,y,J,E){var F=this,R=function(c,z){hD(F,b.propertyEffects,c,J,z,b.nodeList);for(var m=b.firstChild;m;m=m.nextSibling)F._runEffectsForTemplate(m,c,J,z)};
b.runEffects?b.runEffects(R,y,E):R(y,E)};
q.prototype.linkPaths=function(b,y){b=l_(b);y=l_(y);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[b]=y};
q.prototype.unlinkPaths=function(b){b=l_(b);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[b]};
q.prototype.notifySplices=function(b,y){var J={path:""};b=KQ(this,b,J);oAC(this,b,J.path,y)};
q.prototype.get=function(b,y){return KQ(y||this,b)};
q.prototype.set=function(b,y,J){J?wDe(J,b,y):this.__readOnly&&this.__readOnly[b]||this._setPendingPropertyOrPath(b,y,!0)&&this._invalidateProperties()};
q.prototype.push=function(b){var y=_.MB.apply(1,arguments),J={path:""},E=KQ(this,b,J),F=E.length,R=E.push.apply(E,_.a9(y));y.length&&IC(this,E,J.path,F,y.length,[]);return R};
q.prototype.pop=function(b){var y={path:""};b=KQ(this,b,y);var J=!!b.length,E=b.pop();J&&IC(this,b,y.path,b.length,0,[E]);return E};
q.prototype.splice=function(b,y,J){var E=_.MB.apply(3,arguments),F={path:""},R=KQ(this,b,F);y<0?y=R.length-Math.floor(-y):y&&(y=Math.floor(y));var c=arguments.length===2?R.splice(y):R.splice.apply(R,[y,J].concat(_.a9(E)));(E.length||c.length)&&IC(this,R,F.path,y,E.length,c);return c};
q.prototype.shift=function(b){var y={path:""};b=KQ(this,b,y);var J=!!b.length,E=b.shift();J&&IC(this,b,y.path,0,0,[E]);return E};
q.prototype.unshift=function(b){var y=_.MB.apply(1,arguments),J={path:""},E=KQ(this,b,J),F=E.unshift.apply(E,_.a9(y));y.length&&IC(this,E,J.path,0,y.length,[]);return F};
q.prototype.notifyPath=function(b,y){if(arguments.length==1){var J={path:""};y=KQ(this,b,J);J=J.path}else J=Array.isArray(b)?l_(b):b;this._setPendingPropertyOrPath(J,y,!0,!0)&&this._invalidateProperties()};
q.prototype._createReadOnlyProperty=function(b,y){this._addPropertyEffect(b,"__readOnly");y&&(this["_set"+(b[0].toUpperCase()+b.substring(1))]=function(J){this._setProperty(b,J)})};
q.prototype._createPropertyObserver=function(b,y,J){var E={property:b,method:y,dynamicFn:!!J};this._addPropertyEffect(b,"__observeEffects",{fn:KUJ,info:E,trigger:{name:b}});J&&this._addPropertyEffect(y,"__observeEffects",{fn:KUJ,info:E,trigger:{name:y}})};
q.prototype._createMethodObserver=function(b,y){var J=PkJ(b);if(!J)throw Error("Ed`"+b);SAR(this,J,"__observeEffects",Ckn,null,y)};
q.prototype._createNotifyingProperty=function(b){this._addPropertyEffect(b,"__notifyEffects",{fn:hNC,info:{eventName:YF(b)+"-changed",property:b}})};
q.prototype._createReflectedProperty=function(b){var y=this.constructor.attributeNameForProperty(b);y[0]==="-"?console.warn("Property "+b+" cannot be reflected to attribute "+y+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(b,"__reflectEffects",{fn:kKn,info:{attrName:y}})};
q.prototype._createComputedProperty=function(b,y,J){var E=PkJ(y);if(!E)throw Error("Fd`"+y);y=SAR(this,E,"__computeEffects",IIz,b,J);i0z(this,"__computeInfo")[b]=y};
q.prototype._marshalArgs=function(b,y,J){for(var E=this.__data,F=[],R=0,c=b.length;R<c;R++){var z=b[R],m=z.name,r=z.structured,X=z.wildcard,V=z.value;z.literal||(X?(z=wI(m,y),r=MPJ(E,J,z?y:m),V={path:z?y:m,value:r,base:z?KQ(E,m):r}):V=r?MPJ(E,J,m):E[m]);if(CQ&&!this._overrideLegacyUndefined&&V===void 0&&b.length>1)return fQ;F[R]=V}return F};
q.addPropertyEffect=function(b,y,J){this.prototype._addPropertyEffect(b,y,J)};
q.createPropertyObserver=function(b,y,J){this.prototype._createPropertyObserver(b,y,J)};
q.createMethodObserver=function(b,y){this.prototype._createMethodObserver(b,y)};
q.createNotifyingProperty=function(b){this.prototype._createNotifyingProperty(b)};
q.createReadOnlyProperty=function(b,y){this.prototype._createReadOnlyProperty(b,y)};
q.createReflectedProperty=function(b){this.prototype._createReflectedProperty(b)};
q.createComputedProperty=function(b,y,J){this.prototype._createComputedProperty(b,y,J)};
q.bindTemplate=function(b){return this.prototype._bindTemplate(b)};
q.prototype._bindTemplate=function(b,y){var J=this.constructor._parseTemplate(b),E=this.__preBoundTemplateInfo==J;if(!E)for(var F in J.propertyEffects)this._createPropertyAccessor(F);y?(J=Object.create(J),J.wasPreBound=E,this.__templateInfo?(b=b._parentTemplateInfo||this.__templateInfo,y=b.lastChild,J.parent=b,b.lastChild=J,(J.previousSibling=y)?y.nextSibling=J:b.firstChild=J):this.__templateInfo=J):this.__preBoundTemplateInfo=J;return J};
q._addTemplatePropertyEffect=function(b,y,J){(b.hostProps=b.hostProps||{})[y]=!0;b=b.propertyEffects=b.propertyEffects||{};(b[y]=b[y]||[]).push(J)};
q.prototype._stampTemplate=function(b,y){y=y||this._bindTemplate(b,!0);Jt.push(this);b=N.prototype._stampTemplate.call(this,b,y);Jt.pop();y.nodeList=b.nodeList;if(!y.wasPreBound)for(var J=y.childNodes=[],E=b.firstChild;E;E=E.nextSibling)J.push(E);b.templateInfo=y;J=y.nodeList;E=y.nodeInfoList;if(E.length)for(var F=0;F<E.length;F++){var R=J[F],c=E[F].bindings;if(c)for(var z=0;z<c.length;z++){var m=c[z],r=R,X=m;if(X.isCompound){for(var V=r.__dataCompoundStorage||(r.__dataCompoundStorage={}),G=X.parts,
w=Array(G.length),D=0;D<G.length;D++)w[D]=G[D].literal;G=X.target;V[G]=w;X.literal&&X.kind=="property"&&(G==="className"&&(r=(0,_.kF)(r)),r[G]=X.literal)}aIA(R,this,m)}R.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(y,this.__data,null,!1),this._flushClients());return b};
q.prototype._removeBoundDom=function(b){b=b.templateInfo;var y=b.previousSibling,J=b.nextSibling,E=b.parent;y?y.nextSibling=J:E&&(E.firstChild=J);J?J.previousSibling=y:E&&(E.lastChild=y);b.nextSibling=b.previousSibling=null;b=b.childNodes;for(y=0;y<b.length;y++)J=b[y],(0,_.kF)((0,_.kF)(J).parentNode).removeChild(J)};
q._parseTemplateNode=function(b,y,J){var E=N._parseTemplateNode.call(this,b,y,J);if(b.nodeType===Node.TEXT_NODE){var F=this._parseBindings(b.textContent,y);F&&(b.textContent=WUA(F)||" ",nAn(this,y,J,"text","textContent",F),E=!0)}return E};
q._parseTemplateNodeAttribute=function(b,y,J,E,F){var R=this._parseBindings(F,y);if(R){F=E;var c="property";IPE.test(E)?c="attribute":E[E.length-1]=="$"&&(E=E.slice(0,-1),c="attribute");var z=WUA(R);z&&c=="attribute"&&(E=="class"&&b.hasAttribute("class")&&(z+=" "+b.getAttribute(E)),b.setAttribute(E,z));c=="attribute"&&F=="disable-upgrade$"&&b.setAttribute(E,"");b.localName==="input"&&F==="value"&&b.setAttribute(F,"");b.removeAttribute(F);c==="property"&&(E=Gh(E));nAn(this,y,J,c,E,R,z);return!0}return N._parseTemplateNodeAttribute.call(this,
b,y,J,E,F)};
q._parseTemplateNestedTemplate=function(b,y,J){var E=N._parseTemplateNestedTemplate.call(this,b,y,J),F=b.parentNode,R=J.templateInfo,c=F.localName==="dom-if",z=F.localName==="dom-repeat";B7&&(c||z)&&(F.removeChild(b),J=J.parentInfo,J.templateInfo=R,J.noted=!0,E=!1);b=R.hostProps;if(H7&&c)b&&(y.hostProps=Object.assign(y.hostProps||{},b),B7||(J.parentInfo.noted=!0));else for(var m in b)nAn(this,y,J,"property","_host_"+m,[{mode:"{",source:m,dependencies:[m],hostProp:!0}]);return E};
q._parseBindings=function(b,y){for(var J=[],E=0,F;(F=sUM.exec(b))!==null;){F.index>E&&J.push({literal:b.slice(E,F.index)});E=F[1][0];var R=!!F[2];F=F[3].trim();var c=!1,z="",m=-1;E=="{"&&(m=F.indexOf("::"))>0&&(z=F.substring(m+2),F=F.substring(0,m),c=!0);m=PkJ(F);var r=[];if(m){var X=m,V=X.args;X=X.methodName;for(var G=0;G<V.length;G++){var w=V[G];w.literal||r.push(w)}if((V=y.dynamicFns)&&V[X]||m.static)r.push(X),m.dynamicFn=!0}else r.push(F);J.push({source:F,mode:E,negate:R,customEvent:c,signature:m,
dependencies:r,event:z});E=sUM.lastIndex}E&&E<b.length&&(b=b.substring(E))&&J.push({literal:b});return J.length?J:null};
q._evaluateBinding=function(b,y,J,E,F,R){b=y.signature?Ckn(b,J,E,F,y.signature):J!=y.source?KQ(b,y.source):R&&QH(J)?KQ(b,J):b.__data[J];y.negate&&(b=!b);return b};
_.$H.Object.defineProperties(q.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return CLv}}});
return q}),Jt=[];var n9x=window.ShadyCSS&&window.ShadyCSS.cssBuild,gk=yO(function(q){function N(y,J,E,F){if(!n9x){for(var R=J.content.querySelectorAll("style"),c=H0Z(J),z=qdJ(E),m=J.content.firstElementChild,r=0;r<z.length;r++){var X=z[r];X.textContent=y._processStyleText(X.textContent,F);J.content.insertBefore(X,m)}for(m=z=0;m<c.length;m++)r=c[m],X=R[z],X!==r?(r=r.cloneNode(!0),X.parentNode.insertBefore(r,X)):z++,r.textContent=y._processStyleText(r.textContent,F)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(J,
E);if(tlq&&n9x&&RQj&&(J=J.content.querySelectorAll("style"))){var V="";Array.from(J).forEach(function(G){V+=G.textContent;G.parentNode.removeChild(G)});
y._styleSheet=new CSSStyleSheet;y._styleSheet.replaceSync(V)}}
var b=YkM(EC(q));q=function(){return b.call(this)||this};
_.Y(q,b);q._finalizeClass=function(){b._finalizeClass.call(this);var y;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(y=this.__ownObservers)&&this.createObservers(y,this._properties);this._prepareTemplate()};
q._prepareTemplate=function(){var y=this.template;y&&(typeof y==="string"?(console.error("template getter must return HTMLTemplateElement"),y=null):BK||(y=y.cloneNode(!0)));this.prototype._template=y};
q.createProperties=function(y){for(var J in y){var E=this.prototype,F=J,R=y[J],c=y;R.computed&&(R.readOnly=!0);R.computed&&(E._hasReadOnlyEffect(F)?console.warn("Cannot redefine computed property '"+F+"'."):E._createComputedProperty(F,R.computed,c));R.readOnly&&!E._hasReadOnlyEffect(F)?E._createReadOnlyProperty(F,!R.computed):R.readOnly===!1&&E._hasReadOnlyEffect(F)&&console.warn("Cannot make readOnly property '"+F+"' non-readOnly.");R.reflectToAttribute&&!E._hasReflectEffect(F)?E._createReflectedProperty(F):
R.reflectToAttribute===!1&&E._hasReflectEffect(F)&&console.warn("Cannot make reflected property '"+F+"' non-reflected.");R.notify&&!E._hasNotifyEffect(F)?E._createNotifyingProperty(F):R.notify===!1&&E._hasNotifyEffect(F)&&console.warn("Cannot make notify property '"+F+"' non-notify.");R.observer&&E._createPropertyObserver(F,R.observer,c[R.observer]);E._addPropertyToAttributeMap(F)}};
q.createObservers=function(y,J){for(var E=this.prototype,F=0;F<y.length;F++)E._createMethodObserver(y[F],J)};
q.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);b.prototype._initializeProperties.call(this);this.rootPath=d91;this.importPath=this.constructor.importPath;var y=this.constructor;if(!y.hasOwnProperty("__propertyDefaults")){y.__propertyDefaults=null;var J=y._properties,E;for(E in J){var F=J[E];"value"in F&&(y.__propertyDefaults=y.__propertyDefaults||{},y.__propertyDefaults[E]=F)}}if(y=y.__propertyDefaults)for(var R in y)J=y[R],
this._canApplyPropertyDefault(R)&&(J=typeof J.value=="function"?J.value.call(this):J.value,this._hasAccessor(R)?this._setPendingProperty(R,J,!0):this[R]=J)};
q.prototype._canApplyPropertyDefault=function(y){return!this.hasOwnProperty(y)};
q._processStyleText=function(y,J){return uOD(y,J)};
q._finalizeTemplate=function(y){var J=this.prototype._template;if(J&&!J.__polymerFinalized){J.__polymerFinalized=!0;var E=this.importPath;E=E?_.xF(E):"";N(this,J,y,E);this.prototype._bindTemplate(J)}};
q.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);b.prototype.connectedCallback.call(this)};
q.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);b.prototype.ready.call(this)};
q.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));b.prototype._readyClients.call(this)};
q.prototype._attachDom=function(y){var J=(0,_.kF)(this);if(J.attachShadow)return y?(J.shadowRoot||(J.attachShadow({mode:"open",shadyUpgradeFragment:y}),J.shadowRoot.appendChild(y),this.constructor._styleSheet&&(J.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),uYT&&window.ShadyDOM&&window.ShadyDOM.flushInitial(J.shadowRoot),J.shadowRoot):null;throw Error("Hd");};
q.prototype.updateStyles=function(y){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,y)};
q.prototype.resolveUrl=function(y,J){!J&&this.importPath&&(J=_.xF(this.importPath));return _.xF(y,J)};
q._parseTemplateContent=function(y,J,E){J.dynamicFns=J.dynamicFns||this._properties;return b._parseTemplateContent.call(this,y,J,E)};
q._addTemplatePropertyEffect=function(y,J,E){!J9||J in this._properties||E.info.part.signature&&E.info.part.signature.static||E.info.part.hostProp||y.nestedTemplate||console.warn("Property '"+J+"' used in template but not declared in 'properties'; attribute will not be observed.");return b._addTemplatePropertyEffect.call(this,y,J,E)};
_.$H.Object.defineProperties(q,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var y=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof y==="function"&&(y=y());if(y===void 0){if(y=this.hasOwnProperty("is")){y=this.is;var J=null;if(y&&(!E7||cmo)&&(J=Th.import(y,"template"),E7&&!J))throw Error("Gd`"+y);y=J}y=y||Object.getPrototypeOf(this.prototype).constructor.template}this._template=y}return this._template},
set:function(y){this._template=y}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var y=this.importMeta;y?this._importPath=zNz(y.url):this._importPath=(y=Th.import(this.is))&&y.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return q});var aP4=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(q){return q}}),ZNn=function(q,N){Sk1(q,N);
this.value=N.reduce(function(b,y,J){return b+Fvn(y)+q[J+1]},q[0]).toString()},Sk1;
ZNn.prototype.toString=function(){return this.value};
_.W_l=function(q){var N=_.MB.apply(1,arguments);Sk1(q,N);var b=document.createElement("template");N=N.reduce(function(y,J,E){if(J instanceof HTMLTemplateElement)J=J.innerHTML;else if(J instanceof ZNn)J=Fvn(J);else throw Error("Jd`"+J);return y+J+q[E+1]},q[0]);
aP4&&(N=aP4.createHTML(N));b.innerHTML=N;return b};
Sk1=function(q,N){if(!Array.isArray(q)||!Array.isArray(q.raw)||N.length!==q.length-1)throw new TypeError("Kd");};var Zh=gk(HTMLElement);var L_v=yO(function(q){var N=gk(q);q=function(){var b=N.call(this)||this;b.__lastItems=null;b.__lastMulti=null;b.__selectedMap=null;return b};
_.Y(q,N);q.prototype.__updateSelection=function(b,y){var J=y.path;J=="items"?(y=y.base||[],J=this.__lastItems,b!==this.__lastMulti&&this.clearSelection(),J&&(J=gJR(y,J),this.__applySplices(J)),this.__lastItems=y,this.__lastMulti=b):y.path=="items.splices"?this.__applySplices(y.value.indexSplices):(b=J.slice(6),y=parseInt(b,10),b.indexOf(".")<0&&b==y&&this.__deselectChangedIdx(y))};
q.prototype.__applySplices=function(b){for(var y=this,J=this.__selectedMap,E={},F=0;F<b.length;E={s$jscomp$109:void 0},F++){E.s$jscomp$109=b[F];J.forEach(function(m){return function(r,X){r<m.s$jscomp$109.index||(r>=m.s$jscomp$109.index+m.s$jscomp$109.removed.length?J.set(X,r+m.s$jscomp$109.addedCount-m.s$jscomp$109.removed.length):J.set(X,-1))}}(E));
for(var R=0;R<E.s$jscomp$109.addedCount;R++){var c=E.s$jscomp$109.index+R;J.has(this.items[c])&&J.set(this.items[c],c)}}this.__updateLinks();var z=0;J.forEach(function(m,r){m<0?(y.multi?y.splice("selected",z,1):y.selected=y.selectedItem=null,J.delete(r)):z++})};
q.prototype.__updateLinks=function(){var b=this;this.__dataLinkedPaths={};if(this.multi){var y=0;this.__selectedMap.forEach(function(J){J>=0&&b.linkPaths("items."+J,"selected."+y++)})}else this.__selectedMap.forEach(function(J){b.linkPaths("selected","items."+J);
b.linkPaths("selectedItem","items."+J)})};
q.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
q.prototype.isSelected=function(b){return this.__selectedMap.has(b)};
q.prototype.isIndexSelected=function(b){return this.isSelected(this.items[b])};
q.prototype.__deselectChangedIdx=function(b){var y=this,J=this.__selectedIndexForItemIndex(b);if(J>=0){var E=0;this.__selectedMap.forEach(function(F,R){J==E++&&y.deselect(R)})}};
q.prototype.__selectedIndexForItemIndex=function(b){if(b=this.__dataLinkedPaths["items."+b])return parseInt(b.slice(9),10)};
q.prototype.deselect=function(b){var y=this.__selectedMap.get(b);if(y>=0){this.__selectedMap.delete(b);var J;this.multi&&(J=this.__selectedIndexForItemIndex(y));this.__updateLinks();this.multi?this.splice("selected",J,1):this.selected=this.selectedItem=null}};
q.prototype.deselectIndex=function(b){this.deselect(this.items[b])};
q.prototype.select=function(b){this.selectIndex(this.items.indexOf(b))};
q.prototype.selectIndex=function(b){var y=this.items[b];this.isSelected(y)?this.toggle&&this.deselectIndex(b):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(y,b),this.__updateLinks(),this.multi?this.push("selected",y):this.selected=this.selectedItem=y)};
_.$H.Object.defineProperties(q,{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 q}),pHx=L_v(Zh),FJ=function(){return pHx.apply(this,arguments)||this};
_.Y(FJ,pHx);_.$H.Object.defineProperties(FJ,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(FJ.is,FJ);var PLx=window.Polymer;window.Polymer=function(q){return window.Polymer._polymerFn(q)};
PLx&&Object.assign(Polymer,PLx);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:uOD,resolveUrl:_.xF,pathFromUrl:zNz};Polymer.DomModule=Th;Polymer.Async={timeOut:_.bW,animationFrame:_.m6,idlePeriod:jUj,microTask:AD};Polymer.dedupingMixin=yO;Polymer.wrap=_.kF;Polymer.PropertiesChanged=v9E;Polymer.telemetry={instanceCount:Gsj,incrementInstanceCount:function(){Gsj++},
registrations:r3A,register:XDe,dumpRegistrations:function(){r3A.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=YkM;Polymer.CaseMap={dashToCamelCase:Gh,camelToDashCase:YF};Polymer.PropertyAccessors=K_E;Polymer.TemplateStamp=fPJ;Polymer.Path={isPath:QH,root:OX,isAncestor:YAR,isDescendant:wI,translate:i_,matches:Qmu,normalize:l_,split:O0Z,get:KQ,set:wDe,isDeep:QH};Polymer.Settings={useShadow:HK,useNativeCSSProperties:JmT,useNativeCustomElements:E9o,get rootPath(){return d91},setRootPath:function(q){d91=q},
get sanitizeDOMValue(){return UX},setSanitizeDOMValue:function(q){UX=q},
get passiveTouchGestures(){return x$A},setPassiveTouchGestures:function(q){x$A=q},
get strictTemplatePolicy(){return E7},setStrictTemplatePolicy:function(q){E7=q},
get allowTemplateFromDomModule(){return cmo},setAllowTemplateFromDomModule:function(q){cmo=q},
get legacyOptimizations(){return BK},setLegacyOptimizations:function(q){BK=q},
get syncInitialRender(){return uYT},setSyncInitialRender:function(q){uYT=q},
get legacyUndefined(){return CQ},setLegacyUndefined:function(q){CQ=q},
get legacyWarnings(){return J9},setLegacyWarnings:function(q){J9=q},
get orderedComputed(){return zQM},setOrderedComputed:function(q){zQM=q},
get fastDomIf(){return H7},setFastDomIf:function(q){H7=q},
get removeNestedTemplates(){return B7},setRemoveNestedTemplates:function(q){B7=q},
get suppressTemplateNotifications(){return q2},setSuppressTemplateNotifications:q2};Polymer.rootPath!==void 0&&(d91=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(UX=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(x$A=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(E7=Polymer.strictTemplatePolicy);cmo=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(BK=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(uYT=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(CQ=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(J9=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(zQM=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(H7=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(B7=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(q2=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return UX},
set:function(q){UX=q}});Polymer.PropertyEffects=EC;Polymer.StyleGather={stylesFromModules:BRe,stylesFromModule:eNC,stylesFromTemplate:H0Z,stylesFromModuleImports:qdJ,cssFromModules:bNn,cssFromModule:NhR,cssFromTemplate:y7Z,cssFromModuleImports:function(q){return(q=Th.import(q))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(q):""}};Polymer.ElementMixin=gk;Polymer.updateStyles=function(q){window.ShadyCSS&&window.ShadyCSS.styleDocument(q)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:gJR};Polymer.html=_.W_l;Polymer.htmlLiteral=function(q){return new ZNn(q,_.MB.apply(1,arguments))};Polymer.Element=Zh;Polymer.ArraySelectorMixin=L_v;Polymer.ArraySelector=FJ;var Ml1=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,o9F=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,asA=/@media\s(.*)/;var u_C=null,c7A=window.HTMLImports&&window.HTMLImports.whenReady||null,zfZ;var Am1=null,RN=null,dk=function(){this.customStyles=[];this.enqueued=!1;$$D(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},eQF=function(q){!q.enqueued&&RN&&(q.enqueued=!0,$$D(RN))};
dk.prototype.addCustomStyle=function(q){q.__seenByShadyCSS||(q.__seenByShadyCSS=!0,this.customStyles.push(q),eQF(this))};
dk.prototype.getStyleForCustomStyle=function(q){if(q.__shadyCSSCachedStyle)return q.__shadyCSSCachedStyle;var N;q.getStyle?N=q.getStyle():N=q;return N};
dk.prototype.processStyles=function(){for(var q=this.customStyles,N=0;N<q.length;N++){var b=q[N];if(!b.__shadyCSSCachedStyle){var y=this.getStyleForCustomStyle(b);y&&(y=y.__appliedElement||y,Am1&&Am1(y),b.__shadyCSSCachedStyle=y)}}return q};
dk.prototype.addCustomStyle=dk.prototype.addCustomStyle;dk.prototype.getStyleForCustomStyle=dk.prototype.getStyleForCustomStyle;dk.prototype.processStyles=dk.prototype.processStyles;Object.defineProperties(dk.prototype,{transformCallback:{get:function(){return Am1},
set:function(q){Am1=q}},
validateCallback:{get:function(){return RN},
set:function(q){var N=!1;RN||(N=!0);RN=q;N&&eQF(this)}}});var m$d=!(window.ShadyDOM&&window.ShadyDOM.inUse),taJ,zj;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(zj=window.ShadyCSS.cssBuild);var Bqx=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?taJ=window.ShadyCSS.nativeCss:window.ShadyCSS?(r7d(window.ShadyCSS),window.ShadyCSS=void 0):r7d(window.WebComponents&&window.WebComponents.flags);var TMJ=taJ;var Hkl=new dk;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(q,N){Hkl.processStyles();RfJ(q,N)},
styleElement:function(){Hkl.processStyles()},
styleDocument:function(q){Hkl.processStyles();RfJ(document.body,q)},
getComputedStyleValue:function(q,N){return d$d(q,N)},
flushCustomStyles:function(){},
nativeCss:TMJ,nativeShadow:m$d,cssBuild:zj,disableRuntime:Bqx});window.ShadyCSS.CustomStyleInterface=Hkl;var q_E=window.ShadyCSS.CustomStyleInterface,ct=function(){var q=HTMLElement.call(this)||this;q._style=null;q_E.addCustomStyle(q);return q};
_.Y(ct,HTMLElement);ct.prototype.getStyle=function(){if(this._style)return this._style;var q=this.querySelector("style");if(!q)return null;this._style=q;var N=q.getAttribute("include");N&&(q.removeAttribute("include"),q.textContent=bNn(N)+q.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
ct.prototype.getStyle=ct.prototype.getStyle;window.customElements.define("custom-style",ct);Polymer.CustomStyle=ct;var uW=function(){this._timer=this._callback=this._asyncModule=null},zq,btM;
uW.prototype.setConfig=function(q,N){var b=this;this._asyncModule=q;this._callback=N;this._timer=this._asyncModule.run(function(){b._timer=null;zq.delete(b);b._callback()})};
uW.prototype.cancel=function(){this.isActive()&&(Nao(this),zq.delete(this))};
var Nao=function(q){q.isActive()&&(q._asyncModule.cancel(q._timer),q._timer=null)};
uW.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
uW.prototype.isActive=function(){return this._timer!=null};
_.$c=function(q,N,b){q instanceof uW?Nao(q):q=new uW;q.setConfig(N,b);return q};
zq=new Set;_.tt=function(q){zq.add(q)};
btM=function(){var q=!!zq.size;zq.forEach(function(N){try{N.flush()}catch(b){setTimeout(function(){throw b;})}});
return q};var Van=typeof document.head.style.touchAction==="string",XVR=["mousedown","mousemove","mouseup","click"],iNn=[0,1,4,2],ynx;try{ynx=(new MouseEvent("test",{buttons:1})).buttons===1}catch(q){ynx=!1}var wVA=ynx,jKR=!1;(function(){try{var q=Object.defineProperty({},"passive",{get:function(){jKR=!0}});
window.addEventListener("test",null,q);window.removeEventListener("test",null,q)}catch(N){}})();
var Gte=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),YdJ=[],JnM={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},nJZ={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},QKn=function(q){var N=q.sourceCapabilities;if(!N||N.firesTouchEvents)if(q.__polymerGesturesHandled={skip:!0},q.type==="click"){N=!1;for(var b=hfJ(q),y=0;y<b.length;y++){if(b[y].nodeType===Node.ELEMENT_NODE)if(b[y].localName==="label")YdJ.push(b[y]);
else if(JnM[b[y].localName]){var J=b[y];var E=Array.prototype.slice.call(J.labels||[]);if(!E.length){E=[];try{var F=J.getRootNode();if(J.id){var R=F.querySelectorAll("label[for = '"+J.id+"']");for(J=0;J<R.length;J++)E.push(R[J])}}catch(c){}}for(J=0;J<E.length;J++)N=N||YdJ.indexOf(E[J])>-1}if(b[y]===E01)return}N||(q.preventDefault(),q.stopPropagation())}},E01=null,mS=null,U$n=0,fQd=0,ktn=-1,C9n=!1;
document.addEventListener("touchend",function(q){mS||ONn(!0);E01=hfJ(q)[0];mS=_.$c(mS,_.bW.after(2500),function(){ONn();mS=E01=null})},jKR?{passive:!0}:!1);
var hfJ=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(q){return q.composedPath&&q.composedPath()||[]},LQ={},S6=[];
IQR({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){aC(this.info)},
mousedown:function(q){if(nQ(q)){var N=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q),b=this;Kvn(this.info,function(y){nQ(y)||(e6("up",N,y),aC(b.info))},function(y){nQ(y)&&e6("up",N,y);
aC(b.info)});
e6("down",N,q)}},
touchstart:function(q){e6("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q),q.changedTouches[0],q)},
touchend:function(q){e6("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q),q.changedTouches[0],q)}});
IQR({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(q){this.moves.length>2&&this.moves.shift();this.moves.push(q)},
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;aC(this.info)},
mousedown:function(q){if(nQ(q)){var N=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q),b=this,y=function(J){var E=J.clientX,F=J.clientY;ThZ(b.info,E,F)&&(b.info.state=b.info.started?J.type==="mouseup"?"end":"track":"start",b.info.state==="start"&&WK("tap"),b.info.addMove({x:E,y:F}),nQ(J)||(b.info.state="end",aC(b.info)),N&&sKZ(b.info,N,J),b.info.started=!0)};
Kvn(this.info,y,function(J){b.info.started&&y(J);aC(b.info)});
this.info.x=q.clientX;this.info.y=q.clientY}},
touchstart:function(q){q=q.changedTouches[0];this.info.x=q.clientX;this.info.y=q.clientY},
touchmove:function(q){var N=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q);q=q.changedTouches[0];var b=q.clientX,y=q.clientY;ThZ(this.info,b,y)&&(this.info.state==="start"&&WK("tap"),this.info.addMove({x:b,y:y}),sKZ(this.info,N,q),this.info.state="track",this.info.started=!0)},
touchend:function(q){var N=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q);q=q.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:q.clientX,y:q.clientY}),sKZ(this.info,N,q))}});
IQR({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(q){nQ(q)&&(this.info.x=q.clientX,this.info.y=q.clientY)},
click:function(q){nQ(q)&&aQd(this.info,q)},
touchstart:function(q){q=q.changedTouches[0];this.info.x=q.clientX;this.info.y=q.clientY},
touchend:function(q){aQd(this.info,q.changedTouches[0],q)}});var g01=yO(function(q){var N=function(){return q.apply(this,arguments)||this};
_.Y(N,q);N.prototype._addEventListenerToNode=function(b,y,J){PK(b,y,J)||q.prototype._addEventListenerToNode.call(this,b,y,J)};
N.prototype._removeEventListenerFromNode=function(b,y,J){Mr(b,y,J)||q.prototype._removeEventListenerFromNode.call(this,b,y,J)};
return N});var rk=yO(function(q){var N=function(){return q.apply(this,arguments)||this};
_.Y(N,q);N.prototype._shouldPropertyChange=function(b,y,J){return SdA(this,b,y,J,!0)};
return N}),ZtR=yO(function(q){var N=function(){return q.apply(this,arguments)||this};
_.Y(N,q);N.prototype._shouldPropertyChange=function(b,y,J){return SdA(this,b,y,J,this.mutableData)};
_.$H.Object.defineProperties(N,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return N});
rk._mutablePropertyChange=SdA;var WvA=!1;var F61=g01(ZtR(EC(HTMLElement))),XJ=function(){var q=F61.call(this)||this;if(E7)throw Error("Md");q.root=null;q.$=null;q.__children=null;return q};
_.Y(XJ,F61);_.g=XJ.prototype;_.g.attributeChangedCallback=function(){this.mutableData=!0};
_.g.connectedCallback=function(){Lvu()||(this.style.display="none");this.render()};
_.g.disconnectedCallback=function(){this.__removeChildren()};
_.g.__insertChildren=function(){(0,_.kF)((0,_.kF)(this).parentNode).insertBefore(this.root,this)};
_.g.__removeChildren=function(){if(this.__children)for(var q=0;q<this.__children.length;q++)this.root.appendChild(this.__children[q])};
_.g.render=function(){var q=this;if(!this.__children){var N=N||this.querySelector("template");if(!N){var b=new MutationObserver(function(){if(N=q.querySelector("template"))b.disconnect(),q.render();else throw Error("Nd");});
b.observe(this,{childList:!0});return}this.root=this._stampTemplate(N);this.$=this.root.$;this.__children=[];for(var y=this.root.firstChild;y;y=y.nextSibling)this.__children[this.__children.length]=y;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.$H.Object.defineProperties(XJ,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",XJ);Polymer.Debouncer=uW;Polymer.Gestures={gestures:LQ,recognizers:S6,deepTargetFind:D$A,addListener:PK,removeListener:Mr,register:IQR,setTouchAction:_.oC,prevent:WK,resetMouseCanceller:function(){mS&&mS.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:PK,remove:Mr};Polymer.GestureEventListeners=g01;Polymer.MutableData=rk;Polymer.OptionalMutableData=ZtR;Polymer.DomBind=XJ;_.VO=function(){do{var q=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var N=btM()}while(q||N)};var pVu=null;P9n.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:P9n,writable:!0}});var NMn=EC(P9n),qnZ=rk(NMn),Ry4=EC(function(){}),qL=function(q){var N=Ry4.call(this)||this;
N._configureProperties(q);N.root=N._stampTemplate(N.__dataHost);var b=[];N.children=b;for(var y=N.root.firstChild;y;y=y.nextSibling)b.push(y),y.__templatizeInstance=N;N.__templatizeOwner&&N.__templatizeOwner.__hideTemplateChildren__&&N._showHideChildren(!0);b=N.__templatizeOptions;(q&&b.instanceProps||!b.instanceProps)&&N._enableProperties();return N};
_.Y(qL,Ry4);_.g=qL.prototype;_.g._configureProperties=function(q){if(this.__templatizeOptions.forwardHostProp)for(var N in this.__hostProps)this._setPendingProperty(N,this.__dataHost["_host_"+N]);for(var b in q)this._setPendingProperty(b,q[b])};
_.g.forwardHostProp=function(q,N){this._setPendingPropertyOrPath(q,N,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.g._addEventListenerToNode=function(q,N,b){var y=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(q,N,function(E){E.model=y;b(E)});
else{var J=this.__dataHost.__dataHost;J&&J._addEventListenerToNode(q,N,b)}};
_.g._showHideChildren=function(q){oJn(q,this.children)};
_.g._setUnmanagedPropertyToNode=function(q,N,b){q.__hideTemplateChildren__&&q.nodeType==Node.TEXT_NODE&&N=="textContent"?q.__polymerTextContent__=b:Ry4.prototype._setUnmanagedPropertyToNode.call(this,q,N,b)};
_.g.dispatchEvent=function(){return!0};
_.$H.Object.defineProperties(qL.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var q=this.__parentModel;if(!q){var N;q=this;do q=q.__dataHost.__dataHost;while((N=q.__templatizeOptions)&&!N.parentModel);this.__parentModel=q}return q}}});
var efZ=rk(qL);var jV=function(){var q=Zh.call(this)||this;q.__renderDebouncer=null;q._lastIf=!1;q.__hideTemplateChildren__=!1;return q};
_.Y(jV,Zh);_.g=jV.prototype;_.g.__debounceRender=function(){var q=this;this.__renderDebouncer=_.$c(this.__renderDebouncer,AD,function(){return q.__render()});
_.tt(this.__renderDebouncer)};
_.g.disconnectedCallback=function(){Zh.prototype.disconnectedCallback.call(this);var q=(0,_.kF)(this).parentNode;q&&(q.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.kF)(q).host)||this.__teardownInstance()};
_.g.connectedCallback=function(){Zh.prototype.connectedCallback.call(this);Lvu()||(this.style.display="none");this.if&&this.__debounceRender()};
_.g.__ensureTemplate=function(){var q=this;if(!this.__template){var N=this._templateInfo?this:(0,_.kF)(this).querySelector("template");if(!N){var b=new MutationObserver(function(){if((0,_.kF)(q).querySelector("template"))b.disconnect(),q.__render();else throw Error("Qd");});
b.observe(this,{childList:!0});return!1}this.__template=N}return!0};
_.g.__ensureInstance=function(){var q=(0,_.kF)(this).parentNode;if(this.__hasInstance()){var N=this.__getInstanceNodes();if(N&&N.length&&(0,_.kF)(this).previousSibling!==N[N.length-1])for(var b=0,y=void 0;b<N.length&&(y=N[b]);b++)(0,_.kF)(q).insertBefore(y,this)}else{if(!q||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(q)}return!0};
_.g.render=function(){_.VO()};
_.g.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();q2&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.g.__hasInstance=function(){};
_.g.__getInstanceNodes=function(){};
_.g.__createAndInsertInstance=function(){};
_.g.__teardownInstance=function(){};
_.g._showHideChildren=function(){};
_.$H.Object.defineProperties(jV,{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:jV.prototype.__debounceRender},restamp:{type:Boolean,observer:jV.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var doo=function(){var q=jV.call(this)||this;q.__instance=null;q.__syncInfo=null;return q};
_.Y(doo,jV);_.g=doo.prototype;_.g.__hasInstance=function(){return!!this.__instance};
_.g.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.g.__createAndInsertInstance=function(q){var N=this,b=this.__dataHost||this;if(E7&&!this.__dataHost)throw Error("Od");var y=b._bindTemplate(this.__template,!0);y.runEffects=function(J,E,F){var R=N.__syncInfo;if(N.if)R&&(N.__syncInfo=null,N._showHideChildren(),E=Object.assign(R.changedProps,E)),J(E,F);else if(N.__instance)if(R||(R=N.__syncInfo={runEffects:J,changedProps:{}}),F)for(var c in E)J=OX(c),R.changedProps[J]=N.__dataHost[J];else Object.assign(R.changedProps,E)};
this.__instance=b._stampTemplate(this.__template,y);(0,_.kF)(q).insertBefore(this.__instance,this)};
_.g.__syncHostProperties=function(){var q=this.__syncInfo;q&&(this.__syncInfo=null,q.runEffects(q.changedProps,!1))};
_.g.__teardownInstance=function(){var q=this.__dataHost||this;this.__instance&&(q._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.g._showHideChildren=function(){var q=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==q&&(this.__instance.__hidden=q,oJn(q,this.__instance.templateInfo.childNodes));q||this.__syncHostProperties()};
var cnE=function(){var q=jV.call(this)||this;q.__ctor=null;q.__instance=null;q.__invalidProps=null;return q};
_.Y(cnE,jV);_.g=cnE.prototype;_.g.__hasInstance=function(){return!!this.__instance};
_.g.__getInstanceNodes=function(){return this.__instance.children};
_.g.__createAndInsertInstance=function(q){this.__ctor||(this.__ctor=yi(this.__template,this,{mutableData:!0,forwardHostProp:function(N,b){this.__instance&&(this.if?this.__instance.forwardHostProp(N,b):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[OX(N)]=!0))}}));
this.__instance=new this.__ctor;(0,_.kF)(q).insertBefore(this.__instance.root,this)};
_.g.__teardownInstance=function(){if(this.__instance){var q=this.__instance.children;if(q&&q.length){var N=(0,_.kF)(q[0]).parentNode;if(N){N=(0,_.kF)(N);for(var b=0,y=void 0;b<q.length&&(y=q[b]);b++)N.removeChild(y)}}this.__instance=this.__invalidProps=null}};
_.g.__syncHostProperties=function(){var q=this.__invalidProps;if(q){this.__invalidProps=null;for(var N in q)this.__instance._setPendingProperty(N,this.__dataHost[N]);this.__instance._flushProperties()}};
_.g._showHideChildren=function(){var q=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==q&&(this.__instance.__hidden=q,this.__instance._showHideChildren(q));q||this.__syncHostProperties()};
_.Gs=H7?doo:cnE;customElements.define(_.Gs.is,_.Gs);Polymer.enqueueDebouncer=_.tt;Polymer.flush=_.VO;Polymer.Templatize={templatize:yi,modelForElement:ZLA};Polymer.TemplateInstanceBase=qL;Polymer.DomIf=_.Gs;var uRx=ZtR(Zh),vH=function(){var q=uRx.call(this)||this;q.__instances=[];q.__renderDebouncer=null;q.__itemsIdxToInstIdx={};q.__chunkCount=null;q.__renderStartTime=null;q.__itemsArrayChanged=!1;q.__shouldMeasureChunk=!1;q.__shouldContinueChunking=!1;q.__chunkingId=0;q.__sortFn=null;q.__filterFn=null;q.__observePaths=null;q.__ctor=null;q.__isDetached=!0;q.template=null;return q};
_.Y(vH,uRx);_.g=vH.prototype;_.g.disconnectedCallback=function(){uRx.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var q=0;q<this.__instances.length;q++)this.__detachInstance(q);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.g.connectedCallback=function(){uRx.prototype.connectedCallback.call(this);Lvu()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var q=(0,_.kF)((0,_.kF)(this).parentNode),N=0;N<this.__instances.length;N++)this.__attachInstance(N,q);this.__chunkingId&&this.__render()}};
_.g.__ensureTemplatized=function(){var q=this;if(!this.__ctor){var N=this.template=this._templateInfo?this:this.querySelector("template");if(!N){var b=new MutationObserver(function(){if(q.querySelector("template"))b.disconnect(),q.__render();else throw Error("Rd");});
b.observe(this,{childList:!0});return!1}var y={};y[this.as]=!0;y[this.indexAs]=!0;y[this.itemsIndexAs]=!0;this.__ctor=yi(N,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:y,forwardHostProp:function(J,E){for(var F=this.__instances,R=0,c=void 0;R<F.length&&(c=F[R]);R++)c.forwardHostProp(J,E)},
notifyInstanceProp:function(J,E,F){Qmu(this.as,E)&&(J=J[this.itemsIndexAs],E==this.as&&(this.items[J]=F),E=i_(this.as,"items."+J,E),this.notifyPath(E,F))}})}return!0};
_.g.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.g.__functionFromPropertyValue=function(q){if(typeof q==="string"){var N=this.__getMethodHost();return function(){return N[q].apply(N,arguments)}}return q};
_.g.__sortChanged=function(q){this.__sortFn=this.__functionFromPropertyValue(q);this.items&&this.__debounceRender(this.__render)};
_.g.__filterChanged=function(q){this.__filterFn=this.__functionFromPropertyValue(q);this.items&&this.__debounceRender(this.__render)};
_.g.__computeFrameTime=function(q){return Math.ceil(1E3/q)};
_.g.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.g.__handleObservedPaths=function(q){if(this.__sortFn||this.__filterFn)if(!q)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var N=this.__observePaths,b=0;b<N.length;b++)q.indexOf(N[b])===0&&this.__debounceRender(this.__render,this.delay)};
_.g.__itemsChanged=function(q){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(q.path,q.value)||(q.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.g.__debounceRender=function(q,N){N=N===void 0?0:N;this.__renderDebouncer=_.$c(this.__renderDebouncer,N>0?_.bW.after(N):AD,q.bind(this));_.tt(this.__renderDebouncer)};
_.g.render=function(){this.__debounceRender(this.__render);_.VO()};
_.g.__render=function(){var q=this;if(this.__ensureTemplatized()){var N=this.items||[],b=this.__sortAndFilterItems(N),y=this.__calculateLimit(b.length);this.__updateInstances(N,y,b);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){q.__chunkingId=null;q.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);q2&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.g.__sortAndFilterItems=function(q){for(var N=this,b=Array(q.length),y=0;y<q.length;y++)b[y]=y;this.__filterFn&&(b=b.filter(function(J,E,F){return N.__filterFn(q[J],E,F)}));
this.__sortFn&&b.sort(function(J,E){return N.__sortFn(q[J],q[E])});
return b};
_.g.__calculateLimit=function(q){var N=q,b=this.__instances.length;if(this.initialCount){var y;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(N=Math.min(q,this.initialCount),this.__chunkCount=(y=Math.max(N-b,0))||1):(y=Math.min(Math.max(q-b,0),this.__chunkCount),N=Math.min(b+y,q));this.__shouldMeasureChunk=y===this.__chunkCount;this.__shouldContinueChunking=N<q;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return N};
_.g.__continueChunking=function(){if(this.__shouldMeasureChunk){var q=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/q*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.g.__updateInstances=function(q,N,b){var y=this.__itemsIdxToInstIdx={},J;for(J=0;J<N;J++){var E=this.__instances[J],F=b[J],R=q[F];y[F]=J;E?(E._setPendingProperty(this.as,R),E._setPendingProperty(this.indexAs,J),E._setPendingProperty(this.itemsIndexAs,F),E._flushProperties()):this.__insertInstance(R,J,F)}for(q=this.__instances.length-1;q>=J;q--)this.__detachAndRemoveInstance(q)};
_.g.__detachInstance=function(q){q=this.__instances[q];for(var N=(0,_.kF)(q.root),b=0;b<q.children.length;b++)N.appendChild(q.children[b]);return q};
_.g.__attachInstance=function(q,N){N.insertBefore(this.__instances[q].root,this)};
_.g.__detachAndRemoveInstance=function(q){this.__detachInstance(q);this.__instances.splice(q,1)};
_.g.__stampInstance=function(q,N,b){var y={};y[this.as]=q;y[this.indexAs]=N;y[this.itemsIndexAs]=b;return new this.__ctor(y)};
_.g.__insertInstance=function(q,N,b){q=this.__stampInstance(q,N,b);b=(b=this.__instances[N+1])?b.children[0]:this;(0,_.kF)((0,_.kF)(this).parentNode).insertBefore(q.root,b);return this.__instances[N]=q};
_.g._showHideChildren=function(q){for(var N=0;N<this.__instances.length;N++)this.__instances[N]._showHideChildren(q)};
_.g.__handleItemPath=function(q,N){var b=q.slice(6),y=b.indexOf(".");q=y<0?b:b.substring(0,y);if(q==parseInt(q,10)){b=y<0?"":b.substring(y+1);this.__handleObservedPaths(b);if(q=this.__instances[this.__itemsIdxToInstIdx[q]])q._setPendingPropertyOrPath(this.as+(b?"."+b:""),N,!1,!0),q._flushProperties();return!0}};
_.g.itemForElement=function(q){return(q=this.modelForElement(q))&&q[this.as]};
_.g.indexForElement=function(q){return(q=this.modelForElement(q))&&q[this.indexAs]};
_.g.modelForElement=function(q){return ZLA(this.template,q)};
_.$H.Object.defineProperties(vH,{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:vH.prototype.__sortChanged},filter:{type:Function,observer:vH.prototype.__filterChanged},observe:{type:String,observer:vH.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!q2,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.*)"]}}});
vH.prototype._setRenderedItemCount=function(){};
customElements.define(vH.is,vH);Polymer.DomRepeat=vH;var zyq=function(q,N){var b=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=q;this.callback=N;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){b._schedule()};
this.connect();this._schedule()},$o1=function(q){var N=(0,_.kF)(q);
if(gd(q))return N.assignedNodes({flatten:!0});q=[];for(var b=0;b<N.childNodes.length;b++){var y=N.childNodes[b];gd(y)?q.push.apply(q,_.a9((0,_.kF)(y).assignedNodes({flatten:!0}))):q.push(y)}return q};
_.g=zyq.prototype;_.g.connect=function(){var q=this;gd(this._target)?this._listenSlots([this._target]):(0,_.kF)(this._target).children&&(this._listenSlots((0,_.kF)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(N){q._processMutations(N)}):(this._nativeChildrenObserver=new MutationObserver(function(N){q._processMutations(N)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.g.disconnect=function(){gd(this._target)?this._unlistenSlots([this._target]):(0,_.kF)(this._target).children&&(this._unlistenSlots((0,_.kF)(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};
_.g._schedule=function(){var q=this;this._scheduled||(this._scheduled=!0,AD.run(function(){return q.flush()}))};
_.g._processMutations=function(q){this._processSlotMutations(q);this.flush()};
_.g._processSlotMutations=function(q){if(q)for(var N=0;N<q.length;N++){var b=q[N];b.addedNodes&&this._listenSlots(b.addedNodes);b.removedNodes&&this._unlistenSlots(b.removedNodes)}};
_.g.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 q={target:this._target,addedNodes:[],removedNodes:[]},N=$o1(this._target),b=gJR(N,this._effectiveNodes),y=0,J=void 0;y<b.length&&(J=b[y]);y++)for(var E=0,F=void 0;E<J.removed.length&&(F=J.removed[E]);E++)q.removedNodes.push(F);
y=0;for(J=void 0;y<b.length&&(J=b[y]);y++)for(E=J.index;E<J.index+J.addedCount;E++)q.addedNodes.push(N[E]);this._effectiveNodes=N;N=!1;if(q.addedNodes.length||q.removedNodes.length)N=!0,this.callback.call(this._target,q);return N};
_.g._listenSlots=function(q){for(var N=0;N<q.length;N++){var b=q[N];gd(b)&&b.addEventListener("slotchange",this._boundSchedule)}};
_.g._unlistenSlots=function(q){for(var N=0;N<q.length;N++){var b=q[N];gd(b)&&b.removeEventListener("slotchange",this._boundSchedule)}};var xc=Element.prototype,t_1=xc.matches||xc.matchesSelector||xc.mozMatchesSelector||xc.msMatchesSelector||xc.oMatchesSelector||xc.webkitMatchesSelector,mol=function(q,N){return t_1.call(q,N)},Zp=function(q){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(q);
this.node=q},jij;
_.g=Zp.prototype;_.g.observeNodes=function(q){return new zyq(this.node,q)};
_.g.unobserveNodes=function(q){q.disconnect()};
_.g.notifyObserver=function(){};
_.g.deepContains=function(q){if((0,_.kF)(this.node).contains(q))return!0;var N=q;for(q=q.ownerDocument;N&&N!==q&&N!==this.node;)N=(0,_.kF)(N).parentNode||(0,_.kF)(N).host;return N===this.node};
_.g.getOwnerRoot=function(){return(0,_.kF)(this.node).getRootNode()};
_.g.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.kF)(this.node).assignedNodes({flatten:!0}):[]};
_.g.getDestinationInsertionPoints=function(){for(var q=[],N=(0,_.kF)(this.node).assignedSlot;N;)q.push(N),N=(0,_.kF)(N).assignedSlot;return q};
_.g.importNode=function(q,N){return(0,_.kF)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(q,N)};
_.g.getEffectiveChildNodes=function(){return $o1(this.node)};
_.g.queryDistributedElements=function(q){for(var N=this.getEffectiveChildNodes(),b=[],y=0,J=N.length,E=void 0;y<J&&(E=N[y]);y++)E.nodeType===Node.ELEMENT_NODE&&mol(E,q)&&b.push(E);return b};
_.$H.Object.defineProperties(Zp.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var q=this.node;return q._activeElement!==void 0?q._activeElement:q.activeElement}}});
var vt=function(q){this.event=q};
_.$H.Object.defineProperties(vt.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 rnx=Zp;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var X$E=window.ShadyDOM.Wrapper,V_E=function(){return X$E.apply(this,arguments)||this};
_.Y(V_E,X$E);Object.getOwnPropertyNames(Zp.prototype).forEach(function(q){q!="activeElement"&&q!="constructor"&&(V_E.prototype[q]=Zp.prototype[q])});
RWA(V_E.prototype,["classList"]);rnx=V_E;Object.defineProperties(vt.prototype,{localTarget:{get:function(){var q=this.event.currentTarget;q=q&&_.mj(q).getOwnerRoot();for(var N=this.path,b=0;b<N.length;b++){var y=N[b];if(_.mj(y).getOwnerRoot()===q)return y}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else FYJ(),RWA(Zp.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),ddd();jij=rnx;_.mj=function(q){q=q||document;if(q instanceof rnx)return q;if(q instanceof vt)return q;var N=q.__domApi;N||(q instanceof Event?N=new vt(q):N=new rnx(q),q.__domApi=N);return N};var xoM=/:host\(:dir\((ltr|rtl)\)\)/g,v0q=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,GTM=/:dir\((?:ltr|rtl)\)/,Y_x=!(!window.ShadyDOM||!window.ShadyDOM.inUse),RP=[],Gq=null,F4="",QiE=yO(function(q){Y_x||Gq||(F4=document.documentElement.getAttribute("dir"),Gq=new MutationObserver(csA),Gq.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var N=K_E(q);q=function(){var b=N.call(this)||this;b.__autoDirOptOut=!1;return b};
_.Y(q,N);q._processStyleText=function(b,y){b=N._processStyleText.call(this,b,y);!Y_x&&GTM.test(b)&&(b=this._replaceDirInCssText(b),this.__activateDir=!0);return b};
q._replaceDirInCssText=function(b){b=b.replace(xoM,':host([dir="$1"])');return b=b.replace(v0q,':host([dir="$2"]) $1')};
q.prototype.ready=function(){N.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
q.prototype.connectedCallback=function(){N.prototype.connectedCallback&&N.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(Gq&&Gq.takeRecords().length&&csA(),RP.push(this),this.__autoDirOptOut||this.setAttribute("dir",F4))};
q.prototype.disconnectedCallback=function(){N.prototype.disconnectedCallback&&N.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var b=RP.indexOf(this);b>-1&&RP.splice(b,1)}};
q.__activateDir=!1;return q});var Otv=function(q){for(;q;){var N=Object.getOwnPropertyDescriptor(q,"observedAttributes");if(N)return N.get;q=Object.getPrototypeOf(q.prototype).constructor}return function(){return[]}};
yO(function(q){var N=gk(q),b=Otv(N);q=function(){return N.call(this)||this};
_.Y(q,N);q.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:N.prototype._initializeProperties.call(this)};
q.prototype._enableProperties=function(){this.__isUpgradeDisabled||N.prototype._enableProperties.call(this)};
q.prototype._canApplyPropertyDefault=function(y){return N.prototype._canApplyPropertyDefault.call(this,y)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(y))};
q.prototype.attributeChangedCallback=function(y,J,E,F){y=="disable-upgrade"?this.__isUpgradeDisabled&&E==null&&(N.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.kF)(this).isConnected&&N.prototype.connectedCallback.call(this)):N.prototype.attributeChangedCallback.call(this,y,J,E,F)};
q.prototype.connectedCallback=function(){this.__isUpgradeDisabled||N.prototype.connectedCallback.call(this)};
q.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||N.prototype.disconnectedCallback.call(this)};
_.$H.Object.defineProperties(q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return b.call(this).concat("disable-upgrade")}}});
return q});var dd=!1,zWR=[],cB=[];var rsJ=window.ShadyDOM,Xcu=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",j6n):document.readyState==="interactive"||document.readyState==="complete"?j6n():window.addEventListener("DOMContentLoaded",j6n);var Gan=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=""},xdd=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,vsh=/@import[^;]*;/gim,lsC=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,KYn=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Ddd=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,hWz=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,wcJ=/^@[^\s]*keyframes/,
OLC=/\s+/g;var kaZ={};var CZd=Promise.resolve();var w$o=new Set;var itT=/;\s*/m,ldo=/^\s*(initial)|(inherit)\s*$/,K61=/\s*!important/,DoE=function(){this._map={}};
DoE.prototype.set=function(q,N){q=q.trim();this._map[q]={properties:N,dependants:{}}};
DoE.prototype.get=function(q){q=q.trim();return this._map[q]||null};
var hy4=null,Yc=function(){this._measureElement=this._currentElement=null;this._map=new DoE};
_.g=Yc.prototype;_.g.detectMixin=function(q){q=o9F.test(q)||Ml1.test(q);o9F.lastIndex=0;Ml1.lastIndex=0;return q};
_.g.transformTemplate=function(q,N){if(q._gatheredStyle===void 0){var b=[];for(var y=q.content.querySelectorAll("style"),J=0;J<y.length;J++){var E=y[J];if(E.hasAttribute("shady-unscoped")){if(!m$d){var F=E.textContent;if(!w$o.has(F)){w$o.add(F);var R=document.createElement("style");R.setAttribute("shady-unscoped","");R.textContent=F;document.head.appendChild(R)}E.parentNode.removeChild(E)}}else b.push(E.textContent),E.parentNode.removeChild(E)}(b=b.join("").trim())?(y=document.createElement("style"),
y.textContent=b,q.content.insertBefore(y,q.content.firstChild),b=y):b=null;q._gatheredStyle=b}return(q=q._gatheredStyle)?this.JSC$11348_transformStyle(q,N):null};
_.g.JSC$11348_transformStyle=function(q,N){N=N===void 0?"":N;var b=nsz(q);this.transformRules(b,N);q.textContent=s6D(b);return b};
_.g.transformCustomStyle=function(q){var N=this,b=nsz(q);Snh(b,function(y){y.selector===":root"&&(y.selector="html");N.transformRule(y)});
q.textContent=s6D(b);return b};
_.g.transformRules=function(q,N){var b=this;this._currentElement=N;Snh(q,function(y){b.transformRule(y)});
this._currentElement=null};
_.g.transformRule=function(q){q.cssText=kTo(this,q.parsedCssText,q);q.selector===":root"&&(q.selector=":host > *")};
var kTo=function(q,N,b){N=N.replace(Ml1,function(y,J,E,F){return q._produceCssProperties(y,J,E,F,b)});
return q._consumeCssProperties(N,b)};
_.g=Yc.prototype;_.g._getInitialValueForProperty=function(q){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(q)};
_.g._fallbacksFromPreviousRules=function(q){for(var N=this,b=q;b.parent;)b=b.parent;var y={},J=!1;Snh(b,function(E){(J=J||E===q)||E.selector===q.selector&&Object.assign(y,N._cssTextToMap(E.parsedCssText))});
return y};
_.g._consumeCssProperties=function(q,N){for(var b;b=o9F.exec(q);){var y=b[0],J=b[1];b=b.index;var E=b+y.indexOf("@apply"),F=b+y.length;y=q.slice(0,E);q=q.slice(F);E=N?this._fallbacksFromPreviousRules(N):{};Object.assign(E,this._cssTextToMap(y));J=this._atApplyToCssProperties(J,E);q=y+J+q;o9F.lastIndex=b+J.length}return q};
_.g._atApplyToCssProperties=function(q,N){q=q.replace(itT,"");var b=[],y=this._map.get(q);y||(this._map.set(q,{}),y=this._map.get(q));if(y){this._currentElement&&(y.dependants[this._currentElement]=!0);var J,E=y.properties;for(J in E){var F=N&&N[J];y=[J,": var(",q,"_-_",J];F&&y.push(",",F.replace(K61,""));y.push(")");K61.test(E[J])&&y.push(" !important");b.push(y.join(""))}}return b.join("; ")};
_.g._replaceInitialOrInherit=function(q,N){var b=ldo.exec(N);b&&(N=b[1]?this._getInitialValueForProperty(q):"apply-shim-inherit");return N};
_.g._cssTextToMap=function(q,N){N=N===void 0?!1:N;q=q.split(";");for(var b,y,J={},E=0;E<q.length;E++)if(b=q[E])y=b.split(":"),y.length>1&&(b=y[0].trim(),y=y.slice(1).join(":"),N&&(y=this._replaceInitialOrInherit(b,y)),J[b]=y);return J};
_.g._invalidateMixinEntry=function(q){if(hy4)for(var N in q.dependants)N!==this._currentElement&&hy4(N)};
_.g._produceCssProperties=function(q,N,b,y,J){var E=this;b&&WYd(b,function(G,w){w&&E._map.get(w)&&(y="@apply "+w+";")});
if(!y)return q;var F=this._consumeCssProperties(""+y,J);J=q.slice(0,q.indexOf("--"));var R=F=this._cssTextToMap(F,!0),c=this._map.get(N),z=c&&c.properties;z?R=Object.assign(Object.create(z),F):this._map.set(N,R);var m=[],r,X=!1;for(r in R){var V=F[r];V===void 0&&(V="initial");!z||r in z||(X=!0);m.push(N+"_-_"+r+": "+V)}X&&this._invalidateMixinEntry(c);c&&(c.properties=R);b&&(J=q+";"+J);return J+m.join("; ")+";"};
Yc.prototype.detectMixin=Yc.prototype.detectMixin;Yc.prototype.transformStyle=Yc.prototype.JSC$11348_transformStyle;Yc.prototype.transformCustomStyle=Yc.prototype.transformCustomStyle;Yc.prototype.transformRules=Yc.prototype.transformRules;Yc.prototype.transformRule=Yc.prototype.transformRule;Yc.prototype.transformTemplate=Yc.prototype.transformTemplate;Yc.prototype._separator="_-_";Object.defineProperty(Yc.prototype,"invalidCallback",{get:function(){return hy4},
set:function(q){hy4=q}});var QO=new Yc,Uov=function(){this.customStyleInterface=null;QO.invalidCallback=UdJ},OC=function(q){!q.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(q.customStyleInterface=window.ShadyCSS.CustomStyleInterface,q.customStyleInterface.transformCallback=function(N){QO.transformCustomStyle(N)},q.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){q.customStyleInterface.enqueued&&q.flushCustomStyles()})})};
_.g=Uov.prototype;_.g.prepareTemplate=function(q,N){OC(this);LYD(q)===""&&(kaZ[N]=q,N=QO.transformTemplate(q,N),q._styleAst=N)};
_.g.flushCustomStyles=function(){OC(this);if(this.customStyleInterface){var q=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var N=0;N<q.length;N++){var b=this.customStyleInterface.getStyleForCustomStyle(q[N]);b&&QO.transformCustomStyle(b)}this.customStyleInterface.enqueued=!1}}};
_.g.styleSubtree=function(q,N){OC(this);N&&RfJ(q,N);if(q.shadowRoot)for(this.styleElement(q),q=q.shadowRoot.children||q.shadowRoot.childNodes,N=0;N<q.length;N++)this.styleSubtree(q[N]);else for(q=q.children||q.childNodes,N=0;N<q.length;N++)this.styleSubtree(q[N])};
_.g.styleElement=function(q){OC(this);var N=q.localName,b;N?N.indexOf("-")>-1?b=N:b=q.getAttribute&&q.getAttribute("is")||"":b=q.is;N=kaZ[b];if(!(N&&LYD(N)!==""||!N||fsJ(N))){if(fsJ(N)||N._applyShimValidatingVersion!==N._applyShimNextVersion)this.prepareTemplate(N,b),IsA(N);if(q=q.shadowRoot)if(q=q.querySelector("style"))q.__cssRules=N._styleAst,q.textContent=s6D(N._styleAst)}};
_.g.styleDocument=function(q){OC(this);this.styleSubtree(document.body,q)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var wk=new Uov,fdo=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(q,N){wk.flushCustomStyles();wk.prepareTemplate(q,N)},
prepareTemplateStyles:function(q,N,b){window.ShadyCSS.prepareTemplate(q,N,b)},
prepareTemplateDom:function(){},
styleSubtree:function(q,N){wk.flushCustomStyles();wk.styleSubtree(q,N)},
styleElement:function(q){wk.flushCustomStyles();wk.styleElement(q)},
styleDocument:function(q){wk.flushCustomStyles();wk.styleDocument(q)},
getComputedStyleValue:function(q,N){return d$d(q,N)},
flushCustomStyles:function(){wk.flushCustomStyles()},
nativeCss:TMJ,nativeShadow:m$d,cssBuild:zj,disableRuntime:Bqx};fdo&&(window.ShadyCSS.CustomStyleInterface=fdo)}window.ShadyCSS.ApplyShim=QO;var Cq1;Cq1=window.ShadyCSS;_.Kz=yO(function(q){q=g01(gk(q));var N=n9x?q:QiE(q),b=Otv(N),y={x:"pan-x",y:"pan-y",none:"none",all:"auto"};q=function(){return N.call(this)||this};
_.Y(q,N);q.prototype.created=function(){};
q.prototype.__attributeReaction=function(J,E,F){(this.__dataAttributes&&this.__dataAttributes[J]||J==="disable-upgrade")&&this.attributeChangedCallback(J,E,F,null)};
q.prototype.setAttribute=function(J,E){if($9F&&!this._legacyForceObservedAttributes){var F=this.getAttribute(J);N.prototype.setAttribute.call(this,J,E);this.__attributeReaction(J,F,String(E))}else N.prototype.setAttribute.call(this,J,E)};
q.prototype.removeAttribute=function(J){if($9F&&!this._legacyForceObservedAttributes){var E=this.getAttribute(J);N.prototype.removeAttribute.call(this,J);this.__attributeReaction(J,E,null)}else N.prototype.removeAttribute.call(this,J)};
q.prototype._enableProperties=function(){this.__isUpgradeDisabled||N.prototype._enableProperties.call(this)};
q.prototype._canApplyPropertyDefault=function(J){return N.prototype._canApplyPropertyDefault.call(this,J)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(J))};
q.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(N.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
q.prototype.attached=function(){};
q.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(N.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
q.prototype.detached=function(){};
q.prototype.attributeChangedCallback=function(J,E,F,R){E!==F&&(J=="disable-upgrade"?this.__isUpgradeDisabled&&F==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.kF)(this).isConnected&&this.connectedCallback()):(N.prototype.attributeChangedCallback.call(this,J,E,F,R),this.attributeChanged(J,E,F)))};
q.prototype.attributeChanged=function(){};
q.prototype._initializeProperties=function(){if(BK&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var J=Object.getPrototypeOf(this);J.hasOwnProperty("__hasRegisterFinished")||(this._registered(),J.__hasRegisterFinished=!0);N.prototype._initializeProperties.call(this);this.root=this;this.created();$9F&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
q.prototype._takeAttributes=function(){for(var J=this.attributes,E=0,F=J.length;E<F;E++){var R=J[E];this.__attributeReaction(R.name,null,R.value)}};
q.prototype._registered=function(){};
q.prototype.ready=function(){this._ensureAttributes();N.prototype.ready.call(this)};
q.prototype._ensureAttributes=function(){};
q.prototype._applyListeners=function(){};
q.prototype.serialize=function(J){return this._serializeValue(J)};
q.prototype.deserialize=function(J,E){return this._deserializeValue(J,E)};
q.prototype.reflectPropertyToAttribute=function(J,E,F){this._propertyToAttribute(J,E,F)};
q.prototype.serializeValueToAttribute=function(J,E,F){this._valueToNodeAttribute(F||this,J,E)};
q.prototype.extend=function(J,E){if(!J||!E)return J||E;for(var F=Object.getOwnPropertyNames(E),R=0,c=void 0;R<F.length&&(c=F[R]);R++){var z=Object.getOwnPropertyDescriptor(E,c);z&&Object.defineProperty(J,c,z)}return J};
q.prototype.mixin=function(J,E){for(var F in E)J[F]=E[F];return J};
q.prototype.chainObject=function(J,E){J&&E&&J!==E&&(J.__proto__=E);return J};
q.prototype.instanceTemplate=function(J){J=this.constructor._contentForTemplate(J);return document.importNode(J,!0)};
q.prototype.fire=function(J,E,F){F=F||{};E=E===null||E===void 0?{}:E;J=new Event(J,{bubbles:F.bubbles===void 0?!0:F.bubbles,cancelable:!!F.cancelable,composed:F.composed===void 0?!0:F.composed});J.detail=E;(0,_.kF)(F.node||this).dispatchEvent(J);return J};
q.prototype.listen=function(J,E,F){J=J||this;var R=this.__boundListeners||(this.__boundListeners=new WeakMap),c=R.get(J);c||(c={},R.set(J,c));R=E+F;c[R]||(c[R]=this._addMethodEventListenerToNode(J,E,F,this))};
q.prototype.unlisten=function(J,E,F){J=J||this;var R=this.__boundListeners&&this.__boundListeners.get(J);F=E+F;var c=R&&R[F];c&&(this._removeEventListenerFromNode(J,E,c),R[F]=null)};
q.prototype.setScrollDirection=function(J,E){_.oC(E||this,y[J]||"auto")};
q.prototype.$$=function(J){return this.root.querySelector(J)};
q.prototype.distributeContent=function(){var J=_.mj(this);window.ShadyDOM&&J.shadowRoot&&ShadyDOM.flush()};
q.prototype.getEffectiveChildNodes=function(){return _.mj(this).getEffectiveChildNodes()};
q.prototype.queryDistributedElements=function(J){return _.mj(this).queryDistributedElements(J)};
q.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(J){return J.nodeType===Node.ELEMENT_NODE})};
q.prototype.getEffectiveTextContent=function(){for(var J=this.getEffectiveChildNodes(),E=[],F=0,R;R=J[F];F++)R.nodeType!==Node.COMMENT_NODE&&E.push(R.textContent);return E.join("")};
q.prototype.queryEffectiveChildren=function(J){return(J=this.queryDistributedElements(J))&&J[0]};
q.prototype.queryAllEffectiveChildren=function(J){return this.queryDistributedElements(J)};
q.prototype.getContentChildNodes=function(J){return(J=this.root.querySelector(J||"slot"))?_.mj(J).getDistributedNodes():[]};
q.prototype.getContentChildren=function(J){return this.getContentChildNodes(J).filter(function(E){return E.nodeType===Node.ELEMENT_NODE})};
q.prototype.isLightDescendant=function(J){return this!==J&&(0,_.kF)(this).contains(J)&&(0,_.kF)(this).getRootNode()===(0,_.kF)(J).getRootNode()};
q.prototype.isLocalDescendant=function(J){return this.root===(0,_.kF)(J).getRootNode()};
q.prototype.scopeSubtree=function(J,E){return V5d(J,E===void 0?!1:E)};
q.prototype.getComputedStyleValue=function(J){return Cq1.getComputedStyleValue(this,J)};
q.prototype.debounce=function(J,E,F){this._debouncers=this._debouncers||{};return this._debouncers[J]=_.$c(this._debouncers[J],F>0?_.bW.after(F):AD,E.bind(this))};
q.prototype.isDebouncerActive=function(J){this._debouncers=this._debouncers||{};J=this._debouncers[J];return!(!J||!J.isActive())};
q.prototype.flushDebouncer=function(J){this._debouncers=this._debouncers||{};(J=this._debouncers[J])&&J.flush()};
q.prototype.cancelDebouncer=function(J){this._debouncers=this._debouncers||{};(J=this._debouncers[J])&&J.cancel()};
q.prototype.async=function(J,E){return E>0?_.bW.run(J.bind(this),E):~AD.run(J.bind(this))};
q.prototype.cancelAsync=function(J){J<0?AD.cancel(~J):_.bW.cancel(J)};
q.prototype.create=function(J,E){J=document.createElement(J);if(E)if(J.setProperties)J.setProperties(E);else for(var F in E)J[F]=E[F];return J};
q.prototype.elementMatches=function(J,E){return mol(E||this,J)};
q.prototype.toggleAttribute=function(J,E){var F=this;arguments.length===3&&(F=arguments[2]);arguments.length==1&&(E=!F.hasAttribute(J));if(E)return(0,_.kF)(F).setAttribute(J,""),!0;(0,_.kF)(F).removeAttribute(J);return!1};
q.prototype.toggleClass=function(J,E,F){F=F||this;arguments.length==1&&(E=!F.classList.contains(J));E?F.classList.add(J):F.classList.remove(J)};
q.prototype.transform=function(J,E){E=E||this;E.style.webkitTransform=J;E.style.transform=J};
q.prototype.translate3d=function(J,E,F,R){this.transform("translate3d("+J+","+E+","+F+")",R||this)};
q.prototype.arrayDelete=function(J,E){if(Array.isArray(J)){if(E=J.indexOf(E),E>=0)return J.splice(E,1)}else if(E=KQ(this,J).indexOf(E),E>=0)return this.splice(J,E,1);return null};
q.prototype._logger=function(J,E){Array.isArray(E)&&E.length===1&&Array.isArray(E[0])&&(E=E[0]);switch(J){case "log":case "warn":case "error":console[J].apply(console,_.a9(E))}};
q.prototype._log=function(){this._logger("log",_.MB.apply(0,arguments))};
q.prototype._warn=function(){this._logger("warn",_.MB.apply(0,arguments))};
q.prototype._error=function(){this._logger("error",_.MB.apply(0,arguments))};
q.prototype._logf=function(J){return["[%s::%s]",this.is,J].concat(_.a9(_.MB.apply(1,arguments)))};
_.$H.Object.defineProperties(q.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var J=(0,_.kF)(this).getRootNode();return J instanceof DocumentFragment?J.host:J}}});
_.$H.Object.defineProperties(q,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return $9F&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],XDe(this.prototype)),this.__observedAttributes):b.call(this).concat("disable-upgrade")}}});
q.prototype.is="";return q});Polymer.FlattenedNodesObserver=zyq;Polymer.DomApi=jij;Polymer.EventApi=vt;Polymer.dom=_.mj;Polymer.dom.matchesSelector=mol;Polymer.dom.flush=_.VO;Polymer.dom.addDebouncer=_.tt;Polymer.DirMixin=QiE;Polymer.RenderStatus={beforeNextRender:_.mdJ,afterNextRender:_.ut,flush:function(){for(;zWR.length||cB.length;)unn(zWR),unn(cB);dd=!1}};Polymer.LegacyElementMixin=_.Kz;var IdE;IdE=rk._mutablePropertyChange;var TaT={properties:{mutableData:Boolean},_shouldPropertyChange:function(q,N,b){return IdE(this,q,N,b,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(q,N,b){return IdE(this,q,N,b,!0)}};
Polymer.OptionalMutableDataBehavior=TaT;var pcA={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},eWJ={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Asn=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},eWJ),six=(0,_.Kz)(HTMLElement),MCz=function(q,N){q||console.warn("Polymer.Class requires `info` argument");N=N?N(six):six;N=BMA(q,N,q.behaviors);N.is=N.prototype.is=
q.is;return N};Polymer.Class=MCz;Polymer.mixinBehaviors=function(q,N){return BMA({},(0,_.Kz)(N),q)};
Polymer.GenerateClassFromInfo=BMA;_.x9=function(q){var N=typeof q==="function"?q:_.x9.Class(q);q._legacyForceObservedAttributes&&(N.prototype._legacyForceObservedAttributes=q._legacyForceObservedAttributes);customElements.define(N.is,N);return N};
_.x9.Class=MCz;Polymer._polymerFn=_.x9;var n0T=window.onLegacyPolymerFunctionDefinedCallback;n0T&&n0T();var AYn={templatize:function(q,N){this._templatizerTemplate=q;this.ctor=yi(q,this,{mutableData:!!N,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(q){return new this.ctor(q)},
modelForElement:function(q){return ZLA(this._templatizerTemplate,q)}};Polymer.Templatizer=AYn;_.Dh=(0,_.Kz)(HTMLElement).prototype;Polymer.Base=_.Dh;var qqA=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.t9=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.Y(_.t9,PolymerFakeBaseClass);var mH=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.Y(mH,PolymerFakeBaseClass);var N1z=Symbol("Sd"),RLC=[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 adq=adq||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},S_R;(function(q){function N(S,W,M){var qe=L.get(S);if(!qe){if(!M)return;qe=new k;L.set(S,qe)}S=qe.get(W);if(!S){if(!M)return;S=new k;qe.set(W,S)}return S}
function b(S,W,M){if(y(S,W,M))return!0;W=X(W);return W!==null?b(S,W,M):!1}
function y(S,W,M){W=N(W,M,!1);return W===void 0?!1:!!W.has(S)}
function J(S,W,M){if(y(S,W,M))return E(S,W,M);W=X(W);if(W!==null)return J(S,W,M)}
function E(S,W,M){W=N(W,M,!1);if(W!==void 0)return W.get(S)}
function F(S,W){var M=R(S,W);S=X(S);if(S===null)return M;var qe=F(S,W);if(qe.length<=0)return M;if(M.length<=0)return qe;W=new f;S=[];M=_.Z(M);for(var RJ=M.next();!RJ.done;RJ=M.next())RJ=RJ.value,W.has(RJ)||(W.add(RJ),S.push(RJ));M=_.Z(qe);for(qe=M.next();!qe.done;qe=M.next())qe=qe.value,W.has(qe)||(W.add(qe),S.push(qe));return S}
function R(S,W){S=N(S,W,!1);var M=[];S&&S.forEach(function(qe,RJ){return M.push(RJ)});
return M}
function c(S){return S===void 0}
function z(S){return typeof S==="object"?S!==null:typeof S==="function"}
function m(S){return typeof S==="function"}
function r(S){return typeof S==="symbol"?S:String(S)}
function X(S){var W=Object.getPrototypeOf(S);if(typeof S!=="function"||S===D||W!==D)return W;var M=Object.getPrototypeOf(S.prototype);if(M==null||M===Object.prototype)return W;M=M.constructor;return typeof M!=="function"||M===S?W:M}
function V(){function S(){this._keys=[];this._values=[];this._cache=W}
var W={};S.prototype={get size(){return this._keys.length},has:function(M){return M===this._cache?!0:this._find(M)>=0?(this._cache=M,!0):!1},
get:function(M){var qe=this._find(M);if(qe>=0)return this._cache=M,this._values[qe]},
set:function(M,qe){this.delete(M);this._keys.push(M);this._values.push(qe);this._cache=M;return this},
delete:function(M){M=this._find(M);return M>=0?(this._keys.splice(M,1),this._values.splice(M,1),this._cache=W,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=W},
forEach:function(M){for(var qe=this.size,RJ=0;RJ<qe;++RJ){var tZ=this._keys[RJ],wA=this._values[RJ];this._cache=tZ;M.call(this,wA,tZ,this)}},
_find:function(M){for(var qe=this._keys,RJ=qe.length,tZ=0;tZ<RJ;++tZ)if(qe[tZ]===M)return tZ;return-1}};
return S}
function G(){function S(){this._map=new k}
S.prototype={get size(){return this._map.length},has:function(W){return this._map.has(W)},
add:function(W){this._map.set(W,W);return this},
delete:function(W){return this._map.delete(W)},
clear:function(){this._map.clear()},
forEach:function(W,M){this._map.forEach(W,M)}};
return S}
function w(){function S(){this._key=M()}
function W(xD,IJ){for(var sJ=0;sJ<IJ;++sJ)xD[sJ]=Math.random()*255|0}
function M(){do{if(RJ)var xD=RJ.randomBytes(16);else typeof Uint8Array==="function"?(xD=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(xD):W(xD,16)):(xD=Array(16),W(xD,16));xD[6]=xD[6]&79|64;xD[8]=xD[8]&191|128;for(var IJ="",sJ=0;sJ<16;++sJ){var Sn=xD[sJ];if(sJ===4||sJ===6||sJ===8)IJ+="-";Sn<16&&(IJ+="0");IJ+=Sn.toString(16).toLowerCase()}xD="@@WeakMap@@"+IJ}while(tZ.call(wA,xD));wA[xD]=!0;return xD}
function qe(xD,IJ){if(!tZ.call(xD,rA)){if(!IJ)return;Object.defineProperty(xD,rA,{value:Object.create(null)})}return xD[rA]}
var RJ=typeof global!=="undefined"&&typeof adq==="object"&&typeof require==="function"&&require("crypto"),tZ=Object.prototype.hasOwnProperty,wA={},rA=M();S.prototype={has:function(xD){return(xD=qe(xD,!1))?this._key in xD:!1},
get:function(xD){if(xD=qe(xD,!1))return xD[this._key]},
set:function(xD,IJ){qe(xD,!0)[this._key]=IJ;return this},
delete:function(xD){return(xD=qe(xD,!1))&&this._key in xD?delete xD[this._key]:!1},
clear:function(){this._key=M()}};
return S}
var D=Object.getPrototypeOf(Function),k=typeof Map==="function"?Map:V(),f=typeof Set==="function"?Set:G(),L=new (typeof WeakMap==="function"?WeakMap:w());q.decorate=function(S,W,M,qe){if(c(qe)){if(c(M)){if(!Array.isArray(S))throw new TypeError;if(!m(W))throw new TypeError;for(M=S.length-1;M>=0;--M)if(qe=(0,S[M])(W),!c(qe)){if(!m(qe))throw new TypeError;W=qe}return W}if(!Array.isArray(S))throw new TypeError;if(!z(W))throw new TypeError;M=r(M);for(qe=S.length-1;qe>=0;--qe)(0,S[qe])(W,M)}else{if(Array.isArray(S))if(z(W)){if(c(M))throw new TypeError;
if(!z(qe))throw new TypeError;}else throw new TypeError;else throw new TypeError;M=r(M);for(var RJ=S.length-1;RJ>=0;--RJ){var tZ=(0,S[RJ])(W,M,qe);if(!c(tZ)){if(!z(tZ))throw new TypeError;qe=tZ}}return qe}};
q.metadata=function(S,W){return function(M,qe){if(c(qe)){if(!m(M))throw new TypeError;N(M,void 0,!0).set(S,W)}else{if(!z(M))throw new TypeError;qe=r(qe);N(M,qe,!0).set(S,W)}}};
q.defineMetadata=function(S,W){var M;if(z(W))c(M)||(M=r(M));else throw new TypeError;N(W,M,!0).set("parameters",S)};
q.hasMetadata=function(S,W,M){if(z(W))c(M)||(M=r(M));else throw new TypeError;return b(S,W,M)};
q.hasOwnMetadata=function(S,W,M){if(z(W))c(M)||(M=r(M));else throw new TypeError;return y(S,W,M)};
q.getMetadata=function(S,W,M){if(z(W))c(M)||(M=r(M));else throw new TypeError;return J(S,W,M)};
q.getOwnMetadata=function(S,W,M){if(z(W))c(M)||(M=r(M));else throw new TypeError;return E(S,W,M)};
q.getMetadataKeys=function(S,W){if(z(S))c(W)||(W=r(W));else throw new TypeError;return F(S,W)};
q.getOwnMetadataKeys=function(S,W){if(z(S))c(W)||(W=r(W));else throw new TypeError;return R(S,W)};
q.deleteMetadata=function(S,W,M){if(z(W))c(M)||(M=r(M));else throw new TypeError;var qe=N(W,M,!1);if(!c(qe)){if(!qe.delete(S))return!1;if(qe.size>0)return!0;S=L.get(W);S.delete(M);if(S.size>0)return!0;L.delete(W);return!0}};
(function(S){if(typeof S.Reflect!=="undefined"){if(S.Reflect!==q)for(var W in q)S.Reflect[W]=q[W]}else S.Reflect=q})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(S_R||(S_R={}));var Gvn=self;var W61=[0,_.sn,_.LL,_.sn];var L6J=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(L6J,_.Rx);var p$j=_.xB(L6J,[0,_.As,_.Md,W61,_.LL,_.Bc]);var M_x=[0,_.e5,-3,_.Bc,_.As,_.sn,_.jfx,_.e5,vaE,raj,fL,_.nL,_.sn,function(){return Pq1},
_.LL],Pq1=[0,_.Md,function(){return M_x},
_.As,14,_.e5];_.oK(_.rd,_.UN);_.g=_.rd.prototype;_.g.start=function(){this.stop();this.usingListeners_=!1;var q=o04(this),N=AnF(this);q&&!N&&this.JSC$11391_win_.mozRequestAnimationFrame?(this.JSC$11391_id_=_.tn(this.JSC$11391_win_,"MozBeforePaint",this.callback_),this.JSC$11391_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11391_id_=q&&N?q.call(this.JSC$11391_win_,this.callback_):this.JSC$11391_win_.setTimeout(abM(this.callback_),20)};
_.g.stop=function(){if(this.isActive()){var q=o04(this),N=AnF(this);q&&!N&&this.JSC$11391_win_.mozRequestAnimationFrame?uq(this.JSC$11391_id_):q&&N?N.call(this.JSC$11391_win_,this.JSC$11391_id_):this.JSC$11391_win_.clearTimeout(this.JSC$11391_id_)}this.JSC$11391_id_=null};
_.g.fire=function(){this.stop();this.JSC$11393_doAction_()};
_.g.isActive=function(){return this.JSC$11391_id_!=null};
_.g.JSC$11393_doAction_=function(){this.usingListeners_&&this.JSC$11391_id_&&uq(this.JSC$11391_id_);this.JSC$11391_id_=null;this.JSC$11391_listener_.call(this.handler_,_.M$())};
_.g.disposeInternal=function(){this.stop();_.rd.superClass_.disposeInternal.call(this)};
var o04=function(q){q=q.JSC$11391_win_;return q.requestAnimationFrame||q.webkitRequestAnimationFrame||q.mozRequestAnimationFrame||q.oRequestAnimationFrame||q.msRequestAnimationFrame||null},AnF=function(q){q=q.JSC$11391_win_;
return q.cancelAnimationFrame||q.cancelRequestAnimationFrame||q.webkitCancelRequestAnimationFrame||q.mozCancelRequestAnimationFrame||q.oCancelRequestAnimationFrame||q.msCancelRequestAnimationFrame||null};_.El=function(q,N,b){_.UN.call(this);this.JSC$11394_listener_=b!=null?q.bind(b):q;this.JSC$11394_interval_=N;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11394_timer_=null};
_.Y(_.El,_.UN);_.g=_.El.prototype;_.g.fire=function(q){this.args_=arguments;this.JSC$11394_timer_||this.pauseCount_?this.shouldFire_=!0:eyF(this)};
_.g.stop=function(){this.JSC$11394_timer_&&(_.JZ.clearTimeout(this.JSC$11394_timer_),this.JSC$11394_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.g.pause=function(){this.pauseCount_++};
_.g.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11394_timer_||(this.shouldFire_=!1,eyF(this))};
_.g.disposeInternal=function(){_.UN.prototype.disposeInternal.call(this);this.stop()};
var eyF=function(q){q.JSC$11394_timer_=D6(function(){q.JSC$11394_timer_=null;q.shouldFire_&&!q.pauseCount_&&(q.shouldFire_=!1,eyF(q))},q.JSC$11394_interval_);
var N=q.args_;q.args_=null;q.JSC$11394_listener_.apply(null,N)};var Bav=function(q,N){this.childIterator_=q[_.JZ.Symbol.iterator]();this.mapFn_=N};
Bav.prototype[Symbol.iterator]=function(){return this};
Bav.prototype.next=function(){var q=this.childIterator_.next();return{value:q.done?void 0:this.mapFn_.call(void 0,q.value),done:q.done}};
var Htj=function(q,N){return new Bav(q,N)};var ql1={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 cUz=function(q){var N=NJ4(q);if(!N)throw Error("Wd`"+q);return N},NJ4=function(q){var N={};
q=String(q);var b=q.charAt(0)=="#"?q:"#"+q;if(b6R.test(b))return N.hex=yFA(b),N.type="hex",N;b=toA(q);return b.length?(N.hex=nxe(b[0],b[1],b[2]),N.type="rgb",N):ql1&&(q=ql1[q.toLowerCase()])?(N.hex=q,N.type="named",N):null},yEE=/#(.)(.)(.)/,yFA=function(q){if(!b6R.test(q))throw Error("Yd`"+q);
q.length==4&&(q=q.replace(yEE,"#$1$1$2$2$3$3"));return q.toLowerCase()},uBZ=function(q){q=yFA(q);
q=parseInt(q.slice(1),16);return[q>>16,q>>8&255,q&255]},nxe=function(q,N,b){q=Number(q);
N=Number(N);b=Number(b);if(q!=(q&255)||N!=(N&255)||b!=(b&255))throw Error("Zd`"+q+"`"+N+"`"+b);N=q<<16|N<<8|b;return q<16?"#"+(16777216|N).toString(16).slice(1):"#"+N.toString(16)},b6R=/^#(?:[0-9a-f]{3}){1,2}$/i,JEo=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,toA=function(q){var N=q.match(JEo);
if(N){q=Number(N[1]);var b=Number(N[2]);N=Number(N[3]);if(q>=0&&q<=255&&b>=0&&b<=255&&N>=0&&N<=255)return[q,b,N]}return[]};var EPl={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},gR=EPl;gR=EPl;var Ncu,gPT,Z6F;Ncu=function(q,N){switch(N){case 1:return q%4!=0||q%100==0&&q%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
gPT=function(q,N,b,y,J){q=new Date(q,N,b);J=J||0;return q.valueOf()+(((y!==void 0?y:3)-J+7)%7-((q.getDay()+6)%7-J+7)%7)*864E5};
_.ht=function(q,N,b){typeof q==="number"?(this.date=Z6F(q,N||0,b||1),F8j(this,b||1)):_.AZ(q)?(this.date=Z6F(q.getFullYear(),q.getMonth(),q.getDate()),F8j(this,q.getDate())):(this.date=new Date(_.M$()),q=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),F8j(this,q))};
Z6F=function(q,N,b){N=new Date(q,N,b);q>=0&&q<100&&N.setFullYear(N.getFullYear()-1900);return N};
_.g=_.ht.prototype;_.g.firstDayOfWeek_=gR.FIRSTDAYOFWEEK;_.g.firstWeekCutOffDay_=gR.FIRSTWEEKCUTOFFDAY;_.g.clone=function(){var q=new _.ht(this.date);q.firstDayOfWeek_=this.firstDayOfWeek_;q.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return q};
_.g.getFullYear=function(){return this.date.getFullYear()};
_.g.getYear=function(){return this.getFullYear()};
_.g.getMonth=function(){return this.date.getMonth()};
_.g.getDate=function(){return this.date.getDate()};
_.g.getTime=function(){return this.date.getTime()};
_.g.getDay=function(){return this.date.getDay()};
_.g.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.g.getUTCMonth=function(){return this.date.getUTCMonth()};
_.g.getUTCDate=function(){return this.date.getUTCDate()};
_.g.getUTCDay=function(){return this.date.getDay()};
_.g.getUTCHours=function(){return this.date.getUTCHours()};
_.g.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.g.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.g.set=function(q){this.date=new Date(q.getFullYear(),q.getMonth(),q.getDate())};
_.g.setFullYear=function(q){this.date.setFullYear(q)};
_.g.setYear=function(q){this.setFullYear(q)};
_.g.setMonth=function(q){this.date.setMonth(q)};
_.g.setDate=function(q){this.date.setDate(q)};
_.g.setTime=function(q){this.date.setTime(q)};
_.g.setUTCFullYear=function(q){this.date.setUTCFullYear(q)};
_.g.setUTCMonth=function(q){this.date.setUTCMonth(q)};
_.g.setUTCDate=function(q){this.date.setUTCDate(q)};
_.g.add=function(q){if(q.years||q.months){var N=this.getMonth()+q.months+q.years*12,b=this.getYear()+Math.floor(N/12);N%=12;N<0&&(N+=12);var y=Math.min(Ncu(b,N),this.getDate());this.setDate(1);this.setFullYear(b);this.setMonth(N);this.setDate(y)}q.days&&(b=this.getYear(),N=b>=0&&b<=99?-1900:0,q=new Date((new Date(b,this.getMonth(),this.getDate(),12)).getTime()+q.days*864E5),this.setDate(1),this.setFullYear(q.getFullYear()+N),this.setMonth(q.getMonth()),this.setDate(q.getDate()),F8j(this,q.getDate()))};
_.g.JSC$11407_toIsoString=function(q){var N=this.getFullYear(),b=N<0?"-":N>=1E4?"+":"";return[b+_.Eq(Math.abs(N),b?6:4),_.Eq(this.getMonth()+1,2),_.Eq(this.getDate(),2)].join(q?"-":"")};
_.g.equals=function(q){return!(!q||this.getYear()!=q.getYear()||this.getMonth()!=q.getMonth()||this.getDate()!=q.getDate())};
_.g.toString=function(){return this.JSC$11407_toIsoString()};
var F8j=function(q,N){q.getDate()!=N&&q.date.setUTCHours(q.date.getUTCHours()+(q.getDate()<N?1:-1))};
_.ht.prototype.valueOf=function(){return this.date.valueOf()};var UC=function(q,N,b,y,J){this.reversed=!!N;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!b;q&&kc(this,q,y);this.depth=J!=void 0?J:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.oK(UC,dP);var kc=function(q,N,b,y){if(q.node=N)q.tagType=typeof b==="number"?b:q.node.nodeType!=1?0:q.reversed?-1:1;typeof y==="number"&&(q.depth=y)};
_.g=UC.prototype;_.g.JSC$11422_copyFrom=function(q){this.node=q.node;this.tagType=q.tagType;this.depth=q.depth;this.reversed=q.reversed;this.constrained=q.constrained};
_.g.clone=function(){return new UC(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.g.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return c7;var q=this.node;var N=this.reversed?-1:1;if(this.tagType==N){var b=this.reversed?q.lastChild:q.firstChild;b?kc(this,b):kc(this,q,N*-1)}else(b=this.reversed?q.previousSibling:q.nextSibling)?kc(this,b):kc(this,q.parentNode,N*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(q=this.node)?uK(q):c7};
_.g.equals=function(q){return q.node==this.node&&(!this.node||q.tagType==this.tagType)};
_.g.splice=function(q){var N=this.node,b=this.reversed?1:-1;this.tagType==b&&(this.tagType=b*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;UC.prototype.next.call(this);this.reversed=!this.reversed;b=_.pC(arguments[0])?arguments[0]:arguments;for(var y=b.length-1;y>=0;y--)_.k_(b[y],N);_.lC(N)};var RIJ=function(){},fz=function(q){for(var N=[],b=q.getTextRangeCount(),y=0;y<b;y++)N.push(q.getTextRange(y));
return N};
RIJ.prototype.isReversed=function(){return!1};
RIJ.prototype.getWindow=function(){return Wh(_.LM(this.JSC$11424_getStartNode()))};
var dOF=function(q,N){UC.call(this,q,N,!0)};
_.oK(dOF,UC);var Cz=function(q,N,b,y,J){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!J;if(q){this.startNode_=q;this.startOffset_=N;this.endNode_=b;this.endOffset_=y;if(q.nodeType==1&&q.tagName!="BR")if(q=q.childNodes,N=q[N])this.startNode_=N,this.startOffset_=0;else{q.length&&(this.startNode_=_.UJ(q));var E=!0}b.nodeType==1&&((this.endNode_=b.childNodes[y])?this.endOffset_=0:this.endNode_=b)}UC.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);E&&this.next()};
_.oK(Cz,dOF);_.g=Cz.prototype;_.g.JSC$11430_getStartNode=function(){return this.startNode_};
_.g.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)};
_.g.next=function(){return this.isLast()?c7:Cz.superClass_.next.call(this)};
_.g.JSC$11422_copyFrom=function(q){this.startNode_=q.startNode_;this.endNode_=q.endNode_;this.startOffset_=q.startOffset_;this.endOffset_=q.endOffset_;this.isReversed_=q.isReversed_;Cz.superClass_.JSC$11422_copyFrom.call(this,q)};
_.g.clone=function(){var q=new Cz(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);q.JSC$11422_copyFrom(this);return q};var cEx=function(){};
cEx.prototype.__iterator__=function(){return new Cz(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var IN=function(q){this.range_=q};
_.oK(IN,cEx);var uQ1=function(q){var N=_.LM(q).createRange();if(q.nodeType==3)N.setStart(q,0),N.setEnd(q,q.length);else if(KG(q)||q.nodeType==3){for(var b,y=q;(b=y.firstChild)&&(KG(b)||b.nodeType==3);)y=b;N.setStart(y,0);for(y=q;(b=y.lastChild)&&(KG(b)||b.nodeType==3);)y=b;N.setEnd(y,y.nodeType==1?y.childNodes.length:y.length)}else b=q.parentNode,q=Array.prototype.indexOf.call(b.childNodes,q),N.setStart(b,q),N.setEnd(b,q+1);return N},zIv=function(q,N,b,y){var J=_.LM(q).createRange();
J.setStart(q,N);J.setEnd(b,y);return J};
_.g=IN.prototype;_.g.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.g.getContainer=function(){return this.range_.commonAncestorContainer};
_.g.compareBrowserRangeEndpoints=function(q,N,b){return this.range_.compareBoundaryPoints(b==1?N==1?_.JZ.Range.START_TO_START:_.JZ.Range.START_TO_END:N==1?_.JZ.Range.END_TO_START:_.JZ.Range.END_TO_END,q)};
_.g.isCollapsed=function(){return this.range_.collapsed};
_.g.select=function(q){this.selectInternal(Wh(_.LM(this.range_.startContainer)).getSelection(),q)};
_.g.selectInternal=function(q){q.removeAllRanges();q.addRange(this.range_)};
_.g.insertNode=function(q,N){var b=this.range_.cloneRange();b.collapse(N);b.insertNode(q);b.detach();return q};
_.g.collapse=function(q){this.range_.collapse(q)};_.oK(X4,IN);X4.prototype.selectInternal=function(q,N){!N||this.isCollapsed()?X4.superClass_.selectInternal.call(this,q,N):(q.collapse(this.range_.endContainer,this.range_.endOffset),q.extend(this.range_.startContainer,this.range_.startOffset))};_.oK(Vi,IN);Vi.prototype.compareBrowserRangeEndpoints=function(q,N,b){return Vi.superClass_.compareBrowserRangeEndpoints.call(this,q,N,b)};
Vi.prototype.selectInternal=function(q,N){N?q.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):q.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var $OR=function(q){return _.Nd?new Vi(q):_.qd?new X4(q):new IN(q)};var Tq=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},tuq;
_.oK(Tq,RIJ);tuq=function(q,N){var b=new Tq;b.browserRangeWrapper_=q;b.isReversed_=!!N;return b};
_.mO1=function(q){q=_.Nd?new Vi(uQ1(q)):_.qd?new X4(uQ1(q)):new IN(uQ1(q));return tuq(q)};
_.sC=function(q,N,b,y){var J=new Tq;J.isReversed_=rEM(q,N,b,y);if(_.Rp(q)&&!KG(q)){var E=q.parentNode;N=Array.prototype.indexOf.call(E.childNodes,q);q=E}_.Rp(b)&&!KG(b)&&(E=b.parentNode,y=Array.prototype.indexOf.call(E.childNodes,b),b=E);J.isReversed_?(J.startNode_=b,J.startOffset_=y,J.endNode_=q,J.endOffset_=N):(J.startNode_=q,J.startOffset_=N,J.endNode_=b,J.endOffset_=y);return J};
_.g=Tq.prototype;_.g.clone=function(){var q=new Tq;q.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();q.startNode_=this.startNode_;q.startOffset_=this.startOffset_;q.endNode_=this.endNode_;q.endOffset_=this.endOffset_;q.isReversed_=this.isReversed_;return q};
_.g.JSC$11424_getType=function(){return"text"};
_.g.getBrowserRangeObject=function(){return nz(this).range_};
_.g.getTextRangeCount=function(){return 1};
_.g.getTextRange=function(){return this};
var nz=function(q){var N;if(!(N=q.browserRangeWrapper_)){N=q.JSC$11424_getStartNode();var b=q.JSC$11424_getStartOffset(),y=q.JSC$11424_getEndNode(),J=q.JSC$11424_getEndOffset();N=_.Nd?new Vi(zIv(N,b,y,J)):_.qd?new X4(zIv(N,b,y,J)):new IN(zIv(N,b,y,J));N=q.browserRangeWrapper_=N}return N};
_.g=Tq.prototype;_.g.getContainer=function(){return nz(this).getContainer()};
_.g.JSC$11424_getStartNode=function(){return this.startNode_||(this.startNode_=nz(this).range_.startContainer)};
_.g.JSC$11424_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=nz(this).range_.startOffset};
_.g.JSC$11424_getEndNode=function(){return this.endNode_||(this.endNode_=nz(this).range_.endContainer)};
_.g.JSC$11424_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=nz(this).range_.endOffset};
_.g.isReversed=function(){return this.isReversed_};
_.g.JSC$11424_containsRange=function(q,N){if(q.JSC$11424_getType()=="text"){var b=nz(this);q=nz(q);N=N&&!q.isCollapsed();q=q.range_;b=N?b.compareBrowserRangeEndpoints(q,0,1)>=0&&b.compareBrowserRangeEndpoints(q,1,0)<=0:b.compareBrowserRangeEndpoints(q,0,0)>=0&&b.compareBrowserRangeEndpoints(q,1,1)<=0}else b=!1;return b};
_.g.isCollapsed=function(){return nz(this).isCollapsed()};
_.g.JSC$11424_getText=function(){return nz(this).range_.toString()};
_.g.__iterator__=function(){return new Cz(this.JSC$11424_getStartNode(),this.JSC$11424_getStartOffset(),this.JSC$11424_getEndNode(),this.JSC$11424_getEndOffset())};
_.g.select=function(){nz(this).select(this.isReversed_)};
_.g.JSC$11424_removeContents=function(){var q=nz(this).range_;q.extractContents();if(q.startContainer.hasChildNodes()&&(q=q.startContainer.childNodes[q.startOffset])){var N=q.previousSibling;IkE(q)==""&&_.lC(q);N&&IkE(N)==""&&_.lC(N)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.g.insertNode=function(q,N){q=nz(this).insertNode(q,N);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return q};
_.g.collapse=function(q){q=this.isReversed()?!q:q;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(q);q?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Xko=function(){};
_.oK(Xko,RIJ);Xko.prototype.JSC$11424_containsRange=function(q,N){var b=fz(this);q=fz(q);return(N?gL:_.a2D)(q,function(y){return gL(b,function(J){return J.JSC$11424_containsRange(y,N)})})};
Xko.prototype.insertNode=function(q,N){N?_.hx(q,this.JSC$11424_getStartNode()):_.k_(q,this.JSC$11424_getEndNode());return q};var Vuo,jE1=k7().JSC$9407_document_.documentElement;Vuo=jE1.requestFullscreen?"fullscreenchange":jE1.webkitRequestFullscreen?"webkitfullscreenchange":jE1.mozRequestFullScreen?"mozfullscreenchange":jE1.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var xO4=function(){var q=k7().JSC$9407_document_;return!!(q.webkitIsFullScreen||q.mozFullScreen||q.msFullscreenElement||q.fullscreenElement)};var aN=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.oK(aN,Xko);_.g=aN.prototype;_.g.clone=function(){var q=new aN;q.browserRanges_=_.LC(this.browserRanges_);return q};
_.g.JSC$11424_getType=function(){return"mutli"};
_.g.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.g.getTextRangeCount=function(){return this.browserRanges_.length};
_.g.getTextRange=function(q){this.ranges_[q]||(this.ranges_[q]=tuq($OR(this.browserRanges_[q])));return this.ranges_[q]};
_.g.getContainer=function(){if(!this.container_){for(var q=[],N=this.getTextRangeCount(),b=0;b<N;b++)q.push(this.getTextRange(b).getContainer());this.container_=Kso.apply(null,q)}return this.container_};
var SV=function(q){q.sortedRanges_||(q.sortedRanges_=fz(q),q.sortedRanges_.sort(function(N,b){var y=N.JSC$11424_getStartNode();N=N.JSC$11424_getStartOffset();var J=b.JSC$11424_getStartNode();b=b.JSC$11424_getStartOffset();return y==J&&N==b?0:rEM(y,N,J,b)?1:-1}));
return q.sortedRanges_};
_.g=aN.prototype;_.g.JSC$11424_getStartNode=function(){return SV(this)[0].JSC$11424_getStartNode()};
_.g.JSC$11424_getStartOffset=function(){return SV(this)[0].JSC$11424_getStartOffset()};
_.g.JSC$11424_getEndNode=function(){return _.UJ(SV(this)).JSC$11424_getEndNode()};
_.g.JSC$11424_getEndOffset=function(){return _.UJ(SV(this)).JSC$11424_getEndOffset()};
_.g.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.g.JSC$11424_getText=function(){return fz(this).map(function(q){return q.JSC$11424_getText()}).join("")};
_.g.__iterator__=function(){return new Wt(this)};
_.g.select=function(){var q=this.getWindow().getSelection();q.removeAllRanges();for(var N=this.getTextRangeCount(),b=0;b<N;b++)q.addRange(this.getTextRange(b).getBrowserRangeObject())};
_.g.JSC$11424_removeContents=function(){fz(this).forEach(function(q){q.JSC$11424_removeContents()})};
_.g.collapse=function(q){if(!this.isCollapsed()){var N=q?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;N.collapse(q);this.ranges_=[N];this.sortedRanges_=[N];this.browserRanges_=[N.getBrowserRangeObject()]}};
var Wt=function(q){this.iterators_=null;this.currentIdx_=0;q&&(this.iterators_=SV(q).map(function(N){return _.krR(N)}));
UC.call(this,q?this.JSC$11430_getStartNode():null,!1,!0)};
_.oK(Wt,dOF);_.g=Wt.prototype;_.g.JSC$11430_getStartNode=function(){return this.iterators_[0].JSC$11430_getStartNode()};
_.g.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.g.next=function(){for(;this.currentIdx_<this.iterators_.length;){var q=this.iterators_[this.currentIdx_],N=q.next();if(N.done)this.currentIdx_++;else return kc(this,q.node,q.tagType,q.depth),N}return c7};
_.g.JSC$11422_copyFrom=function(q){this.iterators_=_.LC(q.iterators_);Wt.superClass_.JSC$11422_copyFrom.call(this,q)};
_.g.clone=function(){var q=new Wt(null);q.JSC$11422_copyFrom(this);return q};var vPF,rEM;_.N1=function(){var q=window.getSelection();return q&&vPF(q)};
vPF=function(q){var N=!1;if(q.createRange)try{var b=q.createRange()}catch(J){return null}else if(q.rangeCount){if(q.rangeCount>1){b=new aN;N=q.rangeCount;for(var y=0;y<N;y++)b.browserRanges_.push(q.getRangeAt(y));return b}b=q.getRangeAt(0);N=rEM(q.anchorNode,q.anchorOffset,q.focusNode,q.focusOffset)}else return null;return tuq($OR(b),N)};
_.Lz=function(q,N){return _.sC(q,N,q,N)};
_.pz=function(q,N,b,y){return _.sC(q,N,b,y)};
rEM=function(q,N,b,y){if(q==b)return y<N;var J;if(q.nodeType==1&&N)if(J=q.childNodes[N])q=J,N=0;else if(_.BY(q,b))return!0;if(b.nodeType==1&&y)if(J=b.childNodes[y])b=J,y=0;else if(_.BY(b,q))return!1;return(lkE(q,b)||N-y)>0};var Pt=function(){_.O1.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.fF)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.fF)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.fF)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.fF)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.fF)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.fF)(this.dispatchProgressEvent_,this)};
_.oK(Pt,_.O1);Pt.prototype.abort=function(){try{this.reader_.abort()}catch(q){throw new IZo(q,"aborting read");}};
Pt.prototype.getError=function(){return this.reader_.error&&new IZo(this.reader_.error,"reading file")};
Pt.prototype.dispatchProgressEvent_=function(q){this.dispatchEvent(new Tyx(q,this))};
Pt.prototype.disposeInternal=function(){Pt.superClass_.disposeInternal.call(this);delete this.reader_};
var Ylx=function(q){var N=new Pt,b=G4M(N);N.reader_.readAsArrayBuffer(q);return b},QEx=function(q){var N=new Pt,b=G4M(N);
N.reader_.readAsDataURL(q);return b},G4M=function(q){var N=new Al;
q.listen("loadend",_.dg(function(b,y){var J=y.reader_.result,E=y.getError();J==null||E?b.errback(E):b.callback(J);y.dispose()},N,q));
return N};var M2=function(){_.O1.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11464_eventHandler_=new _.xH(this);this.JSC$11464_isInitialized_=!1};
_.oK(M2,_.O1);var O6T=new _.jk("d"),wk1=new _.jk("beforedragstart"),i61=new _.jk("dragstart"),lUx=new _.jk("beforedragmove"),K8x=new _.jk("dragmove"),DOv=new _.jk("beforedragend"),hIT=new _.jk("dragend"),k4E=new _.jk("e");M2.prototype.isDragging=function(){return!!this.JSC$11464_dragger_};
var UO4=function(q,N){N.dlgGrowthDirection_=0;N.dlgDragHoverClass_=void 0;N.dlgDragPermission=0;q.dragLists_.push(N)},fUo=function(q,N){q.getHandleForDragItem_=N};
M2.prototype.init=function(){if(!this.JSC$11464_isInitialized_){for(var q=this.dragLists_.length,N=0;N<q;N++)for(var b=_.Uq(this.dragLists_[N]),y=b.length,J=0;J<y;++J){var E=b[J],F=this.getHandleForDragItem_(E),R=_.en(F);this.dragItemForHandle_[R]=E;this.dragItemHoverClasses_&&(this.JSC$11464_eventHandler_.listen(E,"mouseover",this.handleDragItemMouseover_),this.JSC$11464_eventHandler_.listen(E,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11464_eventHandler_.listen(F,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11464_eventHandler_.listen(F,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(E);this.JSC$11464_eventHandler_.listen(F,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11464_isInitialized_=!0}};
M2.prototype.disposeInternal=function(){this.JSC$11464_eventHandler_.dispose();for(var q=this.dragLists_.length,N=0;N<q;N++){var b=this.dragLists_[N];b.dlgGrowthDirection_=void 0;b.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;CR4(this);M2.superClass_.disposeInternal.call(this)};
var IUx=function(q,N){for(var b=q.dragLists_.length,y=0;y<b;y++){var J=q.dragLists_[y];J.dlgBounds_=tEn(J)}b=q.dragItems_.length;for(y=0;y<b;y++)J=q.dragItems_[y],J!=N&&(J.dlgBounds_=tEn(J))};
_.g=M2.prototype;
_.g.handlePotentialDragStart_=function(q){var N=_.en(q.currentTarget);N=this.dragItemForHandle_[N];if(N.parentElement.dlgDragPermission!=2){this.currDragItem_=N;a:{N=this.currDragItem_;for(var b=N.cloneNode(!0),y=KF("TEXTAREA",N),J=KF("TEXTAREA",b),E=0;E<y.length;E++)J[E].value=y[E].value;switch(N.tagName){case "TR":N=_.iu("TABLE",null,_.iu("TBODY",null,b));break a;case "TD":case "TH":N=_.iu("TABLE",null,_.iu("TBODY",null,_.iu("TR",null,b)));break a;case "TEXTAREA":b.value=N.value;default:N=b;break a}N=
void 0}this.draggerEl_=N;this.draggerElClasses_&&MH(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.LM(this.currDragItem_).body.appendChild(this.draggerEl_);b=_.pM(this.currDragItem_);N=this.draggerEl_;y=_.pM(N);if(b instanceof _.Sc){var F=b.y;b=b.x}sq(N,N.offsetLeft+(b-y.x),N.offsetTop+(Number(F)-y.y));this.JSC$11464_dragger_=new _.np(this.draggerEl_);_.CtF(this.JSC$11464_dragger_,this.hysteresisDistance_);
_.tn(this.JSC$11464_dragger_,"start",this.handleDragStart_,!1,this);_.tn(this.JSC$11464_dragger_,"end",this.handleDragEnd_,!1,this);_.tn(this.JSC$11464_dragger_,"earlycancel",this.JSC$11466_cleanup_,!1,this);this.dispatchEvent(new oN(O6T,this,q,this.currDragItem_,this.draggerEl_,this.JSC$11464_dragger_));this.JSC$11464_dragger_.startDrag(q)}};
_.g.handleDragStart_=function(q){if(this.dispatchEvent(new oN(wk1,this,q.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.OMF(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?MH(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var N=WsM(this.draggerEl_);this.draggerEl_.halfWidth=N.width/2;this.draggerEl_.halfHeight=N.height/2;N=this.draggerEl_.getBoundingClientRect();
var b=q.clientY,y=Ipl(this.JSC$11464_dragger_,q.clientX);if(y>N.right){var J=this.currDragItem_.getBoundingClientRect();this.JSC$11464_dragger_.deltaX=y-(y-J.left)/J.width*N.width}b=TdF(this.JSC$11464_dragger_,b);b>N.bottom&&(this.JSC$11464_dragger_.deltaY+=b-N.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";IUx(this,this.currDragItem_);this.currDragItem_.style.display="";_.tn(this.JSC$11464_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new oN(i61,
this,q.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11464_dragger_))}else q.preventDefault(),this.JSC$11466_cleanup_()};
_.g.handleDragMove_=function(q){var N=_.pM(this.draggerEl_);N=new _.Sc(N.x+this.draggerEl_.halfWidth,N.y+this.draggerEl_.halfHeight);a:{var b=null;if(this.currDragItem_.style.display!="none"){b=this.currDragItem_.parentNode;var y=tEn(b);if(TJo(N,y))break a}y=this.dragLists_.length;for(var J=0;J<y;J++){var E=this.dragLists_[J];if(E!=b&&TJo(N,E.dlgBounds_)){b=E;break a}}b=null}if(b){if(b==null)throw Error("$d");y=0;J=!1;E=void 0;switch(b.dlgGrowthDirection_){case 0:y=N.y;var F=sER;var R=nPj;break;case 4:J=
!0;case 2:y=N.x;F=aUJ;R=nPj;break;case 5:J=!0;case 3:y=N.x,F=SlJ,R=W8x}for(var c=null,z,m=_.Uq(b),r=m.length,X=0;X<r;X++){var V=m[X];if(V!=this.currDragItem_){var G=F(V.dlgBounds_);if(J){var w=L8E(V,N);E===void 0&&(E=w);R(y,G)&&(z==void 0||w<E||w==E&&(R(G,z)||G==z))&&(c=V,z=G);w<E&&(E=w)}else R(y,G)&&(z==void 0||R(G,z))&&(c=V,z=G)}}F=c!==null&&L8E(c,N)>E?null:c}else F=null;if(!this.dispatchEvent(new oN(lUx,this,q,this.currDragItem_,this.draggerEl_,this.JSC$11464_dragger_,N,b,F)))return!1;if(b&&b.dlgDragPermission!=
1)this.currDragItem_.parentNode==b&&_.OMF(this.currDragItem_)==F||b.insertBefore(this.currDragItem_,F),this.currDragItem_.style.display="",b.dlgDragHoverClass_&&_.nt(b,b.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",R=this.dragLists_.length,z=0;z<R;z++)y=this.dragLists_[z],y.dlgDragHoverClass_&&_.TT(y,y.dlgDragHoverClass_);b!=this.currHoverList_&&(this.currHoverList_=b,IUx(this,this.currDragItem_));this.dispatchEvent(new oN(K8x,this,q,this.currDragItem_,this.draggerEl_,this.JSC$11464_dragger_,
N,b,F));return!1};
_.g.JSC$11466_cleanup_=function(){CR4(this);this.JSC$11464_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var q=this.dragLists_.length,N=0;N<q;N++)this.dragLists_[N].dlgBounds_=null;q=this.dragItems_.length;for(N=0;N<q;N++)this.dragItems_[N].dlgBounds_=null};
_.g.handleDragEnd_=function(q){if(!this.dispatchEvent(new oN(DOv,this,q,this.currDragItem_,this.draggerEl_,this.JSC$11464_dragger_)))return!1;CR4(this);this.dispatchEvent(new oN(hIT,this,q,this.currDragItem_,this.draggerEl_,this.JSC$11464_dragger_));this.JSC$11466_cleanup_();return!0};
var CR4=function(q){_.RA(q.JSC$11464_dragger_);var N=q.draggerEl_&&q.draggerEl_.parentElement;q.draggerEl_&&_.lC(q.draggerEl_);q.currDragItem_&&q.currDragItem_.style.display=="none"&&(q.origList_.insertBefore(q.currDragItem_,q.origNextItem_),q.currDragItem_.style.display="");q.currDragItemClasses_&&q.currDragItem_?UmT(q.currDragItem_,q.currDragItemClasses_||[]):q.currDragItem_&&(q.currDragItem_.style.visibility="");for(var b=q.dragLists_.length,y=0;y<b;y++){var J=q.dragLists_[y];J.dlgDragHoverClass_&&
_.TT(J,J.dlgDragHoverClass_)}N&&q.dispatchEvent(new oN(k4E,q,null,q.currDragItem_,q.draggerEl_,q.JSC$11464_dragger_))};
_.g=M2.prototype;_.g.getHandleForDragItem_=function(q){return q};
_.g.handleDragItemMouseover_=function(q){MH(q.currentTarget,this.dragItemHoverClasses_||[])};
_.g.handleDragItemMouseout_=function(q){UmT(q.currentTarget,this.dragItemHoverClasses_||[])};
_.g.handleDragItemHandleMouseover_=function(q){MH(q.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.g.handleDragItemHandleMouseout_=function(q){UmT(q.currentTarget,this.dragItemHandleHoverClasses_||[])};
var TJo=function(q,N){return q.x>N.left&&q.x<N.left+N.width&&q.y>N.top&&q.y<N.top+N.height},L8E=function(q,N){q=q.dlgBounds_;
return Math.abs(N.y-(q.top+(q.height-1)/2))},sER=function(q){return q.top+q.height-1},aUJ=function(q){return q.left+q.width-1},SlJ=function(q){return q.left||0},nPj=function(q,N){return q<N},W8x=function(q,N){return q>N},oN=function(q,N,b,y,J,E){_.xC.call(this,q);
this.event=b;this.currDragItem=y;this.draggerEl=J;this.JSC$11468_dragger=E};
_.oK(oN,_.xC);_.oK(vB,_.UN);var pk1=new _.Sc(0,0);vB.prototype.JSC$11472_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
vB.prototype.JSC$11472_onMouseMove=function(q){var N=this.containerIsActuallyContent_?pk1:Dk(k7(this.containerNode_)),b=this.horizontalScrolling_?this.calculateScrollDelta(q.clientX+N.x,this.scrollBounds_.left,this.scrollBounds_.width):0,y=this.calculateScrollDelta(q.clientY+N.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=b;this.scrollDelta_.y=y;!(b=!b&&!y)&&(b=this.constrainScroll_)&&(b=q.clientX+N.x,q=q.clientY+N.y,N=this.containerBounds_,b=!(N.left<=b&&N.left+N.width>=
b&&N.top<=q&&N.top+N.height>=q));b?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
vB.prototype.calculateScrollDelta=function(q,N,b){var y=0;q<N?y=-8:q>N+b&&(y=8);return y};
vB.prototype.disposeInternal=function(){vB.superClass_.disposeInternal.call(this);this.JSC$11470_eventHandler_.dispose();this.scrollTimer_.dispose()};var PRo={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"}}},At=PRo;At=PRo;var eV={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 Mul=function(){},TC=function(q){if(typeof q=="number"){var N=new Mul;
N.standardOffset_=q;var b=q;if(b==0)b="Etc/GMT";else{var y=["Etc/GMT",b<0?"-":"+"];b=Math.abs(b);y.push(Math.floor(b/60)%100);b%=60;b!=0&&y.push(":",_.Eq(b,2));b=y.join("")}N.timeZoneId_=b;b=q;b==0?b="UTC":(y=["UTC",b<0?"+":"-"],b=Math.abs(b),y.push(Math.floor(b/60)%100),b%=60,b!=0&&y.push(":",b),b=y.join(""));q=oPF(q);N.tzNames_=[b,b];N.tzNamesExt_={STD_LONG_NAME_GMT:q,STD_GENERIC_LOCATION:q};N.transitions_=[];return N}N=new Mul;N.timeZoneId_=q.id;N.standardOffset_=-q.std_offset;N.tzNames_=q.names;
N.tzNamesExt_=q.names_ext;N.transitions_=q.transitions;return N},oPF=function(q){var N=["GMT"];
N.push(q<=0?"+":"-");q=Math.abs(q);N.push(_.Eq(Math.floor(q/60)%100,2),":",_.Eq(q%60,2));return N.join("")},AEv=function(q,N){N=Date.UTC(N.getUTCFullYear(),N.getUTCMonth(),N.getUTCDate(),N.getUTCHours(),N.getUTCMinutes())/36E5;
for(var b=0;b<q.transitions_.length&&N>=q.transitions_[b];)b+=2;return b==0?0:q.transitions_[b-1]},eI1=function(q,N){q=q.standardOffset_-AEv(q,N);
return q===-1440?0:q};var sR=function(q,N){this.patternParts_=[];this.JSC$11483_dateTimeSymbols_=N||gR;typeof q=="number"?BJ1(this,q):H61(this,q)},q$E=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Bt=function(q){return q.getHours?q.getHours():0},H61=function(q,N){for(G9J&&(N=N.replace(/\u200f/g,""));N;){for(var b=N,y=0;y<q$E.length;++y){var J=N.match(q$E[y]);
if(J){var E=J[0];N=N.substring(E.length);y==0&&(E=="''"?E="'":(E=E.substring(1,J[1]=="'"?E.length-1:E.length),E=E.replace(/''/g,"'")));q.patternParts_.push({text:E,type:y});break}}if(b===N)throw Error("ae`"+N);}};
sR.prototype.format=function(q,N){if(!q)throw Error("be");var b=N?(q.getTimezoneOffset()-eI1(N,q))*6E4:0,y=b?new Date(q.getTime()+b):q,J=y;N&&y.getTimezoneOffset()!=q.getTimezoneOffset()&&(y=new Date(y.getTime()+(y.getTimezoneOffset()-q.getTimezoneOffset())*6E4),J=new Date(q.getTime()+(b+(b>0?-864E5:864E5))));b=[];for(var E=0;E<this.patternParts_.length;++E){var F=this.patternParts_[E].text;1==this.patternParts_[E].type?b.push(Nj1(this,F,q,y,J,N)):b.push(F)}return b.join("")};
var BJ1=function(q,N){if(N<4)var b=q.JSC$11483_dateTimeSymbols_.DATEFORMATS[N];else if(N<8)b=q.JSC$11483_dateTimeSymbols_.TIMEFORMATS[N-4];else if(N<12)b=q.JSC$11483_dateTimeSymbols_.DATETIMEFORMATS[N-8],b=b.replace("{1}",q.JSC$11483_dateTimeSymbols_.DATEFORMATS[N-8]),b=b.replace("{0}",q.JSC$11483_dateTimeSymbols_.TIMEFORMATS[N-8]);else if(N===12)b=q.JSC$11483_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(N===13)b=q.JSC$11483_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{BJ1(q,10);return}H61(q,b)},Ht=function(q,N){N=String(N);
q=q.JSC$11483_dateTimeSymbols_||gR;if(q.ZERODIGIT!==void 0&&!vwu){for(var b=[],y=0;y<N.length;y++){var J=N.charCodeAt(y);b.push(48<=J&&J<=57?String.fromCharCode(q.ZERODIGIT+J-48):N.charAt(y))}N=b.join("")}return N},vwu=!1,G9J=!1,yOR=function(q,N,b,y){b=b.getFullYear();
b<=0&&y&&(b=1-b);return Ht(q,bTx(b,N))},bTx=function(q,N){N==2&&(q%=100);
q<0&&N++;return _.Eq(q,N)},qC=function(q){if(!(q.getHours&&q.getSeconds&&q.getMinutes))throw Error("ce");
},JOx=function(q,N){qC(N);
N=Bt(N);return q.JSC$11483_dateTimeSymbols_.AMPMS[N>=12&&N<24?1:0]},Nj1=function(q,N,b,y,J,E){var F=N.length;
switch(N.charAt(0)){case "G":return b=y.getFullYear()>0?1:0,F>=4?q.JSC$11483_dateTimeSymbols_.ERANAMES[b]:q.JSC$11483_dateTimeSymbols_.ERAS[b];case "y":return yOR(q,F,y,!0);case "Y":return b=(new Date(gPT(y.getFullYear(),y.getMonth(),y.getDate(),q.JSC$11483_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,q.JSC$11483_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),F==2&&(b%=100),Ht(q,bTx(b,F));case "u":return yOR(q,F,y,!1);case "M":a:switch(b=y.getMonth(),F){case 5:F=q.JSC$11483_dateTimeSymbols_.NARROWMONTHS[b];
break a;case 4:F=q.JSC$11483_dateTimeSymbols_.MONTHS[b];break a;case 3:F=q.JSC$11483_dateTimeSymbols_.SHORTMONTHS[b];break a;default:F=Ht(q,_.Eq(b+1,F))}return F;case "k":return qC(J),Ht(q,_.Eq(Bt(J)||24,F));case "S":return Ht(q,(J.getMilliseconds()/1E3).toFixed(Math.min(3,F)).slice(2)+(F>3?_.Eq(0,F-3):""));case "E":return b=y.getDay(),F>=4?q.JSC$11483_dateTimeSymbols_.WEEKDAYS[b]:q.JSC$11483_dateTimeSymbols_.SHORTWEEKDAYS[b];case "a":return JOx(q,J);case "b":return JOx(q,J);case "B":return JOx(q,
J);case "h":return qC(J),Ht(q,_.Eq(Bt(J)%12||12,F));case "K":return qC(J),Ht(q,_.Eq(Bt(J)%12,F));case "H":return qC(J),Ht(q,_.Eq(Bt(J),F));case "c":a:switch(b=y.getDay(),F){case 5:F=q.JSC$11483_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[b];break a;case 4:F=q.JSC$11483_dateTimeSymbols_.STANDALONEWEEKDAYS[b];break a;case 3:F=q.JSC$11483_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[b];break a;default:F=Ht(q,_.Eq(b,1))}return F;case "L":a:switch(b=y.getMonth(),F){case 5:F=q.JSC$11483_dateTimeSymbols_.STANDALONENARROWMONTHS[b];
break a;case 4:F=q.JSC$11483_dateTimeSymbols_.STANDALONEMONTHS[b];break a;case 3:F=q.JSC$11483_dateTimeSymbols_.STANDALONESHORTMONTHS[b];break a;default:F=Ht(q,_.Eq(b+1,F))}return F;case "Q":return b=Math.floor(y.getMonth()/3),F<4?q.JSC$11483_dateTimeSymbols_.SHORTQUARTERS[b]:q.JSC$11483_dateTimeSymbols_.QUARTERS[b];case "d":return Ht(q,_.Eq(y.getDate(),F));case "m":return qC(J),Ht(q,_.Eq(J.getMinutes?J.getMinutes():0,F));case "s":return qC(J),Ht(q,_.Eq(J.getSeconds(),F));case "v":return(E||TC(b.getTimezoneOffset())).timeZoneId_;
case "V":return q=E||TC(b.getTimezoneOffset()),F<=2?q.timeZoneId_:AEv(q,b)>0?q.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?q.tzNamesExt_.DST_GENERIC_LOCATION:q.tzNamesExt_.DST_GENERIC_LOCATION:q.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?q.tzNamesExt_.STD_GENERIC_LOCATION:q.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return b=gPT(J.getFullYear(),J.getMonth(),J.getDate(),q.JSC$11483_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,q.JSC$11483_dateTimeSymbols_.FIRSTDAYOFWEEK),Ht(q,_.Eq(Math.floor(Math.round((b-(new Date((new Date(b)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,F));case "z":return q=E||TC(b.getTimezoneOffset()),F<4?q.tzNames_[AEv(q,b)>0?2:0]:q.tzNames_[AEv(q,b)>0?3:1];case "Z":return N=E||TC(b.getTimezoneOffset()),F<4?(F=-eI1(N,b),q=[F<0?"-":"+"],F=Math.abs(F),q.push(_.Eq(Math.floor(F/60)%100,2),_.Eq(F%60,2)),F=q.join("")):F=Ht(q,oPF(eI1(N,b))),F;default:return""}};var Ee4=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,ge1=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,OHJ=function(q){this.patternParts_=[];this.JSC$11492_dateTimeSymbols_=gR;if(typeof q=="number"){q>11&&(q=10);if(q<4)var N=this.JSC$11492_dateTimeSymbols_.DATEFORMATS[q];else q<8?N=this.JSC$11492_dateTimeSymbols_.TIMEFORMATS[q-4]:(N=this.JSC$11492_dateTimeSymbols_.DATETIMEFORMATS[q-8],N=N.replace("{1}",this.JSC$11492_dateTimeSymbols_.DATEFORMATS[q-8]),N=N.replace("{0}",this.JSC$11492_dateTimeSymbols_.TIMEFORMATS[q-
8]));ZTj(this,N)}else ZTj(this,q)},ZTj=function(q,N){for(var b=!1,y="",J=0;J<N.length;J++){var E=N.charAt(J);
if(Ee4.test(E))for(y.length>0&&(q.patternParts_.push({text:y,count:0,abutStart:!1,numeric:!1}),y=""),q.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});J<N.length-1&&N.charAt(J+1)==" ";)J++;else if(b)E=="'"?J+1<N.length&&N.charAt(J+1)=="'"?(y+="'",J++):b=!1:y+=E;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(E)>=0){y.length>0&&(q.patternParts_.push({text:y,count:0,abutStart:!1,numeric:!1}),y="");for(var F=N.charAt(J),R=J+1;R<N.length&&N.charAt(R)==F;)R++;F=R-J;F<=0?R=!1:(R="MydhHmsSDkK".indexOf(E),
R=R>0||R==0&&F<3);q.patternParts_.push({text:E,count:F,abutStart:!1,numeric:R});J+=F-1}else E=="'"?J+1<N.length&&N.charAt(J+1)=="'"?(y+="'",J++):b=!0:y+=E}y.length>0&&q.patternParts_.push({text:y,count:0,abutStart:!1,numeric:!1});N=!1;for(b=0;b<q.patternParts_.length;b++)q.patternParts_[b].numeric?!N&&b+1<q.patternParts_.length&&q.patternParts_[b+1].numeric&&(N=!0,q.patternParts_[b].abutStart=!0):N=!1};
OHJ.prototype.parse=function(q,N,b){var y=!1,J=!1;b&&(y=b.predictive||!1,J=b.validate||!1);if(y)for(b=0;b<this.patternParts_.length;b++){var E=this.patternParts_[b];if(E.count>0&&("abBhHkKm".indexOf(E.text.charAt(0))<0||E.count>2||E.abutStart))throw Error("de`"+E.text.charAt(0));}E=new FIq;b=[0];E.dayPeriodIndex=-1;for(var F=0;F<this.patternParts_.length&&!(y&&b[0]>=q.length);F++){if(this.patternParts_[F].count==0){a:{var R=q;var c=b,z=this.patternParts_[F],m=y;if(z.text.match(Ee4)!=null){if(z=c[0],
R7j(R,c),c[0]>z){R=!0;break a}}else{if(R.indexOf(z.text,c[0])==c[0]){c[0]+=z.text.length;R=!0;break a}if(m&&z.text.indexOf(R.substring(c[0]))==0){c[0]+=R.length-c[0];R=!0;break a}}R=!1}if(R)continue;return 0}if(this.patternParts_[F].abutStart){a:{c=q;z=b;m=F;var r=z[0],X=0;for(R=m;R<this.patternParts_.length;R++){var V=this.patternParts_[R],G=V.count;if(G===0)break;if(R==m&&(G-=X,X++,G==0)){R=0;break a}var w=R>m&&V.numeric,D=z[0];if(!dEE(this,c,z,V,G,E,!1)||w&&z[0]-D<G)R=m-1,z[0]=r}R-=m}if(R<=0)return 0;
F+=R-1}else if(!dEE(this,q,b,this.patternParts_[F],0,E,y))return 0}a:{q=J;if(N==null)throw Error("ee");E.era!=void 0&&E.year!=void 0&&E.era==0&&E.year>0&&(E.year=-(E.year-1));E.year!=void 0&&N.setFullYear(E.year);y=N.getDate();N.setDate(1);E.month!=void 0&&N.setMonth(E.month);E.day!=void 0?N.setDate(E.day):(J=Ncu(N.getFullYear(),N.getMonth()),N.setDate(y>J?J:y));typeof N.setHours==="function"&&(E.hours==void 0&&(E.hours=N.getHours()),E.hours<12&&(E.ampm!=void 0&&E.ampm>0?E.hours+=12:E.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(E.dayPeriodName)||["night1","night2"].includes(E.dayPeriodName)&&E.hours>=6)&&(E.hours+=12)),N.setHours(E.hours));typeof N.setMinutes==="function"&&E.minutes!=void 0&&N.setMinutes(E.minutes);typeof N.setSeconds==="function"&&E.seconds!=void 0&&N.setSeconds(E.seconds);typeof N.setMilliseconds==="function"&&E.milliseconds!=void 0&&N.setMilliseconds(E.milliseconds);if(q&&(E.year&&E.year!=N.getFullYear()||E.month&&E.month!=
N.getMonth()||E.day&&E.day!=N.getDate()||E.hours&&E.hours>=24||E.minutes&&E.minutes>=60||E.seconds&&E.seconds>=60||E.milliseconds&&E.milliseconds>=1E3))N=!1;else{E.tzOffset!=void 0&&N.setTime(N.getTime()+(E.tzOffset-N.getTimezoneOffset())*60*1E3);E.ambiguousYear&&(q=new Date,q.setFullYear(q.getFullYear()-80),N.getTime()<q.getTime()&&N.setFullYear(q.getFullYear()+100));if(E.dayOfWeek!=void 0)if(E.day==void 0)E=(7+E.dayOfWeek-N.getDay())%7,E>3&&(E-=7),q=N.getMonth(),N.setDate(N.getDate()+E),N.getMonth()!=
q&&N.setDate(N.getDate()+(E>0?-7:7));else if(E.dayOfWeek!=N.getDay()){N=!1;break a}N=!0}}return N?b[0]:0};
var dEE=function(q,N,b,y,J,E,F){R7j(N,b);if(y.numeric&&J>0&&b[0]+J>N.length)return!1;switch(y.text.charAt(0)){case "G":return NC(N,b,[q.JSC$11492_dateTimeSymbols_.ERAS],function(R){return E.era=R}),!0;
case "M":case "L":return cOx(q,N,b,J,y,E);case "E":return NC(N,b,[q.JSC$11492_dateTimeSymbols_.WEEKDAYS,q.JSC$11492_dateTimeSymbols_.SHORTWEEKDAYS],function(R){return E.dayOfWeek=R});
case "B":case "b":return J=[],q=[[].concat(q.JSC$11492_dateTimeSymbols_.AMPMS)],J.push("isAm"),J.push("isPm"),N=NC(N,b,q,function(R){return E.dayPeriodIndex=R},F),E.dayPeriodName=J[E.dayPeriodIndex],F?N:!0;
case "a":return N=NC(N,b,[q.JSC$11492_dateTimeSymbols_.AMPMS],function(R){return E.ampm=R},F),F?N:!0;
case "y":return u3T(q,N,b,y,J,E);case "Q":return NC(N,b,[q.JSC$11492_dateTimeSymbols_.QUARTERS,q.JSC$11492_dateTimeSymbols_.SHORTQUARTERS],function(R){E.month=R*3;E.day=1});
case "d":return be(q,N,b,y,J,function(R){E.day=R}),!0;
case "S":return z7j(q,N,b,J,E);case "h":case "K":case "H":case "k":return N=be(q,N,b,y,J,function(R){E.hours=y.text.charAt(0)==="h"&&R===12?0:R},F),F?N:!0;
case "m":return N=be(q,N,b,y,J,function(R){E.minutes=R},F),F?N:!0;
case "s":return be(q,N,b,y,J,function(R){E.seconds=R}),!0;
case "z":case "Z":case "v":return $E1(q,N,b,E);default:return!1}},u3T=function(q,N,b,y,J,E){var F=b[0];
J=yM(q,N,b,J);J===null&&(J=yM(q,N,b,0,!0));if(J===null)return!1;J>=0&&b[0]-F==2&&y.count==2?(q=J,N=(new Date).getFullYear()-80,b=N%100,E.ambiguousYear=q==b,q+=Math.floor(N/100)*100+(q<b?100:0),E.year=q):E.year=J;return!0},cOx=function(q,N,b,y,J,E){return J.numeric&&be(q,N,b,J,y,function(F){E.month=F-1})?!0:NC(N,b,[q.JSC$11492_dateTimeSymbols_.MONTHS,
q.JSC$11492_dateTimeSymbols_.STANDALONEMONTHS,q.JSC$11492_dateTimeSymbols_.SHORTMONTHS,q.JSC$11492_dateTimeSymbols_.STANDALONESHORTMONTHS],function(F){E.month=F})},z7j=function(q,N,b,y,J){var E=b[0];
q=yM(q,N,b,y);if(q===null)return!1;b=b[0]-E;J.milliseconds=b<3?q*Math.pow(10,3-b):Math.round(q/Math.pow(10,b-3));return!0},$E1=function(q,N,b,y){N.indexOf("GMT",b[0])==b[0]&&(b[0]+=3);
if(b[0]>=N.length)return y.tzOffset=0,!0;var J=b[0],E=yM(q,N,b,0,!0);if(E===null)return!1;if(b[0]<N.length&&N.charAt(b[0])==":"){var F=E*60;b[0]++;E=yM(q,N,b,0);if(E===null)return!1;F+=E}else F=E,F=F<24&&b[0]-J<=3?F*60:F%100+F/100*60;y.tzOffset=-F;return!0},be=function(q,N,b,y,J,E,F){F=F||!1;
var R=b[0];q=yM(q,N,b,J);if(q===null)return!1;if(F&&b[0]-R<y.count){if(b[0]<N.length)return!1;q*=Math.pow(10,y.count-(b[0]-R))}E(q);return!0},NC=function(q,N,b,y,J){J=J||!1;
for(var E,F=0;F<b.length;F++){E=N;for(var R=b[F],c=J,z=0,m=null,r=q.substring(E[0]).toLowerCase(),X=0;X<R.length;X++){var V=R[X].toLowerCase();if(c&&V.indexOf(r)==0){z=r.length;m=X;break}R[X].length>z&&r.indexOf(V)==0&&(z=R[X].length,m=X)}m!==null&&(E[0]+=z);E=m;if(E!==null)return y(E),!0}return!1},R7j=function(q,N){(q=q.substring(N[0]).match(ge1))&&(N[0]+=q[0].length)},yM=function(q,N,b,y,J){N=y>0?N.substring(0,b[0]+y):N;
J=J||!1;if(q.JSC$11492_dateTimeSymbols_.ZERODIGIT){y=[];for(var E=b[0];E<N.length;E++){var F=N.charCodeAt(E)-q.JSC$11492_dateTimeSymbols_.ZERODIGIT;y.push(0<=F&&F<=9?String.fromCharCode(F+48):N.charAt(E))}N=y.join("")}else N=N.substring(b[0]);q=N.match(new RegExp("^"+(J?"[+-]?":"")+"\\d+"));if(!q)return null;b[0]+=q[0].length;return parseInt(q[0],10)},FIq=function(){};
FIq.prototype.ambiguousYear=!1;var tz1;
tz1={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 mEx={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}"]};
mEx={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 rO1=function(){var q={type:"unit",style:"narrow"};this.listType_=q&&q.type?q.type:"conjunction";this.listStyle_=q&&q.style?q.style:"long";this.listSymbols_=mEx;q=0;switch(this.listStyle_){case "short":q=1;break;case "narrow":q=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[q];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[q];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[q];this.listEndPattern_=
this.listSymbols_.AND_END[q];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[q];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[q];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[q];this.listEndPattern_=this.listSymbols_.OR_END[q];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[q],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[q],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[q],this.listEndPattern_=this.listSymbols_.UNIT_END[q]}};
rO1.prototype.format=function(q){return XGj(this,q)};
var XGj=function(q,N){var b=N.length;switch(b){case 0:return"";case 1:return String(N[0]);case 2:return q.listTwoPattern_.replace("{0}",String(N[0])).replace("{1}",String(N[1]))}for(var y=q.listStartPattern_.replace("{0}",String(N[0])).replace("{1}",String(N[1])),J=2;J<b-1;++J)y=q.listMiddlePattern_.replace("{0}",y).replace("{1}",String(N[J]));return q.listEndPattern_.replace("{0}",y).replace("{1}",String(N[b-1]))};var VzM={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"},jDE=VzM,xEx=VzM;xEx=jDE=VzM;var GSx,JG,gC,cun,ED,vev;
_.fD=function(q,N,b,y){var J;if(J=N){a:if(N&&N.length===3){for(J=0;J<3;J++){var E=N[J];if(E<"A"||E>"Z"&&E<"a"||E>"z"){J=!1;break a}}J=!0}else J=!1;J=!J}if(J)throw new TypeError("fe");this.intlCurrencyCode_=N?N.toUpperCase():null;this.currencyStyle_=b||0;this.overrideNumberFormatSymbols_=y||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_=JG(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof q==="number")switch(q){case 1:ED(this,JG(this).DECIMAL_PATTERN);break;case 2:ED(this,JG(this).SCIENTIFIC_PATTERN);break;case 3:ED(this,JG(this).PERCENT_PATTERN);break;case 4:q=JG(this).CURRENCY_PATTERN;N=["0"];if(b=
eV[gC(this)]){b=b[0]&7;if(b>0)for(N.push("."),y=0;y<b;y++)N.push("0");q=q.replace(/0.00/g,N.join(""))}ED(this,q);break;case 5:vev(this,1);break;case 6:vev(this,2);break;default:throw Error("ie");}else ED(this,q)};
GSx=!1;JG=function(q){return q.overrideNumberFormatSymbols_||(GSx?xEx:jDE)};
gC=function(q){return q.intlCurrencyCode_||JG(q).DEF_CURRENCY_CODE};
cun=function(q,N){if(N>308)throw Error("he`"+N);q.maximumFractionDigits_=N;return q};
ED=function(q,N){var b=[0];q.positivePrefix_=Y$l(q,N,b);for(var y=b[0],J=-1,E=0,F=0,R=0,c=-1,z=N.length,m=!0;b[0]<z&&m;b[0]++)switch(N.charAt(b[0])){case "#":F>0?R++:E++;c>=0&&J<0&&c++;break;case "0":if(R>0)throw Error("oe`"+N);F++;c>=0&&J<0&&c++;break;case ",":c>0&&q.groupingArray_.push(c);c=0;break;case ".":if(J>=0)throw Error("pe`"+N);J=E+F+R;break;case "E":if(q.useExponentialNotation_)throw Error("qe`"+N);q.useExponentialNotation_=!0;q.minExponentDigits_=0;b[0]+1<z&&N.charAt(b[0]+1)=="+"&&(b[0]++,
q.useSignForPositiveExponent_=!0);for(;b[0]+1<z&&N.charAt(b[0]+1)=="0";)b[0]++,q.minExponentDigits_++;if(E+F<1||q.minExponentDigits_<1)throw Error("re`"+N);m=!1;break;default:b[0]--,m=!1}F==0&&E>0&&J>=0&&(F=J,F==0&&F++,R=E-F,E=F-1,F=1);if(J<0&&R>0||J>=0&&(J<E||J>E+F)||c==0)throw Error("se`"+N);R=E+F+R;q.maximumFractionDigits_=J>=0?R-J:0;J>=0&&(q.minimumFractionDigits_=E+F-J,q.minimumFractionDigits_<0&&(q.minimumFractionDigits_=0));q.minimumIntegerDigits_=(J>=0?J:R)-E;q.useExponentialNotation_&&(q.maximumIntegerDigits_=
E+q.minimumIntegerDigits_,q.maximumFractionDigits_==0&&q.minimumIntegerDigits_==0&&(q.minimumIntegerDigits_=1));q.groupingArray_.push(Math.max(0,c));q.decimalSeparatorAlwaysShown_=J==0||J==R;y=b[0]-y;q.positiveSuffix_=Y$l(q,N,b);b[0]<N.length&&N.charAt(b[0])==";"?(b[0]++,q.multiplier_!=1&&(q.negativePercentSignExpected_=!0),q.negativePrefix_=Y$l(q,N,b),b[0]+=y,q.negativeSuffix_=Y$l(q,N,b)):(q.negativePrefix_+=q.positivePrefix_,q.negativeSuffix_+=q.positiveSuffix_)};
vev=function(q,N){q.compactStyle_=N;ED(q,JG(q).DECIMAL_PATTERN);q.minimumFractionDigits_=0;cun(q,2);if(q.minimumFractionDigits_>0)throw Error("ge");q.significantDigits_=2};
_.fD.prototype.parse=function(q,N){N=N||[0];if(this.compactStyle_!==0)throw Error("je");q=q.replace(/ |\u202f/g,"\u00a0");var b=q.indexOf(this.positivePrefix_,N[0])==N[0],y=q.indexOf(this.negativePrefix_,N[0])==N[0];b&&y&&(this.positivePrefix_.length>this.negativePrefix_.length?y=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(b=!1));b?N[0]+=this.positivePrefix_.length:y&&(N[0]+=this.negativePrefix_.length);if(q.indexOf(JG(this).INFINITY,N[0])==N[0]){N[0]+=JG(this).INFINITY.length;var J=
Infinity}else{J=q;var E=!1,F=!1,R=!1,c=-1,z=1,m=JG(this).DECIMAL_SEP,r=JG(this).GROUP_SEP,X=JG(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ke");r=r.replace(/\u202f/g,"\u00a0");for(var V="";N[0]<J.length;N[0]++){var G=J.charAt(N[0]),w=QDM(this,G);if(w>=0&&w<=9)V+=w,R=!0;else if(G==m.charAt(0)){if(E||F)break;V+=".";E=!0}else if(G==r.charAt(0)&&("\u00a0"!=r.charAt(0)||N[0]+1<J.length&&QDM(this,J.charAt(N[0]+1))>=0)){if(E||F)break}else if(G==X.charAt(0)){if(F)break;V+="E";F=!0;c=N[0]}else if(G==
"+"||G=="-"){if(R&&c!=N[0]-1)break;V+=G}else if(this.multiplier_==1&&G==JG(this).PERCENT.charAt(0)){if(z!=1)break;z=100;if(R){N[0]++;break}}else if(this.multiplier_==1&&G==JG(this).PERMILL.charAt(0)){if(z!=1)break;z=1E3;if(R){N[0]++;break}}else break}this.multiplier_!=1&&(z=this.multiplier_);J=parseFloat(V)/z}if(b){if(q.indexOf(this.positiveSuffix_,N[0])!=N[0])return NaN;N[0]+=this.positiveSuffix_.length}else if(y){if(q.indexOf(this.negativeSuffix_,N[0])!=N[0])return NaN;N[0]+=this.negativeSuffix_.length}return y?
-J:J};
_.fD.prototype.format=function(q){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("le");if(isNaN(q))return JG(this).NAN;var N=[];var b=q;if(this.compactStyle_==0)b=ZY;else{b=Math.abs(b);var y=OTo(this,b<=1?0:wGq(b)).divisorBase;b=OTo(this,y+wGq(iTT(this,FK(b,-y)).intValue))}q=FK(q,-b.divisorBase);(y=q<0||q==0&&1/q<0)?b.negative_prefix?N.push(b.negative_prefix):(N.push(b.prefix),N.push(this.negativePrefix_)):(N.push(b.prefix),N.push(this.positivePrefix_));if(isFinite(q))if(q*=
y?-1:1,q*=this.multiplier_,this.useExponentialNotation_){var J=q;if(J==0)l7x(this,J,this.minimumIntegerDigits_,N),KIq(this,0,N);else{var E=Math.floor(Math.log(J)/Math.log(10)+2E-15);J=FK(J,-E);var F=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(F=E%this.maximumIntegerDigits_,F<0&&(F=this.maximumIntegerDigits_+F),J=FK(J,F),E-=F,F=1):this.minimumIntegerDigits_<1?(E++,J=FK(J,-1)):(E-=this.minimumIntegerDigits_-1,J=FK(J,this.minimumIntegerDigits_-
1));l7x(this,J,F,N);KIq(this,E,N)}}else l7x(this,q,this.minimumIntegerDigits_,N);else N.push(JG(this).INFINITY);y?b.negative_suffix?N.push(b.negative_suffix):(isFinite(q)&&N.push(b.suffix),N.push(this.negativeSuffix_)):(isFinite(q)&&N.push(b.suffix),N.push(this.positiveSuffix_));return N.join("")};
var iTT=function(q,N){var b=FK(N,q.maximumFractionDigits_);q.significantDigits_>0&&(b=DET(b,q.significantDigits_,q.maximumFractionDigits_));b=Math.round(b);if(isFinite(b)){var y=Math.floor(FK(b,-q.maximumFractionDigits_));b=Math.floor(b-FK(y,q.maximumFractionDigits_));if(b<0||b>=FK(1,q.maximumFractionDigits_))y=Math.round(N),b=0}else y=N,b=0;return{intValue:y,fracValue:b}},l7x=function(q,N,b,y){if(q.minimumFractionDigits_>q.maximumFractionDigits_)throw Error("le");
y||(y=[]);N=iTT(q,N);var J=N.intValue,E=N.fracValue,F=q.minimumFractionDigits_>0||E>0||!1;N=q.minimumFractionDigits_;F&&(N=q.minimumFractionDigits_);for(var R="",c=J;c>1E20;)R="0"+R,c=Math.round(FK(c,-1));R=c+R;var z=JG(q).DECIMAL_SEP;c=JG(q).ZERO_DIGIT.codePointAt(0);var m=R.length,r=0;if(J>0||b>0){for(J=m;J<b;J++)y.push(String.fromCodePoint(c));if(q.groupingArray_.length>=2)for(b=1;b<q.groupingArray_.length;b++)r+=q.groupingArray_[b];b=m-r;if(b>0){J=q.groupingArray_;r=m=0;for(var X,V=JG(q).GROUP_SEP,
G=R.length,w=0;w<G;w++)if(y.push(String.fromCodePoint(c+Number(R.charAt(w)))),G-w>1)if(X=J[r],w<b){var D=b-w;(X===1||X>0&&D%X===1)&&y.push(V)}else r<J.length&&(w===b?r+=1:X===w-b-m+1&&(y.push(V),m+=X,r+=1))}else{b=R;R=q.groupingArray_;J=JG(q).GROUP_SEP;X=b.length;V=[];for(m=R.length-1;m>=0&&X>0;m--){r=R[m];for(G=0;G<r&&X-G-1>=0;G++)V.push(String.fromCodePoint(c+Number(b.charAt(X-G-1))));X-=r;X>0&&V.push(J)}y.push.apply(y,V.reverse())}}else F||y.push(String.fromCodePoint(c));(q.decimalSeparatorAlwaysShown_||
F)&&y.push(z);E=String(E);F=E.split("e+");F.length==2&&(E=String(DET(parseFloat(F[0]),q.significantDigits_,1)),E=E.replace(".",""),E+=(0,_.cjT)("0",parseInt(F[1],10)-E.length+1));q.maximumFractionDigits_+1>E.length&&(E="1"+(0,_.cjT)("0",q.maximumFractionDigits_-E.length)+E);for(q=E.length;E.charAt(q-1)=="0"&&q>N+1;)q--;for(N=1;N<q;N++)y.push(String.fromCodePoint(c+Number(E.charAt(N))))},KIq=function(q,N,b){b.push(JG(q).EXP_SYMBOL);
N<0?(N=-N,b.push(JG(q).MINUS_SIGN)):q.useSignForPositiveExponent_&&b.push(JG(q).PLUS_SIGN);N=""+N;for(var y=JG(q).ZERO_DIGIT,J=N.length;J<q.minExponentDigits_;J++)b.push(y);q=y.codePointAt(0)-h7E;for(y=0;y<N.length;y++)b.push(String.fromCodePoint(q+N.codePointAt(y)))},QDM=function(q,N){N=N.codePointAt(0);
if(48<=N&&N<58)return N-48;q=JG(q).ZERO_DIGIT.codePointAt(0);return q<=N&&N<q+10?N-q:-1},h7E="0".codePointAt(0),Y$l=function(q,N,b){for(var y="",J=!1,E=N.length;b[0]<E;b[0]++){var F=N.charAt(b[0]);
if(F=="'")b[0]+1<E&&N.charAt(b[0]+1)=="'"?(b[0]++,y+="'"):J=!J;else if(J)y+=F;else switch(F){case "#":case "0":case ",":case ".":case ";":return y;case "\u00a4":if(b[0]+1<E&&N.charAt(b[0]+1)=="\u00a4")b[0]++,y+=gC(q);else switch(q.currencyStyle_){case 0:F=gC(q);y+=F in eV?eV[F][1]:F;break;case 2:F=gC(q);var R=eV[F];y+=R?F==R[1]?F:F+" "+R[1]:F;break;case 1:F=gC(q),y+=F in eV?eV[F][2]:F}break;case "%":if(!q.negativePercentSignExpected_&&q.multiplier_!=1)throw Error("me");if(q.negativePercentSignExpected_&&
q.multiplier_!=100)throw Error("ne");q.multiplier_=100;q.negativePercentSignExpected_=!1;y+=JG(q).PERCENT;break;case "\u2030":if(!q.negativePercentSignExpected_&&q.multiplier_!=1)throw Error("me");if(q.negativePercentSignExpected_&&q.multiplier_!=1E3)throw Error("ne");q.multiplier_=1E3;q.negativePercentSignExpected_=!1;y+=JG(q).PERMILL;break;default:y+=F}}return y},ZY={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},OTo=function(q,N){q=q.compactStyle_==1?At.COMPACT_DECIMAL_SHORT_PATTERN:At.COMPACT_DECIMAL_LONG_PATTERN;q==null&&(q=At.COMPACT_DECIMAL_SHORT_PATTERN);if(N<3)return ZY;N=Math.min(14,N);var b=q[FK(1,N)];for(--N;!b&&N>=3;)b=q[FK(1,N)],N--;if(!b)return ZY;b=b.other;var y=q="",J=b.indexOf(";");J>=0&&(b=b.substring(0,J),J=b.substring(J+1))&&(y=/([^0]*)(0+)(.*)/.exec(J),q=y[1],y=y[3]);return b&&b!="0"?(b=/([^0]*)(0+)(.*)/.exec(b))?{divisorBase:N+
1-(b[2].length-1),negative_prefix:q,negative_suffix:y,prefix:b[1],suffix:b[3]}:ZY:ZY},wGq=function(q){if(!isFinite(q))return q>0?q:0;
for(var N=0;(q/=10)>=1;)N++;return N},FK=function(q,N){if(!q||!isFinite(q)||N==0)return q;
q=String(q).split("e");return parseFloat(q[0]+"e"+(parseInt(q[1]||0,10)+N))},kSF=function(q,N){return q&&isFinite(q)?FK(Math.round(FK(q,N)),-N):q},DET=function(q,N,b){if(!q)return q;
N=N-wGq(q)-1;return N<-b?kSF(q,-b):kSF(q,N)};var UEx=function(q){return q%10==1&&q%100!=11?"one":q%10==2&&q%100!=12?"two":q%10==3&&q%100!=13?"few":"other"},f7T=UEx;
f7T=UEx;var CxJ=function(q,N){var b=q|0;if(void 0===N){N=Math;var y=N.min,J=q+"",E=J.indexOf(".");N=y.call(N,E===-1?0:J.length-E-1,3)}y=Math.pow(10,N);q={v:N,f:(q*y|0)%y};return b==1&&q.v==0?"one":"other"},UR=CxJ;
UR=CxJ;var neM=function(q){this.JSC$11535_pattern_=q;this.parsedPattern_=this.literals_=this.initialLiterals_=null;q=jDE;var N=At;if(I7E!==q||Tjl!==N)I7E=q,Tjl=N,sD4=new _.fD(1);this.numberFormatter_=sD4},I7E=null,Tjl=null,sD4=null,a71=RegExp("'([{}#].*?)'","g"),S$1=RegExp("''","g");
neM.prototype.format=function(q){if(this.JSC$11535_pattern_){this.initialLiterals_=[];var N=WIJ(this,this.JSC$11535_pattern_);this.parsedPattern_=LIl(this,N);this.JSC$11535_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.LC(this.initialLiterals_),N=[],pGq(this,this.parsedPattern_,q,!1,N),q=N.join("");this.literals_.length>0;)q=q.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else q="";return q};
var pGq=function(q,N,b,y,J){for(var E=0;E<N.length;E++)switch(N[E].type){case 4:J.push(N[E].value);break;case 3:var F=N[E].value;var R=q,c=J,z=b[F];z===void 0?c.push("Undefined parameter - "+F):(R.literals_.push(z),c.push(R.buildPlaceholder_(R.literals_)));break;case 2:F=N[E].value;R=q;c=b;z=y;var m=J,r=F.argumentIndex;c[r]===void 0?m.push("Undefined parameter - "+r):(r=F[c[r]],r===void 0&&(r=F.other),pGq(R,r,c,z,m));break;case 0:F=N[E].value;PxM(q,F,b,UR,y,J);break;case 1:F=N[E].value,PxM(q,F,b,
f7T,y,J)}},PxM=function(q,N,b,y,J,E){var F=N.argumentIndex,R=N.argumentOffset,c=+b[F];
isNaN(c)?E.push("Undefined or invalid parameter - "+F):(R=c-R,F=N[b[F]],F===void 0&&(y=y(Math.abs(R)),F=N[y],F===void 0&&(F=N.other)),N=[],pGq(q,F,b,J,N),b=N.join(""),J?E.push(b):(q=q.numberFormatter_.format(R),E.push(b.replace(/#/g,q))))},WIJ=function(q,N){var b=q.initialLiterals_,y=q.buildPlaceholder_.bind(q);
N=N.replace(S$1,function(){b.push("'");return y(b)});
return N=N.replace(a71,function(J,E){b.push(E);return y(b)})},Mz4=function(q){var N=0,b=[],y=[],J=/[{}]/g;
J.lastIndex=0;for(var E;E=J.exec(q);){var F=E.index;E[0]=="}"?(b.pop(),b.length==0&&(E={type:1},E.value=q.substring(N,F),y.push(E),N=F+1)):(b.length==0&&(N=q.substring(N,F),N!=""&&y.push({type:0,value:N}),N=F+1),b.push("{"))}q=q.substring(N);q!=""&&y.push({type:0,value:q});return y},oe1=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,AOJ=/^\s*(\w+)\s*,\s*selectordinal\s*,/,e7o=/^\s*(\w+)\s*,\s*select\s*,/,LIl=function(q,N){var b=[];
N=Mz4(N);for(var y=0;y<N.length;y++){var J={};if(0==N[y].type)J.type=4,J.value=N[y].value;else if(1==N[y].type){var E=N[y].value;switch(oe1.test(E)?0:AOJ.test(E)?1:e7o.test(E)?2:/^\s*\w+\s*/.test(E)?3:5){case 2:J.type=2;J.value=Bjj(q,N[y].value);break;case 0:J.type=0;J.value=HTR(q,N[y].value);break;case 1:J.type=1;J.value=qA1(q,N[y].value);break;case 3:J.type=3,J.value=N[y].value}}b.push(J)}return b},Bjj=function(q,N){var b="";
N=N.replace(e7o,function(R,c){b=c;return""});
var y={};y.argumentIndex=b;N=Mz4(N);for(var J=0;J<N.length;){var E=N[J].value;J++;var F=void 0;1==N[J].type&&(F=LIl(q,N[J].value));y[E.replace(/\s/g,"")]=F;J++}return y},HTR=function(q,N){var b="",y=0;
N=N.replace(oe1,function(c,z,m){b=z;m&&(y=parseInt(m,10));return""});
var J={};J.argumentIndex=b;J.argumentOffset=y;N=Mz4(N);for(var E=0;E<N.length;){var F=N[E].value;E++;var R=void 0;1==N[E].type&&(R=LIl(q,N[E].value));J[F.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=R;E++}return J},qA1=function(q,N){var b="";
N=N.replace(AOJ,function(R,c){b=c;return""});
var y={};y.argumentIndex=b;y.argumentOffset=0;N=Mz4(N);for(var J=0;J<N.length;){var E=N[J].value;J++;var F=void 0;1==N[J].type&&(F=LIl(q,N[J].value));y[E.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=F;J++}return y};
neM.prototype.buildPlaceholder_=function(q){return"\ufddf_"+(q.length-1).toString(10)+"_"};var dJn=function(){var q={style:1},N=NRq;this.style_=(q==null?void 0:q.style)||0;this.durationSymbols_=N||tz1},b0T=function(q,N){switch(N){default:case "years":return q.durationSymbols_.YEAR;
case "months":return q.durationSymbols_.MONTH;case "weeks":return q.durationSymbols_.WEEK;case "days":return q.durationSymbols_.DAY;case "hours":return q.durationSymbols_.HOUR;case "minutes":return q.durationSymbols_.MINUTE;case "seconds":return q.durationSymbols_.SECOND}},RV=function(q,N,b){a:{b=b0T(q,b);
switch(q.style_){case 1:if(b.LONG!=void 0){q=b.LONG;break a}case 2:if(b.NARROW!=void 0){q=b.NARROW;break a}default:q=b.SHORT;break a}q=void 0}return q?(new neM("{DURATION_VALUE,plural,"+q+"}")).format({DURATION_VALUE:N}):""};
dJn.prototype.format=function(q){var N=[],b=q.years,y=q.months,J=q.weeks,E=q.days,F=q.hours,R=q.minutes;q=q.seconds;b!=null&&N.push(RV(this,b,"years"));y!=null&&N.push(RV(this,y,"months"));J!=null&&N.push(RV(this,J,"weeks"));E!=null&&N.push(RV(this,E,"days"));F!=null&&N.push(RV(this,F,"hours"));R!=null&&N.push(RV(this,R,"minutes"));q!=null&&N.push(RV(this,q,"seconds"));return(new rO1).format(N)};var y3x;
y3x={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 Qkz=function(){this.rdtfSymbols_=J34||y3x;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
Qkz.prototype.format=function(q,N){a:{N=EAl(this,N);switch(this.style_){case 2:if(N.NARROW!=void 0){N=N.NARROW;break a}case 1:if(N.SHORT!=void 0){N=N.SHORT;break a}default:N=N.LONG;break a}N=void 0}if(!this.alwaysNumeric_&&N&&N.R&&N.R[""+q])q=N.R[""+q];else if(N){var b=Math.abs(q);q=(new neM("{N,plural,"+(q>0||q==0&&1/q==Infinity?N.F:N.P)+"}")).format({N:b})}else q="";return q};
var EAl=function(q,N){switch(N){default:case 0:return q.rdtfSymbols_.YEAR;case 1:return q.rdtfSymbols_.QUARTER;case 2:return q.rdtfSymbols_.MONTH;case 3:return q.rdtfSymbols_.WEEK;case 4:return q.rdtfSymbols_.DAY;case 5:return q.rdtfSymbols_.HOUR;case 6:return q.rdtfSymbols_.MINUTE;case 7:return q.rdtfSymbols_.SECOND}};var gAv=function(q,N,b,y,J,E,F,R){this.x0=q;this.y0=N;this.x1=b;this.y1=y;this.x2=J;this.y2=E;this.x3=F;this.y3=R};
gAv.prototype.clone=function(){return new gAv(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
gAv.prototype.equals=function(q){return this.x0==q.x0&&this.y0==q.y0&&this.x1==q.x1&&this.y1==q.y1&&this.x2==q.x2&&this.y2==q.y2&&this.x3==q.x3&&this.y3==q.y3};
var Z0x=function(q,N){if(N==0)return q.x0;if(N==1)return q.x3;var b=Y_(q.x0,q.x1,N),y=Y_(q.x1,q.x2,N);q=Y_(q.x2,q.x3,N);b=Y_(b,y,N);y=Y_(y,q,N);return Y_(b,y,N)},FUF=function(q,N){var b=(N-q.x0)/(q.x3-q.x0);
if(b<=0)return 0;if(b>=1)return 1;for(var y=0,J=1,E=0,F=0;F<8;F++){E=Z0x(q,b);var R=(Z0x(q,b+1E-6)-E)/1E-6;if(Math.abs(E-N)<1E-6)return b;if(Math.abs(R)<1E-6)break;else E<N?y=b:J=b,b-=(E-N)/R}for(F=0;Math.abs(E-N)>1E-6&&F<8;F++)E<N?(y=b,b=(b+J)/2):(J=b,b=(b+y)/2),E=Z0x(q,b);return b};var dC=function(){_.O1.call(this);this.JSC$11556_name_="closure_frame"+RNo++;this.iframesForDisposal_=[];d1E[this.JSC$11556_name_]=this},c0;
_.oK(dC,_.O1);var d1E={},RNo=0,c31=function(q,N){var b=k7(q);t0M(N,function(y,J){Array.isArray(y)||(y=[y]);_.Jz(y,function(E){E=b.JSC$9409_createDom("INPUT",{type:"hidden",name:J,value:E});q.appendChild(E)})})};
_.g=dC.prototype;_.g.JSC$11558_form_=null;_.g.JSC$11558_iframe_=null;_.g.iframeName_=null;_.g.nextIframeId_=0;_.g.JSC$11558_active_=!1;_.g.complete_=!1;_.g.success_=!1;_.g.lastContent_=null;_.g.JSC$11558_lastErrorCode_=0;_.g.iframeDisposalTimer_=null;
_.g.send=function(q,N,b,y){if(this.JSC$11558_active_)throw Error("te");q=new _.a$(q);N=N?N.toUpperCase():"GET";b&&_.ul(q);c0||(c0=_.iu("FORM"),c0.acceptCharset="utf-8",b=c0.style,b.position="absolute",b.visibility="hidden",b.top=b.left="-10px",b.width=b.height="10px",b.overflow="hidden",document.body.appendChild(c0));this.JSC$11558_form_=c0;N=="GET"&&c31(this.JSC$11558_form_,q.JSC$10113_queryData_);y&&c31(this.JSC$11558_form_,y);b=q.toString();b=SVR(b);y=this.JSC$11558_form_;b=_.ox(Ix(b));b!==void 0&&
(y.action=b);this.JSC$11558_form_.method=N;uOE(this);zNo(this)};
_.g.abort=function(q){if(this.JSC$11558_active_){var N=ue(this);if(N)if(G8(N))N.removeAllListeners(void 0);else if(N=YC(N)){var b=0,y;for(y in N.listeners)for(var J=N.listeners[y].concat(),E=0;E<J.length;++E)uq(J[E])&&++b}this.success_=this.JSC$11558_active_=this.complete_=!1;this.JSC$11558_lastErrorCode_=q||7;this.dispatchEvent("abort");$1l(this)}};
_.g.disposeInternal=function(){this.JSC$11558_active_&&this.abort();dC.superClass_.disposeInternal.call(this);this.JSC$11558_iframe_&&tPj(this);zNo(this);this.JSC$11558_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11558_form_=null;this.JSC$11558_lastErrorCode_=0;delete d1E[this.JSC$11556_name_]};
_.g.isComplete=function(){return this.complete_};
_.g.isSuccess=function(){return this.success_};
_.g.isActive=function(){return this.JSC$11558_active_};
_.g.getResponseText=function(){return this.lastContent_};
_.g.getLastError=function(){return _.pCo(this.JSC$11558_lastErrorCode_)};
var uOE=function(q){q.JSC$11558_active_=!0;q.complete_=!1;q.JSC$11558_lastErrorCode_=0;q.iframeName_=q.JSC$11556_name_+"_"+(q.nextIframeId_++).toString(36);q.JSC$11558_iframe_=k7(q.JSC$11558_form_).JSC$9409_createDom("IFRAME",{name:q.iframeName_,id:q.iframeName_});var N=q.JSC$11558_iframe_.style;N.visibility="hidden";N.width=N.height="10px";N.display="none";_.Nd?N.marginTop=N.marginLeft="-10px":(N.position="absolute",N.top=N.left="-10px");k7(q.JSC$11558_form_).JSC$9407_document_.body.appendChild(q.JSC$11558_iframe_);
N=q.iframeName_+"_inner";var b=DYx(q.JSC$11558_iframe_);if(document.baseURI){var y=NE(N);y='<head><base href="'+NE(document.baseURI)+'"></head><body><iframe id="'+y+'" name="'+y+'"></iframe>';y=BZ(y)}else y=NE(N),y=BZ('<body><iframe id="'+y+'" name="'+y+'"></iframe>');b.write(qn(y));_.tn(b.getElementById(N),"load",q.onIframeLoaded_,!1,q);y=KF("TEXTAREA",q.JSC$11558_form_);for(var J=0,E=y.length;J<E;J++){var F=y[J].value;IkE(y[J])!=F&&(_.fG(y[J],F),y[J].value=F)}y=b.importNode(q.JSC$11558_form_,!0);
y.target=N;y.action=q.JSC$11558_form_.action;b.body.appendChild(y);J=KF("SELECT",q.JSC$11558_form_);E=KF("SELECT",y);F=0;for(var R=J.length;F<R;F++)for(var c=KF("OPTION",J[F]),z=KF("OPTION",E[F]),m=0,r=c.length;m<r;m++)z[m].selected=c[m].selected;J=KF("INPUT",q.JSC$11558_form_);E=KF("INPUT",y);F=0;for(R=J.length;F<R;F++)if(J[F].type=="file"&&J[F].value!=E[F].value){q.JSC$11558_form_.target=N;y=q.JSC$11558_form_;break}try{q.errorHandled_=!1,y.submit(),b.close(),_.qd&&setTimeout(q.testForFirefoxSilentError_.bind(q),
250)}catch(X){_.QL(b.getElementById(N),"load",q.onIframeLoaded_,!1,q),b.close(),zW(q,2)}};
dC.prototype.onIframeLoaded_=function(){_.QL(ue(this),"load",this.onIframeLoaded_,!1,this);try{var q=this.JSC$11558_iframe_?DYx(ue(this)):null;this.complete_=!0;this.JSC$11558_active_=!1;try{var N=q.body;this.lastContent_=N.textContent||N.innerText}catch(J){var b=1}var y;b||typeof this.errorChecker_!="function"||(y=this.errorChecker_(q))&&(b=4);b?zW(this,b):(this.success_=!0,this.JSC$11558_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),$1l(this))}catch(J){zW(this,1)}};
var zW=function(q,N){q.errorHandled_||(q.success_=!1,q.JSC$11558_active_=!1,q.complete_=!0,q.JSC$11558_lastErrorCode_=N,q.dispatchEvent("complete"),q.dispatchEvent("error"),$1l(q),q.errorHandled_=!0)},$1l=function(q){tPj(q);
zNo(q);q.JSC$11558_form_=null;q.dispatchEvent("ready")},tPj=function(q){var N=q.JSC$11558_iframe_;
N&&(N.onreadystatechange=null,N.onload=null,N.onerror=null,q.iframesForDisposal_.push(N));q.iframeDisposalTimer_&&(clearTimeout(q.iframeDisposalTimer_),q.iframeDisposalTimer_=null);_.qd?q.iframeDisposalTimer_=setTimeout(q.disposeIframes_.bind(q),2E3):q.disposeIframes_();q.JSC$11558_iframe_=null;q.iframeName_=null};
dC.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var q=this.iframesForDisposal_.pop();_.lC(q)}};
var zNo=function(q){q.JSC$11558_form_&&q.JSC$11558_form_==c0&&_.Do(q.JSC$11558_form_)},ue=function(q){return q.JSC$11558_iframe_?DYx(q.JSC$11558_iframe_).getElementById(q.iframeName_+"_inner"):null};
dC.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11558_active_){var q=this.JSC$11558_iframe_?DYx(ue(this)):null;q&&!fkJ(q,"documentUri")?(_.QL(ue(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?zW(this,3):zW(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.$T=function(q){return q=="\r"||q=="\n"||q==" "||q=="\t"};var m1j;_.tG=function(q){this.errorMessage_=null;this.result_=[];this.JSC$11560_buffer_="";this.stack_=[];this.JSC$11560_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!q||!q.deliverMessageAsRawString)};
m1j={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};_.tG.prototype.isInputValid=function(){return this.streamState_!=3};
_.tG.prototype.done=function(){return this.streamState_===2};
var mC=function(q,N,b){q.streamState_=3;q.errorMessage_="The stream is broken @"+q.JSC$11560_pos_+"/"+b+". With input:\n"+N;throw Error(q.errorMessage_);};
_.tG.prototype.acceptsBinaryInput=function(){return!1};
_.tG.prototype.parse=function(q){function N(){for(;X<q.length;)if(_.$T(q[X]))X++,E.JSC$11560_pos_++;else break;return X<z}
function b(){for(var G;;){G=q[X++];if(!G)break;E.JSC$11560_pos_++;switch(E.state_){case c.INIT:G==="{"?E.state_=c.OBJECT_OPEN:G==="["?E.state_=c.ARRAY_OPEN:_.$T(G)||mC(E,q,X);continue;case c.KEY_START:case c.OBJECT_OPEN:if(_.$T(G))continue;if(E.state_===c.KEY_START)F.push(c.KEY_END);else if(G==="}"){J("{}");E.state_=y();continue}else F.push(c.OBJECT_END);G==='"'?E.state_=c.STRING:mC(E,q,X);continue;case c.KEY_END:case c.OBJECT_END:if(_.$T(G))continue;G===":"?(E.state_===c.OBJECT_END&&(F.push(c.OBJECT_END),
E.depth_++),E.state_=c.VALUE):G==="}"?(E.depth_--,J(),E.state_=y()):G===","?(E.state_===c.OBJECT_END&&F.push(c.OBJECT_END),E.state_=c.KEY_START):mC(E,q,X);continue;case c.ARRAY_OPEN:case c.VALUE:if(_.$T(G))continue;if(E.state_===c.ARRAY_OPEN)if(E.depth_++,E.state_=c.VALUE,G==="]"){E.depth_--;if(E.depth_===0){E.state_=c.ARRAY_END;return}J("[]");E.state_=y();continue}else F.push(c.ARRAY_END);G==='"'?E.state_=c.STRING:G==="{"?E.state_=c.OBJECT_OPEN:G==="["?E.state_=c.ARRAY_OPEN:G==="t"?E.state_=c.TRUE1:
G==="f"?E.state_=c.FALSE1:G==="n"?E.state_=c.NULL1:G!=="-"&&("0123456789".indexOf(G)!==-1?E.state_=c.NUM_DIGIT:mC(E,q,X));continue;case c.ARRAY_END:if(G===",")F.push(c.ARRAY_END),E.state_=c.VALUE,E.depth_===1&&(r=X);else if(G==="]"){E.depth_--;if(E.depth_===0)return;J();E.state_=y()}else if(_.$T(G))continue;else mC(E,q,X);continue;case c.STRING:var w=X;a:for(;;){for(;E.unicodeCount_>0;)if(G=q[X++],E.unicodeCount_===4?E.unicodeCount_=0:E.unicodeCount_++,!G)break a;if(G==='"'&&!E.slashed_){E.state_=
y();break}if(G==="\\"&&!E.slashed_&&(E.slashed_=!0,G=q[X++],!G))break;if(E.slashed_)if(E.slashed_=!1,G==="u"&&(E.unicodeCount_=1),G=q[X++])continue;else break;R.lastIndex=X;G=R.exec(q);if(!G){X=q.length+1;break}X=G.index+1;G=q[G.index];if(!G)break}E.JSC$11560_pos_+=X-w;continue;case c.TRUE1:if(!G)continue;G==="r"?E.state_=c.TRUE2:mC(E,q,X);continue;case c.TRUE2:if(!G)continue;G==="u"?E.state_=c.TRUE3:mC(E,q,X);continue;case c.TRUE3:if(!G)continue;G==="e"?E.state_=y():mC(E,q,X);continue;case c.FALSE1:if(!G)continue;
G==="a"?E.state_=c.FALSE2:mC(E,q,X);continue;case c.FALSE2:if(!G)continue;G==="l"?E.state_=c.FALSE3:mC(E,q,X);continue;case c.FALSE3:if(!G)continue;G==="s"?E.state_=c.FALSE4:mC(E,q,X);continue;case c.FALSE4:if(!G)continue;G==="e"?E.state_=y():mC(E,q,X);continue;case c.NULL1:if(!G)continue;G==="u"?E.state_=c.NULL2:mC(E,q,X);continue;case c.NULL2:if(!G)continue;G==="l"?E.state_=c.NULL3:mC(E,q,X);continue;case c.NULL3:if(!G)continue;G==="l"?E.state_=y():mC(E,q,X);continue;case c.NUM_DECIMAL_POINT:G===
"."?E.state_=c.NUM_DIGIT:mC(E,q,X);continue;case c.NUM_DIGIT:if("0123456789.eE+-".indexOf(G)!==-1)continue;else X--,E.JSC$11560_pos_--,E.state_=y();continue;default:mC(E,q,X)}}}
function y(){var G=F.pop();return G!=null?G:c.VALUE}
function J(G){E.depth_>1||(G||(G=r===-1?E.JSC$11560_buffer_+q.substring(m,X):q.substring(r,X)),E.deliverMessageAsRawString_?E.result_.push(G):E.result_.push(JSON.parse(G)),r=X)}
for(var E=this,F=E.stack_,R=E.stringInputPattern_,c=m1j,z=q.length,m=0,r=-1,X=0;X<z;)switch(E.streamState_){case 3:return mC(E,q,X),null;case 2:return N()&&mC(E,q,X),null;case 0:if(N()){var V=q[X++];E.JSC$11560_pos_++;if(V==="["){E.streamState_=1;m=X;E.state_=c.ARRAY_OPEN;continue}else mC(E,q,X)}return null;case 1:return b(),E.depth_===0&&E.state_==c.ARRAY_END?(E.streamState_=2,E.JSC$11560_buffer_=q.substring(X)):E.JSC$11560_buffer_=r===-1?E.JSC$11560_buffer_+q.substring(m):q.substring(r),E.result_.length>
0?(V=E.result_,E.result_=[],V):null}return null};_.oK(_.Gj,sV);YH.prototype.getValue=function(){return this.JSC$11568_value_};
YH.prototype.clone=function(){return new YH(this.JSC$11568_key_,this.JSC$11568_value_)};var rC=function(q){this.nodes_=[];if(q)a:{if(q instanceof rC){var N=q.getKeys();q=q.getValues();if(this.getCount()<=0){for(var b=this.nodes_,y=0;y<N.length;y++)b.push(new YH(N[y],q[y]));break a}}else N=_.nM.getKeys(q),q=_.nM.getValues(q);for(b=0;b<N.length;b++)this.insert(N[b],q[b])}};
_.g=rC.prototype;_.g.insert=function(q,N){var b=this.nodes_;b.push(new YH(q,N));q=b.length-1;N=this.nodes_;for(b=N[q];q>0;){var y=q-1>>1;if(N[y].JSC$11568_key_>b.JSC$11568_key_)N[q]=N[y],q=y;else break}N[q]=b};
_.g.remove=function(){var q=this.nodes_,N=q.length,b=q[0];if(!(N<=0)){if(N==1)q.length=0;else{q[0]=q.pop();q=0;N=this.nodes_;for(var y=N.length,J=N[q];q<y>>1;){var E=q*2+1,F=q*2+2;E=F<y&&N[F].JSC$11568_key_<N[E].JSC$11568_key_?F:E;if(N[E].JSC$11568_key_>J.JSC$11568_key_)break;N[q]=N[E];q=E}N[q]=J}return b.getValue()}};
_.g.peek=function(){var q=this.nodes_;if(q.length!=0)return q[0].getValue()};
_.g.getValues=function(){for(var q=this.nodes_,N=[],b=q.length,y=0;y<b;y++)N.push(q[y].getValue());return N};
_.g.getKeys=function(){for(var q=this.nodes_,N=[],b=q.length,y=0;y<b;y++)N.push(q[y].JSC$11568_key_);return N};
_.g.containsValue=function(q){return this.nodes_.some(function(N){return N.getValue()==q})};
_.g.containsKey=function(q){return this.nodes_.some(function(N){return N.JSC$11568_key_==q})};
_.g.clone=function(){return new rC(this)};
_.g.getCount=function(){return this.nodes_.length};
_.g.isEmpty=function(){return this.nodes_.length===0};
_.g.clear=function(){this.nodes_.length=0};_.XK=function(q,N){this.JSC$11574_map_={};this.JSC$11574_keys_=[];this.version_=this.size=0;var b=arguments.length;if(b>1){if(b%2)throw Error("ma");for(var y=0;y<b;y+=2)this.set(arguments[y],arguments[y+1])}else q&&this.addAll(q)};
_.g=_.XK.prototype;_.g.getCount=function(){return this.size};
_.g.getValues=function(){VM(this);for(var q=[],N=0;N<this.JSC$11574_keys_.length;N++)q.push(this.JSC$11574_map_[this.JSC$11574_keys_[N]]);return q};
_.g.getKeys=function(){VM(this);return this.JSC$11574_keys_.concat()};
_.g.containsKey=function(q){return this.has(q)};
_.g.has=function(q){return jQ(this.JSC$11574_map_,q)};
_.g.containsValue=function(q){for(var N=0;N<this.JSC$11574_keys_.length;N++){var b=this.JSC$11574_keys_[N];if(jQ(this.JSC$11574_map_,b)&&this.JSC$11574_map_[b]==q)return!0}return!1};
_.g.equals=function(q,N){if(this===q)return!0;if(this.size!=q.getCount())return!1;N=N||r3R;VM(this);for(var b,y=0;b=this.JSC$11574_keys_[y];y++)if(!N(this.get(b),q.get(b)))return!1;return!0};
var r3R=function(q,N){return q===N};
_.XK.prototype.isEmpty=function(){return this.size==0};
_.XK.prototype.clear=function(){this.JSC$11574_map_={};this.version_=this.size=this.JSC$11574_keys_.length=0};
_.XK.prototype.remove=function(q){return this.delete(q)};
_.XK.prototype.delete=function(q){return jQ(this.JSC$11574_map_,q)?(delete this.JSC$11574_map_[q],--this.size,this.version_++,this.JSC$11574_keys_.length>2*this.size&&VM(this),!0):!1};
var VM=function(q){if(q.size!=q.JSC$11574_keys_.length){for(var N=0,b=0;N<q.JSC$11574_keys_.length;){var y=q.JSC$11574_keys_[N];jQ(q.JSC$11574_map_,y)&&(q.JSC$11574_keys_[b++]=y);N++}q.JSC$11574_keys_.length=b}if(q.size!=q.JSC$11574_keys_.length){N={};for(y=b=0;b<q.JSC$11574_keys_.length;){var J=q.JSC$11574_keys_[b];jQ(N,J)||(q.JSC$11574_keys_[y++]=J,N[J]=1);b++}q.JSC$11574_keys_.length=y}};
_.g=_.XK.prototype;_.g.get=function(q,N){return jQ(this.JSC$11574_map_,q)?this.JSC$11574_map_[q]:N};
_.g.set=function(q,N){jQ(this.JSC$11574_map_,q)||(this.size+=1,this.JSC$11574_keys_.push(q),this.version_++);this.JSC$11574_map_[q]=N};
_.g.addAll=function(q){if(q instanceof _.XK)for(var N=q.getKeys(),b=0;b<N.length;b++)this.set(N[b],q.get(N[b]));else for(N in q)this.set(N,q[N])};
_.g.forEach=function(q,N){for(var b=this.getKeys(),y=0;y<b.length;y++){var J=b[y],E=this.get(J);q.call(N,E,J,this)}};
_.g.clone=function(){return new _.XK(this)};
_.g.transpose=function(){for(var q=new _.XK,N=0;N<this.JSC$11574_keys_.length;N++){var b=this.JSC$11574_keys_[N];q.set(this.JSC$11574_map_[b],b)}return q};
_.g.keys=function(){return Uc4(this.__iterator__(!0)).toEs6()};
_.g.values=function(){return Uc4(this.__iterator__(!1)).toEs6()};
_.g.entries=function(){var q=this;return Htj(this.keys(),function(N){return[N,q.get(N)]})};
_.g.__iterator__=function(q){VM(this);var N=0,b=this.version_,y=this,J=new dP;J.next=function(){if(b!=y.version_)throw Error("ue");if(N>=y.JSC$11574_keys_.length)return c7;var E=y.JSC$11574_keys_[N++];return uK(q?E:y.JSC$11574_map_[E])};
return J};
var jQ=function(q,N){return Object.prototype.hasOwnProperty.call(q,N)};var VPj=function(){this.JSC$11577_map_=new _.XK;this.JSC$11577_head_=new XDv("");this.JSC$11577_head_.next=this.JSC$11577_head_.prev=this.JSC$11577_head_},jm1=function(q,N){if(N=q.JSC$11577_map_.get(N))N.remove(),q.insert_(N);
return N};
_.g=VPj.prototype;_.g.get=function(q,N){return(q=jm1(this,q))?q.value:N};
_.g.set=function(q,N){var b=jm1(this,q);b?b.value=N:(b=new XDv(q,N),this.JSC$11577_map_.set(q,b),this.insert_(b))};
_.g.peek=function(){return this.JSC$11577_head_.next.value};
_.g.shift=function(){return x1j(this,this.JSC$11577_head_.next)};
_.g.pop=function(){return x1j(this,this.JSC$11577_head_.prev)};
_.g.remove=function(q){return(q=this.JSC$11577_map_.get(q))?(this.removeNode(q),!0):!1};
_.g.removeNode=function(q){q.remove();this.JSC$11577_map_.remove(q.key)};
_.g.getCount=function(){return this.JSC$11577_map_.getCount()};
_.g.isEmpty=function(){return this.JSC$11577_map_.isEmpty()};
_.g.getKeys=function(){return this.map(function(q,N){return N})};
_.g.getValues=function(){return this.map(function(q){return q})};
_.g.contains=function(q){return this.some(function(N){return N==q})};
_.g.containsKey=function(q){return this.JSC$11577_map_.containsKey(q)};
_.g.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11577_head_.prev)};
_.g.forEach=function(q,N){for(var b=this.JSC$11577_head_.next;b!=this.JSC$11577_head_;b=b.next)q.call(N,b.value,b.key,this)};
_.g.map=function(q,N){for(var b=[],y=this.JSC$11577_head_.next;y!=this.JSC$11577_head_;y=y.next)b.push(q.call(N,y.value,y.key,this));return b};
_.g.some=function(q,N){for(var b=this.JSC$11577_head_.next;b!=this.JSC$11577_head_;b=b.next)if(q.call(N,b.value,b.key,this))return!0;return!1};
_.g.every=function(q,N){for(var b=this.JSC$11577_head_.next;b!=this.JSC$11577_head_;b=b.next)if(!q.call(N,b.value,b.key,this))return!1;return!0};
_.g.insert_=function(q){q.next=this.JSC$11577_head_.next;q.prev=this.JSC$11577_head_;this.JSC$11577_head_.next=q;for(q.next.prev=q;this.getCount()>100;)this.removeNode(this.JSC$11577_head_.prev)};
var x1j=function(q,N){q.JSC$11577_head_!=N&&q.removeNode(N);return N.value},XDv=function(q,N){this.key=q;
this.value=N};
XDv.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var vAF=function(){rC.apply(this,arguments)};
_.Y(vAF,rC);vAF.prototype.enqueue=function(q,N){this.insert(q,N)};var GK1=function(){var q=Error();q.name="SecurityError";throw q;},wSn=function(){return{get opener(){return null},
get closed(){return!0},get location(){GK1()},get document(){GK1()},postMessage:function(){},
close:function(){},
focus:function(){}}};var mQd={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 VED={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 YAq={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(VED).join("|");var QmJ=function(){function q(R){R.substr(-1)!==";"&&(R+=";");return F(R)}
for(var N=Object.keys(YAq).sort(XEz),b=Object.keys(VED).sort(XEz),y=0,J=0;y<b.length;y++)N[J]===b[y]?(b[y]+=";?",J++):b[y]+=";";var E=new RegExp("&(?:"+b.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),F=jYR();return function(R){return String(R).replace(E,q)}}();/*

 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 O04={};var wDv=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"),i0o=/[\\&]/,lIo=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),KUl=RegExp('[&<>"]',"g"),D11=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),hN1=function(q){return q.charCodeAt(0)===92?q.charAt(1):QmJ(q)},kKT=function(q){return i0o.test(q)?q.replace(lIo,hN1):q},U1v=function(q){try{var N,b="";
if(typeof J!=="string"){var y=J;var J=";/?:@&=+$,-_.!~*'()#"}typeof y==="undefined"&&(y=!0);var E,F=O04[J];if(F)var R=F;else{F=O04[J]=[];for(E=0;E<128;E++){var c=String.fromCharCode(E);/^[0-9a-z]$/i.test(c)?F.push(c):F.push("%"+("0"+E.toString(16).toUpperCase()).slice(-2))}for(E=0;E<J.length;E++)F[J.charCodeAt(E)]=J[E];R=F}var z=0;for(N=q.length;z<N;z++){var m=q.charCodeAt(z);if(y&&m===37&&z+2<N&&/^[0-9a-f]{2}$/i.test(q.slice(z+1,z+3)))b+=q.slice(z,z+3),z+=2;else if(m<128)b+=R[m];else if(m>=55296&&
m<=57343){if(m>=55296&&m<=56319&&z+1<N){var r=q.charCodeAt(z+1);if(r>=56320&&r<=57343){b+=encodeURIComponent(q[z]+q[z+1]);z++;continue}}b+="%EF%BF%BD"}else b+=encodeURIComponent(q[z])}return b}catch(X){return q}},fI1=function(q){switch(q){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return q}},xT=function(q,N){return KUl.test(q)?N?q.replace(D11,fI1):q.replace(KUl,fI1):q};/*

 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 v0;if(String.fromCodePoint)v0=function(q){try{return String.fromCodePoint(q)}catch(N){if(N instanceof RangeError)return String.fromCharCode(65533);throw N;}};
else{var CkT=String.fromCharCode,IIo=Math.floor;v0=function(){var q=[],N=-1,b=arguments.length;if(!b)return"";for(var y="";++N<b;){var J=Number(arguments[N]);if(!isFinite(J)||J<0||J>1114111||IIo(J)!==J)return String.fromCharCode(65533);if(J<=65535)q.push(J);else{J-=65536;var E=(J>>10)+55296;J=J%1024+56320;q.push(E,J)}if(N+1===b||q.length>16384)y+=CkT.apply(null,q),q.length=0}return y}};var TR1=function(q){this.root=this.current=q;this.entering=!0};
TR1.prototype.next=function(){var q=this.current,N=this.entering;if(q===null)return null;a:switch(q._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 b=!0;break a;default:b=!1}N&&b?q._firstChild?(this.current=q._firstChild,this.entering=!0):this.entering=!1:q===this.root?this.current=null:q._next===null?(this.current=
q._parent,this.entering=!1):(this.current=q._next,this.entering=!0);return{entering:N,node:q}};
var KA=function(q,N){this._type=q;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=N;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};
KA.prototype.appendChild=function(q){q.unlink();q._parent=this;this._lastChild?(this._lastChild._next=q,q._prev=this._lastChild):this._firstChild=q;this._lastChild=q};
KA.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 smT=function(q,N){N.unlink();N._next=q._next;N._next&&(N._next._prev=N);N._prev=q;q._next=N;N._parent=q._parent;N._next||(N._parent._lastChild=N)};
KA.prototype.insertBefore=function(q){q.unlink();q._prev=this._prev;q._prev&&(q._prev._next=q);q._next=this;this._prev=q;q._parent=this._parent;q._prev||(q._parent._firstChild=q)};
_.$H.Object.defineProperties(KA.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(q){this._literal=q}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(q){this._destination=q}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(q){this._title=q}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(q){this._info=q}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(q){this._level=q}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(q){this._listData.type=q}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(q){this._listData.tight=q}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(q){this._listData.start=q}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(q){this._onEnter=q}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(q){this._onExit=q}}});var xQJ=/[ \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,
v_R={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 nAT=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]/),
aIR=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),SAq=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),WUR=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),LUx=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),pDF=/`+/,Pkl=/^`+/,MPx=/\.\.\./g,oA1=/--+/g,A3F=/^<([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])?)*)>/,
eN1=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,BRv=/^ *(?:\n *)?/,H04=/^[ \t\n\x0b\x0c\x0d]/,qdl=/[ \t\n\x0b\x0c\x0d]+/g,Nhq=/^\s/,bNj=/ *$/,y74=/^ */,J7v=/^ *(?:\n|$)/,EJJ=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),gJq=/^[^\n`\[\]\\!<&*_'"]+/m,OD=function(q){var N=new KA("text");N._literal=q;return N},wC=function(q){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=q||{}};
wC.prototype.match=function(q){q=q.exec(this.subject.slice(this.pos));if(q===null)return null;this.pos+=q.index+q[0].length;return q[0]};
wC.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var ie=function(q){q.match(BRv);return!0},ZNj=function(q,N,b){var y=0;
var J=q.pos;if(N===39||N===34)y++,q.pos++;else for(;q.peek()===N;)y++,q.pos++;if(y===0)y=null;else{var E=J===0?"\n":q.subject.charAt(J-1);var F=q.peek();F=F===-1?"\n":v0(F);var R=Nhq.test(F);F=nAT.test(F);var c=Nhq.test(E);var z=nAT.test(E);E=!R&&!(F&&!c&&!z);R=!c&&!(z&&!R&&!F);N===95?(c=E&&(!R||z),F=R&&(!E||F)):(c=N===39||N===34?E&&!R:E,F=R);q.pos=J;y={numdelims:y,can_open:c,can_close:F}}if(!y)return!1;J=y.numdelims;F=q.pos;q.pos+=J;F=N===39?"\u2019":N===34?"\u201c":q.subject.slice(F,q.pos);F=OD(F);
b.appendChild(F);q.delimiters={cc:N,numdelims:J,origdelims:J,node:F,previous:q.delimiters,next:null,can_open:y.can_open,can_close:y.can_close};q.delimiters.previous!==null&&(q.delimiters.previous.next=q.delimiters);return!0},FvT=function(q,N){N.previous!==null&&(N.previous.next=N.next);
N.next===null?q.delimiters=N.previous:N.next.previous=N.previous},Rfl=function(q,N){var b,y,J=[],E=!1;
J[95]=N;J[42]=N;J[39]=N;J[34]=N;for(b=q.delimiters;b!==null&&b.previous!==N;)b=b.previous;for(;b!==null;){var F=b.cc;if(b.can_close){var R=b.previous;for(y=!1;R!==null&&R!==N&&R!==J[F];){E=(b.can_open||R.can_close)&&(R.origdelims+b.origdelims)%3===0;if(R.cc===b.cc&&R.can_open&&!E){y=!0;break}R=R.previous}var c=b;if(F===42||F===95)if(y){var z=b.numdelims>=2&&R.numdelims>=2?2:1;var m=R.node;var r=b.node;R.numdelims-=z;b.numdelims-=z;m._literal=m._literal.slice(0,m._literal.length-z);r._literal=r._literal.slice(0,
r._literal.length-z);var X=new KA(z===1?"emph":"strong");for(z=m._next;z&&z!==r;){var V=z._next;z.unlink();X.appendChild(z);z=V}smT(m,X);z=R;V=b;z.next!==V&&(z.next=V,V.previous=z);R.numdelims===0&&(m.unlink(),FvT(q,R));b.numdelims===0&&(r.unlink(),R=b.next,FvT(q,b),b=R)}else b=b.next;else F===39?(b.node._literal="\u2019",y&&(R.node._literal="\u2018"),b=b.next):F===34&&(b.node._literal="\u201d",y&&(R.node.literal="\u201c"),b=b.next);y||E||(J[F]=c.previous,c.can_open||FvT(q,c))}else b=b.next}for(;q.delimiters!==
null&&q.delimiters!==N;)FvT(q,q.delimiters)},d$M=function(q){q=q.match(aIR);
return q===null?null:kKT(q.substr(1,q.length-2))},c7x=function(q){var N=q.match(SAq);
if(N===null){N=q.pos;for(var b=0,y;(y=q.peek())!==-1;)if(y===92)q.pos+=1,q.peek()!==-1&&(q.pos+=1);else if(y===40)q.pos+=1,b+=1;else if(y===41)if(b<1)break;else q.pos+=1,--b;else if(H04.exec(v0(y))!==null)break;else q.pos+=1;N=q.subject.substr(N,q.pos-N);return U1v(kKT(N))}return U1v(kKT(N.substr(1,N.length-2)))},u_1=function(q){q=q.match(EJJ);
return q===null||q.length>1001?0:q.length},zf4=function(q,N,b,y){q.brackets!==null&&(q.brackets.bracketAfter=!0);
q.brackets={node:N,previous:q.brackets,previousDelimiter:q.delimiters,index:b,image:y,active:!0}},$$E=function(q,N){var b;
return(b=q.match(gJq))?(q.options.smart?N.appendChild(OD(b.replace(MPx,"\u2026").replace(oA1,function(y){var J=0,E=0;y.length%3===0?E=y.length/3:y.length%2===0?J=y.length/2:y.length%3===2?(J=1,E=(y.length-2)/3):(J=2,E=(y.length-4)/3);y="";var F;for(F=0;F<E;F++)y+="\u2014";for(F=0;F<J;F++)y+="\u2013";return y}))):N.appendChild(OD(b)),!0):!1},tal=function(q,N,b){q.subject=N;
q.pos=0;N=q.pos;var y=u_1(q);if(y===0)return 0;var J=q.subject.substr(0,y);if(q.peek()===58)q.pos++;else return q.pos=N,0;ie(q);y=c7x(q);if(y===null||y.length===0)return q.pos=N,0;var E=q.pos;ie(q);var F=d$M(q);F===null&&(F="",q.pos=E);var R=!0;q.match(J7v)===null&&(F===""?R=!1:(F="",q.pos=E,R=q.match(J7v)!==null));if(!R)return q.pos=N,0;J=Gmh(J);if(J==="")return q.pos=N,0;b[J]||(b[J]={destination:y,title:F});return q.pos-N},m$M=function(q,N){var b,y=q.peek();
if(y===-1)return!1;switch(y){case 10:q.pos+=1;if((b=N._lastChild)&&b.type==="text"&&b._literal[b._literal.length-1]===" "){var J=b._literal[b._literal.length-2]===" ";b._literal=b._literal.replace(bNj,"");N.appendChild(new KA(J?"linebreak":"softbreak"))}else N.appendChild(new KA("softbreak"));q.match(y74);b=!0;break;case 92:b=q.subject;q.pos+=1;q.peek()===10?(q.pos+=1,b=new KA("linebreak"),N.appendChild(b)):WUR.test(b.charAt(q.pos))?(N.appendChild(OD(b.charAt(q.pos))),q.pos+=1):N.appendChild(OD("\\"));
b=!0;break;case 96:a:if(b=q.match(Pkl),b===null)b=!1;else{J=q.pos;for(var E;(E=q.match(pDF))!==null;)if(E===b){E=new KA("code");E._literal=q.subject.slice(J,q.pos-b.length).trim().replace(qdl," ");N.appendChild(E);b=!0;break a}q.pos=J;N.appendChild(OD(b));b=!0}break;case 42:case 95:b=ZNj(q,y,N);break;case 39:case 34:b=q.options.smart&&ZNj(q,y,N);break;case 91:b=q.pos;q.pos+=1;J=OD("[");N.appendChild(J);zf4(q,J,b,!1);b=!0;break;case 33:b=q.pos;q.pos+=1;q.peek()===91?(q.pos+=1,J=OD("!["),N.appendChild(J),
zf4(q,J,b+1,!0)):N.appendChild(OD("!"));b=!0;break;case 93:var F,R=!1,c;q.pos+=1;var z=q.pos;J=q.brackets;if(J===null)N.appendChild(OD("]"));else if(J.active){b=J.image;var m=q.pos;q.peek()===40&&(q.pos++,ie(q)&&(E=c7x(q))!==null&&ie(q)&&(H04.test(q.subject.charAt(q.pos-1))&&(F=d$M(q)),1)&&ie(q)&&q.peek()===41?(q.pos+=1,R=!0):q.pos=m);if(!R){var r=q.pos,X=u_1(q);X>2?c=q.subject.slice(r,r+X):J.bracketAfter||(c=q.subject.slice(J.index,z));X===0&&(q.pos=m);c&&(c=q.refmap[Gmh(c)])&&(E=c.destination,F=
c.title,R=!0)}if(R){z=new KA(b?"image":"link");z._destination=E;z._title=F||"";for(E=J.node._next;E;)F=E._next,E.unlink(),z.appendChild(E),E=F;N.appendChild(z);Rfl(q,J.previousDelimiter);q.brackets=q.brackets.previous;J.node.unlink();if(!b)for(J=q.brackets;J!==null;)J.image||(J.active=!1),J=J.previous}else q.brackets=q.brackets.previous,q.pos=z,N.appendChild(OD("]"))}else N.appendChild(OD("]")),q.brackets=q.brackets.previous;b=!0;break;case 60:(b=q.match(A3F))?(b=b.slice(1,b.length-1),J=new KA("link"),
J._destination=U1v("mailto:"+b),J._title="",J.appendChild(OD(b)),N.appendChild(J),b=!0):(b=q.match(eN1))?(b=b.slice(1,b.length-1),J=new KA("link"),J._destination=U1v(b),J._title="",J.appendChild(OD(b)),N.appendChild(J),b=!0):b=!1;b||(b=q.match(wDv),b===null?b=!1:(J=new KA("html_inline"),J._literal=b,N.appendChild(J),b=!0));break;case 38:(b=q.match(LUx))?(N.appendChild(OD(QmJ(b))),b=!0):b=!1;break;default:b=$$E(q,N)}b||(q.pos+=1,N.appendChild(OD(v0(y))));return!0};
wC.prototype.parseInlines=function(q){this.subject=q._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;m$M(this,q););q._string_content=null;Rfl(this,null)};
wC.prototype.parse=wC.prototype.parseInlines;var r71=[/./,/^<(?: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")],XVq=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],VaT=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,jKq=/^[#`~*+_=<>0-9-\|]|\|/,x$R=/[^ \t\f\v\r\n]/,vJl=/^[*+-]/,Gtv=/^(\d{1,9})([.)])/,Ydx=/^#{1,6}(?:[ \t]+|$)/,QKT=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,ONj=/^(?:`{3,}|~{3,})(?= *$)/,wVR=/^(?:=+|-+)[ \t]*$/,iNT=/\r\n|\n|\r/,QYu=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,OGn=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,lQ1={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(q){return q!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(q,N){for(q=N._firstChild;q;){if(Yqh(q)&&q._next){N._listData.tight=!1;break}for(var b=q._firstChild;b;){if(Yqh(b)&&(q._next||b._next)){N._listData.tight=!1;break}b=b._next}q=q._next}},
canContain:function(q){return q==="item"},
acceptsLines:!1},block_quote:{continue:function(q){var N=q.currentLine;if(q.indented||wd(N,q.nextNonspace)!==62)return 1;le(q);Ki(q,1,!1);O7(wd(N,q.offset))&&Ki(q,1,!0);return 0},
finalize:function(){},
canContain:function(q){return q!=="item"},
acceptsLines:!1},item:{continue:function(q,N){if(q.blank){if(N._firstChild==null)return 1;le(q)}else if(q.indent>=N._listData.markerOffset+N._listData.padding)Ki(q,N._listData.markerOffset+N._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(q){return q!=="item"&&!wEu(q)},
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(q,N){var b=q.currentLine,y=q.indent;if(N._isFenced){if((y=y<=3&&b.charAt(q.nextNonspace)===N._fenceChar&&b.slice(q.nextNonspace).match(ONj))&&y[0].length>=N._fenceLength)return q.finalize(N,q.lineNumber),2;for(N=N._fenceOffset;N>0&&O7(wd(b,q.offset));)Ki(q,1,!0),N--}else if(y>=4)Ki(q,4,!0);else if(q.blank)le(q);else return 1;return 0},
finalize:function(q,N){if(N._isFenced){var b=N._string_content,y=b.indexOf("\n");q=b.slice(0,y);b=b.slice(y+1);N.info=kKT(q.trim());N._literal=b}else N._literal=N._string_content.replace(/(\n *)+$/,"\n");N._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(q,N){return!q.blank||N._htmlBlockType!==6&&N._htmlBlockType!==7?0:1},
finalize:function(q,N){N._literal=N._string_content.replace(/(\n *)+$/,"");N._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(q){return q.blank?1:0},
finalize:function(q,N){for(var b,y=!1;wd(N._string_content,0)===91&&(b=tal(q.inlineParser,N._string_content,q.refmap));)N._string_content=N._string_content.slice(b),y=!0;y&&!x$R.test(N._string_content)&&N.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(q){return lt(q.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(q){return q=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(q,N){if(!N._rowIsDelimiter){q=N._isHeader?"th":"td";for(var b=N._parent._tableColumns,y=N._string_content,J=0,E="",F,R=N._sourcepos[0][0];J<y.length;){switch(y[J]){case "|":F&&(F._string_content=E.trim(),E="",F=null,b--,b<=0&&(J=y.length));break;default:if(!F){F=new KA(q,[[R,J],[R,J]]);var c=N._parent._columnAlignment,z=N._parent._tableColumns-b;c&&z<=c.length&&z>=0&&(F._alignment=c[z]);N.appendChild(F)}E+=y[J];F._sourcepos[1][1]=J}J++}F&&(F._string_content=E.trim());N._string_content=
""}},
canContain:function(q){return q!=="row"},
acceptsLines:!1}},KvT=[function(q){if(q.indented||wd(q.currentLine,q.nextNonspace)!==62)return 0;le(q);Ki(q,1,!1);O7(wd(q.currentLine,q.offset))&&Ki(q,1,!0);DY(q);q.addChild("block_quote",q.nextNonspace);return 1},
function(q){var N;if(!q.indented&&(N=q.currentLine.slice(q.nextNonspace).match(Ydx))){le(q);Ki(q,N[0].length,!1);DY(q);var b=q.addChild("heading",q.nextNonspace);b.level=N[0].trim().length;b._string_content=q.currentLine.slice(q.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");Ki(q,q.currentLine.length-q.offset);return 2}return 0},
function(q){var N;if(!q.indented&&(N=q.currentLine.slice(q.nextNonspace).match(QKT))){var b=N[0].length;DY(q);var y=q.addChild("code_block",q.nextNonspace);y._isFenced=!0;y._fenceLength=b;y._fenceChar=N[0][0];y._fenceOffset=q.indent;le(q);Ki(q,b,!1);return 2}return 0},
function(q,N){if(!q.indented&&wd(q.currentLine,q.nextNonspace)===60){var b=q.currentLine.slice(q.nextNonspace),y;for(y=1;y<=7;y++)if(r71[y].test(b)&&(y<7||N.type!=="paragraph"))return DY(q),q.addChild("html_block",q.offset)._htmlBlockType=y,2}return 0},
function(q,N){var b;if(!q.indented&&N.type==="paragraph"&&(b=q.currentLine.slice(q.nextNonspace).match(wVR))){DY(q);var y=new KA("heading",N.sourcepos);y.level=b[0][0]==="="?1:2;y._string_content=N._string_content;smT(N,y);N.unlink();q.tip=y;Ki(q,q.currentLine.length-q.offset,!1);return 2}return 0},
function(q){return!q.indented&&VaT.test(q.currentLine.slice(q.nextNonspace))?(DY(q),q.addChild("thematic_break",q.nextNonspace),Ki(q,q.currentLine.length-q.offset,!1),2):0},
function(q,N){var b,y;if(!(y=q.indented&&N.type!=="list")){a:{var J=N,E=q.currentLine.slice(q.nextNonspace);y={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:q.indent};if(b=E.match(vJl))y.type="bullet",y.bulletChar=b[0][0];else{if(!(b=E.match(Gtv))||J.type==="paragraph"&&b[1]!=="1"){b=null;break a}y.type="ordered";y.start=parseInt(b[1],10);y.delimiter=b[2]}var F=wd(q.currentLine,q.nextNonspace+b[0].length);if(F!==-1&&F!==9&&F!==32||J.type==="paragraph"&&!q.currentLine.slice(q.nextNonspace+
b[0].length).match(x$R))b=null;else{le(q);Ki(q,b[0].length,!0);J=q.column;E=q.offset;do Ki(q,1,!0),F=wd(q.currentLine,q.offset);while(q.column-J<5&&O7(F));F=wd(q.currentLine,q.offset)===-1;var R=q.column-J;R>=5||R<1||F?(y.padding=b[0].length+1,q.column=J,q.offset=E,O7(wd(q.currentLine,q.offset))&&Ki(q,1,!0)):y.padding=b[0].length+R;b=y}}y=!b}if(y)return 0;DY(q);(y=q.tip.type!=="list")||(N=N._listData,y=!(N.type===b.type&&N.delimiter===b.delimiter&&N.bulletChar===b.bulletChar));y&&(N=q.addChild("list",
q.nextNonspace),N._listData=b);N=q.addChild("item",q.nextNonspace);N._listData=b;return 1},
function(q){var N;return((N=q.options.shouldParseIndentAsCodeBlock)!=null?N:1)&&q.indented&&q.tip.type!=="paragraph"&&!q.blank?(Ki(q,4,!0),DY(q),q.addChild("code_block",q.offset),2):0},
function(q,N){var b=lt(q.currentLine),y=lt(q.lookahead);if(b!==0&&y<0&&Math.abs(b)==Math.abs(y)&&!wEu(N.type)){DY(q);N=q.addChild("table",q.nextNonspace);N._tableRows=1;N._tableColumns=Math.abs(b);b=q.lookahead;if(OGn.test(b)){y=[];for(var J=0,E=!1,F=0,R=void 0;J<b.length;){var c=F>=3;switch(b[J]){case "-":F++;break;case "|":E&&(y.push(R),R=void 0,F=0);E=!0;break;case ":":R||c||(R="left"),!R&&c&&(R="right"),R==="left"&&c&&(R="center")}J++}b=y}else b=void 0;N._columnAlignment=b;N=q.addChild("row",
q.nextNonspace);N._isHeader=!0;Ki(q,q.currentLine.length-q.offset,!1);N._string_content=q.currentLine;return 1}return 0},
function(q,N){if(N.type=="table"&&lt(q.currentLine)!==0){DY(q);var b=N;N=q.addChild("row",q.nextNonspace);lt(q.currentLine)<0?N._rowIsDelimiter=!0:b._tableRows+=1;Ki(q,q.currentLine.length-q.offset,!1);N._string_content=q.currentLine;return 2}return 0}],wUu=function(){var q={shouldParseIndentAsCodeBlock:!1};
q=q===void 0?{}:q;this.lastMatchedContainer=this.doc=iGh();this.refmap={};this.lastLineLength=0;this.inlineParser=new wC(q);this.options=q;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=lQ1;this.blockStarts=KvT},D$x=function(q){q.partiallyConsumedTab&&(q.offset+=1,q.tip._string_content+=" ".repeat(4-q.column%
4));
q.tip._string_content+=q.currentLine.slice(q.offset)+"\n"};
wUu.prototype.addChild=function(q,N){for(;!this.blocks[this.tip.type].canContain(q);)this.finalize(this.tip,this.lineNumber-1);q=new KA(q,[[this.lineNumber,N+1],[0,0]]);q._string_content="";this.tip.appendChild(q);return this.tip=q};
var DY=function(q){if(!q.allClosed){for(;q.oldtip!==q.lastMatchedContainer;){var N=q.oldtip._parent;q.finalize(q.oldtip,q.lineNumber-1);q.oldtip=N}q.allClosed=!0}},Ki=function(q,N,b){for(var y=q.currentLine,J,E;N>0&&(E=y[q.offset]);)E==="\t"?(J=4-q.column%4,b?(q.partiallyConsumedTab=J>N,J=J>N?N:J,q.column+=J,q.offset+=q.partiallyConsumedTab?0:1,N-=J):(q.partiallyConsumedTab=!1,q.column+=J,q.offset+=1,--N)):(q.partiallyConsumedTab=!1,q.offset+=1,q.column+=1,--N)},le=function(q){q.offset=q.nextNonspace;
q.column=q.nextNonspaceColumn;q.partiallyConsumedTab=!1},hfl=function(q){for(var N=q.currentLine,b=q.offset,y=q.column,J;(J=N.charAt(b))!=="";)if(J===" ")b++,y++;
else if(J==="\t")b++,y+=4-y%4;else break;q.blank=J==="\n"||J==="\r"||J==="";q.nextNonspace=b;q.nextNonspaceColumn=y;q.indent=q.nextNonspaceColumn-q.column;q.indented=q.indent>=4};
wUu.prototype.finalize=function(q,N){var b=q._parent;q._open=!1;q.sourcepos[1]=[N,this.lastLineLength];this.blocks[q.type].finalize(this,q);this.tip=b};
wUu.prototype.parse=function(q){this.tip=this.doc=iGh();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!q)return this.doc;this.options.time&&console.time("preparing input");var N=q.split(iNT),b=N.length;q.charCodeAt(q.length-1)===10&&--b;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(q=0;q<b;q++)a:{var y=void 0,J=N[q],E=N[q+1],F=!0,R=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;J.indexOf("\x00")!==-1&&(J=J.replace(/\0/g,"\ufffd"));this.currentLine=J;for(this.lookahead=E;(y=R._lastChild)&&y._open;){R=y;hfl(this);switch(this.blocks[R.type].continue(this,R)){case 0:break;case 1:F=!1;break;case 2:this.lastLineLength=J.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!F){R=R._parent;break}}this.allClosed=R===this.oldtip;this.lastMatchedContainer=
R;y=R.type!=="paragraph"&&lQ1[R.type].acceptsLines;E=this.blockStarts;for(F=E.length;!y;){hfl(this);if(!this.indented&&!jKq.test(J.slice(this.nextNonspace))){le(this);break}for(var c=0;c<F;){var z=E[c](this,R);if(z===1){R=this.tip;break}else if(z===2){R=this.tip;y=!0;break}else c++}if(c===F){le(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){DY(this);this.blank&&R.lastChild&&(R.lastChild._lastLineBlank=!0);y=R.type;E=this.blank&&!(y==="block_quote"||y==="code_block"&&R._isFenced||
y==="item"&&!R._firstChild&&R.sourcepos[0][0]===this.lineNumber);for(F=R;F;)F._lastLineBlank=E,F=F._parent;this.blocks[y].acceptsLines?(D$x(this),y==="html_block"&&R._htmlBlockType>=1&&R._htmlBlockType<=5&&XVq[R._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(R,this.lineNumber)):this.offset<J.length&&!this.blank&&(this.addChild("paragraph",this.offset),le(this),D$x(this))}else D$x(this);this.lastLineLength=J.length}for(;this.tip;)this.finalize(this.tip,b);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");J=new TR1(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;b=J.next();)N=b.node,q=N.type,b.entering||q!=="paragraph"&&q!=="heading"&&q!=="th"&&q!="td"||this.inlineParser.parse(N);this.options.time&&console.timeEnd("inline parsing");return this.doc};loh.prototype.render=function(q){q=new TR1(q);var N;this.buffer="";for(this.lastOut="\n";N=q.next();){var b=N.node.type;if(this[b])this[b](N.node,N.entering)}return this.buffer};
loh.prototype.out=function(q){hG(this,q)};
var hG=function(q,N){q.buffer+=N;q.lastOut=N};
loh.prototype.cr=function(){this.lastOut!=="\n"&&hG(this,"\n")};var ktj=/^javascript:|vbscript:|file:|data:/i,U$j=/^data:image\/(?:png|gif|jpeg|webp)/i,fQ1=function(q){return ktj.test(q)&&!U$j.test(q)};
Dp.prototype=Object.create(loh.prototype);_.g=Dp.prototype;_.g.text=function(q){this.out(q.literal)};
_.g.html_inline=function(q){this.options.safe?hG(this,"\x3c!-- raw HTML omitted --\x3e"):hG(this,q.literal)};
_.g.html_block=function(q){this.cr();this.options.safe?hG(this,"\x3c!-- raw HTML omitted --\x3e"):hG(this,q.literal);this.cr()};
_.g.softbreak=function(){hG(this,this.options.softbreak)};
_.g.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.g.link=function(q,N){var b=this.attrs(q);N?(this.options.safe&&fQ1(q.destination)||b.push(["href",xT(q.destination,!0)]),q.title&&b.push(["title",xT(q.title,!0)]),this.tag("a",b)):this.tag("/a")};
_.g.image=function(q,N){N?(this.disableTags===0&&(this.options.safe&&fQ1(q.destination)?hG(this,'<img src="" alt="'):hG(this,'<img src="'+xT(q.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(q.title&&hG(this,'" title="'+xT(q.title,!0)),hG(this,'" />')))};
_.g.emph=function(q,N){this.tag(N?"em":"/em")};
_.g.strong=function(q,N){this.tag(N?"strong":"/strong")};
_.g.paragraph=function(q,N){var b=q.parent.parent;q=this.attrs(q);b!==null&&b.type==="list"&&b.listTight||(N?(this.cr(),this.tag("p",q)):(this.tag("/p"),this.cr()))};
_.g.heading=function(q,N){var b="h"+q.level;q=this.attrs(q);N?(this.cr(),this.tag(b,q)):(this.tag("/"+b),this.cr())};
_.g.code=function(q){this.tag("code");this.out(q.literal);this.tag("/code")};
_.g.code_block=function(q){var N=q.info?q.info.split(/\s+/):[],b=this.attrs(q);N.length>0&&N[0].length>0&&b.push(["class","language-"+xT(N[0],!0)]);this.cr();this.tag("pre");this.tag("code",b);this.out(q.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.g.thematic_break=function(q){q=this.attrs(q);this.cr();this.tag("hr",q,!0);this.cr()};
_.g.block_quote=function(q,N){q=this.attrs(q);N?(this.cr(),this.tag("blockquote",q)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.g.list=function(q,N){var b=q.listType==="bullet"?"ul":"ol",y=this.attrs(q);N?(q=q.listStart,q!==null&&q!==1&&y.push(["start",q.toString()]),this.cr(),this.tag(b,y)):(this.cr(),this.tag("/"+b));this.cr()};
_.g.item=function(q,N){q=this.attrs(q);N?this.tag("li",q):(this.tag("/li"),this.cr())};
_.g.custom_inline=function(q,N){N&&q.onEnter?hG(this,q.onEnter):!N&&q.onExit&&hG(this,q.onExit)};
_.g.custom_block=function(q,N){this.cr();N&&q.onEnter?hG(this,q.onEnter):!N&&q.onExit&&hG(this,q.onExit);this.cr()};
_.g.table=function(q,N){q=this.attrs(q);N?(this.cr(),this.tag("table",q)):(this.tag("/table"),this.cr())};
_.g.row=function(q,N){q._rowIsDelimiter||(q=this.attrs(q),N?this.tag("tr",q):this.tag("/tr"))};
_.g.td=function(q,N){var b=this.attrs(q);q._alignment&&b.push(["align",q._alignment]);N?this.tag("td",b):this.tag("/td")};
_.g.th=function(q,N){var b=this.attrs(q);q._alignment&&b.push(["align",q._alignment]);N?this.tag("th",b):this.tag("/th")};
_.g.out=function(q){hG(this,xT(q,!1))};
_.g.tag=function(q,N,b){if(!(this.disableTags>0)){this.buffer+="<"+q;if(N&&N.length>0){q=0;for(var y;(y=N[q])!==void 0;)this.buffer+=" "+y[0]+'="'+y[1]+'"',q++}b&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.g.attrs=function(q){var N=[];this.options.sourcepos&&(q=q.sourcepos)&&N.push(["data-sourcepos",String(q[0][0])+":"+String(q[0][1])+"-"+String(q[1][0])+":"+String(q[1][1])]);return N};
Dp.prototype.text=Dp.prototype.text;Dp.prototype.html_inline=Dp.prototype.html_inline;Dp.prototype.html_block=Dp.prototype.html_block;Dp.prototype.softbreak=Dp.prototype.softbreak;Dp.prototype.linebreak=Dp.prototype.linebreak;Dp.prototype.link=Dp.prototype.link;Dp.prototype.image=Dp.prototype.image;Dp.prototype.emph=Dp.prototype.emph;Dp.prototype.strong=Dp.prototype.strong;Dp.prototype.paragraph=Dp.prototype.paragraph;Dp.prototype.heading=Dp.prototype.heading;Dp.prototype.code=Dp.prototype.code;
Dp.prototype.code_block=Dp.prototype.code_block;Dp.prototype.thematic_break=Dp.prototype.thematic_break;Dp.prototype.block_quote=Dp.prototype.block_quote;Dp.prototype.list=Dp.prototype.list;Dp.prototype.item=Dp.prototype.item;Dp.prototype.custom_inline=Dp.prototype.custom_inline;Dp.prototype.custom_block=Dp.prototype.custom_block;Dp.prototype.table=Dp.prototype.table;Dp.prototype.row=Dp.prototype.row;Dp.prototype.td=Dp.prototype.td;Dp.prototype.th=Dp.prototype.th;Dp.prototype.out=Dp.prototype.out;
Dp.prototype.tag=Dp.prototype.tag;Dp.prototype.attrs=Dp.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 C9T,IQq,$hd;(function(){function q(h,K){return h<K?-1:h>K?1:h>=K?0:NaN}
function N(h){return function(K,T){return q(h(K),T)}}
function b(){for(var h=0,K=arguments.length,T={},Ne;h<K;++h){if(!(Ne=arguments[h]+"")||Ne in T)throw Error("we`"+Ne);T[Ne]=[]}return new y(T)}
function y(h){this._=h}
function J(h,K){return h.trim().split(/^|\s+/).map(function(T){var Ne="",cA=T.indexOf(".");cA>=0&&(Ne=T.slice(cA+1),T=T.slice(0,cA));if(T&&!K.hasOwnProperty(T))throw Error("xe`"+T);return{type:T,name:Ne}})}
function E(h,K,T){for(var Ne=0,cA=h.length;Ne<cA;++Ne)if(h[Ne].name===K){h[Ne]=fva;h=h.slice(0,Ne).concat(h.slice(Ne+1));break}T!=null&&h.push({name:K,value:T});return h}
function F(h){var K=h,T=K.indexOf(":");T>=0&&(K=h.slice(0,T))!=="xmlns"&&(h=h.slice(T+1));return om.hasOwnProperty(K)?{space:om[K],local:h}:h}
function R(h){return function(){var K=this.ownerDocument,T=this.namespaceURI;return T==="http://www.w3.org/1999/xhtml"&&K.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?K.createElement(h):K.createElementNS(T,h)}}
function c(h){return function(){return this.ownerDocument.createElementNS(h.space,h.local)}}
function z(h){h=F(h);return(h.local?c:R)(h)}
function m(){}
function r(h){return h==null?m:function(){return this.querySelector(h)}}
function X(h){return Array(h.length)}
function V(h,K){this.ownerDocument=h.ownerDocument;this.namespaceURI=h.namespaceURI;this._next=null;this._parent=h;this.__data__=K}
function G(h){return function(){return h}}
function w(h,K,T,Ne,cA,Xd){for(var Qh=0,kD,F1=K.length,Nv=Xd.length;Qh<Nv;++Qh)(kD=K[Qh])?(kD.__data__=Xd[Qh],Ne[Qh]=kD):T[Qh]=new V(h,Xd[Qh]);for(;Qh<F1;++Qh)if(kD=K[Qh])cA[Qh]=kD}
function D(h,K,T,Ne,cA,Xd,Qh){var kD,F1,Nv={},Rl=K.length,rx=Xd.length,A4=Array(Rl),ka;for(kD=0;kD<Rl;++kD)if(F1=K[kD])A4[kD]=ka="$"+Qh.call(F1,F1.__data__,kD,K),ka in Nv?cA[kD]=F1:Nv[ka]=F1;for(kD=0;kD<rx;++kD)ka="$"+Qh.call(h,Xd[kD],kD,Xd),(F1=Nv[ka])?(Ne[kD]=F1,F1.__data__=Xd[kD],Nv[ka]=null):T[kD]=new V(h,Xd[kD]);for(kD=0;kD<Rl;++kD)(F1=K[kD])&&Nv[A4[kD]]===F1&&(cA[kD]=F1)}
function k(h,K){return h<K?-1:h>K?1:h>=K?0:NaN}
function f(h){return function(){this.removeAttribute(h)}}
function L(h){return function(){this.removeAttributeNS(h.space,h.local)}}
function S(h,K){return function(){this.setAttribute(h,K)}}
function W(h,K){return function(){this.setAttributeNS(h.space,h.local,K)}}
function M(h,K){return function(){var T=K.apply(this,arguments);T==null?this.removeAttribute(h):this.setAttribute(h,T)}}
function qe(h,K){return function(){var T=K.apply(this,arguments);T==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,T)}}
function RJ(h){return function(){this.style.removeProperty(h)}}
function tZ(h,K,T){return function(){this.style.setProperty(h,K,T)}}
function wA(h,K,T){return function(){var Ne=K.apply(this,arguments);Ne==null?this.style.removeProperty(h):this.style.setProperty(h,Ne,T)}}
function rA(h,K){return h.style.getPropertyValue(K)||(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView).getComputedStyle(h,null).getPropertyValue(K)}
function xD(h){return function(){delete this[h]}}
function IJ(h,K){return function(){this[h]=K}}
function sJ(h,K){return function(){var T=K.apply(this,arguments);T==null?delete this[h]:this[h]=T}}
function Sn(){this.textContent=""}
function YE(h){return function(){this.textContent=h}}
function xE(h){return function(){var K=h.apply(this,arguments);this.textContent=K==null?"":K}}
function qv(){this.innerHTML=""}
function mM(h){return function(){this.innerHTML=h}}
function Ox(h){return function(){var K=h.apply(this,arguments);this.innerHTML=K==null?"":K}}
function h4(){return null}
function QC(){var h=this.parentNode;h&&h.removeChild(this)}
function rp(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function Fd(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function yF(h,K,T){h=vR(h,K,T);return function(Ne){var cA=Ne.relatedTarget;cA&&(cA===this||cA.compareDocumentPosition(this)&8)||h.call(this,Ne)}}
function vR(h,K,T){return function(){h.call(this,this.__data__,K,T)}}
function ej(h){return h.trim().split(/^|\s+/).map(function(K){var T="",Ne=K.indexOf(".");Ne>=0&&(T=K.slice(Ne+1),K=K.slice(0,Ne));return{type:K,name:T}})}
function Go(h){return function(){var K=this.__on;if(K){for(var T=0,Ne=-1,cA=K.length,Xd;T<cA;++T)(Xd=K[T],h.type&&Xd.type!==h.type||Xd.name!==h.name)?K[++Ne]=Xd:this.removeEventListener(Xd.type,Xd.listener,Xd.capture);++Ne?K.length=Ne:delete this.__on}}}
function qN(h,K,T){var Ne=XX1.hasOwnProperty(h.type)?yF:vR;return function(cA,Xd,Qh){cA=this.__on;var kD;Xd=Ne(K,Xd,Qh);if(cA){Qh=0;for(var F1=cA.length;Qh<F1;++Qh)if((kD=cA[Qh]).type===h.type&&kD.name===h.name){this.removeEventListener(kD.type,kD.listener,kD.capture);this.addEventListener(kD.type,kD.listener=Xd,kD.capture=T);kD.value=K;return}}this.addEventListener(h.type,Xd,T);kD={type:h.type,name:h.name,value:K,listener:Xd,capture:T};cA?cA.push(kD):this.__on=[kD]}}
function O5(h,K,T){var Ne=h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView,cA=Ne.CustomEvent;typeof cA==="function"?cA=new cA(K,T):(cA=Ne.document.createEvent("Event"),T?(cA.initEvent(K,T.bubbles,T.cancelable),cA.detail=T.detail):cA.initEvent(K,!1,!1));h.dispatchEvent(cA)}
function p1(h,K){return function(){return O5(this,h,K)}}
function $E(h,K){return function(){return O5(this,h,K.apply(this,arguments))}}
function t4(h,K){this._groups=h;this._parents=K}
function gp(){return new t4([[document.documentElement]],CfW)}
function oJ(){this._="@"+(++IvA).toString(36)}
function bB(h,K,T){h.prototype=K.prototype=T;T.constructor=h}
function tB(h,K){h=Object.create(h.prototype);for(var T in K)h[T]=K[T];return h}
function JB(){}
function XA(h){var K;h=(h+"").trim().toLowerCase();return(K=T2p.exec(h))?(K=parseInt(K[1],16),new Of(K>>8&15|K>>4&240,K>>4&15|K&240,(K&15)<<4|K&15,1)):(K=sQx.exec(h))?LU(parseInt(K[1],16)):(K=n$x.exec(h))?new Of(K[1],K[2],K[3],1):(K=avd.exec(h))?new Of(K[1]*255/100,K[2]*255/100,K[3]*255/100,1):(K=SbW.exec(h))?uC(K[1],K[2],K[3],K[4]):(K=W$C.exec(h))?uC(K[1]*255/100,K[2]*255/100,K[3]*255/100,K[4]):(K=L$a.exec(h))?hb(K[1],K[2]/100,K[3]/100,1):(K=pXp.exec(h))?hb(K[1],K[2]/100,K[3]/100,K[4]):Vm1.hasOwnProperty(h)?
LU(Vm1[h]):h==="transparent"?new Of(NaN,NaN,NaN,0):null}
function LU(h){return new Of(h>>16&255,h>>8&255,h&255,1)}
function uC(h,K,T,Ne){Ne<=0&&(h=K=T=NaN);return new Of(h,K,T,Ne)}
function jc(h){h instanceof JB||(h=XA(h));if(!h)return new Of;h=h.rgb();return new Of(h.r,h.g,h.b,h.opacity)}
function L1(h,K,T,Ne){return arguments.length===1?jc(h):new Of(h,K,T,Ne==null?1:Ne)}
function Of(h,K,T,Ne){this.r=+h;this.g=+K;this.b=+T;this.opacity=+Ne}
function Ef(h){h=Math.max(0,Math.min(255,Math.round(h)||0));return(h<16?"0":"")+h.toString(16)}
function hb(h,K,T,Ne){Ne<=0?h=K=T=NaN:T<=0||T>=1?h=K=NaN:K<=0&&(h=NaN);return new X8(h,K,T,Ne)}
function bC(h){if(h instanceof X8)return new X8(h.h,h.s,h.l,h.opacity);h instanceof JB||(h=XA(h));if(!h)return new X8;if(h instanceof X8)return h;h=h.rgb();var K=h.r/255,T=h.g/255,Ne=h.b/255,cA=Math.min(K,T,Ne),Xd=Math.max(K,T,Ne),Qh=NaN,kD=Xd-cA,F1=(Xd+cA)/2;kD?(Qh=K===Xd?(T-Ne)/kD+(T<Ne)*6:T===Xd?(Ne-K)/kD+2:(K-T)/kD+4,kD/=F1<.5?Xd+cA:2-Xd-cA,Qh*=60):kD=F1>0&&F1<1?0:Qh;return new X8(Qh,kD,F1,h.opacity)}
function CF(h,K,T,Ne){return arguments.length===1?bC(h):new X8(h,K,T,Ne==null?1:Ne)}
function X8(h,K,T,Ne){this.h=+h;this.s=+K;this.l=+T;this.opacity=+Ne}
function Wx(h,K,T){return(h<60?K+(T-K)*h/60:h<180?T:h<240?K+(T-K)*(240-h)/60:K)*255}
function Mg(h){if(h instanceof KC)return new KC(h.l,h.a,h.b,h.opacity);if(h instanceof lT){if(isNaN(h.h))return new KC(h.l,0,0,h.opacity);var K=h.h*jQo;return new KC(h.l,Math.cos(K)*h.c,Math.sin(K)*h.c,h.opacity)}h instanceof Of||(h=jc(h));var T=Gc(h.r),Ne=Gc(h.g),cA=Gc(h.b);K=nC(.2225045*T+.7168786*Ne+.0606169*cA);if(T===Ne&&Ne===cA)var Xd=T=K;else Xd=nC((.4360747*T+.3850649*Ne+.1430804*cA)/.96422),T=nC((.0139322*T+.0971045*Ne+.7141733*cA)/.82521);return new KC(116*K-16,500*(Xd-K),200*(K-T),h.opacity)}
function KC(h,K,T,Ne){this.l=+h;this.a=+K;this.b=+T;this.opacity=+Ne}
function nC(h){return h>Pfa?Math.pow(h,1/3):h/x8F+v$1}
function Me(h){return h>XU?h*h*h:x8F*(h-v$1)}
function jj(h){return 255*(h<=.0031308?12.92*h:1.055*Math.pow(h,1/2.4)-.055)}
function Gc(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}
function Uh(h){if(h instanceof lT)return new lT(h.h,h.c,h.l,h.opacity);h instanceof KC||(h=Mg(h));if(h.a===0&&h.b===0)return new lT(NaN,0,h.l,h.opacity);var K=Math.atan2(h.b,h.a)*G7j;return new lT(K<0?K+360:K,Math.sqrt(h.a*h.a+h.b*h.b),h.l,h.opacity)}
function DW(h,K,T,Ne){return arguments.length===1?Uh(h):new lT(h,K,T,Ne==null?1:Ne)}
function lT(h,K,T,Ne){this.h=+h;this.c=+K;this.l=+T;this.opacity=+Ne}
function wx(h,K,T,Ne){if(arguments.length===1){var cA=h;if(cA instanceof SX)cA=new SX(cA.h,cA.s,cA.l,cA.opacity);else{cA instanceof Of||(cA=jc(cA));var Xd=cA.g/255,Qh=cA.b/255,kD=(YbE*Qh+cA.r/255*-1.7884503806-3.5172982438*Xd)/(YbE+-1.7884503806-3.5172982438);Qh-=kD;var F1=(1.97294*(Xd-kD)- -.29227*Qh)/-.90649;Qh=(Xd=Math.sqrt(F1*F1+Qh*Qh)/(1.97294*kD*(1-kD)))?Math.atan2(F1,Qh)*G7j-120:NaN;cA=new SX(Qh<0?Qh+360:Qh,Xd,kD,cA.opacity)}}else cA=new SX(h,K,T,Ne==null?1:Ne);return cA}
function SX(h,K,T,Ne){this.h=+h;this.s=+K;this.l=+T;this.opacity=+Ne}
function WZ(h,K,T,Ne,cA){var Xd=h*h,Qh=Xd*h;return((1-3*h+3*Xd-Qh)*K+(4-6*Xd+3*Qh)*T+(1+3*h+3*Xd-3*Qh)*Ne+Qh*cA)/6}
function VF(h){return function(){return h}}
function oW(h,K){return function(T){return h+T*K}}
function oe(h,K,T){return h=Math.pow(h,T),K=Math.pow(K,T)-h,T=1/T,function(Ne){return Math.pow(h+Ne*K,T)}}
function Lc(h,K){var T=K-h;return T?oW(h,T>180||T<-180?T-360*Math.round(T/360):T):VF(isNaN(h)?K:h)}
function AX(h){return(h=+h)===1?yH:function(K,T){return T-K?oe(K,T,h):VF(isNaN(K)?T:K)}}
function yH(h,K){var T=K-h;return T?oW(h,T):VF(isNaN(h)?K:h)}
function sv(h){return function(K){var T=K.length,Ne=Array(T),cA=Array(T),Xd=Array(T),Qh;for(Qh=0;Qh<T;++Qh){var kD=L1(K[Qh]);Ne[Qh]=kD.r||0;cA[Qh]=kD.g||0;Xd[Qh]=kD.b||0}Ne=h(Ne);cA=h(cA);Xd=h(Xd);kD.opacity=1;return function(F1){kD.r=Ne(F1);kD.g=cA(F1);kD.b=Xd(F1);return kD+""}}}
function IA(h,K){return h=+h,K-=h,function(T){return h+K*T}}
function rb(h){return function(){return h}}
function Jh(h){return function(K){return h(K)+""}}
function rL(h,K){var T=T7z.lastIndex=skJ.lastIndex=0,Ne,cA,Xd,Qh=-1,kD=[],F1=[];h+="";for(K+="";(Ne=T7z.exec(h))&&(cA=skJ.exec(K));)(Xd=cA.index)>T&&(Xd=K.slice(T,Xd),kD[Qh]?kD[Qh]+=Xd:kD[++Qh]=Xd),(Ne=Ne[0])===(cA=cA[0])?kD[Qh]?kD[Qh]+=cA:kD[++Qh]=cA:(kD[++Qh]=null,F1.push({i:Qh,x:IA(Ne,cA)})),T=skJ.lastIndex;T<K.length&&(Xd=K.slice(T),kD[Qh]?kD[Qh]+=Xd:kD[++Qh]=Xd);return kD.length<2?F1[0]?Jh(F1[0].x):rb(K):(K=F1.length,function(Nv){for(var Rl=0,rx;Rl<K;++Rl)kD[(rx=F1[Rl]).i]=rx.x(Nv);return kD.join("")})}
function vW(h,K,T,Ne,cA,Xd){var Qh,kD,F1;if(Qh=Math.sqrt(h*h+K*K))h/=Qh,K/=Qh;if(F1=h*T+K*Ne)T-=h*F1,Ne-=K*F1;if(kD=Math.sqrt(T*T+Ne*Ne))T/=kD,Ne/=kD,F1/=kD;h*Ne<K*T&&(h=-h,K=-K,F1=-F1,Qh=-Qh);return{translateX:cA,translateY:Xd,rotate:Math.atan2(K,h)*QQ4,skewX:Math.atan(F1)*QQ4,scaleX:Qh,scaleY:kD}}
function pQ(h,K,T,Ne){function cA(Nv){return Nv.length?Nv.pop()+" ":""}
function Xd(Nv,Rl,rx,A4,ka,YB){Nv!==rx||Rl!==A4?(ka=ka.push("translate(",null,K,null,T),YB.push({i:ka-4,x:IA(Nv,rx)},{i:ka-2,x:IA(Rl,A4)})):(rx||A4)&&ka.push("translate("+rx+K+A4+T)}
function Qh(Nv,Rl,rx,A4){Nv!==Rl?(Nv-Rl>180?Rl+=360:Rl-Nv>180&&(Nv+=360),A4.push({i:rx.push(cA(rx)+"rotate(",null,Ne)-2,x:IA(Nv,Rl)})):Rl&&rx.push(cA(rx)+"rotate("+Rl+Ne)}
function kD(Nv,Rl,rx,A4){Nv!==Rl?A4.push({i:rx.push(cA(rx)+"skewX(",null,Ne)-2,x:IA(Nv,Rl)}):Rl&&rx.push(cA(rx)+"skewX("+Rl+Ne)}
function F1(Nv,Rl,rx,A4,ka,YB){Nv!==rx||Rl!==A4?(ka=ka.push(cA(ka)+"scale(",null,",",null,")"),YB.push({i:ka-4,x:IA(Nv,rx)},{i:ka-2,x:IA(Rl,A4)})):rx===1&&A4===1||ka.push(cA(ka)+"scale("+rx+","+A4+")")}
return function(Nv,Rl){var rx=[],A4=[];Nv=h(Nv);Rl=h(Rl);Xd(Nv.translateX,Nv.translateY,Rl.translateX,Rl.translateY,rx,A4);Qh(Nv.rotate,Rl.rotate,rx,A4);kD(Nv.skewX,Rl.skewX,rx,A4);F1(Nv.scaleX,Nv.scaleY,Rl.scaleX,Rl.scaleY,rx,A4);Nv=Rl=null;return function(ka){for(var YB=-1,Px=A4.length,Db;++YB<Px;)rx[(Db=A4[YB]).i]=Db.x(ka);return rx.join("")}}}
function wz(h){return function(K,T){var Ne=h((K=CF(K)).h,(T=CF(T)).h),cA=yH(K.s,T.s),Xd=yH(K.l,T.l),Qh=yH(K.opacity,T.opacity);return function(kD){K.h=Ne(kD);K.s=cA(kD);K.l=Xd(kD);K.opacity=Qh(kD);return K+""}}}
function XP(h){return function(K,T){var Ne=h((K=DW(K)).h,(T=DW(T)).h),cA=yH(K.c,T.c),Xd=yH(K.l,T.l),Qh=yH(K.opacity,T.opacity);return function(kD){K.h=Ne(kD);K.c=cA(kD);K.l=Xd(kD);K.opacity=Qh(kD);return K+""}}}
function zv(h){return function Ne(T){function cA(Xd,Qh){var kD=h((Xd=wx(Xd)).h,(Qh=wx(Qh)).h),F1=yH(Xd.s,Qh.s),Nv=yH(Xd.l,Qh.l),Rl=yH(Xd.opacity,Qh.opacity);return function(rx){Xd.h=kD(rx);Xd.s=F1(rx);Xd.l=Nv(Math.pow(rx,T));Xd.opacity=Rl(rx);return Xd+""}}
T=+T;cA.gamma=Ne;return cA}(1)}
function iW(){return sr||(OEx(rv),sr=R_.now()+W0R)}
function rv(){sr=0}
function lW(){this._call=this._time=this._next=null}
function $x(h,K,T){var Ne=new lW;Ne.restart(h,K,T);return Ne}
function Qi(){sr=(L0Z=R_.now())+W0R;Vc=df=0;try{iW();++Vc;for(var h=p_A,K;h;)(K=sr-h._time)>=0&&h._call.call(null,K),h=h._next;--Vc}finally{Vc=0;h=p_A;for(var T=Infinity;h;)if(h._call){T>h._time&&(T=h._time);var Ne=h;h=h._next}else K=h._next,h._next=null,h=Ne?Ne._next=K:p_A=K;cN=Ne;GV(T);sr=0}}
function X7(){var h=R_.now(),K=h-L0Z;K>1E3&&(W0R-=K,L0Z=h)}
function GV(h){Vc||(df&&(df=clearTimeout(df)),h-sr>24?(h<Infinity&&(df=setTimeout(Qi,h-R_.now()-W0R)),u6&&(u6=clearInterval(u6))):(u6||(L0Z=R_.now(),u6=setInterval(X7,1E3)),Vc=1,OEx(Qi)))}
function Zq(h,K,T){var Ne=new lW;K=K==null?0:+K;Ne.restart(function(cA){Ne.stop();h(cA+K)},K,T);
return Ne}
function xa(h,K,T,Ne,cA,Xd){var Qh=h.__transition;if(!Qh)h.__transition={};else if(T in Qh)return;nF(h,T,{name:K,index:Ne,group:cA,on:Mmf,tween:o$X,time:Xd.time,delay:Xd.delay,duration:Xd.duration,ease:Xd.ease,timer:null,state:0})}
function sf(h,K){h=s5(h,K);if(h.state>0)throw Error("ye");return h}
function rs(h,K){h=s5(h,K);if(h.state>2)throw Error("ze");return h}
function s5(h,K){h=h.__transition;if(!h||!(h=h[K]))throw Error("Ae");return h}
function nF(h,K,T){function Ne(F1){var Nv,Rl;if(T.state!==1)return Xd();for(A4 in Qh){var rx=Qh[A4];if(rx.name===T.name){if(rx.state===3)return Zq(Ne);rx.state===4?(rx.state=6,rx.timer.stop(),rx.on.call("interrupt",h,h.__data__,rx.index,rx.group),delete Qh[A4]):+A4<K&&(rx.state=6,rx.timer.stop(),delete Qh[A4])}}Zq(function(){T.state===3&&(T.state=4,T.timer.restart(cA,T.delay,T.time),cA(F1))});
T.state=2;T.on.call("start",h,h.__data__,T.index,T.group);if(T.state===2){T.state=3;kD=Array(Rl=T.tween.length);var A4=0;for(Nv=-1;A4<Rl;++A4)if(rx=T.tween[A4].value.call(h,h.__data__,T.index,T.group))kD[++Nv]=rx;kD.length=Nv+1}}
function cA(F1){F1=F1<T.duration?T.ease.call(null,F1/T.duration):(T.timer.restart(Xd),T.state=5,1);for(var Nv=-1,Rl=kD.length;++Nv<Rl;)kD[Nv].call(null,F1);T.state===5&&(T.on.call("end",h,h.__data__,T.index,T.group),Xd())}
function Xd(){T.state=6;T.timer.stop();delete Qh[K];for(var F1 in Qh)return;delete h.__transition}
var Qh=h.__transition,kD;Qh[K]=T;T.timer=$x(function(F1){T.state=1;T.timer.restart(Ne,T.delay,T.time);T.delay<=F1&&Ne(F1-T.delay)},0,T.time)}
function AV(h,K){var T,Ne;return function(){var cA=rs(this,h),Xd=cA.tween;if(Xd!==T){Ne=T=Xd;Xd=0;for(var Qh=Ne.length;Xd<Qh;++Xd)if(Ne[Xd].name===K){Ne=Ne.slice();Ne.splice(Xd,1);break}}cA.tween=Ne}}
function a6(h,K,T){var Ne,cA;if(typeof T!=="function")throw Error();return function(){var Xd=rs(this,h),Qh=Xd.tween;if(Qh!==Ne){cA=(Ne=Qh).slice();Qh={name:K,value:T};for(var kD=0,F1=cA.length;kD<F1;++kD)if(cA[kD].name===K){cA[kD]=Qh;break}kD===F1&&cA.push(Qh)}Xd.tween=cA}}
function GW(h,K,T){var Ne=h._id;h.each(function(){var cA=rs(this,Ne);(cA.value||(cA.value={}))[K]=T.apply(this,arguments)});
return function(cA){return s5(cA,Ne).value[K]}}
function wXJ(h,K){var T;return(typeof K==="number"?IA:K instanceof XA?iEl:(T=XA(K))?(K=T,iEl):rL)(h,K)}
function APa(h){return function(){this.removeAttribute(h)}}
function eHA(h){return function(){this.removeAttributeNS(h.space,h.local)}}
function B2C(h,K,T){var Ne,cA;return function(){var Xd=this.getAttribute(h);return Xd===T?null:Xd===Ne?cA:cA=K(Ne=Xd,T)}}
function HEC(h,K,T){var Ne,cA;return function(){var Xd=this.getAttributeNS(h.space,h.local);return Xd===T?null:Xd===Ne?cA:cA=K(Ne=Xd,T)}}
function qoa(h,K,T){var Ne,cA,Xd;return function(){var Qh=T(this);if(Qh==null)return void this.removeAttribute(h);var kD=this.getAttribute(h);return kD===Qh?null:kD===Ne&&Qh===cA?Xd:Xd=K(Ne=kD,cA=Qh)}}
function NmU(h,K,T){var Ne,cA,Xd;return function(){var Qh=T(this);if(Qh==null)return void this.removeAttributeNS(h.space,h.local);var kD=this.getAttributeNS(h.space,h.local);return kD===Qh?null:kD===Ne&&Qh===cA?Xd:Xd=K(Ne=kD,cA=Qh)}}
function bRf(h,K){function T(){var Ne=this,cA=K.apply(Ne,arguments);return cA&&function(Xd){Ne.setAttributeNS(h.space,h.local,cA(Xd))}}
T._value=K;return T}
function ydc(h,K){function T(){var Ne=this,cA=K.apply(Ne,arguments);return cA&&function(Xd){Ne.setAttribute(h,cA(Xd))}}
T._value=K;return T}
function Jdc(h,K){return function(){sf(this,h).delay=+K.apply(this,arguments)}}
function EtC(h,K){return K=+K,function(){sf(this,h).delay=K}}
function gtC(h,K){return function(){rs(this,h).duration=+K.apply(this,arguments)}}
function ZRB(h,K){return K=+K,function(){rs(this,h).duration=K}}
function FPd(h,K){if(typeof K!=="function")throw Error();return function(){rs(this,h).ease=K}}
function RbB(h){return(h+"").trim().split(/^|\s+/).every(function(K){var T=K.indexOf(".");T>=0&&(K=K.slice(0,T));return!K||K==="start"})}
function dWx(h,K,T){var Ne,cA,Xd=RbB(K)?sf:rs;return function(){var Qh=Xd(this,h),kD=Qh.on;if(kD!==Ne)(cA=(Ne=kD).copy()).on(K,T);Qh.on=cA}}
function cdB(h){return function(){var K=this.parentNode,T;for(T in this.__transition)if(+T!==h)return;K&&K.removeChild(this)}}
function uVp(h,K){var T,Ne,cA;return function(){var Xd=rA(this,h),Qh=(this.style.removeProperty(h),rA(this,h));return Xd===Qh?null:Xd===T&&Qh===Ne?cA:cA=K(T=Xd,Ne=Qh)}}
function zbp(h){return function(){this.style.removeProperty(h)}}
function $WW(h,K,T){var Ne,cA;return function(){var Xd=rA(this,h);return Xd===T?null:Xd===Ne?cA:cA=K(Ne=Xd,T)}}
function tYa(h,K,T){var Ne,cA,Xd;return function(){var Qh=rA(this,h),kD=T(this);kD==null&&(kD=(this.style.removeProperty(h),rA(this,h)));return Qh===kD?null:Qh===Ne&&kD===cA?Xd:Xd=K(Ne=Qh,cA=kD)}}
function mWC(h,K,T){function Ne(){var cA=this,Xd=K.apply(cA,arguments);return Xd&&function(Qh){cA.style.setProperty(h,Xd(Qh),T)}}
Ne._value=K;return Ne}
function rdp(h){return function(){this.textContent=h}}
function XFU(h){return function(){var K=h(this);this.textContent=K==null?"":K}}
function YY(h,K,T,Ne){this._groups=h;this._parents=K;this._name=T;this._id=Ne}
function nwA(h){return{type:h}}
function atC(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function P0C(){}
function lvx(h,K){var T=new P0C;if(h instanceof P0C)h.each(function(Qh,kD){T.set(kD,Qh)});
else if(Array.isArray(h)){var Ne=-1,cA=h.length,Xd;if(K==null)for(;++Ne<cA;)T.set(Ne,h[Ne]);else for(;++Ne<cA;)T.set(K(Xd=h[Ne],Ne,h),Xd)}else if(h)for(Ne in h)T.set(Ne,h[Ne]);return T}
function M0R(){}
function K$F(h){return function(K){for(var T={},Ne=0;Ne<h.length;Ne++)T[h[Ne]]=K[Ne]||"";return T}}
function VYB(h,K){var T=K$F(h);return function(Ne,cA){return K(T(Ne),cA,h)}}
function jra(h){var K=Object.create(null),T=[];h.forEach(function(Ne){for(var cA in Ne)cA in K||T.push(K[cA]=cA)});
return T}
function D8E(h){function K(Qh,kD){function F1(){if(YB)return S6n;if(Px)return Px=!1,hHM;var F0,q7=rx,lG;if(Qh.charCodeAt(q7)===34){for(;rx++<Rl&&Qh.charCodeAt(rx)!==34||Qh.charCodeAt(++rx)===34;);(F0=rx)>=Rl?YB=!0:(lG=Qh.charCodeAt(rx++))===10?Px=!0:lG===13&&(Px=!0,Qh.charCodeAt(rx)===10&&++rx);return Qh.slice(q7+1,F0-1).replace(/""/g,'"')}for(;rx<Rl;){if((lG=Qh.charCodeAt(F0=rx++))===10)Px=!0;else if(lG===13)Px=!0,Qh.charCodeAt(rx)===10&&++rx;else if(lG!==Xd)continue;return Qh.slice(q7,F0)}return YB=
!0,Qh.slice(q7,Rl)}
var Nv=[],Rl=Qh.length,rx=0,A4=0,ka,YB=Rl<=0,Px=!1;Qh.charCodeAt(Rl-1)===10&&--Rl;for(Qh.charCodeAt(Rl-1)===13&&--Rl;(ka=F1())!==S6n;){for(var Db=[];ka!==hHM&&ka!==S6n;)Db.push(ka),ka=F1();kD&&(Db=kD(Db,A4++))==null||Nv.push(Db)}return Nv}
function T(Qh){return Qh.map(Ne).join(h)}
function Ne(Qh){return Qh==null?"":cA.test(Qh)?'"'+Qh.replace(/"/g,'""')+'"':Qh}
var cA=new RegExp('["'+h+"\n\r]"),Xd=h.charCodeAt(0);return{parse:function(Qh,kD){var F1,Nv;Qh=K(Qh,function(Rl,rx){if(F1)return F1(Rl,rx-1);Nv=Rl;F1=kD?VYB(Rl,kD):K$F(Rl)});
Qh.columns=Nv||[];return Qh},
parseRows:K,format:function(Qh,kD){kD==null&&(kD=jra(Qh));return[kD.map(Ne).join(h)].concat(Qh.map(function(F1){return kD.map(function(Nv){return Ne(F1[Nv])}).join(h)})).join("\n")},
formatRows:function(Qh){return Qh.map(T).join("\n")}}}
function xWN(h){if(!h.ok)throw Error("Be`"+h.status+"`"+h.statusText);return h.text()}
function k7x(h){return function(K,T,Ne){arguments.length===2&&typeof T==="function"&&(Ne=T,T=void 0);return fetch(K,T).then(xWN).then(function(cA){return h(cA,Ne)})}}
function U8R(h,K,T,Ne){if(isNaN(K)||isNaN(T))return h;var cA,Xd=h._root;Ne={data:Ne};var Qh=h._x0,kD=h._y0,F1=h._x1,Nv=h._y1,Rl,rx,A4,ka,YB;if(!Xd)return h._root=Ne,h;for(;Xd.length;)if((A4=K>=(Rl=(Qh+F1)/2))?Qh=Rl:F1=Rl,(ka=T>=(rx=(kD+Nv)/2))?kD=rx:Nv=rx,cA=Xd,!(Xd=Xd[YB=ka<<1|A4]))return cA[YB]=Ne,h;var Px=+h._x.call(null,Xd.data);var Db=+h._y.call(null,Xd.data);if(K===Px&&T===Db)return Ne.next=Xd,cA?cA[YB]=Ne:h._root=Ne,h;do cA=cA?cA[YB]=Array(4):h._root=Array(4),(A4=K>=(Rl=(Qh+F1)/2))?Qh=Rl:F1=
Rl,(ka=T>=(rx=(kD+Nv)/2))?kD=rx:Nv=rx;while((YB=ka<<1|A4)===(A4=(Db>=rx)<<1|Px>=Rl));return cA[A4]=Xd,cA[YB]=Ne,h}
function q9(h,K,T,Ne,cA){this.node=h;this.x0=K;this.y0=T;this.x1=Ne;this.y1=cA}
function vtf(h){return h[0]}
function GQc(h){return h[1]}
function Wyh(h,K,T,Ne,cA,Xd){this._x=h;this._y=K;this._x0=T;this._y0=Ne;this._x1=cA;this._y1=Xd;this._root=void 0}
function fv4(h){for(var K={data:h.data},T=K;h=h.next;)T=T.next={data:h.data};return K}
function oyd(h,K){if((K=(h=K?h.toExponential(K-1):h.toExponential()).indexOf("e"))<0)return null;var T=h.slice(0,K);return[T.length>1?T[0]+T.slice(2):T,+h.slice(K+1)]}
function Yof(h){return h=oyd(Math.abs(h)),h?h[1]:NaN}
function QrA(h,K){return function(T,Ne){for(var cA=T.length,Xd=[],Qh=0,kD=h[0],F1=0;cA>0&&kD>0;){F1+kD+1>Ne&&(kD=Math.max(1,Ne-F1));Xd.push(T.substring(cA-=kD,cA+kD));if((F1+=kD+1)>Ne)break;kD=h[Qh=(Qh+1)%h.length]}return Xd.reverse().join(K)}}
function ORX(h){return function(K){return K.replace(/[0-9]/g,function(T){return h[+T]})}}
function LyZ(h){return new p6u(h)}
function p6u(h){if(!(K=wFd.exec(h)))throw Error("Ce`"+h);var K;this.fill=K[1]||" ";this.align=K[2]||">";this.sign=K[3]||"-";this.symbol=K[4]||"";this.zero=!!K[5];this.width=K[6]&&+K[6];this.comma=!!K[7];this.precision=K[8]&&+K[8].slice(1);this.trim=!!K[9];this.type=K[10]||""}
function Cfq(h,K){K=oyd(h,K);if(!K)return h+"";h=K[0];K=K[1];return K<0?"0."+Array(-K).join("0")+h:h.length>K+1?h.slice(0,K+1)+"."+h.slice(K+1):h+Array(K-h.length+2).join("0")}
function Iv1(h){return h}
function iRd(h){function K(kD){function F1(HZ){var Yy=lG,MN=E$,Ge,cZ;if(q7==="c")MN=N7(HZ)+MN,HZ="";else{HZ=+HZ;var CU=HZ<0;HZ=N7(Math.abs(HZ),Db);if(F0){var eI=HZ.length,NL=1,RC=-1;a:for(;NL<eI;++NL)switch(HZ[NL]){case ".":RC=Ge=NL;break;case "0":RC===0&&(RC=NL);Ge=NL;break;default:if(!+HZ[NL])break a;RC>0&&(RC=0)}HZ=RC>0?HZ.slice(0,RC)+HZ.slice(Ge+1):HZ}CU&&+HZ===0&&(CU=!1);Yy=(CU?rx==="("?rx:"-":rx==="-"||rx==="("?"":rx)+Yy;MN=(q7==="s"?T2x[8+sQJ/3]:"")+MN+(CU&&rx==="("?")":"");if(GP)for(CU=-1,
Ge=HZ.length;++CU<Ge;)if(cZ=HZ.charCodeAt(CU),48>cZ||cZ>57){MN=(cZ===46?cA+HZ.slice(CU+1):HZ.slice(CU))+MN;HZ=HZ.slice(0,CU);break}}Px&&!ka&&(HZ=T(HZ,Infinity));cZ=Yy.length+HZ.length+MN.length;CU=cZ<YB?Array(YB-cZ+1).join(Nv):"";Px&&ka&&(HZ=T(CU+HZ,CU.length?YB-MN.length:Infinity),CU="");switch(Rl){case "<":HZ=Yy+HZ+MN+CU;break;case "=":HZ=Yy+CU+HZ+MN;break;case "^":HZ=CU.slice(0,cZ=CU.length>>1)+Yy+HZ+MN+CU.slice(cZ);break;default:HZ=CU+Yy+HZ+MN}return Xd(HZ)}
kD=LyZ(kD);var Nv=kD.fill,Rl=kD.align,rx=kD.sign,A4=kD.symbol,ka=kD.zero,YB=kD.width,Px=kD.comma,Db=kD.precision,F0=kD.trim,q7=kD.type;q7==="n"?(Px=!0,q7="g"):n$J[q7]||(Db==null&&(Db=12),F0=!0,q7="g");if(ka||Nv==="0"&&Rl==="=")ka=!0,Nv="0",Rl="=";var lG=A4==="$"?Ne[0]:A4==="#"&&/[boxX]/.test(q7)?"0"+q7.toLowerCase():"",E$=A4==="$"?Ne[1]:/[%p]/.test(q7)?Qh:"",N7=n$J[q7],GP=/[defgprs%]/.test(q7);Db=Db==null?6:/[gprs]/.test(q7)?Math.max(1,Math.min(21,Db)):Math.max(0,Math.min(20,Db));F1.toString=function(){return kD+
""};
return F1}
var T=h.grouping&&h.thousands?QrA(h.grouping,h.thousands):Iv1,Ne=h.currency,cA=h.decimal,Xd=h.numerals?ORX(h.numerals):Iv1,Qh=h.percent||"%";return{format:K,formatPrefix:function(kD,F1){var Nv=K((kD=LyZ(kD),kD.type="f",kD));kD=Math.max(-8,Math.min(8,Math.floor(Yof(F1)/3)))*3;var Rl=Math.pow(10,-kD),rx=T2x[8+kD/3];return function(A4){return Nv(Rl*A4)+rx}}}}
function S5(){this.reset()}
function avR(h,K,T){var Ne=h.s=K+T,cA=Ne-K;h.t=K-(Ne-cA)+(T-cA)}
function Arz(h){return h>1?A3:h<-1?-A3:Math.asin(h)}
function lVf(){}
function Sbq(h){var K=h[0];h=h[1];var T=eP(h);return[T*eP(K),T*kR(K),kR(h)]}
function W$F(h,K){return[h[1]*K[2]-h[2]*K[1],h[2]*K[0]-h[0]*K[2],h[0]*K[1]-h[1]*K[0]]}
function L$E(h){var K=erR(h[0]*h[0]+h[1]*h[1]+h[2]*h[2]);h[0]/=K;h[1]/=K;h[2]/=K}
function KPf(){var h=[],K;return{point:function(T,Ne){K.push([T,Ne])},
lineStart:function(){h.push(K=[])},
lineEnd:lVf,rejoin:function(){h.length>1&&h.push(h.pop().concat(h.shift()))},
result:function(){var T=h;h=[];K=null;return T}}}
function BLA(h,K,T,Ne){this.x=h;this.z=K;this.o=T;this.e=Ne;this.v=!1;this.n=this.p=null}
function DWc(h,K,T,Ne,cA){var Xd=[],Qh=[];h.forEach(function(rx){if(!((A4=rx.length-1)<=0)){var A4,ka=rx[0],YB=rx[A4],Px=ka;if(Qf(Px[0]-YB[0])<1E-6&&Qf(Px[1]-YB[1])<1E-6){cA.lineStart();for(kD=0;kD<A4;++kD)cA.point((ka=rx[kD])[0],ka[1]);cA.lineEnd()}else Xd.push(A4=new BLA(ka,rx,null,!0)),Qh.push(A4.o=new BLA(ka,null,A4,!1)),Xd.push(A4=new BLA(YB,rx,null,!1)),Qh.push(A4.o=new BLA(YB,null,A4,!0))}});
if(Xd.length){Qh.sort(K);pXx(Xd);pXx(Qh);var kD=0;for(h=Qh.length;kD<h;++kD)Qh[kD].e=T=!T;T=Xd[0];for(var F1;;){for(var Nv=T,Rl=!0;Nv.v;)if((Nv=Nv.n)===T)return;K=Nv.z;cA.lineStart();do{Nv.v=Nv.o.v=!0;if(Nv.e){if(Rl)for(kD=0,h=K.length;kD<h;++kD)cA.point((F1=K[kD])[0],F1[1]);else Ne(Nv.x,Nv.n.x,1,cA);Nv=Nv.n}else{if(Rl)for(K=Nv.p.z,kD=K.length-1;kD>=0;--kD)cA.point((F1=K[kD])[0],F1[1]);else Ne(Nv.x,Nv.p.x,-1,cA);Nv=Nv.p}Nv=Nv.o;K=Nv.z;Rl=!Rl}while(!Nv.v);cA.lineEnd()}}}
function pXx(h){if(K=h.length){for(var K,T=0,Ne=h[0],cA;++T<K;)Ne.n=cA=h[T],cA.p=Ne,Ne=cA;Ne.n=cA=h[0];cA.p=Ne}}
function hbC(h){return h.length>1}
function kQf(h,K){return((h=h.x)[0]<0?h[1]-A3-1E-6:A3-h[1])-((K=K.x)[0]<0?K[1]-A3-1E-6:A3-K[1])}
function PPR(){}
function PfE(h){return function(K,T){var Ne=eP(K),cA=eP(T);Ne=h(Ne*cA);return[Ne*cA*kR(K),Ne*kR(T)]}}
function zA(h){return function(K,T){var Ne=erR(K*K+T*T),cA=h(Ne),Xd=kR(cA);cA=eP(cA);return[Mml(K*Xd,Ne*cA),Arz(Ne&&T*Xd/Ne)]}}
function UWA(h){var K=0,T=h.children,Ne=T&&T.length;if(Ne)for(;--Ne>=0;)K+=T[Ne].value;else K=1;h.value=K}
function o$j(h,K){var T=new $u(h);h=+h.value&&(T.value=h.value);var Ne,cA=[T],Xd,Qh,kD,F1;for(K==null&&(K=fVx);Ne=cA.pop();)if(h&&(Ne.value=+Ne.data.value),(Qh=K(Ne.data))&&(F1=Qh.length))for(Ne.children=Array(F1),kD=F1-1;kD>=0;--kD)cA.push(Xd=Ne.children[kD]=new $u(Qh[kD])),Xd.parent=Ne,Xd.depth=Ne.depth+1;return T.eachBefore(CDp)}
function fVx(h){return h.children}
function IVf(h){h.data=h.data.data}
function CDp(h){var K=0;do h.height=K;while((h=h.parent)&&h.height<++K)}
function $u(h){this.data=h;this.depth=this.height=0;this.parent=null}
function YU(h,K,T,Ne){function cA(Xd){return h(Xd=new Date(+Xd)),Xd}
cA.floor=cA;cA.ceil=function(Xd){return h(Xd=new Date(Xd-1)),K(Xd,1),h(Xd),Xd};
cA.round=function(Xd){var Qh=cA(Xd),kD=cA.ceil(Xd);return Xd-Qh<kD-Xd?Qh:kD};
cA.offset=function(Xd,Qh){return K(Xd=new Date(+Xd),Qh==null?1:Math.floor(Qh)),Xd};
cA.range=function(Xd,Qh,kD){var F1=[],Nv;Xd=cA.ceil(Xd);kD=kD==null?1:Math.floor(kD);if(!(Xd<Qh&&kD>0))return F1;do F1.push(Nv=new Date(+Xd)),K(Xd,kD),h(Xd);while(Nv<Xd&&Xd<Qh);return F1};
cA.filter=function(Xd){return YU(function(Qh){if(Qh>=Qh)for(;h(Qh),!Xd(Qh);)Qh.setTime(Qh-1)},function(Qh,kD){if(Qh>=Qh)if(kD<0)for(;++kD<=0;)for(;K(Qh,-1),!Xd(Qh););
else for(;--kD>=0;)for(;K(Qh,1),!Xd(Qh););})};
T&&(cA.count=function(Xd,Qh){MsJ.setTime(+Xd);owh.setTime(+Qh);h(MsJ);h(owh);return Math.floor(T(MsJ,owh))},cA.every=function(Xd){Xd=Math.floor(Xd);
return isFinite(Xd)&&Xd>0?Xd>1?cA.filter(Ne?function(Qh){return Ne(Qh)%Xd===0}:function(Qh){return cA.count(0,Qh)%Xd===0}):cA:null});
return cA}
function nu(h){return YU(function(K){K.setDate(K.getDate()-(K.getDay()+7-h)%7);K.setHours(0,0,0,0)},function(K,T){K.setDate(K.getDate()+T*7)},function(K,T){return(T-K-(T.getTimezoneOffset()-K.getTimezoneOffset())*6E4)/6048E5})}
function aZ(h){return YU(function(K){K.setUTCDate(K.getUTCDate()-(K.getUTCDay()+7-h)%7);K.setUTCHours(0,0,0,0)},function(K,T){K.setUTCDate(K.getUTCDate()+T*7)},function(K,T){return(T-K)/6048E5})}
function Tmp(h){if(0<=h.y&&h.y<100){var K=new Date(-1,h.m,h.d,h.H,h.M,h.S,h.L);K.setFullYear(h.y);return K}return new Date(h.y,h.m,h.d,h.H,h.M,h.S,h.L)}
function Hod(h){if(0<=h.y&&h.y<100){var K=new Date(Date.UTC(-1,h.m,h.d,h.H,h.M,h.S,h.L));K.setUTCFullYear(h.y);return K}return new Date(Date.UTC(h.y,h.m,h.d,h.H,h.M,h.S,h.L))}
function tH(h){return{y:h,m:0,d:1,H:0,M:0,S:0,L:0}}
function sra(h){function K(MN,Ge){return function(cZ){var CU=[],eI=-1,NL=0,RC=MN.length,xf,QM;for(cZ instanceof Date||(cZ=new Date(+cZ));++eI<RC;)if(MN.charCodeAt(eI)===37){CU.push(MN.slice(NL,eI));(NL=APE[xf=MN.charAt(++eI)])!=null?xf=MN.charAt(++eI):NL=xf==="e"?" ":"0";if(QM=Ge[xf])xf=QM(cZ,NL);CU.push(xf);NL=eI+1}CU.push(MN.slice(NL,eI));return CU.join("")}}
function T(MN,Ge){return function(cZ){var CU=tH(1900);if(Ne(CU,MN,cZ,0)!=cZ.length)return null;if("Q"in CU)return new Date(CU.Q);"p"in CU&&(CU.H=CU.H%12+CU.p*12);if("V"in CU){if(CU.V<1||CU.V>53)return null;"w"in CU||(CU.w=1);if("Z"in CU){cZ=Hod(tH(CU.y));var eI=cZ.getUTCDay();cZ=eI>4||eI===0?A0h.ceil(cZ):A0h(cZ);cZ=eH1.offset(cZ,(CU.V-1)*7);CU.y=cZ.getUTCFullYear();CU.m=cZ.getUTCMonth();CU.d=cZ.getUTCDate()+(CU.w+6)%7}else cZ=Ge(tH(CU.y)),eI=cZ.getDay(),cZ=eI>4||eI===0?ekC.ceil(cZ):ekC(cZ),cZ=B2F.offset(cZ,
(CU.V-1)*7),CU.y=cZ.getFullYear(),CU.m=cZ.getMonth(),CU.d=cZ.getDate()+(CU.w+6)%7}else if("W"in CU||"U"in CU)"w"in CU||(CU.w="u"in CU?CU.u%7:"W"in CU?1:0),eI="Z"in CU?Hod(tH(CU.y)).getUTCDay():Ge(tH(CU.y)).getDay(),CU.m=0,CU.d="W"in CU?(CU.w+6)%7+CU.W*7-(eI+5)%7:CU.w+CU.U*7-(eI+6)%7;return"Z"in CU?(CU.H+=CU.Z/100|0,CU.M+=CU.Z%100,Hod(CU)):Ge(CU)}}
function Ne(MN,Ge,cZ,CU){for(var eI=0,NL=Ge.length,RC=cZ.length,xf;eI<NL;){if(CU>=RC)return-1;xf=Ge.charCodeAt(eI++);if(xf===37){if(xf=Ge.charAt(eI++),xf=Yy[xf in APE?Ge.charAt(eI++):xf],!xf||(CU=xf(MN,cZ,CU))<0)return-1}else if(xf!=cZ.charCodeAt(CU++))return-1}return CU}
var cA=h.dateTime,Xd=h.date,Qh=h.time,kD=h.periods,F1=h.days,Nv=h.shortDays,Rl=h.months,rx=h.shortMonths,A4=mr(kD),ka=rf(kD),YB=mr(F1),Px=rf(F1),Db=mr(Nv),F0=rf(Nv),q7=mr(Rl),lG=rf(Rl),E$=mr(rx),N7=rf(rx),GP={a:function(MN){return Nv[MN.getDay()]},
A:function(MN){return F1[MN.getDay()]},
b:function(MN){return rx[MN.getMonth()]},
B:function(MN){return Rl[MN.getMonth()]},
c:null,d:HEF,e:HEF,f:nta,H:aVx,I:SoK,j:WPf,L:qoE,m:LPd,M:pFa,p:function(MN){return kD[+(MN.getHours()>=12)]},
Q:Nm1,s:bRx,S:PDN,u:MYx,U:otU,V:AdX,w:ebp,W:BmC,x:null,X:null,y:HRp,Y:qEB,Z:NKB,"%":ydo},HZ={a:function(MN){return Nv[MN.getUTCDay()]},
A:function(MN){return F1[MN.getUTCDay()]},
b:function(MN){return rx[MN.getUTCMonth()]},
B:function(MN){return Rl[MN.getUTCMonth()]},
c:null,d:Jdo,e:Jdo,f:bSK,H:yvK,I:Jvd,j:Exa,L:EtF,m:gxU,M:ZSc,p:function(MN){return kD[+(MN.getUTCHours()>=12)]},
Q:Nm1,s:bRx,S:FoB,u:RYf,U:dwU,V:cvA,w:uTa,W:zYa,x:null,X:null,y:$wC,Y:tiK,Z:mwp,"%":ydo},Yy={a:function(MN,Ge,cZ){return(Ge=Db.exec(Ge.slice(cZ)))?(MN.w=F0[Ge[0].toLowerCase()],cZ+Ge[0].length):-1},
A:function(MN,Ge,cZ){return(Ge=YB.exec(Ge.slice(cZ)))?(MN.w=Px[Ge[0].toLowerCase()],cZ+Ge[0].length):-1},
b:function(MN,Ge,cZ){return(Ge=E$.exec(Ge.slice(cZ)))?(MN.m=N7[Ge[0].toLowerCase()],cZ+Ge[0].length):-1},
B:function(MN,Ge,cZ){return(Ge=q7.exec(Ge.slice(cZ)))?(MN.m=lG[Ge[0].toLowerCase()],cZ+Ge[0].length):-1},
c:function(MN,Ge,cZ){return Ne(MN,cA,Ge,cZ)},
d:gtF,e:gtF,f:rvA,H:ZRT,I:ZRT,j:XjB,L:Vic,m:jHa,M:xwa,p:function(MN,Ge,cZ){return(Ge=A4.exec(Ge.slice(cZ)))?(MN.p=ka[Ge[0].toLowerCase()],cZ+Ge[0].length):-1},
Q:vxB,s:GvX,S:YEC,u:QHA,U:OSf,V:wjx,w:iSa,W:l2C,x:function(MN,Ge,cZ){return Ne(MN,Xd,Ge,cZ)},
X:function(MN,Ge,cZ){return Ne(MN,Qh,Ge,cZ)},
y:KoX,Y:DwX,Z:hYd,"%":kvx};GP.x=K(Xd,GP);GP.X=K(Qh,GP);GP.c=K(cA,GP);HZ.x=K(Xd,HZ);HZ.X=K(Qh,HZ);HZ.c=K(cA,HZ);return{format:function(MN){var Ge=K(MN,GP);Ge.toString=function(){return MN};
return Ge},
parse:function(MN){var Ge=T(MN,Tmp);Ge.toString=function(){return MN};
return Ge},
utcFormat:function(MN){var Ge=K(MN,HZ);Ge.toString=function(){return MN};
return Ge},
utcParse:function(MN){var Ge=T(MN,Hod);Ge.toString=function(){return MN};
return Ge}}}
function Gf(h,K,T){var Ne=h<0?"-":"";h=(Ne?-h:h)+"";var cA=h.length;return Ne+(cA<T?Array(T-cA+1).join(K)+h:h)}
function Uwc(h){return h.replace(f2C,"\\$&")}
function mr(h){return new RegExp("^(?:"+h.map(Uwc).join("|")+")","i")}
function rf(h){for(var K={},T=-1,Ne=h.length;++T<Ne;)K[h[T].toLowerCase()]=T;return K}
function iSa(h,K,T){return(K=Kr.exec(K.slice(T,T+1)))?(h.w=+K[0],T+K[0].length):-1}
function QHA(h,K,T){return(K=Kr.exec(K.slice(T,T+1)))?(h.u=+K[0],T+K[0].length):-1}
function OSf(h,K,T){return(K=Kr.exec(K.slice(T,T+2)))?(h.U=+K[0],T+K[0].length):-1}
function wjx(h,K,T){return(K=Kr.exec(K.slice(T,T+2)))?(h.V=+K[0],T+K[0].length):-1}
function l2C(h,K,T){return(K=Kr.exec(K.slice(T,T+2)))?(h.W=+K[0],T+K[0].length):-1}
function DwX(h,K,T){return(K=Kr.exec(K.slice(T,T+4)))?(h.y=+K[0],T+K[0].length):-1}
function KoX(h,K,T){return(K=Kr.exec(K.slice(T,T+2)))?(h.y=+K[0]+(+K[0]>68?1900:2E3),T+K[0].length):-1}
function hYd(h,K,T){return(K=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(K.slice(T,T+6)))?(h.Z=K[1]?0:-(K[2]+(K[3]||"00")),T+K[0].length):-1}
function jHa(h,K,T){return(K=Kr.exec(K.slice(T,T+2)))?(h.m=K[0]-1,T+K[0].length):-1}
function gtF(h,K,T){return(K=Kr.exec(K.slice(T,T+2)))?(h.d=+K[0],T+K[0].length):-1}
function XjB(h,K,T){return(K=Kr.exec(K.slice(T,T+3)))?(h.m=0,h.d=+K[0],T+K[0].length):-1}
function ZRT(h,K,T){return(K=Kr.exec(K.slice(T,T+2)))?(h.H=+K[0],T+K[0].length):-1}
function xwa(h,K,T){return(K=Kr.exec(K.slice(T,T+2)))?(h.M=+K[0],T+K[0].length):-1}
function YEC(h,K,T){return(K=Kr.exec(K.slice(T,T+2)))?(h.S=+K[0],T+K[0].length):-1}
function Vic(h,K,T){return(K=Kr.exec(K.slice(T,T+3)))?(h.L=+K[0],T+K[0].length):-1}
function rvA(h,K,T){return(K=Kr.exec(K.slice(T,T+6)))?(h.L=Math.floor(K[0]/1E3),T+K[0].length):-1}
function kvx(h,K,T){return(h=C1d.exec(K.slice(T,T+1)))?T+h[0].length:-1}
function vxB(h,K,T){return(K=Kr.exec(K.slice(T)))?(h.Q=+K[0],T+K[0].length):-1}
function GvX(h,K,T){return(K=Kr.exec(K.slice(T)))?(h.Q=+K[0]*1E3,T+K[0].length):-1}
function HEF(h,K){return Gf(h.getDate(),K,2)}
function aVx(h,K){return Gf(h.getHours(),K,2)}
function SoK(h,K){return Gf(h.getHours()%12||12,K,2)}
function WPf(h,K){return Gf(1+B2F.count(j7(h),h),K,3)}
function qoE(h,K){return Gf(h.getMilliseconds(),K,3)}
function nta(h,K){return qoE(h,K)+"000"}
function LPd(h,K){return Gf(h.getMonth()+1,K,2)}
function pFa(h,K){return Gf(h.getMinutes(),K,2)}
function PDN(h,K){return Gf(h.getSeconds(),K,2)}
function MYx(h){h=h.getDay();return h===0?7:h}
function otU(h,K){return Gf(I2d.count(j7(h),h),K,2)}
function AdX(h,K){var T=h.getDay();h=T>=4||T===0?B7z(h):B7z.ceil(h);return Gf(B7z.count(j7(h),h)+(j7(h).getDay()===4),K,2)}
function ebp(h){return h.getDay()}
function BmC(h,K){return Gf(ekC.count(j7(h),h),K,2)}
function HRp(h,K){return Gf(h.getFullYear()%100,K,2)}
function qEB(h,K){return Gf(h.getFullYear()%1E4,K,4)}
function NKB(h){h=h.getTimezoneOffset();return(h>0?"-":(h*=-1,"+"))+Gf(h/60|0,"0",2)+Gf(h%60,"0",2)}
function Jdo(h,K){return Gf(h.getUTCDate(),K,2)}
function yvK(h,K){return Gf(h.getUTCHours(),K,2)}
function Jvd(h,K){return Gf(h.getUTCHours()%12||12,K,2)}
function Exa(h,K){return Gf(1+eH1.count(xn(h),h),K,3)}
function EtF(h,K){return Gf(h.getUTCMilliseconds(),K,3)}
function bSK(h,K){return EtF(h,K)+"000"}
function gxU(h,K){return Gf(h.getUTCMonth()+1,K,2)}
function ZSc(h,K){return Gf(h.getUTCMinutes(),K,2)}
function FoB(h,K){return Gf(h.getUTCSeconds(),K,2)}
function RYf(h){h=h.getUTCDay();return h===0?7:h}
function dwU(h,K){return Gf(TKf.count(xn(h),h),K,2)}
function cvA(h,K){var T=h.getUTCDay();h=T>=4||T===0?HgA(h):HgA.ceil(h);return Gf(HgA.count(xn(h),h)+(xn(h).getUTCDay()===4),K,2)}
function uTa(h){return h.getUTCDay()}
function zYa(h,K){return Gf(A0h.count(xn(h),h),K,2)}
function $wC(h,K){return Gf(h.getUTCFullYear()%100,K,2)}
function tiK(h,K){return Gf(h.getUTCFullYear()%1E4,K,4)}
function mwp(){return"+0000"}
function ydo(){return"%"}
function Nm1(h){return+h}
function bRx(h){return Math.floor(+h/1E3)}
function tb(h){for(var K=h.length/6|0,T=Array(K),Ne=0;Ne<K;)T[Ne]="#"+h.slice(Ne*6,++Ne*6);return T}
function BC(h){return sHA(h[h.length-1])}
function qXd(h){var K=h.length;return function(T){return h[Math.max(0,Math.min(K-1,Math.floor(T*K)))]}}
function FPR(h){this._context=h}
function RbT(h){this._curve=h}
function dWJ(h,K,T){var Ne=h._x1-h._x0;K-=h._x1;var cA=(h._y1-h._y0)/(Ne||K<0&&-0);h=(T-h._y1)/(K||Ne<0&&-0);return((cA<0?-1:1)+(h<0?-1:1))*Math.min(Math.abs(cA),Math.abs(h),.5*Math.abs((cA*K+h*Ne)/(Ne+K)))||0}
function cdT(h,K){var T=h._x1-h._x0;return T?(3*(h._y1-h._y0)/T-K)/2:K}
function qbJ(h,K,T){var Ne=h._x0,cA=h._x1,Xd=h._y1,Qh=(cA-Ne)/3;h._context.bezierCurveTo(Ne+Qh,h._y0+Qh*K,cA-Qh,Xd-Qh*T,cA,Xd)}
function N2d(h){this._context=h}
function uVx(h){this._context=h}
function XS(h,K,T){this.k=h;this.x=K;this.y=T}
(function(h){h.length===1&&(h=N(h));return{left:function(K,T,Ne,cA){Ne==null&&(Ne=0);cA==null&&(cA=K.length);for(;Ne<cA;){var Xd=Ne+cA>>>1;h(K[Xd],T)<0?Ne=Xd+1:cA=Xd}return Ne},
right:function(K,T,Ne,cA){Ne==null&&(Ne=0);cA==null&&(cA=K.length);for(;Ne<cA;){var Xd=Ne+cA>>>1;h(K[Xd],T)>0?cA=Xd:Ne=Xd+1}return Ne}}})(q);
var fva={value:function(){}};
y.prototype=b.prototype={constructor:y,on:function(h,K){var T=this._,Ne=J(h+"",T),cA,Xd=-1,Qh=Ne.length;if(arguments.length<2)for(;++Xd<Qh;){var kD;if(kD=cA=(h=Ne[Xd]).type){a:{kD=T[cA];for(var F1=0,Nv=kD.length;F1<Nv;++F1)if((cA=kD[F1]).name===h.name){cA=cA.value;break a}cA=void 0}kD=cA}if(kD)return cA}else{if(K!=null&&typeof K!=="function")throw Error("De`"+K);for(;++Xd<Qh;)if(cA=(h=Ne[Xd]).type)T[cA]=E(T[cA],h.name,K);else if(K==null)for(cA in T)T[cA]=E(T[cA],h.name,null);return this}},
copy:function(){var h={},K=this._,T;for(T in K)h[T]=K[T].slice();return new y(h)},
call:function(h,K){if((cA=arguments.length-2)>0)for(var T=Array(cA),Ne=0,cA,Xd;Ne<cA;++Ne)T[Ne]=arguments[Ne+2];if(!this._.hasOwnProperty(h))throw Error("xe`"+h);Xd=this._[h];Ne=0;for(cA=Xd.length;Ne<cA;++Ne)Xd[Ne].value.apply(K,T)},
apply:function(h,K,T){if(!this._.hasOwnProperty(h))throw Error("xe`"+h);h=this._[h];for(var Ne=0,cA=h.length;Ne<cA;++Ne)h[Ne].value.apply(K,T)}};
var om={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/"},zbx=function(h){return function(){return this.matches(h)}};
if(typeof document!=="undefined"){var VN=document.documentElement;if(!VN.matches){var nxN=VN.webkitMatchesSelector||VN.msMatchesSelector||VN.mozMatchesSelector||VN.oMatchesSelector;zbx=function(h){return function(){return nxN.call(this,h)}}}}var $Wq=zbx;
V.prototype={constructor:V,appendChild:function(h){return this._parent.insertBefore(h,this._next)},
insertBefore:function(h,K){return this._parent.insertBefore(h,K)},
querySelector:function(h){return this._parent.querySelector(h)},
querySelectorAll:function(h){return this._parent.querySelectorAll(h)}};
var XX1={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(XX1={mouseenter:"mouseover",mouseleave:"mouseout"}));var CfW=[null];t4.prototype=gp.prototype={constructor:t4,select:function(h){typeof h!=="function"&&(h=r(h));for(var K=this._groups,T=K.length,Ne=Array(T),cA=0;cA<T;++cA)for(var Xd=K[cA],Qh=Xd.length,kD=Ne[cA]=Array(Qh),F1,Nv,Rl=0;Rl<Qh;++Rl)(F1=Xd[Rl])&&(Nv=h.call(F1,F1.__data__,Rl,Xd))&&("__data__"in F1&&(Nv.__data__=F1.__data__),kD[Rl]=Nv);return new t4(Ne,
this._parents)},
filter:function(h){typeof h!=="function"&&(h=$Wq(h));for(var K=this._groups,T=K.length,Ne=Array(T),cA=0;cA<T;++cA)for(var Xd=K[cA],Qh=Xd.length,kD=Ne[cA]=[],F1,Nv=0;Nv<Qh;++Nv)(F1=Xd[Nv])&&h.call(F1,F1.__data__,Nv,Xd)&&kD.push(F1);return new t4(Ne,this._parents)},
data:function(h,K){if(!h)return ka=Array(this.size()),Nv=-1,this.each(function(q7){ka[++Nv]=q7}),ka;
var T=K?D:w,Ne=this._parents,cA=this._groups;typeof h!=="function"&&(h=G(h));for(var Xd=cA.length,Qh=Array(Xd),kD=Array(Xd),F1=Array(Xd),Nv=0;Nv<Xd;++Nv){var Rl=Ne[Nv],rx=cA[Nv],A4=rx.length,ka=h.call(Rl,Rl&&Rl.__data__,Nv,Ne),YB=ka.length,Px=kD[Nv]=Array(YB),Db=Qh[Nv]=Array(YB);A4=F1[Nv]=Array(A4);T(Rl,rx,Px,Db,A4,ka,K);rx=Rl=0;for(var F0;Rl<YB;++Rl)if(A4=Px[Rl]){for(Rl>=rx&&(rx=Rl+1);!(F0=Db[rx])&&++rx<YB;);A4._next=F0||null}}Qh=new t4(Qh,Ne);Qh._enter=kD;Qh._exit=F1;return Qh},
enter:function(){return new t4(this._enter||this._groups.map(X),this._parents)},
exit:function(){return new t4(this._exit||this._groups.map(X),this._parents)},
merge:function(h){var K=this._groups;h=h._groups;for(var T=K.length,Ne=Math.min(T,h.length),cA=Array(T),Xd=0;Xd<Ne;++Xd)for(var Qh=K[Xd],kD=h[Xd],F1=Qh.length,Nv=cA[Xd]=Array(F1),Rl,rx=0;rx<F1;++rx)if(Rl=Qh[rx]||kD[rx])Nv[rx]=Rl;for(;Xd<T;++Xd)cA[Xd]=K[Xd];return new t4(cA,this._parents)},
order:function(){for(var h=this._groups,K=-1,T=h.length;++K<T;)for(var Ne=h[K],cA=Ne.length-1,Xd=Ne[cA],Qh;--cA>=0;)if(Qh=Ne[cA])Xd&&Xd!==Qh.nextSibling&&Xd.parentNode.insertBefore(Qh,Xd),Xd=Qh;return this},
sort:function(h){function K(rx,A4){return rx&&A4?h(rx.__data__,A4.__data__):!rx-!A4}
h||(h=k);for(var T=this._groups,Ne=T.length,cA=Array(Ne),Xd=0;Xd<Ne;++Xd){for(var Qh=T[Xd],kD=Qh.length,F1=cA[Xd]=Array(kD),Nv,Rl=0;Rl<kD;++Rl)if(Nv=Qh[Rl])F1[Rl]=Nv;F1.sort(K)}return(new t4(cA,this._parents)).order()},
call:function(){var h=arguments[0];arguments[0]=this;h.apply(null,arguments);return this},
nodes:function(){var h=Array(this.size()),K=-1;this.each(function(){h[++K]=this});
return h},
node:function(){for(var h=this._groups,K=0,T=h.length;K<T;++K)for(var Ne=h[K],cA=0,Xd=Ne.length;cA<Xd;++cA){var Qh=Ne[cA];if(Qh)return Qh}return null},
size:function(){var h=0;this.each(function(){++h});
return h},
empty:function(){return!this.node()},
each:function(h){for(var K=this._groups,T=0,Ne=K.length;T<Ne;++T)for(var cA=K[T],Xd=0,Qh=cA.length,kD;Xd<Qh;++Xd)(kD=cA[Xd])&&h.call(kD,kD.__data__,Xd,cA);return this},
attr:function(h,K){var T=F(h);if(arguments.length<2){var Ne=this.node();return T.local?Ne.getAttributeNS(T.space,T.local):Ne.getAttribute(T)}return this.each((K==null?T.local?L:f:typeof K==="function"?T.local?qe:M:T.local?W:S)(T,K))},
style:function(h,K,T){return arguments.length>1?this.each((K==null?RJ:typeof K==="function"?wA:tZ)(h,K,T==null?"":T)):rA(this.node(),h)},
property:function(h,K){return arguments.length>1?this.each((K==null?xD:typeof K==="function"?sJ:IJ)(h,K)):this.node()[h]},
text:function(h){return arguments.length?this.each(h==null?Sn:(typeof h==="function"?xE:YE)(h)):this.node().textContent},
html:function(h){return arguments.length?this.each(h==null?qv:(typeof h==="function"?Ox:mM)(h)):this.node().innerHTML},
append:function(h){var K=typeof h==="function"?h:z(h);return this.select(function(){return this.appendChild(K.apply(this,arguments))})},
insert:function(h,K){var T=typeof h==="function"?h:z(h),Ne=K==null?h4:typeof K==="function"?K:r(K);return this.select(function(){return this.insertBefore(T.apply(this,arguments),Ne.apply(this,arguments)||null)})},
remove:function(){return this.each(QC)},
clone:function(h){return this.select(h?Fd:rp)},
datum:function(h){return arguments.length?this.property("__data__",h):this.node().__data__},
on:function(h,K,T){var Ne=ej(h+""),cA=Ne.length,Xd;if(arguments.length<2){var Qh=this.node().__on;if(Qh)for(var kD=0,F1=Qh.length,Nv;kD<F1;++kD){var Rl=0;for(Nv=Qh[kD];Rl<cA;++Rl)if((Xd=Ne[Rl]).type===Nv.type&&Xd.name===Nv.name)return Nv.value}}else{Qh=K?qN:Go;T==null&&(T=!1);for(Rl=0;Rl<cA;++Rl)this.each(Qh(Ne[Rl],K,T));return this}},
dispatch:function(h,K){return this.each((typeof K==="function"?$E:p1)(h,K))}};
var IvA=0;oJ.prototype=function(){return new oJ}.prototype={constructor:oJ,
get:function(h){for(var K=this._;!(K in h);)if(!(h=h.parentNode))return;return h[K]},
set:function(h,K){return h[this._]=K},
remove:function(h){return this._ in h&&delete h[this._]},
toString:function(){return this._}};
var vg=1/.7,T2p=/^#([0-9a-f]{3})$/,sQx=/^#([0-9a-f]{6})$/,n$x=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),avd=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),SbW=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),W$C=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*\\)$"),
L$a=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),pXp=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*\\)$"),Vm1={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};
bB(JB,XA,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
bB(Of,L1,tB(JB,{brighter:function(h){h=h==null?vg:Math.pow(vg,h);return new Of(this.r*h,this.g*h,this.b*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new Of(this.r*h,this.g*h,this.b*h,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"#"+Ef(this.r)+Ef(this.g)+Ef(this.b)},
toString:function(){var h=this.opacity;h=isNaN(h)?1:Math.max(0,Math.min(1,h));return(h===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))+(h===1?")":", "+h+")")}}));
bB(X8,CF,tB(JB,{brighter:function(h){h=h==null?vg:Math.pow(vg,h);return new X8(this.h,this.s,this.l*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new X8(this.h,this.s,this.l*h,this.opacity)},
rgb:function(){var h=this.h%360+(this.h<0)*360,K=this.l,T=K+(K<.5?K:1-K)*(isNaN(h)||isNaN(this.s)?0:this.s);K=2*K-T;return new Of(Wx(h>=240?h-240:h+120,K,T),Wx(h,K,T),Wx(h<120?h+240:h-120,K,T),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 jQo=Math.PI/180,G7j=180/Math.PI,v$1=4/29,XU=6/29,x8F=3*XU*XU,Pfa=XU*XU*XU;bB(KC,function(h,K,T,Ne){return arguments.length===1?Mg(h):new KC(h,K,T,Ne==null?1:Ne)},tB(JB,{brighter:function(h){return new KC(this.l+18*(h==null?1:h),this.a,this.b,this.opacity)},
darker:function(h){return new KC(this.l-18*(h==null?1:h),this.a,this.b,this.opacity)},
rgb:function(){var h=(this.l+16)/116,K=isNaN(this.a)?h:h+this.a/500,T=isNaN(this.b)?h:h-this.b/200;K=.96422*Me(K);h=1*Me(h);T=.82521*Me(T);return new Of(jj(3.1338561*K-1.6168667*h-.4906146*T),jj(-.9787684*K+1.9161415*h+.033454*T),jj(.0719453*K-.2289914*h+1.4052427*T),this.opacity)}}));
bB(lT,DW,tB(JB,{brighter:function(h){return new lT(this.h,this.c,this.l+18*(h==null?1:h),this.opacity)},
darker:function(h){return new lT(this.h,this.c,this.l-18*(h==null?1:h),this.opacity)},
rgb:function(){return Mg(this).rgb()}}));
var YbE=1.78277*-.29227-.1347134789;bB(SX,wx,tB(JB,{brighter:function(h){h=h==null?vg:Math.pow(vg,h);return new SX(this.h,this.s,this.l*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new SX(this.h,this.s,this.l*h,this.opacity)},
rgb:function(){var h=isNaN(this.h)?0:(this.h+120)*jQo,K=+this.l,T=isNaN(this.s)?0:this.s*K*(1-K),Ne=Math.cos(h);h=Math.sin(h);return new Of(255*(K+T*(-.14861*Ne+1.78277*h)),255*(K+T*(-.29227*Ne+-.90649*h)),255*(K+1.97294*Ne*T),this.opacity)}}));
var iEl=function T(K){function Ne(Xd,Qh){var kD=cA((Xd=L1(Xd)).r,(Qh=L1(Qh)).r),F1=cA(Xd.g,Qh.g),Nv=cA(Xd.b,Qh.b),Rl=yH(Xd.opacity,Qh.opacity);return function(rx){Xd.r=kD(rx);Xd.g=F1(rx);Xd.b=Nv(rx);Xd.opacity=Rl(rx);return Xd+""}}
var cA=AX(K);Ne.gamma=T;return Ne}(1),sHA=sv(function(K){var T=K.length-1;
return function(Ne){var cA=Ne<=0?Ne=0:Ne>=1?(Ne=1,T-1):Math.floor(Ne*T),Xd=K[cA],Qh=K[cA+1];return WZ((Ne-cA/T)*T,cA>0?K[cA-1]:2*Xd-Qh,Xd,Qh,cA<T-1?K[cA+2]:2*Qh-Xd)}});
sv(function(K){var T=K.length;return function(Ne){var cA=Math.floor(((Ne%=1)<0?++Ne:Ne)*T);return WZ((Ne-cA/T)*T,K[(cA+T-1)%T],K[cA%T],K[(cA+1)%T],K[(cA+2)%T])}});
var T7z=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,skJ=new RegExp(T7z.source,"g"),QQ4=180/Math.PI,bER={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},jZ,yPh,tY4,NIh,a2a=pQ(function(K){if(K==="none")return bER;jZ||(jZ=document.createElement("DIV"),yPh=document.documentElement,tY4=document.defaultView);jZ.style.transform=K;K=tY4.getComputedStyle(yPh.appendChild(jZ),null).getPropertyValue("transform");yPh.removeChild(jZ);K=K.slice(7,-1).split(",");return vW(+K[0],+K[1],+K[2],+K[3],
+K[4],+K[5])},"px, ","px)","deg)"),SEf=pQ(function(K){if(K==null)return bER;
NIh||(NIh=document.createElementNS("http://www.w3.org/2000/svg","g"));NIh.setAttribute("transform",K);if(!(K=NIh.transform.baseVal.consolidate()))return bER;K=K.matrix;return vW(K.a,K.b,K.c,K.d,K.e,K.f)},", ",")",")");
wz(Lc);wz(yH);XP(Lc);XP(yH);zv(Lc);var JPu=zv(yH),Vc=0,df=0,u6=0,p_A,cN,L0Z=0,sr=0,W0R=0,R_=typeof performance==="object"&&performance.now?performance:Date,OEx=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(K){setTimeout(K,17)};
lW.prototype=$x.prototype={constructor:lW,restart:function(K,T,Ne){if(typeof K!=="function")throw new TypeError("Ee");Ne=(Ne==null?iW():+Ne)+(T==null?0:+T);this._next||cN===this||(cN?cN._next=this:p_A=this,cN=this);this._call=K;this._time=Ne;GV()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,GV())}};
var Mmf=b("start","end","interrupt"),o$X=[],WoA=gp.prototype.constructor,mWF=0,Gl=gp.prototype;YY.prototype=function(K){return gp().transition(K)}.prototype={constructor:YY,
select:function(K){var T=this._name,Ne=this._id;typeof K!=="function"&&(K=r(K));for(var cA=this._groups,Xd=cA.length,Qh=Array(Xd),kD=0;kD<Xd;++kD)for(var F1=cA[kD],Nv=F1.length,Rl=Qh[kD]=Array(Nv),rx,A4,ka=0;ka<Nv;++ka)(rx=F1[ka])&&(A4=K.call(rx,rx.__data__,ka,F1))&&("__data__"in rx&&(A4.__data__=rx.__data__),Rl[ka]=A4,xa(Rl[ka],T,Ne,ka,Rl,s5(rx,Ne)));return new YY(Qh,this._parents,T,Ne)},
filter:function(K){typeof K!=="function"&&(K=$Wq(K));for(var T=this._groups,Ne=T.length,cA=Array(Ne),Xd=0;Xd<Ne;++Xd)for(var Qh=T[Xd],kD=Qh.length,F1=cA[Xd]=[],Nv,Rl=0;Rl<kD;++Rl)(Nv=Qh[Rl])&&K.call(Nv,Nv.__data__,Rl,Qh)&&F1.push(Nv);return new YY(cA,this._parents,this._name,this._id)},
merge:function(K){if(K._id!==this._id)throw Error();var T=this._groups;K=K._groups;for(var Ne=T.length,cA=Math.min(Ne,K.length),Xd=Array(Ne),Qh=0;Qh<cA;++Qh)for(var kD=T[Qh],F1=K[Qh],Nv=kD.length,Rl=Xd[Qh]=Array(Nv),rx,A4=0;A4<Nv;++A4)if(rx=kD[A4]||F1[A4])Rl[A4]=rx;for(;Qh<Ne;++Qh)Xd[Qh]=T[Qh];return new YY(Xd,this._parents,this._name,this._id)},
selection:function(){return new WoA(this._groups,this._parents)},
transition:function(){for(var K=this._name,T=this._id,Ne=++mWF,cA=this._groups,Xd=cA.length,Qh=0;Qh<Xd;++Qh)for(var kD=cA[Qh],F1=kD.length,Nv,Rl=0;Rl<F1;++Rl)if(Nv=kD[Rl]){var rx=s5(Nv,T);xa(Nv,K,Ne,Rl,kD,{time:rx.time+rx.delay+rx.duration,delay:0,duration:rx.duration,ease:rx.ease})}return new YY(cA,this._parents,K,Ne)},
call:Gl.call,nodes:Gl.nodes,node:Gl.node,size:Gl.size,empty:Gl.empty,each:Gl.each,on:function(K,T){var Ne=this._id;return arguments.length<2?s5(this.node(),Ne).on.on(K):this.each(dWx(Ne,K,T))},
attr:function(K,T){var Ne=F(K),cA=Ne==="transform"?SEf:wXJ;return this.attrTween(K,typeof T==="function"?(Ne.local?NmU:qoa)(Ne,cA,GW(this,"attr."+K,T)):T==null?(Ne.local?eHA:APa)(Ne):(Ne.local?HEC:B2C)(Ne,cA,T+""))},
attrTween:function(K,T){var Ne="attr."+K;if(arguments.length<2)return(Ne=this.tween(Ne))&&Ne._value;if(T==null)return this.tween(Ne,null);if(typeof T!=="function")throw Error();var cA=F(K);return this.tween(Ne,(cA.local?bRf:ydc)(cA,T))},
style:function(K,T,Ne){var cA=K==="transform"?a2a:wXJ;return T==null?this.styleTween(K,uVp(K,cA)).on("end.style."+K,zbp(K)):this.styleTween(K,typeof T==="function"?tYa(K,cA,GW(this,"style."+K,T)):$WW(K,cA,T+""),Ne)},
styleTween:function(K,T,Ne){var cA="style."+K;if(arguments.length<2)return(cA=this.tween(cA))&&cA._value;if(T==null)return this.tween(cA,null);if(typeof T!=="function")throw Error();return this.tween(cA,mWC(K,T,Ne==null?"":Ne))},
text:function(K){return this.tween("text",typeof K==="function"?XFU(GW(this,"text",K)):rdp(K==null?"":K+""))},
remove:function(){return this.on("end.remove",cdB(this._id))},
tween:function(K,T){var Ne=this._id;if(arguments.length<2){Ne=s5(this.node(),Ne).tween;for(var cA=0,Xd=Ne.length,Qh;cA<Xd;++cA)if((Qh=Ne[cA]).name===K)return Qh.value;return null}return this.each((T==null?AV:a6)(Ne,K,T))},
delay:function(K){var T=this._id;return arguments.length?this.each((typeof K==="function"?Jdc:EtC)(T,K)):s5(this.node(),T).delay},
duration:function(K){var T=this._id;return arguments.length?this.each((typeof K==="function"?gtC:ZRB)(T,K)):s5(this.node(),T).duration},
ease:function(K){var T=this._id;return arguments.length?this.each(FPd(T,K)):s5(this.node(),T).ease}};
var E$u={time:null,delay:0,duration:250,ease:function(K){return((K*=2)<=1?K*K*K:(K-=2)*K*K+2)/2}};
gp.prototype.transition=function(K){var T;if(K instanceof YY){var Ne=K._id;K=K._name}else Ne=++mWF,(T=E$u).time=iW(),K=K==null?null:K+"";for(var cA=this._groups,Xd=cA.length,Qh=0;Qh<Xd;++Qh)for(var kD=cA[Qh],F1=kD.length,Nv,Rl=0;Rl<F1;++Rl)if(Nv=kD[Rl]){var rx=Nv,A4=K,ka=Ne,YB=Rl,Px=kD,Db;if(!(Db=T))a:{Db=void 0;for(var F0=Ne;!(Db=Nv.__transition)||!(Db=Db[F0]);)if(!(Nv=Nv.parentNode)){Db=(E$u.time=iW(),E$u);break a}}xa(rx,A4,ka,YB,Px,Db)}return new YY(cA,this._parents,K,Ne)};
["e","w"].map(nwA);["n","s"].map(nwA);"n e s w nw ne se sw".split(" ").map(nwA);atC.prototype=function(){return new atC}.prototype={constructor:atC,
moveTo:function(K,T){this._+="M"+(this._x0=this._x1=+K)+","+(this._y0=this._y1=+T)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(K,T){this._+="L"+(this._x1=+K)+","+(this._y1=+T)},
bezierCurveTo:function(K,T,Ne,cA,Xd,Qh){this._+="C"+ +K+","+ +T+","+ +Ne+","+ +cA+","+(this._x1=+Xd)+","+(this._y1=+Qh)},
rect:function(K,T,Ne,cA){this._+="M"+(this._x0=this._x1=+K)+","+(this._y0=this._y1=+T)+"h"+ +Ne+"v"+ +cA+"h"+-Ne+"Z"},
toString:function(){return this._}};
P0C.prototype=lvx.prototype={constructor:P0C,has:function(K){return" "+K in this},
get:function(K){return this[" "+K]},
set:function(K,T){this[" "+K]=T;return this},
remove:function(K){K=" "+K;return K in this&&delete this[K]},
clear:function(){for(var K in this)K[0]===" "&&delete this[K]},
keys:function(){var K=[],T;for(T in this)T[0]===" "&&K.push(T.slice(1));return K},
values:function(){var K=[],T;for(T in this)T[0]===" "&&K.push(this[T]);return K},
entries:function(){var K=[],T;for(T in this)T[0]===" "&&K.push({key:T.slice(1),value:this[T]});return K},
size:function(){var K=0,T;for(T in this)T[0]===" "&&++K;return K},
empty:function(){for(var K in this)if(K[0]===" ")return!1;return!0},
each:function(K){for(var T in this)T[0]===" "&&K(this[T],T.slice(1),this)}};
var S$=lvx.prototype;M0R.prototype=function(K,T){var Ne=new M0R;if(K instanceof M0R)K.each(function(Qh){Ne.add(Qh)});
else if(K){var cA=-1,Xd=K.length;if(T==null)for(;++cA<Xd;)Ne.add(K[cA]);else for(;++cA<Xd;)Ne.add(T(K[cA],cA,K))}return Ne}.prototype={constructor:M0R,
has:S$.has,add:function(K){this[" "+K]=K;return this},
remove:S$.remove,clear:S$.clear,values:S$.keys,size:S$.size,empty:S$.empty,each:S$.each};var hHM={},S6n={},LoK=D8E(",").parse,pjd=D8E("\t").parse;k7x(LoK);k7x(pjd);var N9=function(K,T,Ne){T=new Wyh(T==null?vtf:T,Ne==null?GQc:Ne,NaN,NaN,NaN,NaN);return K==null?T:T.addAll(K)}.prototype=Wyh.prototype;
N9.copy=function(){var K=new Wyh(this._x,this._y,this._x0,this._y0,this._x1,this._y1),T=this._root,Ne,cA;if(!T)return K;if(!T.length)return K._root=fv4(T),K;for(Ne=[{source:T,target:K._root=Array(4)}];T=Ne.pop();)for(var Xd=0;Xd<4;++Xd)if(cA=T.source[Xd])cA.length?Ne.push({source:cA,target:T.target[Xd]=Array(4)}):T.target[Xd]=fv4(cA);return K};
N9.add=function(K){var T=+this._x.call(null,K),Ne=+this._y.call(null,K);return U8R(this.cover(T,Ne),T,Ne,K)};
N9.addAll=function(K){var T,Ne,cA=K.length,Xd,Qh,kD=Array(cA),F1=Array(cA),Nv=Infinity,Rl=Infinity,rx=-Infinity,A4=-Infinity;for(Ne=0;Ne<cA;++Ne)isNaN(Xd=+this._x.call(null,T=K[Ne]))||isNaN(Qh=+this._y.call(null,T))||(kD[Ne]=Xd,F1[Ne]=Qh,Xd<Nv&&(Nv=Xd),Xd>rx&&(rx=Xd),Qh<Rl&&(Rl=Qh),Qh>A4&&(A4=Qh));rx<Nv&&(Nv=this._x0,rx=this._x1);A4<Rl&&(Rl=this._y0,A4=this._y1);this.cover(Nv,Rl).cover(rx,A4);for(Ne=0;Ne<cA;++Ne)U8R(this,kD[Ne],F1[Ne],K[Ne]);return this};
N9.cover=function(K,T){if(isNaN(K=+K)||isNaN(T=+T))return this;var Ne=this._x0,cA=this._y0,Xd=this._x1,Qh=this._y1;if(isNaN(Ne))Xd=(Ne=Math.floor(K))+1,Qh=(cA=Math.floor(T))+1;else if(Ne>K||K>Xd||cA>T||T>Qh){var kD=Xd-Ne,F1=this._root,Nv;switch(Nv=(T<(cA+Qh)/2)<<1|K<(Ne+Xd)/2){case 0:do{var Rl=Array(4);Rl[Nv]=F1;F1=Rl}while(kD*=2,Xd=Ne+kD,Qh=cA+kD,K>Xd||T>Qh);break;case 1:do Rl=Array(4),Rl[Nv]=F1,F1=Rl;while(kD*=2,Ne=Xd-kD,Qh=cA+kD,Ne>K||T>Qh);break;case 2:do Rl=Array(4),Rl[Nv]=F1,F1=Rl;while(kD*=
2,Xd=Ne+kD,cA=Qh-kD,K>Xd||cA>T);break;case 3:do Rl=Array(4),Rl[Nv]=F1,F1=Rl;while(kD*=2,Ne=Xd-kD,cA=Qh-kD,Ne>K||cA>T)}this._root&&this._root.length&&(this._root=F1)}else return this;this._x0=Ne;this._y0=cA;this._x1=Xd;this._y1=Qh;return this};
N9.data=function(){var K=[];this.visit(function(T){if(!T.length){do K.push(T.data);while(T=T.next)}});
return K};
N9.extent=function(K){return arguments.length?this.cover(+K[0][0],+K[0][1]).cover(+K[1][0],+K[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
N9.find=function(K,T,Ne){var cA=this._x0,Xd=this._y0,Qh,kD,F1,Nv,Rl=this._x1,rx=this._y1,A4=[],ka=this._root,YB;ka&&A4.push(new q9(ka,cA,Xd,Rl,rx));Ne==null?Ne=Infinity:(cA=K-Ne,Xd=T-Ne,Rl=K+Ne,rx=T+Ne,Ne*=Ne);for(;YB=A4.pop();)if(!(!(ka=YB.node)||(Qh=YB.x0)>Rl||(kD=YB.y0)>rx||(F1=YB.x1)<cA||(Nv=YB.y1)<Xd))if(ka.length){YB=(Qh+F1)/2;var Px=(kD+Nv)/2;A4.push(new q9(ka[3],YB,Px,F1,Nv),new q9(ka[2],Qh,Px,YB,Nv),new q9(ka[1],YB,kD,F1,Px),new q9(ka[0],Qh,kD,YB,Px));if(ka=(T>=Px)<<1|K>=YB)YB=A4[A4.length-
1],A4[A4.length-1]=A4[A4.length-1-ka],A4[A4.length-1-ka]=YB}else if(YB=K-+this._x.call(null,ka.data),Px=T-+this._y.call(null,ka.data),YB=YB*YB+Px*Px,YB<Ne){var Db=Math.sqrt(Ne=YB);cA=K-Db;Xd=T-Db;Rl=K+Db;rx=T+Db;Db=ka.data}return Db};
N9.remove=function(K){if(isNaN(Nv=+this._x.call(null,K))||isNaN(Rl=+this._y.call(null,K)))return this;var T,Ne=this._root,cA,Xd=this._x0,Qh=this._y0,kD=this._x1,F1=this._y1,Nv,Rl,rx,A4,ka,YB,Px;if(!Ne)return this;if(Ne.length)for(;;){(ka=Nv>=(rx=(Xd+kD)/2))?Xd=rx:kD=rx;(YB=Rl>=(A4=(Qh+F1)/2))?Qh=A4:F1=A4;if(!(T=Ne,Ne=Ne[Px=YB<<1|ka]))return this;if(!Ne.length)break;if(T[Px+1&3]||T[Px+2&3]||T[Px+3&3]){var Db=T;var F0=Px}}for(;Ne.data!==K;)if(!(cA=Ne,Ne=Ne.next))return this;(K=Ne.next)&&delete Ne.next;
if(cA)return K?cA.next=K:delete cA.next,this;if(!T)return this._root=K,this;K?T[Px]=K:delete T[Px];(Ne=T[0]||T[1]||T[2]||T[3])&&Ne===(T[3]||T[2]||T[1]||T[0])&&!Ne.length&&(Db?Db[F0]=Ne:this._root=Ne);return this};
N9.removeAll=function(K){for(var T=0,Ne=K.length;T<Ne;++T)this.remove(K[T]);return this};
N9.root=function(){return this._root};
N9.size=function(){var K=0;this.visit(function(T){if(!T.length){do++K;while(T=T.next)}});
return K};
N9.visit=function(K){var T=[],Ne,cA=this._root,Xd,Qh,kD,F1,Nv;for(cA&&T.push(new q9(cA,this._x0,this._y0,this._x1,this._y1));Ne=T.pop();)if(!K(cA=Ne.node,Qh=Ne.x0,kD=Ne.y0,F1=Ne.x1,Nv=Ne.y1)&&cA.length){Ne=(Qh+F1)/2;var Rl=(kD+Nv)/2;(Xd=cA[3])&&T.push(new q9(Xd,Ne,Rl,F1,Nv));(Xd=cA[2])&&T.push(new q9(Xd,Qh,Rl,Ne,Nv));(Xd=cA[1])&&T.push(new q9(Xd,Ne,kD,F1,Rl));(Xd=cA[0])&&T.push(new q9(Xd,Qh,kD,Ne,Rl))}};
N9.visitAfter=function(K){var T=[],Ne=[],cA;for(this._root&&T.push(new q9(this._root,this._x0,this._y0,this._x1,this._y1));cA=T.pop();){var Xd=cA.node;if(Xd.length){var Qh,kD=cA.x0,F1=cA.y0,Nv=cA.x1,Rl=cA.y1,rx=(kD+Nv)/2,A4=(F1+Rl)/2;(Qh=Xd[0])&&T.push(new q9(Qh,kD,F1,rx,A4));(Qh=Xd[1])&&T.push(new q9(Qh,rx,F1,Nv,A4));(Qh=Xd[2])&&T.push(new q9(Qh,kD,A4,rx,Rl));(Qh=Xd[3])&&T.push(new q9(Qh,rx,A4,Nv,Rl))}Ne.push(cA)}for(;cA=Ne.pop();)K(cA.node,cA.x0,cA.y0,cA.x1,cA.y1);return this};
N9.x=function(K){return arguments.length?(this._x=K,this):this._x};
N9.y=function(K){return arguments.length?(this._y=K,this):this._y};
var wFd=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;LyZ.prototype=p6u.prototype;p6u.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 sQJ,n$J={"%":function(K,T){return(K*100).toFixed(T)},
b:function(K){return Math.round(K).toString(2)},
c:function(K){return K+""},
d:function(K){return Math.round(K).toString(10)},
e:function(K,T){return K.toExponential(T)},
f:function(K,T){return K.toFixed(T)},
g:function(K,T){return K.toPrecision(T)},
o:function(K){return Math.round(K).toString(8)},
p:function(K,T){return Cfq(K*100,T)},
r:Cfq,s:function(K,T){var Ne=oyd(K,T);if(!Ne)return K+"";var cA=Ne[0];Ne=Ne[1];Ne=Ne-(sQJ=Math.max(-8,Math.min(8,Math.floor(Ne/3)))*3)+1;var Xd=cA.length;return Ne===Xd?cA:Ne>Xd?cA+Array(Ne-Xd+1).join("0"):Ne>0?cA.slice(0,Ne)+"."+cA.slice(Ne):"0."+Array(1-Ne).join("0")+oyd(K,Math.max(0,T+Ne-1))[0]},
X:function(K){return Math.round(K).toString(16).toUpperCase()},
x:function(K){return Math.round(K).toString(16)}},T2x="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),P1B;
(function(K){return P1B=iRd(K)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});S5.prototype={constructor:S5,reset:function(){this.s=this.t=0},
add:function(K){avR(bQe,K,this.t);avR(this,bQe.s,this.s);this.s?this.t+=bQe.t:this.s=bQe.t},
valueOf:function(){return this.s}};
var bQe=new S5,bt=Math.PI,A3=bt/2,rdx=bt/4,MiN=bt*2,g$d=bt/180,Qf=Math.abs,ZER=Math.atan,Mml=Math.atan2,eP=Math.cos,kR=Math.sin,erR=Math.sqrt;new S5;new S5;new S5;var F$n=new S5;(function(K,T,Ne,cA){return function(Xd){function Qh(N7,GP){K(N7,GP)&&Xd.point(N7,GP)}
function kD(N7,GP){ka.point(N7,GP)}
function F1(){E$.point=kD;ka.lineStart()}
function Nv(){E$.point=Qh;ka.lineEnd()}
function Rl(N7,GP){lG.push([N7,GP]);Px.point(N7,GP)}
function rx(){Px.lineStart();lG=[]}
function A4(){Rl(lG[0][0],lG[0][1]);Px.lineEnd();var N7=Px.clean(),GP=YB.result(),HZ=GP.length,Yy;lG.pop();F0.push(lG);lG=null;if(HZ)if(N7&1){if(HZ=GP[0],(GP=HZ.length-1)>0){Db||(Xd.polygonStart(),Db=!0);Xd.lineStart();for(N7=0;N7<GP;++N7)Xd.point((Yy=HZ[N7])[0],Yy[1]);Xd.lineEnd()}}else HZ>1&&N7&2&&GP.push(GP.pop().concat(GP.shift())),q7.push(GP.filter(hbC))}
var ka=T(Xd),YB=KPf(),Px=T(YB),Db=!1,F0,q7,lG,E$={point:Qh,lineStart:F1,lineEnd:Nv,polygonStart:function(){E$.point=Rl;E$.lineStart=rx;E$.lineEnd=A4;q7=[];F0=[]},
polygonEnd:function(){E$.point=Qh;E$.lineStart=F1;E$.lineEnd=Nv;var N7=q7,GP=N7.length;var HZ=-1;for(var Yy=0,MN,Ge;++HZ<GP;)Yy+=N7[HZ].length;for(MN=Array(Yy);--GP>=0;)for(Ge=N7[GP],HZ=Ge.length;--HZ>=0;)MN[--Yy]=Ge[HZ];q7=MN;N7=F0;GP=cA[0];Yy=cA[1];var cZ=kR(Yy);HZ=[kR(GP),-eP(GP),0];Ge=MN=0;F$n.reset();cZ===1?Yy=A3+1E-6:cZ===-1&&(Yy=-A3-1E-6);cZ=0;for(var CU=N7.length;cZ<CU;++cZ)if(NL=(eI=N7[cZ]).length){var eI,NL,RC=eI[NL-1],xf=RC[0],QM=RC[1]/2+rdx,yDC=kR(QM),XF1=eP(QM);for(QM=0;QM<NL;++QM,xf=
RHZ,yDC=VYT,XF1=xu,RC=JDn){var JDn=eI[QM],RHZ=JDn[0];xu=JDn[1]/2+rdx;var VYT=kR(xu),xu=eP(xu),Yn=RHZ-xf,d8Z=Yn>=0?1:-1,cPz=d8Z*Yn,EFz=cPz>bt;yDC*=VYT;F$n.add(Mml(yDC*d8Z*kR(cPz),XF1*xu+yDC*eP(cPz)));MN+=EFz?Yn+d8Z*MiN:Yn;EFz^xf>=GP^RHZ>=GP&&(RC=W$F(Sbq(RC),Sbq(JDn)),L$E(RC),xf=W$F(HZ,RC),L$E(xf),xf=(EFz^Yn>=0?-1:1)*Arz(xf[2]),Yy>xf||Yy===xf&&(RC[0]||RC[1]))&&(Ge+=EFz^Yn>=0?1:-1)}}N7=(MN<-1E-6||MN<1E-6&&F$n<-1E-6)^Ge&1;q7.length?(Db||(Xd.polygonStart(),Db=!0),DWc(q7,kQf,N7,Ne,Xd)):N7&&(Db||(Xd.polygonStart(),
Db=!0),Xd.lineStart(),Ne(null,null,1,Xd),Xd.lineEnd());Db&&(Xd.polygonEnd(),Db=!1);q7=F0=null},
sphere:function(){Xd.polygonStart();Xd.lineStart();Ne(null,null,1,Xd);Xd.lineEnd();Xd.polygonEnd()}};
return E$}})(function(){return!0},function(K){var T=NaN,Ne=NaN,cA=NaN,Xd;
return{lineStart:function(){K.lineStart();Xd=1},
point:function(Qh,kD){var F1=Qh>0?bt:-bt,Nv=Qf(Qh-T);if(Qf(Nv-bt)<1E-6)K.point(T,Ne=(Ne+kD)/2>0?A3:-A3),K.point(cA,Ne),K.lineEnd(),K.lineStart(),K.point(F1,Ne),K.point(Qh,Ne),Xd=0;else if(cA!==F1&&Nv>=bt){Qf(T-cA)<1E-6&&(T-=cA*1E-6);Qf(Qh-F1)<1E-6&&(Qh-=F1*1E-6);Nv=T;var Rl=Ne,rx=Qh,A4,ka,YB=kR(Nv-rx);Ne=Qf(YB)>1E-6?ZER((kR(Rl)*(ka=eP(kD))*kR(rx)-kR(kD)*(A4=eP(Rl))*kR(Nv))/(A4*ka*YB)):(Rl+kD)/2;K.point(cA,Ne);K.lineEnd();K.lineStart();K.point(F1,Ne);Xd=0}K.point(T=Qh,Ne=kD);cA=F1},
lineEnd:function(){K.lineEnd();T=Ne=NaN},
clean:function(){return 2-Xd}}},function(K,T,Ne,cA){K==null?(Ne*=A3,cA.point(-bt,Ne),cA.point(0,Ne),cA.point(bt,Ne),cA.point(bt,0),cA.point(bt,-Ne),cA.point(0,-Ne),cA.point(-bt,-Ne),cA.point(-bt,0),cA.point(-bt,Ne)):Qf(K[0]-T[0])>1E-6?(K=K[0]<T[0]?bt:-bt,Ne=Ne*K/2,cA.point(-K,Ne),cA.point(0,Ne),cA.point(K,Ne)):cA.point(T[0],T[1])},[-bt,
-A3]);new S5;new S5;new S5;new S5;PPR.prototype={constructor:PPR,point:function(K,T){this.stream.point(K,T)},
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()}};
eP(30*g$d);(function(K){return function(T){var Ne=new PPR,cA;for(cA in K)Ne[cA]=K[cA];Ne.stream=T;return Ne}})({point:function(K,T){this.stream.point(K*g$d,T*g$d)}});
PfE(function(K){return erR(2/(1+K))}).invert=zA(function(K){return 2*Arz(K/2)});
PfE(function(K){return(K=K>1?0:K<-1?bt:Math.acos(K))&&K/kR(K)}).invert=zA(function(K){return K});
erR(3);zA(ZER);zA(Arz);zA(function(K){return 2*ZER(K)});
$u.prototype=o$j.prototype={constructor:$u,count:function(){return this.eachAfter(UWA)},
each:function(K){var T,Ne=[this],cA;do{var Xd=Ne.reverse();for(Ne=[];T=Xd.pop();)if(K(T),T=T.children){var Qh=0;for(cA=T.length;Qh<cA;++Qh)Ne.push(T[Qh])}}while(Ne.length);return this},
eachAfter:function(K){for(var T,Ne=[this],cA=[],Xd,Qh;T=Ne.pop();)if(cA.push(T),T=T.children)for(Xd=0,Qh=T.length;Xd<Qh;++Xd)Ne.push(T[Xd]);for(;T=cA.pop();)K(T);return this},
eachBefore:function(K){for(var T,Ne=[this],cA;T=Ne.pop();)if(K(T),T=T.children)for(cA=T.length-1;cA>=0;--cA)Ne.push(T[cA]);return this},
sum:function(K){return this.eachAfter(function(T){for(var Ne=+K(T.data)||0,cA=T.children,Xd=cA&&cA.length;--Xd>=0;)Ne+=cA[Xd].value;T.value=Ne})},
sort:function(K){return this.eachBefore(function(T){T.children&&T.children.sort(K)})},
path:function(K){var T=this;var Ne=T;var cA=K;if(Ne!==cA){var Xd=Ne.ancestors(),Qh=cA.ancestors(),kD=null;Ne=Xd.pop();for(cA=Qh.pop();Ne===cA;)kD=Ne,Ne=Xd.pop(),cA=Qh.pop();Ne=kD}for(cA=[T];T!==Ne;)T=T.parent,cA.push(T);for(T=cA.length;K!==Ne;)cA.splice(T,0,K),K=K.parent;return cA},
ancestors:function(){for(var K=this,T=[K];K=K.parent;)T.push(K);return T},
links:function(){var K=this,T=[];K.each(function(Ne){Ne!==K&&T.push({source:Ne.parent,target:Ne})});
return T},
copy:function(){return o$j(this).eachBefore(IVf)}};
(function(K,T){this._=K;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=T}).prototype=Object.create($u.prototype);
var MsJ=new Date,owh=new Date,jrE=YU(function(){},function(K,T){K.setTime(+K+T)},function(K,T){return T-K});
jrE.every=function(K){K=Math.floor(K);return isFinite(K)&&K>0?K>1?YU(function(T){T.setTime(Math.floor(T/K)*K)},function(T,Ne){T.setTime(+T+Ne*K)},function(T,Ne){return(Ne-T)/K}):jrE:null};
YU(function(K){K.setTime(Math.floor(K/1E3)*1E3)},function(K,T){K.setTime(+K+T*1E3)},function(K,T){return(T-K)/1E3},function(K){return K.getUTCSeconds()});
YU(function(K){K.setTime(Math.floor(K/6E4)*6E4)},function(K,T){K.setTime(+K+T*6E4)},function(K,T){return(T-K)/6E4},function(K){return K.getMinutes()});
YU(function(K){var T=K.getTimezoneOffset()*6E4%36E5;T<0&&(T+=36E5);K.setTime(Math.floor((+K-T)/36E5)*36E5+T)},function(K,T){K.setTime(+K+T*36E5)},function(K,T){return(T-K)/36E5},function(K){return K.getHours()});
var B2F=YU(function(K){K.setHours(0,0,0,0)},function(K,T){K.setDate(K.getDate()+T)},function(K,T){return(T-K-(T.getTimezoneOffset()-K.getTimezoneOffset())*6E4)/864E5},function(K){return K.getDate()-1}),I2d=nu(0),ekC=nu(1);
nu(2);nu(3);var B7z=nu(4);nu(5);nu(6);YU(function(K){K.setDate(1);K.setHours(0,0,0,0)},function(K,T){K.setMonth(K.getMonth()+T)},function(K,T){return T.getMonth()-K.getMonth()+(T.getFullYear()-K.getFullYear())*12},function(K){return K.getMonth()});
var j7=YU(function(K){K.setMonth(0,1);K.setHours(0,0,0,0)},function(K,T){K.setFullYear(K.getFullYear()+T)},function(K,T){return T.getFullYear()-K.getFullYear()},function(K){return K.getFullYear()});
j7.every=function(K){return isFinite(K=Math.floor(K))&&K>0?YU(function(T){T.setFullYear(Math.floor(T.getFullYear()/K)*K);T.setMonth(0,1);T.setHours(0,0,0,0)},function(T,Ne){T.setFullYear(T.getFullYear()+Ne*K)}):null};
YU(function(K){K.setUTCSeconds(0,0)},function(K,T){K.setTime(+K+T*6E4)},function(K,T){return(T-K)/6E4},function(K){return K.getUTCMinutes()});
YU(function(K){K.setUTCMinutes(0,0,0)},function(K,T){K.setTime(+K+T*36E5)},function(K,T){return(T-K)/36E5},function(K){return K.getUTCHours()});
var eH1=YU(function(K){K.setUTCHours(0,0,0,0)},function(K,T){K.setUTCDate(K.getUTCDate()+T)},function(K,T){return(T-K)/864E5},function(K){return K.getUTCDate()-1}),TKf=aZ(0),A0h=aZ(1);
aZ(2);aZ(3);var HgA=aZ(4);aZ(5);aZ(6);YU(function(K){K.setUTCDate(1);K.setUTCHours(0,0,0,0)},function(K,T){K.setUTCMonth(K.getUTCMonth()+T)},function(K,T){return T.getUTCMonth()-K.getUTCMonth()+(T.getUTCFullYear()-K.getUTCFullYear())*12},function(K){return K.getUTCMonth()});
var xn=YU(function(K){K.setUTCMonth(0,1);K.setUTCHours(0,0,0,0)},function(K,T){K.setUTCFullYear(K.getUTCFullYear()+T)},function(K,T){return T.getUTCFullYear()-K.getUTCFullYear()},function(K){return K.getUTCFullYear()});
xn.every=function(K){return isFinite(K=Math.floor(K))&&K>0?YU(function(T){T.setUTCFullYear(Math.floor(T.getUTCFullYear()/K)*K);T.setUTCMonth(0,1);T.setUTCHours(0,0,0,0)},function(T,Ne){T.setUTCFullYear(T.getUTCFullYear()+Ne*K)}):null};
var APE={"-":"",_:" ",0:"0"},Kr=/^\s*\d+/,C1d=/^%/,f2C=/[\\^$*+?|[\]().{}]/g,gFR;(function(K){gFR=sra(K);C9T=gFR.utcFormat;IQq=gFR.utcParse;return gFR})({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||C9T("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||IQq("%Y-%m-%dT%H:%M:%S.%LZ");tb("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
tb("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");tb("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");tb("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");tb("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");tb("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");tb("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
tb("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");tb("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");tb("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");tb("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");tb("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var oxA=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(tb);BC(oxA);var AvC=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(tb);BC(AvC);var eYN=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(tb);BC(eYN);var BKf=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(tb);
BC(BKf);var HSf=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(tb);BC(HSf);var qrf=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(tb);BC(qrf);var Nof=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(tb);BC(Nof);var buC=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(tb);BC(buC);var yAW=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(tb);BC(yAW);var JAf=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(tb);BC(JAf);var Ela=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(tb);BC(Ela);var glA=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(tb);BC(glA);var ZuU=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(tb);BC(ZuU);var F1f=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(tb);BC(F1f);var Rhx=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(tb);BC(Rhx);var dyN=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(tb);BC(dyN);var cAX=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(tb);BC(cAX);var usK=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(tb);BC(usK);var zha=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(tb);BC(zha);var $yK=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(tb);BC($yK);var t$c=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(tb);BC(t$c);var myx=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(tb);BC(myx);var rAc=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(tb);BC(rAc);var XfK=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(tb);BC(XfK);var V$C=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(tb);BC(V$C);var jZC=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(tb);BC(jZC);var xyf=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(tb);BC(xyf);JPu(wx(300,.5,0),wx(-240,.5,1));JPu(wx(-100,.75,.35),wx(80,1.5,.8));JPu(wx(260,.75,.35),wx(80,1.5,.8));wx();L1();qXd(tb("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
qXd(tb("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
qXd(tb("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
qXd(tb("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
FPR.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(K,T){K=+K;T=+T;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(K,T):this._context.moveTo(K,T);break;case 1:this._point=2;default:this._context.lineTo(K,T)}}};
(function(K){function T(Ne){return new RbT(K(Ne))}
T._curve=K;return T})(function(K){return new FPR(K)});
RbT.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(K,T){this._curve.point(T*Math.sin(K),T*-Math.cos(K))}};
N2d.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:qbJ(this,this._t0,cdT(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(K,T){var Ne=NaN;K=+K;T=+T;if(K!==this._x1||T!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(K,T):this._context.moveTo(K,T);break;case 1:this._point=2;break;case 2:this._point=3;qbJ(this,cdT(this,Ne=dWJ(this,K,T)),Ne);break;default:qbJ(this,this._t0,Ne=dWJ(this,K,T))}this._x0=this._x1;this._x1=K;this._y0=this._y1;this._y1=T;this._t0=Ne}}};
(function(K){this._context=new uVx(K)}.prototype=Object.create(N2d.prototype)).point=function(K,T){N2d.prototype.point.call(this,T,K)};
uVx.prototype={moveTo:function(K,T){this._context.moveTo(T,K)},
closePath:function(){this._context.closePath()},
lineTo:function(K,T){this._context.lineTo(T,K)},
bezierCurveTo:function(K,T,Ne,cA,Xd,Qh){this._context.bezierCurveTo(T,K,cA,Ne,Qh,Xd)}};
XS.prototype={constructor:XS,scale:function(K){return K===1?this:new XS(this.k*K,this.x,this.y)},
translate:function(K,T){return K===0&T===0?this:new XS(this.k,this.x+this.k*K,this.y+this.k*T)},
apply:function(K){return[K[0]*this.k+this.x,K[1]*this.k+this.y]},
invert:function(K){return[(K[0]-this.x)/this.k,(K[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new XS(1,0,0);$hd=XA;om.svg=om.svg;om.xhtml=om.xhtml;om.xlink=om.xlink;om.xml=om.xml;om.xmlns=om.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 Th4="hammer_"+(Math.random()*1E6|0),sK4=function(){var q=document||document;if(!q[Th4]){var N=function(){(function(b,y,J,E){function F(KC,nC,Me){return setTimeout(X(KC,Me),nC)}
function R(KC,nC,Me){return Array.isArray(KC)?(c(KC,Me[nC],Me),!0):!1}
function c(KC,nC,Me){var jj;if(KC)if(KC.forEach)KC.forEach(nC,Me);else if(KC.length!==E){var Gc=0;for(jj=KC.length;Gc<jj;Gc++)nC.call(Me,KC[Gc],Gc,KC)}else for(Gc in KC)KC.hasOwnProperty(Gc)&&nC.call(Me,KC[Gc],Gc,KC)}
function z(KC,nC,Me){for(var jj=Object.keys(nC),Gc=0,Uh=jj.length;Gc<Uh;Gc++)if(!Me||Me&&KC[jj[Gc]]===E)KC[jj[Gc]]=nC[jj[Gc]];return KC}
function m(KC,nC){return z(KC,nC,!0)}
function r(KC,nC,Me){nC=nC.prototype;var jj=KC.prototype=Object.create(nC);jj.constructor=KC;jj._super=nC;Me&&z(jj,Me)}
function X(KC,nC){return function(){return KC.apply(nC,arguments)}}
function V(KC,nC){return typeof KC=="function"?KC.apply(nC?nC[0]||E:E,nC):KC}
function G(KC,nC,Me){c(D(nC),function(jj){KC.addEventListener(jj,Me,!1)})}
function w(KC,nC,Me){c(D(nC),function(jj){KC.removeEventListener(jj,Me,!1)})}
function D(KC){return KC.trim().split(/\s+/g)}
function k(KC,nC,Me){if(KC.indexOf&&!Me)return KC.indexOf(nC);for(var jj=0,Gc=KC.length;jj<Gc;jj++)if(Me&&KC[jj][Me]==nC||!Me&&KC[jj]===nC)return jj;return-1}
function f(KC,nC,Me){for(var jj=[],Gc=[],Uh=0,DW=KC.length;Uh<DW;Uh++){var lT=nC?KC[Uh][nC]:KC[Uh];k(Gc,lT)<0&&jj.push(KC[Uh]);Gc[Uh]=lT}Me&&(jj=nC?jj.sort(function(wx,SX){return wx[nC]>SX[nC]}):jj.sort());
return jj}
function L(KC,nC){for(var Me,jj=nC[0].toUpperCase()+nC.slice(1),Gc=0,Uh=$E.length;Gc<Uh;Gc++)if(Me=(Me=$E[Gc])?Me+jj:nC,Me in KC)return Me;return E}
function S(KC,nC){var Me=this;this.manager=KC;this.callback=nC;this.element=KC.element;this.target=KC.options.inputTarget;this.domHandler=function(jj){V(KC.options.enable,[KC])&&Me.handler(jj)};
this.evEl&&G(this.element,this.evEl,this.domHandler);this.evTarget&&G(this.target,this.evTarget,this.domHandler);this.evWin&&G(b,this.evWin,this.domHandler)}
function W(KC){var nC;LU?nC=IJ:uC?nC=sJ:XA?nC=Sn:nC=xD;return new nC(KC,M)}
function M(KC,nC,Me){var jj=Me.pointers.length,Gc=Me.changedPointers.length,Uh=nC&1&&jj-Gc===0;Me.isFirst=!!Uh;Me.isFinal=!!(nC&12&&jj-Gc===0);Uh&&(KC.session={});Me.eventType=nC;nC=KC.session;jj=Me.pointers;Gc=jj.length;nC.firstInput||(nC.firstInput=qe(Me));Gc>1&&!nC.firstMultiple?nC.firstMultiple=qe(Me):Gc===1&&(nC.firstMultiple=!1);Uh=nC.firstInput;var DW=(Gc=nC.firstMultiple)?Gc.center:Uh.center,lT=Me.center=RJ(jj);Me.timeStamp=bB();Me.deltaTime=Me.timeStamp-Uh.timeStamp;Me.angle=rA(DW,lT);Me.distance=
wA(DW,lT);Uh=Me.center;DW=nC.offsetDelta||{};lT=nC.prevDelta||{};var wx=nC.prevInput||{};if(Me.eventType===1||wx.eventType===4)lT=nC.prevDelta={x:wx.deltaX||0,y:wx.deltaY||0},DW=nC.offsetDelta={x:Uh.x,y:Uh.y};Me.deltaX=lT.x+(Uh.x-DW.x);Me.deltaY=lT.y+(Uh.y-DW.y);Me.offsetDirection=tZ(Me.deltaX,Me.deltaY);Gc?(Uh=Gc.pointers,Uh=wA(jj[0],jj[1],L1)/wA(Uh[0],Uh[1],L1)):Uh=1;Me.scale=Uh;Gc?(Gc=Gc.pointers,jj=rA(jj[1],jj[0],L1)-rA(Gc[1],Gc[0],L1)):jj=0;Me.rotation=jj;DW=nC.lastInterval||Me;jj=Me.timeStamp-
DW.timeStamp;Me.eventType!=8&&(jj>25||DW.velocity===E)?(Uh=DW.deltaX-Me.deltaX,DW=DW.deltaY-Me.deltaY,lT=Uh/jj||0,wx=DW/jj||0,jj=lT,Gc=wx,lT=oJ(lT)>oJ(wx)?lT:wx,Uh=tZ(Uh,DW),nC.lastInterval=Me):(lT=DW.velocity,jj=DW.velocityX,Gc=DW.velocityY,Uh=DW.direction);Me.velocity=lT;Me.velocityX=jj;Me.velocityY=Gc;Me.direction=Uh;nC=KC.element;a:{for(jj=Me.srcEvent.target;jj;){if(jj==nC){jj=!0;break a}jj=jj.parentNode}jj=!1}jj&&(nC=Me.srcEvent.target);Me.target=nC;KC.emit("hammer.input",Me);KC.recognize(Me);
KC.session.prevInput=Me}
function qe(KC){for(var nC=[],Me=0;Me<KC.pointers.length;Me++)nC[Me]={clientX:gp(KC.pointers[Me].clientX),clientY:gp(KC.pointers[Me].clientY)};return{timeStamp:bB(),pointers:nC,center:RJ(nC),deltaX:KC.deltaX,deltaY:KC.deltaY}}
function RJ(KC){var nC=KC.length;if(nC===1)return{x:gp(KC[0].clientX),y:gp(KC[0].clientY)};for(var Me=0,jj=0,Gc=0;Gc<nC;Gc++)Me+=KC[Gc].clientX,jj+=KC[Gc].clientY;return{x:gp(Me/nC),y:gp(jj/nC)}}
function tZ(KC,nC){return KC===nC?1:oJ(KC)>=oJ(nC)?KC>0?2:4:nC>0?8:16}
function wA(KC,nC,Me){Me||(Me=jc);var jj=nC[Me[0]]-KC[Me[0]];KC=nC[Me[1]]-KC[Me[1]];return Math.sqrt(jj*jj+KC*KC)}
function rA(KC,nC,Me){Me||(Me=jc);return Math.atan2(nC[Me[1]]-KC[Me[1]],nC[Me[0]]-KC[Me[0]])*180/Math.PI}
function xD(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;S.apply(this,arguments)}
function IJ(){this.evEl=bC;this.evWin=CF;S.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function sJ(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};S.apply(this,arguments)}
function Sn(){S.apply(this,arguments);var KC=X(this.handler,this);this.touch=new sJ(this.manager,KC);this.mouse=new xD(this.manager,KC)}
function YE(KC,nC){this.manager=KC;this.set(nC)}
function xE(KC){if(KC.indexOf("none")>-1)return"none";var nC=KC.indexOf("pan-x")>-1,Me=KC.indexOf("pan-y")>-1;return nC&&Me?"pan-x pan-y":nC||Me?nC?"pan-x":"pan-y":KC.indexOf("manipulation")>-1?"manipulation":"auto"}
function qv(KC){this.id=tB++;this.manager=null;this.options=m(KC||{},this.defaults);KC=this.options.enable;this.options.enable=KC===E?!0:KC;this.state=1;this.simultaneous={};this.requireFail=[]}
function mM(KC){return KC==16?"down":KC==8?"up":KC==2?"left":KC==4?"right":""}
function Ox(KC,nC){return(nC=nC.manager)?nC.get(KC):KC}
function h4(){qv.apply(this,arguments)}
function QC(){h4.apply(this,arguments);this.pY=this.pX=null}
function rp(){h4.apply(this,arguments)}
function Fd(){qv.apply(this,arguments);this._input=this._timer=null}
function yF(){h4.apply(this,arguments)}
function vR(){h4.apply(this,arguments)}
function ej(){qv.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Go(KC,nC){nC=nC||{};var Me=nC.recognizers;nC.recognizers=Me===E?Go.defaults.preset:Me;return new qN(KC,nC)}
function qN(KC,nC){nC=nC||{};this.options=m(nC,Go.defaults);this.options.inputTarget=this.options.inputTarget||KC;this.handlers={};this.session={};this.recognizers=[];this.element=KC;this.input=W(this);this.touchAction=new YE(this,this.options.touchAction);O5(this,!0);c(nC.recognizers,function(Me){var jj=this.add(new Me[0](Me[1]));Me[2]&&jj.recognizeWith(Me[2]);Me[3]&&jj.requireFailure(Me[2])},this)}
function O5(KC,nC){var Me=KC.element;c(KC.options.cssProps,function(jj,Gc){Me.style[L(Me.style,Gc)]=nC?jj:""})}
function p1(KC,nC){var Me=y.createEvent("Event");Me.initEvent(KC,!0,!0);Me.gesture=nC;nC.target.dispatchEvent(Me)}
var $E=" webkit moz MS ms o".split(" "),t4=y.createElement("div"),gp=Math.round,oJ=Math.abs,bB=Date.now,tB=1,JB=/mobile|tablet|ip(ad|hone|od)|android/i,XA="ontouchstart"in b,LU=L(b,"PointerEvent")!==E,uC=XA&&JB.test(navigator.userAgent),jc=["x","y"],L1=["clientX","clientY"];S.prototype={handler:function(){},
destroy:function(){this.evEl&&w(this.element,this.evEl,this.domHandler);this.evTarget&&w(this.target,this.evTarget,this.domHandler);this.evWin&&w(b,this.evWin,this.domHandler)}};
var Of={mousedown:1,mousemove:2,mouseup:4};r(xD,S,{handler:function(KC){var nC=Of[KC.type];nC&1&&KC.button===0&&(this.pressed=!0);nC&2&&KC.which!==1&&(nC=4);this.pressed&&this.allow&&(nC&4&&(this.pressed=!1),this.callback(this.manager,nC,{pointers:[KC],changedPointers:[KC],pointerType:"mouse",srcEvent:KC}))}});
var Ef={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},hb={2:"touch",3:"pen",4:"mouse",5:"kinect"},bC="pointerdown",CF="pointermove pointerup pointercancel";b.MSPointerEvent&&(bC="MSPointerDown",CF="MSPointerMove MSPointerUp MSPointerCancel");r(IJ,S,{handler:function(KC){var nC=this.store,Me=!1,jj=KC.type.toLowerCase().replace("ms","");jj=Ef[jj];var Gc=hb[KC.pointerType]||KC.pointerType;jj&1&&(KC.button===0||Gc=="touch")?nC.push(KC):jj&12&&(Me=!0);var Uh=k(nC,KC.pointerId,"pointerId");
Uh<0||(nC[Uh]=KC,this.callback(this.manager,jj,{pointers:nC,changedPointers:[KC],pointerType:Gc,srcEvent:KC}),Me&&nC.splice(Uh,1))}});
var X8={touchstart:1,touchmove:2,touchend:4,touchcancel:8};r(sJ,S,{handler:function(KC){var nC=X8[KC.type];var Me=Array.prototype.slice.call(KC.touches,0);var jj=this.targetIds;if(nC&3&&Me.length===1)jj[Me[0].identifier]=!0,jj=[Me,Me];else{var Gc,Uh=Array.prototype.slice.call(KC.targetTouches,0),DW=Array.prototype.slice.call(KC.changedTouches,0),lT=[];if(nC===1)for(Me=0,Gc=Uh.length;Me<Gc;Me++)jj[Uh[Me].identifier]=!0;Me=0;for(Gc=DW.length;Me<Gc;Me++)jj[DW[Me].identifier]&&lT.push(DW[Me]),nC&12&&
delete jj[DW[Me].identifier];jj=lT.length?[f(Uh.concat(lT),"identifier",!0),lT]:void 0}jj&&this.callback(this.manager,nC,{pointers:jj[0],changedPointers:jj[1],pointerType:"touch",srcEvent:KC})}});
r(Sn,S,{handler:function(KC,nC,Me){var jj=Me.pointerType=="mouse";if(Me.pointerType=="touch")this.mouse.allow=!1;else if(jj&&!this.mouse.allow)return;nC&12&&(this.mouse.allow=!0);this.callback(KC,nC,Me)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var Wx=L(t4.style,"touchAction"),Mg=Wx!==E;YE.prototype={set:function(KC){KC=="compute"&&(KC=this.compute());Mg&&(this.manager.element.style[Wx]=KC);this.actions=KC.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var KC=[];c(this.manager.recognizers,function(nC){V(nC.options.enable,[nC])&&(KC=KC.concat(nC.getTouchAction()))});
return xE(KC.join(" "))},
preventDefaults:function(KC){if(!Mg){var nC=KC.srcEvent;KC=KC.offsetDirection;if(this.manager.session.prevented)nC.preventDefault();else{var Me=this.actions,jj=Me.indexOf("none")>-1,Gc=Me.indexOf("pan-y")>-1;Me=Me.indexOf("pan-x")>-1;if(jj||Gc&&Me||Gc&&KC&6||Me&&KC&24)return this.preventSrc(nC)}}},
preventSrc:function(KC){this.manager.session.prevented=!0;KC.preventDefault()}};
qv.prototype={defaults:{},set:function(KC){z(this.options,KC);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(KC){if(R(KC,"recognizeWith",this))return this;var nC=this.simultaneous;KC=Ox(KC,this);nC[KC.id]||(nC[KC.id]=KC,KC.recognizeWith(this));return this},
dropRecognizeWith:function(KC){if(R(KC,"dropRecognizeWith",this))return this;KC=Ox(KC,this);delete this.simultaneous[KC.id];return this},
requireFailure:function(KC){if(R(KC,"requireFailure",this))return this;var nC=this.requireFail;KC=Ox(KC,this);k(nC,KC)===-1&&(nC.push(KC),KC.requireFailure(this));return this},
dropRequireFailure:function(KC){if(R(KC,"dropRequireFailure",this))return this;KC=Ox(KC,this);KC=k(this.requireFail,KC);KC>-1&&this.requireFail.splice(KC,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(KC){return!!this.simultaneous[KC.id]},
emit:function(KC){function nC(Gc){Me.manager.emit(Me.options.event+(Gc?jj&16?"cancel":jj&8?"end":jj&4?"move":jj&2?"start":"":""),KC)}
var Me=this,jj=this.state;jj<8&&nC(!0);nC();jj>=8&&nC(!0)},
tryEmit:function(KC){if(this.canEmit())return this.emit(KC);this.state=32},
canEmit:function(){for(var KC=0;KC<this.requireFail.length;KC++)if(!(this.requireFail[KC].state&33))return!1;return!0},
recognize:function(KC){KC=z({},KC);V(this.options.enable,[this,KC])?(this.state&56&&(this.state=1),this.state=this.process(KC),this.state&30&&this.tryEmit(KC)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
r(h4,qv,{defaults:{pointers:1},attrTest:function(KC){var nC=this.options.pointers;return nC===0||KC.pointers.length===nC},
process:function(KC){var nC=this.state,Me=KC.eventType,jj=nC&6;KC=this.attrTest(KC);return jj&&(Me&8||!KC)?nC|16:jj||KC?Me&4?nC|8:nC&2?nC|4:2:32}});
r(QC,h4,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var KC=this.options.direction;if(KC===30)return["none"];var nC=[];KC&6&&nC.push("pan-y");KC&24&&nC.push("pan-x");return nC},
directionTest:function(KC){var nC=this.options,Me=!0,jj=KC.distance,Gc=KC.direction,Uh=KC.deltaX,DW=KC.deltaY;Gc&nC.direction||(nC.direction&6?(Gc=Uh===0?1:Uh<0?2:4,Me=Uh!=this.pX,jj=Math.abs(KC.deltaX)):(Gc=DW===0?1:DW<0?8:16,Me=DW!=this.pY,jj=Math.abs(KC.deltaY)));KC.direction=Gc;return Me&&jj>nC.threshold&&Gc&nC.direction},
attrTest:function(KC){return h4.prototype.attrTest.call(this,KC)&&(this.state&2||!(this.state&2)&&this.directionTest(KC))},
emit:function(KC){this.pX=KC.deltaX;this.pY=KC.deltaY;var nC=mM(KC.direction);nC&&this.manager.emit(this.options.event+nC,KC);this._super.emit.call(this,KC)}});
r(rp,h4,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(KC){return this._super.attrTest.call(this,KC)&&(Math.abs(KC.scale-1)>this.options.threshold||this.state&2)},
emit:function(KC){this._super.emit.call(this,KC);KC.scale!==1&&this.manager.emit(this.options.event+(KC.scale<1?"in":"out"),KC)}});
r(Fd,qv,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(KC){var nC=this.options,Me=KC.pointers.length===nC.pointers,jj=KC.distance<nC.threshold,Gc=KC.deltaTime>nC.time;this._input=KC;if(!jj||!Me||KC.eventType&12&&!Gc)this.reset();else if(KC.eventType&1)this.reset(),this._timer=F(function(){this.state=8;this.tryEmit()},nC.time,this);
else if(KC.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(KC){this.state===8&&(KC&&KC.eventType&4?this.manager.emit(this.options.event+"up",KC):(this._input.timeStamp=bB(),this.manager.emit(this.options.event,this._input)))}});
r(yF,h4,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(KC){return this._super.attrTest.call(this,KC)&&(Math.abs(KC.rotation)>this.options.threshold||this.state&2)}});
r(vR,h4,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return QC.prototype.getTouchAction.call(this)},
attrTest:function(KC){var nC=this.options.direction;if(nC&30)var Me=KC.velocity;else nC&6?Me=KC.velocityX:nC&24&&(Me=KC.velocityY);return this._super.attrTest.call(this,KC)&&nC&KC.direction&&oJ(Me)>this.options.velocity&&KC.eventType&4},
emit:function(KC){var nC=mM(KC.direction);nC&&this.manager.emit(this.options.event+nC,KC);this.manager.emit(this.options.event,KC)}});
r(ej,qv,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(KC){var nC=this.options,Me=KC.pointers.length===nC.pointers,jj=KC.distance<nC.threshold,Gc=KC.deltaTime<nC.time;this.reset();if(KC.eventType&1&&this.count===0)return this.failTimeout();if(jj&&Gc&&Me){if(KC.eventType!=4)return this.failTimeout();Me=this.pTime?KC.timeStamp-this.pTime<nC.interval:!0;jj=!this.pCenter||wA(this.pCenter,KC.center)<nC.posThreshold;this.pTime=KC.timeStamp;this.pCenter=KC.center;jj&&Me?this.count+=1:this.count=1;this._input=KC;if(this.count%nC.taps===0)return this.hasRequireFailures()?
(this._timer=F(function(){this.state=8;this.tryEmit()},nC.interval,this),2):8}return 32},
failTimeout:function(){this._timer=F(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))}});
Go.VERSION="2.0.2";Go.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[yF,{enable:!1}],[rp,{enable:!1},["rotate"]],[vR,{direction:6}],[QC,{direction:6},["swipe"]],[ej],[ej,{event:"doubletap",taps:2},["tap"]],[Fd]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};qN.prototype={set:function(KC){z(this.options,KC);return this},
stop:function(KC){this.session.stopped=KC?2:1},
recognize:function(KC){var nC=this.session;if(!nC.stopped){this.touchAction.preventDefaults(KC);var Me=this.recognizers,jj=nC.curRecognizer;if(!jj||jj&&jj.state&8)jj=nC.curRecognizer=null;for(var Gc=0,Uh=Me.length;Gc<Uh;Gc++){var DW=Me[Gc];nC.stopped===2||jj&&DW!=jj&&!DW.canRecognizeWith(jj)?DW.reset():DW.recognize(KC);!jj&&DW.state&14&&(jj=nC.curRecognizer=DW)}}},
get:function(KC){if(KC instanceof qv)return KC;for(var nC=this.recognizers,Me=0;Me<nC.length;Me++)if(nC[Me].options.event==KC)return nC[Me];return null},
add:function(KC){if(R(KC,"add",this))return this;var nC=this.get(KC.options.event);nC&&this.remove(nC);this.recognizers.push(KC);KC.manager=this;this.touchAction.update();return KC},
remove:function(KC){if(R(KC,"remove",this))return this;var nC=this.recognizers;KC=this.get(KC);nC.splice(k(nC,KC),1);this.touchAction.update();return this},
on:function(KC,nC){var Me=this.handlers;c(D(KC),function(jj){Me[jj]=Me[jj]||[];Me[jj].push(nC)});
return this},
off:function(KC,nC){var Me=this.handlers;c(D(KC),function(jj){nC?Me[jj].splice(k(Me[jj],nC),1):delete Me[jj]});
return this},
emit:function(KC,nC){this.options.domEvents&&p1(KC,nC);var Me=this.handlers[KC]&&this.handlers[KC].slice();if(Me&&Me.length){nC.type=KC;nC.preventDefault=function(){nC.srcEvent.preventDefault()};
KC=0;for(var jj=Me.length;KC<jj;KC++)Me[KC](nC)}},
destroy:function(){this.element&&O5(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
z(Go,{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:qN,Input:S,TouchAction:YE,Recognizer:qv,AttrRecognizer:h4,Tap:ej,Pan:QC,Swipe:vR,Pinch:rp,Rotate:yF,Press:Fd,on:G,off:w,each:c,merge:m,extend:z,inherit:r,bindFn:X,prefixed:L});
b[J]=Go})(window,document,"Hammer");
return window.Hammer}.call({});
N.DOCUMENT=q;q[Th4]=N}return q[Th4]};/*

 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 nJ4=function(q,N){if(q.length!==N.length)return!1;for(var b=0;b<q.length;++b)if(q[b]!==N[b])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var aQM=_.Z(["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"]),Sdx=aQM.next();!Sdx.done;Sdx=aQM.next()){var Wvx=Sdx.value,LvJ=document.createElement("link");LvJ.rel="stylesheet";LvJ.href=Wvx;document.head.appendChild(LvJ)};var foZ,Ioz,sYn,hLA,CuJ,kmh,KwJ,DQu;foZ={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};Ioz={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:"*"};sYn={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};hLA=/[a-z0-9*]/;CuJ=/U\+/;kmh=/^arrow/;KwJ=/^space(bar)?/;DQu=/^escape$/;_.kT={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(q,N){this._imperativeKeyBindings[q]=N;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(q,N){N=aon(N);for(var b=0;b<N.length;++b)if(T1A(N[b],q))return!0;return!1},
_collectKeyBindings:function(){var q=this.behaviors.map(function(N){return N.keyBindings});
q.indexOf(this.keyBindings)===-1&&q.push(this.keyBindings);return q},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(b){for(var y in b)this._addKeyBinding(y,b[y])},this);
for(var q in this._imperativeKeyBindings)this._addKeyBinding(q,this._imperativeKeyBindings[q]);for(var N in this._keyBindings)this._keyBindings[N].sort(function(b,y){b=b[0].hasModifiers;return b===y[0].hasModifiers?0:b?-1:1})},
_addKeyBinding:function(q,N){aon(q).forEach(function(b){this._keyBindings[b.event]=this._keyBindings[b.event]||[];this._keyBindings[b.event].push([b,N])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(q){var N=this._onKeyBindingEvent.bind(this,this._keyBindings[q]);this._boundKeyHandlers.push([this.keyEventTarget,q,N]);this.keyEventTarget.addEventListener(q,N)},this)},
_unlistenKeyEventListeners:function(){for(var q,N,b;this._boundKeyHandlers.length;)q=this._boundKeyHandlers.pop(),N=q[0],b=q[1],q=q[2],N.removeEventListener(b,q)},
_onKeyBindingEvent:function(q,N){this.stopKeyboardEventPropagation&&N.stopPropagation();if(!N.defaultPrevented)for(var b=0;b<q.length;b++){var y=q[b][0],J=q[b][1];if(T1A(y,N)&&(this._triggerKeyHandler(y,J,N),N.defaultPrevented))break}},
_triggerKeyHandler:function(q,N,b){var y=Object.create(q);y.keyboardEvent=b;q=new CustomEvent(q.event,{detail:y,cancelable:!0});this[N].call(this,q);q.defaultPrevented&&b.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
*/
_.x9({is:"iron-a11y-keys",_template:null,behaviors:[_.kT],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(q){this.keyEventTarget=q},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(q){this.fire("keys-pressed",q.detail,{})}});_.UD={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(q){this._setFocused(q.type==="focus")},
_disabledChanged:function(q){this.setAttribute("aria-disabled",q?"true":"false");this.style.pointerEvents=q?"none":"";q?(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 fi={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(q){this._detectKeyboardFocus(q);q||this._setPressed(!1)},
_detectKeyboardFocus:function(q){this._setReceivedFocusFromKeyboard(!this.pointerDown&&q)},
_userActivate:function(q){this.active!==q&&(this.active=q,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(q){q=q.detail.keyboardEvent;var N=_.mj(q).localTarget;this.isLightDescendant(N)||(q.preventDefault(),q.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(q){q=_.mj(q.detail.keyboardEvent).localTarget;this.isLightDescendant(q)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(q,N){N&&N!=q&&this.hasAttribute(N)&&this.removeAttribute(N)},
_activeChanged:function(q){this.toggles?this.setAttribute(this.ariaActiveAttribute,q?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},pVJ=[_.kT,
fi];_.Ci={IronButtonState:pVJ,IronButtonStateImpl:fi};_.IV={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.TW=function(q){_.TW[" "](q);this.type=q&&q.type||"default";this.key=q&&q.key;q&&"value"in q&&(this.value=q.value)};
_.TW.prototype.byKey=function(q){this.key=q;return this.value};
_.$H.Object.defineProperties(_.TW.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var q=this.type,N=this.key;if(q&&N)return sD[q]&&sD[q][N]},
set:function(q){var N=this.type,b=this.key;N&&b&&(N=sD[N]=sD[N]||{},q==null?delete N[b]:N[b]=q)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var q=sD[this.type];return q?Object.keys(q).map(function(N){return sD[this.type][N]},this):[]}}});
_.TW[" "]=function(){};
var sD={};_.x9({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(q,N,b){q=new _.TW({type:q,key:N});b!==void 0&&b!==q.value?q.value=b:this.value!==q.value&&(this.value=q.value);return q},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(q){q&&(this.value=this)},
byKey:function(q){return(new _.TW({type:this.type,key:q})).value}});var P9j;P9j=null;_.ni={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){P9j=new _.TW({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return P9j&&P9j.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(q){this.invalid=q===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(q);return!this.invalid},
_getValidity:function(q){return this.hasValidator()?this._validator.validate(q):!0}};var Max={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"}},oJj=[_.IV,
_.ni,Max];_.x9({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 _.TW({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(q){return this.name+":"+q},this)},
applyIcon:function(q,N){this.removeIcon(q);if(N=this._cloneIcon(N,this.rtlMirroring&&this._targetIsRTL(q))){var b=_.mj(q.root||q);b.insertBefore(N,b.childNodes[0]);return q._svgIcon=N}return null},
removeIcon:function(q){q._svgIcon&&(_.mj(q.root||q).removeChild(q._svgIcon),q._svgIcon=null)},
_targetIsRTL:function(q){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(q&&q.nodeType!==Node.ELEMENT_NODE&&(q=q.host),this.__targetIsRTL=q&&window.getComputedStyle(q).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 q=Object.create(null);_.mj(this).querySelectorAll("[id]").forEach(function(N){q[N.id]=N});
return q},
_cloneIcon:function(q,N){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[q],this.size,N)},
_prepareSvgClone:function(q,N,b){if(q){q=q.cloneNode(!0);var y=document.createElementNS("http://www.w3.org/2000/svg","svg");N=q.getAttribute("viewBox")||"0 0 "+N+" "+N;var J="pointer-events: none; display: block; width: 100%; height: 100%;";b&&q.hasAttribute("mirror-in-rtl")&&(J+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");y.setAttribute("viewBox",N);y.setAttribute("preserveAspectRatio","xMidYMid meet");y.setAttribute("focusable","false");y.style&&(y.style.cssText=
J);y.appendChild(q).removeAttribute("id");return y}return null}});var A7T=function(q){this.multi=!1;this.selection=[];this.selectCallback=q};
_.g=A7T.prototype;_.g.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.g.clear=function(q){this.selection.slice().forEach(function(N){(!q||q.indexOf(N)<0)&&this.setItemSelected(N,!1)},this)};
_.g.isSelected=function(q){return this.selection.indexOf(q)>=0};
_.g.setItemSelected=function(q,N){if(q!=null&&N!==this.isSelected(q)){if(N)this.selection.push(q);else{var b=this.selection.indexOf(q);b>=0&&this.selection.splice(b,1)}this.selectCallback&&this.selectCallback(q,N)}};
_.g.select=function(q){this.multi?this.toggle(q):this.get()!==q&&(this.setItemSelected(this.get(),!1),this.setItemSelected(q,!0))};
_.g.toggle=function(q){this.setItemSelected(q,!this.isSelected(q))};_.Ck={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 A7T(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.mj(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(q){return this.items?this.items.indexOf(q):-1},
select:function(q){this.selected=q},
selectPrevious:function(){var q=this.items.length,N=q-1;this.selected!==void 0&&(N=(Number(this._valueToIndex(this.selected))-1+q)%q);this.selected=this._indexToValue(N)},
selectNext:function(){var q=0;this.selected!==void 0&&(q=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(q)},
selectIndex:function(q){this.select(this._indexToValue(q))},
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(q){this.listen(this,q,"_activateHandler")},
_removeListener:function(q){this.unlisten(this,q,"_activateHandler")},
_activateEventChanged:function(q,N){this._removeListener(N);this._addListener(q)},
_updateItems:function(){var q=_.mj(this).queryDistributedElements(this.selectable||"*");q=Array.prototype.filter.call(q,this._bindFilterItem);this._setItems(q)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var q=this._valueToItem(this.selected);q?this._selection.select(q):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(q){return!this._excludedLocalNames[q.localName]},
_valueToItem:function(q){return q==null?null:this.items[this._valueToIndex(q)]},
_valueToIndex:function(q){if(this.attrForSelected)for(var N=0,b;b=this.items[N];N++){if(this._valueForItem(b)==q)return N}else return Number(q)},
_indexToValue:function(q){if(this.attrForSelected){if(q=this.items[q])return this._valueForItem(q)}else return q},
_valueForItem:function(q){if(!q)return null;if(!this.attrForSelected)return q=this.indexOf(q),q===-1?null:q;var N=q[Gh(this.attrForSelected)];return N!=void 0?N:q.getAttribute(this.attrForSelected)},
_applySelection:function(q,N){this.selectedClass&&this.toggleClass(this.selectedClass,N,q);this.selectedAttribute&&this.toggleAttribute.call(q,this.selectedAttribute,N);this._selectionChange();this.fire("iron-"+(N?"select":"deselect"),{item:q})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(q){return _.mj(q).observeNodes(function(N){this._updateItems();this._updateSelected();this.fire("iron-items-changed",N,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(q){q=q.target;for(var N=this.items;q&&q!=this;){var b=N.indexOf(q);if(b>=0){N=this._indexToValue(b);this._itemActivate(N,q);break}q=q.parentNode}},
_itemActivate:function(q,N){this.fire("iron-activate",{selected:q,item:N},{cancelable:!0}).defaultPrevented||this.select(q)}};var ef4={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(q){this.multi?this._toggleSelected(q):this.selected=q},
multiChanged:function(q){this._selection.multi=q;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(q){return this._indexToValue(this.indexOf(q))},this).filter(function(q){return q!=null},this)):_.Ck._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(q){q=q||[];q=(this._valuesToItems(q)||[]).filter(function(b){return b!==null&&b!==void 0});
this._selection.clear(q);for(var N=0;N<q.length;N++)this._selection.setItemSelected(q[N],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var q=this._selection.get();this.multi?(this._setSelectedItems(q),this._setSelectedItem(q.length?q[0]:null)):q!==null&&q!==void 0?(this._setSelectedItems([q]),this._setSelectedItem(q)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(q){var N=this.selectedValues.indexOf(q);N<0?this.push("selectedValues",q):this.splice("selectedValues",N,1)},
_valuesToItems:function(q){return q==null?null:q.map(function(N){return this._valueToItem(N)},this)}},Bh1=[_.Ck,
ef4];var HNR;
_.aV={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(q){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var N=this._valueToItem(q);N&&N.hasAttribute("disabled")||(this._setFocusedItem(N),ef4.select.apply(this,arguments))},
_resetTabindices:function(){var q=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(N){N.setAttribute("tabindex",N===q?"0":"-1");N.setAttribute("aria-selected",this._selection.isSelected(N))},this)},
_updateMultiselectable:function(q){q?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(q){if(this._MODIFIER_KEYS.indexOf(q.key)===-1){this.cancelDebouncer("_clearSearchText");var N=this._searchText||"";N+=(q.key&&q.key.length==1?q.key:String.fromCharCode(q.keyCode)).toLocaleLowerCase();q=N.length;for(var b=0,y;y=this.items[b];b++)if(!y.hasAttribute("disabled")){var J=this.attrForItemTitle||"textContent";J=(y[J]||y.getAttribute(J)||"").trim();if(!(J.length<q)&&J.slice(0,q).toLocaleLowerCase()==N){this._setFocusedItem(y);break}}this._searchText=N;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var q=this.items.length,N=Number(this.indexOf(this.focusedItem)),b=1;b<q+1;b++){var y=this.items[(N-b+q)%q];if(!y.hasAttribute("disabled")){var J=_.mj(y).getOwnerRoot()||document;this._setFocusedItem(y);if(_.mj(J).activeElement==y)break}}},
_focusNext:function(){for(var q=this.items.length,N=Number(this.indexOf(this.focusedItem)),b=1;b<q+1;b++){var y=this.items[(N+b)%q];if(!y.hasAttribute("disabled")){var J=_.mj(y).getOwnerRoot()||document;this._setFocusedItem(y);if(_.mj(J).activeElement==y)break}}},
_applySelection:function(q,N){N?q.setAttribute("aria-selected","true"):q.setAttribute("aria-selected","false");_.Ck._applySelection.apply(this,arguments)},
_focusedItemChanged:function(q,N){N&&N.setAttribute("tabindex","-1");!q||q.hasAttribute("disabled")||this.disabled||(q.setAttribute("tabindex","0"),q.focus())},
_onIronItemsChanged:function(q){q.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var q=this.getAttribute("tabindex");_.aV._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",q);_.aV._shiftTabPressed=!1},1)},
_onFocus:function(q){!_.aV._shiftTabPressed&&(q=_.mj(q).rootTarget,q===this||typeof q.tabIndex==="undefined"||this.isLightDescendant(q))&&(this._defaultFocusAsync=this.async(function(){var N=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);N?this._setFocusedItem(N):this.items[0]&&this._focusNext()}))},
_onUpKey:function(q){this._focusPrevious();q.detail.keyboardEvent.preventDefault()},
_onDownKey:function(q){this._focusNext();q.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var q=this.focusedItem;q&&q.blur()},
_onKeydown:function(q){this.keyboardEventMatchesKeys(q,"up down esc")||this._focusWithKeyboardEvent(q);q.stopPropagation()},
_activateHandler:function(q){_.Ck._activateHandler.call(this,q);q.stopPropagation()},
_disabledChanged:function(q){q?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};HNR=[Bh1,_.kT,_.aV];_.qn4={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(q){this.focusedItem&&(this.focusedItem.click(),q.detail.keyboardEvent.preventDefault())},
_onDownKey:function(q){this.focusedItem&&(this.focusedItem.click(),q.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(q){return q.ctrlKey||q.shiftKey||q.altKey||q.metaKey},
_onLeftKey:function(q){this._isSpecialKey(q.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),q.detail.keyboardEvent.preventDefault())},
_onRightKey:function(q){this._isSpecialKey(q.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),q.detail.keyboardEvent.preventDefault())},
_onKeydown:function(q){this.keyboardEventMatchesKeys(q,"up down left right esc")||this._focusWithKeyboardEvent(q)}};
_.NMj=[HNR,_.qn4];var bLM;bLM=new Set;_.SQ={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):(bLM.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(q){this.resizerShouldNotify(q)&&this._notifyDescendant(q)},this),this._fireResize())},
assignParentResizable:function(q){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=q)&&q._interestedResizables.indexOf(this)===-1&&(q._interestedResizables.push(this),q._subscribeIronResize(this))},
stopResizeNotificationsFor:function(q){var N=this._interestedResizables.indexOf(q);N>-1&&(this._interestedResizables.splice(N,1),this._unsubscribeIronResize(q))},
_subscribeIronResize:function(q){q.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(q){q.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(q){this._notifyingDescendant?q.stopPropagation():HK||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(q){var N=_.mj(q).rootTarget;N!==this&&(N.assignParentResizable(this),this._notifyDescendant(N),q.stopPropagation())},
_parentResizableChanged:function(q){q&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(q){this.isAttached&&(this._notifyingDescendant=!0,q.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var q=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function b(){document.removeEventListener("readystatechange",b);q()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(N){N!==this&&N._findParent()},this):(bLM.forEach(function(N){N!==this&&N._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?bLM.delete(this):bLM.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
*/
_.ysT={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(q,N){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);N&&(q==="document"?this.scrollTarget=this._doc:typeof q==="string"?this.scrollTarget=(N=this.domHost)&&N.$?N.$[q]:_.mj(this.ownerDocument).querySelector("#"+q):this._isValidScrollTarget()&&(this._oldScrollTarget=q,this._toggleScrollListener(this._shouldHaveListener,q)))},
_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(q){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,q):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
q)},set _scrollLeft(q){this.scrollTarget===this._doc?window.scrollTo(q,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=q)},scroll:function(q,N){if(typeof q==="object"){var b=q.left;N=q.top}else b=q;b=b||0;N=N||0;this.scrollTarget===this._doc?window.scrollTo(b,N):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=b,this.scrollTarget.scrollTop=N)},
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(q,N){N=N===this._doc?window:N;q?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),N.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(N.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(q){this._shouldHaveListener=q;this._toggleScrollListener(q,this.scrollTarget)}};_.x9({is:"iron-selector",_template:null,behaviors:[Bh1]});var W0={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(q){if(q.timing)for(var N in q.timing)this.animationTiming[N]=q.timing[N];return this.animationTiming},
setPrefixedProperty:function(q,N,b){for(var y={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[N],J,E=0;J=y[E];E++)q.style[J]=b;q.style[N]=b},
complete:function(){}};_.x9({is:"fade-in-animation",_template:null,behaviors:[W0],configure:function(q){return this._effect=new KeyframeEffect(q.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(q))}});_.x9({is:"fade-out-animation",_template:null,behaviors:[W0],configure:function(q){return this._effect=new KeyframeEffect(q.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(q))}});var JsF=[{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(q,N){for(var b in N)q[b]=N[b]},
_cloneConfig:function(q){var N={isClone:!0};this._copyProperties(N,q);return N},
_getAnimationConfigRecursive:function(q,N,b){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 y=q?this.animationConfig[q]:this.animationConfig;Array.isArray(y)||(y=[y]);if(y)for(var J,E=0;J=y[E];E++)if(J.animatable)J.animatable._getAnimationConfigRecursive(J.type||q,N,b);else if(J.id){var F=N[J.id];
F?(F.isClone||(N[J.id]=this._cloneConfig(F),F=N[J.id]),this._copyProperties(F,J)):N[J.id]=J}else b.push(J)}},
getAnimationConfig:function(q){var N={},b=[];this._getAnimationConfigRecursive(q,N,b);for(var y in N)b.push(N[y]);return b}},
{_configureAnimations:function(q){var N=[],b=[];if(q.length>0)for(var y,J=0;y=q[J];J++){var E=document.createElement(y.name);if(E.isNeonAnimation){var F=null;E.configure||(E.configure=function(){return null});
F=E.configure(y);b.push({result:F,config:y})}else console.warn(this.is+":",y.name,"not found!")}for(q=0;q<b.length;q++){F=b[q].result;y=b[q].config;try{typeof F.cancel!="function"&&(F=document.timeline.play(F))}catch(R){F=null,console.warn("Couldnt play","(",y.name,").",R)}F&&N.push({neonAnimation:E,config:y,animation:F})}return N},
_shouldComplete:function(q){for(var N=!0,b=0;b<q.length;b++)if(q[b].animation.playState!="finished"){N=!1;break}return N},
_complete:function(q){for(var N=0;N<q.length;N++)q[N].neonAnimation.complete(q[N].config);for(N=0;N<q.length;N++)q[N].animation.cancel()},
playAnimation:function(q,N){var b=this.getAnimationConfig(q);if(b){this._active=this._active||{};this._active[q]&&(this._complete(this._active[q]),delete this._active[q]);var y=this._configureAnimations(b);if(y.length==0)this.fire("neon-animation-finish",N,{bubbles:!1});else for(this._active[q]=y,b=0;b<y.length;b++)y[b].animation.onfinish=function(){this._shouldComplete(y)&&(this._complete(y),delete this._active[q],this.fire("neon-animation-finish",N,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var q in this._active){var N=this._active[q],b;for(b in N)N[b].animation&&N[b].animation.cancel&&N[b].animation.cancel()}this._active={}}}];var h9=function(q,N){q=Error.call(this,q);this.message=q.message;"stack"in q&&(this.stack=q.stack);this.arg=N;this.name=this.constructor.name;this.constructor=h9;this.__proto__=h9.prototype};
_.Y(h9,Error);var EsR=yO(function(q){var N=function(){return q.apply(this,arguments)||this};
_.Y(N,q);N.prototype._marshalArgs=function(b,y,J){y=q.prototype._marshalArgs.call(this,b,y,J);if(this._legacyUndefinedCheck&&y.length>1)for(J=0;J<y.length;J++)if(y[J]===void 0||b[J].wildcard&&y[J].base===void 0)throw b=b[J].name,new h9("Argument '"+b+"' is undefined.",b);return y};
N.prototype._addPropertyEffect=function(b,y,J){return q.prototype._addPropertyEffect.call(this,b,y,Squ(J,J&&J.info&&J.info.methodName))};
N._addTemplatePropertyEffect=function(b,y,J){return q._addTemplatePropertyEffect.call(this,b,y,Squ(J))};
return N}),gsM=_.x9.Class;
_.x9.Class=function(q,N){return gsM(q,function(b){return N?N(EsR(b)):EsR(b)})};
var ZLx=yO(function(q){var N=EsR(q);q=function(){return N.apply(this,arguments)||this};
_.Y(q,N);_.$H.Object.defineProperties(q.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return q}),FYl=yi.mixin;
yi.mixin=FYl?function(q){return ZLx(FYl(q))}:ZLx;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.Li=_.Ci.IronButtonState;var orA=BK;_.WwR="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");var o_d=function(){return Math.random().toString(36).substring(7).split("").join(".")},MEJ="@@redux/INIT"+o_d(),B1D="@@redux/REPLACE"+o_d();var HGC=typeof Symbol==="function"&&Symbol.observable||"@@observable";var RWx=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var ddM="top right bottom left width height size weight".split(" "),csx=typeof MutationObserver!=="undefined",unj=RWx&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,zWq=function(){this.mutationEventsAdded_=this.JSC$11833_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=q1n(this.refresh.bind(this))},$dE=function(q,
N){var b=q.observers_;
N=b.indexOf(N);~N&&b.splice(N,1);!b.length&&q.JSC$11833_connected_&&RWx&&q.JSC$11833_connected_&&(document.removeEventListener("transitionend",q.onTransitionEnd_),window.removeEventListener("resize",q.refresh),q.mutationsObserver_&&(q.mutationsObserver_.disconnect(),unj&&(HTMLElement.prototype.attachShadow=unj)),q.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",q.refresh),q.mutationsObserver_=null,q.mutationEventsAdded_=!1,q.JSC$11833_connected_=!1)};
zWq.prototype.refresh=function(){t5v(this)&&this.refresh()};
var t5v=function(q){q=q.observers_.filter(function(N){return mdx(N),N.activeObservations_.length>0});
q.forEach(function(N){return rsx(N)});
return q.length>0},XcJ=function(q){if(RWx&&!q.JSC$11833_connected_){document.addEventListener("transitionend",q.onTransitionEnd_);
window.addEventListener("resize",q.refresh);if(csx){q.mutationsObserver_=new MutationObserver(q.refresh);var N={attributes:!0,childList:!0,characterData:!0,subtree:!0};q.mutationsObserver_.observe(document,N);unj&&(function J(y){var E=y.shadowRoot;E&&(q.mutationsObserver_.observe(E,N),J(E));for(y=y.firstElementChild;y;)J(y),y=y.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var y=unj.apply(this,_.MB.apply(0,arguments));
q.mutationsObserver_.observe(y,N);return y})}else document.addEventListener("DOMSubtreeModified",q.refresh),q.mutationEventsAdded_=!0;
q.JSC$11833_connected_=!0}};
zWq.prototype.onTransitionEnd_=function(q){var N=q.propertyName===void 0?"":q.propertyName;ddM.some(function(b){return!!~N.indexOf(b)})&&this.refresh()};
var V51=null;var j6T=function(q,N){for(var b=_.Z(Object.keys(N)),y=b.next();!y.done;y=b.next())y=y.value,Object.defineProperty(q,y,{value:N[y],enumerable:!1,writable:!1,configurable:!0})};var pi=function(q){var N;return(q==null?void 0:(N=q.ownerDocument)==null?void 0:N.defaultView)||globalThis};var xd1={x:0,y:0,width:0,height:0},vsF=typeof SVGGraphicsElement!=="undefined"?function(q){return q instanceof pi(q).SVGGraphicsElement}:function(q){return q instanceof pi(q).SVGElement&&typeof q.getBBox==="function"};var Gaj=function(q){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=q};
Gaj.prototype.isActive=function(){var q=this.target;if(RWx)if(vsF(q)){var N=q.getBBox();N={x:0,y:0,width:N.width,height:N.height}}else{var b=q.clientWidth,y=q.clientHeight;if(b||y){var J=pi(q).getComputedStyle(q);N=U7(J["padding-top"]);var E=U7(J["padding-left"]),F=E+U7(J["padding-right"]),R=N+U7(J["padding-bottom"]),c=U7(J.width),z=U7(J.height);J.boxSizing==="border-box"&&(Math.round(c+F)!==b&&(c-=Nbz(J,"left","right")+F),Math.round(z+R)!==y&&(z-=Nbz(J,"top","bottom")+R));q!==pi(q).document.documentElement&&
(q=Math.round(c+F)-b,y=Math.round(z+R)-y,Math.abs(q)!==1&&(c-=q),Math.abs(y)!==1&&(z-=y));N={x:E,y:N,width:c,height:z}}else N=xd1}else N=xd1;this.contentRect_=N;return N.width!==this.broadcastWidth||N.height!==this.broadcastHeight};var YnJ=function(q,N){var b=N.x;var y=N.y;var J=N.width;N=N.height;var E=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);j6T(E,{x:b,y:y,width:J,height:N,top:y,right:b+J,bottom:N+y,left:b});j6T(this,{target:q,contentRect:E})};var Q6M=function(q,N){var b=V51;this.activeObservations_=[];this.observations_=new Map;if(typeof q!=="function")throw new TypeError("Ve");this.callback_=q;this.controller_=b;this.callbackCtx_=N};
Q6M.prototype.observe=function(q){if(q===void 0)throw new TypeError("We");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(q instanceof pi(q).Element))throw new TypeError("Xe");var N=this.observations_;N.has(q)||(N.set(q,new Gaj(q)),q=this.controller_,~q.observers_.indexOf(this)||q.observers_.push(this),q.JSC$11833_connected_||XcJ(q),this.controller_.refresh())}};
Q6M.prototype.unobserve=function(q){if(q===void 0)throw new TypeError("We");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(q instanceof pi(q).Element))throw new TypeError("Xe");var N=this.observations_;N.has(q)&&(N.delete(q),N.size||$dE(this.controller_,this))}};
Q6M.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();$dE(this.controller_,this)};
var mdx=function(q){q.activeObservations_.splice(0);q.observations_.forEach(function(N){N.isActive()&&q.activeObservations_.push(N)})},rsx=function(q){if(q.activeObservations_.length>0){var N=q.callbackCtx_,b=q.activeObservations_.map(function(y){var J=y.target,E=y.contentRect_;
y.broadcastWidth=E.width;y.broadcastHeight=E.height;return new YnJ(J,E)});
q.callback_.call(N,b,N);q.activeObservations_.splice(0)}};var P0=function(q){if(!(this instanceof P0))throw new TypeError("Ye");if(!arguments.length)throw new TypeError("We");V51||(V51=new zWq);this.observer_=new Q6M(q,this)};
P0.prototype.observe=function(q){this.observer_.observe(q)};
P0.prototype.unobserve=function(q){this.observer_.unobserve(q)};
P0.prototype.disconnect=function(){this.observer_.disconnect()};var iqC=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:P0;var NP={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"},J8={"2D":0,WebGL:1,WebGL2:2};J8[J8["2D"]]="2D";J8[1]="WebGL";J8[2]="WebGL2";var ylZ={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},JlJ={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},bJh={},gCZ={},ZJe={},SL=function(q){return fA("Node",q,"childNodes")},aP=function(q){return fA("Node",q,"parentNode")},WB=function(q){return fA("Node",q,"parentElement")},a6J=function(q){return fA("Node",q,
"textContent")},bpu=function(q){return F4z(q,"getRootNode")()},IP=function(q){return q&&"host"in q?fA("ShadowRoot",q,"host"):null},Tj=function(q){return q&&"shadowRoot"in q?fA("Element",q,"shadowRoot"):null};var ML=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
ML.prototype.getId=function(q){if(!q)return-1;var N,b;return(b=(N=this.nodeMetaMap.get(q)||null)==null?void 0:N.id)!=null?b:-1};
ML.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var OL1=function(q,N){var b=q.getId(N);q.idNodeMap.delete(b);N.childNodes&&N.childNodes.forEach(function(y){return OL1(q,y)})};
ML.prototype.has=function(q){return this.idNodeMap.has(q)};
ML.prototype.add=function(q,N){this.idNodeMap.set(N.id,q);this.nodeMetaMap.set(q,N)};
ML.prototype.replace=function(q,N){var b=this.idNodeMap.get(q)||null;b&&(b=this.nodeMetaMap.get(b))&&this.nodeMetaMap.set(N,b);this.idNodeMap.set(q,N)};
ML.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var rlD=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,X2A=/^(?:[a-z+]+:)?\/\//i,VkJ=/^www\..*/i,jXJ=/^(data:)([^,]*),(.*)/i;var G8d=1,QXd=RegExp("[^a-z0-9-_:]"),LA,W4n,iJJ=/^[^ \t\n\r\u000c]+/,w2D=/^[, \t\n\r\u000c]+/,hFh=new WeakMap;var Ee,qP=function(q){return Ee?function(){var N=_.MB.apply(0,arguments);try{return q.apply(null,_.a9(N))}catch(b){if(!Ee||Ee(b)!==!0)throw b;}}:q};var MC=function(q){this.generateIdFn=q;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
MC.prototype.getId=function(q,N,b,y){b=b||wcl(this,q);q=y||iLT(this,q);y=b.get(N);y||(y=this.generateIdFn(),b.set(N,y),q.set(y,N));return y};
MC.prototype.getIds=function(q,N){var b=this,y=wcl(this,q),J=iLT(this,q);return N.map(function(E){return b.getId(q,E,y,J)})};
MC.prototype.reset=function(q){q?(this.iframeIdToRemoteIdMap.delete(q),this.iframeRemoteIdToIdMap.delete(q)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var wcl=function(q,N){var b=q.iframeIdToRemoteIdMap.get(N);b||(b=new Map,q.iframeIdToRemoteIdMap.set(N,b));return b},iLT=function(q,N){var b=q.iframeRemoteIdToIdMap.get(N);
b||(b=new Map,q.iframeRemoteIdToIdMap.set(N,b));return b};var LXA=function(q){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new MC(Y1n);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=q.mutationCb;this.wrappedEmit=q.wrappedEmit;this.stylesheetManager=q.stylesheetManager;this.recordCrossOriginIframes=q.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new MC(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=q.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$11897_handleMessage.bind(this))},A5n=function(q,N){q.iframes.set(N,!0);
N.contentWindow&&q.crossOriginIframeMap.set(N.contentWindow,N)},bvh=function(q,N){q.loadListener=N},HpZ=function(q,N,b){q.mutationCb({adds:[{parentId:q.mirror.getId(N),
nextId:null,node:b}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(q.recordCrossOriginIframes){var y;(y=N.contentWindow)==null||y.addEventListener("message",q.JSC$11897_handleMessage.bind(q))}var J;(J=q.loadListener)==null||J.call(q,N);N.contentDocument&&N.contentDocument.adoptedStyleSheets&&N.contentDocument.adoptedStyleSheets.length>0&&YIR(q.stylesheetManager,N.contentDocument.adoptedStyleSheets,q.mirror.getId(N.contentDocument))};
LXA.prototype.JSC$11897_handleMessage=function(q){if(q.data.type==="rrweb"&&q.origin===q.data.origin&&q.source){var N=this.crossOriginIframeMap.get(q.source);N&&(N=ls1(this,N,q.data.event))&&this.wrappedEmit(N,q.data.isCheckout)}};
var ls1=function(q,N,b){switch(b.type){case 2:q.crossOriginIframeMirror.reset(N);q.crossOriginIframeStyleMirror.reset(N);KYT(q,b.data.node,N);var y=b.data.node.id;q.crossOriginIframeRootIdMap.set(N,y);DdM(q,b.data.node,y);return{timestamp:b.timestamp,type:3,data:{source:0,adds:[{parentId:q.mirror.getId(N),nextId:null,node:b.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return b;case 5:return oV(q,b.data.payload,N,["id","parentId","previousId","nextId"]),b;case 3:switch(b.data.source){case 0:return b.data.adds.forEach(function(J){oV(q,
J,N,["parentId","nextId","previousId"]);KYT(q,J.node,N);var E=q.crossOriginIframeRootIdMap.get(N);E&&DdM(q,J.node,E)}),b.data.removes.forEach(function(J){oV(q,J,N,["parentId",
"id"])}),b.data.attributes.forEach(function(J){oV(q,J,N,["id"])}),b.data.texts.forEach(function(J){oV(q,J,N,["id"])}),b;
case 12:case 6:case 1:return b.data.positions.forEach(function(J){oV(q,J,N,["id"])}),b;
case 7:case 2:case 3:case 9:case 5:return oV(q,b.data,N,["id"]),b;case 8:case 13:return oV(q,b.data,N,["id"]),hWo(q,b.data,N,["styleId"]),b;case 10:return b;case 14:return b.data.ranges.forEach(function(J){oV(q,J,N,["start","end"])}),b;
case 15:return oV(q,b.data,N,["id"]),hWo(q,b.data,N,["styleIds"]),(y=b.data.styles)==null||y.forEach(function(J){hWo(q,J,N,["styleId"])}),b}}return!1};
LXA.prototype.replace=function(q,N,b,y){y=_.Z(y);for(var J=y.next();!J.done;J=y.next())if(J=J.value,Array.isArray(N[J])||typeof N[J]==="number")Array.isArray(N[J])?N[J]=q.getIds(b,N[J]):N[J]=q.getId(b,N[J]);return N};
var oV=function(q,N,b,y){q.replace(q.crossOriginIframeMirror,N,b,y)},hWo=function(q,N,b,y){q.replace(q.crossOriginIframeStyleMirror,N,b,y)},KYT=function(q,N,b){oV(q,N,b,["id",
"rootId"]);"childNodes"in N&&N.childNodes.forEach(function(y){KYT(q,y,b)})},DdM=function(q,N,b){N.type===0||N.rootId||(N.rootId=b);
"childNodes"in N&&N.childNodes.forEach(function(y){DdM(q,y,b)})};var ugu=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},ka4=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.g=ka4.prototype;_.g.getId=function(q){var N;return(N=this.styleIDMap.get(q))!=null?N:-1};
_.g.has=function(q){return this.styleIDMap.has(q)};
_.g.add=function(q,N){if(this.has(q))return this.getId(q);N=N===void 0?this.id++:N;this.styleIDMap.set(q,N);this.idStyleMap.set(N,q);return N};
_.g.getStyle=function(q){return this.idStyleMap.get(q)||null};
_.g.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.g.generateId=function(){return this.id++};var Udl=function(){this.length=0;this.tail=this.head=null};
Udl.prototype.get=function(q){if(q>=this.length)throw Error("Ze");for(var N=this.head,b=0;b<q;b++){var y=void 0;N=((y=N)==null?void 0:y.next)||null}return N};
var fsx=function(q,N){var b={value:N,previous:null,next:null};N.__ln=b;if(N.previousSibling&&"__ln"in N.previousSibling){var y=N.previousSibling.__ln.next;b.next=y;b.previous=N.previousSibling.__ln;N.previousSibling.__ln.next=b;y&&(y.previous=b)}else N.nextSibling&&"__ln"in N.nextSibling&&N.nextSibling.__ln.previous?(y=N.nextSibling.__ln.previous,b.previous=y,b.next=N.nextSibling.__ln,N.nextSibling.__ln.previous=b,y&&(y.next=b)):(q.head&&(q.head.previous=b),b.next=q.head,q.head=b);b.next===null&&
(q.tail=b);q.length++};
Udl.prototype.removeNode=function(q){var N=q.__ln;this.head&&(N.previous?(N.previous.next=N.next)?N.next.previous=N.previous:this.tail=N.previous:(this.head=N.next)?this.head.previous=null:this.tail=null,q.__ln&&delete q.__ln,this.length--)};
var CZ1=function(q,N){return q+"@"+N},djA=function(){var q=this;
this.locked=this.JSC$11928_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(N){N.forEach(q.JSC$11928_processMutation);q.emit()};
this.emit=function(){if(!q.JSC$11928_frozen&&!q.locked){for(var N=[],b=new Set,y=new Udl,J=function(r){for(var X=-2;X===-2;)X=(r=r&&r.nextSibling)&&q.mirror.getId(r);return X},E=function(r){var X=aP(r);
if(X&&J5z(r)){var V=!1;if(r.nodeType===Node.TEXT_NODE){var G=X.tagName;if(G==="TEXTAREA")return;G==="STYLE"&&q.addedSet.has(X)&&(V=!0)}X=s7(X)?q.mirror.getId(y5C(r)):q.mirror.getId(X);G=J(r);if(X===-1||G===-1)return fsx(y,r);if(V=PB(r,{doc:q.doc,mirror:q.mirror,blockClass:q.blockClass,blockSelector:q.blockSelector,maskTextClass:q.maskTextClass,maskTextSelector:q.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:q.inlineStylesheet,maskInputOptions:q.maskInputOptions,maskTextFn:q.maskTextFn,
maskInputFn:q.maskInputFn,slimDOMOptions:q.slimDOMOptions,dataURLOptions:q.dataURLOptions,recordCanvas:q.recordCanvas,inlineImages:q.inlineImages,onSerialize:function(w){w.nodeName==="IFRAME"&&q.mirror.nodeMetaMap.get(w)&&A5n(q.iframeManager,w);NHJ(w,q.mirror)&&eEe(q.stylesheetManager,w);r&&Tj(r)&&BHd(q.shadowDomManager,Tj(r),q.doc)},
onIframeLoad:function(w,D){HpZ(q.iframeManager,w,D);w.contentWindow&&w.contentDocument&&qUn(q.shadowDomManager,w.contentWindow.Element,w.contentDocument)},
onStylesheetLoad:function(w,D){NPD(q.stylesheetManager,w,D)},
cssCaptured:V}))N.push({parentId:X,nextId:G,node:V}),b.add(V.id)}};q.mapRemoves.length;)OL1(q.mirror,q.mapRemoves.shift());
for(var F=_.Z(q.movedSet),R=F.next();!R.done;R=F.next())R=R.value,ZpC(q.removesSubTreeCache,R)&&!q.movedSet.has(aP(R))||E(R);F=_.Z(q.addedSet);for(R=F.next();!R.done;R=F.next())R=R.value,REZ(q.droppedSet,R)||ZpC(q.removesSubTreeCache,R)?REZ(q.movedSet,R)?E(R):q.droppedSet.add(R):E(R);for(R=null;y.length;){F=null;if(R){var c=q.mirror.getId(aP(R.value)),z=J(R.value);c!==-1&&z!==-1&&(F=R)}if(!F)for(R=y.tail;R;){var m=R;R=R.previous;if(m&&(c=q.mirror.getId(aP(m.value)),J(m.value)!==-1))if(c!==-1){F=m;
break}else if((c=aP(m.value))&&c.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(c=IP(c),q.mirror.getId(c)!==-1)){F=m;break}}if(!F){for(;y.head;)y.removeNode(y.head.value);break}R=F.previous;y.removeNode(F.value);E(F.value)}E={texts:q.texts.map(function(r){var X=r.node,V=aP(X);V&&V.tagName==="TEXTAREA"&&q.genTextAreaValueMutation(V);return{id:q.mirror.getId(X),value:r.value}}).filter(function(r){return!b.has(r.id)}).filter(function(r){return q.mirror.has(r.id)}),
attributes:q.attributes.map(function(r){var X=r.attributes;if(typeof X.style==="string"){var V=JSON.stringify(r.styleDiff),G=JSON.stringify(r._unchangedStyles);V.length<X.style.length&&(V+G).split("var(").length===X.style.split("var(").length&&(X.style=r.styleDiff)}return{id:q.mirror.getId(r.node),attributes:X}}).filter(function(r){return!b.has(r.id)}).filter(function(r){return q.mirror.has(r.id)}),
removes:q.removes,adds:N};if(E.texts.length||E.attributes.length||E.removes.length||E.adds.length)q.texts=[],q.attributes=[],q.attributeMap=new WeakMap,q.removes=[],q.addedSet=new Set,q.movedSet=new Set,q.droppedSet=new Set,q.removesSubTreeCache=new Set,q.movedMap={},q.mutationCb(E)}};
this.genTextAreaValueMutation=function(N){var b=q.attributeMap.get(N);b||(b={node:N,attributes:{},styleDiff:{},_unchangedStyles:{}},q.attributes.push(b),q.attributeMap.set(N,b));var y=Array.from(SL(N),function(J){return a6J(J)||""}).join("");
b.attributes.value=zFZ({element:N,maskInputOptions:q.maskInputOptions,tagName:N.tagName,type:tkR(N),value:y,maskInputFn:q.maskInputFn})};
this.JSC$11928_processMutation=function(N){if(!Bbd(N.target,q.mirror,q.slimDOMOptions))switch(N.type){case "characterData":var b=a6J(N.target);eL(N.target,q.blockClass,q.blockSelector,!1)||b===N.oldValue||q.texts.push({value:I6A(N.target,q.maskTextClass,q.maskTextSelector,!0)&&b?q.maskTextFn?q.maskTextFn(b,eFn(N.target)):b.replace(/[\S]/g,"*"):b,node:N.target});break;case "attributes":b=N.target;var y=N.attributeName,J=N.target.getAttribute(y);if(y==="value"){var E=tkR(b);J=zFZ({element:b,maskInputOptions:q.maskInputOptions,
tagName:b.tagName,type:E,value:J,maskInputFn:q.maskInputFn})}if(eL(N.target,q.blockClass,q.blockSelector,!1)||J===N.oldValue)break;E=q.attributeMap.get(N.target);if(b.tagName==="IFRAME"&&y==="src"&&!q.keepIframeSrcFn(J))if(b.contentDocument)break;else y="rr_src";E||(E={node:N.target,attributes:{},styleDiff:{},_unchangedStyles:{}},q.attributes.push(E),q.attributeMap.set(N.target,E));y==="type"&&b.tagName==="INPUT"&&(N.oldValue||"").toLowerCase()==="password"&&b.setAttribute("data-rr-is-password","true");
if(!UHu(b.tagName,y))if(E.attributes[y]=k8e(q.doc,b.tagName.toLowerCase(),y.toLowerCase(),J),y==="style"){if(!q.unattachedDoc)try{q.unattachedDoc=document.implementation.createHTMLDocument()}catch(z){q.unattachedDoc=q.doc}y=q.unattachedDoc.createElement("span");N.oldValue&&y.setAttribute("style",N.oldValue);J=_.Z(Array.from(b.style));for(var F=J.next();!F.done;F=J.next()){F=F.value;var R=b.style.getPropertyValue(F),c=b.style.getPropertyPriority(F);R!==y.style.getPropertyValue(F)||c!==y.style.getPropertyPriority(F)?
E.styleDiff[F]=c===""?R:[R,c]:E._unchangedStyles[F]=[R,c]}y=_.Z(Array.from(y.style));for(J=y.next();!J.done;J=y.next())J=J.value,b.style.getPropertyValue(J)===""&&(E.styleDiff[J]=!1)}else y==="open"&&b.tagName==="DIALOG"&&(b.matches("dialog:modal")?E.attributes.rr_open_mode="modal":E.attributes.rr_open_mode="non-modal");break;case "childList":eL(N.target,q.blockClass,q.blockSelector,!0)||(N.target.tagName==="TEXTAREA"?q.genTextAreaValueMutation(N.target):(N.addedNodes.forEach(function(z){return q.genAdds(z,
N.target)}),N.removedNodes.forEach(function(z){var m=q.mirror.getId(z),r=s7(N.target)?q.mirror.getId(IP(N.target)):q.mirror.getId(N.target);
eL(N.target,q.blockClass,q.blockSelector,!1)||Bbd(z,q.mirror,q.slimDOMOptions)||q.mirror.getId(z)===-1||(q.addedSet.has(z)?(EQu(q.addedSet,z),q.droppedSet.add(z)):q.addedSet.has(N.target)&&m===-1||HJA(N.target,q.mirror)||(q.movedSet.has(z)&&q.movedMap[m+"@"+r]?EQu(q.movedSet,z):(q.removes.push({parentId:r,id:m,isShadow:s7(N.target)&&nA(N.target)?!0:void 0}),gQJ(z,q.removesSubTreeCache))),q.mapRemoves.push(z))})))}};
this.genAdds=function(N,b){if(!Isx(q.processedNodeManager,N,q)&&!q.addedSet.has(N)&&!q.movedSet.has(N)){if(q.mirror.nodeMetaMap.has(N)){if(Bbd(N,q.mirror,q.slimDOMOptions))return;q.movedSet.add(N);var y=null;b&&q.mirror.nodeMetaMap.has(b)&&(y=q.mirror.getId(b));y&&y!==-1&&(q.movedMap[CZ1(q.mirror.getId(N),y)]=!0)}else q.addedSet.add(N),q.droppedSet.delete(N);eL(N,q.blockClass,q.blockSelector,!1)||(SL(N).forEach(function(J){return q.genAdds(J)}),N&&Tj(N)&&SL(Tj(N)).forEach(function(J){q.processedNodeManager.add(J,
q);
q.genAdds(J,N)}))}}};
_.g=djA.prototype;_.g.init=function(q){var N=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(b){N[b]=q[b]})};
_.g.freeze=function(){this.JSC$11928_frozen=!0;this.canvasManager.freeze()};
_.g.unfreeze=function(){this.JSC$11928_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.g.isFrozen=function(){return this.JSC$11928_frozen};
_.g.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.g.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.g.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var HB=[],yY=window.Proxy,r5n=["INPUT","TEXTAREA","SELECT"],Xwn=new WeakMap;var TMl=new Map,ClR=function(q,N,b){if(q&&(fND(q,N)||typeof q==="object")){N=q.constructor.name;var y=TMl.get(b);y||(y=new Map,TMl.set(b,y));y.has(N)||y.set(N,[]);b=y.get(N);N=b.indexOf(q);N===-1&&(N=b.length,b.push(q));return N}},INd=function(q,N,b){return q.map(function(y){return UjJ(y,N,b)})},fND=function(q,N){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(b){return typeof N[b]===
"function"}).find(function(b){return q instanceof N[b]})};var s6E=IK(["\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"]),
Lsd=_.g0(s6E.join(""));var MTn=function(q){var N=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$11970_frozen=!1;this.JSC$11970_processMutation=function(c,z){if(N.rafStamps.invokeId&&N.rafStamps.latestId!==N.rafStamps.invokeId||!N.rafStamps.invokeId)N.rafStamps.invokeId=N.rafStamps.latestId;N.pendingCanvasMutations.has(c)||N.pendingCanvasMutations.set(c,[]);N.pendingCanvasMutations.get(c).push(z)};
var b=q.sampling===void 0?"all":q.sampling,y=q.win,J=q.blockClass,E=q.blockSelector,F=q.recordCanvas,R=q.dataURLOptions;this.mutationCb=q.mutationCb;this.mirror=q.mirror;F&&b==="all"&&nso(this,y,J,E);F&&typeof b==="number"&&asR(this,b,y,J,E,{dataURLOptions:R})};
_.g=MTn.prototype;_.g.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.g.freeze=function(){this.JSC$11970_frozen=!0};
_.g.unfreeze=function(){this.JSC$11970_frozen=!1};
_.g.lock=function(){this.locked=!0};
_.g.unlock=function(){this.locked=!1};
var asR=function(q,N,b,y,J,E){var F=sSJ(b,y,J,!0),R=new Map,c=VFd(phC());c.onmessage=function(G){var w=G.data.id;R.set(w,!1);"base64"in G.data&&(G=G.data,q.mutationCb({id:w,type:J8["2D"],commands:[{property:"clearRect",args:[0,0,G.width,G.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:G.base64}],type:G.type}]},0,0]}]}))};
var z=1E3/N,m=0,r=function(){var G=[];b.document.querySelectorAll("canvas").forEach(function(w){eL(w,y,J,!0)||G.push(w)});
return G},X=function(G){m&&G-m<z||(m=G,r().forEach(function(w){var D,k,f,L,S;
return _.d(function(W){if(W.nextAddress==1){D=q.mirror.getId(w);if(R.get(D)||w.width===0||w.height===0)return W.return();R.set(D,!0);["webgl","webgl2"].includes(w.__context)&&(k=w.getContext(w.__context),((f=k)==null?void 0:(L=f.getContextAttributes())==null?void 0:L.preserveDrawingBuffer)===!1&&k.clear(k.COLOR_BUFFER_BIT));return W.yield(createImageBitmap(w),2)}S=W.yieldResult;c.postMessage({id:D,bitmap:S,width:w.width,height:w.height,dataURLOptions:E.dataURLOptions},[S]);_.hj(W)})}));
V=requestAnimationFrame(X)};
var V=requestAnimationFrame(X);q.resetObservers=function(){F();cancelAnimationFrame(V)}},nso=function(q,N,b,y){SnF(q);
WY1(q);var J=sSJ(N,b,y,!1),E=THR(q.JSC$11970_processMutation.bind(q),N,b,y),F=aNA(q.JSC$11970_processMutation.bind(q),N,b,y);q.resetObservers=function(){J();E();F()}},WY1=function(q){requestAnimationFrame(function(){return LYE(q)})},SnF=function(q){var N=function(b){q.rafStamps.latestId=b;
requestAnimationFrame(N)};
requestAnimationFrame(N)},LYE=function(q){q.pendingCanvasMutations.forEach(function(N,b){var y=q.mirror.getId(b);
pcx(q,b,y)});
requestAnimationFrame(function(){return LYE(q)})},pcx=function(q,N,b){if(!q.JSC$11970_frozen&&!q.locked){var y=q.pendingCanvasMutations.get(N);
if(y&&b!==-1){var J=y.map(function(E){E=Object.assign({},E);return delete E.type,E});
q.mutationCb({id:b,type:y[0].type,commands:J});q.pendingCanvasMutations.delete(N)}}};var pwJ=function(){this.nodeMap=new WeakMap;this.active=!1},Isx=function(q,N,b){return(q=q.nodeMap.get(N))&&Array.from(q).some(function(y){return y!==b})};
pwJ.prototype.add=function(q,N){var b=this;this.active||(this.active=!0,requestAnimationFrame(function(){b.nodeMap=new WeakMap;b.active=!1}));
this.nodeMap.set(q,(this.nodeMap.get(q)||new Set).add(N))};
pwJ.prototype.destroy=function(){};var oQD=function(q){this.shadowDoms=new WeakSet;this.restoreHandlers=[];this.mutationCb=q.mutationCb;this.scrollCb=q.scrollCb;this.bypassOptions=q.bypassOptions;this.mirror=q.mirror;this.init()};
oQD.prototype.init=function(){this.reset();qUn(this,Element,document)};
var BHd=function(q,N,b){if(nA(N)&&!q.shadowDoms.has(N)){q.shadowDoms.add(N);var y=c5A(Object.assign({},q.bypassOptions,{doc:b,mutationCb:q.mutationCb,mirror:q.mirror,shadowDomManager:q}),N);q.restoreHandlers.push(function(){return y.disconnect()});
q.restoreHandlers.push(tTJ(Object.assign({},q.bypassOptions,{scrollCb:q.scrollCb,doc:N,mirror:q.mirror})));setTimeout(function(){N.adoptedStyleSheets&&N.adoptedStyleSheets.length>0&&YIR(q.bypassOptions.stylesheetManager,N.adoptedStyleSheets,q.mirror.getId(IP(N)));q.restoreHandlers.push(QSn({mirror:q.mirror,stylesheetManager:q.bypassOptions.stylesheetManager},N))},0)}},qUn=function(q,N,b){q.restoreHandlers.push(CA(N.prototype,"attachShadow",function(y){return function(J){J=y.call(this,J);
var E=Tj(this);E&&J5z(this)&&BHd(q,E,b);return J}}))};
oQD.prototype.reset=function(){this.restoreHandlers.forEach(function(q){try{q()}catch(N){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var WXd=function(q){this.trackedLinkElements=new WeakSet;this.styleMirror=new ka4;this.mutationCb=q.mutationCb;this.adoptedStyleSheetCb=q.adoptedStyleSheetCb},NPD=function(q,N,b){"_cssText"in b.attributes&&q.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:b.id,attributes:b.attributes}]});eEe(q,N)},eEe=function(q,N){q.trackedLinkElements.has(N)||q.trackedLinkElements.add(N)},YIR=function(q,N,b){if(N.length!==0){b={id:b,
styleIds:[]};var y=[];N=_.Z(N);for(var J=N.next(),E={};!J.done;E={sheet$jscomp$3:void 0},J=N.next())E.sheet$jscomp$3=J.value,J=void 0,q.styleMirror.has(E.sheet$jscomp$3)?J=q.styleMirror.getId(E.sheet$jscomp$3):(J=q.styleMirror.add(E.sheet$jscomp$3),y.push({styleId:J,rules:Array.from(E.sheet$jscomp$3.rules||CSSRule,function(F){return function(R,c){return{rule:dHh(R,F.sheet$jscomp$3.href),index:c}}}(E))})),b.styleIds.push(J);
y.length>0&&(b.styles=y);q.adoptedStyleSheetCb(b)}};
WXd.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var ZZ,SIA,Plz;try{if(Array.from([1],function(q){return q*2})[0]!==2){var PZ1=document.createElement("iframe");
document.body.appendChild(PZ1);var M5v;Array.from=((M5v=PZ1.contentWindow)==null?void 0:M5v.Array.from)||Array.from;document.body.removeChild(PZ1)}}catch(q){console.debug("Unable to override Array.from",q)}var gy=new ML;var cwA="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(" "),dtR={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},Rgn=null,Jwe=null;var umC={},zgD=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 jgd={text:1},mtn={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var os4=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Asj={CONSTANT:{isUnwrappable:function(q){return q instanceof Ar},
unwrap:ztT},JAVASCRIPT:{isUnwrappable:function(q){return q instanceof _.E5},
unwrap:Zb},HTML:{isUnwrappable:function(q){return q instanceof ev},
unwrap:function(q){return qn(q)}},
RESOURCE_URL:{isUnwrappable:function(q){return q instanceof Dl},
unwrap:_.kB},STRING:{isUnwrappable:function(q){return q instanceof Object},
unwrap:function(q){return String(q)}},
STYLE:{isUnwrappable:function(q){return typeof q==="string"},
unwrap:function(q){return q}},
URL:{isUnwrappable:function(q){return Te(q)},
unwrap:_.sh}},eWx={CONSTANT:xtu,JAVASCRIPT:xtu,HTML:function(q){q=q instanceof ev?q:BZ(String(q).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return qn(q)},
RESOURCE_URL:xtu,STRING:String,STYLE:xtu,URL:function(q,N){q=os4.test(q)?q:void 0;return q===void 0?N:q}};var hgd=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,v2J=/[\t\n\f\r ]+/,YUh=/[\t\n\f\r ,]+/g,Ovh=function(q,N,b){return b},cy={},BMR=function(){var q=function(){var y={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",y):y}(),N=q.createHTML(""),b=q.createScript("");
q=q.createScriptURL("");return{INNOCUOUS_STRING:N,INNOCUOUS_SCRIPT:b,INNOCUOUS_URL:q}}(),dy=BMR.INNOCUOUS_STRING,DtJ=BMR.INNOCUOUS_SCRIPT,KzJ=BMR.INNOCUOUS_URL;var HLx=function(q){var N=kJe(q);return function(b,y,J,E){return E?N(E,y,J,b):dy}}({reportHandler:function(q,N){if(q)try{throw Error(N);
}catch(b){_.po(b)}},
safeTypesBridge:function(q,N,b){var y=Asj[N];return y.isUnwrappable(q)&&(y=y.unwrap(q,b),y!==b)?y:(0,eWx[N])(String(q),b)},
allowedIdentifierPrefixes:[""]});if(UX!==void 0)throw Error("af");UX=HLx;if(UX!==HLx)throw Error("bf");uE("Injectable",[]);var gcC=uE("Inject",[["token",void 0]]),FSD=uE("Optional",[]);uE("Injectable",[]);var Rjn=uE("Self",[]),d2d=uE("SkipSelf",[]);uE("Host",[]);var qqR={},N1o=function(){};
N1o.prototype.resolve=function(){throw Error("df");};
N1o.prototype.addProvider=function(){throw Error("df");};var Jth=Function;var bGl=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,yx1=function(){this._reflect=window.Reflect};
_.g=yx1.prototype;_.g.factory=function(q){return function(){return new (Function.prototype.bind.apply(q,[null].concat(_.a9(_.MB.apply(0,arguments)))))}};
_.g._zipTypesAndAnnotations=function(q,N){var b=typeof q==="undefined"?Array(N.length):Array(q.length);for(var y=0;y<b.length;y++)b[y]=typeof q==="undefined"?[]:q[y]!=Object?[q[y]]:[],N&&fLu(N[y])&&(b[y]=b[y].concat(N[y]));return b};
_.g._ownParameters=function(q,N){if(bGl.exec(q.toString()))return null;if(q.parameters&&q.parameters!==N.parameters)return q.parameters;var b=q.ctorParameters;return b&&b!==N.ctorParameters?(N=typeof b==="function"?b():b,q=N.map(function(y){return y&&y.type}),N=N.map(function(y){return y&&ILe(y.decorators)}),this._zipTypesAndAnnotations(q,N)):fLu(this._reflect)&&fLu(this._reflect.getOwnMetadata)&&(N=this._reflect.getOwnMetadata("parameters",q),(b=this._reflect.getOwnMetadata("design:paramtypes",q))||
N)?this._zipTypesAndAnnotations(b,N):Array(q.length).fill(void 0)};
_.g.parameters=function(q){if(!q.prototype)return[];var N=Object.getPrototypeOf(q.prototype).constructor;(q=this._ownParameters(q,N))||N===Object||(q=this.parameters(N));return q||[]};
_.g._ownAnnotations=function(q,N){if(q.annotations&&q.annotations!==N.annotations)return q=q.annotations,typeof q==="function"&&q.annotations&&(q=q.annotations),q;if(q.decorators&&q.decorators!==N.decorators)return ILe(q.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",q)};
_.g.annotations=function(q){var N=Object.getPrototypeOf(q.prototype).constructor;q=this._ownAnnotations(q,N)||[];return(N!==Object?this.annotations(N):[]).concat(q)};
_.g._ownPropMetadata=function(q,N){if(q.propMetadata&&q.propMetadata!==N.propMetadata)return q=q.propMetadata,typeof q==="function"&&q.propMetadata&&(q=q.propMetadata),q;if(q.propDecorators&&q.propDecorators!==N.propDecorators){var b=q.propDecorators,y={};Object.keys(b).forEach(function(J){y[J]=ILe(b[J])});
return y}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",q)};
_.g.propMetadata=function(q){var N=Object.getPrototypeOf(q.prototype).constructor,b={};if(N!==Object){var y=this.propMetadata(N);Object.keys(y).forEach(function(E){b[E]=y[E]})}var J=this._ownPropMetadata(q,N);
J&&Object.keys(J).forEach(function(E){var F=[];b.hasOwnProperty(E)&&F.push.apply(F,_.a9(b[E]));F.push.apply(F,_.a9(J[E]));b[E]=F});
return b};
_.g.getter=function(q){return function(N){return N[q]}};
_.g.setter=function(q){return function(N,b){return N[q]=b}};
_.g.method=function(q){return function(N,b){if(!N[q])throw Error("ef`"+q);return N[q].apply(N,b)}};var Jxo=function(){};var E_j=function(q){this.reflectionCapabilities=q};
_.Y(E_j,Jxo);_.g=E_j.prototype;_.g.factory=function(q){return this.reflectionCapabilities.factory(q)};
_.g.parameters=function(q){return this.reflectionCapabilities.parameters(q)};
_.g.annotations=function(q){return this.reflectionCapabilities.annotations(q)};
_.g.propMetadata=function(q){return this.reflectionCapabilities.propMetadata(q)};
_.g.getter=function(q){return this.reflectionCapabilities.getter(q)};
_.g.setter=function(q){return this.reflectionCapabilities.setter(q)};
_.g.method=function(q){return this.reflectionCapabilities.method(q)};var PKD=new E_j(new yx1);var AG=function(q,N){this.token=q;this.id=N;if(q===void 0||q===null)throw Error("kf");};
_.$H.Object.defineProperties(AG.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return zy(this.token)}}});
_.$H.Object.defineProperties(AG,{JSC$12026_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return t8.JSC$12030_numberOfKeys}}});
var g_1=function(){this._allKeys=new Map};
g_1.prototype.get=function(q){if(q instanceof AG)return q;if(this._allKeys.has(q))return this._allKeys.get(q);var N=new AG(q,AG.JSC$12026_numberOfKeys);this._allKeys.set(q,N);return N};
_.$H.Object.defineProperties(g_1.prototype,{JSC$12030_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var t8=new g_1;var ctA=function(q,N,b){this.key=q;this.optional=N;this.visibility=b},o2h=function(q){return new ctA(q,!1,null)},egR=[],qCA=function(q,N,b){this.key=q;
this.resolvedFactories=N;this.multiProvider=b},BPd=function(q,N,b,y){this.factory=q;
this.dependencies=N;this.providerClass=b;this.providerValue=y};var eQ={},B0=function(q,N){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=N===void 0?null:N;q=_.Z(q);for(N=q.next();!N.done;N=q.next())this.addProvider(N.value)};
_.g=B0.prototype;_.g.addProvider=function(q){this.keyIdToIndex.set(q.key.id,this.keyIds.length);this.providers.push(q);this.keyIds.push(q.key.id);this.objs.push(eQ)};
_.g.resolve=function(q,N){N=N===void 0?qqR:N;return this._getByKey(t8.get($U(q)),null,N)};
_.g._new=function(q){if(this.constructedKeyIds[q.key.id])throw Wzz(this,q.key);this.constructedKeyIds[q.key.id]=!0;return this._instantiateProvider(q)};
_.g._instantiateProvider=function(q){if(q.multiProvider){for(var N=Array(q.resolvedFactories.length),b=0;b<q.resolvedFactories.length;++b)N[b]=this._instantiate(q,q.resolvedFactories[b]);return N}return this._instantiate(q,q.resolvedFactories[0])};
_.g._instantiate=function(q,N){var b=this,y=N.factory;try{var J=N.dependencies.map(function(F){return b._getByReflectiveDependency(F)})}catch(F){throw F.addKey&&F.addKey(this,q.key),F;
}try{var E=y.apply(null,_.a9(J))}catch(F){throw Lze(this,F,q.key);}return E};
_.g._getByReflectiveDependency=function(q){return this._getByKey(q.key,q.visibility,q.optional?null:qqR)};
_.g._getByKey=function(q,N,b){return q===ZGR?this:N instanceof Rjn?this._getByKeySelf(q,b):this._getByKeyDefault(q,b,N)};
_.g._getObjByKeyId=function(q){for(var N=0;N<this.keyIds.length;N++)if(this.keyIds[N]===q)return this.objs[N]===eQ&&(this.objs[N]=this._new(this.providers[N])),this.objs[N];return eQ};
_.g._throwOrNull=function(q,N){if(N!==qqR)return N;throw SUJ(this,q);};
_.g._getByKeySelf=function(q,N){var b=this._getObjByKeyId(q.id);return b!==eQ?b:this._throwOrNull(q,N)};
_.g._getByKeyDefault=function(q,N,b){for(var y=b=b instanceof d2d?this.parent:this;b instanceof B0;){var J=b._getObjByKeyId(q.id);if(J!==eQ)return J;b=b.parent}J=void 0;if(b!==null)try{var E=b.resolve(q.token,N);if(E!==eQ)return E}catch(F){J=F}if(!(y instanceof B0&&zjR(q.token))){if(J)throw J;return this._throwOrNull(q,N)}for(E=y;E.parent instanceof B0;)E=E.parent;E.addProvider(Nkd({provide:q.token,useClass:q.token}));return E.resolve(q.token,N)};
_.g.toString=function(){return this.displayName};
_.$H.Object.defineProperties(B0.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+uJA(this,function(q){return' "'+q.key.displayName+'" '}).join(", ")+"])"}}});
var ZGR=t8.get($U(N1o));(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 Fwj=globalThis.XRegExp;var RL1=-1,dQR=function(q){addEventListener("pageshow",function(N){N.persisted&&(RL1=N.timeStamp,q(N))},!0)};var ucl=function(q,N,b){var y=cxJ,J,E;return function(F){if(N.value>=0&&(F||b)){var R;if((E=N.value-((R=J)!=null?R:0))||J===void 0)J=N.value,N.delta=E,F=N.value,N.rating=F>y[1]?"poor":F>y[0]?"needs-improvement":"good",q(N)}}};var zLR=function(q){requestAnimationFrame(function(){return requestAnimationFrame(function(){return q()})})};var $QT=function(){var q=performance.getEntriesByType("navigation")[0];if(q&&q.responseStart>0&&q.responseStart<performance.now())return q};var tET=function(){var q,N;return(N=(q=$QT())==null?void 0:q.activationStart)!=null?N:0};var H0=-1,mQM=new Set,rxE=function(q){if(document.visibilityState==="hidden"){if(q.type==="visibilitychange")for(var N=_.Z(mQM),b=N.next();!b.done;b=N.next())b=b.value,b();isFinite(H0)||(H0=q.type==="visibilitychange"?q.timeStamp:0,removeEventListener("prerenderingchange",rxE,!0))}},XEo=function(){if(H0<0){var q=tET(),N,b;
H0=(b=document.prerendering?void 0:(N=globalThis.performance.getEntriesByType("visibility-state").filter(function(y){return y.name==="hidden"&&y.startTime>q})[0])==null?void 0:N.startTime)!=null?b:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",rxE,!0);addEventListener("prerenderingchange",rxE,!0);dQR(function(){setTimeout(function(){H0=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return H0},
onHidden:function(y){mQM.add(y)}}};var VEE=function(){var q=q===void 0?-1:q;var N=$QT(),b="navigate";RL1>=0?b="back-forward-cache":N&&(document.prerendering||tET()>0?b="prerender":document.wasDiscarded?b="restore":N.type&&(b=N.type.replace(/_/g,"-")));return{name:"LCP",value:q,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:b}};var tVu=new WeakMap;var jYq=function(q){var N=N===void 0?{}:N;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var b=new PerformanceObserver(function(y){Promise.resolve().then(function(){q(y.getEntries())})});
b.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},N));return b}}catch(y){}};var xQx=function(q){var N=!1;return function(){N||(q(),N=!0)}};var v_q=function(q){document.prerendering?addEventListener("prerenderingchange",function(){return q()},!0):q()};var GmF=function(q){var N=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?q():(q=xQx(q),addEventListener("visibilitychange",q,{once:!0,capture:!0}),N(function(){q();removeEventListener("visibilitychange",q,{capture:!0})}))};var $2Z=function(){};
$2Z.prototype._processEntry=function(q){var N;(N=this._onBeforeProcessingEntry)==null||N.call(this,q)};var cxJ=[2500,4E3],z9d=function(q){var N=N===void 0?{}:N;v_q(function(){var b=XEo(),y=VEE(),J=m2e(N),E=function(X){N.reportAllChanges||(X=X.slice(-1));X=_.Z(X);for(var V=X.next();!V.done;V=X.next())V=V.value,J._processEntry(V),V.startTime<b.firstHiddenTime&&(y.value=Math.max(V.startTime-tET(),0),y.entries=[V],R())},F=jYq(E);
if(F){var R=ucl(q,y,N.reportAllChanges);for(var c=xQx(function(){E(F.takeRecords());F.disconnect();R(!0)}),z=function(X){X.isTrusted&&(GmF(c),removeEventListener(X.type,z,{capture:!0}))},m=_.Z(["keydown",
"click","visibilitychange"]),r=m.next();!r.done;r=m.next())addEventListener(r.value,z,{capture:!0});dQR(function(X){y=VEE();R=ucl(q,y,N.reportAllChanges);zLR(function(){y.value=performance.now()-X.timeStamp;R(!0)})})}})};var YqF;var QYJ;_.A=function(){return QYJ!==void 0?QYJ:QYJ=document.createElement("template")};
document.head.appendChild(_.A().content);var OGT;_.x9({_template:function(){if(OGT!==void 0)return OGT;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
var N=q.content,b=N.insertBefore;YqF===void 0&&(YqF=document.createElement("template"));var y=YqF;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return OGT=q},
is:"tp-yt-app-toolbar"});var wEJ;var iGF;_.qM=function(){};
_.qM=_.x9({_template:function(){if(iGF!==void 0)return iGF;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;wEJ===void 0&&(wEJ=document.createElement("template"));var y=wEJ;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return iGF=q},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.qM.instance||(_.qM.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(q){this._text===q&&(q+="\u00a0");this._text="";this.async(function(){this._text=q},this.timeout)},
_onIronAnnounce:function(q){q.detail&&q.detail.text&&this.announce(q.detail.text)}});
_.qM.instance=null;_.qM.requestAvailability=function(){_.qM.instance||(_.qM.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.qM.instance):document.addEventListener("load",function(){document.body.appendChild(_.qM.instance)})};var loF;var Kwx;/*

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

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 NM,Ioo,T1R;NM=Element.prototype;Ioo=NM.matches||NM.matchesSelector||NM.mozMatchesSelector||NM.msMatchesSelector||NM.oMatchesSelector||NM.webkitMatchesSelector;T1R=function(){};
_.n_F=function(q){var N=sYj,b=[];return N._collectTabbableNodes(q,b)?N._sortByTabIndex(b):b};
_.g=T1R.prototype;_.g.isFocusable=function(q){return Ioo.call(q,"input, select, textarea, button, object")?Ioo.call(q,":not([disabled])"):Ioo.call(q,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.g._normalizedTabIndex=function(q){return this.isFocusable(q)?(q=q.getAttribute("tabindex")||0,Number(q)):-1};
_.g._collectTabbableNodes=function(q,N){if(q.nodeType!==Node.ELEMENT_NODE||!this._isVisible(q))return!1;var b=this._normalizedTabIndex(q),y=b>0;b>=0&&N.push(q);if(q.localName==="content"||q.localName==="slot")b=_.mj(q).getDistributedNodes();else{var J;b=((J=_.mj(q).shadowRoot)!=null?J:_.mj(q.root||q)).children}for(q=0;q<b.length;q++)y=this._collectTabbableNodes(b[q],N)||y;return y};
_.g._isVisible=function(q){var N=q.style;return N.visibility!=="hidden"&&N.display!=="none"?(N=window.getComputedStyle(q),N.visibility!=="hidden"&&N.display!=="none"):!1};
_.g._sortByTabIndex=function(q){var N=q.length;if(N<2)return q;var b=Math.ceil(N/2);N=this._sortByTabIndex(q.slice(0,b));q=this._sortByTabIndex(q.slice(b));return this._mergeSortByTabIndex(N,q)};
_.g._mergeSortByTabIndex=function(q,N){for(var b=[];q.length>0&&N.length>0;)this._hasLowerTabOrder(q[0],N[0])?b.push(N.shift()):b.push(q.shift());return b.concat(q,N)};
_.g._hasLowerTabOrder=function(q,N){q=Math.max(q.tabIndex,0);N=Math.max(N.tabIndex,0);return q===0||N===0?N>q:q>N};
var sYj=new T1R;var aoj;var SqJ;_.x9({_template:function(){if(SqJ!==void 0)return SqJ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;aoj===void 0&&(aoj=document.createElement("template"));var y=aoj;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return SqJ=q},
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&&_.mj(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.mj(this.parentNode).removeChild(this)},
_onTransitionend:function(q){q&&q.target===this&&this.complete()},
_openedChanged:function(q){q?this.prepare():(q=window.getComputedStyle(this),q.transitionDuration!=="0s"&&q.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 bQ=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;PK(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)};
bQ.prototype._bringOverlayAtIndexToFront=function(q){var N=this._overlays[q];if(N){var b=this._overlays.length-1,y=this._overlays[b];y&&this._shouldBeBehindOverlay(N,y)&&b--;if(!(q>=b)){y=Math.max(this._getZ(_.Wwq(this)),this._minimumZ);for(this._getZ(N)<=y&&this._applyOverlayZ(N,y);q<b;)this._overlays[q]=this._overlays[q+1],q++;this._overlays[b]=N}}};
bQ.prototype.addOverlay=function(q){var N=this._overlays.indexOf(q);if(N>=0)this._bringOverlayAtIndexToFront(N);else{N=this._overlays.length;var b=this._overlays[N-1],y=Math.max(this._getZ(b),this._minimumZ),J=this._getZ(q);b&&this._shouldBeBehindOverlay(q,b)&&(this._applyOverlayZ(b,y),N--,y=Math.max(this._getZ(this._overlays[N-1]),this._minimumZ));J<=y&&this._applyOverlayZ(q,y);this._overlays.splice(N,0,q)}this.trackBackdrop()};
bQ.prototype.removeOverlay=function(q){q=this._overlays.indexOf(q);q!==-1&&(this._overlays.splice(q,1),this.trackBackdrop())};
_.Wwq=function(q){return q._overlays[q._overlays.length-1]};
_.g=bQ.prototype;_.g.trackBackdrop=function(){var q=this._overlayWithBackdrop();if(q||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(q)-1,this.backdropElement.opened=!!q,this.backdropElement.prepare()};
_.g._overlayWithBackdrop=function(){for(var q=this._overlays.length-1;q>=0;q--)if(this._overlays[q].withBackdrop)return this._overlays[q]};
_.g._getZ=function(q){var N=this._minimumZ;if(q){var b,y,J=Number(((b=q.hostElement)!=null?b:q).style.zIndex||window.getComputedStyle((y=q.hostElement)!=null?y:q).zIndex);J===J&&(N=J)}return N};
_.g._setZ=function(q,N){var b;((b=q.hostElement)!=null?b:q).style.zIndex=N};
_.g._applyOverlayZ=function(q,N){this._setZ(q,N+2)};
_.g._overlayInPath=function(q){q=q||[];for(var N=0;N<q.length;N++){var b=void 0;if(((b=q[N].polymerController)!=null?b:q[N])._manager===this)return q[N]}};
_.g._onCaptureClick=function(q){var N=this._overlays.length-1;if(N!==-1)for(var b=_.mj(q).path,y,J;(y=this._overlays[N])&&this._overlayInPath(b)!==((J=y.hostElement)!=null?J:y);)if(y._onCaptureClick(q),y.allowClickThrough)N--;else break};
_.g._onCaptureFocus=function(q){var N=_.Wwq(this);N&&N._onCaptureFocus(q)};
_.g._onCaptureKeyDown=function(q){var N=_.Wwq(this);N&&(_.kT.keyboardEventMatchesKeys(q,"esc")?N._onCaptureEsc(q):_.kT.keyboardEventMatchesKeys(q,"tab")&&N._onCaptureTab(q))};
_.g._shouldBeBehindOverlay=function(q,N){return!q.alwaysOnTop&&N.alwaysOnTop&&!N.contains(q)};
_.$H.Object.defineProperties(bQ.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 q=document.activeElement;q&&q instanceof Element!==!1||(q=document.body);for(;q.root&&_.mj(q.root).activeElement;)q=_.mj(q.root).activeElement;return q}}});
_.yG=new bQ;var rtn=0,Xtn=0,VVd=null,jNh=[],ry=["wheel","mousewheel","DOMMouseScroll"],x2J;_.x("web_no_lock_on_touchstart_killswitch")&&(ry.push("touchstart"),ry.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;_.JT={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:_.yG},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var q;return this._focusedChild||_.mj((q=this.hostElement)!=null?q:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var q;return _.n_F((q=this.hostElement)!=null?q: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 q;this._observer=_.mj((q=this.hostElement)!=null?q:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var q;_.mj((q=this.hostElement)!=null?q:this).unobserveNodes(this._observer)}this._observer=null;for(var N in this.__rafs)this.__rafs[N]!==null&&cancelAnimationFrame(this.__rafs[N]);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(q){this.fire("iron-overlay-canceled",q,{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 q;((q=this.hostElement)!=null?q:this).style.outline="none";var N;((N=this.hostElement)!=null?N:this).style.display="none"}},
_openedChanged:function(q){if(q){var N;((N=this.hostElement)!=null?N:this).removeAttribute("aria-hidden")}else{var b;((b=this.hostElement)!=null?b: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 q;if(this.withBackdrop&&!((q=this.hostElement)!=null?q:this).hasAttribute("tabindex")){var N;((N=this.hostElement)!=null?N:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var b;((b=this.hostElement)!=null?b: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 q;((q=this.hostElement)!=null?q:this).style.display="none";var N;((N=this.hostElement)!=null?N:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var q,N;((q=this.hostElement)!=null?q:this).style.transition=((N=this.hostElement)!=null?N:this).style.webkitTransition="none";var b,y;((b=this.hostElement)!=null?b:this).style.transform=((y=this.hostElement)!=null?y:this).style.webkitTransform="none";var J;((J=this.hostElement)!=null?J:this).style.display=""},
_finishPositioning:function(){var q;((q=this.hostElement)!=null?q:this).style.display="none";this.scrollTop=this.scrollTop;var N,b;((N=this.hostElement)!=null?N:this).style.transition=((b=this.hostElement)!=null?b:this).style.webkitTransition="";var y,J;((y=this.hostElement)!=null?y:this).style.transform=((J=this.hostElement)!=null?J:this).style.webkitTransform="";var E;((E=this.hostElement)!=null?E:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var q=this._manager.deepActiveElement,N;if(!(N=q===document.body))a:{for(;q;q=q.assignedSlot||q.parentNode||q.host)if(q===this){N=!0;break a}N=!1}N&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(q){this.noCancelOnOutsideClick||this.cancel(q)},
_onCaptureFocus:function(q){if(this.withBackdrop){var N=_.mj(q).path;N.indexOf(this)===-1?(q.stopPropagation(),this._applyFocus()):this._focusedChild=N[0]}},
_onCaptureEsc:function(q){this.noCancelOnEscKey||this.cancel(q)},
_onCaptureTab:function(q){if(this.withBackdrop){this.__ensureFirstLastFocusables();var N=q.shiftKey,b=N?this.__firstFocusableNode:this.__lastFocusableNode;N=N?this.__lastFocusableNode:this.__firstFocusableNode;if(b===N)b=!0;else{var y=this._manager.deepActiveElement;b=y===b||y===this}b&&(q.preventDefault(),this._focusedChild=N,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 q=this._focusableNodes;this.__firstFocusableNode=q[0];this.__lastFocusableNode=q[q.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(q,N){var b=this.__rafs;b[q]!==null&&cancelAnimationFrame(b[q]);b[q]=requestAnimationFrame(function(){b[q]=null;N.call(this)}.bind(this))},
__updateScrollObservers:function(q,N,b){q&&N&&this.__isValidScrollAction(b)?(b==="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),x2J=_._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()):(q=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),q!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(q,1),x2J=_._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(HK)for(var q=this;q;)q.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&q.host&&this.__rootNodes.push(q),q=q.host||q.assignedSlot||q.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(N){N.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(q){q.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(q){return q==="lock"||q==="refit"||q==="cancel"},
__onCaptureScroll:function(q){if(!(this.__isAnimating||_.mj(q).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(q)}},
__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)}};
_.Ej=[Cux,_.SQ,_.JT];_.x9({_template:function(){if(UQv!==void 0)return UQv;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;kmF===void 0&&(kmF=document.createElement("template"));var y=kmF;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return UQv=q},
is:"tp-yt-iron-dropdown",behaviors:[_.UD,_.kT,_.Ej,JsF],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 q=_.mj(this.$.content).getDistributedNodes(),N=0,b=q.length;N<b;N++)if(q[N].nodeType===Node.ELEMENT_NODE)return q[N]},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(),_.JT._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.JT._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.JT._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var q=this.containedElement,N=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),b=0;b<N.length;b++)N[b].node=q;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(q){this._readied&&(q?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var q=this.focusTarget||this.containedElement;q&&this.opened&&!this.noAutoFocus?q.focus():_.JT._applyFocus.apply(this,arguments)}});var LwR;var pEl;/*

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 Pul=new _.TW({type:"iconset"});
_.x9({_template:function(){if(pEl!==void 0)return pEl;var q=document.createElement("template");_.Q(q,"\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");q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;LwR===void 0&&(LwR=document.createElement("template"));
var y=LwR;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return pEl=q},
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(q){q=(q||"").split(":");this._iconName=q.pop();this._iconsetName=q.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&&_.mj(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=Pul.byKey(this._iconsetName)){var q=this._iconset.applyIcon(this,this._iconName,this.theme);q&&q.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,_.mj(this.root).appendChild(this._img)}});var MEx;var o_1;_.x9({_template:function(){if(o_1!==void 0)return o_1;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
var N=q.content,b=N.insertBefore;MEx===void 0&&(MEx=document.createElement("template"));var y=MEx;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return o_1=q},
is:"tp-yt-iron-input",behaviors:[_.ni],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(){_.qM.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.mj(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.mj(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 q=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":q=/[0-9.,e-]/}return q},_bindValueChanged:function(q,N){N&&(q===void 0?N.value=null:q!==N.value&&(this.inputElement.value=q),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:q}))},
_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(q){var N=q.keyCode==19||q.keyCode==20||q.keyCode==45||q.keyCode==46||q.keyCode==144||q.keyCode==145||q.keyCode>32&&q.keyCode<41||q.keyCode>111&&q.keyCode<124;return!(q.keyCode==8||q.keyCode==9||q.keyCode==13||q.keyCode==27)&&!(q.charCode==0&&N)},
_onKeypress:function(q){if(this.allowedPattern||this.inputElement.type==="number"){var N=this._patternRegExp;if(N&&!(q.metaKey||q.ctrlKey||q.altKey)){this._patternAlreadyChecked=!0;var b=String.fromCharCode(q.charCode);this._isPrintable(q)&&!N.test(b)&&(q.preventDefault(),this._announceInvalidCharacter("Invalid character "+b+" not entered."))}}},
_checkPatternValidity:function(){var q=this._patternRegExp;if(!q)return!0;for(var N=0;N<this.inputElement.value.length;N++)if(!q.test(this.inputElement.value[N]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var q=this.inputElement.checkValidity();q&&(this.required&&this.bindValue===""?q=!1:this.hasValidator()&&(q=_.ni.validate.call(this,this.bindValue)));this.invalid=!q;this.fire("iron-input-validate");return q},
_announceInvalidCharacter:function(q){this.fire("iron-announce",{text:q})},
_computeValue:function(q){return q}});var Axj;var eL1;var B1E=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),HG1=B1E&&B1E[1]>=8;
_.x9({_template:function(){if(eL1!==void 0)return eL1;var q=document.createElement("template");_.Q(q,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div aria-label="[[listAriaLabel]]" id="items" role="list" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;Axj===void 0&&(Axj=document.createElement("template"));var y=Axj;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return eL1=q},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0},listAriaLabel:{type:String}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[AYn,_.SQ,_.ysT,TaT],_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 _.mj(_.mj(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var q=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,q-this._physicalCount)},set _virtualStart(q){q=this._clamp(q,0,this._maxVirtualStart);this.grid&&(q-=q%this._itemsPerRow);this._virtualStartVal=q},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(q){q%=this._physicalCount;q<0&&(q=this._physicalCount+q);this.grid&&(q-=q%this._itemsPerRow);this._physicalStartVal=q},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(q){this._physicalCountVal=q},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 q=this._firstVisibleIndexVal;if(q==null){var N=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
q=this._iterateItems(function(b,y){N+=this._getPhysicalSizeIncrement(b);if(N>this._scrollPosition)return this.grid?y-y%this._itemsPerRow:y;if(this.grid&&this._virtualCount-1===y)return y-y%this._itemsPerRow})||0}return q},
get lastVisibleIndex(){var q=this._lastVisibleIndexVal;if(q==null){if(this.grid)q=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var N=this._physicalTop+this._scrollOffset;this._iterateItems(function(b,y){N<this._scrollBottom&&(q=y);N+=this._getPhysicalSizeIncrement(b)})}this._lastVisibleIndexVal=q}return q},
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,_.m6);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(q){this.style.webkitOverflowScrolling=q===this?"touch":"";this.style.overflowY=q===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.m6)},
updateViewportBoundaries:function(){var q=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(q["padding-top"],10);this._isRTL=q.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var q=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),N=q-this._scrollPosition,b=N>=0;this._scrollPosition=q;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(N)>this._physicalSize&&this._physicalSize>0?(N-=this._scrollOffset,b=Math.round(N/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=b,this._physicalStart+=b,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(q=this._getReusables(b),b?(this._physicalTop=q.physicalTop,this._virtualStart+=q.indexes.length,this._physicalStart+=q.indexes.length):(this._virtualStart=this._virtualStart-q.indexes.length,this._physicalStart=this._physicalStart-q.indexes.length),this._update(q.indexes,b?null:q.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),AD))},
_getReusables:function(q){var N=[],b=this._hiddenContentSize*this._ratio,y=this._virtualStart,J=this._virtualEnd,E=this._physicalCount,F=this._physicalTop+this._scrollOffset;var R=this._physicalBottom+this._scrollOffset;var c=this._scrollPosition,z=this._scrollBottom;if(q){var m=this._physicalStart;R=c-F}else m=this._physicalEnd,R-=z;for(;;){var r=this._getPhysicalSizeIncrement(m);R-=r;if(N.length>=E||R<=b)break;if(q){if(J+N.length+1>=this._virtualCount)break;if(F+r>=c-this._scrollOffset)break;N.push(m);
F+=r;m=(m+1)%E}else{if(y-N.length<=0)break;if(F+this._physicalSize-r<=z)break;N.push(m);F-=r;m=m===0?E-1:m-1}}return{indexes:N,physicalTop:F-this._scrollOffset}},
_update:function(q,N){if(!(q&&q.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(q);this._updateMetrics(q);if(N)for(;N.length;)q=N.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(q);this._positionItems();this._updateScrollerSize()}},
_createPool:function(q){this._ensureTemplatized();var N,b=Array(q);for(N=0;N<q;N++){var y=this.stamp(null);b[N]=y.root.querySelector("*");this._itemsParent.appendChild(y.root)}return b},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(q){q=this._clamp(this._physicalCount+q,3,this._virtualCount-this._virtualStart);q=this._convertIndexToCompleteRow(q);if(this.grid){var N=q%this._itemsPerRow;N&&q-N<=this._physicalCount&&(q+=this._itemsPerRow);q-=N}q-=this._physicalCount;N=Math.round(this._physicalCount*.5);if(!(q<0)){if(q>0){N=window.performance.now();[].push.apply(this._physicalItems,this._createPool(q));for(var b=0;b<q;b++)this._physicalSizes.push(0);this._physicalCount+=q;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=q);this._update();this._templateCost=(window.performance.now()-N)/q;N=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||N===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,N)),jUj):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,N),AD))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var q=this._getReusables(!0);this._physicalTop=q.physicalTop;this._virtualStart+=q.indexes.length;this._physicalStart+=q.indexes.length;this._update(q.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 q={__key__:!0};q[this.as]=!0;q[this.indexAs]=!0;q[this.selectedAs]=!0;q.tabIndex=!0;this._instanceProps=q;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(q,N){typeof N!=="undefined"&&(this.notifyResize(),_.VO(),q&&this._updateGridMetrics())},
_itemsChanged:function(q){if(q.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,
_.m6);else if(q.path==="items.splices"){this._adjustVirtualIndex(q.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(q.value.indexSplices.some(function(b){return b.addedCount>0||b.removed.length>0})){var N=this._getActiveElement();
this.contains(N)&&N.blur()}q=q.value.indexSplices.some(function(b){return b.index+b.addedCount>=this._virtualStart&&b.index<=this._virtualEnd},this);
this._isClientFull()&&!q||this._debounce("_render",this._render,_.m6)}else q.path!=="items.length"&&this._forwardItemPath(q.path,q.value)},
_forwardItemPath:function(q,N){q=q.slice(6);var b=q.indexOf(".");b===-1&&(b=q.length);var y,J=this.modelForElement(this._offscreenFocusedItem),E=parseInt(q.substring(0,b),10);if(y=this._isIndexRendered(E)){var F=this._getPhysicalIndex(E);var R=this.modelForElement(this._physicalItems[F])}else J&&(R=J);R&&R[this.indexAs]===E&&(q=q.substring(b+1),q=this.as+(q?"."+q:""),R._setPendingPropertyOrPath(q,N,!1,!0),R._flushProperties&&R._flushProperties(),y&&(this._updateMetrics([F]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(q){q.forEach(function(N){N.removed.forEach(this._removeItem,this);N.index<this._virtualStart&&(N=Math.max(N.addedCount-N.removed.length,N.index-this._virtualStart),this._virtualStart+=N,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=N))},this)},
_removeItem:function(q){this.$.selector.deselect(q);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===q&&this._removeFocusedItem()},
_iterateItems:function(q,N){var b,y;if(arguments.length===2&&N)for(y=0;y<N.length;y++){var J=N[y];var E=this._computeVidx(J);if((b=q.call(this,J,E))!=null)return b}else{J=this._physicalStart;for(E=this._virtualStart;J<this._physicalCount;J++,E++)if((b=q.call(this,J,E))!=null)return b;for(J=0;J<this._physicalStart;J++,E++)if((b=q.call(this,J,E))!=null)return b}},
_computeVidx:function(q){return q>=this._physicalStart?this._virtualStart+(q-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+q},
_assignModels:function(q){this._iterateItems(function(N,b){var y=this._physicalItems[N],J=this.items&&this.items[b];if(J!=null){var E=this.modelForElement(y);E.__key__=null;this._forwardProperty(E,this.as,J);this._forwardProperty(E,this.selectedAs,this.$.selector.isSelected(J));this._forwardProperty(E,this.indexAs,b);this._forwardProperty(E,"tabIndex",this._focusedVirtualIndex===b?0:-1);this._physicalIndexForKey[E.__key__]=N;E._flushProperties&&E._flushProperties(!0);y.removeAttribute("hidden")}else y.setAttribute("hidden",
"")},q)},
_updateMetrics:function(q){_.VO();var N=0,b=0,y=this._physicalAverageCount,J=this._physicalAverage;this._iterateItems(function(E){b+=this._physicalSizes[E];this._physicalSizes[E]=this._physicalItems[E].offsetHeight;N+=this._physicalSizes[E];this._physicalAverageCount+=this._physicalSizes[E]?1:0},q);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(b=this._itemsPerRow===1?b:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+N-b,this._itemsPerRow=1);this._physicalAverageCount!==y&&(this._physicalAverage=Math.round((J*y+N)/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 q=this._physicalTop;if(this.grid){var N=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(b,y){var J=Math.floor(y%this._itemsPerRow*this._itemWidth+N);this._isRTL&&(J*=-1);this.translate3d(J+"px",q+"px",0,this._physicalItems[b]);this._shouldRenderNextRow(y)&&(q+=this._rowHeight)})}else this._iterateItems(function(b){this.translate3d(0,q+"px",0,this._physicalItems[b]);
q+=this._physicalSizes[b]})},
_getPhysicalSizeIncrement:function(q){return this.grid?this._computeVidx(q)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[q]},
_shouldRenderNextRow:function(q){return q%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var q=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(q!==0){this._physicalTop=this._physicalTop-q;var N=this._scrollPosition;!HG1&&N>0&&this._resetScrollPosition(N-q)}},
_resetScrollPosition:function(q){this.scrollTarget&&q>=0&&(this._scrollPosition=this._scrollTop=q)},
_updateScrollerSize:function(q){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((q=(q=(q=q||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(q){return this.scrollToIndex(this.items.indexOf(q))},
scrollToIndex:function(q){if(!(typeof q!=="number"||q<0||q>this.items.length-1)&&(_.VO(),this._physicalCount!==0)){q=this._clamp(q,0,this._virtualCount-1);if(!this._isIndexRendered(q)||q>=this._maxVirtualStart)this._virtualStart=this.grid?q-this._itemsPerRow*2:q-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var N=this._physicalStart,b=this._virtualStart,y=0,J=this._hiddenContentSize;b<q&&
y<=J;)y+=this._getPhysicalSizeIncrement(N),N=(N+1)%this._physicalCount,b++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+y);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)},_.m6)},
selectItem:function(q){return this.selectIndex(this.items.indexOf(q))},
selectIndex:function(q){if(!(q<0||q>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(q)){var N=this.modelForElement(this._physicalItems[this._getPhysicalIndex(q)]);N&&(N[this.selectedAs]=!0);this.updateSizeForIndex(q)}this.$.selector.selectIndex(q)}},
deselectItem:function(q){return this.deselectIndex(this.items.indexOf(q))},
deselectIndex:function(q){q<0||q>=this._virtualCount||(this._isIndexRendered(q)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(q)])[this.selectedAs]=!1,this.updateSizeForIndex(q)),this.$.selector.deselectIndex(q))},
toggleSelectionForItem:function(q){return this.toggleSelectionForIndex(this.items.indexOf(q))},
toggleSelectionForIndex:function(q){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(q):this.$.selector.isSelected(this.items[q]))?this.deselectIndex(q):this.selectIndex(q)},
clearSelection:function(){this._iterateItems(function(q){this.modelForElement(this._physicalItems[q])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(q){(q?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(q){var N=this.modelForElement(q.target);if(N){var b=_.mj(q).path[0];q=this._getActiveElement();var y=this._physicalItems[this._getPhysicalIndex(N[this.indexAs])];if(b.localName!=="input"&&b.localName!=="button"&&b.localName!=="select"){b=N.tabIndex;N.tabIndex=-100;var J=q?q.tabIndex:-1;N.tabIndex=b;q&&y!==q&&y.contains(q)&&J!==-100||this.toggleSelectionForItem(N[this.as])}}},
_multiSelectionChanged:function(q){this.clearSelection();this.$.selector.multi=q},
updateSizeForItem:function(q){return this.updateSizeForIndex(this.items.indexOf(q))},
updateSizeForIndex:function(q){if(!this._isIndexRendered(q))return null;this._updateMetrics([this._getPhysicalIndex(q)]);this._positionItems();return null},
_manageFocus:function(){var q=this._focusedVirtualIndex;q>=0&&q<this._virtualCount?this._isIndexRendered(q)?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(q){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(q/this._itemsPerRow)*this._itemsPerRow:q},
_isIndexRendered:function(q){return q>=this._virtualStart&&q<=this._virtualEnd},
_isIndexVisible:function(q){return q>=this.firstVisibleIndex&&q<=this.lastVisibleIndex},
_getPhysicalIndex:function(q){return(this._physicalStart+(q-this._virtualStart))%this._physicalCount},
focusItem:function(q){this._focusPhysicalItem(q)},
_focusPhysicalItem:function(q){if(!(q<0||q>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(q)||this.scrollToIndex(q);var N=this._physicalItems[this._getPhysicalIndex(q)],b=this.modelForElement(N),y;b.tabIndex=-100;N.tabIndex===-100&&(y=N);y||(y=_.mj(N).querySelector('[tabindex="-100"]'));b.tabIndex=0;this._focusedVirtualIndex=q;y&&y.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 q=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var N=this.stamp(null);this._focusBackfillItem=N.root.querySelector("*");this._itemsParent.appendChild(N.root)}this._offscreenFocusedItem=this._physicalItems[q];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[q]=this._focusBackfillItem;this._focusedPhysicalIndex=q;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var q=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),N=this._physicalItems[q];if(N){var b=this.modelForElement(N),y=this.modelForElement(this._offscreenFocusedItem);b[this.as]===y[this.as]?(this._focusBackfillItem=N,b.tabIndex=-1,this._physicalItems[q]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(q){q=this.modelForElement(q.target);var N=this.modelForElement(this._focusedItem),b=this._offscreenFocusedItem!==null,y=this._focusedVirtualIndex;q&&(N===q?this._isIndexVisible(y)||this.scrollToIndex(y):(this._restoreFocusedItem(),N&&(N.tabIndex=-1),q.tabIndex=0,this._focusedVirtualIndex=y=q[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(y),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],b&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(q){switch(q.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&q.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&&q.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(q)}},
_clamp:function(q,N,b){return Math.min(b,Math.max(N,q))},
_debounce:function(q,N,b){this._debouncers=this._debouncers||{};this._debouncers[q]=_.$c(this._debouncers[q],b,N.bind(this));_.tt(this._debouncers[q])},
_forwardProperty:function(q,N,b){q._setPendingProperty(N,b)},
_forwardHostPropV2:function(q,N){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(b){b&&this.modelForElement(b).forwardHostProp(q,N)},this)},
_notifyInstancePropV2:function(q,N,b){Qmu(this.as,N)&&(q=q[this.indexAs],N==this.as&&(this.items[q]=b),this.notifyPath(i_(this.as,"items."+q,N),b))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(q,N,b){N.indexOf(this.as+".")===0&&this.notifyPath("items."+q.__key__+"."+N.slice(this.as.length+1),b)},
_forwardParentPath:function(q,N){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(b){b&&this.modelForElement(b).notifyPath(q,N)},this)},
_forwardParentProp:function(q,N){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(b){b&&(this.modelForElement(b)[q]=N)},this)},
_getActiveElement:function(){var q=this._itemsParent.node.domHost;return _.mj(q?q.root:document).activeElement},
_scrollTargetChanged:function(q,N){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(N)if(q==="document")this.scrollTarget=this._doc;else if(typeof q==="string"){var b,y;this.scrollTarget=(N=(y=(b=this.domHost)==null?void 0:b.polymerController)!=null?y:this.domHost)&&N.$?N.$[q]:_.mj(this.ownerDocument).querySelector("#"+q)}else this._isValidScrollTarget()&&(this._oldScrollTarget=q,this._toggleScrollListener(this._shouldHaveListener,q))}});var q1j;var Nbo;var bJF=function(q,N,b,y){q-=b;N-=y;return Math.sqrt(q*q+N*N)},yl4=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
vcd.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var Gqu=function(q){q.maxRadius=0;q.mouseDownStart=0;q.mouseUpStart=0;q.xStart=0;q.yStart=0;q.xEnd=0;q.yEnd=0;q.containerMetrics=new vcd(q.element)};
YCJ.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var q=yl4()-this.mouseDownStart;this.mouseUpStart&&(q-=this.mouseUpElapsed);return q},get mouseUpElapsed(){return this.mouseUpStart?yl4()-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 q=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(q*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-q/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 q=this.radius/(this.containerMetrics.size/2);var N=this.xNow-this.containerMetrics.width/2;var b=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+N+"px, "+b+"px)";this.waveContainer.style.transform="translate3d("+N+"px, "+b+"px, 0)";this.wave.style.webkitTransform="scale("+q+","+q+")";this.wave.style.transform="scale3d("+q+","+q+",1)"},
downAction:function(q){var N=this.containerMetrics.width/2,b=this.containerMetrics.height/2;Gqu(this);this.mouseDownStart=yl4();this.center?(this.xStart=N,this.yStart=b):(this.xStart=q?q.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=q?q.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=N,this.yEnd=b);q=this.containerMetrics;N=this.xStart;b=this.yStart;this.maxRadius=Math.max(bJF(N,b,0,0),bJF(N,b,
q.width,0),bJF(N,b,0,q.height),bJF(N,b,q.width,q.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=yl4())},
remove:function(){_.mj(_.mj(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.x9({_template:function(){if(Nbo!==void 0)return Nbo;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;q1j===void 0&&(q1j=document.createElement("template"));var y=q1j;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return Nbo=q},
is:"tp-yt-paper-ripple",behaviors:[_.kT],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(){_.mj(this).parentNode.nodeType==11?this.keyEventTarget=_.mj(this).getOwnerRoot().host:this.keyEventTarget=_.mj(this).parentNode;var q=this.keyEventTarget;this.listen(q,"up","uiUpAction");this.listen(q,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(q){q.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var q=0;q<this.ripples.length;++q)if(!this.ripples[q].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(q){this.noink||this.downAction(q)},
downAction:function(q){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(q),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(q){this.noink||this.upAction(q)},
upAction:function(q){this.holdDown||(this.ripples.forEach(function(N){N.upAction(q)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var q=0;q<this.ripples.length;++q){var N=this.ripples[q];N.isOpacityFullyDecayed&&!N.isRestingAtMaxRadius&&this.removeRipple(N)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var q=new YCJ(this);_.mj(this.$.waves).appendChild(q.waveContainer);this.$.background.style.backgroundColor=q.color;this.ripples.push(q);this._setAnimating(!0);return q},
removeRipple:function(q){var N=this.ripples.indexOf(q);N<0||(this.ripples.splice(N,1),q.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var q;for(q=0;q<this.ripples.length;++q){var N=this.ripples[q];N.draw();this.$.background.style.opacity=N.outerOpacity;N.isOpacityFullyDecayed&&!N.isRestingAtMaxRadius&&this.removeRipple(N)}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(q,N){N!==void 0&&(q?this.downAction():this.upAction())}});var gU={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(q){fi._downHandler.call(this,q);this.pressed&&this.ensureRipple(q)},
ensureRipple:function(q){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var N=this._rippleContainer||this.root;N&&_.mj(N).appendChild(this._ripple);if(q){N=_.mj(this._rippleContainer||this);var b=_.mj(q).rootTarget;N.deepContains(b)&&this._ripple.uiDownAction(q)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(q){this.hasRipple()&&(this._ripple.noink=q)}};var Jll={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 q=1;this.disabled?q=0:this.active||this.pressed?q=4:this.receivedFocusFromKeyboard&&(q=3);this._setElevation(q)},
_computeKeyboardClass:function(q){this.toggleClass("keyboard-focus",q)},
_spaceKeyDownHandler:function(q){fi._spaceKeyDownHandler.call(this,q);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(q){fi._spaceKeyUpHandler.call(this,q);this.hasRipple()&&this._ripple.uiUpAction()}},ECT=[pVJ,
_.UD,gU,Jll];_.gC4={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(q){q&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=q)},
_createRipple:function(){var q=gU._createRipple();q.id="ink";q.setAttribute("center","");q.classList.add("circle");return q}};
_.ZJv=[pVJ,_.UD,gU,_.gC4];_.F4o=[_.ZJv,oJj,{_checkedChanged:function(){Max._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){gU._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var RFJ;var dHF;var clF=function(){};
_.g=clF.prototype;_.g.registered=function(){};
_.g.addOwnKeyBinding=function(){};
_.g.removeOwnKeyBindings=function(){};
_.g.keyboardEventMatchesKeys=function(){};
_.g._collectKeyBindings=function(){};
_.g._prepKeyBindings=function(){};
_.g._addKeyBinding=function(){};
_.g._resetKeyEventListeners=function(){};
_.g._listenKeyEventListeners=function(){};
_.g._unlistenKeyEventListeners=function(){};
_.g._onKeyBindingEvent=function(){};
_.g._triggerKeyHandler=function(){};
_.g._tapHandler=function(){};
_.g._focusChanged=function(){};
_.g._detectKeyboardFocus=function(){};
_.g._userActivate=function(){};
_.g._upHandler=function(){};
_.g._asyncClick=function(){};
_.g._pressedChanged=function(){};
_.g._ariaActiveAttributeChanged=function(){};
_.g._activeChanged=function(){};
_.g._controlStateChanged=function(){};
_.g._changedButtonState=function(){};
_.g._focusBlurHandler=function(){};
_.g._disabledChanged=function(){};
_.g._changedControlState=function(){};
_.g._buttonStateChanged=function(){};
_.g._downHandler=function(){};
_.g.ensureRipple=function(){};
_.g.getRipple=function(){};
_.g.hasRipple=function(){};
_.g._createRipple=function(){};
_.g._noinkChanged=function(){};
_.g._computeKeyboardClass=function(){};
_.g._spaceKeyDownHandler=function(){};
_.g._spaceKeyUpHandler=function(){};
_.g._setPressed=function(){};
_.g._setPointerDown=function(){};
_.g._setReceivedFocusFromKeyboard=function(){};
_.g._setFocused=function(){};
_.g._setElevation=function(){};
clF=_.x9({_template:function(){if(dHF!==void 0)return dHF;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
var N=q.content,b=N.insertBefore;RFJ===void 0&&(RFJ=document.createElement("template"));var y=RFJ;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return dHF=q},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[ECT],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?Jll._calculateElevation.apply(this):this._setElevation(0)}});var uPx;var zF4;var $H1={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(q){_.x("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(q)},
_onDialogClickWrapped:function(q){_.x("dialog_behavior_no_tap_killswitch")||this._onDialogClick(q)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(q,N){N&&(q?(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(q){if(q){var N;((N=this.hostElement)!=null?N:this).setAttribute("aria-modal","true")}else{var b;((b=this.hostElement)!=null?b:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(q){this.closingReason=this.closingReason||{};this.closingReason.confirmed=q},
_onDialogClick:function(q){for(var N=_.mj(q).path,b=0,y,J=N.indexOf((y=this.hostElement)!=null?y:this);b<J;b++)if(y=N[b],y.hasAttribute&&(y.hasAttribute("dialog-dismiss")||y.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(y.hasAttribute("dialog-confirm"));this.close();q.stopPropagation();break}}},tkq=[_.Ej,
$H1];var mHq=document.createElement("template");_.Q(mHq,'<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(mHq.content);var rlE=document.createElement("template");_.Q(rlE,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(rlE.content);_.x9({_template:function(){if(zF4!==void 0)return zF4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
var N=q.content,b=N.insertBefore;uPx===void 0&&(uPx=document.createElement("template"));var y=uPx;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return zF4=q},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[tkq,JsF],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 X2x;var Vkx;_.x9({_template:function(){if(Vkx!==void 0)return Vkx;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;X2x===void 0&&(X2x=document.createElement("template"));var y=X2x;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return Vkx=q},
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 q,N,b;if(((q=window.ShadyDOM)==null?void 0:q.noPatch)!==!0&&((N=window.ShadyDOM)==null?void 0:N.noPatch)!=="on-demand"||((b=this.__shady_parentNode)==null?void 0:b.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf($H1)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var jXl=_.Tt(['<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>']),xHJ=_.W_l(jXl);xHJ.setAttribute("style","display: none;");document.head.appendChild(xHJ.content);var vCM;var G81;var Y1j;var QXM;_.x9({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[W0],configure:function(q){var N=q.node,b=N.getBoundingClientRect().height;return this._effect=new KeyframeEffect(N,[{height:b/2+"px"},{height:b+"px"}],this.timingFromConfig(q))}});
_.x9({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[W0],configure:function(q){var N=q.node,b=N.getBoundingClientRect().width;return this._effect=new KeyframeEffect(N,[{width:b/2+"px"},{width:b+"px"}],this.timingFromConfig(q))}});
_.x9({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[W0],configure:function(q){var N=q.node,b=N.getBoundingClientRect().width;return this._effect=new KeyframeEffect(N,[{width:b+"px"},{width:b-b/20+"px"}],this.timingFromConfig(q))}});
_.x9({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[W0],configure:function(q){var N=q.node,b=N.getBoundingClientRect().height;this.setPrefixedProperty(N,"transformOrigin","0 0");return this._effect=new KeyframeEffect(N,[{height:b+"px",transform:"translateY(0)"},{height:b/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(q))}});var ZD={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},OJE=function(){};
_.g=OJE.prototype;_.g.registered=function(){};
_.g.addOwnKeyBinding=function(){};
_.g.removeOwnKeyBindings=function(){};
_.g.keyboardEventMatchesKeys=function(){};
_.g._collectKeyBindings=function(){};
_.g._prepKeyBindings=function(){};
_.g._addKeyBinding=function(){};
_.g._resetKeyEventListeners=function(){};
_.g._listenKeyEventListeners=function(){};
_.g._unlistenKeyEventListeners=function(){};
_.g._onKeyBindingEvent=function(){};
_.g._triggerKeyHandler=function(){};
_.g._focusBlurHandler=function(){};
_.g._changedControlState=function(){};
_.g._setFocused=function(){};
OJE=_.x9({_template:function(){if(QXM!==void 0)return QXM;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;Y1j===void 0&&(Y1j=document.createElement("template"));var y=Y1j;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return QXM=q},
is:"tp-yt-paper-menu-button",behaviors:[_.kT,_.UD],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:ZD.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:ZD.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:ZD.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 q=_.mj(this.$.content).getDistributedNodes(),N=0,b=q.length;N<b;N++)if(q[N].nodeType===Node.ELEMENT_NODE)return q[N]},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(q,N){q?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):N!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(q){_.UD._disabledChanged.apply(this,arguments);q&&this.opened&&this.close()},
__onIronOverlayCanceled:function(q){var N=this.$.trigger;_.mj(q.detail).path.indexOf(N)>-1&&q.preventDefault()}});
Object.keys(ZD).forEach(function(q){OJE[q]=ZD[q]});var w2E=_.Ci.IronButtonState,iJl=(0,_.Kz)(HTMLElement);
_.x9({_template:function(){if(G81!==void 0)return G81;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;vCM===void 0&&(vCM=document.createElement("template"));var y=vCM;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return G81=q},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[w2E,_.UD,gU,_.IV,_.ni],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(q){var N=(0,_.kF)(this);N.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:q});N.shadowRoot.appendChild(q);return iJl.prototype._attachDom.call(this,q)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var q=this.contentElement;q&&q.selectedItem&&this._setSelectedItem(q.selectedItem)},
get contentElement(){for(var q=_.mj(this.$.content).getDistributedNodes(),N=0,b=q.length;N<b;N++)if(q[N].nodeType===Node.ELEMENT_NODE)return q[N]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(q){this._setSelectedItem(q.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(q){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q)===this&&this.open()},
_selectedItemChanged:function(q){var N="";q?N=q.label||q.getAttribute("label")||q.textContent.trim():N="";this.value=N;this._setSelectedItemLabel(N)},
_computeMenuVerticalOffset:function(q,N){return N?N:q?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var q=this.opened?"true":"false",N=this.contentElement;N&&N.setAttribute("aria-expanded",q)},
_computeLabelClass:function(q,N,b){var y="label";if(q)b&&(y+=" label-is-hidden");else if(b||N)y+=" label-is-floating";return y},
_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 l6l;var K44;_.x9({is:"tp-yt-paper-icon-button",_template:function(){if(K44!==void 0)return K44;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;l6l===void 0&&(l6l=document.createElement("template"));var y=l6l;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return K44=q},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.ZJv],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(q,N){var b=this.getAttribute("aria-label");b&&N!=b||this.setAttribute("aria-label",q)}});var DH1;var hFF;_.F6=[pVJ,_.UD,{hostAttributes:{role:"option",tabindex:"0"}}];_.x9({_template:function(){if(hFF!==void 0)return hFF;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;DH1===void 0&&(DH1=document.createElement("template"));var y=DH1;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return hFF=q},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.F6]});var k8v;var UHJ;var f61={attached:function(){this.fire("addon-attached")},
update:function(){}};var CUE=1,I6R=1,Tbv=1,sXx=[_.UD,_.kT,{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();!Zh&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(q,N){q?q=q+" "+N:q=N;return q},
_onAddonAttached:function(q){q=_.mj(q).rootTarget;if(q.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,q.id);else{var N="paper-input-add-on-"+I6R++;q.id=N;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,N)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(q){_.UD._focusBlurHandler.call(this,q);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var q=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",q);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(q){try{var N=this.inputElement.selectionStart;this.value=q;this.inputElement.selectionStart=N;this.inputElement.selectionEnd=N}catch(b){this.value=q}},
_computeAlwaysFloatLabel:function(q,N){return N||q},
_updateAriaLabelledBy:function(){var q=_.mj(this.root).querySelector("label");if(q){if(q.id)var N=q.id;else N="paper-input-label-"+CUE++,q.id=N;this._ariaLabelledBy=N}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+Tbv++)},
_onChange:function(q){this.shadowRoot&&this.fire(q.type,{sourceEvent:q},{node:this,bubbles:q.bubbles,cancelable:q.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var q=document.activeElement;q instanceof HTMLElement&&q!==document.body&&q!==document.documentElement||this._focusableElement.focus()}}}];var nCx;var a6x;_.x9({_template:function(){if(a6x!==void 0)return a6x;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;nCx===void 0&&(nCx=document.createElement("template"));var y=nCx;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return a6x=q},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[f61],properties:{_charCounterStr:{type:String,value:"0"}},update:function(q){if(q.inputElement){q.value=q.value||"";var N=q.value.toString().length.toString();q.inputElement.hasAttribute("maxlength")&&(N+="/"+q.inputElement.getAttribute("maxlength"));this._charCounterStr=N}}});var S1J;var W4j;_.x9({_template:function(){if(W4j!==void 0)return W4j;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;S1J===void 0&&(S1J=document.createElement("template"));var y=S1J;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return W4j=q},
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 Gh(this.attrForValue)},get _inputElement(){return _.mj(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(q){this._addons||(this._addons=[]);q=q.target;this._addons.indexOf(q)===-1&&(this._addons.push(q),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(q){this._handleValueAndAutoValidate(q.target)},
_onValueChanged:function(q){var N=q.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,N.value===void 0||N.value===""))return;this._handleValueAndAutoValidate(q.target)},
_handleValue:function(q){var N=this._inputElementValue;N||N===0||q.type==="number"&&!q.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:q,value:N,invalid:this.invalid})},
_handleValueAndAutoValidate:function(q){this.autoValidate&&q&&(this.invalid=!(q.validate?q.validate(this._inputElementValue):q.checkValidity()));this._handleValue(q)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(q){if(this._addons)for(var N,b=0;N=this._addons[b];b++)N.update(q)},
_computeInputContentClass:function(q,N,b,y,J){var E="input-content";q?(J&&(E+=" label-is-hidden"),y&&!this.noUnfloatedLabelError&&(E+=" is-invalid")):(q=this.querySelector("label"),N||J?(E+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",y?E+=" is-invalid":b&&(E+=" label-is-highlighted")):(q&&(this.$.labelAndInputContainer.style.position="relative"),y&&!this.noUnfloatedLabelError&&(E+=" is-invalid")));b&&(E+=" focused");return E},
_computeUnderlineClass:function(q,N){var b="underline";N?b+=" is-invalid":q&&(b+=" is-highlighted");return b},
_computeAddOnContentClass:function(q,N){var b="add-on-content";N?b+=" is-invalid":q&&(b+=" is-highlighted");return b}});var L4R;var p2F;_.x9({_template:function(){if(p2F!==void 0)return p2F;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;L4R===void 0&&(L4R=document.createElement("template"));var y=L4R;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return p2F=q},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[f61],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(q){this._setInvalid(q.invalid)}});_.x9({is:"tp-yt-paper-input",_template:function(){if(UHJ!==void 0)return UHJ;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;k8v===void 0&&(k8v=document.createElement("template"));var y=k8v;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return UHJ=q},
behaviors:[sXx,_.IV],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 PU4;var MkJ;_.x9({_template:function(){if(MkJ!==void 0)return MkJ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=
q.content,b=N.insertBefore;PU4===void 0&&(PU4=document.createElement("template"));var y=PU4;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return MkJ=q},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.F6]});var oCE;var AlR;_.x9({_template:function(){if(AlR!==void 0)return AlR;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
var N=q.content,b=N.insertBefore;oCE===void 0&&(oCE=document.createElement("template"));var y=oCE;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return AlR=q},
is:"tp-yt-paper-item-body"});var eFj;var Bb1;var HJR=function(){};
_.g=HJR.prototype;_.g.indexOf=function(){};
_.g.selectPrevious=function(){};
_.g.selectNext=function(){};
_.g.selectIndex=function(){};
_.g.forceSynchronousItemUpdate=function(){};
_.g._checkFallback=function(){};
_.g._addListener=function(){};
_.g._removeListener=function(){};
_.g._activateEventChanged=function(){};
_.g._updateItems=function(){};
_.g._selectSelected=function(){};
_.g._filterItem=function(){};
_.g._valueToItem=function(){};
_.g._valueToIndex=function(){};
_.g._indexToValue=function(){};
_.g._valueForItem=function(){};
_.g._observeItems=function(){};
_.g._itemActivate=function(){};
_.g.multiChanged=function(){};
_.g._updateAttrForSelected=function(){};
_.g._updateSelected=function(){};
_.g._selectMulti=function(){};
_.g._selectionChange=function(){};
_.g._toggleSelected=function(){};
_.g._valuesToItems=function(){};
_.g.registered=function(){};
_.g.addOwnKeyBinding=function(){};
_.g.removeOwnKeyBindings=function(){};
_.g.keyboardEventMatchesKeys=function(){};
_.g._collectKeyBindings=function(){};
_.g._prepKeyBindings=function(){};
_.g._addKeyBinding=function(){};
_.g._resetKeyEventListeners=function(){};
_.g._listenKeyEventListeners=function(){};
_.g._unlistenKeyEventListeners=function(){};
_.g._onKeyBindingEvent=function(){};
_.g._triggerKeyHandler=function(){};
_.g.select=function(){};
_.g._resetTabindices=function(){};
_.g._updateMultiselectable=function(){};
_.g._focusWithKeyboardEvent=function(){};
_.g._clearSearchText=function(){};
_.g._focusPrevious=function(){};
_.g._focusNext=function(){};
_.g._applySelection=function(){};
_.g._focusedItemChanged=function(){};
_.g._onIronItemsChanged=function(){};
_.g._onShiftTabDown=function(){};
_.g._onFocus=function(){};
_.g._onUpKey=function(){};
_.g._onDownKey=function(){};
_.g._onEscKey=function(){};
_.g._onKeydown=function(){};
_.g._activateHandler=function(){};
_.g._disabledChanged=function(){};
_.g._setSelectedItem=function(){};
_.g._setItems=function(){};
_.g._setSelectedItems=function(){};
_.g._setFocusedItem=function(){};
HJR=_.x9({_template:function(){if(Bb1!==void 0)return Bb1;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
var N=q.content,b=N.insertBefore;eFj===void 0&&(eFj=document.createElement("template"));var y=eFj;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return Bb1=q},
is:"tp-yt-paper-listbox",behaviors:[HNR],hostAttributes:{role:"listbox"}});var qIx;var NHl;var bpJ={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(q,N){return[q||N?"active":"",N?"cooldown":""].join(" ")},
__activeChanged:function(q,N){this.__setAriaHidden(!q);this.__coolingDown=!q&&N},
__altChanged:function(q){this.setAttribute("aria-label",q||"loading")},
__setAriaHidden:function(q){q?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.x9({_template:function(){if(NHl!==void 0)return NHl;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;qIx===void 0&&(qIx=document.createElement("template"));var y=qIx;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return NHl=q},
is:"tp-yt-paper-spinner",behaviors:[bpJ]});var y51;var J5o;_.x9({_template:function(){if(J5o!==void 0)return J5o;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;y51===void 0&&(y51=document.createElement("template"));var y=y51;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return J5o=q},
is:"tp-yt-paper-spinner-lite",behaviors:[bpJ]});var EQJ;var gQx;_.x9({_template:function(){if(gQx!==void 0)return gQx;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;EQJ===void 0&&(EQJ=document.createElement("template"));var y=EQJ;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return gQx=q},
is:"tp-yt-paper-tab",behaviors:[_.UD,_.Ci.IronButtonState,gU],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 q=_.mj(this).parentNode;return!!q&&!!q.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(q){if(this.link){var N=this.queryEffectiveChildren("a");N&&q.target!==N&&N.click()}}});var Zp1;var FXE;var RE4=_.Tt(['<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>']),djx=_.W_l(RE4);document.head.appendChild(djx.content);_.x9({_template:function(){if(FXE!==void 0)return FXE;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;Zp1===void 0&&(Zp1=document.createElement("template"));var y=Zp1;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return FXE=q},
is:"tp-yt-paper-tabs",behaviors:[_.SQ,_.NMj],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(q){_.mj(this).querySelectorAll("tp-yt-paper-tab").forEach(q?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(q){q.setAttribute("noink","")},
_removeNoinkAttribute:function(q){q.removeAttribute("noink")},
_computeScrollButtonClass:function(q,N,b,y){return!N||b?"hidden":q?y?"hidden":"not-visible":""},
_computeTabsContentClass:function(q,N){var b="tabs-content";q&&(b+=" scrollable");if(!q||N)b+=" fit-container";return b},
_computeSelectionBarClass:function(q,N){var b="selection-bar";q?b+=" hidden":N&&(b+=" align-bottom");return b},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(q){return""+q},
_onIronSelect:function(q){this._tabChanged(q.detail.item,this._previousTab);this._previousTab=q.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();_.aV._activateHandler.apply(this,arguments)},
_scheduleActivation:function(q,N){this._pendingActivationItem=q;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,N)},
_delayedActivationHandler:function(){var q=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;q.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(q){q.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(q,N){this.scrollable&&this._affectScroll(N&&-N.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(q){this.$.tabsContainer.scrollLeft+=q;q=this.$.tabsContainer.scrollLeft;this._leftHidden=q===0||this.hideScrollButtons;this._rightHidden=q===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(q,N){if(q){var b=this.$.tabsContent.getBoundingClientRect(),y=b.width,J=q.getBoundingClientRect();b=J.left-b.left;this._pos={width:this._calcPercent(J.width,y),left:this._calcPercent(b,y)};if(this.noSlide||N==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var E=N.getBoundingClientRect();N=this.items.indexOf(N);q=this.items.indexOf(q);this.$.selectionBar.classList.add("expand");
q=N<q;this._isRTL&&(q=!q);q?this._positionBar(this._calcPercent(J.left+J.width-E.left,y)-5,this._left):this._positionBar(this._calcPercent(E.left+E.width-J.left,y)-5,this._calcPercent(b,y)+5);this.scrollable&&this._scrollToSelectedIfNeeded(J.width,b)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(q,N){N-=this.$.tabsContainer.scrollLeft;N<0?this.$.tabsContainer.scrollLeft+=N:(N+=q-this.$.tabsContainer.offsetWidth,N>0&&(this.$.tabsContainer.scrollLeft+=N))},
_calcPercent:function(q,N){return 100*q/N},
_positionBar:function(q,N){q=q||0;N=N||0;this._width=q;this._left=N;this.transform("translateX("+N+"%) scaleX("+q/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var q=this.$.selectionBar.classList;q.contains("expand")?(q.remove("expand"),q.add("contract"),this._positionBar(this._pos.width,this._pos.left)):q.contains("contract")&&q.remove("contract")}});var c5R;var ugJ;_.x9({_template:function(){if(ugJ!==void 0)return ugJ;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;c5R===void 0&&(c5R=document.createElement("template"));var y=c5R;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return ugJ=q},
is:"tp-yt-paper-textarea",behaviors:[sXx,_.IV],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(q){this.$.input.textarea.selectionStart=q},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(q){this.$.input.textarea.selectionEnd=q},_ariaLabelledByChanged:function(q){this._focusableElement.setAttribute("aria-labelledby",q)},
_ariaDescribedByChanged:function(q){this._focusableElement.setAttribute("aria-describedby",q)},
get _focusableElement(){return this.inputElement.textarea}});var zEo;var $jR;/*

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 tTx=function(){};
_.g=tTx.prototype;_.g.addOwnKeyBinding=function(){};
_.g.removeOwnKeyBindings=function(){};
_.g.keyboardEventMatchesKeys=function(){};
_.g._collectKeyBindings=function(){};
_.g._prepKeyBindings=function(){};
_.g._addKeyBinding=function(){};
_.g._resetKeyEventListeners=function(){};
_.g._listenKeyEventListeners=function(){};
_.g._unlistenKeyEventListeners=function(){};
_.g._onKeyBindingEvent=function(){};
_.g._triggerKeyHandler=function(){};
_.g._tapHandler=function(){};
_.g._focusChanged=function(){};
_.g._detectKeyboardFocus=function(){};
_.g._userActivate=function(){};
_.g._upHandler=function(){};
_.g._spaceKeyDownHandler=function(){};
_.g._spaceKeyUpHandler=function(){};
_.g._asyncClick=function(){};
_.g._pressedChanged=function(){};
_.g._ariaActiveAttributeChanged=function(){};
_.g._activeChanged=function(){};
_.g._controlStateChanged=function(){};
_.g._changedButtonState=function(){};
_.g._focusBlurHandler=function(){};
_.g._disabledChanged=function(){};
_.g._changedControlState=function(){};
_.g._downHandler=function(){};
_.g.ensureRipple=function(){};
_.g.getRipple=function(){};
_.g.hasRipple=function(){};
_.g._noinkChanged=function(){};
_.g._focusedChanged=function(){};
_.g.registered=function(){};
_.g._invalidChanged=function(){};
_.g.hasValidator=function(){};
_.g.validate=function(){};
_.g._getValidity=function(){};
_.g._requiredChanged=function(){};
_.g._valueChanged=function(){};
_.g._checkedChanged=function(){};
_.g._buttonStateChanged=function(){};
_.g._setPressed=function(){};
_.g._setPointerDown=function(){};
_.g._setReceivedFocusFromKeyboard=function(){};
_.g._setFocused=function(){};
tTx=_.x9({is:"tp-yt-paper-toggle-button",_template:function(){if($jR!==void 0)return $jR;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;zEo===void 0&&(zEo=document.createElement("template"));var y=zEo;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return $jR=q},
behaviors:[_.F4o],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");_.ut(this,function(){_.oC(this,"pan-y")})},
_ontrack:function(q){q=q.detail;q.state==="start"?this._trackStart(q):q.state==="track"?this._trackMove(q):q.state==="end"&&this._trackEnd(q)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(q){q=q.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+q:q)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+q:q));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 q=gU._createRipple();q.id="ink";q.setAttribute("recenters","");q.classList.add("circle","toggle-ink");return q}});var mj1;var r5T;_.x9({_template:function(){if(r5T!==void 0)return r5T;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;mj1===void 0&&(mj1=document.createElement("template"));var y=mj1;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return r5T=q},
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 q=_.mj(this).parentNode,N=_.mj(this).getOwnerRoot(),b;this.for?b=_.mj(N).querySelector("#"+this.for):b=q.nodeType==Node.DOCUMENT_FRAGMENT_NODE?N.host:q;return b},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(q){q==="entry"?this.show():q==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.mj(this).textContent.trim()===""){for(var q=!0,N=_.mj(this).getEffectiveChildNodes(),b=0;b<N.length;b++)if(N[b].textContent.trim()!==""){q=!1;break}if(q)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 q=this.offset;this.marginTop!=14&&this.offset==14&&(q=this.marginTop);var N=this.offsetParent.getBoundingClientRect(),b=this._target.getBoundingClientRect(),y=this.getBoundingClientRect(),J=(b.width-y.width)/2,E=(b.height-y.height)/2,F=b.left-N.left,R=b.top-N.top;switch(this.position){case "top":var c=F+J;var z=R-y.height-q;break;case "bottom":c=F+J;z=R+b.height+q;break;case "left":c=F-y.width-q;z=R+E;break;case "right":c=F+b.width+
q,z=R+E}this.fitToVisibleBounds?(N.left+c+y.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,c)+"px",this.style.right="auto"),N.top+z+y.height>window.innerHeight?(this.style.bottom=N.height+"px",this.style.top="auto"):(this.style.top=Math.max(-N.top,z)+"px",this.style.bottom="auto")):(this.style.left=c+"px",this.style.top=z+"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(q){q!==500&&this.updateStyles({"--paper-tooltip-delay-in":q+"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(q){if(q==="entry"&&this.animationEntry!=="")return this.animationEntry;if(q==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[q]&&typeof this.animationConfig[q][0].name==="string"){if(this.animationConfig[q][0].timing&&this.animationConfig[q][0].timing.delay&&this.animationConfig[q][0].timing.delay!==0){var N=this.animationConfig[q][0].timing.delay;q==="entry"?this.updateStyles({"--paper-tooltip-delay-in":N+"ms"}):q==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":N+
"ms"})}return this.animationConfig[q][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 Xwj=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Xwj,_.Rx);var VTl=_.xB(Xwj,[0,_.Bc]);var Rt=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Rt,_.Rx);var jSR=[3,4],xjF=[5,6];var vQl=[0,jSR,xjF,_.NH,-1,_.o6,_.bU,-1,KK1,DNq];var G51=_.xB(Rt,vQl),YIq=_.vZ(vQl);var QST=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(QST,_.Rx);var Opv=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Opv,_.Rx);var wwM=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(wwM,_.Rx);var ipx=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(ipx,_.Rx);var lNT=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(lNT,_.Rx);var dU=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(dU,_.Rx);dU.prototype.getSource=function(){return _.vc(this,1)};
dU.prototype.getMessage=function(){return _.xs(this,4)};
dU.prototype.getData=function(){return _.Vr(this,lNT,8)};var KXR=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(KXR,_.Rx);var ca=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(ca,_.Rx);var uQ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(uQ,_.Rx);var zI=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(zI,_.Rx);zI.prototype.getUrl=function(){return _.xs(this,1)};
zI.prototype.setUrl=function(q){return _.Up(this,1,q)};
zI.prototype.hasUrl=function(){return _.Ya(_.R6(this,1))!=null};var DjE=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(DjE,_.Rx);var hEM=[3];var k5R=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(k5R,_.Rx);var $z=function(q){var N=new k5R;return _.jd(N,2,q)};
k5R.prototype.getLanguage=function(){return Ys(this,4,tT)};
var Ujx=function(q){var N=$z(1);return _.iX(N,6,tT,q)},tT=[3,
4,5,6];var fNE=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(fNE,_.Rx);var mm=function(q){var N=new fNE;return _.jd(N,1,q)},rU=function(q,N){return _.iX(q,2,Clq,N)},Clq=[2,
3,4,5];var INM=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(INM,_.Rx);var X6=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(X6,_.Rx);var THq=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(THq,_.Rx);var sSx=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(sSx,_.Rx);var nQx=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(nQx,_.Rx);var aNR=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(aNR,_.Rx);var SIR=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(SIR,_.Rx);var VG=function(q){return _.Vr(q,uQ,5)};var WX1=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(WX1,_.Rx);WX1.prototype.getValue=function(){return VW(this,1)};var LXx=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(LXx,_.Rx);var jD=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(jD,_.Rx);jD.prototype.getMetadata=function(){return _.QW(this,nQx,7,xz)};
jD.prototype.hasMetadata=function(){return _.cc(this,nQx,7,xz)};
var pwl=_.Mvd(jD),xz=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var va=function(q){this.JSC$12250_name_=q;this.files_=[];this.directories_=[];this.directoryMap_={}};
va.prototype.getName=function(){return this.JSC$12250_name_};var Yz=function(q,N){this.callback_=N;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new va("");Plo(this,q,this.rootDirectory_);GI(this)},Plo=function(q,N,b){for(var y=0;y<N.length;y++){var J=N[y];
J.isFile?(q.fileOps_++,J.file((0,_.fF)(q.handleFileSuccess_,q,b),(0,_.fF)(q.handleFileError_,q))):q.unscannedDirectories_.push(new MTT(J,b))}},GI=function(q){if(q.unscannedDirectories_.length>0&&q.directoryOps_<5&&!q.hasError_){q.directoryOps_++;
var N=q.unscannedDirectories_.shift(),b=N.entry,y=new va(b.name);N=N.parent;N.directoryMap_[y.getName()]=y;N.directories_.push(y);b=b.createReader();b.readEntries((0,_.fF)(q.handleDirectorySuccess_,q,b,y),(0,_.fF)(q.handleDirectoryError_,q))}q.directoryOps_!=0||q.fileOps_!=0||q.unscannedDirectories_.length!=0&&!q.hasError_||q.callback_(q.rootDirectory_.files_,q.rootDirectory_.directories_,q.hasError_)};
Yz.prototype.handleDirectorySuccess_=function(q,N,b){Plo(this,b,N);b.length==0?(this.directoryOps_--,GI(this)):q.readEntries((0,_.fF)(this.handleDirectorySuccess_,this,q,N),(0,_.fF)(this.handleDirectoryError_,this))};
Yz.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;GI(this)};
Yz.prototype.handleFileSuccess_=function(q,N){q.files_.push(N);this.fileOps_--;GI(this)};
Yz.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;GI(this)};
var MTT=function(q,N){this.entry=q;this.parent=N};var QG=function(q){_.O1.call(this);_.tn(q,"drop",this.onObjectsDropped_,!1,this);_.tn(q,"dragenter",this.onFilesDragged_,!1,this);_.tn(q,"dragover",this.onFilesDragged_,!1,this);_.tn(q,"dragleave",this.onDragLeave_,!1,this);_.tn(q,"dragend",this.onDragLeave_,!1,this)};
_.oK(QG,_.O1);var oQE=function(q,N){_.xC.call(this,"f");this.files=q;this.directories=N};
_.oK(oQE,_.xC);var A5T=function(){_.xC.call(this,"h")};
_.oK(A5T,_.xC);var eEv=function(){_.xC.call(this,"i")};
_.oK(eEv,_.xC);var BH1=function(){_.xC.call(this,"g")};
_.oK(BH1,_.xC);QG.prototype.onObjectsDropped_=function(q){var N=this;q.preventDefault();var b=q.event_.dataTransfer;if((q=b&&b.items)&&q.length>0&&q[0].webkitGetAsEntry){b=[];for(var y=[],J=0;J<q.length;J++){var E=q[J].webkitGetAsEntry();E?b.push(E):y.push(q[J])}new Yz(b,function(F,R,c){c?N.dispatchEvent(new BH1("Error occurred while reading from the file system.")):N.dispatchEvent(new oQE(F,R,y))})}else(q=b&&b.files)&&this.dispatchEvent(new oQE(Array.from(q),[]))};
QG.prototype.onFilesDragged_=function(q){q.type==="dragenter"&&this.dispatchEvent(new A5T);q.preventDefault()};
QG.prototype.onDragLeave_=function(){this.dispatchEvent(new eEv)};var Hp4=function(q,N){this.JSC$12273_name_=q;this.inputElement_=N};
Hp4.prototype.getName=function(){return this.JSC$12273_name_};
Hp4.prototype.getInputElement=function(){return this.inputElement_};var Oj=function(q,N,b){N=N===void 0?"single_file":N;b=b===void 0?[]:b;_.O1.call(this);this.overlayTarget_=q;this.parentOverlay_=q!=null?q.parentNode:_.iC("scotty-overlay-parent");this.selectorType_=N;this.acceptTypes_=b;this.overlay_=qUT(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.Y(Oj,_.O1);
var qUT=function(q,N,b,y){var J=document.createElement("input");J.setAttribute("type","file");J.setAttribute("name","Filedata");_.tn(J,"change",q.onFilesSelected_,!1,q);b==="multiple_file"&&(J.multiple="true");b==="single_directory"&&(J.webkitdirectory="true");y.length>0&&J.setAttribute("accept",y.join(","));J.style.position="absolute";J.style.overflow="hidden";J.style.height="0px";J.style.width="0px";J.style.opacity="0";J.setAttribute("aria-hidden","true");J.setAttribute("tabIndex",-1);if(q.overlayTarget_!=
null)return J.style.height=N.offsetHeight+"px",J.style.width=N.offsetWidth+"px",q.parentOverlay_&&(q.parentOverlay_.style.position="relative"),_.k_(J,N),sq(J,new _.Sc(N.offsetLeft,N.offsetTop)),J;q.parentOverlay_.appendChild(J);return J};
Oj.prototype.click=function(){this.overlay_.click()};
Oj.prototype.onFilesSelected_=function(q){a:{try{var N=(new XMLHttpRequest).upload!==void 0;break a}catch(z){}N=!1}if(N){var b;q=Array.from((b=q.target.files)!=null?b:[]);b=[];if(this.selectorType_==="single_directory"&&(_.Nd||cv||_.qd)){b=new va("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(N=0;N<q.length;N++)for(var y=q[N],J=y.webkitRelativePath.split("/"),E=b,F=0;F<J.length;F++){var R=J[F];if(F==J.length-1){R!="."&&E.files_.push(y);break}var c=E.directoryMap_[R];c==void 0&&(R=
c=new va(R),E.directoryMap_[R.getName()]=R,E.directories_.push(R));E=c}b=b.directories_}this.dispatchEvent(new NPE(q,b,null))}else q=q.target.value,q.match(/^c:\\fakepath\\/i)&&(q=q.substring(12)),this.dispatchEvent(new NPE([],[],new Hp4(q,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=qUT(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var NPE=function(q,N){_.xC.call(this,"j");this.files=q;this.directories=N};
_.Y(NPE,_.xC);var bvF=function(q){this.uploadUrl_=q};var ywM=function(){_.O1.call(this)};
_.oK(ywM,_.O1);var wU=function(q){_.xC.call(this,q)};
_.oK(wU,_.xC);var iQ=function(q){_.xC.call(this,q)};
_.oK(iQ,_.xC);var Jwv=function(q,N,b,y,J){_.O1.call(this);b=document.createElement("form");b.setAttribute("method",N);b.setAttribute("enctype","multipart/form-data");b.setAttribute("encoding","multipart/form-data");N=document.createElement("input");N.setAttribute("type","hidden");N.setAttribute("name","metadata");N.setAttribute("value",J);b.appendChild(N);b.appendChild(y);this.JSC$12290_form_=b;q=new _.a$(q);_.yS(q,"upload_protocol","multipart");this.JSC$12290_url_=q.toString();this.JSC$12290_request_=new dC;this.state_=
"Ready";this.JSC$12290_errorDescription_=null;this.JSC$12290_eventHandler_=new _.xH(this);_.YN(this,this.JSC$12290_eventHandler_);this.JSC$12290_eventHandler_.listen(this.JSC$12290_request_,"success",this.onTransferSuccess_);this.JSC$12290_eventHandler_.listen(this.JSC$12290_request_,"error",this.onTransferError_)};
_.Y(Jwv,ywM);_.g=Jwv.prototype;_.g.run=function(){this.state_="Transferring";var q=this.JSC$12290_request_,N=this.JSC$12290_form_;if(q.JSC$11558_active_)throw Error("te");var b=new _.a$(this.JSC$12290_url_||N.action);q.JSC$11558_form_=N;N=q.JSC$11558_form_;b=_.ox(b.toString());b!==void 0&&(N.action=b);uOE(q)};
_.g.getResponseCode=function(){return null};
_.g.getResponseText=function(){return this.JSC$12290_request_&&this.JSC$12290_request_.getResponseText()||null};
_.g.JSC$30000_getErrorDescription=function(){return this.JSC$12290_errorDescription_};
_.g.cancel=function(){this.JSC$12290_request_&&this.JSC$12290_request_.abort();this.state_="Cancelled";this.dispatchEvent(new wU("o"))};
_.g.pause=function(){};
_.g.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new wU("l"))};
_.g.onTransferError_=function(){this.JSC$12290_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new wU("n"))};var lQ=function(){_.U1.call(this)};
_.Y(lQ,_.U1);lQ.prototype.createXhr=function(){var q=_.U1.prototype.createXhr.call(this);q.upload&&(q.upload.onprogress=(0,_.fF)(this.onProgress_,this));return q};
lQ.prototype.onProgress_=function(q){this.dispatchEvent(q)};var E2j=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},Zv1=function(q,N){var b=q.attempt_+1;
if(q.maxAttempts_>0&&b>q.maxAttempts_)return!1;b==0?N():q.delayCallId_=D6(function(){q.delayCallId_=null;N()},g2F(q),q);
q.attempt_=b;return!0};
E2j.prototype.reset=function(){this.delayCallId_&&_.JZ.clearTimeout(this.delayCallId_);this.attempt_=-1};
var g2F=function(q){var N=250*Math.pow(2,q.attempt_);q.maxDelayMs_>=0&&(N=Math.min(N,q.maxDelayMs_));return N};var OzZ=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var KO=function(){_.O1.call(this);this.JSC$12300_request_=this.state_=null;this.JSC$12300_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12300_bytesTransferred_=0;this.retryIterator_=new E2j;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12300_errorDescription_=null;this.JSC$12300_eventHandler_=new _.xH(this);_.YN(this,this.JSC$12300_eventHandler_);this.JSC$12300_url_=this.blob_=null;this.JSC$12300_method_=void 0;this.chunkSize_=this.JSC$12300_metadata_=
this.JSC$12300_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12300_responseText_=this.JSC$12300_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.oK(KO,ywM);_.g=KO.prototype;_.g.run=function(){DD(this)};
_.g.getResponseCode=function(){return this.JSC$12300_responseCode_};
_.g.getResponseText=function(){return this.JSC$12300_responseText_};
_.g.JSC$30000_getErrorDescription=function(){return this.JSC$12300_errorDescription_};
_.g.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12300_eventHandler_.removeAll();this.JSC$12300_request_&&this.JSC$12300_request_.abort();this.retryIterator_.reset();var q=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(q==="Upload"||q==="Query")q=new lQ,q.JSC$9877_withCredentials_=this.JSC$12300_withCredentials_,q.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12300_bytesTransferred_=
0;this.dispatchEvent(new wU("o"))}};
_.g.pause=function(){this.pauseRequested_=!0};
var DD=function(q){var N=q.state_;q.pauseRequested_?(q.pauseRequested_=!1,q.stateAfterUnpausing_=N,q.state_="Paused"):Zv1(q.retryIterator_,function(){switch(q.state_){case "Start":q.JSC$12300_request_=new lQ;var b=_.nM.clone(q.JSC$12300_headers_);q.blob_.size!=null&&(b["Content-Length"]=q.blob_.size);b=wtz(b);b["X-Goog-Upload-Protocol"]="resumable";b["X-Goog-Upload-Command"]="start";q.JSC$12300_eventHandler_.removeAll();q.JSC$12300_eventHandler_.listen(q.JSC$12300_request_,"complete",q.onStartComplete_);
q.JSC$12300_request_.JSC$9877_withCredentials_=q.JSC$12300_withCredentials_;q.JSC$12300_request_.send(q.JSC$12300_url_,q.JSC$12300_method_,q.JSC$12300_metadata_,b);q.lastCommandResponseCode_=null;q.dispatchEvent(new iQ("q"));break;case "Upload":b=q.transferHandle_.uploadUrl_;var y=q.blob_.size;if(nUx()){var J=q.chunkSize_;var E=q.offset_+J>=y;y=s$E(q.blob_,q.offset_,E?y:q.offset_+J)}else q.offset_=0,y=q.blob_,E=!0;q.JSC$12300_request_=new lQ;q.JSC$12300_request_.JSC$9877_withCredentials_=q.JSC$12300_withCredentials_;
q.JSC$12300_eventHandler_.removeAll();q.JSC$12300_eventHandler_.listen(q.JSC$12300_request_,"progress",q.onUploadProgress_);J=(0,_.fF)(q.JSC$12302_onUploadComplete_,q,q.offset_+y.size,E);q.JSC$12300_eventHandler_.listen(q.JSC$12300_request_,"complete",J);q.lastCommandResponseCode_=null;q.dispatchEvent(new iQ("q"));E=Object.assign({},q.JSC$12300_headers_||{},{"X-Goog-Upload-Command":"upload"+(E?", finalize":""),"X-Goog-Upload-Offset":q.offset_});q.JSC$12300_request_.send(b,"POST",y,E);break;case "Query":q.JSC$12300_request_=
new lQ;q.JSC$12300_eventHandler_.removeAll();q.JSC$12300_eventHandler_.listen(q.JSC$12300_request_,"complete",q.onQueryComplete_);b=Object.assign({},q.JSC$12300_headers_||{},{"X-Goog-Upload-Command":"query"});q.JSC$12300_request_.send(q.transferHandle_.uploadUrl_,"POST","",b);q.lastCommandResponseCode_=null;q.dispatchEvent(new iQ("q"));break;default:throw Error("lf");}})||hT(q,"Transfer encountered too many consecutive failures.")},hT=function(q,N){q.state_="Error";
q.JSC$12300_errorDescription_=N;q.dispatchEvent(new wU("n"))};
KO.prototype.onStartComplete_=function(q){var N=q.target;this.lastCommandResponseCode_=N.getStatus();this.dispatchEvent(new iQ("r"));if(Fzx(N))Rgj(this,N);else if(dtq(N)){q=Zu(q.target.getAllResponseHeaders());for(var b in q)_.gA(b.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new wU("m"));b=Xv(q,"X-Goog-Upload-URL");q=(q=Xv(q,"X-Goog-Upload-Chunk-Granularity"))?parseInt(q,10):1;b===void 0||isNaN(q)||q<=0?hT(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
q)*q,this.transferHandle_=new bvF(b),this.dispatchEvent(new wU("p")),this.state_="Upload",this.retryIterator_.reset(),DD(this))}else DD(this)};
KO.prototype.onUploadProgress_=function(q){this.JSC$12300_bytesTransferred_=this.offset_+q.loaded;this.dispatchEvent(new wU("k"))};
KO.prototype.JSC$12302_onUploadComplete_=function(q,N,b){var y=this,J,E;return _.d(function(F){switch(F.nextAddress){case 1:J=b.target;y.lastCommandResponseCode_=J.getStatus();y.dispatchEvent(new iQ("r"));if(cwR(J)||J.getStatus()==404)return y.JSC$12300_bytesTransferred_=q,Rgj(y,J),F.return();if(dtq(J)){F.jumpTo(2);break}if(!(E=y.detectCorruptedBlobEnabled_)){F.jumpTo(3);break}return F.yield(um1(y),4);case 4:E=F.yieldResult;case 3:if(E)return hT(y,"Blob has been modified or corrupted."),F.return();
y.requireUploadRequestModification_=J.getStatus()==400;y.state_="Query";DD(y);return F.return();case 2:if(N)return hT(y,"Got a non-final success response after issuing a finalize command."),F.return();y.JSC$12300_bytesTransferred_=q;y.offset_=q;y.retryIterator_.reset();DD(y);return F.return()}})};
KO.prototype.onQueryComplete_=function(q){var N=q.target;this.lastCommandResponseCode_=N.getStatus();this.dispatchEvent(new iQ("r"));Fzx(N)?(N.getStatus()===200&&(this.JSC$12300_bytesTransferred_=this.blob_.size),Rgj(this,N)):dtq(N)?(q=Zu(q.target.getAllResponseHeaders()),q=parseInt(Xv(q,"X-Goog-Upload-Size-Received"),10),isNaN(q)?hT(this,"Server did not respond with current offset."):q<this.offset_?hT(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
q+"."):this.requireUploadRequestModification_&&this.offset_===q?hT(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<q&&this.retryIterator_.reset(),this.offset_=this.JSC$12300_bytesTransferred_=q,this.state_="Upload",DD(this))):DD(this)};
var Rgj=function(q,N){q.JSC$12300_responseCode_=N.getStatus();var b=Zu(N.getAllResponseHeaders());izd(b);q.JSC$12300_responseText_=N.getResponseText();q.state_="Response received";q.dispatchEvent(new wU("l"))},dtq=function(q){var N=q.getStatus();
q=Zu(q.getAllResponseHeaders());q=Xv(q,"X-Goog-Upload-Status");return N===200&&q==="active"},cwR=function(q){q=Zu(q.getAllResponseHeaders());
return Xv(q,"X-Goog-Upload-Status")==="final"},Fzx=function(q){if(cwR(q))return!0;
q=q.getStatus();return q>=400&&q<500},um1=function(q){var N;
return _.d(function(b){if(b.nextAddress==1){if(!q.blob_||q.originalBlobSize_<=0)return b.return(!1);if(q.blob_.size!==q.originalBlobSize_)return b.return(!0);_.Yi(b,2);if(N=s$E(q.blob_,0,1)){var y=b.yield,J=new Pt,E=G4M(J);J.reader_.readAsBinaryString(N);b=y.call(b,E,4)}else b=b.return(!0);return b}if(b.nextAddress!=2)return b.return(q.blob_.size!==q.originalBlobSize_);_.K7(b);return b.return(!0)})};var zgE=function(q,N,b,y,J,E){_.O1.call(this);this.payload_=y;this.JSC$12303_url_=q;this.JSC$12303_method_=N;this.JSC$12303_headers_=b;this.JSC$12303_metadata_=J;this.encoding_=E||"binary";q=new _.ht;this.boundary_="uploader-"+q0()+"-"+q.JSC$11407_toIsoString();this.JSC$12303_responseText_=this.JSC$12303_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12303_errorDescription_=null;this.JSC$12303_eventHandler_=new _.xH(this);_.YN(this,this.JSC$12303_eventHandler_)};
_.Y(zgE,ywM);_.g=zgE.prototype;
_.g.run=function(){var q=_.nM.clone(this.JSC$12303_headers_);this.payload_.length!=null&&(q["Content-Length"]=this.payload_.length);q=wtz(q);q["X-Goog-Upload-Protocol"]="multipart";q["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new lQ;this.JSC$12303_eventHandler_.removeAll();this.JSC$12303_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12303_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12303_url_,this.JSC$12303_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12303_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",q)};
_.g.getResponseCode=function(){return this.JSC$12303_responseCode_};
_.g.getResponseText=function(){return this.JSC$12303_responseText_};
_.g.JSC$30000_getErrorDescription=function(){return this.JSC$12303_errorDescription_};
_.g.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12303_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new wU("o")))};
_.g.pause=function(){};
_.g.onTransferProgress_=function(){this.dispatchEvent(new wU("k"))};
_.g.onTransferComplete_=function(q){var N=q.target.getStatus();N===void 0||N===-1?(this.JSC$12303_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new wU("n"))):(this.JSC$12303_responseCode_=N,q=q.target,N=Zu(q.getAllResponseHeaders()),izd(N),this.JSC$12303_responseText_=q.getResponseText(),this.state_="Complete",this.dispatchEvent(new wU("l")))};_.$tJ=function(q,N,b,y){y=y===void 0?!1:y;if(b instanceof Hp4)return new Jwv(q,"POST",N,b.getInputElement(),"");if(typeof b==="string"||b instanceof String)return new zgE(q,"POST",N,b,"");var J=new KO(void 0);J.JSC$12300_url_=q;J.JSC$12300_method_="POST";J.JSC$12300_headers_=N;J.blob_=b;J.originalBlobSize_=b.size;J.JSC$12300_metadata_="";y&&(J.JSC$12300_withCredentials_=y);J.state_="Start";return J};var kz=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(kz,_.Rx);_.g=kz.prototype;_.g.getEnableSsEngine=function(){return _.Xn(this,2)};
_.g.getEnableAwr=function(){return _.Xn(this,3)};
_.g.getAlohaAutoGaRollout=function(){return _.Xn(this,5)};
_.g.getEnableConfigurator=function(){return _.Xn(this,6)};
_.g.getEnableMweb=function(){return _.Xn(this,7)};
var mtT=function(){var q=tRo();return _.xU(q,7,!0)};
kz.prototype.getEnableCtlConsentCheckbox=function(){return _.Xn(this,8)};
kz.prototype.getEnableIframe=function(){return _.Xn(this,9)};
var tRo=function(){var q=new kz;q=_.xU(q,5,!0);q=_.xU(q,2,!0);q=_.xU(q,4,!1);q=_.xU(q,8,!0);return _.xU(q,9,!0)};
kz.prototype.getEnableScreenshotNudge=function(){return _.Xn(this,10)};
var rwl=function(){var q=mtT();return _.xU(q,10,!0)};
kz.prototype.getEnableWebStartupConfigEndpoint=function(){return _.Xn(this,11)};
kz.prototype.getEnableJunkNudge=function(){return _.Xn(this,12)};
var MVd=function(){var q=rwl();return _.xU(q,12,!0)};
_.g=kz.prototype;_.g.getEnableConfiguratorLocale=function(){return _.Xn(this,13)};
_.g.getEnableTinyNoPointer=function(){return _.Xn(this,14)};
_.g.getEnableSupportSessionLogging=function(){return _.Xn(this,15)};
_.g.getEnableFileUploadForScreenshot=function(){return _.Xn(this,16)};
_.g.getEnableDirectDeflectionForSingleCategory=function(){return _.Xn(this,17)};
_.g.getEnableImageSanitization=function(){return _.Xn(this,18)};
_.g.getEnableAlohaBinarySplit=function(){return _.Xn(this,19)};
_.g.getEnableDbFeedbackIntents=function(){return _.Xn(this,20)};
_.g.getEnableMarkMandatoryFieldsWithRequired=function(){return _.Xn(this,21)};
_.g.getEnableFeedbackCategoryCustomUi=function(){return _.Xn(this,22)};
_.g.getEnableRealtimeCtl=function(){return _.Xn(this,23)};var PWR=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(PWR,_.Rx);var lhA=[/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 D2A="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 hjC=_.Tt(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),kqu=_.Tt(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var VY=function(){var q=Error.call(this,"Form is either loading or already opened");this.message=q.message;"stack"in q&&(this.stack=q.stack);this.name="DuplicateFormError"};
_.Y(VY,Error);var fhA,TkJ,CWZ,sNA;var Uj,X7M;
Uj=function(q,N,b){q.timeOfStartCall=(new Date).getTime();var y=b||_.JZ,J=y.document,E=q.nonce||_.Jj(y.document);E&&!q.nonce&&(q.nonce=E);if(q.flow=="help"){var F=_.Ng("document.location.href",y);!q.helpCenterContext&&F&&(q.helpCenterContext=F.substring(0,1200));F=!0;if(N&&JSON&&JSON.stringify){var R=JSON.stringify(N);(F=R.length<=1200)&&(q.psdJson=R)}F||(N={invalidPsd:!0})}N=[q,N,b];y.GOOGLE_FEEDBACK_START_ARGUMENTS=N;b=q.feedbackServerUri||"//www.google.com/tools/feedback";if(F=y.GOOGLE_FEEDBACK_START)F.apply(y,N);
else{y=b+"/load.js?";for(var c in q)N=q[c],N==null||_.AZ(N)||(y+=encodeURIComponent(c)+"="+encodeURIComponent(N)+"&");q=k7(J).createElement("SCRIPT");E&&q.setAttribute("nonce",E);_.R9(q,_.hB(y));J.body.appendChild(q)}};
X7M=function(q,N,b,y){var J,E;return _.d(function(F){J=b||_.JZ;var R=q.serverEnvironment==="DEV",c=b||_.JZ;c=q.nonce||_.Jj(c.document);R={integrationKeys:{productId:q.productId,feedbackBucket:q.bucket,triggerId:q.triggerId},callbacks:{onClose:q.callback,onLoad:q.onLoadCallback},formContent:{locale:q.locale,disableScreenshot:q.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:q.abuseLink,additionalDataConsent:q.additionalDataConsent},initializationData:{isLocalServer:R,nonce:c,useNightlyRelease:R,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:q.feedbackServerUri,colorScheme:q.colorScheme},extraData:{productVersion:q.productVersion,authUser:q.authuser,configuratorId:q.configuratorId,customZIndex:q.customZIndex,tinyNoPointer:q.tinyNoPointer,
allowNonLoggedInFeedback:q.allowNonLoggedInFeedback,enableAnonymousFeedback:q.enableAnonymousFeedback}};N&&(c=new Map(Object.entries(N)),R.extraData.productSpecificData=c);E=R;return F.yield(WSJ(E,y,J),0)})};
_.VRF=function(q,N,b){try{if(q.flow==="help"){var y=q.helpCenterPath.replace(/^\//,"");_.yz(b||window,"https://support.google.com/"+y)}else q.flow==="submit"?Uj(q,N,b):ocn(q.productId,q.feedbackServerUri).then(function(J){J=_.Vr(J,kz,1);var E=!Mn1||(J==null?void 0:J.getEnableMweb()),F=!q.tinyNoPointer||(J==null?void 0:J.getEnableTinyNoPointer());!J||J.getAlohaAutoGaRollout()&&E&&F?X7M(q,N,b,J).catch(function(R){!R||R instanceof VY||Uj(q,N,b)}):Uj(q,N,b)},function(J){!J||J instanceof VY||Uj(q,N,b)})}catch(J){X7M(q,
N,b,null).catch(function(E){!E||E instanceof VY||Uj(q,N,b)})}};
_.zn("userfeedback.api.startFeedback",_.VRF);var Atu=/https?:\/\/\S+\.\S+/,ejJ=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],BkJ=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var nVA=function(q){var N=q.split(""),b=[-263237435,15,N,function(y,J,E){var F=J.length;E.forEach(function(R,c,z){this.push(z[c]=J[(J.indexOf(R)-J.indexOf(this[c])+c+F--)%J.length])},y.split(""))},
function(y,J){y=(y%J.length+J.length)%J.length;J.splice(-y).reverse().forEach(function(E){J.unshift(E)})},
"response",function(){for(var y=64,J=[];++y-J.length-32;){switch(y){case 58:y-=14;case 91:case 92:case 93:continue;case 123:y=47;case 94:case 95:case 96:continue;case 46:y=95}J.push(String.fromCharCode(y))}return J},
null,12,1540023973,65941107,null,N,function(y,J){for(y=(y%J.length+J.length)%J.length;y--;)J.unshift(J.pop())},
695603893,function(y){for(var J=y.length;J;)y.push(y.splice(--J,1)[0])},
"'[;'[(",function(y,J){y.push(J)},
null,function(y,J,E,F,R){return J(E,F,R)},
"continuation",N,function(y,J){if(y.length!=0){J=(J%y.length+y.length)%y.length;var E=y[0];y[0]=y[J];y[J]=E}},
function(){for(var y=64,J=[];++y-J.length-32;){switch(y){case 91:y=44;continue;case 123:y=65;break;case 65:y-=18;continue;case 58:y=96;continue;case 46:y=95}J.push(String.fromCharCode(y))}return J},
'"),/]];'];b[7]=b;b[11]=b;b[18]=b;try{(((0,b[15])(b[21]),b[22])(b[11],b[9]),b[22])(b[new Date("1970-01-01T04:30:12.000+04:30")/1E3],b[1]),((0,b[22])(b[11],b[23]),b[4])(b[10],b[18]),(0,b[20])(b[21],b[14])<<(0,b[17])(b[18],b[1]),(0,b[4])(b[8],b[21]),(0,b[19])((0,b[19])((0,b[17])(b[7],b[9]),b[3],b[20],(0,b[6])(),b[2]),b[3],b[5],(0,b[15])(),b[2])}catch(y){return"aTlOUOubTO4AP____8P_"+q}return N.join("")};_.jg1=new _.yT("runAttestationCommand");var xtJ=new _.yT("verifyCommand");_.$A=new _.yT("accessibilityContext");var v2l=new _.yT("accessibilityData");var GJv=new _.yT("profileCardCommand");var DFn=new _.yT("signInEndpoint");var KDR=new _.yT("signOutEndpoint");var Qgv;_.YUF=new _.yT("accountItemSectionRenderer");Qgv=new _.yT("accountItemRenderer");_.OvF=new _.yT("saveCommandToSessionStorageAction");var w7x=new _.yT("crossAccountChannelTransferEndpoint");var G3J=new _.yT("getAccountMenuEndpoint");_.YWJ=new _.yT("getAccountSwitcherEndpoint");var vmZ=new _.yT("getAccountsListEndpoint");var ivq=new _.yT("getAccountsListInnertubeEndpoint");_.lL1=new _.yT("addToToastAction");var Kzl=new _.yT("hideEnclosingAction");_.fO=new _.yT("replaceEnclosingAction");var Dtl=new _.yT("buttonRefreshAction");var hgM=new _.yT("adsControlFlowOpportunityReceivedCommand");var kJv=new _.yT("openAdAllowlistInstructionCommand");var UtJ=new _.yT("videoMastheadAdPrimaryVideoRenderer");var fLJ=new _.yT("displayAdRenderer");_.CKj=new _.yT("inFeedAdLayoutRenderer");var ILv=new _.yT("sequenceItemInPlayerAdLayoutRenderer");_.TPj=new _.yT("adSlotRenderer");var sgx=new _.yT("adAvatarViewModel");var n2x=new _.yT("adBadgeViewModel");var aLM=new _.yT("adButtonViewModel");var SUl=new _.yT("adImageViewModel");var Psu=new _.yT("reelsAdCardButtonedViewModel");var Wzo=new _.yT("reelsPlayerOverlayLayoutViewModel");var Lzv=new _.yT("formDataDecoratorCommand");var p7E=new _.yT("updateConversationIdCommand");var PKE=new _.yT("showSchedulingPanelCommand");var MR1=new _.yT("backstageCommentsRenderer");var o2F=new _.yT("backstageImageRenderer");var Awj=new _.yT("backstagePostRenderer");var egq=new _.yT("backstageZeroStateRenderer");var BPM=new _.yT("postRenderer");var Hvq=new _.yT("sharedPostRenderer");var qCx=new _.yT("createBackstagePostEndpoint");var NkM=new _.yT("getPostVideoPreviewEndpoint");var bz1=new _.yT("updateBackstagePostEndpoint");var yt1=new _.yT("filterChipTransformCommand");var JtF=new _.yT("insertRichSectionCommand");var r_h=new _.yT("talkToRecsDeselectCommand");var EcJ=new _.yT("talkToRecsNextCommand");var mxh=new _.yT("talkToRecsSelectCommand");var Pmn=new _.yT("talkToRecsUpdateTextCommand");_.FH=new _.yT("browseEndpoint");_.gc1=new _.yT("confirmDialogEndpoint");var Zzv=new _.yT("expandOnHoverCardRenderer");var FSE=new _.yT("lumiereShelfDetailsRenderer");var Rjj=new _.yT("revealBusinessEmailCommand");var d21=new _.yT("validateChannelHandleCommand");var ctR=new _.yT("channelCreationFormEndpoint");var uJx=new _.yT("aboutChannelViewModel");var zjq=new _.yT("channelThumbnailWithLinkRenderer");var $24=new _.yT("channelCreationServiceEndpoint");var tVJ=new _.yT("updateChannelPageSettingsEndpoint");var CO=function(q){this.delegate=q},It=function(){CO.apply(this,arguments)};
_.Y(It,CO);_.$H.Object.defineProperties(It.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(q){this.delegate.entityMetadata=q}}});var m2v=function(){It.apply(this,arguments)};
_.Y(m2v,It);m2v.prototype.getAssociations=function(){return[]};
m2v.prototype.getTypeName=function(){return"channelHandle"};var w9h=new _.yT("webThumbnailDetailsExtensionData");_.O$=new _.yT("commandContext");var rtj=new _.yT("addVideoLinkAction");var Xtj=new _.yT("banAuthorAction");var VV1=new _.yT("createCommentAction");var jNF=new _.yT("createCommentReplyAction");var x2x=new _.yT("createPollAction");var vcM=new _.yT("hideIdentityChipAction");var GqJ=new _.yT("openUpdateCommentDialogAction");var YCx=new _.yT("pinCommentAction");var QNl=new _.yT("removeCommentAction");var Oz4=new _.yT("unpinCommentAction");var TI=new _.yT("updateBackstagePollAction");var wto=new _.yT("updateCommentVoteAction");var izM=new _.yT("commentThreadRenderer");var lhx=function(){It.apply(this,arguments)};
_.Y(lhx,It);lhx.prototype.getAssociations=function(){return[]};
lhx.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var KSq=function(){It.apply(this,arguments)};
_.Y(KSq,It);KSq.prototype.getAssociations=function(){return[]};
KSq.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.D2R=new _.yT("commentDialogRenderer");var hj1=new _.yT("reloadCommentsCommand");var kqJ=new _.yT("updateCommentsSettingsEndpoint");var U2v=new _.yT("commentViewModel");var fhR=new _.yT("triStateButtonViewModel");var CW4=new _.yT("voiceReplyContainerViewModel");_.y6=new _.yT("commandExecutorCommand");var GT=new _.yT("emoji");var IhM=new _.yT("updateCreatorChannelInnertubeCommand");_.Tkx=new _.yT("appendContinuationItemsAction");_.sNR=new _.yT("changeEngagementPanelVisibilityAction");_.lR=new _.yT("continuationCommand");var ncF=new _.yT("hideReportedCommentAction");var ahE=new _.yT("listMutationCommand");_.sj=new _.yT("openPopupAction");var SCj=new _.yT("persistSubscriptionsDisplayPreferencesCommand");var ejx;_.WSl=new _.yT("playlistRemoveVideosAction");_.LSq=new _.yT("updatePlaylistAction");_.ptE=new _.yT("addToPlaylistCommand");_.PWq=new _.yT("endPlaylistCommand");_.MV1=new _.yT("recoverPlaylistCommand");_.ocj=new _.yT("refreshPlaylistCommand");_.AtJ=new _.yT("refreshFormCommand");ejx=new _.yT("openOnePickAddVideoModalCommand");_.DaA=new _.yT("reloadContinuationItemsCommand");_.Bkx=new _.yT("scrollToEngagementPanelCommand");var Hz4=new _.yT("selectCountryCommand");var qDM=new _.yT("showReloadUiCommand");var NC1=new _.yT("undoFeedbackAction");var bij=new _.yT("updateButtonAction");var yGl=new _.yT("updateSubscribeButtonAction");var JGT=new _.yT("updateToggleAction");var ETF=new _.yT("webNativeShareCommand");_.gg=new _.yT("webCommandMetadata");_.nO=new _.yT("webHandleServiceEndpointExtension");var j2A=new _.yT("webNavigationEndpointData");var gTl=new _.yT("backgroundAudioPlaybackCommand");var ZiT=new _.yT("copyLinkCommand");var FCv=new _.yT("playlistVotingRefreshPopupCommand");var RU4=new _.yT("selectChipCommand");var dCl=new _.yT("setCookieCommand");var cGJ=new _.yT("setLocalStorageCommand");var uK4=new _.yT("setPrefStorageEntryCommand");var mCv;_.zU1=new _.yT("settingsUpdateCheckboxCommand");_.$C4=new _.yT("settingsUpdateTextCommand");_.tQ4=new _.yT("settingsUpdateOptionsCommand");mCv=new _.yT("settingsUpdateSwitchCommand");_.rGE=new _.yT("settingsUpdateConnectedAppRendererCommand");var X01=new _.yT("showCreatorChatbotEngagementPanelCommand");var VQR=new _.yT("updateTextInputFormFieldRendererCommand");var jVq=new _.yT("updateToggleButtonStateCommand");var xCT=new _.yT("updateUrlParamCommand");var vTR=new _.yT("webSubmitFormCommand");var GWo=new _.yT("channelSwitcherPageRenderer"),YDR=new _.yT("updateChannelSwitcherPageAction");_.SP=new _.yT("continuationItemRenderer");_.at=new _.yT("richItemRenderer");var QV1=new _.yT("richSectionRenderer");_.OiT=new _.yT("richShelfRenderer");_.w0o=new _.yT("metadataBadgeRenderer");_.iiT=new _.yT("multiPageMenuNotificationSectionRenderer");_.lY1=new _.yT("playlistLoopButtonStateRenderer");var KCq=new _.yT("claimLegacyYoutubeChannelEndpoint");var DC1=new _.yT("getNotificationMenuEndpoint");var hUv=new _.yT("getSearchInVideoCommand");_.kWq=new _.yT("getTranscriptEndpoint");_.EY=new _.yT("signalServiceEndpoint");var UC1=new _.yT("verifyAgeEndpoint");var WkC=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(WkC,_.Rx);WkC.prototype.getPath=function(){return _.xs(this,1)};
WkC.prototype.getValue=function(){return _.xs(this,2)};var fY1=[0,_.LL,-1];var Cej=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Cej,_.Rx);var Szu=_.xB(Cej,[0,_.Md,fY1]);var IY4=new _.yT("dismissalEndpoint");var TCx=new _.yT("elementsCommand");_.QI=new _.yT("innertubeCommand");var sVR=new _.yT("multipleInlinePlaybackCommand");var JFA=new _.yT("loggingDirectives");var nTx=new _.yT("acknowledgeChannelTouStrikeCommand");var aYT=function(){It.apply(this,arguments)};
_.Y(aYT,It);aYT.prototype.getAssociations=function(){return[]};
aYT.prototype.getTypeName=function(){return"booleanEntity"};var SDM=function(){It.apply(this,arguments)};
_.Y(SDM,It);SDM.prototype.getAssociations=function(){return[]};
SDM.prototype.getTypeName=function(){return"stringEntity"};var sl=new _.yT("entityBatchUpdate");_.WCq=new _.yT("entityUpdateCommand");var LCx=function(){It.apply(this,arguments)};
_.Y(LCx,It);LCx.prototype.getAssociations=function(){var q=[];this.delegate.alternateChannel&&q.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&q.push.apply(q,_.a9(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&q.push(this.delegate.oneofChannelEntity);return[].concat(_.a9(new Set(q)))};
LCx.prototype.getTypeName=function(){return"fakeChannel"};var p0o=function(){It.apply(this,arguments)};
_.Y(p0o,It);p0o.prototype.getAssociations=function(){var q=[];this.delegate.entryCollection&&q.push(this.delegate.entryCollection);return[].concat(_.a9(new Set(q)))};
p0o.prototype.getTypeName=function(){return"fakePlaylist"};
var PeJ=function(){It.apply(this,arguments)};
_.Y(PeJ,It);PeJ.prototype.getAssociations=function(){var q=[];this.delegate.parentPlaylist&&q.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var N=_.Z(this.delegate.entries),b=N.next();!b.done;b=N.next())q.push.apply(q,_.a9((new MQx(b.value)).getAssociations()));return[].concat(_.a9(new Set(q)))};
PeJ.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var MQx=function(){CO.apply(this,arguments)};
_.Y(MQx,CO);MQx.prototype.getAssociations=function(){var q=[];this.delegate.video&&q.push(this.delegate.video);return[].concat(_.a9(new Set(q)))};var oTF=function(){It.apply(this,arguments)};
_.Y(oTF,It);oTF.prototype.getAssociations=function(){var q=[];this.delegate.descriptionEntity&&q.push(this.delegate.descriptionEntity);this.delegate.creators&&q.push.apply(q,_.a9(this.delegate.creators));this.delegate.theBiggestFan&&q.push(this.delegate.theBiggestFan);return[].concat(_.a9(new Set(q)))};
oTF.prototype.getTypeName=function(){return"fakeVideo"};
var AG1=function(){It.apply(this,arguments)};
_.Y(AG1,It);AG1.prototype.getAssociations=function(){return[]};
AG1.prototype.getTypeName=function(){return"fakeVideoDescription"};var eUj=new _.yT("fantasyRosterViewModel");var BCq=new _.yT("addFollowUpSurveyCommand");var Hix=new _.yT("getSurveyCommand");var qj1=new _.yT("ratingSurveyOptionRenderer");_.YJ=new _.yT("feedbackEndpoint");var NUj=new _.yT("reportHistoryTableCellRenderer"),bOl=new _.yT("reportHistoryTableTextCellRenderer"),yTE=new _.yT("reportHistoryTableReasonCellRenderer");_.JTT=new _.yT("flagEndpoint");_.Ez4=new _.yT("flowNextStepCommand");_.gzJ=new _.yT("flowPrevStepCommand");var ZOq=new _.yT("getFlowCommand");var FmM=new _.yT("submitFormWithValidationFlowCommand");_.RaM=new _.yT("updateFlowCommand");var dM1=function(){It.apply(this,arguments)};
_.Y(dM1,It);dM1.prototype.getAssociations=function(){return[]};
dM1.prototype.getTypeName=function(){return"flowStateEntity"};var cTE=new _.yT("flowFormState");_.SD=new _.yT("flowStepRenderer");var u6M=new _.yT("gameCardRenderer");var za4=new _.yT("accountLinkingStateChangedCommand");var $Mo=function(){It.apply(this,arguments)};
_.Y($Mo,It);$Mo.prototype.getAssociations=function(){return[]};
$Mo.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var tDJ=new _.yT("changeMiniAppPlayStateCommand");var mM4=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(mM4,_.Rx);var Wa=[1,2,3];var rTF=[0,Wa,wdq,_.Pc,VXE];var XaM=_.xB(mM4,rTF),VDJ=_.vZ(rTF);var jtv=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(jtv,_.Rx);var xMj=[0,_.CL,_.LL];var vzT=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(vzT,_.Rx);var GIl=[0,_.LL,_.CL,-1];var LO=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(LO,_.Rx);var YjR=_.vZ([0,1,xMj,_.Bc,GIl]);var Qto=new _.yT("miniAppScoreChallengeViewModel");var OO1=new _.yT("miniGameCardViewModel");var waM=new _.yT("teaserCardViewModel");var iOq=function(){It.apply(this,arguments)};
_.Y(iOq,It);iOq.prototype.getAssociations=function(){return[]};
iOq.prototype.getTypeName=function(){return"logoEntity"};var lDT=new _.yT("feedbackItemRenderer");var Kmq=function(){It.apply(this,arguments)};
_.Y(Kmq,It);Kmq.prototype.getAssociations=function(){return[]};
Kmq.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.DMx=new _.yT("playerInterstitialRenderer");var hax=new _.yT("getKidsBlocklistPickerCommand");_.kI1=new _.yT("updateKidsBlacklistEndpoint");_.lk=new _.yT("likeEndpoint");var UMx,fDx,CQl;UMx=new _.yT("addChatItemAction");fDx=new _.yT("removeChatItemAction");CQl=new _.yT("markChatItemAsDeletedAction");_.ID1=new _.yT("setLiveChatCollapsedStateAction");var TUj=function(){It.apply(this,arguments)};
_.Y(TUj,It);TUj.prototype.getAssociations=function(){return[]};
TUj.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var stT=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(stT,_.Rx);stT.prototype.getPayloadCase=function(){return _.$s(this,nzo)};
var nzo=[3,4];var aDj=[0,_.Md,[0,[1,2],_.Pc,_.o6,[0,_.pL,1,_.pL]]];var Sjj=[0,_.LL,-1];var WmM=[0,[1],_.Pc];var pO=[0,[1,2],_.Pc,_.o6,[0,_.Bc]];var Pa=[0,_.LL];var LmJ=[0,[0,_.nL,_.sn,[0,_.pL,_.Hc,_.pL]],1,[0,_.nL]];var paJ=[0,I6];var PQx=[0,I6];var MDF=[0,PQx,paJ];var ozJ=[0,_.Md,[0,[1,2],_.Pc,-1],_.nL];var ATR=[0,[2],1,_.o6,[0,_.pL,-1,ozJ]];var eaj=[0,[1],_.o6,[0,_.pL,_.LL,_.Hc,1,ozJ]];var BUx=[0,_.sn,-1,XdE,_.Bc];var HOx=[0,[0,fL,-3],-4];var MM=[0,_.nL,-3,_.LL,_.nL,_.NH,_.nL,aDj,_.nL,-2];var ot=[0,_.Md,[0,[1,2],_.Pc,-1],_.nL,_.LL];var qMJ=[0,[3],pO,[0,[2,3,4],hxx,_.Pc,-2],_.o6,[0,_.LL],_.CL];var NeE=[0,[3,5],_.LL,_.Ta,_.o6,[0,1,_.CL,_.Bc],_.Bc,_.o6,[0,_.Bc,_.CL]];var bm1=[0,2,_.Ta,_.LL,-1];var yIx=[0,Qfq];var JIo=[0,[3,4],2,xN1,_.Pc,_.LL];var E31=[0,_.Bc,-2,1,_.LL];var g3j=[0,_.LL,-1,_.Bc];var Zm1=[0,Pa,function(){return AT},
Pa,_.LL],FJx=[0,_.Bc,Pa,pO,function(){return AT},
_.LL],AT=[-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],Pa,_.Ta,[0,_.nL,1,_.nL,1,_.nL,1,_.Bc,-1,Pa],[0,1,_.nL,2,_.nL,_.Bc,_.nL],1,_.Ta,-1,_.LL,_.Ta,2,fL,[0,fL,_.Ta],_.LL,1,LmJ,1,pO,_.NH,1,[0,[0,_.Md,[0,_.LL,_.nL,_.Bc]]],[0,_.nL,[0,_.CL,[0,_.Hc]],_.CL,1,[0,Gcl,-1]],_.LL,[0,1,_.LL],76,_.o6,[0,pO,ot,LmJ,1,[0,_.Md,ot]],1,_.o6,[0,pO,_.LL,_.nL],
_.o6,[0,pO,WmM],_.o6,[0,pO,WmM,_.Ta],_.o6,[0,pO,WmM],_.o6,[0,pO,_.Md,Pa,pO,iU1],_.o6,[0,pO,Pa,_.LL],_.o6,[0,pO,_.nL,MM,-1,_.nL],4,_.o6,[0,pO,_.nL,_.Ta,MM,_.nL],_.o6,[0,[4,9],pO,_.Bc,_.Ta,_.Pc,ot,1,LmJ,_.LL,_.Pc,E31],_.o6,[0,pO,Pa,pO,_.Bc,_.LL],_.o6,[0,_.nL,pO,MM,_.nL,_.LL],_.o6,[0,pO,Pa,pO,_.Bc,_.LL],1,_.o6,[0,pO,_.Bc,_.LL,MM],_.o6,[0,pO,_.Bc,[0,_.LL,_.Ta],_.LL,_.Ta,_.LL,_.e5,-2,3,g3j,_.Md,g3j,g3j,E31],_.o6,[0,pO,_.Bc,eaj,_.Md,[0,PQx,ATR],Pa,_.Md,MDF,_.LL,1,_.Bc,BUx,HOx,raj,-1],_.o6,[0,pO,[0,_.Hc,
-1,eaj,_.Md,[0,PQx,ATR,paJ],[0,_.bU],1,_.pL],Pa,_.LL],_.o6,[0,pO,ot,_.LL,[0,_.sn]],_.o6,function(){return FJx},
_.o6,[0,pO,_.Ta,_.LL,-1,_.nL],_.o6,[0,[6,7],pO,_.Md,bm1,_.Bc,ot,1,_.o6,JIo,_.o6,yIx],_.o6,[0,_.Md,bm1,_.Bc,_.nL],_.o6,[0,_.LL,wv1,-1],_.o6,[0,Pa,_.Md,MDF,_.LL],_.o6,[0,pO,Pa,_.LL],_.o6,[0,_.e5,_.LL],_.o6,[0,Sjj],_.o6,[0,Sjj],_.o6,[0,ot],_.o6,[0,Pa,ot],_.o6,function(){return Zm1},
_.o6,[0,Pa,_.LL],_.o6,[0,Pa,_.LL],1,_.o6,[0,_.nL,pO,MM,_.nL,MM],_.o6,[0,_.bU],1,_.o6,[0],1,_.o6,[0,Pa,_.Bc,pO,_.Bc],_.o6,[0,[1,2],_.o6,JIo,_.o6,yIx,_.Ta],_.o6,[0,_.bU,ot,NeE,_.LL,_.Ta],_.o6,[0,NeE,_.LL,_.Ta],_.o6,[0,BUx,ot,_.nL,HOx],_.o6,qMJ,_.o6,[0],_.o6,[0,_.LL,-1,_.CL],_.o6,[0,Pa,_.LL],_.o6,[0,qMJ,_.CL,_.LL],_.o6,[0,pO,MM,_.nL],_.o6,[0,pO,MM,_.nL],_.o6,[0,BUx,HOx,ot,_.NH,_.nL,raj,-1],_.o6,[0,pO,MM,_.nL]];var RsT=[0,_.Md,AT];var dz4=_.xB(stT,[0,nzo,1,_.CL,_.o6,[0,[18,22,24],RsT,3,[0,RsT],1,_.CL,[0,_.Md,[0,_.Ta,fL],_.Ta],1,AT,-1,[0,_.Wc,-2,_.NH,_.Wc,-1,_.NH,_.Wc,aDj,_.Wc,-2],tXj,[!0,_.LL,[0,WmM,2,_.LL,_.Ta,_.nL,2,_.LL,_.e5]],[0,[1,2,3],[5,6],_.o6,[0,_.pL],_.o6,[0,_.pL,-1],_.o6,[0,_.pL],1,_.o6,Sjj,_.o6,[0,_.LL]],[0,AT,-1],_.bU,AT,_.o6,AT,[0,RsT],_.CL,AT,_.o6,AT,_.LL,_.o6,AT],_.o6,Pq1,_.CL]);var cIF=new _.yT("liveChatEndpoint");var uFE=new _.yT("liveChatItemContextMenuEndpoint");var zsq=new _.yT("liveChatReplayEndpoint");_.$zE=new _.yT("emojiPickerRenderer");var tOR=new _.yT("liveChatAuthorBadgeViewModel");var mzo=new _.yT("deleteLiveChatMessageCommand");var rIq=new _.yT("liveChatActionEndpoint");var Xb1=new _.yT("createLiveChatPollEndpoint");var VOx=new _.yT("manageLiveChatUserEndpoint");var jM1=new _.yT("moderateLiveChatEndpoint");_.xzx=new _.yT("sendLiveChatMessageEndpoint");var v34=new _.yT("sendLiveChatVoteEndpoint");var GDo=new _.yT("clearLocationCommand");var YMT=new _.yT("resolveLocationCommand");var QMj=new _.yT("interactionLoggingCommandMetadata");var OmE=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(OmE,_.Rx);var wbM=function(q,N){return _.VE(q,1,N)};var imx=[0,_.nL];var lOJ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(lOJ,_.Rx);var KJT=function(q,N){return Dy(q,1,OmE,N)};lOJ.prototype.JSC$12399_serializeBinary=PXJ([0,_.Md,imx]);var jVR={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 Dzq={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"},
hsx={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 Nxn={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"};_.LQD=new _.yT("logFlowLoggingEventCommand");_.Ri=new _.yT("loggingContext");var kDv=new _.yT("audioTrackSelectActionCommand");var UzT=new _.yT("captionLanguageSelectActionCommand");var fOE=new _.yT("showAudioTrackPickerActionCommand");var Co4=new _.yT("showCaptionLanguageSelectActionCommand");var IOx=new _.yT("dismissDialogEndpoint");var Teo=new _.yT("dismissPlayerOverlayCommand");var sME=new _.yT("hideItemSectionVideosByIdCommand");var n3E=new _.yT("showMiniplayerCommand");var aOq=function(){It.apply(this,arguments)};
_.Y(aOq,It);aOq.prototype.getAssociations=function(){return[]};
aOq.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var SMM=function(){It.apply(this,arguments)};
_.Y(SMM,It);SMM.prototype.getAssociations=function(){return[]};
SMM.prototype.getTypeName=function(){return"downloadStatusEntity"};var WJM=function(){It.apply(this,arguments)};
_.Y(WJM,It);WJM.prototype.getAssociations=function(){return[]};
WJM.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var LJJ=function(){It.apply(this,arguments)};
_.Y(LJJ,It);LJJ.prototype.getAssociations=function(){var q=[];this.delegate.downloadsList&&q.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&q.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&q.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&q.push(this.delegate.refresh);return[].concat(_.a9(new Set(q)))};
LJJ.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var pbJ=function(){It.apply(this,arguments)};
_.Y(pbJ,It);pbJ.prototype.getAssociations=function(){var q=[];this.delegate.refresh&&q.push(this.delegate.refresh);if(this.delegate.downloads)for(var N=_.Z(this.delegate.downloads),b=N.next();!b.done;b=N.next())q.push.apply(q,_.a9((new Po1(b.value)).getAssociations()));return[].concat(_.a9(new Set(q)))};
pbJ.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var Po1=function(){CO.apply(this,arguments)};
_.Y(Po1,CO);Po1.prototype.getAssociations=function(){var q=[];this.delegate.video&&q.push(this.delegate.video);this.delegate.playlist&&q.push(this.delegate.playlist);this.delegate.videoItem&&q.push(this.delegate.videoItem);this.delegate.playlistItem&&q.push(this.delegate.playlistItem);return[].concat(_.a9(new Set(q)))};var MOv=function(){It.apply(this,arguments)};
_.Y(MOv,It);MOv.prototype.getAssociations=function(){var q=[];this.delegate.localImageEntities&&q.push.apply(q,_.a9(this.delegate.localImageEntities));return[].concat(_.a9(new Set(q)))};
MOv.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var o3o=function(){It.apply(this,arguments)};
_.Y(o3o,It);o3o.prototype.getAssociations=function(){var q=[];this.delegate.playbackData&&q.push(this.delegate.playbackData);this.delegate.localImageEntities&&q.push.apply(q,_.a9(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&q.push(this.delegate.videoDownloadContextEntity);return[].concat(_.a9(new Set(q)))};
o3o.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var AIJ=function(){It.apply(this,arguments)};
_.Y(AIJ,It);AIJ.prototype.getAssociations=function(){return[]};
AIJ.prototype.getTypeName=function(){return"offlineabilityEntity"};var esF=function(){It.apply(this,arguments)};
_.Y(esF,It);esF.prototype.getAssociations=function(){var q=[];this.delegate.fakeChildren&&q.push.apply(q,_.a9(this.delegate.fakeChildren));return[].concat(_.a9(new Set(q)))};
esF.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var BeM=function(){It.apply(this,arguments)};
_.Y(BeM,It);BeM.prototype.getAssociations=function(){var q=[];this.delegate.video&&q.push(this.delegate.video);this.delegate.playbackData&&q.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&q.push(this.delegate.offlineVideoPolicy);return[].concat(_.a9(new Set(q)))};
BeM.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var HmM=function(){It.apply(this,arguments)};
_.Y(HmM,It);HmM.prototype.getAssociations=function(){return[]};
HmM.prototype.getTypeName=function(){return"continuationTokenEntity"};var qSx=function(){It.apply(this,arguments)};
_.Y(qSx,It);qSx.prototype.getAssociations=function(){var q=[];this.delegate.channelOwner&&q.push(this.delegate.channelOwner);this.delegate.videos&&q.push.apply(q,_.a9(this.delegate.videos));this.delegate.collaboratorChannels&&q.push.apply(q,_.a9(this.delegate.collaboratorChannels));this.delegate.downloadState&&q.push(this.delegate.downloadState);this.delegate.refresh&&q.push(this.delegate.refresh);return[].concat(_.a9(new Set(q)))};
qSx.prototype.getTypeName=function(){return"mainPlaylistEntity"};var NwF=function(){It.apply(this,arguments)};
_.Y(NwF,It);NwF.prototype.getAssociations=function(){var q=[];this.delegate.video&&q.push(this.delegate.video);this.delegate.channelContributor&&q.push(this.delegate.channelContributor);return[].concat(_.a9(new Set(q)))};
NwF.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var bPM=function(){CO.apply(this,arguments)};
_.Y(bPM,CO);bPM.prototype.getAssociations=function(){var q=[];this.delegate.recommendedVideoMetadata&&q.push.apply(q,_.a9((new y2o(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.a9(new Set(q)))};
var y2o=function(){CO.apply(this,arguments)};
_.Y(y2o,CO);y2o.prototype.getAssociations=function(){var q=[];this.delegate.localImageEntities&&q.push.apply(q,_.a9(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&q.push(this.delegate.videoDownloadContextEntity);return[].concat(_.a9(new Set(q)))};var J2x=function(){CO.apply(this,arguments)};
_.Y(J2x,CO);J2x.prototype.getAssociations=function(){var q=[];this.delegate.playbackPosition&&q.push(this.delegate.playbackPosition);return[].concat(_.a9(new Set(q)))};var E64=function(){It.apply(this,arguments)};
_.Y(E64,It);E64.prototype.getAssociations=function(){var q=[];this.delegate.owner&&q.push(this.delegate.owner);this.delegate.downloadState&&q.push(this.delegate.downloadState);this.delegate.userState&&q.push.apply(q,_.a9((new J2x(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&q.push.apply(q,_.a9((new bPM(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.a9(new Set(q)))};
E64.prototype.getTypeName=function(){return"mainVideoEntity"};var g6j=function(){It.apply(this,arguments)};
_.Y(g6j,It);g6j.prototype.getAssociations=function(){var q=[];this.delegate.userChannelDetails&&q.push(this.delegate.userChannelDetails);return[].concat(_.a9(new Set(q)))};
g6j.prototype.getTypeName=function(){return"ytMainChannelEntity"};var ZPF=function(){It.apply(this,arguments)};
_.Y(ZPF,It);ZPF.prototype.getAssociations=function(){var q=[];this.delegate.channelOwner&&q.push(this.delegate.channelOwner);this.delegate.playbackPosition&&q.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&q.push.apply(q,_.a9(this.delegate.localImageEntities));this.delegate.downloadStatus&&q.push(this.delegate.downloadStatus);return[].concat(_.a9(new Set(q)))};
ZPF.prototype.getTypeName=function(){return"ytMainVideoEntity"};var jRA=new _.yT("downloadsPageSmartDownloadsOptInBannerParams");var Yud=new _.yT("downloadsPageUpsellBannerParams");var FNT=function(){It.apply(this,arguments)};
_.Y(FNT,It);FNT.prototype.getAssociations=function(){return[]};
FNT.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var RP4=function(){It.apply(this,arguments)};
_.Y(RP4,It);RP4.prototype.getAssociations=function(){return[]};
RP4.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var dA1=function(){It.apply(this,arguments)};
_.Y(dA1,It);dA1.prototype.getAssociations=function(){return[]};
dA1.prototype.getTypeName=function(){return"macroMarkerEntity"};var c2j=function(){It.apply(this,arguments)};
_.Y(c2j,It);c2j.prototype.getAssociations=function(){return[]};
c2j.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var u2R=function(){It.apply(this,arguments)};
_.Y(u2R,It);u2R.prototype.getAssociations=function(){return[]};
u2R.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var zPj=function(){It.apply(this,arguments)};
_.Y(zPj,It);zPj.prototype.getAssociations=function(){return[]};
zPj.prototype.getTypeName=function(){return"playerStateEntity"};var $A1=function(){It.apply(this,arguments)};
_.Y($A1,It);$A1.prototype.getAssociations=function(){return[]};
$A1.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var tU1=function(){It.apply(this,arguments)};
_.Y(tU1,It);tU1.prototype.getAssociations=function(){return[]};
tU1.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var mAM=function(){It.apply(this,arguments)};
_.Y(mAM,It);mAM.prototype.getAssociations=function(){return[]};
mAM.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.eD=new _.yT("dislikeButtonViewModel");_.Ba=new _.yT("likeButtonViewModel");var r2T=new _.yT("videoSummaryContentViewModel");var XWF=new _.yT("videoSummaryParagraphViewModel");var VUM=new _.yT("changeTimelyActionVisibilityCommand");var jzR=new _.yT("hideEngagementPanelEndpoint");var xA4=new _.yT("refreshPanelEndpoint");var v6M=new _.yT("scrollToSectionEndpoint");var GVv=new _.yT("seekToVideoTimestampCommand");_.Gt=new _.yT("showEngagementPanelEndpoint");var YSo=new _.yT("showTransientPlayerScrimOverlayCommand");var Qzq=new _.yT("toggleEngagementPanelCommand");_.OPE=new _.yT("createBroadcastCommand");var wWF=new _.yT("metadataUpdateCommand");var iPM=function(){It.apply(this,arguments)};
_.Y(iPM,It);iPM.prototype.getAssociations=function(){return[]};
iPM.prototype.getTypeName=function(){return"featuredProductsEntity"};var lGx=function(){It.apply(this,arguments)};
_.Y(lGx,It);lGx.prototype.getAssociations=function(){return[]};
lGx.prototype.getTypeName=function(){return"pinnedProductEntity"};var KN1=function(){It.apply(this,arguments)};
_.Y(KN1,It);KN1.prototype.getAssociations=function(){return[]};
KN1.prototype.getTypeName=function(){return"trendingOfferEntity"};_.DAq=new _.yT("merchandiseShelfRenderer");var hPF=new _.yT("shoppingContentLineItemViewModel");var kV1=new _.yT("gridMovieRenderer");_.UA1=new _.yT("movieRenderer");var fGM=function(){It.apply(this,arguments)};
_.Y(fGM,It);fGM.prototype.getAssociations=function(){return[]};
fGM.prototype.getTypeName=function(){return"compositeSourceEntity"};var CdF=function(){It.apply(this,arguments)};
_.Y(CdF,It);CdF.prototype.getAssociations=function(){var q=[];this.delegate.compositeSourceKeys&&q.push.apply(q,_.a9(this.delegate.compositeSourceKeys));return[].concat(_.a9(new Set(q)))};
CdF.prototype.getTypeName=function(){return"multiviewStagingEntity"};var IGx=function(){It.apply(this,arguments)};
_.Y(IGx,It);IGx.prototype.getAssociations=function(){var q=[];this.delegate.trackDownloadMetadatas&&q.push.apply(q,_.a9(this.delegate.trackDownloadMetadatas));return[].concat(_.a9(new Set(q)))};
IGx.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var Twv=function(){It.apply(this,arguments)};
_.Y(Twv,It);
Twv.prototype.getAssociations=function(){var q=[];this.delegate.downloadedTracks&&q.push.apply(q,_.a9(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&q.push.apply(q,_.a9(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&q.push.apply(q,_.a9(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&q.push.apply(q,_.a9(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&q.push.apply(q,_.a9(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
q.push.apply(q,_.a9(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&q.push.apply(q,_.a9(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&q.push.apply(q,_.a9(this.delegate.metadataOnlyTracks));return[].concat(_.a9(new Set(q)))};
Twv.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var szM=function(){It.apply(this,arguments)};
_.Y(szM,It);szM.prototype.getAssociations=function(){var q=[];this.delegate.trackDownloadMetadatas&&q.push.apply(q,_.a9(this.delegate.trackDownloadMetadatas));return[].concat(_.a9(new Set(q)))};
szM.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var n61=function(){It.apply(this,arguments)};
_.Y(n61,It);n61.prototype.getAssociations=function(){var q=[];this.delegate.playbackData&&q.push(this.delegate.playbackData);this.delegate.localImageEntities&&q.push.apply(q,_.a9(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&q.push(this.delegate.videoDownloadContextEntity);return[].concat(_.a9(new Set(q)))};
n61.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var aGq=function(){It.apply(this,arguments)};
_.Y(aGq,It);
aGq.prototype.getAssociations=function(){var q=[];this.delegate.musicLibraryStatusEntity&&q.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&q.push.apply(q,_.a9(this.delegate.primaryArtists));this.delegate.details&&q.push(this.delegate.details);this.delegate.userDetails&&q.push(this.delegate.userDetails);this.delegate.tracks&&q.push.apply(q,_.a9(this.delegate.tracks));this.delegate.share&&q.push(this.delegate.share);this.delegate.downloadMetadata&&q.push(this.delegate.downloadMetadata);this.delegate.refresh&&
q.push(this.delegate.refresh);return[].concat(_.a9(new Set(q)))};
aGq.prototype.getTypeName=function(){return"musicAlbumRelease"};
var SS1=function(){It.apply(this,arguments)};
_.Y(SS1,It);SS1.prototype.getAssociations=function(){var q=[];this.delegate.albumRelease&&q.push(this.delegate.albumRelease);this.delegate.tracks&&q.push.apply(q,_.a9(this.delegate.tracks));return[].concat(_.a9(new Set(q)))};
SS1.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var WNj=function(){It.apply(this,arguments)};
_.Y(WNj,It);WNj.prototype.getAssociations=function(){var q=[];this.delegate.albumRelease&&q.push(this.delegate.albumRelease);return[].concat(_.a9(new Set(q)))};
WNj.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var LNl=function(){It.apply(this,arguments)};
_.Y(LNl,It);LNl.prototype.getAssociations=function(){var q=[];this.delegate.details&&q.push(this.delegate.details);this.delegate.userDetails&&q.push(this.delegate.userDetails);return[].concat(_.a9(new Set(q)))};
LNl.prototype.getTypeName=function(){return"musicArtist"};
var pWJ=function(){It.apply(this,arguments)};
_.Y(pWJ,It);pWJ.prototype.getAssociations=function(){var q=[];this.delegate.parentArtist&&q.push(this.delegate.parentArtist);return[].concat(_.a9(new Set(q)))};
pWJ.prototype.getTypeName=function(){return"musicArtistDetail"};
var PdR=function(){It.apply(this,arguments)};
_.Y(PdR,It);PdR.prototype.getAssociations=function(){var q=[];this.delegate.parentArtist&&q.push(this.delegate.parentArtist);return[].concat(_.a9(new Set(q)))};
PdR.prototype.getTypeName=function(){return"musicArtistUserDetail"};var MUv=function(){It.apply(this,arguments)};
_.Y(MUv,It);MUv.prototype.getAssociations=function(){return[]};
MUv.prototype.getTypeName=function(){return"musicLibraryEdit"};var o6x=function(){It.apply(this,arguments)};
_.Y(o6x,It);o6x.prototype.getAssociations=function(){return[]};
o6x.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var A2x=function(){It.apply(this,arguments)};
_.Y(A2x,It);
A2x.prototype.getAssociations=function(){var q=[];this.delegate.tracks&&q.push.apply(q,_.a9(this.delegate.tracks));this.delegate.refresh&&q.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&q.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&q.push(this.delegate.details);this.delegate.downloadMetadata&&q.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&q.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&q.push(this.delegate.userDetails);this.delegate.entryCollection&&
q.push(this.delegate.entryCollection);this.delegate.share&&q.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&q.push.apply(q,_.a9((new ePv(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.a9(new Set(q)))};
A2x.prototype.getTypeName=function(){return"musicPlaylist"};
var ePv=function(){CO.apply(this,arguments)};
_.Y(ePv,CO);ePv.prototype.getAssociations=function(){var q=[];this.delegate.creatorEntity&&q.push(this.delegate.creatorEntity);return[].concat(_.a9(new Set(q)))};var Bwl=function(){It.apply(this,arguments)};
_.Y(Bwl,It);Bwl.prototype.getAssociations=function(){return[]};
Bwl.prototype.getTypeName=function(){return"musicShare"};var HPo=function(){It.apply(this,arguments)};
_.Y(HPo,It);
HPo.prototype.getAssociations=function(){var q=[];this.delegate.musicLibraryStatusEntity&&q.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&q.push.apply(q,_.a9(this.delegate.artists));this.delegate.audioModeVersion&&q.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&q.push(this.delegate.videoModeVersion);this.delegate.userDetails&&q.push(this.delegate.userDetails);this.delegate.details&&q.push(this.delegate.details);this.delegate.albumRelease&&q.push(this.delegate.albumRelease);this.delegate.share&&
q.push(this.delegate.share);this.delegate.libraryEdit&&q.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&q.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&q.push(this.delegate.playbackPosition);this.delegate.lyrics&&q.push(this.delegate.lyrics);return[].concat(_.a9(new Set(q)))};
HPo.prototype.getTypeName=function(){return"musicTrack"};
var quF=function(){It.apply(this,arguments)};
_.Y(quF,It);quF.prototype.getAssociations=function(){var q=[];this.delegate.parentTrack&&q.push(this.delegate.parentTrack);return[].concat(_.a9(new Set(q)))};
quF.prototype.getTypeName=function(){return"musicTrackDetail"};
var NT1=function(){It.apply(this,arguments)};
_.Y(NT1,It);NT1.prototype.getAssociations=function(){var q=[];this.delegate.parentTrack&&q.push(this.delegate.parentTrack);return[].concat(_.a9(new Set(q)))};
NT1.prototype.getTypeName=function(){return"musicTrackUserDetail"};var sA=new _.yT("musicResponsiveListItemRenderer");var Uad=new _.yT("addToPlaylistEndpoint");var bVv=new _.yT("captionPickerEndpoint");var y$F=new _.yT("suggestStats");var J$j=new _.yT("backstageImageUploadEndpoint");var EYq=new _.yT("createBackstagePostDialogEndpoint");_.gYR=new _.yT("createCommentReplyDialogEndpoint");_.ZV4=new _.yT("updateCommentDialogEndpoint");_.FuJ=new _.yT("updateCommentReplyDialogEndpoint");var RZ1=new _.yT("menuEndpoint");var rFC=new _.yT("modalEndpoint");var dTT=new _.yT("playlistEditorEndpoint");var c$1=new _.yT("copyTextEndpoint");var u51,zZF;u51=new _.yT("shareEndpoint");zZF=new _.yT("shareEntityEndpoint");_.$To=new _.yT("shareEntityServiceEndpoint");_.OXD=new _.yT("userFeedbackEndpoint");_.nx=new _.yT("watchEndpoint");var gxC=new _.yT("watchPlaylistEndpoint");var t91=new _.yT("addUpcomingEventReminderEndpoint");_.Ha=new _.yT("getCommentsFromInboxCommand");var mTl=new _.yT("notificationOptOutEndpoint");var r$T=new _.yT("recordNotificationInteractionsEndpoint");var XQT=new _.yT("removeUpcomingEventReminderEndpoint");_.aE=new _.yT("getDownloadActionCommand");_.V94=new _.yT("offlineOrchestrationActionCommand");var jRR=function(){It.apply(this,arguments)};
_.Y(jRR,It);jRR.prototype.getAssociations=function(){return[]};
jRR.prototype.getTypeName=function(){return"captionTrack"};var xTx=function(){It.apply(this,arguments)};
_.Y(xTx,It);xTx.prototype.getAssociations=function(){return[]};
xTx.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var vYF=function(){It.apply(this,arguments)};
_.Y(vYF,It);vYF.prototype.getAssociations=function(){return[]};
vYF.prototype.getTypeName=function(){return"offlineVideoPolicy"};var GEE=function(){It.apply(this,arguments)};
_.Y(GEE,It);GEE.prototype.getAssociations=function(){return[]};
GEE.prototype.getTypeName=function(){return"offlineVideoStreams"};var Yu1=function(){It.apply(this,arguments)};
_.Y(Yu1,It);Yu1.prototype.getAssociations=function(){var q=[];this.delegate.transfer&&q.push(this.delegate.transfer);this.delegate.adsPlaybackData&&q.push.apply(q,_.a9(this.delegate.adsPlaybackData));this.delegate.drmLicense&&q.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&q.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&q.push(this.delegate.videoDownloadContextEntity);return[].concat(_.a9(new Set(q)))};
Yu1.prototype.getTypeName=function(){return"playbackData"};var QRJ=function(){It.apply(this,arguments)};
_.Y(QRJ,It);QRJ.prototype.getAssociations=function(){return[]};
QRJ.prototype.getTypeName=function(){return"refresh"};var OVT=function(){It.apply(this,arguments)};
_.Y(OVT,It);OVT.prototype.getAssociations=function(){var q=[];this.delegate.offlineVideoStreams&&q.push.apply(q,_.a9(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&q.push.apply(q,_.a9(this.delegate.captionTrack));return[].concat(_.a9(new Set(q)))};
OVT.prototype.getTypeName=function(){return"transfer"};var wQx=function(){It.apply(this,arguments)};
_.Y(wQx,It);wQx.prototype.getAssociations=function(){return[]};
wQx.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var iVE=new _.yT("showMoreDrawerCommand");var lcx=new _.yT("updateEngagementPanelContentCommand");var KuF=new _.yT("getPdgBuyFlowCommand");var DTE=new _.yT("liveChatPurchaseMessageEndpoint");var hZx=new _.yT("openSuperStickerBuyFlowCommand");var kE4=new _.yT("updatePdgFeatureEnablementCommand");var UTx=function(){It.apply(this,arguments)};
_.Y(UTx,It);UTx.prototype.getAssociations=function(){return[]};
UTx.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var fc1=function(){It.apply(this,arguments)};
_.Y(fc1,It);fc1.prototype.getAssociations=function(){return[]};
fc1.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.Cwj=new _.yT("pdgCommentChipRenderer");_.Ic4=new _.yT("permissionRoleBottomBarRenderer");_.TTx=new _.yT("updatePermissionRoleCommand");var sRj=new _.yT("prefetchWatchCommand");var nYl=new _.yT("updatePlayerErrorMessageCommand");var Q8n=new _.yT("toggleCaptionsVisibilityCommand");var acl=new _.yT("playerDisclosureViewModel");_.SuT=new _.yT("quickActionsViewModel");var WuR=new _.yT("playerResponse");var Luq=new _.yT("playlistRenderer");_.pQF=new _.yT("playlistVideoListRenderer");_.qz=new _.yT("playlistEditEndpoint");var PwT=new _.yT("createImagePollCommand");var M9o=new _.yT("createQuizCommand");var oYJ=new _.yT("quizRenderer");var A$v=new _.yT("uploadedVideoRenderer");var eZ1=new _.yT("decorateMessageEndpoint");var BT1=new _.yT("lpOfferCardOptionViewModel");var HVT=new _.yT("sfvAudioItemPlaybackCommand");var q6T=function(){It.apply(this,arguments)};
_.Y(q6T,It);q6T.prototype.getAssociations=function(){return[]};
q6T.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.Nz=new _.yT("reelNonVideoContentEndpoint");_.uI=new _.yT("reelWatchEndpoint");_.bo=new _.yT("reelItemRenderer");var N7M=new _.yT("reelMetapanelViewModel");_.yx=new _.yT("reelNonVideoContentRenderer");_.bgv=new _.yT("reelPlayerOverlayRenderer");var y01=new _.yT("shortsLockupViewModel");var J0l=new _.yT("sponsorButtonViewModel");var Ewo=new _.yT("reelItemWatchResponse");var gwj=new _.yT("textBadgeRenderer");_.JI=new _.yT("buttonRenderer");_.EM=new _.yT("toggleButtonRenderer");var TtZ=new _.yT("switchButtonViewModel");_.ZgJ=new _.yT("confirmDialogRenderer");var Fy1;Fy1=new _.yT("menuRenderer");_.RkR=new _.yT("menuFlexibleItemRenderer");var dJj=new _.yT("pollRenderer");_.c0o=new _.yT("backgroundPromoRenderer");var zkj;_.uxl=new _.yT("chipCloudRenderer");zkj=new _.yT("chipCloudChipRenderer");var $J4=new _.yT("dropdownRenderer");var tsJ=new _.yT("gridVideoRenderer");_.mJo=new _.yT("itemSectionRenderer");_.r0E=new _.yT("messageRenderer");var X6J=new _.yT("sortFilterHeaderRenderer");_.ge=new _.yT("videoRenderer");var Vsl=new _.yT("resolveUrlCommandMetadata");var jk1=function(){It.apply(this,arguments)};
_.Y(jk1,It);jk1.prototype.getAssociations=function(){return[]};
jk1.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.xJo=new _.yT("getAnswerCommand");_.R0=new _.yT("searchEndpoint");var vwJ=new _.yT("genAiRichTextViewModel");var h1n=new _.yT("overviewAnswerViewModel");var G9x=new _.yT("videoOverviewViewModel");var Y6E=new _.yT("addToPlaylistServiceEndpoint");var Qko=new _.yT("clearSearchHistoryEndpoint");var OgE=new _.yT("clearWatchHistoryEndpoint");var w61=new _.yT("webSerializedServiceEndpointExtension");_.ig1=new _.yT("createCommentEndpoint");var lto=new _.yT("createCommentReplyEndpoint");var Kyx=new _.yT("performCommentActionEndpoint");var DJx=new _.yT("updateCommentEndpoint");var hkE=new _.yT("updateCommentReplyEndpoint");_.ZO=new _.yT("createPlaylistServiceEndpoint");var k94=new _.yT("deletePlaylistEndpoint");var UJv=new _.yT("deleteVideoEndpoint");var k3A=new _.yT("getReportFormEndpoint");var ftR=new _.yT("modifyChannelNotificationPreferenceEndpoint");var LDA;_.RD=new _.yT("offlinePlaylistEndpoint");LDA={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 pSd;_.F3=new _.yT("offlineVideoEndpoint");pSd={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 CPx=new _.yT("pingingEndpoint");_.Itv=new _.yT("selectActiveIdentityEndpoint");var T7o=new _.yT("setSettingEndpoint");var Xoz=new _.yT("undoFeedbackEndpoint");var skx=new _.yT("unsubscribeEndpoint");_.nwx=new _.yT("updatedMetadataEndpoint");var at1=function(){It.apply(this,arguments)};
_.Y(at1,It);at1.prototype.getAssociations=function(){return[]};
at1.prototype.getTypeName=function(){return"settingEntity"};_.S6j=new _.yT("updateLocalAppSettingCommand");var WyF=new _.yT("saveImageToDeviceEndpoint");var Ly4=new _.yT("shareImageCommand");var p6J=new _.yT("sharingProviderDataCommand");var PPq=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(PPq,_.Rx);var Msl=[0,_.LL,-1];PPq.prototype.JSC$12606_serializeBinary=PXJ(Msl);var owF=_.vZ(Msl);var A0F=new _.yT("userMentionSuggestionRenderer");var ek1=new _.yT("liveChatTunnelCommand");var B7o=new _.yT("showSponsorshipsGiftOfferDialogCommand");var HgR=new _.yT("sponsorshipsScrollableShelfViewModel");var qbl=new _.yT("updateUpcomingEventReminderButtonStateCommand");var N2M=new _.yT("upcomingEventReminderButtonStateRenderer");var bEq=new _.yT("subscribeEndpoint");var yPF=new _.yT("registerTasksCommand");var JPJ=new _.yT("hideSheetCommand");var E$J=new _.yT("hideSnackbarCommand");var g$M=new _.yT("showDialogCommand");_.tO=new _.yT("showSheetCommand");var ZEq=new _.yT("showSnackbarCommand");var F$T=function(){It.apply(this,arguments)};
_.Y(F$T,It);F$T.prototype.getAssociations=function(){return[]};
F$T.prototype.getTypeName=function(){return"chipEntity"};var RH4=function(){It.apply(this,arguments)};
_.Y(RH4,It);RH4.prototype.getAssociations=function(){return[]};
RH4.prototype.getTypeName=function(){return"dismissState"};_.wj=new _.yT("avatarViewModel");var d84=new _.yT("badgeViewModel");_.FF=new _.yT("buttonViewModel");_.RM=new _.yT("chipViewModel");var u9n=new _.yT("collectionThumbnailViewModel");var cPo=new _.yT("contentPreviewImageViewModel");var uiF=new _.yT("decoratedAvatarViewModel");_.EuC=new _.yT("engagementBarViewModel");_.zH4=new _.yT("imageBannerViewModel");var $8T=new _.yT("lockupContentMetadataRowExtension");_.tmJ=new _.yT("lockupMetadataViewModel");_.m81=new _.yT("lockupViewModel");var rP1=new _.yT("avatarStackViewModel");_.xWv=new _.yT("contentMetadataViewModel");var vtl=function(){It.apply(this,arguments)};
_.Y(vtl,It);vtl.prototype.getAssociations=function(){return[]};
vtl.prototype.getTypeName=function(){return"pageHeaderEntity"};_.GQo=new _.yT("pageHeaderViewModel");var Yol=new _.yT("snackbarViewModel");var Qr1=new _.yT("thumbnailHoverOverlayToggleActionsViewModel");_.de=new _.yT("toggleButtonViewModel");var ORj=function(){It.apply(this,arguments)};
_.Y(ORj,It);ORj.prototype.getAssociations=function(){return[]};
ORj.prototype.getTypeName=function(){return"votingEntity"};_.guJ=new _.yT("votingViewModel");var wFR=new _.yT("sectionHeaderViewModel");var iRR=new _.yT("notifyDropdownOptionSelectedCommand");var uId=new _.yT("listViewModel");_.mI=new _.yT("listItemViewModel");var cyA=new _.yT("toggleableListItemViewModel");var lVx=new _.yT("dialogHeaderViewModel");var KPx=function(){It.apply(this,arguments)};
_.Y(KPx,It);KPx.prototype.getAssociations=function(){return[]};
KPx.prototype.getTypeName=function(){return"dataFreshnessEntity"};var xXJ=new _.yT("suspenseViewModel");var DWo=new _.yT("tooltipViewModel");var hbF=function(){It.apply(this,arguments)};
_.Y(hbF,It);hbF.prototype.getAssociations=function(){return[]};
hbF.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var kQx=function(){It.apply(this,arguments)};
_.Y(kQx,It);kQx.prototype.getAssociations=function(){return[]};
kQx.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var UW1=function(){It.apply(this,arguments)};
_.Y(UW1,It);UW1.prototype.getAssociations=function(){return[]};
UW1.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.fVJ=new _.yT("transcriptSubmitCaptionCorrectionCommand");var CDx=function(){It.apply(this,arguments)};
_.Y(CDx,It);CDx.prototype.getAssociations=function(){return[]};
CDx.prototype.getTypeName=function(){return"buttonEntity"};var EWA=new _.yT("unpluggedStringRunImage");var IVx=new _.yT("tabViewModel");var Tmx=new _.yT("tabbedViewModel");var srE=function(){It.apply(this,arguments)};
_.Y(srE,It);srE.prototype.getAssociations=function(){return[]};
srE.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.ntE=new _.yT("updateDescriptionAction");var aVJ=new _.yT("updateToggleButtonTextAction");var SoM=new _.yT("showFullscreenPlayerControlsCommand");var WPl=new _.yT("updateVideoMetadataCommand");_.LPR=new _.yT("autoplaySwitchButtonRenderer");var wh;_.pF4=new _.yT("multiMarkersPlayerBarRenderer");wh=new _.yT("chapterRenderer");var PDv=new _.yT("heatMarkerRenderer");var ljd=new _.yT("heatmapRenderer");var MYJ=new _.yT("smartSkipPlayerScrimOverlayRenderer");var ot1=new _.yT("timedMarkerDecorationRenderer");var pUh=new _.yT("postWebToNativeMessageCommand");var Q_=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Q_,_.Rx);Q_.prototype.getMethodName=function(){return _.xs(this,1)};var Adj=[0,_.LL,-2];Q_.prototype.JSC$12628_serializeBinary=PXJ(Adj);var ebx=_.xB(Q_,Adj);var BmF=new _.yT("whitelistEditEndpoint");var HRx=new _.yT("clearUrlParamCommand");var qET=new _.yT("commerceActionCommand");_.NKT=new _.yT("getPaymentInstrumentsParamsCommand");var bSM=new _.yT("getPaymentsClientTokenCommand");var yvM=new _.yT("googlePaymentBillingCommand");var JvR=new _.yT("googlePaymentPurchaseManagerCommand");_.Ex4=new _.yT("logGtmCommand");var gx1=new _.yT("updateCardItemOnClickCommand");_.ZSo=new _.yT("ypcPauseSubscriptionCommand");_.FoT=new _.yT("ypcResumeSubscriptionCommand");var RYx=function(){It.apply(this,arguments)};
_.Y(RYx,It);RYx.prototype.getAssociations=function(){return[]};
RYx.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var dw1=function(){It.apply(this,arguments)};
_.Y(dw1,It);dw1.prototype.getAssociations=function(){return[]};
dw1.prototype.getTypeName=function(){return"commerceCartListEntity"};var cv1=function(){It.apply(this,arguments)};
_.Y(cv1,It);cv1.prototype.getAssociations=function(){return[]};
cv1.prototype.getTypeName=function(){return"iconBadgeEntity"};var uT4=function(){It.apply(this,arguments)};
_.Y(uT4,It);uT4.prototype.getAssociations=function(){return[]};
uT4.prototype.getTypeName=function(){return"pdpStateEntity"};var zY4=function(){It.apply(this,arguments)};
_.Y(zY4,It);zY4.prototype.getAssociations=function(){return[]};
zY4.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var jdn=new _.yT("ypcOffersEndpoint");var $wF=new _.yT("cardItemRenderer"),tiM=new _.yT("cardItemTextRenderer");var mwx=new _.yT("commerceCartItemQuantityPickerRenderer");var rv1=new _.yT("linkCardRenderer");var TZh=new _.yT("quantityIncrementerButtonViewModel");var XjT=new _.yT("quantityIncrementerViewModel");var Vio=new _.yT("themedImageViewModel");_.jH4=new _.yT("ypcCancelRecurrenceEndpoint");var xwE=new _.yT("ypcCompleteTransactionEndpoint");_.vxT=new _.yT("ypcGetCartEndpoint");_.s$=new _.yT("ypcGetOffersEndpoint");_.cb=new _.yT("ypcHandleTransactionEndpoint");var Gvj=new _.yT("ypcLogWalletAnalyticDataEndpoint");_.YEF=new _.yT("ypcRedeemCodeEndpoint");var QH1=new _.yT("ypcUpdateFopEndpoint");rU(mm(1),$z(4));Zcx((new MessageChannel).port2);var OSx=function(){this.register=new Map},vTA=function(q,N,b){q=q+"_"+N;
uo.register.has(q)?b=uo.register.get(q):(b=b(),uo.register.set(q,b));return b},wjJ=function(q){q=_.Z(q.register.values());
for(var N=q.next();!N.done;N=q.next())_.Ed(N.value,"ABORTED")};
OSx.prototype.clear=function(){wjJ(this);this.register.clear()};
var uo=new OSx;var bin=Date.now().toString();var ETh=JGn();var zUd={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 iS4,Gy;iS4=1;Gy=function(q){this.veData=q};
_.zT=function(q){return new Gy({trackingParams:q})};
_.bx=function(q,N,b,y,J,E){var F=iS4++;return new Gy({veType:q,veCounter:F,elementIndex:b,dataElement:N,youtubeData:y,jspbYoutubeData:J,loggingDirectives:E})};
_.g=Gy.prototype;
_.g.getAsJson=function(){var q={};this.veData.trackingParams!==void 0?q.trackingParams=this.veData.trackingParams:(q.veType=this.veData.veType,this.veData.veCounter!==void 0&&(q.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(q.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(q.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(q.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(q.isCounterfactual=!0);
return q};
_.g.getAsJspb=function(){var q=new Grq;this.veData.trackingParams!==void 0?q.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.On(q,2,this.veData.veType),this.veData.veCounter!==void 0&&_.On(q,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.On(q,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.VE(q,5,!0));if(this.veData.dataElement!==void 0){var N=this.veData.dataElement.getAsJspb();_.ws(q,7,N)}this.veData.youtubeData!==void 0&&_.ws(q,8,this.veData.jspbYoutubeData);
return q};
_.g.toString=function(){return JSON.stringify(this.getAsJson())};
_.g.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.g.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.zn("yt_logging_screen.getRootVeType",dCJ);_.zn("yt_logging_screen.getCurrentCsn",_.Oe);_.zn("yt_logging_screen.getCttAuthInfo",wy);_.zn("yt_logging_screen.setCurrentScreen",_.iE);var l2F=function(){this.events=new Map},Koj=function(q){var N=[];
q=_.Z(q.events.values());for(var b=q.next();!b.done;b=q.next())N.push(b.value);return N};
l2F.prototype.clear=function(){this.events.clear()};var hYR=function(){this.logTransport=new Dwj;this.loggedEventRegister=new l2F;this.unloggedEventRegister=new l2F;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12665_flushTimer=new _.jL(this.flushInterval);this.JSC$12665_flushTimer.listen("tick",this.flush,!1,this)};
hYR.prototype.flush=function(){if(this.eventsCount){var q={loggedEvents:Koj(this.loggedEventRegister),unloggedEvents:Koj(this.unloggedEventRegister)};if(_.x("export_player_version_to_ytconfig")){var N;(N=_.M7("PLAYER_CLIENT_VERSION"))?(N=N.split("-")[0].replace(/\./g,""),N=isNaN(Number(N))?"0":N):N="";var b=_.M7("PLAYER_CLIENT_VERSION");if(b){b=b.split("-");var y="";b.length>1&&(y=b[b.length-1]);b=NCC(y.startsWith("canary_experiment")?"canary":y.startsWith("canary_control")?"control":"none")}else b=
"CLIENT_CANARY_STATE_UNKNOWN";q.dimensions={playerClientVersion:N,playerCanaryState:b}}this.logTransport.flush(q);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12665_flushTimer.enabled&&this.JSC$12665_flushTimer.stop()}};
var kvJ=function(q){zD==null&&(zD=new hYR);var N=zD;var b=N.loggedEventRegister;q.dimensions=q.dimensions||{};q.dimensions.csn=_.Oe()||"";var y=mCe(q.dimensions).join(";");if(q.records!=null)if(b.events.has(y)){var J;(J=b.events.get(y).records)==null||J.push.apply(J,_.a9(q.records))}else b.events.set(y,q);N.JSC$12665_flushTimer.enabled||N.JSC$12665_flushTimer.start();N.eventsCount++;N.eventsCount>=100&&N.flush()};var Dwj=function(){};
Dwj.prototype.flush=function(q,N){_.x("enable_client_sli_logging")&&_.W_("sliEventBatch",q,{sendIsolatedPayload:!!N})};var zD;var f2F;f2F=function(q){var N=Uwo;q=q===void 0?{}:q;N=N.name;var b=xCn("SUCCESS");kvJ({dimensions:q,records:[{name:N,state:"SLI_STATE_END",status:b}]})};
_.GWz=function(q,N,b,y){this.name=q;this.sliId=N;this.timeoutMs=b;this.statusOnTimeout=y;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.GWz.prototype.getId=function(){return this.sliId};
_.J7=function(q,N){N=N===void 0?{}:N;q.ongoing||(q.ongoing=!0,q.dimensions=N,q.logSliId=LwA(),kvJ({dimensions:q.dimensions,records:[{name:q.name,state:"SLI_STATE_START",sliId:q.logSliId}]}),q.timeoutMs>0&&(q.timeoutHandle=setTimeout(function(){_.Ed(q,q.statusOnTimeout)},q.timeoutMs)))};
_.Ed=function(q,N){q.ongoing&&(q.timeoutMs>0&&clearTimeout(q.timeoutHandle),q.ongoing=!1,N={dimensions:q.dimensions,records:[{name:q.name,status:xCn(N),state:"SLI_STATE_END",sliId:q.logSliId}]},uo.register.delete(q.name+"_"+q.sliId),kvJ(N))};var Uwo=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var C1R=function(){It.apply(this,arguments)};
_.Y(C1R,It);C1R.prototype.getAssociations=function(){return[]};
C1R.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var aan=new _.yT("highlightTextDecoratorColorMapExtension");var s2J=new _.yT("styleRunColorMapExtension");var KCR=_.Tt(["data-"]),kWR={};var fYd={};var $3=function(q){this.wrappedPromise_=q===void 0?null:q;this.state_=0;this.JSC$12696_value_=null};
$3.prototype.then=function(q,N,b){return this.wrappedPromise_?this.wrappedPromise_.then(q,N,b):this.state_===1&&q?(q=q.call(b,this.JSC$12696_value_))&&typeof q.then==="function"?q:_.tI(q):this.state_===2&&N?(q=N.call(b,this.JSC$12696_value_))&&typeof q.then==="function"?q:_.I2R(q):this};
$3.prototype.getValue=function(){return this.JSC$12696_value_};
$3.prototype.isRejected=function(){return this.state_==2};
juM($3);_.I2R=function(q){var N=new $3;q=q===void 0?null:q;N.state_=2;N.JSC$12696_value_=q===void 0?null:q;return N};
_.tI=function(q){var N=new $3;q=q===void 0?null:q;N.state_=1;N.JSC$12696_value_=q===void 0?null:q;return N};var eUn="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var TKx=["load","abort","error"],mJ=function(q,N,b){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12716_maxAspectRatio_=q;this.disableAnimation_=N===void 0?!1:N;this.disableExifRotation_=b===void 0?!1:b;this.JSC$12716_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12716_reject_=this.resolve_=null};
mJ.prototype.transform=function(q){var N=this;this.mime_=q.type;B2(QEx(q),this.dataUrlRead_,this.readError_,this);B2(Ylx(q.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(b,y){N.resolve_=b;N.JSC$12716_reject_=y})};
mJ.prototype.dataUrlRead_=function(q){this.dataUrl_=q;this.angle_!=null&&sH1(this)};
mJ.prototype.exifRead_=function(q){if(this.disableExifRotation_)this.angle_=0;else{a:if(q=new DataView(q),q.byteLength<2||q.getUint16(0)!==65496)q=-2;else{for(var N=2,b=q.byteLength;N<b;){var y=q.getUint16(N),J=q.getUint16(N+2);if(y===65505){N+=4;y=q.getUint32(N);J=q.getUint16(N+4);if(y!==1165519206||J!==0)break;N+=6;y=q.getUint16(N)===18761;N+=q.getUint32(N+4,y);J=q.getUint16(N,y);N+=2;for(var E=0;E<J;E++){if(q.getUint16(N,y)===274){N+=8;q=q.getUint16(N,y);break a}N+=12}}else if(y>>8!==255)break;
else N+=J+2}q=-1}switch(q){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&&sH1(this)};
mJ.prototype.readError_=function(){this.JSC$12716_reject_()};
var sH1=function(q){c$(q.JSC$12716_image_,TKx,q.completeTransform_,!1,q);q.JSC$12716_image_.src=_.pc(q.dataUrl_).toString();q.JSC$12716_image_.src!=Sv.toString()&&q.JSC$12716_image_.src.substr(0,11)==="data:image/"||q.JSC$12716_reject_()};
mJ.prototype.completeTransform_=function(){if(this.JSC$12716_image_.src!=Sv.toString()){var q=_.pc(this.dataUrl_),N=this.JSC$12716_image_.naturalHeight?this.JSC$12716_image_.naturalWidth/this.JSC$12716_image_.naturalHeight:null;this.invalidAspectRatio=N>this.JSC$12716_maxAspectRatio_||N<1/this.JSC$12716_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var b=this.JSC$12716_image_.naturalWidth,y=this.JSC$12716_image_.naturalHeight,J=N=0,E=this.JSC$12716_image_.naturalHeight?this.JSC$12716_image_.naturalWidth/
this.JSC$12716_image_.naturalHeight:null;E>this.JSC$12716_maxAspectRatio_?(b=this.JSC$12716_maxAspectRatio_*y,N=(b-this.JSC$12716_image_.naturalWidth)/2,this.cropped=!0):E<1/this.JSC$12716_maxAspectRatio_?(y=this.JSC$12716_maxAspectRatio_*b,J=(y-this.JSC$12716_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)E=b,b=y,y=E,E=N,N=J,J=E;switch(this.angle_){case 90:J-=b;break;case 180:N-=b;J-=y;break;case 270:N-=
y}this.cropped||this.angle_%360!==0?(q=document.createElement("canvas"),q.width=b||1,q.height=y||1,this.JSC$12716_image_.naturalWidth&&this.JSC$12716_image_.naturalHeight&&(b=q.getContext("2d"),b.rotate(Math.PI/180*this.angle_),b.drawImage(this.JSC$12716_image_,N,J,this.JSC$12716_image_.naturalWidth,this.JSC$12716_image_.naturalHeight)),this.transformedData=_.pc(q.toDataURL(this.mime_))):this.transformedData=q}else this.transformedData=q;this.resolve_(this)}};var re=function(q,N){_.xC.call(this,q);this.value=N};
_.Y(re,_.xC);
var XF=function(q,N,b,y,J,E,F){F=F===void 0?!1:F;_.O1.call(this);var R=this;this.JSC$12721_url_=q;this.channelId_=N;this.maxFileSizeMb_=b;this.JSC$12721_maxAspectRatio_=y;this.dropZoneEl_=J;this.rejectInvalidAspectRatio_=F;this.selectButtonEl_=E;this.JSC$12721_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new QG(this.dropZoneEl_);this.selectOverlay_=new Oj(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12721_image_=this.transfer_=null;this.handler_=new _.xH(this);_.YN(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(E,"click",function(){R.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.Y(XF,_.O1);XF.prototype.disposeInternal=function(){for(var q=this.selectButtonEl_.nextSibling;q&&q.parentNode&&q.tagName=="INPUT";)q.parentNode.removeChild(q),q=this.selectButtonEl_.nextSibling;this.cancel();_.O1.prototype.disposeInternal.call(this)};
XF.prototype.uploadPromise=function(){if(this.JSC$12721_image_==null)return null;this.uploadPromise_||nxv(this);return this.uploadPromise_};
XF.prototype.cancel=function(){a2E(this);this.JSC$12721_image_=null};
var a2E=function(q){q.transfer_&&q.transfer_.cancel();q.transfer_=null;q.uploadPromise_=null;q.resolve_=null;q.JSC$12721_reject_=null},nxv=function(q){a2E(q);
q.transfer_=_.$tJ(q.JSC$12721_url_,{"X-YouTube-ChannelId":q.channelId_},q.JSC$12721_image_);q.handler_.listenOnce(q.transfer_,"l",q.JSC$12723_onUploadComplete_);q.handler_.listenOnce(q.transfer_,"n",q.onUploadError_);q.transfer_.run();q.uploadPromise_=new Promise(function(N,b){q.resolve_=N;q.JSC$12721_reject_=b})};
_.g=XF.prototype;_.g.onChange_=function(q){q.files.length&&(this.JSC$12721_image_=q.files[0],this.JSC$12721_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12721_image_=null,this.dispatchEvent(new re("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(nxv(this),(new mJ(this.JSC$12721_maxAspectRatio_)).transform(this.JSC$12721_image_).then((0,_.fF)(this.onPreview_,this),(0,_.fF)(this.onPreviewError_,this))))};
_.g.onPreview_=function(q){if(q.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12721_image_=null),this.dispatchEvent(new re("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;q.cropped&&this.dispatchEvent(new re("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new re("yt.comments.ImageUploadOverlay.CHANGE_EVENT",q.transformedData))};
_.g.onPreviewError_=function(){this.JSC$12721_image_=null;this.dispatchEvent(new re("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.g.onHover_=function(q){q.stopPropagation();q.preventDefault();if(q.type==="dragover")q=!0;else if(q.type==="dragleave")q=!1;else return;this.dispatchEvent(new re("yt.comments.ImageUploadOverlay.HOVER_EVENT",q))};
_.g.JSC$12723_onUploadComplete_=function(){var q=(0,_.LTo)(this.transfer_.getResponseText());this.resolve_(q.encryptedBlobId)};
_.g.onUploadError_=function(){this.JSC$12721_reject_();a2E(this)};var SEx=function(q){q=q||{};var N={},b={};this.url=q.url||"";this.args=q.args||_.nM.clone(N);this.assets=q.assets||{};this.attrs=q.attrs||_.nM.clone(b);this.fallback=q.fallback||null;this.fallbackMessage=q.fallbackMessage||null;this.html5=!!q.html5;this.disable=q.disable||{};this.loaded=!!q.loaded;this.messages=q.messages||{}};
SEx.prototype.clone=function(){var q=new SEx,N;for(N in this)if(this.hasOwnProperty(N)){var b=this[N];_.NN(b)=="object"?q[N]=_.nM.clone(b):q[N]=b}return q};var Wo1,LoM,pjR,TK,Miv,ox1,AvF,eYv,BKl,HSl,qrx,Nol,buF,yAq,JAx,El4,gl1,Zu1,F1x,RhJ,dyv,cAj,usM,zh4,$yM,t$o,myJ,rAo,XfM,NfZ,V$F,jZF,xyl,vlx,Gkv,Yrx,QZ1,Oux,wfE,iuo,qFe,l01,K1j,Dy4,hho,kkx,Uyo,f0J,CzR,I0j,To4,sZT,nlq,a0x,SrM,W14,Vx,L1o,pfl,PzM,M$R,olx,AAM,ehv,Bo1,Huo,qiT,Nl1,b_l,yYq,JYo,Er4,grl,Z_l,FiF,Re1,B$n,dq1,cYv,uh1,zeT,$qj,tC1,mqE,rYx,XeF,VCE,jc4,xq4,vrM,GFl,YiF,Qco,O_x,wej,i_o,lgo,KiF,Dql,hel,kFx,Uq4;Wo1=["account/accounts_list"];LoM=["acknowledge_channel_tou_strike"];pjR=["notification/add_upcoming_event_reminder"];
_.P1T=["att/get"];TK=["browse","music/browse","streaming_browse","unplugged/browse"];Miv=["channel/claim_legacy_youtube_channel"];ox1=["history/clear_search_history"];AvF=["history/clear_watch_history"];eYv=["comment/perform_comment_action"];BKl=["comment/get_comment_replies"];HSl=["ypc/commerce_action"];qrx=["backstage/create_post"];Nol=["live/create_broadcast"];buF=["channel/create_channel"];yAq=["comment/create_comment_reply"];JAx=["comment/create_comment"];El4=["live_chat/create_poll"];gl1=["playlist/create"];
Zu1=["decorate_message"];F1x=["live_chat/delete_message"];RhJ=["playlist/delete"];dyv=["video/delete"];cAj=["like/dislike"];usM=["dismissal/dismiss"];zh4=["flag/flag"];$yM=["flow"];t$o=["account/account_menu"];myJ=["playlist/get_add_to_playlist"];rAo=["get_answer"];XfM=["channel/get_channel_creation_form"];NfZ=["offline/get_download_action"];V$F=["kids/get_kids_blocklist_picker"];jZF=["live_chat/get_item_context_menu"];xyl=["live_chat/get_live_chat_message_buy_flow"];vlx=["live_chat/get_live_chat_replay"];
Gkv=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];Yrx=["live_chat/get_live_chat_super_sticker_buy_flow"];QZ1=["notification/get_notification_menu"];Oux=["playlist/get_settings_editor"];wfE=["backstage/get_post_video_preview"];iuo=["account/get_profile_card"];qFe=["share/get_share_panel"];l01=["share/get_sharing_provider_data"];K1j=["get_survey"];Dy4=["notification/get_unseen_count"];hho=["get_user_mention_suggestions"];kkx=["get_watch"];Uyo=["guide"];
f0J=["feedback"];CzR=["kids/update_blacklist"];I0j=["like/like"];To4=["live_chat/live_chat_action"];sZT=["live_chat/manage_user"];nlq=["video_manager/metadata_update"];a0x=["live_chat/moderate"];SrM=["notification/modify_channel_preference"];W14=["notification/opt_out"];Vx=["get_panel","get_posts_by_host_panel"];L1o=["player"];pfl=["browse/edit_playlist"];PzM=["notification/record_interactions"];M$R=["reel/reel_item_watch"];olx=["reel/reel_watch_sequence"];AAM=["like/removelike"];ehv=["notification/remove_upcoming_event_reminder"];
Bo1=["flag/get_form"];Huo=["miniapp/report_value"];qiT=["navigation/resolve_url"];Nl1=["channel/reveal_business_email"];b_l=["in_video/search"];yYq=["search","sfv/search","unplugged/search"];JYo=["live_chat/send_message"];Er4=["live_chat/send_live_chat_vote"];grl=["account/set_setting"];Z_l=["submit_caption_correction"];FiF=["submit_form"];Re1=["subscription/subscribe"];B$n=["get_transcript"];dq1=["resolve_location","unplugged/resolve_location"];cYv=["subscription/unsubscribe"];uh1=["backstage/update_post"];
zeT=["channel_edit/update_channel_page_settings"];$qj=["comment/update_comment_reply"];tC1=["comment/update_comment"];mqE=["comment/update_comments_settings"];rYx=["creator/update_creator_channel"];XeF=["pdg/update_enablement"];VCE=["updated_metadata"];jc4=["channel_edit/validate_channel_handle"];xq4=["verify_age"];vrM=["next","unplugged/watch_next"];GFl=["whitelist/edit"];YiF=["ypc/cancel_recurrence"];Qco=["ypc/complete_transaction"];O_x=["ypc/get_cart"];wej=["ypc/get_fix_instrument_params"];
i_o=["ypc/get_offers"];lgo=["ypc/get_payment_instruments_params"];KiF=["ypc/handle_transaction"];Dql=["ypc/log_payment_server_analytics"];hel=["ypc/pause_subscription"];kFx=["ypc/redeem_code"];Uq4=["ypc/resume_subscription"];var fgR=[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,282159,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,
221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,279119,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,
232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,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,282218,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,
185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,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 Zi=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.zn("yt.msgs_",Zi);var jO=new _.Jw("ACTION_ROUTER_TOKEN");_.x3=function(){this.autonavState_=_.x("kevlar_is_pupi_enabled")?2:Rad()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.x3.prototype.getState=function(){return this.autonavState_};
_.x3.prototype.pause=function(q){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=q):this.autonavState_==1&&(this.disabledAutonavPauseReason_=q)};
_.x3.prototype.setState=function(q,N,b){N&&(this.autoplayChangedByUser=!0);N=this.autonavState_===3||q===3;this.autonavState_!=q&&(this.autonavState_=q,q!=3&&_.dMC(q==2),q=_.x("kevlar_is_pupi_enabled")?b||N:!0,_.JD.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,q,b))};
_.x3.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.PV(_.x3);var vb=function(){this.hasRun=!1};var GD={},xMn=(GD.auto_search="LATENCY_ACTION_AUTO_SEARCH",GD.ad_to_ad="LATENCY_ACTION_AD_TO_AD",GD.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",GD.app_startup="LATENCY_ACTION_APP_STARTUP",GD.browse="LATENCY_ACTION_BROWSE",GD.cast_splash="LATENCY_ACTION_CAST_SPLASH",GD.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",GD.channels="LATENCY_ACTION_CHANNELS",GD.chips="LATENCY_ACTION_CHIPS",GD.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",GD.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
GD.editor="LATENCY_ACTION_EDITOR",GD.embed="LATENCY_ACTION_EMBED",GD.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",GD.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",GD.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",GD.explore="LATENCY_ACTION_EXPLORE",GD.favorites="LATENCY_ACTION_FAVORITES",GD.home="LATENCY_ACTION_HOME",GD.inboarding="LATENCY_ACTION_INBOARDING",GD.landing="LATENCY_ACTION_LANDING",GD.learning="LATENCY_ACTION_LEARNING",
GD.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",GD.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",GD.library="LATENCY_ACTION_LIBRARY",GD.live="LATENCY_ACTION_LIVE",GD.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",GD.management="LATENCY_ACTION_MANAGEMENT",GD.mini_app="LATENCY_ACTION_MINI_APP_PLAY",GD.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",GD.onboarding="LATENCY_ACTION_ONBOARDING",GD.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
GD.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",GD.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",GD.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",GD.prebuffer="LATENCY_ACTION_PREBUFFER",GD.prefetch="LATENCY_ACTION_PREFETCH",GD.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",GD.profile_switcher="LATENCY_ACTION_LOGIN",GD.projects="LATENCY_ACTION_PROJECTS",GD.reel_watch="LATENCY_ACTION_REEL_WATCH",GD.results="LATENCY_ACTION_RESULTS",GD.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
GD.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",GD.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",GD.review="LATENCY_ACTION_REVIEW",GD.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",GD.search_ui="LATENCY_ACTION_SEARCH_UI",GD.search_suggest="LATENCY_ACTION_SUGGEST",GD.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",GD.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",GD.seek="LATENCY_ACTION_PLAYER_SEEK",GD.settings="LATENCY_ACTION_SETTINGS",GD.store="LATENCY_ACTION_STORE",
GD.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",GD.tenx="LATENCY_ACTION_TENX",GD.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",GD.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",GD.watch="LATENCY_ACTION_WATCH",GD.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",GD["watch,watch7"]="LATENCY_ACTION_WATCH",GD["watch,watch7_html5"]="LATENCY_ACTION_WATCH",GD["watch,watch7ad"]="LATENCY_ACTION_WATCH",GD["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",GD.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
GD.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",GD.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",GD.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",GD.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",GD.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",GD.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",GD.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",GD),CQJ=0;var Sjn=function(q,N){lK.call(this,1,arguments);this.timer=N};
_.Y(Sjn,lK);var aDn=new CIA("aft-recorded",Sjn);var Qtz=_.JZ.ytLoggingGelSequenceIdObj_||{};_.zn("ytLoggingGelSequenceIdObj_",Qtz);var Y3=_.JZ.ytLoggingLatencyUsageStats_||{};_.zn("ytLoggingLatencyUsageStats_",Y3);var Qx=function(){this.cleanupJob=0},iOR=function(){Qx.instance||(Qx.instance=new Qx);
return Qx.instance};
_.g=Qx.prototype;_.g.baseline=function(q,N,b){OM(this,"baseline_"+q)||_.W_("latencyActionBaselined",{clientActionNonce:q},{timestamp:N,cttAuthInfo:b})};
_.g.tick=function(q,N,b,y){OM(this,"tick_"+q+"_"+N)||_.W_("latencyActionTicked",{tickName:q,clientActionNonce:N},{timestamp:b,cttAuthInfo:y})};
_.g.info=function(q,N,b){var y=Object.keys(q).join("");OM(this,"info_"+y+"_"+N)||(q=Object.assign({},q),q.clientActionNonce=N,_.W_("latencyActionInfo",q,{cttAuthInfo:b}))};
_.g.jspbInfo=function(q,N,b){for(var y="",J=0;J<fU(q).length;J++)fU(q)[J]!==void 0&&(y=J===0?y.concat(""+J):y.concat("_"+J));OM(this,"info_"+y+"_"+N)||(_.Up(q,2,N),N={cttAuthInfo:b},b=_.x("jspb_sparse_encoded_pivot")?new Co([{}]):new Co,_.iX(b,7,soo,q),OOC("latencyActionInfo",b,N))};
_.g.span=function(q,N,b){var y=Object.keys(q).join("");OM(this,"span_"+y+"_"+N)||(q.clientActionNonce=N,_.W_("latencyActionSpan",q,{cttAuthInfo:b}))};
var OM=function(q,N){Y3[N]=Y3[N]||{count:0};var b=Y3[N];b.count++;b.time=(0,_.mA)();q.cleanupJob||(q.cleanupJob=_.Ip(_.pY,function(){var y=(0,_.mA)(),J;for(J in Y3)Y3[J]&&y-Y3[J].time>6E4&&delete Y3[J];q&&(q.cleanupJob=0)},5E3));
return b.count>5?(b.count===6&&Math.random()*1E5<1&&(b=new _.IO("CSI data exceeded logging limit with key",N.split("_")),N.indexOf("plev")>=0||_.M6(b)),!0):!1};var CJ4,Igq;CJ4=window;Igq=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.mO=CJ4.performance||CJ4.mozPerformance||CJ4.msPerformance||CJ4.webkitPerformance||new Igq;var nzz=!1,KmR=!1,Wmd=(0,_.fF)(_.mO.clearResourceTimings||_.mO.webkitClearResourceTimings||_.mO.mozClearResourceTimings||_.mO.msClearResourceTimings||_.mO.oClearResourceTimings||_.jE,_.mO);var Tl4=window;Tl4.ytcsi&&(Tl4.ytcsi.infoGel=_.v3,Tl4.ytcsi.tick=_.Q6);var NeD=function(q){lK.call(this,1,arguments);this.csn=q};
_.Y(NeD,lK);var a4h=new CIA("screen-created",NeD),rIR=[],qMu=mzz,Xbd=0,he=new Map,bmd=new Map,yIA=new Map;var ALJ=Symbol("Cf"),W3=new WeakMap;var we=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},da=function(){we.instance||(we.instance=new we);
return we.instance};
_.g=we.prototype;_.g.setClient=function(q){this.client=q};
_.g.JSC$12802_newScreen=function(){this.clear();this.csn=_.Oe()};
_.g.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.g.reportShown=function(q,N,b){var y=this.JSC$12802_getTrackingParams(q),J=q.visualElement?q.visualElement:y;N=this.shownElements.has(J);var E=this.visibleState.get(J);this.shownElements.add(J);this.visibleState.set(J,!0);q.impressionLog&&!N&&q.impressionLog();if(y||q.visualElement)if(b=scF(this,q,b))if(J=nrl(this,q),io(this,q)||J){y=q.visualElement?q.visualElement:_.zT(y);var F=q.interactionLoggingClientData;J||N?io(this,q)&4?E||cIh(this.client,b,y,F):io(this,q)&1&&!N&&FJJ(this.client,b,y,F):FJJ(this.client,
b,y,F)}};
_.g.reportHidden=function(q,N,b){var y=this.JSC$12802_getTrackingParams(q),J=q.visualElement?q.visualElement:y;N=this.hiddenElements.has(J);var E=this.visibleState.get(J);this.hiddenElements.add(J);this.visibleState.set(J,!1);if(E===!1)return!0;if(!y&&!q.visualElement)return!1;b=scF(this,q,b);if(!b||!io(this,q)&&nrl(this,q))return!1;y=q.visualElement?q.visualElement:_.zT(y);io(this,q)&8?uFD(this.client,b,y):io(this,q)&2&&!N&&(q=this.client,N=Di({cttAuthInfo:wy(b)||void 0},b),y={csn:b,ve:y.getAsJson(),
eventType:2},b==="UNDEFINED_CSN"?UY("visualElementHidden",N,y):q?ap("visualElementHidden",y,q,N):_.W_("visualElementHidden",y,N));return!0};
_.g.JSC$12802_getTrackingParams=function(q){var N=this.getData(q),b,y;if(_.x("il_use_view_model_logging_context")&&(N==null?0:(b=N.context)==null?0:(y=b.loggingContext)==null?0:y.loggingDirectives))return N.context.loggingContext.loggingDirectives.trackingParams||"";var J,E;if(N==null?0:(J=N.rendererContext)==null?0:(E=J.loggingContext)==null?0:E.loggingDirectives)return N.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(N==null?0:N.loggingDirectives)return N.loggingDirectives.trackingParams||
"";var F;return((F=q.veContainer)==null?0:F.trackingParams)?q.veContainer.trackingParams:(N==null?void 0:N.trackingParams)||""};
_.g.JSC$12802_elementShouldLogGesture=function(q,N){q=this.getData(q);return!!((Math.floor(Number(q&&q.loggingDirectives&&q.loggingDirectives.gestures&&q.loggingDirectives.gestures.types||""))||0)&N)};
_.g.JSC$12802_getNearestParentVe=function(q){var N=this.JSC$12802_getTrackingParams(q);return q.visualElement?q.visualElement:N?_.zT(N):q.parentElement?this.JSC$12802_getNearestParentVe(q.parentElement):null};
var scF=function(q,N,b){var y=_.Oe(b);return q.csn===null||y===q.csn||b?y:(q=new _.IO("VisibilityLogger called before newScreen",{caller:N.tagName,previous_csn:q.csn,current_csn:y}),_.M6(q),null)};
we.prototype.getData=function(q){var N,b=q.data||((N=q.props)==null?void 0:N.data);if(!b||q.isWebComponentWrapper){var y;b=(y=W3.get(q))==null?void 0:y[ALJ]}return b};
var nrl=function(q,N){var b;return!((b=q.getData(N))==null||!b.loggingDirectives)},io=function(q,N){q=q.getData(N);
return Math.floor(Number(q&&q.loggingDirectives&&q.loggingDirectives.visibility&&q.loggingDirectives.visibility.types||""))||1};var lo;lo=function(){};
_.E_=function(){lo.instance||(lo.instance=new lo);return lo.instance};
lo.prototype.setClient=function(q){_.qg(da().setClient).bind(da())(q)};
_.agE=function(){_.E_();_.qg(da().JSC$12802_newScreen).bind(da())()};
lo.prototype.clear=function(){_.qg(da().clear).bind(da())()};
lo.prototype.reportShown=function(q,N,b){_.qg(da().reportShown).bind(da())(q,N,b)};
lo.prototype.reportHidden=function(q,N,b){return _.qg(da().reportHidden).bind(da())(q,N,b)};
var n1A=function(q,N){return _.qg(da().JSC$12802_getTrackingParams).bind(da())(N)},eRA=function(q,N){return _.qg(da().JSC$12802_getNearestParentVe).bind(da())(N)};var Km,Si1;Km=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};
_.FR=function(){Km.instance||(Km.instance=new Km);return Km.instance};
Km.prototype.setClient=function(q){this.client=q};
Si1=function(q,N,b){b=b===void 0?{}:b;_.qg(function(){var y,J,E,F=((y=_.v(N==null?void 0:N.commandMetadata,_.gg))==null?void 0:y.rootVe)||((J=_.v(N==null?void 0:N.commandMetadata,QMj))==null?void 0:(E=J.screenVisualElement)==null?void 0:E.uiType);if(F){y=_.v(N==null?void 0:N.commandMetadata,Vsl);if(y==null?0:y.parentTrackingParams){var R=_.zT(y.parentTrackingParams);if(y.parentCsn)var c=y.parentCsn}else b.clickedVisualElement?R=b.clickedVisualElement:N.clickTrackingParams&&(R=_.zT(N.clickTrackingParams));
a:{y=_.v(N,_.nx);J=_.v(N,gxC);if(y){if(J=cTD(y,"VIDEO")){y={token:J,videoId:y.videoId};break a}}else if(J&&(y=cTD(J,"PLAYLIST"))){y={token:y,playlistId:J.playlistId};break a}y=void 0}b=Object.assign({},{cttAuthInfo:y,parentCsn:c},b);if(_.x("expectation_logging")){var z;b.loggingExpectations=((z=_.v(N==null?void 0:N.commandMetadata,QMj))==null?void 0:z.loggingExpectations)||void 0}_.DO(q,F,R,b)}else _.M6(new _.IO("Error: Trying to create a new screen without a rootVeType",N))})()};
_.DO=function(q,N,b,y){y=y===void 0?{}:y;_.qg(function(){fgR.includes(N)||(_.M6(new _.IO("createClientScreen() called with a non-page VE",N)),N=83769);y.isHistoryNavigation||(q.forwardHistoryStack=[],q.backHistoryStack.push({rootVe:N,key:y.key||""}));q.graftQueue=[];q.stateChangedQueue=[];y.dataPromises?WiR(q,N,b,y):Lij(q,N,b,y)})()};
_.pej=function(q,N,b){b=b===void 0?0:b;_.qg(function(){N.then(function(y){q.pendingScreenCreation.has(b)&&q.pendingScreenFn&&q.pendingScreenFn();var J=_.Oe(b),E=_.QY(b);if(J&&E){var F={automatedLogEventSource:3},R;(y==null?0:(R=y.response)==null?0:R.trackingParams)&&ko(q.client,J,E,_.zT(y.response.trackingParams),!1,F);var c;(y==null?0:(c=y.playerResponse)==null?0:c.trackingParams)&&ko(q.client,J,E,_.zT(y.playerResponse.trackingParams),!1,F)}})})()};
Km.prototype.graftServerVe=function(q,N,b){var y=this;return _.qg(function(){var J=_.zT(q);_.hI(y,J,N,b);return J})()};
_.BBC=function(q,N,b,y){return _.x("enable_client_ve_spec")&&N.clientVeSpec?(N=_.bx(N.clientVeSpec.uiType,void 0,N.clientVeSpec.elementIndex,N.clientVeSpec.clientYoutubeData,void 0,N),_.hI(q,N,b,y)?N:null):N.trackingParams?q.graftServerVe(N.trackingParams,b,y):null};
_.Zd=function(q,N,b,y){return _.qg(function(){if(!N.veType)return _.P_(new _.IO("Error: Trying to graft a client VE without a veType.")),null;if(N.visibilityTypes){var J=N.visibilityTypes.reduce(function(E,F){return E|F});
J={visibility:{types:String(J)}}}J=_.bx(N.veType,N.visualElement,N.elementIndex,N.clientYouTubeData,void 0,J);return _.hI(q,J,b,y)?J:null})()};
_.hI=function(q,N,b,y){y=y===void 0?0:y;return _.qg(function(){if(q.pendingScreenCreation.has(y))return q.graftQueue.push([N,b]),!0;var J=_.Oe(y),E=b||_.QY(y);if(J&&E){if(_.x("combine_ve_grafts")){var F=q.cachedVisualElements.get(E.toString());F?F.push(N):(q.cachedRootVisualElements.set(E.toString(),E),q.cachedVisualElements.set(E.toString(),[N]));q.attachTimeout||(q.attachTimeout=_.Ip(_.pY,function(){PJJ(q,J)},1200))}else ko(q.client,J,E,N);
return!0}return!1})()};
_.k3=function(q,N,b){b=b===void 0?0:b;var y=q.recurringGrafts.get(b)||new Map;if(_.x("smarter_ve_dedupping"))for(var J=Array.from(y.keys()),E=0;E<J.length;E++){var F=void 0,R=void 0;var c=N;var z=J[E];z.isClientVe()&&c.isClientVe()?(F=c.getAsJson(),R=z.getAsJson(),c=F.veType!==R.veType||F.elementIndex!==R.elementIndex||F.dataElement!==R.dataElement||c.getLoggingDirectives()!==z.getLoggingDirectives()?!1:!0):c=z.veData.trackingParams!==void 0&&c.veData.trackingParams!==void 0?((R=c.veData)==null?void 0:
R.trackingParams)===((F=z.veData)==null?void 0:F.trackingParams):!1;if(c)return}else if(y.has(N))return;y.set(N,void 0);q.recurringGrafts.set(b,y);_.Oe(b)==="UNDEFINED_CSN"||q.pendingScreenCreation.has(b)||_.hI(q,N,void 0,b)};
_.UM=function(q,N,b,y){y=_.Oe(y===void 0?0:y);if(!y)return!1;$zD(q.client,y,N,b);return!0};
_.fm=function(q,N,b,y){if(!N)return!1;y=_.Oe(y===void 0?0:y);if(!y)return!1;$zD(q.client,y,_.zT(N),b);return!0};
_.Ul=function(q,N){var b=N.getScreenLayer&&N.getScreenLayer();if(N.visualElement)return _.UM(q,N.visualElement,void 0,b);N=n1A(_.E_(),N);return _.fm(q,N,void 0,b)};
Km.prototype.clickCommand=function(q,N,b){return _.fm(this,q.clickTrackingParams,N,b===void 0?0:b)};
Km.prototype.stateChanged=function(q,N,b){this.visualElementStateChanged(_.zT(q),N,b===void 0?0:b)};
Km.prototype.visualElementStateChanged=function(q,N,b){b=b===void 0?0:b;b===0&&this.pendingScreenCreation.has(b)?this.stateChangedQueue.push([q,N]):this.logStateChanged(q,N,b)};
Km.prototype.logStateChanged=function(q,N,b){b=b===void 0?0:b;var y=_.Oe(b);q=q||_.QY(b);return y&&q?(tOA(this.client,y,q,N),!0):!1};
var WiR=function(q,N,b,y){y=y===void 0?{}:y;q.pendingScreenCreation.add(y.layer||0);q.pendingScreenFn=function(){Lij(q,N,b,y);var F=_.QY(y.layer);if(F){for(var R=_.Z(q.graftQueue),c=R.next();!c.done;c=R.next())c=c.value,_.hI(q,c[0],c[1]||F,y.layer);F=_.Z(q.stateChangedQueue);for(R=F.next();!R.done;R=F.next())R=R.value,q.logStateChanged(R[0],R[1])}};
b||_.Oe(y.layer)||q.pendingScreenFn();if(y.dataPromises)for(var J=_.Z(y.dataPromises),E=J.next();!E.done;E=J.next())_.pej(q,E.value,y.layer);else _.po(Error("Df"))},Lij=function(q,N,b,y){y=y===void 0?{}:y;
var J=void 0;y.layer||(y.layer=0);J=y.parentLayer!==void 0?y.parentLayer:y.layer;var E=_.Oe(J);J=_.QY(J);var F=b||J,R;F&&(y.parentCsn!==void 0?R={clientScreenNonce:y.parentCsn,visualElement:F}:E&&E!=="UNDEFINED_CSN"&&(R={clientScreenNonce:E,visualElement:F}));var c,z=_.M7("EVENT_ID");E==="UNDEFINED_CSN"&&z&&(c={servletData:{serializedServletEventId:z}});_.x("combine_ve_grafts")&&E&&PJJ(q,E);_.x("no_client_ve_attach_unless_shown")&&F&&E&&Zmd(F,E);try{var m=_.JIz(q.client,N,R,y.csnToClone,y.cttAuthInfo,
c,y.implicitGestureType,void 0,y.loggingExpectations)}catch(V){_.op(V,{rootVeType:N,rootVe:J,parentVisualElement:b,currentCsn:E,parentEl:R,csnToClone:y.csnToClone});_.po(V);return}_.iE(m,N,y.layer,y.cttAuthInfo);E&&E!=="UNDEFINED_CSN"&&J&&!$CZ(E)&&uFD(q.client,E,J,!0);q.backHistoryStack[q.backHistoryStack.length-1]&&!q.backHistoryStack[q.backHistoryStack.length-1].csn&&(q.backHistoryStack[q.backHistoryStack.length-1].csn=m||"");_.v3({clientScreenNonce:m});_.agE();var r=_.QY(y.layer);E&&E!=="UNDEFINED_CSN"&&
r&&_.x("music_web_mark_root_visible")&&_.I5(m,r);q.pendingScreenCreation.delete(y.layer||0);q.pendingScreenFn=void 0;var X;(X=q.recurringGrafts.get(y.layer))==null||X.forEach(function(V,G){V?_.hI(q,G,V,y.layer):r&&_.hI(q,G,r,y.layer)});
MCo(q)},MCo=function(q){for(var N=0;N<q.afterNewScreenOneOffJobs.length;N++){var b=q.afterNewScreenOneOffJobs[N];
try{b()}catch(y){_.po(y)}}for(N=q.afterNewScreenOneOffJobs.length=0;N<q.afterNewScreenRecurringJobs.length;N++){b=q.afterNewScreenRecurringJobs[N];try{b()}catch(y){_.po(y)}}},PJJ=function(q,N){if(N===void 0)for(var b=uKZ(),y=0;y<b.length;y++)b[y]!==void 0&&PJJ(q,b[y]);
else q.cachedVisualElements.forEach(function(J,E){(E=q.cachedRootVisualElements.get(E))&&E3C(q.client,N,E,J)}),q.cachedVisualElements.clear(),q.cachedRootVisualElements.clear(),q.attachTimeout=void 0};var Cm=function(q){q=q===void 0?{layer:0}:q;this.hasRun=!1;this.createScreenConfig=q;q={};this.ixx=(q.response=!1,q.playerResponse=!1,q)};
_.Y(Cm,vb);Cm.prototype.validate=function(q){return!(!q.data||!q.data.response&&!q.data.playerResponse)};
Cm.prototype.handle=function(q){var N=_.FR(),b=this.createScreenConfig.layer;q.data.response&&q.data.response.trackingParams&&!this.ixx.response&&(N.graftServerVe(q.data.response.trackingParams,void 0,b),this.ixx.response=!0);q.data.playerResponse&&q.data.playerResponse.trackingParams&&!this.ixx.playerResponse&&(N.graftServerVe(q.data.playerResponse.trackingParams,void 0,b),this.ixx.playerResponse=!0)};var IM=function(){this.eW=_.T4();this.sQ=[];this.i0S=0};
IM.prototype.processChunk=function(q){if(q){for(var N=_.Z(this.sQ),b=N.next();!b.done;b=N.next())b=b.value,b.validate(q)&&(b.handle(q),b.hasRun=!0);_.Q6("np"+this.i0S);this.i0S++}};var YMn=function(q,N,b){b=b===void 0?{}:b;this.name=q;this.id=Lr.nextSpanId++;this.sessionId=Lr.sessionId;this.attributes=N;this.status=0;var y;this.startTime=(y=b.startTime)!=null?y:(0,_.mA)();this.isActiveSpan=b.active;if(q=Lr.stack[Lr.stack.length-1])this.parentId=q.id,q.children||(q.children=[]),q.children.push(this);q=_.Z(Lr.processors);for(N=q.next();!N.done;N=q.next()){N=N.value;try{var J=y=void 0;(J=(y=N).onSpanStart)==null||J.call(y,this)}catch(E){_.M6(E)}}b.endTime!=null&&(this.isActiveSpan=
!1,this.end(1,b.endTime))};
YMn.prototype.end=function(q,N){q=q===void 0?1:q;this.endTime=N=N===void 0?(0,_.mA)():N;this.duration=this.endTime-this.startTime;this.status=q;this.isActiveSpan!==!1&&(Lr.stack[Lr.stack.length-1]===this?Lr.stack.pop():_.M6(Error("Ef`"+String(this.name))));q=_.Z(Lr.processors);for(N=q.next();!N.done;N=q.next()){N=N.value;try{var b=void 0,y=void 0;(y=(b=N).onSpanEnd)==null||y.call(b,this)}catch(J){_.M6(J)}}};
YMn.prototype.addAttributes=function(q){Object.assign(this.attributes,q)};
var QMn={end:function(){},
addAttributes:function(){}},Lr={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},GDz={rootSpan:function(){return Lr.stack[0]}};var imA={};var gSJ=function(q){this.observers=[];this.value=q};
_.g=gSJ.prototype;_.g.subscribe=function(q){var N=this;if(q.idx!=null)throw Error("Gf");q.idx=this.observers.length;this.observers.push(q);try{q(this.value)}catch(b){}return function(){var b=N.observers[N.observers.length-1];N.observers[q.idx]=b;b.idx=q.idx;N.observers.pop()}};
_.g.update=function(q){this.value=q(this.value);this.notify()};
_.g.mutate=function(q){q(this.value);this.notify()};
_.g.set=function(q){this.value=q;this.notify()};
_.g.notify=function(){for(var q=_.Z(this.observers),N=q.next();!N.done;N=q.next()){N=N.value;try{N(this.value)}catch(b){}}};var VHn,orx,Blq;_.bq=function(q,N,b,y,J,E,F,R){F=F===void 0?[]:F;R=R===void 0?[]:R;this.buildCommandPayload=q;this.navigate=N;this.handleServiceRequest=b;this.sendAction=y;this.JSC$12852_screenManager=J;this.commandResolverMap=E;this.autoLogResolverAllowlist=F;this.metaCommandClickLoggingDenylist=R;this.pendingCommands=new Set;this.isTracingEnabled=!1;orx(this)};
VHn=function(q,N,b){var y=[_.WCq,EcJ],J=Egz,E=ggR,F=_.FR(),R=AYT;b=b===void 0?[]:b;y=y===void 0?[]:y;_.bq.instance=new _.bq(q,N,J,E,F,R,b,y)};
orx=function(q){if(!q.isTracingEnabled&&v3Z("command")){var N=q.resolveCommand;q.resolveCommand=function(b,y){a:{for(J in b)if(Object.prototype.hasOwnProperty.call(b,J)){var J={commandType:J};break a}J={}}return wbd("command",J,N.bind(this,b,y))};
q.isTracingEnabled=!0}};
Blq=function(q,N,b){if(!q.commandResolverMap)return!1;var y=Uzn(N,q.commandResolverMap);return y?((q.autoLogResolverAllowlist.some(function(J){return!!_.v(N,J)})||(b==null?0:b.forceClickLogging))&&eel(q,N,b),y instanceof Promise?y.then(function(J){J.resolve(N,b)}):y.resolve(N,b),!0):!1};
_.bq.prototype.resolveCommand=function(q,N){var b=this,y=H_j(q);if(Blq(this,q,N))return!0;if(y)return q8l(this,q,N);if(!this.buildCommandPayload)return DzR(q,"Unhandled command by buildCommandPayload"),!1;var J=this.buildCommandPayload(q,N);if(N==null?0:N.commandController)J.commandController=N.commandController;if(J.type===0){if(!this.navigate)return hsJ(q,"navigate"),!1;if(!NiM(J.command))return DzR(q,"Page requests need to specify a url"),!1;_.x("logging_avoid_blocking_during_navigation")&&_.QEJ().transition("application_navigating");
q=this.navigate(J)||[];wC4(q).then(function(){b.pendingCommands.delete(J.command)});
return!0}if(J.type===1){if(!this.handleServiceRequest)return hsJ(q,"handleServiceRequest"),!1;(N==null?0:N.forceClickLogging)&&eel(this,J.command,N);q=this.handleServiceRequest(J);wC4(q).then(function(){b.pendingCommands.delete(J.command)});
return!0}if(J.type===2){if(!this.sendAction)return hsJ(q,"sendAction"),!1;eel(this,J.command,N);this.sendAction(J);return!0}return!1};
var eel=function(q,N,b){if((b==null||!b.disableClickTracking)&&q.JSC$12852_screenManager)if(N.clickTrackingParams&&_.x("log_click_with_layer_from_element_in_command_handler")){var y;b=b==null?void 0:(y=b.form)==null?void 0:y.element;q.JSC$12852_screenManager.clickCommand(N,null,b&&b.getScreenLayer&&b.getScreenLayer())}else N.clickTrackingParams?q.JSC$12852_screenManager.clickCommand(N):!_.x("disable_clicked_visual_element_in_command_handler")&&(b==null?0:b.clickedVisualElement)&&_.UM(q.JSC$12852_screenManager,
b.clickedVisualElement)},H_j=function(q){var N=!!_.v(q,_.y6),b;
q=((b=_.v(q,_.EY))==null?void 0:b.signal)==="CLIENT_SIGNAL";return N||q},q8l=function(q,N,b){var y=_.v(N,_.y6);
if(y)var J=(y==null?void 0:y.commands)||[];else{var E;if(((E=_.v(N,_.EY))==null?void 0:E.signal)==="CLIENT_SIGNAL"){var F;J=((F=_.v(N,_.EY))==null?void 0:F.actions)||[]}}if(J){(y=b8o(q,J))&&eel(q,N,b);N=_.Z(J);for(J=N.next();!J.done;J=N.next()){J=J.value;try{var R=Object.assign({},b);y&&(R.disableClickTracking=!0);q.resolveCommand(J,R)}catch(c){c instanceof Error&&_.po(c)}}return!0}DzR(N,"Could not handle the meta command");return!1},b8o=function(q,N){return N.every(function(b){return q.metaCommandClickLoggingDenylist.some(function(y){return!!_.v(b,
y)})})},NiM=function(q){var N;
return!((N=_.v(q==null?void 0:q.commandMetadata,_.gg))==null||!N.url)};var TD=function(){vb.apply(this,arguments)};
_.Y(TD,vb);TD.prototype.validate=function(q){var N,b;return!this.hasRun&&!!((N=q.data.response)==null?0:(b=N.onResponseReceivedEndpoints)==null?0:b.length)};
TD.prototype.handle=function(q){var N=_.bq.instance;q=_.Z(q.data.response.onResponseReceivedEndpoints);for(var b=q.next();!b.done;b=q.next())N.resolveCommand(b.value)};var yJM,JJq,EpJ;
yJM=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=_.bG();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.sM=function(){JJq||(JJq=new yJM);return JJq};
EpJ=function(){var q=_.sM();q.miniplayerButtonActivation=!1;q.userActivation=!1;q.playlistWatchPageActivation=!1;q.productDetailsPageActivation=!1;q.miniAppPageActivation=!1;q.playablesDestPageActivation=!1;q.lockupActivation=!1;q.showMiniplayerCommandActivation=!1;q.playlistSuggestionsShelfActivation=!1;q.mediaSessionPipActivation=!1;q.watchPipActivation=!1;q.watchWhileActivation=!1;q.shortsPipActivation=!1;q.companionCanvasActivation=!1};
_.gpx=function(){var q=_.sM(),N=q.mediaSessionPipActivation,b=q.watchPipActivation,y=q.watchWhileActivation,J=q.playlistWatchPageActivation,E=q.lockupActivation,F=q.showMiniplayerCommandActivation,R=q.navigatingAwayFromWatchDeletedVideo,c=q.shortsPipActivation,z=q.playlistSuggestionsShelfActivation,m=q.productDetailsPageActivation,r=q.miniAppPageActivation,X=q.playablesDestPageActivation,V=q.companionCanvasActivation;return!q.miniplayerButtonActivation&&!J&&!z&&!m&&!r&&!X&&!E&&!F&&!N&&!b&&!y&&!c&&
!V||R};var o4d;_.nm=_.P3("FEwhat_to_watch","/",3854);_.AcA=_.P3("FEdownloads","/feed/downloads",42352);o4d=_.P3("FEmusic_offline","browse/FEmusic_offline",42352);var SN=function(q,N){N=N===void 0?[]:N;var b=b===void 0?[]:b;N=pEJ.apply(null,[PuJ.apply(null,_.a9(N))].concat(_.a9(b)));this.store=eLd(q,void 0,N)};
SN.prototype.getState=function(){return this.store.getState()};
SN.prototype.dispatch=function(q){return this.store.dispatch(q)};
SN.prototype.subscribe=function(q){return this.store.subscribe(q)};
SN.prototype.replaceReducer=function(q){return this.store.replaceReducer(q)};
SN.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.aM=function(q,N,b){var y=N(q.getState());return q.subscribe(function(){var J=N(q.getState());if(J!==y){var E=y;y=J;b(J,E)}})};var QzR;_.$e=function(q,N,b){return _.B3({type:"REPLACE_ENTITY",payload:{entityPayload:b,entityType:q,key:N}})};
QzR=function(q){return _.B3({type:"REPLACE_ENTITIES",payload:q})};
_.GK=function(q,N,b,y){return _.B3({type:"UPDATE_ENTITY",payload:{entityPayload:b,entityType:q,key:N,mergeOption:y}})};var MOe=function(q){var N=this;q=q===void 0?[]:q;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;q.forEach(function(b){N.append(b)})};
_.g=MOe.prototype;_.g.getLength=function(){return this.totalLength};
_.g.append=function(q){var N=this.arrays.length===0?!1:(N=this.arrays[this.arrays.length-1])&&N.buffer===q.buffer&&N.byteOffset+N.length===q.byteOffset;N?(N=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(N.buffer,N.byteOffset,N.length+q.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(q);this.totalLength+=q.length};
_.g.split=function(q){for(var N=new MOe,b=new MOe,y=_.Z(this.arrays),J=y.next();!J.done;J=y.next())J=J.value,q>=J.length?(N.append(J),q-=J.length):q?(N.append(new Uint8Array(J.buffer,J.byteOffset,q)),b.append(new Uint8Array(J.buffer,J.byteOffset+q,J.length-q)),q=0):b.append(J);return{headView:N,tailView:b}};
_.g.isFocused=function(q){return q>=this.arrayPos&&q<this.arrayPos+this.arrays[this.arrayIdx].length};
_.g.focus=function(q){if(!this.isFocused(q))for(q<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=q&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var Z8q=function(q,N){q.focus(N);return q.arrays[q.arrayIdx][N-q.arrayPos]};(function(){var q=function(y){return new Uint8Array(y)},N=function(y){for(var J=new Uint8Array(y.length),E=0;E<y.length;E++)J[E]=y[E];
return J},b=new Uint8Array([1]);
return b.length===1&&b[0]===1?q:N})();
var aOR=Array(1024),n3D=window.TextDecoder?new TextDecoder:void 0,WJd=window.TextEncoder?new TextEncoder:void 0;var Pod=function(q){this.arrayView=q;this.pos=0;this.pendingTagAndType=-1},H3=function(q){var N=Z8q(q.arrayView,q.pos);
++q.pos;if(N<128)return N;for(var b=N&127,y=1;N>=128;)N=Z8q(q.arrayView,q.pos),++q.pos,y*=128,b+=(N&127)*y;return b},o3z=function(q,N){var b=q.pendingTagAndType;
for(q.pendingTagAndType=-1;q.pos+1<=q.arrayView.totalLength;){b<0&&(b=H3(q));var y=b>>3,J=b&7;if(y===N)return!0;if(y>N){q.pendingTagAndType=b;break}b=-1;switch(J){case 0:H3(q);break;case 1:q.pos+=8;break;case 2:y=H3(q);q.pos+=y;break;case 5:q.pos+=4}}return!1};var esh=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=pbu(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},bg=function(q,N){N=q.pos+N;
if(!(q.buf.length>=N)){for(var b=q.buf.length*2;b<N;)b*=2;q.buf=pbu(b,q.wasm,q.buf.subarray(0,q.pos));q.view=new DataView(q.buf.buffer,q.buf.byteOffset,q.buf.byteLength)}},NR=function(q,N){if(N>268435455){bg(q,4);
for(var b=N&1073741823,y=0;y<4;y++)q.view.setUint8(q.pos,b&127|128),b>>=7,q.pos+=1;N=Math.floor(N/268435456)}for(bg(q,4);N>127;)q.view.setUint8(q.pos,N&127|128),N>>=7,q.pos+=1;q.view.setUint8(q.pos,N);q.pos+=1};for(var Bed={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},AIu={},F3o=_.Z(Object.entries(Bed)),RoM=F3o.next();!RoM.done;RoM=F3o.next()){var dVM=_.Z(RoM.value),cJR=dVM.next().value,uZo=dVM.next().value,zoj=cJR,$VJ=uZo;$VJ&&(AIu[$VJ]=zoj)};var qSJ=function(q,N){q=q===void 0?{}:q;switch(N.type){case "ENTITY_LOADED":return N.payload.reduce(function(y,J){var E,F=(E=J.options)==null?void 0:E.persistenceOption;if(F&&F!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&F!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return y;if(!J.entityKey)return _.po(Error("If")),y;if(J.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!J.payload)return J=new _.IO("REPLACE entity mutation is missing a payload",{entityKey:J.entityKey}),_.po(J),y;var R=(0,_.nM.getAnyKey)(J.payload);
return bPd(y,R,J.entityKey,J.payload[R])}if(J.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{J=J.entityKey;try{var c=_.qR(J).entityType;R=bPd(y,c,J);break a}catch(r){if(r instanceof Error){J=new _.IO("Failed to deserialize entity key",{entityKey:J,originalMessage:r.message});_.po(J);R=y;break a}throw r;}R=void 0}return R}if(J.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!J.payload)return J=new _.IO("UPDATE entity mutation is missing a payload",{entityKey:J.entityKey}),_.po(J),y;R=(0,_.nM.getAnyKey)(J.payload);
var z,m;return y2z(y,R,J.entityKey,J.payload[R],(z=J.fieldMask)==null?void 0:(m=z.mergeOptions)==null?void 0:m.repeatedFieldsMergeOption)}return y},q);
case "REPLACE_ENTITY":var b=N.payload;return bPd(q,b.entityType,b.key,b.entityPayload);case "REPLACE_ENTITIES":return Object.keys(N.payload).reduce(function(y,J){var E=N.payload[J];return Object.keys(E).reduce(function(F,R){return bPd(F,J,R,E[R])},y)},q);
case "UPDATE_ENTITY":return b=N.payload,y2z(q,b.entityType,b.key,b.entityPayload,b.mergeOption);default:return q}};var J2J;var tpo=!1,SO,Wb,Lm,pm,Pb,mVM=function(q){_.UN.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!tpo){var N,b=new Uint8Array(256),y=new Uint8Array(256);var J=1;for(N=0;N<256;N++)b[J]=N,y[N]=J,J^=J<<1^(J>>7&&283);SO=new Uint8Array(256);Wb=ER(256);Lm=ER(256);pm=ER(256);Pb=ER(256);for(var E=0;E<256;E++){J=E?y[255^b[E]]:0;J^=J<<1^J<<2^J<<3^J<<4;J=J&255^J>>>8^99;SO[E]=J;N=J<<1^(J>>7&&283);var F=N^J;Wb[E]=N<<24|J<<16|J<<8|F;Lm[E]=F<<24|Wb[E]>>>8;pm[E]=J<<24|Lm[E]>>>
8;Pb[E]=J<<24|pm[E]>>>8}tpo=!0}J=ER(44);for(b=0;b<4;b++)J[b]=q[4*b]<<24|q[4*b+1]<<16|q[4*b+2]<<8|q[4*b+3];for(y=1;b<44;b++)q=J[b-1],b%4||(q=(SO[q>>16&255]^y)<<24|SO[q>>8&255]<<16|SO[q&255]<<8|SO[q>>>24],y=y<<1^(y>>7&&283)),J[b]=J[b-4]^q;this.key=J};
_.Y(mVM,_.UN);
mVM.prototype.encrypt=function(q){var N=q.length;q=new Uint8Array(q.buffer.slice(q.byteOffset,q.byteOffset+N));for(var b=this.cipherBlock,y=0;y<N&&this.blockOffset<16;)q[y++]^=b[this.blockOffset++];for(var J=N-(N-y)%16;y<J;)rJo(this),q[y++]^=b[0],q[y++]^=b[1],q[y++]^=b[2],q[y++]^=b[3],q[y++]^=b[4],q[y++]^=b[5],q[y++]^=b[6],q[y++]^=b[7],q[y++]^=b[8],q[y++]^=b[9],q[y++]^=b[10],q[y++]^=b[11],q[y++]^=b[12],q[y++]^=b[13],q[y++]^=b[14],q[y++]^=b[15];if(y<N)for(rJo(this),this.blockOffset=0;y<N;)q[y++]^=
b[this.blockOffset++];return q};
var rJo=function(q){for(var N=q.key,b=q.counter[0]^N[0],y=q.counter[1]^N[1],J=q.counter[2]^N[2],E=q.counter[3]^N[3],F=3;F>=0&&!(q.counter[F]=-~q.counter[F]);F--);for(var R,c,z=4;z<40;)F=Wb[b>>>24]^Lm[y>>16&255]^pm[J>>8&255]^Pb[E&255]^N[z++],R=Wb[y>>>24]^Lm[J>>16&255]^pm[E>>8&255]^Pb[b&255]^N[z++],c=Wb[J>>>24]^Lm[E>>16&255]^pm[b>>8&255]^Pb[y&255]^N[z++],E=Wb[E>>>24]^Lm[b>>16&255]^pm[y>>8&255]^Pb[J&255]^N[z++],b=F,y=R,J=c;q=q.cipherBlock;F=N[40];q[0]=SO[b>>>24]^F>>>24;q[1]=SO[y>>16&255]^F>>16&255;q[2]=
SO[J>>8&255]^F>>8&255;q[3]=SO[E&255]^F&255;F=N[41];q[4]=SO[y>>>24]^F>>>24;q[5]=SO[J>>16&255]^F>>16&255;q[6]=SO[E>>8&255]^F>>8&255;q[7]=SO[b&255]^F&255;F=N[42];q[8]=SO[J>>>24]^F>>>24;q[9]=SO[E>>16&255]^F>>16&255;q[10]=SO[b>>8&255]^F>>8&255;q[11]=SO[y&255]^F&255;F=N[43];q[12]=SO[E>>>24]^F>>>24;q[13]=SO[b>>16&255]^F>>16&255;q[14]=SO[y>>8&255]^F>>8&255;q[15]=SO[J&255]^F&255};var X8E=!1;(function(){var q=function(y){return new Uint8Array(y)},N=function(y){for(var J=new Uint8Array(y.length),E=0;E<y.length;E++)J[E]=y[E];
return J},b=new Uint8Array([1]);
return b.length===1&&b[0]===1?q:N})();
var Mz;var xV4=function(q){a:{if(!X8E&&!cv){if(Mz){var N=Mz;break a}Mz=(N=window.crypto)==null?void 0:N.subtle;var b,y,J;if(((b=Mz)==null?0:b.importKey)&&((y=Mz)==null?0:y.sign)&&((J=Mz)==null?0:J.encrypt)){N=Mz;break a}Mz=void 0}N=void 0}N&&(this.nativeEncryptor=new Vpl(q,N));this.encryptorPolyfill=new jyo(q)};
xV4.prototype.encrypt=function(q,N){var b=this,y;return _.d(function(J){switch(J.nextAddress){case 1:if(!b.nativeEncryptor){J.jumpTo(2);break}_.Yi(J,3);return J.yield(b.nativeEncryptor.encrypt(q,N),5);case 5:return J.return(J.yieldResult);case 3:y=_.K7(J),_.M6(y),X8E=!0,b.nativeEncryptor=void 0;case 2:return J.return(b.encryptorPolyfill.encrypt(q,N))}})};
xV4.prototype.decrypt=function(q,N){return this.encrypt(q,N)};
var Vpl=function(q,N){this.JSC$12925_aesKey=q;this.subtleCrypto=N};
Vpl.prototype.encrypt=function(q,N){var b=this,y;return _.d(function(J){if(J.nextAddress==1)return _.Yi(J,2),J.yield(vpF(b,q,N),4);if(J.nextAddress!=2)return J.return(J.yieldResult);y=_.K7(J);_.M6(y);X8E=!0;throw y;})};
var vpF=function(q,N,b){var y,J;return _.d(function(E){switch(E.nextAddress){case 1:if(q.cryptoKey){E.jumpTo(2);break}return E.yield(q.subtleCrypto.importKey("raw",q.JSC$12925_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:q.cryptoKey=E.yieldResult;case 2:return y={name:"AES-CTR",counter:b,length:128},E.yield(q.subtleCrypto.encrypt(y,q.cryptoKey,N),4);case 4:return J=E.yieldResult,E.return(new Uint8Array(J))}})},jyo=function(q){this.JSC$12928_aesKey=q};
jyo.prototype.encrypt=function(q,N){this.encryptor||(this.encryptor=new mVM(this.JSC$12928_aesKey));for(var b=this.encryptor,y=0;y<4;y++)b.counter[y]=N[y*4]<<24|N[y*4+1]<<16|N[y*4+2]<<8|N[y*4+3];b.blockOffset=16;return this.encryptor.encrypt(q)};
jyo.prototype.decrypt=function(q,N){return this.encrypt(q,N)};var GiJ={},ZPh=tS("yt-idb-pref-storage",{objectStores:(GiJ.prefs={addedAtVersion:1},GiJ),shared:!1,upgrade:function(q,N){N(1)&&q6(Hv(q,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.oM=function(q){this.token=q};
_.oM.getInstance=function(){return _.d(function(q){return q.return(new Promise(function(N){_.$5().then(function(b){b?(_.oM.instance||(_.oM.instance=new _.oM(b)),N(_.oM.instance)):N(void 0)})}))})};
_.oM.prototype.get=function(q){var N=this,b,y,J;return _.d(function(E){if(E.nextAddress==1)return E.yield(FNn(N.token),2);if(E.nextAddress!=3)return b=E.yieldResult,E.yield(b.get("prefs",q),3);y=E.yieldResult;if(!y)return E.return();J=(0,_.mA)();return y.expirationTimestampMs<=J?E.return():E.return(y.value)})};
_.oM.prototype.set=function(q,N,b){b=b===void 0?31536E3:b;var y=this,J,E,F;return _.d(function(R){if(R.nextAddress==1)return J=(0,_.mA)(),E={key:q,value:N,expirationTimestampMs:J+b*1E3},R.yield(FNn(y.token),2);F=R.yieldResult;return R.yield(F.put("prefs",E),0)})};
_.oM.prototype.remove=function(q){var N=this,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(FNn(N.token),2);b=y.yieldResult;return y.yield(b.delete("prefs",q),0)})};var AI={},Y8E=(AI.INVALID_ENCODER_VERSION="Invalid encoder version",AI.KEY_CREATION_FAILED="Failed to create encoder key",AI.UNKNOWN_DECODE_ERROR="Failed to decode PES data",AI.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",AI.WRONG_DATA_TYPE="Encoder cannot process the data type",AI),g3=function(q,N){N=N===void 0?{}:N;_.IO.call(this,Y8E[q],Object.assign({},{name:"PESEncoderError",type:q},N));this.type=q;this.level="WARNING";Object.setPrototypeOf(this,g3.prototype)};
_.Y(g3,_.IO);var eO=function(){};
eO.prototype.encode=function(q,N){try{return this.encodeImpl(q,N)}catch(b){u2A(b,dAd)}};
eO.prototype.decode=function(q,N){try{return this.decodeImpl(q,N)}catch(b){u2A(b,c2n)}};
var Qyj=function(q,N,b){var y;return _.d(function(J){if(J.nextAddress==1)return _.Yi(J,2),J.yield(q.decodeAsyncImpl(N,b),4);if(J.nextAddress!=2)return J.return(J.yieldResult);y=_.K7(J);u2A(y,c2n);_.hj(J)})};
eO.prototype.decodeAsyncImpl=function(q,N){return Promise.resolve(this.decodeImpl(q,N))};var Bb=function(q,N){this.aesEncryptor=q;this.aesEncryptorAsync=N};
_.Y(Bb,eO);Bb.prototype.encodeImpl=function(q,N){N=zPn(N);q=(new TextEncoder).encode(JSON.stringify(q));return this.aesEncryptor.encrypt(q,N)};
Bb.prototype.decodeImpl=function(q,N){if(!(q instanceof Uint8Array))throw RPZ(1);var b=new TextDecoder;N=zPn(N);q=this.aesEncryptor.decrypt(q,N);return JSON.parse(b.decode(q))};
Bb.prototype.decodeAsyncImpl=function(q,N){var b=this,y,J,E;return _.d(function(F){if(F.nextAddress==1){if(!(q instanceof Uint8Array))throw RPZ(1);y=new TextDecoder;J=zPn(N);return F.yield(b.aesEncryptorAsync.decrypt(q,J),2)}E=F.yieldResult;return F.return(JSON.parse(y.decode(E)))})};var $AC={accountLinkStatusEntity:$Mo,booleanEntity:aYT,buttonEntity:CDx,captionTrack:jRR,channelHandle:m2v,chipEntity:F$T,commerceAcquisitionClientPayloadEntity:RYx,commerceCartListEntity:dw1,compositeSourceEntity:fGM,multiviewStagingEntity:CdF,contextNoteFeedEntityPayload:lhx,contextNoteUserRatingEntityPayload:KSq,continuationTokenEntity:HmM,downloadQualityPickerEntity:aOq,downloadsPageRefreshTokenEntity:WJM,downloadsPageViewConfigurationEntity:FNT,downloadStatusEntity:SMM,dismissState:RH4,sfvAudioItemCurrentlyPlayingEntity:q6T,
emojiFountainDataEntity:kQx,emojiCustomizationSetEntity:hbF,fakeChannel:LCx,fakePlaylist:p0o,fakePlaylistEntryCollection:PeJ,fakeVideo:oTF,fakeVideoDescription:AG1,featuredProductsEntity:iPM,flowStateEntity:dM1,iconBadgeEntity:cv1,interstitialInteractionStateEntity:Kmq,likeButtonAnimationEntity:RP4,liveChatPollStateEntity:TUj,dataFreshnessEntity:KPx,liveViewerLeaderboardChatEntryPointStateEntity:UTx,liveViewerLeaderboardPointsEntity:fc1,liveReactionsDataEntity:UW1,logoEntity:iOq,macroMarkerEntity:dA1,
mainDownloadsLibraryEntity:LJJ,mainDownloadsListEntity:pbJ,mainPlaylistDownloadStateEntity:MOv,mainPlaylistEntity:qSx,mainPlaylistVideoEntity:NwF,mainVideoDownloadStateEntity:o3o,mainVideoEntity:E64,markersEngagementPanelSyncEntity:c2j,markersVisibilityOverrideEntity:u2R,musicAlbumReleaseDetail:SS1,musicAlbumReleaseDownloadMetadataEntity:IGx,musicAlbumRelease:aGq,musicAlbumReleaseUserDetail:WNj,musicArtistDetail:pWJ,musicArtist:LNl,musicArtistUserDetail:PdR,musicDownloadsLibraryEntity:Twv,musicLibraryEdit:MUv,
musicLibraryStatusEntity:o6x,musicPlaylist:A2x,musicPlaylistDownloadMetadataEntity:szM,musicShare:Bwl,musicTrackDetail:quF,musicTrackDownloadMetadataEntity:n61,musicTrack:HPo,musicTrackUserDetail:NT1,offlineOrchestrationActionWrapperEntity:xTx,offlineVideoPolicy:vYF,offlineVideoStreams:GEE,offlineabilityEntity:AIJ,orchestrationWebSamplingEntity:esF,pageHeaderEntity:vtl,pdpStateEntity:uT4,pinnedProductEntity:lGx,playbackData:Yu1,playerStateEntity:zPj,quantityIncrementerEntity:zY4,refresh:QRJ,saveToPlaylistListEntity:jk1,
selectedChipIndexEntityPayload:$A1,settingEntity:at1,stringEntity:SDM,suggestedFeedbackChipStateEntity:tU1,transfer:OVT,trendingOfferEntity:KN1,videoDownloadContextEntity:wQx,videoOverviewAsyncDataEntity:C1R,videoPlaybackPositionEntity:srE,votingEntity:ORj,ytMainChannelEntity:g6j,youchatPendingResponseEntity:mAM,ytMainDownloadedVideoEntity:BeM,ytMainVideoEntity:ZPF};var O8J,i8j,cT,v6d,GVe,DVv,kix,hoo,K3j;O8J=function(q,N){this.JSC$12947_wrapped=q;this.JSC$12947_encoderRegistry=N;this.changedKeys={}};
i8j=function(q,N){return w8l(q.JSC$12947_encoderRegistry,N.version).decode(N.data,N.key)};
_.lfE=function(q,N,b){return q.JSC$12947_wrapped.objectStore("EntityStore").get(N).then(function(y){if(y){if(b&&y.entityType!==b)throw Error("Jf");return i8j(q,y)}})};
cT=function(q,N,b){return b?(b=b.map(function(y){return _.lfE(q,y,N)}),qm.all(b)):q.JSC$12947_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(N)).then(function(y){return y.map(function(J){return i8j(q,J)})})};
_.xAZ=function(q,N,b){var y=Hmd(N),J=w8l(q.JSC$12947_encoderRegistry,1),E=Object.assign({},N);return q.JSC$12947_wrapped.objectStore("EntityStore").get(y).then(function(F){if(F){if(F.entityType!==b)throw Error("Jf");E.entityMetadata||(F=i8j(q,F),E.entityMetadata=F.entityMetadata)}}).then(function(){var F={key:y,
entityType:b,data:J.encode(E,y),version:1};return qm.all([q.JSC$12947_wrapped.objectStore("EntityStore").put(F),K3j(q,E,b)])}).then(function(){DVv(q,y,b);
return y})};
v6d=function(q,N){var b=_.qR(N).entityType;return qm.all([q.JSC$12947_wrapped.objectStore("EntityStore").delete(N),hoo(q,N)]).then(function(){DVv(q,N,b)})};
GVe=function(q,N,b,y){var J=w8l(q.JSC$12947_encoderRegistry,1);return _.lfE(q,N,y).then(function(E){if(E){E=sMD(E,b);var F={key:N,entityType:y,data:J.encode(E,N),version:1};return qm.all([q.JSC$12947_wrapped.objectStore("EntityStore").put(F),K3j(q,E,y)])}}).then(function(){DVv(q,N,y);
return N})};
DVv=function(q,N,b){var y=q.changedKeys[b];y||(y=new Set,q.changedKeys[b]=y);y.add(N)};
kix=function(q,N,b){var y=Hmd(N);b=tUd(b);if(!b)return qm.resolve([]);b=new b(N);q=q.JSC$12947_wrapped.objectStore("EntityAssociationStore");N=[];b=_.Z(b.getAssociations());for(var J=b.next();!J.done;J=b.next())N.push(q.put({parentEntityKey:y,childEntityKey:J.value}));return qm.all(N).then(function(E){return E.map(function(F){return F[1]})})};
hoo=function(q,N){return q.JSC$12947_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(N))};
K3j=function(q,N,b){var y=Hmd(N);return hoo(q,y).then(function(){return kix(q,N,b)})};var UVl=function(){};
_.Y(UVl,eO);UVl.prototype.encodeImpl=function(q){return q};
UVl.prototype.decodeImpl=function(q){if(q instanceof Uint8Array)throw RPZ(0);return q};var XWh=function(){this.cacheMap={};this.cacheMap[0]=new UVl;if(!_.x("aes_pes_encoder_killswitch")){var q=this.cacheMap;try{var N=_.f4();var b=zPn(N);var y=new Bb(new jyo(b),new xV4(b))}catch(J){throw q=J instanceof Error?new g3("KEY_CREATION_FAILED",{originalMessage:J.message}):new g3("KEY_CREATION_FAILED"),_.po(q),q;}q[1]=y}},w8l=function(q,N){N=N===void 0?0:N;
q=q.cacheMap[N];if(!q)throw N=new g3("INVALID_ENCODER_VERSION",{encoderVersion:N}),_.po(N),N;return q};var Ft=function(q,N){_.UN.call(this);this.token=q;this.JSC$12961_encoderRegistry=N;this.observers=[];q=new _.JZ.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.f4());q.onmessage=this.JSC$12961_handleMessage.bind(this);this.channel=q};
_.Y(Ft,_.UN);_.d3=function(q,N,b){var y,J,E,F;return _.d(function(R){if(R.nextAddress==1)return R.yield(g6n(q.token),2);if(R.nextAddress!=3)return y=R.yieldResult,R.yield(_.Fl(y,["EntityStore","EntityAssociationStore"],N,function(c){J=new O8J(c,q.JSC$12961_encoderRegistry);return b(J)}),3);
E=R.yieldResult;J&&(F=J.changedKeys,Object.keys(F).length>0&&(q.channel.postMessage(F),ffj(q,F)));return R.return(E)})};
Ft.prototype.observe=function(q){var N=this;this.observers.push(q);return function(){var b=N.observers.indexOf(q);b>=0&&N.observers.splice(b,1)}};
var jIh=function(q){var N;return _.d(function(b){if(b.nextAddress==1)return b.yield(_.d3(q,{mode:"readonly",enableRetries:!0},function(y){return y.JSC$12947_wrapped.objectStore("EntityStore").getAll()}),2);
N=b.yieldResult;return b.return(Promise.all(N.filter(function(y){return!!y}).map(function(y){var J,E;
return _.d(function(F){if(F.nextAddress==1){J=y.key;E=y.entityType;var R=F.yield;var c=Qyj(w8l(q.JSC$12961_encoderRegistry,y.version),y.data,y.key);return R.call(F,c,2)}return F.return({key:J,entityType:E,data:F.yieldResult})})})))})};
Ft.prototype.JSC$12961_handleMessage=function(q){ffj(this,q.data)};
var ffj=function(q,N){q=_.Z(q.observers);for(var b=q.next();!b.done;b=q.next())b=b.value,b(N)};
Ft.prototype.disposeInternal=function(){this.channel.close()};
var mAd;var Hb,Ifj,SSd;Hb={};_.CpJ=(Hb.mainVideoEntity="mainVideoEntityActionMetadata",Hb.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Hb.musicTrack="musicTrackEntityActionMetadata",Hb.musicPlaylist="musicPlaylistEntityActionMetadata",Hb);Ifj=new _.Jw("DOWNLOADS_ENTITY_TYPE_MAP");_.VU=_.yU("","downloadsPageViewConfigurationEntity");SSd=_.yU("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.vYh=_.yU("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.yU("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.yU("SMART_DOWNLOADS_ENABLED","settingEntity");_.yU("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var iPd=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var fGd=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var TiE={isLeaderTab:!0};var dTn={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var qA=window,hi=qA.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",RkA=qA.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||UR,$JZ=qA.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||gR,J34=qA.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||y3x,NRq=qA.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||tz1,ujn=qA.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||xEx;var Fyd;TC({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 w6C=tsu(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(q){return q}}}),DSe=tsu(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(q){return q}}}),VsJ=new Map;var ltz=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],Y6D;var syx=function(q){return _.B3({type:"SET_EPHEMERAL_ACTION",payload:q})};var npE={ephemeralAction:null};var af1=kH({ephemeralAction:function(q,N){q=q===void 0?npE.ephemeralAction:q;switch(N.type){case "SET_EPHEMERAL_ACTION":return N.payload;default:return q}}});var S8v=function(q){return _.B3({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:q})};var W3R={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var L3T={sharedUi:W3R,a11y:npE,entities:{}},iEJ={sharedUi:function(q,N){q=q===void 0?W3R:q;switch(N.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},q,{animatedThumbnailEnabled:N.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},q,{inlinePreviewEnabled:N.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},q,{currentPageType:N.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},q,{currentPageSubType:N.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},q,{persistentPanelVisible:N.payload});default:return q}},
a11y:af1,entities:Nwh};var ftA={playlistId:"",inviteLinkURL:""};var p8x={continuationCommand:{}};var jQz=kH({continuationCommand:function(q,N){q=q===void 0?p8x.continuationCommand:q;switch(N.type){case "SET_CONTINUATION_COMMAND":return N.payload.continuationCommand;default:return q}}});var Ite={currentFormId:"",commandsMap:{}};var x8h=kH({isLeaderTab:function(q,N){q=q===void 0?TiE.isLeaderTab:q;switch(N.type){case "SET_IS_LEADER_TAB":var b,y;return(y=N==null?void 0:(b=N.payload)==null?void 0:b.isLeaderTab)!=null?y:q;default:return q}}});var Mpl;_.Ppq=function(q){return _.B3({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:q}})};
Mpl=function(q){return _.B3({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:q}})};var NA={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var wXu=kH({isDesktopSmallWidth:function(q,N){q=q===void 0?NA.isDesktopSmallWidth:q;switch(N.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return N.payload.isDesktopSmallWidth;default:return q}},
isShortsActive:function(q,N){q=q===void 0?NA.isShortsActive:q;switch(N.type){case "SET_IS_SHORTS_ACTIVE":return N.payload.isShortsActive;default:return q}},
isWatchWhileMode:function(q,N){q=q===void 0?NA.isWatchWhileMode:q;switch(N.type){case "SET_IS_WATCH_WHILE_MODE":return N.payload.isWatchWhileMode;default:return q}},
playerState:function(q,N){q=q===void 0?NA.playerState:q;switch(N.type){case "SET_PLAYER_STATE":return N.payload.playerState;default:return q}},
isFullscreen:function(q,N){q=q===void 0?NA.isFullscreen:q;switch(N.type){case "SET_IS_FULLSCREEN":return N.payload.isFullscreen;default:return q}},
isSmallScreenSqueezeback:function(q,N){q=q===void 0?NA.isSmallScreenSqueezeback:q;switch(N.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return N.payload.isSmallScreenSqueezeback;default:return q}},
isShortsPipActive:function(q,N){q=q===void 0?NA.isShortsPipActive:q;switch(N.type){case "SET_IS_SHORTS_PIP_ACTIVE":return N.payload.isShortsPipActive;default:return q}},
isPlaybackStarted:function(q,N){q=q===void 0?NA.isPlaybackStarted:q;switch(N.type){case "SET_IS_PLAYBACK_STARTED":return N.payload.isPlaybackStarted;default:return q}}});var zHZ={currentMode:"canvas-hidden"};var K$h=function(){return function(q){return function(N){var b=q(N);_.By(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[N],!0);return b}}};var opj,Can;opj=new _.yk;_.Bk=new _.Jw("WATCH_PLAYER_PROMISE_TOKEN");_.AJ4=new _.yk;_.eoq=new _.Jw("SHORTS_PLAYER_PROMISE_TOKEN");Can=new _.Jw("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var D8D=function(){return function(q){return function(N){N.type==="ENTITY_LOADED"&&_.tz().resolve(_.Bk).then(function(b){var y;(y=b.dispatchReduxAction)==null||y.call(b,N)});
return q(N)}}};var Bix={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var v$d=kH({additionalContext:function(q,N){q=q===void 0?Bix.additionalContext:q;switch(N.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var b;return(b=N.payload)!=null?b:"";default:return q}},
impersonatedChannelUrl:function(q,N){q=q===void 0?Bix.impersonatedChannelUrl:q;switch(N.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var b;return(b=N.payload)!=null?b:"";default:return q}},
selectedVideoIds:function(q,N){q=q===void 0?Bix.selectedVideoIds:q;switch(N.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var b={};return Object.assign({},q,(b[N.payload]=!0,b));case "VIDEO_UNSELECTED":return N=N.payload,q=Object.assign({},q),delete q[N],q;default:return q}}});var H8x={parentClickTrackingParams:""};var G7n=kH({parentClickTrackingParams:function(q,N){q=q===void 0?H8x.parentClickTrackingParams:q;switch(N.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return N.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return q}}});var qQF=function(q){return _.B3({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:q})},NFj=function(q){return _.B3({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:q})};var bdF={stepStates:{}};var YbD=kH({stepStates:function(q,N){q=q===void 0?bdF.stepStates:q;switch(N.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var b=q,y=N.payload,J,E,F;q={};N={selectionStates:Object.assign({},(F=(J=b[y.stepId])==null?void 0:J.selectionStates)!=null?F:{},(q[y.token]={isSelected:y.isSelected},q)),userQuery:(E=b[y.stepId])==null?void 0:E.userQuery};J={};return Object.assign({},b,(J[y.stepId]=N,J));case "TALK_TO_RECS_UPDATE_USER_QUERY":return J=q,E=N.payload,F=
{selectionStates:Object.assign({},(y=(b=J[E.stepId])==null?void 0:b.selectionStates)!=null?y:{}),userQuery:{userQuery:E.userQuery,token:E.userQueryToken}},b={},Object.assign({},J,(b[E.stepId]=F,b));default:return q}}});var yKl,JKF,gOl;yKl=function(q){return _.B3({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:q})};
JKF=function(q){return _.B3({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:q})};
_.xJ=function(q){return _.B3({type:"SET_CURRENT_PAGE_TYPE",payload:q})};
_.EO1=function(q){return _.B3({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:q})};
gOl=function(q){return _.B3({type:"SET_CHIP_BAR_IS_STICKY",payload:q})};var tmu={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"};_.Zdx=function(q){return _.B3({type:"SET_PLAYER_STATE",payload:{playerState:q}})};var bd={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:rPd(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var QQZ=kH({isTheaterMode:function(q,N){q=q===void 0?rPd():q;switch(N.type){case "SET_IS_THEATER_MODE":return N.payload.isTheaterMode;default:return q}},
isWatchActive:function(q,N){q=q===void 0?bd.isWatchActive:q;switch(N.type){case "SET_IS_WATCH_ACTIVE":return N.payload.isWatchActive;default:return q}},
isLearningJourneyActive:function(q,N){q=q===void 0?bd.isLearningJourneyActive:q;switch(N.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return N.payload.isLearningJourneyActive;default:return q}},
isWatchFullscreen:function(q,N){q=q===void 0?bd.isWatchFullscreen:q;switch(N.type){case "SET_IS_WATCH_FULLSCREEN":return N.payload.isWatchFullscreen;default:return q}},
isWatchNarrowWidth:function(q,N){q=q===void 0?bd.isWatchNarrowWidth:q;switch(N.type){case "SET_IS_WATCH_NARROW_WIDTH":return N.payload.isWatchNarrowWidth;default:return q}},
isSwatcherooActive:function(q,N){q=q===void 0?bd.isSwatcherooActive:q;switch(N.type){case "SET_IS_SWATCHEROO_ACTIVE":return N.payload.isSwatcherooActive;default:return q}},
isWatchRetroMode:function(q,N){q=q===void 0?bd.isWatchRetroMode:q;switch(N.type){case "SET_IS_WATCH_RETRO_MODE":return N.payload.isWatchRetroMode;default:return q}},
isLiveChatCollapsed:function(q,N){q=q===void 0?bd.isLiveChatCollapsed:q;switch(N.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return N.payload.isLiveChatCollapsed;default:return q}},
openEngagementPanels:function(q,N){q=q===void 0?bd.openEngagementPanels:q;var b=[].concat(_.a9(q));switch(N.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return b.push(N.payload.panelToAdd),b;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return b.splice(b.indexOf(N.payload.panelToRemove),1),b;default:return q}},
playerState:function(q,N){q=q===void 0?bd.playerState:q;switch(N.type){case "SET_PLAYER_STATE":return N.payload.playerState;default:return q}},
watchScrollTop:function(q,N){q=q===void 0?bd.watchScrollTop:q;switch(N.type){case "SET_WATCH_SCROLL_TOP":return N.payload.watchScrollTop;default:return q}},
watchWindowSize:function(q,N){q=q===void 0?bd.watchWindowSize:q;switch(N.type){case "SET_WATCH_WINDOW_SIZE":return N.payload.watchWindowSize;default:return q}}});var Ffl={surveyFeedbackData:{feedbackTokens:[]}};var OEA=kH({surveyFeedbackData:function(q,N){q=q===void 0?Ffl.surveyFeedbackData:q;switch(N.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return N.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},q,N.payload);default:return q}}});var XXd={};var k7A=void 0;_.x("web_enable_redux_store_on_demand")||(k7A=hHd());var RvR=function(q,N,b){var y=this;this.listId=q;this.JSC$13105_updateCallback=N;this.isOfflineVideoCallback=b;_.WT().subscribe(function(){y.handleUpdate()})};
RvR.prototype.getPlaylistData=function(){var q=_.WT().getState().entities;if(this.listId&&this.listId!=="PPSV"){var N=HPz(q,this.listId,!0),b=_.yU(this.listId,"mainPlaylistEntity"),y,J;q=q==null?void 0:(y=q.mainPlaylistEntity)==null?void 0:(J=y[b])==null?void 0:J.title;return U8A(N,q,this.listId)}N=_.Cdh(iVD(q));q=_.Cdh(_.jN(q));q=N.concat(q);return U8A(q)};
RvR.prototype.getPlaylistId=function(){return this.listId};
RvR.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13105_updateCallback(this.listId,this.getPlaylistData(),{})};var yn=function(q,N,b,y){y=y===void 0?[]:y;this.JSC$13108_playlistNetworkManager=q;this.listId=N;this.JSC$13108_updateCallback=b;this.videoIds=y;this.pendingUpdates=[];this.currentIndex=0};
yn.prototype.JSC$13108_setCurrentIndex=function(q){this.currentIndex=q};
yn.prototype.setListId=function(q){this.listId=q};
var dlR=function(q,N){q.currentCreateRequest&&q.currentCreateRequest.cancel(N);q.currentUpdateRequest&&q.currentUpdateRequest.cancel(N);q.currentRefreshRequest&&q.currentRefreshRequest.cancel(N)};
yn.prototype.delete=function(){dlR(this,"PROXY DELETED")};
yn.prototype.addVideos=function(q,N,b){var y=this;b!==void 0?this.videoIds.splice.apply(this.videoIds,[b,0].concat(_.a9(q))):this.videoIds.push.apply(this.videoIds,_.a9(q));this.listId||this.currentCreateRequest?(q.forEach(function(J,E){J={addedVideoId:J,action:"ACTION_ADD_VIDEO"};b&&(J.addedVideoPosition=b+E);y.pendingUpdates.push(J)}),J2(this)):cKJ(this,N.onCreateListCommand)};
var uXo=function(q,N,b,y,J){TAR(q.videoIds,N,b);N>q.currentIndex&&b<=q.currentIndex?q.JSC$13108_setCurrentIndex(q.currentIndex+1):N===q.currentIndex?q.JSC$13108_setCurrentIndex(b):N<q.currentIndex&&b>=q.currentIndex&&q.JSC$13108_setCurrentIndex(q.currentIndex-1);q.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:y,movedSetVideoIdPredecessor:J});J2(q)},cKJ=function(q,N){dlR(q,"OBSOLETE");
q.currentCreateRequest=zvE(q.JSC$13108_playlistNetworkManager,N,q.videoIds);_.KJ(q.currentCreateRequest,function(){q.currentCreateRequest=void 0}).then(function(b){q.setListId(b.playlistId);
q.pendingUpdates.length>0?J2(q):$lF(q)})},J2=function(q){if(q.pendingUpdates.length!==0&&(q.currentRefreshRequest&&q.currentRefreshRequest.cancel("OBSOLETE"),!q.currentUpdateRequest&&!q.currentCreateRequest)){var N=q.pendingUpdates.splice(0,q.pendingUpdates.length);
q.currentUpdateRequest=q.JSC$13108_playlistNetworkManager.updatePlaylist(q.listId,N);_.KJ(q.currentUpdateRequest,function(){q.currentUpdateRequest=void 0}).then(function(){q.pendingUpdates.length>0?J2(q):$lF(q)}).thenCatch(function(){q.pendingUpdates.unshift.apply(q.pendingUpdates,_.a9(N))})}},$lF=function(q){q.currentRefreshRequest=_.twJ(q.JSC$13108_playlistNetworkManager,q.listId,q.currentIndex,q.videoIds[q.currentIndex]);
_.KJ(q.currentRefreshRequest,function(){q.currentRefreshRequest=void 0}).then(function(N){q.JSC$13108_updateCallback(N.playlistId,N.playlistPanelRenderer,N.autoplayRenderer)})};
yn.prototype.size=function(){return this.videoIds.length};var mlv=function(q,N,b,y){y=y===void 0?[]:y;yn.call(this,q,N,b,y);this.JSC$13108_playlistNetworkManager=q;this.listId=N;this.JSC$13108_updateCallback=b;this.videoIds=y};
_.Y(mlv,yn);_.ES=function(q,N,b,y,J,E,F){J=J===void 0?[]:J;F=F===void 0?FP:F;yn.call(this,q,N,b,J);this.JSC$13108_playlistNetworkManager=q;this.listId=N;this.JSC$13108_updateCallback=b;this.onAuthChange=y;this.videoIds=J;this.storage=E;this.cookieReader=F;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.B$(_.pY,this.checkLoggedInStatusChange.bind(this),1E3)};
_.Y(_.ES,yn);_.g=_.ES.prototype;_.g.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.B$(_.pY,this.checkLoggedInStatusChange.bind(this),1E3)};
_.g.JSC$13108_setCurrentIndex=function(q){yn.prototype.JSC$13108_setCurrentIndex.call(this,q);this.store()};
_.g.delete=function(){_.pY.cancelJob(this.queueSapisIdJob);yn.prototype.delete.call(this)};
_.g.setListId=function(q){yn.prototype.setListId.call(this,q);this.store()};
_.g.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var rKx=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],XJ4=["playerResponse","videoDetails"],VwJ=["response","currentVideoEndpoint","watchEndpoint","videoId"],jLF=["response","currentVideoEndpoint","watchEndpoint","playlistId"],xlJ=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],vOE=["response","contents","twoColumnWatchNextResults","playlist","playlist"],GH1=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
YQF=["response","contents","twoColumnWatchNextResults"];var gw={},sQu=(gw.WEB_UNPLUGGED="^unplugged/",gw.WEB_UNPLUGGED_ONBOARDING="^unplugged/",gw.WEB_UNPLUGGED_OPS="^unplugged/",gw.WEB_UNPLUGGED_PUBLIC="^unplugged/",gw.WEB_CREATOR="^creator/",gw.WEB_KIDS="^kids/",gw.WEB_EXPERIMENTS="^experiments/",gw.WEB_MUSIC="^music/",gw.WEB_REMIX="^music/",gw.WEB_MUSIC_EMBEDDED_PLAYER="^music/",gw.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",gw);var cvd,zvE;cvd=function(q,N){this.networkManager=q;this.innertubeTransportService=N};
zvE=function(q,N,b){if(!_.v(N,_.ZO))return _.ra(Error("Nf"));_.v(N,_.ZO).videoIds=b;b={create_playlist_title:_.FE("QUEUE",void 0,"Queue")};return Ivd(_.IE(q.innertubeTransportService,N,b),fvZ)};
_.twJ=function(q,N,b,y){N={videoId:y,playlistId:N,playlistIndex:b};b=_.LD(vrM);return Ivd(_.ZG(q.innertubeTransportService,N,b),T2A)};
cvd.prototype.updatePlaylist=function(q,N){return Ivd(_.IE(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:q,actions:N}}),CfR)};var QL4=function(q){this.storage=q},Odq;
QL4.prototype.store=function(q,N){N=N===void 0?0:N;if(this.storage&&q.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",q),this.storage.set("TLPQindex",String(N)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(b){}};
QL4.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
QL4.prototype.getPlaylistId=function(){if(!this.storage)return null;var q=null;try{q=this.storage.get("TLPQplaylist")}catch(N){}return q};var W$h=["navigationEndpoint","watchEndpoint","videoId"],SbR=["nextButtonVideo","watchEndpoint","videoId"];_.$8=new _.Jw("NETWORK_TOKEN");_.L6=new _.Jw("PAGE_TOKEN");_.F2=new _.Jw("PLAYLIST_TOKEN");var wJT;wJT=new _.Jw("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.tN=new _.Jw("INNERTUBE_TRANSPORT_TOKEN");var id1,Rz,KfJ,Dlj,kHx,Ull;id1=new Set(["ci","cr","carml"]);Rz=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13155_parkedJobs=new Map;this.parkedProcessors=new Map};
_.dw=function(){Rz.instance||(Rz.instance=new Rz);return Rz.instance};
Rz.prototype.onAny=function(q){return _.l_R(this,q,2)};
Rz.prototype.parkOrScheduleJob=function(q,N,b,y,J){_.cW(this,b)?_.ja().addJob(q,N,y):(J&&(q=KfJ(q),Dlj(this,q,N,b,J)),J=this.JSC$13155_parkedJobs.get(b),J||(this.JSC$13155_parkedJobs.set(b,[]),J=this.JSC$13155_parkedJobs.get(b)),J.push({job:q,priority:N,delay:y}))};
Rz.prototype.addListener=function(q,N,b){b&&(N=KfJ(N),Dlj(this,N,0,q,b));b=this.parkedProcessors.get(q);b||(this.parkedProcessors.set(q,[]),b=this.parkedProcessors.get(q));b.push(N)};
Rz.prototype.processSignal=function(q){if(!_.cW(this,q)){this.inProgressSignals.add(q);var N=this.JSC$13155_parkedJobs.get(q);if(N){N=_.Z(N);for(var b=N.next();!b.done;b=N.next())b=b.value,_.ja().addJob(b.job,b.priority,b.delay);this.JSC$13155_parkedJobs.delete(q)}if(N=this.parkedProcessors.get(q)){N=_.Z(N);for(b=N.next();!b.done;b=N.next())b=b.value,b();this.parkedProcessors.delete(q)}this.signals.push(q);this.inProgressSignals.delete(q)}};
_.cW=function(q,N){return id1.has(N)||_.ou("IS_HOMEPAGE_COLD")||_.ou("IS_RESULTS_PAGE_COLD")||_.ou("IS_WATCH_PAGE_COLD")?q.signals.indexOf(N)>=0:!0};
KfJ=function(q){var N=!1;return function(){N||(N=!0,q())}};
Dlj=function(q,N,b,y,J){if(hvx.has(y))_.ja().addJob(N,b,J);else{var E=q.compoundSignals.get(y);E&&_.ja().addJob(function(){_.cW(q,y)||(E.isTimeoutConditionSatisfied?_.ja().addJob(N,b):E.timeoutConditionObservers.push(function(){_.ja().addJob(N,b)}))},b,J)}};
_.l_R=function(q,N,b){if(N.length>1){var y=[],J=Object.create(null);N=_.Z(N);for(var E=N.next();!E.done;E=N.next())E=E.value,J[E]||(y.push(E),J[E]=!0);N=y}if(N.length===1)return N[0];E=N;y="";J=b===2?"|":"&";E.sort();E=_.Z(E);for(var F=E.next();!F.done;F=E.next())y+=F.value+J;if(!q.compoundSignals.get(y)){J=0;E=[];F=_.Z(N);for(var R=F.next();!R.done;R=F.next())R=R.value,J++,_.cW(q,R)||E.push(R);(b=b===2)&&J>E.length||!b&&!E.length?q.signals.push(y):kHx(q,y,b,N,E)}return y};
kHx=function(q,N,b,y,J){var E=J.length,F=function(){b||--E===0?q.processSignal(N):Ull(q,N)};
J=_.Z(J);for(var R=J.next();!R.done;R=J.next())q.addListener(R.value,F);q.compoundSignals.set(N,{signals:y,isOnAny:b,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Ull(q,N)};
Ull=function(q,N){if(!_.cW(q,N)){var b=q.compoundSignals.get(N);if(b&&!b.isTimeoutConditionSatisfied){for(var y=!1,J=0,E=0,F=_.Z(b.signals),R=F.next();!R.done;R=F.next()){var c=R.value;R=!_.cW(q,c);hvx.has(c)?y=!0:(c=q.compoundSignals.get(c))?R&&!c.isTimeoutConditionSatisfied&&(E++,b.isInitialized||c.timeoutConditionObservers.push(function(){Ull(q,N)})):R&&J++}b.isInitialized=!0;
b.isOnAny?y&&(b.isTimeoutConditionSatisfied=!0):J===0&&E===0&&(b.isTimeoutConditionSatisfied=!0);if(b.isTimeoutConditionSatisfied)for(b=_.Z(b.timeoutConditionObservers),y=b.next();!y.done;y=b.next())y=y.value,y()}}};
Rz.prototype.processSignal=Rz.prototype.processSignal;Rz.prototype.parkOrScheduleJob=Rz.prototype.parkOrScheduleJob;Rz.prototype.onAny=Rz.prototype.onAny;_.zn("ytsignals.getInstance",_.dw);Rz.prototype.onAny=Rz.prototype.onAny;Rz.prototype.parkOrScheduleJob=Rz.prototype.parkOrScheduleJob;Rz.prototype.processSignal=Rz.prototype.processSignal;var hvx=new Set(["eop","eocs","dl","pcl"]);_.l9=new _.Jw("MINIPLAYER_SERVICE");var ud,f_T,CNT;ud=function(q,N,b){var y=_.JD.getInstance();if(!Odq){var J=new aiu;var E=void 0,F=_.M7("ID_TOKEN");F&&J.isAvailable()&&(E=new aO(J,"yt-queue"+F));Odq=new QL4(E)}J=Odq;E=_.dw();this.JSC$13162_actionRouter=y;this.JSC$13162_pageManager=q;this.playlistManager=N;this.JSC$13162_playlistNetworkManager=b;this.storage=J;this.signals=E;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.zV=function(){if(!f_T){var q=_.tz(),N=q.resolve(_.$f(_.L6)),b=q.resolve(_.$f(_.$8)),y=q.resolve(_.$f(_.F2));q=q.resolve(_.tN);f_T=new ud(N,y,new cvd(b,q))}return f_T};
CNT=function(q,N,b){if(b){var y;if(((y=q.responsePlaylistData)==null?void 0:y.playlistId)!==b)return}q.responsePlaylistData&&(b=APD(N,q.responsePlaylistData),q.responsePlaylistData=(0,_.nM.unsafeClone)(q.responsePlaylistData),B2h(q.responsePlaylistData,b));b=q.temporaryItems.findIndex(function(J){return J.videoId===N});
b>-1&&q.temporaryItems.splice(b,1);_.$6(q,_.t2(q,q.response?q.response.autoplayRenderer:void 0))};
_.I_x=function(q,N){if(q.responsePlaylistData){var b=eHd(N,q.responsePlaylistData);B2h(q.responsePlaylistData,b);if(q.queueProxy){var y=q.queueProxy;b<0||(y.videoIds.splice(b,1),b<y.currentIndex&&y.JSC$13108_setCurrentIndex(y.currentIndex-1),y.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:N}),J2(y))}}_.$6(q,_.t2(q,q.response?q.response.autoplayRenderer:void 0))};
ud.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.$6(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
ud.prototype.setPlaylistData=function(q,N,b){this.temporaryItems=[];this.listId=q;this.responsePlaylistData=N;_.$6(this,_.t2(this,b))};
var TFx=function(q){return(q==null?0:q.playlistId)?q.playlistId:"PPSV"},sLo=function(q){return q&&q.playlistId?q.playlistId==="PPSV"?!0:ePe(_.WT().getState().entities,q.playlistId):!1};
ud.prototype.isPlayingOfflineVideo=function(){return this.response?sLo(this.response):!1};
ud.prototype.closeMiniplayer=function(q){var N=this.queueProxy&&this.queueProxy.size()<=1,b=_.tz().resolve(_.l9);if(!this.queueProxy||N)this.queueProxy&&this.clearQueue(),b.close(!0);else{b.pipController.getWindow()&&window.focus();N=this.responsePlaylistData;var y=this.temporaryItems.length+(N&&N.contents?N.contents.length:0);N=_.FE("QUEUE_CLEARED_UNPLURALIZED")||_.R5("QUEUE_CLEARED",y);N=_.PT(N);b=_.FE("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");y=_.FE("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.R5("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",y);var J=_.FE("MINIPLAYER_CLOSE",void 0,"Close"),E=_.FE("CANCEL",void 0,"Cancel");_.sU(this.JSC$13162_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.nD(b),dialogMessages:[_.nD(y)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.nD(J),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
N]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.nD(E)}}}}}}],q)}};
_.t2=function(q,N){var b={},y=q.response;b.autoplayRenderer=N;if(!q.responsePlaylistData&&!q.temporaryItems.length)return!y||!y.hasRelatedVideoData&&_.x("kevlar_prefetch_data_augments_network_data")||(b.playerData={rvs:y.relatedVideoArgs,endScreenRenderer:y.endScreenRenderer}),b;b.playerData={};if(q.index===void 0)return _.po(Error("Pf")),b;b.panel=q.responsePlaylistData?(0,_.nM.unsafeClone)(q.responsePlaylistData):{titleText:_.nD(_.FE("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
N=b.panel;if(N.contents)for(var J=_.Z(q.temporaryItems),E=J.next();!E.done;E=J.next())N.contents.push({playlistPanelVideoRenderer:E.value});q.queueProxy&&y&&y.playingVideo&&y.playingVideoId&&!o$n(y.playingVideoId,b.panel)&&(N=y.playingVideo,J=b.panel,E=q.index,J.contents&&J.contents.splice(E===void 0?0:E,0,{playlistPanelVideoRenderer:N}));y&&y.playingVideoId&&(N=q.index,J=b.panel,N=!J.contents||N>=J.contents.length?void 0:J.contents[N].playlistPanelVideoRenderer,N&&N.videoId===y.playingVideoId||(N=
APD(y.playingVideoId,b.panel),q.index=N!==-1?N:q.index?q.index-1:0));N=MmJ(q.index+1,b.panel);J=void 0;q.index>0&&(J=MmJ(q.index-1,b.panel));if(J||N)b.autoplayRenderer=L$D(N,J,b.autoplayRenderer);!N&&(y==null?0:y.relatedVideoArgs)&&(b.playerData.rvs=y.relatedVideoArgs);y=y?y.playlistIndexOffset:0;q.queueProxy?NmC(b.panel,q.index,y,PfD,!0,!0,!0):NmC(b.panel,q.index,y);b.playerData.playlistPanelRenderer=b.panel;return b};
ud.prototype.openToast=function(q){_.tz().resolve(_.l9).openToast(q,_.FE("ADDED_TO_QUEUE",void 0,"Added to queue"))};
ud.prototype.isMiniplayerActive=function(){return _.tz().resolve(_.l9).isMiniplayerActive()};
_.$6=function(q,N){q.playlistManager.setAutoplayRenderer(N.autoplayRenderer||null);q.playlistManager.setPlaylistData(N.panel||null);N.playerData&&q.playlistManager.setPlayerPlaybackControlData(N.playerData)};var ydz="#";var nOJ={},a_F={},SQJ={},WfM={},LfT={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:(nOJ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",nOJ),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:(a_F.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",a_F),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:(SQJ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",SQJ),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:(WfM.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",WfM),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 srD=[{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:LfT},{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:LfT}}];var lVJ;_.bI=[[["a2luZCN3aDQyaWZ0YWthZm8=","IzVmejBuNHU1c21kanZhbHVl"],"Izh4MGhpOHR0d21xdUFEX1BMQUNFTUVOVF9LSU5EX1NUQVJU"]];
lVJ=[[["NjR6bmVwcmltYXJ5I2Q1dTl5bjc=",null,null],[null,["b3dzZS1yZXN1bHRzLXJlbmRlcmVyIzg4aTZhMHQyMjdybXl0ZC10d28tY29sdW1uLWJy","IzY0Z2lxZ2Z0bnlic3N0eWxlLXNjb3Bl"],null],["IzRqbm0xczNmcG5wZm1hc3RoZWFkLWFk",["ZXIjcWMybmJ2b3pkZ2theXRkLXJpY2gtZ3JpZC1yZW5kZXI="],null],[null,["ZXIjNjZlYW0zZXl2dG9jeXRkLXJpY2gtZ3JpZC1yZW5kZXI=","I2h2Z285bHNtOG54cXN0eWxlLXNjb3Bl"],null],[null,["bWs5aGF0Z2VzeXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciN3Y3k=","I2lpYXI2NnQ0b3VuNXN0eWxlLXNjb3Bl"],null],[null,["bmRlcmVyIzlpcXRxbWJ0czNwbHl0ZC1hZC1zbG90LXJl"],
null]],[["YWRzI3VobDF2MWxqaDIyMnBsYXllci0=",null,null]]];_.NK=["NGdsb2JhbENhbGxiYWNrcyM4aXozNWh1OWh0MA==","ZXRlY3RlZCNjOW9mdm9vcXlnem9uQWJub3JtYWxpdHlE","em9uQWRTa2lwI3g3NjNiNjJvbWdw","cmVzcG9uc2Ujang4MzFwdGN3NWQxcmF3X3BsYXllcl8=","NW9sODlhZFNsb3RzIzVkN2VmdW8="];_.mN="NGdsb2JhbENhbGxiYWNrcyM4aXozNWh1OWh0MA== ZXRlY3RlZCNjOW9mdm9vcXlnem9uQWJub3JtYWxpdHlE em9uQWRTa2lwI3g3NjNiNjJvbWdw cmVzcG9uc2Ujang4MzFwdGN3NWQxcmF3X3BsYXllcl8= cXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjM2Q4NHQ2OGN0anRwd2ViX3BsYXlsaXN0Xw== MmFiX3NhX2VmI2dzeXd4dmxtcHFk NW9sODlhZFNsb3RzIzVkN2VmdW8=".split(" ");var rw;rw=function(q,N,b){this.cvz=q;this.vAg=N;this.z0F=b};
_.Bmh=[new rw("b.f_",!1,0),new rw("j.s_",!1,2),new rw("r.s_",!1,4),new rw("e.h_",!1,6),new rw("i.s_",!0,8),new rw("s.t_",!1,10),new rw("p.h_",!1,12),new rw("s.i_",!1,14),new rw("f.i_",!1,16),new rw("a.b_",!1,18),new rw("a.o_",!1),new rw("g.o_",!1,22),new rw("p.i_",!1,24),new rw("p.m_",!1),new rw("n.k_",!0,20),new rw("i.f_",!1),new rw("a.s_",!0),new rw("m.c_",!1),new rw("n.h_",!1,26),new rw("o.p_",!1),new rw("m.p_",!0,28),new rw("o.a_",!1),new rw("d.p_",!1),new rw("e.i_",!1)].reduce(function(q,N){q[N.cvz]=
N;return q},{});var pJo=function(){};
pJo.prototype.flush=function(q,N){q=q===void 0?[]:q;N=N===void 0?!1:N;if(_.x("enable_client_streamz_web")){q=_.Z(q);for(var b=q.next();!b.done;b=q.next())b=rXl(b.value),this.rootSpec&&_.ws(b,2,this.rootSpec),b={serializedIncrementBatch:_.Uf(b.JSC$9688_serializeBinary())},_.W_("streamzIncremented",b,{sendIsolatedPayload:N})}};
var FPA=function(){};
_.Y(FPA,pJo);var PNj=function(q){var N=new d0o;var b=new Z34;b=_.Up(b,1,"botguard");q=_.Up(b,2,q);this.rootSpec=_.iX(N,1,cXl,q)};
_.Y(PNj,pJo);var BT,Mw1=new Map;var kQJ,dWu,VYn,zbA,mWh,wFA,fVu,Qrd;kQJ=2;dWu=2;VYn=2;zbA=2;mWh=2;wFA=2;fVu=2;Qrd=new cSE;var AKx,ev1;AKx=function(){this.ongoingFlowNonces=new Map};
_.Ev=function(){ev1||(ev1=new AKx);return ev1};
_.JN=function(q,N,b){return{eventType:{flowEventNamespace:q,flowEventType:N},metadata:b,statusCode:void 0,csn:void 0,can:void 0}};
_.qEn=function(q,N){var b=_.Ev(),y=BF1(b,N,!0);b.logFlowEvent(q,N,y,void 0)};
AKx.prototype.logFlowEvent=function(q,N,b,y){N={flowNonce:b||BF1(this,N),flowType:N,flowEventType:q.eventType};q.metadata&&(N.flowMetadata=q.metadata);q.statusCode!==void 0&&(N.flowEventStatus=q.statusCode);q.csn&&(N.csn=q.csn);q.can&&(N.can=q.can);_.W_("flowEvent",N,y)};
var BF1=function(q,N,b){b=b===void 0?!1:b;var y=q.ongoingFlowNonces.get(N);if(!y||b)y=vy(16),q.ongoingFlowNonces.set(N,y);return y};_.HdT=new dm1;var ExZ={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 X2=function(q,N,b,y,J,E,F){b=b===void 0?!1:b;y=y===void 0?!1:y;E=E===void 0?_.zV():E;this.hasRun=!1;this.b4n=q;this.fJQ=N;this.jY8=b;this.fromHistory=y;this.previousVideoId=J;this.usF=E;this.tempData=F;this.ryK=new _.ull};
_.Y(X2,vb);X2.prototype.validate=function(q){return!(!q.data.playerResponse||q.data.page!=="watch"&&q.data.page!=="learning_journey_watch"&&q.data.page!=="shorts"||this.hasRun)};
X2.prototype.handle=function(q){var N=this,b=_.v(q.endpoint,_.nx),y=_.v(q.endpoint,_.uI);if(_.x("kevlar_continue_playback_without_player_response")&&(b==null?0:b.videoId)&&this.previousVideoId&&(b==null?void 0:b.videoId)===this.previousVideoId&&(b==null?0:b.continuePlayback)&&!this.fromHistory)this.b4n.resolve();else{var J={};b?J.watch_endpoint=b:y&&(J.watch_endpoint=y,y.endTimeSeconds&&(J.end=y.endTimeSeconds));q.data.page==="watch"?(q.data.filler||this.jY8||(_.OY("cfg"),_.JD.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(J,qmF(this,q.endpoint)),_.x("enable_masthead_quartile_ping_fix")&&Object.assign(J,NW1(this)),Object.assign(J,void 0),q.data.forceExternalPlaylist&&(J.external_list=!0)):q.data.page==="shorts"?_.JD.getInstance().triggerAction("yt-start-loading-shorts"):q.data.page==="learning_journey_watch"&&_.JD.getInstance().triggerAction("yt-start-loading-learning-journey");if(b=this.fJQ()){try{b.loadVideoWithPlayerResponse(q.data.playerResponse,J),b.getPlayerPromise().then(this.b4n.resolve)}catch(E){_.po(E),
this.b4n.resolve()}this.hasRun=!0;b.getPlayerPromise().then(function(E){E.addEventListener("onAbnormalityDetected",function(){var F=q.data.playerResponse,R=E.getVideoData().cpn;fVu=0;_.oOT=R;if(R=ebA(F))N.ryK.increment("IN_PLAYER"),_.g5(5),_.x("ab_st_vid_ks")?E.pauseVideo(!0):E.stopVideo(),F.playabilityStatus=Object.assign({},F.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:R}}),F.videoDetails=void 0,_.JD.getInstance().triggerOptionalAction("yt-updated-playability-status",
F.playabilityStatus)})})}else _.M6(Error("Sf"))}};
var qmF=function(q,N){var b=_.v(N,_.nx);if(N&&b&&b.playlistId&&b.videoId&&(q=q.usF,q.queueProxy?(q=q.queueProxy,b=q.listId===b.playlistId?q.attributionData.get(b.videoId):void 0):b=void 0,b))return{queue_info:b}},NW1=function(q){var N;
if((N=q.tempData)==null?0:N.adpings)return{adpings:q.tempData.adpings}};var Vn=function(q,N,b){this.hasRun=!1;this.pB8=q;this.siu=N;this.nyV=b};
_.Y(Vn,vb);Vn.prototype.validate=function(q){return!!_.nM.getValueByKeys.apply(null,[q.data].concat(_.a9(YQF)))};
Vn.prototype.handle=function(q){var N=this;this.pB8.promise.then(function(){var b=q.data;var y=_.nM.getValueByKeys.apply(null,[b].concat(_.a9(rKx))),J=_.nM.getValueByKeys.apply(null,[b].concat(_.a9(vOE))),E=_.nM.getValueByKeys.apply(null,[b].concat(_.a9(VwJ)));var F=(F=_.nM.getValueByKeys.apply(null,[b].concat(_.a9(XJ4))))?{videoId:F.videoId,thumbnail:F.thumbnail,title:F.title?_.nD(F.title):void 0,shortBylineText:F.author?_.nD(F.author):void 0}:void 0;var R=void 0;_.x("web_get_playlist_id_from_current_endpoint_ks")||
(R=_.nM.getValueByKeys.apply(null,[b].concat(_.a9(jLF))));var c=_.nM.getValueByKeys.apply(null,[b].concat(_.a9(GH1))),z=_.nM.getValueByKeys.apply(null,[b].concat(_.a9(xlJ))),m=!!c||!!z&&!!z.results&&z.results.length>0,r=0;J&&J.currentIndex&&J.localCurrentIndex&&(r=J.currentIndex-J.localCurrentIndex);J&&J.playlistId&&(R=J.playlistId);b={rawResponse:b,autoplayRenderer:y,hasRelatedVideoData:m,playingVideo:F,playingVideoId:E,playlistPanelRenderer:J,playlistId:R,playlistIndex:J&&J.currentIndex,relatedVideoArgs:c,
endScreenRenderer:z,playlistIndexOffset:r};a:{y=N.nyV;J=N.siu;y.response=b;if(sLo(b))y.downloadPlaylistProxy&&y.downloadPlaylistProxy.getPlaylistId()===TFx(b)||(y.downloadPlaylistProxy=new RvR(TFx(b),y.setPlaylistData.bind(y),y.isPlayingOfflineVideo.bind(y))),y.responsePlaylistData=y.downloadPlaylistProxy.getPlaylistData(),y.listId=TFx(b),y.index=0;else if(b.playlistPanelRenderer&&b.playlistId&&b.autoplayRenderer)b.playlistId.startsWith("TLPQ")?y.queueProxy?y.listId===b.playlistId?(y.index=b.playlistIndex,
y.responsePlaylistData=b.playlistPanelRenderer,y.queueProxy.JSC$13108_setCurrentIndex(y.index)):b.playingVideoId&&y.index!==void 0&&J.clientParams.autoSaveToQueue&&(y.index+=1,y.queueProxy.JSC$13108_setCurrentIndex(y.index),y.queueProxy.addVideos([b.playingVideoId],{},y.index)):(y.queueProxy=new _.ES(y.JSC$13162_playlistNetworkManager,b.playlistId,y.setPlaylistData.bind(y),y.clearQueue.bind(y),_.HEh(b.playlistPanelRenderer),y.storage),y.responsePlaylistData=b.playlistPanelRenderer,y.listId=b.playlistId,
y.index=b.playlistIndex):(y.index=b.playlistIndex,y.listId!==b.playlistId&&y.clearQueue(),y.responsePlaylistData=b.playlistPanelRenderer,y.listId=b.playlistId,y.playlistProxy=new mlv(y.JSC$13162_playlistNetworkManager,b.playlistId,y.setPlaylistData.bind(y),_.HEh(b.playlistPanelRenderer)));else if(!y.queueProxy)y.responsePlaylistData=void 0;else if(b.playingVideoId&&J.clientParams.autoSaveToQueue){if(y.index===void 0){_.po(Error("Of"));y.clearQueue();break a}y.queueProxy.videoIds.includes(b.playingVideoId)||
(y.index+=1,y.queueProxy.JSC$13108_setCurrentIndex(y.index),y.queueProxy.addVideos([b.playingVideoId],{},y.index))}_.$6(y,_.t2(y,y.response.autoplayRenderer))}})};var bwl=function(q,N){N=N===void 0?_.zV():N;IM.call(this);this.sQ.push(new Vn(this.eW,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},N));this.sQ.push(new X2(this.eW,q,!1,!1));_.x("web_response_commands_chunk_processor")&&this.sQ.push(new TD)};
_.Y(bwl,IM);bwl.prototype.processChunk=function(q){q&&q.data.player===void 0&&this.eW.resolve();IM.prototype.processChunk.call(this,q)};var jU=function(q,N){q=q===void 0?{layer:0}:q;this.hasRun=!1;this.createScreenConfig=q;this.wRq=N};
_.Y(jU,vb);jU.prototype.validate=function(q){return!(this.hasRun||!q.endpoint)};
jU.prototype.handle=function(q){var N=_.FR(),b,y,J=(y=_.v((b=q.endpoint)==null?void 0:b.commandMetadata,_.gg))==null?void 0:y.rootVe;this.wRq&&J?_.DO(N,J,this.wRq,this.createScreenConfig):Si1(N,q.endpoint,this.createScreenConfig);this.hasRun=!0};var x6=function(q,N){this.hasRun=!1;this.vyq=q;this.previousVideoId=N};
_.Y(x6,vb);x6.prototype.validate=function(q){return _.x("kevlar_continue_playback_without_player_response")&&(q=_.v(q.endpoint,_.nx),(q==null?0:q.videoId)&&this.previousVideoId&&(q==null?void 0:q.videoId)===this.previousVideoId&&(q==null?0:q.continuePlayback))?!1:this.vyq.i0S===0};
x6.prototype.handle=function(q){_.JD.getInstance().triggerAction("yt-stop-old-player",q.data,!0)};var yqq=function(q){q=q===void 0?{layer:0}:q;IM.call(this);this.sQ.push(new x6(this));this.sQ.push(new jU(q));this.sQ.push(new Cm(q))};
_.Y(yqq,IM);var Y6=function(){vb.apply(this,arguments)};
_.Y(Y6,vb);Y6.prototype.validate=function(q){return!!q.data.preconnect};
Y6.prototype.handle=function(q){_.Q6("bc");q=_.Z(q.data.preconnect);for(var N=q.next();!N.done;N=q.next())N=N.value,(new Image).src=N};var JqR=function(q,N,b,y,J,E,F){b=b===void 0?{layer:0}:b;E=E===void 0?_.zV():E;IM.call(this);if(y)if(J){J=E;this.sQ.push(new Vn(this.eW,N,J));this.sQ.push(new Y6);var R,c;this.sQ.push(new X2(this.eW,q,!1,!((R=N.clientParams)==null||!R.fromHistory),(c=N.clientParams)==null?void 0:c.previousVideoId,J,N.tempData));var z;this.sQ.push(new x6(this,(z=N.clientParams)==null?void 0:z.previousVideoId));var m;(m=N.clientParams)!=null&&m.fromHistory||(b.layer||(b=Object.assign({},b,{layer:0})),this.sQ.push(new jU(b,
F)),this.sQ.push(new Cm(b)))}else this.sQ.push(new Vn(this.eW,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},E)),this.sQ.push(new X2(this.eW,q,!1,!1));else this.sQ.push(new x6(this)),this.sQ.push(new jU(b)),this.sQ.push(new Cm(b));_.x("web_response_commands_chunk_processor")&&y&&this.sQ.push(new TD)};
_.Y(JqR,IM);JqR.prototype.processChunk=function(q){q&&q.data.player===void 0&&this.eW.resolve();IM.prototype.processChunk.call(this,q)};var EGl=function(){this.hasRun=this.hasRun=!1};
_.Y(EGl,vb);EGl.prototype.validate=function(q){return!this.hasRun&&!(!q.data.csn||!q.data.rootVe)};
EGl.prototype.handle=function(q){this.hasRun=!0;_.iE(q.data.csn,q.data.rootVe,3)};var gGx=function(q,N,b){b=b===void 0?{layer:0}:b;IM.call(this);this.sQ.push(new X2(this.eW,q));this.sQ.push(new jU(b));this.sQ.push(new Cm(b))};
_.Y(gGx,IM);var Zwo=function(q,N,b,y,J){b=b===void 0?{layer:0}:b;y=y===void 0?_.zV():y;IM.call(this);var E=!!N&&!!N.clientParams&&!!N.clientParams.miniplayer;E&&this.sQ.push(new EGl);this.sQ.push(new Vn(this.eW,N,y));this.sQ.push(new Y6);var F,R;this.sQ.push(new X2(this.eW,q,E,!((F=N.clientParams)==null||!F.fromHistory),(R=N.clientParams)==null?void 0:R.previousVideoId,y,N.tempData));var c;this.sQ.push(new x6(this,(c=N.clientParams)==null?void 0:c.previousVideoId));var z;(z=N.clientParams)!=null&&z.fromHistory||
(b.layer||(b=Object.assign({},b,{layer:E?3:0})),this.sQ.push(new jU(b,J)),this.sQ.push(new Cm(b)));_.x("web_response_commands_chunk_processor")&&this.sQ.push(new TD)};
_.Y(Zwo,IM);var Qn,dk1;Qn={};
_.F2R=(Qn["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Qn["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Qn["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Qn["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Qn["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Qn["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Qn["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Qn);_.OS=new _.ed("yt-edu");_.ROq=function(){this.JSC$13260_eduDisplayedThisLoad_={}};
dk1=function(q){var N=_.ROq.getInstance();var b=_.VX("kevlar_tooltip_impression_cap");N=b&&parseInt(_.OS.get(q+"-impression")||0,10)>=b||_.OS.get(q+"-dismissed")?!1:(b=_.F2R[q])&&!N.JSC$13260_eduDisplayedThisLoad_[b.setKey||q]&&(b.titleText&&_.FE(b.titleText)||b.bodyText&&_.FE(b.bodyText))?!0:!1;if(!N)return null;N=_.F2R[q];if(!N)return null;b=N.bodyText?_.FE(N.bodyText):void 0;var y=N.titleText?_.FE(N.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:N.position,popup:{bubbleHintRenderer:{text:y?
_.nD(y):void 0,detailsText:b?_.nD(b):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.nD(_.FE("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:q}}]}}}}}}}},{eduImpressionAction:{key:q}}]};
_.PV(_.ROq);var NKn=!1;for(var cqT="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),uoR=[],ww=6;ww>=1;ww--)uoR.push({columnCount:ww,query:ww==1?0:ww*2*107-4+32,className:"grid-"+ww+"-columns",width:ww*2*107+"px"});_.id=function(q){this.actionRouter_=q=q===void 0?_.JD.getInstance():q;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.zOx(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.zOx=function(q){var N=q.documentWidth_-(q.miniGuideVisible_?72:0)-(q.guidePersistentAndVisible_?240:0)-(q.persistentPanelVisible_?400:0);return uoR.find(function(b){return N>b.query})};
_.PV(_.id);var $ko=function(){var q=this;this.JSC$13272_keyboardInUse=!1;document.addEventListener("keydown",function(){q.onKeydown()});
document.addEventListener("mousedown",function(){q.JSC$13272_keyboardInUse=!1})},tfv;
$ko.prototype.isKeyBoardInUse=function(){return this.JSC$13272_keyboardInUse};
$ko.prototype.onKeydown=function(){this.JSC$13272_keyboardInUse=!0};var mk1,DG;_.ld=new _.ed("yt-mentions");_.KP=function(){};
mk1=function(q,N){return DG(N,"drag-to-reorder-edu-displayed")};
DG=function(q,N,b,y,J,E){b=b===void 0?"OPEN_POPUP_POSITION_TOP":b;if(N){if(_.ld.get(N))return;_.ld.set(N,!0,y)}if(J&&E!==void 0){N=Number(_.ld.get(J)||0);if(N>=E)return;_.ld.set(J,N+1)}return[{openPopupAction:{popupType:"HINT",position:b,popup:{bubbleHintRenderer:{detailsText:q,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.PV(_.KP);var rqR,Xp1,Vf4;rqR=function(q,N,b,y){this.JSC$13282_taskManager_=q;this.onFulfilled_=typeof N==="function"?N:null;this.onRejected_=typeof b==="function"?b:null;this.JSC$13282_context_=y};
Xp1=function(q,N){q.onFulfilled_&&_.rj(q.JSC$13282_taskManager_,function(){q.onFulfilled_.call(q.JSC$13282_context_,N)})};
Vf4=function(q,N){q.onRejected_&&_.rj(q.JSC$13282_taskManager_,function(){q.onRejected_.call(q.JSC$13282_context_,N)})};
_.h2=function(q){this.JSC$13285_taskManager_=q;this.callbacks_=[]};
_.h2.prototype.then=function(q,N,b){this.callbacks_.push(new rqR(this.JSC$13285_taskManager_,q,N,b));return this};
_.h2.prototype.onSuccess=function(q){this.callbacks_.forEach(function(N){Xp1(N,q)})};
_.h2.prototype.onFailure=function(q){this.callbacks_.forEach(function(N){Vf4(N,q)})};
_.h2.prototype.cancel=function(){this.callbacks_.length=0};
juM(_.h2);_.ZSz=null;_.$P=new _.Jw("ACTIVITY_TOKEN");var j14;_.rh=new _.Jw("PAGE_REQUEST_TOKEN");j14=new _.Jw("FETCH_PBJ_TOKEN");_.xk1=function(q){if(q.validatedFragments_.length==0)return null;if(!q.mergedPrefetchedData_){for(var N=[],b=_.Z(q.validatedFragments_),y=b.next();!y.done;y=b.next()){y=_.Z(q.fragmentConfiguration_[y.value].graftedKeys);for(var J=y.next();!J.done;J=y.next())(J=q.prefetchedData_[J.value].trackingParams)&&N.push(J)}q.mergedPrefetchedData_={};Object.assign(q.mergedPrefetchedData_,q.prefetchedData_,{clientSideGrafts:N})}return q.mergedPrefetchedData_};var vGj;_.k6=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
vGj=function(q,N,b){if(_.Fon(N))return q.prefetchCache_.get(_.RYJ(N,b))};_.US=new _.Jw("NAVIGATION_TOKEN");var G_x=function(q){var N=this;var b=b===void 0?uTZ():b;var y=y===void 0?_.tz().resolve(_.US):y;this.onePickCommand=q;this.JSC$13357_playlistNetworkManager=b;this.navigationManager=y;this.videoPickerBuilder=_.dwC("yt-addtoplaylist");_.nFM(kyj(UPR(h0R(this.videoPickerBuilder.setTitle(q.modalTitle).setSize(1E3).addView(C_q()).addView(fmT())).addView("youtube"),q.selectButtonLabel)),function(J){N.handleAction(J)})};
G_x.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
G_x.prototype.handleAction=function(q){var N=this;if(q&&this.onePickCommand.listId&&q.action==="picked"&&q.docs){var b=[];q.docs.forEach(function(y){b.push({addedVideoId:y.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13357_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,b).then(function(){_.x("playlist_add_video_hard_reload_killswitch")?N.navigationManager.reload():Yml(N.navigationManager)})}};var Q1x=function(){if(this.constructor===Q1x)throw new TypeError("Uf");};
_.g=Q1x.prototype;_.g.dispose=function(){};
_.g.disconnect=function(){};
_.g.reconnect=function(){};
_.g.observe=function(q,N,b){return{element:q,option:b}};
_.g.unobserveByKey=function(){};var zYZ=function(q,N){N=N===void 0?0:N;Q1x.call(this);this.viewroot=q;this.defaultPrescanHeight=N;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),q?{root:q,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.Y(zYZ,Q1x);_.g=zYZ.prototype;_.g.dispose=function(){this.disconnect();this.handlers.clear()};
_.g.disconnect=function(q){this.isConnected=!1;this.pauseObservingUntilReconnect=q===void 0?!1:q;this.observer.disconnect();q=_.Z(this.prescanObservers.values());for(var N=q.next();!N.done;N=q.next())N.value.disconnect()};
_.g.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var q=_.Z(this.handlers),N=q.next();!N.done;N=q.next()){var b=_.Z(N.value);N=b.next().value;var y=b.next().value;b=!1;y=_.Z(y.keys());for(var J=y.next();!J.done;J=y.next())if((J=J.value)&&J.state==="prescan"){b=!0;break}b&&Owx(this,N).observe(N);this.observer.observe(N)}}};
_.g.handleObserveEvent=function(q){q=_.Z(q);for(var N=q.next();!N.done;N=q.next()){N=N.value;var b=this.handlers.get(N.target);if(b){var y=N.isIntersecting;b=_.Z(b);for(var J=b.next();!J.done;J=b.next()){var E=_.Z(J.value);J=E.next().value;E=E.next().value;J&&(J.state==="visible"&&y||J.state==="hidden"&&!y)&&(E(N.target,J.state),J.calledOnce&&this.unobserveByKey({element:N.target,option:J}))}}}};
_.g.handlePrescanEvent=function(q){q=_.Z(q);for(var N=q.next();!N.done;N=q.next()){N=N.value;var b=this.handlers.get(N.target);if(b&&N.isIntersecting){b=_.Z(b);for(var y=b.next();!y.done;y=b.next()){var J=_.Z(y.value);y=J.next().value;J=J.next().value;y&&y.state==="prescan"&&(J(N.target,y.state),y.calledOnce&&this.unobserveByKey({element:N.target,option:y}))}}}};
_.g.observe=function(q,N,b){var y=(y=this.handlers.get(q))&&y.has(b)?{element:q,option:b}:void 0;if(y)return y;y={element:q,option:b};this.handlers.has(q)||this.handlers.set(q,new Map);var J=this.handlers.get(q);J&&!J.has(b)&&J.set(b,N);this.pauseObservingUntilReconnect||(b.state==="prescan"&&Owx(this,q).observe(q),this.observer.observe(q));return y};
_.g.unobserveByKey=function(q){var N=this.handlers.get(q.element);if(N&&N.has(q.option)){N.delete(q.option);if(q&&q.option.state==="prescan")for(var b=_.Z(this.prescanObservers.values()),y=b.next();!y.done;y=b.next())y.value.unobserve(q.element);N.size===0&&(this.handlers.delete(q.element),this.observer.unobserve(q.element))}};
var Owx=function(q,N){var b=q.defaultPrescanHeight;N.hasAttribute("prescan-height")&&(N=Number(N.getAttribute("prescan-height")),isNaN(N)||(b=N));if(q.prescanObservers.has(b))return q.prescanObservers.get(b);N="-0.1px -0.1px "+b+"px -0.1px";N=new IntersectionObserver(q.handlePrescanEvent.bind(q),q.viewroot?{root:q.viewroot,rootMargin:N}:{rootMargin:N});q.prescanObservers.set(b,N);return N};var wpq=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],iwM=function(){var q,N=this;this.JSC$13374_actionRouter=q=q===void 0?_.JD.getInstance():q;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return N.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return N.visibilityObservedElementHandlerKeys}}},lJE,DkR,Ukx;
iwM.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.x("kevlar_use_vimio_behavior")&&_.M7("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=$wh())};
iwM.prototype.dispose=function(){this.visibilityMonitor&&_.QL(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
iwM.prototype.handleVisibilityRefreshed=function(){for(var q=_.Z(this.targetMap.entries()),N=q.next();!N.done;N=q.next()){var b=_.Z(N.value);N=b.next().value;b=b.next().value;_.K2j(this,N,b)}};
_.k_4=function(q,N,b){DkR(q,b);var y=_.hO1(q,N);y.element=b;q.targetedElements.set(b,N);_.K2j(q,N,y)};
DkR=function(q,N){var b=q.targetedElements.get(N);if(b){var y=q.targetMap.get(b);y&&(delete y.element,q.targetMap.set(b,y));q.targetedElements.delete(N);q.visibilityObserver&&q.visibilityObservedElementHandlerKeys&&(b=q.visibilityObservedElementHandlerKeys.get(N))&&(q.visibilityObserver.unobserveByKey(b),q.visibilityObservedElementHandlerKeys.delete(N))}};
_.K2j=function(q,N,b){var y=b.action,J=b.element;J&&y&&(wpq.includes(N)||_.M7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||q.visibilityMonitor&&q.visibilityMonitor.isNodeVisible(J)?Ukx(q,N,b):q.visibilityObserver&&(q.visibilityObservedElementHandlerKeys||(q.visibilityObservedElementHandlerKeys=new WeakMap),y=q.visibilityObserver.observe(J,function(){Ukx(q,N,b);q.visibilityObservedElementHandlerKeys.delete(J)},{calledOnce:!0,
state:"visible"}),q.visibilityObservedElementHandlerKeys.set(J,y)))};
Ukx=function(q,N,b){var y=b.action;(b=b.element)&&y&&(_.sU(q.JSC$13374_actionRouter,[y],b),q.targetMap.delete(N),q.targetedElements.delete(b),q.triggeredTargets.add(N))};
_.hO1=function(q,N){var b=q.targetMap.get(N);b||(b={},q.targetMap.set(N,b));return b};
_.fP=function(){lJE||(lJE=new iwM);return lJE};var fJj=document.createElement("div");fJj.style.touchAction="pan-down";var tid=fJj.style.touchAction==="pan-down";var CFR,IJj;CFR=function(){this.hammerFn=sK4();this.JSC$13382_screenManager=_.FR();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.bx(83615);_.k3(this.JSC$13382_screenManager,this.ve);mwA()};
_.CP=function(){IJj||(IJj=new CFR);return IJj};
CFR.prototype.registerTouchEvents=function(q,N,b){var y=_.MB.apply(3,arguments),J=this.hammerFn(q,{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}]]});b&&J.set({touchAction:b});this.nodeManagerMapping.set(q,J);var E=
rvd(N);y=_.Z(y);for(var F=y.next();!F.done;F=y.next()){F=F.value;if(F.includes("swipe")||F.includes("pinch")||F.includes("pan"))F.includes("swipe")?J.get("swipe").set({enable:!0,direction:E,velocity:.2}):F.includes("pinch")?J.get("pinch").set({enable:!0}):F.includes("pan")&&(J.get("pan").set({enable:!0,direction:E}),J.get("swipe").set({enable:!0,direction:E,velocity:.2}),J.get("swipe").recognizeWith("pan"));TWE(this,q,J,F)}};
var TWE=function(q,N,b,y){b.on(y,function(J){if(y.includes("pinch"))q.lastPinchTime=Date.now();else if(y.includes("swipe")&&Date.now()-q.lastPinchTime<400)return;J.pointerType!=="mouse"&&(J=y==="doubletap"?{coordinates:J.center}:y.includes("pan")?J:y.includes("swipe")?{target:J.target}:{},N.dispatchEvent(new CustomEvent(y,{bubbles:!0,composed:!0,detail:J})))})};
CFR.prototype.unregisterTouchEvents=function(q){var N=_.MB.apply(1,arguments),b=this.nodeManagerMapping.get(q);if(b){N=_.Z(N);for(var y=N.next();!y.done;y=N.next())b.off(y.value);this.nodeManagerMapping.delete(q);q.style.touchAction="unset"}};var s1x=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var Xjn=null;_.ml={getLocalStorage:_.x_(function(){try{var q=new noA;var N=q.isAvailable()?q:null}catch(b){return null}return N?new _.Gj(N):null}),
getSessionStorage:_.x_(function(){var q=new aiu;return q.isAvailable()?new _.Gj(q):null})};var nGM=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},C1A=function(){nGM.instance||(nGM.instance=new nGM);
return nGM.instance},I2A=function(q){var N=q.networkEvents;
q.networkEvents=[];return _.x("enable_network_monitoring")?N:[]};var aJx;aJx={};_.SmJ=tS("yt-serviceworker-metadata",{objectStores:(aJx.auth={addedAtVersion:1},aJx["resource-manifest-assets"]={addedAtVersion:2},aJx),shared:!0,upgrade:function(q,N){N(1)&&Hv(q,"resource-manifest-assets");N(2)&&Hv(q,"auth")},
version:2});var YEh=self.location.origin+"/";QHd([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);QHd([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);QHd([/\.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\//]);QHd([/purge_shell=1/]);var W2x=void 0;W2x=W2x===void 0?[]:W2x;
for(var L2J=[],ppM=_.Z(reM),PF1=ppM.next();!PF1.done;PF1=ppM.next())L2J.push({key:PF1.value});for(var Mfv=_.Z(W2x),oGx=Mfv.next();!oGx.done;oGx=Mfv.next())L2J.push(oGx.value);var Aqq,je=_.JZ==null?void 0:(Aqq=_.JZ.performance)==null?void 0:Aqq.memory,iSZ=!1,TKJ={},Dwn={},x8={},vP=navigator;var Iz=function(q){this.JSC$13427_expiringStorage=new sV(q)};
Iz.prototype.set=function(q,N,b){b=b!==void 0?Date.now()+b:void 0;this.JSC$13427_expiringStorage.set(q,N,b)};
Iz.prototype.get=function(q){return this.JSC$13427_expiringStorage.get(q)};
Iz.prototype.remove=function(q){this.JSC$13427_expiringStorage.remove(q)};var P1n=_.Tt(["https://www.youtube.com/",""]),Mie=_.Tt(["https://studio.youtube.com/",""]),HSJ="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",Avh=null,JAJ;var eOx=_.Tt(["https://www.youtube.com/iframe_api"]),TV=function(){this.playerResolver_=_.T4();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.jE;this.playbackDurationSeconds_=0},BWF=function(q){var N=function(){return window.YT&&typeof window.YT.ready==="function"};
if(N())return _.bG(window.YT);var b=_.T4(),y=_.iC("SCRIPT");y.onload=y.onreadystatechange=function(){y.readyState&&y.readyState!="loaded"&&y.readyState!="complete"||(y.onload=_.jE,y.onreadystatechange=_.jE,y.onerror=_.jE,N()?b.resolve(window.YT):b.reject(new _.IO("Failed to load the iframe player library","script.onload",y.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
y.onerror=function(J){y.onload=_.jE;y.onreadystatechange=_.jE;y.onerror=_.jE;b.reject(new _.IO("Failed to load the iframe player library","script.onerror",J&&J.target&&J.target.src))};
_.R9(y,_.Xe(eOx));q.insertBefore(y,q.firstChild);return b.promise},Hwo=function(q,N,b){var y,J;
_.d(function(E){switch(E.nextAddress){case 1:return q.playbackEndedCallback_=b,_.Yi(E,2),E.yield(BWF(N.parentElement||null),4);case 4:y=E.yieldResult;_.Ea(E,3);break;case 2:return J=_.K7(E),J instanceof _.IO&&J.args&&J.args[0]=="script.onerror"?_.M6(J):_.po(J),E.return();case 3:y.ready(function(){return new y.Player(N,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:q.onPlayerReady_.bind(q),onStateChange:q.onPlayerStateChange_.bind(q),
onCueRangeExit:q.onCueRangeExit_.bind(q)}})}),_.hj(E)}})};
_.g=TV.prototype;_.g.getPlayerPromise=function(){return this.playerPromise_};
_.g.onPlayerReady_=function(q){this.playerResolver_.resolve(q.target)};
_.g.onPlayerStateChange_=function(q){if(q.data==YT.PlayerState.PLAYING){q=q.target;var N=q.getCurrentTime();q.addCueRange("playback",N,N+this.playbackDurationSeconds_)}};
_.g.onCueRangeExit_=function(q){q.data=="playback"&&(q.target.stopVideo(),this.playbackEndedCallback_())};
_.g.stopVideo=function(){this.playerPromise_.then(function(q){q.stopVideo()})};
var qHq=function(q){q.playerVars_&&q.playerPromise_.then(function(N){typeof N.cueVideoByPlayerVars!="function"?_.M6(new _.IO("vmh: player API not ready","cueVideoByPlayerVars",typeof N.cueVideoByPlayerVars)):N.cueVideoByPlayerVars(q.playerVars_)})};
TV.prototype.playVideo=function(){var q=this;this.playerVars_&&this.playerPromise_.then(function(N){typeof N.loadVideoByPlayerVars!="function"?(N=new _.IO("vmh: player API not ready","loadVideoByPlayerVars",typeof N.loadVideoByPlayerVars),_.po(N)):N.loadVideoByPlayerVars(q.playerVars_)})};
var NGx=function(q,N,b,y,J){N&&(b===void 0&&(b=0),y===void 0&&(y=0),q.playbackDurationSeconds_=y/1E3,q.playerVars_={adformat:"17_8",videoId:N,suggestedQuality:"hd720",startSeconds:b/1E3,player_params:J})};
TV.prototype.mute=function(){this.playerPromise_.then(function(q){q.mute()})};
TV.prototype.unMute=function(){this.playerPromise_.then(function(q){q.unMute()})};var cAn=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var sS;sS=function(){this.tokenJars={};if(this.cookiesEnabled=_.UV()){var q=_.hz.get("CONSISTENCY",void 0);q&&b$l(this,{encryptedTokenJarContents:q})}};
_.zhZ=function(){sS.instance||(sS.instance=new sS);return sS.instance};
sS.prototype.handleResponse=function(q,N){if(!N)throw Error("Zf");var b,y;N=((b=N.innerTubeRequest.context)==null?void 0:(y=b.request)==null?void 0:y.consistencyTokenJars)||[];var J;(q=(J=q.responseContext)==null?void 0:J.consistencyTokenJar)&&this.replace(N,q)};
sS.prototype.replace=function(q,N){q=_.Z(q);for(var b=q.next();!b.done;b=q.next())delete this.tokenJars[b.value.encryptedTokenJarContents];b$l(this,N)};
var b$l=function(q,N){if(N.encryptedTokenJarContents&&(q.tokenJars[N.encryptedTokenJarContents]=N,typeof N.expirationSeconds==="string")){var b=Number(N.expirationSeconds);setTimeout(function(){delete q.tokenJars[N.encryptedTokenJarContents]},b*1E3);
q.cookiesEnabled&&_.kf("CONSISTENCY",N.encryptedTokenJarContents,b,void 0,!0)}};var yUo,nP;yUo=window.location.hostname.split(".").slice(-2).join(".");_.Uv=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var q=_.M7("LOCATION_PLAYABILITY_TOKEN");_.M7("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=JUJ(this))&&(q=this.localStorage.get("yt-location-playability-token"));q&&(this.locationPlayabilityToken=q,this.mostRecentPosition=void 0)};
_.Uv.getInstance=function(){nP=_.Ng("yt.clientLocationService.instance");nP||(nP=new _.Uv,_.zn("yt.clientLocationService.instance",nP));return nP};
_.Uv.prototype.setLocationOnInnerTubeContext=function(q){q.client||(q.client={});if(this.mostRecentPosition)q.client.locationInfo||(q.client.locationInfo={}),q.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),q.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),q.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),q.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)q.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.Uv.prototype.handleResponse=function(q){var N;q=(N=q.responseContext)==null?void 0:N.locationPlayabilityToken;q!==void 0&&(this.locationPlayabilityToken=q,this.mostRecentPosition=void 0,_.M7("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=JUJ(this))&&this.localStorage.set("yt-location-playability-token",q,15552E3):_.kf("YT_CL",JSON.stringify({loctok:q}),15552E3,yUo,!0))};
var JUJ=function(q){return q.localStorage===void 0?new _.ed("yt-client-location"):q.localStorage};
_.Uv.prototype.clearLocationPlayabilityToken=function(q){q==="TVHTML5"?(this.localStorage=JUJ(this))&&this.localStorage.remove("yt-location-playability-token"):_.krA("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Uv.prototype.getCurrentPositionFromGeolocation=function(){var q=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var N=!1,b=1E4;_.M7("INNERTUBE_CLIENT_NAME")==="MWEB"&&(N=!0,b=15E3);return new Promise(function(y,J){navigator.geolocation.getCurrentPosition(function(E){q.mostRecentPosition=E;y(E)},function(E){J(E)},{enableHighAccuracy:N,
maximumAge:0,timeout:b})})};
_.Uv.prototype.createUnpluggedLocationInfo=function(q){var N={};q=q.coords;if(q==null?0:q.latitude)N.latitudeE7=Math.floor(q.latitude*1E7);if(q==null?0:q.longitude)N.longitudeE7=Math.floor(q.longitude*1E7);if(q==null?0:q.accuracy)N.locationRadiusMeters=Math.round(q.accuracy);return N};
_.Uv.prototype.createLocationInfo=function(q){var N={};q=q.coords;if(q==null?0:q.latitude)N.latitudeE7=Math.floor(q.latitude*1E7);if(q==null?0:q.longitude)N.longitudeE7=Math.floor(q.longitude*1E7);return N};var E1F=function(q,N){var b=h8();q||(q="unknown");N||(N="unknown");q="MAIN_APP_WEB_PAGE_TYPE_"+q.toUpperCase();q in Dzq||(q="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");N="MAIN_APP_WEB_REQUEST_TYPE_"+N.toUpperCase();N in hsx||(N="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.J7(b,{mainAppWeb:{pageType:q,requestType:N,isShellLoad:_.ou("IS_SHELL_LOAD",!1)}})},g1q={start:function(){_.J7(QVd(),{mainAppWeb:_.f9()})},
success:function(){_.Ed(QVd(),"SUCCESS")},
failure:function(){_.Ed(QVd(),"FAILURE")},
cancelled:function(){_.Ed(QVd(),"CANCELLED")}};var Z$4,FQo,Xfd;Z$4=_.Tt(["/sw.js"]);FQo=_.Tt(["/sw.js?0"]);_.RqE=_.Xe(Z$4);Xfd=_.Xe(FQo);var dhR=function(){var q=Error.apply(this,arguments);this.message=q.message;"stack"in q&&(this.stack=q.stack)};
_.Y(dhR,Error);_.TM.prototype.load=function(q){this.megabloxUrl_=_.M7("YPC_MB_URL");_.kU(this.megabloxUrl_,(0,_.fF)(function(){q&&q()},this))};
_.Wrd=function(q,N,b,y,J,E,F,R,c,z,m){_.jZh(c);q.load((0,_.fF)(function(){try{var r=E?E:_.M7("HL"),X=_.M7("SESSION_INDEX");_.JTn("client",function(){Yaj("59",{helpCenterPath:"/youtube",locale:r,window:window}).JSC$10056_loadChatSupport({authuser:String(X)})})}catch(V){throw C9(10,m,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),J&&J(V),_.po(V),V;
}cUo(this,N,b,y,J,E,F,R,c,z,m)},q))};
_.TM.prototype.openFixFlowDialog=function(q,N,b,y){this.load((0,_.fF)(function(){try{uB4(this,_.Ng("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(q).withIntegratorCallback(N).load(b,y)}catch(J){throw _.po(J),J;}},this))};
var uB4=function(q,N,b,y){var J=N.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.x("enable_window_constrained_buy_flow_dialog")&&(J=J.usingPopupStyle(_.Ng("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));y&&(J=J.usingCloseCallback(y));N.bootstrap.fromPaymentsUrl(q.megabloxUrl_);q=N.bootstrap.asMashupMode(J);b=b?b:_.M7("HL");q.usingGaiaIndex(_.M7("SESSION_INDEX")).usingLocale(b).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.x("enable_google_payments_buyflow_material2_style_web")?
q.usingStyle(":m2;pc=#444;ac=#065fd4"):q.usingStyle(":md;pc=#444;ac=#065fd4");return q},cUo=function(q,N,b,y,J,E,F,R,c,z,m){try{var r=_.Ng("payments.business.integration");
if(!r)throw new dhR("payments.business.integration is undefined");var X=r.standaloneContextAuthId.forUserId(),V=uB4(q,r,E,function(){vlA(!1);R&&R()});
F&&V.usingServerAnalyticsEventHandler(F);var G=V.inStandaloneContext(X).buyFlow(function(w){if(w&&(!w.integratorData||w.integratorData===""||w.error))if(w.error!=null)if(String(w.error)==="-1")_.xyJ(c);else{var D=String(w.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";C9(10,m,D,w.debugCode);_.I0(D,c,w.debugCode);D=new _.IO("PAYMENT_ERROR_MESSAGE::"+w.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+w.internalErrorDetails);
_.po(D)}else C9(10,m,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.I0("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",c,"EMPTY_INTEGRATOR_DATA"),_.po(Error("bg"));b&&(vlA(!1),b(w))}).withEncryptedParameters(N);
z&&G.withClientParameters(OCJ(_.axh(z)));G.load(function(){C9(24,m);_.wg("ttc",void 0,"commerce_transaction");Gr("commerce_transaction");y&&(y(),vlA(!0))},function(w){if(w==null?0:w.debugCode)var D=w==null?void 0:w.debugCode;
else if(!w||(w==null?0:w.debugCode))D="EMPTY_LOAD_FAILURE_ERROR",_.po(Error(D));else{D="EMPTY_LOAD_FAILURE_DEBUG_CODE";var k=new _.IO("LOAD_FAILURE:"+w.message," DEBUG_CODE:"+D);_.po(k)}C9(10,m,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",D);_.I0("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",c,D);_.po(w);J&&J(w)})}catch(w){throw w instanceof dhR&&(C9(10,m,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),J&&J(w)),_.po(w),w;
}};var zqx;zqx=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.nuR=function(q,N){N=N===void 0?!1:N;q=zqx.test(q)?_.hB(q):null;!N&&window.payments||!q?(q=_.T4(),N=q.promise,q.resolve()):N=_.c9J(q,{attributes:{"data-payments-main":"",id:"payment-lib"}});return N};var $h1;$h1=_.Tt(["//www.googletagmanager.com/gtm.js?id=",""]);_.az=function(q,N){_.oE(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:N}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.M7("GL")}),N=_.iC("SCRIPT"),N.async=!0,_.R9(N,_.Xe($h1,q)),N.id="gtm",q=document.getElementsByTagName("script"),q.length==0?document.head.appendChild(N):(q=q[0],q.parentNode.insertBefore(N,q)))};
_.SU=function(q){if(q=JSON.parse(q))window.dataLayer=window.dataLayer||[],window.dataLayer.push(q)};var toR,mhx;toR=_.Tt(["https://clients2.google.com/gr/gr_sync.js"]);_.TfJ=function(){};
_.TfJ.prototype.init=function(){if(mhx()){var q=_.T4();q.resolve();return q.promise}return _.c9J(_.Xe(toR)).then(function(){if(!mhx())throw Error("cg");},function(){throw Error("dg");
})};
_.s_D=function(){if(!mhx())return"";var q=window.google.gr;q.init({async:{schedule:"sync"},merchantId:"youtube"});q.start();q=q.finish();return q==null?"":q};
mhx=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.C=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.Y(_.C,PolymerFakeBaseClassWithoutHtml);_.uL=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.Y(_.uL,PolymerFakeBaseClassWithoutHtml);var Gke=window.ShadyDOM;var Z_J,ErZ,Red,dqC,uhd,zen,WW,AN;Z_J=_.x("enable_shadydom_free_scoped_query_methods");ErZ=_.x("enable_shadydom_free_scoped_node_methods");Red=_.x("enable_shadydom_free_scoped_readonly_properties_batch_one");dqC=_.x("enable_shadydom_free_parent_node");uhd=_.x("enable_shadydom_free_children");zen=_.x("enable_shadydom_free_last_child");WW=window.ShadyDOM;_.yb=WW&&WW.noPatch&&WW.wrap?WW.wrap:WW?function(q){return WW.patch(q)}:function(q){return q};
AN=function(q){if(q instanceof ShadowRoot)this.host=(0,_.yb)(q.host),this.root=q;else if(q.$$){this.host=(0,_.yb)(q);var N;this.root=(N=q.root)!=null?N:this.host}else if(q.polymerController){this.host=(0,_.yb)(q);var b;this.root=(b=this.host.shadowRoot)!=null?b:this.host}else this.root=this.host=(0,_.yb)(q)};
grJ();Fih();$qn();tCd();cYe();var rUT={querySelector:function(q,N){N=CzA(N,L9(q));return _.x("sunnydom_native_scoped_query_selectors")?QZd(q,N):QZd(_.p9(q),N)},
querySelectorAll:function(q,N){N=CzA(N,L9(q));return _.x("sunnydom_native_scoped_query_selectors")?Array.from(OuA(q,N)):OuA(_.p9(q),N)}},XLM={appendChild:function(q,N){var b=L9(q),y=_.WP(N);
return _.yYR(_.p9(q),b?_.MK(N,b,y):N)},
cloneNode:function(q,N){var b=_.WP(q);q=_.p9(q);N=Se(q).prototype.cloneNode.call(q,N);return b?o0(N,b):N},
contains:function(q,N){var b=L9(q),y=_.WP(N);return b!==y?!1:JYz(q,N)},
insertBefore:function(q,N,b){var y=L9(q),J=_.WP(N);q=_.p9(q);N=y?_.MK(N,y,J):N;return Se(q).prototype.insertBefore.call(q,N,b)},
removeChild:function(q,N){var b=L9(q);q=_.p9(q);N=b?o0(N,b):N;return Se(q).prototype.removeChild.call(q,N)},
replaceChild:function(q,N,b){var y=L9(q),J=_.WP(N);N=y?_.MK(N,y,J):J?o0(N,J):N;b=y?o0(b,y):b;q=_.p9(q);return Se(q).prototype.replaceChild.call(q,N,b)},
getRootNode:function(q,N){N=N===void 0?{composed:!0}:N;var b;if(((b=N)!=null?b:{}).composed)q=b_J(q);else{N=q;for(q=iuz(q);q;)N=q,q=ToZ(q);q=N}return q}},rYA=Red?{firstChild:AAd,
nextSibling:Pzd,previousSibling:olJ,firstElementChild:ehe,lastElementChild:Huz,nextElementSibling:pfJ,previousElementSibling:M$A,childNodes:qin}:{};dqC&&(rYA.parentNode=L1z);uhd&&(rYA.children=Nld);zen&&(rYA.lastChild=BoC);Z_J&&mqD(rUT);ErZ&&mqD(XLM);Xeh();var VCD=function(q){this.node=q instanceof ShadowRoot?q.host:q};
jcZ();xqZ();var Yih=new WeakMap;var O_A=Symbol("Bd");var DqJ=new Set(["tap","track","down","up"]),heJ=_.x("pbcm_fi_query_decorators");var LP=function(){return _.uL.apply(this,arguments)||this};
_.Y(LP,_.uL);_.g=LP.prototype;_.g.getState=function(){return this.store.getState()};
_.g.dispatch=function(q){this.store.dispatch(q)};
_.g.beforeRegister=function(){if(this&&typeof this==="object"){var q;var N=!!this.useSignals||!((q=this.polymerController)==null||!q.useSignals)}else N=!1;if(!N&&this.properties)for(N=_.Z(Object.keys(this.properties)),q=N.next();!q.done;q=N.next()){var b=q.value;q=this.properties[b];if(q.selector){if(q.computed)throw Error("kg");b=["reduxPropertiesRecomputeTrigger",'"'+b+'"'].concat(_.a9(q.selectorArgs||[])).join(",");q.computed="recomputeReduxSelector("+b+")"}}};
_.g.attached=function(){var q=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){q.reduxPropertiesRecomputeTrigger++}));
_.x("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.g.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.g.recomputeReduxSelector=function(q,N){var b=_.MB.apply(2,arguments),y=this.properties[N].selector;if(!y)throw Error("ig`"+N);return y.apply(null,[this.store.getState()].concat(_.a9(b)))};
_.g.select=function(q){var N=_.MB.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return q.apply(null,[this.store.getState()].concat(_.a9(N)))};
_.$H.Object.defineProperties(LP.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
LP.prototype.recomputeReduxSelector=LP.prototype.recomputeReduxSelector;_.p([_.U(),_.P("design:type",Number)],LP.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.p([_.zs()],LP);var pP=[],CJZ={},Qb=function(){return mH.apply(this,arguments)||this};
_.Y(Qb,mH);Qb.prototype._addPropertyEffect=function(q,N,b){if(N==="__observeEffects"&&b){var y,J=(y=b.info.method)!=null?y:b.info.methodName;if(J){var E=this[J];this[J]=function(){pP.push(J);try{E==null||E.apply(this,arguments)}finally{pP.pop()}}}}_.Dh._addPropertyEffect.apply(this,[q,
N,b])};
Qb.prototype._setPendingProperty=function(q,N,b){if(pP.length){var y=pP[pP.length-1],J;(J=CJZ[this.is])!=null&&J.has(y)||(IgR(this.is,y),_.W_("polymerPropertyChangedInObserver",{componentName:this.is,observerName:y}))}return _.Dh._setPendingProperty.apply(this,[q,N,b])};
_.p([yxd()],Qb);var TlZ=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),nrJ,m_={};_.x("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=m_);var Vb=function(){return _.uL.apply(this,arguments)||this};
_.Y(Vb,_.uL);Vb.prototype._setUnmanagedPropertyToNode=function(q,N,b){q.loggingStatus&&(q.loggingStatus.isDeclarativeExternal=!0);if(b!==q[N]||typeof b==="object")q[N]=b;q.is&&q.polymerController&&q.polymerController!==q&&rq(q.is,N,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");q.loggingStatus&&(q.loggingStatus.isDeclarativeExternal=!1)};
_.p([_.zs()],Vb);sch()&&(qL.prototype._setUnmanagedPropertyToNode=(new Vb)._setUnmanagedPropertyToNode);_.Nid={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(q){},set polymerController(q){}}]};var Y9=function(){var q=mH.apply(this,arguments)||this;q.json=function(){};
return q};
_.Y(Y9,mH);Y9.prototype.equals=function(q,N){return q===N};
Y9.prototype.isEmpty=function(q){var N;(N=!q)||(N=_.pC(q)&&q.length===0);return N};
_.p([yxd()],Y9);var VoM=function(q){q=ytd(q);B0.call(this,q)};
_.Y(VoM,B0);VoM.prototype.addProvider=function(q){q=q.key?q:ytd([q])[0];var N=this.keyIdToIndex.get(q.key.id);if(N){if(pen(q,this.providers[N]))throw Error("lg`"+q.key.displayName);}else B0.prototype.addProvider.call(this,q)};
var jjT=new VoM([]);var xho=!1;var BlR={};xho||(eeJ(),xho=!0);
BlR.InjectBehavior={initializeInjection:function(){var q=this.provide;try{if((q=q!=null?q:[])&&q.length>0)for(var N=ytd(q),b=_.Z(N),y=b.next();!y.done;y=b.next())jjT.addProvider(y.value);var J=new Set;PJu(this.behaviors||[],J);N={};for(var E=_.Z(J),F=E.next();!F.done;F=E.next()){var R=F.value;R.inject&&Object.assign(N,R.inject)}this.inject&&Object.assign(N,this.inject);for(var c=_.Z(Object.keys(N)),z=c.next();!z.done;z=c.next()){var m=z.value,r=N[m];try{this[m]=jjT.resolve(r)}catch(X){throw X;}}}catch(X){throw Error(X.message);
}}};var q8J;var b8z=/\bclass\b/.test(function(){}.toString()),Epu=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var v1M=function(q){this.wasDefined=!0;Array.isArray(q)||q instanceof Array?(this.JSC$13585_getImpl=q[0],this.JSC$13585_setImpl=q[1]):this.JSC$13585_getImpl=q};
_.g=v1M.prototype;_.g.getWithPath=function(q){return F3z(this.JSC$13585_getImpl(),q)};
_.g.setWithPath=function(q,N){var b=this;if(q.length)throw Error("mg");if(!this.JSC$13585_setImpl)throw Error("ng");Du(function(){b.JSC$13585_setImpl(N)})};
_.g.notifyPath=function(){throw Error("og");};
_.g.notifySplices=function(){throw Error("pg");};
_.g.getChangeRecordSignal=function(q,N){var b=this;if(q.length)throw Error("qg");return function(){var y=b.getWithPath(q);return{path:N!=null?N:"",base:y,value:y}}};
_.g.getSplicesSignal=function(){throw Error("rg");};
_.g.getPathMutationSignal=function(){throw Error("sg");};
_.g.pop=function(){throw Error("tg");};
_.g.push=function(){throw Error("ug");};
_.g.splice=function(){throw Error("vg");};
_.g.unshift=function(){throw Error("wg");};var PW=function(q){var N=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(q)||q instanceof Array?(this.JSC$13590_getImpl=q[0],this.JSC$13590_setImpl=q[1]):this.JSC$13590_getImpl=q;this.wasDefined=!1;_.YL(function(){N.wasDefined=N.JSC$13590_getImpl()!==void 0})};
PW.prototype.getWithPath=function(q){return F3z(this.JSC$13590_getImpl(),q)};
PW.prototype.setWithPath=function(q,N){var b=this;if(q[q.length-1]!=="*"&&q[q.length-1]!=="splices"){var y=_.YL(function(){return b.getWithPath([])});
if(q.length===0){if(!this.JSC$13590_setImpl)throw Error("xg");if(y===N)return;this.wasDefined||(this.wasDefined=N!==void 0);Du(function(){b.JSC$13590_setImpl(N)})}else{for(var J=0;J<q.length-1;J++){if(!y)return;
y=y[q[J]]}J=q[q.length-1];y&&(y[J]=N);this.wasDefined||(this.wasDefined=q.length>1||N!==void 0)}G$F(this,q,{pathComponents:q,value:N})}};
PW.prototype.notifyPath=function(q,N){q.length===0?N&&this.setWithPath(q,N.value):G$F(this,q,{pathComponents:q,value:N==null?void 0:N.value,fallbackWhenUndefined:N==null?void 0:N.value})};
var G$F=function(q,N,b,y){if(q.setMutationSignal){var J=++q.mutationIndex,E=[q.observedPath],F=q.observedPath,R;N.length===0&&(R=F);for(var c=0;c<N.length;c++){var z=F.subPaths[N[c]];if(!z)break;E.push(z);F=z;c===N.length-1&&(R=z)}for(N=!1;E.length;)F=E.shift(),F.data={index:J,mutation:b,spliceMutationIndex:y},N||(N=F===R),N&&E.push.apply(E,_.a9(Object.values(F.subPaths)));Du(function(){q.setMutationSignal(J)})}};
PW.prototype.notifySplices=function(q,N){var b=this,y=_.YL(function(){return b.getWithPath(q)}),J=[].concat(_.a9(q),["splices"]);
G$F(this,J,{pathComponents:J,value:{indexSplices:N}});if(y==null?0:y.length)N=this.mutationIndex,J=[].concat(_.a9(q),["length"]),G$F(this,J,{pathComponents:J,value:y.length},N)};
var YHv=function(q,N,b,y,J,E){q.notifySplices(b,[{index:y,addedCount:J,removed:E,object:N,type:"splice"}])},QjR=function(q,N){q=q.observedPath;
for(var b=0;b<N.length;b++){var y=N[b],J=q.subPaths[y];J||(J={pathComponents:N.slice(0,b+1),subPaths:{}},q.subPaths[y]=J);q=J}},wLj=function(q,N,b){QjR(q,N);
if(!q.getMutationSignal){var y=_.Z(_.QS(q.mutationIndex,void 0,"sNBMCd"));q.getMutationSignal=y.next().value;q.setMutationSignal=y.next().value}var J=q.getMutationSignal;return _.K3(function(){J();return b(O$v(q,N))},void 0,"zvsXEd")};
PW.prototype.getChangeRecordSignal=function(q,N){var b=this,y=this.mutationIndex,J;return wLj(this,q,function(E){if(E&&E.index>y){var F=E.mutation;y=E.index;J=void 0}E=_.YL(function(){return b.getWithPath(q)});
if(F){var R=F.pathComponents[F.pathComponents.length-1],c=[].concat(_.a9(F.pathComponents));if(R==="splices"||R==="length")return{base:E,path:(N?[N].concat(_.a9(c)):c).join("."),value:F.value};var z=q.length>c.length?q:c,m;return{base:E!=null?E:F.fallbackWhenUndefined,path:(N?[N].concat(_.a9(z)):z).join("."),value:(m=_.YL(function(){return b.getWithPath(z)}))!=null?m:F.fallbackWhenUndefined}}J||(J={base:E,
path:(N?[N].concat(_.a9(q)):q).join("."),value:E});return J})};
PW.prototype.getSplicesSignal=function(q){var N=this.mutationIndex,b;return wLj(this,q,function(y){if(y&&y.index>N&&y.spliceMutationIndex!==N){var J=y.mutation;N=y.index;b=void 0}return J&&J.pathComponents[J.pathComponents.length-1]==="splices"?b=y=J.value:b})};
PW.prototype.getPathMutationSignal=function(q){var N=this;QjR(this,q);if(!this.getMutationSignal){var b=_.Z(_.QS(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=b.next().value;this.setMutationSignal=b.next().value}var y=this.getMutationSignal,J=this.mutationIndex,E;return _.K3(function(){y();var F=O$v(N,q);if(F&&F.index>J&&F.mutation&&Rod(F.mutation.pathComponents,q)){var R=F.mutation;J=F.index}if(!E||J!==E.index){var c,z;F=(z=_.YL(function(){return N.getWithPath(q)}))!=null?z:(c=R)==null?
void 0:c.fallbackWhenUndefined;
E={index:J,value:F}}return E},void 0,"RXYC9b")};
var O$v=function(q,N){q=q.observedPath;N=_.Z(N);for(var b=N.next();!b.done;b=N.next())q=q.subPaths[b.value];return q.data};
PW.prototype.pop=function(q){var N=this,b=_.YL(function(){return N.getWithPath(q)});
if(!(b instanceof Array))throw Error("yg");var y=b.length>0,J=b.pop();y&&YHv(this,b,q,b.length,0,[J]);return J};
PW.prototype.push=function(q){var N=_.MB.apply(1,arguments),b=this,y=_.YL(function(){return b.getWithPath(q)});
if(!(y instanceof Array))throw Error("zg");var J=y.length,E=y.push.apply(y,_.a9(N));N.length&&YHv(this,y,q,J,N.length,[]);return E};
PW.prototype.splice=function(q,N,b){var y=_.MB.apply(3,arguments),J=this,E=_.YL(function(){return J.getWithPath(q)});
if(!(E instanceof Array))throw Error("Ag");N<0?N=E.length-Math.floor(-N):N&&(N=Math.floor(N));var F=E.splice.apply(E,[N,b].concat(_.a9(y)));(y.length||F.length)&&YHv(this,E,q,N,y.length,F);return F};
PW.prototype.unshift=function(q){var N=_.MB.apply(1,arguments),b=this,y=_.YL(function(){return b.getWithPath(q)});
if(!(y instanceof Array))throw Error("Bg");var J=y.unshift.apply(y,_.a9(N));N.length&&YHv(this,y,q,0,N.length,[]);return J};var MA=function(q,N,b){this.model=q;this.unknownSignalResolver=N;this.options=b;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];N=_.Z(X8D());q=N.next().value;N=N.next().value;this.owner=q;this.disposeImpl=N};
MA.prototype.dispose=function(){if(!this.isDisposed){for(var q=_.Z(this.childSignalProxies),N=q.next();!N.done;N=q.next())N.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var i$M=function(q,N){q=_.Re(q.owner);try{N()}finally{_.Re(q)}};
MA.prototype.effect=function(q){i$M(this,function(){_.ae(q,"h")})};
var lwR=function(q,N){q.options!=null||(q.options={});var b;(b=q.options).immutableProps!=null||(b.immutableProps=new Set);q.options.immutableProps.add(N)},W3A=function(q,N){N=""+N;
KQE(q,N);var b,y;if((b=q.options)==null?0:(y=b.immutableProps)==null?0:y.has(N))return!0;var J;if((J=q.model.__signalCache)==null?0:J.has(N))b=q.model.__signalCache.get(N),Array.isArray(b)&&lwR(q,N);var E,F,R;return(R=(E=q.options)==null?void 0:(F=E.immutableProps)==null?void 0:F.has(N))!=null?R:!1},DhT=function(q,N){var b;
q.unknownSignalResolver&&(b=q.unknownSignalResolver(N));var y,J;((y=q.options)==null?0:(J=y.immutableProps)==null?0:J.has(N))?b!=null||(b=new v1M(_.QS(q.model[N],void 0,"By5iP"))):b!=null||(b=new PW(_.QS(q.model[N],void 0,"CXghNc")));var E=q.model.hostElement;Object.defineProperty(q.model,N,{get:function(){Sid(E,N);return b.getWithPath([])},
set:function(F){XY(E,N);q.setWithPath([N],F)},
configurable:!0});return b},KQE=function(q,N){var b,y,J;
((b=q.model.__signalCache)==null||!b.has(N))&&((y=q.options)==null?0:(J=y.externalSignalProps)==null?0:J.has(N))&&q.model[N]},lL=function(q,N){N=""+N;
var b=q.signalCache[N];if(b!==void 0)return b;b=!1;KQE(q,N);var y;if((y=q.model.__signalCache)==null?0:y.has(N))if(b=q.model.__signalCache.get(N),Array.isArray(b))b=!0,lwR(q,N);else return q.signalCache[N]=q.model.__signalCache.get(N).signal,q.signalCache[N];var J,E;y=(E=(J=q.options)==null?void 0:J.reactivityMode)!=null?E:0;var F,R;if(!((F=q.options)==null?0:(R=F.reactiveProps)==null?0:R.has(N))&&!b&&y===1)throw Error("Cg`"+N);J=b?hq1(q,N):DhT(q,N);return q.signalCache[N]=J},hq1=function(q,N){var b=
Object.getOwnPropertyDescriptor(q.model.constructor.prototype,N),y=function(){return q.model[N]};
return new v1M(b&&b.get&&!b.set?y:[y,function(J){q.model[N]=J}])};
MA.prototype.getWithPath=function(q){var N=_.Z(q);q=N.next().value;N=gn(N);Sid(this.model.hostElement,""+q);return lL(this,q).getWithPath(N)};
MA.prototype.setWithPath=function(q,N){if(q.length){XY(this.model.hostElement,q.join("."));var b=_.Z(q);q=b.next().value;b=gn(b);lL(this,q).setWithPath(b,N)}};
MA.prototype.getPathMutationSignal=function(q){var N=_.Z(q);q=N.next().value;N=gn(N);return lL(this,q).getPathMutationSignal(N)};
MA.prototype.notifyPath=function(q,N){var b=_.Z(q);q=b.next().value;b=gn(b);lL(this,q).notifyPath(b,N)};
var k$o=function(q,N){if(N.type==="literal")return function(){return{rootWasDefined:!0,value:N.value}};
var b=wq(N.path),y=_.Z(b),J=y.next().value;y=gn(y);var E,F;if(N.type==="path"&&(b.length===1||((E=q.options)==null?0:(F=E.immutableProps)==null?0:F.has(J))))return function(){var r=q.getWithPath(b.slice(0,1));r=F3z(r,b.slice(1));return{rootWasDefined:lL(q,b[0]).wasDefined,value:r}};
var R=lL(q,J);if(N.type==="path"){var c=R.getPathMutationSignal(y);return function(){var r,X=(r=c())==null?void 0:r.value;return{rootWasDefined:R.wasDefined,value:X}}}if(N.type==="splices"){var z=R.getSplicesSignal(y);
return function(){var r=z();return{rootWasDefined:R.wasDefined,value:r}}}var m=R.getChangeRecordSignal(y,""+J);
return function(){var r=m();return{rootWasDefined:R.wasDefined,value:r}}},tpz=function(q,N,b){var y=b.map(function(R){return k$o(q,R)}),J=b.length===0,E=[],F=b.length!==1||b[0].type!=="path"?!1:!0;
q.effect(function(){for(var R=y.length,c=[],z=!!E.length,m=0;m<R;m++){var r=y[m](),X=r.rootWasDefined;r=r.value;J||(J=X);c[m]=r;F&&(c[m+R]=z?E[m]:c[m],E[m]=r)}J&&P1(q.owner,function(){return void N.apply(null,_.a9(c))})})},dVd=function(q,N,b,y,J){var E=lL(q,N);
J!==void 0&&E.setWithPath([],J);tpz(q,function(){var F=_.MB.apply(0,arguments);XY(q.model.hostElement,N,!0);E.setWithPath([],b.apply(null,_.a9(F)))},y)};
MA.prototype.arrayPush=function(q){var N=_.MB.apply(1,arguments),b=_.Z(q),y=b.next().value;b=gn(b);y=lL(this,y);return y.push.apply(y,[b].concat(_.a9(N)))};
MA.prototype.arraySplice=function(q,N,b){var y=_.MB.apply(3,arguments),J=_.Z(q),E=J.next().value;J=gn(J);E=lL(this,E);return E.splice.apply(E,[J,N,b].concat(_.a9(y)))};
MA.prototype.arrayUnshift=function(q){var N=_.MB.apply(1,arguments),b=_.Z(q),y=b.next().value;b=gn(b);y=lL(this,y);return y.unshift.apply(y,[b].concat(_.a9(N)))};
MA.prototype.notifySplices=function(q,N){var b=_.Z(q);q=b.next().value;b=gn(b);lL(this,q).notifySplices(b,N)};var UhF=!0,fwF=!1,Lfn=!1,Chq=!1,IwT=0;Chq=!1;IwT=0;UhF=!0;fwF=Lfn=!1;var Y8D=/([^\s]+?)\(([\s\S]*)\)/,xVZ=/\.([^.]+)$/,O8u=/\\,/g,VpJ=/&comma;/g,jyz=/\\(.)/g,Qyn=[],vph={"*":"wildcard",splices:"splices"};var Cpu=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"),hoz=/[A-Z]/,TG1=["class","hidden","id","on-dom-change"],TiD=new Set([].concat(_.a9(TG1),
["if","notify-dom-change","restamp"])),syA=new Set([].concat(_.a9(TG1),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),npD=new Set(["restamp"]);var TWD=new Set(["className","id"]);var p8J=Symbol(),H8A=window;var ZdA=window;var $lh=0,dlA=0,Kk=[],zvD=0,RvA=!1,uXz=document.createTextNode("");(new window.MutationObserver(cKu)).observe(uXz,{characterData:!0});var hm=new Map,DP=0,sjM=function(q){this.mappedHandleId=q},mle=function(q,N,b,y){this.mappedHandleId=q;
var J=this;this.mappedHandleId=q;this.callback=N;this.waitTime=b;this.schedulerPriority=y;this.handleId=_.pY.addJob(function(){J.callback();hm.delete(J.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.Y(mle,sjM);mle.prototype.cancel=function(){_.pY.cancelJob(this.handleId);hm.delete(this.mappedHandleId)};
var rKA=function(q,N){this.mappedHandleId=q;var b=this;this.mappedHandleId=q;this.callback=N;this.handleId=twu(function(){b.callback();hm.delete(b.mappedHandleId)})};
_.Y(rKA,sjM);rKA.prototype.cancel=function(){var q=this.handleId-dlA;q<0||Kk.length<=q||(Kk[q]=null);hm.delete(this.mappedHandleId)};var xlu=function(){};
xlu.prototype.cancel=function(){this.jobHandle!==void 0&&(XJZ(this.jobHandle),this.jobHandle=void 0)};
xlu.prototype.run=function(q,N,b){var y=this;this.cancel();this.callback=q;this.jobHandle=_.k9(function(){q();y.callback=void 0},N,b)};
xlu.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var Vwu=new WeakMap;var n1R=yO(function(q){for(var N=q,b=0;b<3;b++)N=Object.getPrototypeOf(N);delete N.prototype.connectedCallback;var y=function(){return q.apply(this,arguments)||this};
_.Y(y,q);y.prototype._attachDom=function(J){if(!J)return null;var E=(0,_.yb)(this.hostElement);E.attachShadow({mode:"open",shadyUpgradeFragment:J});E.shadowRoot.appendChild(J);return E.shadowRoot};
y.prototype._takeAttributes=function(){for(var J=this.hostElement.attributes,E=0;E<J.length;E++){var F=J[E],R=void 0,c=void 0;(c=(R=this).__attributeReaction)==null||c.call(R,F.name,null,F.value)}};
y.prototype._readyClients=function(){q.prototype._readyClients.call(this);this.root=this};
y.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);q.prototype.connectedCallback.call(this)};
_.$H.Object.defineProperties(y,{template:{configurable:!0,enumerable:!0,get:function(){return y.prototype._template}}});
return y}),awM=yO(function(q){var N=function(){return q.apply(this,arguments)||this};
_.Y(N,q);N.prototype.created=function(){if(this.__notifyEffects)for(var b=_.Z(Object.values(this.__notifyEffects)),y=b.next();!y.done;y=b.next()){y=_.Z(y.value);for(var J=y.next();!J.done;J=y.next())J.value.fn=QLZ}if(this.__reflectEffects)for(b=_.Z(Object.values(this.__reflectEffects)),y=b.next();!y.done;y=b.next())for(y=_.Z(y.value),J=y.next();!J.done;J=y.next())J.value.fn=OdR};
N.prototype._addEventListenerToNode=function(b,y,J){b=fk(b);PK(b,y,J)||q.prototype._addEventListenerToNode.call(this,b,y,J)};
N.prototype._removeEventListenerFromNode=function(b,y,J){b=fk(b);Mr(b,y,J)||q.prototype._removeEventListenerFromNode.call(this,b,y,J)};
N.prototype._propertiesChanged=function(b,y,J){if(this.__dataToNotify&&this.__notifyEffects)for(var E=_.Z(Object.keys(this.__dataToNotify)),F=E.next();!F.done;F=E.next()){F=F.value;var R=YQh(F);this.__notifyEffects[R]||delete this.__dataToNotify[F]}else this.__dataToNotify=null;q.prototype._propertiesChanged.call(this,b,y,J)};
N.prototype.fire=function(b,y,J){y=y===void 0?{}:y;var E;return _.e2(fk((E=J==null?void 0:J.node)!=null?E:this),b,y,J)};
N.prototype._ensureAttribute=function(b,y){var J=fk(this);J.hasAttribute(b)||iL(J,y,b)};
N.prototype.isLightDescendant=function(b){var y=fk(this);return fk(y)!==b&&_.ee(y).contains(b)&&_.ee(y).getRootNode()===_.ee(b).getRootNode()};
return N});
_.UD.ready=function(){var q;((q=this.hostElement)!=null?q:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var N;((N=this.hostElement)!=null?N:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.SQ._subscribeIronResize=function(q){var N;((N=q.hostElement)!=null?N:q).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.SQ._unsubscribeIronResize=function(q){var N;((N=q.hostElement)!=null?N:q).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var l_A=[Array,Boolean,Date,Number,Object,String],IU=function(q,N,b,y){this.polySiInfo=q;this.polySiParams=N;this.polySiContext=b;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;y||this instanceof HTMLElement&&(y=this);if(!y)throw Error("Jg");this.allowedProps=N.allowedProps;this.hostElement=y;this.is=q.is;this.upgradeDisabled=!!N.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");q=new Set(N.reactiveSchemas.filter(function(J){return J.type!==
"observe"}).map(function(J){return J.propertyKey}));
this.signalProxy=new MA(this,void 0,{reactiveProps:q,reactivityMode:N.reactivityMode});this.__dataHasAccessor={};N=_.Z(N.reactiveSchemas);for(q=N.next();!q.done;q=N.next())q=q.value,q.type==="signal"&&(this.__dataHasAccessor[q.propertyKey]=!0);this.upgradeDisabled||SHv(this)};
IU.prototype.getExtraMethodsToForward=function(){return[]};
var SHv=function(q){q.polySiContext.didRegister||(q.registered(),q.polySiContext.didRegister=!0);q.polySiContext.finalizedTemplate||(q.polySiContext.finalizedTemplate={},q.polySiParams.templateGetter&&(q.polySiContext.finalizedTemplate.processedTemplate=FfJ(q.polySiParams.templateGetter,q.polySiParams.is)));WQq(q);var N=q.hostElement;N.loggingStatus!=null||(N.loggingStatus={});N.loggingStatus.isInitializing=!0;_.YL(function(){return void q.created()});
N.loggingStatus.isInitializing=!1;q.isPolySiElementConnected&&LQE(q)},LQE=function(q){q.didCallReady||(_.YL(function(){return void q.ready()}),q.didCallReady=!0);
q.isAttached=!0;q.attached()};
_.g=IU.prototype;_.g.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||LQE(this)};
_.g.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.g.attributeChangedCallback=function(q,N,b){if(this.upgradeDisabled)q==="disable-upgrade"&&b===null&&(this.upgradeDisabled=!1,SHv(this));else if(N!==b){var y=_.R$(q),J=this.polySiContext.typesForSignals[y];if(J&&(!this.reflecting||_.x("polysi_attribute_changed_serializing_killswitch"))){switch(J){case Object:try{var E=JSON.parse(b)}catch(R){E=b}break;case Array:try{E=JSON.parse(b)}catch(R){E=null}break;case Date:E=isNaN(b)?String(b):Number(b);E=new Date(E);break;case Boolean:E=b!==null;break;case Number:E=
Number(b);break;default:E=b}this[y]=E}y=_.Z(this.polySiParams.behaviors);for(J=y.next();!J.done;J=y.next())E=void 0,(E=J.value.attributeChanged)==null||E.call(this,q,N,b);var F;(F=this.attributeChanged)==null||F.call(this,q,N,b)}};
_.g.attributeChangedCallbackWrapper=function(q,N,b){this.attributeChangedCallback(q,N,b)};
_.g.setPropertiesFromInitialAttributeValues=function(){for(var q=0;q<this.hostElement.attributes.length;q++){var N=this.hostElement.attributes[q];(N.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(N.name))&&this.attributeChangedCallback(N.name,null,N.value)}};
_.g.created=function(){this.provide=this.polySiParams.provide;var q;(q=this.initializeInjection)==null||q.call(this);q=_.Z(this.polySiParams.reactiveSchemas);for(var N=q.next();!N.done;N=q.next())N=N.value,N.type==="signal"&&(this.mutablePropNames.add(N.propertyKey),lL(this.signalProxy,N.propertyKey));idC(this,this.polySiInfo,this.polySiParams.behaviors);q=_.Z(this.polySiParams.reactiveSchemas);for(N=q.next();!N.done;N=q.next())N=N.value,N.type==="signal"&&N.value!==void 0&&(this.signalProxy.model[N.propertyKey]=
typeof N.value==="function"?N.value.call(this):N.value);if(this.polySiParams.signalProperties)for(q=_.Z(this.polySiParams.signalProperties),N=q.next();!N.done;N=q.next()){N=N.value;var b=void 0;((b=this.__signalCache)==null?0:b.has(N))||(this.signalProxy.model[N]=void 0)}Chq||pLF(this);wJn(this);q=_.Z(this.polySiParams.behaviors);for(N=q.next();!N.done;N=q.next())b=void 0,(b=N.value.created)==null||b.call(this);var y;(y=this.polySiInfo.created)==null||y.call(this)};
_.g.registered=function(){var q=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var N=Object.getPrototypeOf(this);N.addReactiveSchema=function(R){q.polySiParams.reactiveSchemas.push(R)};
for(var b=_.Z(this.polySiParams.behaviors),y=b.next();!y.done;y=b.next()){var J=void 0;(J=y.value.beforeRegister)==null||J.call(N)}var E;(E=this.polySiInfo.beforeRegister)==null||E.call(N);N.addReactiveSchema=Dln;b=_.Z(this.polySiParams.behaviors);for(y=b.next();!y.done;y=b.next())J=void 0,(J=y.value.registered)==null||J.call(N);var F;(F=this.polySiInfo.registered)==null||F.call(N)};
_.g.ready=function(){var q;(q=this.beforeReady)==null||q.call(this);Chq&&pLF(this);var N;if(q=(N=this.polySiContext.finalizedTemplate)==null?void 0:N.processedTemplate){q=gOJ(q.template,q.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:q.hasInsertionPoint,thisCtx:this});N=q.nodesById;q=q.root;var b=this.hostElement;var y=y===void 0?!1:y;b=(0,_.yb)(b);if(!b.attachShadow)throw Error("Hd");if(!b.shadowRoot||y)b.attachShadow({mode:"open",shadyUpgradeFragment:q}),b.shadowRoot.appendChild(q);
this.root=b.shadowRoot;this.$=N}PhF(this);y=_.Z(this.polySiParams.behaviors);for(N=y.next();!N.done;N=y.next())q=void 0,(q=N.value.ready)==null||q.call(this);var J;(J=this.polySiInfo.ready)==null||J.call(this)};
_.g.attached=function(){for(var q=_.Z(this.polySiParams.behaviors),N=q.next();!N.done;N=q.next()){var b=void 0;(b=N.value.attached)==null||b.call(this)}var y;(y=this.polySiInfo.attached)==null||y.call(this)};
_.g.detached=function(){for(var q=_.Z(this.polySiParams.behaviors),N=q.next();!N.done;N=q.next()){var b=void 0;(b=N.value.detached)==null||b.call(this)}var y;(y=this.polySiInfo.detached)==null||y.call(this)};
var WQq=function(q){for(var N=_.Z(q.polySiParams.behaviors),b=N.next();!b.done;b=N.next())if(b=b.value,b.listeners)for(var y in b.listeners)EOd(q,q.hostElement,y,b.listeners[y]);if(q.polySiInfo.listeners)for(var J in q.polySiInfo.listeners)EOd(q,q.hostElement,J,q.polySiInfo.listeners[J])},EOd=function(q,N,b,y,J){q=Z8R(q,y,J);
PK(N,b,q)||N.addEventListener(b,q);return q},pLF=function(q){for(var N=_.Z(q.polySiParams.reactiveSchemas),b=N.next();!b.done;b=N.next())b=b.value,b.type==="compute"||b.type==="computeWithMethod"?cJA(q.signalProxy,b,q):b.type==="redux"?$Vu(q.signalProxy,b,q.store):b.type==="signal"&&b.readOnly&&zon(q.signalProxy,b)},PhF=function(q){for(var N=_.Z(q.polySiParams.reactiveSchemas),b=N.next(),y={};!b.done;y={schema$jscomp$12:void 0},b=N.next())y.schema$jscomp$12=b.value,y.schema$jscomp$12.type==="notify"?
mVd(q.signalProxy,y.schema$jscomp$12,q.hostElement):y.schema$jscomp$12.type==="observe"?rJz(q.signalProxy,y.schema$jscomp$12,q):y.schema$jscomp$12.type==="reflect"&&q.signalProxy.effect(function(E){return function(){var F=q.signalProxy.getWithPath([E.schema$jscomp$12.propertyKey]);
q.reflecting=!0;i8n(q.hostElement,E.schema$jscomp$12.propertyKey,F,!0);q.reflecting=!1}}(y));
if(q.reflectedAttributes)for(N=_.Z(Object.entries(q.reflectedAttributes)),y=N.next(),b={};!y.done;b={key$jscomp$938:void 0,value$jscomp$10188:void 0},y=N.next()){var J=_.Z(y.value);y=J.next().value;J=J.next().value;b.key$jscomp$938=y;b.value$jscomp$10188=J;q.signalProxy.effect(function(E){return function(){q.reflecting=!0;i8n(q.hostElement,E.key$jscomp$938,(0,E.value$jscomp$10188)(),!0);q.reflecting=!1}}(b))}};
_.g=IU.prototype;_.g._setPendingProperty=function(q,N){this.set(q,N);return!1};
_.g._enableProperties=function(){};
_.g._setPendingPropertyOrPath=function(q,N){this.notifyPath(q,N);return!1};
_.g._addPropertyEffect=function(){};
_.g._stampTemplate=function(){throw Error("Kg");};
_.g.fire=function(q,N,b){N=N===void 0?{}:N;b=b===void 0?{}:b;var y,J,E={bubbles:(y=b.bubbles)!=null?y:!0,cancelable:!!b.cancelable,composed:(J=b.composed)!=null?J:!0},F;return _.e2(hvA((F=b.node)!=null?F:this.hostElement),q,N,E)};
_.g.get=function(q,N){var b=wq(q);return N?F3z(N,b):q==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(b)};
_.g.linkPaths=function(){};
_.g.listen=function(q,N,b){q=hvA(q);this.boundListeners!=null||(this.boundListeners=new WeakMap);var y=this.boundListeners.get(q);y||(y={},this.boundListeners.set(q,y));var J=N+b;y[J]||(y[J]=EOd(this,q,N,b))};
_.g.notifyPath=function(q,N){this.signalProxy.notifyPath(wq(q),arguments.length===2?{value:N}:void 0)};
_.g.canNotifyPath=function(q){return this.mutablePropNames.has(q)&&!W3A(this.signalProxy,q)};
_.g.notifySplices=function(q,N){this.signalProxy.notifySplices(wq(q),N)};
_.g.pop=function(q){var N=this.signalProxy;q=wq(q);var b=_.Z(q);q=b.next().value;b=gn(b);return lL(N,q).pop(b)};
_.g.push=function(q){var N=_.MB.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[wq(q)].concat(_.a9(N)))};
_.g.set=function(q,N,b){if(b)throw Error("Lg");q==="hidden"?this.hostElement.hidden=!!N:this.signalProxy.setWithPath(wq(q),N)};
_.g.setProperties=function(q){q=_.Z(Object.entries(q));for(var N=q.next();!N.done;N=q.next()){var b=_.Z(N.value);N=b.next().value;b=b.next().value;this[N]=b}};
_.g.splice=function(q,N,b){var y=_.MB.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[wq(q),N,b].concat(_.a9(y)))};
_.g.unlinkPaths=function(){};
_.g.unlisten=function(q,N,b){q=hvA(q);if(this.boundListeners){var y=this.boundListeners.get(q);if(y){b=N+b;var J=y[b];J&&(Mr(q,N,J)||q.removeEventListener(N,J),delete y[b])}}};
_.g.unshift=function(q){var N=_.MB.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[wq(q)].concat(_.a9(N)))};
_.$H.Object.defineProperties(IU.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 Wfd=[Array,Boolean,Date,Number,Object,String];var PNn=!1;var oz=function(){var q=HTMLElement.apply(this,arguments)||this;q.restamp=!1;q.notifyDomChange=!1;q.JSC$13698_didCallConnected=!1;q.JSC$13698_renderDebouncer=null;q.disableTemplateUpdateSignalImpl=Ts()?void 0:_.QS(!1,void 0,"Ofhkwb");var N;q.getDisableTemplateUpdate=(N=q.disableTemplateUpdateSignalImpl)==null?void 0:N[0];var b;q.setDisableTemplateUpdate=(b=q.disableTemplateUpdateSignalImpl)==null?void 0:b[1];return q};
_.Y(oz,HTMLElement);var MoJ=function(q){q.conditionSignalImpl!=null||(q.conditionSignalImpl=new PW(_.QS(!1,void 0,"gE52Fb")));return q.conditionSignalImpl};
_.g=oz.prototype;_.g.showHideChildren=function(q){o1F(this,q,this.if)};
_.g.attributeChangedCallback=function(q,N,b){if(this.JSC$13698_didCallConnected)throw Error("Pg`"+q);q==="notify-dom-change"?this.notifyDomChange=b!==null:q==="restamp"&&(this.restamp=b!==null)};
_.g.debounceRender=function(){this.JSC$13698_renderDebouncer=_.$c(this.JSC$13698_renderDebouncer,AD,this.JSC$13698_renderImpl.bind(this));_.tt(this.JSC$13698_renderDebouncer)};
_.g.disconnectedCallback=function(){var q=(0,_.yb)(this).parentNode;(!q||q.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in q&&!q.host)&&AUE(this)};
_.g.connectedCallback=function(){var q=this;this.JSC$13698_didCallConnected=!0;UhF?Mwd():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.x("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){MoJ(q).getWithPath([]);q.debounceRender()})};
_.g.render=function(){_.VO()};
_.g.JSC$13698_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var q=this.if,N=!1;if(q){this.hasInstance()||(eqq(this),N=!0);a:{var b=(0,_.yb)(this).parentNode;if(this.hasInstance()){var y=this.instance.children;if((y==null?0:y.length)&&(0,_.yb)(this).previousSibling!==y[y.length-1])for(var J=0;J<y.length;J++)(0,_.yb)(b).insertBefore(y[J],this)}else{if(!b){b=!1;break a}BGJ(this,b)}b=!0}if(!b)return}else this.restamp&&AUE(this);o1F(this,!1,q);q&&!N&&eqq(this);fwF&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.g.hasInstance=function(){return!!this.instance};
var BGJ=function(q,N){var b=q.parentSignalProxy;if(Ts()){var y=_.Z(_.QS(!0,void 0,"dkzufd"));var J=y.next().value;y=y.next().value;b=q.parentSignalProxy}else{var E;var F=new MA((E=H$1(q))!=null?E:{},function(c){var z=lL(q.parentSignalProxy,c).getChangeRecordSignal([]);c=_.QS(void 0,void 0,"iG8Uwe");var m=new PW(c);F.effect(function(){if(q.getDisableTemplateUpdate&&!q.getDisableTemplateUpdate()){var r=z();m.notifyPath(wq(r.path),{value:r.value})}});
return m});
q.parentSignalProxy.childSignalProxies.push(F);var R=b=F}b=gOJ(q.templateInfo,q.templateInfo.nodeInfoList,b,{eventListenerHost:q.eventListenerHost,hasInsertionPoint:q.templateInfo.hasInsertionPoint,thisCtx:q.eventListenerHost,enabledSignal:Ts()?J:void 0,getModel:function(){return H$1(q)}}).root;
q.instance={root:b,children:[],hidden:!1,signalProxy:R,getTemplateUpdatesEnabled:J,setTemplateUpdatesEnabled:y};R=_.Z(b.childNodes);for(J=R.next();!J.done;J=R.next())q.instance.children.push(J.value);(0,_.yb)(N).insertBefore(q.instance.root,q)},H$1=function(q){if((q=q.parentSignalProxy.model)&&!q.hostElement){var N={},b;
for(b in q)q.hasOwnProperty(b)&&(N[b]=q[b]);return N}},AUE=function(q){if(q.instance){var N=q.instance.children;
if(N.length){var b=(0,_.yb)(N[0]).parentNode;if(b){b=(0,_.yb)(b);for(var y=0;y<N.length;y++)b.removeChild(N[y])}}Ts()?q.instance.setTemplateUpdatesEnabled(!1):q.instance.signalProxy.dispose();q.instance=void 0}},o1F=function(q,N,b){N=N||!b;
q.instance&&q.instance.hidden!==N&&(q.instance.hidden=N,pJz(N,q.instance.children))},eqq=function(q){if(Ts()){var N=q.instance;
N&&P1(q.parentSignalProxy.owner,function(){return!N.getTemplateUpdatesEnabled()})&&N.setTemplateUpdatesEnabled(!0)}else q.setDisableTemplateUpdate(!1)};
_.$H.Object.defineProperties(oz.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var q=this;return P1(this.parentSignalProxy.owner,function(){return MoJ(q).getWithPath([])})},
set:function(q){q||(Ts()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));MoJ(this).setWithPath([],!!q)}}});
_.$H.Object.defineProperties(oz,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",oz);var qsj=[],A2=function(){var q=HTMLElement.apply(this,arguments)||this;q.as="item";q.indexAs="index";q.itemsIndexAs="itemsIndex";q.targetFramerate=20;q.notifyDomChange=!1;q.isDetached=!1;q.JSC$13705_renderDebouncer=null;q.instances=[];q.chunkingId=null;q.chunkCount=null;q.shouldMeasureChunk=!1;q.shouldContinueChunking=!1;q.renderStartTime=null;q.JSC$13705_didCallConnected=!1;return q};
_.Y(A2,HTMLElement);var Nvq=function(q){q.itemSignalImpl!=null||(q.itemSignalImpl=new PW(_.QS(qsj,void 0,"YBrqgf")));return q.itemSignalImpl},bfT=function(q,N){Array.isArray(N)||(N=qsj);
Nvq(q).setWithPath([],N)};
_.g=A2.prototype;_.g.showHideChildren=function(q){for(var N=_.Z(this.instances),b=N.next();!b.done;b=N.next())pJz(q,b.value.children)};
_.g.notifyPath=function(q,N){q=wq(q);q[0]==="items"&&(q.length===1?bfT(this,N):Nvq(this).setWithPath(q.slice(1),N))};
_.g.canNotifyPath=function(q){return q==="items"};
_.g.attributeChangedCallback=function(q,N,b){if(this.JSC$13705_didCallConnected)throw Error("Qg`"+q);q==="as"?this.as=b:q==="index-as"?this.indexAs=b:q==="items-index-as"?this.itemsIndexAs=b:q==="initial-count"?this.initialCount=Number(b):q==="notify-dom-change"?this.notifyDomChange=b!==null:q==="target-framerate"&&(this.targetFramerate=Number(b))};
_.g.disconnectedCallback=function(){this.isDetached=!0;for(var q=0;q<this.instances.length;q++)yFR(this,q);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.g.connectedCallback=function(){var q=this,N=Nvq(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var J=N(),E=wq(J.path);if(E[0]===void 0||E[0]==="splices"||E[0]==="length")q.debounceRender();else{var F=E[0];if(F=q.instances[typeof F==="string"?Math.floor(Number(F)):F])E=[q.as].concat(_.a9(E.slice(1))),F.signalProxy.notifyPath(E,J)}});
this.JSC$13705_didCallConnected=!0;UhF?Mwd():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var b=(0,_.yb)((0,_.yb)(this).parentNode),y=0;y<this.instances.length;y++)b.insertBefore(this.instances[y].root,this);this.chunkingId&&this.render()}};
_.g.debounceRender=function(){this.JSC$13705_renderDebouncer=_.$c(this.JSC$13705_renderDebouncer,AD,this.JSC$13705_renderImpl.bind(this));_.tt(this.JSC$13705_renderDebouncer)};
_.g.render=function(){this.debounceRender();_.VO()};
_.g.JSC$13705_renderImpl=function(){var q=this;if(!this.parentSignalProxy.isDisposed){var N=this.items,b=JFR(this,N.length);EWR(this,N,b);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){q.chunkingId=null;if(q.shouldMeasureChunk){var y=performance.now()-q.renderStartTime;q.chunkCount=Math.round(Math.ceil(1E3/q.targetFramerate)/y*q.chunkCount)||1}q.shouldContinueChunking&&q.debounceRender()}));
fwF&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var JFR=function(q,N){var b=N,y=q.instances.length;if(q.initialCount){if(q.chunkCount){var J=Math.min(Math.max(N-y,0),q.chunkCount);b=Math.min(y+J,N)}else b=Math.min(N,q.initialCount),J=Math.max(b-y,0),q.chunkCount=J||1;q.shouldMeasureChunk=J===q.chunkCount;q.shouldContinueChunking=b<N;q.renderStartTime=performance.now()}return b},EWR=function(q,N,b){for(var y=0;y<b;y++){var J=q.instances[y],E=N[y];
J?(J.signalProxy.setWithPath([q.as],E),J.signalProxy.setWithPath([q.indexAs],y)):gW1(q,E,y)}for(N=q.instances.length-1;N>=y;N--)b=q,J=N,yFR(b,J),_.Z(b.instances.splice(J,1)).next().value.signalProxy.dispose()},yFR=function(q,N){q=q.instances[N];
N=(0,_.yb)(q.root);for(var b=0;b<q.children.length;b++)N.appendChild(q.children[b])},gW1=function(q,N,b){var y={};
N=Object.assign({},Zfx(q),(y[q.as]=N,y[q.indexAs]=b,y[q.itemsIndexAs]=b,y));var J=new MA(N,function(F){if(F!==q.as&&F!==q.indexAs){if(F===q.itemsIndexAs)return lL(J,q.indexAs);var R=lL(q.parentSignalProxy,F).getChangeRecordSignal([]);F=_.QS(void 0,void 0,"T21Pqc");var c=new PW(F);J.effect(function(){var z=R();c.notifyPath(wq(z.path),{value:z.value})});
return c}});
q.parentSignalProxy.childSignalProxies.push(J);y=gOJ(q.templateInfo,q.templateInfo.nodeInfoList,J,{eventListenerHost:q.eventListenerHost,getModel:function(){var F={};return Object.assign({},Zfx(q),(F[q.as]=J.model[q.as],F[q.indexAs]=J.model[q.indexAs],F[q.itemsIndexAs]=J.model[q.indexAs],F))},
hasInsertionPoint:q.templateInfo.hasInsertionPoint,thisCtx:q.eventListenerHost,methodInvocationRequirement:IwT,enabledSignal:q.stampingEnabled}).root;N={root:y,children:[],signalProxy:J};y=_.Z(y.childNodes);for(var E=y.next();!E.done;E=y.next())N.children.push(E.value);y=(y=q.instances[b+1])?y.children[0]:q;(0,_.yb)((0,_.yb)(q).parentNode).insertBefore(N.root,y);q.instances[b]=N},Zfx=function(q){if((q=q.parentSignalProxy.model)&&!q.hostElement){var N={},b;
for(b in q)q.hasOwnProperty(b)&&(N[b]=q[b]);return N}};
A2.prototype.itemForElement=function(q){var N=this,b=this.instances.find(function(y){return y.children.includes(q)});
if(b)return P1(this.parentSignalProxy.owner,function(){return b.signalProxy.getWithPath([N.as])})};
A2.prototype.indexForElement=function(q){var N=this.instances.findIndex(function(b){return b.children.includes(q)});
return N>=0?N:void 0};
_.$H.Object.defineProperties(A2.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var q=this;return P1(this.parentSignalProxy.owner,function(){return Nvq(q).getWithPath([])})},
set:function(q){bfT(this,q)}},
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}}});
_.$H.Object.defineProperties(A2,{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",A2);var FZq,R8l;_.eU=new _.Jw("STATE_STORE_TOKEN");FZq=new _.Jw("SELECT_TOKEN");R8l=new _.Jw("DISPATCH_TOKEN");var qmh={getSelectFn:function(){var q;return(q=_.tz().resolve(_.$f(FZq)))!=null?q:oOn},
getDispatchFn:function(){var q;return(q=_.tz().resolve(_.$f(R8l)))!=null?q:_.sk().dispatch.bind(_.sk())},
getAppStore:function(){return _.tz().resolve(_.eU)}},AKA,Hdn=!1;var Zwz=function(){};var JqA=void 0;var d5x=function(){};
d5x.prototype.hasAttribute=function(q){if(q==="dir")return!1;if(q==="disable-upgrade"){var N,b;return(b=(N=this.hostElement)==null?void 0:N.hasAttribute("disable-upgrade"))!=null?b:!1}throw Error("Rg`"+q);};
d5x.prototype.attributeChangedCallbackWrapper=function(q,N,b){if(q==="disable-upgrade"&&this.__isUpgradeDisabled&&b===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var y;((y=this.hostElement)!=null?y:this).isConnected&&this.connectedCallback()}else N===b||this.__isReflecting||this.attributeChangedCallback(q,N,b)};
d5x.prototype.getExtraMethodsToForward=function(){for(var q=this,N=[],b=_.Z(cFR),y=b.next(),J={};!y.done;J={tagName$jscomp$67:void 0,name$jscomp$629:void 0},y=b.next())J.name$jscomp$629=y.value,y=void 0,J.name$jscomp$629==="_setPendingProperty"?(J.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),y=function(E){return function(F,R,c){rq(E.tagName$jscomp$67,F,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return q._setPendingProperty(F,R,c)}}(J)):y=function(E){return function(){return q[E.name$jscomp$629].apply(q,
_.a9(_.MB.apply(0,arguments)))}}(J),N.push([J.name$jscomp$629,
y]);return N};
for(var dkC=awM(n1R((0,_.Kz)(d5x))),$kz=["disabled","disable-upgrade"],u71=(0,_.Kz)(function(){}),z8E=new Set(Object.getOwnPropertyNames(u71.prototype)),VfZ=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.a9(z8E))),mkd=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),cFR=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),$5x=new Set([].concat(_.a9(mkd),_.a9(cFR),_.a9(z8E))),tWx=_.Z($5x),m5F=tWx.next();!m5F.done;m5F=tWx.next())TlZ.add(m5F.value);var Xpd={created:function(){wJn(this);this.initializeInjection()}};var iwd=!1,PH=window.ShadyDOM,CFA=["appendChild","insertBefore","removeChild","replaceChild"],fJn=[Node];PH&&fJn.push(PH.Wrapper);var W2J,L2u,Mfe={};var M9,Hwz=new WeakMap,AqR=new Set;var JUu=new Set("context didCallReady is info params signalProxy".split(" ")),g1R="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),Z$Z="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var rF1=kH({entities:Nwh}),Xm1=new SN(rF1);var VWT=function(){return _.uL.apply(this,arguments)||this};
_.Y(VWT,_.uL);_.$H.Object.defineProperties(VWT.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return Xm1}}});
_.p([_.zs()],VWT);_.BW=[LP.prototype,VWT.prototype];_.HW={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var q=this,N={};setTimeout(function(){var b;return _.e2((b=q.hostElement)!=null?b:q,"yt-live-chat-add-tooltip-target",N)},0);
this.handler_=N.handler},
detached:function(){if(this.handler_){var q;this.handler_.removeElementFromSupportingTooltips((q=this.hostElement)!=null?q:this)}this.handler_=null}}};_.No=new _.Jw("ICON_MANAGER_TOKEN");var j2R=[48,20,18,16,15,13,12],wLn=new Map,G$h=new Set,jjn=new Set,v1d=new Set,Vod=new Set,xhz=new Set,QjA=new Promise(function(q){var N=!1,b=!1,y=!1,J=[],E=function(F){if("detail"in F)if(F=F.detail,F.name==="yt-icons")YHe(F),N=!0;else if(F.name==="yt-sys-icons")YHe(F),b=!0;else{var R;((R=F.name)==null?0:R.includes("yt-sys-icons"))&&F.size!==24&&(YHe(F,!0),J.push(F.size),J.length===j2R.length&&(y=!0))}N&&b&&y&&(window.removeEventListener("iron-iconset-added",E),q())};
window.addEventListener("iron-iconset-added",E)}),x5x=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"]]);_.qT={};_.qT.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.ao,computeHref_:function(q,N){N=N===void 0?!1:N;if(!q||q.commandExecutorCommand)return null;var b=cOJ(q,N);return N||b!==null?b?_.x("enable_polymer_resin")?_.pc(b).toString():b:null:(_.M6(new _.IO("computeHref was null",this.is,q)),null)},
computeOptionalHref_:function(q){return this.computeHref_(q,!0)},
computeNofollow_:function(q){return q?bTJ(q)?"nofollow":null:null},
computeIcon_:function(q){return q&&q.iconType?_.qo(q.iconType):""},
resolveCommand:function(q,N,b){N=N===void 0?{}:N;return _.yI(q,this.hostElement,N,b===void 0?!1:b)}};var GBo,NT;_.vWq={};GBo=null;
NT={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_=$wh(this.viewroot));_.k9(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var q=this;this.unobserve_();if(_.x("kevlar_vimio_use_shared_monitor"))hqd(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 N=[];this.visibilityOptionVisible_&&N.push(this.visibilityObserver.observe(this.hostElement,function(){return q.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&N.push(this.visibilityObserver.observe(this.hostElement,function(){return q.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&N.push(this.visibilityObserver.observe(this.hostElement,function(){return q.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=N}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){i$d(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 q=_.Ph(this.parentNode,function(b){var y,J=(y=b.polymerController)!=null?y:b;return!!J.getVisibilityObserverForChild&&J.getVisibilityObserverForChild()},!0);
if(q){var N;this.localVisibilityObserver_=((N=q.polymerController)!=null?N:q).getVisibilityObserverForChild()}else GBo||(GBo=$wh()),this.localVisibilityObserver_=GBo;return this.localVisibilityObserver_},visibilityCallback:function(q){q?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.x("kevlar_use_vimio_behavior")||(NT={});NT&&!_.x("kevlar_use_vimio_behavior")&&(delete NT.attached,delete NT.detached);_.vWq.YtVisibilityObserverBehavior=[NT];var YsJ={};YsJ.YtVisualElementBehavior=[_.vWq.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.x("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.x("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var q=this.getScreenLayer&&this.getScreenLayer(),N=this.getVisibilityLogger();N&&N.reportShown(this,void 0,q)}},
onHidden:function(){if(_.x("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.x("kevlar_vimio_use_shared_monitor")){var q=this.getScreenLayer&&this.getScreenLayer(),N=this.getVisibilityLogger();N&&N.reportHidden(this,void 0,q)}},
getVisibilityLogger:function(){return _.x("kevlar_use_vimio_behavior")?_.E_():null},
shouldSkipLogging:function(){if(_.M7("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var q=this.getParentRenderer&&this.getParentRenderer();if(!q)return!1;var N,b=(N=q.polymerController)!=null?N:q;if(!b.data)return!1;q=this.data.trackingParams;q=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:q;var y;N=(y=b.data)==null?void 0:y.trackingParams;var J,E;N=((J=b.data)==null?0:J.loggingDirectives)?(E=b.data)==null?void 0:E.loggingDirectives.trackingParams:N;return q&&N&&q===
N}}];var fwh=new Map,$0;var oSd=function(q){this.layer=q},gh=function(q){return q.layer!==void 0?q.layer:q.parent?gh(q.parent):q.layer=0};var awd;_.e={};awd=0;_.e.YtRendererBehavior=[_.qT.YtComponentBehavior,YsJ.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_:_.x("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var q,N;(N=(q=this.monitorScrollElement)!=null?q:this.hostElement)==null||N.removeEventListener("scroll",_.gq(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();k$z(this.hostElement);DkR(_.fP(),this.hostElement);W3.delete(this.hostElement)},
registerRenderer:function(q){var N;((N=q.polymerController)!=null?N:q).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(q),this.markDirty())},
unregisterRenderer_:function(q){this.useVimio_||(this.childCache_.delete(q),this.markDirty())},
attached:function(){var q=this,N=this.getParentRenderer();if(N){var b,y,J;(y=(b=(J=N.polymerController)!=null?J:N).registerRenderer)==null||y.call(b,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var E,F;(F=(E=this.monitorScrollElement)!=null?E:this.hostElement)==null||F.addEventListener("scroll",_.gq(this,this.onScroll))}_.pY.addJob(function(){ChR(q.hostElement)},8);
b=new oSd(this.screenLayer||void 0);(N=W3.get(N))&&N.layerNode&&(b.parent=N.layerNode);N={};VOA(this.hostElement,(N.isRenderer=!0,N.layerNode=b,N[ALJ]=this.data,N))},
getParentRenderer:function(){for(var q=this.hostElement.parentNode,N,b;q&&((N=W3.get(q))==null||!N.isRenderer)&&!((b=q.polymerController)!=null?b:q).isRenderer_;)q=q.parentNode||q.host;return q},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.x("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.ou("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.x("debug_web_ve_data")&&this.data.trackingParams){var q="";try{q=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(b){_.po(b)}if(q){var N=liA(q,1);N!==void 0&&(this.hostElement.dataset.veIndex=String(N));q=liA(q,2);
q!==void 0&&(this.hostElement.dataset.ve=String(q))}}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,_.x("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.zT(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Zd(_.FR(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var q=this.data.targetId;_.k_4(_.fP(),q,this.hostElement)}else DkR(_.fP(),this.hostElement)},
onScroll:function(){var q=Date.now();q-this.lastHandledScroll_<50||(this.lastHandledScroll_=q,this.markDirty())},
markDirty:function(){_.x("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():SHe(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var q=this.getParentRenderer();if(q&&(q=W3.get(q))&&q.layerNode)return gh(q.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.a9(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var q=0;q<this.data.impressionEndpoints.length;q++)this.sendImpression(this.data.impressionEndpoints[q]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(q){q.clickTrackingParams&&delete q.clickTrackingParams;var N,b;(q==null?0:(N=q.commandMetadata)==null?0:(b=N.webCommandMetadata)==null?0:b.sendPost)?_.qc(this.hostElement,[q,{impression:!0}]):_.Nc(this.hostElement,[q],this.hostElement)},
logExplicitClick:function(q){var N=_.Oe(this.getScreenLayer());if(N){var b,y=(b=q.polymerController)!=null?b:q;q=y.visualElement;y=y.trackingParams||y.clickTrackingParams;!q&&y&&(q=_.zT(y));q&&_.nr(N,q)}}}];var Q24={},bw=function(){return _.uL.apply(this,arguments)||this};
_.Y(bw,_.uL);bw.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
bw.prototype.onPdgItemBehaviorClick=bw.prototype.onPdgItemBehaviorClick;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],bw.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],bw.prototype,"data",void 0);_.p([_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],bw.prototype,"onPdgItemBehaviorClick",null);_.p([_.zs()],bw);Q24.YtPdgLiveChatItemBehavior=[bw.prototype,_.e.YtRendererBehavior];var Of1;var wmx;_.yf={};_.yf.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var J$=function(){var q=mH.apply(this,arguments)||this;q.switchTemplateAtRegistration=!1;return q};
_.Y(J$,mH);J$.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||Phh(this),_.vOD(this,"doRender"),this.doRender())};
J$.prototype.debounceRender=function(){this.templatingFn&&_.Uk(this,"doRender",this.doRender)};
J$.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.po(Error("ah"))};
J$.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.p([yxd()],J$);var ifl=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Eu={},eqR=(Eu[1]={filterString:null,isUnwrappable:null,unwrap:null},Eu[2]={filterString:function(q,N,b){return NE(b)},
isUnwrappable:function(q){return q instanceof ev},
unwrap:function(q){return qn(q)}},Eu[3]={filterString:function(q,N,b){return ifl.test(b)?b:Sv.toString()},
isUnwrappable:function(q){return Te(q)},
unwrap:function(q){return _.sh(q)}},Eu[4]={filterString:function(){return Sv.toString()},
isUnwrappable:function(q){return q instanceof Dl},
unwrap:function(q){return _.kB(q).toString()}},Eu[5]={filterString:function(q,N,b){return b},
isUnwrappable:function(q){return typeof q==="string"},
unwrap:function(q){return q.toString()}},Eu[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(q){return q instanceof _.E5},
unwrap:function(q){return Zb(q)}},Eu[8]={filterString:function(q,N,b){b=String(b).toLowerCase();
return lmn(q,N,b)?b:"zClosurez"},
isUnwrappable:null,unwrap:null},Eu[10]={filterString:null,isUnwrappable:null,unwrap:null},Eu);zh[H1["default"]]=H$d;var qsn=[];(function(){var q=cC;cC=function(N){q==null||q(N);VI(function(){for(var b=0;b<N.length;b++)NvR(N[b])})}})();var laM=function(){var q=_.uL.apply(this,arguments)||this;q.hasUnmounted=!1;return q};
_.Y(laM,_.uL);_.g=laM.prototype;_.g.beforeRegister=function(){var q=this.doIdomRender;this.templatingFn?_.po(Error("$g")):(this.templatingFn=q,this.switchTemplateAtRegistration=!0,AUD(this))};
_.g.attached=function(){};
_.g.detached=function(){NvR(this.hostElement)};
_.g.renderIdom=function(){throw Error("ch");};
_.g.doIdomRender=function(){var q=this;Y$J(this.hostElement,function(){q.renderIdom()})};
_.p([_.zs()],laM);var KZx=[J$.prototype,laM.prototype];var D5j,h8J=function(){return D5j!==void 0?D5j:D5j=document.createElement("template")};
document.head.appendChild(h8J().content);var kB1;var U5R,fa4=function(){return U5R!==void 0?U5R:U5R=document.createElement("template")};
document.head.appendChild(fa4().content);var CSF;var IaE=document.head,TvT=IaE.appendChild,s2x;if(CSF===void 0){var nWE=document.createElement("template");_.Q(nWE,"\x3c!--css-build:shady--\x3e");nWE.content.insertBefore(fa4().content.cloneNode(!0),nWE.content.firstChild);CSF=nWE}s2x=CSF;TvT.call(IaE,s2x.content);var aaT,SsR=function(){return aaT!==void 0?aaT:aaT=document.createElement("template")};
document.head.appendChild(SsR().content);var WZJ;var LZo=document.head,pm1=LZo.appendChild,PSE;if(WZJ===void 0){var MWx=document.createElement("template");_.Q(MWx,"\x3c!--css-build:shady--\x3e");MWx.content.insertBefore(SsR().content.cloneNode(!0),MWx.content.firstChild);WZJ=MWx}PSE=WZJ;pm1.call(LZo,PSE.content);var oWE=document.head,AFR=oWE.appendChild,e8x;if(kB1===void 0){var Bv1=document.createElement("template");_.Q(Bv1,"\x3c!--css-build:shady--\x3e");Bv1.content.insertBefore(h8J().content.cloneNode(!0),Bv1.content.firstChild);kB1=Bv1}e8x=kB1;AFR.call(oWE,e8x.content);var HfT,qPv=function(){return HfT!==void 0?HfT:HfT=document.createElement("template")};
document.head.appendChild(qPv().content);var N9l;_.ft=new _.Jw("DARK_THEME_TOKEN");var WZu=new _.yT("accessibilityProperties");var SsA=new _.yT("layoutProperties");var LZz=new _.yT("imageType");var b51={};if("ytAttributedStringLinkHoverColor"in b51)throw Error("fh`ytAttributedStringLinkHoverColor");(function(q,N){b51[q]="value"in N&&"unit"in N?ZfJ(q,N):function(b){try{return N(b)}catch(y){throw Error("dh`"+q+"`"+y.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var ygx=function(q){var N=this;this.holdTime=q===void 0?500:q;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(b){var y=new CustomEvent("LONG_PRESS"),J;(J=b.changedTouches[0].target)==null||J.dispatchEvent(y)};
this.ontouchstart=function(b){N.longPressTimeout=_.ZQ(_.pY,function(){N.onlongpress(b);N.longPressOccurred=!0},N.holdTime)};
this.ontouchmove=function(){_.pY.cancelJob(N.longPressTimeout);N.longPressTimeout=NaN;N.longPressOccurred=!1;N.moveOccurred=!0};
this.ontouchend=function(b){if(N.longPressTimeout&&!N.longPressOccurred&&!N.moveOccurred){var y;(y=b.changedTouches[0].target)==null||y.dispatchEvent(new Event("click"))}_.pY.cancelJob(N.longPressTimeout);N.longPressTimeout=NaN;N.longPressOccurred=!1;N.moveOccurred=!1}};var Q2Z=function(q,N){ygx.call(this,N);var b=this;this.callback=q;this.onlongpress=function(y){var J;(J=b.callback)==null||J.call(b,y)}};
_.Y(Q2Z,ygx);var OfC=function(q,N){var b=Object.assign({},N);q=_.Z(new Map([["ontouchstart",q.ontouchstart],["ontouchend",q.ontouchend],["ontouchmove",q.ontouchmove]]));for(var y=q.next(),J={};!y.done;J={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},y=q.next()){var E=_.Z(y.value);y=E.next().value;E=E.next().value;J.eventName$jscomp$103=y;J.eventHandler$jscomp$2=E;N[J.eventName$jscomp$103]=function(F){return function(R){var c;(c=b[F.eventName$jscomp$103])==null||c.call(b,R);(0,F.eventHandler$jscomp$2)(R)}}(J)}};_.rO=new _.Jw("COMMAND_HANDLER_TOKEN");var R8J=new _.yT("parallelCommand");var u7C=new _.yT("performOnceCommand");var cFA=new _.yT("serialCommand");var z8D=void 0;var Jgx=function(){this.data=[];this.consumer=null};
Jgx.prototype.push=function(q){this.consumer?this.consumer(q):this.data.push(q)};var TS={};_.QS(TS,void 0,"sgPmTd");_.QS(null,void 0,"jypsq");_.QS(null,void 0,"mWiOof");var SyA=new Jgx;var x5A=[ABo,e_x,Bs1,q5q,Hc1,oBx,N0M,b7v];var nWD=new _.yT("bracketTextDecorator");var k0=new _.yT("highlightTextDecorator");_.Ii=new _.Jw("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var faZ=function(){},EbE;
(EbE=window.requestIdleCallback)==null||EbE.bind(window);var IaD={calledOnce:!1,state:"visible"},CSh={calledOnce:!1,state:"hidden"};var gbj=new _.Jw("ICON_WIZ_COMPONENT_TOKEN");_.FQ=_.n(function(q){var N=q.icon;var b=q.active;var y=q.className;var J=q.style;var E=q.dataSelected;var F=q.dataDisabled;var R=q.role;var c=q.animateIcon;var z=q.themeOverride;var m=q.ariaHidden;var r=q.ariaExpanded;var X=q.ariaLabel;var V=q.tabindex;var G=q.id;var w=q.size;var D=q.iconFilter;var k=q.gradientColor;var f=q.onKeydown;var L=q.title;return _.u(_.t,{cond:N,then:function(){var S=_.tz().resolve(gbj);return _.u(S,{icon:N,dataSelected:E,dataDisabled:F,animateIcon:c,themeOverride:z,ariaExpanded:r,
tabindex:V,id:G,active:b,size:w,role:R,className:y,ariaHidden:m,ariaLabel:X,style:function(){return J!=null&&J()||w==null||!w()?J==null?void 0:J():"width: "+(w==null?void 0:w())+"px;height: "+((w==null?void 0:w())+"px;")},
title:L,iconFilter:D,gradientColor:k,onKeydown:f})}})},"l");
_.FQ.idomCompat={callbacks:{onKeydown:!0}};var Z5J=new _.yT("borderImageProcessor");var d4d=window.devicePixelRatio||1;var $4e=new Map([["yt_outline_bag_black_24","bag"]]);var gT=function(q){var N=this;this.margin=.1;this.whenInViewportWithMargin=q;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){N.requestScan()});
window.addEventListener("touchend",function(){N.requestScan()});
window.addEventListener("updateui",function(){N.requestScan()});
var b=new _.El((0,_.fF)(this.requestScan,this),100);window.addEventListener("scroll",function(){b.fire()},!0);
window.addEventListener("resize",(0,_.fF)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){N.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.fF)(this.requestScan,this))};
gT.prototype.observe=function(q){this.observationTargets.includes(q)||this.observationTargets.push(q)};
gT.prototype.unobserve=function(q){this.observationTargets=this.observationTargets.filter(function(N){return N!==q})};
gT.prototype.requestScan=function(){var q=this;this.scanRequested||(VI(function(){Z5l(q)}),this.scanRequested=!0)};
var Z5l=function(q){var N=(1+q.margin)*(document.documentElement.clientHeight||window.innerHeight);q.observationTargets=q.observationTargets.filter(function(b){var y=b.getBoundingClientRect();(y=N>y.top&&!!y.height)&&q.whenInViewportWithMargin(b);return!y&&b.parentNode});
q.scanRequested=!1};
gT.prototype.disconnect=function(){this.observationTargets=[]};var FqJ,d41;FqJ=_.Z(_.QS(VMn(),void 0,"O3X2wd"));_.Rc4=FqJ.next().value;d41=FqJ.next().value;window.addEventListener("resize",function(){d41(VMn())});var cg1={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},uuo=void 0,zcJ=window.innerWidth,$4v=window.innerHeight;window.addEventListener("resize",function(){uuo=void 0});var tM1;if("IntersectionObserver"in window)tM1=vbZ();else{if(uuo===void 0){var m4R;m4R="matchMedia"in window?window.matchMedia(cg1.landscape+","+cg1.portrait).matches:void 0;uuo=m4R!==void 0?m4R:zcJ>=930&&$4v>=550||zcJ>=550&&$4v>=930}tM1=uuo?{observe:function(q){VI(function(){var N;(N=q.onViewportEntered)==null||N.call(q)})},
unobserve:function(){}}:new gT(function(q){VI(function(){var N;
(N=q.onViewportEntered)==null||N.call(q)})})}var jbD=tM1;var rgj=_.n(function(q){var N=!1,b=_.dI("img",function(y){_.W1(function(){N=!0;y.onload=null})});
_.Sx(function(){var y,J=(y=q.data)==null?void 0:y.call(q),E,F=(E=q.getSrc)==null?void 0:E.call(q).cb,R;y=(R=q.config)==null?void 0:R.call(q);if(R=b.value)if(E=function(z,m){if(!N)return F?F(z,m):z},QbJ(R,y),_.x("web_image_dont_reload_same_src")&&YPu(R,J,E))_.x("web_image_dont_reload_same_src_simulate_load")&&R.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var c;G0h(R,J||null,E,y,(c=q.lazy)==null?void 0:c.call(q))}},"zS0jKb");
return _.u("img",{el:b})},"n");
rgj.idomCompat=!0;_.s_=_.n(function(q){var N=function(){var b,y=q.data(),J,E,F,R,c,z,m,r,X,V,G,w,D,k,f,L,S,W,M,qe,RJ,tZ,wA,rA,xD,IJ,sJ,Sn,YE;var xE={contentMode:(J=q.contentMode)==null?void 0:J.call(q),loadedClass:(E=q.loadedClass)==null?void 0:E.call(q),isPreloaded:(F=q.isPreloaded)==null?void 0:F.call(q),notifyOnLoaded:(R=q.notifyOnLoaded)==null?void 0:R.call(q),notifyOnUnloaded:(c=q.notifyOnUnloaded)==null?void 0:c.call(q),preferredThumbnail:(z=q.preferredThumbnail)==null?void 0:z.call(q),preserveHeight:(m=q.preserveHeight)==
null?void 0:m.call(q),preserveWidth:(r=q.preserveWidth)==null?void 0:r.call(q),objectPosition:(X=q.objectPosition)==null?void 0:X.call(q),targetWidth:(V=q.targetWidth)==null?void 0:V.call(q),targetHeight:(G=q.targetHeight)==null?void 0:G.call(q),shouldShowPlaceholder:(w=q.shouldShowPlaceholder)==null?void 0:w.call(q),useWidth:(D=q.useWidth)==null?void 0:D.call(q),isToggled:(k=q.isToggled)==null?void 0:k.call(q),alt:(f=q.alt)==null?void 0:f.call(q),className:(L=q.className)==null?void 0:L.call(q),
onerror:q.onerror,onload:q.onload,style$:((S=q.style$)==null?void 0:S.call(q))||((W=q.style)==null?void 0:W.call(q)),color:(M=q.color)==null?void 0:M.call(q),width:(qe=q.width)==null?void 0:qe.call(q),height:(RJ=q.height)==null?void 0:RJ.call(q),"aria-hidden$":(Sn=(tZ=q["aria-hidden$"])==null?void 0:tZ.call(q))!=null?Sn:(wA=q.ariaHidden)==null?void 0:wA.call(q),draggable:(rA=q.draggable)==null?void 0:rA.call(q),"data-disabled$":(YE=(xD=q["data-disabled$"])==null?void 0:xD.call(q))!=null?YE:(IJ=q.dataDisabled)==
null?void 0:IJ.call(q),size:(sJ=q.size)==null?void 0:sJ.call(q)};return i5d(y,xE,(b=q.hideOn404)==null?void 0:b.call(q))};
return _.u(_.sw,null,_.u(_.CI,{when:function(){var b;return((b=N())==null?void 0:b.type)==="image"}},function(){return _.u(rgj,{data:function(){return N().image},
getSrc:{cb:function(b,y){var J=N().image.sources,E=N().config.isPreloaded,F=N().config.useWidth,R=N().config.targetWidth,c=N().config.targetHeight,z=N().config.preferredThumbnail;return _.cgd(y,J,E,F,R,c,z)||""}},
config:function(){var b=N().config,y;for(y in b)b[y]===void 0&&delete b[y];return b},
lazy:q.renderLazy})}),_.u(_.CI,{when:function(){var b;
return((b=N())==null?void 0:b.type)==="icon"}},function(){return _.u(_.FQ,{icon:function(){return N().iconName},
role:function(){return N().config.role},
className:function(){return N().config.className},
style:function(){return N().config.style$+";width: "+(N().config.width+"px;height: ")+(N().config.height+"px;color: ")+(N().config.color+";")},
ariaLabel:function(){return N().config["aria-label$"]},
ariaHidden:function(){return N().config["aria-hidden$"]},
dataDisabled:function(){return N().config["data-disabled$"]},
active:function(){return N().config.isToggled},
size:function(){return N().config.size}})}))},"o");
_.s_.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var X9j=function(q){return function(N){return _.u(a7C,null,function(){var b=N.data(),y=_.p3(N.config);return _.u(XGn,null,function(){return void q(b,y)})})}}(k0h),D4Z=_.n(function(q){var N=function(J){var E=_.x("web_wiz_attributed_string_skip_empty")?J:S_(function(){return PSD(J())},{isEqual:KqA});
var F,R,c=_.ai(function(G){F=E();R=L3(function(){for(var w=_.Z(X()),D=w.next();!D.done;D=w.next()){D=U4n(D.value);D=typeof D==="string"?document.createTextNode(D):D;if(!(D instanceof Node)){w=new _.IO("Part is not a node",D,typeof D);_.po(w);break}G.appendChild(D)}})}),z=_.aU(q.config),m=function(){var G;
return oWD(E(),(G=z())==null?void 0:G.ariaLabel)},r=S_(z,{isEqual:CjD}),X=function(){var G=pmd(E(),r());
AFA(G,r());return E().content?b5C(E().content,G).parts:[]},V=!0;
_.Sx(function(){E();r();if(V){V=!1;var G=KqA(E(),F);if(!_.x("web_attributed_string_race_fix")||G)return}var w=X();Promise.resolve().then(function(){var D=c.value;if(D){D.innerText="";var k;(k=R)==null||k();R=_.au(D,function(){return _.u(frJ,{parts:w})},"p")}})},"vCZ0fd");
return _.u("span",{el:c,class:function(){return E()&&D5n(E(),z())},
dir:function(){var G;return((G=z())==null?0:G.userInput)?"auto":void 0},
"aria-label":function(){var G;return m()?(G=z())==null?void 0:G.ariaLabel:void 0},
role:function(){return m()?"text":void 0}})},b=_.x("web_wiz_attributed_string_skip_empty")?S_(function(){var J,E=(J=q.text)==null?void 0:J.call(q);
if(E)return J=PSD(E),(J==null?0:J.content)?J:void 0},{isEqual:KqA}):q.text,y;
return((y=q.config)==null?0:y.contentAsserted)?N(b):_.u(_.t,{cond:b,then:N})},"r");
D4Z.idomCompat=!0;_.Zc=_.n(function(q){var N=_.aU(q.text),b=Irz(q);q.contentAsserted!==void 0&&(b.contentAsserted=!0);return _.x("attr_string_reactive")?_.u(D4Z,{text:N,config:b}):_.u(_.t,{cond:function(){var y;return N()&&((y=PSD(N()))==null?void 0:y.content)},
then:function(){return _.u(X9j,{data:q.text,config:b})},
debugInstance:"Apcuac"})},"s");
_.Zc.idomCompat=!0;var T9J=function(q,N,b){N=N===void 0?"unknown":N;b=b===void 0?{}:b;_.IO.call(this,q+" ("+N+")",Object.assign({},{name:"YtWcwError",tagName:N},b));Object.setPrototypeOf(this,this.constructor.prototype)};
_.Y(T9J,_.IO);_.pt=new WeakMap;_.Lt=!1;var Wqn,LqJ,SPu;_.F5=Symbol("hh");_.W$=Symbol("ih");Wqn=Symbol("jh");LqJ=new Set(Object.getOwnPropertyNames(Element.prototype));SPu=Symbol("kh");var VMT=_.n(function(q){return _.u("yt-attributed-string",{"aria-label":q.ariaLabel,hidden:q.hidden,id:q.id,class:q.className,"force-default-style":q.forceDefaultStyle},_.u(_.Zc,{text:q.data,ariaLabel:q.ariaLabel,ellipsisTruncate:q.ellipsisTruncate,isOverlay:q.isOverlay,linkInheritColor:q.linkInheritColor,noPreWrap:q.noPreWrap,noWrap:q.noWrap,userInput:q.userInput,noEndpoints:q.noEndpoints,headerRuns:q.headerRuns,isHeadline:q.isHeadline}))},"t");
_.x("web_wiz_attributed_string")&&_.P$(VMT,"yt-attributed-string",{props:{ariaHidden:_.F5,ariaLabel:_.F5,className:_.F5,ellipsisTruncate:_.F5,isOverlay:_.F5,linkInheritColor:_.F5,noEndpoints:_.F5,noStyleRuns:_.F5,noLinkColor:_.F5,noPreWrap:_.F5,noWrap:_.F5,skipOnClick:_.F5,userInput:_.F5,headerRuns:_.F5,isHeadline:_.F5,id:_.F5,data:_.F5,hidden:_.F5,forceDefaultStyle:_.F5,text:_.W$,disableUpgrade:_.W$,disable:_.W$,slot:_.W$}});var RR=function(){return _.C.apply(this,arguments)||this};
_.Y(RR,_.C);RR.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},k0h(this.data,this.config))};
_.p([_.O(KZx),_.P("design:type",Object)],RR.prototype,"ytIdomTemplatingBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],RR.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],RR.prototype,"ariaLabel",void 0);_.p([_.U(),_.P("design:type",Boolean)],RR.prototype,"disable",void 0);_.p([_.U(),_.P("design:type",Boolean)],RR.prototype,"ellipsisTruncate",void 0);_.p([_.U(),_.P("design:type",Boolean)],RR.prototype,"isOverlay",void 0);
_.p([_.U(),_.P("design:type",Boolean)],RR.prototype,"linkInheritColor",void 0);_.p([_.U(),_.P("design:type",Boolean)],RR.prototype,"noPreWrap",void 0);_.p([_.U(),_.P("design:type",Boolean)],RR.prototype,"noWrap",void 0);_.p([_.U(),_.P("design:type",Boolean)],RR.prototype,"userInput",void 0);_.p([_.U(),_.P("design:type",Boolean)],RR.prototype,"noEndpoints",void 0);_.p([_.U(),_.P("design:type",Array)],RR.prototype,"headerRuns",void 0);
_.p([_.Ok({is:"yt-attributed-string",disableElementRegistration:!0})],RR);
_.x("web_wiz_attributed_string")||_.a(RR,"yt-attributed-string",function(){if(N9l===void 0){var q=document.createElement("template");_.Q(q,"\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");q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
q.content.insertBefore(qPv().content.cloneNode(!0),q.content.firstChild);N9l=q}q=N9l;return q},{mode:2});var jbE,x4F,B9z;jbE=function(){this.firstThumbnailLoaded=!1};
_.vb4=function(){x4F||(x4F=new jbE);return x4F};
B9z=function(q){var N=_.vb4();N.firstThumbnailLoaded||(N.firstThumbnailLoaded=!0,_.Q6("ftl",q))};
jbE.prototype.reset=function(){this.firstThumbnailLoaded=!1};var Pjn=0,ech=new WeakMap,obn=0,An=new Set;var G0F,YPJ=function(){return G0F!==void 0?G0F:G0F=document.createElement("template")};
document.head.appendChild(YPJ().content);var Qbx;var bWA,Jfz,dT;_.H$=_.JZ.caches;dT=function(){};
dT.prototype.open=function(q){return _.H$.open(O51(q))};
dT.prototype.has=function(q){return _.H$.has(O51(q))};
dT.prototype.delete=function(q){return _.H$.delete(O51(q))};
dT.prototype.match=function(q,N){var b=this,y,J,E,F,R,c;return _.d(function(z){switch(z.nextAddress){case 1:return z.yield(b.keys(),2);case 2:y=z.yieldResult,J=_.Z(y),E=J.next();case 3:if(E.done){z.jumpTo(5);break}F=E.value;return z.yield(b.open(F),6);case 6:return R=z.yieldResult,z.yield(R.match(q,N),7);case 7:if(c=z.yieldResult)return z.return(c);E=J.next();z.jumpTo(3);break;case 5:return z.return()}})};
var EnD=function(){};
_.Y(EnD,dT);var O51=function(q){if(q.includes(":"))throw Error("nh`"+q);return q+":"+_.f4("CacheStorage get")};
EnD.prototype.keys=function(){var q,N,b,y,J,E,F,R,c;return _.d(function(z){if(z.nextAddress==1)return q=[],N=_.f4("CacheStorage keys"),z.yield(_.H$.keys(),2);b=z.yieldResult;y=_.Z(b);for(J=y.next();!J.done;J=y.next())E=J.value,F=_.NXd(E),R=F.originalName,c=F.datasyncId,c===N&&q.push(R);return z.return(q)})};var cQ=function(){var q=_.C.apply(this,arguments)||this;q.objectURL=null;q.loadTime=Infinity;return q};
_.Y(cQ,_.C);_.g=cQ.prototype;_.g.renderIdom=function(){qKJ(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&O5C(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.g.objectFitToContentMode=function(q){switch(q){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.g.logThumbnailFailureVe=function(){var q=_.bx(197497);_.hI(_.FR(),q);var N=_.Oe();N&&q&&N&&_.Tr(N,[q])};
_.g.loadImageFromCacheIfExists=function(q){var N=this,b=q.target;(b==null?0:b.src)&&ZWd(b.src).then(function(y){N.objectURL=_.PZ(y).toString();N.setSrc(b,N.objectURL)}).catch(function(){})};
_.g.onError=function(q){var N=this;if(_.x("web_use_cache_for_image_fallback")){var b=q.target;b&&ZWd(b.src).then(function(y){N.objectURL=_.PZ(y).toString();N.setSrc(b,N.objectURL)}).catch(function(){_.x("kevlar_woffle_log_thumbnail_failure_ve")&&N.logThumbnailFailureVe();
_.x("kevlar_woffle_fallback_image")&&N.setSrc(b,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.g.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.g.setConfig=function(){var q=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(N){q.loadImageFromCacheIfExists(N);q.revokeObjectURL();H5n(q.hostElement)},
onerror:function(N){q.onError(N)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.x("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.g.setSrc=function(q,N){N&&(q.src=N)};
_.p([_.O(KZx),_.P("design:type",Object)],cQ.prototype,"ytIdomTemplatingBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],cQ.prototype,"data",void 0);_.p([_.U(),_.P("design:type",String)],cQ.prototype,"alt",void 0);_.p([_.U(),_.P("design:type",Boolean)],cQ.prototype,"ftlEligible",void 0);_.p([_.U(),_.P("design:type",Number)],cQ.prototype,"height",void 0);_.p([_.U(),_.P("design:type",Boolean)],cQ.prototype,"notifyOnLoaded",void 0);
_.p([_.U(),_.P("design:type",Boolean)],cQ.prototype,"notifyOnUnloaded",void 0);_.p([_.U(),_.P("design:type",String)],cQ.prototype,"objectFit",void 0);_.p([_.U(),_.P("design:type",String)],cQ.prototype,"objectPosition",void 0);_.p([_.U(),_.P("design:type",String)],cQ.prototype,"preferredThumbnail",void 0);_.p([_.U(),_.P("design:type",Boolean)],cQ.prototype,"preserveHeight",void 0);_.p([_.U(),_.P("design:type",Boolean)],cQ.prototype,"preserveWidth",void 0);
_.p([_.U({value:!0}),_.P("design:type",Boolean)],cQ.prototype,"useWidth",void 0);_.p([_.U({value:function(){return!_.ou("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.P("design:type",Boolean)],cQ.prototype,"shouldRenderLazy",void 0);_.p([_.U(),_.P("design:type",Number)],cQ.prototype,"width",void 0);_.p([_.Ok({is:"yt-image",disableElementRegistration:!0})],cQ);
_.a(cQ,"yt-image",function(){if(Qbx===void 0){var q=document.createElement("template");_.Q(q,"\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");q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);q.content.insertBefore(YPJ().content.cloneNode(!0),q.content.firstChild);
Qbx=q}q=Qbx;return q},{mode:2});var uw=function(){return _.C.apply(this,arguments)||this};
_.Y(uw,_.C);uw.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var q=_.O_(this.data.onVisibleCommand);q&&this.ytComponentBehavior.resolveCommand(q)}};
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],uw.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.yf.YtVisibilityBehavior),_.P("design:type",Object)],uw.prototype,"ytVisibilityBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],uw.prototype,"data",void 0);_.p([_.Ok({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],uw);
_.a(uw,"yt-bumper-user-edu-content-view-model",function(){if(wmx===void 0){var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;Of1===void 0&&(Of1=document.createElement("template"));var y=Of1;b.call(N,y.content.cloneNode(!0),q.content.firstChild);wmx=q}q=wmx;return q},{mode:0});var w9F;var i51,lrE=function(){if(i51!==void 0)return i51;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;w9F===void 0&&(w9F=document.createElement("template"));var y=w9F;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return i51=q};var Kqx;_.zE={};Kqx=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"]);_.zE.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var q=this.getContext_();return q?q.getTaskManager():_.pY},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var q=_.e2(this.hostElement,"yt-get-context-provider",{});q.detail&&q.detail.contextProvider?this.cachedProviderNode_=q.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return Kqx.has(this.hostElement.localName)},
getNetworkManager:function(){var q=this.getContext_();if(q)return q.getNetworkManager()}};var zAD,D44,k0F,hco;_.$Y=function(q){var N=D44.get(q);if(N&&(N=N.pop()))return hco++,N;k0F++;try{var b=document.createElement(q)}catch(y){throw new _.IO("ElementPool failed to create element",q,y.message);}return b};
zAD=function(q){var N=q.is;if(N){var b=D44.get(N);b||(b=[],D44.set(N,b));var y=_.M7("ELEMENT_POOL_CONFIG")||{};b.length>=(y[N]!==void 0?y[N]:_.M7("ELEMENT_POOL_DEFAULT_CAP",0))||b.push(q)}else _.M6(new _.IO("Element pool should only handle custom elements:",q.nodeName))};
D44=new Map;k0F=0;hco=0;var qO=new WeakMap,uUe=new WeakMap;var frl;_.t$=function(q,N,b){b=b===void 0?_.ja():b;this.JSC$13972_defaultPriority=q;this.signal=N;this.scheduler=b;this.nextJobDescriptor=0;this.JSC$13972_parkedJobs=[];this.scheduledJobs=new Map};
_.mu=function(q,N){if(N){var b=_.dw();q.signal&&!_.cW(b,q.signal)?(b.addListener(q.signal,function(){q.processSignal()}),q.JSC$13972_parkedJobs.push({job:N,
priority:void 0})):U4T(q,N)}};
frl=function(q,N){if(N!==q.JSC$13972_defaultPriority){q.JSC$13972_defaultPriority=N;for(var b=_.Z(q.scheduledJobs.values()),y=b.next();!y.done;y=b.next())y=y.value,q.scheduler.cancelJob(y.jobId),y.jobId=q.scheduler.addJob(y.jobWrapper,N)}};
_.t$.prototype.flushJobs=function(){frl(this,10);this.processSignal()};
_.t$.prototype.cancel=function(){for(var q=_.Z(this.scheduledJobs),N=q.next();!N.done;N=q.next()){var b=_.Z(N.value);N=b.next().value;b=b.next().value;this.scheduler.cancelJob(b.jobId);this.scheduledJobs.delete(N)}this.JSC$13972_parkedJobs=[]};
_.t$.prototype.processSignal=function(){for(var q=_.Z(this.JSC$13972_parkedJobs),N=q.next();!N.done;N=q.next())N=N.value,U4T(this,N.job,N.priority);this.JSC$13972_parkedJobs=[]};
var U4T=function(q,N,b){b=b||q.JSC$13972_defaultPriority;if(b===10)e_(N);else{var y=q.nextJobDescriptor++,J=function(){N();q.scheduledJobs.delete(y)},E=q.scheduler.addJob(J,b);
q.scheduledJobs.set(y,{jobWrapper:J,jobId:E,priority:b})}};var CjE;_.rT={};CjE={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.rT.YtRendererstamperBehavior=[_.zE.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 q in this.stampDom){var N=this.stampDom[q];N&&N.id&&this.addReactiveSchema({type:"observe",method:{methodName:RAd(N.id),args:[{type:"wildcard",path:q}]}})}else{(q=(this.constructor.generatedFrom||this).observers)||(q=[]);for(N in this.stampDom){var b=this.stampDom[N];b&&b.id&&q.push(RAd(b.id)+"("+N+".*)")}this.constructor.generatedFrom.observers=q}},
addStampDomObserverFns_:function(){for(var q in this.stampDom){var N=this.stampDom[q];N.id?(this[RAd(N.id)]=this.rendererStamperObserver_.bind(this,q,N.id),this.hasDataPath_[q]=!1):(N=new _.IO("Bad rendererstamper config",this.is+":"+q),_.po(N))}},
rendererStamperObserver_:function(q,N,b){if(b.path==q){if(b.value===void 0&&!this.hasDataPath_[q])return;this.hasDataPath_[q]=b.value!==void 0}this.rendererStamperApplyChangeRecord_(q,N,b)},
rendererStamperApplyChangeRecord_:function(q,N,b){var y=this.renderJobsMap_[N],J=null;q==b.path?(b=b.value,_.pC(b)||(b=b===void 0||b===null?[]:[b]),q=this.stampDom[q],q.mapping&&(J=this.stampDomArray_.bind(this,b,N,q.mapping,q.reuseComponents,q.events,q.stamperStableList)),y&&y.cancel(),b=q.usePageScheduler?this.getTaskManager():void 0,y||q.initialRenderPriority==void 0)?q.renderPriority==void 0||y||(y=new _.t$(q.renderPriority,q.waitForSignal,b),this.renderJobsMap_[N]=y):(y=new _.t$(q.initialRenderPriority,
q.waitForSignal,b),this.renderJobsMap_[N]=y,J=function(E,F){E();frl(F,10)}.bind(this,J,y)):J=q+".splices"==b.path?this.stampDomArraySplices_.bind(this,q,N,b.value):this.forwardRendererStamperChanges_.bind(this,q,N,b);
y?_.mu(y,J):J()},
forwardRendererStamperChanges_:function(q,N,b){var y=b.path.slice(q.length+1),J=this.getStampContainer_(N),E=y.indexOf("."),F=y.substring(0,E),R=!1,c=0,z=parseInt(F,0);if(F[0]=="#"){R=parseInt(F.substring(1),0);z=this.get(q);var m=this.get([q,F]);z[R]==m?c=R:c=z.indexOf(m);R=!0}else isNaN(z)||(c=z,R=!0);R&&(y=y.substring(F.length+1),E=y.indexOf("."));F=this.polymerDom(J).children[c];var r;if(J=(r=F==null?void 0:F.polymerController)!=null?r:F)y="data"+y.slice(E),typeof J.notifyPath!=="function"?_.M6(new _.IO("notifyPath missing",
this.is+": "+q+", "+N)):b.value?J.notifyPath(y,b.value):J.notifyPath(y)},
stampDomArraySplices_:function(q,N,b){if(b&&b.indexSplices){var y=this.getStampContainer_(N);if(y){for(var J=this.polymerDom(y),E=cfJ(this.stampDom[q].reuseComponents),F=b.indexSplices.length,R=0;R<F;R++){for(var c=b.indexSplices[R],z=J.children[c.index],m=c.removed.length;m>0;m--)z&&z.parentElement&&(this.polymerDom(z.parentElement).removeChild(z),E&&zAD(z),z=J.children[c.index]);m=this.stampDom[q].mapping;for(var r=c.index+c.addedCount,X=document.createDocumentFragment(),V=E,G=c.index;G<r;G++){var w=
c.object[G],D=F9n(m,w);if(D){var k=m[D];w=w[D];D=this.getComponentName_(k,w);var f=z?qO.has(z):!1;V&&z&&z.is==D&&f?(D=z,this.telemetry_.reuse++,z=z.nextElementSibling):V&&z&&f?(D=this.createComponent_(k,w,E),f=this.polymerDom(z).nextElementSibling,J.insertBefore(D,f),t7d(this.is,J,z,E),z=f):(V=!1,D=this.createComponent_(k,w,E),X.appendChild(D));this.deferRenderStamperBinding_(D,k,w)}else k=new _.IO("Unimplemented type",q,N,y.tagName,Object.keys(w)[0]),_.po(k)}J.insertBefore(X,z)}this.flushRenderStamperComponentBindings_();
this.stampDom[q].events&&_.e2(this.hostElement,"yt-rendererstamper-finished",{container:y})}else q=new _.IO("Container object not found",N,this.hostElement?this.hostElement.is:""),_.po(q)}},
stampDomArray_:function(q,N,b,y,J,E){var F=this.getStampContainer_(N);if(F)if(N=this.polymerDom(F),y=cfJ(y),q){var R=0,c=0,z;if(E=E===void 0?_.ou("STAMPER_STABLE_LIST",!1):E||!1)for(z=N.firstElementChild;z&&!qO.has(z)&&q.length>c;){E=q[c];var m=F9n(b,E);if(m){if(this.getComponentName_(b[m],E[m])!=z.is){var r=this.createComponent_(b[m],E[m],y),X=_.mj(z).nextElementSibling;X?N.insertBefore(r,X):N.appendChild(r);t7d(this.is,N,z,y);z=r}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(z,b[m],
E[m]);R++;c++;z=this.polymerDom(z).nextElementSibling}else c++}mGA(this.is,N,R,y);R=z;if(q.length>c){E=document.createDocumentFragment();for(m=q.length;c<m;c++)if(r=q[c],X=F9n(b,r))z=this.createComponent_(b[X],r[X],y),this.deferRenderStamperBinding_(z,b[X],r[X]),E.appendChild(z);if(R&&this.polymerDom(R).parentNode&&z&&!qO.has(z))N.insertBefore(E,R);else try{N.appendChild(E)}catch(V){_.M6(new _.IO("Error in RendererStamperBehavior: appendChild failed.",{componentName:this.hostElement.is}))}}this.flushRenderStamperComponentBindings_();
this.markDirty&&this.markDirty();J&&_.e2(this.hostElement,"yt-rendererstamper-finished",{container:F})}else mGA(this.is,N,0,y);else q=new _.IO("Container object not found",N,this.hostElement?this.hostElement.is:""),_.po(q)},
polymerDom:function(q){return this.minimizePipBreakages?q:_.mj(q)},
getStampContainer_:function(q){return this.$&&this.$[q]||_.ee(this.hostElement).querySelector("#"+q)},
getComponentName_:function(q,N){return typeof q==="string"?q:q.matcher?q.matcher.call(this,N):q.component},
createComponent_:function(q,N,b){q=this.getComponentName_(q,N);try{var y=AqR.has(q);if(b&&!y){var J=_.$Y(q);try{_.Jm(J)}catch(E){b="Failed to clear styles for "+q+".",E.message&&(b+=" Original error: "+E.message),_.M6(new _.IO(b))}}else J=document.createElement(q)}catch(E){return J="YtRendererStamperBehavior failed to create "+q+".",E.message&&(J+=" Original description: "+E.message),E.message="YtRendererStamperBehavior failed to create element",_.op(E,J),CjE.hasOwnProperty(q)?_.M6(E):_.po(E),document.createElement("SPAN")}this.telemetry_.create++;
return J},
deferRenderStamperBinding_:function(q,N,b){this.deferredBindingTasks_.push({component:q,typeOrConfig:N,data:b})},
flushRenderStamperComponentBindings_:function(){for(var q=0,N=this.deferredBindingTasks_.length;q<N;q++){var b=this.deferredBindingTasks_[q];if(!b)break;var y=void 0,J=void 0,E=void 0,F=void 0,R=b.component,c=b.typeOrConfig;b=b.data;var z=(F=R.polymerController)!=null?F:R;F=R.loggingStatus;try{F&&(F.isRendererStamper=!0);if(typeof c!=="string"){for(E in c.attributes)c.attributes[E]===!0?R.setAttribute(E,""):c.attributes[E]===!1?R.removeAttribute(E):R.setAttribute(E,c.attributes[E]);for(J in c.params)z[J]=
c.params[J],R!==z&&rq(R.localName,J,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(y in c.properties){var m=c.properties[y];if(m){var r=dGC(m);z[y]=this.get(r);R!==z&&rq(R.localName,y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(y==="on-tap"||y==="on-click"){var X=this.get(r);R.addEventListener("click",X);uUe.set(R,{property:y,listener:{type:"element",eventName:"click",handler:X}})}}else{var V=new _.IO("Undefined property binding",y);_.po(V)}}}if(c.classListBinding){var G=dGC(c.classListBinding),
w=G?this[G]:null;if(w)for(y=0;y<w.length;y++)_.HP(R,w[y],!0)}z.data=b}finally{F&&(F.isRendererStamper=!1)}if(y=qO.get(R))R.hidden=!1,qO.delete(R),_.pY.cancelJob(y)}this.deferredBindingTasks_.length=0}}];_.P$(_.n(function(q){function N(){b().seconds&&E(Ewz({seconds:Number(b().seconds)-Date.now()/1E3}))}
var b=q.targetTimestamp;q=q.className;var y=_.Z(_.QS("",void 0,"U1Q8Ae")),J=y.next().value,E=y.next().value;_.SI(function(){N();var F=setInterval(function(){N()},1E3);
_.W1(function(){clearInterval(F)})});
return _.u("yt-countdown",{class:_.NO("ytCountDownHost",q)},_.u("div",null,J))},"v"),"yt-countdown",{props:{targetTimestamp:_.F5,
className:_.W$}});_.X5=new _.Jw("KEY_MANAGER_TOKEN");var YKh={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"};_.Vf=_.n(function(q){var N=_.dI("a",q.ref),b=q.aTagConfig?q.aTagConfig:_.K3(function(){var y,J,E,F,R;var c=(R=_.O_((E=q.command)==null?void 0:E.call(q)))!=null?R:(F=q.command)==null?void 0:F.call(q);return _.iq({innertubeCommand:c,skipOnClick:(y=q.skipOnClick)==null?void 0:y.call(q),defaultTarget:(J=q.target)==null?void 0:J.call(q)})||{}},void 0,"TAvz0");
_.Sx(function(){_.x("mweb_get_endpoint_from_atag_command")||(N.value._data=b()._data,N.value.params=b().params)},"dcjvAe");
return _.u("a",{el:N,href:function(){return b().href$},
rel:function(){return b().rel$},
class:function(){var y,J;return(J=b().className)!=null?J:(y=q.className)==null?void 0:y.call(q)},
style:function(){var y;if((y=q.style)==null?0:y.call(q))return q.style();var J;return((J=q.disabled)==null?0:J.call(q))?"pointer-events:none":""},
"aria-haspopup":function(){return!!b()["aria-haspopup$"]},
"force-new-state":JE(function(){return b()["force-new-state$"]}),
title:JE(function(){var y,J;return(J=b().title$)!=null?J:(y=q.title)==null?void 0:y.call(q)}),
role:JE(function(){var y;return((y=q.role)==null?void 0:y.call(q))||b().role$}),
target:JE(function(){return b().target$}),
dir:JE(function(){var y;return((y=q.dir)==null?void 0:y.call(q))||b().dir}),
tabindex:function(){var y;return b().tabindex$?Number(b().tabindex$):(y=q.tabIndex)==null?void 0:y.call(q)},
"aria-hidden":function(){var y,J;return(J=b()["aria-hidden$"])!=null?J:(y=q.ariaHidden)==null?void 0:y.call(q)},
"aria-label":function(){var y,J;return(J=b()["aria-label$"])!=null?J:(y=q.ariaLabel)==null?void 0:y.call(q)},
"aria-current":q.ariaCurrent,"aria-disabled":q.disabled,"aria-labelledby":q.ariaLabelledby,"aria-describedby":q.ariaDescribedby,"aria-selected":q.ariaSelected,"tab-identifier":q.tabIdentifier,"on:pointerdown":_.y0(function(y){var J,E;return void((E=(J=b()).onpointerdown)==null?void 0:E.call(J,y))}),
"on:click":_.y0(function(y){var J,E;(E=(J=b()).onclick)==null||E.call(J,y);var F;(F=q.onClick)==null||F.call(q,y)}),
"on:focusin":_.y0(function(y){var J;(J=q.onFocusin)==null||J.call(q,y)}),
"on:focusout":_.y0(function(y){var J;(J=q.onFocusout)==null||J.call(q,y)})},q.children)},"x");var hAe={duration:1E3,easing:"ease",fill:"forwards"};DGd.componentType=kL;var fnh={duration:1E3,easing:"ease",fill:"forwards"},sbx=_.n(function(q){var N=_.dI("animated-rolling-character"),b=void 0,y=function(){var R,c;return S2((R=q.character)==null?void 0:R.call(q))||S2((c=q.previousCharacter)==null?void 0:c.call(q))},J=_.Z(_.QS(0,void 0,"CYT8Ob")),E=J.next().value,F=J.next().value;
_.SI(function(){if(window.ResizeObserver&&_.x("web_fix_rolling_numbers_zoom_safari")){var R=new _.El(function(){var z,m,r=Math.round(((m=(z=N.value.querySelector("div"))==null?void 0:z.getBoundingClientRect().height)!=null?m:0)*100)/100;r&&F(r)},500),c=new ResizeObserver(function(){R.fire()});
c.observe(N.value);_.W1(function(){c.disconnect();R.dispose()})}});
_.Sx(function(){var R=_.x("web_fix_rolling_numbers_zoom_safari")?E:q.marginMultiplier;if(R()){var c;(c=b)==null||c.cancel();if(y()){var z;c=((z=q.previousCharacter)==null?0:z.call(q))?Number(q.previousCharacter())+10:q.rollUp()?0:30;var m;if((m=q.shouldAnimate)==null||!m.call(q)){var r,X;c-=UGJ((r=q.character)==null?void 0:r.call(q),(X=q.previousCharacter)==null?void 0:X.call(q),q.rollUp(),c)}}else{c=q.rollUp()?0:2;var V;(V=q.shouldAnimate)!=null&&V.call(q)||(z=c,m=q.rollUp()?-1:1,c=z-m)}N.value.style.marginTop=
"-"+c*R()+"px";var G;if((G=q.shouldAnimate)==null?0:G.call(q)){var w,D;b=C4J(N.value,(w=q.character)==null?void 0:w.call(q),(D=q.previousCharacter)==null?void 0:D.call(q),q.rollUp(),c,y(),R())}else{var k;N.value.style.display=((k=q.character)==null?0:k.call(q))?"":"none"}}},"CA6Pmf");
return _.u("animated-rolling-character",{el:N,class:"animatedRollingCharacterHost"},_.u(_.t,{cond:y,then:function(){return _.u(Iro,null)},
else:function(){return _.u(T9x,{character:q.character})}}))},"A");
sbx.idomCompat=!0;var InJ=_.x("web_enable_sink_animated_rolling_character_and_number")?sbx:DGd,nbT=_.x("web_enable_sink_animated_rolling_character_and_number")?sbx:klz(DGd),Iro=_.n(function(){for(var q=[],N=1;N<30;N++)q.push(_.u("div",null,N%10));return _.u(_.rV,null,_.u("div",null,"\u00a0"),q,_.u("div",null,"\u00a0"))},"B"),T9x=_.n(function(q){var N=q.character;
return _.u(_.rV,null,_.u("div",null,"\u00a0"),_.u(_.t,{cond:function(){return!(N==null?0:N())||_.dA(N==null?void 0:N())},
then:function(){return _.u("div",null,"\u00a0")},
else:function(){return _.u("div",null,N)}}),_.u("div",null,"\u00a0"))},"C");TXu.componentType=kL;var arT=_.n(function(q){var N=void 0,b=void 0,y=function(){var E;return((E=q.fontSizeMultiplier)==null?0:E.call(q))?q.heightPx()*q.fontSizeMultiplier():q.heightPx()},J=_.K3(function(){if(!q.numberText())return[];
var E,F,R=((E=q.forceRollUp)==null?void 0:E.call(q))||!b||!((F=q.numberValue)==null?0:F.call(q))||b<q.numberValue(),c,z=q.numberText();E=y();F=!((c=q.shouldAnimate)==null||!c.call(q));c=[];var m=0,r=0,X=(N?N.replace(/\D/g,"").length:0)-(z?z.replace(/\D/g,"").length:0),V=N?N.split(/(\d)/).filter(Boolean):[];for(z=z.split(/(\d)/).filter(Boolean);X<0;){var G=z[r];c.push({character:G,rollUp:R,marginMultiplier:E,shouldAnimate:F});r++;S2(G)&&X++}for(;m<X;)G=V[m],c.push({previousCharacter:G,rollUp:R,marginMultiplier:E,
shouldAnimate:F}),m++,S2(G)||X++;for(;r<z.length;)X=z[r],G=V[m],S2(X)===S2(G)?(r++,m++):S2(X)?(m++,X=void 0):S2(G)&&(r++,G=void 0),c.push({character:X,previousCharacter:G,rollUp:R,marginMultiplier:E,shouldAnimate:F});N=q.numberText();var w;b=(w=q.numberValue)==null?void 0:w.call(q);return c},void 0,"kWiBv");
return _.u("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return q.numberText()?["height: "+y()+"px;","line-height: "+q.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.u(_.Tf,{each:J,keyBy:"INDEX"},function(E){return _.u(nbT,{character:function(){return E().character},
previousCharacter:function(){return E().previousCharacter},
marginMultiplier:function(){return E().marginMultiplier},
rollUp:function(){return E().rollUp},
shouldAnimate:function(){return E().shouldAnimate}})}))},"D");
arT.idomCompat=!0;_.SPJ=_.x("web_enable_sink_animated_rolling_character_and_number")?arT:klz(TXu);var WqT=function(q,N){this.fillAnimation=new Animation(SKJ(q),document.timeline);this.strokeAnimation=new Animation(W9A(N),document.timeline)};
WqT.prototype.play=function(){var q,N;(N=(q=this.fillAnimation).play)==null||N.call(q);var b,y;(y=(b=this.strokeAnimation).play)==null||y.call(b)};
WqT.prototype.cancel=function(){var q,N;(N=(q=this.fillAnimation).cancel)==null||N.call(q);var b,y;(y=(b=this.strokeAnimation).cancel)==null||y.call(b)};_.j9=_.n(function(q){var N=q.model;var b=q.pointerDownEvent;var y=q.pointerUpEvent;var J=q.pointerLeaveEvent;var E=q.hovered;q=_.dI("yt-touch-feedback-shape");var F=_.dI("div"),R=_.dI("div"),c=_.Z(_.gJ(function(){return(y==null?0:y())||(J==null?0:J())?!1:!(b==null||!b())||!1})),z=c.next().value,m=c.next().value,r=void 0,X=function(){!r&&R.value&&F.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(r=new WqT(R.value,F.value));
var f;(f=r)==null||f.play()},V=function(){var f;
(f=r)==null||f.cancel()},G=function(){var f;
(f=r)==null||f.cancel()};
_.Sx(function(){(y==null?0:y())&&X()},"bg756c");
_.Sx(function(){(b==null?0:b())&&V()},"QAes8c");
_.Sx(function(){(J==null?0:J())&&G()},"YaFbrc");
c=_.y0(function(){X();m(!1)});
var w=_.y0(function(){V();m(!0)}),D=_.y0(function(){G();
m(!1)});
_.W1(function(){if(r){var f;(f=r)==null||f.cancel();r=void 0}});
var k={};z=_.NO("yt-spec-touch-feedback-shape",function(){return L9n(N().color)},function(){return pgJ(N().thumbnailSize,!!N().isExtended)},(k["yt-spec-touch-feedback-shape--focused"]=function(){return!!N().focused&&!N().disabled},k["yt-spec-touch-feedback-shape--circular"]=function(){return!!N().circular},k["yt-spec-touch-feedback-shape--down"]=z,k["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!N().triggerEvents},k["yt-spec-touch-feedback-shape--hovered"]=function(){return E==
null?void 0:E()},k));
return _.u("yt-touch-feedback-shape",{el:q,class:z,style:_.ZU({"margin-top":function(){return N().customTopExtend?"-"+N().customTopExtend+"px":void 0}}),
"on:mousedown":w,"on:mouseup":c,"on:pointerleave":D,"on:touchstart":w,"on:touchend":c,"aria-hidden":!0},_.u(_.t,{cond:function(){return!!N().hoverEffect},
then:function(){return _.u("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.ZU({"border-radius":function(){return N().borderRadius},
background:function(){var f;if(f=N().hoverEffect){for(var L=[],S=_.Z((f==null?void 0:f.lightingTechniques)||[]),W=S.next();!W.done;W=S.next())switch(W.value){case 2:var M=W=void 0,qe=void 0,RJ=void 0;L.push("linear-gradient(180deg, "+((W=f)==null?void 0:(M=W.palette)==null?void 0:M.keyLight)+", "+((qe=f)==null?void 0:(RJ=qe.palette)==null?void 0:RJ.background)+")")}var tZ,wA;L.push((tZ=N().hoverEffect)==null?void 0:(wA=tZ.palette)==null?void 0:wA.background);f=L.join(", ")}else f=void 0;return f}})})}}),
_.u("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.ZU({"border-radius":function(){return N().borderRadius},
"border-color":function(){var f,L;return(f=N().touchEffect)==null?void 0:(L=f.palette)==null?void 0:L.background}}),
el:F}),_.u("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.ZU({"border-radius":function(){return N().borderRadius},
"background-color":function(){var f,L;return(f=N().touchEffect)==null?void 0:(L=f.palette)==null?void 0:L.background}}),
el:R}))},"J");
_.j9.idomCompat=!0;var Lql={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 xY=_.Vh();xY=xY.toLowerCase();if(_.un(xY,"android")){var p9T=xY.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);p9T&&parseFloat(p9T[1])<100||xY.match("("+Object.keys(Lql).join("|")+")")};var Pjj=_.n(function(q){return _.u(_.t,{cond:q.aTagConfig,then:function(N){return _.u(_.Vf,{aTagConfig:N,disabled:q.disabled,className:q.className,style:q.style,title:q.title,ariaLabel:q.ariaLabel,ariaCurrent:function(){var b,y;return((b=q.toggleable)==null?void 0:b.call(q))&&((y=q.toggled)==null?void 0:y.call(q))},
ref:q.ref},q.children)},
else:function(){return _.u("button",{el:_.ai(q.ref),"on:click":_.y0(function(N){var b;return(b=q.onClick)==null?void 0:b.call(q,N)}),
class:q.className,title:q.title,style:q.style,disabled:q.disabled,"aria-pressed":function(){var N,b;return((N=q.toggleable)==null?0:N.call(q))?!((b=q.toggled)==null||!b.call(q)):void 0},
"aria-label":q.ariaLabel,"aria-disabled":q.visiblyDisabled,"aria-hidden":q.ariaHidden,tabindex:q.tabIndex},q.children)}})},"K"),obT=_.n(function(q){var N=q.data;
var b=q.hasIconLeading;var y=q.hasIconLeadingTrailing;var J=q.hasIconTrailing;var E=q.iconButton;var F=q.iconClassName;var R=q.secondaryIconClassName;var c=q.icon;var z=q.secondaryIcon;var m=q.textContentClassName;return _.u(vQ,{className:"",style:"display: inherit; justify-content: center"},_.u(_.t,{debugInstance:"V4z1Uc",cond:function(){return c&&(b()||y()||(E==null?void 0:E()))},
then:function(){return _.u(vQ,null,_.u("div",{class:F,"aria-hidden":"true"},c==null?void 0:c()))}}),_.u(_.t,{debugInstance:"ok3btb",
cond:function(){return(N().buttonText||N().animatedTextProps||N().formattedButtonText)&&!(E==null?0:E())},
then:function(){return _.u(vQ,null,_.u(MMx,{className:m,iconPosition:function(){return N().iconPosition},
text:function(){return N().buttonText},
oneOffCustomTextWrap:function(){return N().oneOffCustomTextWrap},
formattedButtonText:function(){return N().formattedButtonText},
animatedTextProps:function(){return N().animatedTextProps}}))}}),_.u(_.t,{debugInstance:"DO5Rz",
cond:J,then:function(){return _.u(vQ,null,_.u("div",{class:F},c==null?void 0:c()))}}),_.u(_.t,{debugInstance:"bnojSc",
cond:y,then:function(){return _.u(vQ,null,_.u("div",{class:R},z==null?void 0:z()))}}),_.u(_.t,{debugInstance:"HN3kad",
cond:function(){return!N().disabled&&!0},
then:function(){return _.u(_.j9,{model:function(){var r=N();return{color:r.style==="overlay-dark"?4:r.style==="overlay"?r.type==="filled"?4:3:r.type==="filled"||r.style==="call-to-action-inverse"||r.style==="mono-inverse"?2:1}}})}}))},"L"),MMx=_.n(function(q){var N=function(){var b,y;
return((b=q.iconPosition)==null?void 0:b.call(q))==="icon-with-label"||((y=q.oneOffCustomTextWrap)==null?void 0:y.call(q))};
return _.u("div",{class:q.className,"aria-hidden":function(){var b,y,J;return((b=q.ariaHidden)==null?void 0:b.call(q))&&(!((y=q.animatedTextProps)==null||!y.call(q))||!((J=q.formattedButtonText)==null||!J.call(q)))}},_.u(_.sw,null,_.u(_.CI,{when:function(){var b;
return(b=q.animatedTextProps)==null?void 0:b.call(q)}},function(){return _.u(_.SPJ,{numberText:function(){return q.animatedTextProps().numberText},
numberValue:function(){return q.animatedTextProps().numberValue},
heightPx:function(){return q.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return q.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return q.animatedTextProps().shouldAnimate},
forceRollUp:function(){return q.animatedTextProps().forceRollUp}})}),_.u(_.CI,{when:function(){var b;
return(b=q.formattedButtonText)==null?void 0:b.call(q)}},function(){return _.u(_.Zc,{text:function(){return Object.assign({},q.formattedButtonText(),{lineBreakMode:N()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":q.formattedButtonText().lineBreakMode,
alignment:N()?"TEXT_ALIGNMENT_CENTER":q.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!N()}})}),_.u(_.CI,{when:function(){var b,y;
return((b=q.iconPosition)==null?void 0:b.call(q))==="icon-with-label"&&((y=q.text)==null?void 0:y.call(q))}},function(){return _.u(_.Zc,{text:function(){return{content:q.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.u(_.Iu,null,function(){return q.text})))},"M"),Agl=_.n(function(q){return _.u(_.t,{debugInstance:"kM7Sgc",
cond:q.hasLabel,then:function(){var N;return _.u("label",{class:q.className},q.children,(N=q.textContent)==null?void 0:N.call(q))},
else:function(){return q.children}})},"N"),vQ=_.n(function(q){return q.children},"O");var ecF=_.n(function(q){function N(){E(void 0);R(void 0);z(void 0)}
var b=_.ai(),y=_.Z(_.QS(void 0,void 0,"Ug77pc")),J=y.next().value,E=y.next().value;y=_.Z(_.QS(void 0,void 0,"XGf7Zb"));var F=y.next().value,R=y.next().value,c=_.Z(_.QS(void 0,void 0,"w55oqd"));y=c.next().value;var z=c.next().value;c=_.Z(_.QS(0,void 0,"rBgpzc"));var m=c.next().value,r=c.next().value;c=_.y0(function(){switch(m()){case 1:r(2);break;case 3:var V,G;(G=(V=b.value).hidePopover)==null||G.call(V);r(0);N()}});
_.Sx(function(){if(q.show()){var V;E((V=q.children)==null?void 0:V.call(q));var G;R((G=q.location)==null?void 0:G.call(q));var w;z((w=q.classNames)==null?void 0:w.call(q));switch(m()){case 0:var D,k;(k=(D=b.value).showPopover)==null||k.call(D);r(1);break;case 3:r(1);var f,L;(L=(f=b.value).hidePopover)==null||L.call(f);var S,W;(W=(S=b.value).showPopover)==null||W.call(S)}}else switch(m()){case 2:r(3);break;case 1:var M,qe;(qe=(M=b.value).hidePopover)==null||qe.call(M);N();r(0)}},"Z8V4Qb");
_.WC(function(){});
var X={};return _.u("yt-popover",{popover:"manual",el:b,style:_.ZU({left:function(){var V;return(V=F())==null?void 0:V.left},
top:function(){var V;return(V=F())==null?void 0:V.top},
bottom:function(){var V;return(V=F())==null?void 0:V.bottom},
right:function(){var V;return(V=F())==null?void 0:V.right}}),
class:_.NO("ytPopoverComponentHost",y,(X.ytPopoverComponentHostClosing=function(){return m()===3},X.ytPopoverComponentHostSeeThrough=function(){var V;
return((V=q.seeThrough)==null?void 0:V.call(q))===!0},X)),
"on:animationend":c},J)},"Q");var B9o={left:"0px",right:"auto",top:"0px",bottom:"auto"},H5T=function(){var q=this;this.registerTooltipElement=function(b){var y;q.tooltipElement=(y=b.querySelector("yt-popover"))!=null?y:void 0};
var N=_.Z(_.QS(void 0,void 0,"EIh5sc"));this.state=N.next().value;this.setState=N.next().value;N=_.Z(_.QS(void 0,void 0,"PC1M0b"));this.schedulerJobID=N.next().value;this.setSchedulerJobID=N.next().value},NSu=function(q,N){var b=dJ,y=_.pY.addJob(function(){var J=qKx(b,q,N);
b.currentConfig=N;b.setState({text:N.text,location:_.x("web_tooltip_location_fix")?void 0:J,anchor:q,offset:N.offset,style:N.style})},4,N.delay);
b.setSchedulerJobID(y)},bXC=function(){var q=dJ,N=q.schedulerJobID();
N&&(_.pY.cancelJob(N),q.setSchedulerJobID(void 0));q.setState(void 0);q.currentConfig=void 0};
H5T.prototype.notify=function(q,N){var b;((b=this.state())==null?void 0:b.anchor)===q&&(b=qKx(this,q,N),this.currentConfig=N,this.setState({text:N.text,location:_.x("web_tooltip_location_fix")?void 0:b,anchor:q,offset:N.offset,style:N.style}))};
var qKx=function(q,N,b){var y=N.getBoundingClientRect();N=window.innerWidth;var J=window.innerHeight,E=b.location,F=b.offset;b=b.text;if(q=q.tooltipElement){var R=getComputedStyle(q);q=R.font;var c=RE(R.lineHeight),z=RE(R.paddingLeft),m=RE(R.paddingRight),r=RE(R.paddingTop);R=RE(R.paddingBottom);var X=document.createElement("canvas").getContext("2d");X.font=q;b={width:X.measureText(b).width+z+m,height:c+r+R}}else b=void 0;q=b;if(!q)return B9o;b=q.width;q=q.height;z=F+q;r=F+b;c=y.top>=z;z=J-y.bottom>=
z;m=y.left>=r;r=N-y.right>=r;R=E;switch(E){case "top":!c&&z&&(R="bottom");break;case "bottom":!z&&c&&(R="top");break;case "left":!m&&r&&(R="right");break;case "right":!r&&m&&(R="left")}switch(R){case "top":E=y.left+y.width/2-b/2;y=y.top-q-F;break;case "bottom":E=y.left+y.width/2-b/2;y=y.bottom+F;break;case "left":E=y.left-b-F;y=y.top+y.height/2-q/2;break;case "right":E=y.right+F;y=y.top+y.height/2-q/2;break;default:E=y.left+y.width/2-b/2,y=y.bottom+F}F=Object.assign({},B9o);E+b>N?(F.right="0px",F.left=
"auto"):(F.left=Math.round(Math.max(0,E)+window.scrollX)+"px",F.right="auto");y+q>J?(F.bottom="0px",F.top="auto"):(F.top=Math.round(Math.max(0,y)+window.scrollY)+"px",F.bottom="auto");return F};var dJ;dJ=new H5T;_.NX1=_.n(function(){var q=_.K3(function(){var J;return(J=dJ.state())==null?void 0:J.anchor},void 0,"tiGUn"),N=_.K3(function(){var J;
return(J=dJ.state())==null?void 0:J.text},void 0,"TA2GQe"),b=_.K3(function(){var J;
return(J=dJ.state())==null?void 0:J.style},void 0,"ucvFsf"),y=_.x("web_tooltip_location_fix")?_.K3(function(){var J=q();
var E=dJ.currentConfig;if(J&&E)return qKx(dJ,J,E)},void 0,"EpDz6"):_.K3(function(){var J;
return(J=dJ.state())==null?void 0:J.location},void 0,"aRJtfd");
return _.u("yt-tooltip",{class:"ytTooltipContainerHost",el:_.ai(dJ.registerTooltipElement),"aria-hidden":"true"},_.u(ecF,{classNames:function(){switch(b()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:y,show:function(){return!!N()&&!!y()},
seeThrough:!0},N))},"R");var Cxu=c1("stamper-context");_.GE=_.n(function(q){var N=q.data;var b=q.icon;var y=q.iconName;var J=q.animateIcon;var E=q.secondaryIcon;var F=q.secondaryIconName;var R=q.focusedOverride;var c=q.clientOnlyWizTooltipsEnabled;JoR();var z=P4u(N),m=z.size,r=z.style;q=z.disabled;var X=z.onTap,V=z.alignByText,G=z.aTagConfig,w=z.customColors,D=z.segmentedPosition,k=z.toggled,f=z.toggleable,L=z.accessibilityLabel,S=z.onToggle,W=z.iconPosition,M=z.oneOffCustomTextWrap,qe=z.disableTextEllipsis,RJ=z.disableBackdropFilter,tZ=z.tooltipText,
wA=z.ariaHidden,rA=z.tabIndex,xD=z.buttonText,IJ=z.formattedButtonText,sJ=z.animatedTextProps,Sn=z.onClickRateLimitMs,YE=eAA(N,b,E,y,F,R,J),xE=YE.type;b=YE.shouldFocus;y=YE.hasIconLeading;J=YE.hasIconTrailing;var qv=YE.hasIconLeadingTrailing,mM=YE.hasIconOnly;E=YE.hasIconOnly40;var Ox=YE.hasIconWithLabel;F=YE.iconButton;var h4=YE.visiblyDisabled;R=YE.overrideSmallSizeIcon;var QC=YE.iconToRender;YE=YE.secondaryIconToRender;var rp=_.Z(yoC(tZ,z.tooltipShape)).next().value,Fd=function(Go){X==null||X(Go);
f()&&(S==null||S(Go))},yF=_.K3(function(){return Sn==null?void 0:Sn()},void 0,"siKywb"),vR=_.K3(function(){return yF()?S5E(Fd,yF()):Fd},void 0,"wDTcN");
z={};var ej={};return _.u(Agl,{className:_.NO("yt-spec-button-shape-with-label",(z["yt-spec-button-shape-with-label--is-overlay"]=function(){return r()==="overlay"||r()==="overlay-dark"},z)),
hasLabel:Ox,textContent:function(){return _.u(MMx,{text:xD,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:M,iconPosition:W,formattedButtonText:IJ,animatedTextProps:sJ})}},_.u(Pjj,{aTagConfig:G,
className:_.NO("yt-spec-button-shape-next",function(){return BXC(xE())},function(){return h4()?void 0:HWC(r())},function(){return q9R(m())},(ej["yt-spec-button-shape-next--disabled"]=h4,ej["yt-spec-button-shape-next--focused"]=b,ej["yt-spec-button-shape-next--icon-trailing"]=J,ej["yt-spec-button-shape-next--icon-leading"]=y,ej["yt-spec-button-shape-next--icon-leading-trailing"]=qv,ej["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return qv()&&!(xD()||IJ())},ej["yt-spec-button-shape-next--icon-button"]=
function(){return mM()||Ox()},ej["yt-spec-button-shape-next--icon-only-default"]=E,ej["yt-spec-button-shape-next--align-by-text"]=V,ej["yt-spec-button-shape-next--segmented-start"]=function(){return D()==="start"},ej["yt-spec-button-shape-next--segmented-end"]=function(){return D()==="end"},ej["yt-spec-button-shape-next--override-small-size-icon"]=R,ej["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=M,ej["yt-spec-button-shape-next--disable-text-ellipsis"]=qe,ej["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!RJ()&&!_.x("web_disable_backdrop_filter")},ej)),
style:function(){var Go=w();if(Go){var qN=Go.color;var O5=Go.backgroundColor;Go=Go.borderColor;var p1="";qN&&(p1+="color: "+qN+";");O5&&(p1+="background-color: "+O5+";");Go&&(p1+="border-color: "+Go+";");qN={style:p1}}else qN={};return qN.style},
onClick:function(Go){vR()(Go)},
disabled:q,ariaLabel:L,toggleable:f,toggled:k,title:function(){return(c==null?0:c())||!tZ()?"":tZ()},
visiblyDisabled:h4,ariaHidden:wA,tabIndex:rA,ref:function(Go){(c==null?0:c())&&rp(Go)}},_.u(obT,{data:N,
hasIconLeading:y,hasIconLeadingTrailing:qv,hasIconTrailing:J,iconButton:F,icon:QC,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:YE})))},"T");
_.GE.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.Ou=_.n(function(q){var N=q.data;var b=q.className;var y=q.style;var J=q.useOutlinedIcon;var E=q.buttonOverrides;var F=q.animatedTextProps;var R=q.onClick;var c=q.target;var z=_.dI("button-view-model",function(S){S.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var W=N().targetId;W&&_.k_4(_.fP(),W,S);return function(){DkR(_.fP(),S)}}),m=function(){return N().iconName},r=_.uR(function(S){a:{var W=N().entityKey,M=N().buttonEntitySelectorType;
if(M&&W)switch(M){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":S=(S=_.bR(S,W))?{isHidden:S.adsState==="ADS_STATE_NONE"||S.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:S={isHidden:!1};break a}S=void 0}return S}),X,V=(X=_.tz().resolve(_.$f(_.ft)))==null?void 0:X(),G=function(){var S=N();
var W=E==null?void 0:E(),M=F==null?void 0:F(),qe=c==null?void 0:c();if(S){var RJ=ukd(S.type);var tZ=!!S.title||!!S.titleFormatted;var wA=!(!S.iconName&&!S.iconImage);tZ=wA&&!tZ?"icon-only":wA?S.iconTrailing||S.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;tZ==="icon-only-40"&&(RJ="text");var rA;wA=(rA=W==null?void 0:W.state)!=null?rA:zmA(S.state);var xD,IJ=(xD=W==null?void 0:W.disabled)!=null?xD:S.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||S.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.x("web_button_vm_refactor_disabled")){var sJ;IJ=(sJ=W==null?void 0:W.disabled)!=null?sJ:wA==="disabled"}M=M&&M.numberText&&!isNaN(Number(M.numberValue))?M:void 0;xD=Object;sJ=xD.assign;rA=S.title;var Sn=S.titleFormatted,YE=S.accessibilityText,xE=coA(S.style),qv=$ud(S.buttonSize);qe=dun(S,z,IJ,R,qe);IJ=IJ&&!S.onDisabledTap;var mM=FLn(S,z),Ox=S.customFontColor,h4=S.customBackgroundColor;var QC=S.customBorderColor;var rp=S.customDarkThemeFontColor,Fd=S.customDarkThemeBackgroundColor,yF=S.customDarkThemeBorderColor;
Ox=V&&rp?rp:Ox;h4=V&&Fd?Fd:h4;QC=V&&yF?yF:QC;QC={color:Ox?_.Y8(Ox):void 0,backgroundColor:h4?_.Y8(h4):void 0,borderColor:QC?_.Y8(QC):void 0};if(yF=_.v(S.tooltipData,DWo)){var vR;h4={text:(vR=yF.tooltipText)!=null?vR:"",location:gjR(yF.placement),style:yF.style}}else h4=void 0;S=sJ.call(xD,{},{buttonText:rA,formattedButtonText:Sn,animatedTextProps:M,accessibilityLabel:YE,style:xE,type:RJ,state:wA,size:qv,iconPosition:tZ,onTap:qe,disabled:IJ,aTagConfig:mM,customColors:QC,tooltipText:S.tooltip,tooltipShape:h4},
W)}else S={style:"mono",type:"text",state:"active",size:"M"};S.focused=k();return S},w=function(){return onA(G(),!!N().iconName)};
q=_.Z(_.QS(!1,void 0,"yZ8hab"));X=q.next().value;var D=q.next().value,k=X;q=_.y0(function(){var S=_.tz().resolve(_.$f(_.X5));S&&D(S.isKeyBoardInUse());return!1});
X=_.y0(function(){D(!1);return!1});
_.Sx(function(){var S,W=_.v(N==null?void 0:(S=N())==null?void 0:S.onVisible,_.QI);W&&_.wa(W,{disableClickTracking:!0})},"G9MlKd");
var f=function(){var S;return(N==null?0:(S=N())==null?0:S.iconImage)?{sources:[N().iconImage]}:void 0},L=_.x("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.u("button-view-model",{el:z,class:_.NO("ytSpecButtonViewModelHost",b),"on:focusin":q,"on:focusout":X},_.u(_.t,{cond:function(){var S,W;return!((W=N().entityKey&&N().buttonEntitySelectorType&&((S=r())==null?void 0:S.isHidden))!=null&&W)},
then:function(){return _.u(_.t,{cond:f,then:function(S){return _.u(_.GE,{data:G,icon:function(){return _.u(_.s_,{data:S,alt:"",targetWidth:w,targetHeight:w,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:L})},
else:function(){return _.u(_.GE,{data:G,icon:function(){return _.u(_.FQ,{icon:m,active:function(){return(J==null?0:J())?!1:G().toggled},
animateIcon:function(){var S;return!!(y==null?0:(S=y())==null?0:S.animateIcon)},
size:w})},
clientOnlyWizTooltipsEnabled:L})}})}}))},"V");
_.Ou.idomCompat={callbacks:{onClick:!0}};_.P$(_.n(function(q){return _.u("yt-button-view-model",{id:q.id,class:_.NO(q.scopingClassName,q.classes),icon:function(){var N;return(N=q.icon)==null?void 0:N.call(q)},
"dialog-dismiss":function(){var N;return((N=q.dialogDismiss)==null?0:N.call(q))?"":void 0}},_.u(_.Ou,{data:function(){var N;
return(N=q.data)==null?void 0:N.call(q)},
className:function(){var N;return(N=q.className)==null?void 0:N.call(q)},
style:function(){var N;return(N=q.style)==null?void 0:N.call(q)},
useOutlinedIcon:function(){var N;return(N=q.useOutlinedIcon)==null?void 0:N.call(q)},
buttonOverrides:function(){var N;return(N=q.buttonOverrides)==null?void 0:N.call(q)},
animatedTextProps:function(){var N;return(N=q.animatedTextProps)==null?void 0:N.call(q)},
onClick:function(N){var b;return(b=q.onClick)==null?void 0:b.call(q,N)}}))},"W"),"yt-button-view-model",{props:{data:_.F5,
className:_.F5,style:_.F5,useOutlinedIcon:_.F5,buttonOverrides:_.F5,animatedTextProps:_.F5,onClick:_.W$,scopingClassName:_.F5,id:_.F5,icon:_.F5,dialogDismiss:_.F5,classes:_.F5,target:_.W$}});_.P$(_.n(function(q){var N=q.data;var b=q.id;var y=q.className;var J=q.iconName;var E=q.animateIcon;var F=q.secondaryIconName;q=_.Z(_.QS(!1,void 0,"TtJl8"));var R=q.next().value,c=q.next().value,z=function(){var r=_.tz().resolve(_.$f(_.X5));r&&c(r.isKeyBoardInUse())},m=function(){c(!1)};
q=_.dI("yt-button-shape",function(r){if(_.tz().resolve(_.$f(_.X5)))return r.addEventListener("focusin",z),r.addEventListener("focusout",m),function(){r.removeEventListener("focusin",z);r.removeEventListener("focusout",m)}});
return _.u("yt-button-shape",{el:q,id:b,class:y},_.u(_.t,{cond:N,then:function(){return _.u(_.GE,{data:N,iconName:J,secondaryIconName:F,focusedOverride:R,animateIcon:E})}}))},"X"),"yt-button-shape",{props:{data:_.F5,
id:_.F5,className:_.F5,iconName:_.F5,animateIcon:_.F5,secondaryIconName:_.F5,clientOnlyWizTooltipsEnabled:_.F5,disableUpgrade:_.F5},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var wT=function(){var q=_.C.apply(this,arguments)||this;q.isGoalActive=!0;return q};
_.Y(wT,_.C);wT.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
wT.prototype.progressBarChanged=function(){var q=_.ee(this.hostElement).querySelector("#progress-bar-progress"),N,b,y,J=(y=Number((N=this.creatorGoalState)==null?void 0:N.currentGoalCount)/Number((b=this.creatorGoalState)==null?void 0:b.totalGoalCount)*100)!=null?y:0,E;q.style.width=((E=Math.min(J,100))!=null?E:0)+"%"};
wT.prototype.goalStateChanged=function(){var q;this.isGoalActive=((q=this.creatorGoalState)==null?void 0:q.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var N;q={"--yt-progress-bar-color":WQR((N=this.creatorGoalState)==null?void 0:N.progressBarColor)};_.Jm(this.hostElement,q)};
wT.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.$H.Object.defineProperties(wT.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var q;return this.isGoalActive&&!((q=this.creatorGoalState)==null||!q.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.creatorGoalState)==null?0:q.endTimestampMs){var N;q=Number((N=this.creatorGoalState)==null?void 0:N.endTimestampMs)/1E3;return{seconds:String(q)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.creatorGoalState)==null?0:q.themedTargetImage){var N;q=_.v((N=this.creatorGoalState)==null?void 0:N.themedTargetImage,Vio);return this.isAppDarkTheme()?q==null?void 0:q.imageDark:q==null?void 0:q.imageLight}}}});
_.$H.Object.defineProperties(wT,{template:{configurable:!0,enumerable:!0,get:function(){return lrE()}}});
wT.prototype.goalStateChanged=wT.prototype.goalStateChanged;wT.prototype.progressBarChanged=wT.prototype.progressBarChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],wT.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.BW),_.P("design:type",Object)],wT.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);
_.p([_.U({selectorArgs:["data.creatorGoalEntityKey"],selector:function(q,N){return _.Ji(q.entities,"creatorGoalEntity",N)}}),
_.P("design:type",Object)],wT.prototype,"creatorGoalState",void 0);_.p([_.U(),_.P("design:type",Object)],wT.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],wT.prototype,"isGoalActive",void 0);_.p([_.l("creatorGoalState","isGoalActive"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],wT.prototype,"shouldShowCountdown",null);_.p([_.l("creatorGoalState"),_.P("design:type",Object),_.P("design:paramtypes",[])],wT.prototype,"endTimestamp",null);
_.p([_.l("creatorGoalState"),_.P("design:type",Object),_.P("design:paramtypes",[])],wT.prototype,"targetIconThemedImage",null);_.p([_.FY("creatorGoalState.currentGoalCount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wT.prototype,"progressBarChanged",null);_.p([_.FY("creatorGoalState.creatorGoalState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wT.prototype,"goalStateChanged",null);
_.p([_.Ok({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],wT);_.a(wT,"yt-creator-goal-progress-flow-view-model",function(){return lrE()},{mode:0});var bWR;var yf1;var iw=function(){return _.C.apply(this,arguments)||this};
_.Y(iw,_.C);iw.prototype.attached=function(){var q,N,b;if(this==null?0:(q=this.data)==null?0:(N=q.pdgPurchasedBumperLoggingDirectives)==null?0:(b=N.loggingDirectives)==null?0:b.trackingParams){var y,J,E;roA(this==null?void 0:(y=this.data)==null?void 0:(J=y.pdgPurchasedBumperLoggingDirectives)==null?void 0:(E=J.loggingDirectives)==null?void 0:E.trackingParams)}};
iw.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],iw.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],iw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],iw.prototype,"data",void 0);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],iw);
_.a(iw,"yt-live-chat-item-bumper-view-model",function(){if(yf1===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;bWR===void 0&&(bWR=document.createElement("template"));var y=bWR;b.call(N,y.content.cloneNode(!0),q.content.firstChild);yf1=q}q=yf1;return q},{mode:0});var Jfo;var EnE;_.n6=function(q,N){this.data=q;this.actions=N;this.data=q;this.actions=N};
_.kP=function(){};_.lw={};_.lw.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(q,N){Xuh(this.hostElement,q,N)},
getNavigationEndpointPopupAction:function(q){return Vyn(q,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(q,N){jqA(this.hostElement,q,N,this.openPopupConfig)}};var KLA=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.KV={};
_.KV.YtEndpointBehavior=[_.lw.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.M7("openPopupConfig");(this.useClickHandler=_.ou("useClickHandler",!1))?this.hostElement.addEventListener("click",Ek(this,this.onEndpointClick_)):(PK(this.hostElement,"tap",Ek(this,this.onEndpointTap_)),PK(this.hostElement,"touchend",Ek(this,this.onEndpointTouchEnd_)));PK(this.hostElement,"touchstart",Ek(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
Ek(this,this.onEndpointTapStart_))},
onEndpointClick_:function(q){GXn(this.hostElement,q,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(q){var N=this.hostElement,b=this.openPopupConfig,y=this.disableCommandHandlerOverride;y=y===void 0?!1:y;var J=xue(q);if(J){J.href&&iI(J.href);var E=q.detail;var F=E.sourceEvent;E=E.preventer;F=F.button!==void 0?F.button===0&&!z4(F):E?!z4(E):!0;J.data&&F&&vjJ(N,J,q,b,y)}},
onEndpointTouchEnd_:function(q){z4(q)||xue(q)&&q.preventDefault()},
onEndpointTapStart_:function(q){iXd(q)}}];_.Dc={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(q){for(var N=_.JD.getInstance(),b=_.Z(Object.keys(q)),y=b.next();!y.done;y=b.next()){var J=y.value;y=q[J];if(this&&this[y]){var E=N.actionRoutingMap.get(J);E||(E=new Map,N.actionRoutingMap.set(J,E));N.registerActionHandler(this,J,this[y].bind(this),E)}else J=Error("ld"),J.params=y,_.HC(J)}},
unregisterActionMap:function(q){_.gI(_.JD.getInstance(),q,this)}}]};var m8=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_"+(_.x("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.x("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.x("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:_.x("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:_.x("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:_.x("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var tE;var rJ=new Map;var Crz=window.matchMedia("(forced-colors: active)").matches;var gnR;var ZWM;var F9j=new _.Jw("LOTTIE_LOADER_TOKEN");_.h$=_.n(function(q){var N=q.data;var b=q.className;var y=q.animationName;var J=q.animationRef;var E=q.elRefForInterop;var F=_.cK("lottie-component"),R;_.W1(function(){var z;return void((z=R)==null?void 0:z.destroy())});
var c;_.Sx(function(){var z=_.p3(y);if(z!==c){c=z;var m=Object.assign({},{animationName:z,animationRef:_.p3(J)},_.p3(N));try{_.tz().resolve(F9j)().then(function(V){var G;(G=R)==null||G.destroy();var w,D;G=(D=E==null?void 0:(w=E())==null?void 0:w.value)!=null?D:F.value;w=m.animationRef;D=m.listeners;V=V.loadAnimation(Object.assign({},{container:G},m.animationConfig));w&&(w.lottieEl=V);if(D)for(G=_.Z(Object.entries(D)),w=G.next();!w.done;w=G.next())D=_.Z(w.value),w=D.next().value,(D=D.next().value)&&
V.addEventListener(w,D);R=V})}catch(V){z=V;
var r="LottieComponent error.";z.message&&(r+=" Original description: "+z.message);_.op(z,r);_.M6(z);var X;((X=m.listeners)==null?0:X.error)&&m.listeners.error(z)}}},"nrJISd");
return _.u(R0e,{cond:function(){return!(E==null?0:E())},
then:function(){return _.u("lottie-component",{class:_.NO("ytLottieComponentHost",b),el:F})}})},"Z");_.P$(_.n(function(q){return _.u("ytd-lottie-player",{id:q.id,hidden:q.hidden,class:q.className,"aria-label":q.ariaLabel,style:"display: block;"},_.u(_.h$,{data:q.data,animationName:function(){var N;return((N=q.data().animationConfig)==null?void 0:N.name)||""},
animationRef:function(){return q.data().animationRef}}))},"$"),"ytd-lottie-player",{props:{data:_.F5,
id:_.F5,hidden:_.F5,className:_.F5,ariaLabel:_.F5}});var kY=function(){var q=_.C.apply(this,arguments)||this;q.animationRef={};q.delhiIconsEnabled=_.x("enable_web_delhi_icons");return q};
_.Y(kY,_.C);_.g=kY.prototype;
_.g.handlePropertyChange=function(){var q=this.animatedIcon,N=this.active,b=this.isDarkTheme;if(q){var y=this.previousActive!==N;this.previousActive=N;this.animationRef.lottieEl?y&&this.toggleAnimation(N,q.totalFrames):N?this.initializeAnimationAsToggled(q.lottiePlayerProps,q.totalFrames):this.initializeAnimationAsUntoggled(q.lottiePlayerProps);q.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=q.type;this.lottiePlayerProps=this.computeLottiePlayerProps(q,b)}};
_.g.computeLottiePlayerProps=function(q,N){var b=this.deepCloneLottiePlayerProps(q);N?(N=q.nameDarkTheme,q=q.pathDarkTheme):(N=q.name,q=q.path);b.animationConfig.name=N;(N=rJ.get(q))?b.animationConfig.animationData=N:b.animationConfig.path=q;return b};
_.g.initializeAnimationAsToggled=function(q,N){q.animationConfig.initialSegment=[N-1,N]};
_.g.initializeAnimationAsUntoggled=function(q){q.animationConfig.initialSegment=void 0};
_.g.toggleAnimation=function(q,N){if(q){var b;(b=this.animationRef.lottieEl)==null||b.playSegments([0,N],!0)}else{var y;(y=this.animationRef.lottieEl)==null||y.playSegments([0,1],!0)}};
_.g.deepCloneLottiePlayerProps=function(q){var N=Object.assign({},q.lottiePlayerProps.animationConfig);q=Object.assign({},q.lottiePlayerProps);q.animationConfig=N;return q};
kY.prototype.handlePropertyChange=kY.prototype.handlePropertyChange;_.p([_.U(),_.P("design:type",Object)],kY.prototype,"animatedIcon",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],kY.prototype,"active",void 0);_.p([_.U(),_.P("design:type",Boolean)],kY.prototype,"isDarkTheme",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],kY.prototype,"animatedIconType",void 0);_.p([_.U(),_.P("design:type",Boolean)],kY.prototype,"previousActive",void 0);
_.p([_.U(),_.P("design:type",Object)],kY.prototype,"lottiePlayerProps",void 0);_.p([_.U(),_.P("design:type",Object)],kY.prototype,"animationRef",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],kY.prototype,"delhiIconsEnabled",void 0);_.p([_.FY("animatedIcon","active","isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kY.prototype,"handlePropertyChange",null);_.p([_.Ok({is:"yt-animated-icon",disableElementRegistration:!0})],kY);
_.a(kY,"yt-animated-icon",function(){if(ZWM===void 0){var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;gnR===void 0&&(gnR=document.createElement("template"));var y=gnR;b.call(N,y.content.cloneNode(!0),q.content.firstChild);ZWM=q}q=ZWM;return q},{mode:2});var RAM;var dG1;_.XQ=_.n(function(q){var N={value:null,cancelled:!1};_.W1(function(){N.cancelled=!0});
var b=_.K3(q.data,{equals:function(y,J){return y.iconName===J.iconName&&y.iconStyle===J.iconStyle&&y.iconSize===J.iconSize&&y.iconSetName===J.iconSetName&&y.iconSelected===J.iconSelected}},"ck24jb");
return _.u("span",{class:"yt-icon-shape",el:_.ai(function(y){_.Sx(function(){var J,E=(J=q.options)==null?void 0:J.call(q);J=b();aAJ(y,N,J,E)},"v878Je")})})},"ba");
_.XQ.idomCompat=!0;var RzJ=["youtube_fill","youtube_outline"];var cfl=new _.TW({type:"iconset",value:void 0}),Uu=function(){var q=_.C.apply(this,arguments)||this;q.isDarkTheme=document.documentElement.hasAttribute("dark");q.iconName="";q.iconsetName="yt-icons";q.iconset=null;q.missingIconSet=!1;q.iconType=null;q.iconShapeDataSignal=_.QS(void 0,void 0,"TaEgXd");q.renderingOptionsSignal=_.QS({iconWidth:"100%",iconHeight:"100%",iconFilter:q.iconFilter,iconColor:q.gradientColor},void 0,"a1vqYe");q.wizHasRendered=!1;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return q};
_.Y(Uu,_.C);Uu.prototype.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.isDarkTheme=q)};
Uu.prototype.handlePropertyChange=function(){var q=this,N,b,y,J,E,F,R,c,z,m,r,X,V,G,w,D,k;return _.d(function(f){switch(f.nextAddress){case 1:if(N=!q.icon&&!q.iconName||!q.isAttached)return f.return();b=q;y=b.icon;J=b.size;E=b.defaultToFilled;F=b.active;R=b.targetContainer;q.toggleContainerClass(R);_.x("kevlar_use_wil_icons")&&y&&(c=XLd(y),q.iconType=c.length?c[1]:null);if(y){f.jumpTo(2);break}q.iconsetName="";q.iconName="";return f.yield(q.renderIcon(R,y),3);case 3:return f.return();case 2:z=uUv(y);
m=XLd(z);m.length&&(q.iconsetName=m[0],q.iconName=m[1]);if(!_.x("kevlar_use_wil_icons")){f.jumpTo(4);break}r=Uu;X=zAE;V=q.iconType;G=q.active;w=q.defaultToFilled;D=q.size;k=q.iconsetName;return f.yield($Gq(),6);case 6:return f.yield(X.call(r,V,G,w,D,k,f.yieldResult),5);case 5:q.iconShapeData=f.yieldResult;case 4:if(q.shouldRenderIconShape(R)){f.jumpTo(7);break}return f.yield(q.determineIconSet(z,F,E,J,R),7);case 7:return f.yield(q.renderIcon(R,y),0)}})};
Uu.prototype.toggleContainerClass=function(q){q?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var uUv=function(q){return!_.x("default_to_innertube_icon")||q.indexOf(":")>0?q:_.qo(q)};
_.g=Uu.prototype;_.g.determineIconSet=function(q,N,b,y){var J=this;return _.d(function(E){return E.nextAddress==1?_.x("kevlar_system_icons")||_.M7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.M7("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?E.yield(J.switchToYtSysIconset(q,N,b,y),3):E.jumpTo(2):E.nextAddress!=2?E.return():E.yield(J.useYtSysIconsetForMissingIcons(q,N,b,y),0)})};
_.g.switchToYtSysIconset=function(q,N,b,y){var J=this,E,F,R,c,z,m,r;return _.d(function(X){switch(X.nextAddress){case 1:if(!q||J.iconsetName!=="yt-icons"&&J.iconsetName!=="yt-sys-icons"){X.jumpTo(0);break}E=XLd(q);F=E[1];var V=F;if(O$e(V))F=V;else{var G=V=V.toLowerCase();(V=x5x.get(V))&&(G=V);F=G}_.x("enable_polymer_icons_replace_underscores_dash")&&F.includes("_filled")&&(F=F.replace(/_filled/g,"-filled"));return X.yield(HH(F,!0),3);case 3:return R=X.yieldResult,X.yield(HH(F,!1),4);case 4:if((c=
X.yieldResult)||N&&R)J.iconsetName="yt-sys-icons";J.iconName=J.getIconName(F,N,b,c,R);if(y===24){X.jumpTo(0);break}z="yt-sys-icons"+y+":"+J.iconName;return X.yield(HH(z,!1,!0),6);case 6:return m=X.yieldResult,X.yield(HH(z,!0,!0),7);case 7:r=X.yieldResult;J.iconName=J.getIconName(F,N,b,m,r);if(!N&&m||N&&r)J.iconsetName="yt-sys-icons"+y;_.hj(X)}})};
_.g.getIconName=function(q,N,b,y,J){q.includes("-filled")&&(q=q.replace("-filled",""));return J&&(N||b)?q+"-filled":q};
_.g.useYtSysIconsetForMissingIcons=function(q,N,b,y){var J=this,E,F;return _.d(function(R){if(R.nextAddress==1)return J.iconsetName!=="yt-icons"?R.jumpTo(0):R.yield(HH(J.iconName,!1,!1,!0),3);if(R.nextAddress!=4)return E=R.yieldResult,R.yield(HH(J.iconName,!1),4);F=R.yieldResult;if(E||!F)return R.jumpTo(0);J.iconsetName="yt-sys-icons";return R.yield(J.switchToYtSysIconset(q,N,b,y),0)})};
_.g.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var $Gq=function(){return _.d(function(q){try{return q.return(_.tz().resolve(_.No))}catch(N){return q.return(new Promise(function(b){_.dw().parkOrScheduleJob(function(){b(_.tz().resolve(_.No))},2,"ci")}))}})},zAE=function(q,N,b,y,J,E){y=y===void 0?24:y;
if(q){q=q.toLowerCase();var F=q.endsWith("_filled")||q.endsWith("-filled");N={iconName:q,iconStyle:(N===void 0?0:N)||(b===void 0?0:b)||F?"youtube_fill":"youtube_outline",iconSize:y,iconSetName:J===void 0?"yt-icons":J};b=!!E.resolveIcon(N);b||(N.iconSize=void 0,b=!!E.resolveIcon(N));!b&&F&&(N.iconName=q.substring(0,q.length-7),N.iconSize=y,b=!!E.resolveIcon(N),b||(N.iconSize=void 0,b=!!E.resolveIcon(N)));b||(N.iconStyle=void 0,b=!!E.resolveIcon(N));b||_.M6(new _.IO("Icon not supported",{iconName:N.iconName,
iconStyle:N.iconStyle,iconSize:N.iconSize,iconType:q}));return b?N:void 0}};
_.g=Uu.prototype;_.g.shouldRenderIconShape=function(q){if(!_.x("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;q=this.getContainer(q);return!IAd(q,this.icon)};
_.g.renderIcon=function(q,N){var b=this,y,J,E,F,R,c,z,m;return _.d(function(r){switch(r.nextAddress){case 1:if(N&&b.icon!==N)return r.return();y=b.getContainer(q);J=IAd(y,b.icon);if(b.shouldRenderIconShape(q)&&b.iconType)return b.applyIconShape(J,y),r.return();b.removeIconShape();if(!y)return r.return();b.iconName===""&&b.iconset&&y&&(b.removeStaticIcon(b.iconset,y),J&&b.removeAnimatedIcon(y));if(b.iconName===""&&b.iconset||!b.iconsetName||!cfl)return r.return();b.iconset=cfl.byKey(b.iconsetName);
if(!b.iconset)return b.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.gq(b,b.onIconsetAdded)),r.return();b.missingIconSet&&(b.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.gq(b,b.onIconsetAdded)));F=(E=J||b.isAnimatedIcon?Uud(b.icon):void 0)&&!E.lazyLoad;c=E&&((R=E)==null?void 0:R.lazyLoad)&&(E.lottiePlayerProps.animationConfig.animationData?!0:rJ.get(b.isDarkTheme?E.pathDarkTheme:E.path)?!0:!1);if(F||c)return b.applyAnimatedIcon(y,E,b.iconset),r.return();if(c||
(z=E)==null||!z.lazyLoad){r.jumpTo(2);break}m=sqn(E,b.isDarkTheme);b.applyStaticIcon(b.iconset,y,b.iconName,q,J);return r.yield(m,3);case 3:return r.yield(b.renderIcon(b.targetContainer,b.icon),4);case 4:return r.return();case 2:b.applyStaticIcon(b.iconset,y,b.iconName,q,J),_.hj(r)}})};
_.g.getContainer=function(q){var N,b=(N=b_J(this.hostElement))==null?void 0:N.host;N=!!b&&!!b.polymerController;if(!q||N)return q?this.getTargetContainer(q,b):this.hostElement};
_.g.getTargetContainer=function(q,N){var b=_.ee(N).querySelector("#"+q);b||(q=new _.IO("yt-icon container missing",N.is,q),_.po(q));return b};
_.g.applyStaticIcon=function(q,N,b,y,J){J&&this.removeAnimatedIcon(N);this.removeIconShape();J=J&&!!this.iconType&&!!this.iconShapeData&&_.x("kevlar_use_wil_icons");try{J?this.applyIconShape(!1,N):q.applyIcon(N,b)}catch(E){this.handleError(E,y,N)}};
_.g.applyIconShape=function(q,N){this.iconset&&N&&(this.removeStaticIcon(this.iconset,N),q&&this.removeAnimatedIcon(N));q={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var b=_.Z(this.iconShapeDataSignal);N=b.next().value;b=b.next().value;var y=_.Z(this.renderingOptionsSignal),J=y.next().value;y=y.next().value;b(this.iconShapeData);y(q);if(!this.wizHasRendered)for(this.wizHasRendered=!0,q=_.Z(S9z(N,J)).next().value;q.firstChild;)_.ee(this.hostElement).appendChild(q.firstChild)};
_.g.removeIconShape=function(){if(_.x("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.g.removeStaticIcon=function(q,N){q.removeIcon(N)};
_.g.applyAnimatedIcon=function(q,N,b){this.removeStaticIcon(b,q);this.removeIconShape();var y;b=this.animatedIconElement&&((y=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:y.type)===N.type;if(this.animatedIconElement&&b){this.animatedIconElement.polymerController.animatedIcon=N;var J;((J=this.animatedIconElement)==null?void 0:J.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(q),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=N,this.animatedIconElement.polymerController.active=this.active,_.x("delhi_modern_web_player_icons")?(N=fAC(q,this.icon)&&q.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=N?N.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.x("kevlar_use_wil_icons")?
q.insertBefore(this.animatedIconElement,q.childNodes[0]):(q=_.ee(q),q.insertBefore(this.animatedIconElement,q.childNodes[0]))};
_.g.removeAnimatedIcon=function(q){_.x("kevlar_use_wil_icons")?this.animatedIconElement&&q.contains(this.animatedIconElement)&&q.removeChild(this.animatedIconElement):(q=_.ee(q),this.animatedIconElement&&q.contains(this.animatedIconElement)&&q.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.g.handleError=function(q,N,b){_.op(q,this.iconName,N,b);N=IAd(b,this.icon);var y=!1;window.location.href.includes("JpymaW6Lh2w")?y=!0:b._svgIcon&&(b=(b=b._svgIcon.parentNode)?b.tagName:"unknown",_.op(q,b),b==="YT-ICON"&&q.name==="NotFoundError"?y=!0:q.name==="NotFoundError"&&N&&(y=!0));y?_.M6(q):_.po(q)};
_.$H.Object.defineProperties(Uu,{template:{configurable:!0,enumerable:!0,get:function(){if(dG1===void 0){var q=document.createElement("template");_.Q(q,"\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");q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;
RAM===void 0&&(RAM=document.createElement("template"));var y=RAM;b.call(N,y.content.cloneNode(!0),q.content.firstChild);dG1=q}q=dG1;return q}}});
Uu.prototype.handlePropertyChange=Uu.prototype.handlePropertyChange;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Uu.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",String)],Uu.prototype,"icon",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],Uu.prototype,"active",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],Uu.prototype,"defaultToFilled",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],Uu.prototype,"isAnimatedIcon",void 0);
_.p([_.U({value:24}),_.P("design:type",Number)],Uu.prototype,"size",void 0);_.p([_.U({value:""}),_.P("design:type",String)],Uu.prototype,"targetContainer",void 0);_.p([_.U(),_.P("design:type",Object)],Uu.prototype,"animatedIconElement",void 0);_.p([_.U(),_.P("design:type",Object)],Uu.prototype,"isDarkTheme",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Uu.prototype,"ariaHidden",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],Uu.prototype,"ariaLabel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],Uu.prototype,"role",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],Uu.prototype,"tabindex",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],Uu.prototype,"title",void 0);_.p([_.U(),_.P("design:type",String)],Uu.prototype,"style",void 0);_.p([_.U(),_.P("design:type",String)],Uu.prototype,"iconFilter",void 0);_.p([_.U(),_.P("design:type",String)],Uu.prototype,"gradientColor",void 0);
_.p([_.FY("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],Uu.prototype,"handlePropertyChange",null);_.p([_.Ok({is:"yt-icon",noInjection:!0})],Uu);var WLA="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),puh=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var t7M={};t7M.YtPlaintextBehavior=[_.kT,{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(q){q.preventDefault();q=q.clipboardData.getData("text/plain");document.execCommand("insertText",!1,q)},
preventRichTextFormatting_:function(q){_.Js&&(q=q.detail.keyboardEvent,q.stopImmediatePropagation(),q.preventDefault())}}];var mGR;var rfT;var fV=function(){var q=_.C.apply(this,arguments)||this;q.ignoreShadyDom=!1;q.hasChange_=!1;q.hasSetTitle_=!1;q.useIOObserverForVisibilityLogging_=_.x("kevlar_use_vimio_behavior")&&_.M7("INNERTUBE_CLIENT_NAME")==="WEB";q.ytFormattedStringObserverHandlerKeys_=void 0;return q};
_.Y(fV,_.C);_.g=fV.prototype;_.g.created=function(){this.useIOObserverForVisibilityLogging_=_.x("kevlar_use_vimio_behavior")&&_.M7("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.g.ready=function(){_.M7("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_()};
_.g.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.g.detached=function(){this.unobserveIOObservers_()};
_.g.clearContents_=function(){for(var q=this.getRoot(),N=q.lastChild;N&&N.tagName!=="STYLE";){try{q.removeChild(N)}catch(b){break}N=q.lastChild}};
_.g.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var q=_.Z(this.ytFormattedStringObserverHandlerKeys_),N=q.next();!N.done;N=q.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(N.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.g.resetForAttributedString=function(){var q=this.getRoot();!q.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),q.appendChild(this.ytAttributedStringElementRef))};
_.g.resetForFormattedString=function(){var q=this.getRoot(),N=q.querySelector("yt-attributed-string");N&&(this.ytAttributedStringElementRef=q.removeChild(N))};
_.g.textChanged=function(){this.textChanged_(this.text)};
_.g.textChanged_=function(q){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!q||!q.runs&&!q.simpleText;if(_.x("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var N=this.hostElement.firstChild;N&&N.nodeName==="FONT";){var b=N;N=N.nextSibling;this.hostElement.removeChild(b)}N=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
b=q.simpleText;var y;!b&&((y=q.runs)==null?void 0:y.length)===1&&this.isSimpleString_(q.runs[0])&&(b=q.runs[0].text);b!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.M7("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(b!==void 0){try{N.textContent=b}catch(J){}N.textContent||(this.isEmpty=!0)}else q=q.runs,b!==void 0&&(q=[{text:b}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),q&&this.updateText_(q),
N.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.g.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)};
_.g.computeAriaLabel_=function(q){return q};
_.g.computeEllipsisTruncateStyling=function(q,N){return q&&!N};
_.g.computeUseAttributedString=function(q){return _.x("web_replace_formatted_with_attributed_string")&&gWC(q)&&!this.disableAttributedString&&!this.enableContentEditable};
_.g.setNodeStyle_=function(q,N){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.x("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?N.removeAttribute("dir"):N.setAttribute("dir","auto");N.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");N.style.color="";var b=null;this.noStyles||(q.bold&&(N.classList.add("bold"),b="bold"),q.deemphasize&&(N.classList.add("deemphasize"),b="deemphasize"),q.italics&&N.classList.add("italic"),
q.strikethrough&&N.classList.add("strikethrough"),q.errorUnderline&&(N.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),q.bracket&&N.classList.add("bracket"),q.textColor&&(N.style.color=_.GM(q.textColor)));b!==N.getAttribute("style-target")&&(b?N.setAttribute("style-target",b):N.removeAttribute("style-target"))};
_.g.setUpVisibilityLogging_=function(q,N){var b=this;this.setNodeTrackingParams_(q,N);var y;((y=N.data)==null?0:y.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(q=this.ytRendererBehavior.visibilityObserver.observe(N,function(J){var E=b.ytRendererBehavior.getVisibilityLogger();E&&E.reportShown(J)},this.ytRendererBehavior.visibilityOptionVisible_),N=this.ytRendererBehavior.visibilityObserver.observe(N,function(J){var E=b.ytRendererBehavior.getVisibilityLogger();
E&&E.reportHidden(J)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(q),this.ytFormattedStringObserverHandlerKeys_.push(N))};
_.g.setNodeTrackingParams_=function(q,N){N.data||(N.data={});if((q=q.loggingDirectives?q.loggingDirectives.trackingParams:null)||N.data.trackingParams)N.data.trackingParams=q};
_.g.computeHasLinkOnly_=function(q){return!(!q||q.length!==1||this.noEndpoints||!q[0].navigationEndpoint)};
_.g.getRoot=function(){var q=this.buildScopeDomOptions();return this.enableContentEditable?_.ee(_.ee(this.hostElement,q).querySelector("[contenteditable]")):_.ee(this.hostElement,q)};
_.g.fixContenteditableScope=function(){var q=function(N){N&&(N.nodeType===1&&N.classList&&(N.classList.add("style-scope"),N.classList.add("yt-formatted-string")),N.childNodes&&N.childNodes.forEach(function(b){q(b)}))};
q(this.getRoot())};
_.g.updateText_=function(q){for(var N=q.length,b=this.getRoot(),y=b.firstChild;y&&y.nodeName==="STYLE";)y=y.nextSibling;for(var J=0;J<N&&y;){var E=q[J],F=_.x("remove_cr_char")&&E.text?E.text.replace("\r",""):E.text;if(this.isSimpleString_(E)&&!this.useMixedDirectionFormattedStrings)if(y.nodeName==="#text"){y.textContent!=F&&(y.textContent=F);J++;y=y.nextSibling;continue}else break;if(_.v(E,GT))break;else if(!this.noEndpoints&&E.navigationEndpoint){if(y.nodeName!=="A")break;this.setDataOnAnchor_(y,
E.navigationEndpoint)}else if(y.nodeName!=="SPAN")break;this.setNodeStyle_(E,y);this.setUpVisibilityLogging_(E,y);y.textContent!=F&&(y.textContent=F);J++;y=y.nextSibling}if(y)for(E=b.lastChild,y=J?y.previousSibling:null;E&&E!=y;){try{b.removeChild(E)}catch(R){break}E=b.lastChild}J!==N&&this.addTextNodes_(q,J)};
_.g.addTextNodes_=function(q,N){for(var b=document.createDocumentFragment(),y=q.length;N<y;N++){var J=q[N],E=_.x("remove_cr_char")&&J.text?J.text.replace("\r",""):J.text;if(this.isSimpleString_(J)&&!this.useMixedDirectionFormattedStrings)b.appendChild(document.createTextNode(E));else{var F=_.v(J,GT);if(F){if(F.image){var R=document.createElement("img");F.isCustomEmoji||R.classList.add("small-emoji");R.classList.add("emoji");F.isCustomEmoji&&(R.dataset.emojiId=F.emojiId);R.src=_.Mo(F.image.thumbnails,
this.emojiSize);(J=this.get("image.accessibility.accessibilityData.label",F))?R.alt=J:F.shortcuts&&F.shortcuts.length>0?R.alt=F.shortcuts[0]:F.emojiId&&(R.alt=F.emojiId);b.appendChild(R);this.hasEmoji=!0}}else!this.noEndpoints&&J.navigationEndpoint?(R=document.createElement("a"),R.classList.add("yt-simple-endpoint"),R.setAttribute("spellcheck","false"),this.setDataOnAnchor_(R,J.navigationEndpoint)):R=document.createElement("span"),this.setNodeStyle_(J,R),this.setUpVisibilityLogging_(J,R),R.appendChild(document.createTextNode(E)),
b.appendChild(R)}}this.getRoot().appendChild(b)};
_.g.isSimpleString_=function(q){return(this.noEndpoints||!q.navigationEndpoint)&&!_.v(q,GT)&&(this.noStyles||!(q.bold||q.deemphasize||q.italics||q.strikethrough||q.errorUnderline||q.bracket||q.textColor))&&!q.loggingDirectives};
_.g.getRawText=function(){return _.ao(this.text)};
_.g.getFirstRunText=function(){var q;if(((q=this.text)==null?0:q.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.g.setFirstRunText=function(q){var N;((N=this.text)==null?0:N.runs)&&this.text.runs[0]&&(this.text.runs[0].text=q,this.textChanged_(this.text))};
_.g.setDataOnAnchor_=function(q,N){var b=this;!_.x("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(N)||this.isSignalServiceEndpoint_(N)?(q.onclick=this.serviceEndpointHandler_(N),AB(q,"#")):q$D({text:this.text,command:N},function(){u3n(q,N,b.target)})};
_.g.isServiceEndpoint_=function(q){var N;return!((N=_.v(q==null?void 0:q.commandMetadata,_.gg))==null||!N.sendPost)};
_.g.isSignalServiceEndpoint_=function(q){return!!_.v(q,_.EY)};
_.g.serviceEndpointHandler_=function(q){var N=this;return function(b){_.qc(N.hostElement,[q]);b.preventDefault()}};
_.g.overrideAriaLabelChanged_=function(){var q=this.getRoot();this.enableContentEditable&&q&&q.setAttribute("aria-label",this.overrideAriaLabel)};
_.g.enableContentEditableChanged_=function(){var q=this,N=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),N=_.ee(this.hostElement,N),!N.lastChild||N.lastChild instanceof HTMLElement&&N.lastChild.id!=="contenteditable-root"){var b=document.createElement("div");b.id="contenteditable-root";b.setAttribute("contenteditable","true");b.setAttribute("dir","auto");b.onfocus=function(){q.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
N.appendChild(b);this.overrideAriaLabel&&b.setAttribute("aria-label",this.overrideAriaLabel)}}else b=_.BP(this.hostElement).firstChild,b instanceof HTMLElement&&b.id==="contenteditable-root"&&_.ee(this.hostElement,N).removeChild(b)};
_.g.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.g.getNodesForVisibilityLogging_=function(){return _.ea(this.getRoot().childNodes,function(q){var N;return!((N=q.data)==null||!N.trackingParams)})};
_.g.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.g.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var q=this.ytRendererBehavior.getVisibilityLogger();q&&this.getNodesForVisibilityLogging_().forEach(function(N){q.reportShown(N)})}};
_.g.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var q=this.ytRendererBehavior.getVisibilityLogger();q&&this.getNodesForVisibilityLogging_().forEach(function(N){q.reportHidden(N)})}};
_.$H.Object.defineProperties(fV.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.x("enable_mixed_direction_formatted_strings")}}});
fV.prototype.enableContentEditableChanged_=fV.prototype.enableContentEditableChanged_;fV.prototype.overrideAriaLabelChanged_=fV.prototype.overrideAriaLabelChanged_;fV.prototype.ellipsisTruncateChanged_=fV.prototype.ellipsisTruncateChanged_;fV.prototype.textChanged=fV.prototype.textChanged;_.p([_.O(t7M.YtPlaintextBehavior),_.P("design:type",Object)],fV.prototype,"ytPlaintextBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],fV.prototype,"ytComponentBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],fV.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],fV.prototype,"text",void 0);_.p([_.U(),_.P("design:type",Boolean)],fV.prototype,"noEndpoints",void 0);_.p([_.U(),_.P("design:type",Boolean)],fV.prototype,"noStyles",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],fV.prototype,"isDarkTheme",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],fV.prototype,"splitLines",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],fV.prototype,"forceDefaultStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],fV.prototype,"ellipsisTruncate",void 0);_.p([_.U(),_.P("design:type",Object)],fV.prototype,"ignoreShadyDom",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.P("design:type",Boolean)],fV.prototype,"ellipsisTruncateStyling",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.P("design:type",String)],fV.prototype,"ariaLabel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],fV.prototype,"isEmpty",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.P("design:type",Boolean)],fV.prototype,"hasLinkOnly_",void 0);_.p([_.U(),_.P("design:type",Boolean)],fV.prototype,"hasEmoji",void 0);_.p([_.U(),_.P("design:type",Boolean)],fV.prototype,"disableAttributedString",void 0);_.p([_.U(),_.P("design:type",Boolean)],fV.prototype,"isOverlay",void 0);_.p([_.U(),_.P("design:type",Boolean)],fV.prototype,"linkInheritColor",void 0);
_.p([_.U(),_.P("design:type",Boolean)],fV.prototype,"noPreWrap",void 0);_.p([_.U(),_.P("design:type",Boolean)],fV.prototype,"userInput",void 0);_.p([_.U({value:16}),_.P("design:type",Number)],fV.prototype,"emojiSize",void 0);_.p([_.U(),_.P("design:type",String)],fV.prototype,"target",void 0);_.p([_.U(),_.P("design:type",Boolean)],fV.prototype,"enableContentEditable",void 0);_.p([_.U(),_.P("design:type",String)],fV.prototype,"overrideAriaLabel",void 0);
_.p([_.U(),_.P("design:type",Boolean)],fV.prototype,"respectHtmlDir",void 0);_.p([_.U(),_.P("design:type",Boolean)],fV.prototype,"respectLangDir",void 0);_.p([_.l("plaintextOnly"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],fV.prototype,"useMixedDirectionFormattedStrings",null);_.p([_.U({computed:"computeUseAttributedString(text)"}),_.P("design:type",Boolean)],fV.prototype,"useYtAttributedString",void 0);
_.p([_.FY("text"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fV.prototype,"textChanged",null);_.p([_.FY("ellipsisTruncate"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fV.prototype,"ellipsisTruncateChanged_",null);_.p([_.FY("overrideAriaLabel"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fV.prototype,"overrideAriaLabelChanged_",null);
_.p([_.FY("enableContentEditable"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fV.prototype,"enableContentEditableChanged_",null);_.p([_.Ok({is:"yt-formatted-string",disableElementRegistration:!0})],fV);
_.a(fV,"yt-formatted-string",function(){if(rfT===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;mGR===void 0&&(mGR=document.createElement("template"));var y=mGR;b.call(N,y.content.cloneNode(!0),q.content.firstChild);rfT=q}q=rfT;return q});var Xg1;var V7M;var jhJ;var xGF;var CV=function(){var q=_.C.apply(this,arguments)||this;q.focused=!1;q.disabled=!1;q.isOverlay=!1;return q};
_.Y(CV,_.C);CV.prototype.triggerDown=function(){if(!this.disabled){_.HP(this.hostElement,"down",!0);var q;(q=this.currentAnimation)==null||q.cancel()}};
CV.prototype.triggerUp=function(){if(!this.disabled){_.HP(this.hostElement,"down",!1);var q=this.fillElement;var N=this.strokeElement;typeof GroupEffect==="function"?(q=new GroupEffect([SKJ(q),W9A(N)]),q=new Animation(q,document.timeline)):q=new WqT(q,N);this.currentAnimation=q;var b;(b=this.currentAnimation)==null||b.play()}};
_.p([_.dq(".stroke"),_.P("design:type",HTMLElement)],CV.prototype,"strokeElement",void 0);_.p([_.dq(".fill"),_.P("design:type",HTMLElement)],CV.prototype,"fillElement",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],CV.prototype,"focused",void 0);_.p([_.U(),_.P("design:type",Object)],CV.prototype,"disabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],CV.prototype,"isOverlay",void 0);_.p([_.Ok({is:"yt-interaction",disableElementRegistration:!0})],CV);
_.a(CV,"yt-interaction",function(){if(xGF===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;jhJ===void 0&&(jhJ=document.createElement("template"));var y=jhJ;b.call(N,y.content.cloneNode(!0),q.content.firstChild);xGF=q}q=xGF;return q},{mode:2});var IR=function(){return _.C.apply(this,arguments)||this};
_.Y(IR,_.C);_.g=IR.prototype;_.g.ready=function(){var q=this,N=_.ee(this.hostElement).querySelector("#button");N.addEventListener("focus",function(){tfv||(tfv=new $ko);q.keyboardFocused=tfv.isKeyBoardInUse()});
N.addEventListener("blur",function(){q.keyboardFocused=!1;q.rippleUp_()})};
_.g.computeTabIndex_=function(q){return q?-1:0};
_.g.computeButtonAriaPressed_=function(q){if(this.toggleable)return q?"true":"false"};
_.g.rippleDown_=function(){_.ee(this.hostElement).querySelector("#interaction").triggerDown()};
_.g.rippleUp_=function(){_.ee(this.hostElement).querySelector("#interaction").triggerUp()};
_.g.onPressedChanged_=function(){var q=_.BP(_.ee(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.BP(_.ee(this.hostElement).querySelector("#button")).children[0];q&&(q.active=this.pressed)};
IR.prototype.onPressedChanged_=IR.prototype.onPressedChanged_;IR.prototype.rippleUp_=IR.prototype.rippleUp_;IR.prototype.rippleDown_=IR.prototype.rippleDown_;_.p([_.U(),_.P("design:type",String)],IR.prototype,"label",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],IR.prototype,"disabled",void 0);_.p([_.U(),_.P("design:type",Boolean)],IR.prototype,"pressed",void 0);_.p([_.U(),_.P("design:type",Object)],IR.prototype,"toggleable",void 0);
_.p([_.U(),_.P("design:type",Boolean)],IR.prototype,"untabbable",void 0);_.p([_.U(),_.P("design:type",Boolean)],IR.prototype,"keyboardFocused",void 0);_.p([_.ZP("down"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IR.prototype,"rippleDown_",null);_.p([_.ZP("up"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IR.prototype,"rippleUp_",null);
_.p([_.FY("pressed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IR.prototype,"onPressedChanged_",null);_.p([_.Ok({is:"yt-icon-button",disableElementRegistration:!0})],IR);
_.a(IR,"yt-icon-button",function(){if(V7M===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;Xg1===void 0&&(Xg1=document.createElement("template"));var y=Xg1;b.call(N,y.content.cloneNode(!0),q.content.firstChild);V7M=q}q=V7M;return q},{mode:2});var vnJ;var Gl1=function(){var q=document.body,N=q.appendChild;if(vnJ===void 0){var b=document.createElement("template");_.Q(b,'\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>');
vnJ=b}b=vnJ;N.call(q,b.content)};
document.body?Gl1():window.addEventListener("DOMContentLoaded",Gl1);var YKF=_.Tt(["aria-"]),TE={};TE.YtRenderButtonBehavior=[_.e.YtRendererBehavior,_.KV.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!!_.tz().resolve(_.$f(_.X5))&&_.x("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 q=this.computeHref_(this.endpoint,!0);q?AB(this.elements_.endpoint,q):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){q=this.buttonClass.split(" ");q=_.Z(q);for(var N=q.next();!N.done;N=q.next())N=N.value,_.HP(this.hostElement,N,!0),this.elements_.button&&_.HP(this.elements_.button,N,!0),this.elements_.text&&_.HP(this.elements_.text,N,!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&&(q=null,this.buttonAccessibility&&(q=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=q:q?_.cx([_.ms(YKF)],this.elements_.button,"aria-label",q):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var q=_.tz().resolve(_.$f(_.X5));q&&(this.keyboardFocused=q.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.$Y("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,_.mj(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.mj(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(q,N){if(N)for(q=N.split(" "),q=_.Z(q),N=q.next();!N.done;N=q.next())N=N.value,_.HP(this.hostElement,N,!1),this.elements_.button&&_.HP(this.elements_.button,N,!1),this.elements_.text&&_.HP(this.elements_.text,N,!1)},
buttonIconChanged_:function(q){this.elements_.icon?q?(this.elements_.icon.icon=q,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.mj(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.bL(this.hostElement,"is-paper-button-with-icon",!1)):q&&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"&&_.mj(this.elements_.button).appendChild(this.elements_.icon):_.mj(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.bL(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(q){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,q){var N=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(q){case "yt_icon_button_with_label":N=!0;_.HP(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();q=_.mj(this.elements_.button).firstElementChild;
this.elements_.icon=q;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.mj(this.elements_.endpoint).appendChild(this.elements_.button);_.mj(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.$Y("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;_.mj(this.elements_.button).appendChild(this.elements_.text);_.mj(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":N=!0,this.elements_.button=this.getYtIconButton_(),q=_.mj(this.elements_.button).firstElementChild,this.elements_.icon=q,this.setIconActive_(this.elements_.icon),
_.mj(this.elements_.endpoint).appendChild(this.elements_.button)}_.bL(this.hostElement,"is-icon-button",N);_.bL(this.hostElement,"is-paper-button",!N);_.bL(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 b;_.ee((b=this.container.hostElement)!=null?b:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.mj(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(q){if(q!=void 0||this.disabled)this.disabled=q,this.elements_.button&&(this.elements_.button.disabled=q)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(q){_.x("kevlar_system_icons")&&q&&this.data&&(this.data.isSelected!==void 0?q.active=this.data.isSelected:this.data.isToggled!==void 0&&(q.active=this.data.isToggled))},
observeBasicPalette_:function(q){_.V0(this.hostElement,q)},
disabledChanged_:function(q){this.data&&this.set("data.isDisabled",q)},
onYtButtonTap_:function(q){if(this.disabled)q.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.qc(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(q=this.disableCommandHandlerOverride,!this.data||!this.data.command||q||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.x("handle_service_request_actions")||_.qc(this.hostElement,[this.serviceEndpoint]),
_.e2(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.x("handle_service_request_actions")?(q=[],this.serviceEndpoint&&q.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&q.push(this.data.command),q.length&&_.Nc(this.hostElement,q,this.hostElement)):this.data&&this.data.command&&(q=this.data.command,q.accountUnlinkCommand||q.accountLinkCommand||q.insertAdCommand||q.insertHighlightMarkerCommand||
q.createLivestreamHighlightClipCommand||q.getVideoUploadFeedbackCommand||q.musicDeletePrivatelyOwnedEntityCommand||q.ypcCancelRecurrenceEndpoint||q.getMultiSelectCommandEndpoint?_.qc(this.hostElement,[q]):_.Nc(this.hostElement,[q],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 q,N=_.ee((q=this.container.hostElement)!=null?q:this.container);N.lastChild&&N.lastChild.tagName!="STYLE";)try{N.removeChild(N.lastChild)}catch(b){break}},
getYtIconButton_:function(){var q=this.reuseEnabled_()?_.$Y("yt-icon-button"):document.createElement("yt-icon-button"),N=_.mj(q).firstElementChild;if(N&&N.is!="yt-icon"){for(N=_.mj(q);N.lastChild;)N.removeChild(N.lastChild);N=null}N||(N=this.getIcon_(),this.setIconActive_(N),_.mj(q).appendChild(N));return q},
reuseEnabled_:function(){return _.x("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.$Y("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.$Y("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.Qhx={};
_.Qhx.YtButtonBehavior=[TE.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var q=this.data;q&&(this._setEndpoint(this.computeEndpoint_(q)),this._setServiceEndpoint(this.computeServiceEndpoint_(q)),this._setCommand(this.computeCommand_(q)),this._setButtonIcon(this.computeButtonIcon_(q)),this._setButtonText(this.computeButtonText_(q,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(q)),this._setButtonTooltip(this.computeTooltip_(q)),this._setButtonClass(this.computeButtonClass_(q)),this._setIconPositionType(this.computeIconPositionType_(q)),this.updateRenderedElements())},
setPressedState:function(q){var N;if((N=this.elements_)==null?0:N.button)this.elements_.button.pressed=!!q},
computeIconPositionType_:function(q){return q&&q.iconPosition||null},
computeEndpoint_:function(q){var N=q&&q.navigationEndpoint,b=this.get("data.command.commandMetadata.webCommandMetadata.url"),y=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return N?N:q&&q.command&&q.command.modalEndpoint?q.command:b&&!y&&q.command?q.command:null},
computeServiceEndpoint_:function(q){var N=q&&q.serviceEndpoint,b=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return N?N:b&&q.command?q.command:null},
computeCommand_:function(q){return q&&q.command||null},
computeButtonIcon_:function(q){return q&&q.icon&&q.icon.iconType?_.qo(q.icon.iconType):null},
computeButtonText_:function(q,N){return!N&&q&&q.text||null},
computeAccessibility_:function(q){return this.get("accessibilityData.accessibilityData",q)||q&&q.accessibility||(q&&q.text?{label:this.getSimpleString(q.text)}:null)},
computeTooltip_:function(q){return q?q.isDisabled&&q.disabledTooltip||q.tooltip||null:null},
computeButtonClass_:function(q){var N=q&&q.style?q.style.toLowerCase().replace(/_/g,"-")+" ":"";N+=q&&q.size?q.size.toLowerCase().replace(/_/g,"-")+" ":"";q.colorData&&q.colorData.basicColorPaletteData&&q.colorData.basicColorPaletteData.borderColor&&(N+="palette-with-border");return N.trim()}}];var ju={};var OW1;var wgJ;var iWM,ln1=function(){return iWM!==void 0?iWM:iWM=document.createElement("template")};
document.head.appendChild(ln1().content);var K9x;var DGM,hAv=function(){return DGM!==void 0?DGM:DGM=document.createElement("template")};
document.head.appendChild(hAv().content);var klo;var UGl,fnF=function(){return UGl!==void 0?UGl:UGl=document.createElement("template")};
document.head.appendChild(fnF().content);var C4x;var Inl=document.head,TXJ=Inl.appendChild,shR;if(C4x===void 0){var nnq=document.createElement("template");_.Q(nnq,"\x3c!--css-build:shady--\x3e");nnq.content.insertBefore(fnF().content.cloneNode(!0),nnq.content.firstChild);C4x=nnq}shR=C4x;TXJ.call(Inl,shR.content);var anv=document.head,SKl=anv.appendChild,W9R;if(klo===void 0){var L9T=document.createElement("template");_.Q(L9T,"\x3c!--css-build:shady--\x3e");L9T.content.insertBefore(hAv().content.cloneNode(!0),L9T.content.firstChild);klo=L9T}W9R=klo;SKl.call(anv,W9R.content);var pgl=document.head,P4J=pgl.appendChild,M71;if(K9x===void 0){var onx=document.createElement("template");_.Q(onx,"\x3c!--css-build:shady--\x3e");onx.content.insertBefore(ln1().content.cloneNode(!0),onx.content.firstChild);K9x=onx}M71=K9x;P4J.call(pgl,M71.content);var AfM;_.xP("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");AfM=_.x("web_button_rework")&&_.ou("BUTTON_REWORK")||_.x("web_button_rework_with_live");_.su=function(){return _.C.apply(this,arguments)||this};
_.Y(_.su,_.C);_.su.prototype.created=function(){this.openPopupConfig=_.M7("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.su.prototype.onYtNavigate_=function(q){var N=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(q.detail.endpoint);N&&(this.ytOpenPopupBehavior.openPopup(N),q.stopPropagation(),q.preventDefault())};
_.$H.Object.defineProperties(_.su,{template:{configurable:!0,enumerable:!0,get:function(){if(wgJ===void 0){var q=document.createElement("template");_.Q(q,"\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");q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
var N=q.content,b=N.insertBefore;OW1===void 0&&(OW1=document.createElement("template"));var y=OW1;b.call(N,y.content.cloneNode(!0),q.content.firstChild);wgJ=q}q=wgJ;return q}}});
_.su.prototype.onYtNavigate_=_.su.prototype.onYtNavigate_;_.p([_.O(_.lw.YtOpenPopupBehavior),_.P("design:type",Object)],_.su.prototype,"ytOpenPopupBehavior",void 0);_.p([_.O(_.Qhx.YtButtonBehavior),_.P("design:type",Object)],_.su.prototype,"ytButtonBehavior",void 0);_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],_.su.prototype,"onYtNavigate_",null);
_.p([_.Ok({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:AfM})],_.su);var eAR;var BX1=_.x("web_button_rework")&&_.ou("BUTTON_REWORK")||_.x("web_button_rework_with_live"),nV=function(){var q=_.C.apply(this,arguments)||this;q.isPressed=!1;q.forceIconButton=!1;q.forceIconOnly=!1;q.forceModernIconButton=!1;q.skipCommandHandling=!1;q.alignByText=!1;q.fitToVisibleBounds=!0;q.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};q.onTap=function(N){_.e2(q.hostElement,"yt-service-request-sent-button-renderer",N)};
return q};
_.Y(nV,_.C);_.g=nV.prototype;_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.g.onClick=function(q){var N,b=this.disabled||((N=this.data)==null?void 0:N.isDisabled);N=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");b&&N&&q.stopPropagation()};
_.g.computeIcon=function(){var q,N,b=(q=this.data)==null?void 0:(N=q.icon)==null?void 0:N.iconType;if(b)return _.qo(b)};
_.g.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.g.handleUpdateButtonAction=function(q){q=_.v(q,bij);var N=_.v(q==null?void 0:q.updatedButton,_.JI);if(this.data&&q&&N){var b=this.data;b.targetId&&q.targetId&&b.targetId===q.targetId&&(this.data=N)}};
_.$H.Object.defineProperties(nV.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var q=this;if(this.data){var N=BSR({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.e2(q.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.e2(q.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});N.alignByText=this.alignByText;return N}}}});
_.$H.Object.defineProperties(nV,{template:{configurable:!0,enumerable:!0,get:function(){if(eAR===void 0){var q=document.createElement("template");_.Q(q,'\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>');eAR=q}q=eAR;return q}}});
nV.prototype.onClick=nV.prototype.onClick;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],nV.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],nV.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],nV.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],nV.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],nV.prototype,"isPressed",void 0);
_.p([_.U(),_.P("design:type",Object)],nV.prototype,"forceIconButton",void 0);_.p([_.U(),_.P("design:type",Object)],nV.prototype,"forceIconOnly",void 0);_.p([_.U(),_.P("design:type",Object)],nV.prototype,"forceModernIconButton",void 0);_.p([_.U(),_.P("design:type",Object)],nV.prototype,"skipCommandHandling",void 0);_.p([_.U(),_.P("design:type",Object)],nV.prototype,"alignByText",void 0);_.p([_.U(),_.P("design:type",Object)],nV.prototype,"buttonTooltipPosition",void 0);
_.p([_.U(),_.P("design:type",Object)],nV.prototype,"fitToVisibleBounds",void 0);_.p([_.U({computed:"computeTooltip(data)"}),_.P("design:type",Object)],nV.prototype,"tooltip",void 0);_.p([_.U(),_.P("design:type",Object)],nV.prototype,"overrides",void 0);_.p([_.U(),_.P("design:type",Boolean)],nV.prototype,"disabled",void 0);_.p([_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],nV.prototype,"onClick",null);
_.p([_.l("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.P("design:type",Object),_.P("design:paramtypes",[])],nV.prototype,"computedButtonShape",null);_.p([_.Ok({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!BX1,cssBuildOptOut:!0}),_.Ok({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!BX1,cssBuildOptOut:!0})],nV);var HW1;var q9q;var aR=function(){var q=_.C.apply(this,arguments)||this;q.empty_=!0;q.loadTime=Infinity;q.pendingPaint=!1;q.hasChange_=!1;q.oldThumbnail_=null;q.oldDelayedSrc_="";q.objectURL_=null;return q};
_.Y(aR,_.C);_.g=aR.prototype;_.g.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.g.ready=function(){var q=this.shouldShowPlaceholder_();_.HP(this.hostElement,"no-transition",!0);q&&this.hostElement.classList.add("with-placeholder")};
_.g.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.g.isThumbPreloaded_=function(q){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",q)};
_.g.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||NSJ};
_.g.computeThumbnailSrc_=function(q){return q&&q.thumbnails?_.Mo(q.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.g.computeAlt_=function(){var q=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&q||""};
_.g.thumbnailChanged_=function(){var q=_.Z([this.thumbnail,this.oldThumbnail_]),N=q.next().value;q=q.next().value;this.oldThumbnail_=N;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(q=this.computeThumbnailSrc_(q),this.computeThumbnailSrc_(N)===q))return;_.x("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(N)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):N&&_.ou("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.ut(this,this.onReload_):_.ut(this,this.onShow_):this.resetImage_();N&&(this.hostElement.style.opacity=""+N.opacity)}};
_.g.delayedSrcChanged_=function(){var q=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===q||this.resetImage_()};
_.g.setSrc_=function(q){q?(_.ee(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.ee(this.hostElement).querySelector("#img").src=q):(_.ee(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.g.resetImage_=function(){qKJ(this.hostElement);this.empty_=!0;this.setSrc_(NSJ);this.ytRendererBehavior.invalidate(!1)};
_.g.observePlaceholderColor_=function(){var q=this.thumbnail&&this.thumbnail.placeholderColor;q?this.hostElement.style.backgroundColor=_.GM(q):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.g.onLoad_=function(){_.ee(this.hostElement).querySelector("#img").src&&_.ee(this.hostElement).querySelector("#img").src!==NSJ&&(H5n(this.hostElement),this.notifyOnLoaded&&_.e2(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.g.onError_=function(){var q=this;if(_.x("web_use_cache_for_image_fallback"))ZWd(_.ee(this.hostElement).querySelector("#img").src).then(function(N){q.objectURL_=_.PZ(N).toString();q.setSrc_(q.objectURL_)}).catch(function(){_.x("kevlar_woffle_fallback_image")&&q.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.g.onPrescanVisible=function(){this.onShow_()};
_.g.onVisible=function(){if(_.x("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.g.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var q=this.computeSrc_();q!==_.ee(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(q))}};
_.g.onReload_=function(){this.empty_=!1;var q=this.computeSrc_();q!==_.ee(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(q))};
_.g.shouldShowPlaceholder_=function(){return _.x("kevlar_thumbnail_bg")};
aR.prototype.observePlaceholderColor_=aR.prototype.observePlaceholderColor_;aR.prototype.delayedSrcChanged_=aR.prototype.delayedSrcChanged_;aR.prototype.thumbnailChanged_=aR.prototype.thumbnailChanged_;_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],aR.prototype,"alt",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],aR.prototype,"ariaHidden",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],aR.prototype,"ariaLabel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],aR.prototype,"hidden",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],aR.prototype,"id",void 0);_.p([_.O(_.yf.YtVisibilityBehavior),_.P("design:type",Object)],aR.prototype,"ytVisibilityBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],aR.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",String)],aR.prototype,"delayedSrc",void 0);
_.p([_.U(),_.P("design:type",Object)],aR.prototype,"thumbnail",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],aR.prototype,"loaded",void 0);_.p([_.U(),_.P("design:type",Boolean)],aR.prototype,"notifyOnLoaded",void 0);_.p([_.U(),_.P("design:type",Number)],aR.prototype,"height",void 0);_.p([_.U(),_.P("design:type",Number)],aR.prototype,"width",void 0);_.p([_.U({value:function(){return"width"}}),
_.P("design:type",String)],aR.prototype,"dimension",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],aR.prototype,"fit",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],aR.prototype,"fitHeight",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],aR.prototype,"fitWidth",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],aR.prototype,"objectFit",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],aR.prototype,"objectPosition",void 0);_.p([_.U(),_.P("design:type",String)],aR.prototype,"preferredThumbnail",void 0);_.p([_.U({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.P("design:type",String)],aR.prototype,"alt_",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],aR.prototype,"sharedTooltipText",void 0);
_.p([_.U(),_.P("design:type",Boolean)],aR.prototype,"ftlEligible",void 0);_.p([_.U({value:void 0}),_.P("design:type",String)],aR.prototype,"observeHiddenOption",void 0);_.p([_.U({value:"observe_once"}),_.P("design:type",String)],aR.prototype,"observePrescanOption",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],aR.prototype,"roundedContainer",void 0);
_.p([_.$9("thumbnail"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aR.prototype,"thumbnailChanged_",null);_.p([_.$9("delayedSrc"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aR.prototype,"delayedSrcChanged_",null);_.p([_.FY("thumbnail.placeholderColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aR.prototype,"observePlaceholderColor_",null);
_.p([_.Ok({is:"yt-img-shadow",disableElementRegistration:!0})],aR);var NSJ=_.ou("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.oU()(aR,"yt-img-shadow",function(){if(q9q===void 0){var q=document.createElement("template");_.Q(q,'\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">');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;HW1===void 0&&(HW1=document.createElement("template"));var y=HW1;b.call(N,y.content.cloneNode(!0),q.content.firstChild);q9q=q}q=q9q;return q},{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 c_A;_.S9=new _.Jw("SCREEN_MANAGER_TOKEN");c_A=new _.Jw("LOG_INITIAL_SCREEN_TOKEN");var bX1=G4({entities:{}});_.WQ=YP(bX1)(bX1.entities,{selectSfvAudioItemPlaybackState:function(q,N){var b,y;q=(y=_.Ji(q,"sfvAudioItemCurrentlyPlayingEntity",N))!=null?y:void 0;return(b=q==null?void 0:q.sfvAudioItemPlaybackState)!=null?b:void 0},
playlistLoopStateEntitySelector:N4d,toggleMenuServiceItemEntitySelector:bZJ});_.LV=_.n(function(q){function N(qe){return _.v(qe,_.FF)}
function b(){var qe=y().isTogglingDisabled||w()&&y().toggledIsTogglingDisabled,RJ=qe||X()?w():!w();D(RJ);f(!1);if(!qe){var tZ;(tZ=F)==null||tZ(!!RJ)}var wA;((wA=E)==null?0:wA())||_.fm(_.tz().resolve(_.S9),y().trackingParams);var rA;if(!RJ||!N(y().defaultButtonViewModel)||(rA=E)!=null&&rA()){var xD;!N(y().toggledButtonViewModel)||((xD=E)==null?0:xD())||_.fm(_.tz().resolve(_.S9),N(y().toggledButtonViewModel).trackingParams)}else _.fm(_.tz().resolve(_.S9),N(y().defaultButtonViewModel).trackingParams)}
var y=q.data,J=q.buttonShapeOverrides,E=q.disableExplicitClickLogging,F=q.onToggle,R=q.style,c=q.useOutlinedIcon,z=q.className,m=function(){var qe,RJ;return w()?(qe=q.animatedTextPropsToggled)==null?void 0:qe.call(q):(RJ=q.animatedTextPropsDefault)==null?void 0:RJ.call(q)},r=_.K3(function(){return m()?Object.assign({},m(),{shouldAnimate:k()}):void 0},void 0,"Zp4uoe"),X=function(){var qe;
return((qe=W())==null?void 0:qe.isToggled)!==void 0},V=_.Z(_.gJ(function(){var qe,RJ,tZ;
return X()?(qe=W())==null?void 0:qe.isToggled:(tZ=J==null?void 0:(RJ=J())==null?void 0:RJ.toggled)!=null?tZ:y().isToggled})),G=V.next().value;
V=V.next().value;var w=G,D=V;V=_.Z(_.gJ(function(){var qe,RJ;return(qe=q.animatedTextPropsToggled)==null?void 0:(RJ=qe.call(q))==null?void 0:RJ.shouldAnimate}));
G=V.next().value;V=V.next().value;var k=G,f=V;G=_.Z(_.QS(!1,void 0,"mq3Zfe"));var L=G.next().value,S=G.next().value,W=_.uR(function(qe){a:{var RJ=y().entityKey,tZ=y().toggledStateEntitySelectorType;if(tZ)switch(tZ){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!RJ)break;qe=_.WQ.selectSfvAudioItemPlaybackState(qe,RJ);if(qe==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){qe={isToggled:!0};break a}if(qe){qe={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":qe=
{isToggled:_.Emn(qe).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":qe={isToggled:_.Emn(qe).includes("engagement-panel-live-chat-item-section")};break a;default:_.M6(new _.IO("Error: entitySelectorType defined but not matched in selector.",qe,tZ))}qe=void 0}return qe}),M=function(){return Object.assign({},J==null?void 0:J(),{onToggle:b,
toggleable:!0,toggled:w(),focused:L()})};
return _.u("toggle-button-view-model",{"on:focusin":_.y0(function(){var qe=_.tz().resolve(_.$f(_.X5));qe&&S(qe.isKeyBoardInUse());return!1}),
"on:focusout":_.y0(function(){S(!1);return!1})},_.u(_.t,{cond:function(){return w()?N(y().toggledButtonViewModel):N(y().defaultButtonViewModel)},
then:function(qe){return _.u(_.Ou,{data:qe,className:z,style:R,useOutlinedIcon:c,buttonOverrides:M,animatedTextProps:r})}}))},"da");
_.LV.idomCompat={callbacks:{onToggle:!0}};_.P$(_.n(function(q){return _.u("yt-toggle-button-view-model",{class:function(){var N;return(N=q.scopingClassName)==null?void 0:N.call(q)}},_.u(_.LV,{data:function(){var N;
return(N=q.data)==null?void 0:N.call(q)},
buttonShapeOverrides:function(){var N;return(N=q.overrides)==null?void 0:N.call(q)},
animatedTextPropsDefault:function(){var N;return(N=q.animatedTextPropsDefault)==null?void 0:N.call(q)},
animatedTextPropsToggled:function(){var N;return(N=q.animatedTextPropsToggled)==null?void 0:N.call(q)},
disableExplicitClickLogging:function(){var N;return(N=q.disableExplicitClickLogging)==null?void 0:N.call(q)},
onToggle:function(N){var b;return(b=q.onToggle)==null?void 0:b.call(q,N)},
style:function(){var N;return(N=q.style)==null?void 0:N.call(q)},
useOutlinedIcon:function(){var N;return(N=q.useOutlinedIcon)==null?void 0:N.call(q)},
className:function(){var N;return(N=q.className)==null?void 0:N.call(q)}}))},"ea"),"yt-toggle-button-view-model",{props:{data:_.F5,
buttonShapeOverrides:_.F5,overrides:_.F5,animatedTextPropsDefault:_.F5,animatedTextPropsToggled:_.F5,disableExplicitClickLogging:_.F5,onToggle:_.W$,style:_.F5,useOutlinedIcon:_.F5,className:_.F5,scopingClassName:_.F5}});var pV=function(){return _.C.apply(this,arguments)||this};
_.Y(pV,_.C);pV.prototype.onTap=function(q){q.stopPropagation();q=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.GK("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:q})):this.ytLiveChatReduxBehavior.dispatch(_.$e("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:q}))};
_.$H.Object.defineProperties(pV.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.engagementState)==null?void 0:q.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var q=_.v(this.data.toggleButton,_.de),N;if(Number(((N=this.likeCountState)==null?void 0:N.likeCountIfIndifferentNumber)||"0")===0){var b;N=((b=this.data.likeCountPlaceholder)==null?void 0:b.content)||""}else{var y,J,E;N=((y=this.likeCountState)==null?void 0:(J=y.likeCountIfIndifferent)==null?void 0:J.content)||((E=this.data.likeCountPlaceholder)==null?void 0:E.content)||""}var F,R;b=((F=this.likeCountState)==null?void 0:(R=
F.likeCountIfLiked)==null?void 0:R.content)||"1";F=_.v(q.toggledButtonViewModel,_.FF);return Object.assign({},q,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.v(q.defaultButtonViewModel,_.FF),{title:N})},toggledButtonViewModel:{buttonViewModel:Object.assign({},F,{title:b})}})}}}});
pV.prototype.onTap=pV.prototype.onTap;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],pV.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],pV.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.BW),_.P("design:type",Object)],pV.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],pV.prototype,"data",void 0);
_.p([_.U({selectorArgs:["data.likeCountEntityKey"],selector:gmD}),_.P("design:type",Object)],pV.prototype,"likeCountState",void 0);_.p([_.U({selectorArgs:["data.engagementStateKey"],selector:tyD}),_.P("design:type",Object)],pV.prototype,"engagementState",void 0);_.p([_.l("data","engagementState"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],pV.prototype,"isLiked",null);
_.p([_.l("data","likeCountState","isLiked"),_.P("design:type",Object),_.P("design:paramtypes",[])],pV.prototype,"toggleButton",null);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],pV.prototype,"onTap",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],pV);
_.a(pV,"yt-live-chat-like-button-view-model",function(){if(EnE===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;Jfo===void 0&&(Jfo=document.createElement("template"));var y=Jfo;b.call(N,y.content.cloneNode(!0),q.content.firstChild);EnE=q}q=EnE;return q},{mode:0});var yo1;var Joq;var PQ=function(){return _.C.apply(this,arguments)||this};
_.Y(PQ,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],PQ.prototype,"data",void 0);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],PQ);
_.a(PQ,"yt-live-chat-paid-message-footer-renderer",function(){if(Joq===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;yo1===void 0&&(yo1=document.createElement("template"));var y=yo1;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Joq=q}q=Joq;return q},{mode:0});var EjR;var gjq;var ZX1;var FLj,RmF=function(){if(FLj!==void 0)return FLj;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;ZX1===void 0&&(ZX1=document.createElement("template"));var y=ZX1;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return FLj=q};var MT=function(){return _.C.apply(this,arguments)||this};
_.Y(MT,_.C);MT.prototype.onTap=function(q){q.stopPropagation()};
_.$H.Object.defineProperties(MT.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var q=_.v(this.data.replyButton,_.FF),N,b,y,J,E,F,R,c=Number(((N=this.replyCountState)==null?void 0:N.replyCountNumber)||"0")===0?(b=this.data)==null?void 0:(y=b.replyCountPlaceholder)==null?void 0:y.content:((J=this.replyCountState)==null?void 0:(E=J.replyCount)==null?void 0:E.content)||((F=this.data)==null?void 0:(R=F.replyCountPlaceholder)==null?void 0:R.content)||"",z;return Object.assign({},
q,{title:c,accessibilityText:(z=this.replyCountState)==null?void 0:z.replyButtonAccessibilityText})}}}});
_.$H.Object.defineProperties(MT,{template:{configurable:!0,enumerable:!0,get:function(){return RmF()}}});
MT.prototype.onTap=MT.prototype.onTap;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],MT.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],MT.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.BW),_.P("design:type",Object)],MT.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],MT.prototype,"data",void 0);
_.p([_.U({selectorArgs:["data.replyCountEntityKey"],selector:function(q,N){return _.Ji(q.entities,"replyCountEntity",N)}}),
_.P("design:type",Object)],MT.prototype,"replyCountState",void 0);_.p([_.l("data","replyCountState"),_.P("design:type",Object),_.P("design:paramtypes",[])],MT.prototype,"buttonViewModel",null);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],MT.prototype,"onTap",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],MT);_.a(MT,"yt-live-chat-reply-button-view-model",function(){return RmF()},{mode:0});var duT;var coR;var oR=function(){var q=_.C.apply(this,arguments)||this;q.ariaLabel="";return q};
_.Y(oR,_.C);
oR.prototype.dataChanged=function(){for(var q=(0,_.yb)(_.ee(this.hostElement).querySelector("#image"));q.firstChild;)q.removeChild(q.firstChild);if(this.data)if(this.data.icon){var N=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(N.polymerController.icon="yt-sys-icons:shield-filled",N.polymerController.defaultToFilled=!0):N.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();q.appendChild(N)}else if(this.data.customThumbnail){N=document.createElement("img");
var b=_.p9n(this.data.customThumbnail.thumbnails,16);b?(N.src=b,q.appendChild(N),N.setAttribute("alt",this.hostElement.ariaLabel||"")):_.M6(new _.IO("Could not compute URL for thumbnail",this.data.customThumbnail))}};
oR.prototype.identity=function(q){return q};
oR.prototype.computeType=function(q){return el(q||void 0)};
oR.prototype.dataChanged=oR.prototype.dataChanged;_.p([_.U(),_.P("design:type",Object)],oR.prototype,"data",void 0);_.p([_.U({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.P("design:type",Object)],oR.prototype,"ariaLabel",void 0);_.p([_.U({computed:"computeType(data)",reflectToAttribute:!0}),_.P("design:type",String)],oR.prototype,"type",void 0);
_.p([_.U({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.P("design:type",String)],oR.prototype,"sharedTooltipText",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.x("live_chat_enable_new_moderator_badge")}}),
_.P("design:type",Boolean)],oR.prototype,"enableNewModeratorBadge",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oR.prototype,"dataChanged",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],oR);
_.a(oR,"yt-live-chat-author-badge-renderer",function(){if(coR===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;duT===void 0&&(duT=document.createElement("template"));var y=duT;b.call(N,y.content.cloneNode(!0),q.content.firstChild);coR=q}q=coR;return q},{mode:0});var uk1;var zmx;var A$=function(){return _.C.apply(this,arguments)||this};
_.Y(A$,_.C);_.g=A$.prototype;_.g.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"}}}}};
_.g.computeBadgesInsideChip=function(q){return q?q.filter(function(N){return el(N.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.g.computeBadgesOutsideChip=function(q){return this.prependChatBadges||!q?[]:q.filter(function(N){N=el(N.liveChatAuthorBadgeRenderer);return N!=="verified"&&N!=="owner"})};
_.g.computeBadgesBeforeChip=function(q){return this.prependChatBadges&&q?q.filter(function(N){N=el(N.liveChatAuthorBadgeRenderer);return N!=="verified"&&N!=="owner"}):[]};
_.g.computeIsHighlighted=function(q,N){var b=!!dhA(q,"owner"),y=!!dhA(q,"verified");q=!!dhA(q,"moderator");return(b||y&&!q)&&!N};
_.g.computeAuthorType=function(q){return RqD(q)};
_.g.computeAuthorClass=function(q,N){return N?(q?q+" ":"")+"single-line":q};
_.g.onSeedColorChanged=function(){_.x("live_chat_author_name_color_usernames")||_.x("live_chat_seed_color_usernames")||_.x("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):_.x("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
A$.prototype.onSeedColorChanged=A$.prototype.onSeedColorChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],A$.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],A$.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],A$.prototype,"authorName",void 0);_.p([_.U(),_.P("design:type",Array)],A$.prototype,"authorBadges",void 0);
_.p([_.U({computed:"computeAuthorType(authorBadges)"}),_.P("design:type",String)],A$.prototype,"authorType",void 0);_.p([_.U({computed:"computeAuthorClass(authorType, singleLine)"}),_.P("design:type",String)],A$.prototype,"authorClass",void 0);_.p([_.U({computed:"computeBadgesInsideChip(authorBadges)"}),_.P("design:type",Array)],A$.prototype,"badgesInsideChip",void 0);_.p([_.U({computed:"computeBadgesOutsideChip(authorBadges)"}),_.P("design:type",Array)],A$.prototype,"badgesOutsideChip",void 0);
_.p([_.U({computed:"computeBadgesBeforeChip(authorBadges)"}),_.P("design:type",Array)],A$.prototype,"badgesBeforeChip",void 0);_.p([_.U({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.P("design:type",Boolean)],A$.prototype,"isHighlighted",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],A$.prototype,"singleLine",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],A$.prototype,"disableHighlighting",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],A$.prototype,"dashboardMoneyFeed",void 0);_.p([_.U({value:_.x("live_chat_prepend_badges"),reflectToAttribute:!0}),_.P("design:type",Boolean)],A$.prototype,"prependChatBadges",void 0);_.p([_.U(),_.P("design:type",String)],A$.prototype,"authorNameColor",void 0);_.p([_.dq("#author-name"),_.P("design:type",HTMLDivElement)],A$.prototype,"username",void 0);
_.p([_.FY("authorNameColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A$.prototype,"onSeedColorChanged",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],A$);
_.a(A$,"yt-live-chat-author-chip",function(){if(zmx===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;uk1===void 0&&(uk1=document.createElement("template"));var y=uk1;b.call(N,y.content.cloneNode(!0),q.content.firstChild);zmx=q}q=zmx;return q},{mode:0});var $u1;var tyE;var e9=function(){var q=_.C.apply(this,arguments)||this;q.debounceCommand=_.vE(function(N){q.ytComponentBehavior.resolveCommand(N)},1500);
return q};
_.Y(e9,_.C);e9.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var q=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",N,b,y=this.isHearted?(N=this.data)==null?void 0:N.unheartCommand:(b=this.data)==null?void 0:b.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.GK("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:q}));(q=_.O_(y))&&this.debounceCommand(q)}};
_.$H.Object.defineProperties(e9.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var q,N;if(!((q=this.data)==null?0:(N=q.creatorThumbnail)==null?0:N.sources))return{};q={thumbnails:[]};N={};N.url=this.data.creatorThumbnail.sources[0].url;q.thumbnails.push(N);return q}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((N=this.engagementState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((N=this.engagementState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((N=this.engagementState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((b=this.engagementState)==null?void 0:b.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}}});
e9.prototype.onTap=e9.prototype.onTap;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],e9.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.BW),_.P("design:type",Object)],e9.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],e9.prototype,"data",void 0);
_.p([_.U({selectorArgs:["data.engagementStateKey"],selector:tyD}),_.P("design:type",Object)],e9.prototype,"engagementState",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],e9.prototype,"thumbnailDetails",null);_.p([_.l("data","engagementState"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],e9.prototype,"isHearted",null);_.p([_.l("data","engagementState"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],e9.prototype,"isEditable",null);
_.p([_.l("data","engagementState"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],e9.prototype,"showCreatorView",null);_.p([_.l("data","engagementState"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],e9.prototype,"showButton",null);_.p([_.l("data","isHearted"),_.P("design:type",String),_.P("design:paramtypes",[])],e9.prototype,"label",null);_.p([_.l("data","isHearted"),_.P("design:type",Object),_.P("design:paramtypes",[])],e9.prototype,"heartHoverText",null);
_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],e9.prototype,"onTap",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],e9);
_.a(e9,"yt-live-chat-creator-heart-view-model",function(){if(tyE===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;$u1===void 0&&($u1=document.createElement("template"));var y=$u1;b.call(N,y.content.cloneNode(!0),q.content.firstChild);tyE=q}q=tyE;return q},{mode:0});var BQ=function(q,N){this.serviceId=new jC1(q,N)};
BQ.prototype.toString=function(){return this.serviceId.toString()};var mul=function(){this.internalMap={}};
_.g=mul.prototype;_.g.contains=function(q){return Object.prototype.hasOwnProperty.call(this.internalMap,q)};
_.g.get=function(q){if(this.contains(q))return this.internalMap[q]};
_.g.set=function(q,N){this.internalMap[q]=N};
_.g.getKeys=function(){return Object.keys(this.internalMap)};
_.g.remove=function(q){delete this.internalMap[q]};var HQ=function(){this.mappings=new mul;this.errorCallbacks=new Set};
HQ.prototype.getModuleId=function(q){return q.serviceId.getModuleId()};
HQ.prototype.get=function(q){var N=this.mappings.get(q.toString());return rox(this,N,q)};
HQ.prototype.getMultipleAsync=function(){var q=_.MB.apply(0,arguments),N=this,b=q.map(function(c){return N.getModuleId(c)}),y=q.map(function(c){return N.mappings.get(c.toString())}).filter(function(c){return c});
if(y.length===q.length)return _.bG(y.map(function(c,z){return rox(N,c,q[z])}));
var J=WY().loadMultiple(b);y=_.lU(b.map(function(c){return J[c]}));
var E=document.hidden,F=-1,R=_.VX("get_async_timeout_ms",-1);R>-1&&(F=setTimeout(function(){_.M6(new _.IO("Module timeout.",b,E,document.hidden))},R));
return _.KJ(y.then(function(){return q.map(function(c){return rox(N,N.mappings.get(c.toString()),c)})}).thenCatch(function(c){for(var z=_.Z(N.errorCallbacks),m=z.next();!m.done;m=z.next())m=m.value,m(c);
throw c;}),function(){clearTimeout(F)})};
HQ.prototype.registerService=function(q,N){this.mappings.set(q.toString(),{type:"mapping",value:N});return q};
var rox=function(q,N,b){switch(N.type){case "mapping":return N.value;case "factory":return N=N.value(),q.mappings.set(b.toString(),{type:"mapping",value:N}),N;default:return _.ol(N)}};
HQ.prototype.onLoadError=function(q){var N=this;this.errorCallbacks.add(q);return function(){N.errorCallbacks.delete(q)}};
_.qJ=new HQ;var XuF=function(){};
_.g=XuF.prototype;
_.g.JSC$14249_getRequest=function(q,N,b){N=N===void 0?{}:N;b=b===void 0?YYx:b;var y=N;if(this.isNavigationCommand()){var J,E=(J=_.v(q==null?void 0:q.commandMetadata,_.gg))==null?void 0:J.url;y=_.$yd(q.clickTrackingParams,!0,!1,E,this.JSC$14249_getClientScreen(y))}else y=_.$yd(q.clickTrackingParams,!1,this.includeCsn);y={context:y};if(J=this.getExtension(q))return this.JSC$14249_buildRequest(y,J,N),J=this.getApiUrl(q),E=Object.assign({},{command:q},this.getRequestConfig(q,N)),y={input:J,requestShell:Ty(J),
innerTubeRequest:y,config:E},y.config.authStrategy?y.config.authStrategy.identity=b:y.config.authStrategy={identity:b},(q=this.JSC$14249_getRequestKey(q,N))&&!y.config.requestKey&&(y.config.requestKey=q),y;q=new _.IO("Error: Failed to create Request from Command.",q);_.po(q)};
_.g.getApiUrl=function(q){var N=_.LD(this.getApiPaths(q)),b;(q=(b=_.v(q.commandMetadata,_.gg))==null?void 0:b.apiUrl)&&(N=q);return nTJ(sVA(N))};
_.g.isNavigationCommand=function(){return!1};
_.g.JSC$14249_getClientScreen=function(){};
_.g.JSC$14249_getRequestKey=function(){};
_.g.getRequestConfig=function(){};
_.$H.Object.defineProperties(XuF.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var NJ=function(){};
_.Y(NJ,XuF);NJ.prototype.JSC$14256_getStoreKey=function(){};
NJ.prototype.JSC$14249_getRequestKey=function(q,N){N=N===void 0?{}:N;return this.JSC$14256_getStoreKey(q,N)};var bP=function(){};
_.Y(bP,NJ);bP.prototype.JSC$14249_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:Ty("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
bP.prototype.getApiPaths=function(){return[]};
bP.prototype.getExtension=function(){};
bP.prototype.JSC$14249_buildRequest=function(){};var Vyj={},jqR=(Vyj.GET_DATASYNC_IDS=K6(bP),Vyj);var xuv,vjx,GXj,lA1,y5,wuT,Y9M,OXE,QqJ;xuv="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");vjx=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.f6=function(q,N,b,y,J,E,F,R,c){this.endpointMap=q;this.networkManager=N;this.authService=b;this.responseProcessorMap=y;this.innertubeResponseStore=J;this.contextProcessors=E;this.asyncContextProcessors=F;this.localInnertubeRouter=R;this.requestSequencer=c;this.inflightRequests=new Map;q.signalEndpointMap||(q.signalEndpointMap={});q.signalEndpointMap=Object.assign({},jqR,q.signalEndpointMap)};
GXj=function(q,N,b,y,J,E,F,R,c){if(_.f6.instance!==void 0){if(y=_.f6.instance,q=[q!==y.endpointMap,N!==y.networkManager,b!==y.authService,J!==y.innertubeResponseStore,E!==y.contextProcessors,F!==y.asyncContextProcessors,R!==y.localInnertubeRouter],q.some(function(z){return z}))throw new _.IO("InnerTubeTransportService is already initialized",q);
}else _.f6.instance=new _.f6(q,N,b,y,J,E,F,R,c)};
_.IE=function(q,N,b){var y=y===void 0?YYx:y;var J=Y9M(q,N);return J?new _.wL(function(E,F){var R,c,z,m,r;return _.d(function(X){switch(X.nextAddress){case 1:return X.yield(J,2);case 2:R=X.yieldResult;c=R.JSC$14249_getRequest(N,b,y);if(!c){F(new _.IO("Error: Failed to build request for command.",N));X.jumpTo(0);break}iI(c.input);m=((z=c.requestShell)==null?void 0:z.mode)==="cors"?"cors":void 0;if(q.authService.syncHeaders){r=QqJ(c.config,m);X.jumpTo(4);break}return X.yield(OXE(c.config,m),5);case 5:r=
X.yieldResult;case 4:E(wuT(q,c,r)),_.hj(X)}})}):_.ra(new _.IO("Error: No request builder found for command.",N))};
lA1=function(q,N,b,y){var J=J===void 0?YYx:J;var E,F,R,c,z,m,r,X,V,G,w,D,k,f,L,S,W,M;return _.d(function(qe){switch(qe.nextAddress){case 1:E=daC(N,q.endpointMap);if(!E)throw new _.IO("Error: No streaming request builder found for command",N);F=E.JSC$14249_getRequest(N,b,J);if(!F)throw new _.IO("Failed to build YtRequest for streaming Command",N);if((R=q.localInnertubeRouter)==null||!R.shouldPreferLocalResponse(F.input,F.innerTubeRequest)){qe.jumpTo(2);break}return qe.yield(q.localInnertubeRouter.localInnertubeResponse(F.input,
F.innerTubeRequest),3);case 3:return c=qe.yieldResult,z={},c.playerResponse&&(y5(q,c.playerResponse,F),z.player=c.playerResponse,(m=y)==null||m(z,c)),c.watchNextResponse&&(y5(q,c.watchNextResponse,F),z.content=c.watchNextResponse,(r=y)==null||r(z,c)),qe.return(z);case 2:V=((X=F.requestShell)==null?void 0:X.mode)==="cors"?"cors":void 0;if(q.authService.syncHeaders){G=QqJ(F.config,V);qe.jumpTo(4);break}return qe.yield(OXE(F.config,V),5);case 5:G=qe.yieldResult;case 4:return k=(D=(w=F.requestShell)==
null?void 0:w.headers)!=null?D:{},F.requestShell=Object.assign({},F.requestShell,{headers:Object.assign({},k,G)}),f=Object.assign({},F.requestShell),L=JSON.stringify(F.innerTubeRequest),F.requestShell.method==="POST"&&(f=Object.assign({},f,{body:L})),S=function(RJ,tZ){y5(q,tZ.playerResponse||tZ.watchNextResponse||tZ.reelItemWatchResponse||tZ.reelWatchSequenceResponse,F);y==null||y(RJ,tZ);_.x("web_watch_stop_scheduler_on_player_response")&&tZ.playerResponse&&liR()},W={},qe.yield(iXM(q.networkManager,
F.input,f,S),6);
case 6:return W=qe.yieldResult,((M=F.config)==null?0:M.responseTick)&&_.Q6(F.config.responseTick),qe.return(W)}})};
_.ZG=function(q,N,b,y,J){J=J===void 0?{authStrategy:{identity:YYx}}:J;var E=E===void 0?!0:E;var F=function(){};
F=HOA(ean(b));N.context||(N.context=_.$yd(y,E));return new _.wL(function(R){var c,z,m,r,X;return _.d(function(V){if(V.nextAddress==1)return c=sVA(b),z=_.I$(c),q.authService.syncHeaders?(m=QqJ(J,z),V.jumpTo(2)):V.yield(OXE(J,z),3);V.nextAddress!=2&&(m=V.yieldResult);r=nTJ(sVA(b));X={input:r,requestShell:Ty(r),innerTubeRequest:N,config:J};R(wuT(q,X,m,F));_.hj(V)})})};
y5=function(q,N,b){var y;if(N&&!(N==null?0:(y=N.sequenceMetaData)==null?0:y.skipProcessing)&&q.responseProcessorMap){y=_.Z(xuv);for(var J=y.next();!J.done;J=y.next())J=J.value,q.responseProcessorMap[J]&&q.responseProcessorMap[J].handleResponse(N,b)}};
wuT=function(q,N,b,y){y=y===void 0?function(){}:y;
var J,E,F,R,c,z,m,r,X,V,G,w,D,k,f,L,S,W,M,qe,RJ,tZ,wA,rA,xD,IJ,sJ,Sn,YE,xE,qv,mM,Ox,h4,QC,rp,Fd,yF,vR,ej;return _.d(function(Go){switch(Go.nextAddress){case 1:F=(J=N.config)==null?void 0:(E=J.storeStrategy)==null?void 0:E.storeKey;if(!(F&&q.innertubeResponseStore&&q.innertubeResponseStore.has(F))||((R=N.config)==null?0:(c=R.storeStrategy)==null?0:c.disableCache)){Go.jumpTo(2);break}return Go.yield(q.innertubeResponseStore.get(F),3);case 3:if((z=Go.yieldResult)&&!z.isExpired())return Go.return(Promise.resolve(_.PD(z)));
case 2:if(!((m=N)==null?0:(r=m.innerTubeRequest)==null?0:r.context)){Go.jumpTo(4);break}X=N.innerTubeRequest.context;if(!(q.asyncContextProcessors&&q.asyncContextProcessors.length>0)){Go.jumpTo(5);break}V=[];G=_.Z(q.asyncContextProcessors);for(w=G.next();!w.done;w=G.next())D=w.value,k=D.processContext(N),k.wrappedPromise_&&V.push(k.wrappedPromise_);if(!(V.length>0)){Go.jumpTo(5);break}return Go.yield(Promise.all(V),5);case 5:f=_.Z(q.contextProcessors||[]),L=f.next();case 8:if(L.done){Go.jumpTo(4);
break}S=L.value;return Go.yield(S.processContext(X),9);case 9:L=f.next();Go.jumpTo(8);break;case 4:if((W=q.localInnertubeRouter)==null||!W.shouldPreferLocalResponse(N.input,N.innerTubeRequest)){Go.jumpTo(12);break}return Go.yield(q.localInnertubeRouter.localInnertubeResponse(N.input,N.innerTubeRequest),13);case 13:return M=Go.yieldResult,y5(q,M,N),Go.return(M);case 12:return(tZ=(RJ=N.config)==null?void 0:RJ.requestKey)&&q.inflightRequests.has(tZ)?qe=q.inflightRequests.get(tZ):(wA=JSON.stringify(N.innerTubeRequest),
IJ=(xD=(rA=N.requestShell)==null?void 0:rA.headers)!=null?xD:{},N.requestShell=Object.assign({},N.requestShell,{headers:Object.assign({},IJ,b)}),sJ=Object.assign({},N.requestShell),N.requestShell.method==="POST"&&(sJ=Object.assign({},sJ,{body:wA})),((Sn=N.config)==null?0:Sn.requestTick)&&_.Q6(N.config.requestTick),YE=function(){return q.networkManager.fetch(N.input,sJ,N.config)},qe=q.requestSequencer?KLR(q.requestSequencer,N,YE):YE(),tZ&&q.inflightRequests.set(tZ,qe)),Go.yield(qe,14);
case 14:(xE=Go.yieldResult)&&_.x("web_streaming_player")&&Array.isArray(xE)&&(xE=xE[0].playerResponse);if(xE&&"error"in xE&&((qv=xE)==null?0:(mM=qv.error)==null?0:mM.details))for(Ox=xE.error.details,h4=_.Z(Ox),QC=h4.next();!QC.done;QC=h4.next())rp=QC.value,(Fd=rp["@type"])&&vjx.indexOf(Fd)>-1&&(delete rp["@type"],xE=rp);tZ&&q.inflightRequests.has(tZ)&&q.inflightRequests.delete(tZ);((yF=N.config)==null?0:yF.responseTick)&&_.Q6(N.config.responseTick);if(xE||(vR=q.localInnertubeRouter)==null||!vR.canProvideFallbackResponse(N.input,
N.innerTubeRequest)){Go.jumpTo(15);break}return Go.yield(q.localInnertubeRouter.localFallbackInnertubeResponse(N.input,N.innerTubeRequest),16);case 16:xE=Go.yieldResult;case 15:return y5(q,xE,N),((ej=N.config)==null?0:ej.processorTick)&&_.Q6(N.config.processorTick),y(),Go.return(xE||void 0)}})};
_.C6=function(q,N){return R1A(N,q.endpointMap)};
Y9M=function(q,N){q=c1J(N,q.endpointMap);if(q!==void 0)return Promise.resolve(q)};
OXE=function(q,N){var b,y,J,E;return _.d(function(F){if(F.nextAddress==1){J=(b=q)==null?void 0:(y=b.authStrategy)==null?void 0:y.sessionIndex;var R=F.yield;var c=_.bG(MNe({sessionIndex:J}));return R.call(F,c,2)}E=F.yieldResult;return F.return(Promise.resolve(Object.assign({},uNz(N),E)))})};
QqJ=function(q,N){var b;q=q==null?void 0:(b=q.authStrategy)==null?void 0:b.sessionIndex;b=MNe({sessionIndex:q});return Object.assign({},uNz(N),b)};var Du1,hmM,kXR,Uu1,fA1,Cro,sqj,njq,g7,aAx,S9o,TSx,WLx;Du1=0;hmM=/tone[1-5]/;kXR=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");Uu1="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
fA1=Number.MAX_SAFE_INTEGER;Cro=RegExp("\ufe0f","g");_.J0=function(q){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;q&&_.IA1(this,q)};
_.IA1=function(q,N){try{_.iv(N,{context:q,onSuccess:function(y,J){Array.isArray(J)?q.load(J):(y=new _.IO("Emoji manager JSON response was not an array!",{response:J}),_.po(y))},
onError:function(y){y=new _.IO("Failed to retrieve emoji manager initial JSON data!",{url:N,statusCode:_.G1(y).toString()});_.M6(y)}})}catch(y){var b=new _.IO("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:N});
_.M6(b)}};
_.J0.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.J0.prototype.load=function(q,N){if(N)if(q.length)q=q.concat(N.emojis);else{this.emojis=N.emojis;this.emojiMap=N.emojiMap;this.emojiShortcutMap=N.emojiShortcutMap;this.emojiShortcutCharMap=TSx(N);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=N.emojiRegex;return}this.emojis=[].concat(_.a9(new Set(this.emojis.concat(q))));this.hasInitializedShortcutCharMap=!1;q=Array(this.emojis.length);for(N=0;N<this.emojis.length;N++){var b=this.emojis[N];if(b.emojiId){this.emojiMap[b.emojiId]=b;this.emojiMap[b.emojiId].index=
N;for(var y=0;b.shortcuts&&y<b.shortcuts.length;y++)this.emojiShortcutMap[b.shortcuts[y].toLocaleLowerCase()]=b;q[N]=b.isCustomEmoji&&b.shortcuts?b.shortcuts[0]:b.emojiId}}q.sort(function(J,E){return E.length-J.length});
if(q.length)try{this.emojiRegex=new RegExp(q.join("|").replace("*","\\*"),"gi")}catch(J){this.emojiRegex=/$./}else this.emojiRegex=/$./};
sqj=function(q,N){N=_.Z(N);for(var b=N.next();!b.done;b=N.next()){var y=b.value;if(y.emojiId&&q.emojiMap[y.emojiId]){b=Object.assign({},q.emojiMap[y.emojiId],y);q.emojiMap[y.emojiId]=b;var J=void 0;b.index&&((J=q.emojis[b.index])==null?void 0:J.emojiId)===y.emojiId&&(q.emojis[b.index]=b);y=void 0;if((y=b.shortcuts)==null?0:y.length)for(q.hasInitializedShortcutCharMap=!1,y=_.Z(b.shortcuts),J=y.next();!J.done;J=y.next())q.emojiShortcutMap[J.value.toLocaleLowerCase()]=b}}};
njq=function(q){var N,b;_.d(function(y){if(y.nextAddress==1)return y.yield(_.oM.getInstance(),2);if(y.nextAddress!=3)return(N=y.yieldResult)?y.yield(N.get("ytlc-emoji-pref"),3):y.return();(b=y.yieldResult)&&sqj(q,Object.keys(b).map(function(J){return{emojiId:J,stickyPrefId:b[J]}}).filter(function(J){return!!J.emojiId&&!!J.stickyPrefId}));
_.hj(y)})};
_.E6=function(q,N,b){return(q=q.emojiMap[N])&&(!q.isLocked||b!==void 0&&b)?q:void 0};
g7=function(q,N,b){b=_.E6(q,N,b===void 0?!1:b);var y=N.match("\u200d");b&&q.skinTone!==0&&(q=(y==null?void 0:y.length)===1?_.E6(q,N.replace("\u200d",kXR[q.skinTone]+"\u200d")):_.E6(q,N+kXR[q.skinTone]))&&(b=q);return b};
aAx=function(q,N){var b=q.emojiMap[N];return(b==null?0:b.stickyPrefId)?q.emojiMap[b.stickyPrefId]:g7(q,N)};
_.HG=function(q,N){q=q.emojiShortcutMap[N.toLocaleLowerCase()];return!q||q.isLocked?null:q};
S9o=function(q,N,b){return TSx(q,b===void 0?!1:b)[N]||{}};
TSx=function(q,N){N=N===void 0?!1:N;if(!q.hasInitializedShortcutCharMap){q.hasInitializedShortcutCharMap=!0;for(var b=0;b<q.emojis.length;b++){var y=q.emojis[b];if(!(y.isLocked||N&&y.isCustomEmoji&&y.emojiId&&!q.pickerCustomEmojiIds.includes(y.emojiId)))for(var J=0;y.shortcuts&&J<y.shortcuts.length;J++){var E=y.shortcuts[J];E.startsWith(":_")&&y.isCustomEmoji&&(q.emojiShortcutCharMap[":_"]==null&&(q.emojiShortcutCharMap[":_"]=Object.create(null)),q.emojiShortcutCharMap[":_"][E]=y);if(!(E.length<3||
!y.isCustomEmoji&&hmM.test(E))){var F=E.substr(0,3).toLocaleLowerCase();q.emojiShortcutCharMap[F]==null&&(q.emojiShortcutCharMap[F]=Object.create(null));q.emojiShortcutCharMap[F][E]=y}}}}return q.emojiShortcutCharMap};
_.J0.prototype.createEmoji=function(q,N){N=N===void 0?!0:N;var b=document.createElement("img");q.isCustomEmoji||b.classList.add("small-emoji");b.classList.add("emoji");b.classList.add("yt-formatted-string");b.src=q.image?_.Mo(q.image.thumbnails,this.emojiSize)||"":"";var y=void 0;q.image&&q.image.accessibility&&q.image.accessibility.accessibilityData&&(y=q.image.accessibility.accessibilityData.label);b.alt=y?y:(q.isCustomEmoji&&q.shortcuts?q.shortcuts[0]:q.emojiId)||"";q.isCustomEmoji&&(b.dataset.emojiId=
q.emojiId);_.HV&&(b.setAttribute("contenteditable","false"),b.setAttribute("unselectable","on"));N&&(q.shortcuts&&q.shortcuts.length&&b.setAttribute("shared-tooltip-text",q.shortcuts[0]),b.id="emoji-"+Du1++);return b};
_.J0.prototype.createDocumentFragment=function(q,N,b,y){N=N===void 0?!1:N;b=b===void 0?!0:b;y=y===void 0?!1:y;q=q.replace(Cro,"");for(var J=document.createDocumentFragment(),E=0,F,R=0;(F=this.emojiRegex.exec(q))!=null;){var c=_.E6(this,F[0])||_.HG(this,F[0]);!c||c.isCustomEmoji&&!N||(c=this.createEmoji(c,b),E!==F.index&&J.appendChild(document.createTextNode(q.substring(E,F.index))),J.appendChild(c),E=F.index+F[0].length,R++)}if(!y||R)return J.appendChild(document.createTextNode(q.substr(E))),J};
WLx=function(q,N,b){var y,J,E,F,R,c,z,m,r;return _.d(function(X){if(X.nextAddress==1){if(!N.emojiId||!q.emojiMap[N.emojiId])return X.return();y=Object.assign({},q.emojiMap[N.emojiId],{stickyPrefId:b});q.emojiMap[N.emojiId]=y;N.index&&((J=q.emojis[N.index])==null?void 0:J.emojiId)===N.emojiId&&(q.emojis[N.index]=y);if((E=N.shortcuts)==null?0:E.length)for(q.hasInitializedShortcutCharMap=!1,F=_.Z(N.shortcuts),R=F.next();!R.done;R=F.next())c=R.value,q.emojiShortcutMap[c.toLocaleLowerCase()]=y;return X.yield(_.oM.getInstance(),
2)}if(X.nextAddress!=4)return(z=X.yieldResult)?X.yield(z.get("ytlc-emoji-pref"),4):X.jumpTo(0);r=(m=X.yieldResult)!=null?m:{};r[N.emojiId]=b;return X.yield(z.set("ytlc-emoji-pref",r,fA1),0)})};
_.Zt=new _.J0;var Pr4;_.Fx={};
Pr4={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.x("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:_.x("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 sR(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 q=_.ee(this.hostElement||this).querySelector("#inline-action-button-container");q&&q.setAttribute("aria-hidden","true");this.menuButton=_.ee(this.hostElement).querySelector("#menu-button")},
attached:function(){var q=this.menuButton;q&&(q.addEventListener("focusin",_.gq(this,this.onMenuButtonFocus_)),q.addEventListener("focusout",_.gq(this,this.onMenuButtonBlur_)))},
detached:function(){var q=this.menuButton;q&&(q.removeEventListener("focusin",_.gq(this,this.onMenuButtonFocus_)),q.removeEventListener("focusout",_.gq(this,this.onMenuButtonBlur_)))},
identity:_.CC,truthy:function(q){return!!q},
computeTimestampString:function(q){return q?q.timestampText?this.getSimpleString(q.timestampText):this.TIME_FORMATTER.format(new Date(q.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(q){return q},
computeMenuVisible_:function(q,N){return q||N},
computeHasInlineActionButtons:function(q){if(!q)return!1;var N,b;return!((N=q.inlineActionButtons)==null||!N.length)||!((b=q.additionalInlineActionButtons)==null||!b.length)},
createDocumentFragmentFromString:function(q){var N=_.Zt.createDocumentFragment.bind(_.Zt),b;if((b=this.participantsManager)==null||!b.viewerRegex)return N(q);b=document.createDocumentFragment();for(var y=0,J;(J=this.participantsManager.viewerRegex.exec(q))!=null;){if(J.index>0){var E=":"+J[0]+":";if((_.E6(_.Zt,E)||_.HG(_.Zt,E))&&q.indexOf(E)===J.index-1)continue}b.appendChild(N(q.substring(y,J.index)));y=document.createElement("span");y.appendChild(N(J[0]));y.classList.add("mention");b.appendChild(y);
y=J.index+J[0].length}b.appendChild(N(q.substring(y)));return b},
createDocumentFragment:function(q){var N=document.createDocumentFragment();if(q.simpleText)return N.appendChild(this.createDocumentFragmentFromString(q.simpleText)),N;if(!q.runs)return N;for(var b=0;b<q.runs.length;b++){var y=q.runs[b];if(y.emoji)N.appendChild(_.Zt.createEmoji(y.emoji));else if(y.text)if(y.navigationEndpoint){var J=document.createElement("a");J.classList.add("yt-simple-endpoint");u3n(J,y.navigationEndpoint);_.ee(J).appendChild(this.createDocumentFragmentFromString(y.text));N.appendChild(J)}else N.appendChild(this.createDocumentFragmentFromString(y.text))}return N},
hasModerationOverlayVisible:function(){var q;return((q=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:q.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(q){q.composedPath().some(function(N){return(N=N instanceof Element?N:null)?N.tagName&&(N.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||N.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.x("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(q)},
colorFromDecimal:function(q){return WQR(q)},
markAsDeleted:function(q,N){this.set("data.deletedStateMessage",q);this.set("data.showOriginalContentMessage",N)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(q){if(this.data.contextMenuEndpoint){var N=_.tz().resolve(_.$8),b=this.data.contextMenuEndpoint,y;(y=_.f6.instance)&&_.C6(y,b)?(N=LLE(N,b),y=_.ZG(y,{},N)):y=_.puF(N,b);y.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);q&&q.stopPropagation()}},
handleGetContextMenuResponse_:function(q){var N=_.f6.instance;N&&_.C6(N,{liveChatEndpoint:{}})||(q=q.response);q.liveChatItemContextMenuSupportedRenderers&&q.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(q.liveChatItemContextMenuSupportedRenderers.menuRenderer);q.actions&&_.By(this.hostElement,"yt-live-chat-actions",[q.actions])},
handleGetContextMenuError:function(q){if(q instanceof Error||q instanceof Object||q instanceof String)var N=q;_.po(new _.IO("Error encountered calling GetLiveChatItemContextMenu",N))},
showContextMenu_:function(q){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:q}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.e2(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.e2(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.Fx.YtLiveChatItemBehavior=[Pr4,_.qT.YtComponentBehavior,_.lw.YtOpenPopupBehavior];_.Rk=function(){};var MyT;var ojx;var Ao1;var emM;var d7=function(){var q=_.C.apply(this,arguments)||this;q.active=!1;q.identity=_.CC;return q};
_.Y(d7,_.C);d7.prototype.dataChanged=function(){this.active=!1};
d7.prototype.onClick=function(){_.e2(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
d7.prototype.dataChanged=d7.prototype.dataChanged;_.p([_.U(),_.P("design:type",Object)],d7.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],d7.prototype,"active",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],d7.prototype,"dataChanged",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],d7);
_.a(d7,"yt-live-chat-text-input-field-suggestion",function(){if(emM===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;Ao1===void 0&&(Ao1=document.createElement("template"));var y=Ao1;b.call(N,y.content.cloneNode(!0),q.content.firstChild);emM=q}q=emM;return q},{mode:0});_.c6=function(q,N,b){return CustomEvent.call(this,q,{detail:{value:N,path:b}})||this};
_.Y(_.c6,CustomEvent);_.uP=function(){var q=_.C.apply(this,arguments)||this;q.viewerName=null;q.actionMap={"yt-live-chat-actions":"onChatMessage_"};q.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];q.PARTICIPANT_TIME_USEC_=3E8;return q};
_.Y(_.uP,_.C);_.g=_.uP.prototype;_.g.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.g.addParticipant=function(q){var N=_.Cne(this.participants,q,function(y,J){y=y[Object.keys(y)[0]];J=J[Object.keys(J)[0]];y=String(_.ao(y.authorName)).toLowerCase();J=String(_.ao(J.authorName)).toLowerCase();return y<J?-1:y==J?0:1}.bind(this));
if(N>=0){var b=this.participants[N];b[Object.keys(b)[0]].timestampUsec&&this.splice("participants",N,1,q)}else this.splice("participants",-N-1,0,q);q=q[Object.keys(q)[0]];N=_.ao(q.authorName).toLocaleLowerCase();b=N.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(b)||(this.allParticipantsCharMap_[b]={});this.allParticipantsCharMap_[b][N]=q};
_.g.getAuthorsFromPrefix=function(q){return this.allParticipantsCharMap_.hasOwnProperty(q)?this.allParticipantsCharMap_[q]:null};
_.g.computeViewerRegex_=function(q){if(!q)return null;q=q.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var N=q.indexOf("@")===0&&_.x("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(N+q.replace(/ /g,"\\s*")+"|^"+q.replace(/ /g,"\\s*")+"$|^"+q.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+q.replace(/ /g,"\\s*")+"$|(?<=\\s)"+q.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.g.checkForStaleParticipants_=function(){var q=this;this.trimOldParticipants_();this.asyncHandle_&&XJZ(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.k9(function(){q.checkForStaleParticipants_()},3E4))};
_.g.onChatMessage_=function(q){var N=this,b=Date.now()*1E3;q.forEach(function(y){if(y=_.v(y,UMx)){y=y.item;var J=Object.keys(y)[0];N.SUPPORTED_ITEM_TYPES_.indexOf(J)!=-1&&y[J].timestampUsec>=b-N.PARTICIPANT_TIME_USEC_&&N.addParticipant(y)}},this);
this.checkForStaleParticipants_()};
_.g.trimOldParticipants_=function(){for(var q=Date.now()*1E3,N=this.participants.length-1;N>=0;N--){var b=this.participants[N];b=b[Object.keys(b)[0]];b.timestampUsec&&b.timestampUsec<q-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",N,1)}};
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],_.uP.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],_.uP.prototype,"viewerName",void 0);_.p([_.U({computed:"computeViewerRegex_(viewerName)"}),_.P("design:type",Object)],_.uP.prototype,"viewerRegex",void 0);_.p([_.U({value:function(){return[]},
notify:!0}),_.P("design:type",Array)],_.uP.prototype,"participants",void 0);_.p([_.Ok({is:"yt-live-chat-participants-manager",noInjection:!0})],_.uP);var BSq=/.*([:@#].*?)$/,z9=/\u00a0/g,HXE=String.fromCharCode(160),qWj={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"},$w=function(){var q=_.C.apply(this,arguments)||this;q.disabled=!1;q.liveChatRichMessageInput=null;q.messageInput=null;q.isValidWithNoInputText=!1;q.suggestions=[];q.emojiManager=_.Zt;q.inputMethodEditorActive=
!1;q.suggestionIndex=-1;q.JSC$14307_lastSuggestionRange=null;return q};
_.Y($w,_.C);_.g=$w.prototype;_.g.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.g.attached=function(){_.qd&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.g.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.g.dataChanged=function(){if(!this.ignoreColorMapping){var q=!1,N={},b;for(b in qWj)this.data&&this.data.hasOwnProperty(b)&&(N[qWj[b]]=this.colorFromDecimal(this.data[b]),q=!0);q&&_.Jm(this.hostElement,N)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.g.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.g.colorFromDecimal=function(q){q=Math.floor(Number(q));return"rgba("+[q>>16&255,q>>8&255,q&255,(q>>24&255)/255].join()+")"};
_.g.preventDrag=function(q){q.dataTransfer&&(q.dataTransfer.dropEffect="none");q.preventDefault()};
_.g.preventResize=function(q){q.returnValue=!1};
_.g.onInputChange=function(){var q=this.characterCount,N=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&N&&N.remove();if(!N&&this.characterCount>this.maxCharacterLimit){var b=window.getSelection();if(b){var y=b.getRangeAt(0);b.removeAllRanges();b.addRange(y)}}if(b=this.getCurrentRange())y=this.calculateTextBeforeRange(b),this.completeEmojisInRange(b,y,!0)||this.updateSuggestions(b,y);y=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(y);
_.e2(this.hostElement,"yt-live-chat-message-input-change",y);N&&this.characterCount===0&&N.remove();b&&b.commonAncestorContainer.parentElement.id==="input"&&b.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>q):b&&!b.collapsed&&b.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(q=this.input.childNodes.length-1;q>=0;q--)this.input.childNodes[q].nodeName==="BR"&&this.input.childNodes[q].remove()};
_.g.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.g.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var q=this.getCurrentRange();q&&q.commonAncestorContainer.parentElement.id==="input"&&q.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.g.mergeOverflowText=function(q){if(q){var N=document.createRange();N.selectNodeContents(q);N=N.extractContents();this.input.insertBefore(N,q)}};
_.g.checkRangeAtEndOfInput=function(){var q=this.getCurrentRange();if(q){var N=_.ee(this.hostElement).querySelector("#overflow-text"),b=document.createRange();N&&N.previousSibling?N.previousSibling instanceof HTMLImageElement?b.selectNode(N.previousSibling):b.selectNodeContents(N.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?b.selectNode(this.input.lastChild):b.selectNodeContents(this.input.lastChild));b.collapse(!1);return b.isPointInRange(q.startContainer,
q.startOffset)}return!1};
_.g.handleOverflowText=function(q){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var N=_.ee(this.hostElement).querySelector("#overflow-text"),b=this.getCurrentRange();this.input.normalize();q=this.checkRangeAtEndOfInput()&&q;this.mergeOverflowText(N);for(var y,J=0,E=0,F,R=this.input.childNodes,c=0;c<R.length;c++){var z=R[c];z instanceof Text?(E+=z.textContent.length,E>this.maxCharacterLimit&&(y=z,J=this.maxCharacterLimit+z.textContent.length-E)):z instanceof HTMLImageElement&&
(y=void 0,E=z.dataset.emojiId&&((y=this.data)==null?0:y.emojiCharacterCount)?E+this.data.emojiCharacterCount:E+z.alt.length,y=this.input,J=c);if(E>this.maxCharacterLimit&&y){F=document.createRange();F.collapse(!1);N?(E=this.input.lastChild.previousSibling,E instanceof Text?F.setEnd(this.input.lastChild.previousSibling,E.textContent.length):E instanceof HTMLImageElement&&F.setEnd(this.input,this.input.childNodes.length-1)):F.selectNodeContents(this.input);F.setStart(y,J);break}}F&&(y=!1,b&&(q=F.isPointInRange(b.startContainer,
b.startOffset-1)),N||(N=document.createElement("span"),N.id="overflow-text",N.textContent="",N.setAttribute("contenteditable","true"),_.ee(_.ee(this.hostElement).querySelector("#input")).appendChild(N),y=!0),N&&(b=F.extractContents(),N.insertBefore(b,N.firstChild),q&&N.firstChild&&(b=document.createRange(),y?b.setStartAfter(N.lastChild):b.setStartAfter(N.firstChild),b.collapse(!0),N=window.getSelection(),N.removeAllRanges(),N.addRange(b))))}};
_.g.checkForDuplicateSpans=function(){for(var q=0;q<this.input.childNodes.length;q++){var N=this.input.childNodes[q];if(N.nodeName==="SPAN"){var b=document.createRange();b.selectNodeContents(N);b=b.extractContents();this.input.insertBefore(b,N);N.remove()}}this.handleOverflowText(!0)};
_.g.getCurrentRange=function(){var q=window.getSelection();return q&&q.rangeCount?q.getRangeAt(0).cloneRange():null};
_.g.getInputRange=function(){var q=this.getCurrentRange();if(q){for(var N=q.commonAncestorContainer,b=!1,y=_.ee(this.hostElement).querySelector("#input");N;){if(N===y){b=!0;break}N=N.parentNode}b||(q=null)}q||(q=this.getRangeAtEnd());return q};
_.g.getRangeAtEnd=function(){var q=document.createRange(),N=_.ee(this.hostElement).querySelector("#input").lastChild;!N||N.nodeName!=="#text"&&N.nodeName!=="SPAN"?(q.selectNodeContents(_.ee(this.hostElement).querySelector("#input")),q.collapse(!1)):N.nodeName==="#text"?q.setStart(N,N.textContent.length):q.setStart(N,N.childNodes.length);return q};
_.g.getChatParticipantSuggestions=function(q,N,b,y){var J=_.x("live_chat_enable_handles_web_text_input_update");if(N)for(var E in N)if(E.indexOf(q)===0||J&&E.indexOf(b+q)===0){var F=N[E],R=_.ao(F.authorName);y.push({suggestion:{author:!0,authorType:b,image:F.authorPhoto,alt:R,text:R}});if(y.length>=64)break}};
_.g.getSuggestions=function(q){var N=[],b=q.substring(0,3),y=S9o(_.Zt,b,!0);if(y)for(var J in y)if(J.toLocaleLowerCase().indexOf(q)===0){var E=y[J];if(E&&E.emojiId){if(E=aAx(_.Zt,E.emojiId)){var F=void 0,R=void 0,c=void 0,z=void 0,m=((F=E.image)==null?0:(R=F.accessibility)==null?0:(c=R.accessibilityData)==null?0:c.label)||E.isCustomEmoji?(z=E.shortcuts)==null?void 0:z[0]:E.emojiId;N.push({suggestion:{emoji:!0,image:E.image,alt:m,text:J,textToInsertWhenSelected:E.isCustomEmoji?J:m}})}if(N.length>=
64)break}}if(!this.participantsManager)return null;if(b.indexOf("@")===0||b.indexOf("#")===0)y=b.charAt(0),q=q.substring(1),J=_.x("live_chat_enable_handles_web_text_input_update"),b.indexOf("@")===0&&J&&(J=this.participantsManager.getAuthorsFromPrefix(b.substring(0,2)),this.getChatParticipantSuggestions(q,J,y,N)),b=b.substring(1),b=this.participantsManager.getAuthorsFromPrefix(b),this.getChatParticipantSuggestions(q,b,y,N);return N?N.sort(function(r,X){return X.suggestion.text<r.suggestion.text?-1:
X.suggestion.text===r.suggestion.text?0:1}):null};
_.g.insertSuggestion=function(q){var N=_.x("live_chat_enable_handles_web_text_input_update"),b=q.authorType;N=q.text.indexOf(b)===0&&N?q.text+HXE:b+q.text+HXE;q.emoji?this.insertTextAtRange(this.JSC$14307_lastSuggestionRange,q.textToInsertWhenSelected||""):q.author&&this.insertTextAtRange(this.JSC$14307_lastSuggestionRange,N)};
_.g.updateSuggestionsAtCaret=function(){var q=this.getCurrentRange();q&&this.updateSuggestions(q,this.calculateTextBeforeRange(q))};
_.g.offsetStartOfRangeBy=function(q,N){for(;N>0;)if(q.startOffset-N>=0){q.setStart(q.startContainer,q.startOffset-N);break}else{N=q.startContainer instanceof HTMLImageElement?N-q.startContainer.alt.length:N-q.startOffset;var b=q.startContainer.previousSibling;if(!b){q.setStart(q.startContainer,0);break}if(_.x("live_chat_require_space_for_autocomplete_emoji")){var y=void 0,J=void 0;q.setStart(b,((y=b)==null?void 0:(J=y.textContent)==null?void 0:J.length)||0)}else q.setStart(b,b.childNodes.length||
0)}};
_.g.updateSuggestions=function(q,N){var b=this;this.JSC$14307_lastSuggestionRange&&(this.JSC$14307_lastSuggestionRange.detach(),this.JSC$14307_lastSuggestionRange=null);if((N=BSq.exec(N))&&N.length&&(N=N[N.length-1].toLocaleLowerCase(),N.length>2&&(this.offsetStartOfRangeBy(q,N.length),this.JSC$14307_lastSuggestionRange=q,(q=this.getSuggestions(N))&&q.length))){this.suggestions=q;_.ut(this,function(){_.ee(b.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(q.length-1);return}this.dropdown.opened=!1};
_.g.completeEmojisInRange=function(q,N,b){var y=N.replace(/[\s\xa0]+$/,"");N=N.length-y.length;y=y.split(" ");y=y[y.length-1].trim().toLocaleLowerCase();var J=y.lastIndexOf(":");if(b&&!N&&J!==y.length-1)return!1;J!==-1&&(b=y.lastIndexOf(":",J-1),b!==-1&&(y=y.substring(b)));if((b=_.HG(_.Zt,y))&&b.emojiId){b=aAx(_.Zt,b.emojiId)||null;this.offsetStartOfRangeBy(q,y.length+N);var E,F,R,c;y=(((E=b)==null?0:E.isCustomEmoji)?(F=b)==null?void 0:(R=F.shortcuts)==null?void 0:R[0]:(c=b)==null?void 0:c.emojiId)||
"";N&&(y+=HXE);this.insertTextAtRange(q,y);this.dropdown.opened=!1;return!0}return!1};
_.g.onSuggestion=function(q){this.insertSuggestion(q.detail);this.dropdown.opened=!1};
_.g.onKeyPress=function(q){q.keyCode===13&&(q.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.e2(this.hostElement,"yt-live-chat-send-message"))};
_.g.completeEmojis=function(){var q=document.createRange(),N=_.ee(this.hostElement).querySelector("#input").lastChild;N?q.setStart(N,N.childNodes.length):(q.selectNodeContents(_.ee(this.hostElement).querySelector("#input")),q.collapse(!1));this.completeEmojisInRange(q,this.calculateTextBeforeRange(q),_.x("live_chat_require_space_for_autocomplete_emoji"))};
_.g.maybePreventTextFormatting=function(q){!_.Js||!q.ctrlKey&&!q.metaKey||q.keyCode!==66&&q.keyCode!==73||(q.stopImmediatePropagation(),q.preventDefault())};
_.g.onKeyDown=function(q){this.maybePreventTextFormatting(q);if(this.dropdown.opened)switch(q.keyCode){case 27:this.dropdown.opened=!1;q.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;q.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);q.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),q.preventDefault()}};
_.g.onKeyUp=function(q){switch(q.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.HV)this.onInputChange()};
_.g.changeSuggestionIndex=function(q){if(this.dropdown.opened){var N=_.ee(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<N.children.length&&(N.children[this.suggestionIndex].active=!1);var b=this.suggestions.length;this.suggestionIndex=(q+b)%b;q=N.children[this.suggestionIndex];q.active=!0;N.scrollTop=q.offsetTop}};
_.g.onInputPaste=function(q){q.preventDefault();(q=q.clipboardData)&&q.types&&(q=q.getData("text/plain")||"",q=q.replace(/\n/g,""),this.insertText(q));(q=this.getCurrentRange())&&q.commonAncestorContainer.parentElement.id==="input"&&q.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.g.onFocus=function(){this._setFocused(!0)};
_.g.onBlur=function(){this._setFocused(!1)};
_.g.insertText=function(q){this.insertTextAtRange(this.getInputRange(),q)};
_.g.insertTextAtRange=function(q,N){if(q&&(q.collapsed||q.deleteContents(),N=_.Zt.createDocumentFragment(N,!0,!1))){for(var b=_.Z((N==null?void 0:N.childNodes)||[]),y=b.next();!y.done;y=b.next()){y=y.value;var J=void 0,E=void 0,F=void 0,R=void 0,c=void 0;(F=(J=window)==null?void 0:(E=J.ShadyCSS)==null?void 0:E.ScopingShim)==null||(c=(R=F).scopeNode)==null||c.call(R,y,this.hostElement.localName)}b=N.lastChild;q.insertNode(N);this.focused||this.input.focus();if(this.focused){q=q.cloneRange();q.selectNodeContents(b);
q.collapse(!1);if(N=window.getSelection())N.removeAllRanges(),N.addRange(q);q.commonAncestorContainer.parentElement.id==="input"&&q.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}q=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(q);_.e2(this.hostElement,"yt-live-chat-message-input-change",q)}};
_.g.setLiveChatRichMessageInput=function(q){_.ee(_.ee(this.hostElement).querySelector("#input")).textContent="";if(q&&q.textSegments){for(var N=0;N<q.textSegments.length;N++){var b=q.textSegments[N];b.text?_.ee(_.ee(this.hostElement).querySelector("#input")).appendChild(_.Zt.createDocumentFragment(b.text,!0,!1)):b.emojiId&&(b=_.E6(_.Zt,b.emojiId))&&_.ee(_.ee(this.hostElement).querySelector("#input")).appendChild(_.Zt.createEmoji(b,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.g.setText=function(q){this.setLiveChatRichMessageInput(q?{textSegments:[{text:q}]}:null)};
_.g.calculateTextBeforeRange=function(q){var N="",b=q.startContainer;if(b&&b instanceof Text){var y;N=((y=b.textContent)==null?void 0:y.substring(0,q.startOffset))||"";b=b.previousSibling}for(;b&&b instanceof Text;)N=b.textContent+N,b=b.previousSibling;return N.replace(z9," ")};
_.g.calculateLiveChatRichMessageInput=function(){for(var q=[],N="",b=_.ee(_.ee(this.hostElement).querySelector("#input")).childNodes,y=0;y<b.length;y++){var J=b[y];J instanceof Text?N+=J.textContent:J instanceof HTMLImageElement&&(J.dataset.emojiId?(N&&(q.push({text:N.replace(z9," ")}),N=""),q.push({emojiId:J.dataset.emojiId})):N+=J.alt)}N&&q.push({text:N.replace(z9," ")});if(b=_.ee(this.hostElement).querySelector("#overflow-text")){N="";b=b.childNodes;for(y=0;y<b.length;y++)J=b[y],J instanceof Text?
N+=J.textContent:J instanceof HTMLImageElement&&(J.dataset.emojiId?(N&&(q.push({text:N.replace(z9," ")}),N=""),q.push({emojiId:J.dataset.emojiId})):N+=J.alt);N&&q.push({text:N.replace(z9," ")})}return{textSegments:q}};
_.g.computeCharacterCount=function(q){if(!q||!q.textSegments)return 0;for(var N=0,b=0;b<q.textSegments.length;b++){var y=q.textSegments[b];if(y.text)N+=y.text.length;else if(y.emojiId){var J=void 0;if((J=this.data)==null?0:J.emojiCharacterCount)N+=this.data.emojiCharacterCount;else{var E=J=void 0,F=void 0;N+=((E=_.E6(_.Zt,(J=y)==null?void 0:J.emojiId))==null?void 0:(F=E.shortcuts)==null?void 0:F[0].length)||0}}}return N};
_.g.characterCountChanged=function(){_.e2(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.g.focusedChanged=function(){this.hostElement.dispatchEvent(new _.c6("focused-changed",this.focused))};
_.g.focus=function(){this.setFocus(!1)};
_.g.focusAtEnd=function(){this.setFocus(!0)};
_.g.setFocus=function(q){q=q?this.getRangeAtEnd():this.getInputRange();_.ee(this.hostElement).querySelector("#input").focus();var N=window.getSelection();N&&(N.removeAllRanges(),N.addRange(q))};
_.g.insertEmoji=function(q){var N,b=((q==null?0:q.isCustomEmoji)?(N=q.shortcuts)==null?void 0:N[0]:q==null?void 0:q.emojiId)||"";this.insertText(b)};
_.g.computeText=function(q){if(!q||!q.textSegments)return"";for(var N="",b=0;b<q.textSegments.length;b++){var y=q.textSegments[b];if(y.text)N+=y.text;else if(y.emojiId){var J=void 0,E=void 0,F=void 0;N+=((E=_.E6(_.Zt,(J=y)==null?void 0:J.emojiId))==null?void 0:(F=E.shortcuts)==null?void 0:F[0])||""}}return N};
_.g.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.$H.Object.defineProperties($w.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.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}}});
$w.prototype.focusedChanged=$w.prototype.focusedChanged;$w.prototype.characterCountChanged=$w.prototype.characterCountChanged;$w.prototype.onSuggestion=$w.prototype.onSuggestion;$w.prototype.onMessageSet=$w.prototype.onMessageSet;$w.prototype.dataChanged=$w.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],$w.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],$w.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],$w.prototype,"disabled",void 0);_.p([_.l("disabled"),_.P("design:type",Number),_.P("design:paramtypes",[])],$w.prototype,"inputTabIndex",null);_.p([_.l("data.maxCharacterLimit"),_.U({readOnly:!0,notify:!0}),_.P("design:type",Number),_.P("design:paramtypes",[])],$w.prototype,"maxCharacterLimit",null);
_.p([_.l("liveChatRichMessageInput"),_.U({readOnly:!0,notify:!0}),_.P("design:type",Number),_.P("design:paramtypes",[])],$w.prototype,"characterCount",null);_.p([_.l("maxCharacterLimit, characterCount"),_.U({readOnly:!0,notify:!0}),_.P("design:type",Number),_.P("design:paramtypes",[])],$w.prototype,"remainingCharacterCount",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],$w.prototype,"isChatMessageInput",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],$w.prototype,"inputExpanded",void 0);_.p([_.U({readOnly:!0,notify:!0}),_.P("design:type",Object)],$w.prototype,"liveChatRichMessageInput",void 0);_.p([_.U(),_.P("design:type",Object)],$w.prototype,"messageInput",void 0);_.p([_.U(),_.P("design:type",Boolean)],$w.prototype,"ignoreColorMapping",void 0);_.p([_.l("characterCount"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],$w.prototype,"hasText",null);
_.p([_.U(),_.P("design:type",Object)],$w.prototype,"isValidWithNoInputText",void 0);_.p([_.l("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.U(),_.P("design:type",Boolean),_.P("design:paramtypes",[])],$w.prototype,"isInputValid",null);_.p([_.U({readOnly:!0,value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],$w.prototype,"focused",void 0);_.p([_.U(),_.P("design:type",Array)],$w.prototype,"suggestions",void 0);
_.p([_.U(),_.P("design:type",_.J0)],$w.prototype,"emojiManager",void 0);_.p([_.U(),_.P("design:type",_.uP)],$w.prototype,"participantsManager",void 0);_.p([_.U(),_.P("design:type",Boolean)],$w.prototype,"noUnderline",void 0);_.p([_.U(),_.P("design:type",Object)],$w.prototype,"inputMethodEditorActive",void 0);_.p([_.dq("#dropdown"),_.P("design:type",Object)],$w.prototype,"dropdown",void 0);_.p([_.dq("#input"),_.P("design:type",HTMLElement)],$w.prototype,"input",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$w.prototype,"dataChanged",null);_.p([_.FY("messageInput"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$w.prototype,"onMessageSet",null);_.p([_.ZP("yt-live-chat-select-suggestion"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],$w.prototype,"onSuggestion",null);
_.p([_.FY("characterCount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$w.prototype,"characterCountChanged",null);_.p([_.FY("focused"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$w.prototype,"focusedChanged",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],$w);
_.N41=_.a($w,"yt-live-chat-text-input-field-renderer",function(){if(ojx===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;MyT===void 0&&(MyT=document.createElement("template"));var y=MyT;b.call(N,y.content.cloneNode(!0),q.content.firstChild);ojx=q}q=ojx;return q},{mode:0});var t0=function(){var q=_.C.apply(this,arguments)||this;q.buttonOverrides={style:"overlay",type:"filled"};q.allowAnimations=!1;q.modern=_.x("web_button_rework_with_live");q.noPadding=!1;return q};
_.Y(t0,_.C);_.g=t0.prototype;_.g.shouldSupportInlineActionButtons=function(){return!0};
_.g.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"}}}}};
_.g.ready=function(){var q=document.querySelector("yt-live-chat-app");q&&q.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.g.attached=function(){this.allowAnimations=!1};
_.g.dataChanged=function(){if(this.data){var q={"--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)};_.Jm(this.hostElement,q);this.allowAnimations=!0}};
_.g.messageChanged=function(){var q,N=(q=this.data)==null?void 0:q.message;q=_.ee(_.ee(this.hostElement).querySelector("#message"));q.textContent="";N&&q.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(N))};
_.g.computeShowOnlyHeader=function(q,N){return!q||q.pdgLikeButton||q.replyButton||q.buyFlowButton?!1:this.isEmpty(q,N)&&!q.footer};
_.g.computeShowFooterDivider=function(q,N,b){return q?!!q.footer&&!this.isEmpty(q,N)&&!b:!1};
_.g.computeIsUserEditable=function(q){return!!q.inputField};
_.g.computeHasHeartButton=function(q){return(q==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(q==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(q==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.g.computeNoveltyImage=function(q){if(q.headerOverlayImage&&q.headerOverlayImage.thumbnails.length){var N=q.headerOverlayImage.thumbnails[0],b,y;if((b=q.pdgPurchasedNoveltyLoggingDirectives)==null?0:(y=b.loggingDirectives)==null?0:y.trackingParams){var J,E;roA((J=q.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(E=J.loggingDirectives)==null?void 0:E.trackingParams)}return N.width||0}return 0};
_.g.computeAuthorPhotoSize=function(q){return(q==null?0:q.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.g.inputFocus=function(){var q=_.ee(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");q&&q.focus()};
_.g.inputInsertEmoji=function(q){var N=_.ee(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");N&&N.insertEmoji(q)};
_.g.inputMessage=function(){var q=_.ee(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),N;return q&&((N=this.data)==null?0:N.inputField)?(q.completeEmojis(),_.hE(q.liveChatRichMessageInput)):null};
_.g.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.g.isEmpty=function(q,N){return q?q.empty||!(q.message||q.inputField||N):!0};
_.g.onLowerBuyButtonClick=function(){var q,N=_.v((q=this.data)==null?void 0:q.buyButton,_.JI);N&&N.trackingParams&&!pLh(N.command)&&(q=_.zT(N.trackingParams))&&(N=_.Oe())&&_.nr(N,q)};
_.g.shouldSupportWholeItemClick=function(){return!0};
_.$H.Object.defineProperties(t0.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
t0.prototype.isDeletedChanged=t0.prototype.isDeletedChanged;t0.prototype.messageChanged=t0.prototype.messageChanged;t0.prototype.dataChanged=t0.prototype.dataChanged;_.p([_.O(Q24.YtPdgLiveChatItemBehavior),_.P("design:type",Object)],t0.prototype,"ytPdgLiveChatItemBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.BW),_.P("design:type",Object)],t0.prototype,"ytLiveChatReduxBehavior",void 0);
_.p([_.O(_.Fx.YtLiveChatItemBehavior),_.P("design:type",_.Rk)],t0.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],t0.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],t0.prototype,"data",void 0);_.p([_.U({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:tyD}),_.P("design:type",Object)],t0.prototype,"engagementState",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.P("design:type",Boolean)],t0.prototype,"isUserEditable",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.P("design:type",Boolean)],t0.prototype,"hasHeartButton",void 0);_.p([_.U({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.P("design:type",Boolean)],t0.prototype,"showOnlyHeader",void 0);
_.p([_.U({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.P("design:type",Boolean)],t0.prototype,"showFooterDivider",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Object)],t0.prototype,"allowAnimations",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],t0.prototype,"dashboardMoneyFeed",void 0);_.p([_.U({computed:"computeNoveltyImage(data)"}),_.P("design:type",Number)],t0.prototype,"noveltyWidth",void 0);
_.p([_.U({computed:"computeAuthorPhotoSize(data)"}),_.P("design:type",Number)],t0.prototype,"authorPhotoSize",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],t0.prototype,"modern",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],t0.prototype,"noPadding",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],t0.prototype,"dataChanged",null);
_.p([_.FY("data.message"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],t0.prototype,"messageChanged",null);_.p([_.l("data","dashboardMoneyFeed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],t0.prototype,"hideLowerBumper",null);_.p([_.FY("isDeleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],t0.prototype,"isDeletedChanged",null);
_.p([_.I({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],t0);
_.a(t0,"yt-live-chat-paid-message-renderer",function(){if(gjq===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;EjR===void 0&&(EjR=document.createElement("template"));var y=EjR;b.call(N,y.content.cloneNode(!0),q.content.firstChild);gjq=q}q=gjq;return q},{mode:0});var bZx;var y11;var my=function(){var q=_.uL.apply(this,arguments)||this;q._noAccessors=!0;return q};
_.Y(my,_.uL);my.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.M7("openPopupConfig")};
_.p([_.O(_.lw.YtOpenPopupBehavior),_.P("design:type",Object)],my.prototype,"ytOpenPopupBehavior",void 0);_.p([_.zs()],my);_.r7=[_.lw.YtOpenPopupBehavior,my.prototype];var J1R;var l8C=[_.FH,ctR,_.qz,_.R0,_.nx,_.kWq,_.uI,_.xJo,_.YJ,_.aE,_.nwx];_.x("web_continuation_response_processing")&&l8C.push(_.lR);var fez=new _.Jw("RESPONSE_RECEIVED_COMMANDS"),iZn=new _.Jw("RESPONSE_RECEIVED_COMMANDS");var xaZ="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),j8D=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],V4e=["GET_UNSEEN_NOTIFICATION_COUNT"];var Xx=function(){var q=_.uL.apply(this,arguments)||this;q._noAccessors=!0;q.serviceEndpointHandlers=[];return q};
_.Y(Xx,_.uL);Xx.prototype.created=function(){var q=this;this.endpointHandlerActionMap={"yt-service-request":function(N,b,y,J){var E;return XnJ(q.hostElement,N,b,y,J,q.serviceEndpointHandlers,(E=q.onEntitiesUpdated)==null?void 0:E.bind(q))}}};
Xx.prototype.attached=function(){_.EX(_.JD.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Xx.prototype.detached=function(){_.gI(_.JD.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.p([_.zs()],Xx);_.EmT=[Xx.prototype];var gmE,ZZx=function(){return gmE!==void 0?gmE:gmE=document.createElement("template")};
document.head.appendChild(ZZx().content);var FER;var R1R=document.head,da1=R1R.appendChild,c1l;if(FER===void 0){var uNo=document.createElement("template");_.Q(uNo,"\x3c!--css-build:shady--\x3e");uNo.content.insertBefore(ZZx().content.cloneNode(!0),uNo.content.firstChild);FER=uNo}c1l=FER;da1.call(R1R,c1l.content);var z11,$ax=function(){return z11!==void 0?z11:z11=document.createElement("template")};
document.head.appendChild($ax().content);var t4J;var maj=document.head,r1x=maj.appendChild,Xnl;if(t4J===void 0){var V4v=document.createElement("template");_.Q(V4v,"\x3c!--css-build:shady--\x3e");V4v.content.insertBefore($ax().content.cloneNode(!0),V4v.content.firstChild);t4J=V4v}Xnl=t4J;r1x.call(maj,Xnl.content);var j8E;_.xP("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.xP("sharingRendererButtons","buttonRenderer","ytd-button-renderer");j8E=_.x("web_button_rework")&&_.ou("BUTTON_REWORK")||_.x("web_button_rework_with_live");_.V5=function(){var q=_.C.apply(this,arguments)||this;q.isPressed=!1;q.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return q};
_.Y(_.V5,_.C);_.g=_.V5.prototype;_.g.created=function(){this.showTooltips=!0};
_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.onHintIdChanged=function(){var q=this,N,b,y=(N=this.ytButtonBehavior.data)==null?void 0:(b=N.hint)==null?void 0:b.hintRenderer;if(y&&y.hintId){N=_.Hy(this.hostElement,"yt-get-opened-popups-action");N=(N&&N.length===1?N[0]:[]).length>0;var J=null;y.hintId!=="sponsor-pre-purchase"||N?y.hintId.startsWith("sponsor-post-purchase")&&!N?J=dk1("membership-manage"):y.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!N&&(J=dk1("membership-freebie-join")):J=dk1("membership-join");J&&_.pY.addLowPriorityJob(function(){for(var E=
_.Z(J),F=E.next();!F.done;F=E.next())q.ytComponentBehavior.resolveCommand(F.value)})}};
_.g.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.g.onYtNavigate=function(q){var N=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(q.detail.endpoint);N&&(q.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(N))};
_.g.onYtServiceRequestSent=function(q,N){this.handleServiceRequestActions(N);_.e2(this.hostElement,"yt-service-request-sent-button-renderer")};
_.g.onServiceRequestCompleted=function(q,N){this.handleServiceRequestActions(N);_.e2(this.hostElement,"yt-service-request-completed-button-renderer")};
_.g.updateButton=function(q){var N;if(q=(N=_.v(q,bij))==null?void 0:N.updatedButton)this.ytButtonBehavior.data=_.v(q,_.JI)};
_.g.handleUpdateButtonAction=function(q){var N=this.ytButtonBehavior.data;N.targetId&&q.updateButtonAction.targetId&&N.targetId===q.updateButtonAction.targetId&&this.updateButton(q)};
_.g.handleServiceRequestActions=function(q){if(q=q.actions)for(var N=0;N<q.length;N++)this.updateButton(q[N])};
_.$H.Object.defineProperties(_.V5,{template:{configurable:!0,enumerable:!0,get:function(){if(J1R===void 0){var q=document.createElement("template");_.Q(q,"\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");q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);J1R=q}q=J1R;return q}}});
_.V5.prototype.onServiceRequestCompleted=_.V5.prototype.onServiceRequestCompleted;_.V5.prototype.onYtServiceRequestSent=_.V5.prototype.onYtServiceRequestSent;_.V5.prototype.onYtNavigate=_.V5.prototype.onYtNavigate;_.V5.prototype.onPressedStateChanged=_.V5.prototype.onPressedStateChanged;_.V5.prototype.onHintIdChanged=_.V5.prototype.onHintIdChanged;_.p([_.U(),_.P("design:type",Object)],_.V5.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],_.V5.prototype,"isPressed",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],_.V5.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.Qhx.YtButtonBehavior),_.P("design:type",Object)],_.V5.prototype,"ytButtonBehavior",void 0);_.p([_.O(_.r7),_.P("design:type",Object)],_.V5.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],_.V5.prototype,"ytComponentBehavior",void 0);
_.p([_.O(TE.YtRenderButtonBehavior),_.P("design:type",Object)],_.V5.prototype,"ytRenderButtonBehavior",void 0);_.p([_.FY("data.hint.hintRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],_.V5.prototype,"onHintIdChanged",null);_.p([_.FY("isPressed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],_.V5.prototype,"onPressedStateChanged",null);
_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],_.V5.prototype,"onYtNavigate",null);_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],_.V5.prototype,"onYtServiceRequestSent",null);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],_.V5.prototype,"onServiceRequestCompleted",null);_.p([_.I({is:"ytd-button-renderer",disableElementRegistration:j8E})],_.V5);var js=function(){var q=_.C.apply(this,arguments)||this;q.modern=_.x("web_button_rework_with_live");q.buttonOverrides={style:"overlay",type:"filled"};return q};
_.Y(js,_.C);_.g=js.prototype;_.g.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"}}}}};
_.g.ready=function(){var q=document.querySelector("yt-live-chat-app");q&&q.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.g.dataChanged=function(){if(this.data&&this.data.sticker){var q=_.Mo(this.data.sticker.thumbnails,this.stickerWidth);q||_.f8J(q).thenCatch(function(){_.M6(new _.IO("Failed to load Super Sticker with url",q))})}};
_.g.computeAuthorPhotoSize=function(q){return(q==null?0:q.isV2Style)?32:40};
_.g.computeIsV2Style=function(q){return(q==null?0:q.isV2Style)?!0:!1};
_.g.onStickerLoaded=function(q){var N,b,y;(N=_.a0(q))==null||(b=N.parentNode)==null||(y=b.classList)==null||y.add("sticker-loaded")};
_.g.computeNoveltyImageWidth=function(q){var N,b;if(q==null?0:(N=q.headerOverlayImage)==null?0:(b=N.thumbnails)==null?0:b.length){N=q.headerOverlayImage.thumbnails[0];var y,J;if((y=q.pdgPurchasedNoveltyLoggingDirectives)==null?0:(J=y.loggingDirectives)==null?0:J.trackingParams){var E,F;roA((E=q.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(F=E.loggingDirectives)==null?void 0:F.trackingParams)}return N.width||0}return 0};
_.g.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.g.updateStickerStyles=function(){var q=this.data;q&&(q={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(q.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(q.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(q.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(q.authorNameTextColor)},
_.Jm(this.hostElement,q))};
_.g.onBuyButtonClick=function(){var q,N=_.v((q=this.data)==null?void 0:q.buyButton,_.JI);N&&!pLh(N.command)&&this.ytRendererBehavior.logExplicitClick(N)};
_.g.shouldSupportWholeItemClick=function(){return!0};
_.$H.Object.defineProperties(js.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 q;return((q=this.data)==null?0:q.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
js.prototype.updateStickerStyles=js.prototype.updateStickerStyles;js.prototype.isDeletedChanged=js.prototype.isDeletedChanged;js.prototype.onStickerLoaded=js.prototype.onStickerLoaded;js.prototype.dataChanged=js.prototype.dataChanged;_.p([_.O(Q24.YtPdgLiveChatItemBehavior),_.P("design:type",Object)],js.prototype,"ytPdgLiveChatItemBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],js.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],js.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.Fx.YtLiveChatItemBehavior),_.P("design:type",_.Rk)],js.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],js.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],js.prototype,"data",void 0);
_.p([_.U({computed:"computeAuthorPhotoSize(data)"}),_.P("design:type",Number)],js.prototype,"authorPhotoSize",void 0);_.p([_.U(),_.P("design:type",Boolean)],js.prototype,"isDeleted",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],js.prototype,"dashboardMoneyFeed",void 0);_.p([_.U({computed:"computeNoveltyImageWidth(data)"}),_.P("design:type",Number)],js.prototype,"noveltyWidth",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],js.prototype,"modern",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.P("design:type",Boolean)],js.prototype,"isV2Style",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],js.prototype,"dataChanged",null);_.p([_.ZP("yt-img-shadow-loaded"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],js.prototype,"onStickerLoaded",null);
_.p([_.l("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],js.prototype,"stickerWidth",null);_.p([_.l("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],js.prototype,"stickerHeight",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],js.prototype,"hasHeartButton",null);_.p([_.l("data","dashboardMoneyFeed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],js.prototype,"hideLowerBumper",null);
_.p([_.FY("isDeleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],js.prototype,"isDeletedChanged",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],js.prototype,"updateStickerStyles",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],js);
_.a(js,"yt-live-chat-paid-sticker-renderer",function(){if(y11===void 0){var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;bZx===void 0&&(bZx=document.createElement("template"));var y=bZx;b.call(N,y.content.cloneNode(!0),q.content.firstChild);y11=q}q=y11;return q},{mode:0});var xa4;var vm4;var G3l,YWl=function(){return G3l!==void 0?G3l:G3l=document.createElement("template")};
document.head.appendChild(YWl().content);var Q8T,OZF=function(){return Q8T!==void 0?Q8T:Q8T=document.createElement("template")};
document.head.appendChild(OZF().content);var wnE;var iZT,l81=function(){return iZT!==void 0?iZT:iZT=document.createElement("template")};
document.head.appendChild(l81().content);var KE1;var Dax=document.head,h1T=Dax.appendChild,k3x;if(KE1===void 0){var Ua1=document.createElement("template");_.Q(Ua1,"\x3c!--css-build:shady--\x3e");Ua1.content.insertBefore(l81().content.cloneNode(!0),Ua1.content.firstChild);KE1=Ua1}k3x=KE1;h1T.call(Dax,k3x.content);var f8l=document.head,CH1=f8l.appendChild,I8F;if(wnE===void 0){var xw=document.createElement("template");_.Q(xw,"\x3c!--css-build:shady--\x3e");xw.content.insertBefore(OZF().content.cloneNode(!0),xw.content.firstChild);xw.content.insertBefore(YWl().content.cloneNode(!0),xw.content.firstChild);wnE=xw}I8F=wnE;CH1.call(f8l,I8F.content);var v6=function(){var q=_.uL.apply(this,arguments)||this;q.focusedIndex=0;q.verticalOffset=0;q.verticalAlign="top";q.dynamicAlign=!0;return q};
_.Y(v6,_.uL);v6.prototype.emojiUrl=function(q){q=_.E6(this.emojiManager,q);if(!q)return"";var N;q=(N=q.image)==null?void 0:N.thumbnails;return _.Mo(q,24)||""};
var T4E=function(q){var N;q.emojiVariants&&(N=q.data)!=null&&N.target&&_.ut(q,function(){q.set("verticalOffset",-1*q.hostElement.clientHeight);var b=_.ee(q.hostElement).querySelector("img");b&&b.focus()})};
_.g=v6.prototype;_.g.onKeyboardEnter=function(){};
_.g.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.g.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.g.onKeyDown=function(q){switch(q.keyCode){case 13:this.onKeyboardEnter();q.preventDefault();break;case 40:this.changeFocus(1);q.preventDefault();break;case 38:this.changeFocus(-1);q.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.g.onYtEmojiSelect=function(q){var N=this,b,y,J,E,F,R,c,z;return _.d(function(m){if(m.nextAddress==1)return y=(b=N.data)==null?void 0:b.emoji,F=((J=y)==null?void 0:J.stickyPrefId)||((E=y)==null?void 0:E.emojiId),c=(R=q.detail)==null?void 0:R.emojiId,F&&c&&F!==c?m.yield((z=N.emojiManager)==null?void 0:WLx(z,y,c),2):m.return();_.By(N.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[y,c]);_.hj(m)})};
_.g.changeFocus=function(q){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+q+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(q=_.ee(this.hostElement).querySelector("#variants"))&&q.children[this.focusedIndex].focus())};
_.$H.Object.defineProperties(v6.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
v6.prototype.onYtEmojiSelect=v6.prototype.onYtEmojiSelect;v6.prototype.onKeyDown=v6.prototype.onKeyDown;v6.prototype.onEmojiVariantsChanged=v6.prototype.onEmojiVariantsChanged;v6.prototype.onVerticalOffsetOrPositionTargetChanged=v6.prototype.onVerticalOffsetOrPositionTargetChanged;_.p([_.O(_.Ej),_.P("design:type",Object)],v6.prototype,"ironOverlayBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],v6.prototype,"data",void 0);_.p([_.U(),_.P("design:type",_.J0)],v6.prototype,"emojiManager",void 0);
_.p([_.U(),_.P("design:type",Object)],v6.prototype,"emojiVariants",void 0);_.p([_.U(),_.P("design:type",Object)],v6.prototype,"focusedIndex",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],v6.prototype,"positionTarget",null);_.p([_.U({reflectToAttribute:!0}),_.l("verticalOffset","data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],v6.prototype,"isPositioned",null);_.p([_.U(),_.P("design:type",Object)],v6.prototype,"verticalOffset",void 0);
_.p([_.U(),_.P("design:type",Object)],v6.prototype,"verticalAlign",void 0);_.p([_.U(),_.P("design:type",Object)],v6.prototype,"dynamicAlign",void 0);_.p([_.FY("verticalOffset","positionTarget"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],v6.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.p([_.FY("emojiVariants"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],v6.prototype,"onEmojiVariantsChanged",null);
_.p([_.ZP("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],v6.prototype,"onKeyDown",null);_.p([_.ZP("yt-emoji-select"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype",Promise)],v6.prototype,"onYtEmojiSelect",null);_.p([_.zs()],v6);var s8x=[v6.prototype];var nm1;var a8E;var SW1=/medium-light|medium-dark|light|medium|dark/,WEv=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,LEx=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),G9=function(){var q=_.C.apply(this,arguments)||this;q.userSelection={left:null,right:null};q.scrollAction="lock";q.isEmojiDraftInProgress=!1;return q};
_.Y(G9,_.C);_.g=G9.prototype;_.g.onClick=function(q){q=_.a0(q);q instanceof HTMLImageElement&&this.selectOrUpdateEmoji(q)};
_.g.selectOrUpdateEmoji=function(q){var N=q.getAttribute("selection");N&&(N==="default"?_.e2(this.hostElement,"yt-emoji-select",_.E6(this.emojiManager,q.id)):N==="left"?this.userSelection=Object.assign({},this.userSelection,{left:q.src}):N==="right"?this.userSelection=Object.assign({},this.userSelection,{right:q.src}):N==="user"&&this.userSelection.left&&this.userSelection.right&&_.e2(this.hostElement,"yt-emoji-select",_.E6(this.emojiManager,q.id)))};
_.g.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.g.onMultiSelectorThumbnailRowChanged=function(){var q,N,b;((q=this.data)==null?0:(N=q.emoji)==null?0:(b=N.multiSelectorThumbnailRow)==null?0:b.length)&&this.openSelector()};
_.g.getThumbnailFromEmojiRow=function(q){var N,b;return(q==null?void 0:(N=q.thumbnails)==null?void 0:(b=N[0])==null?void 0:b.url)||""};
_.g.getEmojiAltTextForPartialSelector=function(q){var N;return((N=this.getThumbnailFromEmojiRow(q).match(WEv))==null?void 0:N[0])||""};
_.g.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.g.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.g.getRowSelection=function(q){return["left","right"][q]};
_.g.getIdFromComposedEmoji=function(q){return(q==null?void 0:q.emojiId)||""};
_.g.getEmojiFromPartialSelections=function(q,N){if(!q&&!N)return null;var b,y,J=(b=this.data)==null?void 0:(y=b.emoji)==null?void 0:y.variantIds;if(!J||!J.length)return null;var E;q=(E=q.match(SW1))==null?void 0:E[0];var F;N=(F=N.match(SW1))==null?void 0:F[0];if(!q||!N)return null;var R=LEx.get(q);F=LEx.get(N);if(R===F){F=Array.from(LEx.values()).filter(function(z){return z!==R}).join("|");
var c=new RegExp("^((?!("+F+")).)*"+R+"$")}else c=new RegExp(R+".*"+F);return(J=J.find(function(z){return c.test(z)}))&&_.E6(this.emojiManager,J)||null};
_.g.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var q,N=this.ytEmojiSelectorBehavior.emojiUrl(((q=this.data.emoji)==null?void 0:q.emojiId)||"");_.ee(this.hostElement).querySelector('[selection="user"]').src.includes(N)||(this.isEmojiDraftInProgress=!0)}};
_.g.onDomChange=function(){T4E(this.ytEmojiSelectorBehavior)};
_.g.getFocusableElements=function(){return _.ee(this.hostElement).querySelectorAll("img").filter(function(q){return q.getAttribute("role")==="option"})};
_.g.changeFocus=function(q){var N=this.getFocusableElements();N!=null&&N.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+q+N.length)%N.length,this.ytEmojiSelectorBehavior.focusedIndex<N.length&&(q=N[this.ytEmojiSelectorBehavior.focusedIndex])&&q.focus())};
_.g.onKeyboardEnter=function(){var q=this.getFocusableElements();q!=null&&q.length&&(q=q[this.ytEmojiSelectorBehavior.focusedIndex])&&q instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(q),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.$H.Object.defineProperties(G9.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var q=this,N,b,y;return this.emojiManager&&((N=this.data)==null?0:(b=N.emoji)==null?0:(y=b.variantIds)==null?0:y.length)?this.data.emoji.variantIds.map(function(J){return!!J&&_.E6(q.emojiManager,J)}).filter(function(J){return!!J}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var q,N=(q=this.userSelection)==null?void 0:q.left,b;q=(b=this.userSelection)==null?void 0:b.right;return N&&q?this.getEmojiFromPartialSelections(N,q):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.composedEmojiSelection)==null?0:q.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var N;q=(N=this.userSelection)==null?void 0:N.left;var b;N=(b=this.userSelection)==null?void 0:b.right;if(!q&&!N){var y;return this.ytEmojiSelectorBehavior.emojiUrl(((y=this.data.emoji)==null?void 0:y.emojiId)||"")}return q&&!N?q:!q&&N?N:""}}});
G9.prototype.onMultiSelectorThumbnailRowChanged=G9.prototype.onMultiSelectorThumbnailRowChanged;G9.prototype.onClick=G9.prototype.onClick;_.p([_.O(_.Ej),_.P("design:type",Object)],G9.prototype,"ironOverlayBehavior",void 0);_.p([_.O(s8x),_.P("design:type",Object)],G9.prototype,"ytEmojiSelectorBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],G9.prototype,"data",void 0);_.p([_.U(),_.P("design:type",_.J0)],G9.prototype,"emojiManager",void 0);
_.p([_.U(),_.P("design:type",Object)],G9.prototype,"userSelection",void 0);_.p([_.U(),_.P("design:type",Object)],G9.prototype,"scrollAction",void 0);_.p([_.U(),_.P("design:type",Object)],G9.prototype,"isEmojiDraftInProgress",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],G9.prototype,"emojiVariants",null);_.p([_.l("data","userSelection"),_.P("design:type",Object),_.P("design:paramtypes",[])],G9.prototype,"composedEmojiSelection",null);
_.p([_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[MouseEvent]),_.P("design:returntype")],G9.prototype,"onClick",null);_.p([_.FY("data.emoji.multiSelectorThumbnailRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],G9.prototype,"onMultiSelectorThumbnailRowChanged",null);_.p([_.l("data","userSelection","composedEmojiSelection"),_.P("design:type",String),_.P("design:paramtypes",[])],G9.prototype,"draftEmojiUrl",null);
_.p([_.Ok({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],G9);
_.a(G9,"yt-emoji-multi-person-selector",function(){if(a8E===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;nm1===void 0&&(nm1=document.createElement("template"));var y=nm1;b.call(N,y.content.cloneNode(!0),q.content.firstChild);a8E=q}q=a8E;return q},{mode:2});var pnT;var PHF;var Yw=function(){var q=_.C.apply(this,arguments)||this;q.tooltip_=null;return q};
_.Y(Yw,_.C);_.g=Yw.prototype;_.g.dataChanged_=function(){var q;if((q=this.data)==null?0:q.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.ee(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.yb)(this.tooltip_).textContent=this.data.tooltip};
_.g.computeTargetId=function(){var q;return((q=this.data)==null?void 0:q.targetId)||""};
_.g.computeId_=function(q){return q};
_.g.computeIcon_=function(q){return _.qo(q)};
_.g.onTap_=function(){this.active=!this.active;_.e2(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.g.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("active-changed",this.active))};
_.$H.Object.defineProperties(Yw.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var q,N;if((q=this.data)==null?0:(N=q.icon)==null?0:N.iconType)return this.data.icon.iconType==="SUPER_STICKER";var b,y;return((b=this.data)==null?void 0:(y=b.icon)==null?void 0:y.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
Yw.prototype.activeChangedForBinding=Yw.prototype.activeChangedForBinding;Yw.prototype.dataChanged_=Yw.prototype.dataChanged_;_.p([_.O(_.HW.YtLiveChatTooltipTargetingBehavior),_.P("design:type",Object)],Yw.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Yw.prototype,"data",void 0);_.p([_.U({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.P("design:type",String)],Yw.prototype,"id",void 0);
_.p([_.U({computed:"computeTargetId(data.targetId)"}),_.P("design:type",String)],Yw.prototype,"targetId",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Yw.prototype,"active",void 0);_.p([_.U({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.P("design:type",String)],Yw.prototype,"icon",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yw.prototype,"dataChanged_",null);
_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Yw.prototype,"iconFilled",null);_.p([_.FY("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yw.prototype,"activeChangedForBinding",null);_.p([_.Ok({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],Yw);
_.a(Yw,"yt-emoji-picker-category-button-renderer",function(){if(PHF===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;pnT===void 0&&(pnT=document.createElement("template"));var y=pnT;b.call(N,y.content.cloneNode(!0),q.content.firstChild);PHF=q}q=PHF;return q},{mode:2});var M4M;var omJ;var Q5=function(){var q=_.C.apply(this,arguments)||this;q.ariaLabel=null;q.ariaActivedescendant=null;q.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};q.JSC$14372_ignoreNextFocus_=!1;q.longPressTimeoutId=-1;return q};
_.Y(Q5,_.C);_.g=Q5.prototype;_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.g.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.g.emojiChanged_=function(){this.changeFocus_(0,!1);for(var q=_.FR(),N=0;N<this.emoji.length;N++){var b={veType:88013,elementIndex:N},y=this.emoji[N];y.isCustomEmoji&&(y=document.querySelector(("#"+y.emojiId).replace("/","\\/")))&&(b=_.Zd(q,b))&&(y.visualElement=b)}};
_.g.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.g.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.g.emojiSkinToneChanged_=function(q){this.skinTone=q};
_.g.dataChanged=function(){this.data&&this.data.emojiData&&sqj(this.emojiManager,this.data.emojiData)};
_.g.emojiUrl=function(q){q=this.getEmoji(q);if(!q)return"";var N;q=(N=q.image)==null?void 0:N.thumbnails;return _.Mo(q,24)||""};
_.g.emojiAlt=function(q){var N=this.get("image.accessibility.accessibilityData.label",q);return N?N:q.isCustomEmoji?q.shortcuts[0]:q.emojiId};
_.g.emojiAriaLabel=function(q){return q.shortcuts?q.shortcuts[0]:""};
_.g.emojiAriaSelected=function(q,N,b){return q&&b==N?"true":"false"};
_.g.getEmoji=function(q){if(this.emojiManager)return this.shouldUseStickyPreferences?aAx(this.emojiManager,q):g7(this.emojiManager,q)};
_.g.computeId_=function(q){return q.categoryId||""};
_.g.computeEmoji=function(q){var N=this;return this.emojiManager?q.emojiIds?q.emojiIds.map(function(b){return b?_.E6(N.emojiManager,b):null}).filter(CHd):q.emojiData?q.emojiData.map(function(b){var y=!!b.emojiId&&_.E6(N.emojiManager,b.emojiId);
return y?Object.assign({},y,b):null}).filter(CHd):[]:[]};
_.g.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.g.computeAriaLabel_=function(q){return _.ao(q)};
_.g.computeAriaActivedescendant_=function(q,N){return q&&q[N]?q[N].emojiId||"":""};
_.g.handleLongPressEmojiWithVariants=function(q,N){this.changeFocusToEmoji(q.emojiId,!1);this.openVariantSelector(q,N)};
_.g.onMouseDown=function(q){var N=this;this.hostElement!==document.activeElement&&(this.JSC$14372_ignoreNextFocus_=!0);if(q.button===0){var b=_.a0(q);if(b instanceof HTMLImageElement){var y=_.ee(this.hostElement).querySelector("#repeat").itemForElement(b);this.emojiContainsVariants(y)&&(this.longPressTimeoutId=setTimeout(function(){N.handleLongPressEmojiWithVariants(y,b)},500))}}};
_.g.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.g.onFocus=function(){this.JSC$14372_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14372_ignoreNextFocus_=!1};
_.g.onBlur_=function(){this.showFocus=!1};
_.g.emojiContainsVariants=function(q){return!!(q&&q.variantIds&&q.variantIds.length)};
_.g.onClick=function(q){clearTimeout(this.longPressTimeoutId);q=_.a0(q);if(q instanceof HTMLImageElement){var N=q.id;this.changeFocusToEmoji(N,!1);var b=this.getEmoji(N),y;if(y=this.shouldUseStickyPreferences&&this.emojiContainsVariants(b)){var J;y=!((J=this.emojiManager.emojiMap[N])!=null&&J.stickyPrefId)}y?(J=_.ee(this.hostElement).querySelector("#repeat").itemForElement(q),this.openVariantSelector(J,q)):_.e2(this.hostElement,"yt-emoji-select",b)}};
_.g.isActiveEmojiWithVariants=function(q,N){return q&&N?N.stickyPrefId?q===N.stickyPrefId:q===N.emojiId:!1};
_.g.onCloseEmojiVariantSelector=function(q){this.activeEmojiWithVariantsId===q&&(this.activeEmojiWithVariantsId="")};
_.g.onMouseOver_=function(q){q=_.a0(q);q instanceof HTMLImageElement&&_.e2(this.hostElement,"yt-emoji-hover",_.E6(this.emojiManager,q.id))};
_.g.changeFocus_=function(q,N){this.focusedIndex=(this.focusedIndex+q+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(q=this.emoji[this.focusedIndex],N&&(this.showFocus=!0,_.ee(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.e2(this.hostElement,"yt-emoji-hover",q)))};
_.g.changeFocusToEmoji=function(q,N){if(q){var b=this.emoji.findIndex(function(y){return y.emojiId===q});
b!==-1&&this.changeFocus_(b-this.focusedIndex,N)}};
_.g.onKeyDown_=function(q){switch(q.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var N=this.emoji[this.focusedIndex];if(N&&N.emojiId){if(this.emojiContainsVariants(N)){var b=_.ee(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(N,b)}else _.e2(this.hostElement,"yt-emoji-select",g7(this.emojiManager,N.emojiId)),this.hostElement.focus();q.preventDefault()}}break;case 40:this.changeFocus_(1,!0);q.preventDefault();break;case 38:this.changeFocus_(-1,!0),
q.preventDefault()}};
_.g.onEmojiStickyPreferenceChanged=function(q,N){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&q.emojiId&&q.variantIds&&q.variantIds.includes(N)&&this.activeEmojiWithVariantsId!==N&&this.setStickyEmojiPreference(q.emojiId,N)};
_.g.openVariantSelector=function(q,N){this.activeEmojiWithVariantsId=q.stickyPrefId||q.emojiId||"";_.e2(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:q,target:N})};
_.g.setStickyEmojiPreference=function(q,N){if(this.data){var b=this.emoji.findIndex(function(J){return J.emojiId===q});
if(b!==-1){var y=this.emoji[b];y.stickyPrefId=N;this.set("emoji."+b,Object.assign({},y));this.activeEmojiWithVariantsId=N}}};
Q5.prototype.onKeyDown_=Q5.prototype.onKeyDown_;Q5.prototype.onMouseOver_=Q5.prototype.onMouseOver_;Q5.prototype.onClick=Q5.prototype.onClick;Q5.prototype.onBlur_=Q5.prototype.onBlur_;Q5.prototype.onFocus=Q5.prototype.onFocus;Q5.prototype.onMouseUp=Q5.prototype.onMouseUp;Q5.prototype.onMouseDown=Q5.prototype.onMouseDown;Q5.prototype.dataChanged=Q5.prototype.dataChanged;Q5.prototype.disableIncrementalLoadingChanged_=Q5.prototype.disableIncrementalLoadingChanged_;Q5.prototype.emojiManagerChanged_=Q5.prototype.emojiManagerChanged_;
Q5.prototype.emojiChanged_=Q5.prototype.emojiChanged_;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Q5.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Q5.prototype,"data",void 0);_.p([_.U({computed:"computeId_(data)"}),_.P("design:type",String)],Q5.prototype,"id",void 0);_.p([_.U({computed:"computeEmoji(data)"}),_.P("design:type",Array)],Q5.prototype,"emoji",void 0);_.p([_.U(),_.P("design:type",Number)],Q5.prototype,"skinTone",void 0);
_.p([_.U(),_.P("design:type",_.J0)],Q5.prototype,"emojiManager",void 0);_.p([_.U(),_.P("design:type",Boolean)],Q5.prototype,"disableIncrementalLoading",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],Q5.prototype,"focusedIndex",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],Q5.prototype,"showFocus",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.P("design:type",Object)],Q5.prototype,"ariaLabel",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.P("design:type",Object)],Q5.prototype,"ariaActivedescendant",void 0);_.p([_.U({value:60}),_.P("design:type",Number)],Q5.prototype,"domRepeatTargetFramerate",void 0);_.p([_.U({value:1}),_.P("design:type",Number)],Q5.prototype,"domRepeatInitialCount",void 0);_.p([_.U({value:""}),_.P("design:type",String)],Q5.prototype,"activeEmojiWithVariantsId",void 0);
_.p([_.U({value:!1}),_.P("design:type",Boolean)],Q5.prototype,"shouldUseStickyPreferences",void 0);_.p([_.FY("emoji"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Q5.prototype,"emojiChanged_",null);_.p([_.FY("emojiManager"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Q5.prototype,"emojiManagerChanged_",null);
_.p([_.FY("disableIncrementalLoading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Q5.prototype,"disableIncrementalLoadingChanged_",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Q5.prototype,"dataChanged",null);_.p([_.ZP("mousedown"),_.P("design:type",Function),_.P("design:paramtypes",[Object]),_.P("design:returntype")],Q5.prototype,"onMouseDown",null);
_.p([_.ZP("mouseup"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Q5.prototype,"onMouseUp",null);_.p([_.ZP("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Q5.prototype,"onFocus",null);_.p([_.ZP("blur"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Q5.prototype,"onBlur_",null);
_.p([_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Q5.prototype,"onClick",null);_.p([_.ZP("mouseover"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Q5.prototype,"onMouseOver_",null);_.p([_.ZP("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Q5.prototype,"onKeyDown_",null);
_.p([_.Ok({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],Q5);
_.a(Q5,"yt-emoji-picker-category-renderer",function(){if(omJ===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;M4M===void 0&&(M4M=document.createElement("template"));var y=M4M;b.call(N,y.content.cloneNode(!0),q.content.firstChild);omJ=q}q=omJ;return q},{mode:2});var A1q;var e1l;var B4j;var HZ1;var O6=function(){var q=_.C.apply(this,arguments)||this;q.ariaLabel=null;q.ariaActivedescendant=null;q.getFormattedStringRawText=_.ao;q.JSC$14378_ignoreNextFocus_=!1;return q};
_.Y(O6,_.C);_.g=O6.prototype;_.g.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")};
_.g.emojiUrl=function(q){var N,b;q=(N=g7(this.emojiManager,q,!0))==null?void 0:(b=N.image)==null?void 0:b.thumbnails;return _.Mo(q,24)||""};
_.g.emojiAlt=function(q){var N=this.get("image.accessibility.accessibilityData.label",q);return N?N:q.isCustomEmoji?q.shortcuts[0]:q.emojiId};
_.g.emojiId=function(q){return"emoji"+q};
_.g.computeId_=function(q){return q.categoryId||""};
_.g.computeAriaActivedescendant_=function(q){return this.emoji&&q<this.emoji.length?this.emojiId(q):""};
_.g.emojiChanged_=function(){this.changeFocus_(0,!1);for(var q=_.FR(),N=0;N<this.emoji.length;N++){var b={veType:88013,elementIndex:N},y=this.emoji[N];y.isCustomEmoji&&(y=document.querySelector(("#"+y.emojiId).replace("/","\\/")))&&(b=_.Zd(q,b))&&(y.visualElement=b)}};
_.g.computeEmoji_=function(q){var N=this;return this.emojiManager?q.emojiIds.map(function(b){return _.E6(N.emojiManager,b,!0)}).filter(I8h):[]};
_.g.titleOffsetChanged_=function(){var q=this.hostElement.getBoundingClientRect(),N=_.ee(this.hostElement).querySelector("#title").getBoundingClientRect();q=Math.max(0,Math.min(this.titleOffset,q.height-N.height));_.ee(this.hostElement).querySelector("#title").style.top=q+"px"};
_.g.onEmojiMouseOver_=function(q){_.e2(this.hostElement,"yt-emoji-hover",q.model.item)};
_.g.onEmojiTap_=function(q){this.data.command&&(q=Qqu(_.tz().resolve(_.$f(Nr)),this.data.command,q),_.e2(this.hostElement,"yt-navigate",q))};
_.g.emojiAriaLabel=function(q){return q.shortcuts[0]};
_.g.emojiAriaSelected=function(q,N,b){return q&&b==N?"true":"false"};
_.g.changeFocus_=function(q,N){var b=this.emoji.length;this.focusedIndex=(this.focusedIndex+q+b)%b;q=this.emoji[this.focusedIndex];if(N){var y;(y=_.ee(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||y.scrollIntoView(!1);_.e2(this.hostElement,"yt-emoji-hover",q)}};
_.g.onMouseDown_=function(){this.JSC$14378_ignoreNextFocus_=!0};
_.g.onFocus_=function(){this.JSC$14378_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14378_ignoreNextFocus_=!1};
_.g.onBlur_=function(){this.showFocus=!1};
_.g.onKeyDown_=function(q){switch(q.keyCode){case 13:this.onEmojiTap_(q);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);q.preventDefault();break;case 38:this.changeFocus_(-1,!0),q.preventDefault()}};
O6.prototype.onKeyDown_=O6.prototype.onKeyDown_;O6.prototype.onBlur_=O6.prototype.onBlur_;O6.prototype.onFocus_=O6.prototype.onFocus_;O6.prototype.onMouseDown_=O6.prototype.onMouseDown_;O6.prototype.onEmojiTap_=O6.prototype.onEmojiTap_;O6.prototype.titleOffsetChanged_=O6.prototype.titleOffsetChanged_;O6.prototype.emojiChanged_=O6.prototype.emojiChanged_;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],O6.prototype,"ytComponentBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],O6.prototype,"data",void 0);_.p([_.U({computed:"computeId_(data)"}),_.P("design:type",String)],O6.prototype,"id",void 0);_.p([_.U({computed:"computeEmoji_(data)"}),_.P("design:type",Array)],O6.prototype,"emoji",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],O6.prototype,"titleOffset",void 0);_.p([_.U({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.P("design:type",Object)],O6.prototype,"ariaLabel",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.P("design:type",Object)],O6.prototype,"ariaActivedescendant",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],O6.prototype,"showFocus",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],O6.prototype,"focusedIndex",void 0);_.p([_.U(),_.P("design:type",_.J0)],O6.prototype,"emojiManager",void 0);
_.p([_.FY("emoji"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],O6.prototype,"emojiChanged_",null);_.p([_.FY("titleOffset"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],O6.prototype,"titleOffsetChanged_",null);_.p([_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],O6.prototype,"onEmojiTap_",null);
_.p([_.ZP("mousedown"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],O6.prototype,"onMouseDown_",null);_.p([_.ZP("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],O6.prototype,"onFocus_",null);_.p([_.ZP("blur"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],O6.prototype,"onBlur_",null);
_.p([_.ZP("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],O6.prototype,"onKeyDown_",null);_.p([_.Ok({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],O6);
_.a(O6,"yt-emoji-picker-upsell-category-renderer",function(){if(HZ1===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;B4j===void 0&&(B4j=document.createElement("template"));var y=B4j;b.call(N,y.content.cloneNode(!0),q.content.firstChild);HZ1=q}q=HZ1;return q},{mode:2});var qgx;var Nr1;var w7=function(){var q=_.C.apply(this,arguments)||this;q.scrollAction="lock";q.verticalAlign="top";return q};
_.Y(w7,_.C);_.g=w7.prototype;_.g.onClick=function(q){q=_.a0(q);q instanceof HTMLImageElement&&_.e2(this.hostElement,"yt-emoji-select",_.E6(this.emojiManager,q.id))};
_.g.openSelector=function(){this.ironOverlayBehavior.open()};
_.g.onDomChange=function(){T4E(this.ytEmojiSelectorBehavior)};
_.g.computeIsFamilySelector=function(q){var N;return(q==null?void 0:(N=q.emoji)==null?void 0:N.emojiId)==="\ud83d\udc6a"};
_.g.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var q=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];q&&q.emojiId&&(_.e2(this.hostElement,"yt-emoji-select",_.E6(this.emojiManager,q.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.$H.Object.defineProperties(w7.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var q=this,N,b,y;return this.emojiManager&&((N=this.data)==null?0:(b=N.emoji)==null?0:(y=b.variantIds)==null?0:y.length)?this.data.emoji.variantIds.map(function(J){return!!J&&_.E6(q.emojiManager,J)}).filter(function(J){return!!J}):[]}}});
w7.prototype.onClick=w7.prototype.onClick;_.p([_.O(_.Ej),_.P("design:type",Object)],w7.prototype,"ironOverlayBehavior",void 0);_.p([_.O(s8x),_.P("design:type",Object)],w7.prototype,"ytEmojiSelectorBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],w7.prototype,"data",void 0);_.p([_.U(),_.P("design:type",_.J0)],w7.prototype,"emojiManager",void 0);_.p([_.U(),_.P("design:type",Object)],w7.prototype,"scrollAction",void 0);_.p([_.U(),_.P("design:type",Object)],w7.prototype,"verticalAlign",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.P("design:type",Boolean)],w7.prototype,"isFamilySelector",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],w7.prototype,"emojiVariants",null);_.p([_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[MouseEvent]),_.P("design:returntype")],w7.prototype,"onClick",null);_.p([_.Ok({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],w7);
_.a(w7,"yt-emoji-variant-selector",function(){if(Nr1===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;qgx===void 0&&(qgx=document.createElement("template"));var y=qgx;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Nr1=q}q=Nr1;return q},{mode:2});var bhq=/:/g,yMM=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],iP=function(){var q=_.C.apply(this,arguments)||this;q.emojiVariantSelector=null;q.emojiMultiPersonSelector=null;q.identity=_.CC;q.lastAnimationTime_=0;q.animationStart_=null;q.animationEnd_=null;return q};
_.Y(iP,_.C);_.g=iP.prototype;
_.g.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}}};
_.g.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Zt)};
_.g.attached=function(){_.HV&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&njq(this.emojiManager)};
_.g.dataChanged=function(){var q;if((q=this.data)==null?0:q.categories){q=this.emojiManager;var N=this.getCustomEmojiIds();q.pickerCustomEmojiIds=[].concat(_.a9(Uu1),_.a9(N))}};
_.g.getCustomEmojiIds=function(){var q,N=(q=this.data.categories)==null?void 0:q.find(function(E){var F;return((F=E.emojiPickerCategoryRenderer)==null?void 0:F.categoryId)&&yMM.includes(E.emojiPickerCategoryRenderer.categoryId)}),b;
q=(b=this.data.categories)==null?void 0:b.find(function(E){return E.emojiPickerUpsellCategoryRenderer});
var y,J;return[N==null?void 0:(y=N.emojiPickerCategoryRenderer)==null?void 0:y.emojiIds,q==null?void 0:(J=q.emojiPickerUpsellCategoryRenderer)==null?void 0:J.emojiIds].flat().filter(function(E){return!!E})};
_.g.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.g.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.g.updateCategoriesAndPlaceholderInternal=function(q,N){var b=this;q&&N&&(this.categories=q.categories||[],this.categoryButtons=q.categoryButtons||[],this.resetPlaceholder(),this.search="",_.k9(function(){b.updateButtons_()}))};
_.g.computeId_=function(q){return q.id||""};
_.g.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(q){return q.emojiPickerCategoryRenderer&&q.emojiPickerCategoryRenderer.emojiData}):!1};
_.g.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.g.onShowEmojiVariantSelector=function(q){var N=q.detail.emojiData;N.variantIds&&N.variantIds.length&&(N.multiSelectorThumbnailRow&&N.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:N,target:q.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:N,target:q.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.g.onIronOverlayClosed=function(q){var N=aAx(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");N&&q.composedPath&&(q.composedPath().includes(_.ee(this.hostElement).querySelector("#emoji-variant-selector"))||q.composedPath().includes(_.ee(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.By(this.hostElement,"yt-close-emoji-variant-selector",[N.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.g.onEmojiVariantSelectorMouseup=function(q){var N=q.target.firstChild;this.variantSelectorOpened&&N&&_.k9(function(){N.noCancelOnOutsideClick=!1},100)};
_.g.onEmojiVariantSelectorMousedown=function(q){q=q.target.firstChild;this.variantSelectorOpened&&q&&(q.noCancelOnOutsideClick=!1)};
_.g.onSelectCategory_=function(q){var N=this.search!="";this.search="";for(var b=_.ee(this.hostElement).querySelector("#categories").children,y=0;y<b.length;y++){var J=b[y];if(J.id==q.detail.categoryId){N?(_.ee(this.hostElement).querySelector("#categories").scrollTop=J.offsetTop,this.updateButtons_()):(this.animationStart_=_.ee(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=J.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.g.onEmojiHover_=function(q){this.placeholder=q.detail.shortcuts?q.detail.shortcuts[0]:""};
_.g.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.g.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.g.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.g.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.g.computeSearchCategory_=function(q){q=q.replace(bhq,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();q=q.split(" ");for(var N=[],b=this.emojiManager.emojis,y=0;y<b.length;y++){var J=b[y];if(J.searchTerms)for(var E=0;E<J.searchTerms.length;E++){for(var F=J.searchTerms[E].toLocaleLowerCase(),R=!1,c=0;c<q.length;c++)if(F.indexOf(q[c])!=-1){R=!0;break}if(R&&(!J.isCustomEmoji||!J.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(J.emojiId))){N.push(J.emojiId);
break}}}return{categoryId:-1,emojiIds:N}};
_.g.computeSearchEmptyMessage_=function(q,N){return q&&N&&N.emojiIds&&N.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.g.computeSearching_=function(q){return this.emojiManager&&q.replace(bhq,"").length>1};
_.g.computeSkinToneHidden=function(){var q;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((q=this.data)==null||!q.hideSkinTonePicker)};
_.g.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.g.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.g.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.g.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.g.selectSkinTone_=function(q){q=Number(q.target.getAttribute("tone"));this.set("emojiManager.skinTone",q);_.By(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[q]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.g.skinToneChanged_=function(){_.ee(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var q=_.ee(this.hostElement).querySelector("#dropdown-content").children,N=0;N<q.length;N++)N===this.skinTone?q[N].setAttribute("selected",""):q[N].removeAttribute("selected")};
_.g.animateScroll_=function(q){this.lastAnimationTime_||(this.lastAnimationTime_=q);q-=this.lastAnimationTime_;q<200?(_.ee(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*q/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.ee(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.g.searchChanged_=function(){this.updateButtons_()};
_.g.updateButtons_=function(){var q=null;if(!this.search)for(var N=_.ee(this.hostElement).querySelector("#categories").scrollTop,b=_.ee(this.hostElement).querySelector("#categories").children,y=0;y<b.length;y++){var J=b[y];J.offsetTop<=N&&(q=J.id)}N=_.ee(this.hostElement).querySelector("#category-buttons").children;for(b=0;b<N.length;b++)y=N[b],y.active=y.id===q};
iP.prototype.searchChanged_=iP.prototype.searchChanged_;iP.prototype.skinToneChanged_=iP.prototype.skinToneChanged_;iP.prototype.onEmojiHover_=iP.prototype.onEmojiHover_;iP.prototype.onSelectCategory_=iP.prototype.onSelectCategory_;iP.prototype.onShowEmojiVariantSelector=iP.prototype.onShowEmojiVariantSelector;iP.prototype.updateCategoriesAndPlaceholder_=iP.prototype.updateCategoriesAndPlaceholder_;iP.prototype.dataChanged=iP.prototype.dataChanged;
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],iP.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],iP.prototype,"data",void 0);_.p([_.U({value:function(){return[]}}),
_.P("design:type",Array)],iP.prototype,"categories",void 0);_.p([_.U({value:function(){return[]}}),
_.P("design:type",Array)],iP.prototype,"categoryButtons",void 0);_.p([_.U({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.P("design:type",Boolean)],iP.prototype,"disableScroll",void 0);_.p([_.U({computed:"computeId_(data)",reflectToAttribute:!0}),_.P("design:type",String)],iP.prototype,"id",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],iP.prototype,"selected",void 0);
_.p([_.U({value:!1}),_.P("design:type",Boolean)],iP.prototype,"disableIncrementalLoading",void 0);_.p([_.U(),_.P("design:type",String)],iP.prototype,"placeholder",void 0);_.p([_.U({value:""}),_.P("design:type",String)],iP.prototype,"search",void 0);_.p([_.U({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.P("design:type",Boolean)],iP.prototype,"searching",void 0);_.p([_.U({computed:"computeSearchCategory_(search)"}),_.P("design:type",Object)],iP.prototype,"searchCategory",void 0);
_.p([_.U({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.P("design:type",Object)],iP.prototype,"searchEmptyMessage",void 0);_.p([_.U({computed:"identity(emojiManager.skinTone)"}),_.P("design:type",Number)],iP.prototype,"skinTone",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],iP.prototype,"skinToneOpened",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],iP.prototype,"variantSelectorOpened",void 0);
_.p([_.U({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.P("design:type",Boolean)],iP.prototype,"skinToneHidden",void 0);_.p([_.U(),_.P("design:type",_.J0)],iP.prototype,"emojiManager",void 0);_.p([_.U(),_.P("design:type",Object)],iP.prototype,"emojiVariantSelector",void 0);_.p([_.U(),_.P("design:type",Object)],iP.prototype,"emojiMultiPersonSelector",void 0);
_.p([_.U({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.P("design:type",Boolean)],iP.prototype,"shouldUseStickyPreferences",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iP.prototype,"dataChanged",null);_.p([_.FY("data","selected"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iP.prototype,"updateCategoriesAndPlaceholder_",null);
_.p([_.ZP("yt-show-emoji-variant-selector"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],iP.prototype,"onShowEmojiVariantSelector",null);_.p([_.ZP("yt-emoji-picker-select-category"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],iP.prototype,"onSelectCategory_",null);_.p([_.ZP("yt-emoji-hover"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],iP.prototype,"onEmojiHover_",null);
_.p([_.FY("skinTone"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iP.prototype,"skinToneChanged_",null);_.p([_.FY("search"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iP.prototype,"searchChanged_",null);_.p([_.Ok({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],iP);
_.a(iP,"yt-emoji-picker-renderer",function(){if(e1l===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;A1q===void 0&&(A1q=document.createElement("template"));var y=A1q;b.call(N,y.content.cloneNode(!0),q.content.firstChild);e1l=q}q=e1l;return q},{mode:2});var lP=function(){var q=_.C.apply(this,arguments)||this;q.emojiManager=_.Zt;q.isDarkTheme=document.documentElement.hasAttribute("dark");q.selectedIndex=1;q.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return q};
_.Y(lP,_.C);_.g=lP.prototype;_.g.handleEmojiCustomizationVisible=function(q){this.emojiPickerRenderer.selected=q;this.selectedIndex=1;q?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.g.emojiCustomizationSetChanged=function(){var q;(q=this.data)!=null&&q.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.BA(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.g.updateSaveButtonState=function(q){var N;(N=this.data)!=null&&N.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.$e("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:q}))};
_.g.emojiUrl=function(q){q=_.E6(this.emojiManager,q);if(!q)return"";var N;q=(N=q.image)==null?void 0:N.thumbnails;return _.Mo(q,24)||""};
_.g.emojiAlt=function(q){var N=_.E6(this.emojiManager,q);if(!N)return q;var b,y,J,E=(N==null?void 0:(b=N.image)==null?void 0:(y=b.accessibility)==null?void 0:(J=y.accessibilityData)==null?void 0:J.label)||"";return E?E:N.isCustomEmoji?N.shortcuts[0]:N.emojiId||q};
_.g.emojiAriaLabel=function(q){var N,b;return((N=_.E6(this.emojiManager,q))==null?void 0:(b=N.shortcuts)==null?void 0:b[0])||q};
_.g.onEmojiClick=function(q){q.model.index!==0&&(this.selectedIndex=q.model.index)};
_.g.onEmojiSelect=function(q){q=q.detail;var N,b;((N=this.data)==null?0:N.emojiCustomizationSetEntityKey)&&((b=this.emojiCustomizationSet)==null?0:b.emojiId)&&q.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,q.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.$e("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,q.emojiId,this.selectedIndex)}))};
_.g.canEditEmoji=function(q,N,b){q=q.indexOf(N);return q===b||q===0||b===0?!1:!0};
_.g.getUpdatedEmojiIdList=function(q,N,b){var y=q.indexOf(N);q=[].concat(_.a9(q));y>=0&&(q[y]=q[b]);q[b]=N;return q};
_.$H.Object.defineProperties(lP,{template:{configurable:!0,enumerable:!0,get:function(){if(vm4===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;xa4===void 0&&(xa4=document.createElement("template"));var y=xa4;b.call(N,y.content.cloneNode(!0),q.content.firstChild);vm4=q}q=vm4;return q}}});
lP.prototype.onEmojiSelect=lP.prototype.onEmojiSelect;_.p([_.O(_.BW),_.P("design:type",Object)],lP.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],lP.prototype,"ytActionHandlerBehavior",void 0);_.p([_.dq("yt-emoji-picker-renderer"),_.P("design:type",Object)],lP.prototype,"emojiPickerRenderer",void 0);
_.p([_.U({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(q,N){return _.Ji(q.entities,"emojiCustomizationSetEntity",N)},
observer:"emojiCustomizationSetChanged"}),_.P("design:type",Object)],lP.prototype,"emojiCustomizationSet",void 0);_.p([_.U(),_.P("design:type",Object)],lP.prototype,"originalEmojiSet",void 0);_.p([_.U(),_.P("design:type",_.J0)],lP.prototype,"emojiManager",void 0);_.p([_.U(),_.P("design:type",Object)],lP.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],lP.prototype,"isDarkTheme",void 0);_.p([_.U(),_.P("design:type",Object)],lP.prototype,"selectedIndex",void 0);
_.p([_.ZP("yt-emoji-select"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],lP.prototype,"onEmojiSelect",null);_.p([_.Ok({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],lP);var JME;var Ed4;var gd1;var Zh1;var Kg=function(){var q=_.C.apply(this,arguments)||this;q.authorBadges=[];return q};
_.Y(Kg,_.C);_.g=Kg.prototype;_.g.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.g.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]]"}}}}}};
_.g.dataChanged=function(){var q=RqD(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",q)};
_.g.updateMessage=function(){var q=this.data.message,N=_.ee(_.ee(this.hostElement).querySelector("#message"));N.textContent="";q&&N.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(q))};
_.g.shouldSupportWholeItemClick=function(){return!0};
_.g.onShowOriginalClick=function(q){q.preventDefault();this.showOriginal=!0};
_.g.computeShowBar=function(q,N,b){return q&&N||b};
_.g.computeAuthorBadges=function(q){return q.authorBadges||[]};
_.g.computeAuthorIsOwner=function(q){return!!dhA(q.authorBadges,"owner")};
_.g.computeAuthorNameColor=function(q){var N;if(_.x("live_chat_author_name_color_usernames")&&(q==null?0:(N=q.authorName)==null?0:N.simpleText))return _.mhJ(_.rUn(q.authorName.simpleText));if(_.x("live_chat_seed_color_usernames")&&(q==null?0:q.authorSeedColorArgb))return _.mhJ(_.BH(q.authorSeedColorArgb));if(_.x("live_chat_colored_usernames"))return"#cc0000";var b;return _.x("live_chat_simple_color_usernames")&&(q==null?0:(b=q.authorName)==null?0:b.simpleText)&&(q==null?0:q.authorUsernameColorLight)&&
(q==null?0:q.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.BH(q.authorUsernameColorDark):_.BH(q.authorUsernameColorLight):""};
Kg.prototype.updateMessage=Kg.prototype.updateMessage;Kg.prototype.dataChanged=Kg.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Kg.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Fx.YtLiveChatItemBehavior),_.P("design:type",_.Rk)],Kg.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Kg.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Kg.prototype,"data",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Kg.prototype,"showOriginal",void 0);_.p([_.U({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Kg.prototype,"isDimmed",void 0);_.p([_.U({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Kg.prototype,"showBar",void 0);
_.p([_.U({computed:"computeAuthorBadges(data)"}),_.P("design:type",Array)],Kg.prototype,"authorBadges",void 0);_.p([_.U({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Kg.prototype,"authorIsOwner",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Kg.prototype,"inCollapsedBanner",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Kg.prototype,"inBanner",void 0);
_.p([_.U({value:_.x("live_chat_hide_avatars"),reflectToAttribute:!0}),_.P("design:type",Boolean)],Kg.prototype,"avatarHidden",void 0);_.p([_.U({computed:"computeAuthorNameColor(data)"}),_.P("design:type",String)],Kg.prototype,"authorNameColor",void 0);_.p([_.U(),_.P("design:type",_.uP)],Kg.prototype,"participantsManager",void 0);_.p([_.U({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.P("design:type",Object)],Kg.prototype,"filledButtonOverrides",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Kg.prototype,"dataChanged",null);_.p([_.FY("data.message"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Kg.prototype,"updateMessage",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Kg);
_.a(Kg,"yt-live-chat-text-message-renderer",function(){if(Zh1===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;gd1===void 0&&(gd1=document.createElement("template"));var y=gd1;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Zh1=q}q=Zh1;return q},{mode:0});var Dt=function(){var q=_.C.apply(this,arguments)||this;q.tonalButtonOverrides={type:"tonal",style:"overlay"};return q};
_.Y(Dt,_.C);
Dt.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]]"}}}}}};
Dt.prototype.shouldSupportInlineActionButtons=function(){return!0};
Dt.prototype.shouldSupportWholeItemClick=function(){return!0};
_.$H.Object.defineProperties(Dt.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Fx.YtLiveChatItemBehavior),_.P("design:type",_.Rk)],Dt.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Dt.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Dt.prototype,"data",void 0);_.p([_.U(),_.P("design:type",_.uP)],Dt.prototype,"participantsManager",void 0);
_.p([_.U(),_.P("design:type",Object)],Dt.prototype,"tonalButtonOverrides",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data.infoDialogButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],Dt.prototype,"hasInfoDialogButton",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],Dt);
_.a(Dt,"yt-live-chat-auto-mod-message-renderer",function(){if(Ed4===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;JME===void 0&&(JME=document.createElement("template"));var y=JME;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Ed4=q}q=Ed4;return q},{mode:0});var FDo;var RKx;var dFF;var cMq=function(){return _.C.apply(this,arguments)||this};
_.Y(cMq,_.C);_.p([_.U(),_.P("design:type",Object)],cMq.prototype,"data",void 0);_.p([_.I({is:"ytd-factoid-renderer",disableElementRegistration:!0})],cMq);
_.a(cMq,"ytd-factoid-renderer",function(){if(dFF!==void 0)return dFF;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return dFF=q},{mode:1});var h0=function(){return _.C.apply(this,arguments)||this};
_.Y(h0,_.C);h0.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.p([_.U(),_.P("design:type",Object)],h0.prototype,"data",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],h0.prototype,"ytRendererstamperBehavior",void 0);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],h0);
_.a(h0,"yt-live-chat-channel-activity-reputation-renderer",function(){if(RKx===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;FDo===void 0&&(FDo=document.createElement("template"));var y=FDo;b.call(N,y.content.cloneNode(!0),q.content.firstChild);RKx=q}q=RKx;return q},{mode:0});var ub4;var zKo;var kw=function(){return _.C.apply(this,arguments)||this};
_.Y(kw,_.C);kw.prototype.ready=function(){var q=document.querySelector("yt-live-chat-app");q&&q.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Boolean)],kw.prototype,"menuFocused",void 0);_.p([_.U(),_.P("design:type",Object)],kw.prototype,"data",void 0);_.p([_.O(_.Fx.YtLiveChatItemBehavior),_.P("design:type",_.Rk)],kw.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],kw);
_.a(kw,"yt-live-chat-donation-announcement-renderer",function(){if(zKo===void 0){var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;ub4===void 0&&(ub4=document.createElement("template"));var y=ub4;b.call(N,y.content.cloneNode(!0),q.content.firstChild);zKo=q}q=zKo;return q},{mode:0});var $FE;var t81,mFx=function(){if(t81!==void 0)return t81;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;$FE===void 0&&($FE=document.createElement("template"));var y=$FE;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return t81=q};var U6=function(){return _.C.apply(this,arguments)||this};
_.Y(U6,_.C);_.$H.Object.defineProperties(U6,{template:{configurable:!0,enumerable:!0,get:function(){return mFx()}}});
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],U6.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],U6.prototype,"data",void 0);_.p([_.Ok({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],U6);_.a(U6,"yt-live-chat-empty-feed-view-model",function(){return mFx()},{mode:0});var rMq;var XS1;var fg=function(){return _.C.apply(this,arguments)||this};
_.Y(fg,_.C);fg.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"}}}}}};
_.$H.Object.defineProperties(fg.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var q,N;return{runs:[{text:(q=this.data)==null?void 0:(N=q.channelName)==null?void 0:N.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var q=[],N;if((N=this.data)==null||!N.channelBadges)return q;var b;N=_.Z((b=this.data)==null?void 0:b.channelBadges);for(b=N.next();!b.done;b=N.next()){b=_.v(b.value,tOR);var y=void 0,J=void 0;if((y=b)==null?0:(J=y.badgeImage)==null?0:J.sources)y=void 0,J={liveChatAuthorBadgeRenderer:{tooltip:b.tooltip,accessibility:{accessibilityData:{label:(y=_.v(b.rendererContext,_.$A))==null?void 0:y.label}}}},b.badgeImage.sources[0].clientResource?J.liveChatAuthorBadgeRenderer.icon=
{iconType:b.badgeImage.sources[0].clientResource.imageName}:J.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:b.badgeImage.sources},q.push(J)}return q}}});
_.p([_.U(),_.P("design:type",Object)],fg.prototype,"data",void 0);_.p([_.l("data.channelName"),_.P("design:type",Object),_.P("design:paramtypes",[])],fg.prototype,"channelName",null);_.p([_.l("data.channelBadges"),_.P("design:type",Array),_.P("design:paramtypes",[])],fg.prototype,"channelBadges",null);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],fg.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],fg);
_.a(fg,"yt-live-chat-identity-view-model",function(){if(XS1===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;rMq===void 0&&(rMq=document.createElement("template"));var y=rMq;b.call(N,y.content.cloneNode(!0),q.content.firstChild);XS1=q}q=XS1;return q},{mode:0});var V8M;var j7F;var xFT;var vdo;var Cg=function(){var q=_.C.apply(this,arguments)||this;q.hidden=!1;q.supportsInlineActionButtons=!0;return q};
_.Y(Cg,_.C);Cg.prototype.ready=function(){var q;((q=document.querySelector("yt-live-chat-app"))==null?0:q.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Cg.prototype.dataChanged=function(q){var N=(0,_.yb)(_.ee(this.hostElement).querySelector("#detail-text"));N.textContent="";(q==null?0:q.detailText)&&N.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(q.detailText))};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Cg.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Fx.YtLiveChatItemBehavior),_.P("design:type",_.Rk)],Cg.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Cg.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U({observer:"dataChanged"}),_.P("design:type",Object)],Cg.prototype,"data",void 0);
_.p([_.U({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.P("design:type",Object)],Cg.prototype,"hidden",void 0);_.p([_.I({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Cg);
_.a(Cg,"yt-live-chat-legacy-paid-message-renderer",function(){if(vdo===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;xFT===void 0&&(xFT=document.createElement("template"));var y=xFT;b.call(N,y.content.cloneNode(!0),q.content.firstChild);vdo=q}q=vdo;return q},{mode:0});var GZT;var YgF;var Q7E={},Ik=function(){return _.uL.apply(this,arguments)||this};
_.Y(Ik,_.uL);Ik.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Ik.prototype.onLiveChatMembershipItemBehaviorClick=Ik.prototype.onLiveChatMembershipItemBehaviorClick;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ik.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ik.prototype,"data",void 0);_.p([_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Ik.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.p([_.zs()],Ik);
Q7E.YtLiveChatMembershipItemBehavior=[Ik.prototype,_.e.YtRendererBehavior];var T9=function(){var q=_.C.apply(this,arguments)||this;q.supportsInlineActionButtons=!0;q.hasPrimaryHeaderText=!1;q.showOnlyHeader=!1;q.authorBadges=[];q.modern=_.x("web_button_rework_with_live");q.buttonOverrides={style:"overlay",type:"filled"};return q};
_.Y(T9,_.C);_.g=T9.prototype;_.g.shouldSupportInlineActionButtons=function(){return!0};
_.g.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.g.ready=function(){var q=document.querySelector("yt-live-chat-app");q&&q.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.g.messageChanged=function(){var q=this.data.message,N=(0,_.yb)(_.ee(this.hostElement).querySelector("#message"));N.textContent="";q&&N.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(q))};
_.g.computeHasPrimaryHeaderText=function(q){return!(!q||!q.headerPrimaryText)};
_.g.computeShowOnlyHeader=function(q,N){return this.isMessageEmpty(q,N)};
_.g.computeAuthorBadges=function(q){return q.authorBadges||[]};
_.g.isMessageEmpty=function(q,N){return!q||q.empty?!0:!q.message&&!q.inputField&&!N};
_.g.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.g.getInputElement=function(){return _.ee(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.g.inputFocus=function(){var q=this.getInputElement();q&&q.focus()};
_.g.inputInsertEmoji=function(q){var N=this.getInputElement();N&&N.insertEmoji(q)};
_.g.inputMessage=function(){var q=this.getInputElement();return q&&this.data.inputField?(q.completeEmojis(),_.hE(q.liveChatRichMessageInput)):null};
_.g.onFooterButtonClick=function(){this.data.footerButton&&_.e2(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.g.shouldSupportWholeItemClick=function(){return!0};
T9.prototype.isDeletedChanged=T9.prototype.isDeletedChanged;T9.prototype.messageChanged=T9.prototype.messageChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Fx.YtLiveChatItemBehavior),_.P("design:type",_.Rk)],T9.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.O(Q7E.YtLiveChatMembershipItemBehavior),_.P("design:type",Object)],T9.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],T9.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],T9.prototype,"data",void 0);_.p([_.U({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.P("design:type",Object)],T9.prototype,"hasPrimaryHeaderText",void 0);_.p([_.U({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.P("design:type",Object)],T9.prototype,"showOnlyHeader",void 0);
_.p([_.U({computed:"computeAuthorBadges(data)"}),_.P("design:type",Array)],T9.prototype,"authorBadges",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],T9.prototype,"modern",void 0);_.p([_.FY("data.message"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],T9.prototype,"messageChanged",null);_.p([_.FY("isDeleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],T9.prototype,"isDeletedChanged",null);
_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],T9);
_.a(T9,"yt-live-chat-membership-item-renderer",function(){if(YgF===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;GZT===void 0&&(GZT=document.createElement("template"));var y=GZT;b.call(N,y.content.cloneNode(!0),q.content.firstChild);YgF=q}q=YgF;return q},{mode:0});var Ohx;var wSj;var s6=function(){return _.C.apply(this,arguments)||this};
_.Y(s6,_.C);s6.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],s6.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],s6.prototype,"data",void 0);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],s6);
_.a(s6,"yt-live-chat-mode-change-message-renderer",function(){if(wSj===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;Ohx===void 0&&(Ohx=document.createElement("template"));var y=Ohx;b.call(N,y.content.cloneNode(!0),q.content.firstChild);wSj=q}q=wSj;return q},{mode:0});var ihl;var lS4;var ng=function(){return _.C.apply(this,arguments)||this};
_.Y(ng,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ng.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Fx.YtLiveChatItemBehavior),_.P("design:type",_.Rk)],ng.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ng.prototype,"data",void 0);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],ng);
_.a(ng,"yt-live-chat-moderation-message-renderer",function(){if(lS4===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;ihl===void 0&&(ihl=document.createElement("template"));var y=ihl;b.call(N,y.content.cloneNode(!0),q.content.firstChild);lS4=q}q=lS4;return q},{mode:0});var KDq;var DFT;var ak=function(){return _.C.apply(this,arguments)||this};
_.Y(ak,_.C);ak.prototype.onClick=function(){var q;if((q=this.data)!=null&&q.onClickCommand){var N;_.bq.instance.resolveCommand((N=this.data)==null?void 0:N.onClickCommand)}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.BW),_.P("design:type",Object)],ak.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.O(_.Fx.YtLiveChatItemBehavior),_.P("design:type",_.Rk)],ak.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ak.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ak.prototype,"data",void 0);
_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],ak);
_.a(ak,"yt-live-chat-offer-click-count-message-renderer",function(){if(DFT===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;KDq===void 0&&(KDq=document.createElement("template"));var y=KDq;b.call(N,y.content.cloneNode(!0),q.content.firstChild);DFT=q}q=DFT;return q},{mode:0});var hKx;var kZF=function(){return _.C.apply(this,arguments)||this};
_.Y(kZF,_.C);_.p([_.U(),_.P("design:type",Object)],kZF.prototype,"data",void 0);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],kZF);
_.a(kZF,"yt-live-chat-placeholder-item-renderer",function(){if(hKx===void 0){var q=document.createElement("template");_.Q(q,"\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");q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);hKx=q}q=hKx;return q},{mode:0});var UF1;var fSq;var Caj=new sR(7),Ss=function(){var q=_.C.apply(this,arguments)||this;q.data={};return q};
_.Y(Ss,_.C);Ss.prototype.dataChanged=function(){var q;((q=this.data)==null?0:q.class)&&_.HP(this.hostElement,this.data.class,!0);var N;((N=this.oldData)==null?0:N.class)&&_.HP(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
Ss.prototype.computeTimestampString=function(q){return Caj.format(new Date(q/1E3))};
Ss.prototype.dataChanged=Ss.prototype.dataChanged;_.p([_.U(),_.P("design:type",Object)],Ss.prototype,"data",void 0);_.p([_.U({computed:"computeTimestampString(data.timestampUsec)"}),_.P("design:type",String)],Ss.prototype,"timestampString",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ss.prototype,"dataChanged",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Ss);
_.a(Ss,"yt-live-chat-server-error-message",function(){if(fSq===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;UF1===void 0&&(UF1=document.createElement("template"));var y=UF1;b.call(N,y.content.cloneNode(!0),q.content.firstChild);fSq=q}q=fSq;return q},{mode:0});var ISE;var Trx;var W6=function(){var q=_.C.apply(this,arguments)||this;q.defaultToFilledIcon=!1;return q};
_.Y(W6,_.C);W6.prototype.computeHasPrimaryColorIcon=function(q){return q==="SPARK"||q==="SPONSORSHIP_STAR"};
W6.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Fx.YtLiveChatItemBehavior),_.P("design:type",_.Rk)],W6.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],W6.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],W6.prototype,"defaultToFilledIcon",void 0);_.p([_.U(),_.P("design:type",Object)],W6.prototype,"data",void 0);
_.p([_.U({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.P("design:type",Boolean)],W6.prototype,"hasPrimaryColorIcon",void 0);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],W6);
_.a(W6,"yt-live-chat-viewer-engagement-message-renderer",function(){if(Trx===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;ISE===void 0&&(ISE=document.createElement("template"));var y=ISE;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Trx=q}q=Trx;return q},{mode:0});var s7x;var Lg=function(){var q=_.C.apply(this,arguments)||this;q.modernUpdate=!1;q.buttonStyle="overlay";q.buttonType="filled";return q};
_.Y(Lg,_.C);Lg.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
Lg.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Lg.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Lg.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Lg.prototype,"modernUpdate",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],Lg.prototype,"buttonStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],Lg.prototype,"buttonType",void 0);
_.p([_.I({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],Lg);
_.a(Lg,"ytd-ad-hover-text-button-renderer",function(){if(s7x!==void 0)return s7x;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return s7x=q},{mode:1});var ndJ;var pg=function(){var q=_.C.apply(this,arguments)||this;q.buttonOverrides={size:"XS"};return q};
_.Y(pg,_.C);pg.prototype.onHelpTap=function(q){this.data&&this.data.informationDialog&&(_.e2(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),q.preventDefault(),q.stopPropagation())};
_.p([_.U(),_.P("design:type",Object)],pg.prototype,"buttonOverrides",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],pg.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],pg.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],pg);
_.a(pg,"ytd-live-chat-purchased-product-message-renderer",function(){if(ndJ!==void 0)return ndJ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return ndJ=q},{mode:1});var aSJ;var SgE;var P6=function(){var q=_.C.apply(this,arguments)||this;q.isContainerDeleted=!1;return q};
_.Y(P6,_.C);P6.prototype.onContextMenuClick=function(q){this.ytLiveChatItemBehavior.showContextMenu(q)};
P6.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))};
P6.prototype.isContainerDeletedChanged=P6.prototype.isContainerDeletedChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Fx.YtLiveChatItemBehavior),_.P("design:type",_.Rk)],P6.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],P6.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],P6.prototype,"isContainerDeleted",void 0);
_.p([_.U(),_.P("design:type",String)],P6.prototype,"deletedStateMessage",void 0);_.p([_.FY("isContainerDeleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P6.prototype,"isContainerDeletedChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],P6);
_.a(P6,"ytd-sponsorships-live-chat-header-renderer",function(){if(SgE!==void 0)return SgE;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return SgE=q},{mode:1});var MJ=function(){var q=_.C.apply(this,arguments)||this;q.modern=_.x("web_button_rework_with_live");q.buttonOverrides={style:"overlay",type:"filled"};return q};
_.Y(MJ,_.C);MJ.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]]"}}}}}};
MJ.prototype.onCtaButtonClick=function(){var q,N=_.v((q=this.data)==null?void 0:q.optInPrompt,_.JI);if(q=this.maybeGetButtonCommand(N)){var b;(b=_.FR())==null||b.clickCommand(q)}};
MJ.prototype.maybeGetButtonCommand=function(q){return!q||!q.command||_.v(q.command,B7o)===void 0&&_.v(q.command,ek1)===void 0?null:q.command};
MJ.prototype.shouldHideOptinPrompt=function(q,N){return!q||N};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],MJ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Fx.YtLiveChatItemBehavior),_.P("design:type",_.Rk)],MJ.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],MJ.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],MJ.prototype,"modern",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],MJ);
_.a(MJ,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(aSJ!==void 0)return aSJ;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return aSJ=q},{mode:1});var WDl;var ok=function(){return _.C.apply(this,arguments)||this};
_.Y(ok,_.C);ok.prototype.onContextMenuClick=function(q){this.ytLiveChatItemBehavior.showContextMenu(q)};
ok.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))};
ok.prototype.isDeletedChanged=ok.prototype.isDeletedChanged;_.p([_.O(_.Fx.YtLiveChatItemBehavior),_.P("design:type",_.Rk)],ok.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ok.prototype,"data",void 0);_.p([_.FY("isDeleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ok.prototype,"isDeletedChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],ok);
_.a(ok,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(WDl!==void 0)return WDl;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return WDl=q},{mode:1});var A0=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return q};
_.Y(A0,_.C);_.g=A0.prototype;
_.g.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"}}}};
_.g.handleLiveChatAction=function(q){_.v(q,CQl)?this.handleMarkChatItemAsDeletedAction(_.v(q,CQl)):_.v(q,fDx)&&this.handleRemoveChatItemAction(_.v(q,fDx))};
_.g.handleLiveChatActions=function(q){q.forEach(this.handleLiveChatAction,this)};
_.g.handleMarkChatItemAsDeletedAction=function(q){var N=this,b;((b=this.data)==null?0:b.items)&&this.data.items.forEach(function(y,J){var E=Object.keys(y)[0];Object.values(y)[0].id===q.targetItemId&&N.markAsDeleted("data.items",J,E,q.deletedStateMessage,q.showOriginalContentMessage)})};
_.g.handleRemoveChatItemAction=function(q){var N=this,b;((b=this.data)==null?0:b.items)&&this.data.items.forEach(function(y,J){Object.values(y)[0].id===q.targetItemId&&N.splice("data.items",J,1)})};
_.g.markAsDeleted=function(q,N,b,y,J){q=[q,N,b].join(".");this.set(q+".deletedStateMessage",y);this.set(q+".showOriginalContentMessage",J)};
_.p([_.U(),_.P("design:type",Object)],A0.prototype,"data",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],A0.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],A0.prototype,"ytActionHandlerBehavior",void 0);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],A0);
_.a(A0,"yt-live-chat-item-display-list-renderer",function(){if(j7F===void 0){var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;V8M===void 0&&(V8M=document.createElement("template"));var y=V8M;b.call(N,y.content.cloneNode(!0),q.content.firstChild);j7F=q}q=j7F;return q},{mode:0});var LDR;var pSM,PaT=function(){if(pSM!==void 0)return pSM;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;LDR===void 0&&(LDR=document.createElement("template"));var y=LDR;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return pSM=q};var es=function(){var q=_.C.apply(this,arguments)||this;q.isHeader=!1;return q};
_.Y(es,_.C);es.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.$H.Object.defineProperties(es,{template:{configurable:!0,enumerable:!0,get:function(){return PaT()}}});
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],es.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],es.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],es.prototype,"isHeader",void 0);_.p([_.Ok({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],es);_.a(es,"yt-live-chat-item-display-renderer",function(){return PaT()},{mode:0});var M8x,odR,qcj,Hhx;
M8x={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}};odR={home:"eohps",search:"eosps",watch:"eowps"};_.AMT=["watch","search","home"];
_.B6=function(){this.JSC$14489_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14489_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.M7("PRECONSTRUCTION_DELAY",0);this.signals_=_.dw();this.targetPage_=""};
_.B6.prototype.init=function(q,N){q=q===void 0?"":q;N=N===void 0?null:N;if(this.JSC$14489_isInitialized_)this.abort();else if(this.JSC$14489_isInitialized_=!0,q&&_.eKJ(this,q),N){var b=_.cW(this.signals_,"pcl")?0:10,y=function(){for(var J=0,E;E=_.AMT[J++];)E!=q&&E!=N&&this.pendingPages_.push(E);_.Br1(this)}.bind(this);
this.signals_.parkOrScheduleJob(y,b,"pcl")}};
_.B6.prototype.abort=function(){this.fragmentJobId_&&(_.pY.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Hhx(this)};
_.eKJ=function(q,N){q.JSC$14489_isInitialized_&&!q.targetPage_&&(q.targetPage_=N,qcj(q,N),q.isInitialPass_=!1,qcj(q,N),q.signals_.processSignal(odR[q.targetPage_]),Hhx(q),_.Br1(q))};
_.Br1=function(q){q.pendingPages_.length&&!q.pagePreparerJobId_&&(q.pagePreparerJobId_=_.Ip(_.pY,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.eKJ(this,this.pendingPages_.shift())}.bind(q),q.DEFAULT_DELAY_))};
qcj=function(q,N){if(N=M8x[N])for(var b in N){var y=!1,J=b;b.charAt(0)=="~"&&(y=!0,J=b.substring(1));var E=N[b];E=typeof E=="object"?E:{count:E};N[b]=E;E.componentName=J;E.count>0&&(q.isInitialPass_?y||q.isSeenDuringInitialPass_[J]||(q.JSC$14489_queue_.push({componentName:J,count:1,signals:E.signals}),q.isSeenDuringInitialPass_[J]=!0,E.count--):q.JSC$14489_queue_.push(E))}};
Hhx=function(q){q.JSC$14489_queue_.length=0;q.targetPage_="";q.isInitialPass_=!0;q.signals_.processSignal("eop")};
_.B6.getInstance=function(){return _.L0(_.B6)};var NNx=function(){this.signals=_.dw();this.init()};
NNx.prototype.startPreconstruction=function(){_.B6.getInstance().init(_.ou("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
NNx.prototype.init=function(){byR(this);window.Polymer&&R2x&&bSd();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var q=_.JZ.ytcsi;if(q&&q.gt&&(q=q.gt())&&q.tick&&(q.tick.aft>0||q.tick.pbs>0)&&(_.ou("IS_HOMEPAGE_COLD")||_.ou("IS_RESULTS_PAGE_COLD")||_.ou("IS_WATCH_PAGE_COLD"))){yQq(this);break a}s0A(aDn,this.onNotifications,this)}};
var byR=function(q){var N=function(){q.signals.processSignal("dl")};
document.readyState==="complete"?(_.bv(Error("th"),"WARNING"),N()):_.t_d(window,"load",N)};
NNx.prototype.onNotifications=function(q){q.timer||(_.ou("IS_HOMEPAGE_COLD")||_.ou("IS_RESULTS_PAGE_COLD")||_.ou("IS_WATCH_PAGE_COLD"))&&yQq(this)};
var yQq=function(q){q.signals.parkOrScheduleJob(function(){q.signals.processSignal("eocs")},10,"eor")};
new NNx;var JQq=function(){return _.uL.apply(this,arguments)||this};
_.Y(JQq,_.uL);_.$H.Object.defineProperties(JQq.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.x("enable_entity_store_from_dependency_injection")?_.sk():_.WT()}}});
_.p([_.zs()],JQq);_.H6=[LP.prototype,JQq.prototype];var EMJ=["ytd-rich-shelf-renderer"],q8=function(){var q=_.uL.apply(this,arguments)||this;q._noAccessors=!0;q.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";q.followUpDialogPromise=null;q.followUpDialogPromiseResolve=null;q.followUpDialogPromiseReject=null;return q};
_.Y(q8,_.uL);_.g=q8.prototype;_.g.dismissibleItemIsDismissedChanged_=function(q){_.x("kevlar_fluid_dismiss")&&(q?_.e2(this.hostElement,"yt-dismissible-item-dismissed"):_.e2(this.hostElement,"yt-dismissible-item-undismissed"))};
_.g.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.g.dismissibleItemReset_=function(){var q=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 _.wL(function(N,b){q.followUpDialogPromiseResolve=N;q.followUpDialogPromiseReject=b});
_.e2(this.hostElement,"yt-enable-lockup-interaction")};
_.g.dismissibleItemOnYtServiceRequestSent_=function(q,N){N.actions&&this.dismissibleItemProcessActions(N.actions,q)};
_.g.dismissibleItemOnRequestSent=function(q){for(var N=_.Z(q.detail),b=N.next();!b.done;b=N.next()){var y=void 0;(b=(y=_.v(b.value,_.EY))==null?void 0:y.actions)&&this.dismissibleItemProcessActions(b,q)}};
_.g.dismissibleItemOnCommandSent=function(q,N){N&&this.dismissibleItemProcessActions(N,q)};
_.g.setAndGetDismissedContentId=function(q){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+q};
_.g.replayDismissAction=function(q){this.dismissibleItemProcessActions([q])};
_.g.dismissibleItemProcessActions=function(q,N){for(var b=0;b<q.length;b++){var y=q[b],J=void 0;((J=_.v(y,_.y6))==null?0:J.commands)&&this.dismissibleItemProcessActions(_.v(y,_.y6).commands,N);if(_.v(y,_.fO)){if(J=_.v(y,_.fO),!J.replaceParentSection||EMJ.includes(this.hostElement.nodeName.toLowerCase()))J.groupDismissal&&T4D(this,J.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(J),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.$e("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:y})),y=void 0,(y=N)==null||y.stopPropagation()}else if(_.v(y,Kzl))this.dismissibleItemHandleHideEnclosingAction_(),y=void 0,(y=N)==null||y.stopPropagation();else if(_.v(y,NC1))y=_.v(y,NC1),J=void 0,((J=y)==null?0:J.targetGroupId)&&T4D(this,{targetGroupId:y.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.$e("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
y=void 0,(y=N)==null||y.stopPropagation();else if(_.v(y,_.EY))(y=_.v(y,_.EY).actions)&&_.Nc(this.hostElement,y,this.hostElement),y=void 0,(y=N)==null||y.stopPropagation();else{var E=J=void 0;((J=_.v(y,_.qr))==null?void 0:J.signal)!=="TELL_US_WHY"||((E=_.v(y,_.qr))==null?0:E.targetId)&&_.x("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),y=void 0,(y=N)==null||y.stopPropagation())}}};
_.g.dismissibleItemOnYtServiceRequestCompleted_=function(q,N){var b=this.get("feedbackResponses.0.followUpDialog",N.data);b?this.followUpDialogPromiseResolve(b):N.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(N.actions,q)};
_.g.dismissibleItemHandleReplaceEnclosingAction_=function(q){this.dismissedRenderer=q.item;this.isDismissed=!0;var N=null;(N=_.ee(this.hostElement).querySelector("#dismissed"))&&_.ut(this,function(){_.Ff(N)});
_.e2(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.g.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.g.dismissibleItemHandleUndoFeedbackAction_=function(){_.e2(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.g.dismissibleItemHandleTellUsWhySignalAction_=function(){var q=this;this.followUpDialogPromise.then(function(N){q.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:N}})})};
q8.prototype.dismissibleItemOnYtServiceRequestCompleted_=q8.prototype.dismissibleItemOnYtServiceRequestCompleted_;q8.prototype.dismissibleItemOnCommandSent=q8.prototype.dismissibleItemOnCommandSent;q8.prototype.dismissibleItemOnRequestSent=q8.prototype.dismissibleItemOnRequestSent;q8.prototype.dismissibleItemOnYtServiceRequestSent_=q8.prototype.dismissibleItemOnYtServiceRequestSent_;q8.prototype.dismissibleItemDataChanged_=q8.prototype.dismissibleItemDataChanged_;
q8.prototype.dismissibleItemIsDismissedChanged_=q8.prototype.dismissibleItemIsDismissedChanged_;_.p([_.O(_.r7),_.P("design:type",Object)],q8.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],q8.prototype,"ytdReduxBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],q8.prototype,"isDismissed",void 0);_.p([_.U(),_.P("design:type",Object)],q8.prototype,"dismissedRenderer",void 0);
_.p([_.FY("isDismissed"),_.P("design:type",Function),_.P("design:paramtypes",[Boolean]),_.P("design:returntype")],q8.prototype,"dismissibleItemIsDismissedChanged_",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],q8.prototype,"dismissibleItemDataChanged_",null);
_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],q8.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.p([_.ZP("yt-service-request-sent-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],q8.prototype,"dismissibleItemOnRequestSent",null);
_.p([_.ZP("yt-dismissible-item-action"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Array]),_.P("design:returntype")],q8.prototype,"dismissibleItemOnCommandSent",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],q8.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.p([_.zs()],q8);_.N8=[_.r7,_.H6,q8.prototype];var bf=function(){var q=_.uL.apply(this,arguments)||this;q.disableGridStateAware=!1;q.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};q.currentGridClass="";return q};
_.Y(bf,_.uL);bf.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.ut(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var q=this.gridStateAwareGetElement();_.HP(q,"grid",!0)}};
bf.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
bf.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.ee(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
bf.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var q="grid-disabled";else{q=_.id.getInstance();var N=this.get("pageSubtype");q=N&&cqT.includes(N)?"grid-disabled":q.currentSnapState_?q.currentSnapState_.className:null}(N=this.gridStateAwareGetElement())&&q!==this.currentGridClass&&(q&&_.HP(N,q,!0),this.currentGridClass&&_.HP(N,this.currentGridClass,!1),this.currentGridClass=q)};
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],bf.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",String)],bf.prototype,"gridStateAwareSizingElementSelector",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],bf.prototype,"disableGridStateAware",void 0);_.p([_.zs()],bf);_.y1=[bf.prototype,_.Dc.YtActionHandlerBehavior];_.JP=new _.Jw("GUIDE_TOKEN");var g2;_.Eb={};g2=function(){var q=_.uL.apply(this,arguments)||this;q.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 q};
_.Y(g2,_.uL);_.g=g2.prototype;_.g.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.g.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var q=_.tz().resolve(_.$f(_.JP));q&&(this.guidePersistentAndVisible=q.getGuidePersistentAndVisible(),this.activeEndpoint=q.getActiveEndpoint(),this.guideOpened=q.getGuideOpened(),this.miniGuideVisible=q.getMiniGuideVisible())};
_.g.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.g.handleGuideStateAction=function(q){this.guidePersistentAndVisible=q};
_.g.handleMiniGuideStateAction=function(q){this.miniGuideVisible=q};
_.g.handleGuideOpenedAction=function(q){this.guideOpened=q};
_.g.handleActiveEndpointAction=function(q){this.activeEndpoint=q};
g2.prototype.onActiveEndpointChange=g2.prototype.onActiveEndpointChange;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],g2.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],g2.prototype,"guidePersistentAndVisible",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],g2.prototype,"miniGuideVisible",void 0);_.p([_.U(),_.P("design:type",Object)],g2.prototype,"activeEndpoint",void 0);
_.p([_.FY("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],g2.prototype,"onActiveEndpointChange",null);_.p([_.U(),_.P("design:type",Boolean)],g2.prototype,"guideOpened",void 0);_.p([_.zs()],g2);_.Eb.YtdGuideStateAwareBehavior=[];_.Eb.YtdGuideStateAwareBehavior.push(g2.prototype,_.Dc.YtActionHandlerBehavior);var gMT=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],Zv=function(){var q=_.uL.apply(this,arguments)||this;q.hoverJobId=0;q.JSC$14516_touched=!1;return q};
_.Y(Zv,_.uL);_.g=Zv.prototype;_.g.created=function(){this.useExpandableTooltip=!gMT.includes(this.is)};
_.g.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.g.detached=function(){this.useExpandableTooltip=!1};
_.g.lockupOnDown=function(q){this.interactionElement&&!_.Su(_.n9(q),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.g.lockupOnUp=function(q){this.interactionElement&&!_.Su(_.n9(q),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.g.onTouchStart=function(){this.JSC$14516_touched=!0};
_.g.lockupOnMouseEnter=function(){var q=this,N=_.VX("kevlar_lockup_hover_delay",-1);this.JSC$14516_touched&&N>=0?(_.pY.cancelJob(this.hoverJobId),this.hoverJobId=_.pY.addJob(function(){q.lockupIsHovered=!0},8,N),this.JSC$14516_touched=!1):this.lockupIsHovered=!0};
_.g.lockupOnMouseLeave=function(){this.hoverJobId&&(_.pY.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.g.lockupOnPopupClosed=function(q,N){var b;((b=N.popupRenderer)==null?void 0:b.is)==="ytd-menu-popup-renderer"&&(q=N.popupRenderer.veData,N=_.Oe(),q&&N&&_.sY(N,[q]))};
_.g.lockupOnLockupRequested=function(q){var N=q.detail.videoIds[0],b;q.detail&&N===((b=this.data)==null?void 0:b.videoId)&&(q.detail.returnValue=[this.data])};
_.g.lockupOnYtServiceRequestSent=function(q,N){if(q=N.actions)for(var b=0;b<q.length;b++){var y=q[b];if(y.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&N.ajaxPromise){var J=void 0,E=(J=_.v(N.endpoint,_.qz))==null?void 0:J.playlistId;J=void 0;y=(J=y.removedVideoId)!=null?J:"";CNT(_.zV(),y,E)}else y.action==="ACTION_REMOVE_VIDEO"&&N.ajaxPromise&&(E=void 0,y=(E=y.setVideoId)!=null?E:"",_.I_x(_.zV(),y))}};
_.g.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.g.lockupOnLockupEnabled=function(){if(!this.$){var q=_.tz().resolve(_.L6).getCurrentPage(),N=this.getParentRenderer?this.getParentRenderer():void 0;_.M6(new _.IO("component not ready",this.is,this.isAttached,q==null?void 0:q.is,N==null?void 0:N.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
Zv.prototype.lockupOnLockupEnabled=Zv.prototype.lockupOnLockupEnabled;Zv.prototype.lockupOnLockupDisabled=Zv.prototype.lockupOnLockupDisabled;Zv.prototype.lockupOnYtServiceRequestSent=Zv.prototype.lockupOnYtServiceRequestSent;Zv.prototype.lockupOnLockupRequested=Zv.prototype.lockupOnLockupRequested;Zv.prototype.lockupOnPopupClosed=Zv.prototype.lockupOnPopupClosed;Zv.prototype.lockupOnMouseLeave=Zv.prototype.lockupOnMouseLeave;Zv.prototype.lockupOnMouseEnter=Zv.prototype.lockupOnMouseEnter;
Zv.prototype.onTouchStart=Zv.prototype.onTouchStart;Zv.prototype.lockupOnUp=Zv.prototype.lockupOnUp;Zv.prototype.lockupOnDown=Zv.prototype.lockupOnDown;_.p([_.U(),_.P("design:type",Object)],Zv.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],Zv.prototype,"lockupIsHovered",void 0);_.p([_.U(),_.P("design:type",Boolean)],Zv.prototype,"lockupTouchTriggered",void 0);_.p([_.U(),_.P("design:type",Boolean)],Zv.prototype,"useExpandableTooltip",void 0);
_.p([_.dq("#interaction"),_.P("design:type",Object)],Zv.prototype,"interactionElement",void 0);_.p([_.ZP("down"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Zv.prototype,"lockupOnDown",null);_.p([_.ZP("up"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Zv.prototype,"lockupOnUp",null);
_.p([_.ZP("touchstart"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zv.prototype,"onTouchStart",null);_.p([_.ZP("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zv.prototype,"lockupOnMouseEnter",null);_.p([_.ZP("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zv.prototype,"lockupOnMouseLeave",null);
_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],Zv.prototype,"lockupOnPopupClosed",null);_.p([_.ZP("yt-lockup-requested"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Zv.prototype,"lockupOnLockupRequested",null);
_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],Zv.prototype,"lockupOnYtServiceRequestSent",null);_.p([_.ZP("yt-disable-lockup-interaction"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zv.prototype,"lockupOnLockupDisabled",null);
_.p([_.ZP("yt-enable-lockup-interaction"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zv.prototype,"lockupOnLockupEnabled",null);_.p([_.zs()],Zv);_.Fi=[Zv.prototype];_.ZyM={YtdReduxBehavior:[]};_.ZyM.YtdReduxBehavior.push.apply(_.ZyM.YtdReduxBehavior,_.H6);var RQ=function(){var q=_.uL.apply(this,arguments)||this;q._noAccessors=!0;q.disableNowPlaying=!1;q.disableTooltips=!1;q.useHoveredProperty=!1;q.hovered=!1;q.isThumbnailHovered_=!1;q.addBackground=_.x("kevlar_thumbnail_bg");q.nowPlaying=!1;q.disableRounding=!1;q.size="small";return q};
_.Y(RQ,_.uL);_.g=RQ.prototype;_.g.computeThumbnailOverlaySidePanelWidth_=function(q,N){return q-N};
_.g.computeSize=function(q,N){if(!this.disableRounding){if(!q&&!N)return"small";q=Math.max(q||0,N||0);return q>=256?"large":q>=96?"medium":"small"}};
_.g.computeFinalHoveredState_=function(q,N,b){return this.nowPlaying?!1:_.x("kevlar_thumbnail_fluid")&&q?N:b};
_.g.computeHoverOverlays_=function(q,N){return q&&N?N:void 0};
_.g.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.g.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.g.checkMiniplayer_=function(){var q;if(((q=this.data)==null?0:q.playlistSetVideoId)&&_.x("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{q=_.sM();var N=q.currentEndpoint;!this.disableNowPlaying&&N&&_.v(N,_.nx)&&this.data?(N=_.v(N,_.nx),this.nowPlaying=this.data.playlistId?N.playlistId===this.data.playlistId:N.videoId===this.data.videoId,this.isVideoPlaying=q==null?void 0:q.isVideoPlaying):this.nowPlaying=!1}};
RQ.prototype.checkMiniplayer_=RQ.prototype.checkMiniplayer_;RQ.prototype.onMouseLeave_=RQ.prototype.onMouseLeave_;RQ.prototype.onMouseEnter_=RQ.prototype.onMouseEnter_;RQ.prototype.computeHoverOverlays_=RQ.prototype.computeHoverOverlays_;RQ.prototype.computeFinalHoveredState_=RQ.prototype.computeFinalHoveredState_;RQ.prototype.computeSize=RQ.prototype.computeSize;RQ.prototype.computeThumbnailOverlaySidePanelWidth_=RQ.prototype.computeThumbnailOverlaySidePanelWidth_;
_.p([_.O(_.H6),_.P("design:type",Object)],RQ.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],RQ.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Number)],RQ.prototype,"height",void 0);_.p([_.U(),_.P("design:type",Boolean)],RQ.prototype,"bottomSidePanel",void 0);_.p([_.U(),_.P("design:type",Number)],RQ.prototype,"width",void 0);_.p([_.U(),_.P("design:type",Object)],RQ.prototype,"disableNowPlaying",void 0);
_.p([_.U({selector:_.QU}),_.P("design:type",Boolean)],RQ.prototype,"miniplayerIsActive",void 0);_.p([_.U(),_.P("design:type",Object)],RQ.prototype,"disableTooltips",void 0);_.p([_.U(),_.P("design:type",Object)],RQ.prototype,"useHoveredProperty",void 0);_.p([_.U(),_.P("design:type",Object)],RQ.prototype,"hovered",void 0);_.p([_.U(),_.P("design:type",Object)],RQ.prototype,"isThumbnailHovered_",void 0);
_.p([_.U({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.P("design:type",Boolean)],RQ.prototype,"finalHoveredState_",void 0);_.p([_.U({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.P("design:type",Number)],RQ.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],RQ.prototype,"addBackground",void 0);
_.p([_.U({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.P("design:type",Object)],RQ.prototype,"hoverOverlays_",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],RQ.prototype,"nowPlaying",void 0);_.p([_.U(),_.P("design:type",Boolean)],RQ.prototype,"isVideoPlaying",void 0);_.p([_.U(),_.P("design:type",Object)],RQ.prototype,"disableRounding",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.P("design:type",Object)],RQ.prototype,"size",void 0);_.p([_.ZP("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RQ.prototype,"onMouseEnter_",null);_.p([_.ZP("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RQ.prototype,"onMouseLeave_",null);
_.p([_.FY("data","disableNowPlaying","miniplayerIsActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RQ.prototype,"checkMiniplayer_",null);_.p([_.zs()],RQ);var Fhv=[RQ.prototype];_.d2={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(q,N){return q+":"+_.en(N)},
getPlayerListener_:function(q,N,b){q=this.getPlayerListenerKey_(q,N);N=this.playerListeners_.get(q);b&&this.playerListeners_.delete(q);return N},
savePlayerListener_:function(q,N){var b=N.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(q,N),b);return b},
listenToPlayerEvent:function(q,N,b){b=this.savePlayerListener_(N,b);q.addEventListener(N,b)},
listenToPlayerEvents:function(q,N){N.forEach(function(b,y){this.listenToPlayerEvent(q,y,b)}.bind(this))},
unlistenFromPlayerEvent:function(q,N,b){b=this.getPlayerListener_(N,b,!0);q.removeEventListener(N,b)},
unlistenFromPlayerEvents:function(q,N){N.forEach(function(b,y){this.unlistenFromPlayerEvent(q,y,b)}.bind(this))}}};
_.cX=function(){};_.RCj=new _.Jw("PLAYER_API_TOKEN");var SWd=!1,PHh,LEA=!1,omu;var AE=function(q,N,b,y,J){_.UN.call(this);var E=this;this.playerId=N;this.webPlayerContextConfig=y;this.phu=J;this.pAK=!1;this.api={};this.g6b=this.kIn=null;this.sRb=new _.K4;this.qO={};this.kR6=this.wHP=this.elementId=this.kHO=this.config=null;this.hfP=!1;this.gJ=this.hPS=null;this.vHS={};this.ySC=["onReady"];this.lastError=null;this.u5u=NaN;this.z9j={};this.eZn=0;this.vL=this.targetElement=q;_.YN(this,this.sRb);d3F(this);b?this.eZn=setTimeout(function(){E.loadNewVideoConfig(b)},0):y&&(cQ1(this),
uGo(this))};
_.Y(AE,_.UN);AE.prototype.getId=function(){return this.playerId};
AE.prototype.loadNewVideoConfig=function(q){if(!this.isDisposed()){this.eZn&&(clearTimeout(this.eZn),this.eZn=0);var N=q||{};N instanceof SEx||(N=new SEx(N));this.config=N;this.setConfig(q);uGo(this);this.isReady()&&zCx(this)}};
var cQ1=function(q){var N;q.webPlayerContextConfig?N=q.webPlayerContextConfig.rootElementId:N=q.config.attrs.id;q.elementId=N||q.elementId;q.elementId==="video-player"&&(q.elementId=q.playerId,q.webPlayerContextConfig?q.webPlayerContextConfig.rootElementId=q.playerId:q.config.attrs.id=q.playerId);var b;((b=q.vL)==null?void 0:b.id)===q.elementId&&(q.elementId+="-player",q.webPlayerContextConfig?q.webPlayerContextConfig.rootElementId=q.elementId:q.config.attrs.id=q.elementId)};
AE.prototype.setConfig=function(q){this.kHO=q;this.config=$3T(q);cQ1(this);if(!this.wHP){var N;this.wHP=tSE(this,((N=this.config.args)==null?void 0:N.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var b;if((b=this.config)==null?0:b.attrs)q=this.config.attrs,(N=q.width)&&this.vL&&(this.vL.style.width=Tm(Number(N)||N,!0)),(q=q.height)&&this.vL&&(this.vL.style.height=Tm(Number(q)||q,!0))};
AE.prototype.getConfig=function(){return this.kHO};
var zCx=function(q){if(q.config&&q.config.loaded!==!0)if(q.config.loaded=!0,!q.config.args||q.config.args.autoplay!=="0"&&q.config.args.autoplay!==0&&q.config.args.autoplay!==!1){var N;q.api.loadVideoByPlayerVars((N=q.config.args)!=null?N:null)}else q.api.cueVideoByPlayerVars(q.config.args)},rQj=function(q){var N=!0,b=q.getPlayerElement();
b&&q.config&&(N=b.dataset.version===m3x(q));return N&&!!_.Ng("yt.player.Application.create")},uGo=function(q){if(!q.isDisposed()&&!q.hfP){var N=rQj(q);
if(N&&(q.getPlayerElement()?"html5":null)==="html5")q.kR6="html5",q.isReady()||XqE(q);else if(VS1(q),q.kR6="html5",N&&q.gJ&&q.targetElement)q.targetElement.appendChild(q.gJ),XqE(q);else{q.config&&(q.config.loaded=!0);var b=!1;q.hPS=function(){b=!0;var y=j4R(q,"player_bootstrap_method")?_.Ng("yt.player.Application.createAlternate")||_.Ng("yt.player.Application.create"):_.Ng("yt.player.Application.create");var J=q.config?$3T(q.config):void 0;y&&y(q.targetElement,J,q.webPlayerContextConfig,q.phu);XqE(q)};
q.hfP=!0;N?q.hPS():(_.kU(m3x(q),q.hPS),(N=x3o(q))&&Fmd(N||""),vMM(q)&&!b&&_.zn("yt.player.Application.create",null))}}};
AE.prototype.getPlayerElement=function(){var q=_.oE(document,this.elementId);!q&&this.vL&&this.vL.querySelector&&(q=this.vL.querySelector("#"+this.elementId));return q};
var XqE=function(q){if(!q.isDisposed()){var N=q.getPlayerElement(),b=!1;N&&N.getApiInterface&&N.getApiInterface()&&(b=!0);if(b){q.hfP=!1;if(!j4R(q,"html5_remove_not_servable_check_killswitch")){var y;if((N==null?0:N.isNotServable)&&q.config&&(N==null?0:N.isNotServable((y=q.config.args)==null?void 0:y.video_id)))return}GYq(q)}else q.u5u=setTimeout(function(){XqE(q)},50)}},GYq=function(q){d3F(q);
q.pAK=!0;var N=q.getPlayerElement();if(N){q.kIn=Ycq(q,N,"addEventListener");q.g6b=Ycq(q,N,"removeEventListener");var b=N.getApiInterface();b=b.concat(N.getInternalApiInterface());for(var y=q.api,J=0;J<b.length;J++){var E=b[J];y[E]||(y[E]=Ycq(q,N,E))}}for(var F in q.qO)q.qO.hasOwnProperty(F)&&q.kIn&&q.kIn(F,q.qO[F]);zCx(q);q.wHP&&q.wHP(q.api);q.sRb.publish("onReady",q.api)},Ycq=function(q,N,b){var y=N[b];
return function(){var J=_.MB.apply(0,arguments);try{return q.lastError=null,y.apply(N,J)}catch(E){if(b!=="sendAbandonmentPing")throw E.params=b,q.lastError=E,J=new _.IO("PlayerProxy error in method call",{error:E,method:b,playerId:q.playerId}),J.level="WARNING",J;}}},d3F=function(q){q.pAK=!1;
if(q.g6b)for(var N in q.qO)q.qO.hasOwnProperty(N)&&q.g6b(N,q.qO[N]);for(var b in q.z9j)q.z9j.hasOwnProperty(b)&&clearTimeout(Number(b));q.z9j={};q.kIn=null;q.g6b=null;N=q.api;for(var y in N)N.hasOwnProperty(y)&&(N[y]=null);N.addEventListener=function(J,E){q.addEventListener(J,E)};
N.removeEventListener=function(J,E){q.removeEventListener(J,E)};
N.destroy=function(){q.dispose()};
N.getLastError=function(){return q.getLastError()};
N.getPlayerType=function(){return q.getPlayerType()};
N.getCurrentVideoConfig=function(){return q.getConfig()};
N.loadNewVideoConfig=function(J){q.loadNewVideoConfig(J)};
N.isReady=function(){return q.isReady()}};
AE.prototype.isReady=function(){return this.pAK};
AE.prototype.addEventListener=function(q,N){var b=this;this.isDisposed();var y=tSE(this,N);y&&(_.aJ(this.ySC,q)||this.qO[q]||(N=Q4x(this,q),this.kIn&&this.kIn(q,N)),this.sRb.subscribe(q,y),q==="onReady"&&this.isReady()&&setTimeout(function(){y(b.api)},0))};
AE.prototype.removeEventListener=function(q,N){this.isDisposed()||(N=tSE(this,N))&&this.sRb.unsubscribe(q,N)};
var tSE=function(q,N){var b=N;if(typeof N==="string"){if(q.vHS[N])return q.vHS[N];b=function(){var y=_.MB.apply(0,arguments),J=_.Ng(N);if(J)try{J.apply(_.JZ,y)}catch(E){throw y=new _.IO("PlayerProxy error when executing callback",{error:E}),y.level="ERROR",y;}};
q.vHS[N]=b}return b?b:null},Q4x=function(q,N){var b=function(y){var J=function(){q.isDisposed();
if(!q.isDisposed())try{q.sRb.publish(N,y!=null?y:void 0)}catch(R){var F=new _.IO("PlayerProxy error when creating global callback",{error:R.message,event:N,playerId:q.playerId,data:y,originalStack:R.stack,componentStack:R.componentStack});F.level="WARNING";throw F;}};
if(j4R(q,"web_player_publish_events_immediately"))J();else{var E=setTimeout(function(){J();_.nM.remove(q.z9j,String(E))},0);
_.nM.add(q.z9j,String(E),!0)}};
return q.qO[N]=b};
AE.prototype.getPlayerType=function(){return this.kR6||(this.getPlayerElement()?"html5":null)};
AE.prototype.getLastError=function(){return this.lastError};
var VS1=function(q){q.cancel();d3F(q);q.kR6=null;q.config&&(q.config.loaded=!1);var N=q.getPlayerElement();N&&(rQj(q)||!vMM(q)?q.gJ=N:(N&&N.destroy&&N.destroy(),q.gJ=null));q.targetElement&&_.Do(q.targetElement)};
AE.prototype.cancel=function(){this.hPS&&_.Cen(m3x(this),this.hPS);clearTimeout(this.u5u);this.hfP=!1};
AE.prototype.disposeInternal=function(){VS1(this);if(this.gJ&&this.config&&this.gJ.destroy)try{this.gJ.destroy()}catch(N){var q=new _.IO("PlayerProxy error during disposal",{error:N});q.level="ERROR";throw q;}this.vHS=null;for(q in this.qO)this.qO.hasOwnProperty(q)&&delete this.qO[q];this.kHO=this.config=this.api=null;delete this.targetElement;delete this.vL;_.UN.prototype.disposeInternal.call(this)};
var vMM=function(q){var N,b;q=(N=q.config)==null?void 0:(b=N.args)==null?void 0:b.fflags;return!!q&&q.indexOf("player_destroy_old_version=true")!==-1},m3x=function(q){return q.webPlayerContextConfig?q.webPlayerContextConfig.jsUrl:(q=q.config.assets)?q.js:""},x3o=function(q){return q.webPlayerContextConfig?q.webPlayerContextConfig.cssUrl:(q=q.config.assets)?q.css:""},j4R=function(q,N){if(q.webPlayerContextConfig)var b=q.webPlayerContextConfig.serializedExperimentFlags;
else{var y;if((y=q.config)==null?0:y.args)b=q.config.args.fflags}return(b||"").split("&").includes(N+"=true")},$3T=function(q){for(var N={},b=_.Z(Object.keys(q)),y=b.next();!y.done;y=b.next()){y=y.value;
var J=q[y];N[y]=typeof J==="object"?_.nM.clone(J):J}return N};var qgJ={},HZd="player_uid_"+(Math.random()*1E9>>>0);var uf=function(q,N,b,y,J,E){N=N===void 0?document.createElement("div"):N;this.webPlayerContextConfig=q;this.container=N;this.commandResolver=b;this.apiResolver=yMd();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.yk;y||E?OyR(this):wqT(this);this.pendingPlayerResponse=y;this.pendingWatchNextResponse=J;this.pendingPlayerVars=E;iyv(this)};
uf.prototype.loadVideoWithPlayerResponse=function(q,N,b){this.loadVideo(q,N,b)};
uf.prototype.loadVideoWithPlayerVars=function(q){return this.loadVideo(void 0,void 0,q)};
uf.prototype.destroy=function(q){if(q=_.oE(document,q))q=HZd+"_"+_.en(q),(q=qgJ[q])&&q.dispose()};
var KhE=function(q,N){var b;_.d(function(y){if(y.nextAddress==1)return q.pendingWatchNextResponse=N,q.synchronousApi?(b=q.synchronousApi,y.jumpTo(2)):y.yield(q.api,3);y.nextAddress!=2&&(b=y.yieldResult);if(!lFF(q,b))return y.return();q.pendingWatchNextResponse&&(b.updateVideoData({raw_watch_next_response:q.pendingWatchNextResponse}),q.pendingWatchNextResponse=void 0);_.hj(y)})},lFF=function(q,N){var b;
if(!(N==null?0:(b=N.isReady)==null?0:b.call(N))){var y;_.M6(new _.IO("playerApi is falsey",{synchronousApi:q.synchronousApi,apiResolved:q.apiResolver.resolved,playerApiUndefined:N===void 0,playerApiNull:N===null,playerApiReady:(N==null?void 0:(y=N.isReady)==null?void 0:y.call(N))===!0,playerApiMethods:N?Object.keys(N):[]}));return!1}return!0},D3q=function(q,N){if(typeof q[N]==="function")return q[N]()},hCT=function(q){var N=window,b,y=(b=N.ytplayer)==null?void 0:b.bootstrapPlayerContainer;
if((b=y==null?void 0:y.firstElementChild)&&_.P2(b,"html5-video-player")){var J,E,F=(J=N.ytplayer)==null?void 0:(E=J.bootstrapWebPlayerContextConfig)==null?void 0:E.contextId;J=q.webPlayerContextConfig.contextId;if(F&&F===J){y!==q.container&&(y=!1,D3q(b,"getPlayerState")===2&&(y=!0),q.container.appendChild(b),y||D3q(b,"playVideo"));var R;if((R=N.ytplayer)==null?0:R.bootstrapPlayerResponse)q.bootstrapPlayerResponse=N.ytplayer.bootstrapPlayerResponse}}},iyv=function(q){var N,b,y,J,E;
_.d(function(F){if(F.nextAddress==1)return q.pageReadyOrDataAvailable?F.jumpTo(2):F.yield(q.pageReadyOrDataAvailableResolver.promise,2);if(F.nextAddress!=4)return!_.x("kevlar_player_unified_player_loading")||WEe()&&pnn()?F.jumpTo(4):F.yield(e1J(),4);hCT(q);if(q.pendingPlayerResponse||q.pendingPlayerVars)N=B4n(q.pendingPlayerResponse,q.pendingWatchNextResponse,q.pendingPlayerVars),q.pendingPlayerResponse&&q.pendingPlayerResponse===q.bootstrapPlayerResponse&&(N.loaded=!0),q.bootstrapPlayerResponse=
void 0;b=bhR(q.container,N,q.webPlayerContextConfig);((y=N)==null?0:y.loaded)&&q.pendingWatchNextResponse?(KhE(q,q.pendingWatchNextResponse),q.pendingPlayerResponse=void 0,q.pendingPlayerVars=void 0):kYF(q);J=function(R){b.removeEventListener("onReady",J);q.synchronousApi=R;q.apiResolver.resolve(R)};
b.addEventListener("onReady",J);q.commandResolver!==void 0&&(E=q.commandResolver,b.addEventListener("innertubeCommand",function(R){E(R)}));
_.hj(F)})};
uf.prototype.loadVideo=function(q,N,b){var y=this,J,E,F,R,c,z,m,r,X;return _.d(function(V){if(V.nextAddress==1)return y.pendingPlayerResponse=q,y.pendingWatchNextResponse=N,y.pendingPlayerVars=b,OyR(y),y.synchronousApi?(J=y.synchronousApi,V.jumpTo(2)):V.yield(y.api,3);V.nextAddress!=2&&(J=V.yieldResult);if(!lFF(y,J))return V.return(new Promise(function(){}));
F=new Promise(function(G){E=G});
R=function(){var G=J.getPlayerResponse();G&&(J.removeEventListener("onVideoDataChange",R),E(G))};
J.addEventListener("onVideoDataChange",R);if(y.pendingPlayerResponse||y.pendingPlayerVars)y.pendingPlayerResponse&&y.pendingPlayerResponse===y.bootstrapPlayerResponse?(E(y.pendingPlayerResponse),y.pendingWatchNextResponse&&KhE(y,y.pendingWatchNextResponse)):(c=B4n(y.pendingPlayerResponse,y.pendingWatchNextResponse,y.pendingPlayerVars),(X=(z=y.pendingPlayerResponse)==null?void 0:(m=z.playerConfig)==null?void 0:(r=m.playbackStartConfig)==null?void 0:r.startPaused)?J.cueVideoByPlayerVars(c.args):J.loadVideoByPlayerVars(c.args)),
kYF(y),y.bootstrapPlayerResponse=void 0;return V.return(F)})};
var wqT=function(q){if(document.readyState==="complete"||document.readyState==="interactive")OyR(q);else{var N=function(){document.removeEventListener("DOMContentLoaded",N);OyR(q)};
document.addEventListener("DOMContentLoaded",N)}},OyR=function(q){q.pageReadyOrDataAvailable=!0;
q.pageReadyOrDataAvailableResolver.resolve()},kYF=function(q){q.pendingPlayerResponse=void 0;
q.pendingWatchNextResponse=void 0;q.pendingPlayerVars=void 0};
_.$H.Object.defineProperties(uf.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var z7=function(q){Ig.call(this,q===void 0?"document_active":q);var N=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(b){N.transition("document_disposed",{event:b})});
window.addEventListener("beforeunload",function(b){N.transition("document_disposed_preventable",{event:b})});
window.addEventListener("unload",function(b){N.transition("document_disposed",{event:b});N.hasRun=new Map})};
_.Y(z7,Ig);
z7.prototype.runPreventableDispose=function(q,N){if(!this.hasRun.get("document_disposed_preventable")){q(N==null?void 0:N.event);var b,y;if((N==null?0:(b=N.event)==null?0:b.defaultPrevented)||(N==null?0:(y=N.event)==null?0:y.returnValue)){N.event.returnValue||(N.event.returnValue=!0);N.event.defaultPrevented||N.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")};
z7.prototype.runDispose=function(q,N){this.hasRun.get("document_disposed")?this.transition("document_active"):(q(N==null?void 0:N.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
z7.prototype.runFlush=function(q,N){q(N==null?void 0:N.event);this.transition("document_active")};
z7.prototype.runActive=function(){};var $$=function(q){Ig.call(this,q===void 0?"document_visibility_unknown":q);var N=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(b){document.visibilityState==="visible"?N.transition("document_visible",{event:b}):N.transition("document_hidden",
{event:b})});
_.x("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(b){N.transition("document_backgrounded",{event:b})}),window.addEventListener("focus",function(b){N.transition("document_foregrounded",{event:b})}))};
_.Y($$,Ig);$$.prototype.runVisible=function(q,N){q(N==null?void 0:N.event);_.x("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
$$.prototype.runHidden=function(q,N){q(N==null?void 0:N.event);_.x("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
$$.prototype.runBackgrounded=function(q,N){q(N==null?void 0:N.event)};
$$.prototype.runForegrounded=function(q,N){q(N==null?void 0:N.event)};var tP=function(){this.teardownLifecycle=new z7;this.visibilityLifecycle=new $$};
tP.prototype.install=function(){var q=_.MB.apply(0,arguments),N=this;q.forEach(function(b){N.teardownLifecycle.install(b)});
q.forEach(function(b){N.visibilityLifecycle.install(b)})};var m$=function(){tP.call(this);var q={};this.install((q.document_disposed={callback:this.abortSlisAndFlush},q));_.x("combine_ve_grafts")&&(q={},this.install((q.document_disposed={callback:this.flushInteractionLoggingAttachVes},q)));q={};this.install((q.flush_logs={callback:this.logFinalPayload},q));_.x("web_log_cfg_cee_ks")||_.Ip(_.pY,U31)};
_.Y(m$,tP);var JMD=function(){m$.loggingInstance||(m$.loggingInstance=new m$);return m$.loggingInstance};
m$.prototype.logFinalPayload=function(){if(_.x("web_fp_via_jspb")){var q=new T31,N=_.Oe();N&&_.Up(q,1,N);N=_.x("jspb_sparse_encoded_pivot")?new Co([{}]):new Co;_.iX(N,380,soo,q);OOC("finalPayload",N);_.x("web_fp_via_jspb_and_json")&&_.W_("finalPayload",{csn:_.Oe()})}else _.W_("finalPayload",{csn:_.Oe()})};
m$.prototype.abortSlisAndFlush=function(){wjJ(uo);zD!=null&&zD.flush()};
m$.prototype.flushInteractionLoggingAttachVes=function(){PJJ(_.FR())};
var U31=function(){var q=_.M7("CLIENT_EXPERIMENT_EVENTS");if(q){var N=b1z();q=_.Z(q);for(var b=q.next();!b.done;b=q.next())b=b.value,N(b)&&_.W_("genericClientExperimentEvent",{eventType:b});delete _.pI.CLIENT_EXPERIMENT_EVENTS}};var fFv={};
fFv.YtPlayerBehavior=[_.d2.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 q=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.yk;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;EdZ(function(){q.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.oC(this,"pan-down"),_.x("kevlar_pinch_fullscreen")&&_.CP().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.x("kevlar_pinch_fullscreen")&&_.CP().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(q,N,b){var y=this;eu(this.useUnifiedPlayer_());if(this.mainAppPlayer_)eu(!1,"MainAppPlayer already created.");else{var J=_.x("kevlar_player_container_query_killswitch")?this.$.container:_.ee(this.hostElement).querySelector("#container");this.mainAppPlayer_=new uf(this.getWebPlayerContextConfig_(),J,function(E){return _.yI(E,y.hostElement)},q,N,b);
this.mainAppPlayer_.api.then(function(E){y.player_=E;y.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&opj.resolve(E)})}},
loadVideoWithPlayerResponse:function(q,N){var b=this;if(this.useUnifiedPlayer_()){var y=this.watchNextData,J,E=(J=q.videoDetails)==null?void 0:J.videoId,F,R,c;(J=(F=this.watchNextData)==null?void 0:(R=F.currentVideoEndpoint)==null?void 0:(c=R.watchEndpoint)==null?void 0:c.videoId)&&E!=J&&(y=void 0,_.x("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(q,y,N):this.createMainAppPlayer_(q,y,N);this.mainAppPlayer_.api.then(function(){_.e2(b.hostElement,
"yt-player-updated")})}else this.update(s8A(q,N))},
loadVideoWithPlayerVars:function(q){var N=this;this.useUnifiedPlayer_()?(_.x("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(q):this.createMainAppPlayer_(void 0,void 0,q),this.mainAppPlayer_.api.then(function(){_.e2(N.hostElement,"yt-player-updated")})):this.update({args:q})},
update:function(q){var N=this;if(this.useUnifiedPlayer_())eu(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(q);var b=p0z(q.args);b&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==b&&Object.assign(q.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(q).then(function(y){_.e2(N.hostElement,"yt-player-updated",_.x("kevlar_player_updated_obsolete_player_killswitch")?
y:void 0)})}_.P_(new _.IO("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(q){var N=this,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(N.getPlayerPromise(),2);b=y.yieldResult;if(!b)throw Error("vh");q&&N.updatePlayerPlaylist_(q);_.hj(y)})},
acquireApi_:function(q){var N=this;if(this.useUnifiedPlayer_())eu(!1,"Invalid method call in kevlar_unified_player.");else return _.pY.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(eu(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(b){N.shouldAutoplay_(q)?b.loadVideoByPlayerVars(q.args):b.cueVideoByPlayerVars(q.args)})):this.initPlayerPromise_=this.initPlayerContainer_(q),this.initPlayerPromise_},
initPlayerContainer_:function(q){var N=this;if(this.useUnifiedPlayer_())eu(!1,"Invalid method call in kevlar_unified_player.");else return eu(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.M6(Error("wh")),eu(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.x("kevlar_player_container_query_killswitch")?this.$.container:_.ee(this.hostElement).querySelector("#container"),e1J().then(function(){var b=N.initPlayer_(q);N.playerResolver_.resolve(b);
return b})},
onPlayerReady_:function(q,N){this.useUnifiedPlayer_()?eu(!1,"Invalid method call in kevlar_unified_player."):(q.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&opj.resolve(q),N(q))},
maybeCallApiMethodOnElement_:function(q,N){if(typeof q[N]==="function")return q[N]()},
maybeAdoptBootstrapPlayer_:function(){var q=window,N,b=(N=q.ytplayer)==null?void 0:N.bootstrapPlayerContainer;if((N=b==null?void 0:b.firstElementChild)&&N.classList.contains("html5-video-player")){var y,J,E=(y=q.ytplayer)==null?void 0:(J=y.bootstrapWebPlayerContextConfig)==null?void 0:J.contextId;y=this.getWebPlayerContextConfig_().contextId;if(E&&E===y){b!==this.playerContainer_&&(b=!1,this.maybeCallApiMethodOnElement_(N,"getPlayerState")===2&&(b=!0),this.playerContainer_.appendChild(N),b||this.maybeCallApiMethodOnElement_(N,
"playVideo"));var F;if((F=q.ytplayer)==null?0:F.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=q.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(q){var N=this;if(this.useUnifiedPlayer_())eu(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(b){N.maybeAdoptBootstrapPlayer_();var y=q?nmd(q):void 0;y&&y==N.bootstrapPlayerResponse_&&(q.loaded=!0);y=N.playerContainer_;var J=N.getWebPlayerContextConfig_();y=bhR(y,q,J);N.player_=y;N.onPlayerReadyEvent_=N.onPlayerReady_.bind(N,N.player_,b);N.player_.addEventListener("onReady",N.onPlayerReadyEvent_);N.player_.addEventListener("innertubeCommand",
N.onPlayerInnerTubeCommand_.bind(N))})},
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(q){q.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(q){q.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var q=_.tz().resolve(_.L6).getCurrentPage();q&&q.getScrollTop()<=0?_.oC(this,"pan-down"):_.oC(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(q){q.isFullscreen()||q.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(q){q.isFullscreen()&&q.toggleFullscreen()})},
updatePlayerPlaylist_:function(q){var N=this,b,y,J;return _.d(function(E){if(E.nextAddress==1)return b=_.tz().resolve(_.$f(_.F2)),y=!!(b&&b.playlistComponent&&b.playlistComponent.loopOn),E.yield(N.getPlayerPromise(),2);var F=J=E.yieldResult,R=F.updatePlaylist,c=[];if(_.x("kevlar_player_playlist_use_local_index")){var z,m;var r=(m=(z=q.localCurrentIndex)!=null?z:q.currentIndex)!=null?m:0}else{var X;r=(X=q.currentIndex)!=null?X:0}if(q.contents)for(z=0;z<q.contents.length;z++)if((m=q.contents[z])&&m.playlistPanelVideoRenderer)if(pXA(m)){m=
m.playlistPanelVideoRenderer;X="";m.shortBylineText&&(X=_.ao(m.shortBylineText));var V="";m.title?V=_.ao(m.title):m.unplayableText&&(V=_.ao(m.unplayableText));c.push({author:X,title:V,encrypted_id:m.videoId})}else z<r&&--r;R.call(F,{index:r,list:q.playlistId?q.playlistId:"",loop:y,playlist_title:q.title,playlist_length:c.length,video:c,fetch:0,external_list:"1",title:q.title?q.title:"",playlist_author:q.ownerName?_.ao(q.ownerName):void 0});_.hj(E)})},
focusOnPlayer:function(){_.ut(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var q=this.playerContainer_.querySelector(".html5-video-player");q&&(_.r2(_.tz().resolve(_.$P)),q.focus())}})},
preparePlayer:function(){var q=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(N){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")N();else{var b=function(){document.removeEventListener("DOMContentLoaded",b);N()};
document.addEventListener("DOMContentLoaded",b)}})).then(function(){return e1J()}).then(function(){q.initPlayerPromise_||q.preparePlayerJobId_||(q.preparePlayerJobId_=_.Ip(_.pY,function(){q.initPlayerPromise_||(q.initPlayerPromise_=q.initPlayerContainer_())}))}):_.P_(new _.IO("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(q){this.useUnifiedPlayer_()?eu(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(q)||(q.args.autoplay="0")},
shouldAutoplay_:function(q){if(this.useUnifiedPlayer_())eu(!1,"Invalid method call in kevlar_unified_player.");else{var N=this.get("args.el",q);return N&&N!="detailpage"&&this.isMiniplayerActive_()||N&&(N=="sponsorshipsoffer"||N=="handlesclaiming")&&this.get("args.autoplay",q)=="0"?!1:(q=nmd(q))&&this.get("playerConfig.playbackStartConfig.startPaused",q)?!1:!0}},
isMiniplayerActive_:function(){return _.tz().resolve(_.l9).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var q=this.getPlayer();if(q){var N=q.getPlayerState();_.x("kevlar_player_check_ad_state_on_stop")&&(N=q.getPlayerState(q.getPresentingPlayerType()));N!=5&&q.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(q,N,b){b=b===void 0?!1:b;var y=this,J,E,F,R;return _.d(function(c){if(c.nextAddress==1)return N||(N=y.hostElement),J=y.useUnifiedPlayer_()?!!y.mainAppPlayer_:!!y.initPlayerPromise_,J?c.yield(y.getPlayerPromise(),2):(b?q.insertBefore(N,q.firstChild):q.appendChild(N),c.return());E=c.yieldResult;F=E.getPlayerState(E.getPresentingPlayerType());R=!1;if(F==-1||F==1||F==3)R=!0;b?q.insertBefore(N,q.firstChild):q.appendChild(N);R&&E.playVideo();E.setSize(NaN,NaN);_.hj(c)})},
watchNextDataChanged_:function(q){var N=this;q&&(this.useUnifiedPlayer_()&&_.x("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&KhE(this.mainAppPlayer_,q):this.getPlayerPromise().then(function(b){b.updateVideoData(N.computeWatchNextPlayerVars_(q))}))},
computeWatchNextPlayerVars_:function(q){if(this.useUnifiedPlayer_()&&_.x("kevlar_unified_player_update_watch_next_killswitch"))eu(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:q}},
maybeSendAbandonmentPing_:function(){var q=this.getPlayer();q&&q.getPlayerState()!=5&&q.getPlayerState()!=0&&q.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var q=_.M7("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(q=Object.assign({},q),q.rootElementId=this.playerId);q.serializedExperimentIds&&q.serializedExperimentFlags||_.M6(Error("xh"));return q},
hasWebPlayerContextConfig_:function(){return!!_.M7("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(q){this.useUnifiedPlayer_()?eu(!1,"Invalid method call in kevlar_unified_player."):_.yI(q,this.hostElement)},
useUnifiedPlayer_:function(){var q=_.x("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.x("kevlar_unified_player")||q}}];var Cb1={};Cb1.YtPlaylistPanelBehavior=[_.e.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(q){q=q.detail;if(q.actions.loop!=void 0||q.actions["yt-icons:loop"]!=void 0)this.loopOn=q.actions.loop||q.actions["yt-icons:loop"];if(q.actions.shuffle!=void 0||q.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=q.actions.shuffle||q.actions["yt-icons:shuffle"]},
setMenuData_:function(q){if(!q||!q.playlistButtons||q.isInfinite)return null;for(var N=q.playlistButtons.menuRenderer.topLevelButtons,b=N.length,y=0;y<b;y++)if(N[y].toggleButtonRenderer){var J=N[y].toggleButtonRenderer;J.defaultIcon.iconType=="LOOP"&&this.loopOn?J.isToggled=this.loopOn:J.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(J.isToggled=this.shuffleOn)}return q.playlistButtons}}];_.Xi={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(q,N,b){var y=this.getClickTarget_(N);if(y&&this.isClickAllowed_(y)){N.preventDefault();q=(0,_.nM.unsafeClone)(q);var J=this.getContainerBoundingRect();N=this.getRelativeClickXy_(N,J);this.expandEndpointUrlMacros_(q,{NX:N[0],NY:N[1],NB:y.code});b&&this.truncateWebCommendMetadataUrl_(q);_.e2(this.hostElement,"yt-navigate",{endpoint:q})}},
getClickTarget_:function(q){if(!this.clickTargetMap)return null;q=_.n9(q)||[];q=_.Z(q);for(var N=q.next();!N.done;N=q.next()){N=N.value;if(N===_.ee(this.hostElement).querySelector("#menu"))break;if(N=this.clickTargetMap.get(N.id))return N}return null},
getRelativeClickXy_:function(q,N){var b=Math.round(q.detail.x-N.left);q=Math.round(q.detail.y-N.top);return b<0||q<0?[null,null]:[b,q]},
getContainerBoundingRect:function(){return _.ee(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(q,N){for(var b=_.Z(q.loggingUrls||[]),y=b.next();!y.done;y=b.next())y=y.value,y.baseUrl&&(y.baseUrl=u8z(y.baseUrl,N));q.urlEndpoint&&q.urlEndpoint.url&&(q.urlEndpoint.url=u8z(q.urlEndpoint.url,N));q.commandMetadata&&q.commandMetadata.webCommandMetadata&&q.commandMetadata.webCommandMetadata.url&&(q.commandMetadata.webCommandMetadata.url=u8z(q.commandMetadata.webCommandMetadata.url,N))},
truncateWebCommendMetadataUrl_:function(q){if(q.commandMetadata&&q.commandMetadata.webCommandMetadata&&q.commandMetadata.webCommandMetadata.url){var N=q.commandMetadata.webCommandMetadata.url,b=N.indexOf("&pp=");if(b>0){var y=N.indexOf("&",b+1);q.commandMetadata.webCommandMetadata.url=y>b&&y<N.length?N.slice(0,b)+N.slice(y):N.slice(0,b)}}},
configureClickTargets:function(q,N,b){this.containerId=q;this.clickTargetMap=new Map;q=_.Z(N);for(N=q.next();!N.done;N=q.next())if(N=N.value,N.location){var y=b.get(N.location);y&&(_.HP(_.ee(this.hostElement).querySelector("#"+y),"yt-simple-endpoint",this.isClickAllowed_(N)),this.clickTargetMap.set(y,N))}},
isClickAllowed_:function(q){return q.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||q.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||q.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||q.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.V1={};
_.V1.YtLazyListBehavior=[_.zE.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 q=(this.constructor.generatedFrom||this).observers;q||(q=[]);q.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
q}},
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 q=this.renderElementsOutsideVisibleArea_;q&&(frl(q,4),q.processSignal())},
deepLazyListObserver_:function(q){var N=this;if(q){var b=q.value||[];if(this.itemsPath==q.path){var y=this.nonDeferredItemCount;q=0;y>-1&&b.length>y&&(q=_.M7("REMAINING_DOVA_DEFERRED_CHUNKS",-1));q>0?(y>0&&(y=b.slice(0,y),this.setInitialItemsOnDataChanged(y)),(y=this.renderElementsOutsideVisibleArea_)?y.cancel():(y=this.renderElementsOutsideVisibleArea_=new _.t$(2,"eocs"),_.t_d(window,"scroll",function(){return N.renderDeferredElements()})),_.mu(y,function(){N.setInitialItemsOnDataChanged(b)}),_.PC("REMAINING_DOVA_DEFERRED_CHUNKS",
q-1)):this.setInitialItemsOnDataChanged(b)}else if(this.itemsPath+".splices"==q.path)this.onItemsUpdated_(b);
else y="shownItems"+q.path.substr(this.itemsPath.length),this.useSignals&&y==="shownItems.length"||this.notifyPath(y,q.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(q){q&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(q),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(q){q=q.indexSplices;for(var N=0,b=q.length;N<b;N++){var y=q[N];if(y.index<this.shownCount&&(y.removed&&this.splice("shownItems",y.index,y.removed.length),y.addedCount)){var J=y.object.slice(y.index,y.index+y.addedCount);y=["shownItems",y.index,0];y.push.apply(y,J);this.splice.apply(this,y)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(q){this.cancelPendingTasks_();q||(q=[]);this.items_=q;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&&(_.ou("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.ut(this,this.tryRenderChunk_)))},
fillRange_:function(q,N){this.canShowMore&&this.items_&&(q=this.items_.slice(q,N),q.unshift("shownItems"),this.push.apply(this,q),this.shownCount=N,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var q=this;this.canShowMore&&_.Uk(this,"renderChunk",function(){q.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.ou("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.rj(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var q=this.renderElementsOutsideVisibleArea_;q&&(q.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var q=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(q-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=q;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(q){return Math.ceil(1E3/q)},
onCanShowMoreUpdated_:function(q){this.data&&this.items_!==null&&(q?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(q){!this.shouldUseTaskManager()&&this.data&&(!q&&this.canShowMore?(_.vOD(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):q&&this.partiallyRenderedItems_.has(this.items_)&&(_.x("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var vX;_.jm={};
vX=function(){var q=_.uL.apply(this,arguments)||this;q.atStart=!0;q.atEnd=!0;q.startIndex=0;q.endIndex=0;q.scrollCount=0;q.initialStartIndex=0;q.disableScrollEventListener=!1;q.useFloorScrolling=!1;q.isSearch=!1;q.dragging=!1;q.dragMouseStart=0;q.dragOffsetStart=0;q.disableWheelScroll=!1;q.centerListItems=!1;q.offset=0;q.minComponentWidth=0;q.marginWidthRight=0;q.marginWidthLeft=0;q.setButtonsStateRequested=!1;q.itemsVisibilityObserver=null;q.fullyVisibleItemsIndices=[];q.JSC$14578_onWheelScroll=function(N){if(q.isSearch&&
!q.disableWheelScroll&&_.x("desktop_enable_dmpanel_wheel_scroll")){var b=N.shiftKey?Math.abs(N.deltaY)>Math.abs(N.deltaX)?N.deltaY:N.deltaX:N.deltaX;b!==0&&(N.preventDefault(),q.ytLazyListBehavior.fillRemainingListItems(),q.offset+=b,x$(q),q.reposition_())}};
q.onPointerDown=function(N){IFx(q)&&(q.dragMouseStart=N.clientX,q.dragOffsetStart=q.offset,q.dragging=!0)};
q.onPointerMove=function(N){IFx(q)&&q.dragging&&(q.ytLazyListBehavior.fillRemainingListItems(),q.offset=q.dragOffsetStart-(N.clientX-q.dragMouseStart),x$(q),q.reposition_())};
q.onPointerUp=function(){IFx(q)&&(q.dragging=!1)};
return q};
_.Y(vX,_.uL);var TNl=function(q){var N=_.ee(q.hostElement).querySelector("#items").children;if(!N)return 0;var b=0;q=_.Z(q.fullyVisibleItemsIndices);for(var y=q.next();!y.done;y=q.next())b+=N[y.value].clientWidth;return b},IFx=function(q){return q.isSearch&&_.x("desktop_enable_dmpanel_click_drag_scroll")};
vX.prototype.created=function(){this.cachedViewportWidth=_.M7("initialInnerWidth")||window.innerWidth;this.JSC$14578_cachedViewportHeight=_.M7("initialInnerHeight")||window.innerHeight;_.M7("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.PC("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
vX.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.x("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();s41(this)};
vX.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.x("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var q;(q=this.itemsVisibilityObserver)==null||q.disconnect();this.itemsVisibilityObserver=null;var N;(N=this.itemsObserver)==null||N.disconnect()};
var s41=function(q){var N=_.ee(q.hostElement).querySelector("#scroll-container");if(N){if(!q.itemsVisibilityObserver){var b=window.getComputedStyle(N).marginRight;q.itemsVisibilityObserver=new IntersectionObserver(function(y){nMx(q,y)},{root:N,
rootMargin:b,threshold:.98})}if(N=_.ee(q.hostElement).querySelector("#items"))q.itemsObserver=new zyq(N,function(y){aFo(q,y)})}},aFo=function(q,N){Sc1(q)&&(Array.from(N.addedNodes).filter(function(b){return b.nodeType===Node.ELEMENT_NODE}).forEach(function(b){q.itemsVisibilityObserver&&q.itemsVisibilityObserver.observe(b)}),Array.from(N.removedNodes).filter(function(b){return b.nodeType===Node.ELEMENT_NODE}).forEach(function(b){q.itemsVisibilityObserver&&q.itemsVisibilityObserver.unobserve(b)}))},
nMx=function(q,N){var b=new Set(q.fullyVisibleItemsIndices);
N=_.Z(N);for(var y=N.next();!y.done;y=N.next()){y=y.value;var J=y.target.parentElement;J?(J=Array.from(J.children).indexOf(y.target),y.isIntersecting?b.add(J):b.has(J)&&b.delete(J)):_.M6(new _.IO("Parent element not found",y.target.nodeName))}q.fullyVisibleItemsIndices=Array.from(b).sort(function(E,F){return E-F});
b.size===0?_.M6(new _.IO("No visible entries in horizontal list")):(q.startIndex=q.fullyVisibleItemsIndices[0],q.endIndex=q.fullyVisibleItemsIndices[q.fullyVisibleItemsIndices.length-1])},Sc1=function(q){q.data?q=(q=q.data)&&q.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===q.itemSizeConstraint:!1:q=!1;
return q};
_.g=vX.prototype;_.g.addScrollEventListeners=function(){var q=_.ee(this.hostElement).querySelector("#scroll-container");q.style.touchAction="pan-y";q.addEventListener("wheel",this.JSC$14578_onWheelScroll);q.addEventListener("pointerdown",this.onPointerDown);q.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.g.removeScrollEventListeners=function(){var q=_.ee(this.hostElement).querySelector("#scroll-container");q.removeEventListener("wheel",this.JSC$14578_onWheelScroll);q.removeEventListener("pointerdown",this.onPointerDown);q.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.g.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.ut(this,this.setStartIndex,[this.initialStartIndex])};
_.g.reposition_=function(){var q=_.M7("HTML_DIR")=="rtl"?"":"-",N=_.ee(this.hostElement).querySelector("#items");N&&(N.style.transform="translateX("+q+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.g.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.ut(this,this.setButtonsState_))};
_.g.setButtonsState_=function(){this.setButtonsStateRequested=!1;var q=_.ee(this.hostElement).querySelector("#items").firstElementChild;if(q){this.minComponentWidth||(this.minComponentWidth=WhR(this,q));q=_.ee(this.hostElement).querySelector("#scroll-container").clientWidth;var N=_.ee(this.hostElement).querySelector("#items");N=_.x("kevlar_horizontal_list_scroll_width_killswitch")?N.clientWidth:N.scrollWidth;var b=this.get(this.ytLazyListBehavior.itemsPath,this);if(b){var y=Math.round(q/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+y,b.length)-1)}this.ytLazyListBehavior.canShowMore?N+this.minComponentWidth>=this.offset+q&&(this.atEnd=!1):this.atEnd=this.offset+q>=N-20?!0:!1;this.atStart=this.offset<=20}};
_.g.setStartIndex=function(q){if(!this.minComponentWidth){var N=_.ee(this.hostElement).querySelector("#items").firstElementChild;if(!N)return;this.minComponentWidth=WhR(this,N)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*q;x$(this);this.reposition_()};
_.g.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.VO();var q=_.ee(this.hostElement).querySelector("#scroll-container").clientWidth;_.x("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=WhR(this,_.ee(this.hostElement).querySelector("#items").firstElementChild));q=this.useFloorScrolling?Math.floor(q/this.minComponentWidth)||1:Math.round(q/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&Lh1(this);this.offset+=Sc1(this)?
TNl(this):q*this.minComponentWidth;x$(this);this.reposition_();this.scrollCount++};
_.g.prevClick_=function(){var q=_.ee(this.hostElement).querySelector("#scroll-container").clientWidth;q=this.useFloorScrolling?Math.floor(q/this.minComponentWidth)||1:Math.round(q/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=Sc1(this)?TNl(this):this.minComponentWidth*this.scrollCount-1):this.offset-=Sc1(this)?TNl(this):q*this.minComponentWidth;this.centerListItems&&Lh1(this);x$(this);this.reposition_()};
_.g.onIronResize_=function(){this.resizeSupportEnabled&&_.ut(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.g.onItemsTransitionEnd_=function(q){_.a0(q)===_.ee(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.g.onChildElementFocus_=function(q){q=q.target.closest("#items > *");var N=_.ee(this.hostElement).querySelector("#scroll-container");if(N.contains(q)){if(_.x("web_horizontal_list_behavior_focus_killswitch"))if(q.offsetLeft<this.offset)this.offset=Math.abs(q.offsetLeft)<q.clientWidth?0:q.offsetLeft;else if(q.offsetLeft+q.clientWidth>this.offset+N.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.VO(),this.offset=q.offsetLeft+q.clientWidth-N.clientWidth;else return;else{var b=_.ee(this.hostElement).querySelector("#items"),
y=_.M7("HTML_DIR")==="rtl",J=y?b.clientWidth-q.offsetLeft:q.offsetLeft;b=y?b.clientWidth-(q.offsetLeft+q.clientWidth):q.offsetLeft+q.clientWidth;var E=y?J>this.offset+N.clientWidth:J<this.offset,F=y?b<this.offset:b>this.offset+N.clientWidth,R=y?E:F;if(y?F:E)N=y?b:J,this.offset=Math.abs(N)<q.clientWidth?0:N;else if(R)this.ytLazyListBehavior.fillRemainingListItems(),_.VO(),this.offset=(y?J:b)-N.clientWidth;else return}x$(this);this.reposition_()}};
_.g.observeShownItems_=function(){this.reset()};
_.g.checkComponentWidthResize=function(){var q=_.ee(this.hostElement).querySelector("#items").firstElementChild;q&&(q=WhR(this,q),this.centerListItems||q!==this.minComponentWidth)&&(this.minComponentWidth=q,this.offset=q*this.scrollCount,this.centerListItems&&Lh1(this),x$(this),this.reposition_())};
var WhR=function(q,N){var b=window.getComputedStyle(N).marginRight;b=Math.floor(Number(b.replace("px","")));var y=window.getComputedStyle(N).marginLeft;y=Math.floor(Number(y.replace("px","")));q.centerListItems&&!q.marginWidthRight&&(q.marginWidthRight=b,q.marginWidthLeft=y);return q.resizeSupportEnabled?N.getBoundingClientRect().width+b:N.offsetWidth+b},x$=function(q){var N=_.ee(q.hostElement).querySelector("#scroll-container").clientWidth,b=_.ee(q.hostElement).querySelector("#items").clientWidth;
q.offset<0?q.offset=0:q.offset+N>=b&&(q.offset=b-N)},Lh1=function(q){q.offset-=(_.ee(q.hostElement).querySelector("#scroll-container").clientWidth+q.marginWidthRight-q.minComponentWidth)/2-q.marginWidthLeft};
_.$H.Object.defineProperties(vX.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var q=_.M7("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(q==-1)q=this.JSC$14578_cachedViewportHeight,q=q>1320?5:q>1020?4:q>730?3:q>430?2:1;else if(q==0)return 0;_.PC("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",q-1);q=_.M7("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(q>-1)return q;q=this.cachedViewportWidth;q=q>1600?6:q>1400?5:q>1300?4:q>1090?5:q>870?4:q>660?3:2;_.PC("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
q);return q},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.x("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
vX.prototype.observeShownItems_=vX.prototype.observeShownItems_;vX.prototype.onChildElementFocus_=vX.prototype.onChildElementFocus_;vX.prototype.onItemsTransitionEnd_=vX.prototype.onItemsTransitionEnd_;vX.prototype.onIronResize_=vX.prototype.onIronResize_;vX.prototype.prevClick_=vX.prototype.prevClick_;vX.prototype.nextClick_=vX.prototype.nextClick_;vX.prototype.setButtonsState_=vX.prototype.setButtonsState_;vX.prototype.requestButtonsStateUpdate_=vX.prototype.requestButtonsStateUpdate_;
vX.prototype.reposition_=vX.prototype.reposition_;vX.prototype.reset=vX.prototype.reset;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],vX.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.V1.YtLazyListBehavior),_.P("design:type",Object)],vX.prototype,"ytLazyListBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],vX.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],vX.prototype,"atStart",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],vX.prototype,"atEnd",void 0);_.p([_.U(),_.P("design:type",Object)],vX.prototype,"startIndex",void 0);_.p([_.U(),_.P("design:type",Object)],vX.prototype,"endIndex",void 0);_.p([_.U({value:6}),_.P("design:type",Number)],vX.prototype,"initialCount",void 0);_.p([_.U(),_.P("design:type",Object)],vX.prototype,"scrollCount",void 0);_.p([_.U(),_.P("design:type",Object)],vX.prototype,"initialStartIndex",void 0);
_.p([_.U(),_.P("design:type",Object)],vX.prototype,"disableScrollEventListener",void 0);_.p([_.U(),_.P("design:type",Object)],vX.prototype,"supportComponentResize",void 0);_.p([_.U({value:function(){var q=this;return function(){return q.prevClick_()}}}),
_.P("design:type",Function)],vX.prototype,"boundPrevClick",void 0);_.p([_.U({value:function(){var q=this;return function(){return q.nextClick_()}}}),
_.P("design:type",Function)],vX.prototype,"boundNextClick",void 0);_.p([_.U(),_.P("design:type",Object)],vX.prototype,"useFloorScrolling",void 0);_.p([_.U(),_.P("design:type",Object)],vX.prototype,"isSearch",void 0);_.p([_.U(),_.P("design:type",Object)],vX.prototype,"dragging",void 0);_.p([_.U(),_.P("design:type",Object)],vX.prototype,"dragMouseStart",void 0);_.p([_.U(),_.P("design:type",Object)],vX.prototype,"dragOffsetStart",void 0);
_.p([_.U(),_.P("design:type",Object)],vX.prototype,"disableWheelScroll",void 0);_.p([_.U(),_.P("design:type",Object)],vX.prototype,"centerListItems",void 0);_.p([_.ZP("iron-resize"),_.FY("guideOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vX.prototype,"onIronResize_",null);_.p([_.ZP("transitionend"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],vX.prototype,"onItemsTransitionEnd_",null);
_.p([_.ZP("focusin"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],vX.prototype,"onChildElementFocus_",null);_.p([_.FY("shownItems"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vX.prototype,"observeShownItems_",null);_.p([_.zs()],vX);_.jm.YtdHorizontalListBehavior=[];_.jm.YtdHorizontalListBehavior.push(_.SQ,_.e.YtRendererBehavior,_.V1.YtLazyListBehavior,_.Eb.YtdGuideStateAwareBehavior,vX.prototype);var ZhC=["APP_STATE","PI"];var G7,Y$=function(q){this.hostElement=q},Q1=function(q,N){if(N&&(cMR(N.viewableCommands)||cMR(N.endOfSessionCommands))){var b=zKz(N.viewableCommands);
N=zKz(N.endOfSessionCommands);if(!G7){var y=_.VX("custom_active_view_tos_timeout_ms");G7=y>0&&y!==36E5?new CsJ(ubZ(),y):new CsJ(ubZ())}TQu(G7,q.hostElement);sdZ(G7,q.hostElement,b,N)}},Ob=function(q){G7&&TQu(G7,q.hostElement)};var pq1=_.Tt(["about:blank"]),Pbj={pushState:window.history.pushState,replaceState:window.history.replaceState};var w2=function(q){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=q;this.internalPushState=q.pushState.bind(q);this.internalReplaceState=q.replaceState.bind(q)};
w2.prototype.init=function(){this.initialized=!0};
w2.prototype.pushState=function(q,N){this.initialized||this.init();this.internalPushState&&this.internalPushState(q,"",N)};
w2.prototype.replaceState=function(q,N){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(q,"",N)};
w2.prototype.getState=function(){return this.history&&this.history.state};var MSJ=function(q){var N=function(){var b=q.apply(this,arguments)||this;b.boundHistoryPushState=!1;b.boundHistoryReplaceState=!1;b.debugInfo={};return b};
_.Y(N,q);N.prototype.init=function(){var b=_.iC("IFRAME");_.Nn(b,_.Xe(pq1));b.sandbox="allow-same-origin";b.style.display="none";this.iframe=b;document.body.appendChild(b);this.bindHistoryStateFunctions();q.prototype.init.call(this)};
N.prototype.bindHistoryStateFunctions=function(){var b=this,y=[],J;this.iframe&&((J=this.iframe.contentWindow)==null?0:J.history)&&(J=this.iframe.contentWindow.history)&&(y.push(J),Object.getPrototypeOf(J)&&y.push(Object.getPrototypeOf(J)));window.history&&y.push(window.history);J=window.history;Object.getPrototypeOf(J)&&y.push(Object.getPrototypeOf(J));y.push(Pbj);J=function(F){for(var R=null,c=0;c<y.length;c++){var z=y[c][F];if(typeof z==="function"){R=z.bind(window.history);b.debugInfo[F]=c;break}}return R};
if(!this.boundHistoryReplaceState){var E=J("replaceState");E&&(this.internalReplaceState=E,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(J=J("pushState"))&&(this.internalPushState=J,this.boundHistoryPushState=!0)};
return N}(w2),oM1=function(){return MSJ.call(this,window.history)||this};
_.Y(oM1,MSJ);oM1.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var lf=function(q){this.browserHistory=q;this.initialized=!1};
lf.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
lf.prototype.pushState=function(q,N){this.initialized||this.init();this.browserHistory.pushState(q,N)};
lf.prototype.replaceState=function(q,N){this.initialized||this.init();this.browserHistory.replaceState(q,N)};
lf.prototype.handlePopstate=function(q){return q.state};_.AQ4=function(q,N,b,y,J){this.endpoint=q;this.forward=N;this.historyEntry=b;this.JSC$30696_savedComponentState=y;this.legacyBorder=J===void 0?!1:J};var eCj=function(q,N){this.rootData=q;this.scrollTop=N};_.KE=new _.Jw("EPHEMERAL_STORE_TOKEN");_.Dv=function(q){this.data=Object.assign({},q);var N;(N=this.data.innertubeResponse)==null||delete N.frameworkUpdates};
_.Dv.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.mA)()};
_.PD=function(q){return Object.assign({},q.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var BNo=function(){this.maxSize=100;this.timeToDataCache=new Map};
BNo.prototype.get=function(q){var N=this.timeToDataCache.get(q);N&&(this.timeToDataCache.delete(q),this.timeToDataCache.set(q,N));if(N&&N.rootData&&(_.x("web_use_response_store_for_history_cache")||_.x("mweb_use_new_history_manager"))){var b=_.tz().resolve(_.KE),y=Hyj(N),J=!!y;if(y){if(y.content){var E=hP(b,y.content);J&&E?N.rootData.response=_.PD(E):J=!1}y.player&&(E=hP(b,y.player),J&&E?N.rootData.playerResponse=_.PD(E):J=!1);y.reelSequence&&(b=hP(b,y.reelSequence),J&&b?N.rootData.reelWatchSequenceResponse=
_.PD(b):J=!1)}J||(this.timeToDataCache.delete(q),N=void 0)}return N};
BNo.prototype.set=function(q,N){if(N.rootData&&(_.x("web_use_response_store_for_history_cache")||_.x("mweb_use_new_history_manager"))){var b=Hyj(N),y=Object.assign({},N.rootData);b&&(b.content&&N.rootData.response&&(q0o(this,b.content,N.rootData.response),y.response=null),b.player&&N.rootData.playerResponse&&(q0o(this,b.player,N.rootData.playerResponse),y.playerResponse=null),b.reelSequence&&N.rootData.reelWatchSequenceResponse&&(q0o(this,b.reelSequence,N.rootData.reelWatchSequenceResponse),y.reelWatchSequenceResponse=
null));N=new eCj(y,N.scrollTop)}this.timeToDataCache.has(q)?this.timeToDataCache.delete(q):this.timeToDataCache.size>=this.maxSize&&(b=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(b.value));this.maxSize!==0&&this.timeToDataCache.set(q,N)};
BNo.prototype.clear=function(){this.timeToDataCache.clear()};
var Hyj=function(q){var N=_.tz().resolve(_.$f(_.rh)),b;if((b=q.rootData)==null?0:b.endpoint)return N==null?void 0:led(N,q.rootData.endpoint);var y;_.M6(new _.IO("History snapshot response data does not contain endpoint",(y=q.rootData)==null?void 0:y.url));return null},q0o=function(q,N,b){if(q.maxSize>0){var y;
(q=(y=b.responseContext)==null?void 0:y.maxAgeSeconds)&&Number(q)>0&&(y=_.tz().resolve(_.KE),b=qE(b,q),y.put(N,new _.Dv(b)))}};var NYE=function(q,N,b){this.endpoint=N;this.JSC$30702_savedComponentState=b===void 0?null:b;this.entryTime=q};var mFA=1;var k$=function(q){var N=function(){var b=q.apply(this,[].concat(_.a9(_.MB.apply(0,arguments))))||this;b.historyEntryTime=0;b.historySnapshotCache=b.createHistoryCache();return b};
_.Y(N,q);N.prototype.createHistoryCache=function(){return new BNo};
N.prototype.saveAndReplace=function(b,y,J){var E=window.location.href;var F=F===void 0?{}:F;var R=(R=this.browserHistory.getState())&&R.entryTime?R.entryTime:rMR();b=this.createNewHistoryEntry(b,F,R);this.saveSnapshot(R,y,J);this.replaceState(b,E||window.location.href)};
N.prototype.saveAndPush=function(b,y,J,E,F){F=F===void 0?{}:F;this.saveSnapshot(this.historyEntryTime,J,E);J=this.historySnapshotCache;E=this.historyEntryTime;var R=J.timeToDataCache.keys();R=_.Z(R);for(var c=R.next();!c.done;c=R.next())c=c.value,c>E&&J.timeToDataCache.delete(c);y=this.createNewHistoryEntry(y,F);this.pushState(y,b)};
N.prototype.saveSnapshot=function(b,y,J){this.historySnapshotCache.set(b,new eCj(y,J))};
N.prototype.createNewHistoryEntry=function(b,y,J){J=J===void 0?rMR():J;return new NYE(J,b,y)};
N.prototype.handlePopstate=function(b){var y=q.prototype.handlePopstate.call(this,b),J=null,E=null,F=!1,R=null;y&&y.entryTime&&(R=this.historySnapshotCache.get(y.entryTime)||null,F=y.entryTime>this.historyEntryTime,this.historyEntryTime=y.entryTime,J=y.endpoint,E=y.JSC$30702_savedComponentState);this.handleHistoryCacheLoad(new _.AQ4(J,F,R,E),b);return y};
N.prototype.pushState=function(b,y){Number(b==null?void 0:b.entryTime)>=0&&(this.historyEntryTime=b.entryTime);q.prototype.pushState.call(this,b,y)};
N.prototype.replaceState=function(b,y){Number(b==null?void 0:b.entryTime)>=0&&(this.historyEntryTime=b.entryTime);q.prototype.replaceState.call(this,b,y)};
N.prototype.handleHistoryCacheLoad=function(){};
return N}(lf),bBT=function(){var q=k$.call(this,new oM1)||this;
q.dispatchElement=null;q.entryIndex=0;return q};
_.Y(bBT,k$);_.g=bBT.prototype;_.g.init=function(q){q=q===void 0?!0:q;k$.prototype.init.call(this);this.initialized||(q||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.g.handlePopstate=function(q){var N=null;q.state||(N="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return k$.prototype.handlePopstate.call(this,q);var b=new CustomEvent("yt-history-pop",{cancelable:!0});_.By(this.dispatchElement,"yt-history-pop",[b,{errorMsg:N}]);_.Hy(this.dispatchElement,"yt-close-all-popups-action");if(!b.defaultPrevented){b=_.tz().resolve(_.L6);N=b.getCurrentData();var y=b.getCurrentPage();b=0;y?(y=_.By(this.dispatchElement,"yt-get-page-offset",
[y]),y.length>0&&(b=y[0])):_.M6(new _.IO("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:N?N.page:"undefined"}));N&&(N.csn=_.Oe());this.saveSnapshot(this.historyEntryTime,N,b)}return k$.prototype.handlePopstate.call(this,q)};
_.g.handleHistoryCacheLoad=function(q,N){q.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.Z(_.Hy(this.dispatchElement,"yt-history-will-navigate",[N])).next().value||_.By(this.dispatchElement,"yt-history-load",[N,q]))};
_.g.pushState=function(q,N){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var b=new _.IO("history.pushState is not a function",this.getDebugString());_.po(b)}k$.prototype.pushState.call(this,q,N)};
_.g.replaceState=function(q,N){if(!this.browserHistory.boundHistoryReplaceState){var b=new _.IO("history.replaceState is not a function",this.getDebugString());_.po(b)}k$.prototype.replaceState.call(this,q,N)};
_.g.saveAndPush=function(q,N,b,y,J){J=J===void 0?{}:J;b&&(b.csn=_.Oe());k$.prototype.saveAndPush.call(this,q,N,b,y,J)};
_.g.getDebugString=function(){var q=[];this.initialized&&q.push("i");this.browserHistory.boundHistoryReplaceState&&q.push("bhr");this.browserHistory.boundHistoryPushState&&q.push("bhs");"replaceState"in this.browserHistory.debugInfo&&q.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&q.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&q.push("ei:"+String(this.entryIndex));return q.join(",")};
_.Ub=function(q,N){q.init(!0);var b=q.browserHistory.getState();q.replaceState(b,Hk(N))};
bBT.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.fE=new _.Jw("DESKTOP_HISTORY_MANAGER_TOKEN");var yRq=[10,20,30,40,50,60],CE=function(){this.currentPartitionIndex=0},JRq=function(q){f2F({mainAppWeb:_.f9(),
survivalSli:{partitionMinute:q,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},EX1=function(q){f2F({mainAppWeb:_.f9(),
survivalSli:{partitionMinute:q,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},gXj=function(q){return q.currentPartitionIndex>=0&&q.currentPartitionIndex<yRq.length?yRq[q.currentPartitionIndex]:-1},ZBF=function(q){return q.currentPartitionIndex>0&&q.currentPartitionIndex-1<yRq.length?yRq[q.currentPartitionIndex-1]:-1};
CE.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var q=ZBF(this);q>0&&EX1(q);q=gXj(this);q>0&&JRq(q);FFv(this)}};
var FFv=function(q){var N=gXj(q);if(N>0){var b=ZBF(q);b<0&&(b=0);q.intervalId=_.pY.addJob(function(){var y=ZBF(q);y>0&&EX1(y);y=gXj(q);y>0&&JRq(y);FFv(q)},3,(N-b)*6E4);
q.currentPartitionIndex+=1}else q.currentPartitionIndex=-1};var R4v=function(q){vB.call(this,q,132);this.isDocument=q===document.documentElement};
_.Y(R4v,vB);R4v.prototype.calculateScrollDelta=function(q,N,b){var y=0;q<N?y=q<N-100?-48:-8:q>N+b&&(y=q>N+b+100?48:8);return y};
R4v.prototype.JSC$11472_onMouseMove=function(q){this.isDocument||(q.clientX=q.event_.pageX,q.clientY=q.event_.pageY);vB.prototype.JSC$11472_onMouseMove.call(this,q)};_.dS1=function(q,N){var b=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14632_dragListGroup=null;this.onDraggerCreated=function(y){var J=y.JSC$11468_dragger;J.scrollTarget_=b.scrollElement;y=y.draggerEl;J&&y.menuOpened&&J.setEnabled(!1)};
this.onDragStart=function(y){var J=y.draggerEl;y=y.currDragItem;var E=Object.assign({},y==null?void 0:y.data);E.trackingParams=void 0;J.data=E;J.style.position="absolute";J.style.width=(y==null?void 0:y.clientWidth)+"px";J.style.zIndex="2030";J.onDrag&&J.onDrag();y=_.LM(J);(E=y.querySelector("ytd-app"))?_.ee(E).appendChild(J):y.body.appendChild(J);b.dragScrollSupport=new R4v(b.scrollElement);b.dragScrollSupport.horizontalScrolling_=!1;J=b.dragScrollSupport;J.constrainScroll_=!!J.margin_&&!1};
this.onDrop=function(y){b.handleDrop(y);b.dragScrollSupport&&(_.RA(b.dragScrollSupport),b.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(b.JSC$14632_dragListGroup){var y=b.JSC$14632_dragListGroup;IUx(y,y.currDragItem_)}};
this.handleDrop=N};
_.IQ=function(q){q.JSC$14632_dragListGroup&&(_.QL(q.JSC$14632_dragListGroup,i61,q.onDragStart),_.QL(q.JSC$14632_dragListGroup,hIT,q.onDragStart),q.JSC$14632_dragListGroup.dispose(),q.JSC$14632_dragListGroup=null);q.dragScrollSupport&&(_.RA(q.dragScrollSupport),q.dragScrollSupport=null);q.scrollElement.removeEventListener("scroll",q.onReorderableScroll)};
_.cRo=function(q,N,b,y){y=y===void 0?"":y;_.IQ(q);b&&(q.scrollElement=b);q.JSC$14632_dragListGroup=new M2;q.JSC$14632_dragListGroup.hysteresisDistance_=2;UO4(q.JSC$14632_dragListGroup,N);q.JSC$14632_dragListGroup.draggerElClasses_=$D("dragging").split(" ");y&&fUo(q.JSC$14632_dragListGroup,function(J){var E=J||document,F=null;E.getElementsByClassName?F=E.getElementsByClassName(y)[0]:F=$YF("*",y,J);return F||J});
_.tn(q.JSC$14632_dragListGroup,O6T,q.onDraggerCreated);_.tn(q.JSC$14632_dragListGroup,i61,q.onDragStart);_.tn(q.JSC$14632_dragListGroup,hIT,q.onDrop);q.JSC$14632_dragListGroup.init();q.scrollElement.addEventListener("scroll",q.onReorderableScroll,{passive:!0})};
_.$H.Object.defineProperties(_.dS1.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var uI1=function(){this.skipNextNavigation=!1},z4x=function(q,N,b){if(!N)return!1;
if(q.skipNextNavigation)return q.skipNextNavigation=!1;if(_.v(b,_.b_))return!1;var y,J,E;if((y=_.v(b,_.FH))==null?0:(J=y.browseEndpointContextSupportedConfigs)==null?0:(E=J.browseEndpointContextMainConfig)==null?0:E.skipConfirmation)return!1;var F;return((F=_.v(N.commandMetadata,_.gg))==null?void 0:F.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
uI1.prototype.showConfirmationDialog=function(q,N){this.navigateParams=N;this.customConfirmationCommand?_.tz().resolve(_.rO).resolveCommand(this.customConfirmationCommand):(N={openPopupAction:{popup:{confirmDialogRenderer:{title:_.nD(_.FE("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.nD(_.FE("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.nD(_.FE("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.nD(_.FE("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.JD.getInstance().triggerAction("yt-open-popup-action",N,q))};
uI1.prototype.cancelPendingNavigation=function(){var q;((q=this.navigateParams)==null?void 0:q.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var $Sl=function(){},mSv=function(q,N,b,y,J,E,F){b=b===void 0?{}:b;
F=F===void 0?{}:F;var R=_.tz().resolve(_.rh),c,z=(c=_.v(N,_.b_))==null?void 0:c.url;return z?R9C(R,z,b,window.location.href,function(m,r){tbR(q,m,r,!1,!0,b,E,y)},function(){return!1}):h7(R,N,b,window.location.href,d5(N),function(m,r){tbR(q,m,r,!1,!0,b,E,y)},J,F)},tbR=function(q,N,b,y,J,E,F,R){if(!q.JSC$14647_chunkHandler)if(b.page==="learning_journey_watch"&&_.x("web_enable_canvas_on_learning_journey")){var c=!_.v(R,_.FH);
J=J||y;if(c)if(J){if(_.x("kevlar_continue_playback_without_player_response")){var z;var m=(z=_.v(R,_.nx))==null?void 0:z.videoId}y={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:y,previousVideoId:m},tempData:E}}else y={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else y={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};q.JSC$14647_chunkHandler=new JqR(_.Pk,y,F,c,J)}else if(b.page==="watch"||b.page==="learning_journey_watch")if(J||y){if(_.x("kevlar_continue_playback_without_player_response")){var r;
c=(r=_.v(R,_.nx))==null?void 0:r.videoId}q.JSC$14647_chunkHandler=new Zwo(_.Pk,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:y,previousVideoId:c},tempData:E},F)}else q.JSC$14647_chunkHandler=new bwl(_.Pk);else b.page==="shorts"&&J&&!y?q.JSC$14647_chunkHandler=new gGx(_.Pk,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:E},F):q.JSC$14647_chunkHandler=new yqq(F);q.JSC$14647_chunkHandler.processChunk({endpoint:N,data:b});return q.JSC$14647_chunkHandler.eW.promise},
rR4=function(q,N,b,y,J){(b=_.xk1(b))&&tbR(q,N,b,!1,!0,y,void 0,J)};_.Xrl=new _.Jw("NAVIGATION_SERVICE_TOKEN");var Vb1=function(){this.pendingNavigationPromise=null};
_.g=Vb1.prototype;_.g.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.g.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.g.addEventListener=function(){throw Error("yh");};
_.g.dispatchEvent=function(){throw Error("yh");};
_.g.removeEventListener=function(){throw Error("yh");};var jsR=new _.Jw("APP_ROOT");var V8d=null;var xSj=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],T7=function(){_.O1.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];vXF(this)};
_.Y(T7,_.O1);T7.prototype.verifyUser=function(){var q=vXF(this),N=q.logout;if(!q.sessionChange)return!0;this.dispatchEvent("ytsessionchange");N&&this.dispatchEvent("ytuserinvalid");return!1};
var vXF=function(q){var N=xSj.map(function(J){var E;return(E=_.hz.get(J))!=null?E:""}),b=N.some(function(J,E){return q.sessionCookies&&q.sessionCookies[E]!==""&&J===""}),y=N.some(function(J,E){return q.sessionCookies&&q.sessionCookies[E]!==J});
q.sessionCookies=N;return{logout:b,sessionChange:y}};
T7.prototype.clearTimeout=function(){this.scheduledJobId&&(_.pY.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var Q7D=new _.Jw("POSTMESSAGE_TUNNEL_TOKEN");var vdz=["/parent_tools","/file_download","/artist_roster"],ihJ=[ABo,e_x,Bs1,q5q,Hc1,oBx,N0M,b7v];var sb=new _.Jw("NAVIGATION_CONFIRMATION_SERVICE");var GGT="/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(" "),Y0j=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],nE=function(q,N){this.pendingNavigationPromise=null;this.JSC$14670_clientRoot=q;this.historyManager=N;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 $Sl;this.debugString=q.is;q={"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};_.EX(_.JD.getInstance(),q,this.JSC$14670_clientRoot)},l9v,KFx,DSv,h4F,iBM;
_.Y(nE,Vb1);nE.prototype.reload=function(){_.lI(window.location.href)};
var Yml=function(q){q.currentEndpoint&&_.v(q.currentEndpoint,_.uI)?q.reload():q.currentEndpoint&&q.navigate(q.currentEndpoint,!0,void 0,{disableCache:!0})};
nE.prototype.navigate=function(q,N,b,y,J,E,F,R){N=N===void 0?!1:N;b=b===void 0?{}:b;y=y===void 0?{}:y;var c=_.tz().resolve(sb),z;if(!F&&z4x(c,(z=this.currentEndpoint)!=null?z:void 0,q))return c.showConfirmationDialog(this.JSC$14670_clientRoot.parentElement,{endpoint:q,reload:N,params:b,tempData:y,requestType:J,createScreenConfig:E}),!1;var m=_.dw();_.cW(m,"eocs")||m.parkOrScheduleJob(function(){m.processSignal("eocs")},10,"eor");
j7h();F=d5(q);c=y.autonav==="1";z=_.Oe();T7.instance||(T7.instance=new T7);var r=T7.instance.verifyUser(),X;if(_.x("enable_dark_theme_only_on_shorts")){var V=document.documentElement.hasAttribute("dark"),G=_.D4(!0)==="USER_INTERFACE_THEME_DARK";if(F==="shorts"){if(!V)if(_.x("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var w;_.lI((w=_.v(q==null?void 0:q.commandMetadata,_.gg))==null?void 0:w.url,void 0,void 0,window.top)}}else{var D;_.lI(_.ZM((D=_.v(q==
null?void 0:q.commandMetadata,_.gg))==null?void 0:D.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.x("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!V){var k;_.lI(_.ZM((k=_.v(q==null?void 0:q.commandMetadata,_.gg))==null?void 0:k.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(G!==V){var f;_.lI(_.ZM((f=_.v(q==null?void 0:q.commandMetadata,_.gg))==null?void 0:f.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(F==="watch"){if(QsM(_.tz().resolve(_.l9),
q)&&(r||_.x("fix_miniplayer_navigation_killswitch")))return!1;_.x("block_all_player_prefetch_requests")||(X=vGj(_.L0(_.k6),q,c))}else{var L,S=(L=_.v(this.currentEndpoint,_.nx))==null?void 0:L.videoId;S&&_.oM.getInstance().then(function(IJ){IJ&&IJ.set("yt-miniplayer-shown-video-id",S)})}X&&(b.frags=X.missingFragments_.join(","));
w=null;var W;D=(W=_.v(q==null?void 0:q.commandMetadata,_.gg))==null?void 0:W.ignoreNavigation;if(!D)if(_.x("kevlar_command_url")){var M;w=(M=_.v(q==null?void 0:q.commandMetadata,_.gg))==null?void 0:M.url}else w=_.NjC(q,b);if(w&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&w==this.lastNavigationUrl)return _.v3({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Ed(h8(),"CANCELLED")}w&&(this.lastNavigationUrl=w);HRA();_.PC("IS_HOMEPAGE_COLD",
!1);_.PC("IS_RESULTS_PAGE_COLD",!1);_.PC("IS_WATCH_PAGE_COLD",!1);q.loggingUrls&&q.loggingUrls.forEach(function(IJ){IJ.baseUrl&&_.b0(IJ.baseUrl)});
_.hKA(q,E?E.layer:0)&&_.x("kevlar_flush_logs_on_away_navigation")&&_.Lo();if(lSZ(q))return!1;E1F(F,J);if(!w)return D||_.M6(new _.IO("Can't construct url for endpoint",q)),_.Ed(h8(),"FAILURE"),!1;_.xFn();W=q&&_.v(q,_.FH)&&_.v(q,_.FH).browseId.startsWith("UC");b=(M=_.x("enable_dark_theme_only_on_shorts")&&F==="shorts"?!1:_.hN()&&document.documentElement.hasAttribute("dark")!==_.K9())?{themeRefresh:1}:{};M&&!_.UV()&&_.D4()==="USER_INTERFACE_THEME_DARK"&&(b.theme="dark");W=M||OBJ(w)&&!W&&!_.x("kevlar_disable_url_allowlist");
r||(W=!0);if(W||_.M7("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var qe;var RJ=(qe=window.top)==null?void 0:qe.location.href}catch(IJ){var tZ;RJ=(tZ=IJ)==null?void 0:tZ.message}_.M6(new _.IO("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:RJ}))}q=_.x("kevlar_redirect_on_window_killswitch")?window.top:window;iI(w);_.lI(_.ZM(w,b),void 0,void 0,q);_.Ed(h8(),"ABORTED");return!1}_.x("kevlar_early_popup_close")&&_.By(this.JSC$14670_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14647_chunkHandler=void 0;var wA;RJ=d5((wA=this.currentEndpoint)!=null?wA:void 0);(wA=F==="shorts"&&RJ==="shorts")||_.pau();_.qg(DMA)("nr",void 0);c&&_.v3({webInfo:{navigationReason:"an"}});q.clickTrackingParams&&(y.itct=q.clickTrackingParams,y.csn=z);BKJ(y);y.endpoint=JSON.stringify(q);_.x("enable_unknown_lact_fix_on_html5")&&(_.tz().resolve(_.$P),y.lact=_.tr());_.nM.isEmpty(y)||_.Lx(w,y);!_.x("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(E=Object.assign({},{layer:0},E,{parentLayer:3}));this.pendingNavigationPromise=E=mSv(this.pageFetcher,q,y,this.currentEndpoint,this.JSC$14670_isNetworkPromiseStale.bind(this),E,R);E=E.then(this.handleNavigateSuccess.bind(this,E,q,X,y),this.handleNavigateFail.bind(this,E,q));_.sM().navigationFinishPromise=E;N={endpoint:q,pageType:F,url:Hk(w),reload:!!N,noProgressBar:wA};J&&(N.type=J);var rA;J=_.Z4((rA=this.currentEndpoint)!=null?rA:null);rA=_.Z4(q!=null?q:null);this.fireEvent("yt-navigate-start",
N);var xD;(xD=_.tz().resolve(_.$f(_.Xrl)))==null||xD.publish("navigation-start",{sourcePageSubtype:J,destinationPageSubtype:rA});X&&rR4(this.pageFetcher,q,X,y,this.currentEndpoint);return!0};
nE.prototype.JSC$14670_isNetworkPromiseStale=function(q){return q!=this.pendingNavigationPromise};
var wrM=function(q,N,b,y,J){var E=d5(N);N={endpoint:N,pageType:E};J&&(N.errorMessage=J);_.M6(b);N.navigationDoneMs=_.Q6("nd");N.navigationErrorReason=y;q.fireEvent("yt-navigate-error",N)};
nE.prototype.handleNavigateFail=function(q,N,b){var y=void 0;b instanceof _.K0&&(y=b,H6C(b));if(this.JSC$14670_isNetworkPromiseStale(q))return _.ra(y);_.Ed(h8(),"FAILURE");wrM(this,N,b,"101");return _.ra(b)};
nE.prototype.handleNavigateSuccess=function(q,N,b,y,J){if(this.JSC$14670_isNetworkPromiseStale(q))return _.bG();this.pendingNavigationPromise=null;if(!J)return N=new _.IO("Missing data in response for navigation endpoint",N),_.ra(N);if(J.reload)return window.location.reload(!0),_.bG();b&&(q={},_.nM.extend(q,_.xk1(b),J),J=q);var E,F;b=(E=J)==null?void 0:(F=E.timing)==null?void 0:F.responseStart;b!=null&&_.Q6("srt",b);_.Q6("pdc");var R,c;E=(R=J)==null?void 0:(c=R.timing)==null?void 0:c.info;E!=null&&
(R=_.qg(_.fDJ)(E),_.v3(R));_.Ed(h8(),"SUCCESS");iBM(this,N,J,1,y);return _.bG()};
var OBJ=function(q){var N=q;_.x("kevlar_no_redirect_to_classic_2_ks")||(N=(new _.a$(q)).getPath());if(N==="/"||N==="/red")return!1;var b=!0;GGT.forEach(function(y){q.indexOf(y)===0&&(b=!1)});
Y0j.forEach(function(y){var J=y.url;_.x(y.expFlag)&&q.indexOf(J)===0&&(b=!1)});
return b};
nE.prototype.publishPageData=function(q){this.fireEvent("yt-page-data-fetched",{pageData:q})};
l9v=function(q,N,b,y,J,E){var F=null;N.page!=="watch"&&N.page!=="learning_journey_watch"||y?N.filler||_.By(q.JSC$14670_clientRoot,"yt-stop-old-player",[N]):F=tbR(q.pageFetcher,J,N,b,!1,E,void 0,q.currentEndpoint);if(F)return F.then(q.publishPageData.bind(q,N));q.publishPageData(N);return _.bG()};
KFx=function(q,N,b){var y=null;if(!b)return y=new _.IO("Empty data",q.debugString,N);var J=b.response;if(!J)return y;var E={endpointType:d5(N)||"unknown"};J.responseContext?(J=J.responseContext.errors)&&(y=new _.IO("Errors in response context",q.debugString,N,J,E)):y=J.error||J.errorMetadata?new _.IO("Errors in response",q.debugString,N,J.error,J.errorMetadata,E):new _.IO("responseContext missing",q.debugString,N,Object.keys(J).sort().join(","),E);var F,R,c,z;if(q=b==null?void 0:(F=b.response)==null?
void 0:(R=F.responseContext)==null?void 0:(c=R.webResponseContextExtensionData)==null?void 0:(z=c.webResponseContextDebugData)==null?void 0:z.debugErrorMessages)for(F=0;F<q.length;F++);return y};
DSv=function(q){var N,b,y,J;return q==null?void 0:(N=q.response)==null?void 0:(b=N.responseContext)==null?void 0:(y=b.errors)==null?void 0:(J=y.error)==null?void 0:J["0"]};
h4F=function(q,N){var b;if(b=N.url&&!N.url.startsWith("/clip"))b=N.url,b=!_.x("webfe_parse_debug_param_in_resolveurl_service")&&q.searchDebugUrlMatcher.test(b)||FOC(b)?!0:!1;if(b)FOC(N.url)&&_.gO(window.location.href).themeRefresh?(N=_.px(N.url,"themeRefresh"),_.Ub(q.historyManager,N)):N.url&&!$FD(N.url)&&_.Ub(q.historyManager,N.url);else if(N.endpoint){var y,J,E;(b=(y=N.endpoint)==null?void 0:(J=y.commandMetadata)==null?void 0:(E=J.webCommandMetadata)==null?void 0:E.url)&&!$FD(b)&&_.Ub(q.historyManager,
b);b&&N.url&&b!=N.url&&!N.url.match("playnext=1")&&new _.IO("Response url mismatch in response data",q.debugString,b,N.url)}};
_.kG1=function(q,N,b,y,J,E,F,R){E=E===void 0?!1:E;var c=_.tz().resolve(sb),z;if(!R&&z4x(c,(z=q.currentEndpoint)!=null?z:void 0,N))return c.showConfirmationDialog(q.JSC$14670_clientRoot.parentElement,{endpoint:N,data:b,navigationType:y,tempData:J,isMiniplayer:E,isForwardHistoryNavigation:F==null?void 0:F.forward}),_.bG();q.pageFetcher.JSC$14647_chunkHandler=void 0;return iBM(q,N,b,y,J,E)};
iBM=function(q,N,b,y,J,E){E=E===void 0?!1:E;q.isMiniplayerExpansion=E;var F=y===2;q.currentEndpoint=N;q.numNavigations++;q.numNavigations&&(TKJ.navigationCount=q.numNavigations);_.PC("NUM_NAV",q.numNavigations);var R=KFx(q,N,b);if(R)return wrM(q,N,R,"102",DSv(b)),_.ra(R);var c,z,m,r;R=b.rootVe||(b==null?void 0:(c=b.response)==null?void 0:(z=c.responseContext)==null?void 0:(m=z.webResponseContextExtensionData)==null?void 0:(r=m.ytConfigData)==null?void 0:r.rootVisualElementType);!F&&b&&h4F(q,b);var X,
V;c=b==null?void 0:(X=b.response)==null?void 0:(V=X.responseContext)==null?void 0:V.maxAgeSeconds;if(!F&&!isNaN(c)){var G;_.x("kevlar_use_response_ttl_to_invalidate_cache")?G=(0,_.mA)()+1E3*c:_.x("kevlar_always_invalidate_cache")&&(G=0);isNaN(G)||(b.expirationTime=G)}_.L0(_.k6).prefetchCache_.clear();F||b.page!=="watch"||b.type!=="reduced"&&y!==1?y=l9v(q,b,F,!!E,N,J):(q.publishPageData(b),y=_.bG());J=y.then(function(){var w=d5(N);w={endpoint:N,pageType:w,fromHistory:F,response:b};w.navigationDoneMs=
_.Q6("nd");q.fireEvent("yt-navigate-finish",w);var D;(D=_.tz().resolve(_.$f(_.Xrl)))==null||D.publish("navigation-end")});
b.csn&&R&&b.clientSideGrafts&&y.then(q.attachClientSideGrafts.bind(q,b,_.QY()));return J};
_.g=nE.prototype;_.g.attachClientSideGrafts=function(q,N){q.clientSideGrafts&&N&&q.clientSideGrafts.forEach(function(b){if(N&&b){var y=_.zT(b);_.x("combine_ve_grafts")?_.FR().graftServerVe(b,N):_.fr(q.csn,N,y)}})};
_.g.handleSignalActionHistoryBack=function(){window.history.back()};
_.g.handleSignalActionCloseWindow=function(){window.close()};
_.g.handleSignalActionReloadPage=function(){this.reload()};
_.g.handleSignalActionSoftReloadPage=function(){Yml(this)};
_.g.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.g.fireEvent=function(q,N){q=new CustomEvent(q,{bubbles:!0,cancelable:!1,composed:!0,detail:N});this.dispatchEvent(q)};
_.g.addEventListener=function(q,N){this.JSC$14670_clientRoot.addEventListener(q,N)};
_.g.dispatchEvent=function(q){return this.JSC$14670_clientRoot.dispatchEvent(q)};
_.g.removeEventListener=function(q,N){this.JSC$14670_clientRoot.removeEventListener(q,N)};
nE[ma]=[jsR,_.fE];_.$pn=new BQ("browse","h8y2qb");_.tJd=new BQ("search","JzFVk");_.mph=new BQ("shorts","xwEKAe");_.rCd=new BQ("watchFixie","nmfa2d");_.Xse=new BQ("watchFlexy","CF909");_.VJe=new BQ("watchGrid","Tm0L3c");_.jFu=new BQ("watchLearningJourney","L3n37");var US1;var f94=function(){return _.C.apply(this,arguments)||this};
_.Y(f94,_.C);_.$H.Object.defineProperties(f94,{template:{configurable:!0,enumerable:!0,get:function(){if(US1===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);US1=q}q=US1;return q}}});
_.p([_.O(fFv.YtPlayerBehavior),_.P("design:type",Object)],f94.prototype,"ytPlayerBehavior",void 0);_.p([_.I({is:"ytd-player"})],f94);var Cio;var I9E;var TY4;var aQ=function(){var q=_.C.apply(this,arguments)||this;q.forceModernIconButton=!1;q.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return q};
_.Y(aQ,_.C);aQ.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]]"}}}}}};
aQ.prototype.handleAccountLinkingStateChangedCommand=function(q){if(q=_.v(q,za4)){var N,b=(N=this.data)==null?void 0:N.providerKey;N=q.providerKey;b&&N&&b.id===N.id&&b.subject===N.subject&&(q=q.linked,q!==void 0&&(this.set("data.linked",q),this.notifyPath("data.linked"),_.x("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(q)))}};
aQ.prototype.setPlayerAccountLinkState=function(q){var N=new lOJ;KJT(N,wbM(new OmE,q));var b=_.Pk();b&&b.getPlayerPromise().then(function(y){y.setAccountLinkState(_.Uf(N.JSC$12399_serializeBinary(),4));y.updateAccountLinkingConfig(q)})};
aQ.prototype.handleShowAccountLinkDialog=function(){var q=this.get("button.buttonRenderer.command");q&&_.Je([q],this.hostElement)};
_.$H.Object.defineProperties(aQ.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}}}});
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],aQ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.p([_.O([_.Dc.YtActionHandlerBehavior]),_.P("design:type",Object)],aQ.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],aQ.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],aQ.prototype,"overrides",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],aQ.prototype,"forceModernIconButton",void 0);_.p([_.U({value:"bottom"}),_.P("design:type",String)],aQ.prototype,"buttonTooltipPosition",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],aQ.prototype,"forceIconButton",void 0);_.p([_.U(),_.P("design:type",Boolean)],aQ.prototype,"disableTextTransform",void 0);
_.p([_.l("data","data.linked","data.isWarning"),_.P("design:type",Object),_.P("design:paramtypes",[])],aQ.prototype,"button",null);_.p([_.I({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],aQ);
_.a(aQ,"ytd-account-link-button-renderer",function(){if(TY4!==void 0)return TY4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return TY4=q},{mode:1});var ssl;var nXl=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Sm=function(){return _.C.apply(this,arguments)||this};
_.Y(Sm,_.C);Sm.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Sm.prototype.updateButtonActiveState=function(){var q=this,N=!!nXl.find(function(b){return q.currentState===b});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.x("enable_web_delhi_icons")&&(N=!1);this.button&&(this.button.isPressed=N)};
_.$H.Object.defineProperties(Sm.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.playlistLoopStateEntity)==null?void 0:q.state)||((N=this.data)==null?void 0:N.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var q=void 0,N;if(this.currentState&&((N=this.data)==null?0:N.states)){N=_.Z(this.data.states);for(var b=N.next();!b.done;b=N.next()){b=_.v(b.value,_.lY1);var y=void 0;if(((y=b)==null?void 0:y.state)===this.currentState){q=b;break}}}return q}}});
Sm.prototype.updateButtonActiveState=Sm.prototype.updateButtonActiveState;_.p([_.O(_.H6),_.P("design:type",Object)],Sm.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Sm.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.WQ.playlistLoopStateEntitySelector}),_.P("design:type",Object)],Sm.prototype,"playlistLoopStateEntity",void 0);_.p([_.U(),_.P("design:type",Object)],Sm.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],Sm.prototype,"forceIconOnly",void 0);_.p([_.dq("ytd-button-renderer"),_.P("design:type",_.V5)],Sm.prototype,"button",void 0);
_.p([_.l("data","playlistLoopStateEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],Sm.prototype,"currentState",null);_.p([_.FY("currentButtonStateRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Sm.prototype,"updateButtonActiveState",null);_.p([_.l("currentState"),_.P("design:type",Object),_.P("design:paramtypes",[])],Sm.prototype,"currentButtonStateRenderer",null);
_.p([_.I({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Sm);
_.a(Sm,"ytd-playlist-loop-button-renderer",function(){if(ssl!==void 0)return ssl;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return ssl=q},
{mode:1});var a9x;var S0x=_.FE("DOWNLOAD",{},"Download"),WFM=_.FE("DOWNLOADING",{},"Downloading"),LFv=_.FE("DOWNLOADED",{},"Downloaded"),prj=_.FE("RETRY",{},"Retry"),WX=function(){var q=_.C.apply(this,arguments)||this;q.forceIconButton=!1;q.forceIconOnly=!1;q.overrides=!1;q.buttonTooltipPosition=!1;q.styleActionButton=!1;q.disableTextTransform=!1;q.downloadProgress=0;q.isDownloadComplete=!1;q.isHidden=!0;q.transferState="TRANSFER_STATE_UNKNOWN";q.isVideoDeletedByUser=!1;q.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return q};
_.Y(WX,_.C);_.g=WX.prototype;_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.dataChanged=function(){var q;(q=this.data)!=null&&q.text||(q=_.ig(_.WT().getState(),this.videoId),this.updateButtonState(q))};
_.g.computeVideoId=function(q){return q};
_.g.computePlayerStateEntityKey=function(q){return q};
_.g.showHideButton=function(){this.updateButtonVisibility()};
_.g.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var q;((q=this.playerStateEntity)==null?void 0:q.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};
_.g.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.g.updateButtonState=function(q){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==WFM||!_.zC(q))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(q){case "TRANSFER_STATE_UNKNOWN":q=S0x;var N="OFFLINE_DOWNLOAD";var b="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":q=prj;N="OFFLINE_DOWNLOAD";b="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":q=LFv;N="OFFLINE_PIN";b="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":q=
WFM;N="OFFLINE_DOWNLOADING_ZERO";b="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":q=prj;N="OFFLINE_DOWNLOAD";b="ACTION_RETRY";break;default:q=S0x,N="OFFLINE_DOWNLOAD",b="ACTION_ADD"}this.isVideoDeletedByUser&&(q=S0x,N="OFFLINE_DOWNLOAD",b="ACTION_ADD");var y=Object.assign({},this.data);y.text=_.nD(q);y.tooltip=q;y.icon={iconType:N};y.size="SIZE_DEFAULT";y.style="STYLE_DEFAULT";_.v(y.command,_.F3)&&(_.v(y.command,_.F3).action=b);this.set("data",y)}};
_.g.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var q="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?q="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?q="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?q="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?q="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?q="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(q="OFFLINE_PIN",this.isDownloadComplete=!0);var N;q!==((N=this.data.icon)==null?void 0:N.iconType)&&(N=Object.assign({},this.data),N.text=_.nD(WFM),N.tooltip=WFM,N.icon={iconType:q},_.v(N.command,_.F3)&&(_.v(N.command,_.F3).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",N))}};
WX.prototype.updateProgress=WX.prototype.updateProgress;WX.prototype.onTransferStateChanged=WX.prototype.onTransferStateChanged;WX.prototype.showHideButton=WX.prototype.showHideButton;WX.prototype.dataChanged=WX.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],WX.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],WX.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],WX.prototype,"forceIconButton",void 0);
_.p([_.U(),_.P("design:type",Object)],WX.prototype,"forceIconOnly",void 0);_.p([_.U(),_.P("design:type",Object)],WX.prototype,"overrides",void 0);_.p([_.U(),_.P("design:type",Object)],WX.prototype,"buttonTooltipPosition",void 0);_.p([_.U(),_.P("design:type",Object)],WX.prototype,"styleActionButton",void 0);_.p([_.U(),_.P("design:type",Object)],WX.prototype,"disableTextTransform",void 0);
_.p([_.U({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.P("design:type",String)],WX.prototype,"videoId",void 0);_.p([_.U({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.P("design:type",String)],WX.prototype,"playerStateEntityKey",void 0);_.p([_.U(),_.P("design:type",Object)],WX.prototype,"data",void 0);_.p([_.U({selector:KD,selectorArgs:["videoId"]}),_.P("design:type",Object)],WX.prototype,"downloadProgress",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],WX.prototype,"isDownloadComplete",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],WX.prototype,"isHidden",void 0);_.p([_.U({selector:_.ig,selectorArgs:["videoId"]}),_.P("design:type",String)],WX.prototype,"transferState",void 0);_.p([_.U({selector:_.q6n,selectorArgs:["videoId"]}),_.P("design:type",Object)],WX.prototype,"isVideoDeletedByUser",void 0);
_.p([_.U({selector:M9z,selectorArgs:["videoId"]}),_.P("design:type",Object)],WX.prototype,"offlineabilityState",void 0);_.p([_.U({selector:_.bR,selectorArgs:["playerStateEntityKey"]}),_.P("design:type",Object)],WX.prototype,"playerStateEntity",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],WX.prototype,"showTooltips",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],WX.prototype,"sendCommandWhenDisabled",void 0);
_.p([_.U({value:!1}),_.P("design:type",Boolean)],WX.prototype,"disabled",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WX.prototype,"dataChanged",null);_.p([_.$9("offlineabilityState","playerStateEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WX.prototype,"showHideButton",null);
_.p([_.$9("transferState","isVideoDeletedByUser"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WX.prototype,"onTransferStateChanged",null);_.p([_.$9("downloadProgress"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WX.prototype,"updateProgress",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],WX);
_.a(WX,"ytd-download-button-renderer",function(){if(a9x!==void 0)return a9x;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return a9x=q},{mode:2});var Piq;var Mbj,oX1=function(){if(Mbj!==void 0)return Mbj;var q=document.createElement("template");_.Q(q,'\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 Mbj=q};var ARJ=_.x("web_button_rework")&&_.ou("BUTTON_REWORK")||_.x("web_button_rework_with_live"),e4x=_.VX("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,LE=function(){var q=_.C.apply(this,arguments)||this;q.isPressed=!1;q.forceIconButton=!1;q.forceIconOnly=!1;q.forceModernIconButton=!1;q.alignByText=!1;q.isShorts=!1;q.animatedText=!1;q.shouldAnimate=!1;q.JSC$14708_browserSupportsAnimation=_.x("web_supports_animations_api");q.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};q.onTap=function(){var N;if((N=q.data)==null||!N.defaultNavigationEndpoint){var b;N=!((b=q.data)==null?0:b.isToggled);var y;if((y=q.data)==null||!y.preventAutoToggle){q.shouldAnimate=!1;q.disableTextUpdateJobId&&_.pY.cancelJob(q.disableTextUpdateJobId);q.disableTextUpdateJobId=_.pY.addLowPriorityJob(function(){q.disableTextUpdateJobId=void 0},e4x);
var J;q.set("data.isToggled",!((J=q.data)==null?0:J.isToggled));b=q.getInnertubeIcon();y={toggled:N,actions:{}};b&&(y.actions[b.toLowerCase()]=N);_.e2(q.hostElement,"yt-toggle-button",y)}}};
return q};
_.Y(LE,_.C);_.g=LE.prototype;_.g.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.pY.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.toggle=function(q){var N;this.set("data.isToggled",q!==void 0?q:!((N=this.data)==null?0:N.isToggled))};
_.g.handleUpdateToggleButtonStateCommand=function(q){if(this.data){q=_.v(q,jVq);var N,b,y,J=(N=this.data)==null?void 0:(b=N.toggleButtonSupportedData)==null?void 0:(y=b.toggleButtonIdData)==null?void 0:y.id;J&&q&&J===(q==null?void 0:q.buttonId)&&this.set("data.isToggled",q.toggled)}};
_.g.handleUpdateToggleButtonTextAction=function(q){if(this.data){q=_.v(q,aVJ);var N,b,y,J=(N=this.data)==null?void 0:(b=N.toggleButtonSupportedData)==null?void 0:(y=b.toggleButtonIdData)==null?void 0:y.id;J&&q&&J===(q==null?void 0:q.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=q.defaultNumericalValue,this.set("data.defaultText",q.defaultText),this.set("data.toggledText",q.toggledText),this.shouldAnimate=!1)}};
_.g.getInnertubeIcon=function(){var q=this.data;if(q){var N,b,y=((N=q.defaultIcon)==null?0:N.iconType)?(b=q.defaultIcon)==null?void 0:b.iconType:null,J,E;N=((J=q.toggledIcon)==null?0:J.iconType)?(E=q.toggledIcon)==null?void 0:E.iconType:y;return q.isToggled?N:y}};
_.g.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.$H.Object.defineProperties(LE.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var q={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$14708_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var N=q.renderer;var b=q.element;var y=q.toggled;var J=q.onTapCallback;var E=q.commandClientArgs;var F=q.overrides;var R=q.forceIcon;var c=q.forceModernIconButton;var z=q.forceDisabled;var m=q.useAnimatedText;var r=q.animatedTextProps;q=fSR(N,y);R=!N.defaultIcon||!R&&N.defaultText?N.defaultIcon?"leading":void 0:c?"icon-only":"icon-only-40";R==="icon-only-40"&&(q.type="text");var X;c=Object;var V=c.assign,G;a:switch((G=
N.style)==null?void 0:G.styleType){case "STYLE_COMPACT_GRAY":G={size:"S"};break a;default:G={size:"M"}}var w=!!y;var D=(D=y&&N.toggledText||N.defaultText)?_.v$(D):void 0;m?(m=_.ao(y&&N.toggledText||N.defaultText))&&r&&!isNaN(Number(r.numberValue))?(r.numberText=m,y&&(r.numberValue+=1),m=r):m=void 0:m=void 0;var k,f,L,S;var W=(r=((f=y?N.toggledAccessibilityData||((W=N.toggledText)==null?void 0:W.accessibility):N.accessibilityData||((k=N.defaultText)==null?void 0:k.accessibility))==null?void 0:(L=f.accessibilityData)==
null?void 0:L.label)||((S=N.accessibility)==null?void 0:S.label))?r:_.ao(y&&N.toggledText||N.defaultText);z=z===void 0?N.isDisabled:z;b=UFd(N,y,J,b,E);y=kZh(N,y);y!=null&&y.length?(y=_.iq({innertubeCommand:VWn(y),forceNewState:!0}),y=lq(y)?y:void 0):y=void 0;N=V.call(c,{},q,G,{iconPosition:R},F,{focused:!1,toggled:w,toggleable:!0,formattedButtonText:D,animatedTextProps:m,accessibilityLabel:W,disabled:z,onTap:b,aTagConfig:y},PrZ((X=N.colorData)==null?void 0:X.basicColorPaletteData));N.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(N.type="filled");return N}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var q=this.getInnertubeIcon();if(q)return _.qo(q)}}});
LE.prototype.resetAnimation=LE.prototype.resetAnimation;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],LE.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],LE.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],LE.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Object)],LE.prototype,"isPressed",void 0);_.p([_.U(),_.P("design:type",Object)],LE.prototype,"forceIconButton",void 0);_.p([_.U(),_.P("design:type",Object)],LE.prototype,"forceIconOnly",void 0);_.p([_.U(),_.P("design:type",Object)],LE.prototype,"forceModernIconButton",void 0);_.p([_.U(),_.P("design:type",Object)],LE.prototype,"alignByText",void 0);_.p([_.U(),_.P("design:type",Object)],LE.prototype,"overrides",void 0);
_.p([_.U(),_.P("design:type",Boolean)],LE.prototype,"disabled",void 0);_.p([_.U(),_.P("design:type",Object)],LE.prototype,"isShorts",void 0);_.p([_.U(),_.P("design:type",Object)],LE.prototype,"buttonTooltipPosition",void 0);_.p([_.U(),_.P("design:type",Object)],LE.prototype,"animatedText",void 0);_.p([_.U(),_.P("design:type",String)],LE.prototype,"textNumberValue",void 0);_.p([_.U({computed:"computeTooltip(data, data.isToggled)"}),_.P("design:type",Object)],LE.prototype,"tooltip",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],LE.prototype,"resetAnimation",null);_.p([_.l("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.P("design:type",Object),_.P("design:paramtypes",[])],LE.prototype,"computedButtonShape",null);_.p([_.l("data.*"),_.P("design:type",Object),_.P("design:paramtypes",[])],LE.prototype,"computedIcon",null);
_.p([_.I({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],LE);ARJ&&_.a(LE,"ytd-toggle-button-renderer",oX1,{mode:_.Am("kevlar_poly_si_batch_j081")?1:2});var BYv=_.n(function(q){function N(z){var m;return _.d(function(r){if(r.nextAddress==1)return(m=!ISD(z,R())||!R().enabled)?r.jumpTo(2):r.yield(SgD(),3);r.nextAddress!=2&&(m=r.yieldResult);if(m)return r.return();b();setTimeout(function(){F(!1)},1500);
_.hj(r)})}
function b(){setTimeout(function(){F(!0);var z;(z=y.lottieEl)==null||z.goToAndPlay(0)},150)}
var y=_.gj(),J=_.Z(_.QS(!1,void 0,"UfUosc")),E=J.next().value,F=J.next().value,R=_.aU(q.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.WC(function(){var z,m;((z=q.settings)==null?void 0:(m=z.call(q))==null?void 0:m.uniqueId)==="this is not intended behavior"&&_.M6(new _.IO("Smartimation Settings is undefined"))});
_.Sx(function(){R().experimentEnabled&&(R().enabled?TrJ(N):(F(!1),s7A(N)),_.W1(function(){s7A(N)}))},"IHhVmc");
_.Sx(function(){R().timings.join("");R().experimentEnabled&&(ndu(R()),_.W1(function(){aSu(R())}))},"fsfhOe");
var c=_.K3(function(){var z=y,m=R().uniqueId+"-border",r,X;var V="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((X=(r=_.tz().resolve(_.$f(_.ft)))==null?void 0:r())!=null&&X?"dark":"light")+"_v2.json";return{animationRef:z,animationConfig:{name:m,autoplay:!1,loop:!1,path:V}}},void 0,"UWvUGe");
J={};return _.u("yt-smartimation",{class:_.NO(q.className,"smartimation",(J["smartimation--experiment-enabled"]=function(){return R().experimentEnabled},J["smartimation--active-border"]=E,J["smartimation--enable-masking"]=WDJ(),J))},_.u(_.t,{cond:function(){return R().experimentEnabled},
then:function(){return _.u("div",{class:"smartimation__border"},_.u(_.h$,{className:"smartimation__border-gradient",data:c,animationName:function(){return c().animationConfig.name}}))}}),_.u("div",{class:"smartimation__content"},q.children))},"ha");
BYv.idomCompat=!0;_.P$(BYv,"yt-smartimation",{props:{className:_.F5,settings:_.F5}});var pE=function(){var q=_.C.apply(this,arguments)||this;q.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};q.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};q.shouldEnableSmartimation=!1;return q};
_.Y(pE,_.C);pE.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
pE.prototype.onDataChanged=function(){var q,N;this.shouldEnableSmartimation=(((q=this.data)==null?void 0:(N=q.timedAnimationData)==null?void 0:N.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
pE.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var q=_.v(this.data.likeButton,_.EM),N=_.v(this.data.dislikeButton,_.EM);return!!((q==null?0:q.isToggled)||(N==null?0:N.isToggled))};
pE.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]]"}}}}}};
_.$H.Object.defineProperties(pE.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var q,N,b=((q=this.data)==null?void 0:(N=q.timedAnimationData)==null?void 0:N.animationTiming)||[];return{uniqueId:"like-dislike",timings:b,enabled:this.shouldEnableSmartimation,experimentEnabled:b.length>0}}}});
pE.prototype.onDataChanged=pE.prototype.onDataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],pE.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],pE.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],pE.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],pE.prototype,"likeButtonOverride",void 0);_.p([_.U(),_.P("design:type",Object)],pE.prototype,"dislikeButtonOverride",void 0);
_.p([_.l("shouldEnableSmartimation"),_.P("design:type",Object),_.P("design:paramtypes",[])],pE.prototype,"smartimationSettings",null);_.p([_.FY("data"),_.ZP("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pE.prototype,"onDataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],pE);
_.a(pE,"ytd-segmented-like-dislike-button-renderer",function(){if(Piq!==void 0)return Piq;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Piq=q},{mode:1});var HBx;var qTM;(qTM=document.body)==null||qTM.setAttribute("rounded-container","");var N6x={};N6x.YtToggleButtonBehavior=[_.Dc.YtActionHandlerBehavior,TE.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 q=this.data.isToggled;if(!this.isModal_(q)){if(!this.data.preventAutoToggle){this.toggle();var N={toggled:this.data.isToggled,actions:{}};N.actions[this.buttonIcon]=this.data.isToggled;_.e2(this.hostElement,"yt-toggle-button",N)}N=this.data.defaultServiceEndpoint||null;var b=this.data.toggledServiceEndpoint||null;if(N&&b||N&&this.data.preventAutoToggle)q=q?b:N,N=this.disableCommandHandlerOverride,_.x("killswitch_toggle_button_behavior_resolve_command")||N?_.qc(this.hostElement,
[q]):_.yI(q,this.hostElement),_.e2(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:q})}},
stateChanged_:function(){var q=this.data;if(q){var N=q.isToggled;this._setEndpoint(this.computeEndpoint_(q));this._setServiceEndpoint(this.computeServiceEndpoint_(q));this._setButtonIcon(this.computeButtonIcon_(q,N));this._setButtonText(this.computeButtonText_(q,N));this._setButtonAccessibility(this.computeAccessibility_(q,N));this._setButtonTooltip(this.computeTooltip_(q,N));this._setButtonClass(this.computeButtonClass_(q,N));this._setIconPositionType(this.computeIconPositionType_(q));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=N):this.elements_.button.setAttribute("aria-pressed",N));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=N)}},
shouldSetIconActiveState_:function(){return _.x("kevlar_system_icons")},
toggle:function(q){this.set("data.isToggled",q!==void 0?q:!this.data.isToggled);_.x("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(q){if(q){var N,b;return!!((N=this.data)==null?0:(b=N.toggledServiceEndpoint)==null?0:b.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(q){return q&&q.defaultNavigationEndpoint||null},
computeButtonIcon_:function(q,N){var b=q&&q.defaultIcon?_.qo(q.defaultIcon.iconType):null;q=q&&q.toggledIcon?_.qo(q.toggledIcon.iconType):b;return N?q:b},
handleUpdateToggleButtonStateCommand_:function(q){q=q.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==q.buttonId&&this.toggle(q.toggled)},
computeButtonText_:function(q,N){return q?N&&q.toggledText||q.defaultText||null:null},
computeAccessibility_:function(q,N){return q?(N?this.get("toggledAccessibilityData.accessibilityData",q):this.get("accessibilityData.accessibilityData",q))||q.accessibility||null:null},
computeTooltip_:function(q,N){return q?N&&q.toggledTooltip||q.defaultTooltip||null:null},
computeButtonClass_:function(q,N){if(!q)return"";var b="",y=q.toggledStyle||q.style;if(N=N?y:q.style){N.styleType&&(N=N.styleType);try{b+=N.toLowerCase().replace(/_/g,"-")+" "}catch(J){_.op(J,N,typeof N),_.M6(J)}}if(q=q.size){q.sizeType&&(q=q.sizeType);try{b+=q.toLowerCase().replace(/_/g,"-")+" "}catch(J){_.op(J,q,typeof q),_.M6(J)}}return b.trim()},
computeIconPositionType_:function(q){return q&&q.iconPosition||null},
computeServiceEndpoint_:function(q){var N=q&&q.serviceEndpoint,b=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return N?N:b&&q.command?q.command:null},
handleUpdateToggleButtonTextAction_:function(q){q=q.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==q.buttonId&&(this.set("data.defaultText",q.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",q.toggledText),this.notifyPath("data.toggledText"))}}];_.xP("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var baM=_.x("web_button_rework")&&_.ou("BUTTON_REWORK")||_.x("web_button_rework_with_live"),PX=function(){var q=_.C.apply(this,arguments)||this;q.systemIcons=_.x("kevlar_system_icons");q.roundedContainer=!0;return q};
_.Y(PX,_.C);PX.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
PX.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var q=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var N={toggled:!!this.data.isToggled,actions:{}};N.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var b,y;N.actions.playlistId=(b=this.data.defaultServiceEndpoint)==null?void 0:(y=b.playlistEditEndpoint)==null?void 0:y.playlistId;_.e2(this.hostElement,"yt-toggle-button",N)}(q=q?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(q)}};
PX.prototype.onYtNavigate=function(q){var N=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(q.detail.endpoint);N&&(q.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(N))};
_.$H.Object.defineProperties(PX,{template:{configurable:!0,enumerable:!0,get:function(){if(HBx===void 0){var q=document.createElement("template");_.Q(q,"\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");q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);HBx=q}q=HBx;return q}}});
PX.prototype.onYtNavigate=PX.prototype.onYtNavigate;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],PX.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],PX.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.r7),_.P("design:type",Object)],PX.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.O(N6x.YtToggleButtonBehavior),_.P("design:type",Object)],PX.prototype,"ytToggleButtonBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],PX.prototype,"data",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],PX.prototype,"showTooltips",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],PX.prototype,"systemIcons",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],PX.prototype,"roundedContainer",void 0);_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],PX.prototype,"onYtNavigate",null);
_.p([_.I({is:"ytd-toggle-button-renderer",disableElementRegistration:baM})],PX);var y6R,J6x;_.M8=new _.Jw("PANEL_CONTROLLER_TOKEN");_.oQ=new _.Jw("SHEET_CONTROLLER_TOKEN");_.AP=new _.Jw("DIALOG_CONTROLLER_TOKEN");y6R=new _.Jw("DIALOG_CONTAINER_TOKEN");J6x=new _.Jw("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.em=new _.Jw("PERSISTENT_PANEL_CONTROLLER_TOKEN");var HhJ=_.FE("DOWNLOAD",{},"Download"),qcn=_.FE("DOWNLOADING",{},"Downloading"),NNJ=_.FE("DOWNLOADED",{},"Downloaded"),byA=_.FE("RETRY",{},"Retry");var EKl=_.n(function(q){var N=Zyd,b=function(){return""},y=yQR(q.data),J=JQR(q.data),E=EMu(q.data),F=gMn(q.data);
N=function(){var R=q.data(),c=eKu(R,y(),J(),E(),F()),z=!!R.videoId,m=c.text;return{title:z?m:void 0,tooltip:z?void 0:m,accessibilityText:m,onTap:c.onTap,iconName:c.iconType,style:R.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:c.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:R.buttonSize}};
b={};b=_.NO("ytDownloadButtonViewModelHost",(b.ytDownloadButtonViewModelIsHidden=function(){var R=q.data(),c=F();return R.playlistId||c()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||c()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},b));
return _.u("download-button-view-model",{class:b},_.u(_.Ou,{data:N}))},"ia");
EKl.idomCompat=!0;var m3J=new _.Jw("SUBMIT_API_SERVICE_TOKEN");var zCJ,$3n,rQn={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var U3C=new _.Jw("RENDERER_LOGGER_TOKEN");var KhD=new _.Jw("RENDERER_STAMPER_OPTIONS_TOKEN");var VSd;_.ux=new VPj;VSd=new Map;var D3R="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),kYh=["notificationTextRenderer","notificationMultiActionRenderer"],
hCn="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),lFh=j4A(function(q){return _.p3(q==null?void 0:q.targetId)}).useUpdatableData;var iye=0;_.zS.debugName="EjJbCe";var gK1=_.n(function(q){var N=q.data;q=q.className;_.SI(function(){N().formId||_.po(Error("Ch"))});
var b=_.uGz(function(){return N().formId},function(){return N().beforeSubmitCommand},function(){return N().afterSubmitCommand}),y=b.submitForm,J=b.isValid,E=b.isSubmitting,F=function(){return{state:N().isDisabled||!J()||E()?"disabled":"active"}};
return _.u("yt-submit-button-view-model",{class:_.NO("ytSubmitButtonViewModelHost",q)},_.u(_.zS,{data:function(){return N().button}},{buttonViewModel:function(R){return _.u(_.Ou,{data:R.data,
buttonOverrides:F,onClick:y})}}))},"la");var Fco=_.n(function(q){var N=q.backgroundLottieRef;var b=q.foregroundLottieRef;var y=q.children;var J=q.wrapperClass;var E=q.disableAnimation;q=function(){return(_.x("web_animated_actions")||_.x("web_animated_actions_v2"))&&!(E==null?0:E())};
return _.u("yt-animated-action",{class:_.NO("ytAnimatedActionHost",J)},_.u("div",{class:"ytAnimatedActionContentWithBackground"},_.u(_.t,{cond:q,then:function(){return _.u(Zax,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:N==null?void 0:N(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(fFe()?"dark":"light")+"_v5.json"}}}})}}),y),_.u(_.t,{cond:q,
then:function(){return _.u(Zax,{lottiePlayerProps:function(){return{animationRef:b==null?void 0:b(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(fFe()?"dark":"light")+"_v4.json"}}}})}}))},"ma");
Fco.idomCompat=!0;var Zax=_.n(function(q){var N=q.wrapperClass;var b=q.lottieClass;var y=q.lottiePlayerProps;return _.u("div",{class:_.NO("ytAnimatedActionLottie",N),"aria-hidden":"true"},_.u(_.h$,{className:b,data:y,animationName:function(){return y().animationConfig.name}}))},"na");var CbC={isOpen:!1};var TNJ={isAllowed:!1};var nMJ={errorMessage:"",title:"",privacy:"",isDisabled:!0};var ScC={isOpen:!1};var LhC={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var R6T={response:void 0};var Pbn=function(q,N){q=q===void 0?R6T:q;switch(N.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},q,{response:N.payload});default:return q}};var dUx={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var MSu=function(q,N){q=q===void 0?dUx:q;switch(N.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},q,{nextDisabled:N.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},q,{nextCommand:N.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},q,{footerSubmissionData:N.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},q,{isImpersonationValid:N.payload});default:return q}};var c6R={reportFormData:void 0,reportDetailsFormData:void 0};var oMd=function(q,N){q=q===void 0?c6R:q;switch(N.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},q,{reportFormData:N.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},q,{reportDetailsFormData:N.payload});default:return q}};var uLE=void 0;_.x("mweb_enable_redux_store_on_demand")||(uLE=new SN(AQZ()));var BX=_.x("enable_web_delhi_icons");var z6x=_.n(function(q){q=_.Sl(q,{themeOverride:void 0,animationRef:{}});var N=q.animatedIconType,b=q.active,y=q.themeOverride,J=q.animationRef;q=q.staticIconFn;var E=_.Z(_.QS(void 0,void 0,"l48agc")),F=E.next().value,R=E.next().value,c=function(){a:{var D=N();var k=y==null?void 0:y();var f;k=(k==null?void 0:k.useDarkTheme)||((f=_.tz().resolve(_.$f(_.ft)))==null?void 0:f());switch(D){case "LIKE":uLE||(uLE=new SN(AQZ()));D=(D=GlC(uLE.getState()))&&D.animationLightUrl&&D.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:k?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:k?D.animationDarkUrl:D.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(D){k=D;break a}k="animated_like_icon_"+(k?"dark":"light")+"_"+(BX?"v5":"v4");k={lottiePlayerProps:{animationConfig:{name:k,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+k+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(BX?" animated-like-icon-delhi":"")}}},totalFrames:BX?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":k={lottiePlayerProps:{animationConfig:{name:k?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(k?"dark":"light")+(BX?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(BX?" animated-subscribe-icon-delhi":"")}}},totalFrames:BX?120:79,lazyLoad:!1};break a}k=
void 0}return k},z=function(){var D,k;
return(k=(D=c())==null?void 0:D.lottiePlayerProps.animationConfig.name)!=null?k:""},m=function(){if(c()){var D=c().lottiePlayerProps.animationConfig.path;
return rJ.get(D)||F()}};
E=_.Z(_.QS(!1,void 0,"sDrGId"));var r=E.next().value;E=E.next().value;var X=BNz(E),V=function(){var D=c(),k,f,L;return(L=D==null?void 0:(k=D.lottiePlayerProps.animationConfig)==null?void 0:(f=k.rendererSettings)==null?void 0:f.className)!=null?L:""},G=void 0,w=void 0;
_.Sx(function(){var D=c(),k=z(),f=m(),L=r(),S=b();if(D&&(w!==k&&(w=k,G=S,k=J(),X.animationConfig=D.lottiePlayerProps.animationConfig,X.animationRef=k,f&&(X.animationConfig.animationData=f,X.animationConfig.path=void 0),k=D.lottiePlayerProps.animationConfig.path,!rJ.get(k)&&D.lazyLoad&&k&&eCn(k,R)),!(L||D.lazyLoad&&!f))){if(f=!J().lottieEl)S?(L=D.totalFrames,X.animationConfig.initialSegment=[L-1,L]):X.animationConfig.initialSegment=void 0;if(G!==S&&!f)if(f=J(),S){var W;(W=f.lottieEl)==null||W.playSegments([0,
D.totalFrames],!0)}else{var M;(M=f.lottieEl)==null||M.playSegments([0,1],!0)}G=S}},"RQVZ1d");
return _.u("animated-icon",{class:"ytAnimatedIconHost"},_.u(_.t,{cond:function(){var D,k;return!((D=c())==null||!D.lottiePlayerProps.animationConfig.path||((k=c())==null?0:k.lazyLoad)&&!m()||r())},
then:function(){return _.u(_.h$,{data:X,animationName:z,className:V,animationRef:J})},
else:q}))},"pa");_.HX=_.n(function(q){var N=_.dI("yt-subscribe-button-view-model"),b=_.dI("div"),y=_.dI("div"),J=_.gj(),E=_.gj(),F=_.gj(),R=_.dj(bBn,function(){return q.data().stateEntityStoreKey}),c=_.dj(yRR,function(){var qv,mM;
return(mM=(qv=q.data().notificationStateEntityStoreKeys)==null?void 0:qv.subsNotificationStateKey)!=null?mM:""}),z=function(){return!q.data().enableSubscribeButtonPostClickAnimation},m=_.Z(_.QS(0,void 0,"YtsSKb")),r=m.next().value,X=m.next().value;
m=_.Z(_.QS(0,void 0,"V6JxRe"));var V=m.next().value,G=m.next().value;m=_.Z(_.QS(!1,void 0,"JUCSZ"));var w=m.next().value,D=m.next().value;m=_.Z(_.QS(!1,void 0,"oV6jwf"));var k=m.next().value,f=m.next().value;m=_.Z(_.QS(!1,void 0,"hK1Whe"));var L=m.next().value,S=m.next().value,W;m=_.Z(_.QS(!1,void 0,"Asaolf"));var M=m.next().value,qe=m.next().value,RJ=function(){f(!0);_.rj(_.pY,function(){f(!1)},1500)};
_.Sx(function(){var qv=k();_.YL(function(){qv&&!z()&&R()&&mSe(J,E,F)})},"Qq6Hsf");
_.Sx(function(){var qv=R();_.YL(function(){if(!z()&&qv){var mM;((mM=q.animateWidth)==null?0:mM.call(q))&&tbA(N.value,!!qv.subscribed,r(),V());var Ox,h4;((Ox=W)==null?0:Ox.subscribed)||!qv.subscribed||qv.key!==((h4=W)==null?void 0:h4.key)||RJ();W=qv}})},"hog8te");
m=_.K3(function(){var qv,mM,Ox,h4=q.data(),QC=!((qv=R())==null||!qv.subscribed);qv=!((mM=q.isOverlay)==null||!mM.call(q));mM=w()?N:void 0;var rp=(Ox=c())==null?void 0:Ox.state;Ox=M();$SJ(h4,rp);return NYD({model:h4,subscribed:QC,isOverlay:qv,element:mM,notificationState:rp,disableTextEllipsis:!0,focused:Ox})},void 0,"hc1PRd");
var tZ=function(){var qv;if(!z()&&((qv=q.animateWidth)==null?0:qv.call(q))&&(b==null?0:b.value)&&(y==null?0:y.value)&&!L()){qv=R();var mM=_.Z((qv==null?0:qv.subscribed)?[b,y]:[y,b]),Ox=mM.next().value;mM=mM.next().value;Ox=Math.ceil(Ox.value.getBoundingClientRect().width);mM=Math.ceil(mM.value.getBoundingClientRect().width);X(Ox);G(mM);tbA(N.value,!(qv==null||!qv.subscribed),Ox,mM);S(!0)}},wA=_.y0(function(qv){tZ();
var mM=R();mM&&(qv.detail.endpoint.subscribeEndpoint||qv.detail.endpoint.unsubscribeEndpoint)&&cRz(N.value,!mM.subscribed,mM)}),rA=function(){var qv=_.tz().resolve(_.$f(_.X5));
qv&&qe(qv.isKeyBoardInUse())},xD=function(){qe(!1)};
_.Zm("yt-player-subscribe",function(qv){var mM=R();mM&&qv===q.data().channelId&&cRz(N.value,!0,mM)});
_.Zm("yt-player-unsubscribe",function(qv){var mM=R();mM&&qv===q.data().channelId&&cRz(N.value,!1,mM)});
_.Zm("yt-update-subscribe-button-action",function(qv){qv=_.v(qv,yGl);var mM=R();mM&&qv&&qv.channelId===q.data().channelId&&cRz(N.value,!!qv.subscribed,mM)});
_.WC(function(){N.value&&(N.value.addEventListener("focusin",rA),N.value.addEventListener("focusout",xD));var qv=_.Ip(_.pY,function(){tZ()});
D(!0);_.W1(function(){_.pY.cancelJob(qv);N.value&&(N.value.removeEventListener("focusin",rA),N.value.removeEventListener("focusout",xD))})});
var IJ=function(){var qv,mM,Ox;if(Ox=!((qv=R())==null||!qv.subscribed))qv=!!q.data().disableNotificationBell,Ox=(mM=c())==null?void 0:mM.state,Ox=!qv&&!!Ox;return Ox},sJ=function(){var qv;
return!((qv=R())==null?0:qv.subscribed)},Sn=function(){var qv,mM;
if(mM=sJ()){mM=!!q.data().disableNotificationBell;var Ox=(qv=c())==null?void 0:qv.state;mM=!mM&&!!Ox}return mM},YE={},xE={};
return _.u("yt-subscribe-button-view-model",{class:_.NO(q.className,"ytSubscribeButtonViewModelHost",(YE.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var qv,mM;return!((qv=R())==null||!qv.subscribed)&&((mM=q.animateWidth)==null?void 0:mM.call(q))&&k()},YE.ytSubscribeButtonViewModelHostHidden=function(){var qv;
return!((qv=R())==null?0:qv.subscribed)&&q.data().hideWhenUnsubscribed},YE)),
el:N,"on:yt-service-request-sent":wA},_.u(Fco,{backgroundLottieRef:J,foregroundLottieRef:E,wrapperClass:_.NO("ytSubscribeButtonViewModelAnimatedActionWrapper",(xE.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var qv;return((qv=q.animateWidth)==null?void 0:qv.call(q))&&k()},xE.ytSubscribeButtonViewModelStaticWidth=function(){var qv;
return!((qv=q.animateWidth)==null?0:qv.call(q))},xE)),
disableAnimation:z},_.u("div",{el:b,class:"ytSubscribeButtonViewModelContainer"},_.u(_.GE,{data:m,icon:function(){return _.u(_.t,{cond:IJ,then:function(){var qv=function(){var mM;return dSC((mM=c())==null?void 0:mM.state)};
return _.u(_.t,{cond:function(){return z()||qv()!=="NOTIFICATIONS_NONE"},
then:function(){return _.u(_.FQ,{icon:qv})},
else:function(){return _.u(z6x,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:F})}})}})},
secondaryIconName:function(){return IJ()?"EXPAND":void 0}}))),_.u("div",{el:y,
class:"ytSubscribeButtonViewModelInvisible"},_.u(_.t,{cond:function(){var qv;return((qv=q.animateWidth)==null?void 0:qv.call(q))&&!z()&&!L()},
then:function(){return _.u(_.GE,{data:_.K3(function(){var qv;return NYD({model:q.data(),subscribed:sJ(),isOverlay:!((qv=q.isOverlay)==null||!qv.call(q)),element:N,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var qv;return Sn()?dSC((qv=c())==null?void 0:qv.state):void 0},
secondaryIconName:function(){return Sn()?"EXPAND":void 0}})}})))},"sa");
_.HX.idomCompat=!0;var $UJ=_.n(function(q){var N=q.data;var b=_.dj(bBn,function(){return N().subscriptionStateEntityKey});
return _.u(_.t,{cond:function(){var y=N(),J=b();return!y.hideWhenUnsubscribed||(J==null?0:J.subscribed)?_.v(N().button,_.FF):void 0},
then:function(y){return _.u("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.u(_.Ou,{data:y,buttonOverrides:function(){return{toggled:!0}}}))}})},"ta");
$UJ.idomCompat=!0;var ttx,qW;ttx=_.n(function(q){return _.u(_.zS,{data:function(){return q.actionRow().actions}},{buttonViewModel:function(N){var b=N.data;
return _.u(qW,{isRow:q.isRow,isIconOnlyButton:function(){return rRZ(b())},
useIntrinsicWidth:q.useIntrinsicWidth},_.u(_.Ou,{data:b}))},
subscribeButtonViewModel:function(N){return _.u(qW,{isRow:q.isRow},_.u(_.HX,{data:N.data,isOverlay:!1,animateWidth:function(){return!q.isRow()}}))},
downloadButtonViewModel:function(N){var b=N.data;return _.u(qW,{isRow:q.isRow,isIconOnlyButton:function(){return!!b().playlistId}},_.u(EKl,{data:b}))},
submitButtonViewModel:function(N){var b=N.data;return _.u(qW,{isRow:q.isRow,isIconOnlyButton:function(){var y=b();return rRZ(_.v(y==null?void 0:y.button,_.FF))}},_.u(gK1,{data:b}))},
toggleButtonViewModel:function(N){var b=N.data;return _.u(qW,{isRow:q.isRow,isIconOnlyButton:function(){var y=b();return rRZ(_.v(y.isToggled?y.toggledButtonViewModel:y.defaultButtonViewModel,_.FF))}},_.u(_.LV,{data:b}))},
subscribePlusButtonViewModel:function(N){return _.u(qW,{isRow:q.isRow},_.u($UJ,{data:N.data}))}})},"ua");
qW=_.n(function(q){var N={};return _.u("div",{class:_.NO("ytFlexibleActionsViewModelAction",(N.ytFlexibleActionsViewModelActionRowAction=q.isRow,N.ytFlexibleActionsViewModelActionIntrinsicWidth=q.useIntrinsicWidth,N.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,N.ytFlexibleActionsViewModelActionIconOnlyButton=q.isIconOnlyButton,N))},q.children)},"va");
_.NW=_.n(function(q){var N=function(){var y;return((y=q.layout)==null?void 0:y.call(q))===1},b={};
return _.u("yt-flexible-actions-view-model",{class:_.NO("ytFlexibleActionsViewModelHost",q.className,(b.ytFlexibleActionsViewModelInline=function(){return!N()},b.ytFlexibleActionsViewModelScrollable=function(){return q.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},b))},_.u(_.Tf,{each:function(){return q.data().actionsRows||[]}},function(y){return _.u(_.t,{cond:N,
then:function(){return _.u("div",{class:"ytFlexibleActionsViewModelActionRow"},_.u(ttx,{actionRow:y,isRow:N,useIntrinsicWidth:function(){return!!q.data().respectActionIntrinsicWidth}}))},
else:function(){return _.u(ttx,{actionRow:y,isRow:N})}})}))},"wa");_.P$(_.NW,"yt-flexible-actions-view-model",{props:{data:_.F5,layout:_.F5,justifyContentOverride:_.F5,className:_.F5}});_.bD=_.n(function(q){var N=_.dj(iR,function(){var J;return(J=q.data().dislikeEntityKey)!=null?J:""}),b=_.K3(function(){var J=N();
return J?J.likeStatus==="DISLIKE":_.v(q.data().toggleButtonViewModel,_.de).isToggled},void 0,"fNr9he"),y=_.K3(function(){return Object.assign({},_.v(q.data().toggleButtonViewModel,_.de),{isToggled:b()})},void 0,"AezoCc");
return _.u("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.u(_.LV,{data:y,buttonShapeOverrides:q.buttonShapeOverrideables,onToggle:function(J){var E=N();E&&J!==(E.likeStatus==="DISLIKE")&&E.key&&_.nk(_.GK("likeStatusEntity",E.key,{likeStatus:J?"DISLIKE":"INDIFFERENT",hadUserInteraction:J}))}}))},"xa");
_.bD.idomCompat=!0;_.y$=_.n(function(q){var N=_.x("web_supports_animations_api"),b=S_(function(X){var V=z();if(!X){var G,w;return{numberText:(w=V==null?void 0:(G=V.likeCountIfIndifferent)==null?void 0:G.content)!=null?w:"",numberValue:Number(V==null?void 0:V.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var D;G=(V==null?void 0:(D=V.likeCountIfIndifferent)==null?void 0:D.content)!==X.numberText;if(R()||!G)return X;var k;return{numberText:(V==null?void 0:(k=V.likeCountIfIndifferent)==null?void 0:k.content)||
"",numberValue:Number(V==null?void 0:V.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!V}}),y=S_(function(X){var V=z();
if(!X){var G,w;return{numberText:(w=V==null?void 0:(G=V.likeCountIfLiked)==null?void 0:G.content)!=null?w:"",numberValue:Number(V==null?void 0:V.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var D;G=(V==null?void 0:(D=V.likeCountIfIndifferent)==null?void 0:D.content)!==X.numberText;if(R()||!G)return X;var k;return{numberText:(V==null?void 0:(k=V.likeCountIfLiked)==null?void 0:k.content)||"",numberValue:Number(V==null?void 0:V.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!V}}),J=_.Z(_.QS(void 0,
void 0,"xYSlUe")),E=J.next().value,F=J.next().value,R=E,c=_.dj(iR,function(){var X,V;
return(V=(X=q.data())==null?void 0:X.likeStatusEntityKey)!=null?V:""}),z=_.dj(gmD,function(){var X,V;
return((X=q.likeCountEntity)==null?void 0:(V=X.call(q))==null?void 0:V.key)||""}),m=_.K3(function(){var X;
return((X=c())==null?void 0:X.likeStatus)==="LIKE"},void 0,"DG5Osd"),r=function(){var X;
return N&&!((X=q.likeCountEntity)==null||!X.call(q))};
return _.u("like-button-view-model",{class:_.NO("ytLikeButtonViewModelHost",q.className)},_.u(_.LV,{data:function(){var X=Object,V=X.assign,G;var w=_.v((G=q.data())==null?void 0:G.toggleButtonViewModel,_.de);return V.call(X,{},w||{},{isToggled:m()})},
buttonShapeOverrides:q.buttonShapeOverrideables,animatedTextPropsDefault:function(){return r()?b():void 0},
animatedTextPropsToggled:function(){return r()?y():void 0},
onToggle:function(X){XrJ(X,c(),R(),F)},
style:function(){var X;return((X=q.disableIconAnimation)==null?0:X.call(q))?void 0:{animateIcon:"true"}}}))},"ya");
_.y$.idomCompat=!0;var mUx=_.n(function(q){var N=function(){return _.v(q.data().likeButtonViewModel,_.Ba)},b=function(){var J;
return((J=N())==null?void 0:J.likeStatusEntityKey)||""},y=_.K3(function(){var J,E;
var F=(E=_.dj(iR,b)())!=null?E:(J=N())==null?void 0:J.likeStatusEntity;J=q.data();var R;J=(J==null?void 0:(R=J.timedAnimationData)==null?void 0:R.animationTiming)||[];return{uniqueId:"like-dislike",timings:J,enabled:(F==null?void 0:F.likeStatus)==="INDIFFERENT"&&J.length>0,experimentEnabled:J.length>0}},void 0,"zZ3GQb");
return _.u("segmented-like-dislike-button-view-model",{class:_.NO("ytSegmentedLikeDislikeButtonViewModelHost",q.className),"button-renderer":!0},_.u(BYv,{settings:y},_.u("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.u(_.t,{cond:N,then:function(J){return _.u(_.y$,{data:J,likeCountEntity:function(){return q.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.x("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.u(_.t,{cond:function(){return _.v(q.data().dislikeButtonViewModel,_.eD)},
then:function(J){return _.u(_.bD,{data:J,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"za");
mUx.idomCompat=!0;_.P$(mUx,"segmented-like-dislike-button-view-model",{props:{data:_.F5,className:_.F5}});var r6x=_.n(function(q){var N=q.data;var b=q.className;var y=q.setMinWidth;var J=q.forceIconOnly;var E=_.dI("account-link-button-view-model"),F=_.dj(_.Vbd,function(){var X;return(X=N().accountLinkStatusEntityKey)!=null?X:""}),R=_.dj(_.Vbd,function(){var X;
return(X=N().accountLinkStatusSecondaryEntityKey)!=null?X:""}),c=function(){if(!_.x("web_account_link_secondary_killswitch")){var X,V;
return((X=F())==null?void 0:X.linked)||((V=R())==null?void 0:V.linked)}var G;return(G=F())==null?void 0:G.linked};
_.Sx(function(){var X=F();if(X){var V=KJT(new lOJ,wbM(new OmE,!!X.linked));_.yR().then(function(G){G&&(G.setAccountLinkState(_.Uf(V.JSC$12399_serializeBinary(),4)),G.updateAccountLinkingConfig(!!X.linked))})}},"IvZF7");
var z=function(){return _.v(N().toggleButtonViewModel,_.de)};
_.Zm("yt-signal-action-show-account-link-dialog",function(){if(z()){var X=c()?z().toggledButtonViewModel:z().defaultButtonViewModel;X=_.v(X,_.FF);var V;if((V=F())==null?0:V.isWarning){V=_.v(N().warningButtonViewModel,_.FF);if(!V){_.bv(Error("Dh"));return}X=V}var G;(V=_.O_((G=X)==null?void 0:G.onTap))&&_.Je([V],E.value)}else _.bv(Error("Eh"))});
var m=function(){var X=z();return Object.assign({},X,{isToggled:c()})},r=function(){return(J==null?0:J())?{iconPosition:"icon-only"}:{}};
return _.u("account-link-button-view-model",{class:_.NO("ytwAccountLinkButtonViewModelHost",b,function(){return(y==null?0:y())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:E,"button-renderer":!0},_.u("div",null,_.u(_.t,{cond:function(){var X;if((X=F())==null?0:X.isWarning)return(X=_.v(N().warningButtonViewModel,_.FF))||_.bv(Error("Dh")),X},
then:function(X){return _.u(_.Ou,{data:X,buttonOverrides:r})},
else:function(){return _.u(_.LV,{data:m,buttonShapeOverrides:r})}})))},"Ba");_.P$(r6x,"account-link-button-view-model",{props:{data:_.F5,className:_.W$,setMinWidth:_.W$,forceIconOnly:_.W$}});_.xP("menuRenderer","menuRenderer","ytd-menu-renderer");
var Xlx={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"}},
Vtv=_.x("web_fix_missing_action_buttons")?100:200,Jd=function(){var q=_.C.apply(this,arguments)||this;q.safeArea=!_.x("kevlar_flex_menu_safe_area_killswitch");q.tonalOverride=!1;q.threeDotSize="M";q.isOverlay=!1;q.useOverlayDark=!1;q.topLevelIconsOnly=!1;q.JSC$14841_lastWidth=0;q.maybeUpdateFlexibleMenu=function(){_.x("web_fix_missing_action_buttons")?requestAnimationFrame(q.maybeUpdateFlexibleMenuImpl):q.maybeUpdateFlexibleMenuImpl()};
q.maybeUpdateFlexibleMenuImpl=function(){var N;if((N=q.data)!=null&&N.flexibleItems){q.maybeFlushDebouncer();N=q.hostElement.clientWidth;var b=N>q.JSC$14841_lastWidth,y,J=((y=q.topLevelButtonsContainer)==null?void 0:y.scrollHeight)||0,E;y=((E=q.flexibleItemButtonsContainer)==null?void 0:E.scrollHeight)||0;E=q.hostElement.scrollHeight>Math.max(J,y)+8;b?(q.resetFlexibleItems(),q.JSC$14841_lastWidth=q.hostElement.clientWidth,q.maybeUpdateFlexibleMenu()):E&&(q.shrinkFlexibleMenu(),q.JSC$14841_lastWidth=
N)}};
q.computeThreeDotButtonShape=function(){if(q.tonalOverride)return Object.assign({},{onTap:function(){q.onOverflowTap()},
iconPosition:"icon-only",style:q.isOverlay?q.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:q.threeDotSize,state:"active",accessibilityLabel:q.computeAccessibilityLabel(q.data)},q.threeDotButtonOverride)};
q.onOverflowTap=function(){if(q.data.fetchMenuCommand)_.tz().resolve(_.rO).resolveCommand(q.data.fetchMenuCommand,{form:{element:q.hostElement}});else if(q.data.isDisabled&&q.data.disabledCommand)_.yI(q.data.disabledCommand,q.hostElement);else{var N=q.createMenuRendererVe(),b={items:q.items};q.data.menuPopupAccessibility&&(b.menuPopupAccessibility=q.data.menuPopupAccessibility);q.data.footer&&(b.footer=q.data.footer);N={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:b},veData:N}};
_.tz().resolve(_.oQ).openSheet({openPopupActionCommand:N},q.hostElement)}};
return q};
_.Y(Jd,_.C);_.g=Jd.prototype;_.g.updateButtonOverrides=function(){if(!_.x("menu_renderer_label_update_upkillswitch")){var q=_.ee(this.hostElement).querySelector("yt-button-view-model");q&&(q.buttonOverrides=this.buttonOverrides)}};
_.g.computeHasItems=function(){var q;return((q=this.topLevelButtonData)==null?void 0:q.length)||this.hasFlexibleItems};
_.g.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.g.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Jm(this.hostElement,{"--ytd-menu-renderer-button-color":_.GM(this.data.iconColor)}))};
_.g.onStamperFinished=function(){this.JSC$14841_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.g.setupFlexibleMenu=function(){var q=this,N;(N=this.data)!=null&&N.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.El(this.maybeUpdateFlexibleMenu,Vtv,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){q.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))};
_.g.maybeFlushDebouncer=function(){if(_.x("web_replace_formatted_with_attributed_string")){var q;(q=this.topLevelButtons)==null||q.forEach(function(b){var y;(b=(y=b.getElementsByTagName("yt-attributed-string"))==null?void 0:y[0])&&GHC(b)});
var N;(N=this.flexibleItemButtons)==null||N.forEach(function(b){var y;(b=(y=b.getElementsByTagName("yt-attributed-string"))==null?void 0:y[0])&&GHC(b)})}};
_.g.resetFlexibleItems=function(){var q;if((q=this.data)!=null&&q.flexibleItems){_.x("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var N;this.flexAsTopLevelButtons=(N=this.data.flexibleItems)==null?void 0:N.map(function(b){return _.v(b,_.RkR).topLevelButton});
_.x("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.g.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.g.shrinkFlexibleMenu=function(){var q;(q=this.flexAsTopLevelButtons)!=null&&q.length&&(this.flexAsTopLevelButtons=[].concat(_.a9(this.flexAsTopLevelButtons.slice(0,-1))))};
_.g.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:Xlx,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:Xlx,events:!0}}};
_.g.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.g.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.g.detached=function(){this.icon="MORE_VERT"};
_.g.computeTopLevelButtonData=function(q){if(!q)return[];var N;q=(N=q==null?void 0:q.topLevelButtons)!=null?N:[];return _.nM.unsafeClone([].concat(_.a9(q)))};
_.g.computeItems=function(q,N){if(!q)return[];var b=[];if(N){var y=(q.flexibleItems||[]).map(function(F){return _.v(F,_.RkR)});
y=_.Z(y);for(var J=y.next();!J.done;J=y.next())J=J.value,N.includes(J.topLevelButton)||(J=J.menuItem)&&b.push(J)}var E;q=(E=q==null?void 0:q.items)!=null?E:[];return[].concat(_.a9(b),_.a9(q))};
_.g.computeMenuActive=function(q,N){return q||N};
_.g.onPopupOpened=function(){this.overlayOpen=!0;_.e2(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.g.onPopupClosed=function(){this.overlayOpen=!1;_.e2(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.g.onPopupCanceled=function(){this.overlayOpen=!1;_.e2(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.g.computeAccessibilityLabel=function(q){return this.get("accessibility.accessibilityData.label",q)};
_.g.isHidden=function(q,N){return this.tonalOverride||!q?!0:q.fetchMenuCommand||q.isDisabled&&q.disabledCommand?!1:!(N==null?0:N.length)};
_.g.isModernOverflowHidden=function(q,N){return this.tonalOverride&&q?q.fetchMenuCommand?!1:!(N==null?0:N.length):!0};
_.g.createMenuRendererVe=function(){var q=this.data.trackingParams,N=_.Oe(),b=_.QY();return q&&N&&b?(q=_.zT(q),b=_.bx(7591),_.x("combine_ve_grafts")?_.hI(_.FR(),b,q):_.fr(N,q,b),b):null};
_.$H.Object.defineProperties(Jd.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.flexAsTopLevelButtons)==null||!q.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Jd.prototype.onPopupCanceled=Jd.prototype.onPopupCanceled;Jd.prototype.onPopupClosed=Jd.prototype.onPopupClosed;Jd.prototype.onPopupOpened=Jd.prototype.onPopupOpened;Jd.prototype.tonalOverrideChanged=Jd.prototype.tonalOverrideChanged;Jd.prototype.resetFlexibleItems=Jd.prototype.resetFlexibleItems;Jd.prototype.setupFlexibleMenu=Jd.prototype.setupFlexibleMenu;Jd.prototype.iconButtonColorChanged=Jd.prototype.iconButtonColorChanged;Jd.prototype.updateButtonOverrides=Jd.prototype.updateButtonOverrides;
_.p([_.O(_.r7),_.P("design:type",Object)],Jd.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Jd.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("#button-shape"),_.P("design:type",HTMLElement)],Jd.prototype,"buttonShape",void 0);_.p([_.dq("#button"),_.P("design:type",Object)],Jd.prototype,"button",void 0);
_.p([_.U(),_.P("design:type",Object)],Jd.prototype,"data",void 0);_.p([_.U({computed:"computeTopLevelButtonData(data)"}),_.P("design:type",Array)],Jd.prototype,"topLevelButtonData",void 0);_.p([_.U(),_.P("design:type",Array)],Jd.prototype,"flexAsTopLevelButtons",void 0);_.p([_.U({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.P("design:type",Array)],Jd.prototype,"items",void 0);_.p([_.U({value:"MORE_VERT"}),_.P("design:type",String)],Jd.prototype,"icon",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Jd.prototype,"safeArea",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.P("design:type",Boolean)],Jd.prototype,"menuActive",void 0);_.p([_.U(),_.P("design:type",Boolean)],Jd.prototype,"menuFocused",void 0);_.p([_.U({value:"bottom"}),_.P("design:type",String)],Jd.prototype,"buttonTooltipPosition",void 0);_.p([_.U(),_.P("design:type",Boolean)],Jd.prototype,"overlayOpen",void 0);
_.p([_.U({value:!0}),_.P("design:type",Boolean)],Jd.prototype,"forceIconButton",void 0);_.p([_.U(),_.P("design:type",Boolean)],Jd.prototype,"styleActionButton",void 0);_.p([_.U(),_.P("design:type",Boolean)],Jd.prototype,"disableTextTransformOnButtons",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Jd.prototype,"tonalOverride",void 0);_.p([_.U(),_.P("design:type",Object)],Jd.prototype,"threeDotSize",void 0);
_.p([_.U(),_.P("design:type",Object)],Jd.prototype,"threeDotButtonOverride",void 0);_.p([_.U(),_.P("design:type",Object)],Jd.prototype,"isOverlay",void 0);_.p([_.U(),_.P("design:type",Object)],Jd.prototype,"useOverlayDark",void 0);_.p([_.U({computed:"computeButtonOverride(tonalOverride)"}),_.P("design:type",Object)],Jd.prototype,"buttonOverride",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Jd.prototype,"hasCustomIconColor",void 0);
_.p([_.U({reflectToAttribute:!0}),_.l("flexAsTopLevelButtons"),_.P("design:type",Object),_.P("design:paramtypes",[])],Jd.prototype,"hasFlexibleItems",null);_.p([_.U({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.P("design:type",Boolean)],Jd.prototype,"hasItems",void 0);_.p([_.U(),_.P("design:type",Object)],Jd.prototype,"topLevelIconsOnly",void 0);
_.p([_.FY("topLevelIconsOnly"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jd.prototype,"updateButtonOverrides",null);_.p([_.l("topLevelIconsOnly"),_.P("design:type",Object),_.P("design:paramtypes",[])],Jd.prototype,"buttonOverrides",null);_.p([_.dq("#top-level-buttons-computed"),_.P("design:type",HTMLElement)],Jd.prototype,"topLevelButtonsContainer",void 0);_.p([_.cH(".top-level-buttons > *"),_.P("design:type",Array)],Jd.prototype,"topLevelButtons",void 0);
_.p([_.dq("#flexible-item-buttons"),_.P("design:type",HTMLElement)],Jd.prototype,"flexibleItemButtonsContainer",void 0);_.p([_.cH("#flexible-item-buttons > *"),_.P("design:type",Array)],Jd.prototype,"flexibleItemButtons",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jd.prototype,"iconButtonColorChanged",null);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jd.prototype,"setupFlexibleMenu",null);_.p([_.$9("topLevelIconsOnly"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jd.prototype,"resetFlexibleItems",null);_.p([_.FY("tonalOverride"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jd.prototype,"tonalOverrideChanged",null);
_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jd.prototype,"onPopupOpened",null);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jd.prototype,"onPopupClosed",null);_.p([_.ZP("yt-popup-canceled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jd.prototype,"onPopupCanceled",null);
_.a(Jd,"ytd-menu-renderer",function(){if(I9E===void 0){var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);I9E=q}q=I9E;return q},{mode:2});var jaq;var xUF;_.Eo=_.n(function(q){var N=q.data;var b=function(){if(N().icon)a:{var J={iconName:N().icon};for(var E=_.tz().resolve(_.No),F=_.Z([12,24]),R=F.next();!R.done;R=F.next()){var c=R.value;R=Object.assign({},J,{iconStyle:"youtube_fill",iconSize:c});c=Object.assign({},J,{iconStyle:"youtube_outline",iconSize:c});if(E.resolveIcon(R)){J=R;break a}if(E.resolveIcon(c)){J=c;break a}}J=void 0}else J=void 0;return J};
q={};var y={};return _.u("badge-shape",{class:_.NO("yt-badge-shape",function(){return Qsd(N().type)},(q["yt-badge-shape--overlay"]=function(){return N().isOverlay},q["yt-badge-shape--ads-include-dot"]=function(){return N().adsIncludeDot},q["yt-badge-shape--thumbnail-badge"]=function(){a:switch(N().type){case 17:case 18:case 19:var J=!0;
break a;default:J=!1}return J},q["yt-badge-shape--status-badge"]=function(){a:switch(N().type){case 12:case 13:case 14:case 15:case 16:var J=!0;
break a;default:J=!1}return J},q["yt-badge-shape--no-text"]=function(){return!N().text},q["yt-badge-shape--modern"]=function(){return N().modern||_.x("web_modern_badge_shape")},q)),
style:_.ZU({"background-color":function(){var J;return(J=N().customColors)==null?void 0:J.backgroundColor}}),
role:function(){return N().accessibilityText?"img":void 0},
"aria-label":function(){return N().accessibilityText}},_.u(_.t,{cond:function(){return N().animation},
then:function(J){return _.u(_.h$,{className:"yt-badge-shape__icon",data:J,animationName:function(){return J().animationConfig.name||""}})}}),_.u(_.t,{cond:function(){var J;
return b()&&!((J=N())==null?0:J.animation)},
then:function(){return _.u("div",{class:"yt-badge-shape__icon"},_.u(_.XQ,{data:function(){return b()}}))}}),_.u("div",{class:_.NO("yt-badge-shape__text",(y["yt-badge-shape__text--clip-text-overflow"]=function(){return N().clipTextOverflow},y["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(N().numBadgesInRow||0)>1},y))},function(){var J;
return(J=N())==null?void 0:J.text}))},"Ca");
_.Eo.idomCompat=!0;_.P$(_.Eo,"badge-shape",{props:{data:_.F5}});var gm=function(){var q=_.C.apply(this,arguments)||this;q.systemIcons=_.x("kevlar_system_icons");q.animated=_.x("animated_live_badge_icon");q.useBadgeShape=_.x("web_badge_shape_defrag");return q};
_.Y(gm,_.C);_.g=gm.prototype;_.g.addTooltips=function(){for(var q=_.ee(this.hostElement).querySelectorAll(".badge"),N=0,b;b=q[N++];){var y=this.repeatElement.itemForElement(b);b=_.ee(b);b.lastChild&&b.lastChild.is==="tp-yt-paper-tooltip"&&b.removeChild(b.lastChild);if(y=y.metadataBadgeRenderer&&y.metadataBadgeRenderer.tooltip){var J=_.$Y("tp-yt-paper-tooltip");(0,_.yb)(J).textContent=y;J.setAttribute("position","top");J.setAttribute("aria-hidden","true");b.appendChild(J)}}};
_.g.badgesChanged=function(){var q=this;_.dw().parkOrScheduleJob(function(){q.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.g.standaloneRoundedBadgeChanged=function(){var q=this.useRoundedBadge?this.useRoundedBadge:void 0;q&&(this.useRoundedBadge=q)};
_.g.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.g.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.g.computeStyle=function(q){_.x("enable_html5_teal_ad_badge")&&q==="BADGE_STYLE_TYPE_AD"&&(q="badge-style-type-ad-alternate");_.x("kevlar_ytb_live_badges")&&q==="BADGE_STYLE_TYPE_LIVE_NOW"&&(q="badge-style-type-live-now-alternate");return q?q.toLowerCase().replace(/_/g,"-"):""};
_.g.computeRole=function(q){return this.computeAriaLabel(q)?"img":"status"};
_.g.computeAriaLabel=function(q){var N;return(q==null?void 0:(N=q.accessibilityData)==null?void 0:N.label)||(q==null?void 0:q.label)};
_.g.computeBadgeShape=function(q){if(q){var N,b;var y=GGn(q.style);var J=Y0n(q.style),E=q.label,F=((N=q.accessibilityData)==null?void 0:N.label)||q.label;a:switch(q.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":N=!0;break a;default:N=!1}var R=(b=q.icon)==null?void 0:b.iconType;a:switch(q.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":q=!0;break a;default:q=!1}y={type:y,brNzRatingBadgeType:J,text:E,accessibilityText:F,
isOverlay:N,icon:R!=="PREMIUM"?R:void 0,modern:_.x("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:q}}else y={};return y};
_.g.updateComputedBadges=function(q,N,b){var y=this;(N=N?[N]:b?[b]:void 0)?this.computedBadges=N:this.computedBadges=q==null?void 0:q.filter(function(J){var E;if((E=J.metadataBadgeRenderer)==null?0:E.groups){E=!1;J=_.Z(J.metadataBadgeRenderer.groups);for(var F=J.next();!F.done;F=J.next()){F=F.value;var R=void 0;E=E||((R=y.hiddenBadgeGroups)==null?void 0:R.includes(F))}return!E}return!0})};
_.g.useFilledIcons=function(q){return _.x("kevlar_system_icons")&&(q==="AUDIO_BADGE"||q==="CHECK_CIRCLE_THICK"||q==="OFFICIAL_ARTIST_BADGE"||q==="SPONSORSHIP_STAR"||q==="PERSON_RADAR_FILLED"||q==="PERSON_RADAR")};
_.g.computeBadgeShapeStyle=function(q){return this.useBadgeShape?q==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||q==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":q==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.g.computeIcon=function(q){var N,b;q=q==null?void 0:(N=q.metadataBadgeRenderer)==null?void 0:(b=N.icon)==null?void 0:b.iconType;if(q!=="PREMIUM"&&q)return _.qo(q)};
_.g.computeStandaloneBadge=function(q){var N;q=q==null?void 0:(N=q.icon)==null?void 0:N.iconType;return q==="PREMIUM_STANDALONE"||q==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
gm.prototype.hiddenBadgeGroupsChanged=gm.prototype.hiddenBadgeGroupsChanged;gm.prototype.standaloneBadgeChanged=gm.prototype.standaloneBadgeChanged;gm.prototype.standaloneRoundedBadgeChanged=gm.prototype.standaloneRoundedBadgeChanged;gm.prototype.badgesChanged=gm.prototype.badgesChanged;_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],gm.prototype,"hidden",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],gm.prototype,"componentBehavior",void 0);
_.p([_.U(),_.P("design:type",Array)],gm.prototype,"badges",void 0);_.p([_.U(),_.P("design:type",Object)],gm.prototype,"topStandaloneBadge",void 0);_.p([_.U(),_.P("design:type",Object)],gm.prototype,"bottomStandaloneBadge",void 0);_.p([_.U(),_.P("design:type",Object)],gm.prototype,"computedBadges",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],gm.prototype,"mediumFontAdBadge",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],gm.prototype,"useRoundedBadge",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],gm.prototype,"largeFontAdBadge",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],gm.prototype,"overlayAd",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],gm.prototype,"overlayPremium",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],gm.prototype,"noDotAdBadge",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],gm.prototype,"collectionTruncate",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],gm.prototype,"isThumbnailBadge",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],gm.prototype,"wrapBadges",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Number)],gm.prototype,"numBadgesInRow",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gm.prototype,"systemIcons",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gm.prototype,"animated",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gm.prototype,"useBadgeShape",void 0);_.p([_.U({value:[]}),_.P("design:type",Array)],gm.prototype,"hiddenBadgeGroups",void 0);_.p([_.dq("#repeat"),_.P("design:type",vH)],gm.prototype,"repeatElement",void 0);_.p([_.$9("badges"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gm.prototype,"badgesChanged",null);
_.p([_.$9("useRoundedBadge"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gm.prototype,"standaloneRoundedBadgeChanged",null);_.p([_.$9("topStandaloneBadge","bottomStandaloneBadge"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gm.prototype,"standaloneBadgeChanged",null);_.p([_.$9("hiddenBadgeGroups"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gm.prototype,"hiddenBadgeGroupsChanged",null);
_.p([_.I({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],gm);
var vKo=_.oU()(gm,"ytd-badge-supported-renderer",function(){if(xUF===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);xUF=q}q=xUF;return q},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Am("kevlar_poly_si_batch_j053")?1:2});var ZV=function(){var q=_.C.apply(this,arguments)||this;q.iconType="STAR";q.standardizeIconSize=_.x("kevlar_system_icons");q.mediaHoverOverlayInitialVisibility=_.x("enable_top_landscape_image_button_command_web");q.noBottomMargin=!1;q.thumbnailObjectFit="CONTAIN";q.thumbnailFitHeight=!0;q.actionMap={"yt-mute-ad-action":"handleMuteAd"};return q};
_.Y(ZV,_.C);_.g=ZV.prototype;_.g.created=function(){this.activeView=new Y$(this.hostElement)};
_.g.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"}}}};
_.g.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",ZV.JSC$14853_DEFAULT_CLICK_LOCATION_BEHAVIOR,ZV.JSC$14853_CLICK_LOCATION_ID_MAP))};
_.g.onTap=function(q){this.onTapOrClick(q)};
_.g.onTapOrClick=function(q){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,q,!1)};
_.g.updateMediaBackgroundImage=function(){var q=this.get("data.image.thumbnail.thumbnails");q&&(q=_.Mo(q,0))&&_.Jm(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+q+")"})};
_.g.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var q=0;q<this.data.impressionEndpoints.length;q++){var N=this.data.impressionEndpoints[q];N.clickTrackingParams&&delete N.clickTrackingParams;_.tz().resolve(_.rO).resolveCommand(N,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var b;((b=this.data)==null?0:b.activeView)&&Q1(this.activeView,this.data.activeView)}};
_.g.handleMuteAd=function(){};
_.g.attached=function(){var q=this;_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ob(q.activeView)})};
_.g.detached=function(){_.x("stop_av_measurement_on_detach")&&Ob(this.activeView)};
_.$H.Object.defineProperties(ZV.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.titleText)return"";var N;return _.FE("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((N=this.data)==null?void 0:N.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.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 q;return!((q=this.data)==null||!q.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"}}});
ZV.prototype.onTap=ZV.prototype.onTap;ZV.prototype.dataChanged=ZV.prototype.dataChanged;
ZV.JSC$14853_CLICK_LOCATION_ID_MAP=_.x("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"]]);
ZV.JSC$14853_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.x("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"}];_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ZV.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ZV.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.N8),_.P("design:type",Object)],ZV.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],ZV.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.Xi.YtSparklesClickLocationBehavior),_.P("design:type",Object)],ZV.prototype,"ytSparklesClickLocationBehavior",void 0);_.p([_.O([_.Dc.YtActionHandlerBehavior]),_.P("design:type",Object)],ZV.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ZV.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Object)],ZV.prototype,"clickCommand",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.GC}),_.P("design:type",Boolean)],ZV.prototype,"miniMode",void 0);_.p([_.U(),_.P("design:type",String)],ZV.prototype,"iconType",void 0);_.p([_.l("data.titleText"),_.P("design:type",String),_.P("design:paramtypes",[])],ZV.prototype,"titleAriaLabel",null);_.p([_.l("data.rating"),_.P("design:type",Object),_.P("design:paramtypes",[])],ZV.prototype,"getRating",null);
_.p([_.l("data.price"),_.P("design:type",Object),_.P("design:paramtypes",[])],ZV.prototype,"getPrice",null);_.p([_.l("data.thirdLine"),_.P("design:type",Object),_.P("design:paramtypes",[])],ZV.prototype,"getThirdLine",null);_.p([_.l("data.fourthLine"),_.P("design:type",Object),_.P("design:paramtypes",[])],ZV.prototype,"getFourthLine",null);_.p([_.l("data.fifthLine"),_.P("design:type",Object),_.P("design:paramtypes",[])],ZV.prototype,"getFifthLine",null);
_.p([_.l("getRating"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ZV.prototype,"computeRatingHidden",null);_.p([_.l("getPrice"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ZV.prototype,"computePriceHidden",null);_.p([_.l("getThirdLine"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ZV.prototype,"computeThirdLineHidden",null);_.p([_.l("getFourthLine"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ZV.prototype,"computeFourthLineHidden",null);
_.p([_.l("getFifthLine"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ZV.prototype,"computeFifthLineHidden",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.energyIcon"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ZV.prototype,"hasEnergyIcon",null);_.p([_.l("computePriceHidden","computeRatingHidden"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ZV.prototype,"computeSecondaryTextHidden",null);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ZV.prototype,"standardizeIconSize",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ZV.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ZV.prototype,"noBottomMargin",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data.layout"),_.P("design:type",String),_.P("design:paramtypes",[])],ZV.prototype,"layout",null);
_.p([_.l("data.layout"),_.P("design:type",Object),_.P("design:paramtypes",[])],ZV.prototype,"mediaThumbnailWidth",null);_.p([_.l("layout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ZV.prototype,"useRoundedBadge",null);_.p([_.U(),_.P("design:type",String)],ZV.prototype,"thumbnailObjectFit",void 0);_.p([_.U(),_.P("design:type",Object)],ZV.prototype,"thumbnailFitHeight",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ZV.prototype,"dataChanged",null);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ZV.prototype,"onTap",null);_.p([_.I({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],ZV);
_.a(ZV,"ytd-display-ad-renderer",function(){if(jaq!==void 0)return jaq;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return jaq=q},{mode:1});var GRl;var YTj;var QaT;var OBu=new Map;var Oa1=!1;var FV=function(){var q=_.C.apply(this,arguments)||this;q.DEFAULT_TOOLTIP_OFFSET="10";q.TOOLTIP_OFFSET_NO_BANNER="-8";q.badges=null;q.noEndpoints=!1;q.wrapText=!1;q.forceVerified=!1;q.tooltipPosition="top";q.compactStyle=!1;q.height=0;q.lineHeight=0;return q};
_.Y(FV,_.C);_.g=FV.prototype;_.g.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.g.attached=function(){var q=this;this.observer=new MutationObserver(function(N,b){q.handleResized();b.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.g.detached=function(){this.observer&&this.observer.disconnect()};
_.g.logTooltipEvent=function(){_.x("kevlar_wiz_tooltip_event_killswitch")||Oa1||(_.wrd("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),Oa1=!0)};
_.g.handleWindowResized=function(){this.handleResized()};
_.g.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")))};
_.g.onHeightChanged=function(){if(this.verified){var q=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.M7("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=q:this.textContainerEl.style.marginRight=q}};
_.g.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.M7("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.g.handleResized=function(){var q=this;this.verified&&_.pY.addLowPriorityJob(function(){q.fitBackgroundToText();var N=getComputedStyle(q.hostElement).lineHeight;N&&(N=N.match(/\d+/))&&N.length&&(q.lineHeight=Number(N[0]));q.height=q.lineHeight&&!q.wrapText?q.lineHeight:q.textEl.offsetHeight})};
_.g.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var q=document.createRange(),N=_.ee(this.textEl).children;N.length>0?q.selectNodeContents(N[0]):q.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(q.getBoundingClientRect().width)+"px"}};
_.g.computeChannelBadgeStyle=function(q){var N;if((q==null?0:(N=q.runs)==null?0:N.length)&&q.runs[0].textColor)return"--ytd-badge-icon-color:"+_.GM(q.runs[0].textColor)+";"};
_.$H.Object.defineProperties(FV.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"?_.nD(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var q=this.get("badges.0.metadataBadgeRenderer.tooltip");if(q)return q}return _.ao(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
FV.prototype.onLineHeightChanged=FV.prototype.onLineHeightChanged;FV.prototype.onHeightChanged=FV.prototype.onHeightChanged;FV.prototype.onChannelNameChanged=FV.prototype.onChannelNameChanged;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],FV.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],FV.prototype,"badges",void 0);_.p([_.U(),_.P("design:type",Object)],FV.prototype,"channelName",void 0);
_.p([_.U(),_.P("design:type",Object)],FV.prototype,"noEndpoints",void 0);_.p([_.U(),_.P("design:type",Object)],FV.prototype,"wrapText",void 0);_.p([_.U(),_.P("design:type",Object)],FV.prototype,"forceVerified",void 0);_.p([_.U(),_.P("design:type",Object)],FV.prototype,"tooltipPosition",void 0);_.p([_.U(),_.P("design:type",String)],FV.prototype,"tooltip",void 0);_.p([_.U(),_.P("design:type",Boolean)],FV.prototype,"hasChannelArt",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],FV.prototype,"compactStyle",void 0);_.p([_.dq("#text-container"),_.P("design:type",HTMLElement)],FV.prototype,"textContainerEl",void 0);_.p([_.dq("#text"),_.P("design:type",Object)],FV.prototype,"textEl",void 0);_.p([_.dq("#verified-tooltip"),_.P("design:type",HTMLElement)],FV.prototype,"verifiedTooltip",void 0);_.p([_.U(),_.P("design:type",Object)],FV.prototype,"height",void 0);
_.p([_.U(),_.P("design:type",Object)],FV.prototype,"lineHeight",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("badges","forceVerified"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],FV.prototype,"verified",null);_.p([_.l("badges","verified"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],FV.prototype,"hideBadges",null);_.p([_.l("channelName"),_.P("design:type",Object),_.P("design:paramtypes",[])],FV.prototype,"formattedName",null);
_.p([_.l("badges","verified","formattedName"),_.P("design:type",String),_.P("design:paramtypes",[])],FV.prototype,"tooltipText",null);_.p([_.l("hasChannelArt"),_.P("design:type",String),_.P("design:paramtypes",[])],FV.prototype,"tooltipOffset",null);_.p([_.FY("channelName"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FV.prototype,"onChannelNameChanged",null);
_.p([_.FY("height"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FV.prototype,"onHeightChanged",null);_.p([_.FY("lineHeight","height"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FV.prototype,"onLineHeightChanged",null);_.p([_.I({is:"ytd-channel-name",disableElementRegistration:!0})],FV);
_.a(FV,"ytd-channel-name",function(){if(QaT!==void 0)return QaT;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return QaT=q},{mode:_.Am("kevlar_poly_si_batch_j036")?1:2});var Rr=function(){var q=_.C.apply(this,arguments)||this;q.standardizeIconSize=_.x("kevlar_system_icons");return q};
_.Y(Rr,_.C);Rr.prototype.basicPaletteChanged=function(){var q;(q=this.data.color)!=null&&q.basicColorPaletteData&&_.V0(this.hostElement,this.data.color.basicColorPaletteData)};
Rr.prototype.useFilledIcons=function(q){return _.x("kevlar_system_icons")&&(q==="CHECK_CIRCLE_THICK"||q==="OFFICIAL_ARTIST_BADGE")};
_.$H.Object.defineProperties(Rr.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return this.data.authorCreator||((q=this.data)==null?void 0:(N=q.color)==null?void 0:(b=N.basicColorPaletteData)==null?void 0:b.backgroundColor)}}});
Rr.prototype.basicPaletteChanged=Rr.prototype.basicPaletteChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Rr.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Rr.prototype,"standardizeIconSize",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data.authorUnifiedVerified"),_.P("design:type",Object),_.P("design:paramtypes",[])],Rr.prototype,"verified",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Rr.prototype,"creator",null);_.p([_.FY("data.color.basicColorPaletteData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Rr.prototype,"basicPaletteChanged",null);_.p([_.I({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Rr);
_.a(Rr,"ytd-author-comment-badge-renderer",function(){if(YTj!==void 0)return YTj;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return YTj=q},{mode:1});var wlJ;var dm=function(){return _.C.apply(this,arguments)||this};
_.Y(dm,_.C);dm.prototype.computeThumbnailWidth=function(q){if(q==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],dm.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],dm.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.icon)"}),_.P("design:type",String)],dm.prototype,"icon",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],dm.prototype,"surface",void 0);
_.p([_.U({reflectToAttribute:!0,value:_.x("enable_shrink_image_size_on_web_posts_singleton")}),_.P("design:type",Boolean)],dm.prototype,"searchSxsUx",void 0);_.p([_.U({reflectToAttribute:!0,value:_.x("enable_community_page_on_desktop")}),_.P("design:type",Boolean)],dm.prototype,"useSmallerPostImageAttachments",void 0);_.p([_.I({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],dm);
_.a(dm,"ytd-backstage-image-renderer",function(){if(wlJ!==void 0)return wlJ;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return wlJ=q},{mode:1});var iax;var cF=function(){var q=_.C.apply(this,arguments)||this;q.isLoading=!1;q.selectedItemIndex=-1;return q};
_.Y(cF,_.C);_.g=cF.prototype;_.g.computeIsChannelOwner=function(q){if(!q)return!0;q=q[0];return!(q&&(q.signinEndpoint||q.selectServiceEndpoint))};
_.g.computeIsImagePoll=function(q){return(q==null?void 0:q.type)==="POLL_TYPE_IMAGE"};
_.g.computeIsTotalVotesDisabled=function(q){return!(q==null?0:q.totalVotes)};
_.g.thumbnailSrc=function(q){var N,b,y,J;return(q==null?0:(N=q.thumbnails)==null?0:(b=N[0])==null?0:b.url)?_.pc((y=q.thumbnails)==null?void 0:(J=y[0])==null?void 0:J.url):void 0};
_.g.progressWidth=function(q){return"width:"+(q?q*100:0)+"%;"};
_.g.textAreaWidth=function(q){return this.isImagePoll?null:"width:"+(q?q*100:0)+"%;"};
_.g.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.g.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var q=this.data.choices,N=0;N<q.length;N++)if(q[N].selected){this.selectedItemIndex=N;break}};
_.g.onPopupClosed=function(q,N){q=Number(this.pollVotes.selected);N.confirmed&&(this.selectChoice(q,!1),_.By(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.g.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.g.onYtCommentPollRevert=function(q,N){N&&(this.selectChoice(N.selectedChoiceIndex,!0),this.set("data.totalVotes",N.totalVotes))};
_.g.onYtServiceRequestSent=function(q,N){if(N.actions)for(q=0;q<N.actions.length;q++){var b=N.actions[q];_.v(b,TI)&&this.set("data.totalVotes",_.v(b,TI).totalVotes)}};
_.g.onYtServiceRequestCompleted=function(q){var N=this.get("detail.data.actionResults.0.feedback",q);q=this.get("detail.data.actionResults.0.status",q);if(N==="FEEDBACK_DESELECT"||N==="FEEDBACK_SELECT")this.isLoading=!1,q==="STATUS_FAILED"?_.e2(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.g.getEndpoint=function(q,N){return N===q?this.data.choices[N].deselectServiceEndpoint||null:this.data.choices[q].selectServiceEndpoint||null};
_.g.selectChoice=function(q,N){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var b=0;b<this.data.choices.length;b++){var y;if(q===this.selectedItemIndex){var J=!1;var E=y=null}else y=(J=b===q)?this.data.choices[b].voteRatioIfSelected:this.data.choices[b].voteRatioIfNotSelected,E=J?this.data.choices[b].votePercentageIfSelected:this.data.choices[b].votePercentageIfNotSelected;this.set("data.choices."+b+".voteRatio",y);
this.set("data.choices."+b+".votePercentage",E);this.set("data.choices."+b+".selected",J)}N||(this.isLoading=!0,(N=this.getEndpoint(q,this.selectedItemIndex))&&_.tz().resolve(_.rO).resolveCommand(N,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===q?-1:q};
_.$H.Object.defineProperties(cF.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
cF.prototype.onYtServiceRequestCompleted=cF.prototype.onYtServiceRequestCompleted;cF.prototype.onYtServiceRequestSent=cF.prototype.onYtServiceRequestSent;cF.prototype.onYtCommentPollRevert=cF.prototype.onYtCommentPollRevert;cF.prototype.onPopupClosed=cF.prototype.onPopupClosed;cF.prototype.dataChanged=cF.prototype.dataChanged;_.p([_.O(_.F6),_.P("design:type",Object)],cF.prototype,"paperItemBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.r7),_.P("design:type",Object)],cF.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],cF.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],cF.prototype,"isLoading",void 0);_.p([_.U({computed:"computeIsChannelOwner(data.choices)"}),_.P("design:type",Boolean)],cF.prototype,"isChannelOwner",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.P("design:type",Boolean)],cF.prototype,"isImagePoll",void 0);_.p([_.U({computed:"computeIsTotalVotesDisabled(data)"}),_.P("design:type",Boolean)],cF.prototype,"isTotalVotesDisabled",void 0);_.p([_.U(),_.P("design:type",Object)],cF.prototype,"previousPollInfo",void 0);_.p([_.U(),_.P("design:type",Object)],cF.prototype,"selectedItemIndex",void 0);_.p([_.dq("#poll-votes"),_.P("design:type",Object)],cF.prototype,"pollVotes",void 0);
_.p([_.l("isChannelOwner"),_.P("design:type",Object),_.P("design:paramtypes",[])],cF.prototype,"endpointStyle",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cF.prototype,"dataChanged",null);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],cF.prototype,"onPopupClosed",null);
_.p([_.ZP("yt-comment-poll-revert"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],cF.prototype,"onYtCommentPollRevert",null);_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],cF.prototype,"onYtServiceRequestSent",null);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],cF.prototype,"onYtServiceRequestCompleted",null);_.p([_.I({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],cF);
_.a(cF,"ytd-backstage-poll-renderer",function(){if(iax!==void 0)return iax;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return iax=q},{mode:2});var lKx;var Kc1={autoplay:!1,loop:!1},DU4={simpleText:""},uD=function(){var q=_.C.apply(this,arguments)||this;q.isLoading=!1;q.usesPanelLockup=!1;q.selectedItemIndex=-1;q.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},Kc1,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});q.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},Kc1,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});q.correctnessAnimationProps=[];q.correctnessAnimationRefs=[];return q};
_.Y(uD,_.C);_.g=uD.prototype;_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.g.computeIsChannelOwner=function(q){if(!q)return!0;q=q[0];return!(q&&(q.signinEndpoint||q.selectServiceEndpoint))};
_.g.computeIsTotalVotesDisabled=function(q){return!(q==null?0:q.totalVotes)};
_.g.computeIsImageQuiz=function(q){return(q==null?void 0:q.type)==="POLL_TYPE_IMAGE"};
_.g.onExplanationChanged=function(){this.expander.reset()};
_.g.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var q=this.data.choices;if(q){this.maybeInitializeQuizLotties(q);for(var N=0;N<q.length;N++)if(q[N].isSelected||this.isChannelOwner&&q[N].isCorrect){this.selectedItemIndex=N;return}this.selectedItemIndex=-1}}};
_.g.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var q=this.selectedItemIndex,N=Number(this.quizVotes.selected);this.selectChoice(N);this.sendVoteAction(N,q);this.quizVotes.selected=-1;var b;q=!((b=this.data)==null?0:b.enableAnimation);this.maybePlayAnswerAnimations(q)}};
_.g.onYtCommentPollRevert=function(q,N){N&&(this.selectChoice(N.selectedChoiceIndex),this.set("data.totalVotes",N.totalVotes))};
_.g.onYtServiceRequestSent=function(q,N){if(N.actions)for(q=_.Z(N.actions),N=q.next();!N.done;N=q.next())(N=_.v(N.value,TI))&&this.set("data.totalVotes",N.totalVotes)};
_.g.onYtServiceRequestCompleted=function(q){var N=this.get("detail.data.actionResults.0.feedback",q);q=this.get("detail.data.actionResults.0.status",q);if(N==="FEEDBACK_DESELECT"||N==="FEEDBACK_SELECT")this.isLoading=!1,q==="STATUS_FAILED"?_.e2(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.g.getAnimationPropsForChoiceIndex=function(q,N){return N[q]};
_.g.maybePlayAnswerAnimations=function(q){q=q===void 0?!1:q;var N;if((N=this.data)!=null&&N.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){N=_.Z(this.correctnessAnimationRefs);for(var b=N.next();!b.done;b=N.next()){var y=void 0,J=void 0;(y=b.value)==null||(J=y.lottieEl)==null||J.stop()}if(!(this.selectedItemIndex<0)){N=0;q&&(N=this.isCorrect?37:25);var E,F;(E=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(F=E.lottieEl)==null||F.goToAndPlay(q?N:0,!0);if(!(this.isCorrect||
(E=this.data.choices.findIndex(function(m){return m.isCorrect}),E<0))){var R,c;
(c=(R=this.correctnessAnimationRefs[E])==null?void 0:R.lottieEl)==null||c.goToAndPlay(37,!0);var z;R=(z=this.fadeContainers)==null?void 0:z.item(E);!q&&R&&this.fadeIn(R)}}}};
_.g.thumbnailSrc=function(q){var N,b,y,J;return(q==null?0:(N=q.thumbnails)==null?0:(b=N[0])==null?0:b.url)?_.pc((y=q.thumbnails)==null?void 0:(J=y[0])==null?void 0:J.url):void 0};
_.g.a11yVotedText=function(q,N){var b,y,J=((b=this.data)==null?void 0:(y=b.correctVotedText)==null?void 0:y.simpleText)||"",E,F;b=((E=this.data)==null?void 0:(F=E.votedText)==null?void 0:F.simpleText)||"";if(!N)return"";var R,c;if((R=this.data)==null?0:(c=R.choices)==null?0:c[q].isCorrect)return J;var z,m;return((z=this.data)==null?0:(m=z.choices)==null?0:m[q].isSelected)?b:""};
_.g.getEndpoint=function(q,N){return N===q?this.data.choices[q].deselectServiceEndpoint||null:this.data.choices[q].selectServiceEndpoint||null};
_.g.sendVoteAction=function(q,N){if(q=this.getEndpoint(q,N))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(q)};
_.g.selectChoice=function(q){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var N=0;N<this.data.choices.length;N++)this.set("data.choices."+N+".isSelected",q===this.selectedItemIndex?!1:N===q);this.selectedItemIndex=this.selectedItemIndex===q?-1:q};
_.g.maybeInitializeQuizLotties=function(q){var N=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=q.map(function(b){return{animationConfig:b.isCorrect?N.baseCorrectLottiePlayerAnimationConfig:N.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){N.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(b){return b.animationRef||{}})};
_.g.fadeIn=function(q){q.classList.add("fade-in");_.B$(_.pY,function(){q.classList.remove("fade-in")},900)};
_.$H.Object.defineProperties(uD.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.x("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.ao(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 q,N;return((q=this.data)==null?void 0:(N=q.choices)==null?void 0:N.some(function(b){return b.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null||!q.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?DU4:this.data.choices[this.selectedItemIndex].explanation||DU4}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null||!q.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
uD.prototype.onYtServiceRequestCompleted=uD.prototype.onYtServiceRequestCompleted;uD.prototype.onYtServiceRequestSent=uD.prototype.onYtServiceRequestSent;uD.prototype.onYtCommentPollRevert=uD.prototype.onYtCommentPollRevert;uD.prototype.dataChanged=uD.prototype.dataChanged;uD.prototype.onExplanationChanged=uD.prototype.onExplanationChanged;_.p([_.O(_.F6),_.P("design:type",Object)],uD.prototype,"paperItemBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],uD.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.zE.YtTaskEmitterBehavior),_.P("design:type",Object)],uD.prototype,"ytTaskEmitterBehavior",void 0);_.p([_.O(_.r7),_.P("design:type",Object)],uD.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],uD.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Object)],uD.prototype,"isLoading",void 0);_.p([_.U(),_.P("design:type",Object)],uD.prototype,"usesPanelLockup",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.P("design:type",Boolean)],uD.prototype,"isChannelOwner",void 0);_.p([_.U({computed:"computeIsTotalVotesDisabled(data)"}),_.P("design:type",Boolean)],uD.prototype,"isTotalVotesDisabled",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.P("design:type",Boolean)],uD.prototype,"isImageQuiz",void 0);_.p([_.U(),_.P("design:type",Object)],uD.prototype,"previousQuizInfo",void 0);_.p([_.U(),_.P("design:type",Object)],uD.prototype,"selectedItemIndex",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data","usesPanelLockup"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],uD.prototype,"shouldUseModernUi",null);
_.p([_.cH(".fade-container"),_.P("design:type",Object)],uD.prototype,"fadeContainers",void 0);_.p([_.U(),_.P("design:type",Array)],uD.prototype,"correctnessAnimationProps",void 0);_.p([_.l("explanation","showCorrectAnswer"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],uD.prototype,"showExplanation",null);_.p([_.l("isChannelOwner","isAttempted"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],uD.prototype,"showCorrectAnswer",null);
_.p([_.l("isChannelOwner","isAttempted","data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],uD.prototype,"isQuizAnsweringDisabled",null);_.p([_.l("isQuizAnsweringDisabled"),_.P("design:type",Object),_.P("design:paramtypes",[])],uD.prototype,"endpointStyle",null);_.p([_.l("data","selectedItemIndex"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],uD.prototype,"isAttempted",null);
_.p([_.l("data","selectedItemIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],uD.prototype,"explanation",null);_.p([_.l("data","selectedItemIndex"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],uD.prototype,"isCorrect",null);_.p([_.dq("ytd-expander"),_.P("design:type",Object)],uD.prototype,"expander",void 0);_.p([_.dq("#quiz-votes"),_.P("design:type",Object)],uD.prototype,"quizVotes",void 0);
_.p([_.FY("explanation"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uD.prototype,"onExplanationChanged",null);_.p([_.FY("data","isChannelOwner"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uD.prototype,"dataChanged",null);_.p([_.ZP("yt-comment-quiz-revert"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],uD.prototype,"onYtCommentPollRevert",null);
_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],uD.prototype,"onYtServiceRequestSent",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],uD.prototype,"onYtServiceRequestCompleted",null);_.p([_.I({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],uD);
_.a(uD,"ytd-backstage-quiz-renderer",function(){if(lKx!==void 0)return lKx;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return lKx=q},{mode:1});var h6T;var zQ=function(){return _.C.apply(this,arguments)||this};
_.Y(zQ,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],zQ.prototype,"data",void 0);_.p([_.I({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],zQ);
_.a(zQ,"ytd-post-uploaded-video-renderer",function(){if(h6T!==void 0)return h6T;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return h6T=q},{mode:1});var kRM;var $t=function(){return _.C.apply(this,arguments)||this};
_.Y($t,_.C);$t.prototype.useFilledIcons=function(q){return q==="SPONSORSHIP_STAR"};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],$t.prototype,"data",void 0);_.p([_.I({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],$t);
var UUo=_.oU()($t,"ytd-sponsors-only-badge-renderer",function(){if(kRM===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);kRM=q}q=kRM;return q},{allowedProps:["data"],
mode:1});var fKv;var td=function(){return _.C.apply(this,arguments)||this};
_.Y(td,_.C);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],td.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],td.prototype,"data",void 0);_.p([_.I({is:"ytd-child-video-renderer",disableElementRegistration:!0})],td);
_.a(td,"ytd-child-video-renderer",function(){if(fKv!==void 0)return fKv;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return fKv=q},{mode:1});var COF;var IKE;var mP=function(){var q=_.C.apply(this,arguments)||this;q.size=0;q.fallbackImageSize={height:void 0,width:9999};q.webModernCollections=!1;return q};
_.Y(mP,_.C);_.g=mP.prototype;_.g.computeBlurredImageSize=function(q){return q?{height:q*2,width:q*2}:this.fallbackImageSize};
_.g.computeImageSize=function(q){return q?{height:q,width:q}:this.fallbackImageSize};
_.g.computeObjectFit=function(q){return q?"FILL":"CONTAIN"};
_.g.computePreserve=function(q){return q?!0:!1};
_.g.setBackground=function(){var q,N;if((q=this.data)==null?0:(N=q.thumbnail)==null?0:N.sampledThumbnailColor)q=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+q.red+","+q.green+","+q.blue+",1)"};
mP.prototype.setBackground=mP.prototype.setBackground;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],mP.prototype,"watchFeedThumbnail",void 0);_.p([_.U(),_.P("design:type",Object)],mP.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],mP.prototype,"size",void 0);
_.p([_.U({computed:"computeBlurredImageSize(size)"}),_.P("design:type",Object)],mP.prototype,"blurredImageSize",void 0);_.p([_.U({computed:"computeImageSize(size)"}),_.P("design:type",Object)],mP.prototype,"imageSize",void 0);_.p([_.U({computed:"computePreserve(size)"}),_.P("design:type",String)],mP.prototype,"preserve",void 0);_.p([_.U({computed:"computeObjectFit(size)"}),_.P("design:type",String)],mP.prototype,"objectFit",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],mP.prototype,"webModernCollections",void 0);_.p([_.FY("data.thumbnail.sampledThumbnailColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mP.prototype,"setBackground",null);_.p([_.I({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],mP);
_.a(mP,"ytd-playlist-custom-thumbnail-renderer",function(){if(IKE!==void 0)return IKE;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return IKE=q},{mode:1});var T6q;var rm=function(){return _.C.apply(this,arguments)||this};
_.Y(rm,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],rm.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Number)],rm.prototype,"width",void 0);_.p([_.I({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],rm);
_.a(rm,"ytd-playlist-video-thumbnail-renderer",function(){if(T6q!==void 0)return T6q;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return T6q=q},{mode:1});var sa4;var XV=function(){return _.C.apply(this,arguments)||this};
_.Y(XV,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],XV.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Number)],XV.prototype,"width",void 0);_.p([_.I({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],XV);
_.a(XV,"ytd-show-custom-thumbnail-renderer",function(){if(sa4!==void 0)return sa4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return sa4=q},{mode:1});var nKv;var V$=function(){return _.C.apply(this,arguments)||this};
_.Y(V$,_.C);V$.prototype.useFilledIcons=function(q){return q==="MUSIC"||q==="COURSE"};
V$.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=Qk(this.overlayColor,"0.8");else if(this.overlayColor){var q=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+q.red+","+q.green+","+q.blue+",0.8)"}};
_.$H.Object.defineProperties(V$.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)}}});
V$.prototype.overlayColorChanged=V$.prototype.overlayColorChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],V$.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],V$.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],V$.prototype,"overlayColor",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data.icon","data.text"),_.P("design:type",Object),_.P("design:paramtypes",[])],V$.prototype,"overlayStyle",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data.icon","data.text"),_.P("design:type",Object),_.P("design:paramtypes",[])],V$.prototype,"overlayTextStyle",null);_.p([_.FY("overlayColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],V$.prototype,"overlayColorChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],V$);
_.a(V$,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(nKv!==void 0)return nKv;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return nKv=q},{mode:1});var aKj;var jY=function(){var q=_.C.apply(this,arguments)||this;q.active=!1;return q};
_.Y(jY,_.C);jY.prototype.computeIsSpinnerHidden=function(q){return(q==null?void 0:q.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
jY.prototype.computeOverlayIcon=function(q){return(q==null?void 0:q.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(q==null?void 0:q.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],jY.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],jY.prototype,"active",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],jY);
_.a(jY,"ytd-thumbnail-overlay-downloading-renderer",function(){if(aKj!==void 0)return aKj;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return aKj=q},{mode:1});var STx;var xt=function(){return _.C.apply(this,arguments)||this};
_.Y(xt,_.C);_.$H.Object.defineProperties(xt.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],xt.prototype,"data",void 0);_.p([_.l("data.text"),_.P("design:type",Object),_.P("design:paramtypes",[])],xt.prototype,"text",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],xt);
_.a(xt,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(STx!==void 0)return STx;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return STx=q},{mode:1});var Wcx,Lc1=function(){if(Wcx!==void 0)return Wcx;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Wcx=q};var vF=function(){return _.C.apply(this,arguments)||this};
_.Y(vF,_.C);_.$H.Object.defineProperties(vF,{template:{configurable:!0,enumerable:!0,get:function(){return Lc1()}}});
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],vF.prototype,"animateEqualizer",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],vF);_.oU()(vF,"ytd-thumbnail-overlay-equalizer",function(){return Lc1()},{allowedProps:["animateEqualizer"],
mode:1});var plv;var GQ=function(){var q=_.C.apply(this,arguments)||this;q.nowPlayingBadge=_.x("web_now_playing_badge");q.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return q};
_.Y(GQ,_.C);GQ.prototype.activeChanged=function(){var q=this;_.x("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.ut(this,function(){_.e2(q.hostElement,"yt-playlist-lockup-now-playing-active",q)})};
GQ.prototype.onMiniplayerPlayStateChanged=function(q){var N,b=(N=_.v(_.sM().currentEndpoint,_.nx))==null?void 0:N.videoId;this.isVideoPlaying=q&&(_.x("web_limit_now_playing_animation_killswitch")||this.videoId===b)};
GQ.prototype.activeChanged=GQ.prototype.activeChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],GQ.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],GQ.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],GQ.prototype,"isVideoPlaying",void 0);_.p([_.U(),_.P("design:type",String)],GQ.prototype,"videoId",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],GQ.prototype,"equalizerOnly",void 0);_.p([_.U(),_.P("design:type",Boolean)],GQ.prototype,"isActive",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],GQ.prototype,"nowPlayingBadge",void 0);_.p([_.FY("isActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],GQ.prototype,"activeChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],GQ);
_.a(GQ,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(plv!==void 0)return plv;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return plv=q},{mode:1});var PO1;var Yt=function(){return _.C.apply(this,arguments)||this};
_.Y(Yt,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Yt.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Yt.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Yt);
_.a(Yt,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(PO1!==void 0)return PO1;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return PO1=q},{mode:_.Am("kevlar_poly_si_batch_j025")?1:2});var Mtq;var Q$=function(){return _.C.apply(this,arguments)||this};
_.Y(Q$,_.C);Q$.prototype.onDurationChanged=function(){var q,N;_.ee(this.hostElement).querySelector("#progress").style.width=((N=(q=this.data)==null?void 0:q.percentDurationWatched)!=null?N:0)+"%"};
Q$.prototype.onDurationChanged=Q$.prototype.onDurationChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Q$.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Q$.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Q$.prototype,"isLive",void 0);_.p([_.FY("data.percentDurationWatched"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Q$.prototype,"onDurationChanged",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],Q$);
_.a(Q$,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(Mtq!==void 0)return Mtq;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Mtq=q},{mode:1});var oKv;var Oo=function(){var q=_.C.apply(this,arguments)||this;q.bottomPanel=!1;q.richGridOverlay=!1;q.watchFeedOverlay=!1;q.isCompact=!1;return q};
_.Y(Oo,_.C);Oo.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.$H.Object.defineProperties(Oo.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.data)==null?void 0:(N=q.icon)==null?void 0:N.iconType)==="PLAY_ALL"&&_.x("kevlar_system_icons")}}});
Oo.prototype.widthChanged=Oo.prototype.widthChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Oo.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Number)],Oo.prototype,"width",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Oo.prototype,"bottomPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Oo.prototype,"richGridOverlay",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Oo.prototype,"watchFeedOverlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Oo.prototype,"isCompact",void 0);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Oo.prototype,"isIconFilled",null);_.p([_.FY("width","watchFeedOverlay"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Oo.prototype,"widthChanged",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Oo);
_.a(Oo,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(oKv!==void 0)return oKv;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return oKv=q},{mode:1});var A6F;var e6v=["CLIP","SHORTS"],wm=function(){var q=_.C.apply(this,arguments)||this;q.animated=_.x("animated_live_badge_icon");q.hasIcon=!1;q.updateTimerIntervalId=0;q.timeSinceLive=0;return q};
_.Y(wm,_.C);_.g=wm.prototype;_.g.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.g.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.g.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.g.hasIconOrText=function(){var q,N;return!!(((q=this.data)==null?0:q.icon)||((N=this.data)==null?0:N.text))};
_.g.initializeLiveBadgeTimer=function(){var q=this,N,b=(N=this.liveBadgeData)==null?void 0:N.startTimestampSec;if(b&&this.canShowLiveBadgeTimer()){var y;N=Number((y=this.liveBadgeData)==null?void 0:y.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(b);this.updateTimerIntervalId=_.QX(function(){q.canShowLiveBadgeTimer()?q.timeSinceLive++:(q.timeSinceLive=0,window.clearInterval(q.updateTimerIntervalId))},N)}else this.timeSinceLive=0};
_.g.canShowLiveBadgeTimer=function(){var q=Date.now(),N,b;return q<(Number((N=this.liveBadgeData)==null?void 0:N.endTimestampSec)-1)*1E3&&q>Number((b=this.liveBadgeData)==null?void 0:b.startTimestampSec)*1E3};
_.$H.Object.defineProperties(wm.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.iBd(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 q;return(q=this.data)==null?void 0:q.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 e6v.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
wm.prototype.initializeLiveBadgeTimer=wm.prototype.initializeLiveBadgeTimer;wm.prototype.dataChanged=wm.prototype.dataChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],wm.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],wm.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.icon)"}),_.P("design:type",String)],wm.prototype,"icon",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],wm.prototype,"animated",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.P("design:type",Boolean)],wm.prototype,"hideTimeStatus",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],wm.prototype,"hasIcon",void 0);_.p([_.U(),_.P("design:type",Object)],wm.prototype,"timeSinceLive",void 0);_.p([_.l("data","timeSinceLive"),_.P("design:type",Object),_.P("design:paramtypes",[])],wm.prototype,"badgeShapeData",null);
_.p([_.l("data","overlayType"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],wm.prototype,"hideBadgeShape",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wm.prototype,"dataChanged",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.style"),_.P("design:type",Object),_.P("design:paramtypes",[])],wm.prototype,"overlayStyle",null);
_.p([_.l("data.liveBadgeData"),_.P("design:type",Object),_.P("design:paramtypes",[])],wm.prototype,"liveBadgeData",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.type"),_.P("design:type",Object),_.P("design:paramtypes",[])],wm.prototype,"overlayType",null);_.p([_.l("overlayType","overlayStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],wm.prototype,"useFilledIcon",null);
_.p([_.$9("liveBadgeData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wm.prototype,"initializeLiveBadgeTimer",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],wm);
_.a(wm,"ytd-thumbnail-overlay-time-status-renderer",function(){if(A6F!==void 0)return A6F;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return A6F=q},{mode:_.Am("kevlar_poly_si_batch_j035")?1:2});var B61;var iD=function(){return _.C.apply(this,arguments)||this};
_.Y(iD,_.C);iD.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"}}}}};
iD.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(q){if(this.hasPlaybackProgressBar)return{percentDurationWatched:q.percentDurationWatched}};
iD.prototype.computeHasPlaybackProgressBar=function(q){return!!q.percentDurationWatched&&q.percentDurationWatched>0};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],iD.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],iD.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.P("design:type",Boolean)],iD.prototype,"hasPlaybackProgressBar",void 0);
_.p([_.I({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],iD);
_.a(iD,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(B61!==void 0)return B61;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return B61=q},{mode:1});var HaT;var q3R=_.n(function(q){var N=q.data;var b=q.children;var y=function(){return!!N().doubleStack},J=function(){return!!N().includeStackHeight};
return _.u("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!N().experimentEnabled}},_.u(_.t,{cond:N,
then:function(){var E={};return _.u(_.rV,null,_.u(_.t,{cond:J,then:function(){var F={};return _.u("div",{class:_.NO("ytCollectionsStackSpacer",(F.ytCollectionsStackSpacerDoubleStack=y,F))})}}),_.u("div",{class:_.NO((E.ytCollectionsStackRelativeStack=J,E))},_.u(_.t,{cond:y,
then:function(){var F={};return _.u("div",{class:_.NO("ytCollectionsStackCollectionStack2",function(){return N().customClassName2ndStack},(F.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return N().enableResponsiveMode},F)),
style:_.ZU({"background-color":function(){return KFA(N())}})})}}),_.u("div",{class:_.NO("ytCollectionsStackCollectionStack1",function(){return N().customClassName1stStack},function(){return l9e(N().thumbnailSize?N().thumbnailSize:"medium")}),
style:_.ZU({"background-color":function(){return KFA(N())}})}),b))}}))},"Da");_.P$(q3R,"yt-collections-stack",{props:{data:_.F5}});var lD=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};q.webModernCollections=!1;q.isSearch=!1;q.isDoubleStack=!1;q.thumbnailSize="medium";return q};
_.Y(lD,_.C);_.g=lD.prototype;
_.g.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]]"}}}}}};
_.g.getThumbnailDetails=function(q){if(q!=null&&q.thumbnailRenderer){var N=q.thumbnailRenderer,b;if((b=N.playlistVideoThumbnailRenderer)==null?0:b.thumbnail)return N.playlistVideoThumbnailRenderer.thumbnail;var y;if((y=N.playlistCustomThumbnailRenderer)==null?0:y.thumbnail)return N.playlistCustomThumbnailRenderer.thumbnail;q=q.thumbnailRenderer;var J;if((J=q.showCustomThumbnailRenderer)==null?0:J.thumbnail)return q.showCustomThumbnailRenderer.thumbnail}};
_.g.computeOverlayColor=function(q){var N,b;if((N=this.getThumbnailDetails(q))==null?0:(b=N.darkColorPalette)==null?0:b.section2Color)return this.getThumbnailDetails(q).darkColorPalette.section2Color;var y;return(y=this.getThumbnailDetails(q))==null?void 0:y.sampledThumbnailColor};
_.g.computeWebModernCollections=function(q){if(q==null||!q.thumbnailOverlays)return!1;q=_.Z(q.thumbnailOverlays);for(var N=q.next();!N.done;N=q.next()){var b=void 0;if((b=N.value)==null?0:b.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.g.computeNavigationEndpoint=function(q){return IOJ(q==null?void 0:q.navigationEndpoint)};
_.$H.Object.defineProperties(lD.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var q=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:q==null?void 0:q.sampledThumbnailColor,vibrantColorPalette:q==null?void 0:q.vibrantColorPalette,darkColorPalette:q==null?void 0:q.darkColorPalette,experimentEnabled:!0}}}});
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],lD.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],lD.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(Fhv),_.P("design:type",Object)],lD.prototype,"ytdThumbnailBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],lD.prototype,"componentBehavior",void 0);
_.p([_.U({value:!1}),_.P("design:type",Boolean)],lD.prototype,"watchFeedThumbnail",void 0);_.p([_.U(),_.P("design:type",Number)],lD.prototype,"customThumbnailSize",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],lD.prototype,"hideAria",void 0);_.p([_.U(),_.P("design:type",Object)],lD.prototype,"data",void 0);_.p([_.U({computed:"computeOverlayColor(data)"}),_.P("design:type",Object)],lD.prototype,"overlayColor",void 0);
_.p([_.U({computed:"computeWebModernCollections(data)"}),_.P("design:type",Object)],lD.prototype,"webModernCollections",void 0);_.p([_.U({computed:"computeNavigationEndpoint(data)"}),_.P("design:type",Object)],lD.prototype,"computedNavigationEndpoint",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],lD.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],lD.prototype,"isDoubleStack",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],lD.prototype,"thumbnailSize",void 0);_.p([_.l("data","isDoubleStack","thumbnailSize"),_.P("design:type",Object),_.P("design:paramtypes",[])],lD.prototype,"collectionStack",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],lD);
_.a(lD,"ytd-playlist-thumbnail",function(){if(HaT!==void 0)return HaT;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return HaT=q},{mode:_.Am("kevlar_poly_si_batch_j025")?1:2});var NQ4;_.P$(_.n(function(q){return _.u("yt-text-view-model",{class:_.NO("ytTextViewModelHost")},_.u(_.Zc,{text:function(){return q.data().text}}))},"Ea"),"yt-text-view-model",{props:{data:_.F5}});var KR=function(){var q=_.C.apply(this,arguments)||this;q.noEndpoints=!1;q.amsterdamPostMvp=_.x("web_amsterdam_post_mvp_playlists");q.badges=[];q.transferState="TRANSFER_STATE_UNKNOWN";return q};
_.Y(KR,_.C);_.g=KR.prototype;_.g.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.g.getMetadata=function(q){if(!q)return[];var N=[],b=q.shortViewCountText||q.viewCountText;b&&N.push(_.ao(b));q.publishedTimeText&&N.push(_.ao(q.publishedTimeText));q.upcomingEventData&&q.upcomingEventData.upcomingEventText&&N.push(_.X3(_.ao(q.upcomingEventData.upcomingEventText),Number(q.upcomingEventData.startTime)));return N};
_.g.observeDataForBylineSeparator=function(){this.data&&_.HP(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.g.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.GM(this.metadataColor)};
_.g.getSimpleString=function(q){return _.ao(q)};
_.g.isBylineHidden=function(q){return this.noByline||!((q==null?0:q.longBylineText)||(q==null?0:q.shortBylineText))};
_.g.isMetadataHidden=function(q){var N;return((N=this.getMetadata(q))==null?void 0:N.length)===0};
_.g.isBylineMetadataSeparatorHidden=function(q){return this.isMetadataHidden(q)||!this.shouldShowVideoInfo};
_.g.isLongByline=function(q,N){return N&&!(q==null||!q.longBylineText)};
_.$H.Object.defineProperties(KR.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var q;return this.amsterdamPostMvp&&!((q=this.data)==null||!q.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 q;return!((q=this.data)==null||!q.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.x("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
KR.prototype.metadataColorChanged=KR.prototype.metadataColorChanged;KR.prototype.observeDataForBylineSeparator=KR.prototype.observeDataForBylineSeparator;_.p([_.O(_.H6),_.P("design:type",Object)],KR.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],KR.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],KR.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],KR.prototype,"noEndpoints",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],KR.prototype,"isSlimShort",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],KR.prototype,"radioMeta",void 0);_.p([_.U({selector:_.wJ}),_.P("design:type",Object)],KR.prototype,"isGridViewEnabled",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],KR.prototype,"richMeta",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],KR.prototype,"amsterdamPostMvp",void 0);
_.p([_.U(),_.P("design:type",Boolean)],KR.prototype,"noByline",void 0);_.p([_.U({computed:"isLongByline(data, radioMeta)"}),_.P("design:type",Boolean)],KR.prototype,"longByline",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],KR.prototype,"truncateMetadataLine",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],KR.prototype,"miniMode",void 0);_.p([_.U(),_.P("design:type",Number)],KR.prototype,"metadataColor",void 0);
_.p([_.U(),_.P("design:type",Array)],KR.prototype,"badges",void 0);_.p([_.U({selector:_.ig,selectorArgs:["data.videoId"]}),_.P("design:type",String)],KR.prototype,"transferState",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],KR.prototype,"isDownloading",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],KR.prototype,"typographyBump",void 0);_.p([_.dq("#metadata-line"),_.P("design:type",HTMLElement)],KR.prototype,"metadataLine",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],KR.prototype,"observeDataForBylineSeparator",null);_.p([_.FY("metadataColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],KR.prototype,"metadataColorChanged",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],KR.prototype,"shouldShowVideoInfo",null);
_.p([_.l("badges"),_.P("design:type",String),_.P("design:paramtypes",[])],KR.prototype,"inlineBadgeClass",null);_.p([_.l("longByline"),_.P("design:type",String),_.P("design:paramtypes",[])],KR.prototype,"longBylineClass",null);_.p([_.l("data","longByline"),_.P("design:type",Object),_.P("design:paramtypes",[])],KR.prototype,"bylineText",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],KR.prototype,"hasAttributedBylineText",null);
_.p([_.l("isGridViewEnabled","data"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],KR.prototype,"watchFeedBigThumbs",null);_.p([_.I({is:"ytd-video-meta-block",disableElementRegistration:!0})],KR);
_.a(KR,"ytd-video-meta-block",function(){if(NQ4!==void 0)return NQ4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return NQ4=q},{mode:_.Am("kevlar_poly_si_batch_j080")?1:2});_.xP("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var DV=function(){var q=_.C.apply(this,arguments)||this;q.displayItemCount=2;q.isBackstagePlaylist=!1;q.isPostCompactPlaylist=!1;q.shouldShowChannelThumbnail=!1;return q};
_.Y(DV,_.C);_.g=DV.prototype;_.g.computeFirstVideos=function(q,N){return q===void 0||N===void 0?[]:q.slice(0,N)};
_.g.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var q=this.data.thumbnailRenderer;q.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",q.playlistVideoThumbnailRenderer.thumbnail);q.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",q.playlistCustomThumbnailRenderer.thumbnail)}};
_.g.computeThumbnailHeight=function(q,N,b,y,J){return y?J==="BIG"?280:J==="MASSIVE"?337:234:b?240:N?72:q?118:138};
_.g.computeThumbnailWidth=function(q,N,b,y,J){return y?J==="MEDIUM"?450:J==="BIG"?500:J==="MASSIVE"?600:420:b?360:N?128:q?210:246};
_.g.computeUseBiggerThumbs=function(q){return q&&_.x("enable_desktop_search_bigger_thumbs")};
_.g.computeShouldShowChannelThumbnail=function(q,N){return q&&!(N==null||!N.channelThumbnail)};
_.$H.Object.defineProperties(DV.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
DV.prototype.dataChanged=DV.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],DV.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Fi),_.P("design:type",Object)],DV.prototype,"ytdLockupBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],DV.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],DV.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],DV.prototype,"displayItemCount",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],DV.prototype,"isBackstagePlaylist",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],DV.prototype,"isPostCompactPlaylist",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],DV.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.P("design:type",Boolean)],DV.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.jA("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],DV.prototype,"biggerThumbsStyle",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],DV.prototype,"isDownloads",void 0);_.p([_.U({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.P("design:type",Object)],DV.prototype,"shouldShowChannelThumbnail",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DV.prototype,"dataChanged",null);
_.p([_.l("isSearch"),_.P("design:type",String),_.P("design:paramtypes",[])],DV.prototype,"stackThumbnailSize",null);_.p([_.I({is:"ytd-playlist-renderer",disableElementRegistration:!0})],DV);
_.a(DV,"ytd-playlist-renderer",function(){if(COF===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);COF=q}q=COF;return q},{mode:1});var bex;var ykx;var hd=function(){var q=_.C.apply(this,arguments)||this;q.startX=0;return q};
_.Y(hd,_.C);hd.prototype.onEndpointMouseDown=function(q){this.startX=q.clientX};
hd.prototype.onEndpointClick=function(q){this.startX!==q.clientX&&(q.preventDefault(),q.stopPropagation())};
hd.prototype.computeObjectFit=function(q){return q==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||q==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||q==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
hd.prototype.computeCardStyle=function(q){return q?q.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.$H.Object.defineProperties(hd.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.data)==null?void 0:(N=q.searchRefinementCardRendererStyle)==null?void 0:N.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}}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],hd.prototype,"data",void 0);_.p([_.U({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.P("design:type",Number)],hd.prototype,"objectFit",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.P("design:type",String)],hd.prototype,"cardStyle",void 0);
_.p([_.U({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],hd.prototype,"roundContainer",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],hd.prototype,"isAlbumCard",null);_.p([_.l("data","isAlbumCard"),_.P("design:type",Object),_.P("design:paramtypes",[])],hd.prototype,"collectionStack",null);_.p([_.I({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],hd);
_.a(hd,"ytd-search-refinement-card-renderer",function(){if(ykx!==void 0)return ykx;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return ykx=q},{mode:1});var Jkl;var kt=function(){var q=_.C.apply(this,arguments)||this;q.isRichGrid=!1;return q};
_.Y(kt,_.C);_.p([_.U(),_.P("design:type",Object)],kt.prototype,"data",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],kt.prototype,"componentBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],kt.prototype,"ytdReduxBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],kt.prototype,"isRichGrid",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.GC}),_.P("design:type",Boolean)],kt.prototype,"miniMode",void 0);
_.p([_.I({is:"ytd-game-details-renderer",disableElementRegistration:!0})],kt);
_.a(kt,"ytd-game-details-renderer",function(){if(Jkl!==void 0)return Jkl;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Jkl=q},{mode:1});var EIx;var gIE;var Uo=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return q};
_.Y(Uo,_.C);_.g=Uo.prototype;_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.currentStateData=function(q){var N=q||this.data;return N&&N.states&&N.currentStateId!=null?N.states.find(function(b){return b.stateId===N.currentStateId})||null:null};
_.g.currentStateRendererData=function(q){return(q=this.currentStateData(q))&&q.state&&q.state.buttonRenderer?q.state.buttonRenderer:null};
_.g.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())};
_.g.computeButtonIcon=function(q){q=this.currentStateRendererData(q);var N;return(q==null?0:(N=q.icon)==null?0:N.iconType)?q.icon.iconType.toLowerCase():null};
_.g.computeAccessibility=function(q){return(q=this.currentStateRendererData(q))&&q.accessibilityData?q.accessibilityData.accessibilityData||null:null};
_.g.computeButtonClass=function(q){var N=this.currentStateRendererData(q);if(!N)return"";q="";var b=N.style;b&&(q+=b.toLowerCase().replace(/_/g,"-")+" ");(N=N.size)&&(q+=N.toLowerCase().replace(/_/g,"-")+" ");return q.trim()};
_.g.computeServiceEndpoint=function(q){if(!q)return null;var N=q&&q.serviceEndpoint,b=this.get("command.commandMetadata.webCommandMetadata.sendPost",q);return N?N:b&&q.command?q.command:null};
_.g.computeBellMenuItemParams=function(q){var N;q=(N=_.v(q==null?void 0:q.command,_.y6))==null?void 0:N.commands;if(!q||q.length===0)return null;N=_.v(q[0],_.sj);var b,y;return(N==null?0:(b=N.popup)==null?0:(y=b.menuPopupRenderer)==null?0:y.items)?N.popup.menuPopupRenderer.items.map(function(J){return J.menuServiceItemRenderer.trackingParams}):null};
_.g.handleBellMenuOpenSelectedAction=function(q){var N=q.trackingParams,b=this.computeBellMenuItemParams(this.data);this.data&&N&&b&&b.includes(N)&&this.ytRenderButtonBehavior._setButtonIcon(q.icon.iconType.toLowerCase())};
_.g.onYtServiceRequestCompleted=function(q,N){(q=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",N))&&this.set("data",q)};
_.g.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.g.resetState=function(){this.set("data.currentStateId",3)};
_.g.onYtButtonTapHandler=function(){if(this.data){var q=this.currentStateRendererData(this.data);q&&this.ytRendererBehavior.logExplicitClick(q)}};
Uo.prototype.onYtServiceRequestError=Uo.prototype.onYtServiceRequestError;Uo.prototype.onYtServiceRequestCompleted=Uo.prototype.onYtServiceRequestCompleted;Uo.prototype.stateChanged=Uo.prototype.stateChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Uo.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.O(TE.YtRenderButtonBehavior),_.P("design:type",Object)],Uo.prototype,"ytRenderButtonBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Uo.prototype,"data",void 0);_.p([_.$9("data","data.currentStateId"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Uo.prototype,"stateChanged",null);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],Uo.prototype,"onYtServiceRequestCompleted",null);_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Uo.prototype,"onYtServiceRequestError",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Uo);
_.a(Uo,"ytd-subscription-notification-toggle-button-renderer",function(){if(gIE!==void 0)return gIE;var q=document.createElement("template");_.Q(q,"\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");q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return gIE=q},{mode:1});var Zex;var fR=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};q.tapHandler=function(){if(q.data){var N=q.currentStateRendererData();N&&q.ytRendererBehavior.logExplicitClick(N)}};
return q};
_.Y(fR,_.C);_.g=fR.prototype;_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.currentStateData=function(){var q=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(N){return N.stateId===q.data.currentStateId})||null:null};
_.g.currentStateRendererData=function(){var q=this.currentStateData();return q&&q.state&&q.state.buttonRenderer?q.state.buttonRenderer:null};
_.g.computeAccessibilityLabel=function(){var q,N,b;return(q=this.currentStateRendererData())==null?void 0:(N=q.accessibilityData)==null?void 0:(b=N.accessibilityData)==null?void 0:b.label};
_.g.computeBellMenuItemParams=function(){var q,N,b=(N=_.v((q=this.data)==null?void 0:q.command,_.y6))==null?void 0:N.commands;if(!b||b.length===0)return null;q=_.v(b[0],_.sj);var y,J;return(q==null?0:(y=q.popup)==null?0:(J=y.menuPopupRenderer)==null?0:J.items)?q.popup.menuPopupRenderer.items.map(function(E){return E.menuServiceItemRenderer.trackingParams}):null};
_.g.handleBellMenuOpenSelectedAction=function(q){var N=q.trackingParams,b=this.computeBellMenuItemParams();if(this.data&&N&&b&&b.includes(N)&&(q==null||!q.isDisabled)){var y;((y=_.v(q.serviceEndpoint,_.EY))==null?void 0:y.signal)!=="CLIENT_SIGNAL"&&(this.icon=q.icon.iconType)}};
_.g.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.g.onYtServiceRequestCompleted=function(q,N){if(q=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",N))this.icon=void 0,this.set("data",q)};
_.g.onYtServiceRequestError=function(){this.icon=void 0};
_.$H.Object.defineProperties(fR.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var q=this.data,N=this.textLabel,b=this.hostElement,y=this.computeAccessibilityLabel(),J=this.tapHandler,E=this.isOverlay?"overlay":"mono",F=(q==null?0:q.disableButton)?"disabled":"active";N=N?_.v$(N):void 0;return{style:E,type:"tonal",state:F,size:"M",focused:!1,formattedButtonText:N,iconPosition:"leading-trailing",onTap:h4h(q,J,b),accessibilityLabel:y}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var q=this.currentStateRendererData(),N,b,y=(b=this.icon)!=null?b:q==null?void 0:(N=q.icon)==null?void 0:N.iconType;if(y)return _.qo(y)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var q,N,b=(q=this.data)==null?void 0:(N=q.secondaryIcon)==null?void 0:N.iconType;if(b)return _.qo(b)}}});
fR.prototype.onYtServiceRequestError=fR.prototype.onYtServiceRequestError;fR.prototype.onYtServiceRequestCompleted=fR.prototype.onYtServiceRequestCompleted;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],fR.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],fR.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],fR.prototype,"textLabel",void 0);
_.p([_.U(),_.P("design:type",String)],fR.prototype,"icon",void 0);_.p([_.U(),_.P("design:type",Boolean)],fR.prototype,"isOverlay",void 0);_.p([_.l("data.*","textLabel"),_.P("design:type",Object),_.P("design:paramtypes",[])],fR.prototype,"computedButtonShape",null);_.p([_.l("data.*","icon"),_.P("design:type",Object),_.P("design:paramtypes",[])],fR.prototype,"computedIcon",null);_.p([_.l("computedIcon"),_.P("design:type",Object),_.P("design:paramtypes",[])],fR.prototype,"computedAnimateIcon",null);
_.p([_.l("data.*"),_.P("design:type",Object),_.P("design:paramtypes",[])],fR.prototype,"computedSecondaryIcon",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],fR.prototype,"onYtServiceRequestCompleted",null);_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],fR.prototype,"onYtServiceRequestError",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],fR);
_.a(fR,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(Zex!==void 0)return Zex;var q=document.createElement("template");_.Q(q,'\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 Zex=q},{mode:_.Am("kevlar_poly_si_batch_j081")?1:2});var FBj;_.P$(Fco,"yt-animated-action",{props:{backgroundLottieRef:_.F5,foregroundLottieRef:_.F5,wrapperClass:_.F5,disableAnimation:_.F5},unsafeExternallySettableAttributes:new Set(["key"])});var CR=function(){var q=_.C.apply(this,arguments)||this;q.animatedActionEnabled=_.x("web_animated_actions");q.foregroundLottieRef={};q.backgroundLottieRef={};q.forceIconOnly=!1;q.showTextWhileAnimating=!1;q.keyboardFocused=!1;q.isAnimating=!1;q.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return q};
_.Y(CR,_.C);_.g=CR.prototype;_.g.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.g.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]]"}}}}}};
_.g.attached=function(){this.keyboardFocused=!1};
_.g.onYtServiceRequestSent=function(q,N){(this.get("endpoint.subscribeEndpoint",N)||this.get("endpoint.unsubscribeEndpoint",N))&&this.updateSubscriptionState(!this.subscribed)};
_.g.onYtServiceRequestCompleted=function(q,N){(q=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",N.data))&&this.bellButton&&(this.bellButton.data=q)};
_.g.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Jm(this.hostElement)};
_.g.onPlayerSubscribe=function(q){this.isCompactRed()||q!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.g.onPlayerUnsubscribe=function(q){this.isCompactRed()||q!==this.data.channelId||this.updateSubscriptionState(!1)};
_.g.handleUpdateSubscribeButtonAction=function(q){q=_.v(q,yGl);var N;q&&q.channelId===((N=this.data)==null?void 0:N.channelId)&&this.updateSubscriptionState(!!q.subscribed)};
_.g.computeButtonStyle=function(q){return this.get("style.styleType",q)||null};
_.g.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.g.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.g.updateSubscriptionState=function(q){if(q!==this.subscribed){this.set("data.subscribed",q);var N,b=(N=this.data)==null?void 0:N.subscribedEntityKey;b&&this.ytdReduxBehavior.dispatch(_.$e("subscriptionStateEntity",b,{key:b,subscribed:q}));this.isCompactRed()||_.e2(this.hostElement,"yt-subscription-changed",q);q||(_.By(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!q),q&&this.hasBellButton&&this.startAnimation())}};
_.g.startAnimation=function(){var q=this;if(!this.isAnimating){var N=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var b;(b=this.backgroundLottieRef.lottieEl)==null||b.goToAndPlay(0);var y;(y=this.foregroundLottieRef.lottieEl)==null||y.goToAndPlay(0);_.pY.addJob(function(){q.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.pY.addJob(function(){q.updateContainerToFitContent(!!q.subscribed,!0)},2,1500);
_.pY.addJob(function(){q.isAnimating=!1},2,N)}};
_.g.maybeAnimateBellIcon=function(){var q=_.BP(this.hostElement).querySelector("yt-animated-icon");if(q){var N;(N=q.animationRef.lottieEl)==null||N.goToAndPlay(0)}};
_.g.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.g.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.g.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var q;this.unsubscribedWidth=(q=this.subscribeButtonShape)==null?void 0:q.getBoundingClientRect().width}var N;this.subscribedWidth=(N=this.bellButton)==null?void 0:N.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.g.updateContainerToFitContent=function(q,N){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(q?(q=this.subscribedWidth,N=this.isAnimating&&!N,this.subscribedIconOnlyWidth===void 0||N||(q=this.subscribedIconOnlyWidth),this.hostElement.style.width=q+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.g.clearContainerSize=function(){this.hostElement.style.width=""};
_.g.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.g.maybeSetSubscribedButtonIconOnlyWidth=function(){var q=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 N;q.subscribedIconOnlyWidth=(N=q.bellButton)==null?void 0:N.getBoundingClientRect().width;requestAnimationFrame(function(){if(q.bellButton){var b;q.bellButton.textLabel=
(b=q.data)==null?void 0:b.subscribedButtonText}})})))};
_.$H.Object.defineProperties(CR.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 q;return(q=this.data)==null?void 0:q.subscribedButtonText}var N;return this.forceIconOnly?void 0:(N=this.data)==null?void 0:N.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var q,N,b=((q=this.data)==null?void 0:(N=q.timedAnimationData)==null?void 0:N.animationTiming)||[];return{uniqueId:"subscribe",timings:b,enabled:b.length>0&&!this.subscribed,experimentEnabled:b.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var q;return!this.subscribed&&((q=this.data)==null?void 0:q.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 q={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var N=q.renderer;var b=q.element;var y=q.subscribed;var J=q.commandController;var E=q.isOverlay;q=q.stopPropagation;var F=Ciz(N,y);E&&(F.style="overlay");E=Object;var R=E.assign,c;a:switch((c=N.style)==null?void 0:c.styleType){case "COMPACT_GRAY":case "COMPACT_RED":c={size:"S"};break a;default:c={size:"M"}}var z=f9Z(N,
y);var m=(m=y?N.subscribedButtonText:N.unsubscribedButtonText)?_.v$(m):void 0;return R.call(E,{},F,c,{focused:!1,toggled:y,accessibilityLabel:z,formattedButtonText:m,onTap:USd(N,y,b,J,q)})}}}});
CR.prototype.onMouseDown=CR.prototype.onMouseDown;CR.prototype.onDataChanged=CR.prototype.onDataChanged;CR.prototype.observedSubscribed=CR.prototype.observedSubscribed;CR.prototype.onYtServiceRequestCompleted=CR.prototype.onYtServiceRequestCompleted;CR.prototype.onYtServiceRequestSent=CR.prototype.onYtServiceRequestSent;CR.prototype.maybeUpdateBellButtonText=CR.prototype.maybeUpdateBellButtonText;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],CR.prototype,"ytComponentBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],CR.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],CR.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],CR.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],CR.prototype,"data",void 0);
_.p([_.U({selectorArgs:["data.subscribedEntityKey"],selector:bBn}),_.P("design:type",Object)],CR.prototype,"subscriptionStateEntity",void 0);_.p([_.U({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.P("design:type",Boolean)],CR.prototype,"subscribed",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],CR.prototype,"branded",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],CR.prototype,"animatedActionEnabled",void 0);
_.p([_.U(),_.P("design:type",Object)],CR.prototype,"foregroundLottieRef",void 0);_.p([_.U(),_.P("design:type",Object)],CR.prototype,"backgroundLottieRef",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],CR.prototype,"overlayButton",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.P("design:type",Object)],CR.prototype,"buttonStyle",void 0);_.p([_.U(),_.P("design:type",Object)],CR.prototype,"forceIconOnly",void 0);
_.p([_.U(),_.P("design:type",Object)],CR.prototype,"showTextWhileAnimating",void 0);_.p([_.U({value:function(){return!!_.tz().resolve(_.$f(_.X5))&&_.x("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.P("design:type",Boolean)],CR.prototype,"useKeyboardFocused",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],CR.prototype,"keyboardFocused",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],CR.prototype,"isAnimating",void 0);_.p([_.l("data.notificationPreferenceButton.*"),_.P("design:type",Object),_.P("design:paramtypes",[])],CR.prototype,"hasBellButton",null);
_.p([_.FY("subscribedButtonText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CR.prototype,"maybeUpdateBellButtonText",null);_.p([_.l("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.P("design:type",Object),_.P("design:paramtypes",[])],CR.prototype,"subscribedButtonText",null);_.p([_.l("data.timedAnimationData.animationTiming","subscribed"),_.P("design:type",Object),_.P("design:paramtypes",[])],CR.prototype,"smartimationSettings",null);
_.p([_.U({reflectToAttribute:!0}),_.l("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.P("design:type",Object),_.P("design:paramtypes",[])],CR.prototype,"subscribeButtonHidden",null);_.p([_.U({reflectToAttribute:!0}),_.l("subscribed","hasBellButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],CR.prototype,"subscribeButtonInvisible",null);
_.p([_.U({reflectToAttribute:!0}),_.l("subscribed"),_.P("design:type",Object),_.P("design:paramtypes",[])],CR.prototype,"unsubscribeButtonHidden",null);_.p([_.dq("ytd-subscription-notification-toggle-button-renderer-next"),_.P("design:type",Object)],CR.prototype,"bellButton",void 0);_.p([_.dq("#subscribe-button-shape"),_.P("design:type",HTMLElement)],CR.prototype,"subscribeButtonShape",void 0);
_.p([_.l("overlayButton","subscribed","data"),_.P("design:type",Object),_.P("design:paramtypes",[])],CR.prototype,"buttonShape",null);_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],CR.prototype,"onYtServiceRequestSent",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],CR.prototype,"onYtServiceRequestCompleted",null);
_.p([_.FY("subscribed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CR.prototype,"observedSubscribed",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CR.prototype,"onDataChanged",null);_.p([_.ZP("mousedown"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],CR.prototype,"onMouseDown",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],CR);
_.a(CR,"ytd-subscribe-button-renderer",function(){if(FBj!==void 0)return FBj;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return FBj=q},{mode:1});var Ir=function(){var q=_.C.apply(this,arguments)||this;q.isRichGrid=!1;return q};
_.Y(Ir,_.C);Ir.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"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ir.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Ir.prototype,"isRichGrid",void 0);_.p([_.I({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Ir);
_.a(Ir,"ytd-game-card-renderer",function(){if(EIx!==void 0)return EIx;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return EIx=q},{mode:1});var TQ={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.x("defer_menus")&&!s1x?0:void 0,waitForSignal:"eocs"};var R$l;var dXJ;var so=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return q};
_.Y(so,_.C);_.g=so.prototype;_.g.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.g.onSeriesReminderStateEntityChange=function(){var q,N,b;((q=this.eventReminderStateEntity)==null?0:q.key)&&((N=this.seriesReminderStateEntity)==null?void 0:N.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((b=this.eventReminderStateEntity)==null?void 0:b.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.$e("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.g.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.g.onYtServiceRequestError=function(){var q;this.updateReminderStateEntitiesFromButtonState((q=this.data)==null?void 0:q.currentState)};
_.g.handleUpdateUpcomingEventReminderButtonStateCommand=function(q){if(q=_.v(q,qbl)){var N,b=(N=this.data)==null?void 0:N.targetId;b&&q.targetId===b&&_.k9(this.updateReminderStateEntitiesFromButtonState.bind(this,q.state))}};
_.g.getButtonStateFromReminderState=function(){var q;if(((q=this.seriesReminderStateEntity)==null?void 0:q.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var N;if(((N=this.eventReminderStateEntity)==null?void 0:N.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var b,y;if(((b=this.seriesReminderStateEntity)==null?void 0:b.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((y=this.eventReminderStateEntity)==
null?void 0:y.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var J;return(J=this.data)==null?void 0:J.currentState};
_.g.updateReminderStateEntitiesFromButtonState=function(q){if(q){switch(q){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":q="UPCOMING_EVENT_REMINDER_STATE_NONE";var N="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":q="UPCOMING_EVENT_REMINDER_STATE_SINGLE";N="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":q="UPCOMING_EVENT_REMINDER_STATE_NONE";N="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var b;
((b=this.eventReminderStateEntity)==null?0:b.key)&&this.ytdReduxBehavior.dispatch(_.$e("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:q})));var y;((y=this.seriesReminderStateEntity)==null?0:y.key)&&this.ytdReduxBehavior.dispatch(_.$e("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:N})))}};
_.$H.Object.defineProperties(so.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var q=this.getButtonStateFromReminderState(),N,b;if(q&&((N=this.data)==null?0:(b=N.states)==null?0:b.length))for(N=_.Z(this.data.states),b=N.next();!b.done;b=N.next()){b=b.value;var y=void 0;if(((y=_.v(b,N2M))==null?void 0:y.state)===q)return _.v(b,N2M)}}}});
so.prototype.onYtServiceRequestError=so.prototype.onYtServiceRequestError;so.prototype.onYtServiceRequestCompleted=so.prototype.onYtServiceRequestCompleted;so.prototype.onSeriesReminderStateEntityChange=so.prototype.onSeriesReminderStateEntityChange;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],so.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],so.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],so.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],so.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],so.prototype,"data",void 0);_.p([_.U({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:JRR}),_.P("design:type",Object)],so.prototype,"eventReminderStateEntity",void 0);
_.p([_.U({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(q,N){return _.Ji(q.entities,"sportsSeriesReminderStateEntity",N)}}),
_.P("design:type",Object)],so.prototype,"seriesReminderStateEntity",void 0);_.p([_.l("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],so.prototype,"currentButtonStateRenderer",null);_.p([_.FY("seriesReminderStateEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],so.prototype,"onSeriesReminderStateEntityChange",null);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],so.prototype,"onYtServiceRequestCompleted",null);_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],so.prototype,"onYtServiceRequestError",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],so);
_.a(so,"ytd-upcoming-event-reminder-button-renderer",function(){if(dXJ!==void 0)return dXJ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
return dXJ=q},{mode:1});var ckF;var nR=function(){return _.C.apply(this,arguments)||this};
_.Y(nR,_.C);nR.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.$H.Object.defineProperties(nR.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(_.x("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],nR.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],nR.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],nR.prototype,"shelfDismissal",void 0);_.p([_.l("data.responseText"),_.P("design:type",Object),_.P("design:paramtypes",[])],nR.prototype,"text",null);
_.p([_.l("data.responseText"),_.P("design:type",Object),_.P("design:paramtypes",[])],nR.prototype,"textAriaLabel",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],nR);
_.a(nR,"ytd-notification-multi-action-renderer",function(){if(ckF!==void 0)return ckF;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return ckF=q},{mode:1});var urF;var ar=function(){return _.C.apply(this,arguments)||this};
_.Y(ar,_.C);ar.prototype.ready=function(){var q=this;_.ee(this.hostElement).querySelector("#undo").addEventListener("tap",function(){q.onUndoTap()})};
ar.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.tz().resolve(_.rO).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ar.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],ar);
_.a(ar,"ytd-notification-text-renderer",function(){if(urF!==void 0)return urF;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return urF=q},{mode:1});var z$M;var SY=function(){var q=_.C.apply(this,arguments)||this;q.mouseOverDelayJobId=0;q.fadeInImageDelayJobId=0;q.startTimeMs=-1;q.loadingStartTimeMs=-1;q.loadingEndTimeMs=-1;q.hasVideoPreview=!1;return q};
_.Y(SY,_.C);_.g=SY.prototype;_.g.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.g.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.g.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.g.showThumbnail=function(){var q=this;this.csn=_.Oe();_.OY("fmth");_.pY.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.B$(_.pY,function(){q.loadingStartTimeMs=(0,_.mA)();var N=_.ee(q.hostElement).querySelector("#thumbnail");N.complete?q.displayMouseOverImage():N.addEventListener("load",_.gq(q,q.displayMouseOverImage))},150):_.HP(_.ee(this.hostElement).querySelector("#play"),"show",!0)};
_.g.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.g.onTap=function(){this.removeVideoPreview()};
_.g.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var q=this.videoId,N=this.csn,b=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,y=this.startTimeMs,J=this.hasVideoPreview,E=_.zT(this.trackingParams),F={isMovingThumbnail:J};J&&y>0&&(b>0&&(F.movingThumbnailLoadingDurationMs=Math.round(b)),F.durationHoveredMs=Math.round((0,_.mA)()-y));q&&(F.videoId=q);_.a5(N,E,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:F});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.g.removeVideoPreview=function(){_.pY.cancelJob(this.mouseOverDelayJobId);_.pY.cancelJob(this.fadeInImageDelayJobId);var q=_.ee(this.hostElement).querySelector("#thumbnail");_.HP(q,"fade-in",!1);q.removeEventListener("load",_.gq(this,this.displayMouseOverImage));q=_.ee(this.hostElement).querySelector("#play");_.HP(q,"fade-in",!1);_.HP(q,"show",!1)};
_.g.displayMouseOverImage=function(){var q=_.ee(this.hostElement).querySelector("#thumbnail"),N=_.ee(this.hostElement).querySelector("#play");this.isImageAvailable(q)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.mA)(),this.startTimeMs=(0,_.mA)(),this.fadeInImageDelayJobId=_.B$(_.pY,function(){_.HP(q,"fade-in",!0)},50)):_.HP(N,"fade-in",!0)};
_.g.computeThumbnail=function(q,N){var b;q&&q.movingThumbnailDetails&&q.movingThumbnailDetails.thumbnails&&N?b=_.Mo(q.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):b=N?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(b)return _.pc(b)};
_.g.isImageAvailable=function(q){return!(!q.src||q.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||q.naturalWidth===120)};
SY.prototype.onTap=SY.prototype.onTap;SY.prototype.dataChanged=SY.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],SY.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],SY.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],SY.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],SY.prototype,"csn",void 0);_.p([_.U(),_.P("design:type",Object)],SY.prototype,"trackingParams",void 0);
_.p([_.U(),_.P("design:type",String)],SY.prototype,"videoId",void 0);_.p([_.U(),_.P("design:type",Boolean)],SY.prototype,"isAttachedAndDataSet",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],SY.prototype,"dataChanged",null);_.p([_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],SY.prototype,"onTap",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],SY);
_.a(SY,"ytd-moving-thumbnail-renderer",function(){if(z$M!==void 0)return z$M;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return z$M=q},{mode:1});var $Xq;_.N$=function(q){this.hostElement=q;this.eventSink=null;this.eventList=[]};
_.N$.prototype.shouldForward=function(){var q,N;return(N=(q=this.eventSink)==null?void 0:q.isConnected)!=null?N:document.body.contains(this.eventSink)};
_.N$.prototype.start=function(q,N){this.eventSink&&this.stop();for(var b=0;b<q.length;b++)this.hostElement.addEventListener(q[b],_.gq(this,this.forwardEvent));var y;this.eventSink=(y=N.hostElement)!=null?y:N;this.eventList=q};
_.N$.prototype.stop=function(){for(var q=0;q<this.eventList.length;q++)this.hostElement.removeEventListener(this.eventList[q],_.gq(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.N$.prototype.forwardEvent=function(q,N){this.shouldForward()&&(q.stopPropagation(),this.eventSink instanceof Element?_.e2(this.eventSink,q.type,N):_.M6(new _.IO("eventSink is not an element")))};_.WF={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.N$(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(q,N){this.forwarder_.start(q,N)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var LR=function(){return _.C.apply(this,arguments)||this};
_.Y(LR,_.C);_.g=LR.prototype;_.g.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=_.M7("HTML_DIR")==="rtl"?"right":"left"};
_.g.dataChanged=function(){this.popupOpen=!1};
_.g.computeAriaLabel=function(q){return _.v(q,v2l).label};
_.g.onTap=function(q){q.stopPropagation();q.preventDefault();this.data.command&&_.tz().resolve(_.rO).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.g.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.g.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
LR.prototype.onPopupClosed=LR.prototype.onPopupClosed;LR.prototype.onPopupOpened=LR.prototype.onPopupOpened;LR.prototype.onTap=LR.prototype.onTap;LR.prototype.dataChanged=LR.prototype.dataChanged;_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],LR.prototype,"eventForwardingBehavior",void 0);_.p([_.O(_.Li),_.P("design:type",Object)],LR.prototype,"ironButtonState",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],LR.prototype,"componentBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],LR.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:-1}),_.P("design:type",Number)],LR.prototype,"tabindex",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.P("design:type",Object)],LR.prototype,"ariaLabel",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],LR.prototype,"disableTooltips",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],LR.prototype,"popupOpen",void 0);
_.p([_.U(),_.P("design:type",Element)],LR.prototype,"eventSink",void 0);_.p([_.dq("#tooltip"),_.P("design:type",Object)],LR.prototype,"tooltip",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],LR.prototype,"dataChanged",null);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],LR.prototype,"onTap",null);
_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],LR.prototype,"onPopupOpened",null);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],LR.prototype,"onPopupClosed",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],LR);
_.a(LR,"ytd-thumbnail-overlay-button-renderer",function(){if($Xq!==void 0)return $Xq;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return $Xq=q},{mode:1});var t3l;var pR=function(){return _.C.apply(this,arguments)||this};
_.Y(pR,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],pR.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],pR.prototype,"disableAnimation",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],pR.prototype,"rounded",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],pR.prototype,"transparentBackground",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],pR.prototype,"noPadding",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],pR);
_.a(pR,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(t3l!==void 0)return t3l;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return t3l=q},{mode:1});var mXo;var PF=function(){return _.C.apply(this,arguments)||this};
_.Y(PF,_.C);PF.prototype.computeIconPosition=function(q){return this.get("iconPosition",q)||null};
PF.prototype.computeIconStyle=function(q){return this.get("iconStyle",q)||null};
PF.prototype.computeIsIconStyleFilled=function(q){if(!q)return!1;var N;return q.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((N=q.icon)==null?void 0:N.iconType)==="ERROR_BLACK"};
_.p([_.U(),_.P("design:type",Object)],PF.prototype,"data",void 0);_.p([_.U({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.P("design:type",Object)],PF.prototype,"iconPosition",void 0);_.p([_.U({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.P("design:type",Object)],PF.prototype,"iconStyle",void 0);_.p([_.U({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],PF.prototype,"iconStyleFilled",void 0);
_.p([_.I({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],PF);
_.a(PF,"ytd-thumbnail-overlay-icon-renderer",function(){if(mXo!==void 0)return mXo;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return mXo=q},{mode:1});var rkF;var MW=function(){return _.C.apply(this,arguments)||this};
_.Y(MW,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],MW.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],MW);
_.a(MW,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(rkF!==void 0)return rkF;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return rkF=q},{mode:1});var XIR;var or=function(){var q=_.C.apply(this,arguments)||this;q.isPreviewLoading=!1;return q};
_.Y(or,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],or.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],or.prototype,"isPreviewLoading",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],or);
_.a(or,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(XIR!==void 0)return XIR;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return XIR=q},{mode:1});var V3F;var Ad=function(){return _.C.apply(this,arguments)||this};
_.Y(Ad,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ad.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ad.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],Ad);
_.a(Ad,"ytd-thumbnail-overlay-pinking-renderer",function(){if(V3F!==void 0)return V3F;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return V3F=q},{mode:1});var jdT;var eY=function(){var q=_.C.apply(this,arguments)||this;q.disableTooltips=!1;q.isLoading=!1;q.useExpandableTooltip=!1;q.toggled=!1;q.hovered=!1;q.mouseoverDelayJobId=0;q.toggleDelayJobId=0;q.expandAnimationDelayJobId=0;return q};
_.Y(eY,_.C);_.g=eY.prototype;_.g.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");_.ee(this.hostElement).querySelector("#tooltip").position=_.M7("HTML_DIR")==="rtl"?"right":"left"};
_.g.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.pY.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.pY.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.pY.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.g.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.pY.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.pY.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.pY.cancelJob(this.expandAnimationDelayJobId)};
_.g.computeIcon=function(q,N,b){return(q=b?N:q)&&q.iconType?_.qo(q.iconType):void 0};
_.g.computeAriaLabel=function(q,N,b){return _.v(b?N:q,v2l).label};
_.g.computeTooltip=function(q,N,b){return b?N:q};
_.g.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.g.computeIconOnHover=function(q,N){if((q==null?0:q.iconType)&&!N)return _.qo(q.iconType)};
_.g.onTap=function(q){var N=this;q.stopPropagation();q.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(q=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(q),this.useExpandableTooltip&&(this.toggleDelayJobId=_.B$(_.pY,function(){N.hovered=!1;N.data&&!N.data.toggledServiceEndpoint&&(N.expandAnimationDelayJobId=_.B$(_.pY,function(){N.set("data.isToggled",
!1)},200))},2E3))};
_.g.onMouseenter=function(){var q=this;this.mouseoverDelayJobId=_.B$(_.pY,function(){q.hovered=!0},300)};
_.g.onMouseleave=function(){_.pY.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.g.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.g.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.g.onServiceRequestCompleted=function(q,N){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(N)||this.set("data.isToggled",!this.data.isToggled)};
_.g.serviceRequestWasSuccessful=function(q){return _.v(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.qz)?q.data.status==="STATUS_SUCCEEDED":!0};
eY.prototype.onServiceRequestCompleted=eY.prototype.onServiceRequestCompleted;eY.prototype.onPopupClosed=eY.prototype.onPopupClosed;eY.prototype.onPopupOpened=eY.prototype.onPopupOpened;eY.prototype.onMouseleave=eY.prototype.onMouseleave;eY.prototype.dataChanged=eY.prototype.dataChanged;_.p([_.O(_.Li),_.P("design:type",Object)],eY.prototype,"ironButtonState",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],eY.prototype,"ytComponentBehavior",void 0);
_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],eY.prototype,"ytEventForwardingBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],eY.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.P("design:type",Object)],eY.prototype,"ariaLabel",void 0);_.p([_.U(),_.P("design:type",Object)],eY.prototype,"disableTooltips",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],eY.prototype,"popupOpen",void 0);_.p([_.U(),_.P("design:type",Object)],eY.prototype,"isLoading",void 0);_.p([_.U(),_.P("design:type",Element)],eY.prototype,"eventSink",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],eY.prototype,"useExpandableTooltip",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.P("design:type",Object)],eY.prototype,"toggled",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],eY.prototype,"hovered",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.P("design:type",Object)],eY.prototype,"iconOnHover",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eY.prototype,"dataChanged",null);
_.p([_.ZP("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eY.prototype,"onMouseleave",null);_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eY.prototype,"onPopupOpened",null);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eY.prototype,"onPopupClosed",null);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],eY.prototype,"onServiceRequestCompleted",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],eY);
_.a(eY,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(jdT!==void 0)return jdT;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return jdT=q},{mode:_.Am("kevlar_poly_si_batch_j053")?1:2});var xXl;var vIo=_.n(function(q){var N=q.data;var b=q.thumbnailSize;var y=function(){return N().enableSegmentView};
return _.u("yt-thumbnail-overlay-progress-bar-view-model",{class:_.NO("ytThumbnailOverlayProgressBarHost",function(){return I9D(b==null?void 0:b())})},_.u(_.t,{cond:y,
then:function(){return _.u("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.u("div",{class:_.jz("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+N().startPercent+"%"}}),_.u("div",{class:_.jz("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+N().segmentDurationPercent+"%"}},_.u("div",{class:_.jz("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.u("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.u("div",null," ",function(){return N().segmentLabel})),_.u("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.u("div",{class:_.jz("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.u(_.t,{cond:function(){return!y()&&N().startPercent},
then:function(){var J={};return _.u("div",{class:_.jz("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(J.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.x("web_enable_modern_progress_bar_overlay"),J))},_.u("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+N().startPercent+"%"}}))}}))},"Fa");
vIo.idomCompat=!0;var GdR=_.n(function(q){var N=_.gj(),b=_.uR(function(J){var E,F,R;a:{var c=(E=q.data())==null?void 0:E.animationActivationTargetId;E=((F=q.data())==null?void 0:F.animationActivationEntityKey)||"";F=(R=q.data())==null?void 0:R.animationActivationEntitySelectorType;if(E&&c)switch(F){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":J=_.bR(J,E);R=_.tz().resolve(_.$f(_.l9));c=!!(J&&J.videoId===c&&(R==null?0:R.isMiniplayerActive()));c={activated:c,playAnimation:c&&J.playerState==="PLAYER_STATE_PLAYING"};
break a}c=void 0}return c});
_.Sx(function(){var J;if((J=b())==null?0:J.activated){var E;if((E=b())==null?0:E.playAnimation){var F;(F=N.lottieEl)==null||F.goToAndPlay(0)}else{var R;(R=N.lottieEl)==null||R.goToAndStop(0)}}},"DbQiXd");
var y=function(){var J,E=!((J=b())==null||!J.activated);if(q.data()){J=q.data();var F=void 0;J.icon&&(F=_.gbn(J.icon),F=tMd(F));var R=void 0,c;if((c=J.backgroundColor)==null?0:c.lightTheme){var z;R={backgroundColor:Qk((z=J.backgroundColor)==null?void 0:z.lightTheme,"0.8")}}if(J.text||F||E){if(E&&J.lottieData&&N){z=J.lottieData;var m,r,X;c={animationConfig:{name:z.url,path:z.url,autoplay:(m=z.settings)==null?void 0:m.autoplay,loop:(X=(r=z.settings)==null?void 0:r.loop)!=null?X:!0},animationRef:N}}else c=
void 0;if(E)m=17;else b:switch(J.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":m=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":m=19;break b;default:m=17}E={type:m,text:E&&J.animatedText?J.animatedText:J.text,icon:F,customColors:R,animation:c}}else E=void 0}else E=void 0;return E};
return _.u("yt-thumbnail-badge-view-model",{class:_.NO("ytThumbnailBadgeViewModelHost",q.class)},_.u(_.t,{cond:y,then:function(){return _.u(_.Eo,{data:function(){return y()}})}}))},"Ha");var Y3l=_.n(function(q){var N={},b={};return _.u("yt-thumbnail-bottom-overlay-view-model",{class:_.NO("ytThumbnailBottomOverlayViewModelHost",(N.ytThumbnailBottomOverlayViewModelHostBackground=function(){return q.data().enableGradientBackground},N))},_.u(_.zS,{data:function(){return q.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(y){return _.u(vIo,{data:y.data,
thumbnailSize:q.thumbnailSize})}}),_.u("div",{class:_.NO("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var y;
return TYZ((y=q.thumbnailSize)==null?void 0:y.call(q))},(b.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var y;
return(y=q.isClip)==null?void 0:y.call(q)},b.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var y;
return!_.x("web_enable_modern_progress_bar_overlay")&&((y=q.thumbnailSize)==null?void 0:y.call(q))==="small"},b))},_.u(_.zS,{data:function(){return q.data().badge}},{thumbnailBadgeViewModel:function(y){return _.u(GdR,{data:y.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.u(_.zS,{data:function(){return q.data().badges}},{thumbnailBadgeViewModel:function(y){return _.u(GdR,{data:y.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ia");
Y3l.idomCompat=!0;_.P$(Y3l,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.W$,thumbnailSize:_.W$,isClip:_.W$}});var oXd={calledOnce:!1,state:"visible"},ARu={calledOnce:!1,state:"hidden"};var BF=_.n(function(q){var N=q.data;var b=q.className;q=q.alwaysShow;var y=_.a9A(),J={};return _.u("thumbnail-hover-overlay-view-model",{el:_.ai(_.QR(function(){return N().rendererContext})),
class:_.NO("ytThumbnailHoverOverlayViewModelHost",b,(J.ytThumbnailHoverOverlayViewModelHostForceHover=q,J)),"aria-label":function(){var E;return(E=_.v(N().rendererContext,_.$A))==null?void 0:E.label},
role:function(){return _.GS(N().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.GS(N().rendererContext)!==void 0?0:void 0},
"on:keypress":y},_.u("div",{class:_.NO("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(N().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var E="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:E="ytThumbnailHoverOverlayViewModelStyleCover"}return E})},_.u(_.t,{cond:function(){return N().icon},
then:function(E){return _.u(_.s_,{data:E,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.u(_.t,{cond:function(){return N().text},
then:function(E){return _.u(_.Zc,{text:E,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ka");
BF.idomCompat=!0;var QdM=_.n(function(q){var N=q.data;return _.u(_.zS,{data:function(){return N==null?void 0:N().overlays}},{thumbnailHoverOverlayViewModel:BF})},"La");
QdM.idomCompat=!0;var Oev={};var wIq=_.n(function(q){var N=q.data;var b=q.image;var y=q.state;var J=q.iconType;var E=q.overlays;var F=q.isOverlay;var R=_.cK("div");q=_.Z(_.QS(!0,void 0,"AA4e7b"));var c=q.next().value,z=q.next().value,m=function(){return!!N().onTap},r=_.aU(J,"LIVE");
_.Sx(function(){var V=N();requestAnimationFrame(function(){if(R.value===null)var G=!0;else{var w=R.value;G=V.badgeText;var D=BYe(V.size);G in Oev?w=Oev[G]:(w=w.clientWidth,Oev[G]=w);(G=w>D)?R.value.style.display="none":R.value.style.visibility="visible"}z(G)})},"vNdN8b");
var X=function(){var V={};return V["yt-spec-avatar-shape__image"]=!0,V["yt-spec-avatar-shape__image--ads-app"]=N().type===1,V["yt-spec-avatar-shape__image--inscribed-square"]=N().type===2,V};
return _.u("yt-avatar-shape",null,_.u("div",{el:_.ai(qTd(m,{keydown:function(V){if(V.key==="Enter"){var G;(G=V.currentTarget)==null||G.click()}},
click:function(V){var G,w;return void((w=(G=N()).onTap)==null?void 0:w.call(G,V))}})),
class:function(){var V={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},G=N();V=(V[G.clusterLayoutConfig?y6A(G.clusterLayoutConfig):J6A(G.size)]=!0,V["yt-spec-avatar-shape__button--tappable"]=m(),V);(G=N().avatarButtonCustomClassName)&&(V[G]=!0);return _.jz(V)},
"aria-label":function(){return m()?N().accessibilityText:""},
role:function(){return m()?"button":void 0},
tabindex:function(){return m()?0:void 0}},_.u("div",{class:function(){var V,G=N(),w=y==null?void 0:y(),D=F==null?void 0:F(),k=!((V=G.decorations)==null||!V.includes(2)||G.size!=="medium"&&G.size!=="large"),f=G.size==="tiny"||G.size==="extra-small",L,S,W,M,qe={};
V=(qe["yt-spec-avatar-shape--live-ring"]=!!(((L=G.decorations)==null?0:L.includes(0))&&gKC(G.size)),qe["yt-spec-avatar-shape--stories-watched"]=k&&!(w==null||!w.storiesWatched),qe["yt-spec-avatar-shape--stories-unwatched"]=k&&!(w==null?0:w.storiesWatched),qe["yt-spec-avatar-shape--background-border"]=ZaA(G.decorations)&&!f,qe["yt-spec-avatar-shape--background-border-thin"]=ZaA(G.decorations)&&f,qe["yt-spec-avatar-shape__on-select-border"]=!((S=G.decorations)==null||!S.includes(4)),qe["yt-spec-avatar-shape__white-border"]=
!((W=G.decorations)==null||!W.includes(5)),qe["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((M=G.decorations)==null?0:M.includes(5))&&f),qe["yt-spec-avatar-shape--is-overlay"]=!!D,qe);return _.jz(V)},
style:function(){a:{var V=N().clusterLayoutConfig;if(V){b:{var G=V.numAvatarsInCluster;var w=V.avatarIndex;if(w!==G-1){switch(V.clusterSize){case "small":V="32";break;case "medium":V="36";break;case "40":V="40";break;default:G=void 0;break b}G="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+V+"x"+V+"_avatars_"+G+"_index_"+w+".svg"}else G=void 0}if(G){G=_.ZU({"-webkit-mask-image":"url("+G+")","mask-image":"url("+G+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}G=void 0}return G}},_.u("div",{class:function(){var V={};
var G=N();V=(V[G.clusterLayoutConfig?N6J(G.clusterLayoutConfig):bad(G.size)]=!0,V["yt-spec-avatar-shape--no-margin"]=ZaA(N().decorations),V["yt-spec-avatar-shape--square"]=N().type===2,V);return _.jz(V)}},_.u(_.s_,{data:b,
alt:function(){return!m()&&N().accessibilityText?N().accessibilityText:""},
targetWidth:function(){return EKJ(N().size)},
targetHeight:function(){return EKJ(N().size)},
className:function(){return _.jz(X())}}),_.u(_.t,{cond:function(){var V;
return((V=N().decorations)==null?void 0:V.includes(0))&&gKC(N().size)},
then:function(){return _.u("div",{class:function(){var V={};V=(V["yt-spec-avatar-shape__live-badge"]=!0,V["yt-spec-avatar-shape__live-badge--badge-small"]=N().size==="small",V["yt-spec-avatar-shape__live-badge--badge-medium"]=N().size==="medium"||N().size==="48",V["yt-spec-avatar-shape__live-badge--badge-large"]=N().size==="large",V["yt-spec-avatar-shape__live-badge--badge-extra-large"]=N().size==="extra-large"||N().size==="extra-extra-large"||N().size==="giant",V);return _.jz(V)}},_.u(_.t,{cond:function(){return N().badgeText},
then:function(V){return _.u("div",{class:"yt-spec-avatar-shape__badge-text",el:R},V)}}),_.u(_.t,{cond:c,
then:function(){return _.u("div",{class:"yt-spec-avatar-shape__badge-icon"},_.u(_.FQ,{icon:r,size:function(){a:switch(N().size){case "extra-large":var V=16;break a;default:V=13}return V}}))}}))}}),_.u(_.t,{cond:function(){var V,G;
return((V=N().decorations)==null?void 0:V.includes(1))||((G=N().decorations)==null?void 0:G.includes(0))&&!gKC(N().size)},
then:function(){return _.u("div",{class:function(){var V=N(),G,w,D={};var k=(D["yt-spec-avatar-shape__live-dot"]=!((G=V.decorations)==null||!G.includes(0)||gKC(V.size)),D["yt-spec-avatar-shape__new-content"]=!((w=V.decorations)==null||!w.includes(1)),D);return _.jz(k)}})}}),_.u(_.t,{cond:function(){return!!E},
then:function(){return _.u("div",{class:function(){var V={};V=Object.assign((V["yt-spec-avatar-shape__image-overlays"]=!0,V),X());return _.jz(V)}},E==null?void 0:E())}})))))},"Oa");
wIq.idomCompat={callbacks:{overlays:!0}};_.HF=_.n(function(q){function N(){b().endpoint&&_.Kt(b().endpoint)}
var b=q.data;var y=q.decorations;var J=q.avatarButtonCustomClassName;var E=q.isOverlay;var F=q.clusterLayoutConfig;return _.u("avatar-view-model",null,_.u(_.t,{cond:function(){return b().image},
then:function(R){return _.u(wIq,{data:function(){return R6n({data:b(),onTap:b().endpoint?N:void 0,decorations:y==null?void 0:y(),badgeText:void 0,accessibilityText:b().accessibilityText,avatarButtonCustomClassName:J==null?void 0:J(),clusterLayoutConfig:F==null?void 0:F()})},
image:R,iconType:"RADAR_LIVE",overlays:function(){return _.u(QdM,{data:b})},
isOverlay:E})}}))},"Pa");
_.HF.idomCompat=!0;_.qw=_.n(function(q){var N=q.data;q=q.className;var b=_.cK("yt-decorated-avatar-view-model"),y=function(){return _.v(N().avatar,_.wj)},J=_.K3(function(){var E,F=N(),R=y(),c=_.GS(N().rendererContext),z=(E=b.value)!=null?E:void 0,m;
if(R){z={data:F,avatar:R,onTap:c,element:z};E=z.data;F=z.avatar;R=z.onTap;c=z.element;z=z.commandController;R=R?z6J(R,c,z):void 0;c=[];E.liveData&&c.push(0);var r;z=(r=E.liveData)==null?void 0:r.liveBadgeText;r=(m=_.v(E.rendererContext,_.$A))==null?void 0:m.label;m=R6n({data:F,onTap:R,decorations:c,badgeText:z,accessibilityText:r?r:E.a11yLabel})}else m={size:"medium"};return m},void 0,"c00kWd");
return _.u("yt-decorated-avatar-view-model",{class:_.NO("ytDecoratedAvatarViewModelHost",q),el:b},_.u(_.t,{cond:function(){var E;return(E=y())==null?void 0:E.image},
then:function(E){return _.u(wIq,{data:J,image:E,iconType:"RADAR_LIVE",overlays:function(){return _.u(QdM,{data:y})}})}}))},"Qa");
_.qw.idomCompat=!0;_.Nw=_.n(function(q){var N=function(){var R;return Object.assign({},q.data(),(R=q.overrides)==null?void 0:R.call(q))},b=function(){return _.Ye(N().rendererContext)},y=function(){var R=N().avatars,c,z;
return(z=(c=(R==null?0:R[0])?_.v(R[0],_.wj):void 0)==null?void 0:c.avatarImageSize)!=null?z:"AVATAR_SIZE_UNKNOWN"},J=function(){return uLD(N())},E=function(){if(N().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var R=void 0;
else if((R=q.decorations)==null?0:R.call(q))R=q.decorations();else{R=N();var c=0;R.avatars&&(c+=R.avatars.length);R.decoratedText&&(c+=1);R=c>1?[3]:[]}return R},F={};
return _.u("yt-avatar-stack-view-model",{el:_.ai(_.QR(function(){return N().rendererContext})),
class:_.NO("yt-avatar-stack-view-model",q.className,(F["yt-avatar-stack-view-model--tappable"]=b,F["yt-avatar-stack-view-model--is-overlay"]=q.isOverlay,F["yt-avatar-stack-view-model--medium-text"]=q.useMediumText,F)),tabindex:function(){return b()?0:void 0},
role:function(){return b()?"link":void 0},
"aria-label":function(){var R,c;return(c=(R=_.v(N().rendererContext,_.$A))==null?void 0:R.label)!=null?c:""}},_.u(_.t,{cond:function(){var R;
return N().avatars&&!((R=q.hideAvatar)==null?0:R.call(q))},
then:function(){return _.u("div",{class:"yt-avatar-stack-view-model__avatars"},_.u(_.t,{cond:function(){return N().decoratedText},
then:function(R){var c={};return _.u("div",{class:_.NO("yt-avatar-stack-view-model__text-container",(c["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return y()==="AVATAR_SIZE_XXS"||y()==="AVATAR_SIZE_XS"},c["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var z;
return((z=q.isOverlay)==null?void 0:z.call(q))&&(y()==="AVATAR_SIZE_XXS"||y()==="AVATAR_SIZE_XS")},c)),
style:_.ZU({width:function(){return J().avatarSizeInPx+"px"},
height:function(){return J().avatarSizeInPx+"px"}})},_.u(_.Zc,{text:R,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.u("div",{style:function(){return _.ZU(J().avatarStackStyle)()},
class:function(){return J().avatarStackClass}},_.u(_.zS,{data:function(){return J().avatars.reverse()}},{avatarViewModel:function(R,c){return _.u("div",{style:function(){var z,m;
return _.ZU((m=(z=J()).avatarStyle)==null?void 0:m.call(z,c()))()},
class:function(){return J().avatarClass}},_.u(_.HF,{data:R.data,
decorations:E,avatarButtonCustomClassName:function(){return J().avatarButtonCustomClassName},
isOverlay:q.isOverlay,clusterLayoutConfig:function(){var z,m;return(m=(z=J()).clusterLayoutConfig)==null?void 0:m.call(z,c())}}))},
decoratedAvatarViewModel:function(R,c){return _.u("div",{style:function(){var z,m;return _.ZU((m=(z=J()).avatarStyle)==null?void 0:m.call(z,c()))()},
class:function(){return J().avatarClass}},_.u(_.qw,{data:R.data}))}})))}}),_.u(_.t,{cond:function(){return N().text},
then:function(R){return _.u(_.Zc,{text:R,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ra");
_.Nw.idomCompat=!0;_.P$(_.n(function(q){var N=q.data;var b=q.thumbnailSize;return _.u("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.u("div",{class:_.NO("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return $Uu(b==null?void 0:b())})},_.u(_.zS,{data:function(){return N().avatarStack}},{avatarStackViewModel:function(y){return _.u(_.Nw,{data:y.data,
decorations:[5]})}})))},"Sa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.F5,
thumbnailSize:_.F5}});var iev=_.n(function(q){q=_.Sl(q,{hidden:!1});var N=q.data;q=q.hidden;return _.u("yt-thumbnail-overlay-title-view-model",{class:_.NO("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(N().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var b="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:b="ytThumbnailOverlayTitleViewModelPositionTop"}return b}),
hidden:q},_.u(_.t,{cond:function(){return N().leadingContent},
then:function(b){return _.u("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.u(_.zS,{data:b},{decoratedAvatarViewModel:_.qw}))}}),_.u("div",null,_.u(_.Zc,{text:function(){return N().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.u(_.t,{cond:function(){return N().subtitle},
then:function(){return _.u(_.Zc,{text:function(){return N().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Ta");
iev.idomCompat=!0;_.P$(iev,"yt-thumbnail-overlay-title-view-model",{props:{data:_.F5,hidden:_.F5}});_.lTF=_.n(function(q){q=_.Sl(q,{isClip:!1});var N=q.data,b=q.thumbnailSize,y={};return _.u("yt-thumbnail-overlay-badge-view-model",{class:_.NO("yt-thumbnail-overlay-badge-view-model",function(){a:switch(N().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var J="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:J="yt-thumbnail-overlay-badge-view-model--bottom-end"}return J},function(){return ttJ(b==null?void 0:b())},(y["yt-thumbnail-overlay-badge-view-model--clip"]=q.isClip,
y))},_.u(_.zS,{data:function(){return N().thumbnailBadges}},{thumbnailBadgeViewModel:function(J){return _.u(GdR,{data:J.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ua");
_.lTF.idomCompat=!0;_.P$(_.lTF,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.F5,thumbnailSize:_.F5,isClip:_.F5}});var KBJ=_.n(function(q){var N=q.data;q=q.hidden;var b=_.K3(function(){return N().indicatorCount||0},void 0,"AbKnMc"),y={};
return _.u("yt-page-indicator-view-model",{class:_.NO("ytPageIndicatorViewModelHost",(y.ytPageIndicatorViewModelIndicatorHidden=function(){return!N().indicatorCount},y)),
hidden:q},_.u(_.Tf,{each:function(){return Array(b())}},function(J,E){var F={};
return _.u("div",{class:_.NO("ytPageIndicatorViewModelIndicator",(F.ytPageIndicatorViewModelIndicatorSelected=function(){return N().selectedIndex===E()},F))})}))},"Va");
KBJ.idomCompat=!0;_.P$(KBJ,"yt-page-indicator-view-model",{props:{data:_.F5,hidden:_.F5}});var b1=function(){var q=_.C.apply(this,arguments)||this;q.eventSink=function(){return q};
q.disableInteraction=!1;q.noRoundedCorners=!1;q.isPreviewLoading=!1;q.isOriginalAspectRatio=!1;q.computedObjectFit=!1;q.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return q};
_.Y(b1,_.C);_.g=b1.prototype;
_.g.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:_.x("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"}}};
_.g.onImageLoaded=function(){this.loaded=!0};
_.g.onImageUnloaded=function(){this.loaded=!1};
_.g.computeRichThumbnail=function(q,N,b,y){if(q&&N&&!y&&!_.x("disable_moving_thumbs_handling")&&!b)return N};
_.g.computeImageWidth=function(q,N){return N||9999};
_.g.computeIsOriginalAspectRatio=function(q){return q};
_.g.computeIsLive=function(q){if(q==null?0:q.badges)for(var N=0;N<q.badges.length;N++){var b=q.badges[N];if(b.metadataBadgeRenderer&&b.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(q==null?0:q.thumbnailOverlays)for(N=0;N<q.thumbnailOverlays.length;N++)if(b=q.thumbnailOverlays[N],b.thumbnailOverlayTimeStatusRenderer&&b.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.g.computeObjectFit=function(q,N){return N||(q?"CONTAIN":"")};
_.g.computeNavigationEndpoint=function(q,N,b){return q?N:b};
_.g.computeHasClip=function(q){q=_.Z(q||[]);for(var N=q.next();!N.done;N=q.next())if(N.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.g.computeOverlayColor=function(q){var N;return(q==null?0:(N=q.darkColorPalette)==null?0:N.section2Color)?q.darkColorPalette.section2Color:q==null?void 0:q.sampledThumbnailColor};
_.$H.Object.defineProperties(b1.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.nnR(this.width)}}});
b1.prototype.onImageUnloaded=b1.prototype.onImageUnloaded;b1.prototype.onImageLoaded=b1.prototype.onImageLoaded;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],b1.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],b1.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(Fhv),_.P("design:type",Object)],b1.prototype,"ytdThumbnailBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],b1.prototype,"componentBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],b1.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],b1.prototype,"data",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],b1.prototype,"circular",void 0);
_.p([_.U({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.P("design:type",Object)],b1.prototype,"richThumbnail",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.P("design:type",Boolean)],b1.prototype,"hasClip",void 0);_.p([_.U(),_.P("design:type",Object)],b1.prototype,"eventSink",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],b1.prototype,"queued",void 0);
_.p([_.U({value:!1}),_.P("design:type",Boolean)],b1.prototype,"richGridThumbnail",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],b1.prototype,"useExpandableTooltip",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],b1.prototype,"useUntranslatedNavigationEndpoint",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],b1.prototype,"disableInteraction",void 0);
_.p([_.U({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.P("design:type",Object)],b1.prototype,"computedNavigationEndpoint",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],b1.prototype,"nowPlayingEqualizerOnly",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],b1.prototype,"hidePlaybackStatus",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],b1.prototype,"objectFit",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],b1.prototype,"noRoundedCorners",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],b1.prototype,"watchFeedThumbnail",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],b1.prototype,"isPreviewLoading",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.P("design:type",Object)],b1.prototype,"isOriginalAspectRatio",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.P("design:type",Object)],b1.prototype,"computedObjectFit",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.P("design:type",Boolean)],b1.prototype,"isLiveVideo",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],b1.prototype,"loaded",void 0);_.p([_.U({computed:"computeOverlayColor(data.thumbnail)"}),_.P("design:type",Object)],b1.prototype,"overlayColor",void 0);_.p([_.U(),_.P("design:type",Boolean)],b1.prototype,"minimizePipBreakages",void 0);_.p([_.U({selector:_.Cwn}),_.P("design:type",Boolean)],b1.prototype,"inlinePreviewIsEnabled",void 0);_.p([_.U(),_.P("design:type",Number)],b1.prototype,"width",void 0);
_.p([_.l("inlinePreviewIsEnabled"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],b1.prototype,"isPreviewDisabled",null);_.p([_.l("width"),_.P("design:type",String),_.P("design:paramtypes",[])],b1.prototype,"thumbnailSize",null);_.p([_.ZP("image-loaded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],b1.prototype,"onImageLoaded",null);
_.p([_.ZP("image-unloaded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],b1.prototype,"onImageUnloaded",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-thumbnail"})],b1);
var DXE=_.oU()(b1,"ytd-thumbnail",function(){if(xXl===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);xXl=q}q=xXl;return q},{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 XlJ=function(q){var N=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15113_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15113_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(b){h$M(N,b)};
this.onLockupMouseLeaveFn=function(b){b=b.relatedTarget;var y,J;((y=document.getElementsByTagName("ytd-video-preview"))==null?0:(J=y.item(0))==null?0:J.contains(b))||(N.terminateVideoPreview(),y3(N))};
this.onThumbnailMouseDownFn=function(){N.terminateVideoPreview();y3(N)};
this.onTouchStart=function(){N.JSC$15113_touched=!0};
this.mediaRenderer=q.mediaRenderer;this.thumbnailElement=q.thumbnailElement;this.lockupElement=q.lockupElement;this.videoPreviewOptsInput=q.videoPreviewOpts;kdj(this);Jv(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)):
_.M6(Error("Fh")):_.M6(Error("Gh")):UXR(this)},am=function(q){UXR(q);
var N;(N=q.lockupElement)==null||N.removeEventListener("mouseenter",q.onMouseMoveFn);var b;(b=q.lockupElement)==null||b.removeEventListener("mouseleave",q.onLockupMouseLeaveFn);var y;(y=q.lockupElement)==null||y.removeEventListener("touchstart",q.onTouchStart);var J;(J=q.thumbnailElement)==null||J.removeEventListener("mousedown",q.onThumbnailMouseDownFn);y3(q)},kdj=function(q){q.inlinePreviewIsEnabledForUser=_.WT().getState().ui.inlinePreviewIsEnabled;
q.unsubscribeFromInlinePreviewIsEnabled=_.aM(_.WT(),_.Cwn,function(N){(q.inlinePreviewIsEnabledForUser=N)||y3(q)});
q.JSC$15113_unsubscribeFromInlinePreviewIsActive=_.aM(_.WT(),_.fcC,function(N){(q.inlinePreviewIsActive=N)||y3(q)})},UXR=function(q){q.unsubscribeFromInlinePreviewIsEnabled();
q.unsubscribeFromInlinePreviewIsEnabled=function(){};
q.JSC$15113_unsubscribeFromInlinePreviewIsActive();q.JSC$15113_unsubscribeFromInlinePreviewIsActive=function(){}},h$M=function(q,N){N.buttons>0||(N=_.VX("kevlar_lockup_hover_delay",-1),q.JSC$15113_touched&&N>=0?(_.pY.cancelJob(q.videoPreviewJobId),q.videoPreviewJobId=_.B$(_.pY,function(){fT1(q)},N),q.JSC$15113_touched=!1):fT1(q))},mZz=function(q){q.videoPreviewJobId=_.B$(_.pY,function(){return _.d(function(N){return N.yield(Csl(q,{isAutoplay:!0}),0)})})},fT1=function(q){!q.previewTriggered&&Jv(q)&&
(q.inlinePreviewIsActive&&q.terminateVideoPreview(),q.previewTriggered=!0,q.mediaRenderer.isInlinePreviewTriggered=!0,_.pY.cancelJob(q.videoPreviewJobId),q.videoPreviewJobId=_.B$(_.pY,function(){return _.d(function(N){return N.yield(Csl(q),0)})}))},Csl=function(q,N){N=N===void 0?{}:N;
var b=N.isAutoplay===void 0?!1:N.isAutoplay;var y,J,E,F;return _.d(function(R){if(R.nextAddress==1){if(!Jv(q))return R.return();y=q.getVideoPreviewOpts();if(!y)return R.return();b&&(y.isAutoplay=!0);return(E=(J=_.Hy(q.mediaRenderer.hostElement,"yt-open-video-preview-action",[y]))&&J[0])?R.yield(J[0],3):R.jumpTo(2)}R.nextAddress!=2&&(E=R.yieldResult===1);if(E){var c=(F=q.mediaRenderer)==null?void 0:F.data;c&&(r6J(c)?delete c.inlinePlayerData:"inlinePlaybackEndpoint"in c&&delete c.inlinePlaybackEndpoint)}_.hj(R)})};
XlJ.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var q,N;if((N=(q=this.videoPreviewOptsInput)==null?void 0:q.videoPreviewData)!=null)q=N;else if(q=this.mediaRenderer.data)if(r6J(q))q={inlinePlaybackEndpoint:_.O_(q.inlinePlayerData.onVisible),navigationEndpoint:_.O_(q.onTap),thumbnail:"image"in q?q.image:q.thumbnail,thumbnailOverlays:void 0,accessibilityText:mUJ(q)};else if("multipleInlinePlaybackEndpoint"in q){var b=_.v(_.v(q.multipleInlinePlaybackEndpoint,TCx),sVR);if(b!=
null&&b.playerDescriptors){N=[];b=_.Z(b.playerDescriptors);for(var y=b.next();!y.done;y=b.next())y=y.value,N.push({inlinePlaybackEndpoint:y.inlinePlaybackEndpoint,navigationEndpoint:y.navigationEndpoint,thumbnail:y.thumbnail,thumbnailOverlays:y.thumbnailOverlays,accessibilityText:mUJ(q)});q=N}else q=void 0}else q={inlinePlaybackEndpoint:q.inlinePlaybackEndpoint,navigationEndpoint:q.navigationEndpoint,thumbnail:q.thumbnail,thumbnailOverlays:q.thumbnailOverlays,accessibilityText:mUJ(q)};else q=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:q,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Jv=function(q){var N;if(N=q.inlinePreviewIsEnabledForUser)N=(q=q.mediaRenderer.data)?"inlinePlaybackEndpoint"in q&&q.inlinePlaybackEndpoint||r6J(q)&&q.inlinePlayerData||"multipleInlinePlaybackEndpoint"in q&&q.multipleInlinePlaybackEndpoint?!0:!1:!1;return N};
XlJ.prototype.terminateVideoPreview=function(){_.By(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var y3=function(q){_.pY.cancelJob(q.videoPreviewJobId);q.inlinePreviewIsActive=!1;q.previewTriggered=!1;q.mediaRenderer.isInlinePreviewTriggered=!1};var IT1=_.Tt(["#"]),EE=function(){var q=_.C.apply(this,arguments)||this;q.isDisabled=!1;return q};
_.Y(EE,_.C);_.g=EE.prototype;
_.g.configureRendererStamper=function(){return{"data.menu":TQ,"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"}}}};
_.g.attached=function(){this.updateInlinePreviewHoverListeners()};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.getMetadata=function(q){var N=[];if(q.metadataText&&Object.keys(q.metadataText).length>0){var b=this.ytRendererBehavior.getSimpleString(q.metadataText);q.upcomingEventData&&q.upcomingEventData.upcomingEventText&&(b=_.X3(b,Number(q.upcomingEventData.startTime)));N.push(b)}else q.shortViewCountText&&N.push(this.ytRendererBehavior.getSimpleString(q.shortViewCountText)),q.publishedTimeText&&N.push(this.ytRendererBehavior.getSimpleString(q.publishedTimeText)),q.upcomingEventData&&q.upcomingEventData.upcomingEventText&&
(b=this.ytRendererBehavior.getSimpleString(q.upcomingEventData.upcomingEventText),N.push(_.X3(b,Number(q.upcomingEventData.startTime))));return N};
_.g.calculateBylineText=function(q){return q.shortBylineText?q.shortBylineText:q.bylineText?q.bylineText:null};
_.g.calculateIsDisabled=function(q){return!!q.isDisabled};
_.g.computeHrefWithDefault=function(q){return this.ytComponentBehavior.computeHref_(q)||_.Ftd(IT1)};
_.g.onDetailsTap=function(q){var N=this.data&&this.data.navigationEndpoint;N&&!_.Su(_.n9(q)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.x("kevlar_grid_video_renderer_killswitch")?_.e2(this.hostElement,"yt-navigate",{endpoint:N}):this.ytComponentBehavior.resolveCommand(N))};
_.g.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15120_inlinePreviewHoverListener=ix({mediaRenderer:this,lockupElement:_.ee(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.ee(this.hostElement).querySelector("ytd-thumbnail")})};
_.g.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$15120_inlinePreviewHoverListener)==null||am(q)};
_.g.computeThumbnailWidth=function(q,N){return N&&N>0?N:q?360:210};
_.g.computeNumBadgesInRow=function(q){var N;return((N=q.badges)==null?void 0:N.length)||0};
_.g.computeShowChannelThumbnail=function(q,N){var b;return N&&!!(q==null?0:(b=q.channelThumbnailSupportedRenderers)==null?0:b.channelThumbnailWithLinkRenderer)};
_.$H.Object.defineProperties(EE.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$15120_inlinePreviewHoverListener)==null?0:Jv(q))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
EE.prototype.dataChanged=EE.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],EE.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],EE.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],EE.prototype,"ytdDismissibleItemBehavior",void 0);
_.p([_.O(_.Fi),_.P("design:type",Object)],EE.prototype,"ytdLockupBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],EE.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],EE.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],EE.prototype,"noEndpoints",void 0);_.p([_.U({computed:"calculateBylineText(data)"}),_.P("design:type",Object)],EE.prototype,"bylineText",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],EE.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],EE.prototype,"isDownloading",void 0);_.p([_.U({reflectToAttribute:!0,value:0}),_.P("design:type",Number)],EE.prototype,"width",void 0);_.p([_.U({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.P("design:type",Object)],EE.prototype,"isDisabled",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EE.prototype,"dataChanged",null);_.p([_.l("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],EE.prototype,"isHovered",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],EE.prototype,"hasAttributedBylineText",null);
_.p([_.l("bylineText","hasAttributedBylineText"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],EE.prototype,"showBylineText",null);_.p([_.I({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],EE);
_.a(EE,"ytd-grid-video-renderer",function(){if(R$l!==void 0)return R$l;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return R$l=q},{mode:_.Am("kevlar_poly_si_batch_j047")?1:2});var TQJ;var gK=function(){var q=_.C.apply(this,arguments)||this;q.roundedContainer=!0;q.skipRoundingTop=!1;q.disableTopPadding=!1;q.amsterdamEnabled=_.x("enable_desktop_amsterdam_info_panels");q.extractOverlay=!1;return q};
_.Y(gK,_.C);gK.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
gK.prototype.onClick=function(q){var N,b=(N=this.data)==null?void 0:N.sourceEndpoint;!_.Su(_.n9(q),this.hostElement,["A".toString()])&&b&&_.e2(this.hostElement,"yt-navigate",{endpoint:b})};
_.$H.Object.defineProperties(gK.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 q;return!((q=this.data)==null||!q.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var q,N;return(N=(q=this.data)==null?void 0:q.paragraphMaxLines)!=null?N:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],gK.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],gK.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gK.prototype,"showVerticalDividers",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gK.prototype,"roundedContainer",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gK.prototype,"skipRoundingTop",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gK.prototype,"disableTopPadding",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],gK.prototype,"amsterdamEnabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gK.prototype,"extractOverlay",void 0);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],gK.prototype,"showMetadataAtTop",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],gK.prototype,"showMetadataBelowTitle",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.menu"),_.P("design:type",Object),_.P("design:paramtypes",[])],gK.prototype,"hasMenu",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data.truncateParagraphs"),_.P("design:type",Object),_.P("design:paramtypes",[])],gK.prototype,"truncateParagraphs",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.paragraphMaxLines"),_.P("design:type",Number),_.P("design:paramtypes",[])],gK.prototype,"paragraphMaxLines",null);
_.p([_.U({type:_.x("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.l("data.background"),_.P("design:type",Object),_.P("design:paramtypes",[])],gK.prototype,"background",null);_.p([_.I({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],gK);
_.a(gK,"ytd-info-panel-content-renderer",function(){if(TQJ!==void 0)return TQJ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return TQJ=q},{mode:_.Am("kevlar_poly_si_batch_j076")?1:2});var sd4;var nIj;var aTE;var S3q;var Z2=function(){return _.C.apply(this,arguments)||this};
_.Y(Z2,_.C);Z2.prototype.computeStyle=function(q){return q};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Z2.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],Z2.prototype,"style_",void 0);_.p([_.Ok({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Z2);
_.a(Z2,"yt-channel-thumbnail-with-link-renderer",function(){if(S3q===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;aTE===void 0&&(aTE=document.createElement("template"));var y=aTE;b.call(N,y.content.cloneNode(!0),q.content.firstChild);S3q=q}q=S3q;return q},{mode:2});var FT=function(){return _.C.apply(this,arguments)||this};
_.Y(FT,_.C);FT.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"}}}};
FT.prototype.computeTitleStyle=function(q){return q||null};
FT.prototype.computeAvatarStyle=function(q){return q||null};
FT.prototype.computeShowNavigationButton=function(q,N){return!(q==null||!q.navigationButton||N)};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],FT.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],FT.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.P("design:type",String)],FT.prototype,"titleStyle",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.P("design:type",String)],FT.prototype,"avatarStyle",void 0);_.p([_.U(),_.P("design:type",Boolean)],FT.prototype,"hideNavigationButton",void 0);_.p([_.I({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],FT);
_.a(FT,"ytd-rich-list-header-renderer",function(){if(nIj!==void 0)return nIj;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return nIj=q},{mode:_.Am("kevlar_poly_si_batch_j058")?1:2});var RH=function(){return _.C.apply(this,arguments)||this};
_.Y(RH,_.C);RH.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]]"}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],RH.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],RH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],RH.prototype,"data",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],RH.prototype,"isSearch",void 0);_.p([_.I({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],RH);
_.a(RH,"ytd-preview-card-renderer",function(){if(sd4!==void 0)return sd4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return sd4=q},{mode:1});var WBF;var dK=function(){return _.C.apply(this,arguments)||this};
_.Y(dK,_.C);dK.prototype.configureRendererStamper=function(){return{"data.menu":TQ}};
dK.prototype.dataChanged=function(){var q=this.get("colorExtractionPalette.section1Color",this.data);q=_.GM(q);_.Jm(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":q})};
dK.prototype.computeCardStyle=function(q){return this.get("style.value",q)||null};
dK.prototype.dataChanged=dK.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],dK.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],dK.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],dK.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.P("design:type",String)],dK.prototype,"cardStyle",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dK.prototype,"dataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],dK);
_.a(dK,"ytd-compact-channel-recommendation-card-renderer",function(){if(WBF!==void 0)return WBF;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return WBF=q},{mode:1});var LBj;var pIE;var cj=function(){var q=_.C.apply(this,arguments)||this;q.alignAuto=!1;q.collapsed=!0;q.isToggled=!1;q.alwaysCollapsed=!1;q.canToggle=!0;q.collapsedHeight=80;q.disableToggle=!1;q.alwaysToggleable=!1;q.reversed=!1;q.shouldUseNumberOfLines=!1;q.recomputeOnResize=!1;q.canToggleJobId=0;q.lastReversed=!1;return q};
_.Y(cj,_.C);_.g=cj.prototype;_.g.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.g.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.g.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var q=_.ee(this.hostElement),N=q.childNodes,b=document.createDocumentFragment(),y=q.childNodes.length-1;y>=0;y--)_.ee(b).appendChild(N[y]);_.x("enable_shadydom_free_scoped_node_methods")?_.BP(this.hostElement).appendChild(b):q.appendChild(b)}};
_.g.ready=function(){var q=this;_.k9(function(){q.initChildrenObserver()},1)};
_.g.attached=function(){var q;(q=this.resizeObserver)==null||q.observe(this.content)};
_.g.detached=function(){this.detachObserver()};
_.g.toggle=function(q,N){this.canToggle&&(this.isToggled=N,_.e2(this.hostElement,"yt-refit"),q&&q.stopPropagation())};
_.g.reset=function(){this.childrenChanged()};
_.g.onIronResize=function(){this.recomputeOnResize&&!_.x("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.g.computeIsMoreVisible=function(q,N){return q&&!N};
_.g.computeShouldUseNumberOfLines=function(q){try{return!!q&&window.CSS.supports("-webkit-line-clamp","1")}catch(N){}return!1};
_.g.computeIsLessVisible=function(q,N){return q&&N};
_.g.observeCollapsedHeightAndMaxLines=function(){var q=this.collapsedHeight,N=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Jm(this.hostElement,{"--ytd-expander-max-lines":""+N,"--ytd-expander-collapsed-height":""}):_.Jm(this.hostElement,{"--ytd-expander-collapsed-height":q+"px","--ytd-expander-max-lines":""})};
_.g.handleMoreTap=function(q){this.disableToggle||(_.e2(this.hostElement,"yt-expander-more-tapped"),this.toggle(q,!0))};
_.g.handleLessTap=function(q){_.e2(this.hostElement,"yt-expander-less-tapped");this.toggle(q,!1)};
_.g.initChildrenObserver=function(){var q=this;this.observer=new MutationObserver(function(){q.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.x("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.El(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var N;(N=q.resizeThrottle)==null||N.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.g.childrenChanged=function(){var q=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){e_(function(){q.canToggleJobId=0;q.calculateCanCollapse()})}))};
_.g.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};
_.g.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.g.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("collapsed-changed",this.collapsed))};
_.g.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("is-toggled-changed",this.isToggled))};
_.g.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("can-toggle-changed",this.canToggle))};
_.$H.Object.defineProperties(cj.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
cj.prototype.canToggleChangedForBinding=cj.prototype.canToggleChangedForBinding;cj.prototype.isToggledChangedForBinding=cj.prototype.isToggledChangedForBinding;cj.prototype.collapsedChangedForBinding=cj.prototype.collapsedChangedForBinding;cj.prototype.observeCollapsedHeightAndMaxLines=cj.prototype.observeCollapsedHeightAndMaxLines;cj.prototype.onIronResize=cj.prototype.onIronResize;cj.prototype.reversedChanged=cj.prototype.reversedChanged;cj.prototype.toggledChanged=cj.prototype.toggledChanged;
cj.prototype.alwaysToggleableChanged=cj.prototype.alwaysToggleableChanged;_.p([_.O(_.SQ),_.P("design:type",Object)],cj.prototype,"ironResizableBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],cj.prototype,"alignAuto",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],cj.prototype,"collapsed",void 0);_.p([_.U(),_.P("design:type",Object)],cj.prototype,"isToggled",void 0);_.p([_.U(),_.P("design:type",Object)],cj.prototype,"alwaysCollapsed",void 0);
_.p([_.U(),_.P("design:type",Object)],cj.prototype,"canToggle",void 0);_.p([_.U(),_.P("design:type",Object)],cj.prototype,"collapsedHeight",void 0);_.p([_.U(),_.P("design:type",Object)],cj.prototype,"disableToggle",void 0);_.p([_.U(),_.P("design:type",Object)],cj.prototype,"alwaysToggleable",void 0);_.p([_.U(),_.P("design:type",Object)],cj.prototype,"reversed",void 0);_.p([_.U(),_.P("design:type",Number)],cj.prototype,"maxNumberOfLines",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.P("design:type",Object)],cj.prototype,"shouldUseNumberOfLines",void 0);_.p([_.U(),_.P("design:type",Object)],cj.prototype,"recomputeOnResize",void 0);_.p([_.dq("#content"),_.P("design:type",HTMLDivElement)],cj.prototype,"content",void 0);_.p([_.$9("alwaysToggleable"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cj.prototype,"alwaysToggleableChanged",null);
_.p([_.$9("isToggled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cj.prototype,"toggledChanged",null);_.p([_.l("canToggleJobId"),_.P("design:type",Object),_.P("design:paramtypes",[])],cj.prototype,"isResetting",null);_.p([_.FY("reversed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cj.prototype,"reversedChanged",null);
_.p([_.ZP("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cj.prototype,"onIronResize",null);_.p([_.FY("maxNumberOfLines","collapsedHeight"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cj.prototype,"observeCollapsedHeightAndMaxLines",null);_.p([_.FY("collapsed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cj.prototype,"collapsedChangedForBinding",null);
_.p([_.FY("isToggled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cj.prototype,"isToggledChangedForBinding",null);_.p([_.FY("canToggle"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cj.prototype,"canToggleChangedForBinding",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-expander"})],cj);
_.a(cj,"ytd-expander",function(){if(pIE!==void 0)return pIE;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return pIE=q},{mode:1});var u1=function(){return _.C.apply(this,arguments)||this};
_.Y(u1,_.C);u1.prototype.computeIsCarousel=function(q){return!!q.isCarousel};
u1.prototype.observeLightsourcePalette=function(){var q,N=(q=this.data)==null?void 0:q.vibrantsourceColorPaletteData;N&&_.V0(this.hostElement,N)};
u1.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
u1.prototype.observeLightsourcePalette=u1.prototype.observeLightsourcePalette;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],u1.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],u1.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],u1.prototype,"data",void 0);_.p([_.U({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],u1.prototype,"isCarousel",void 0);
_.p([_.FY("data.vibrantsourceColorPaletteData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],u1.prototype,"observeLightsourcePalette",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],u1);
_.a(u1,"ytd-media-upsell-renderer",function(){if(LBj!==void 0)return LBj;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return LBj=q},{mode:2});var PsJ;var tv=function(){var q=_.C.apply(this,arguments)||this;q.JSC$15147_playerEvents=new Map;q.listeningToPlayer=!1;q.startX=0;q.active=!1;q.shouldShowButtons=_.x("web_buttons_hidden_killswitch");q.isHighlighted=!1;q.useHighlightStyling=_.x("web_enable_deeper_metadata_highlight_styling");q.enableProblemWalkthrough=_.x("problem_walkthrough_sd");return q};
_.Y(tv,_.C);_.g=tv.prototype;
_.g.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}}}}}};
_.g.created=function(){this.JSC$15147_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.g.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.gq(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.gq(this,this.onActiveUpdate))};
_.g.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.gq(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.gq(this,this.onActiveUpdate))};
_.g.onDataChanged=function(){this.removePlayerListeners()};
_.g.onColorPaletteChange=function(){var q={},N;if(_.D4()==="USER_INTERFACE_THEME_DARK"&&((N=this.data)==null?0:N.darkColorPalette)){var b=this.data.darkColorPalette;q["--ytd-macro-markers-list-item-background-color"]=_.Y8(this.get("section2Color",b))}else{var y;_.D4()==="USER_INTERFACE_THEME_LIGHT"&&((y=this.data)==null?0:y.lightColorPalette)&&(b=this.data.lightColorPalette,q["--ytd-macro-markers-list-item-background-color"]=_.Y8(this.get("section3Color",b)))}b?(q["--ytd-macro-markers-list-item-title-color"]=
_.Y8(this.get("primaryTitleColor",b)),q["--ytd-macro-markers-list-item-secondary-color"]=_.Y8(this.get("secondaryTitleColor",b)),q["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Y8(this.get("section1Color",b)),this.customButtonProperties={customColors:{color:_.Y8(this.get("primaryTitleColor",b))}},this.useColorSampling=!0):(q["--ytd-macro-markers-list-item-background-color"]="initial",q["--ytd-macro-markers-list-item-title-color"]="initial",q["--ytd-macro-markers-list-item-secondary-color"]=
"initial",q["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Jm(this.hostElement,q)};
_.g.onEndpointMouseDown=function(q){this.startX=q.clientX};
_.g.onEndpointClick=function(q){var N=this,b,y,J;return _.d(function(E){if(E.nextAddress==1){if(N.startX!==q.clientX)return q.preventDefault(),E.return();N.data&&N.ytRendererBehavior.logExplicitClick(N.data);if(!N.seekWithAnimationOnClick)return E.jumpTo(0);if(q.button!==0||q.shiftKey||q.altKey||q.metaKey||q.ctrlKey||_.Su(_.n9(q),N.hostElement,["BUTTON".toString()]))return E.return();q.stopPropagation();q.preventDefault();return N.data?E.yield(_.MO().getPlayerPromise(),3):E.return()}b=E.yieldResult;
J=(y=_.v(N.data.onTap,_.nx))==null?void 0:y.startTimeSeconds;J!==void 0&&b.seekToTimeWithAnimation(J*1E3,_.ao(N.data.title));_.hj(E)})};
_.g.computeLayout=function(q){return q};
_.g.computeIsHighlighted=function(q){return!!q};
_.g.computeCarouselType=function(q){return q};
_.g.hideCarousel=function(q){return this.hideThumbnail(q)};
_.g.hideThumbnail=function(q){return this.enableProblemWalkthrough&&q!==null&&q==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.g.onRepeatButtonToggle=function(q){var N=this;q.detail.toggled&&_.MO().getPlayerPromise().then(function(b){N.ytPlayerListenerBehavior.listenToPlayerEvents(b,N.JSC$15147_playerEvents);N.listeningToPlayer=!0})};
_.g.onLoopRangeChange=function(q){var N=_.ee(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(N){var b=N.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",N.polymerController.data);if(b){var y=Number(b.endTimeMs);if(Number(b.startTimeMs)!==(q==null?void 0:q.startTimeMs)||y!==(q==null?void 0:q.endTimeMs))N.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.g.removePlayerListeners=function(){var q=this;this.listeningToPlayer&&_.MO().getPlayerPromise().then(function(N){q.ytPlayerListenerBehavior.unlistenFromPlayerEvents(N,q.JSC$15147_playerEvents);q.listeningToPlayer=!1})};
_.g.onActiveUpdate=function(q){this.active=q.detail.active};
tv.prototype.onColorPaletteChange=tv.prototype.onColorPaletteChange;tv.prototype.onDataChanged=tv.prototype.onDataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],tv.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.d2.YtPlayerListenerBehavior),_.P("design:type",_.cX)],tv.prototype,"ytPlayerListenerBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],tv.prototype,"data",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],tv.prototype,"useCustomColors",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],tv.prototype,"active",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],tv.prototype,"shouldShowButtons",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.P("design:type",String)],tv.prototype,"layout",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.P("design:type",Object)],tv.prototype,"isHighlighted",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],tv.prototype,"useHighlightStyling",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],tv.prototype,"enableProblemWalkthrough",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.P("design:type",String)],tv.prototype,"carouselType",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],tv.prototype,"useColorSampling",void 0);_.p([_.U(),_.P("design:type",Boolean)],tv.prototype,"seekWithAnimationOnClick",void 0);_.p([_.U(),_.P("design:type",Object)],tv.prototype,"customButtonProperties",void 0);
_.p([_.dq("#repeat-button"),_.P("design:type",HTMLElement)],tv.prototype,"repeatButton",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tv.prototype,"onDataChanged",null);_.p([_.FY("data.lightColorPalette","data.darkColorPalette"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tv.prototype,"onColorPaletteChange",null);_.p([_.I({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],tv);
_.a(tv,"ytd-macro-markers-list-item-renderer",function(){if(PsJ!==void 0)return PsJ;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return PsJ=q},{mode:1});var M3T;var oIT;var mo=function(){return _.C.apply(this,arguments)||this};
_.Y(mo,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],mo.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],mo);
_.a(mo,"ytd-title-and-button-list-header-renderer",function(){if(oIT!==void 0)return oIT;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return oIT=q},{mode:1});var AkJ;var e$T=new _.Jw("BUTTON_RENDERER_TOKEN");_.rK=_.n(function(q){var N=_.tz().resolve(e$T);return _.u(N,Object.assign({},q,{overrides:q.buttonOverrides}))},"Wa");var BQx=_.n(function(q){var N=q.data,b=_.aU(q.useSquareAspectRatio,!1);return _.u("dismissed-mini-game-card-view-model",null,_.u(_.t,{cond:function(){var y,J;return(y=N().responseText)==null?void 0:(J=y.runs)==null?void 0:J.length},
then:function(){var y={};return _.u("div",{class:_.NO("yt-mini-game-card-view-model__dismissed-card",(y["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!b()},y["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.x("web_game_card_force_2_by_3")},y["yt-mini-game-card-view-model--dismissed-square-card"]=b,y))},_.u("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.u(_.t,{cond:function(){return N().responseText.runs[0].text},
then:function(J){return _.u("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:J},J)}}),_.u(_.zS,{data:function(){return N().buttons}},{buttonRenderer:_.rK,
buttonViewModel:_.Ou})))}}))},"Xa");var Hej=_.n(function(q){var N=q.data;return _.u("br-nz-badge-shape",{class:_.NO(function(){return Vte(N().brNzRatingBadgeType)}),
role:function(){return N().accessibilityText?"img":void 0},
"aria-label":function(){return N().accessibilityText}},function(){var b;
return(b=N())==null?void 0:b.text})},"Ya");_.XT=_.n(function(q){var N=function(){var b=q.data(),y,J,E,F;if(b){var R=!((y=q.workaroundShortsIsThumbnailBadge)==null||!y.call(q));y=(J=q.modern)==null?void 0:J.call(q);J=(E=q.numBadgesInRow)==null?void 0:E.call(q);E=(F=q.clipTextOverflow)==null?void 0:F.call(q);var c;a:switch(b.badgeStyle){case "BADGE_OVERLAY":F=!0;break a;default:F=!1}b={type:R?17:jaR(b.badgeStyle),brNzRatingBadgeType:xUh(b.badgeStyle),text:b.badgeText,icon:b.iconName,isOverlay:F,modern:y||_.x("web_modern_badge_view_model"),accessibilityText:b.accessibilityLabel||
((c=_.v(b.rendererContext,_.$A))==null?void 0:c.label),numBadgesInRow:J,clipTextOverflow:E}}else b=void 0;return b};
return _.u("yt-badge-view-model",{class:_.NO("ytBadgeViewModelHost",q.class)},_.u(_.sw,null,_.u(_.CI,{when:function(){var b;return!((b=N())==null||!b.brNzRatingBadgeType)}},function(){return _.u(Hej,{data:function(){return N()}})}),_.u(_.CI,{when:function(){return!!N()&&!N().brNzRatingBadgeType}},function(){return _.u(_.Eo,{data:function(){return N()}})})))},"Za");
_.XT.idomCompat=!0;var ZHo=_.n(function(q){q=_.Sl(q,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var N=q.data,b=q.useFullWidth,y=q.isDesktopWeb,J=q.addSearchResultTopMargin,E=function(){return N().layout},F=function(){return N().title},R=function(){return N().metadataText?N().metadataText:N().genre},c=function(){return N().channelName},z=function(){return N().image},m=function(){return N().colorPalette},r=function(){return N().actionButton},X=function(){return N().overflowButton},
V=function(){return N().avatar},G=function(){return N().ageRating},w=function(){var L={};
L=_.NO("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(L["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return y()},L));
return _.u("div",{class:L},_.u(qOv,{imageData:z,colorPalette:m}),_.u(NcJ,{onTap:function(){return N().onTap},
imageData:z,accessibilityText:function(){return N().accessibilityText},
overlayBadgeText:function(){return N().overlayBadgeText},
iconName:function(){return N().iconName},
unplayableInlinePlaybackIconName:function(){return N().unplayableInlinePlaybackIconName},
isDesktopWeb:y}),_.u(_.t,{cond:function(){return!y()},
then:function(){return _.u(_.rV,null,_.u(bH4,{layout:E,colorPalette:m,isDesktopWeb:y,overflowButton:X,avatar:V,onTap:function(){return N().onTap},
genre:R,title:F,channelName:c}),_.u(ycE,{actionButton:r}))}}))},D=function(){var L={};
L=_.NO((L["yt-mini-game-card-view-model--search-result-desktop"]=function(){return y()},L["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!y()},L["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return J()},L));
return _.u("div",{class:L},w(),_.u(Jco,{description:function(){return N().description},
isDesktopWeb:y,title:F,genre:R,onTap:function(){return N().onTap},
actionButton:r,overflowButton:X,avatar:V,channelName:c}))},k=function(){var L={};
L=_.NO("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(L["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return y()},L["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return y()&&N().width===135},L["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return y()},L["yt-mini-game-card-view-model--big-metadata-font"]=function(){return N().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},L["yt-mini-game-card-view-model--use-full-width"]=
function(){return b()},L["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.x("web_game_card_force_2_by_3")},L));
return _.u("div",{class:L},_.u(E4o,{colorPalette:m,isDesktopWeb:y,onTap:function(){return N().onTap},
accessibilityText:function(){return N().accessibilityText},
overlayBadgeText:function(){return N().overlayBadgeText},
iconName:function(){return N().iconName},
unplayableInlinePlaybackIconName:function(){return N().unplayableInlinePlaybackIconName},
actionButton:r,imageData:z}),_.u(bH4,{layout:E,colorPalette:m,isDesktopWeb:y,overflowButton:X,avatar:V,onTap:function(){return N().onTap},
genre:R,title:F,channelName:c}),_.u(_.t,{cond:G,then:function(S){return _.u(g4F,{ageRating:S})}}))},f=function(){var L={};
L=_.NO("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(L["yt-mini-game-card-view-model--square-card-desktop"]=function(){return y()},L["yt-mini-game-card-view-model--use-full-width"]=function(){return b()},L));
return _.u("div",{class:L},_.u(NcJ,{onTap:function(){return N().onTap},
imageData:z,accessibilityText:function(){return N().accessibilityText},
overlayBadgeText:function(){return N().overlayBadgeText},
iconName:function(){return N().iconName},
unplayableInlinePlaybackIconName:function(){return N().unplayableInlinePlaybackIconName},
isDesktopWeb:y}),_.u(bH4,{layout:E,colorPalette:m,isDesktopWeb:y,overflowButton:X,avatar:V,onTap:function(){return N().onTap},
genre:R,title:F,channelName:c}),_.u(_.t,{cond:G,then:function(S){return _.u(g4F,{ageRating:S})}}))};
return _.u("mini-game-card-view-model",{class:q.className},_.u(_.sw,null,_.u(_.CI,{when:function(){return E()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return k()}),_.u(_.CI,{when:function(){return E()==="MINI_APP_LAYOUT_SQUARE"}},function(){return f()}),_.u(_.CI,{when:function(){return E()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return D()})))},"$a");
ZHo.idomCompat=!0;var ycE=_.n(function(q){var N=_.aU(q.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.u(_.zS,{data:q.actionButton},{buttonViewModel:function(b){return _.u("div",{class:N},_.u(_.Ou,{data:b.data}))}})},"ab"),NcJ=_.n(function(q){var N=q.onTap;
var b=q.imageData;var y=q.accessibilityText;var J=q.overlayBadgeText;var E=q.iconName;var F=q.unplayableInlinePlaybackIconName;q=q.isDesktopWeb;return _.u(_.Vf,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:N},_.u(_.s_,{data:b,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(y==null?void 0:y())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.u(Fbo,{overlayBadgeText:J,iconName:E,unplayableInlinePlaybackIconName:F,isDesktopWeb:q}))},"bb"),Fbo=_.n(function(q){var N=q.overlayBadgeText;
var b=q.iconName;var y=q.unplayableInlinePlaybackIconName;var J=q.isDesktopWeb;return _.u("div",{class:"yt-mini-game-card-view-model__badge-container"},_.u(_.t,{cond:b,then:function(E){return _.u("div",{class:"yt-mini-game-card-view-model__badge"},_.u("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.u(_.FQ,{icon:E,className:"yt-mini-game-card-view-model__icon",size:12}),_.u("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},N)))}}),_.u(_.t,{cond:function(){return!b()&&
N()},
then:function(){return _.u("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},N)}}),_.u(_.t,{cond:function(){return y()&&J()},
then:function(){return _.u("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.u(_.FQ,{icon:y,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"cb"),qOv=_.n(function(q){var N=q.colorPalette;
var b=q.imageData;var y=function(){return N().vibrantColorPalette?N().vibrantColorPalette.section2Color:N().sectionTwoColor};
return _.u(_.rV,null,_.u("div",{class:"yt-mini-game-card-view-model__background-base",style:_.ZU({"background-color":function(){return Qk(y(),"1")}})}),_.u("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.ZU({"background-image":function(){return"url("+b().sources[0].url+")"}})}),_.u("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.ZU({background:function(){return"linear-gradient(180deg,\n    "+Qk(y(),".8")+" 0%,\n    "+Qk(y(),".4")+" 25%,\n    "+Qk(N().vibrantColorPalette?N().vibrantColorPalette.section4Color:N().sectionFourColor,".8")+" 100%)"}})}))},"db"),bH4=_.n(function(q){var N=q.layout;
var b=q.colorPalette;var y=q.overflowButton;var J=q.avatar;var E=q.onTap;var F=q.title;var R=q.channelName;var c=q.genre;var z=function(){var m;return N()!=="MINI_APP_LAYOUT_SQUARE"&&((m=b())==null?0:m.textPrimaryColor)?"color: "+Qk(b().textPrimaryColor,".7"):""};
return _.u("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.u(_.t,{cond:J,then:function(){return _.u("div",{class:"yt-mini-game-card-view-model__avatar"},_.u(_.zS,{data:J},{avatarViewModel:_.HF}))}}),_.u(_.Vf,{command:E,
className:"yt-mini-game-card-view-model__metadata-details"},_.u("h3",{class:"yt-mini-game-card-view-model__title",title:F},F),_.u(_.t,{cond:J,then:function(){return _.u("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.u("span",{class:"yt-mini-game-card-view-model__genre",title:R,style:z},R),_.u("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:z},c))},
else:function(){return _.u("span",{class:"yt-mini-game-card-view-model__genre",title:c},c)}})),_.u("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.u(_.zS,{data:y},{buttonViewModel:function(m){var r=m.data;
return _.u(_.Ou,{data:function(){return Object.assign({},r(),{customFontColor:N()==="MINI_APP_LAYOUT_SINGLETON"?r().customFontColor:void 0})}})}})))},"eb"),E4o=_.n(function(q){var N=q.colorPalette;
var b=q.isDesktopWeb;var y=q.onTap;var J=q.accessibilityText;var E=q.overlayBadgeText;var F=q.iconName;var R=q.unplayableInlinePlaybackIconName;var c=q.actionButton;q=q.imageData;return _.u("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.u(qOv,{imageData:q,colorPalette:N}),_.u(NcJ,{onTap:y,imageData:q,accessibilityText:J,overlayBadgeText:E,iconName:F,unplayableInlinePlaybackIconName:R,isDesktopWeb:b}),_.u(_.t,{cond:function(){return c==null?void 0:c()},
then:function(){return _.u(ycE,{actionButton:c})}}))},"fb"),Jco=_.n(function(q){var N=q.description;
var b=q.isDesktopWeb;var y=q.title;var J=q.genre;var E=q.onTap;var F=q.actionButton;var R=q.overflowButton;var c=q.avatar;q=q.channelName;var z={};z=_.NO("yt-mini-game-card-view-model--search-result-metadata-wrapper",(z["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=b,z["yt-mini-game-card-view-model--show-unplayable-on-hover"]=b,z["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!b()},z));
var m={};m=_.NO("yt-mini-game-card-view-model__search-result-info-row",(m["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!b()},m));
return _.u("div",{class:z},_.u("div",{class:m},_.u(_.Vf,{command:E,className:"yt-mini-game-card-view-model__metadata-details"},_.u("h3",{class:"yt-mini-game-card-view-model__title",title:y},y),_.u("span",{class:"yt-mini-game-card-view-model__genre",title:J},J)),_.u(ycE,{actionButton:F,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.u("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.u(_.zS,{data:R},{buttonViewModel:_.Ou}))),_.u("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.u("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.u("div",{class:"yt-mini-game-card-view-model__avatar"},_.u(_.zS,{data:c},{avatarViewModel:function(r){var X=r.data;return _.u(_.HF,{data:function(){return Object.assign({},X(),{avatarImageSize:b()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.u(_.Vf,{command:E,
className:"yt-mini-game-card-view-model__description"},_.u("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},q)),_.u(_.Vf,{command:E,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.u("div",null)))),_.u(_.t,{cond:b,then:function(){return _.u(_.Vf,{command:E,className:"yt-mini-game-card-view-model__description"},N)}}))},"gb"),g4F=_.n(function(q){var N=q.ageRating;
return _.u("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.u(_.s_,{data:function(){return{sources:[{url:N().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.u(_.XT,{data:function(){return{badgeText:N().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"hb");_.P$(ZHo,"mini-game-card-view-model",{props:{data:_.F5,className:_.F5,useFullWidth:_.F5,isDesktopWeb:_.F5,addSearchResultTopMargin:_.F5}});_.P$(BQx,"dismissed-mini-game-card-view-model",{props:{data:_.F5,useSquareAspectRatio:_.F5}});var V3=function(){var q=_.C.apply(this,arguments)||this;q.isSearch=!1;q.isRichGrid=!1;return q};
_.Y(V3,_.C);_.g=V3.prototype;_.g.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.g.dismissibleItemOnYtServiceRequestSent=function(q,N){N.actions&&this.dismissibleItemProcessActions(q,N.actions)};
_.g.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.g.dataChanged=function(){this.dismissibleItemReset()};
_.g.dismissibleItemProcessActions=function(q,N){for(var b=0;b<N.length;b++){var y=N[b];_.v(y,_.fO)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.v(y,_.fO)),q.stopPropagation())}};
_.g.dismissibleItemHandleReplaceEnclosingAction=function(q){this.dismissedRenderer=q.item;this.isDismissed=!0};
_.$H.Object.defineProperties(V3.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var q;return!!this.data&&!((q=this.dismissedRenderer)==null?0:q.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.dismissedRenderer)==null||!q.notificationMultiActionRenderer)}}});
V3.prototype.dataChanged=V3.prototype.dataChanged;V3.prototype.dismissibleItemOnRequestSent=V3.prototype.dismissibleItemOnRequestSent;V3.prototype.dismissibleItemOnYtServiceRequestSent=V3.prototype.dismissibleItemOnYtServiceRequestSent;_.p([_.U(),_.P("design:type",Object)],V3.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],V3.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],V3.prototype,"isDismissed",void 0);
_.p([_.U(),_.P("design:type",Object)],V3.prototype,"dismissedRenderer",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],V3.prototype,"isRichGrid",void 0);_.p([_.l("data.layout"),_.P("design:type",Object),_.P("design:paramtypes",[])],V3.prototype,"useSquareAspectRatio",null);_.p([_.l("data","dismissedRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],V3.prototype,"showCard",null);
_.p([_.l("data","dismissedRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],V3.prototype,"showDismissed",null);_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],V3.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.p([_.ZP("yt-service-request-sent-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],V3.prototype,"dismissibleItemOnRequestSent",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],V3.prototype,"dataChanged",null);_.p([_.Ok({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],V3);
_.a(V3,"ytd-mini-game-card-view-model",function(){if(AkJ!==void 0)return AkJ;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return AkJ=q},{mode:_.Am("kevlar_poly_si_batch_j081")?1:2});var Rij;var dDo;var ji=function(){return _.t9.apply(this,arguments)||this};
_.Y(ji,_.t9);ji.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
ji.prototype.getContinuationUrl=function(q){var N={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(N.itct=this.data.clickTrackingParams);return _.F$(q,N)};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ji.prototype,"data",void 0);_.p([_.Ok({is:"yt-reload-continuation",noInjection:!0})],ji);var ccR;var upE;var xx=function(){var q=_.C.apply(this,arguments)||this;q.notificationData={};return q};
_.Y(xx,_.C);_.g=xx.prototype;_.g.isMenuExpanded=function(q){return q&&q.length<=1?"undefined":"false"};
_.g.dataChanged_=function(){this.selected=void 0;var q=this.computeSelectedIndex_(this.data);q>=0&&(this.selected=q);q=this.data&&this.data.length>1;_.HP(this.hostElement,"has-items",q);_.ee(this.hostElement).querySelector("#label").tabIndex=q?0:-1};
_.g.onDropdownOpen=function(){var q=_.Oe();if(this.parentTrackingParams&&this.data){var N=_.zT(this.parentTrackingParams);this.data.forEach(function(b){q&&N&&b.trackingParams&&(b=_.zT(b.trackingParams),_.fr(q,N,b),_.Tr(q,[b]))})}else this.parentTrackingParams||_.M6(new _.IO("No parent tracking params passed in for yt-dropdown-menu."))};
_.g.hasNotification=function(q){var N;if(q.targetId&&((N=this.notificationData)==null?0:N.targetId)){var b;return q.targetId===((b=this.notificationData)==null?void 0:b.targetId)}};
_.g.computeSelectedIndex_=function(q){if(q)for(var N=0,b=q.length;N<b;N++)if(q[N].selected)return N;return-1};
_.g.computeLabel_=function(q){return this.data&&q!=void 0?this.data[q].title:""};
_.g.computeShowIcon_=function(q,N){return!N&&!!q};
_.g.computeVerticalOffset_=function(q){return q?36:0};
_.g.computeEndpoint_=function(q){return q.endpoint||q.navigationEndpoint};
_.g.onLabelClick_=function(q){this.data&&this.data.length<=1?q.stopPropagation():this.menuExpanded="true"};
_.g.onIronActivate_=function(q){q=q.detail.item;var N=_.ee(this.hostElement).querySelector("#repeat").itemForElement(q);if(N&&N.trackingParams){var b=_.Oe(),y=_.zT(N.trackingParams);b&&_.nr(b,y)}if(N&&N.serviceEndpoint)_.x("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(N.serviceEndpoint):_.qc(this.hostElement,[N.serviceEndpoint]),_.e2(this.hostElement,"yt-playlist-reloading");else a:{if((N=q.querySelector("yt-supported-renderers"))&&
(N=N.rendererElement)&&N.is=="yt-reload-continuation"){N.trigger();break a}(q=q.querySelector("yt-reload-continuation"))&&q.trigger()}};
_.g.onTap_=function(q){q.preventDefault()};
_.g.onItemTap_=function(q){this.ytEndpointBehavior.onEndpointTap_(q)};
_.g.onLinkFocus_=function(q){try{var N=q.target}catch(y){}if(N){var b=N.querySelector("tp-yt-paper-item");b&&_.Uk(this,"focus",function(){b.focus()})}};
_.g.onMenuClose_=function(){this.menuExpanded="false"};
_.g.isLabelIconActive_=function(q){return q==="true"};
_.g.computeHasSubtitle_=function(q){return!!q};
_.g.computeHrefForItem_=function(q){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(q))};
_.g.updateSelectedFromBinding=function(q){this.selected=q.detail.value};
_.$H.Object.defineProperties(xx.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
xx.prototype.onMenuClose_=xx.prototype.onMenuClose_;xx.prototype.onTap_=xx.prototype.onTap_;xx.prototype.onIronActivate_=xx.prototype.onIronActivate_;xx.prototype.onDropdownOpen=xx.prototype.onDropdownOpen;xx.prototype.dataChanged_=xx.prototype.dataChanged_;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],xx.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.KV.YtEndpointBehavior),_.P("design:type",Object)],xx.prototype,"ytEndpointBehavior",void 0);
_.p([_.U(),_.P("design:type",Array)],xx.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],xx.prototype,"parentTrackingParams",void 0);_.p([_.U(),_.P("design:type",Object)],xx.prototype,"selected",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],xx.prototype,"useLabel",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],xx.prototype,"useComputedAriaLabel",void 0);_.p([_.U(),_.P("design:type",String)],xx.prototype,"icon",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],xx.prototype,"iconLabel",void 0);_.p([_.U(),_.P("design:type",String)],xx.prototype,"ariaLabel",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],xx.prototype,"disabled",void 0);_.p([_.U({computed:"isMenuExpanded(data)"}),_.P("design:type",String)],xx.prototype,"menuExpanded",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],xx.prototype,"closeOnActivate",void 0);
_.p([_.U({reflectToAttribute:!0,value:_.x("web_modern_buttons")}),_.P("design:type",Boolean)],xx.prototype,"modernButtons",void 0);_.p([_.U(),_.P("design:type",Object)],xx.prototype,"notificationData",void 0);_.p([_.l("ariaLabel, selected"),_.U(),_.P("design:type",String),_.P("design:paramtypes",[])],xx.prototype,"computedAriaLabel",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xx.prototype,"dataChanged_",null);
_.p([_.ZP("paper-dropdown-open"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],xx.prototype,"onDropdownOpen",null);_.p([_.ZP("iron-activate"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],xx.prototype,"onIronActivate_",null);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],xx.prototype,"onTap_",null);
_.p([_.ZP("iron-overlay-closed"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],xx.prototype,"onMenuClose_",null);_.p([_.Ok({is:"yt-dropdown-menu",disableElementRegistration:!0})],xx);
_.a(xx,"yt-dropdown-menu",function(){if(upE===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;ccR===void 0&&(ccR=document.createElement("template"));var y=ccR;b.call(N,y.content.cloneNode(!0),q.content.firstChild);upE=q}q=upE;return q},{mode:2});var vj=function(){var q=_.C.apply(this,arguments)||this;q.hasNotification=!1;return q};
_.Y(vj,_.C);vj.prototype.computeId=function(q){return q};
vj.prototype.computeHorizontalAlign=function(q){return q?"right":"left"};
vj.prototype.computeAccessibilityLabel=function(q){var N,b;return((N=q.accessibility)==null?void 0:(b=N.accessibilityData)==null?void 0:b.label)||null};
vj.prototype.notificationDataChanged=function(){var q;this.hasNotification=!!this.notificationData&&!((q=this.data)==null?0:q.icon)};
vj.prototype.notificationDataChanged=vj.prototype.notificationDataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.HW.YtLiveChatTooltipTargetingBehavior),_.P("design:type",Object)],vj.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],vj.prototype,"data",void 0);_.p([_.U({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.P("design:type",String)],vj.prototype,"id",void 0);
_.p([_.U({value:!1}),_.P("design:type",Boolean)],vj.prototype,"isRightAligned",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],vj.prototype,"disabled",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],vj.prototype,"closeOnActivate",void 0);_.p([_.U(),_.P("design:type",Object)],vj.prototype,"notificationData",void 0);_.p([_.U(),_.P("design:type",Object)],vj.prototype,"hasNotification",void 0);
_.p([_.U({value:!1}),_.P("design:type",Boolean)],vj.prototype,"useComputedAriaLabel",void 0);_.p([_.FY("notificationData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vj.prototype,"notificationDataChanged",null);_.p([_.Ok({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],vj);
_.a(vj,"yt-sort-filter-sub-menu-renderer",function(){if(dDo===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;Rij===void 0&&(Rij=document.createElement("template"));var y=Rij;b.call(N,y.content.cloneNode(!0),q.content.firstChild);dDo=q}q=dDo;return q},{mode:2});var zil=_.n(function(q){var N=q.data;var b=_.y0(function(){var E=N().onTap;(E=_.v(E,_.QI))&&_.tz().resolve(_.rO).resolveCommand(E);return!1}),y=function(){return{sources:[{url:N().thumbnailUrl,
width:120,height:90}]}},J=function(){return N().rating&&N().ratingA11yLabel&&N().reviewsCount&&N().reviewsCountA11yLabel};
return _.u("place-data-view-model",null,_.u(_.t,{cond:function(){return N().placeName&&N().placeCategory},
then:function(){return _.u("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":b},_.u(_.s_,{data:y,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.u(_.Vf,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return N().onTap}},_.u("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return N().placeName}},function(){return N().placeName})),_.u("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.u(_.t,{cond:J,
then:function(){return _.u("div",{class:_.NO("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.u("span",{class:"score",title:function(){return N().ratingA11yLabel}},function(){return N().rating}),_.u("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.u(_.FQ,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.u("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return N().reviewsCountA11yLabel}},function(){return N().reviewsCount}))},
else:function(){return _.u("div",{class:_.NO("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.u("div",{class:_.NO("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.u("span",{class:"category",
title:function(){return N().placeCategory}},function(){return N().placeCategory}))))}}))},"ib");
zil.idomCompat=!0;_.P$(zil,"place-data-view-model",{props:{data:_.F5}});var $Dq=new _.Jw("INLINE_PLAYBACK_HOOK_TOKEN");var tBx=G4({sharedUi:W3R});_.U$=YP(tBx)(tBx.sharedUi,{animatedThumbnailEnabledSelector:function(q){return q.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(q){return q.inlinePreviewEnabled},
currentPageTypeSelector:function(q){return q.currentPageType},
currentPageSubTypeSelector:function(q){return q.currentPageSubType},
persistentPanelVisibleSelector:function(q){return q.persistentPanelVisible}});var mD1=function(q){this.setActiveSlideIndex=q;this.jobIds=[];this.isSlideshowPlaying=!1},VBF=function(q,N){q.isSlideshowPlaying||(q.isSlideshowPlaying=!0,rcE(q),XOo(q,N,0))},rcE=function(q){_.B$(_.pY,function(){q.setActiveSlideIndex(0)},1)},XOo=function(q,N,b){q.jobIds.push(_.B$(_.pY,function(){var y=b<N-1?b+1:0;
q.setActiveSlideIndex(y);XOo(q,N,y)},1800))};var jnx;jnx=new _.Jw("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.xDR=new _.Jw("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");var v4T=new _.Jw("IMAGE_ON_LOAD_HANDLER_TOKEN");var GOo=_.n(function(q){return _.u("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.u(_.t,{cond:function(){var N;return(N=q.data())==null?void 0:N.thumbnail},
then:function(N){return _.u(_.s_,{data:N,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"jb");_.YOT=_.n(function(q){var N=q.data;var b=q.lockupExperiments;q={};return _.u("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.u("div",{class:_.NO("ytThumbnailOverlayButtonViewModelButton",(q.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var y;return b&&((y=b())==null?void 0:y.useLegacySizedIconButton)},q))},_.u(_.zS,{data:function(){return N().overlayButton}},{buttonViewModel:function(y){return _.u(_.Ou,{data:y.data,
buttonOverrides:function(){var J;return b&&((J=b())==null?0:J.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"kb");
_.YOT.idomCompat=!0;var Qn1=_.n(function(q){return _.u("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.y0(function(N){N.preventDefault();return!1})},_.u(_.zS,{data:function(){return q.data().buttons}},{toggleButtonViewModel:function(N){return _.u("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.u(_.LV,{data:N.data}))}}))},"lb");
Qn1.idomCompat=!0;var OHx=_.n(function(q){var N=function(){var b;return((b=_.v(q.data().rendererContext,_.$A))==null?void 0:b.label)||""};
return _.u("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.u(_.t,{cond:function(){return q.data().image},
then:function(){return _.u("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.u(_.s_,{data:function(){return q.data().image},
alt:N}))}}),_.u(_.t,{cond:function(){return q.data().text},
then:function(){return _.u("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return q.data().text})}}))},"mb");var wOR;wOR=_.U$.animatedThumbnailEnabledSelector;_.Gv=_.n(function(q){var N=[],b=function(){var X,V;return _.nnR((X=q.width)==null?void 0:X.call(q),(V=q.height)==null?void 0:V.call(q))},y=_.tz().resolve(_.$f(v4T)),J=_.dI("yt-thumbnail-view-model",function(){N.push("elRef.value set");
var X;(X=q.playbackRef)==null||X.call(q,{thumbnailElRef:J,thumbnail:q.data().image,thumbnailOverlays:q.data().overlays,thumbnailSize:b()})});
_.WC(function(){N.push("onInit");_.W1(function(){N.push("onCleanup")})});
var E=_.uR(wOR),F=function(){var X,V;return(V=(X=q.aspectRatio)==null?void 0:X.call(q))!=null?V:0},R=function(){return(q.data().image?_.EbD(q.data().image):F())<=1&&F()===0},c=function(){return R()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},z=function(){J.value||_.M6(new _.IO("Thumbnail elRef.value is null",N.join("\n")));
y&&J.value&&y(J.value)},m=function(){var X,V;
return((X=q.hovered)==null?void 0:X.call(q))&&b()!=="large"&&((V=q.data().overlays)==null?void 0:V.some(function(G){return _.v(G,Qr1)}))},r={};
return _.u("yt-thumbnail-view-model",{class:_.NO("ytThumbnailViewModelHost",q.className,function(){return GRJ(F())},function(){var X,V;
a:{var G=b(),w=(X=q.disableRounding)==null?void 0:X.call(q);X=(V=q.isClip)==null?void 0:V.call(q);if(!w&&!X)switch(G){case "large":V="ytThumbnailViewModelLarge";break a;case "small":V="ytThumbnailViewModelSmall";break a;default:V="ytThumbnailViewModelMedium";break a}V=void 0}return V},(r.ytThumbnailViewModelCinematic=R,r)),
style:_.ZU({"background-color":function(){var X,V=R()?(X=q.data().backgroundColor)==null?void 0:X.lightTheme:void 0;return V?Qk(V,"1"):void 0}}),
el:J},_.u(_.t,{cond:R,then:function(){return _.u("div",{class:"ytThumbnailViewModelBlurredImage"},_.u(_.s_,{data:function(){return q.data().image},
alt:"",contentMode:c,targetWidth:q.width,onload:z}))}}),_.u("div",{class:"ytThumbnailViewModelImage"},_.u(_.s_,{data:function(){return q.data().image},
alt:"",contentMode:c,targetWidth:q.width,onload:z}),null),_.u(_.zS,{data:function(){return m()?void 0:q.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:iev,thumbnailOverlayBadgeViewModel:function(X){return _.u(_.lTF,{data:X.data,thumbnailSize:b,isClip:q.isClip})},
thumbnailBottomOverlayViewModel:function(X){return _.u(Y3l,{data:X.data,thumbnailSize:b,isClip:q.isClip})},
thumbnailOverlayFullViewModel:OHx,thumbnailOverlayButtonViewModel:function(X){return _.u(_.YOT,{data:X.data,lockupExperiments:q.lockupExperiments})},
channelDisclosureViewModel:function(X){X=X.data;var V;return _.u("div",null,(V=_.tz().resolve(_.$f(jnx)))==null?void 0:V({data:X}))}}),_.u(_.zS,{data:function(){var X;
return((X=q.hovered)==null?0:X.call(q))?q.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(X){return _.u(BF,{data:X.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:Qn1}),_.u(_.zS,{data:function(){var X;return((X=q.hovered)==null?0:X.call(q))&&E()?q.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:GOo}),_.u(_.t,{cond:q.isClip,then:function(){return _.u("div",{class:"ytPinkingNsHost"},_.u("svg",{class:"ytPinkingNsPinkingLeft"},_.u("defs",null,_.u("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.u("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.u("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.u("svg",{class:"ytPinkingNsPinkingRight"},_.u("defs",null,_.u("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.u("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.u("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"nb");
_.Gv.idomCompat={callbacks:{playbackRef:!0}};var iH4=_.n(function(q){var N=_.Z(_.QS(-1,void 0,"RW2Ole")),b=N.next().value,y=N.next().value;_.WC(function(){var J=new mD1(y);VBF(J,q.data().thumbnails.length);_.W1(function(){if(J.isSlideshowPlaying){J.isSlideshowPlaying=!1;for(var E=J.jobIds,F=0,R=E.length;F<R;F++)_.pY.cancelJob(E[F]);J.jobIds.length=0}})});
return _.u("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.u(_.zS,{data:function(){return q.data().thumbnails}},{thumbnailViewModel:function(J,E){return _.u("div",{class:function(){var F=!q.data().primaryThumbnail,R=E(),c=b(),z=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
F&&R===0&&z.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");R<=c&&z.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return z.join(" ")}},_.u(_.Gv,{data:J.data,
disableRounding:q.disableRounding}))}}))},"ob");
iH4.idomCompat=!0;var YTn=new _.Jw("DWELL_DETECTOR_REGISTRY_TOKEN");var Kbx=_.n(function(q){var N=Qan(q.triggeringElement),b=function(){return!!q.data().primaryThumbnail},y=function(){var E,F=(E=q.data())==null?void 0:E.maxHeight,R;
E=(R=q.maxHeight)==null?void 0:R.call(q);return F!=null&&E!=null?Math.min(F,E):E!=null?E:F},J=function(){var E=y();
if(E){var F;if(b()&&(F=q.includeStackHeight)!=null&&F.call(q)){var R;F=((R=q.doubleStack)==null?0:R.call(q))?8:4}else F=0;E=E-F-1;if(!(E<0)){R=Math;F=R.ceil;var c,z;var m=shA((z=(c=q.aspectRatio)==null?void 0:c.call(q))!=null?z:0);return F.call(R,E*m)}}};
return _.u("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.ZU({height:function(){return y()?y()+"px":void 0},
width:function(){return J()?J()+"px":void 0}})},_.u(lEo,{stackEnabled:b,
thumbnailSize:function(){var E,F;return _.nnR((E=q.width)==null?void 0:E.call(q),(F=q.height)==null?void 0:F.call(q))},
doubleStack:q.doubleStack,stackColor:function(){return q.data().stackColor},
includeStackHeight:q.includeStackHeight},_.u(_.zS,{data:function(){return q.data().primaryThumbnail}},{thumbnailViewModel:function(E){var F={};
return _.u(_.Gv,{data:E.data,width:q.width,height:q.height,aspectRatio:q.aspectRatio,disableRounding:q.disableRounding,className:_.NO((F.ytCollectionThumbnailViewModelHostHasStacks=b,F)),hovered:q.hovered,playbackRef:q.playbackRef})}}),_.u(_.t,{cond:function(){var E;
return N()&&((E=q.data().thumbnails)==null?void 0:E.length)},
then:function(){return _.u("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.u(iH4,{data:q.data,disableRounding:function(){return!b()}}))}})))},"pb");
Kbx.idomCompat={callbacks:{playbackRef:!0}};
var lEo=_.n(function(q){var N=q.children;var b=q.stackEnabled;var y=q.thumbnailSize;var J=q.doubleStack;var E=q.stackColor;var F=q.includeStackHeight;var R,c=(R=_.tz().resolve(_.$f(_.ft)))==null?void 0:R();return _.u(_.t,{cond:b,then:function(){return _.u(q3R,{data:function(){var z,m;return{experimentEnabled:!0,thumbnailSize:y(),doubleStack:J==null?void 0:J(),color:c?E==null?void 0:(z=E())==null?void 0:z.darkTheme:E==null?void 0:(m=E())==null?void 0:m.lightTheme,enableResponsiveMode:!1,includeStackHeight:F==
null?void 0:F()}}},N)},
else:function(){return N}})},"qb");var DDR=new _.Jw("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var Q3;_.Yx={calledOnce:!0,state:"visible"};Q3={calledOnce:!0,state:"hidden"};_.OE=_.n(function(q){var N=q.data;var b=q.customCommandResolver;var y=q.className;var J=q.delayedClassName;var E=q.animationEntityKey;var F=q.isCompactWidth;var R=q.isContentWidth;q=_.Z(_.QS(!1,void 0,"pC3tUb"));var c=q.next().value,z=q.next().value,m=_.aU(E,""),r=_.dj(xGh,m),X=function(){var rA,xD;return(xD=(rA=r())==null?void 0:rA.value)!=null?xD:!1},V=function(){_.nk(_.$e("booleanEntity",m(),{key:m(),
value:!0}));W=void 0};
E=_.Z(_.gJ(X));var G=E.next().value,w=E.next().value;E=_.Z(_.gJ(X));var D=E.next().value,k=E.next().value;E=_.Z(_.gJ(function(){var rA;return X()?(rA=N().styleTransitionConfig)==null?void 0:rA.destinationStyle:void 0}));
var f=E.next().value,L=E.next().value,S=function(){var rA=Object.assign({},N(),f()&&{style:f()});var xD,IJ,sJ=rA.label,Sn=(xD=rA.interaction)==null?void 0:(IJ=xD.accessibility)==null?void 0:IJ.label;xD=rA.iconImage?rA.label&&rA.label.content?rA.iconLeading?"leading":"trailing":"icon-only":void 0;rA={formattedButtonText:sJ,accessibilityLabel:Sn,style:lKA(rA.style),type:Kcd(rA.style),state:"active",size:iaA(rA.size),iconPosition:xD,disabled:!1,aTagConfig:wlu(rA,b)};_.x("enable_desktop_vdcbg_components")&&
(rA.focused=c());return rA},W;
E=_.mn({visibilityCallback:function(rA){var xD,IJ=(xD=N().interaction)==null?void 0:xD.onFirstVisible;rA&&IJ&&_.Kt(IJ)},
showOption:_.Yx});var M=function(){return onA(S(),!!N().iconImage)};
q={};var qe={};y=_.NO(function(){return"ytwAdButtonViewModelHost"},function(){return N().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var rA=!!N().delayedAppearanceConfig,xD=G();
return rA?xD?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var rA=!!N().delayedAppearanceConfig,xD=D();
return rA?xD?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!N().delayedAppearanceConfig||G()?J==null?void 0:J():""},(q.ytwAdButtonViewModelHostCompactWidth=function(){return F==null?void 0:F()},q),(qe.ytwAdButtonViewModelHostContentWidth=function(){return R==null?void 0:R()},qe),y!=null?y:"");
var RJ=function(){var rA,xD=(rA=N().delayedAppearanceConfig)==null?void 0:rA.delayedInvisibleSeconds;xD&&(W=_.rj(_.pY,function(){w(!0);tZ()},xD*1E3))},tZ=function(){var rA,xD=(rA=N().delayedAppearanceConfig)==null?void 0:rA.delayedVisibleSeconds;
xD&&(W=_.rj(_.pY,function(){k(!0);wA()},xD*1E3))},wA=function(){var rA,xD=(rA=N().styleTransitionConfig)==null?void 0:rA.styleTransitionSeconds,IJ,sJ=(IJ=N().styleTransitionConfig)==null?void 0:IJ.destinationStyle;
xD&&sJ?W=_.rj(_.pY,function(){L(sJ);V()},xD*1E3):V()};
_.WC(function(){RJ()});
_.W1(function(){W&&_.pY.cancelJob(W)});
return _.u("ad-button-view-model",{"on:focusin":_.y0(_.x("enable_desktop_vdcbg_components")?function(){var rA=_.tz().resolve(_.$f(_.X5));rA&&z(rA.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.y0(_.x("enable_desktop_vdcbg_components")?function(){z(!1);return!1}:void 0),
class:y,el:_.ai(E),style:_.ZU({"transition-duration":"0.3s"})},_.u(_.t,{cond:S,then:function(){return _.u(_.GE,{data:S,icon:function(){return _.u(_.t,{cond:function(){return N().iconImage},
then:function(rA){return _.u(_.s_,{data:rA,alt:"",targetWidth:M,targetHeight:M,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"sb");var hix=_.n(function(q){var N=q.data;q=function(){return N().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var b=_.mn({visibilityCallback:function(E){var F,R=(F=N().interaction)==null?void 0:F.onFirstVisible;E&&R&&_.Kt(R)},
showOption:_.Yx}),y={},J={};return _.u("ad-button-group-view-model",{class:_.NO("ytwAdButtonGroupViewModelHost",(y.ytwAdButtonGroupViewModelHostCompactWidth=q,y)),el:_.ai(b)},_.u("div",{class:_.NO("ytwAdButtonGroupViewModelHostSecondaryButton",(J.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=q,J))},_.u(_.zS,{data:function(){return N().secondaryAdButton}},{adButtonViewModel:function(E){return _.u(_.OE,{data:E.data})}})),_.u("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.u(_.zS,
{data:function(){return N().primaryAdButton}},{adButtonViewModel:function(E){return _.u(_.OE,{data:E.data})}})))},"tb");var kOv=_.n(function(q){var N=function(){var b;return((b=q.data())==null?void 0:b.answers)||[]};
return _.u("yt-survey-icons",{class:"ytSurveyIconsHost"},_.u("div",{class:"ytSurveyIconsHeader"},_.u("div",{class:"ytSurveyIconsTitle"},function(){var b;return(b=q.data())==null?void 0:b.text}),_.u("div",null,_.u(_.GE,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var b;(b=q.onDismiss)==null||b.call(q)}}},
iconName:"DISMISSAL"}))),_.u("div",null,_.u("div",{class:"ytSurveyIconsAnswers"},_.u(_.Tf,{each:function(){return N()},
keyBy:"INDEX"},function(b,y){return _.u("div",null,_.u(_.GE,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var J;(J=q.onSelect)==null||J.call(q,b(),y)}}},
icon:function(){return _.u(_.FQ,{icon:function(){var J,E;return(J=b())==null?void 0:(E=J.icon)==null?void 0:E.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.u("div",{class:"ytSurveyIconsAnswersText"},_.u("div",null,function(){return N().length?N()[0].text:""}),_.u("div",null,function(){return N().length?N()[N().length-1].text:""}))))},"ub");var UDE=_.n(function(q){var N=_.ai(_.QR(function(){var c;return(c=q.data())==null?void 0:c.rendererContext},void 0,void 0,void 0,!0)),b=_.Z(_.QS(!1,void 0,"GW0yjf")),y=b.next().value,J=b.next().value,E=_.dj(jsA,function(){var c;
return(c=q.data().keys)==null?void 0:c.surveyEntityKey}),F=_.dj(xSn,function(){var c;
return(c=q.data().keys)==null?void 0:c.surveyStateEntityKey});
_.Zm("ytd-slimline-survey-show-action",function(){J(!1)});
var R=function(){var c,z;var m=(c=F())==null?void 0:(z=c.questionStack)==null?void 0:z[0];if(m!==void 0){var r,X;return(r=E())==null?void 0:(X=r.questions)==null?void 0:X[m]}};
b={};return _.u("yt-slimline-survey-view-model",{el:N,class:_.NO("ytSlimlineSurveyViewModelHost",(b.ytSlimlineSurveyViewModelCollapsed=function(){return y()},b))},_.u("div",{class:"ytSlimlineSurveyViewModelContainer"},_.u(_.t,{cond:function(){var c;
return((c=R())==null?void 0:c.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.u(kOv,{data:function(){return R()},
onSelect:function(c,z){var m,r;return _.d(function(X){J(!0);if(r=(m=q.data())==null?void 0:m.onSelectRating)_.Kt(r),_.nk(yKl(z));_.hj(X)})},
onDismiss:function(){J(!0);var c;var z=(c=E())==null?void 0:c.dismissalFeedbackToken;c=z?{feedbackEndpoint:{feedbackToken:z}}:void 0;c&&_.wa(c,{form:{element:N.value}})}})}})))},"vb");var fEM=_.n(function(q){return _.u("yt-table-view-model",{class:_.NO("ytTableViewModelHost",q.className)},_.u(_.Tf,{each:function(){return q.data().rows||[]}},function(N){var b={};
return _.u("div",{class:_.NO("ytTableViewModelRow",(b.ytTableViewModelRowBottomBorder=function(){return q.data().showSeparators},b))},_.u(_.Tf,{each:function(){return(N==null?void 0:N.cells)||[]}},function(y,J){var E,F={};
return _.u("span",{class:_.NO((F.ytTableViewModelRowLabel=function(){return J()===0&&q.data().showHorizontalHeaders},F.ytTableViewModelCell=function(){return!q.data().showHorizontalHeaders||J()>0},F))},(E=y.text)==null?void 0:E.content)}))}))},"wb");var Cmv=_.n(function(q){return _.u("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.u(_.zS,{data:function(){var N;return(N=q.data())==null?void 0:N.attachments}},{flexibleActionsViewModel:function(N){return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.u(_.NW,{data:N.data,
layout:function(){var b;return((b=q.lockupStyle())==null?void 0:b.arrangement)===1?0:1},
justifyContentOverride:function(){var b;return((b=q.lockupStyle())==null?void 0:b.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(N){return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.u(UDE,{data:N.data}))},
expandableMetadataViewModel:function(N){N=N.data;var b;return _.u("div",{class:_.NO("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(b=_.tz().resolve(_.$f(DDR)))==null?void 0:b({data:N}))},
adButtonGroupViewModel:function(N){return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.u(hix,{data:N.data}))},
adButtonViewModel:function(N){return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.u(_.OE,{data:N.data,isCompactWidth:!0}))},
tableViewModel:function(N){return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.u(fEM,{data:N.data}))},
aiCompanionAttachmentViewModel:function(N){N=N.data;var b;return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},(b=_.tz().resolve(_.$f(_.xDR)))==null?void 0:b({data:N}))}}))},"xb");var COh=_.VX("rich_grid_min_item_width",310),UUz=_.VX("rich_grid_max_item_width",500);var ple,LcC;ple=16/9;LcC=2/3;_.wK=_.n(function(q){var N=q.data;var b=q.className;var y=q.imageSizeConfig;var J=q.notifyOnLoaded;var E=function(){return N().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},F=function(){var X;
return _.Ye((X=N())==null?void 0:X.rendererContext)};
q={};q=(q.ytContentPreviewImageViewModelHost=!0,q.ytContentPreviewImageViewModelCircleImage=function(){return E()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},q.ytContentPreviewImageViewModelTappable=function(){return F()},q);
var R=function(){var X,V;return(V=(X=_.v(N().rendererContext,_.$A))==null?void 0:X.label)!=null?V:""},c=function(){return MtR(N())},z=function(){var X=POC(E(),N().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",y==null?void 0:y(),oKe(c()),N().layoutWidth,N().layoutHeight),V=Object.assign({},X);
X.width&&(V.width=Math.round(X.width));X.height&&(V.height=Math.round(X.height));X.maxWidth&&(V.maxWidth=Math.round(X.maxWidth));X.maxHeight&&(V.maxHeight=Math.round(X.maxHeight));return V},m=_.K3(function(){return z().height},void 0,"CxFlJb"),r=_.K3(function(){return z().width},void 0,"lb8Jhd");
return _.u("yt-content-preview-image-view-model",{el:_.ai(_.QR(function(){var X;return(X=N())==null?void 0:X.rendererContext})),
role:function(){return F()?"link":void 0},
tabindex:function(){return F()?0:void 0},
class:_.NO(b,q,function(){var X=E();var V=y==null?void 0:y();X=X==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||X==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||X==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||X==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(V==null?void 0:V.size)!=null&&V.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(V==null?void 0:V.size)!=null&&V.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return X}),
style:function(){var X=z(),V=[];X.width&&V.push("width: "+X.width+"px");X.height&&V.push("height: "+X.height+"px");X.maxWidth&&V.push("max-width: "+X.maxWidth+"px");X.maxHeight&&V.push("max-height: "+X.maxHeight+"px");X.fullWidth&&V.push("width: 100%");return V.join(";")}},_.u(_.t,{cond:c,
then:function(X){return _.u(_.s_,{data:X,alt:R,"data-disabled$":function(){return!R()},
notifyOnLoaded:J,targetWidth:r,targetHeight:m,preserveWidth:function(){return!!r()},
preserveHeight:function(){return!!m()}})}}),_.u(_.zS,{data:function(){var X;
return(X=N())==null?void 0:X.overlays}},{thumbnailHoverOverlayViewModel:BF,
thumbnailOverlayButtonViewModel:_.YOT}))},"yb");
_.wK.idomCompat=!0;var i1=_.n(function(q){var N=q.data;var b=q.className;var y=q.useSmallLayout;var J=q.useMediumText;q=q.useHeavyText;var E={};return _.u("yt-attribution-view-model",{el:_.ai(_.QR(function(){var F;return(F=N())==null?void 0:F.rendererContext})),
class:_.NO(b,(E.ytAttributionViewModelHost=!0,E.ytAttributionViewModelMediumText=J,E.ytAttributionViewModelHeavyText=q,E))},_.u(_.t,{cond:function(){return _.Ye(N().rendererContext)},
then:function(){return _.u("button",{class:"ytAttributionViewModelTappable"},_.u(IEJ,{data:N,useSmallLayout:y}))},
else:function(){return _.u(IEJ,{data:N,useSmallLayout:y})}}))},"zb"),IEJ=_.n(function(q){var N=q.data;
var b=q.useSmallLayout;var y=function(){return{size:(b==null?0:b())?16:24}};
return _.u(_.rV,null,_.u(_.zS,{data:function(){return N().contentPreviewImage}},{contentPreviewImageViewModel:function(J){return _.u(_.wK,{data:J.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:y})}}),_.u(_.zS,{data:function(){return N().badge}},{badgeViewModel:function(J){return _.u(_.XT,{data:J.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.u(_.t,{cond:function(){return N().text},
then:function(){return _.u(_.Zc,{text:function(){return N().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.u(_.t,{cond:function(){return N().suffix},
then:function(){return _.u(_.Zc,{text:function(){return N().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Ab");
i1.idomCompat=!0;var Tc4,snl,n41,aEx,SOE;Tc4=_.n(function(q){var N=q.delimiter;var b=q.max;var y=q.index;var J=q.isStandalone;return _.u(_.t,{cond:function(){return b()-1>y()},
then:function(){var E={};return _.u("span",{class:_.NO("yt-content-metadata-view-model__delimiter",(E["yt-content-metadata-view-model__delimiter--standalone"]=J,E)),"aria-hidden":!0},N)}})},"Bb");
snl=_.n(function(q){var N=q.metadataPart;var b=q.maxLines;return _.u(_.Zc,{text:function(){return N().text},
linkInheritColor:!0,className:function(){return A6h(b())},
userInput:!0})},"Cb");
n41=_.n(function(q){var N=q.metadataPart;var b=q.maxLines;return _.u(_.t,{cond:function(){return N().tooltip},
then:function(y){return _.u("span",{title:y,role:"tooltip"},_.u(snl,{metadataPart:N,maxLines:b}))},
else:function(){return _.u(snl,{metadataPart:N,maxLines:b})}})},"Db");
aEx=_.n(function(q){var N=q.metadataPart;var b=q.isOverlay;var y=q.useMediumText;var J=q.hideAvatar;var E=function(){return N().maxLines!==void 0?N().maxLines:1};
return _.u(_.rV,null,_.u(_.zS,{data:function(){return N().avatarStack}},{avatarStackViewModel:function(F){return _.u(_.Nw,{data:F.data,
isOverlay:b,useMediumText:y,hideAvatar:J})},
badgeViewModel:_.XT}),_.u(_.t,{cond:function(){return N().leadingIcon},
then:function(F){return _.u(_.FQ,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return F().name},
size:function(){return F().width}})}}),_.u(_.t,{cond:function(){return N().text},
then:function(){return _.u(n41,{metadataPart:N,maxLines:E})}}),_.u(_.t,{cond:function(){return N().icon},
then:function(F){return _.u(_.FQ,{className:"yt-content-metadata-view-model__icon",icon:function(){return F().name},
size:function(){return F().width}})}}))},"Eb");
SOE=_.n(function(q){var N=q.metadataRow;var b=q.isInline;var y=q.delimiter;var J=q.isOverlay;var E=q.useMediumText;var F=q.extensions;var R=function(){var z,m=F==null?void 0:(z=F())==null?void 0:z.lockupMetadata;z=N();var r,X;return!!((m==null?0:(r=m.byline)==null?0:r.hideAvatar)&&((X=_.v(z,$8T))==null?void 0:X.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},c=function(){return N().metadataParts||[]};
q={};return _.u("div",{class:_.NO("yt-content-metadata-view-model__metadata-row",(q["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=b,q["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var z,m=F==null?void 0:(z=F())==null?void 0:z.lockupMetadata;z=N();var r,X;return!!((m==null?0:(r=m.byline)==null?0:r.addPadding)&&((X=_.v(z,$8T))==null?void 0:X.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},q["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var z;
return!!(F==null?0:(z=F())==null?0:z.lockupMetadata)&&N().badges&&!N().metadataParts},q))},_.u(_.zS,{data:function(){return N().badges}},{badgeViewModel:function(z){return _.u("div",{class:"yt-content-metadata-view-model__badge"},_.u(_.XT,{data:z.data,
numBadgesInRow:function(){var m,r;return((m=N())==null?void 0:(r=m.badges)==null?void 0:r.length)||0}}))}}),_.u(_.Tf,{each:c},function(z,m){return _.u(_.rV,null,_.u(aEx,{metadataPart:z,
isOverlay:J,useMediumText:E,hideAvatar:R}),_.u(Tc4,{delimiter:y,max:function(){return c().length},
index:m,isStandalone:!1}))}),_.u(_.t,{cond:function(){return N().isSpacerRow&&!b()},
then:function(){return _.u("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Fb");
_.l1=_.n(function(q){q=_.Sl(q,{layout:0,isOverlay:!1});var N=q.data,b=q.layout,y=q.isOverlay,J=q.useMediumText,E=q.extensions,F=function(){return b()===0},R=function(){var z;
return((z=N().metadataRows)==null?void 0:z.filter(function(m){var r,X=E==null?void 0:(r=E())==null?void 0:r.lockupMetadata,V,G;r=!!((X==null?0:(V=X.description)==null?0:V.hideDescription)&&((G=_.v(m,$8T))==null?void 0:G.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var w,D;return!((X==null?0:(w=X.spacer)==null?0:w.hideSpacer)&&((D=_.v(m,$8T))==null?void 0:D.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||r)}))||[]},c={};
return _.u("yt-content-metadata-view-model",{class:_.NO(q.className,"yt-content-metadata-view-model",(c["yt-content-metadata-view-model--inline"]=F,c["yt-content-metadata-view-model--tappable"]=function(){return _.Ye(N().rendererContext)},c["yt-content-metadata-view-model--medium-text"]=J,c)),
el:_.ai(_.QR(function(){return N().rendererContext}))},_.u(_.Tf,{each:R},function(z,m){return _.u(_.rV,null,_.u(SOE,{metadataRow:z,
isInline:F,delimiter:function(){return N().delimiter},
isOverlay:y,useMediumText:J,extensions:E}),_.u(_.t,{cond:function(){return F()&&!z.isSpacerRow},
then:function(){return _.u(Tc4,{delimiter:function(){return N().delimiter},
max:function(){return R().length},
index:m,isStandalone:!0})}}))}))},"Gb");
_.l1.idomCompat=!0;var WbJ=_.n(function(q){var N=_.tz().resolve(_.$f(_.ft)),b={};return _.u("yt-lockup-metadata-view-model",{class:_.NO("yt-lockup-metadata-view-model",function(){a:{var y=q.lockupStyle();if(y==null?0:y.isOverlay)y="yt-lockup-metadata-view-model--overlay";else switch(y==null?void 0:y.arrangement){case 1:y="yt-lockup-metadata-view-model--horizontal";break a;default:y="yt-lockup-metadata-view-model--vertical"}}return y},function(){a:{var y=q.lockupStyle();
switch(y==null?void 0:y.titleMaxLines){case 1:y="yt-lockup-metadata-view-model--title-max-lines-1";break a}y=void 0}return y},function(){a:{var y=q.lockupStyle();
if(y==null?0:y.isTiny)y="yt-lockup-metadata-view-model--tiny";else switch(y==null?void 0:y.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":y="yt-lockup-metadata-view-model--compact";break a;default:y="yt-lockup-metadata-view-model--standard"}}return y},(b["yt-lockup-metadata-view-model--overlay"]=function(){var y;
return(y=q.lockupStyle())==null?void 0:y.isOverlay},b["yt-lockup-metadata-view-model--card"]=function(){var y;
return(y=q.lockupStyle())==null?void 0:y.isCard},b["yt-lockup-metadata-view-model--centered"]=function(){var y;
return(y=q.lockupStyle())==null?void 0:y.isCentered},b["yt-lockup-metadata-view-model--typography-bump"]=function(){var y;
return(y=q.lockupStyle())==null?void 0:y.typographyBump},b["yt-lockup-metadata-view-model--legacy-typography"]=function(){var y;
return(y=q.lockupStyle())==null?void 0:y.useLegacyTypography},b["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var y;
return(y=q.lockupStyle())==null?void 0:y.useRichGridLegacyTypography},b))},_.u(_.zS,{data:function(){return q.data().image}},{avatarStackViewModel:function(y){return _.u("div",{class:"yt-lockup-metadata-view-model__avatar"},_.u(_.Nw,{data:y.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(y){return _.u("div",{class:"yt-lockup-metadata-view-model__avatar"},_.u(_.HF,{data:y.data}))},
decoratedAvatarViewModel:function(y){return _.u("div",{class:"yt-lockup-metadata-view-model__avatar"},_.u(_.qw,{data:y.data}))}}),_.u("div",{class:"yt-lockup-metadata-view-model__text-container"},_.u("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var y;return(y=q.data().title)==null?void 0:y.content}},_.u(_.t,{cond:function(){return q.data().title},
then:function(y){return _.u(_.Vf,{command:q.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.ZU({color:function(){var J;a:{var E=q.lockupStyle();var F=(J=q.hovered)==null?void 0:J.call(q);J=!(N==null||!N());var R;if((E==null?0:(R=E.onFocusEffect)==null?0:R.textPrimaryColor)&&F&&(E=J?E.onFocusEffect.textPrimaryColor.darkTheme:E.onFocusEffect.textPrimaryColor.lightTheme)){E=Ov(E);break a}E=void 0}return E}}),
ariaLabel:q.lockupAccessibilityLabel},_.u(_.Zc,{text:y,userInput:!0}))}})),_.u("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.ZU({color:function(){var y;a:{var J=q.lockupStyle();var E=(y=q.hovered)==null?void 0:y.call(q);y=!(N==null||!N());var F;if((J==null?0:(F=J.onFocusEffect)==null?0:F.textSecondaryColor)&&E&&(J=y?J.onFocusEffect.textSecondaryColor.darkTheme:J.onFocusEffect.textSecondaryColor.lightTheme)){J=Ov(J);break a}J=void 0}return J}})},_.u(_.zS,{data:function(){return q.data().metadata}},{contentMetadataViewModel:function(y){return _.u(_.l1,{data:y.data,
layout:function(){var J,E;return(E=(J=q.layout)==null?void 0:J.call(q))!=null?E:1},
useMediumText:function(){var J,E;return((J=q.lockupStyle())==null?void 0:J.typographyBump)||((E=q.lockupStyle())==null?void 0:E.useRichGridLegacyTypography)},
extensions:function(){var J,E,F,R;return{lockupMetadata:{byline:{hideAvatar:((J=q.lockupStyle())==null?void 0:J.arrangement)===0,addPadding:((E=q.lockupStyle())==null?void 0:E.arrangement)===1},description:{hideDescription:!((F=q.lockupStyle())==null||!F.compactMetadata)},spacer:{hideSpacer:!((R=q.lockupStyle())==null||!R.compactMetadata)}}}}})}})),_.u(_.zS,{data:function(){return q.data().attribution}},{attributionViewModel:function(y){return _.u("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.u(i1,{data:y.data,
useSmallLayout:!0}))}})),_.u("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.u(_.zS,{data:function(){return q.data().menuButton}},{buttonViewModel:function(y){return _.u(_.Ou,{data:y.data,
buttonOverrides:function(){var J;return((J=q.lockupStyle())==null?0:J.isOverlay)?{style:"overlay"}:void 0}})}})))},"Hb");
WbJ.idomCompat=!0;var Lbx=_.n(function(q){var N=_.dI("notification-multi-action-renderer");_.SI(function(){requestAnimationFrame(function(){_.Ff(N.value)})});
var b={},y={},J={};return _.u("notification-multi-action-renderer",{class:_.NO("ytNotificationMultiActionRendererHost",(b.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var E;return(E=q.useLegacyShelfStyle)==null?void 0:E.call(q)},b)),
el:N},_.u("span",{"aria-live":"polite",class:_.NO("ytNotificationMultiActionRendererTextContainer",(y.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var E;return(E=q.useLegacyShelfStyle)==null?void 0:E.call(q)},y))},_.u(_.Zc,{text:function(){return q.data().responseText}})),_.u("div",{class:_.NO("ytNotificationMultiActionRendererButtonContainer",(J.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var E;
return(E=q.useLegacyShelfStyle)==null?void 0:E.call(q)},J))},_.u(_.zS,{data:function(){var E;
return(E=q.data().buttons)==null?void 0:E.map(function(F){if(F=F.buttonRenderer){var R,c=Object,z=c.assign,m=(R=F.icon)==null?void 0:R.iconType;R=(R=F.command||F.serviceEndpoint||F.navigationEndpoint)?{innertubeCommand:R}:void 0;F={buttonViewModel:z.call(c,{},{iconName:m,onTap:R,trackingParams:F.trackingParams,titleFormatted:F.text?_.v$(F.text):void 0},B6d(F))}}else F=void 0;return F}).filter(function(F){return!!F})}},{buttonViewModel:function(E,F){return _.u("div",null,_.u(_.Ou,{data:E.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var R;return((R=q.useModernStyles)==null?0:R.call(q))?{type:F()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Jb");var pOv=_.n(function(q){var N=_.dI("notification-text-renderer");_.SI(function(){requestAnimationFrame(function(){_.Ff(N.value)})});
return _.u("notification-text-renderer",{el:N,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.u(_.Zc,{text:function(){return q.data().successResponseText}}))},"Lb");_.KS=_.n(function(q){var N=_.dj(R4e,function(){var y;return Han((y=q.contentId)==null?void 0:y.call(q))}),b=function(){var y;
return _.v((y=N())==null?void 0:y.command,_.fO)};
return _.u(_.t,{cond:function(){var y;if(!(y=b())){var J;y=_.v((J=N())==null?void 0:J.command,Kzl)}return y},
then:function(){return _.u(_.t,{cond:b,then:function(){var y={};return _.u("div",{class:_.NO("ytDismissibleItemReplacedContent",function(){var J;return q3A((J=q.aspectRatio)==null?void 0:J.call(q))})},_.u("div",{class:_.NO((y.ytDismissibleItemAspectRatioContainer=function(){var J;
return((J=q.aspectRatio)==null?void 0:J.call(q))!==void 0},y))},_.u(_.zS,{data:function(){var J;
return(J=b())==null?void 0:J.item}},{notificationMultiActionRenderer:function(J){return _.u(Lbx,{data:J.data,
useModernStyles:q.useModernStyle,useLegacyShelfStyle:q.useLegacyShelfStyle})},
notificationTextRenderer:pOv})))}})},
else:q.children})},"Mb");_.Pmj=_.n(function(q){var N=q.data;var b=q.customCommandResolver;q=_.ai(_.mn({visibilityCallback:function(E){var F,R=(F=N().interaction)==null?void 0:F.onFirstVisible;E&&R&&_.Kt(R)},
showOption:_.Yx}));var y=function(){var E;return((E=N().interaction)==null?0:E.onTap)?function(F){var R;OaC(F,(R=N().interaction)==null?void 0:R.onTap,b)}:void 0},J=function(){var E,F=N(),R=y(),c=(E=_.v(N().rendererContext,_.$A))==null?void 0:E.label;
a:switch(F.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":E=1;break a;default:E=0}return{size:ykA(F.size),type:E,onTap:R,accessibilityText:c}};
return _.u("ad-avatar-view-model",{class:function(){var E;return((E=N().interaction)==null?0:E.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:q},_.u(_.t,{cond:function(){return N().image},
then:function(E){return _.u(wIq,{data:J,image:E})}}))},"Nb");_.D2=_.n(function(q){var N=_.Sl(q,{hasDot:!1,usedInMasthead:!1}),b=Object.assign({},N),y=N.data,J=N.hasDot;q=N.customCommandResolver;var E=N.usedInMasthead,F=(delete b.data,delete b.hasDot,delete b.customCommandResolver,delete b.usedInMasthead,b);N=function(){return y().style};
N!==void 0&&N!==null||_.bv(Error("Hh"));q=_.KT(function(){return y().interaction},q);
return _.u("ad-badge-view-model",{class:_.NO(function(){var R;return((R=y().interaction)==null?0:R.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var R=F.adRenderingContextType(),c=E();
y();return R!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||c?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.ai(q)},_.u(_.Eo,{data:function(){var R;y();return{type:2,text:(R=y().label)==null?void 0:R.content,adsIncludeDot:J(),isOverlay:y().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ob");var MBx;_.hv=_.n(function(q){var N=q.data;var b=q.customCommandResolver;var y=q.adRenderingContextType;return _.u("ad-details-line-view-model",{class:function(){var J;return((J=N().interaction)==null?0:J.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.ai(_.mn({visibilityCallback:function(J){var E,F=(E=N().interaction)==null?void 0:E.onFirstVisible;J&&F&&_.Kt(F)},
showOption:_.Yx}),_.KT(function(){return N().interaction},b))},_.u(_.t,{cond:function(){return N().style},
then:function(J){return _.u(_.Tf,{each:function(){var E;return((E=N())==null?void 0:E.attributes)||[]},
keyBy:"INDEX"},function(E){return _.u(MBx,{attribute:E,style:J,adRenderingContextType:function(){return y()}})})}}))},"Pb");
MBx=_.n(function(q){var N=q.attribute;var b=q.style;var y=q.adRenderingContextType;return _.u(_.t,{cond:function(){return N().text},
then:function(J){return _.u(_.Zc,{text:J,className:function(){var E=y();b();return E==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Qb");var o4M=_.n(function(q){var N=q.data;var b=q.typographyBump;var y=function(){return N().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},J=function(){return{size:"M"}};
q={};return _.u(_.rV,null,_.u("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.u(_.Zc,{text:function(){return N().headline},
className:_.NO("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(q.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return y==null?void 0:y()},q.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(b==null?void 0:b())&&!(y==null?0:y())},q)),
linkInheritColor:!0}),_.u(_.t,{cond:function(){return N().description},
then:function(E){var F={};return _.u(_.Zc,{text:E,className:_.NO("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(F.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return y==null?void 0:y()},F.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(b==null?void 0:b())&&!(y==null?0:y())},F)),
linkInheritColor:!0})}}),_.u(_.t,{cond:function(){return N().secondaryDescription},
then:function(E){var F={};return _.u(_.Zc,{text:E,className:_.NO("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(F.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return b==null?void 0:b()},F)),
linkInheritColor:!0})}}),_.u("div",{class:function(){return y()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.u(_.t,{cond:function(){return N().adAvatar},
then:function(){return _.u("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.u(_.zS,{data:function(){return N().adAvatar}},{adAvatarViewModel:_.Pmj}))}}),_.u(_.zS,{data:function(){return N().adBadge}},{adBadgeViewModel:function(E){return _.u(_.D2,{data:E.data,
hasDot:function(){return!!N().adDetailsLine},
adRenderingContextType:function(){return N().adRenderingContextType}})}}),_.u(_.zS,{data:function(){return N().adDetailsLine}},{adDetailsLineViewModel:function(E){return _.u(_.hv,{data:E.data,
adRenderingContextType:function(){return N().adRenderingContextType}})}}))),_.u("div",{class:function(){return _.x("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":y()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.u(_.zS,{data:function(){return N().menu}},{buttonViewModel:function(E){return _.u(_.Ou,{data:E.data,
buttonOverrides:_.x("enable_desktop_vdc_components")?J:function(){a:switch(N().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var F="S";break a;default:F="M"}return{size:F}}})}})))},"Rb"),AcR=_.n(function(q){var N=q.data;
var b=q.noBottomMargin;var y=q.useVideoLockupTopPadding;var J=q.typographyBump;q={};q=_.NO("ytwFeedAdMetadataViewModelHostMetadata",(q.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return b==null?void 0:b()},q.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return y==null?void 0:y()},q));
var E=function(){return N().adBadge};
E!==void 0&&E!==null||_.bv(Error("Ih"));E={};var F={};return _.u(_.rV,null,_.u(_.t,{cond:function(){return N().adAvatar},
then:function(){return _.u("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.u(_.zS,{data:function(){return N().adAvatar}},{adAvatarViewModel:function(R){return _.u(_.Pmj,{data:R.data})}}))}}),_.u("div",{class:q},_.u("div",{class:_.NO("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(E.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return J==null?void 0:J()},E.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(J==
null?void 0:J())&&_.x("web_enable_typography_bump_v2")},E))},_.u(_.Zc,{text:function(){return N().headline},
linkInheritColor:!0})),_.u(_.t,{cond:function(){return N().description},
then:function(R){return _.u(_.Zc,{text:R,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.u("div",{class:function(){return N().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.x("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.u(_.zS,{data:function(){return N().adBadge}},
{adBadgeViewModel:function(R){return _.u(_.D2,{data:R.data,
hasDot:function(){return!!N().adDetailsLine},
adRenderingContextType:function(){return N().adRenderingContextType}})}}),_.u(_.zS,{data:function(){return N().adDetailsLine}},{adDetailsLineViewModel:function(R){return _.u(_.hv,{data:R.data,
adRenderingContextType:function(){return N().adRenderingContextType}})}})),_.u(_.t,{cond:function(){return N().secondaryDescription},
then:function(R){return _.u(_.Zc,{text:R,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.u("div",{class:_.NO("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(F.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return y==null?void 0:y()},F))},_.u(_.zS,{data:function(){return N().menu}},{buttonViewModel:_.Ou})))},"Sb"),kx=_.n(function(q){var N=q.data;
var b=q.noBottomMargin;var y=q.listenToTapEvent;var J=q.setTouchEndHandler;var E=q.useVideoLockupTopPadding;var F=q.typographyBump;q=_.mn({visibilityCallback:function(r){var X,V=(X=N().interaction)==null?void 0:X.onFirstVisible;r&&V&&_.Kt(V)},
showOption:_.Yx});var R=_.KT(function(){return N().interaction},void 0,function(){return y==null?void 0:y()}),c=_.Z(_.QS(!1,void 0,"N3Oquc")),z=c.next().value,m=c.next().value;
c=_.y0(function(r){(J==null?0:J())&&!z()&&(r.currentTarget.click(),m(!0),setTimeout(function(){m(!1)},100));
return!1});
return _.u("feed-ad-metadata-view-model",{class:function(){var r;return((r=N().interaction)==null?0:r.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.ai(q,R),"on:touchend":c},_.u(_.sw,null,_.u(_.CI,{when:function(){return N().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.u(o4M,{data:N,
typographyBump:F})}),_.u(_.CI,{when:function(){return N().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.u(AcR,{data:N,
noBottomMargin:b,useVideoLockupTopPadding:E,typographyBump:F})})))},"Tb");var ei1,Bcq;ei1=_.U$.inlinePreviewEnabledSelector;_.UE=_.n(function(q){return _.u("yt-lockup-view-model",{class:_.NO(q.className,"yt-lockup-view-model--wrapper")},_.u(_.KS,{contentId:function(){return q.data().contentId},
useModernStyle:!0,aspectRatio:function(){var N,b;return((N=q.containerType)==null?void 0:N.call(q))!==3?STA(q.data().contentType,(b=q.force16By9ThumbnailAspectRatio)==null?void 0:b.call(q)):void 0}},function(){return _.u(Bcq,Object.assign({},q))}))},"Ub");
Bcq=_.n(function(q){q=_.Sl(q,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0,useOverlayStyling:void 0});var N=q.data,b=q.containerLayoutConfig,y=q.containerType,J=q.sizing,E=q.protectBackground,F=q.typographyBump,R=q.force16By9ThumbnailAspectRatio,c=q.thumbnailFixedWidth,z=q.thumbnailTargetWidth,m=q.lockupExperiments,
r=q.elementsPerRow,X=q.useOverlayStyling,V=_.tz().resolve(_.$f(_.ft));q=_.ai(_.QR(function(){var Sn;return(Sn=N())==null?void 0:Sn.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 G=_.uR(ei1),w=_.tz().resolve(_.$f($Dq)),D=w?{}:void 0,k=function(){var Sn,YE,xE;return(xE=(YE=_.v((Sn=N())==null?void 0:Sn.rendererContext,_.$A))==null?void 0:YE.label)!=null?xE:void 0},f=function(){var Sn;
return(Sn=_.v(N().metadata,_.tmJ))==null?void 0:Sn.endorsement},L=function(){var Sn=b==null?void 0:b(),YE;
if(Sn==null?0:Sn.containerType){var xE=(YE=N())==null?void 0:YE.contentType;YE=m();var qv=F(),mM=z(),Ox=E();Sn=Object.assign({},WcA(T6R(Sn),hO(Sn.responsiveSize),qv,xE,Sn.force16By9ThumbnailAspectRatio,mM,Ox,void 0,YE),{thumbnailFixedWidth:Sn.contentPreviewWidth})}else Sn=WcA(y(),J(),F(),(xE=N())==null?void 0:xE.contentType,R(),z(),E(),X(),m());return Sn};
w&&D&&w({enabled:function(){return G()},
itemPlaybackModel:function(){return N().itemPlayback},
thumbnailElRef:function(){return D.thumbnailElRef},
containerElRef:q,options:function(){var Sn=D.thumbnailOverlays||[],YE=f(),xE;!YE||((xE=m())==null?0:xE.onFocusEffect)||Sn.push(YE);var qv,mM;return{thumbnail:D.thumbnail,thumbnailOverlays:Sn,accessibilityText:k(),thumbnailSize:D.thumbnailSize,enableRounding:L().isCollection,containPlayerWithinThumbnail:L().isCollection,mouseleaveCallback:function(){M(!1)},
trackingParams:(qv=_.v(N().rendererContext,_.Ri))==null?void 0:(mM=qv.loggingDirectives)==null?void 0:mM.trackingParams}}});
var S=0;w=_.Z(_.QS(!1,void 0,"v0iGab"));var W=w.next().value,M=w.next().value;w=_.Z(_.QS(!1,void 0,"PVKcBd"));var qe=w.next().value,RJ=w.next().value;w=_.y0(function(){qe()?(_.pY.cancelJob(S),S=_.pY.addJob(function(){M(!0)},8,32)):M(!0);
return!0});
var tZ=_.y0(function(Sn){Sn=Sn.relatedTarget;var YE=document.querySelector("ytd-video-preview");Sn&&YE&&YE.contains(Sn)||(S&&(_.pY.cancelJob(S),S=0),M(!1))});
_.W1(function(){S&&(_.pY.cancelJob(S),S=0)});
var wA=beA(function(){RJ(!0)}),rA=wA.touchFeedbackEvents,xD=wA.touchFeedbackOnPointerUp,IJ=wA.touchFeedbackOnPointerDown;
wA=wA.touchFeedbackOnPointerLeave;var sJ={};return _.u(_.rV,null,_.u("div",{el:q,class:_.NO("yt-lockup-view-model",function(){a:{var Sn=L();if(Sn.metadataOnThumbnail)Sn="yt-lockup-view-model--metadata-on-thumbnail";else switch(Sn.arrangement){case 1:Sn="yt-lockup-view-model--horizontal";break a;default:Sn="yt-lockup-view-model--vertical"}}return Sn},function(){a:{var Sn=L();
if(Sn.metadataOnThumbnail)Sn="yt-lockup-view-model--metadata-on-thumbnail";else{switch(Sn.collectionStackNumber){case 1:Sn="yt-lockup-view-model--collection-stack-1";break a;case 2:Sn="yt-lockup-view-model--collection-stack-2";break a}Sn=void 0}}return Sn},function(){var Sn;
return _.e6e((Sn=N())==null?void 0:Sn.contentId)},(sJ["yt-lockup-view-model--card"]=function(){return L().isCard},sJ["yt-lockup-view-model--compact"]=function(){return L().isTiny||L().sizing!=="STANDARD"},sJ["yt-lockup-view-model--protect-background"]=E,sJ["yt-lockup-view-model--add-margins"]=function(){return L().addMarginForFullbleed},sJ["yt-lockup-view-model--centered"]=function(){return L().isCentered},sJ["yt-lockup-view-model--fullbleed"]=function(){return L().fullbleed},sJ["yt-lockup-view-model--single-column-grid"]=
function(){return r()===1&&y()===2},sJ["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var Sn;
return(Sn=m())==null?void 0:Sn.useRichGridLegacyMargin},sJ["yt-lockup-view-model--flex-none"]=function(){return!_.x("lockup_flex_none_killswitch")},sJ)),
"on:mousedown":IJ,"on:mouseleave":tZ,"on:mouseup":xD,"on:mouseover":w,"on:touchstart":IJ,"on:touchend":xD,"on:pointerleave":wA},_.u(_.j9,{model:function(){var Sn,YE,xE=Object,qv=xE.assign,mM=(D==null?void 0:D.thumbnailSize)||"small";a:{var Ox=L();var h4=!!(f()&&((Sn=m())==null?0:Sn.onFocusEffect));switch((D==null?void 0:D.thumbnailSize)||"small"){case "small":Sn=4;break;case "large":Sn=12;break;default:Sn=8}if(h4)Ox=Sn+12;else{switch(Ox.collectionStackNumber){case 1:Ox=Sn+8;break a;case 2:Ox=Sn+12;
break a}Ox=void 0}}mM={thumbnailSize:mM,triggerEvents:!0,customTopExtend:Ox};var QC;Ox=(YE=m())==null?void 0:YE.onFocusEffect;h4=!(V==null||!V());if(Ox){var rp,Fd;YE=h4?(rp=Ox.onFocusColor)==null?void 0:rp.darkTheme:(Fd=Ox.onFocusColor)==null?void 0:Fd.lightTheme;var yF,vR;rp=h4?(yF=Ox.keyLightColor)==null?void 0:yF.darkTheme:(vR=Ox.keyLightColor)==null?void 0:vR.lightTheme;var ej;yF=h4?(QC=Ox.touchResponseColor)==null?void 0:QC.darkTheme:(ej=Ox.touchResponseColor)==null?void 0:ej.lightTheme;QC={background:YE!==
void 0?Ov(YE):void 0,keyLight:rp!==void 0?Ov(rp):void 0};ej=[];vR=_.Z(Ox.lightingTechniques||[]);for(rp=vR.next();!rp.done;rp=vR.next())switch(rp.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":ej.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":ej.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":ej.push(3)}QC={hoverEffect:{palette:QC,lightingTechniques:ej},touchEffect:{palette:{background:yF!==void 0?Ov(yF):void 0}}}}else QC={};return qv.call(xE,{},mM,QC)},
hovered:function(){return W()},
pointerDownEvent:rA.pointerDownEvent,pointerUpEvent:rA.pointerUpEvent,pointerLeaveEvent:rA.pointerLeaveEvent}),_.u(_.t,{cond:function(){var Sn;return f()&&W()&&((Sn=m())==null?void 0:Sn.onFocusEffect)},
then:function(){return _.u("div",{class:"yt-lockup-view-model__endorsement"},_.u(_.zS,{data:function(){return f()}},{attributionViewModel:function(Sn){return _.u(i1,{data:Sn.data,
useHeavyText:!0})}}))}}),_.u(_.Vf,{command:function(){var Sn;
return _.GS((Sn=N())==null?void 0:Sn.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(c()||L().thumbnailFixedWidth)&&L().arrangement===1?"width: "+(c()||L().thumbnailFixedWidth):""}},_.u(_.zS,{data:function(){var Sn;
return(Sn=N())==null?void 0:Sn.contentImage}},{thumbnailViewModel:function(Sn){return _.u(_.Gv,{data:Sn.data,
aspectRatio:function(){return L().aspectRatio},
disableRounding:function(){return L().disableRounding},
width:z,hovered:function(){return W()&&!(G()&&N().itemPlayback)},
isClip:function(){var YE;return((YE=N())==null?void 0:YE.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:vKz(D),lockupExperiments:function(){return m()}})},
collectionThumbnailViewModel:function(Sn){return _.u(Kbx,{data:Sn.data,aspectRatio:function(){return L().aspectRatio},
disableRounding:function(){return L().disableRounding},
width:z,doubleStack:function(){return L().collectionStackNumber===2},
hovered:function(){return W()&&!(G()&&N().itemPlayback)},
playbackRef:vKz(D)})},
decoratedAvatarViewModel:_.qw})),_.u("div",{class:"yt-lockup-view-model__metadata"},_.u(_.zS,{data:function(){var Sn;return(Sn=N())==null?void 0:Sn.metadata}},{lockupMetadataViewModel:function(Sn){return _.u(WbJ,{data:Sn.data,
hovered:W,lockupStyle:L,lockupCommand:function(){var YE;return _.GS((YE=N())==null?void 0:YE.rendererContext)},
lockupAccessibilityLabel:function(){return k()},
layout:function(){var YE;return((YE=m())==null?0:YE.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(Sn){return _.u(kx,{data:Sn.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:F})}}),_.u(_.zS,{data:function(){var Sn;
return(Sn=N())==null?void 0:Sn.attachmentSlot}},{lockupAttachmentsViewModel:function(Sn){return _.u(Cmv,{data:Sn.data,
lockupStyle:L})}}))),_.u(_.zS,{data:function(){var Sn;
return(Sn=N())==null?void 0:Sn.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(Sn){return _.u(Cmv,{data:Sn.data,
lockupStyle:L})}}))},"Vb");
_.UE.idomCompat=!0;_.P$(_.UE,"yt-lockup-view-model",{props:{data:_.F5,containerLayoutConfig:_.F5,containerType:_.F5,sizing:_.F5,protectBackground:_.F5,typographyBump:_.F5,thumbnailFixedWidth:_.F5,thumbnailTargetWidth:_.F5,force16By9ThumbnailAspectRatio:_.F5,className:_.F5,lockupExperiments:_.F5,elementsPerRow:_.F5,useOverlayStyling:_.F5}});var ZeJ,HHo=_.n(function(q){var N=_.Sl(q,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),b=N.text,y=N.alwaysShowTruncationText;q=N.truncationText;var J=N.onTextClick,E=N.maxLines,F=N.disableTextMask,R=N.textStyle,c=N.accessibilityLabel,z=N.textSize,m=N.alwaysTruncateAtMaxLines,r=N.expandOnClick;N=_.Z(_.QS(!1,void 0,"EzA1q"));var X=N.next().value,V=N.next().value;N=_.y0(function(){r()&&V(!X());J==null||J()});
var G=function(){a:switch(z()){case "medium":var qe=2;break a;case "large":qe=2.2;break a;default:qe=1.8}return qe},w=dXu(b,function(){return X()?Infinity:E()},G,F,m,X),D=w.isTruncated;
b=w.displayText;m=w.contentRef;var k=w.hiddenRef,f=w.placeholderTruncationTextRef,L=w.hiddenTruncationTextRef;w=w.truncationTextRef;var S={},W={},M={};return _.u("truncated-text",{class:_.NO((S["yt-truncated-text"]=!0,S["yt-truncated-text--overlay"]=function(){return R()==="overlay"},S["yt-truncated-text--medium-text"]=function(){return z()==="medium"},S["yt-truncated-text--large-text"]=function(){return z()==="large"},S["yt-truncated-text--primary-text"]=function(){return R()==="primary-text"},S)),
"on:click":N,style:function(){return"line-height: "+G()+"rem;"}},_.u("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:m,style:function(){return X()?"":"max-height: "+E()*G()+"rem;"}},_.u(_.Zc,{text:b}),_.u("button",{"aria-disabled":!0,
disabled:!0,class:_.NO((W["yt-truncated-text__inline-button"]=!0,W["yt-truncated-text--hidden"]=function(){return!(!X()&&(y!=null&&y()||D()))},W)),
el:f,style:function(){return"line-height: "+G()+"rem;"}},_.u(_.Zc,{text:q}))),_.u("truncated-text-content",{class:_.NO("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:k,style:function(){return X()?"":"max-height: "+E()*G()+"rem;"},
"aria-hidden":"true"},_.u(_.Zc,{text:b}),_.u("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:L,style:function(){return"line-height: "+G()+"rem;"}},_.u(_.Zc,{text:q}))),_.u("button",{"aria-label":c,
class:_.NO((M["yt-truncated-text__absolute-button"]=function(){return!F()},M["yt-truncated-text__bottom-button"]=function(){return F()},M["yt-truncated-text--hidden"]=function(){return!(!X()&&(y!=null&&y()||D()))},M)),
el:w,style:function(){return"line-height: "+G()+"rem;"}},_.u(_.Zc,{text:q})))},"Xb");
HHo.idomCompat={callbacks:{onTextClick:!0}};var bqj=_.n(function(q){var N=q.data;q=q.className;var b=_.K3(function(){return urh(N())},void 0,"uDhDke"),y=_.u(_.rV,null,_.u(_.t,{cond:function(){return N().heroText||N().image},
then:function(){return _.u(qZ1,{data:N})}}),_.u(NtJ,{data:N,
sizeSmall:function(){return N().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.u("yt-video-attribute-view-model",{class:q},_.u("div",{class:function(){var J=N();a:switch(J.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var E="yt-video-attribute-view-model--vertical";break a;default:E="yt-video-attribute-view-model--horizontal"}a:switch(J.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var F="yt-video-attribute-view-model--image-small";break a;default:F="yt-video-attribute-view-model--image-large"}a:switch(J.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var R=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":R="yt-video-attribute-view-model--image-avatar";break a;default:R=""}a:switch(J.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var c="yt-video-attribute-view-model--metadata-header";break a;default:c=""}a:switch(J.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var z="yt-video-attribute-view-model--container-card";break a;default:z=""}return["yt-video-attribute-view-model",E,F,
R,c,z,urh(J)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.ZU({"background-color":function(){var J=N();if(J.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var E="";else{E=J.lightColorPalette;J=J.darkColorPalette;var F,R=((F=_.tz().resolve(_.$f(_.ft)))==null?0:F())&&J?J:E;E=(E=R==null?void 0:R.section2Color)?_.Y8(E):""}return E}})},_.u(_.t,{cond:b,
then:function(){return _.u(_.Vf,{className:"yt-video-attribute-view-model__content-container",command:b,role:"group",ariaLabel:function(){return N().title}},y)},
else:function(){return _.u("div",{class:"yt-video-attribute-view-model__content-container"},y)}})))},"Yb");
bqj.idomCompat=!0;var qZ1=_.n(function(q){var N=q.data;var b,y=(b=_.tz().resolve(_.$f(_.ft)))==null?void 0:b(),J=function(){return y&&N().darkThemeImage?N().darkThemeImage:N().image},E=_.K3(function(){return z$d(N())},void 0,"UDqj0b");
return _.u("div",{class:"yt-video-attribute-view-model__hero-section"},_.u(_.sw,null,_.u(_.CI,{when:J},function(){return _.u(_.s_,{data:function(){return J()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.u(_.CI,{when:function(){return N().heroText}},function(){return _.u("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.u("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return N().heroText}))})),_.u(_.t,{cond:function(){return N().overflowMenuOnTap},
then:function(){return _.u("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.u(_.GE,{data:E,iconName:"MORE_VERT"}))}}))},"Zb");
qZ1.idomCompat=!0;var NtJ=_.n(function(q){var N=q.data;q=q.sizeSmall;var b=function(){return N().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},y=_.K3(function(){return lq(_.iq({innertubeCommand:urh(N())}))?"link":urh(N())?"button":"group"},void 0,"e2MmYe"),J={};
return _.u("div",{class:_.NO("yt-video-attribute-view-model__metadata",(J["yt-video-attribute-view-model--small-font"]=q,J)),role:y},_.u("h1",{class:"yt-video-attribute-view-model__title"},function(){return N().title}),_.u(_.t,{cond:function(){return N().subtitle},
then:function(){return _.u("h4",{class:"yt-video-attribute-view-model__subtitle"},_.u(_.t,{cond:b,then:function(){return _.u(HHo,{text:function(){return ckh(N().subtitle)},
truncationText:function(){return ckh(N().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.u("span",null,function(){return N().subtitle})}}))}}),_.u(_.t,{cond:function(){return N().secondarySubtitle},
then:function(E){return _.u("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.u(_.Zc,{text:function(){var F=E();if(F!=null&&F.attachmentRuns){for(var R=[],c=_.Z(F.attachmentRuns),z=c.next();!z.done;z=c.next())z=z.value,z.element&&R.push(Object.assign({},z,{element:Object.assign({},z.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));F=Object.assign({},F,{attachmentRuns:R})}return F}}))}}),_.u(_.zS,
{data:function(){return N().buttonViewModel}},{buttonViewModel:function(E){return _.u(_.Ou,{data:E.data,
className:"yt-video-attribute-view-model__button"})}}))},"$b");
NtJ.idomCompat=!0;_.P$(bqj,"yt-video-attribute-view-model",{props:{data:_.F5,className:_.F5}});var fS=function(){var q=_.C.apply(this,arguments)||this;q.useHighlightStyling=_.x("web_enable_deeper_metadata_highlight_styling");q.isSearch=!1;q.JSC$15363_lastScrollContainerWidth=NaN;q.pageLoadingFromNavigation=!1;q.currentIndex=0;q.supportComponentResize=!1;return q};
_.Y(fS,_.C);_.g=fS.prototype;
_.g.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}}}}}};
_.g.attached=function(){document.addEventListener("yt-page-type-changed",_.gq(this,this.onPageChange))};
_.g.detached=function(){document.removeEventListener("yt-page-type-changed",_.gq(this,this.onPageChange))};
_.g.getItemsPath=function(){return"data.cards"};
_.g.onIronResize=function(){this.updateListStyles()};
_.g.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var q;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(q=this.data)==null?void 0:q.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.x("problem_walkthrough_sd")&&!!this.centerItems};
_.g.computeCardListStyle=function(q){return q||null};
_.g.computeEmpty=function(q){return!this.get("cards.length",q)};
_.g.computeThumbnailStyle=function(q){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",q)||null};
_.g.computeHasSubtitle=function(q){return!!this.get("header.richListHeaderRenderer.subtitle",q)};
_.g.computeInitialCountNumber=function(q){return this.hasSquareMiniApp&&q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.g.computeUseFloorScrolling=function(q){return q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.g.computeHasGameCard=function(q){return(q=this.get("cards",q))?q.some(function(N){return N.gameCardRenderer}):!1};
_.g.computeCenterHeaderTitle=function(q){return!(q==null||!q.centerHeaderTitle)};
_.g.computeHasPortraitMiniApp=function(q){return(q=q==null?void 0:q.cards)?q.some(function(N){return N.miniGameCardViewModel&&N.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.g.computeHasSquareMiniApp=function(q){return(q=q==null?void 0:q.cards)?q.some(function(N){return N.miniGameCardViewModel&&N.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.g.computeHasSkinnyWidthPortraitMiniApp=function(q){return(q=q==null?void 0:q.cards)?q.some(function(N){return N.miniGameCardViewModel&&N.miniGameCardViewModel.width===135}):!1};
_.g.computeCenterItems=function(q){return!!q};
_.g.computeHasInfoPanel=function(q){var N;return q==null?void 0:(N=q.cards)==null?void 0:N.some(function(b){return b.infoPanelContentRenderer})};
_.g.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.g.getItemByIndex=function(q){var N=this.items.children;return N&&N.length>q?N[q]:void 0};
_.g.onPageChange=function(){var q=this;this.pageLoadingFromNavigation=!0;_.pY.addJob(function(){q.pageLoadingFromNavigation=!1;_.Hy(q.hostElement,"yt-terminate-video-preview-action")},8)};
_.g.updateListStyles=function(){if(_.x("problem_walkthrough_sd")&&this.JSC$15363_scrollContainer!==void 0){var q=this.JSC$15363_scrollContainer.clientWidth;q!==this.JSC$15363_lastScrollContainerWidth&&(this.JSC$15363_lastScrollContainerWidth=q,_.Jm(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(q*.8,415)+"px"}),_.e2(this.hostElement,"iron-resize"))}};
_.$H.Object.defineProperties(fS.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.x("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return!!((q=this.data)==null?0:(N=q.cards)==null?0:(b=N[0])==null?0:b.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return!!((q=this.data)==null?0:(N=q.cards)==null?0:(b=N[0])==null?0:b.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return _.x("enable_desktop_amsterdam_info_panels")&&!!((q=this.data)==null?0:(N=q.cards)==null?0:(b=N[0])==null?0:b.infoPanelContentRenderer)}}});
fS.prototype.dataChanged=fS.prototype.dataChanged;fS.prototype.onIronResize=fS.prototype.onIronResize;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],fS.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],fS.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.jm.YtdHorizontalListBehavior),_.P("design:type",Object)],fS.prototype,"ytdHorizontalListBehavior",void 0);
_.p([_.O(_.N8),_.P("design:type",Object)],fS.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],fS.prototype,"data",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],fS.prototype,"useCustomColors",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],fS.prototype,"useHighlightStyling",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.P("design:type",Object)],fS.prototype,"cardListStyle",void 0);_.p([_.U({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.P("design:type",Boolean)],fS.prototype,"empty",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.P("design:type",Boolean)],fS.prototype,"hasSubtitle",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.P("design:type",Boolean)],fS.prototype,"thumbnailStyle",void 0);_.p([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.P("design:type",Boolean)],fS.prototype,"hasGameCard",void 0);_.p([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.P("design:type",Boolean)],fS.prototype,"centerHeaderTitle",void 0);
_.p([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.P("design:type",Boolean)],fS.prototype,"hasPortraitMiniApp",void 0);_.p([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.P("design:type",Boolean)],fS.prototype,"hasSquareMiniApp",void 0);_.p([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.P("design:type",Boolean)],fS.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.p([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.P("design:type",Boolean)],fS.prototype,"hasInfoPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],fS.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],fS.prototype,"inlineStructuredDescription",void 0);_.p([_.dq("#scroll-container"),_.P("design:type",HTMLDivElement)],fS.prototype,"JSC$15363_scrollContainer",void 0);
_.p([_.U({computed:"computeInitialCountNumber(data.style.type)"}),_.P("design:type",Number)],fS.prototype,"initialCount",void 0);_.p([_.U({computed:"computeUseFloorScrolling(data.style.type)"}),_.P("design:type",Boolean)],fS.prototype,"useFloorScrolling",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.P("design:type",Boolean)],fS.prototype,"centerItems",void 0);_.p([_.U(),_.P("design:type",Object)],fS.prototype,"pageLoadingFromNavigation",void 0);
_.p([_.U(),_.P("design:type",Object)],fS.prototype,"currentIndex",void 0);_.p([_.U(),_.P("design:type",Number)],fS.prototype,"scrollCount",void 0);_.p([_.U(),_.P("design:type",Object)],fS.prototype,"supportComponentResize",void 0);_.p([_.dq("#items"),_.P("design:type",HTMLDivElement)],fS.prototype,"items",void 0);_.p([_.ZP("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fS.prototype,"onIronResize",null);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fS.prototype,"dataChanged",null);_.p([_.U({reflectToAttribute:!0}),_.l("inlineStructuredDescription"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],fS.prototype,"hideNavigationButton",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],fS.prototype,"modernChapters",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],fS.prototype,"hasVideoAttributeViewModels",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],fS.prototype,"modernInfoPanels",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],fS);
_.a(fS,"ytd-horizontal-card-list-renderer",function(){if(M3T!==void 0)return M3T;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return M3T=q},{mode:_.Am("kevlar_poly_si_batch_j072")?1:2});var yh4=_.n(function(q){var N=q.data;var b={};return _.u("video-summary-content-view-model",{class:_.NO("videoSummaryContentViewModelHost",q.className,(b.videoSummaryContentViewModelHostIsSearch=q.isSearch,b))},_.u(_.Tf,{each:function(){var y=[],J=N().paragraphs;if(J==null||!J.length)return[];for(var E=0;E<J.length;E++){var F=_.v(J[E],XWF),R=void 0;E>0&&(R=_.v(J[E-1],XWF));R&&!!R.marker===!!F.marker?y[y.length-1].paragraphs.push(F):y.push({isList:!!F.marker,paragraphs:[F]})}return y},
keyBy:"INDEX"},function(y){return _.u(_.t,{cond:function(){return y().isList},
then:function(){return _.u("ul",{class:"videoSummaryContentViewModelList"},_.u(_.Tf,{each:function(){return y().paragraphs},
keyBy:"INDEX"},function(J){return _.u("li",{class:"videoSummaryContentViewModelListItem"},_.u(_.Zc,{text:function(){return J().text}}))}))},
else:function(){return _.u("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.u(_.Tf,{each:function(){return y().paragraphs},
keyBy:"INDEX"},function(J){return _.u("p",{class:"videoSummaryContentViewModelParagraph"},_.u(_.Zc,{text:function(){return J().text}}))}))}})}),_.u(_.t,{cond:function(){return!!_.v(N().likeButtonViewModel,_.Ba)&&!!_.v(N().dislikeButtonViewModel,_.eD)},
then:function(){return _.u("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.u("div",{class:"videoSummaryContentViewModelLikeButton"},_.u(_.y$,{data:function(){return _.v(N().likeButtonViewModel,_.Ba)},
disableIconAnimation:!0})),_.u(_.bD,{data:function(){return _.v(N().dislikeButtonViewModel,_.eD)}}))}}))},"ac");
yh4.idomCompat=!0;_.P$(yh4,"video-summary-content-view-model",{props:{data:_.F5,isSearch:_.F5,className:_.F5}});var CS=function(){var q=_.C.apply(this,arguments)||this;var N,b;q.isExpanded=(b=(N=q.data)==null?void 0:N.isExpanded)!=null?b:!1;q.disableExpand=!1;q.showProminentLabel=!1;q.showRightSideLabel=!0;q.toggleExpandableContent=function(y){q.disableExpand||(y.stopPropagation(),_.Wk(_.n9(y),q.hostElement,["info","expanded-subtitle"])||(q.isExpanded=!q.isExpanded,q.ytRendererBehavior.logExplicitClick(q.data),q.JSC$15374_cardList&&!_.x("expandable_metadata_a11y_fix_ks")&&_.ut(q,function(){_.Zy(q.hostElement)})))};
q.useSquareThumbnail=!1;q.startX=0;return q};
_.Y(CS,_.C);_.g=CS.prototype;_.g.computeUseSquareThumbnail=function(){var q;return(q=this.data)==null?void 0:q.useSquareThumbnail};
_.g.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"}}}}};
_.g.dataChanged=function(){if(this.data){var q,N;this.isExpanded=(N=(q=this.data)==null?void 0:q.isExpanded)!=null?N:!1;var b,y,J,E;if(q=this.isDarkTheme()?(b=this.data)==null?void 0:(y=b.colorData)==null?void 0:y.darkColorPalette:(J=this.data)==null?void 0:(E=J.colorData)==null?void 0:E.lightColorPalette){var F,R;if((F=this.data)==null?0:(R=F.colorData)==null?0:R.vibrantColorPalette)q.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.V0(this.hostElement,q)}}};
_.g.isExpandedChanged=function(){this.isExpanded&&this.JSC$15374_cardList&&_.e2(this.JSC$15374_cardList,"iron-resize")};
_.g.computeIsExpanded=function(q){return!!q.isExpanded};
_.g.computeShowProminentLabel=function(q,N){var b;return!!(q==null?0:(b=q.header)==null?0:b.showLeadingCollapsedLabel)&&!N};
_.g.computeShowRightSideLabel=function(q,N){var b;return!(q==null?0:(b=q.header)==null?0:b.showLeadingCollapsedLabel)&&!N};
_.g.captureContentClick=function(q){if(!this.disableExpand)if(_.x("expandable_metadata_fix_killswitch")){var N=q.target;_.Tzx(N,"ytd-macro-markers-list-item-renderer")||q.stopPropagation();(N==null?void 0:N.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.Wk(_.n9(q),this.hostElement,["items"])||_.Su(_.n9(q),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.g.timestampClick=function(q){q.stopPropagation();var N,b;(q=(N=this.data)==null?void 0:(b=N.header)==null?void 0:b.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(q)};
_.g.onDown=function(q){q.stopPropagation();this.startX=q.detail?q.detail.x:0};
_.g.onUp=function(q){this.skipKeyInteraction(q)&&q.stopPropagation()};
_.g.skipKeyInteraction=function(q){var N=q.target;if((N==null?void 0:N.id)==="scroll-container"||(N==null?void 0:N.id)==="items"||q.detail&&q.detail.x!==this.startX)return!0;q=_.n9(q);q=_.Z(q);for(N=q.next();!N.done;N=q.next()){N=N.value;if(N===this.hostElement)break;if(N.hasAttribute&&N.hasAttribute("skip-key-interaction"))return!0}return!1};
_.g.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.$H.Object.defineProperties(CS.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var q;return!!_.v((q=this.data)==null?void 0:q.expandedContent,r2T)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var q;return!!_.v((q=this.data)==null?void 0:q.expandedContent,_.m81)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var q,N;return!((q=this.data)==null||!q.useCustomColors)&&!((N=this.data)==null||!N.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var q,N;return!!((q=this.data)==null?0:(N=q.header)==null?0:N.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var q,N;return!!((q=this.data)==null?0:(N=q.header)==null?0:N.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var q,N;return!!((q=this.data)==null?0:(N=q.header)==null?0:N.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
CS.prototype.onUp=CS.prototype.onUp;CS.prototype.onDown=CS.prototype.onDown;CS.prototype.isExpandedChanged=CS.prototype.isExpandedChanged;CS.prototype.dataChanged=CS.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],CS.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],CS.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],CS.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],CS.prototype,"isExpanded",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],CS.prototype,"disableExpand",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],CS.prototype,"isSearch",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],CS.prototype,"isWatch",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.P("design:type",Object)],CS.prototype,"showProminentLabel",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.P("design:type",Object)],CS.prototype,"showRightSideLabel",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],CS.prototype,"hasVideoSummary",null);_.p([_.U({value:!1,reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],CS.prototype,"hasLockupViewModel",null);_.p([_.U({reflectToAttribute:!0}),_.l("data","isWatch"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],CS.prototype,"useCustomColors",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data","isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],CS.prototype,"showInfoButton",null);_.p([_.l("data","isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],CS.prototype,"showTimestamp",null);_.p([_.l("data","isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],CS.prototype,"showExpandedSubtitle",null);
_.p([_.l("data","isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],CS.prototype,"showThumbnail",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],CS.prototype,"useVppShoppingDestinationStyle",null);_.p([_.U(),_.P("design:type",Object)],CS.prototype,"toggleExpandableContent",void 0);_.p([_.dq("ytd-horizontal-card-list-renderer"),_.P("design:type",Object)],CS.prototype,"JSC$15374_cardList",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.P("design:type",Object)],CS.prototype,"useSquareThumbnail",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CS.prototype,"dataChanged",null);_.p([_.FY("isExpanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CS.prototype,"isExpandedChanged",null);
_.p([_.ZP("down"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],CS.prototype,"onDown",null);_.p([_.ZP("up"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],CS.prototype,"onUp",null);_.p([_.I({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],CS);
_.a(CS,"ytd-expandable-metadata-renderer",function(){if(bex!==void 0)return bex;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return bex=q},{mode:1});var Jhx,Ek1=function(){if(Jhx!==void 0)return Jhx;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Jhx=q};_.P$(_.Nw,"yt-avatar-stack-view-model",{props:{className:_.F5,data:_.F5,overrides:_.F5,isOverlay:_.F5,useMediumText:_.F5,decorations:_.F5,hideAvatar:_.F5}});_.xP("itemSectionRenderer","videoRenderer","ytd-video-renderer");var IH=function(){var q=_.C.apply(this,arguments)||this;q.disableExpand=!1;q.shouldShowChannelInfo=!1;q.hasAttributedBylineText=!1;q.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return q};
_.Y(IH,_.C);_.g=IH.prototype;_.g.computeUseSearchUi=function(){var q,N;return this.isSearch||((q=this.data)==null?void 0:(N=q.style)==null?void 0:N.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.g.computeUseThreeLineTitle=function(){var q;return((q=this.data)==null?void 0:q.maxTitleLines)===3};
_.g.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.x("polymer_video_renderer_defer_menu")&&!s1x?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"}}}};
_.g.attached=function(){_.HP(this.hostElement,"blue-links",_.x("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.bL(_.ee(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var q=this.get("data.buttons.buttonRenderer.serviceEndpoint"),N;q&&((N=_.v(q.commandMetadata,_.nO))==null?0:N.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(q);this.updateInlinePreviewHoverListeners()};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15379_inlinePreviewHoverListener=ix({mediaRenderer:this,lockupElement:this.JSC$15379_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.g.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$15379_inlinePreviewHoverListener)==null||am(q)};
_.g.onTextWrapperClick=function(q){var N,b,y=this.hideTranslation?(N=this.data)==null?void 0:N.untranslatedNavigationEndpoint:(b=this.data)==null?void 0:b.navigationEndpoint;N=_.Wk(_.n9(q),this.hostElement,["expandable-metadata"]);!y||N&&!_.x("expandable_metadata_fix_killswitch")||_.Su(_.n9(q),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.e2(this.hostElement,"yt-navigate",{endpoint:y})};
_.g.computeThumbnailWidth=function(q,N,b,y,J){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:y?J==="MASSIVE"?600:J==="BIG"?500:J==="MEDIUM"?450:420:b?360:N?128:q?210:246};
_.g.computeUseBiggerThumbs=function(q){return q&&_.x("enable_desktop_search_bigger_thumbs")};
_.g.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.g.computeHasAttributedBylineText=function(){var q;return!((q=this.data)==null||!q.attributedBylineText)};
_.g.computeVideoStyle=function(){if(_.x("enable_video_style")){var q,N;return(q=this.data)==null?void 0:(N=q.style)==null?void 0:N.value}};
_.g.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.g.handleHideItemSectionVideosByIdCommand=function(q){var N;q=(N=_.v(q,sME))==null?void 0:N.videoId;this.data&&this.data.videoId===q&&(this.isHidden=!0)};
_.g.getMetadataSnippetContainerClass=function(q){return q?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.g.computeTitleText=function(q,N,b){return q?b:N};
_.g.computeDescriptionSnippet=function(q,N,b){return q?b:N};
_.g.computeSnippetText=function(q,N,b){return q?b:N};
_.g.computeNavigationEndpoint=function(q,N){return q?N==null?void 0:N.untranslatedNavigationEndpoint:N==null?void 0:N.navigationEndpoint};
_.g.hideInlineTitleIcon=function(q,N){return q||!N};
_.$H.Object.defineProperties(IH.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 q;return(q=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?q:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return!!(this==null?0:(q=this.data)==null?0:(N=q.channelThumbnailSupportedRenderers)==null?0:(b=N.channelThumbnailWithLinkRenderer)==null?0:b.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var q;return!!_.v((q=this.data)==null?void 0:q.avatar,rP1)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$15379_inlinePreviewHoverListener)==null?0:Jv(q))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.$H.Object.defineProperties(IH,{template:{configurable:!0,enumerable:!0,get:function(){return Ek1()}}});
IH.prototype.dataChanged=IH.prototype.dataChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],IH.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],IH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],IH.prototype,"ytdDismissibleItemBehavior",void 0);
_.p([_.O(_.Fi),_.P("design:type",Object)],IH.prototype,"ytdLockupBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],IH.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],IH.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],IH.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],IH.prototype,"isBackstageVideo",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],IH.prototype,"isPostCompactVideo",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],IH.prototype,"isHistory",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],IH.prototype,"isRichGridVideoPost",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],IH.prototype,"isHidden",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],IH.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.P("design:type",Boolean)],IH.prototype,"useSearchUi",void 0);_.p([_.U({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.P("design:type",Boolean)],IH.prototype,"useThreeLineTitle",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.P("design:type",Boolean)],IH.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.P("design:type",Object)],IH.prototype,"videoStyle",void 0);_.p([_.U({computed:"computeDisableExpand(videoStyle)"}),_.P("design:type",Object)],IH.prototype,"disableExpand",void 0);
_.p([_.U({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.P("design:type",Object)],IH.prototype,"shouldShowChannelInfo",void 0);_.p([_.U({computed:"computeHasAttributedBylineText(data)"}),_.P("design:type",Object)],IH.prototype,"hasAttributedBylineText",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.jA("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],IH.prototype,"biggerThumbsStyle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.P("design:type",String)],IH.prototype,"inlineTitleIcon",void 0);_.p([_.U({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.P("design:type",Object)],IH.prototype,"computedNavigationEndpoint",void 0);_.p([_.U({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(q,N){return _.Ji(q.entities,"searchVideoResultEntity",N)}}),
_.P("design:type",Object)],IH.prototype,"searchVideoResultEntity",void 0);_.p([_.dq("ytd-thumbnail"),_.P("design:type",HTMLElement)],IH.prototype,"thumbnail",void 0);_.p([_.dq("#dismissible"),_.P("design:type",HTMLElement)],IH.prototype,"JSC$15379_dismissibleMedia",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IH.prototype,"dataChanged",null);
_.p([_.l("searchVideoResultEntity"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],IH.prototype,"hideTranslation",null);_.p([_.l("searchVideoResultEntity"),_.P("design:type",Array),_.P("design:paramtypes",[])],IH.prototype,"hiddenBadgeGroups",null);_.p([_.l("data","useAvatar"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],IH.prototype,"shouldShowChannelThumbnail",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],IH.prototype,"useAvatar",null);
_.p([_.l("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],IH.prototype,"isHovered",null);_.p([_.I({is:"ytd-video-renderer",disableElementRegistration:!0})],IH);_.a(IH,"ytd-video-renderer",function(){return Ek1()},{mode:_.Am("kevlar_poly_si_batch_j047")?1:2});var Tv=function(){var q=_.C.apply(this,arguments)||this;q.editDialog=null;q.roundedContainer=!0;q.isLoading=!1;q.isRichGrid=!1;q.isRichGridRepost=!1;q.reduceSidePaddings=_.x("reduce_side_paddings_in_shelf");q.JSC$15386_spinnerEl=null;return q};
_.Y(Tv,_.C);_.g=Tv.prototype;
_.g.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"}}}};
_.g.contentTextChanged=function(){this.expander.reset()};
_.g.dataChanged=function(){var q=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var N=0,b=this.data.actions&&this.data.actions.length;N<b;N++)this.openEditDialog(_.v(this.data.actions[N],GqJ));if((N=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(N=this.get("buttonRenderer.hint.hintRenderer.hintId",N))&&N.startsWith("share-post-hint")){var y=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(y){_.KP.getInstance();var J=DG(_.nD(_.FE("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.pY.addLowPriorityJob(function(){_.Nc(q.hostElement,J,y)})}}}};
_.g.updatePoll=function(q){q>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.g.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15386_spinnerEl||(this.JSC$15386_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ee(this.hostElement).appendChild(this.JSC$15386_spinnerEl));this.JSC$15386_spinnerEl&&(this.JSC$15386_spinnerEl.active=this.isLoading)};
_.g.onYtNavigate=function(q){var N=this.get("updateCommentDialogEndpoint",q.detail.endpoint);N&&(this.openEditDialog(N),q.stopPropagation())};
_.g.onYtCommentboxDismiss=function(){this.editDialog=null};
_.g.onYtCommentPollRevert=function(q,N){N&&this.updatePoll(N.selectedChoiceIndex)};
_.g.onYtServiceRequestSent=function(q,N){var b;N.endpoint&&(_.v(N.endpoint,DJx)||_.v(N.endpoint,Kyx)&&((b=_.v(N.endpoint,Kyx))==null||!b.clientActions))&&(this.isLoading=!0);if(N.actions)for(q=0;q<N.actions.length;q++)b=N.actions[q],_.v(b,TI)&&(b=this.get("updateBackstagePollAction.selectedChoiceIndex",b),b==void 0&&(b=-1),this.updatePoll(b))};
_.g.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.g.openEditDialog=function(q){q&&q.dialog&&(this.editDialog=q.dialog,q=this.editDialogEl.firstElementChild)&&(q.focus(),q.openDialog&&q.openDialog())};
_.g.computeIsPostHidden=function(q,N){return!!q||N};
_.g.computeSurfaceType=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.g.computeUsesCompactLockup=function(q){return q==="BACKSTAGE_SURFACE_TYPE_HOME"||q==="BACKSTAGE_SURFACE_TYPE_SEARCH"||q==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||q==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||q==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||q==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.g.computeShowWithoutToolbar=function(q){return!q.actionButtons&&!q.actionMenu};
_.g.computePostAttachment=function(q){if(q.backstageAttachment){if(_.v(q.backstageAttachment,dJj))return"poll";if(_.v(q.backstageAttachment,oYJ))return"quiz";if(_.v(q.backstageAttachment,_.ge))return"video";if(_.v(q.backstageAttachment,A$v))return"uploaded-videos";if(_.v(q.backstageAttachment,o2F))return q.contentText?"image":"image-only";if(_.v(q.backstageAttachment,Luq))return"playlist"}return"none"};
_.g.computePostTabIndex=function(q){return q?0:-1};
_.g.computeButtonTooltipPosition=function(q){return this.computeUsesCompactLockup(q)?"top":"bottom"};
_.g.computeHasText=function(q){return!(q==null||!q.contentText)};
_.g.onTap=function(q){var N,b;if(((N=this.data)==null?0:N.navigationEndpoint)&&((b=this.data)==null?void 0:b.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var y;((y=this.data)==null?0:y.navigationEndpoint)&&!_.Su(_.n9(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.e2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.$H.Object.defineProperties(Tv.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.voteCount)||_.nD("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.v(this.data.backstageAttachment,dJj))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.v(this.data.backstageAttachment,A$v))}}});
Tv.prototype.onYtServiceRequestCompleted=Tv.prototype.onYtServiceRequestCompleted;Tv.prototype.onYtServiceRequestSent=Tv.prototype.onYtServiceRequestSent;Tv.prototype.onYtCommentPollRevert=Tv.prototype.onYtCommentPollRevert;Tv.prototype.onYtCommentboxDismiss=Tv.prototype.onYtCommentboxDismiss;Tv.prototype.onYtNavigate=Tv.prototype.onYtNavigate;Tv.prototype.isLoadingChanged=Tv.prototype.isLoadingChanged;Tv.prototype.dataChanged=Tv.prototype.dataChanged;Tv.prototype.contentTextChanged=Tv.prototype.contentTextChanged;
_.p([_.O(_.N8),_.P("design:type",Object)],Tv.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Tv.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Tv.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Tv.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Object)],Tv.prototype,"editDialog",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Tv.prototype,"roundedContainer",void 0);_.p([_.U(),_.P("design:type",Object)],Tv.prototype,"isLoading",void 0);_.p([_.U({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.P("design:type",String)],Tv.prototype,"surface",void 0);
_.p([_.U({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Tv.prototype,"usesCompactLockup",void 0);_.p([_.U({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Tv.prototype,"showWithoutToolbar",void 0);_.p([_.U({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.P("design:type",String)],Tv.prototype,"attachment",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Tv.prototype,"isRichGrid",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Tv.prototype,"isRichGridRepost",void 0);_.p([_.U({reflectToAttribute:!0,value:_.x("use_better_post_dismissals")}),_.P("design:type",Boolean)],Tv.prototype,"useBetterPostDismissals",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Tv.prototype,"reduceSidePaddings",void 0);
_.p([_.U({computed:"computeHasText(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Tv.prototype,"hasText",void 0);_.p([_.dq("#expander"),_.P("design:type",Object)],Tv.prototype,"expander",void 0);_.p([_.dq("#action-buttons"),_.P("design:type",Object)],Tv.prototype,"actionButtons",void 0);_.p([_.dq("#edit-dialog"),_.P("design:type",HTMLElement)],Tv.prototype,"editDialogEl",void 0);
_.p([_.FY("data.contentText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Tv.prototype,"contentTextChanged",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Tv.prototype,"dataChanged",null);_.p([_.FY("isLoading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Tv.prototype,"isLoadingChanged",null);
_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Tv.prototype,"onYtNavigate",null);_.p([_.ZP("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Tv.prototype,"onYtCommentboxDismiss",null);_.p([_.ZP("yt-comment-poll-revert"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],Tv.prototype,"onYtCommentPollRevert",null);
_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],Tv.prototype,"onYtServiceRequestSent",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],Tv.prototype,"onYtServiceRequestCompleted",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Tv.prototype,"voteCount",null);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Tv.prototype,"commentCount",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Tv.prototype,"hasPoll",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Tv.prototype,"hasUploadedVideo",null);_.p([_.I({is:"ytd-post-renderer",disableElementRegistration:!0})],Tv);
_.a(Tv,"ytd-post-renderer",function(){if(GRl!==void 0)return GRl;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return GRl=q},{mode:1});var gkJ;var ZqM;var sE=function(){return _.C.apply(this,arguments)||this};
_.Y(sE,_.C);sE.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.jm.YtdHorizontalListBehavior),_.P("design:type",Object)],sE.prototype,"ytdHorizontalListBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],sE.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],sE.prototype,"data",void 0);
_.p([_.U({value:"$.items.children"}),_.P("design:type",String)],sE.prototype,"itemsPath",void 0);_.p([_.U({value:1}),_.P("design:type",Number)],sE.prototype,"initialCount",void 0);_.p([_.U({reflectToAttribute:!0,value:_.x("enable_community_page_on_desktop")}),_.P("design:type",Boolean)],sE.prototype,"useSmallerPostImageAttachments",void 0);_.p([_.U(),_.P("design:type",String)],sE.prototype,"surface",void 0);_.p([_.I({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],sE);
_.a(sE,"ytd-post-multi-image-renderer",function(){if(ZqM!==void 0)return ZqM;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return ZqM=q},{mode:_.Am("kevlar_poly_si_batch_j079")?1:2});var Fp1={"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"}}},
nS=function(){var q=_.C.apply(this,arguments)||this;q.hasInlineCommentSection=!1;q.editDialog=null;q.isLoading=!1;q.shouldHideAuthor=!1;q.shouldShowVideoTime=!1;q.isInEngagementPanel=!1;q.hideBorder=!1;q.usesFullLockup=!1;q.shouldShowMenuInCompactView=!1;q.JSC$15401_spinnerEl=null;q.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return q};
_.Y(nS,_.C);_.g=nS.prototype;_.g.configureRendererStamper=function(){return Fp1};
_.g.computeIsPollHeaderEnabled=function(q){return(q==null?void 0:q.pollMetadataIcon)!=null};
_.g.getPublishTimeStampString=function(q,N){N=new Date((Number(N)-60*((new Date).getTimezoneOffset()-(new Date(Number(N)*1E3)).getTimezoneOffset()))*1E3);N=(new sR(10)).format(N);if(q&&q.runs&&q.runs.length)for(var b=0;b<q.runs.length;b++)q.runs[b].text&&(q.runs[b].text=q.runs[b].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",N));return q};
_.g.created=function(){this.JSC$15401_spinnerEl=null};
_.g.contentTextChanged=function(){this.expander.reset()};
_.g.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var q;if((q=this.data)==null?0:q.actions){q=_.Z(this.data.actions);for(var N=q.next();!N.done;N=q.next())this.openEditDialog(_.v(N.value,GqJ))}};
_.g.handleSignalActionOpenPostCommentDialogAction=function(){_.ee(this.hostElement).querySelector("#action-buttons").reply()};
_.g.updatePoll=function(q,N){N&&this.set("data.pollMetadataVoteCountText",N);this.hasInlineCommentSection&&(q=q>=0,N=_.ee(this.hostElement).querySelector("#action-buttons"),q?N.reply():N.hideReplyDialog())};
_.g.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15401_spinnerEl||(this.JSC$15401_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ee(this.hostElement).appendChild(this.JSC$15401_spinnerEl));this.JSC$15401_spinnerEl&&(this.JSC$15401_spinnerEl.active=this.isLoading)};
_.g.onYtNavigate=function(q){var N=this.get("updateCommentDialogEndpoint",q.detail.endpoint);N&&(this.openEditDialog(N),q.stopPropagation())};
_.g.onYtCommentboxDismiss=function(){this.editDialog=null};
_.g.onYtCommentPollRevert=function(q,N){N&&this.updatePoll(N.selectedChoiceIndex,N.totalVotes)};
_.g.onYtServiceRequestSent=function(q,N){q.stopPropagation();q=_.v(N.endpoint,Kyx);if(_.v(N.endpoint,DJx)||q&&!q.clientActions)this.isLoading=!0;if(N.actions)for(q=0;q<N.actions.length;q++){var b=N.actions[q],y=_.v(b,TI);y&&(b=this.get("updateBackstagePollAction.selectedChoiceIndex",b),b===void 0&&(b=-1),this.updatePoll(b,y.totalVotes))}};
_.g.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.g.openEditDialog=function(q){q&&q.dialog&&(this.editDialog=q.dialog,q=this.editDialogElement.firstElementChild)&&(q.focus(),q.openDialog&&q.openDialog())};
_.g.computeIsBodyHidden=function(q,N){return!!q||N};
_.$H.Object.defineProperties(nS.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var q=this.data,N=q.showPostAuthorBackgroundHighlight,b=q.postAuthorBadgeType,y=q.authorEndpoint;if(!N&&b!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&b!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var J,E,F;q=_.nD(((J=q.authorText)==null?void 0:(E=J.runs)==null?void 0:(F=E[0])==null?void 0:F.text)||"");J=void 0;switch(b){case "POST_AUTHOR_BADGE_TYPE_ARTIST":J={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":J={iconType:N?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:q,authorEndpoint:y,authorCreator:N,icon:J}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var q,N;if((q=this.data)==null?0:(N=q.pollMetadataIcon)==null?0:N.iconType)return _.qo(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.voteCount)||_.nD("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.v(this.data.backstageAttachment,dJj))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.v(this.data.backstageAttachment,oYJ))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.v(this.data.backstageAttachment,A$v))}}});
nS.prototype.onYtServiceRequestCompleted=nS.prototype.onYtServiceRequestCompleted;nS.prototype.onYtServiceRequestSent=nS.prototype.onYtServiceRequestSent;nS.prototype.onYtCommentPollRevert=nS.prototype.onYtCommentPollRevert;nS.prototype.onYtCommentboxDismiss=nS.prototype.onYtCommentboxDismiss;nS.prototype.onYtNavigate=nS.prototype.onYtNavigate;nS.prototype.isLoadingChanged=nS.prototype.isLoadingChanged;nS.prototype.dataChanged=nS.prototype.dataChanged;nS.prototype.contentTextChanged=nS.prototype.contentTextChanged;
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],nS.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],nS.prototype,"rendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],nS.prototype,"rendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],nS.prototype,"ytdDismissibleItemBehavior",void 0);
_.p([_.dq("#contentTextExpander"),_.P("design:type",Object)],nS.prototype,"expander",void 0);_.p([_.dq("#edit-dialog"),_.P("design:type",Element)],nS.prototype,"editDialogElement",void 0);_.p([_.U(),_.P("design:type",Object)],nS.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],nS.prototype,"hasInlineCommentSection",void 0);_.p([_.U(),_.P("design:type",Object)],nS.prototype,"editDialog",void 0);_.p([_.U(),_.P("design:type",Object)],nS.prototype,"isLoading",void 0);
_.p([_.U({computed:"computeIsPollHeaderEnabled(data)"}),_.P("design:type",Boolean)],nS.prototype,"isPollHeaderEnabled",void 0);_.p([_.U(),_.P("design:type",Object)],nS.prototype,"shouldHideAuthor",void 0);_.p([_.U(),_.P("design:type",Object)],nS.prototype,"shouldShowVideoTime",void 0);_.p([_.U(),_.P("design:type",Object)],nS.prototype,"isInEngagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],nS.prototype,"hideBorder",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],nS.prototype,"usesFullLockup",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],nS.prototype,"shouldShowMenuInCompactView",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],nS.prototype,"authorCommentBadge",null);_.p([_.l("isInEngagementPanel"),_.P("design:type",Number),_.P("design:paramtypes",[])],nS.prototype,"postTextMaxLines",null);
_.p([_.l("data.icon.iconType"),_.P("design:type",Object),_.P("design:paramtypes",[])],nS.prototype,"pollIcon",null);_.p([_.FY("data.contentText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nS.prototype,"contentTextChanged",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nS.prototype,"dataChanged",null);
_.p([_.FY("isLoading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nS.prototype,"isLoadingChanged",null);_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],nS.prototype,"onYtNavigate",null);_.p([_.ZP("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nS.prototype,"onYtCommentboxDismiss",null);
_.p([_.ZP("yt-comment-poll-revert"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],nS.prototype,"onYtCommentPollRevert",null);_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],nS.prototype,"onYtServiceRequestSent",null);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],nS.prototype,"onYtServiceRequestCompleted",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],nS.prototype,"voteCount",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],nS.prototype,"commentCount",null);
_.p([_.l("data.backstageAttachment"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],nS.prototype,"hasPoll",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],nS.prototype,"hasQuiz",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],nS.prototype,"hasUploadedVideo",null);_.p([_.I({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],nS);
_.a(nS,"ytd-backstage-post-renderer",function(){if(gkJ!==void 0)return gkJ;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return gkJ=q},{mode:1});var RBo;var aH=function(){var q=_.C.apply(this,arguments)||this;q.editDialog=null;q.showExpandButton=!1;q.isRichGrid=!1;q.usesFullLockup=!1;return q};
_.Y(aH,_.C);_.g=aH.prototype;_.g.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"}}}};
_.g.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.g.computeShowExpandButton=function(q){return this.usesCompactLockup||q&&q.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.g.computeUsesCompactLockup=function(q){return!!q.condensedContent};
_.g.computeShowFullContentText=function(q){return!q};
_.g.onYtNavigate=function(q){q=this.get("updateCommentDialogEndpoint",q.detail.endpoint);this.openEditDialog(q)};
_.g.onYtCommentboxDismiss=function(){this.editDialog=null};
_.g.openEditDialog=function(q){q&&q.dialog&&(this.editDialog=q.dialog,q=this.repostEditDialogEl.firstElementChild)&&(q.focus(),q.openDialog&&q.openDialog())};
_.g.onTap=function(q){if(this.data){var N=null;this.usesCompactLockup&&!_.Su(_.n9(q)||[],this.hostElement,["YT-IMG-SHADOW"])?N=this.get("navigationEndpoint",this.data):q.target===this.moreButtonEl&&(N=this.get("navigationEndpoint",q.target.data));N&&_.e2(this.hostElement,"yt-navigate",{endpoint:N})}};
aH.prototype.onYtCommentboxDismiss=aH.prototype.onYtCommentboxDismiss;aH.prototype.onYtNavigate=aH.prototype.onYtNavigate;aH.prototype.dataChanged=aH.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],aH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],aH.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Object)],aH.prototype,"editDialog",void 0);_.p([_.U({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],aH.prototype,"usesCompactLockup",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],aH.prototype,"showExpandButton",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],aH.prototype,"isRichGrid",void 0);
_.p([_.U({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.P("design:type",Boolean)],aH.prototype,"showFullContentText",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],aH.prototype,"usesFullLockup",void 0);_.p([_.dq("#more"),_.P("design:type",Object)],aH.prototype,"moreButtonEl",void 0);_.p([_.dq("#repost-content-text"),_.P("design:type",HTMLElement)],aH.prototype,"repostContentTextEl",void 0);
_.p([_.dq("#repost-edit-dialog"),_.P("design:type",HTMLElement)],aH.prototype,"repostEditDialogEl",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aH.prototype,"dataChanged",null);_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],aH.prototype,"onYtNavigate",null);
_.p([_.ZP("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aH.prototype,"onYtCommentboxDismiss",null);_.p([_.I({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],aH);
_.a(aH,"ytd-shared-post-renderer",function(){if(RBo!==void 0)return RBo;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return RBo=q},{mode:1});var dfE;var ch4;var Si=function(){return _.C.apply(this,arguments)||this};
_.Y(Si,_.C);Si.prototype.attached=function(){var q=this;this.networkStatusManager||(this.networkStatusManager=new _.Jr,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){q.onlineHandler()}))};
Si.prototype.detached=function(){var q=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){q.onlineHandler()}),delete this.networkStatusManager)};
Si.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Si.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Si.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Si);
_.a(Si,"ytd-reload-page-button-renderer",function(){if(ch4!==void 0)return ch4;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
return ch4=q},{mode:1});var uaj={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"},Wj=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.Y(Wj,_.C);_.g=Wj.prototype;_.g.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.g.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.g.computeHasBodyText=function(q){return!!q.bodyText};
_.g.computeButtons=function(q){var N=[];q.ctaButton&&N.push(q.ctaButton);q.secondaryButton&&N.push(q.secondaryButton);return N};
_.g.computeRendererStyle=function(q){return q.style?q.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():q.icon?"":"no-icon"};
_.g.getIconName=function(q,N){N=N===void 0?!1:N;if(q===void 0)return"";q=this.get("icon.iconType",q);var b;_.x("enable_hlp_client_icon_pick")?b=this.getThemedIcon(q,N):b=q;(N=uaj[b])||(N="yt-icons");return[N,b].join(":")};
_.g.getThemedIcon=function(q,N){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(q)?N?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(q)?N?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":q};
_.g.isThumbnail=function(q){return!!q.thumbnail};
_.g.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.g.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Wj.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Wj.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Wj.prototype,"data",void 0);
_.p([_.U({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.P("design:type",String)],Wj.prototype,"rendererStyle",void 0);_.p([_.U({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.P("design:type",String)],Wj.prototype,"iconName",void 0);_.p([_.U({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Wj.prototype,"thumbnail",void 0);_.p([_.U({computed:"computeButtons(data)"}),_.P("design:type",Array)],Wj.prototype,"buttons",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Wj.prototype,"isDarkTheme",void 0);_.p([_.U({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Wj.prototype,"hasBodyText",void 0);_.p([_.I({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],Wj);
_.oU()(Wj,"ytd-background-promo-renderer",function(){if(dfE===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);dfE=q}q=dfE;return q},{allowedProps:["data"],
mode:1});var zB1;var LS=function(){return _.C.apply(this,arguments)||this};
_.Y(LS,_.C);_.$H.Object.defineProperties(LS.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var q,N,b,y,J,E;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(q=this.data)==null?void 0:(N=q.thumbnail)==null?void 0:N.sampledThumbnailColor,vibrantColorPalette:(b=this.data)==null?void 0:(y=b.thumbnail)==null?void 0:y.vibrantColorPalette,darkColorPalette:(J=this.data)==null?void 0:(E=J.thumbnail)==null?void 0:E.darkColorPalette,experimentEnabled:!0}}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],LS.prototype,"data",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],LS.prototype,"collectionStack",null);_.p([_.I({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],LS);
_.a(LS,"ytd-compact-station-renderer",function(){if(zB1!==void 0)return zB1;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return zB1=q},{mode:1});var $f4;var pS=function(){var q=_.C.apply(this,arguments)||this;q.isRichGrid=!1;return q};
_.Y(pS,_.C);pS.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]]"}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],pS.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],pS.prototype,"isRichGrid",void 0);_.p([_.I({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],pS);
_.a(pS,"ytd-grid-channel-renderer",function(){if($f4!==void 0)return $f4;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return $f4=q},{mode:1});var t1j;var Pj=function(){return _.C.apply(this,arguments)||this};
_.Y(Pj,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Pj.prototype,"data",void 0);_.p([_.I({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Pj);
_.a(Pj,"ytd-grid-movie-playlist-renderer",function(){if(t1j!==void 0)return t1j;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return t1j=q},{mode:1});var mfM;var Mw=function(){var q=_.C.apply(this,arguments)||this;q.downloadProgress=0;q.transferState="TRANSFER_STATE_UNKNOWN";q.modernButtons=_.x("web_modern_buttons");return q};
_.Y(Mw,_.C);Mw.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
Mw.prototype.configureRendererStamper=function(){return{"data.menu":TQ}};
Mw.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
Mw.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.x("woffle_playlist_renderer_killswitch")){var q,N=k9Z(this.entityInfo,this.transferState,this.downloadProgress,(q=this.data)==null?void 0:q.playlistId,this.isOnline);q=N.viewPlaylistText;var b=N.badges;N=N.thumbnailOverlays;this.isDownloads=!!q||!!b;this.set("data.viewPlaylistText",q);b&&b.length>0&&this.set("data.badges",b);N&&N.length>0&&this.set("data.thumbnailOverlays",
N)}};
_.$H.Object.defineProperties(Mw.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 q;return!((q=this.data)==null?0:q.menu)}}});
Mw.prototype.transferStateChanged=Mw.prototype.transferStateChanged;Mw.prototype.dataChanged=Mw.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Fi),_.P("design:type",Object)],Mw.prototype,"ytdLockupBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],Mw.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Mw.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U({selector:_.LuR,selectorArgs:["data.playlistId"]}),_.P("design:type",Object)],Mw.prototype,"downloadProgress",void 0);_.p([_.U({selector:_.lg,selectorArgs:["data.playlistId"]}),_.P("design:type",Object)],Mw.prototype,"transferState",void 0);_.p([_.U({selector:WuA,selectorArgs:["data.playlistId"]}),_.P("design:type",Object)],Mw.prototype,"entityInfo",void 0);_.p([_.U({selector:_.w3}),_.P("design:type",Boolean)],Mw.prototype,"isOnline",void 0);
_.p([_.U(),_.P("design:type",Object)],Mw.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Mw.prototype,"downloadRenderData",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Mw.prototype,"modernButtons",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Mw.prototype,"isDownloads",void 0);_.p([_.l("transferState"),_.U({reflectToAttribute:!0}),_.P("design:type",String),_.P("design:paramtypes",[])],Mw.prototype,"downloadState",null);
_.p([_.l("data"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Mw.prototype,"menuHidden",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mw.prototype,"dataChanged",null);_.p([_.$9("transferState","downloadProgress","isOnline"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mw.prototype,"transferStateChanged",null);
_.p([_.I({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],Mw);
_.a(Mw,"ytd-grid-playlist-renderer",function(){if(mfM!==void 0)return mfM;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return mfM=q},{mode:1});var rhJ;var oH=function(){return _.C.apply(this,arguments)||this};
_.Y(oH,_.C);oH.prototype.configureRendererStamper=function(){return{"data.menu":TQ,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.$H.Object.defineProperties(oH.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var q,N,b,y,J,E;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(q=this.data)==null?void 0:(N=q.thumbnail)==null?void 0:N.sampledThumbnailColor,vibrantColorPalette:(b=this.data)==null?void 0:(y=b.thumbnail)==null?void 0:y.vibrantColorPalette,darkColorPalette:(J=this.data)==null?void 0:(E=J.thumbnail)==null?void 0:E.darkColorPalette,experimentEnabled:!0}}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],oH.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],oH.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.Fi),_.P("design:type",Object)],oH.prototype,"ytdLockupBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],oH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],oH.prototype,"data",void 0);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],oH.prototype,"collectionStack",null);_.p([_.I({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],oH);
_.a(oH,"ytd-grid-radio-renderer",function(){if(rhJ!==void 0)return rhJ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return rhJ=q},{mode:1});var Xz1;var Av=function(){return _.C.apply(this,arguments)||this};
_.Y(Av,_.C);Av.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Av.prototype.computeNavigationEndpoint=function(q){return IOJ(q==null?void 0:q.navigationEndpoint)};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Av.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Fi),_.P("design:type",Object)],Av.prototype,"ytdLockupBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Av.prototype,"data",void 0);_.p([_.U({computed:"computeNavigationEndpoint(data)"}),_.P("design:type",Object)],Av.prototype,"computedNavigationEndpoint",void 0);
_.p([_.I({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Av);
_.a(Av,"ytd-grid-show-renderer",function(){if(Xz1!==void 0)return Xz1;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Xz1=q},{mode:1});var V1j;_.ei=function(q){this.playerClient=q};
_.jGR=function(q,N,b){b=b===void 0?{}:b;return q.playerClient.setOption("ad",N,b)};
_.ei.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.ei.prototype.executeCommand=function(q,N){this.getOptions().includes("executeCommand")?_.jGR(this,"executeCommand",{command:q,layoutId:N}):_.fT("Calling executeCommand when adModule is not loaded")};var Bj=function(){return _.C.apply(this,arguments)||this};
_.Y(Bj,_.C);Bj.prototype.getLayoutId=function(){var q=_.Ng("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.layoutId:null};
Bj.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var q=_.Pk(),N=this.getLayoutId(),b=this.data.clickthroughEndpoint;q&&N&&_.x("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?q.getPlayerPromise().then(function(y){(new _.ei(y)).executeCommand(b,N)}):_.e2(this.hostElement,"yt-navigate",{endpoint:b})}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Bj.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Bj.prototype,"data",void 0);_.p([_.I({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],Bj);
_.a(Bj,"ytd-shopping-companion-item-renderer",function(){if(V1j!==void 0)return V1j;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return V1j=q},{mode:1});var xfM;var Hj=function(){var q=_.C.apply(this,arguments)||this;q.isExpandableContent=!1;return q};
_.Y(Hj,_.C);_.$H.Object.defineProperties(Hj.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return((q=this.data)==null?void 0:q.price)||((N=this.data)==null?void 0:(b=N.dealsData)==null?void 0:b.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var q,N;if((q=this.data)!=null&&q.dealsData&&((N=this.data)==null||!N.priceReplacementText)){q=this.data.dealsData;var b,y,J;return((b=q.salesData)==null?void 0:b.originalPrice)||((y=q.priceDropData)==null?void 0:y.referencePrice)||((J=q.promotionData)==null?void 0:J.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var q,N;return(q=this.data)==null?void 0:(N=q.dealsData)==null?void 0:N.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Hj.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Hj.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Hj.prototype,"isExpandableContent",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hj.prototype,"showCta",null);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hj.prototype,"ctaText",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hj.prototype,"hasPriceTopPosition",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hj.prototype,"hasPriceBottomPosition",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hj.prototype,"useNewStyle",null);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hj.prototype,"showPriceReplacementText",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hj.prototype,"priceValue",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hj.prototype,"showDeal",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hj.prototype,"showAffiliateDisclaimer",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hj.prototype,"useSaleStyle",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hj.prototype,"useFromBrandCtaStyle",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hj.prototype,"useFromVendorCtaStyle",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hj.prototype,"useShoppingCollectionCtaStyle",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],Hj);
_.a(Hj,"ytd-vertical-product-card-renderer",function(){if(xfM!==void 0)return xfM;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return xfM=q},{mode:1});var vkx;var qy=function(){return _.C.apply(this,arguments)||this};
_.Y(qy,_.C);qy.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],qy.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],qy.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Fi),_.P("design:type",Object)],qy.prototype,"ytdLockupBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],qy.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],qy);
_.a(qy,"ytd-grid-movie-renderer",function(){if(vkx!==void 0)return vkx;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return vkx=q},{mode:1});var GN1;var Ny=function(){var q=_.C.apply(this,arguments)||this;q.roundedFix=_.x("web_enable_merch_item_rounding_fix");q.itemStyle="small-item";return q};
_.Y(Ny,_.C);Ny.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var q,N,b,y,J=(N=_.v((q=this.data)==null?void 0:q.buttonCommand,_.lL1))==null?void 0:(b=N.item)==null?void 0:(y=b.notificationTextRenderer)==null?void 0:y.successResponseText;J&&_.$XR(this.hostElement,J)}};
_.$H.Object.defineProperties(Ny.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.data)==null?void 0:q.isProductPlaceholder)!==void 0&&((N=this.data)==null?void 0:N.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.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}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ny.prototype,"ytRendererBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Ny.prototype,"roundedFix",void 0);_.p([_.U(),_.P("design:type",Object)],Ny.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],Ny.prototype,"itemStyle",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ny.prototype,"hasPrice",null);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ny.prototype,"hasPriceReplacementText",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ny.prototype,"hasAdditionalFeesText",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ny.prototype,"hasAffiliateDisclaimer",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ny.prototype,"isProductPlaceholder",null);
_.p([_.U(),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ny.prototype,"hideOpenInNewIcon",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ny.prototype,"ariaLabel",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],Ny);
_.a(Ny,"ytd-merch-shelf-item-renderer",function(){if(GN1!==void 0)return GN1;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return GN1=q},{mode:1});_.P$(_.n(function(q){return _.u("button-card-view-model",{el:_.ai(_.QR(function(){return q.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return q.data().title},
role:"button"},_.u(_.j9,{model:{}}),_.u("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.u("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.u(_.t,{cond:function(){return q.data().image},
then:function(N){return _.u(_.s_,{data:N,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.u("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return q.data().title})))},"bc"),"button-card-view-model",{props:{data:_.F5}});_.P$(_.n(function(q){q=_.Sl(q,{className:void 0});var N=q.data;q=q.className;var b=_.K3(function(){return N().onTapCommand},void 0,"SXkP9e");
return _.u("ytd-shopping-item-card",{class:_.NO("ytdShoppingItemCardHost",q)},_.u(_.Vf,{command:b,className:"ytdShoppingItemCardHostLink"},_.u("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.u(_.zS,{data:function(){return N().thumbnailViewModel}},{thumbnailViewModel:function(y){return _.u(_.Gv,{data:y.data,
aspectRatio:3})}})),_.u("div",null,_.u("p",{class:"ytdShoppingItemCardHostItemTitle"},_.u(_.Zc,{text:function(){return N().itemTitle}})),_.u("p",{class:"ytdShoppingItemCardHostPrice"},_.u(_.Zc,{text:function(){return N().priceOrStatus}})))))},"cc"),"ytd-shopping-item-card",{props:{data:_.F5,
className:_.F5}});var YZq={isAdsVideo:!0},QGR={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},OqT={showPlayerControls:!1,videoPreviewDurationMs:15E3},wzx={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},iq1={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var ID=null,t3J={};var XIA="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(" "),bz={},V3h=(bz.FEwhat_to_watch="home",bz.FEhashtag="hashtag",bz.FEtrending="trending",bz.FEhistory="history",bz.SPunlimited="premium",bz.FEmemberships_and_purchases="paid_memberships",bz.SPredeem_code="redeem",bz.SPverify_location="locate",bz.SPminor_moment="minor_moment",
bz.FEmini_app_container="mini_app",bz.FEnews_destination="news",bz.SPopen_in_app="open_in_app",bz.FEexplore="explore",bz.FEsubscriptions="subscriptions",bz.FEsfv_audio_pivot="sfv_audio_pivot",bz.FEplaylist_aggregation="playlist_aggregation",bz);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");_.bG("init");var l1E=function(){},kNF=_.n(function(q){var N=q.data;
var b=q.inlineMetadata;var y=q.aspectRatio;var J=q.scrimStyle;var E=q.className;var F=q.useDefaultStyle;var R=q.titleStyle;var c=new l1E,z=_.x("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",m=_.K3(function(){return(F==null?0:F())?z==="SHORTS_LOCKUP_STYLE_SLIM":N().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),r=_.K3(function(){return _.p3(b)||m()||!1},void 0,"SEL6Qd"),X=function(){return(J==null?void 0:J())!==void 0?J==null?void 0:J():1},
V=_.K3(function(){return N().belowThumbnailMetadata||!r()},void 0,"KAqk1b");
q=_.mn({visibilityCallback:function(RJ){var tZ=N().onFirstVisible;RJ&&tZ&&_.Kt(tZ)},
showOption:{calledOnce:!0,state:"visible"}});var G=_.ai(),w={},D=_.NO(function(){return m(),"shortsLockupViewModelHostThumbnailContainer"},(w.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.p3(y)===1},w.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.p3(y)===2},w.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.x("web_shorts_2_by_3_lockups_study")&&!_.x("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
w)),k=_.K3(function(){if(_.p3(y)===1)return 1;
_.p3(y);return 2},void 0,"Bg5Es"),f,L=function(){if(c){var RJ;
(RJ=f)==null||am(RJ);var tZ;if(c.hostElement&&((tZ=c.data)==null?0:tZ.inlinePlayerData)){var wA,rA;RJ=((wA=c.data)==null?0:(rA=wA.inlinePlayerData)==null?0:rA.enableAudioControl)?Object.assign({},iq1):Object.assign({},wzx);var xD,IJ;((xD=c.data)==null?void 0:(IJ=xD.inlinePlayerData)==null?void 0:IJ.maxPlaybackLengthSec)!==void 0&&(RJ.videoPreviewDurationMs=c.data.inlinePlayerData.maxPlaybackLengthSec*1E3);f=ix({mediaRenderer:c,lockupElement:c.hostElement,thumbnailElement:G.value,videoPreviewOpts:RJ})}}};
_.Sx(function(){c&&(c.data=N(),L())},"wo9C7e");
var S=_.K3(function(){return N().thumbnail},void 0,"haijYd");
w=_.K3(function(){return N().badge},void 0,"RpDeSe");
var W=_.K3(function(){return N().onTap},void 0,"hOfuOb"),M={},qe={};
return _.u("ytm-shorts-lockup-view-model",{el:_.ai(function(RJ){c&&(c.hostElement=RJ)},L,q),
class:_.NO("shortsLockupViewModelHost",E)},_.u(_.rV,null,_.u(_.Vf,{command:W,className:_.NO("shortsLockupViewModelHostEndpoint",(M.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!V()},M),"reel-item-endpoint",""),
ariaHidden:function(){return!r()},
tabIndex:function(){return r()?0:-1}},_.u("div",{el:G,
class:_.NO("shortsLockupViewModelHostThumbnailParentContainer",(qe.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!m()},qe))},_.u(_.t,{cond:S,
then:function(){return _.u("div",{class:D},_.u(_.s_,{data:function(){var RJ;return(RJ=S==null?void 0:S())!=null?RJ:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.u(_.zS,{data:function(){return N().thumbnailViewModel}},{thumbnailViewModel:function(RJ){return _.u(_.Gv,{data:RJ.data,
aspectRatio:function(){return k()},
disableRounding:function(){return m()}})}}),null),_.u(_.t,{cond:r,
then:function(){return _.u(Kp4,{data:N,scrimStyle:X,useDefaultStyle:F,titleStyle:R})}}),_.u(_.zS,{data:w},{badgeViewModel:function(RJ){return _.u(_.XT,{data:RJ.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.u(_.t,{cond:function(){return r()&&N().menuOnTap},
then:function(){return _.u(DfM,{data:N,inlineMetadata:!0})}}),_.u(_.t,{cond:V,
then:function(){return _.u(hBM,{data:N,useDefaultStyle:F,inlineMetadata:r})}})))},"ec"),Kp4=_.n(function(q){var N=q.data;
var b=q.scrimStyle;var y=q.useDefaultStyle;var J=q.titleStyle;var E=_.x("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",F=y&&_.x("web_hide_primary_text_for_pivot_panel"),R=_.K3(function(){return(y==null?0:y())?E==="SHORTS_LOCKUP_STYLE_SLIM":N().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
q={};q=_.NO("shortsLockupViewModelHostInlineMetadata",(q.shortsLockupViewModelHostMetadataRounded=function(){return!R()},q.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(b==null?void 0:b())===3&&!_.x("enable_shorts_lockup_new_scrim")},q.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(b==null?void 0:b())===3&&_.x("enable_shorts_lockup_new_scrim")},q.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(b==null?void 0:b())===2||(b==null?void 0:
b())===4},q.shortsLockupViewModelHostShowOverPlayer=function(){return!0},q),"image-overlay-text");
var c={};return _.u("div",{class:q},_.u("h3",{class:_.NO("shortsLockupViewModelHostMetadataTitle",(c.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(b==null?void 0:b())===4},c.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return N().belowThumbnailMetadata},c.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(J==null?void 0:J())===1},c.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(J==null?void 0:J())===2},c)),
"aria-label":function(){return N().accessibilityText}},_.u(_.t,{cond:function(){var z;
return!((z=N().overlayMetadata)==null||!z.primaryText)&&!F},
then:function(){return _.u(_.Zc,{text:function(){var z;return(z=N().overlayMetadata)==null?void 0:z.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.u(_.t,{cond:function(){var z;
return(z=N().overlayMetadata)==null?void 0:z.secondaryText},
then:function(){return _.u(UfR,{data:N,scrimStyle:b,className:void 0})}}))},"fc"),hBM=_.n(function(q){var N=q.data;
var b=q.useDefaultStyle;var y=q.inlineMetadata;var J=_.x("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",E=_.K3(function(){return(b==null?0:b())?J==="SHORTS_LOCKUP_STYLE_SLIM":N().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),F=_.ai(),R;
q=_.y0(function(V){if(_.vG(_.xe(V),F.value,["AVATAR-VIEW-MODEL"]))return!1;var G;(G=R)==null||G.click();return!1});
var c=_.K3(function(){return N().belowThumbnailMetadata||N().overlayMetadata},void 0,"GwezKf"),z=function(){return N().menuOnTap&&!y()},m=function(){var V;
return(V=c())==null?void 0:V.avatar},r={},X={};
return _.u("div",{class:_.NO(function(){return E()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(r.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!m()},r.shortsLockupViewModelHostOutsideMetadataHasMenu=z,r)),
"on:click":q,el:F,role:"presentation"},_.u(_.zS,{data:m},{avatarViewModel:function(V){return _.u(_.HF,{data:V.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.u("div",null,_.u("h3",{class:_.NO("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(X.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var V,G;
return!((V=c())==null?0:(G=V.primaryText)==null?0:G.content)},X.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=y,X)),
role:"presentation"},_.u(_.Vf,{ref:function(V){return void(R=V)},
command:function(){return N().onTap},
className:_.NO("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var V,G;return(V=c())==null?void 0:(G=V.primaryText)==null?void 0:G.content},
"aria-label":function(){return N().accessibilityText}},_.u(_.t,{cond:function(){var V;
return(V=c())==null?void 0:V.primaryText},
then:function(V){return _.u(_.Zc,{text:V,noEndpoints:!0,noStyleRuns:!0})}}))),_.u(_.t,{cond:function(){var V;
return(V=c())==null?void 0:V.secondaryText},
then:function(V){return _.u("div",{class:_.NO("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.u(_.Zc,{text:V,noStyleRuns:!0}))}})),_.u(_.t,{cond:z,
then:function(){return _.u(DfM,{data:N,inlineMetadata:!1})}}))},"gc"),UfR=_.n(function(q){var N=q.data;
var b=q.scrimStyle;q=q.className;var y={};return _.u("div",{class:_.NO((y.shortsLockupViewModelHostMetadataSubhead=function(){return(b==null?void 0:b())!==4},y.shortsLockupViewModelHostMetadataSubheadNew=_.x("enable_shorts_lockup_new_scrim"),y.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(b==null?void 0:b())===4},y),q),
"aria-hidden":"true"},_.u(_.Zc,{text:function(){var J;return(J=N().overlayMetadata)==null?void 0:J.secondaryText},
noStyleRuns:!0}))},"hc"),DfM=_.n(function(q){var N=q.data;
var b=q.inlineMetadata;q={};q=_.NO((q.shortsLockupViewModelHostInlineMetadataMenu=function(){return b()},q.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!b()},q.shortsLockupViewModelHostShowOverPlayer=function(){return!0},q),"image-overlay-text");
return _.u("div",{class:q},_.u(_.GE,{data:function(){return{style:b()?"overlay":"mono",accessibilityLabel:N().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(y){y.preventDefault();y.stopPropagation();var J=_.iq({elementsCommand:N().menuOnTap,forceNewState:!0});if(J==null?0:J.onclick)J.onclick(y)}}},
iconName:"MORE_VERT"}))},"ic");var f1M=_.n(function(q){var N=q.data;var b=q.inlineMetadata;var y=q.aspectRatio;var J=q.scrimStyle;var E=q.className;var F=q.useDefaultStyle;q=_.K3(function(){var R=N().entityId;return R?R.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.u("ytm-shorts-lockup-view-model-v2",{class:_.NO("shortsLockupViewModelHost",E)},_.u(_.KS,{contentId:q,aspectRatio:function(){return(y==null?void 0:y())===1?1:(y==null?void 0:y())===2?2:4}},function(){return _.u(kNF,{data:N,
inlineMetadata:b,aspectRatio:y,scrimStyle:J,className:E,useDefaultStyle:F})}))},"jc");_.P$(f1M,"ytm-shorts-lockup-view-model-v2",{props:{data:_.W$,inlineMetadata:_.W$,aspectRatio:_.W$,scrimStyle:_.W$,className:_.W$,useDefaultStyle:_.W$,titleStyle:_.W$}});var CY4=16/9*210,ys=function(){var q=_.C.apply(this,arguments)||this;q.isExpandableContent=!1;q.hideShelfHeader=!1;q.engagementPanel=!1;q.buttonClasses=["arrow"];q.isSearch=!1;q.disableScrollEventListener=!1;q.containsLockup=!1;q.overrideArrowPositionForProductCard=!1;q.overrideArrowPositionForShoppingItemCard=!1;q.overrideArrowPositionForReelItems=!1;q.overrideArrowPositionForGridMovie=!1;q.overrideArrowPositionToCenter=!1;q.isSearchPostShelf=!1;q.overrideArrowPositionForMixedShelf=!1;q.overrideArrowPositionForMixedShelfShortsOnly=
!1;q.hasBigThumbsReelItems=!1;q.shouldUseMixedListHeight=!1;q.shouldUseShortsListHeight=!1;q.gridVideoWidth=0;q.isSearchVodShelf=!1;q.disableWheelScroll=!1;q.sizing="COMPACT";q.shortsLockupAspectRatio=0;return q};
_.Y(ys,_.C);_.g=ys.prototype;
_.g.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]]"}}}}};
_.g.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.x("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.g.computeInitialCountNumber=function(q){if(!q)return 6;var N=q.items.some(function(E){return!!E.topicRecommendationsChipRenderer}),b=q.items.some(function(E){return!!E.displayAdRenderer}),y=this.computeShouldListItemsHaveEqualHeight(q),J=q.items.some(function(E){return!!E.gridPlaylistRenderer});
q=q.items.some(function(E){return!!E.shoppingItemCardViewModel});
return N?9:b?8:J||y?10:q?7:6};
_.g.computeContainsPost=function(q){return!!q&&!!q.items&&q.items.some(function(N){return!!N.postRenderer})};
_.g.computeContainsLockup=function(){if(_.x("web_horizontal_list_lockup_arrow_killswitch"))return!1;var q,N;return(q=this.data)==null?void 0:(N=q.items)==null?void 0:N.some(function(b){return!!b.lockupViewModel})};
_.g.maybeUpdateLockupAspectRatio=function(){var q,N;if(this.computeContainsLockup()&&((q=this.data)==null?0:(N=q.items)==null?0:N.length)){var b;q=STA((b=this.data.items[0].lockupViewModel)==null?void 0:b.contentType,this.data.force16By9ThumbnailAspectRatio);b=ane(q);b=this.computeLockupWidth()/b;_.Jm(this.hostElement,{"--yt-horizontal-list-content-height":b+"px"})}};
_.g.computeOverrideArrowPositionForProductCard=function(q){if(this.isExpandableContent)return!1;var N;return!!(q==null?0:(N=q.items)==null?0:N.some(function(b){return!!b.verticalProductCardRenderer}))};
_.g.computeOverrideArrowPositionForShoppingItemCard=function(q){var N;return!!(q==null?0:(N=q.items)==null?0:N.some(function(b){return!!b.shoppingItemCardViewModel}))};
_.g.computeOverrideArrowPositionForReelItemRenderer=function(q){return this.containsReelItemRenderer(q)};
_.g.computeHasBigThumbsReelItems=function(q,N){return q&&this.containsReelItemRenderer(N)};
_.g.computeShouldListItemsHaveEqualHeight=function(q){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(q==null?void 0:q.itemSizeConstraint)};
_.g.computeShouldListItemsHaveShortsHeight=function(q){return this.computeShouldListItemsHaveEqualHeight(q)&&!this.containsGridVideoRenderer(q)};
_.g.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.g.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.g.containsReelItemRenderer=function(q){var N;return!!(q==null?0:(N=q.items)==null?0:N.some(function(b){return!(!b.reelItemRenderer&&!b.shortsLockupViewModel)}))};
_.g.containsGridVideoRenderer=function(q){var N;return!!(q==null?0:(N=q.items)==null?0:N.some(function(b){return!!b.gridVideoRenderer||!!b.lockupViewModel}))};
_.g.computeContainsGridMovieRenderer=function(q){var N;return!!(q==null?0:(N=q.items)==null?0:N.some(function(b){return!!b.gridMovieRenderer}))};
_.g.computeOverrideArrowPositionToCenter=function(q){return this.computeIsSearchPostShelf(q)};
_.g.computeIsSearchPostShelf=function(q){var N;return!!(q==null?0:(N=q.items)==null?0:N.some(function(b){var y,J;return((J=(y=b.postRenderer)==null?void 0:y.surface)!=null?J:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.g.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(q){var N;return!!(q==null?0:(N=q.items)==null?0:N.some(function(b){var y,J,E;return((E=(y=b.backgroundPromoRenderer)==null?void 0:(J=y.style)==null?void 0:J.value)!=null?E:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.g.computeIsSearchVodShelf=function(q,N){return q&&this.containsGridVideoRenderer(N)};
_.g.computeDisableWheelScroll=function(q,N){return this.computeIsSearchVodShelf(q,N)};
_.g.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.g.computeShortsLockupAspectRatio=function(){return 1};
_.g.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Jm(this.hostElement,{"--ytd-reel-item-thumbnail-height":CY4+"px"})};
ys.prototype.dataChanged=ys.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ys.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.jm.YtdHorizontalListBehavior),_.P("design:type",Object)],ys.prototype,"ytdHorizontalListBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ys.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Object)],ys.prototype,"isExpandableContent",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ys.prototype,"hideShelfHeader",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ys.prototype,"engagementPanel",void 0);_.p([_.U(),_.P("design:type",Array)],ys.prototype,"buttonClasses",void 0);_.p([_.U(),_.P("design:type",Object)],ys.prototype,"isSearch",void 0);
_.p([_.U(),_.P("design:type",Object)],ys.prototype,"disableScrollEventListener",void 0);_.p([_.U({computed:"computeInitialCountNumber(data)"}),_.P("design:type",Number)],ys.prototype,"initialCount",void 0);_.p([_.U({computed:"computeContainsPost(data)"}),_.P("design:type",Boolean)],ys.prototype,"supportComponentResize",void 0);_.p([_.U({computed:"computeContainsPost(data)"}),_.P("design:type",Boolean)],ys.prototype,"containsPost",void 0);
_.p([_.U({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.P("design:type",Object)],ys.prototype,"containsLockup",void 0);_.p([_.U({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],ys.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.p([_.U({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.P("design:type",Object)],ys.prototype,"overrideArrowPositionForProductCard",void 0);_.p([_.U({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.P("design:type",Object)],ys.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.p([_.U({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.P("design:type",Object)],ys.prototype,"overrideArrowPositionForReelItems",void 0);_.p([_.U({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.P("design:type",Object)],ys.prototype,"overrideArrowPositionForGridMovie",void 0);
_.p([_.U({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.P("design:type",Object)],ys.prototype,"overrideArrowPositionToCenter",void 0);_.p([_.U({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.P("design:type",Object)],ys.prototype,"isSearchPostShelf",void 0);_.p([_.U({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.P("design:type",Object)],ys.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.p([_.U({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.P("design:type",Object)],ys.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.p([_.U({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.P("design:type",Object)],ys.prototype,"hasBigThumbsReelItems",void 0);
_.p([_.U({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.P("design:type",Object)],ys.prototype,"shouldUseMixedListHeight",void 0);_.p([_.U({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.P("design:type",Object)],ys.prototype,"shouldUseShortsListHeight",void 0);_.p([_.U({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.P("design:type",Object)],ys.prototype,"gridVideoWidth",void 0);
_.p([_.U({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.P("design:type",Object)],ys.prototype,"isSearchVodShelf",void 0);_.p([_.U({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.P("design:type",Object)],ys.prototype,"disableWheelScroll",void 0);_.p([_.U({computed:"computeSizing(isSearch)"}),_.P("design:type",Object)],ys.prototype,"sizing",void 0);
_.p([_.U({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.P("design:type",Object)],ys.prototype,"shortsLockupAspectRatio",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ys.prototype,"dataChanged",null);
_.a(ys,"yt-horizontal-list-renderer",function(){if(Cio===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);Cio=q}q=Cio;return q},{mode:1});var I14=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
I14.prototype.subscribe=function(q,N){var b=this.subscriptions.get(q);if(!b)return function(){};
b.add(N);return function(){b.delete(N)}};
I14.prototype.unsubscribe=function(q,N){(q=this.subscriptions.get(q))&&q.delete(N)};
I14.prototype.publish=function(q,N){N=N===void 0?{}:N;(q=this.subscriptions.get(q))&&q.forEach(function(b){b(N)})};var Tt4;var sG4=[10,12,14,16,18,20,24,28,32,36],nkx=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],JA=function(){var q=_.C.apply(this,arguments)||this;q.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";q.hideOverflow=!1;q.useRoboto=!1;q.fontClass="";q.overflown=!1;q.actionMap={"yt-window-resized":"resize"};return q};
_.Y(JA,_.C);_.g=JA.prototype;
_.g.attached=function(){var q=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();_.ut(this,function(){q.resize()});
if(!_.HV){var N,b,y;(N=document)==null||(b=N.fonts)==null||(y=b.ready)==null||y.then(function(){q.resize()})}};
_.g.dataChanged=function(){this.resize()};
_.g.guideIsExpandedChanged=function(){this.resize()};
_.g.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 q=this.getMaxNumLines(),N=this.getMinFont(),b=this.getMaxFont(),y=this.useRoboto?sG4:nkx;for(y=y.filter(function(E){return E<=b&&E>=N});y.length>1;){var J=Math.floor(y.length/2);
this.updateFontSize(y[J]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=q)y=y.slice(J,y.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>q)y=y.slice(0,J);else break}this.updateFontSize(y[y.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(q)}};
_.g.handleOverflow=function(q){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>q&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",q.toString()))};
_.g.updateFontSize=function(q){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+q;this.textNode.classList.add(this.fontClass)};
_.g.getMaxFont=function(){var q=this.useRoboto?sG4:nkx;q=q[q.length-1];return this.maxFontSize&&this.maxFontSize<=q?this.maxFontSize:q};
_.g.getMinFont=function(){var q=(this.useRoboto?sG4:nkx)[0];return this.minFontSize&&this.minFontSize>=q?this.minFontSize:q};
_.g.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.g.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.g.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.ao(this.text).split("\n").length-1:Infinity};
_.g.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()}};
JA.prototype.guideIsExpandedChanged=JA.prototype.guideIsExpandedChanged;JA.prototype.dataChanged=JA.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],JA.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],JA.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],JA.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],JA.prototype,"text",void 0);
_.p([_.U(),_.P("design:type",String)],JA.prototype,"fontFamily",void 0);_.p([_.U(),_.P("design:type",Number)],JA.prototype,"maxWidth",void 0);_.p([_.U(),_.P("design:type",Number)],JA.prototype,"maxHeight",void 0);_.p([_.U(),_.P("design:type",Number)],JA.prototype,"maxFontSize",void 0);_.p([_.U(),_.P("design:type",Number)],JA.prototype,"minFontSize",void 0);_.p([_.U(),_.P("design:type",Number)],JA.prototype,"maxLines",void 0);_.p([_.U(),_.P("design:type",Object)],JA.prototype,"hideOverflow",void 0);
_.p([_.U({selector:_.DTD}),_.P("design:type",Boolean)],JA.prototype,"guideIsExpanded",void 0);_.p([_.dq("#container"),_.P("design:type",HTMLElement)],JA.prototype,"containerNode",void 0);_.p([_.dq("#text"),_.P("design:type",HTMLElement)],JA.prototype,"textNode",void 0);_.p([_.$9("text"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],JA.prototype,"dataChanged",null);
_.p([_.$9("guideIsExpanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],JA.prototype,"guideIsExpandedChanged",null);_.p([_.I({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],JA);
_.a(JA,"yt-dynamic-sizing-formatted-string",function(){if(Tt4!==void 0)return Tt4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Tt4=q},{mode:1});var a1j;_.SZx=function(q){_.bn.call(this,q)};
_.Y(_.SZx,_.bn);var WpT=function(q){_.bn.call(this,q)};
_.Y(WpT,_.SZx);var Er=function(){return _.C.apply(this,arguments)||this};
_.Y(Er,_.C);Er.prototype.onTapSuspendedChannel=function(){var q;if((q=this.data)!=null&&q.serviceEndpoint){var N,b;(q=(b=_.v((N=this.data)==null?void 0:N.serviceEndpoint,_.b_))==null?void 0:b.url)?_.lI(q,void 0,void 0,window.top):(N=new WpT("Did not handle suspended account tap. No appealUrl."),_.po(N))}else N=new WpT("Did not handle suspended account tap. No serviceEndpoint."),_.po(N)};
Er.prototype.onTap=function(){var q=this,N=_.FR(),b,y=(b=_.Zd(N,{veType:7116}))!=null?b:void 0;_.Ul(N,{visualElement:y});_.w5();this.saveRoleText();var J;if((J=this.data)==null?0:J.youtubeSuspended)this.onTapSuspendedChannel();else{var E=!1,F,R;(N=(R=_.v((F=this.data)==null?void 0:F.serviceEndpoint,_.Itv))==null?void 0:R.supportedTokens)&&N.forEach(function(c){if(c.accountSigninToken)if(E=!0,q.onAccountItemTap)q.onAccountItemTap(c.accountSigninToken.signinUrl);else _.lI(c.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!E){if(F=this.get("serviceEndpoint",this.data))E=!0,this.ytComponentBehavior.resolveCommand(F);E||_.P_(new WpT("Did not handle account switch tap. No token."))}}};
Er.prototype.saveRoleText=function(){if(this.data){var q=this.data,N=q.channelDelegationRole;if(N){var b,y=(b=_.v(q==null?void 0:q.serviceEndpoint,_.Itv))==null?void 0:b.supportedTokens;if(!y){var J,E,F,R;y=(J=_.v(q==null?void 0:q.serviceEndpoint,_.sj))==null?void 0:(E=J.popup)==null?void 0:(F=E.confirmDialogRenderer)==null?void 0:(R=F.confirmButton)==null?void 0:R.buttonRenderer;var c;y=(c=_.v(y==null?void 0:y.command,_.y6))==null?void 0:c.commands;if(!y)return;var z;y=(z=_.v(y[1],_.Itv))==null?
void 0:z.supportedTokens}if(y){c=void 0;z=_.Z(y);for(y=z.next();!y.done;y=z.next())if(y=y.value,y.datasyncIdToken){c=y.datasyncIdToken.datasyncIdToken;break}if(c){var m;a:{if(_.Lod()&&(z=_.SYJ(c+"::pom"))){z=new Iz(z);break a}z=void 0}(m=z)==null||m.set("role_text",N);if((JAJ?JAJ:window.location).href.indexOf("studio")!==-1&&(m=pjA())){z=m.src?(new URL(m.src)).origin:"*";var r;(r=m.contentWindow)==null||r.postMessage({action:"save_pom_role",datasyncId:c,roleText:N},z)}}}}}};
_.$H.Object.defineProperties(Er.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var q,N,b=(q=this.data)==null?void 0:(N=q.accountPhoto)==null?void 0:N.thumbnails;return b&&b.length>0&&(b[0].height===36||b[0].height===48)?b[0].height:40}}});
Er.prototype.onTap=Er.prototype.onTap;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Er.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Er.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Er.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!1}),_.P("design:type",Function)],Er.prototype,"onAccountItemTap",void 0);
_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Er.prototype,"enableRingForActiveAccount",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],Er.prototype,"thumbnailSize",null);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Er.prototype,"onTap",null);_.p([_.I({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Er);
_.a(Er,"ytd-account-item-renderer",function(){if(a1j!==void 0)return a1j;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return a1j=q},{mode:1});var LpF;var go=function(){return _.C.apply(this,arguments)||this};
_.Y(go,_.C);go.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.tz().resolve(_.rO).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],go.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],go.prototype,"data",void 0);_.p([_.I({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],go);
_.a(go,"ytd-identity-chip-renderer",function(){if(LpF!==void 0)return LpF;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return LpF=q},{mode:1});var pz1;var PYj;var M1o;var okE;var Z0=function(){var q=_.C.apply(this,arguments)||this;q.richItemMinWidth=_.VX("wn_grid_min_item_width",310);q.isShorts=!1;q.isWatchNext=!1;q.isExploreHub=!1;return q};
_.Y(Z0,_.C);_.$H.Object.defineProperties(Z0.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var q=[],N=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Jm(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var b;if(((b=this.data)==null?0:b.rows)&&N)for(N*=this.data.rows,b=0;b<N;b++)q.push({});return q}}});
_.p([_.O(_.H6),_.P("design:type",Object)],Z0.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Z0.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Z0.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.YR,value:3}),_.P("design:type",Number)],Z0.prototype,"itemsPerRow",void 0);_.p([_.U({selector:_.Kuh,value:6}),_.P("design:type",Number)],Z0.prototype,"slimItemsPerRow",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Number)],Z0.prototype,"richItemMinWidth",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.GC}),_.P("design:type",Boolean)],Z0.prototype,"miniMode",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Z0.prototype,"isShorts",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Z0.prototype,"isWatchNext",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Z0.prototype,"isExploreHub",void 0);
_.p([_.l("isExploreHub"),_.U({reflectToAttribute:!0}),_.P("design:type",Object),_.P("design:paramtypes",[])],Z0.prototype,"shimmerAnimation",null);_.p([_.l("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.P("design:type",Array),_.P("design:paramtypes",[])],Z0.prototype,"cardItems",null);_.p([_.I({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Z0);
_.AhF=_.oU()(Z0,"ytd-ghost-grid-renderer",function(){if(okE===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);okE=q}q=okE;return q},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.P$(_.n(function(q){var N=_.Sl(q,{numberOfComments:3}).numberOfComments,b=_.Sl(q,{isInitialLoad:!1}).isInitialLoad,y=_.Sl(q,{engagementPanel:!1}).engagementPanel,J=function(){return Math.min(Number(N==null?void 0:N())||20,20)};
return _.u("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.u(_.t,{cond:function(){return!(y==null?0:y())&&(b==null?void 0:b())},
then:function(){return _.u("div",{class:"ytGhostCommentsComments"},_.u("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.u("div",{class:_.NO("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.u("div",{class:_.NO("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.u("div",{class:"ytGhostCommentsGhostCard"},_.u("div",{class:"ytGhostCommentsAvatar"},_.u("div",{class:"ytGhostCommentsCircle"})),_.u("div",{class:"ytGhostCommentsComments"},_.u("div",{class:"ytGhostCommentsMeta"},
_.u("div",{class:_.NO("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.u("div",{class:_.NO("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.u("div",{class:"ytGhostCommentsComments"},_.u(_.Tf,{each:function(){return Array((J==null?void 0:J())||3)}},function(){return _.u("div",{class:"ytGhostCommentsGhostCard"},_.u("div",{class:"ytGhostCommentsAvatar"},_.u("div",{class:"ytGhostCommentsCircle"})),_.u("div",{class:"ytGhostCommentsHost"},_.u("div",{class:"ytGhostCommentsMeta"},
_.u("div",{class:_.NO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.u("div",{class:_.NO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.u("div",{class:_.NO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.u("div",{class:"ytGhostCommentsGhostLikeDislike"},_.u("div",{class:_.NO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.u("div",{class:_.NO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"kc"),"yt-ghost-comments",{props:{numberOfComments:_.F5,
isInitialLoad:_.F5,engagementPanel:_.F5},unsafeExternallySettableAttributes:new Set(["hidden"])});_.xP("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Fs=function(){var q=_.C.apply(this,arguments)||this;q.isOverridable=!1;q.spinnerActive=!1;q.showButton=!1;q.isCommentsSection=!1;q.engagementPanel=!0;q.isShortsGrid=!1;q.isShortsPage=!1;q.isWatchPage=!1;q.originalShowButton=!1;q.endOfList=!1;return q};
_.Y(Fs,_.C);_.g=Fs.prototype;_.g.resetIntersectionObserver=function(){var q;(q=this.observer)==null||q.disconnect();this.observer=void 0};
_.g.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var q,N;((q=this.data)==null?void 0:q.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((N=this.data)==null?0:N.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.g.initializeIntersectionObserver=function(){var q=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(N){N=_.Z(N);for(var b=N.next();!b.done;b=N.next())b.value.isIntersecting&&(q.triggerContinuation(),q.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.g.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]]"}}}}}};
_.g.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var q;((q=this.data)==null?0:q.continuationEndpoint)&&(q=_.v(this.data.continuationEndpoint,_.lR))&&this.ytdReduxBehavior.dispatch(_.B3({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:q}}))};
_.g.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.g.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.g.onServiceRequestCompleted=function(q,N){if(!_.x("kevlar_hide_spinner_on_empty_continuation_killswitch")){var b;(b=N.actions)!=null&&b.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.g.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.g.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.g.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.g.numberOfGhostCommentsChanged=function(){var q=3;if(this.engagementPanel){var N,b,y;q=Math.floor(((((N=this.hostElement)==null?void 0:(b=N.parentElement)==null?void 0:(y=b.parentElement)==null?void 0:y.scrollHeight)||108)-108)/108);q=this.isInitialLoad?Math.max(q,3):3}N=[].concat(_.a9(this.hostElement.querySelectorAll("yt-ghost-comments")));N=_.Z(N);for(b=N.next();!b.done;b=N.next())b=b.value,b.numberOfComments=q,b.isInitialLoad=this.isInitialLoad,b.engagementPanel=this.engagementPanel};
_.g.detached=function(){this.resetIntersectionObserver()};
_.$H.Object.defineProperties(Fs.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
Fs.prototype.numberOfGhostCommentsChanged=Fs.prototype.numberOfGhostCommentsChanged;Fs.prototype.continuationTriggerOffsetChanged=Fs.prototype.continuationTriggerOffsetChanged;Fs.prototype.showButtonChanged=Fs.prototype.showButtonChanged;Fs.prototype.onYtServiceRequestCompletedForButtonRenderer=Fs.prototype.onYtServiceRequestCompletedForButtonRenderer;Fs.prototype.onServiceRequestCompleted=Fs.prototype.onServiceRequestCompleted;Fs.prototype.onYtServiceRequestSentForButtonRenderer=Fs.prototype.onYtServiceRequestSentForButtonRenderer;
Fs.prototype.observeData=Fs.prototype.observeData;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Fs.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.yf.YtVisibilityBehavior),_.P("design:type",Object)],Fs.prototype,"ytVisibilityBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Fs.prototype,"ytComponentBehavior",void 0);
_.p([_.O(_.H6),_.P("design:type",Object)],Fs.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Fs.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Fs.prototype,"isOverridable",void 0);_.p([_.U(),_.P("design:type",Object)],Fs.prototype,"spinnerActive",void 0);_.p([_.U(),_.P("design:type",Object)],Fs.prototype,"showButton",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Fs.prototype,"isCommentsSection",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Fs.prototype,"engagementPanel",void 0);_.p([_.U(),_.P("design:type",Object)],Fs.prototype,"isShortsGrid",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.UTJ}),_.P("design:type",Object)],Fs.prototype,"isShortsPage",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.kEZ}),_.P("design:type",Object)],Fs.prototype,"isWatchPage",void 0);_.p([_.U(),_.P("design:type",Number)],Fs.prototype,"continuationTriggerOffset",void 0);
_.p([_.U(),_.P("design:type",Object)],Fs.prototype,"endOfList",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Fs.prototype,"isInitialLoad",void 0);_.p([_.dq("ytd-button-renderer"),_.P("design:type",_.V5)],Fs.prototype,"buttonRenderer",void 0);_.p([_.U(),_.P("design:type",Object)],Fs.prototype,"buttonOverrides",void 0);
_.p([_.U(),_.l("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.P("design:type",Object),_.P("design:paramtypes",[])],Fs.prototype,"showGhostCardComments",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Fs.prototype,"observeData",null);
_.p([_.ZP("yt-service-request-sent-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Fs.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],Fs.prototype,"onServiceRequestCompleted",null);
_.p([_.ZP("yt-service-request-completed-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Fs.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.p([_.$9("showButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Fs.prototype,"showButtonChanged",null);
_.p([_.$9("continuationTriggerOffset"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Fs.prototype,"continuationTriggerOffsetChanged",null);_.p([_.FY("isInitialLoad","engagementPanel"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Fs.prototype,"numberOfGhostCommentsChanged",null);_.p([_.I({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Fs);
_.a(Fs,"ytd-continuation-item-renderer",function(){if(M1o!==void 0)return M1o;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return M1o=q},{mode:1});var eB1;var RZ=function(){var q=_.C.apply(this,arguments)||this;q.downloadProgress=0;q.transferState="TRANSFER_STATE_UNKNOWN";q.downloadState="DOWNLOAD_STATE_UNKNOWN";q.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";q.offlineVideoPolicyExpirationTimestamp=0;q.downloadedVideoPlaybackPosition=0;return q};
_.Y(RZ,_.C);RZ.prototype.dataChanged=function(){var q;this.videoData=_.v((q=this.data)==null?void 0:q.renderer,tsJ);this.transferStateChanged()};
RZ.prototype.downloadProgressChanged=function(){if(this.entityInfo){var q=Object.assign({},this.videoData),N=UJe(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),b=N.publishedTimeText,y=N.badges;q.shortViewCountText=N.shortViewCountText;q.publishedTimeText=b;q.badges=y;this.set("videoData",q)}};
RZ.prototype.transferStateChanged=function(){if(this.entityInfo){var q=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",N=_.zC(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!ug(this.entityInfo.policyEntity),b=Object.assign({},this.videoData),y=UJe(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),J=y.publishedTimeText,E=y.badges;b.shortViewCountText=
y.shortViewCountText;b.publishedTimeText=J;b.badges=E;b.isDisabled=N;b.isWatched=this.downloadedVideoPlaybackPosition>0;b.navigationEndpoint=N?void 0:fOD(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var F;q&&((F=this.videoData)==null?0:F.videoId)&&!_.x("dl_resume_click_killswitch")&&(b.isDisabled=!1,b.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});b.thumbnailOverlays=hkD(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",b)}};
RZ.prototype.transferStateChanged=RZ.prototype.transferStateChanged;RZ.prototype.downloadProgressChanged=RZ.prototype.downloadProgressChanged;RZ.prototype.dataChanged=RZ.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],RZ.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],RZ.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Object)],RZ.prototype,"videoData",void 0);_.p([_.U({selector:KD,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],RZ.prototype,"downloadProgress",void 0);_.p([_.U(),_.P("design:type",Number)],RZ.prototype,"relativeDateReference",void 0);_.p([_.U({selector:_.ig,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],RZ.prototype,"transferState",void 0);
_.p([_.U({selector:N7d,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],RZ.prototype,"downloadState",void 0);_.p([_.U({selector:sRn,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],RZ.prototype,"offlinePolicyAction",void 0);_.p([_.U({selector:nYJ,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],RZ.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.p([_.U({selector:DC,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],RZ.prototype,"downloadedVideoPlaybackPosition",void 0);_.p([_.U({selector:Sun,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],RZ.prototype,"entityInfo",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],RZ.prototype,"isDownloading",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RZ.prototype,"dataChanged",null);
_.p([_.$9("downloadProgress"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RZ.prototype,"downloadProgressChanged",null);_.p([_.$9("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RZ.prototype,"transferStateChanged",null);
_.p([_.I({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],RZ);
_.a(RZ,"ytd-downloaded-video-grid-video-renderer",function(){if(eB1!==void 0)return eB1;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return eB1=q},{mode:_.Am("kevlar_poly_si_batch_j025")?1:2});var Btv;var cf=function(){};
cf.prototype.resolve=function(q,N){var b=this;return _.d(function(y){return y.yield(b.resolveCommand(q,N),0)})};var Hq1,uz;Hq1=j4A(function(q){return q.targetId},{shouldPersist:!1});
uz=Hq1.updateData;_.qyF=Hq1.useUpdatableData;var NZ4,b24;NZ4=j4A(function(q){return q.targetId});
b24=NZ4.updateData;_.yyT=NZ4.useUpdatableData;var Jyv=vIz.bind(null,uz),EhJ=vIz.bind(null,b24);(function(q,N,b){var y=_.v(b==null?void 0:b.updatedRenderer,_.pQF);return y?q({targetId:N},function(){return y}):!1}).bind(null,uz);var zk=function(){};
_.Y(zk,cf);zk.prototype.resolveCommand=function(q){var N;return _.d(function(b){N=_.v(q,_.DaA);if(!N)return b.return();Jyv(N.targetId,N);_.hj(b)})};var $l=function(){var q=_.uL.apply(this,arguments)||this;q.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return q};
_.Y($l,_.uL);_.g=$l.prototype;_.g.configureContinuationPathMap=function(){return{}};
_.g.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.g.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.g.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.g.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.g.handleAppendContinuationItemsAction=function(q){var N=_.v(q,_.Tkx);if(this.data&&this.data.targetId&&N&&this.continuationPathMap&&N.targetId===this.data.targetId){var b=EeZ(q),y=b&&this.continuationPathMap[b];if(y&&b)if(q=this.get(y,this.data)){a:{for(b=0;b<q.length;b++){var J=q[b],E=void 0,F=!!_.v((E=_.v(J,QV1))==null?void 0:E.content,_.c0o);if(_.v(J,_.SP)||F)break a}b=q.length}y="data."+y;N.continuationItems?b===q.length-1?(this.pop(y),this.push.apply(this,[y].concat(_.a9(N.continuationItems)))):
b===q.length?this.push.apply(this,[y].concat(_.a9(N.continuationItems))):this.splice.apply(this,[y,b,1].concat(_.a9(N.continuationItems))):this.splice(y,b,1);(_.x("web_enable_voting_animation")||_.x("enable_music_web_cairo_voting_animation"))&&_.e2(this.hostElement,"yt-append-continuation-items-action-finished");_.e2(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.M6(new _.IO("append continuation items does not exist",b));else _.M6(new _.IO("append continuation path does not exist",
b))}};
_.g.handleReloadContinuationItemsCommand=function(q){var N=_.v(q,_.DaA);if(this.data&&N){if(_.x("web_client_explore_hub")||_.x("web_explore_hub_on_hover")||_.x("web_client_explore_hub_on_hover"))try{_.tz().resolve(zk).resolveCommand(q)}catch(E){}if(this.data.targetId&&this.continuationPathMap&&N.targetId===this.data.targetId&&(!_.x("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||N.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var b,y=(b=N.slot)==null?void 0:
b.replace("RELOAD_CONTINUATION_SLOT_","");b=(q=EeZ(q)+"-"+(y==null?void 0:y.toLowerCase()))&&this.continuationPathMap[q];if(!b||!q||!y)_.M6(new _.IO("reload continuation path does not exist",q));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(N)){if(N.replaceWithFirstItem){var J;this.set("data."+b,((J=N.continuationItems)==null?0:J.length)?N.continuationItems[0]:{})}else this.set("data."+b,N.continuationItems?N.continuationItems:[]);this.continuationIsReloading=
!1;_.e2(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.g.handleShowReloadUiCommand=function(q){q=_.v(q,qDM);var N;((N=this.data)==null?0:N.targetId)&&(q==null?0:q.targetId)&&q.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
$l.prototype.observeData=$l.prototype.observeData;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],$l.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],$l.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],$l.prototype,"data",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],$l.prototype,"continuationIsReloading",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$l.prototype,"observeData",null);_.p([_.zs()],$l);_.tA=[_.qT.YtComponentBehavior,_.Dc.YtActionHandlerBehavior,$l.prototype];_.m1={};_.m1.YtNextContinuationBehavior=[_.zE.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",_.gq(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.gq(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(q,N){q.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,N,{}):(q={locationRetrieved:function(b){this.makeNextContinuationRequest_(b,N,{})}.bind(this)},_.e2(this.hostElement,"yt-retrieve-location",q))},
makeNextContinuationRequest_:function(q,N,b){_.OY("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();q=N(q);var y;this.canUseContextualNetworkManager_()&&(y=this.getNetworkManager());y||(y=_.tz().resolve(_.$8));N=_.f6.instance;if(_.M7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&N){y=_.LD([q.startsWith("/")?q.substr(1):q]);var J,E;b=_.ZG(N,{},y,b==null?void 0:(J=b.context)==null?void 0:(E=J.clickTracking)==null?void 0:E.clickTrackingParams).then(function(F){return{response:F}})}else b=
this.nextContinuation.usePost?y.postData(q,b):y.fetchData(q);
b.then(this.updateNextContinuationData_.bind(this,q));this.pendingContinuationRequest_=b;this.startListeningForNavigate_()},
updateNextContinuationData_:function(q,N){var b=this;_.OY("ncl");this.pendingContinuationRequest_=void 0;if(N){var y={};this.nextContinuation&&(y=this.nextContinuation);if(N.response&&N.response.continuationContents&&N.response.continuationContents[y.continuationType]){q=N.response.continuationContents[y.continuationType];var J=y.header||"data.header",E=q[y.responseHeaderKey||"header"];E&&this.set(J,E);J=y.contentsArray||"data.contents";E=this.getContents_(q,y.responseContentsKey||"contents")||[];
this.pathExists_(J)?(E.unshift(J),this.push.apply(this,E)):this.set(J,E);E&&(GdA(_.FR(),N.response,this.hostElement,function(F){_.By(b.hostElement,"yt-store-grafted-ve-action",[F])}),_.e2(this.hostElement,"yt-next-continuation-data-updated",{continuationData:N,
page:this,contentsArray:J}));this.set(y.continuationsArray||"data.continuations",q[y.responseContinuationsKey||"continuations"]||[])}else N.reload?_.M6(new _.IO("Reloading from continuation is unsupported")):N.responseContext&&N.responseContext.errors||(delete N.xsrf_token,delete N.timing,delete N.endpoint,delete N.csn,N.responseContext&&delete N.responseContext.serviceTrackingParams,J={request:_.ZM(q,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(N).sort()},N.response&&(J.responseContentKeys=
Object.keys(N.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(J.continuationType=this.nextContinuation.continuationType.substr(0,256)),N=new _.IO("Malformed continuation",J),q.indexOf("/comment_service_ajax")==0?_.M6(N):_.po(N)),this.set(y.continuationsArray||"data.continuations",[])}else _.P_(new _.IO("Missing continuation response",q))},
getContents_:function(q,N){N=N.split(".");return _.nM.getValueByKeys(q,N)},
pathExists_:function(q){var N=this;q=q.toString().split(".");for(var b=0;b<q.length;b++)if(N=N[q[b]],N===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var ghR;var Z2x;var ro=function(){var q=_.C.apply(this,arguments)||this;q.triggered_=!1;return q};
_.Y(ro,_.C);_.g=ro.prototype;_.g.attached=function(){this.maybeTriggerAutoload()};
_.g.detached=function(){this.hasBeenTriggered_=!1};
_.g.onPrescanVisible=function(){this.onShow()};
_.g.onShow=function(){this.showButton||this.trigger()};
_.g.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.e2(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.g.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.g.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.g.computeLabel_=function(q,N){return q===void 0?null:q.label||!N?q.label:this.showMoreText_};
_.g.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.g.getContinuationUrl=function(q){var N={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(N.itct=this.data.clickTrackingParams);return _.F$(q,N)};
_.g.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
ro.prototype.showButtonChanged_=ro.prototype.showButtonChanged_;ro.prototype.observeData_=ro.prototype.observeData_;_.p([_.O(_.yf.YtVisibilityBehavior),_.P("design:type",Object)],ro.prototype,"ytVisibilityBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ro.prototype,"data",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],ro.prototype,"showButton",void 0);
_.p([_.U({value:!1}),_.P("design:type",Boolean)],ro.prototype,"showIcon",void 0);_.p([_.U({computed:"computeLabel_(data, showButton)"}),_.P("design:type",Object)],ro.prototype,"label",void 0);_.p([_.U({value:_.nD(_.FE("SHOW_MORE",void 0,"Show More"))}),_.P("design:type",Object)],ro.prototype,"showMoreText_",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],ro.prototype,"spinnerActive_",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],ro.prototype,"hasBeenTriggered_",void 0);
_.p([_.U({value:void 0}),_.P("design:type",String)],ro.prototype,"observeVisibleOption",void 0);_.p([_.U({value:void 0}),_.P("design:type",String)],ro.prototype,"observeHiddenOption",void 0);_.p([_.U({value:"observe_once"}),_.P("design:type",Object)],ro.prototype,"observePrescanOption",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ro.prototype,"observeData_",null);
_.p([_.FY("showButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ro.prototype,"showButtonChanged_",null);_.p([_.Ok({is:"yt-next-continuation",disableElementRegistration:!0})],ro);
_.a(ro,"yt-next-continuation",function(){if(Z2x===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;ghR===void 0&&(ghR=document.createElement("template"));var y=ghR;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Z2x=q}q=Z2x;return q},{mode:2});var Fxq;var RDF;var Xs=function(){return _.C.apply(this,arguments)||this};
_.Y(Xs,_.C);Xs.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Xs.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Xs.prototype,"data",void 0);_.p([_.Ok({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],Xs);
_.a(Xs,"yt-music-pass-small-feature-info-renderer",function(){if(RDF===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;Fxq===void 0&&(Fxq=document.createElement("template"));var y=Fxq;b.call(N,y.content.cloneNode(!0),q.content.firstChild);RDF=q}q=RDF;return q},{mode:2});_.xP("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Vs=function(){var q=_.C.apply(this,arguments)||this;q.isCollapsible=!1;q.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return q};
_.Y(Vs,_.C);_.g=Vs.prototype;_.g.computeIsCollapsible=function(q){return!!(((q==null?0:q.showMoreText)||(q==null?0:q.visibleRowCount))&&(q==null?0:q.isCollapsible))};
_.g.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"}}}};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.g.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.g.onIronResize=function(){var q=this;_.Uk(this,"updateGridInitItems",function(){q.maybeUpdateInitialItemsDisplayed()})};
_.g.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var q=this.getVisibleWidth();q!==0&&(q=Math.floor(q/214)*(this.data.visibleRowCount||2),q!==this.initialCount&&(this.initialCount=q,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.g.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.g.computeExpandVisible=function(q,N,b,y){return q&&N&&b&&!!y&&!!y.showMoreText};
_.g.computeShowMoreButton=function(q){return{text:q,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.g.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.g.initCollapsed=function(){var q=this;this.ytLazyListBehavior.canShowMore=!1;var N;(this.collapsed=!((N=this.data)==null||!N.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.ut(this,function(){_.Hy(q.hostElement,"yt-refit-popups-action")})};
_.g.fillRestIfNotCollapsible=function(){var q=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!q||this.ytLazyListBehavior.fillRemainingListItems()};
_.g.computeViewAllHidden=function(q,N){return q||!N.viewAllEndpoint};
Vs.prototype.fillRestIfNotCollapsible=Vs.prototype.fillRestIfNotCollapsible;Vs.prototype.initCollapsed=Vs.prototype.initCollapsed;Vs.prototype.onIronResize=Vs.prototype.onIronResize;Vs.prototype.persistentGuideChanged=Vs.prototype.persistentGuideChanged;_.p([_.O(_.SQ),_.P("design:type",Object)],Vs.prototype,"ironResizableBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Vs.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Vs.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.V1.YtLazyListBehavior),_.P("design:type",Object)],Vs.prototype,"ytLazyListBehavior",void 0);_.p([_.O(_.m1.YtNextContinuationBehavior),_.P("design:type",Object)],Vs.prototype,"ytNextContinuationBehavior",void 0);_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],Vs.prototype,"ytdGuideStateAwareBehavior",void 0);
_.p([_.O(_.tA),_.P("design:type",Object)],Vs.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Vs.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],Vs.prototype,"collapsed",void 0);_.p([_.U(),_.P("design:type",Number)],Vs.prototype,"initialCount",void 0);_.p([_.U({computed:"computeShowMoreButton(data.showMoreText)"}),_.P("design:type",Object)],Vs.prototype,"showMoreButton",void 0);
_.p([_.U({computed:"computeIsCollapsible(data)"}),_.P("design:type",Object)],Vs.prototype,"isCollapsible",void 0);_.p([_.dq("#items"),_.P("design:type",HTMLElement)],Vs.prototype,"items",void 0);_.p([_.$9("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vs.prototype,"persistentGuideChanged",null);_.p([_.ZP("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vs.prototype,"onIronResize",null);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vs.prototype,"initCollapsed",null);_.p([_.$9("canShowMore"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vs.prototype,"fillRestIfNotCollapsible",null);_.p([_.I({is:"ytd-grid-renderer",disableElementRegistration:!0})],Vs);
_.a(Vs,"ytd-grid-renderer",function(){if(Btv!==void 0)return Btv;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Btv=q},{mode:_.Am("kevlar_poly_si_batch_j025")?1:2});var j$=function(){return _.C.apply(this,arguments)||this};
_.Y(j$,_.C);
j$.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"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],j$.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],j$.prototype,"data",void 0);_.p([_.I({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],j$);
_.a(j$,"ytd-carousel-ad-renderer",function(){if(PYj!==void 0)return PYj;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return PYj=q},{mode:1});var d_J;var xl=function(){return _.C.apply(this,arguments)||this};
_.Y(xl,_.C);_.g=xl.prototype;_.g.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"}}}};
_.g.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,xl.JSC$15584_CLICK_LOCATION_ID_MAP))};
_.g.onSitelinkTap=function(q){q.stopPropagation();var N,b,y=q==null?void 0:(N=q.model)==null?void 0:(b=N.item)==null?void 0:b.onTap;y&&this.ytSparklesClickLocationBehavior.handleClick(y,q,!1)};
_.g.onTap=function(q){var N=this.data&&this.data.content&&this.data.content.navigationEndpoint;N&&this.ytSparklesClickLocationBehavior.handleClick(N,q,!1)};
_.g.sendImpression=function(){if(this.data&&this.data.content)for(var q=_.Z(this.data.content.impressionEndpoints||[]),N=q.next();!N.done;N=q.next()){N=_.Z(N.value.loggingUrls||[]);for(var b=N.next();!b.done;b=N.next())b=b.value,b.baseUrl&&yQ(b.baseUrl,b.attributionSrcMode)}};
xl.prototype.onTap=xl.prototype.onTap;xl.prototype.dataChanged=xl.prototype.dataChanged;xl.JSC$15584_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"]]);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],xl.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],xl.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Xi.YtSparklesClickLocationBehavior),_.P("design:type",Object)],xl.prototype,"ytSparklesClickLocationBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],xl.prototype,"data",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xl.prototype,"dataChanged",null);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],xl.prototype,"onTap",null);_.p([_.I({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],xl);
_.a(xl,"ytd-promoted-sparkles-text-search-renderer",function(){if(d_J!==void 0)return d_J;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return d_J=q},{mode:1});var cyR;var vf=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-mute-ad-action":"handleMuteAd"};return q};
_.Y(vf,_.C);_.g=vf.prototype;_.g.created=function(){this.activeView=new Y$(this.hostElement)};
_.g.configureRendererStamper=function(){return{"data.menu":{id:_.x("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]]"}}}}}};
_.g.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.g.computeHasAdBadge=function(q){return!(q==null||!q.adBadge)};
_.g.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",vf.JSC$15593_DEFAULT_AD_BADGE_RENDERER),_.HP(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&Q1(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,vf.JSC$15593_CLICK_LOCATION_ID_MAP))};
_.g.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var q;(((q=this.data)==null?void 0:q.impressionCommands)||[]).forEach(function(N){N=_.Z(N.loggingUrls||[]);for(var b=N.next();!b.done;b=N.next())b=b.value,b.baseUrl&&yQ(b.baseUrl,b.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.g.onTap=function(q){var N,b=(N=this.data)==null?void 0:N.navigationEndpoint,y;(N=(y=this.data)==null?void 0:y.thumbnailNavigationEndpoint)&&_.Wk(_.n9(q),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(N,q,!1):b&&this.ytSparklesClickLocationBehavior.handleClick(b,q,!1)};
_.g.handleMuteAd=function(){this.collapsed=!0};
_.g.attached=function(){var q=this;_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ob(q.activeView)})};
_.g.detached=function(){_.x("stop_av_measurement_on_detach")&&Ob(this.activeView)};
_.$H.Object.defineProperties(vf.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var q;return!(((q=this.data)==null?void 0:q.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var q;return!(((q=this.data)==null?void 0:q.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.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}}});
vf.prototype.dataChanged=vf.prototype.dataChanged;
vf.JSC$15593_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"]]);
vf.JSC$15593_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.FE("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],vf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],vf.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],vf.prototype,"actionHandlerBehavior",void 0);
_.p([_.O(_.Xi.YtSparklesClickLocationBehavior),_.P("design:type",Object)],vf.prototype,"ytSparklesClickLocationBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],vf.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],vf.prototype,"collapsed",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.x("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],vf.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.jA("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],vf.prototype,"biggerThumbsStyle",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.x("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.P("design:type",Boolean)],vf.prototype,"fixAlignmentSmallScreens",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.x("enable_desktop_search_bigger_thumbs_square")}}),
_.P("design:type",Boolean)],vf.prototype,"useBiggerThumbsSquare",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data.mediaHoverOverlay"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vf.prototype,"hideHoverOverlay",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.promotedSparklesWebStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vf.prototype,"webSearchLayout",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vf.prototype,"webSearchLayoutLandscape",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vf.prototype,"webSearchLayoutSquare",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data.promotedSparklesWebStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vf.prototype,"sparklesCtaNoBackground",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.actionButton"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vf.prototype,"hideActionButton",null);_.p([_.U({computed:"computeButtonOverride(uiUpdate)"}),_.P("design:type",Object)],vf.prototype,"buttonOverride",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.P("design:type",Boolean)],vf.prototype,"hasNewAdBadge",void 0);_.p([_.l("data.promotedSparklesWebStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vf.prototype,"useRoundedBadge",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vf.prototype,"dataChanged",null);_.p([_.I({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],vf);
_.a(vf,"ytd-promoted-sparkles-web-renderer",function(){if(cyR!==void 0)return cyR;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return cyR=q},{mode:1});var u9j;var Gk=function(){var q=_.C.apply(this,arguments)||this;q.isInlinePreviewTriggered=!1;q.enableMonoStyle=_.x("enable_default_mono_cta_migration_web_client");return q};
_.Y(Gk,_.C);_.g=Gk.prototype;_.g.created=function(){this.activeView=new Y$(this.hostElement)};
_.g.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]]"}}}}}};
_.g.computeShowCta=function(q){return!(q==null||!q.ctaRenderer)};
_.g.onCtaClick=function(){var q,N,b,y=(q=this.data)==null?void 0:(N=q.ctaRenderer)==null?void 0:(b=N.buttonRenderer)==null?void 0:b.command;y&&this.ytComponentBehavior.resolveCommand(y)};
_.g.onWatchButtonClick=function(){var q,N,b,y=(q=this.data)==null?void 0:(N=q.watchButtonRenderer)==null?void 0:(b=N.buttonRenderer)==null?void 0:b.command;y&&this.ytComponentBehavior.resolveCommand(y)};
_.g.onTap=function(){};
_.g.dataChanged=function(){if(this.data){var q;_.x("enable_inline_muted_playback_on_web_search")&&((q=this.data)==null?0:q.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",Gk.JSC$15597_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&Q1(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Gk.JSC$15597_DEFAULT_CLICK_LOCATION_BEHAVIOR,Gk.JSC$15597_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(q=this.thumbnail.getElementsByTagName("a"),q.length>0&&(q=q.namedItem("thumbnail"))&&q.removeAttribute("href"));var N;if(((N=this.data)==null?0:N.forceImpAutoplay)&&_.x("enable_force_imp_autoplay_on_desktop_search")){var b;(b=this.JSC$15598_inlinePreviewHoverListener)==null||mZz(b)}}};
_.g.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var q=_.Z(this.data.impressionUrls),N=q.next();!N.done;N=q.next())N=N.value,W_J(N,pHA(N));this.data.impressionsFired=!0}};
_.g.maybeComputeHref=function(){return null};
_.g.computeIsShortDR=function(q){return!(q==null||!q.watchButtonRenderer)&&!(q==null||!q.ctaRenderer)&&!!this.enableShortDR};
_.g.computeIsNewUiOrShortDr=function(q){return!!this.enableUiUpdate||this.computeIsShortDR(q)};
_.g.computeIsNewUiAndNotShortDr=function(q){return!!this.enableUiUpdate&&!this.computeIsShortDR(q)};
_.g.computeHideAvatar=function(q){return!((q==null?0:q.channelThumbnail)&&this.computeIsNewUiOrShortDr(q))};
_.g.onClick=function(q){var N,b=(N=this.data)==null?void 0:N.navigationEndpoint;if(this.enableShortDR&&b&&(_.v(b,_.nx)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(b,q,!!_.v(b,_.nx)),q.stopPropagation();else if(b&&_.v(b,_.nx))this.ytSparklesClickLocationBehavior.handleClick(b,q,!0),q.stopPropagation();else if(b){var y,J;((y=this.data)==null?0:y.navigationEndpoint)&&((J=this.data)==null?0:J.adPlaybackContextParams)&&(N=this.data.navigationEndpoint,q=this.data.adPlaybackContextParams,
N.commandMetadata&&_.v(N.commandMetadata,_.gg)&&_.v(N.commandMetadata,_.gg).url&&(N=_.gO(_.v(N.commandMetadata,_.gg).url).adurl)&&_.pyC(N)&&_.Lx(_.fx(N),{encoded_ad_playback_context:q}));this.ytComponentBehavior.resolveCommand(b)}};
_.g.computeButtonOverride=function(q){if(this.computeIsNewUiOrShortDr(q))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.g.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.g.onThumbnailContainerClick=function(q){this.onClick(q)};
_.g.computeThumbnailWidth=function(q,N){return q?N==="MASSIVE"?600:N==="BIG"?500:N==="MEDIUM"?450:420:360};
_.g.attached=function(){var q=this,N;_.x("enable_inline_muted_playback_on_web_search")&&((N=this.data)==null?0:N.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ob(q.activeView)})};
_.g.detached=function(){var q;_.x("enable_inline_muted_playback_on_web_search")&&((q=this.data)==null?0:q.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.x("stop_av_measurement_on_detach")&&Ob(this.activeView)};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15598_inlinePreviewHoverListener=ix({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:YZq})};
_.g.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$15598_inlinePreviewHoverListener)==null||am(q)};
Gk.prototype.dataChanged=Gk.prototype.dataChanged;Gk.prototype.onTap=Gk.prototype.onTap;Gk.JSC$15597_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.FE("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};Gk.JSC$15597_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Gk.JSC$15597_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"}];_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Gk.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Gk.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.Xi.YtSparklesClickLocationBehavior),_.P("design:type",Object)],Gk.prototype,"ytSparklesClickLocationBehavior",void 0);_.p([_.dq("#main-container"),_.P("design:type",HTMLElement)],Gk.prototype,"mainContainer",void 0);
_.p([_.U(),_.P("design:type",Object)],Gk.prototype,"isInlinePreviewTriggered",void 0);_.p([_.U(),_.P("design:type",Object)],Gk.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.x("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],Gk.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.x("enable_video_display_compact_button_group_for_desktop_search")}}),
_.P("design:type",Boolean)],Gk.prototype,"enableShortDR",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.x("enable_vac_ui_update_for_desktop_search")}}),
_.P("design:type",Boolean)],Gk.prototype,"enableUiUpdate",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.jA("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],Gk.prototype,"biggerThumbsStyle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.P("design:type",Boolean)],Gk.prototype,"showCta",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.P("design:type",Boolean)],Gk.prototype,"isShortDr",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.P("design:type",Boolean)],Gk.prototype,"isShortDrOrNewUi",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.P("design:type",Boolean)],Gk.prototype,"isNewUiAndNotShortDr",void 0);_.p([_.U({computed:"computeButtonOverride(data)"}),_.P("design:type",Object)],Gk.prototype,"buttonOverride",void 0);_.p([_.U({computed:"computeSecondaryButtonOverride(data)"}),_.P("design:type",Object)],Gk.prototype,"secondaryButtonOverride",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Gk.prototype,"enableMonoStyle",void 0);
_.p([_.dq("ytd-thumbnail"),_.P("design:type",HTMLElement)],Gk.prototype,"thumbnail",void 0);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Gk.prototype,"onTap",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Gk.prototype,"dataChanged",null);_.p([_.I({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],Gk);
_.a(Gk,"ytd-promoted-video-renderer",function(){if(u9j!==void 0)return u9j;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return u9j=q},{mode:1});var zDR;var Yl=function(){var q=_.C.apply(this,arguments)||this;q.useRoundedBadge=!0;q.sitelinkIds=[];return q};
_.Y(Yl,_.C);_.g=Yl.prototype;
_.g.configureRendererStamper=function(){return{"data.menu":{id:_.x("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]]"}}}}}};
_.g.dataChanged=function(){var q;(q=this.data)!=null&&q.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Yl.JSC$15603_CLICK_LOCATION_ID_MAP)};
_.g.onTap=function(q){var N,b=(N=this.data)==null?void 0:N.navigationCommand;b&&!_.Wk(_.n9(q),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(b,q,!1)};
_.g.onSitelinkTap=function(q){var N,b,y=q==null?void 0:(N=q.model)==null?void 0:(b=N.item)==null?void 0:b.onTap;y&&this.ytSparklesClickLocationBehavior.handleClick(y,q,!1)};
_.g.configureSitelinkClickTargets=function(){var q=this,N,b,y=(N=this.data)==null?void 0:(b=N.clickLocationTargets)==null?void 0:b.find(function(J){return J.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
y&&_.ee(this.hostElement).querySelectorAll(".sitelink").forEach(function(J){_.HP(J,"yt-simple-endpoint",!0);q.sitelinkIds.push(J.id);var E,F;(E=q.ytSparklesClickLocationBehavior)==null||(F=E.clickTargetMap)==null||F.set(J.id,y)})};
_.g.sendImpression=function(){var q,N,b=((q=this.data)==null?void 0:(N=q.impressionCommand)==null?void 0:N.loggingUrls)||[];q=_.Z(b);for(N=q.next();!N.done;N=q.next())N=N.value,N.baseUrl&&yQ(N.baseUrl,N.attributionSrcMode)};
_.g.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.$H.Object.defineProperties(Yl.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
Yl.prototype.onTap=Yl.prototype.onTap;Yl.prototype.dataChanged=Yl.prototype.dataChanged;Yl.JSC$15603_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"]]);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Yl.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Xi.YtSparklesClickLocationBehavior),_.P("design:type",Object)],Yl.prototype,"ytSparklesClickLocationBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Yl.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Yl.prototype,"showFavicon",null);_.p([_.U({reflectToAttribute:!0,value:function(){return _.x("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],Yl.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.jA("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],Yl.prototype,"biggerThumbsStyle",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.x("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.P("design:type",Boolean)],Yl.prototype,"enableThumbnailScalingFix",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yl.prototype,"dataChanged",null);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Yl.prototype,"onTap",null);_.p([_.I({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],Yl);
_.a(Yl,"ytd-text-image-no-button-layout-renderer",function(){if(zDR!==void 0)return zDR;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return zDR=q},{mode:_.Am("kevlar_poly_si_batch_j028")?1:2});var $_J;var Qs=function(){var q=_.C.apply(this,arguments)||this;q.isInlinePlaybackState=!1;q.uiUpdate=_.x("web_modern_buttons");q.hideCta=_.x("hide_cta_for_home_web_video_ads");q.noBottomMargin=!1;q.animateInTimeStamp=_.VX("hide_cta_for_home_web_video_ads_animate_in_time");q.animateInCta=!1;q.isHovered=!1;q.enableMonoStyle=_.x("enable_default_mono_cta_migration_web_client");q.player=null;q.JSC$15610_playerEvents=new Map;q.JSC$15610_preventProgressSaveTimer=null;q.delayedCtaJobId=null;return q};
_.Y(Qs,_.C);_.g=Qs.prototype;_.g.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]]"}}}}}};
_.g.attached=function(){this.JSC$15610_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15610_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.x("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.g.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15610_playerEvents)};
_.g.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Qs.JSC$15609_DEFAULT_CLICK_LOCATION_BEHAVIOR,Qs.JSC$15609_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.g.hoverChanged=function(){var q=this;this.delayedCtaJobId&&(_.pY.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.x("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.rj(_.pY,function(){q.buttonContainer.classList.add("show-delayed-buttons")},_.VX("delayed_cta_on_web_delay_milliseconds")))};
_.g.setPlayer=function(){var q=this,N;return _.d(function(b){if(b.nextAddress==1)return(N=_.Hy(q.hostElement,"yt-get-inline-preview-player-action"))&&N[0]?b.yield(N[0].getPlayerPromise(),3):b.jumpTo(0);q.player=b.yieldResult;q.ytPlayerListenerBehavior.listenToPlayerEvents(q.player,q.JSC$15610_playerEvents);_.hj(b)})};
_.g.onPlaybackStart=function(){var q=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15610_preventProgressSaveTimer=_.B$(_.pY,function(){q.JSC$15610_preventProgressSaveTimer=null},1E4))};
_.g.onVideoProgress=function(q){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&q>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.g.resetPreventProgressSaveTimer=function(){_.pY.cancelJob(this.JSC$15610_preventProgressSaveTimer);this.JSC$15610_preventProgressSaveTimer=null};
_.g.getSimpleString=function(q){return _.ao(q)};
_.g.onClick=function(q){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var N,b=(N=this.data)==null?void 0:N.navigationEndpoint,y;N=(y=this.data)==null?void 0:y.channelEndpoint;var J,E;((E=_.v((J=this.data)==null?void 0:J.adCtaButton,_.JI))==null?0:E.command)&&_.Wk(_.n9(q),this.hostElement,["call-to-action"])||(N&&_.Wk(_.n9(q),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(N,q,!1):!_.Wk(_.n9(q),this.hostElement,
["secondary-button"])&&b&&(_.x("enable_short_dr_for_desktop_launchable")?(y=!!_.v(b,_.nx),this.isInlinePlaybackState&&y&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(b,q,y)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(b,q,!0))))}};
_.g.updateWatchEndpointStartTime=function(){var q,N;this.player&&((q=this.data)==null?0:q.inlinePlaybackEndpoint)&&((N=this.data)==null?0:N.navigationEndpoint)&&!this.JSC$15610_preventProgressSaveTimer&&(q=Math.floor(this.player.getCurrentTime()),_.v(this.data.navigationEndpoint,_.nx).startTimeSeconds=q,_.v(this.data.inlinePlaybackEndpoint,_.nx).startTimeSeconds=q)};
_.g.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.g.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.$H.Object.defineProperties(Qs.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.x("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var q,N;return!((q=this.data)==null||!q.watchButton)&&!((N=this.data)==null||!N.adCtaButton)}}});
Qs.prototype.hoverChanged=Qs.prototype.hoverChanged;Qs.prototype.dataChanged=Qs.prototype.dataChanged;
Qs.JSC$15609_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"]]);
Qs.JSC$15609_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"}];
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Qs.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Qs.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],Qs.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.Xi.YtSparklesClickLocationBehavior),_.P("design:type",Object)],Qs.prototype,"ytSparklesClickLocationBehavior",void 0);
_.p([_.O(_.d2.YtPlayerListenerBehavior),_.P("design:type",_.cX)],Qs.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Qs.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Qs.prototype,"isInlinePlaybackState",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Qs.prototype,"miniMode",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Qs.prototype,"uiUpdate",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Qs.prototype,"hideCta",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Qs.prototype,"noBottomMargin",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Qs.prototype,"animateInCta",void 0);_.p([_.U({computed:"computeButtonOverride(uiUpdate)"}),_.P("design:type",Object)],Qs.prototype,"buttonOverride",void 0);
_.p([_.U({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.P("design:type",Object)],Qs.prototype,"secondaryButtonOverride",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Qs.prototype,"isHovered",void 0);_.p([_.dq("#button-container"),_.P("design:type",HTMLElement)],Qs.prototype,"buttonContainer",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Qs.prototype,"typographyBump",void 0);
_.p([_.U({reflectToAttribute:!0}),_.l("typographyBump"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Qs.prototype,"typographyBumpV2",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Qs.prototype,"enableMonoStyle",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qs.prototype,"dataChanged",null);
_.p([_.FY("isHovered"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qs.prototype,"hoverChanged",null);_.p([_.l("data"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Qs.prototype,"isButtonGroup",null);_.p([_.I({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Qs);
_.a(Qs,"ytd-ad-inline-playback-meta-block",function(){if($_J!==void 0)return $_J;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return $_J=q},{mode:_.Am("kevlar_poly_si_batch_j065")?1:2});var tKJ;var Or=function(){var q=_.C.apply(this,arguments)||this;q.noBottomMargin=!1;q.isInlinePreviewTriggered=!1;q.JSC$15615_activeViewMeasurementDataResolver=_.T4();return q};
_.Y(Or,_.C);_.g=Or.prototype;_.g.created=function(){this.activeView=new Y$(this.hostElement)};
_.g.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.g.attached=function(){var q=this;this.updateInlinePreviewHoverListeners();this.JSC$15615_activeViewMeasurementDataResolver.promise.then(function(N){Q1(q.activeView,N)});
_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ob(q.activeView)})};
_.g.detached=function(){this.clearInlinePreviewHoverListeners();_.x("stop_av_measurement_on_detach")&&Ob(this.activeView)};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15615_inlinePreviewHoverListener=ix({mediaRenderer:this,lockupElement:this.JSC$15615_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:YZq})};
_.g.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$15615_inlinePreviewHoverListener)==null||am(q)};
_.g.onDataChanged=function(){var q;((q=this.data)==null?0:q.activeView)&&this.JSC$15615_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Or.JSC$15614_DEFAULT_CLICK_LOCATION_BEHAVIOR,Or.JSC$15614_CLICK_LOCATION_ID_MAP);this.thumbnail&&(q=this.thumbnail.getElementsByTagName("a"),q.length>0&&(q=q.namedItem("thumbnail"))&&q.removeAttribute("href"));var N;if((N=this.data)==
null?0:N.forceImpAutoplay){var b;(b=this.JSC$15615_inlinePreviewHoverListener)==null||mZz(b)}};
_.g.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.g.onThumbnailContainerClick=function(q){if(this.data&&this.data.navigationEndpoint){var N,b=(N=this.data)==null?void 0:N.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(b,q,!!_.v(b,_.nx));q.stopPropagation()}};
_.g.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.g.impressionLog=function(){var q=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var N,b,y=(b=_.v((N=this.data)==null?void 0:N.onImpression,_.y6))==null?void 0:b.commands;y&&(y.forEach(function(J){J.clickTrackingParams&&delete J.clickTrackingParams;q.ytComponentBehavior.resolveCommand(J)}),this.data.impressionsFired=!0)}};
_.$H.Object.defineProperties(Or.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$15615_inlinePreviewHoverListener)==null?0:Jv(q))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Or.prototype.onTypographyBumpChanged=Or.prototype.onTypographyBumpChanged;Or.prototype.onDataChanged=Or.prototype.onDataChanged;Or.JSC$15614_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Or.JSC$15614_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"}];
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Or.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Or.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Or.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],Or.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.Fi),_.P("design:type",Object)],Or.prototype,"ytdLockupBehavior",void 0);
_.p([_.O(_.H6),_.P("design:type",Object)],Or.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.Xi.YtSparklesClickLocationBehavior),_.P("design:type",Object)],Or.prototype,"ytSparklesClickLocationBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Or.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Or.prototype,"noBottomMargin",void 0);_.p([_.U(),_.P("design:type",Object)],Or.prototype,"isInlinePreviewTriggered",void 0);
_.p([_.U({reflectToAttribute:!0,selector:_.GC}),_.P("design:type",Boolean)],Or.prototype,"miniMode",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],Or.prototype,"typographyBump",void 0);_.p([_.dq("ytd-thumbnail"),_.P("design:type",HTMLElement)],Or.prototype,"thumbnail",void 0);_.p([_.dq("#dismissible"),_.P("design:type",HTMLElement)],Or.prototype,"JSC$15615_dismissibleMedia",void 0);
_.p([_.dq("ytd-ad-inline-playback-meta-block"),_.P("design:type",HTMLElement)],Or.prototype,"adInlinePlaybackMetaBlock",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Or.prototype,"onDataChanged",null);_.p([_.$9("typographyBump"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Or.prototype,"onTypographyBumpChanged",null);
_.p([_.l("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Or.prototype,"isHovered",null);_.p([_.I({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Or);
_.a(Or,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(tKJ!==void 0)return tKJ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return tKJ=q},{mode:1});var m_4;var wo=function(){var q=_.C.apply(this,arguments)||this;q.isInlinePreviewTriggered=!1;q.JSC$15618_activeViewMeasurementDataResolver=_.T4();return q};
_.Y(wo,_.C);_.g=wo.prototype;_.g.created=function(){this.activeView=new Y$(this.hostElement)};
_.g.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.g.attached=function(){var q=this;this.updateInlinePreviewHoverListeners();this.JSC$15618_activeViewMeasurementDataResolver.promise.then(function(N){Q1(q.activeView,N)})};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15618_inlinePreviewHoverListener=ix({mediaRenderer:this,lockupElement:this.JSC$15618_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:YZq})};
_.g.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$15618_inlinePreviewHoverListener)==null||am(q)};
_.g.onDataChanged=function(){var q;((q=this.data)==null?0:q.activeView)&&this.JSC$15618_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",wo.JSC$15617_DEFAULT_CLICK_LOCATION_BEHAVIOR,wo.JSC$15617_CLICK_LOCATION_ID_MAP);this.thumbnail&&(q=this.thumbnail.getElementsByTagName("a"),q.length>0&&(q=q.namedItem("thumbnail"))&&q.removeAttribute("href"))};
_.g.onThumbnailContainerClick=function(q){if(this.data&&this.data.navigationEndpoint){var N,b=(N=this.data)==null?void 0:N.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(b,q,!0);q.stopPropagation()}};
_.g.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.g.impressionLog=function(){var q=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var N,b,y=(b=_.v((N=this.data)==null?void 0:N.onImpression,_.y6))==null?void 0:b.commands;y&&(y.forEach(function(J){J.clickTrackingParams&&delete J.clickTrackingParams;_.tz().resolve(_.rO).resolveCommand(J,{form:{element:q.hostElement}})}),this.data.impressionsFired=!0)}};
_.$H.Object.defineProperties(wo.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$15618_inlinePreviewHoverListener)==null?0:Jv(q))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
wo.prototype.onDataChanged=wo.prototype.onDataChanged;wo.JSC$15617_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);wo.JSC$15617_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"}];_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],wo.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],wo.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.Fi),_.P("design:type",Object)],wo.prototype,"ytdLockupBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],wo.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.Xi.YtSparklesClickLocationBehavior),_.P("design:type",Object)],wo.prototype,"ytSparklesClickLocationBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],wo.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],wo.prototype,"isInlinePreviewTriggered",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.GC}),_.P("design:type",Boolean)],wo.prototype,"miniMode",void 0);_.p([_.dq("ytd-thumbnail"),_.P("design:type",HTMLElement)],wo.prototype,"thumbnail",void 0);_.p([_.dq("#dismissible"),_.P("design:type",HTMLElement)],wo.prototype,"JSC$15618_dismissibleMedia",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wo.prototype,"onDataChanged",null);_.p([_.l("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],wo.prototype,"isHovered",null);_.p([_.I({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],wo);
_.a(wo,"ytd-video-display-full-buttoned-renderer",function(){if(m_4!==void 0)return m_4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return m_4=q},{mode:1});var pT=function(q,N,b,y){y=y===void 0?!1:y;_.bn.call(this,q);this.adsClientErrorMessage=b;this.aggressivelySample=y;this.args=[];N&&this.args.push(N)};
_.Y(pT,_.bn);var WG=function(q,N,b,y){y=y===void 0?!1:y;_.bn.call(this,q);this.adsClientErrorMessage=b;this.aggressivelySample=y;this.args=[];N&&this.args.push(N)};
_.Y(WG,_.bn);var ryl=function(q){_.UN.call(this);var N=this;this.initializationFunction=q;this.instance=null;this.addOnDisposeCallback(function(){_.RA(N.instance);N.instance=null})};
_.Y(ryl,_.UN);ryl.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.fT("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var DXD=function(){var q=new Map;[].forEach(function(N){q.set(N.JSC$31009_getType(),N)});
this.getters=q};new Promise(function(){});var Oee=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"]]),Y3J=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"}]]),XUM=function(q){this.experimentApiProvider=q;q=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=q<.1};var iz=function(q,N,b,y){_.UN.call(this);this.adsControlFlowEventListeners=N;this.adEventLogger=b;this.experimentApiProvider=y;this.adsControlFlowManagerHelper=q(this,this,this,this,this);_.YN(this,this.adsControlFlowManagerHelper);q=_.Z(N);for(N=q.next();!N.done;N=q.next())_.YN(this,N.value)};
_.Y(iz,_.UN);var VKx=function(q,N,b,y){lz(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",N,b,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,y);q=_.Z(q.adsControlFlowEventListeners);for(y=q.next();!y.done;y=q.next())VKx(y.value,N,b)};
_.g=iz.prototype;_.g.onOpportunityProcessedExternallyManaged=function(q,N,b,y){lz(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",q,b,N,void 0,void 0,void 0,void 0,void 0,void 0,void 0,y)};
_.g.onSlotReceivedExternallyManaged=function(q,N){Ku(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",q,N)};
_.g.onSlotEntered=function(q){if(D0(this.adsControlFlowManagerHelper,q)!=null){Ku(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",q);this.adsControlFlowManagerHelper.onSlotEntered(q);for(var N=_.Z(this.adsControlFlowEventListeners),b=N.next();!b.done;b=N.next())b.value.onSlotEntered(q);if(D0(this.adsControlFlowManagerHelper,q)!=null&&D0(this.adsControlFlowManagerHelper,q).isOccupyingSlotType()&&hA(this.adsControlFlowManagerHelper,q)&&!j3x(this.adsControlFlowManagerHelper,q)){var y;kl(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",q,(y=hA(this.adsControlFlowManagerHelper,q))!=null?y:void 0);q=D0(this.adsControlFlowManagerHelper,q);q.slotLifecycleStage!=="entered"&&Ur(q.slot,q.slotLifecycleStage,"enterLayoutForSlot");q.slotLifecycleStage="rendering";q.registeredLayoutRenderingAdapter.startRendering(q.layout)}}};
_.g.onSlotExited=function(q){if(D0(this.adsControlFlowManagerHelper,q)!=null){Ku(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",q);this.adsControlFlowManagerHelper.onSlotExited(q);for(var N=_.Z(this.adsControlFlowEventListeners),b=N.next();!b.done;b=N.next())b.value.onSlotExited(q);D0(this.adsControlFlowManagerHelper,q)!=null&&D0(this.adsControlFlowManagerHelper,q).markedForUnscheduleAfterOutboundAdapterRequests&&x_l(this,q)}};
_.g.onLayoutReceivedExternallyManaged=function(q,N,b){q.managerLayer!=="core"&&kl(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",q,N,b)};
var vho=function(q,N,b){if(D0(q.adsControlFlowManagerHelper,N)!=null){kl(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",N,b);q=_.Z(q.adsControlFlowEventListeners);for(var y=q.next();!y.done;y=q.next())vho(y.value,N,b)}};
iz.prototype.onLayoutExited=function(q,N,b){if(D0(this.adsControlFlowManagerHelper,q)!=null){kl(this.adEventLogger,Qdd(b),q,N);this.adsControlFlowManagerHelper.onLayoutExited(q,N);for(var y=_.Z(this.adsControlFlowEventListeners),J=y.next();!J.done;J=y.next())J.value.onLayoutExited(q,N,b);(b=hA(this.adsControlFlowManagerHelper,q))&&N.layoutId===b.layoutId&&Gpo(this,q)}};
iz.prototype.disposeInternal=function(){var q=Yyv(this.adsControlFlowManagerHelper);q=_.Z(q);for(var N=q.next();!N.done;N=q.next())x_l(this,N.value);_.UN.prototype.disposeInternal.call(this)};
var x_l=function(q,N){if(D0(q.adsControlFlowManagerHelper,N)!=null)if(D0(q.adsControlFlowManagerHelper,N).JSC$31039_isSlotExitRequested()||D0(q.adsControlFlowManagerHelper,N).JSC$31039_isLayoutExitRequested())D0(q.adsControlFlowManagerHelper,N).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(D0(q.adsControlFlowManagerHelper,N).isOccupyingSlotType())D0(q.adsControlFlowManagerHelper,N).markedForUnscheduleAfterOutboundAdapterRequests=!0,Gpo(q,N);else if(D0(q.adsControlFlowManagerHelper,N).JSC$31039_isSlotFillRequested())D0(q.adsControlFlowManagerHelper,
N).markedForUnscheduleAfterOutboundAdapterRequests=!0,D0(q.adsControlFlowManagerHelper,N)!=null&&(Ku(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",N),N=D0(q.adsControlFlowManagerHelper,N),N.fulfillmentLifecycleStage="fill_cancel_requested",N.registeredFulfillmentAdapter.cancelSlotFilling());else{var b=hA(q.adsControlFlowManagerHelper,N),y;q.experimentApiProvider.get();(y=_.x("h5_enable_layout_unscheduling_events"))&&(b?Q3q(q,N,b):_.fT(Error("Lh"),N,b,void 0,!1));Ku(q.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",N);var J=D0(q.adsControlFlowManagerHelper,N),E=N.slotEntryTrigger,F=J.registeredSlotEntryTriggerAdapters.get(E.triggerId);F&&(F.unregisterTrigger(E),J.registeredSlotEntryTriggerAdapters.delete(E.triggerId));E=_.Z(N.slotFulfillmentTriggers);for(F=E.next();!F.done;F=E.next()){F=F.value;var R=J.registeredFulfillmentTriggerAdapters.get(F.triggerId);R&&(R.unregisterTrigger(F),J.registeredFulfillmentTriggerAdapters.delete(F.triggerId))}E=_.Z(N.slotExpirationTriggers);
for(F=E.next();!F.done;F=E.next())if(F=F.value,R=J.registeredExpirationTriggerAdapters.get(F.triggerId))R.unregisterTrigger(F),J.registeredExpirationTriggerAdapters.delete(F.triggerId);J.hasLayout()&&(E=J.layout,fu(J,E.layoutExitNormalTriggers),fu(J,E.layoutExitSkipTriggers),fu(J,E.layoutExitMuteTriggers),fu(J,E.layoutExitUserInputSubmittedTriggers),fu(J,E.layoutExitUserCancelledTriggers));J.registeredFulfillmentAdapter=void 0;J.registeredSlotAdapter!=null&&(J.registeredSlotAdapter.release(),J.registeredSlotAdapter=
void 0);J.registeredLayoutRenderingAdapter!=null&&(J.registeredLayoutRenderingAdapter.release(),J.registeredLayoutRenderingAdapter=void 0);J=q.adsControlFlowManagerHelper;D0(J,N)&&(J=O21(J,N.slotType+"_"+N.slotPhysicalPosition))&&J.delete(N.slotId);Ku(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",N);q=_.Z(q.adsControlFlowEventListeners);for(J=q.next();!J.done;J=q.next())J=J.value,J.onSlotUnscheduled(N),b&&!y&&Q3q(J,N,b)}},Q3q=function(q,N,b){kl(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
N,b);
kl(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",N,b);q=_.Z(q.adsControlFlowEventListeners);for(var y=q.next();!y.done;y=q.next())y=y.value,b&&Q3q(y,N,b)},Gpo=function(q,N){if(D0(q.adsControlFlowManagerHelper,N)!=null&&D0(q.adsControlFlowManagerHelper,N).isOccupyingSlotType()){var b=hA(q.adsControlFlowManagerHelper,N);
if(b&&j3x(q.adsControlFlowManagerHelper,N)){if(D0(q.adsControlFlowManagerHelper,N)!=null){var y=q.adEventLogger,J;var E=((J=Y3J.get("abandoned"))==null?void 0:J.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";kl(y,E,N,b);q=D0(q.adsControlFlowManagerHelper,N);q.slotLifecycleStage!=="rendering"&&Ur(q.slot,q.slotLifecycleStage,"exitLayout");q.slotLifecycleStage="rendering_stop_requested";q.registeredLayoutRenderingAdapter.stopRendering(b,"abandoned")}}else{Ku(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
N);try{y=D0(q.adsControlFlowManagerHelper,N);if(!y)throw new WG("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");y.slotLifecycleStage!=="enter_requested"&&y.slotLifecycleStage!=="entered"&&y.slotLifecycleStage!=="rendering"&&Ur(y.slot,y.slotLifecycleStage,"exitSlot");y.slotLifecycleStage="exit_requested";if(y.registeredSlotAdapter===void 0)throw y.slotLifecycleStage="scheduled",new WG("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
y.registeredSlotAdapter.exit()}catch(F){F instanceof WG&&F.adsClientErrorMessage?(wUJ(q.adEventLogger,F.adsClientErrorMessage,N),_.fT(F,N,void 0,void 0,F.aggressivelySample)):(wUJ(q.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",N),_.fT(F,N))}}}};var Cu=function(q,N,b,y,J,E){_.UN.call(this);this.registry=q;this.experimentApiProvider=E;this.slotMap=new Map};
_.Y(Cu,_.UN);var O21=function(q,N){return(q=q.slotMap.get(N))?q:new Map},D0=function(q,N){return O21(q,N.slotType+"_"+N.slotPhysicalPosition).get(N.slotId)},Yyv=function(q){var N=[];
q.slotMap.forEach(function(b){b=_.Z(b.values());for(var y=b.next();!y.done;y=b.next())N.push(y.value.slot)});
return N};
Cu.prototype.onSlotEntered=function(q){q=D0(this,q);q.slotLifecycleStage!=="enter_requested"&&Ur(q.slot,q.slotLifecycleStage,"onSlotEntered");q.slotLifecycleStage="entered"};
var j3x=function(q,N){q=D0(q,N);return q.hasLayout()&&q.isRendering()},hA=function(q,N){(q=D0(q,N))?q.hasLayout()&&!q.layout&&_.fT("Unexpected empty layout",N):_.fT("Unexpected undefined slotState",N);
return(q==null?void 0:q.layout)||null};
Cu.prototype.onSlotExited=function(q){q=D0(this,q);q.slotLifecycleStage!=="exit_requested"&&Ur(q.slot,q.slotLifecycleStage,"onSlotExited");q.slotLifecycleStage="scheduled"};
Cu.prototype.onLayoutExited=function(q,N){q=D0(this,q);q.isPrimaryLayout(N)&&(q.slotLifecycleStage!=="rendering_stop_requested"&&Ur(q.slot,q.slotLifecycleStage,"onLayoutExited"),q.slotLifecycleStage="entered")};
var fu=function(q,N){N=_.Z(N);for(var b=N.next();!b.done;b=N.next()){b=b.value;var y=q.registeredLayoutExitTriggerAdapters.get(b.triggerId);y&&(y.unregisterTrigger(b),q.registeredLayoutExitTriggerAdapters.delete(b.triggerId))}},Ur=function(q,N,b){_.fT("Slot stage was "+N+" when calling method "+b,q)};var lBx=function(q){_.UN.call(this);this.deps=q;this.JSC$15671_adsControlFlowManager=i21(this)};
_.Y(lBx,_.UN);var i21=function(q){var N=new iz(function(b,y,J,E){return new Cu(q.deps.registry,b,y,J,E,q.deps.experimentApiProvider)},new Set(KBu(q.deps.registry).concat(q.deps.listeners)),q.deps.adEventLogger,q.deps.experimentApiProvider);
_.YN(q,N);return N};var e0J=function(){};var Kxj=function(q,N){_.UN.call(this);this.experimentApiProvider=q;this.eventLoggingSettingsProvider=N;this.eventCount=0;this.premiumAdSeenEventLogger=ByZ()()};
_.Y(Kxj,_.UN);Kxj.prototype.logEvent=function(q){lz(this,q)};
var Ku=function(q,N,b,y){lz(q,N,void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,void 0,y)},kl=function(q,N,b,y,J){lz(q,N,void 0,void 0,void 0,b,y?y:void 0,void 0,void 0,b.adSlotLoggingData,y?y.adLayoutLoggingData:void 0,void 0,J);
b=_.tz().resolve(_.$f(T6))==null?void 0:s2();N=b==null?void 0:b.adsSeenHotConfig;b=b==null?void 0:b.adsHotConfig;(N==null?0:N.logOnAdsSeen)&&(b==null?0:b.webEnablePremiumAdsSeenLogging)&&D_x(q,y?y:void 0,J)},wUJ=function(q,N,b){lz(q,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:N})},lz=function(q,N,b,y,J,E,F,R,c,z,m,r,X){X=X===void 0?0:X;
hDq(q.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+N,"slot:",E,"layout:",F,"ping:",R,"Opportunity:",{opportunityType:b,associatedSlotId:y,slotsFromOpportunity:J,triggerBundle:c,adSlotLoggingData:z,adLayoutLoggingData:m});try{var V=function(){q.experimentApiProvider.get();if(N!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){N||_.fT("Empty PACF event type",E,F);var G=q.eventLoggingSettingsProvider.get();var w;(w=G.alwaysIncludeDebugData)||(G.experimentApiProvider.get(),w=
!1);G=w;w={eventType:N,eventOrder:++q.eventCount};var D={};E&&(D.slotData=iee(G,E));if(F){var k={type:F.layoutType,controlFlowManagerLayer:Oee.get(F.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};G&&(k.debugData={layoutId:F.layoutId});D.layoutData=k}R&&(D.pingData={pingDispatchStatus:R.dispatchStatus,serializedAdPingMetadata:R.ping.serializedAdPingMetadata,pingIndex:R.index});c&&(D.triggerData=wIR(c.trigger,c.category));b&&(D.opportunityData=lTh(G,b,y,J));w.adClientData=D;z&&(w.serializedSlotAdServingData=
z.serializedSlotAdServingDataEntry);m&&(w.serializedAdServingData=m.serializedAdServingDataEntry);r&&(w.errorInfo=r);_.W_("adsClientStateChange",{adsClientEvent:w})}};
X&&X>0?_.Ip(_.ja(),function(){return V()},X):V()}catch(G){hDq(q.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.Ip(_.ja(),function(){_.fT(G instanceof Error?G:String(G),E,F,{pacf_message:"exception during pacf logging"})})}},D_x=function(q,N,b){if(N){var y=N.adLayoutLoggingData;
_.Ip(_.ja(),function(){q.premiumAdSeenEventLogger!=null&&y&&_.W_("adsSeenClientLogging",{serializedAdServingDataEntry:y.serializedAdServingDataEntry})},b!=null?b:0)}};var kpv=function(q,N){Kxj.call(this,q,N)};
_.Y(kpv,Kxj);var U_T=function(){},hDq=function(q,N){return _.x(N)};var CVR=function(){var q=new fBj;this.JSC$15696_adsControlFlowManager=(new lBx(q)).JSC$15671_adsControlFlowManager},fBj=function(){_.UN.call(this);
var q=this;this.experimentApiProvider=new ryl(function(){return new U_T});
var N=new ryl(function(){return new XUM(q.experimentApiProvider)});
this.adEventLogger=new kpv(this.experimentApiProvider,N);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.Y(fBj,_.UN);var IBv=function(){},TZF,IZ=function(){TZF||(TZF=new IBv);
return TZF},Tk=function(q){if(!q.JSC$15707_externallyManagedSlotAdapterCallback){var N=(new CVR).JSC$15696_adsControlFlowManager;
q.JSC$15707_externallyManagedSlotAdapterCallback=N}return q.JSC$15707_externallyManagedSlotAdapterCallback},s31=function(q,N,b){var y=N.opportunityType,J=Error("Mh");
if(y!==void 0){var E=Tk(q);VKx(E,y,void 0,b)}else _.fT(J,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});E=[];if(N.adSlotAndLayoutMetadata!==void 0){N=_.Z(N.adSlotAndLayoutMetadata);for(var F=N.next();!F.done;F=N.next()){var R=F.value;if(F=R.adSlotMetadata)if(E.push(F),q.onSlotReceivedExternallyManaged(F,b),R.adLayoutMetadata){R=_.Z(R.adLayoutMetadata);for(var c=R.next();!c.done;c=R.next())q.onLayoutReceivedExternallyManaged(F,c.value,b)}else b>0&&_.fT("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
y,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else b>0&&_.fT("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+y,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else b>0&&_.fT("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+y,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(y!==void 0)q.onOpportunityProcessedExternallyManaged(y,E,void 0,b);else _.fT(J,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
IBv.prototype.onSlotReceivedExternallyManaged=function(q,N){q=LT(q);if(q instanceof WG)_.fT(q,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Tk(this).onSlotReceivedExternallyManaged(q,N)};
IBv.prototype.onLayoutReceivedExternallyManaged=function(q,N,b){q=LT(q);N=h$d(N);if(q instanceof WG)_.fT(q,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(N instanceof pT)_.fT(N,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Tk(this).onLayoutReceivedExternallyManaged(q,N,b)};
IBv.prototype.onOpportunityProcessedExternallyManaged=function(q,N,b,y){var J=[];N=_.Z(N);for(var E=N.next();!E.done;E=N.next())E=LT(E.value),E instanceof WG?_.fT(E,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):J.push(E);Tk(this).onOpportunityProcessedExternallyManaged(q,J,b,y)};
var nhj=function(q,N){N=LT(N);if(N instanceof WG)_.fT(N,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var b=Tk(q);Ku(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",N);b=_.Z(b.adsControlFlowEventListeners);for(var y=b.next();!y.done;y=b.next())y=D0(y.value,N),y.slotLifecycleStage!=="not_scheduled"&&Ur(y.slot,y.slotLifecycleStage,"onSlotScheduled"),y.slotLifecycleStage="scheduled";q=Tk(q);Ku(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",N);q=_.Z(q.adsControlFlowEventListeners);
for(b=q.next();!b.done;b=q.next())b.value.onSlotEntered(N)}},aBM=function(q,N){N=LT(N);
if(N instanceof WG)_.fT(N,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var b=Tk(q);Ku(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",N);b=_.Z(b.adsControlFlowEventListeners);for(var y=b.next();!y.done;y=b.next())y.value.onSlotExited(N);q=Tk(q);Ku(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",N);q=_.Z(q.adsControlFlowEventListeners);for(b=q.next();!b.done;b=q.next())b.value.onSlotUnscheduled(N)}},Syx=function(q,N,b){N=LT(N);
b=h$d(b);if(N instanceof WG)_.fT(N,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(b instanceof pT)_.fT(b,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var y=Tk(q);kl(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",N,b);y=_.Z(y.adsControlFlowEventListeners);for(var J=y.next();!J.done;J=y.next())J.value.onLayoutScheduled(N,b);q=Tk(q);kl(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",N,b);q=_.Z(q.adsControlFlowEventListeners);
for(y=q.next();!y.done;y=q.next())vho(y.value,N,b)}},Wf=function(q,N,b){N=LT(N);
b=h$d(b);if(N instanceof WG)_.fT(N,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(b instanceof pT)_.fT(b,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var y=Tk(q);kl(y.adEventLogger,Qdd("normal"),N,b);y=_.Z(y.adsControlFlowEventListeners);for(var J=y.next();!J.done;J=y.next())J.value.onLayoutExited(N,b,"normal");q=Tk(q);q=_.Z(q.adsControlFlowEventListeners);for(y=q.next();!y.done;y=q.next())Q3q(y.value,N,b)}};_.Lu=_.n(function(q){var N=_.Sl(q,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});q=Object.assign({},N);var b=N.data;N=N.customCommandResolver;var y=(delete q.data,delete q.customCommandResolver,q);q=_.mn({visibilityCallback:function(R,c){var z,m=(z=b().interaction)==null?void 0:z.onFirstVisible;R&&(m&&_.Kt(m),y.setOnErrorHandler()&&kdn(c))},
showOption:_.Yx});N=_.KT(function(){return b().interaction},N,function(){var R;
return(R=y.listenToTapEvent)==null?void 0:R.call(y)});
var J=_.Z(_.QS(!1,void 0,"wAC0Lc")),E=J.next().value,F=J.next().value;J=_.y0(function(R){var c;((c=y.setTouchEndHandler)==null?0:c.call(y))&&!E()&&(R.currentTarget.click(),F(!0),setTimeout(function(){F(!1)},100));
return!1});
return _.u("ad-image-view-model",{class:function(){var R,c=[((R=b().interaction)==null?0:R.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],z;((z=y.isGridViewEnabled)==null?0:z.call(y))&&c.push("ytwAdImageViewModelHostInGridView");return c.join(" ")},
el:_.ai(q,N),"on:touchend":J},_.u("div",{class:"ytwAdImageViewModelHostImageContainer"},_.u(_.s_,{data:function(){var R;return{sources:b().imageSources,contentMode:(R=b().imageProperties)==null?void 0:R.contentMode}},
alt:function(){var R,c;return((R=b().interaction)==null?void 0:(c=R.accessibility)==null?void 0:c.label)||""},
targetHeight:y.targetHeight,targetWidth:y.targetWidth,preserveHeight:y.preserveHeight,preserveWidth:y.preserveWidth,useWidth:y.useWidth,style:function(){var R,c;return"vertical-align: bottom;"+(((R=b().background)==null?0:R.color)?"background-color:"+_.GM((c=b().background)==null?void 0:c.color)+";":"")},
className:function(){return y.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var R,c;return(c=(R=y.setDraggable)==null?void 0:R.call(y))!=null?c:void 0}})))},"lc");var Wx1=_.n(function(q){var N=q.data,b=q.listenToTapEvent,y=function(){};
return _.u("ad-button-hover-overlay-view-model",{"on:click":_.y0(function(J){if(_.x("enable_web_home_top_landscape_image_layout_legacy_click_command")){var E,F=(E=N().interaction)==null?void 0:E.onTap;F&&_.e2(J.currentTarget,"yt-navigate",{endpoint:_.O_(F)})}}),
class:function(){var J;return((J=N().interaction)==null?0:J.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.ai(_.mn({visibilityCallback:function(J){var E,F=(E=N().interaction)==null?void 0:E.onFirstVisible;J&&F&&_.Kt(F)},
showOption:_.Yx}),_.KT(function(){return N().interaction},void 0,function(){return!_.x("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(b==null?void 0:b())}))},function(){return _.x("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.u(_.zS,{data:function(){return N().button}},{adButtonViewModel:function(J){return _.u(_.OE,{data:J.data,
customCommandResolver:y})}}):_.u(_.zS,{data:function(){return N().button}},{adButtonViewModel:_.OE})}())},"mc");var PG;_.P$(_.n(function(q){var N=q.data;q=_.mn({visibilityCallback:function(R,c){if(R){var z;(R=(z=N().interaction)==null?void 0:z.onFirstVisible)&&_.Kt(R);var m;if(z=(m=N().adLayoutData)==null?void 0:m.activeViewData)ME(c,z),_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&oD(c)})}else _.x("stop_av_measurement_on_detach")&&oD(c)},
showOption:_.Yx,hideOption:Q3});var b=_.KT(function(){return N().interaction},void 0,function(){return!0}),y=_.Z(_.QS(!1,void 0,"VNDDT")),J=y.next().value,E=y.next().value;
y=_.y0(function(){E(!0)});
var F=_.y0(function(){E(!1)});
return _.u("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.ai(q,nIn,b),"on:mouseenter":y,"on:mouseleave":F},_.u("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.ZU({"max-width":function(){return _.x("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.u("div",{class:function(){var R;
a:{var c;switch((R=_.v(N().thumbnailImage,SUl))==null?void 0:(c=R.imageProperties)==null?void 0:c.renderingAspect){case "RENDERING_ASPECT_SQUARE":R="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":R="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}R=void 0}return R}},_.u(_.zS,{data:function(){return N().thumbnailImage}},{adImageViewModel:function(R){return _.u(_.Lu,
{data:R.data,
listenToTapEvent:!0,setTouchEndHandler:_.x("enable_top_landscape_image_experiment_dom_id_web")})}})),_.u("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.u(_.t,{cond:function(){var R,c,z;
return(R=_.v(N().thumbnailImage,SUl))==null?void 0:(c=R.imageProperties)==null?void 0:(z=c.overlayIcon)==null?void 0:z.iconImage},
then:function(R){return _.u(_.s_,{data:R,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.u("div",{class:function(){return J()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.u(_.zS,{data:function(){return N().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(R){return _.u(Wx1,
{data:R.data,
listenToTapEvent:!0})}}))),_.u("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.u(_.zS,{data:function(){return N().feedAdMetadata}},{feedAdMetadataViewModel:function(R){return _.u(kx,{data:R.data,
listenToTapEvent:!0,setTouchEndHandler:_.x("enable_top_landscape_image_experiment_dom_id_web")})}})))},"nc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.F5}});_.P$(_.n(function(q){var N=q.data;q=_.mn({visibilityCallback:function(R,c){if(R){var z;(R=(z=N().interaction)==null?void 0:z.onFirstVisible)&&_.Kt(R);var m;if(z=(m=N().adLayoutData)==null?void 0:m.activeViewData)ME(c,z),_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&oD(c)})}else _.x("stop_av_measurement_on_detach")&&oD(c)},
showOption:_.Yx,hideOption:Q3});var b=_.uR(_.wJ),y=_.KT(function(){return N().interaction}),J={},E={},F={};
return _.u("square-image-layout-view-model",{class:_.NO("ytwSquareImageLayoutViewModelHost",(J.ytwSquareImageLayoutViewModelHostColumn=b,J)),el:_.ai(q,aTD,y)},_.u("div",{class:_.NO("ytwSquareImageLayoutViewModelHostImage",(E.ytwSquareImageLayoutViewModelHostColumnImage=b,E))},function(){return _.u(_.zS,{data:function(){return N().adImage}},{adImageViewModel:function(R){return _.u(_.Lu,{data:R.data,
isGridViewEnabled:b,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.u("div",{class:_.NO("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(F.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=b,F))},_.u(_.zS,{data:function(){return N().feedAdMetadata}},{feedAdMetadataViewModel:kx}),function(){return _.u(_.zS,{data:function(){return N().adButton}},{adButtonViewModel:function(R){var c={};
return _.u(_.OE,{data:R.data,className:_.NO((c.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,c.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=b,c))})}})}()))},"oc"),"square-image-layout-view-model",{props:{data:_.F5}});_.P$(_.n(function(q){var N=q.data;var b=q.noBottomMargin;var y=q.typographyBump;q=_.mn({visibilityCallback:function(r,X){if(r){var V;(r=(V=N().interaction)==null?void 0:V.onFirstVisible)&&_.Kt(r);var G;if(V=(G=N().adLayoutData)==null?void 0:G.activeViewData)ME(X,V),_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&oD(X)})}else _.x("stop_av_measurement_on_detach")&&oD(X)},
showOption:_.Yx,hideOption:Q3});var J=_.KT(function(){return N().interaction},void 0,function(){return _.x("enable_web_home_top_landscape_image_layout_level_click")}),E=function(){return N().interaction};
E!==void 0&&E!==null||_.bv(Error("Nh"));var F=function(){var r,X,V;return(r=_.v(N().thumbnailImage,SUl))==null?void 0:(X=r.background)==null?void 0:(V=X.backgroundImageSource)==null?void 0:V.imageSources};
E=_.Z(_.QS(!1,void 0,"NFjwje"));var R=E.next().value,c=E.next().value;E=_.y0(function(){c(!0)});
var z=_.y0(function(){c(!1)}),m=function(){return R()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.u("top-landscape-image-layout-view-model",{class:function(){var r;return((r=N().interaction)==null?0:r.onTap)&&_.x("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.ai(q,S3R,J),"on:mouseenter":E,"on:mouseleave":z},_.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.u(_.t,{cond:function(){return F()&&F().length>0},
then:function(){return _.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.ZU({top:"0","background-image":function(){return"url("+String(F()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.u(_.t,{cond:function(){return!!N().adButtonHoverOverlay},
then:function(){return _.u("div",{class:m},_.u(_.zS,{data:function(){return N().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:Wx1}))}}),_.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.u(_.zS,{data:function(){return N().thumbnailImage}},{adImageViewModel:function(r){return _.u(_.Lu,{data:r.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.x("enable_web_home_top_landscape_image_layout_level_click")})}})),_.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.u(_.s_,{data:{sources:[{clientResource:{imageName:_.x("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.u(_.zS,{data:function(){return N().feedAdMetadata}},{feedAdMetadataViewModel:function(r){return _.u(kx,{data:r.data,
noBottomMargin:function(){return b==null?void 0:b()},
listenToTapEvent:function(){return _.x("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return y==null?void 0:y()}})}})))},"pc"),"top-landscape-image-layout-view-model",{props:{data:_.F5,
noBottomMargin:_.F5,typographyBump:_.F5}});var Lxv=_.n(function(q){var N=q.data,b=_.mn({visibilityCallback:function(J){var E,F=(E=N().interaction)==null?void 0:E.onFirstVisible;J&&F&&_.Kt(F)},
showOption:_.Yx});q=_.KT(function(){return N().interaction},q.customCommandResolver);
var y={};return _.u("ad-text-image-view-model",{class:_.NO("ytwAdTextImageViewModelHost",(y.ytwAdTextImageViewModelHostDarkBackground=function(){return N().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},y)),
el:_.ai(b,q),"aria-label":function(){var J,E;return(J=N().interaction)==null?void 0:(E=J.accessibility)==null?void 0:E.label}},_.u("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.u(_.Zc,{text:function(){return N().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.u(_.t,{cond:function(){return N().overlayIcon},
then:function(J){return _.u("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.u(_.s_,{data:J,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"qc");var pUF=_.n(function(q){var N=q.data;return _.u("feed-ad-sitelink-view-model",{class:function(){var b;return((b=N().interaction)==null?0:b.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.ai(_.KT(function(){return N().interaction},q.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var b,y;return(b=N().interaction)==null?void 0:(y=b.accessibility)==null?void 0:y.label},
role:"link",tabindex:0},_.u(_.Zc,{text:function(){return N().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"rc");var PVx=_.n(function(q){var N=q.data;q={};return _.u("feed-ad-sitelinks-carousel-view-model",{el:_.ai(_.mn({visibilityCallback:function(b){var y,J=(y=N().interaction)==null?void 0:y.onFirstVisible;b&&J&&_.Kt(J)},
showOption:_.Yx})),class:_.NO("ytwFeedAdSitelinksCarouselViewModelHost",(q.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return N().style==="FEED_AD_SITELINKS_STYLE_NONE"},q))},_.u(_.zS,{data:function(){return N().sitelinks}},{feedAdSitelinkViewModel:pUF}))},"sc");_.P$(_.n(function(q){var N=q.data;q=_.mn({visibilityCallback:function(F,R){if(F){var c;(F=(c=N().interaction)==null?void 0:c.onFirstVisible)&&_.Kt(F);var z;(c=(z=N().adLayoutData)==null?void 0:z.activeViewData)&&ME(R,c)}},
showOption:_.Yx});var b=_.Z(_.QS(!1,void 0,"BzPhl")),y=b.next().value,J=b.next().value;b=_.y0(function(){J(!0)});
var E=_.y0(function(){J(!1)});
return _.u("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.ai(q),"on:mouseenter":b,"on:mouseleave":E},_.u("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.u("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.u(_.zS,{data:function(){return N().textImage}},{adTextImageViewModel:Lxv})),_.u("div",{class:function(){return y()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.u(_.zS,{data:function(){return N().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(F){return _.u(Wx1,{data:F.data,
listenToTapEvent:!0})}}))),_.u("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.u(_.zS,{data:function(){return N().feedAdMetadata}},{feedAdMetadataViewModel:function(F){return _.u(kx,{data:F.data,
listenToTapEvent:!0})}}),_.u(_.zS,{data:function(){return N().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:PVx})))},"tc"),"text-image-no-button-layout-view-model",{props:{data:_.F5}});_.P$(_.n(function(q){var N=q.data;var b=q.typographyBump;return _.u("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.ai(_.mn({visibilityCallback:function(y,J){if(y){var E;(y=(E=N().interaction)==null?void 0:E.onFirstVisible)&&_.Kt(y);var F;(E=(F=N().adLayoutData)==null?void 0:F.activeViewData)&&ME(J,E)}},
showOption:_.Yx,hideOption:Q3}))},_.u("div",null,_.u(_.zS,{data:function(){return N().videoLockup}},{lockupViewModel:function(y){return _.u(_.UE,{data:y.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:b})}})))},"uc"),"video-display-button-group-layout-view-model",{props:{data:_.F5,
noBottomMargin:_.F5,typographyBump:_.F5}});_.P$(_.n(function(q){var N=q.data;var b=q.className;var y=q.typographyBump;return _.u("video-display-compact-button-group-layout-view-model",{el:_.ai(_.mn({visibilityCallback:function(J,E){if(J){var F;(J=(F=N().interaction)==null?void 0:F.onFirstVisible)&&_.Kt(J);var R;(F=(R=N().adLayoutData)==null?void 0:R.activeViewData)&&ME(E,F)}},
showOption:_.Yx})),class:_.NO("videoDisplayCompactButtonGroupLayoutViewModelHost",b)},_.u(_.zS,{data:function(){return N().videoLockup}},{lockupViewModel:function(J){return _.u(_.UE,{data:J.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:y})}}))},"vc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.F5,
className:_.F5,typographyBump:_.F5}});_.P$(_.n(function(q){var N=q.data;var b=q.className;var y=q.typographyBump;return _.u("video-display-compact-buttoned-layout-view-model",{el:_.ai(_.mn({visibilityCallback:function(J,E){if(J){var F;(J=(F=N().interaction)==null?void 0:F.onFirstVisible)&&_.Kt(J);var R;(F=(R=N().adLayoutData)==null?void 0:R.activeViewData)&&ME(E,F)}},
showOption:_.Yx})),class:_.NO("videoDisplayCompactButtonedLayoutViewModelHost",b)},_.u(_.zS,{data:function(){return N().videoLockup}},{lockupViewModel:function(J){return _.u(_.UE,{data:J.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:y})}}))},"wc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.F5,
className:_.F5,typographyBump:_.F5}});_.P$(_.n(function(q){var N=q.data;var b=q.className;var y=q.typographyBump;var J=function(){return N().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},E=_.uR(_.wJ);
q=_.mn({visibilityCallback:function(z,m){if(z){var r=N();z=r.adLayoutData;var X;(r=(X=r.interaction)==null?void 0:X.onFirstVisible)&&_.Kt(r);(X=z==null?void 0:z.activeViewData)&&ME(m,X)}},
showOption:_.Yx});var F=_.K3(function(){return{containerType:J()&&E()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:J()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),R=_.K3(function(){return J()&&E()?"":J()?"168px":"50%"},void 0,"Om6kNe"),c=_.K3(function(){return J()&&E()?9999:void 0},void 0,"S71lKd");
return _.u("video-display-compact-layout-view-model",{el:_.ai(q),class:_.NO("videoDisplayCompactLayoutViewModelHost",b)},_.u(_.zS,{data:function(){return N().videoLockup}},{lockupViewModel:function(z){return _.u(_.UE,{data:z.data,
containerLayoutConfig:F,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:R,thumbnailTargetWidth:c,typographyBump:y})}}))},"xc"),"video-display-compact-layout-view-model",{props:{data:_.F5,
className:_.F5,typographyBump:_.F5}});_.P$(_.n(function(q){var N=q.data;var b=q.typographyBump;return _.u("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.ai(_.mn({visibilityCallback:function(y,J){if(y){var E;(y=(E=N().interaction)==null?void 0:E.onFirstVisible)&&_.Kt(y);var F;(E=(F=N().adLayoutData)==null?void 0:F.activeViewData)&&ME(J,E)}},
showOption:_.Yx,hideOption:Q3}))},_.u("div",null,_.u(_.zS,{data:function(){return N().videoLockup}},{lockupViewModel:function(y){return _.u(_.UE,{data:y.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:b})}})))},"yc"),"video-display-full-layout-view-model",{props:{data:_.F5,
noBottomMargin:_.F5,typographyBump:_.F5}});_.MKF=_.n(function(q){var N=q.data;q=_.dI("ad-card-badge-view-model");return _.u("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:q},_.u(_.t,{cond:function(){return N().imageBadge},
then:function(b){return _.u(_.s_,{data:b,alt:""})}}))},"zc");var oho=_.n(function(q){var N=q.data;var b=q.customCommandResolver;return _.u("carousel-ad-card-image-view-model",{class:function(){var y;return((y=N().interaction)==null?0:y.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.ai(_.mn({visibilityCallback:function(y){var J,E=(J=N().interaction)==null?void 0:J.onFirstVisible;y&&E&&_.Kt(E)},
showOption:_.Yx}),_.KT(function(){return N().interaction},b)),
"aria-label":function(){var y,J;return(y=N().interaction)==null?void 0:(J=y.accessibility)==null?void 0:J.label}},_.u(_.zS,{data:function(){return N().adImage}},{adImageViewModel:function(y){return _.u(_.Lu,{data:y.data,
customCommandResolver:b})}}),_.u("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.u(_.zS,{data:function(){return N().badge}},{adCardBadgeViewModel:_.MKF})),_.u(_.j9,{model:{color:4}}))},"Ac");var AyR=_.n(function(q){var N=_.Z(_.QS(0,void 0,"JJ0QQc")),b=N.next().value;N.next();var y=N.next().value,J=_.Z(_.QS(!1,void 0,"f6YICe"));N=J.next().value;var E=J.next().value,F;_.W1(function(){clearTimeout(F)});
J=_.y0(function(){var z;((z=q.animate)==null?0:z.call(q))?(E(!0),F=setTimeout(function(){E(!1);R()},200)):R();
return!1});
var R=function(){y(function(z){return(z+q.numShownItems())%q.data().length})},c={};
return _.u("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.u("div",{class:_.NO("ytwHorizontalCarouselCarouselWrapper")},_.u("div",{class:_.NO("ytwHorizontalCarouselCarouselInnerWrapper",(c.ytwHorizontalCarouselAnimating=N,c))},_.u(_.Tf,{each:q.data,keyBy:"INDEX"},function(z,m){return _.u("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.ZU({"flex-basis":function(){return"calc((100% - (8px * "+(q.numShownItems()-1)+")) / "+q.numShownItems()+")"},
order:function(){var r=m-b();r<0&&(r+=q.data().length);return r}})},q.children(z,m))}))),_.u("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":J},q.nextButton()))},"Bc");var eDo=_.n(function(q){var N=q.data;var b=q.customCommandResolver;var y=q.expansive;return _.u("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.ai(_.mn({visibilityCallback:function(J){var E,F=(E=N().interaction)==null?void 0:E.onFirstVisible;J&&F&&_.Kt(F)},
showOption:_.Yx}))},_.u(AyR,{data:function(){var J;return((J=N())==null?void 0:J.carouselAdCards)||[]},
nextButton:function(){return _.u(_.zS,{data:function(){return N().nextButton}},{buttonViewModel:function(J){var E=J.data;
return _.u(_.Ou,{data:function(){return(y==null?0:y())?Object.assign({},E(),{style:"mono"}):E()},
className:_.x("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(J){return _.u(_.zS,{data:J},{carouselAdCardImageViewModel:function(E){return _.u(oho,{data:E.data,customCommandResolver:b})}})}))},"Cc");var BZ1=_.n(function(q){var N=q.data;var b=q.customCommandResolver;var y=q.className;var J=q.buttonClassName;var E=q.animationEntityKey;var F=q.expansive;return _.u("carousel-button-view-model",{class:_.NO("ytwCarouselButtonViewModelHost",y)},_.u(_.zS,{data:function(){return N().carousel}},{carouselAdCardCollectionViewModel:function(R){return _.u(eDo,{data:R.data,
customCommandResolver:b,expansive:F})}}),_.u(_.zS,{data:function(){return N().button}},{adButtonViewModel:function(R){var c=R.data;
return _.u(_.OE,{data:function(){return(F==null?0:F())?Object.assign({},c(),{style:"AD_BUTTON_STYLE_TONAL"}):c()},
className:J,customCommandResolver:b,animationEntityKey:E})}}))},"Dc");_.H2x=_.n(function(q){var N=q.data;q=q.className;var b=_.dI("pivot-button-view-model");_.WC(function(){var y;((y=N())==null?0:y.backgroundColor)&&b.value.setAttribute("data-background-color",String(N().backgroundColor))});
return _.u("pivot-button-view-model",{el:b,class:_.NO("ytwPivotButtonViewModelHost",q)},_.u(_.Vf,{command:function(){var y=N();y=y.onClickCommand?_.O_(y.onClickCommand):y.contentDescription?_.PT(y.contentDescription):void 0;return y},
ariaLabel:function(){return N().contentDescription}},_.u(_.t,{cond:function(){return N().thumbnail},
then:function(y){return _.u(_.s_,{data:y,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.u(_.t,{cond:function(){return N().icon},
then:function(y){return _.u(_.FQ,{icon:function(){return y().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Ec");_.qz1=_.n(function(q){var N=q.data;var b=q.buttonShapeOverrideables;return _.u("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.u(_.zS,{data:function(){return N().buttonViewModels}},{buttonViewModel:function(y){return _.u(_.Ou,{data:y.data,
buttonOverrides:b})},
likeButtonViewModel:function(y){return _.u(_.y$,{data:y.data,buttonShapeOverrideables:b})},
dislikeButtonViewModel:function(y){return _.u(_.bD,{data:y.data,buttonShapeOverrideables:b})},
toggleButtonViewModel:function(y){return _.u(_.LV,{data:y.data,buttonShapeOverrides:b})}}))},"Fc");var N$x=_.n(function(q){var N=q.avatar;var b=q.headline;var y=q.badge;var J=q.description;var E=q.expansive;q={};return _.u("yt-ad-metadata-shape",{class:_.NO("ytAdMetadataShapeHost",(q.ytAdMetadataShapeHostLarge=E,q))},_.u("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.u(_.t,{cond:N,then:function(F){return _.u(_.Pmj,{data:function(){return(E==null?0:E())?Object.assign({},F(),{size:"AD_AVATAR_SIZE_M"}):F()}})}}),_.u("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.u(_.Zc,{text:b,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.u(_.t,{cond:y,then:function(F){return _.u(_.D2,{data:function(){return(E==null?0:E())?Object.assign({},F(),{style:"AD_BADGE_STYLE_STARK"}):F()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.u("h2",{class:"ytAdMetadataShapeHostDescription"},_.u(_.Zc,{text:J,
linkInheritColor:!0,isHeadline:function(){return E==null?void 0:E()}})))},"Gc");var bs1=_.n(function(q){var N=q.data;var b=q.onShow;var y=q.expansive;q=_.KT(function(){return N().interaction});
_.WC(function(){var E,F=(E=N().animatedRenderingConfig)==null?void 0:E.delayedSecondsToVisible;if(F){var R=setTimeout(b,F*1E3);_.W1(function(){clearTimeout(R)})}});
var J={};return _.u("reels-ad-card-buttoned-view-model",{class:_.NO(function(){var E;return((E=N().interaction)==null?0:E.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(J.ytwReelsAdCardButtonedViewModelHostExpansive=y,J)),
el:_.ai(q)},_.u(N$x,{avatar:function(){return _.v(N().avatar,sgx)},
headline:function(){return N().headline},
badge:function(){return _.v(N().adBadge,n2x)},
description:function(){return N().description},
expansive:y}),_.u(_.zS,{data:function(){return N().ctaButton}},{adButtonViewModel:function(E){var F=E.data;
return _.u(_.OE,{data:function(){return(y==null?0:y())?Object.assign({},F(),{style:"AD_BUTTON_STYLE_FILLED"}):F()}})}}))},"Hc");var yu4=_.n(function(q){var N=q.data;q=q.expansive;var b=_.x("web_ad_metadata_clickable")?_.KT(function(){return N().interaction},void 0,function(){return _.x("web_ad_metadata_clickable")}):void 0,y={};
y=_.jz("ytwReelsAdMetadataViewModelHost",(y.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.x("web_ad_metadata_clickable"),y));return _.u("reels-ad-metadata-view-model",{class:y,el:_.ai(b)},_.u(N$x,{avatar:function(){return _.v(N().avatar,sgx)},
headline:function(){return N().headline},
badge:function(){return _.v(N().adBadge,n2x)},
description:function(){return N().description},
expansive:q}))},"Ic");var JuT={iconPosition:"icon-with-label",size:"L"},EVo=_.n(function(q){var N=q.data;var b=q.overlayDensity;var y=q.extractOverlay;var J=q.extractActionBar;q=_.dI("reels-player-overlay-layout-view-model");var E=_.aU(b,0),F=function(){var V;return(V=N().reelsAdCardButtonedEntityKey)!=null?V:""},R=function(){return F()+"/ad_button"},c=_.dj(xGh,F),z=function(){var V,G;
return(G=(V=c())==null?void 0:V.value)!=null?G:!1},m=_.uR(WBh),r=function(){var V;
return Object.assign({},JuT,(m()||!((V=J==null?void 0:J())!=null&&V))&&{style:"overlay-dark"})};
b={};var X={};return _.u("reels-player-overlay-layout-view-model",{class:_.NO("ytwReelsPlayerOverlayLayoutViewModelHost",(b.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!N().extension},b.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},b.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return E()===1&&!(y==null?0:y())},b.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var V;
return(V=y==null?void 0:y())!=null?V:!1},b.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var V;
return(V=J==null?void 0:J())!=null?V:!1},b)),
"overlay-density":function(){return String(E())},
el:q},_.u("div",{class:_.NO("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(X.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},X))},_.u("div",{"aria-hidden":function(){return z()},
class:_.NO("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return z()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.ZU({"transition-duration":function(){return M3n(N())}})},_.u(_.zS,{data:function(){return N().adMetadata}},{reelsAdMetadataViewModel:function(V){return _.u(yu4,{data:V.data,
expansive:function(){return E()===1}})}}),_.u(_.t,{cond:function(){return N().extension},
then:function(V){return _.u("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.u(_.zS,{data:V},{adButtonViewModel:function(G){return _.u(_.OE,{data:G.data,animationEntityKey:R,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(G){return _.u(BZ1,{data:G.data,animationEntityKey:R,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return E()===1}})}}))}})),_.u("div",{"aria-hidden":function(){return!z()},
class:_.NO("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return z()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.ZU({"transition-duration":function(){return M3n(N())}})},_.u(_.zS,{data:function(){return N().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(V){return _.u(bs1,{data:V.data,
onShow:function(){_.nk(_.$e("booleanEntity",F(),{key:F(),value:!0}))},
expansive:function(){return E()===1}})}}))),_.u("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.u(_.zS,{data:function(){return N().actions}},{reelActionBarViewModel:function(V){return _.u(_.qz1,{data:V.data,
buttonShapeOverrideables:r})}}),_.u(_.zS,{data:function(){return N().menu}},{buttonViewModel:function(V){return _.u(_.Ou,{data:V.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},r(),{type:"tonal"})}})}}),_.u(_.zS,{data:function(){return N().pivotButton}},{pivotButtonViewModel:function(V){return _.u(_.H2x,{data:V.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Jc");_.P$(EVo,"reels-player-overlay-layout-view-model",{props:{data:_.F5,overlayDensity:_.F5,extractOverlay:_.F5,extractActionBar:_.F5}});var pu=function(){var q=_.C.apply(this,arguments)||this;q.noBottomMargin=!1;q.overlayDensity=0;q.extractOverlay=!1;q.extractActionBar=!1;return q};
_.Y(pu,_.C);_.g=pu.prototype;
_.g.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:_.x("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]]"}}}}}};
_.g.ready=function(){var q=this;EdZ(function(){q.isAttached&&aD(q.JSC$15753_storedAdSlotMetadata,q.JSC$15753_storedAdLayoutMetadata,q.adSlotMetadata,q.adLayoutMetadata)&&Wf(IZ(),q.JSC$15753_storedAdSlotMetadata,q.JSC$15753_storedAdLayoutMetadata)})};
_.g.attached=function(){aD(this.JSC$15753_storedAdSlotMetadata,this.JSC$15753_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Syx(IZ(),this.JSC$15753_storedAdSlotMetadata,this.JSC$15753_storedAdLayoutMetadata)};
_.g.detached=function(){aD(this.JSC$15753_storedAdSlotMetadata,this.JSC$15753_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Wf(IZ(),this.JSC$15753_storedAdSlotMetadata,this.JSC$15753_storedAdLayoutMetadata)};
_.g.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.g.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15753_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15753_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15753_storedAdLayoutMetadata!==void 0&&this.JSC$15753_storedAdSlotMetadata!==void 0&&Wf(IZ(),this.JSC$15753_storedAdSlotMetadata,this.JSC$15753_storedAdLayoutMetadata),Syx(IZ(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15753_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15753_storedAdSlotMetadata=this.adSlotMetadata)};
_.$H.Object.defineProperties(pu.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.adLayoutMetadata}}});
pu.prototype.onAdMetadataChanged=pu.prototype.onAdMetadataChanged;pu.prototype.onTypographyBumpChanged=pu.prototype.onTypographyBumpChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],pu.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],pu.prototype,"rendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],pu.prototype,"ytComponentBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],pu.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],pu.prototype,"noBottomMargin",void 0);_.p([_.U(),_.P("design:type",Object)],pu.prototype,"overlayDensity",void 0);_.p([_.U(),_.P("design:type",Object)],pu.prototype,"extractOverlay",void 0);_.p([_.U(),_.P("design:type",Object)],pu.prototype,"extractActionBar",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],pu.prototype,"typographyBump",void 0);
_.p([_.l("data.adLayoutMetadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],pu.prototype,"adLayoutMetadata",null);_.p([_.U(),_.P("design:type",Object)],pu.prototype,"adSlotMetadata",void 0);_.p([_.dq("ytd-video-display-full-buttoned-and-button-group-renderer"),_.P("design:type",HTMLElement)],pu.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.p([_.FY("typographyBump"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pu.prototype,"onTypographyBumpChanged",null);_.p([_.FY("adLayoutMetadata","adSlotMetadata"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pu.prototype,"onAdMetadataChanged",null);_.p([_.I({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],pu);
_.a(pu,"ytd-in-feed-ad-layout-renderer",function(){if(pz1!==void 0)return pz1;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return pz1=q},
{mode:_.Am("kevlar_poly_si_batch_j028")?1:2});var gV1;var Zsx;_.P$(_.D2,"ad-badge-view-model",{props:{data:_.F5,hasDot:_.F5,customCommandResolver:_.W$,adRenderingContextType:_.W$,usedInMasthead:_.W$}});_.P$(_.OE,"ad-button-view-model",{props:{data:_.F5,customCommandResolver:_.W$,className:_.W$,delayedClassName:_.W$,animationEntityKey:_.W$,isCompactWidth:_.W$,isContentWidth:_.W$}});var Pf=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return q};
_.Y(Pf,_.C);_.g=Pf.prototype;_.g.computeHasLiveDescription=function(q){return!(q==null||!q.liveDescription)};
_.g.computeHasByline=function(q){return!(q==null||!q.byline)};
_.g.computeUsesAdButtonViewModel=function(q){return!!_.v(q==null?void 0:q.cta,aLM)};
_.g.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"}}}}}};
_.g.onYtToggleButton=function(q){var N,b=(N=this.data)==null?void 0:N.videoReminderEntityKey;b&&this.ytdReduxBehavior.dispatch(_.$e("upcomingEventReminderStateEntity",b,{key:b,state:q.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.g.attached=function(){this.updateChannelBanner()};
_.g.dataChanged=function(){this.updateChannelBanner()};
_.g.videoReminderStateChanged=function(){var q;this.videoReminderState&&_.v((q=this.data)==null?void 0:q.cta,_.EM)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.g.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var q=_.Mo(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);q&&(q.startsWith("//")&&(q="https:"+q),this.hostElement.classList.add("channel-banner"),_.Jm(this.hostElement,{"--ytvmh-channel-banner":"url("+q+")"}))}else _.x("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.g.onPlayerReady=function(){this.onIronResize()};
_.g.maybeFlushDebouncer=function(){_.x("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(q){var N;q=(N=q.getElementsByTagName("yt-attributed-string"))==null?void 0:N[0];GHC(q==null?void 0:q.polymerController)})};
_.g.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var q=_.ee(this.hostElement).querySelector("#live-description"),N;q&&((N=this.data)==null?0:N.shortLiveDescription)&&q.clientWidth<q.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
Pf.prototype.onIronResize=Pf.prototype.onIronResize;Pf.prototype.videoReminderStateChanged=Pf.prototype.videoReminderStateChanged;Pf.prototype.dataChanged=Pf.prototype.dataChanged;Pf.prototype.onYtToggleButton=Pf.prototype.onYtToggleButton;_.p([_.O(_.SQ),_.P("design:type",Object)],Pf.prototype,"ironResizableBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Pf.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Pf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],Pf.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Pf.prototype,"data",void 0);_.p([_.U({selectorArgs:["data.videoReminderEntityKey"],selector:JRR}),_.P("design:type",Object)],Pf.prototype,"videoReminderState",void 0);
_.p([_.U({reflectToAttribute:!0,value:_.x("web_modern_buttons")}),_.P("design:type",Boolean)],Pf.prototype,"rounded",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.P("design:type",Boolean)],Pf.prototype,"hasLiveDescription",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.P("design:type",Boolean)],Pf.prototype,"hasByline",void 0);
_.p([_.U({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.P("design:type",String)],Pf.prototype,"adRenderingContextType",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],Pf.prototype,"isMasthead",void 0);_.p([_.U({computed:"computeUsesAdButtonViewModel(data)"}),_.P("design:type",Boolean)],Pf.prototype,"usesAdButtonViewModel",void 0);
_.p([_.U({reflectToAttribute:!0,value:_.x("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.P("design:type",Boolean)],Pf.prototype,"resizableAdBannerSafariFix",void 0);_.p([_.cH("yt-formatted-string"),_.P("design:type",Array)],Pf.prototype,"formattedStrings",void 0);_.p([_.dq("#cta-button"),_.P("design:type",HTMLElement)],Pf.prototype,"ctaButton",void 0);
_.p([_.ZP("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Pf.prototype,"onYtToggleButton",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pf.prototype,"dataChanged",null);_.p([_.FY("videoReminderState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pf.prototype,"videoReminderStateChanged",null);
_.p([_.ZP("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pf.prototype,"onIronResize",null);_.p([_.I({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],Pf);
_.a(Pf,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(Zsx!==void 0)return Zsx;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Zsx=q},{mode:1});var FkF;var My=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};q.isLocked=!1;return q};
_.Y(My,_.C);_.g=My.prototype;_.g.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.g.onExpandedChanged=function(){this.expanded&&_.Hy(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.g.onMouseOver=function(){this.maybeExpand()};
_.g.onTap=function(){this.maybeExpand()};
_.g.onExpandableTileExpanding=function(q){q!==this&&(this.expanded=!1)};
_.g.onExpandableTileLockAndCollapse=function(q){this.isLocked=!0;q!==this&&(this.expanded=!1)};
_.g.onExpandableTileUnlock=function(){this.isLocked=!1};
My.prototype.onTap=My.prototype.onTap;My.prototype.onMouseOver=My.prototype.onMouseOver;My.prototype.onExpandedChanged=My.prototype.onExpandedChanged;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],My.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],My.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],My.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],My.prototype,"expanded",void 0);_.p([_.$9("expanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],My.prototype,"onExpandedChanged",null);_.p([_.ZP("mouseover"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],My.prototype,"onMouseOver",null);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],My.prototype,"onTap",null);
_.p([_.I({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],My);
_.a(My,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(FkF!==void 0)return FkF;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return FkF=q},{mode:1});var R5F;var oZ=function(){var q=_.C.apply(this,arguments)||this;q.buttonOverrides={style:"overlay"};q.useYtdPlayer=_.x("use_ytd_player_for_desktop_masthead");q.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};q.playbackFinished=!1;q.JSC$15767_playerManager=null;q.JSC$15767_mastheadCounter=new FAx;return q};
_.Y(oZ,_.C);_.g=oZ.prototype;_.g.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"}}}};
_.g.created=function(){this.JSC$15767_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15767_playerManager=new TV)};
_.g.ready=function(){var q=this;this.JSC$15767_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var N=_.ee(this.hostElement).querySelector("#player");this.useYtdPlayer?N.style.display="none":(this.ytdPlayer.style.display="none",Hwo(this.JSC$15767_playerManager,N,function(){q.onPlaybackEnded()}),_.ee(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var b;
((b=q.data)==null?0:b.navigationEndpoint)&&_.e2(q.hostElement,"yt-navigate",{endpoint:q.data.navigationEndpoint})}))};
_.g.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15767_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.g.attached=function(){var q=this;_.k9(function(){q.maybePlayVideo()})};
_.g.maybePlayVideo=function(){var q=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$15767_playerManager.playVideo(),this.getPlayerPromise().then(function(){q.JSC$15767_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.g.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15767_playerManager.stopVideo()};
_.g.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var q,N={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((q=this.data.playbackStartMs)!=null?q:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(N);this.setupYtdPlayer()}else NGx(this.JSC$15767_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(qHq(this.JSC$15767_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.g.getPlayerPromise=function(){return this.JSC$15767_playerManager.getPlayerPromise()};
_.g.onYtToggleButton=function(q){this.useYtdPlayer?this.toggleMute(q.detail.toggled):q.detail.toggled?this.JSC$15767_playerManager.mute():this.JSC$15767_playerManager.unMute()};
_.g.onYtNavigate=function(q){var N=gld(q.detail.endpoint),b=ZuC(this.data.clickthroughReportingData);N&&b&&(q.detail.endpoint.watchEndpoint?q.detail.tempData=b:_.Lx(N,b,30))};
_.g.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.g.onExpandedChanged=function(){this.expanded?(_.Hy(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.g.onMouseOver=function(){this.maybeExpand()};
_.g.onTap=function(){this.maybeExpand()};
_.g.onExpandableTileExpanding=function(q){q!==this&&(this.stopVideo(),this.expanded=!1)};
_.g.onExpandableTileLockAndCollapse=function(q){q!==this&&(this.isLocked=!0,this.expanded=!1)};
_.g.onExpandableTileUnlock=function(){this.isLocked=!1};
_.g.lockAndCollapseExpandableTiles=function(){_.By(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.g.unlockExpandableTiles=function(){_.By(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.g.setupYtdPlayer=function(){var q=this,N;return _.d(function(b){if(b.nextAddress==1)return b.yield(q.ytdPlayer.getPlayerPromise(),2);N=b.yieldResult;N.addEventListener("onStateChange",function(y){q.onPlayerStateChange(y)});
N.addEventListener("onCueRangeExit",function(y){q.onCueRangeExit(y)});
_.hj(b)})};
_.g.onPlayerStateChange=function(q){if(q===1&&(q=this.ytdPlayer.getPlayer())){var N=q.getCurrentTime(),b,y,J=N+((y=(b=this.data)==null?void 0:b.playbackDurationMs)!=null?y:0)/1E3;q.addCueRange("playback",N,J);this.JSC$15767_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.g.onCueRangeExit=function(q){q==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.g.toggleMute=function(q){var N=this,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(N.ytdPlayer.getPlayerPromise(),2);b=y.yieldResult;q?b.mute():b.unMute();_.hj(y)})};
oZ.prototype.onTap=oZ.prototype.onTap;oZ.prototype.onMouseOver=oZ.prototype.onMouseOver;oZ.prototype.onExpandedChanged=oZ.prototype.onExpandedChanged;oZ.prototype.onYtNavigate=oZ.prototype.onYtNavigate;oZ.prototype.onYtToggleButton=oZ.prototype.onYtToggleButton;oZ.prototype.dataChanged=oZ.prototype.dataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],oZ.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],oZ.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],oZ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],oZ.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],oZ.prototype,"expanded",void 0);_.p([_.U(),_.P("design:type",Object)],oZ.prototype,"buttonOverrides",void 0);
_.p([_.U(),_.P("design:type",Object)],oZ.prototype,"useYtdPlayer",void 0);_.p([_.dq("#ytd-player"),_.P("design:type",Object)],oZ.prototype,"ytdPlayer",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oZ.prototype,"dataChanged",null);_.p([_.ZP("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],oZ.prototype,"onYtToggleButton",null);
_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],oZ.prototype,"onYtNavigate",null);_.p([_.$9("expanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oZ.prototype,"onExpandedChanged",null);_.p([_.ZP("mouseover"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oZ.prototype,"onMouseOver",null);
_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oZ.prototype,"onTap",null);_.p([_.I({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],oZ);
_.a(oZ,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(R5F!==void 0)return R5F;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return R5F=q},{mode:1});var dij;var AA=function(){return _.C.apply(this,arguments)||this};
_.Y(AA,_.C);AA.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
AA.prototype.onShow=function(){var q=_.ee(this.hostElement).querySelector("#live-description"),N;q&&((N=this.data)==null?0:N.shortLiveDescription)&&q.clientWidth<q.scrollWidth&&this.hostElement.classList.add("short-live-description")};
AA.prototype.onYtToggleButton=function(q){var N,b=(N=this.data)==null?void 0:N.videoReminderEntityKey;b&&this.ytdReduxBehavior.dispatch(_.$e("upcomingEventReminderStateEntity",b,{key:b,state:q.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
AA.prototype.videoReminderStateChanged=function(){var q;this.videoReminderState&&_.v((q=this.data)==null?void 0:q.cta,_.EM)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
AA.prototype.videoReminderStateChanged=AA.prototype.videoReminderStateChanged;AA.prototype.onYtToggleButton=AA.prototype.onYtToggleButton;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],AA.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],AA.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],AA.prototype,"data",void 0);
_.p([_.U({selectorArgs:["data.videoReminderEntityKey"],selector:JRR}),_.P("design:type",Object)],AA.prototype,"videoReminderState",void 0);_.p([_.ZP("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],AA.prototype,"onYtToggleButton",null);_.p([_.FY("videoReminderState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AA.prototype,"videoReminderStateChanged",null);
_.p([_.I({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],AA);
_.a(AA,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(dij!==void 0)return dij;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return dij=q},{mode:_.Am("kevlar_poly_si_batch_j065")?1:2});var cuT;var e$=function(){var q=_.C.apply(this,arguments)||this;q.useYtdPlayer=_.x("use_ytd_player_for_desktop_masthead");q.buttonOverrides={style:"overlay"};q.JSC$15775_playerManager=null;q.JSC$15775_mastheadCounter=new FAx;q.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return q};
_.Y(e$,_.C);_.g=e$.prototype;_.g.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"}}}};
_.g.created=function(){this.JSC$15775_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15775_playerManager=new TV)};
_.g.ready=function(){var q=this;this.JSC$15775_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var N;(N=this.embeddedPlayer)==null||N.remove()}else{var b;(b=this.ytdPlayer)==null||b.remove();Hwo(this.JSC$15775_playerManager,this.embeddedPlayer,function(){q.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){q.data&&q.data.navigationEndpoint&&_.e2(q.hostElement,"yt-navigate",{endpoint:q.data.navigationEndpoint})})}};
_.g.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15775_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.g.dataChanged=function(){var q=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var N=!this.data.disableAutoPlayback,b,y={autoplay:N,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((b=this.data.playbackStartMs)!=null?b:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(N?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(y);this.setupYtdPlayer()}else NGx(this.JSC$15775_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(qHq(this.JSC$15775_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15775_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.By(q.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");q.JSC$15775_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.g.getPlayerPromise=function(){return this.JSC$15775_playerManager.getPlayerPromise()};
_.g.onYtToggleButton=function(q){this.useYtdPlayer?this.toggleMute(q.detail.toggled):q.detail.toggled?this.JSC$15775_playerManager.mute():this.JSC$15775_playerManager.unMute()};
_.g.onYtNavigate=function(q){var N=gld(q.detail.endpoint),b=ZuC(this.data.clickthroughReportingData);N&&b&&(q.detail.endpoint.watchEndpoint?q.detail.tempData=b:_.Lx(N,b,30))};
_.g.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15775_playerManager.stopVideo()};
_.g.setupYtdPlayer=function(){var q=this,N;return _.d(function(b){if(b.nextAddress==1)return b.yield(q.ytdPlayer.getPlayerPromise(),2);N=b.yieldResult;N.addEventListener("onStateChange",function(y){q.onPlayerStateChange(y)});
N.addEventListener("onCueRangeExit",function(y){q.onCueRangeExit(y)});
_.hj(b)})};
_.g.onPlayerStateChange=function(q){if(q===1&&(q=this.ytdPlayer.getPlayer())){var N=q.getCurrentTime(),b,y,J=N+((y=(b=this.data)==null?void 0:b.playbackDurationMs)!=null?y:0)/1E3;q.addCueRange("playback",N,J);_.By(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15775_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.g.onCueRangeExit=function(q){q==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.g.toggleMute=function(q){var N=this,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(N.ytdPlayer.getPlayerPromise(),2);b=y.yieldResult;q?b.mute():b.unMute();_.hj(y)})};
_.$H.Object.defineProperties(e$.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var q,N;if(!((q=this.data)==null?0:(N=q.accessibilityData)==null?0:N.label))return"Ad primary link";var b,y;return _.FE("AD_TITLE",{title:(b=this.data)==null?void 0:(y=b.accessibilityData)==null?void 0:y.label})}}});
e$.prototype.onYtMastheadHidden=e$.prototype.onYtMastheadHidden;e$.prototype.onYtNavigate=e$.prototype.onYtNavigate;e$.prototype.onYtToggleButton=e$.prototype.onYtToggleButton;e$.prototype.dataChanged=e$.prototype.dataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],e$.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],e$.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],e$.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],e$.prototype,"useYtdPlayer",void 0);_.p([_.dq("ytd-toggle-button-renderer"),_.P("design:type",Object)],e$.prototype,"muteButton",void 0);_.p([_.U(),_.P("design:type",Object)],e$.prototype,"buttonOverrides",void 0);
_.p([_.l("data.accessibilityData.label"),_.P("design:type",String),_.P("design:paramtypes",[])],e$.prototype,"titleAriaLabel",null);_.p([_.dq("#replay-button"),_.P("design:type",Object)],e$.prototype,"replayButton",void 0);_.p([_.dq("#player-container"),_.P("design:type",Object)],e$.prototype,"playerContainer",void 0);_.p([_.dq("#player"),_.P("design:type",Object)],e$.prototype,"embeddedPlayer",void 0);_.p([_.dq("#ytd-player"),_.P("design:type",Object)],e$.prototype,"ytdPlayer",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],e$.prototype,"dataChanged",null);_.p([_.ZP("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],e$.prototype,"onYtToggleButton",null);_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],e$.prototype,"onYtNavigate",null);
_.p([_.ZP("yt-masthead-hidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],e$.prototype,"onYtMastheadHidden",null);_.p([_.I({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],e$);
_.a(e$,"ytd-video-masthead-ad-primary-video-renderer",function(){if(cuT!==void 0)return cuT;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return cuT=q},{mode:2});var ujT;var Bf=function(){var q=_.C.apply(this,arguments)||this;q.collapsed=!1;q.impressionResolver=_.T4();q.JSC$15779_activeViewMeasurementDataResolver=_.T4();q.actionMap={"yt-mute-ad-action":"handleMuteAd"};return q};
_.Y(Bf,_.C);_.g=Bf.prototype;_.g.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"}}}};
_.g.created=function(){this.activeView=new Y$(this.hostElement)};
_.g.ready=function(){var q=this;_.ee(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){q.expandAd()});
this.hostElement.addEventListener("yt-action",function(N){if(N.detail.actionName==="yt-service-request"){var b=N.detail.args[1];b.videoMastheadAdMuteCommand&&(q.collapseAd(b.videoMastheadAdMuteCommand.encryptedMastheadId),N.stopPropagation())}})};
_.g.attached=function(){var q=this;_.k9(function(){q.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(N){if(!q.collapsed){N=_.Z(N);for(var b=N.next();!b.done;b=N.next())b=b.value,yQ(b.baseUrl,b.attributionSrcMode);q.data.impressionCommand=void 0}});
this.JSC$15779_activeViewMeasurementDataResolver.promise.then(function(N){Q1(q.activeView,N)});
_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ob(q.activeView)})};
_.g.dataChanged=function(){var q;((q=this.data.impressionCommand)==null?0:q.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var N;((N=this.data)==null?0:N.activeView)&&this.JSC$15779_activeViewMeasurementDataResolver.resolve(this.data.activeView);(q=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(q.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.g.computeWidescreen=function(q){var N;return!!(q&&((N=_.v(q,UtJ))==null?0:N.isWidescreen))};
_.g.computeExpandable=function(q){return!!(q&&q.length>0)};
_.g.onIronResize=function(){if(this.expandable){var q=_.ee(this.hostElement).querySelector("#expandable-tile-container :first-child");q&&!q.expanded&&(q.expanded=!0)}};
_.g.handleMuteAd=function(){this.collapseAd(null)};
_.g.restoreCollapsedState=function(q){this.collapsed=_.c3().get("HIDDEN_MASTHEAD_ID")===q};
_.g.collapseAd=function(q){if(q){var N=_.c3();N.set("HIDDEN_MASTHEAD_ID",q);N.save()}(q=_.ee(this.hostElement).querySelector("#video"))&&_.e2(q,"yt-masthead-hidden");this.collapsed=!0};
_.g.expandAd=function(){var q=_.c3();q.set("HIDDEN_MASTHEAD_ID",!1);q.save();location.reload()};
_.g.detached=function(){_.x("stop_av_measurement_on_detach")&&Ob(this.activeView)};
Bf.prototype.onIronResize=Bf.prototype.onIronResize;Bf.prototype.dataChanged=Bf.prototype.dataChanged;_.p([_.O(_.SQ),_.P("design:type",Object)],Bf.prototype,"ironResizableBehavior",void 0);_.p([_.O(_.y1),_.P("design:type",Object)],Bf.prototype,"ytdGridStateAwareBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Bf.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Bf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Bf.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.P("design:type",Boolean)],Bf.prototype,"widescreen",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.P("design:type",Boolean)],Bf.prototype,"expandable",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Bf.prototype,"collapsed",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bf.prototype,"dataChanged",null);_.p([_.ZP("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bf.prototype,"onIronResize",null);_.p([_.I({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],Bf);
_.a(Bf,"ytd-video-masthead-ad-v3-renderer",function(){if(ujT!==void 0)return ujT;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return ujT=q},{mode:2});var Hf=function(){return _.C.apply(this,arguments)||this};
_.Y(Hf,_.C);_.g=Hf.prototype;_.g.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.g.ready=function(){var q=this;EdZ(function(){q.isAttached&&aD(q.JSC$15784_storedAdSlotMetadata,q.JSC$15784_storedAdLayoutMetadata,q.adSlotMetadata,q.adLayoutMetadata)&&Wf(IZ(),q.JSC$15784_storedAdSlotMetadata,q.JSC$15784_storedAdLayoutMetadata)})};
_.g.attached=function(){aD(this.JSC$15784_storedAdSlotMetadata,this.JSC$15784_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Syx(IZ(),this.JSC$15784_storedAdSlotMetadata,this.JSC$15784_storedAdLayoutMetadata)};
_.g.detached=function(){aD(this.JSC$15784_storedAdSlotMetadata,this.JSC$15784_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Wf(IZ(),this.JSC$15784_storedAdSlotMetadata,this.JSC$15784_storedAdLayoutMetadata)};
_.g.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15784_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15784_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15784_storedAdLayoutMetadata!==void 0&&this.JSC$15784_storedAdSlotMetadata!==void 0&&Wf(IZ(),this.JSC$15784_storedAdSlotMetadata,this.JSC$15784_storedAdLayoutMetadata),Syx(IZ(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15784_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15784_storedAdSlotMetadata=this.adSlotMetadata)};
_.$H.Object.defineProperties(Hf.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.adLayoutMetadata}}});
Hf.prototype.onAdMetadataChanged=Hf.prototype.onAdMetadataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Hf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Hf.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Hf.prototype,"data",void 0);_.p([_.l("data.adLayoutMetadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hf.prototype,"adLayoutMetadata",null);
_.p([_.U(),_.P("design:type",Object)],Hf.prototype,"adSlotMetadata",void 0);_.p([_.FY("adLayoutMetadata","adSlotMetadata"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Hf.prototype,"onAdMetadataChanged",null);_.p([_.I({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Hf);
_.a(Hf,"ytd-page-top-ad-layout-renderer",function(){if(gV1!==void 0)return gV1;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return gV1=
q},{mode:_.Am("kevlar_poly_si_batch_j070")?1:2});var z5E;var qq=function(){var q=_.C.apply(this,arguments)||this;q.noBottomMargin=!1;q.overlayDensity=0;q.typographyBump=!1;q.extractOverlay=!1;q.extractActionBar=!1;return q};
_.Y(qq,_.C);_.g=qq.prototype;
_.g.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]]"}}}}}};
_.g.ready=function(){var q=this;EdZ(function(){q.isAttached&&q.adSlotMetadata&&aBM(IZ(),q.adSlotMetadata)})};
_.g.attached=function(){if(this.adSlotMetadata){var q;if(this.adSlotMetadata===((q=this.data)==null?void 0:q.adSlotMetadata))nhj(IZ(),this.adSlotMetadata);else{var N;_.M6(Error("Oh`"+this.adSlotMetadata+"`"+((N=this.data)==null?void 0:N.adSlotMetadata)))}}};
_.g.detached=function(){this.adSlotMetadata&&aBM(IZ(),this.adSlotMetadata)};
_.g.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.g.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&aBM(IZ(),this.adSlotMetadata),nhj(IZ(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.$H.Object.defineProperties(qq.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var q,N,b=_.v((q=this.data)==null?void 0:(N=q.fulfillmentContent)==null?void 0:N.fulfilledLayout,_.CKj),y;return(q=(y=_.v(b==null?void 0:b.renderingContent,fLJ))==null?void 0:y.layout)?q.toLowerCase().replace(/_/g,"-"):""}}});
qq.prototype.onAdSlotMetadataChanged=qq.prototype.onAdSlotMetadataChanged;qq.prototype.onTypographyBumpChanged=qq.prototype.onTypographyBumpChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],qq.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],qq.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],qq.prototype,"rendererBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],qq.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],qq.prototype,"noBottomMargin",void 0);_.p([_.U(),_.P("design:type",Object)],qq.prototype,"overlayDensity",void 0);_.p([_.U(),_.P("design:type",Object)],qq.prototype,"typographyBump",void 0);_.p([_.U(),_.P("design:type",Object)],qq.prototype,"extractOverlay",void 0);_.p([_.U(),_.P("design:type",Object)],qq.prototype,"extractActionBar",void 0);
_.p([_.dq("ytd-in-feed-ad-layout-renderer"),_.P("design:type",HTMLElement)],qq.prototype,"inFeedAdLayoutRenderer",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",String),_.P("design:paramtypes",[])],qq.prototype,"layout",null);_.p([_.FY("typographyBump"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qq.prototype,"onTypographyBumpChanged",null);
_.p([_.FY("data.adSlotMetadata"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qq.prototype,"onAdSlotMetadataChanged",null);_.p([_.I({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],qq);
_.a(qq,"ytd-ad-slot-renderer",function(){if(z5E!==void 0)return z5E;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return z5E=q},{mode:_.Am("kevlar_poly_si_batch_j077")?
1:2});var $iT;var Nq=function(){return _.C.apply(this,arguments)||this};
_.Y(Nq,_.C);_.g=Nq.prototype;_.g.created=function(){this.activeView=new Y$(this.hostElement)};
_.g.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"}}}};
_.g.maybeComputeHref=function(){return null};
_.g.onTap=function(){};
_.g.onThumbnailContainerClick=function(q){this.onClick(q)};
_.g.onClick=function(q){var N,b=(N=this.data)==null?void 0:N.navigationEndpoint;b&&_.v(b,_.nx)&&(this.ytSparklesClickLocationBehavior.handleClick(b,q,!1),q.stopPropagation())};
_.g.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var q=_.Z(this.data.impressionUrls),N=q.next();!N.done;N=q.next())N=N.value,W_J(N,pHA(N));this.data.activeView&&Q1(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Nq.JSC$15792_DEFAULT_CLICK_LOCATION_BEHAVIOR,Nq.JSC$15792_CLICK_LOCATION_ID_MAP);this.thumbnail&&(q=this.thumbnail.getElementsByTagName("a"),q.length>0&&(q=q.namedItem("thumbnail"))&&q.removeAttribute("href"))}};
_.g.attached=function(){var q=this;_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ob(q.activeView)})};
_.g.detached=function(){_.x("stop_av_measurement_on_detach")&&Ob(this.activeView)};
_.$H.Object.defineProperties(Nq.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.x("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.x("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
Nq.prototype.dataChanged=Nq.prototype.dataChanged;Nq.prototype.onTap=Nq.prototype.onTap;Nq.JSC$15792_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Nq.JSC$15792_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"}];_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Nq.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Nq.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Nq.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],Nq.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.Xi.YtSparklesClickLocationBehavior),_.P("design:type",Object)],Nq.prototype,"ytSparklesClickLocationBehavior",void 0);
_.p([_.U({selector:_.wJ}),_.P("design:type",Object)],Nq.prototype,"isGridViewEnabled",void 0);_.p([_.l("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Nq.prototype,"watchFeedBigThumbs",null);_.p([_.l("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.P("design:type",String),_.P("design:paramtypes",[])],Nq.prototype,"thumbnailWidth",null);_.p([_.U(),_.P("design:type",Object)],Nq.prototype,"data",void 0);
_.p([_.dq("ytd-thumbnail"),_.P("design:type",HTMLElement)],Nq.prototype,"thumbnail",void 0);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Nq.prototype,"onTap",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Nq.prototype,"dataChanged",null);_.p([_.I({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Nq);
_.a(Nq,"ytd-compact-promoted-video-renderer",function(){if($iT!==void 0)return $iT;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return $iT=q},{mode:1});var thJ;_.xP("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var bJ=function(){return _.C.apply(this,arguments)||this};
_.Y(bJ,_.C);bJ.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],bJ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],bJ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],bJ.prototype,"data",void 0);_.p([_.I({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],bJ);
_.a(bJ,"ytd-search-pyv-renderer",function(){if(thJ!==void 0)return thJ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return thJ=q},{mode:1});var miq;_.xP("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var yv=function(){var q=_.C.apply(this,arguments)||this;q.roundedContainer=!0;q.JSC$15800_handleOpenPostCommentDialogActionAfterStamp=!1;q.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return q};
_.Y(yv,_.C);_.g=yv.prototype;
_.g.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}}};
_.g.onStampFinished=function(){this.JSC$15800_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.g.handleSignalActionOpenPostCommentDialogAction=function(){var q=_.ee(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");q?q.openDialog():this.JSC$15800_handleOpenPostCommentDialogActionAfterStamp=!0};
_.g.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.g.computeHideBorder=function(){return this.isInEngagementPanel};
_.g.computeIsCompact=function(){return this.isInEngagementPanel};
_.g.computeUsesCompactLockup=function(q){return q==="BACKSTAGE_SURFACE_TYPE_HOME"||q==="BACKSTAGE_SURFACE_TYPE_SEARCH"||q==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||q==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||q==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||q==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.g.computeUsesFullLockup=function(){var q,N=(q=this.data)==null?void 0:q.post,b;q=(b=_.v(N,Awj))==null?void 0:b.surface;var y;b=(y=_.v(N,Hvq))==null?void 0:y.originalPost;var J;if(y=q||((J=_.v(b,Awj))==null?void 0:J.surface))return!this.computeUsesCompactLockup(y)&&this.useUpdatedRepostUi;var E;return((E=_.v(N,Hvq))==null?void 0:E.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.$H.Object.defineProperties(yv.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var q,N;return((N=_.v((q=this.data)==null?void 0:q.post,Awj))==null?void 0:N.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.useUpdatedRepostUi}}});
yv.prototype.onYtCommentModerationPanelEmpty=yv.prototype.onYtCommentModerationPanelEmpty;yv.prototype.onStampFinished=yv.prototype.onStampFinished;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],yv.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],yv.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],yv.prototype,"roundedContainer",void 0);_.p([_.U({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.P("design:type",Boolean)],yv.prototype,"hideBorder",void 0);_.p([_.U({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.P("design:type",Boolean)],yv.prototype,"isCompact",void 0);
_.p([_.U({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.P("design:type",Boolean)],yv.prototype,"usesFullLockup",void 0);_.p([_.ZP("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yv.prototype,"onStampFinished",null);
_.p([_.ZP("ytd-comment-moderation-panel-empty"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],yv.prototype,"onYtCommentModerationPanelEmpty",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],yv.prototype,"isInEngagementPanel",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],yv.prototype,"useUpdatedRepostUi",null);
_.p([_.I({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],yv);
_.a(yv,"ytd-backstage-post-thread-renderer",function(){if(miq!==void 0)return miq;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return miq=q},{mode:1});var ruv;var JY=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.Y(JY,_.C);JY.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
JY.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var q=this.data.thumbnail.thumbnails;this.isDarkTheme&&(q=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(q=_.Mo(q,24,void 0,"height"))?q:void 0}};
JY.prototype.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
JY.prototype.computeHasText=function(){var q;return!((q=this.data)==null||!q.text)};
_.$H.Object.defineProperties(JY.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.pc(this.bannerImageUrl))+'");'}}});
JY.prototype.computeHasText=JY.prototype.computeHasText;JY.prototype.computeBannerImageUrl=JY.prototype.computeBannerImageUrl;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],JY.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],JY.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],JY.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],JY.prototype,"isDarkTheme",void 0);_.p([_.U(),_.P("design:type",String)],JY.prototype,"bannerImageUrl",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.P("design:type",Boolean)],JY.prototype,"hasText",void 0);_.p([_.FY("data","isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],JY.prototype,"computeBannerImageUrl",null);
_.p([_.FY("data.text"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],JY.prototype,"computeHasText",null);_.p([_.l("bannerImageUrl"),_.P("design:type",Object),_.P("design:paramtypes",[])],JY.prototype,"bannerStyle",null);_.p([_.I({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],JY);
_.a(JY,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(ruv!==void 0)return ruv;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return ruv=q},{mode:1});var X51;var Ei=function(){return _.C.apply(this,arguments)||this};
_.Y(Ei,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ei.prototype,"data",void 0);_.p([_.I({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],Ei);
_.a(Ei,"ytd-backstage-zero-state-renderer",function(){if(X51!==void 0)return X51;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return X51=q},{mode:1});var Vhj;var gl=function(){return _.C.apply(this,arguments)||this};
_.Y(gl,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],gl.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.icon)"}),_.P("design:type",String)],gl.prototype,"icon",void 0);_.p([_.I({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],gl);
_.a(gl,"ytd-post-filter-zero-state-renderer",function(){if(Vhj!==void 0)return Vhj;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Vhj=q},{mode:1});var jvJ;var xiJ={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Zg=function(){return _.C.apply(this,arguments)||this};
_.Y(Zg,_.C);Zg.prototype.configureRendererStamper=function(){return xiJ};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Zg.prototype,"rendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Zg.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.icon)"}),_.P("design:type",String)],Zg.prototype,"icon",void 0);_.p([_.I({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Zg);
_.a(Zg,"ytd-post-scheduling-zero-state-renderer",function(){if(jvJ!==void 0)return jvJ;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return jvJ=q},{mode:1});var vVE;var Fh=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return q};
_.Y(Fh,_.C);Fh.prototype.onTabsActivate=function(q){this.data&&this.data.tabs&&_.e2(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[q.detail.selected].navigationEndpoint})};
Fh.prototype.shouldShowTotalCount=function(q){return q&&q.totalCount!==void 0};
Fh.prototype.handleUpdatePostsTotalCountAction=function(q){var N=this.get(["data.tabs",1,"totalCount"]),b=this.get("updatePostsTotalCountAction.updateType",q);q=this.get("updatePostsTotalCountAction.number",q);N!==void 0&&b!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&q&&(b==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(N)+q):b==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(N)-q))};
_.$H.Object.defineProperties(Fh.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var q=0,N=this.data.tabs.length;q<N;q++)if(this.data.tabs[q].selected)return q;return 0}}});
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Fh.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Fh.prototype,"rendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Fh.prototype,"data",void 0);_.p([_.l("data.tabs"),_.P("design:type",Number),_.P("design:paramtypes",[])],Fh.prototype,"selected",null);_.p([_.I({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],Fh);
_.a(Fh,"ytd-post-stream-filter-renderer",function(){if(vVE!==void 0)return vVE;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return vVE=q},{mode:1});var GUq;var Rc=function(){return _.C.apply(this,arguments)||this};
_.Y(Rc,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Rc.prototype,"kevlarBehaviors",void 0);_.p([_.U(),_.P("design:type",Object)],Rc.prototype,"data",void 0);_.p([_.I({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],Rc);
_.a(Rc,"ytd-channel-age-gate-renderer",function(){if(GUq!==void 0)return GUq;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return GUq=q},{mode:1});var Yzv;_.xP("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var dl=function(){var q=_.C.apply(this,arguments)||this;q.data=null;return q};
_.Y(dl,_.C);dl.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.$H.Object.defineProperties(dl.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return((q=this.data)==null?0:(N=q.title)==null?0:(b=N.runs)==null?0:b.length)?147:160}}});
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],dl.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],dl.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],dl.prototype,"imageSizePx",null);_.p([_.I({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],dl);
_.a(dl,"ytd-channel-owner-empty-state-renderer",function(){if(Yzv!==void 0)return Yzv;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Yzv=q},{mode:1});var Qv4;var Os4;var ce=function(){var q=_.C.apply(this,arguments)||this;q.boundSubmitSearch=function(){q.submitSearch()};
q.boundClearSearch=function(){q.clearSearch()};
return q};
_.Y(ce,_.C);_.g=ce.prototype;_.g.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]]"}}}}}};
_.g.toggleClearButton=function(){this.hideClearButton=Pnq||!this.input.value};
_.g.submitOnEnterKeyUp=function(q){q.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.g.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.g.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.g.submit=function(){_.e2(this.hostElement,"search-query-changed",this.input.value)};
ce.prototype.toggleClearButton=ce.prototype.toggleClearButton;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],ce.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ce.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ce.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],ce.prototype,"hideClearButton",void 0);_.p([_.U(),_.P("design:type",Object)],ce.prototype,"boundSubmitSearch",void 0);_.p([_.U(),_.P("design:type",Object)],ce.prototype,"boundClearSearch",void 0);_.p([_.dq("#input"),_.P("design:type",Object)],ce.prototype,"input",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ce.prototype,"toggleClearButton",null);
_.p([_.I({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],ce);
_.a(ce,"ytd-channel-switcher-search-box-renderer",function(){if(Os4!==void 0)return Os4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Os4=q},{mode:1});var w5M;var uJ=function(){var q=_.C.apply(this,arguments)||this;q.boundSubmit=function(){q.submit()};
return q};
_.Y(uJ,_.C);_.g=uJ.prototype;_.g.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"}}}}};
_.g.ready=function(){var q=this;this.form.addEventListener("submit",function(N){return q.onSubmit(N)})};
_.g.onSubmit=function(q){q.preventDefault();return!1};
_.g.toggleClearButton=function(){this.hideClearButton=Pnq||!this.input.value};
_.g.submitOnEnterKeyUp=function(q){q.keyCode===13&&this.submit()};
_.g.submit=function(){var q=this.data.endpoint,N=(0,_.nM.unsafeClone)(q);_.v(N,_.FH)?_.v(N,_.FH).query=this.input.value:_.v(N,_.R0)&&(_.v(N,_.R0).query=this.input.value);var b=_.v(N.commandMetadata,_.gg);(b==null?0:b.url)?(b.url=_.B_(b.url,"query",this.input.value),_.e2(this.hostElement,"yt-navigate",{endpoint:N})):_.v(N,ivq)?(_.v(N,ivq).channelSwitcherQuery=this.input.value,_.tz().resolve(_.rO).resolveCommand(N,{form:{element:this.hostElement}})):(q=Error("Ph`"+JSON.stringify(q)),_.po(q))};
_.g.getUrl=function(q){return this.get("commandMetadata.webCommandMetadata.url",q)};
uJ.prototype.toggleClearButton=uJ.prototype.toggleClearButton;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],uJ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],uJ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],uJ.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],uJ.prototype,"hideClearButton",void 0);
_.p([_.U(),_.P("design:type",Object)],uJ.prototype,"boundSubmit",void 0);_.p([_.dq("#form"),_.P("design:type",HTMLFormElement)],uJ.prototype,"form",void 0);_.p([_.dq("#input"),_.P("design:type",Object)],uJ.prototype,"input",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uJ.prototype,"toggleClearButton",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],uJ);
_.a(uJ,"ytd-search-box-renderer",function(){if(w5M!==void 0)return w5M;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return w5M=q},{mode:2});var zF=function(){var q=_.C.apply(this,arguments)||this;q.showSearchBox=!0;return q};
_.Y(zF,_.C);zF.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],zF.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],zF.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],zF.prototype,"showSearchBox",void 0);_.p([_.I({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],zF);
_.a(zF,"ytd-channel-switcher-header-renderer",function(){if(Qv4!==void 0)return Qv4;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Qv4=q},{mode:1});var isR;var lxF;var $r=function(){var q=_.C.apply(this,arguments)||this;q.isDisplayed=!0;return q};
_.Y($r,_.C);_.g=$r.prototype;_.g.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.dataChanged=function(){this.isDisplayed=!0};
_.g.computeType=function(q){return q||"UNKNOWN"};
_.g.onYtServiceRequestCompleted=function(q){q.stopPropagation();this.isDisplayed=!1};
_.g.onClose=function(){this.isDisplayed=!1};
$r.prototype.onYtServiceRequestCompleted=$r.prototype.onYtServiceRequestCompleted;$r.prototype.dataChanged=$r.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],$r.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],$r.prototype,"data",void 0);
_.p([_.U({computed:"computeType(data.type)",reflectToAttribute:!0}),_.P("design:type",String)],$r.prototype,"type",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],$r.prototype,"isDisplayed",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$r.prototype,"dataChanged",null);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],$r.prototype,"onYtServiceRequestCompleted",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],$r);
_.a($r,"ytd-alert-with-button-renderer",function(){if(lxF!==void 0)return lxF;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return lxF=q},{mode:1});var tY=function(){var q=_.C.apply(this,arguments)||this;q.noResult=!1;q.enableAlertBanner=!1;q.dismissedAlertBanner=!1;q.hideCreateChannelButton=!1;q.boundDismissAlertBanner=function(){q.dismissAlertBanner()};
q.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return q};
_.Y(tY,_.C);_.g=tY.prototype;_.g.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.g.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.g.updateChannelSwitcherAction=function(q){var N;q=(N=_.v(q,YDR))==null?void 0:N.page;_.v(q,GWo)!==void 0&&(this.data=_.v(q,GWo))};
_.g.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]]"}}}}}};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.g.searchQueryChanged=function(q,N){if(this.data&&this.data.contents&&this.data.contents.length){q=[];var b=[];this.hideCreateChannelButton=this.noResult=!1;for(var y=document.querySelectorAll("ytd-account-item-renderer"),J=_.Z(y),E=J.next();!E.done;E=J.next())E=E.value,b.push(E),E.style.display="block";this.resetRightBorder(b);if(N){this.hideCreateChannelButton=!0;for(b=1;b<this.data.contents.length;b++)if(E=this.data.contents[b],_.v(E,Qgv)){var F=void 0,R=void 0;J=(F=_.v(E,Qgv))==null?void 0:(R=
F.accountName)==null?void 0:R.simpleText;R=F=void 0;E=(F=_.v(E,Qgv))==null?void 0:(R=F.channelHandle)==null?void 0:R.simpleText;(F=y[b-1])&&J&&_.zz(J,N)?q.push(F):_.x("enable_handle_search_on_channel_switcher")&&F&&E&&_.zz(E.toString(),N.toString())?q.push(F):F.style.display="none"}q.length===0&&(this.noResult=!0);this.resetRightBorder(q)}}};
_.g.resetRightBorder=function(q){for(var N=0;N<q.length;N++)q[N].style.borderRight=!this.hideCreateChannelButton&&(N+2)%3===0||this.hideCreateChannelButton&&(N+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.g.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.g.setShowSearchBox=function(q){if(q&&q.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var N=0;N<q.contents.length;N++)_.v(q.contents[N],_.SP)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.g.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.$H.Object.defineProperties(tY.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null?0:q.contents)}}});
tY.prototype.onContinuationItemsUpdated=tY.prototype.onContinuationItemsUpdated;tY.prototype.searchQueryChanged=tY.prototype.searchQueryChanged;tY.prototype.onDataChanged=tY.prototype.onDataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],tY.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],tY.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.tA),_.P("design:type",Object)],tY.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],tY.prototype,"data",void 0);_.p([_.dq("ytd-channel-switcher-header-renderer"),_.P("design:type",Object)],tY.prototype,"channelSwitcherHeaderRenderer",void 0);_.p([_.U(),_.P("design:type",Object)],tY.prototype,"noResult",void 0);
_.p([_.U(),_.P("design:type",Object)],tY.prototype,"enableAlertBanner",void 0);_.p([_.U(),_.P("design:type",Object)],tY.prototype,"dismissedAlertBanner",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],tY.prototype,"hideCreateChannelButton",void 0);_.p([_.l("data.contents"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],tY.prototype,"isLoading",null);_.p([_.U(),_.P("design:type",Object)],tY.prototype,"boundDismissAlertBanner",void 0);
_.p([_.U({computed:"computeButtonOverride()"}),_.P("design:type",Object)],tY.prototype,"buttonOverride",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tY.prototype,"onDataChanged",null);_.p([_.ZP("search-query-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,String]),_.P("design:returntype")],tY.prototype,"searchQueryChanged",null);
_.p([_.ZP("yt-next-continuation-data-updated"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],tY.prototype,"onContinuationItemsUpdated",null);_.p([_.I({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],tY);
_.a(tY,"ytd-channel-switcher-page-renderer",function(){if(isR!==void 0)return isR;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return isR=q},{mode:1});var Kk4;var DiT;var mi=function(){var q=_.C.apply(this,arguments)||this;q.images=[];q.selectedImageIndex=0;return q};
_.Y(mi,_.C);_.g=mi.prototype;
_.g.ready=function(){_.tn(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.tn(this.JSC$15845_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.tn(this.JSC$15845_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.tn(this.JSC$15845_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.g.onThumbnailClick=function(q){if(q=q.event_.detail)this.selectedImageIndex=this.images.indexOf(q)};
_.g.updateImageThumbnails=function(q){q=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:q.event_.detail});this.images.splice(this.selectedImageIndex,1,q);this.images=[].concat(_.a9(this.images))};
_.g.cancelImageRepositions=function(){this.selectedImageIndex=0;_.e2(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.g.saveImageRepositions=function(){this.selectedImageIndex=0;_.e2(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.$H.Object.defineProperties(mi.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var q=this;return(this.images||[]).map(function(N,b){return{image:N,selected:b===q.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],mi.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("ytd-backstage-image-preview-renderer"),_.P("design:type",Object)],mi.prototype,"JSC$15845_imagePreviewContainer",void 0);_.p([_.dq(".thumbnail-images-container"),_.P("design:type",HTMLElement)],mi.prototype,"thumbnailImagesContainer",void 0);_.p([_.U(),_.P("design:type",Array)],mi.prototype,"images",void 0);
_.p([_.U(),_.P("design:type",Object)],mi.prototype,"repositionInstructions",void 0);_.p([_.U(),_.P("design:type",Object)],mi.prototype,"selectedImageIndex",void 0);_.p([_.l("images","selectedImageIndex"),_.P("design:type",Array),_.P("design:paramtypes",[])],mi.prototype,"thumbnailRendererDatas",null);_.p([_.l("images","selectedImageIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],mi.prototype,"selectedImageData",null);
_.p([_.I({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],mi);
_.a(mi,"ytd-backstage-multi-image-reposition-renderer",function(){if(DiT!==void 0)return DiT;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return DiT=q},{mode:1});var rl=function(q,N){_.O1.call(this);this.uploadUrl=q;this.channelId=N;this.imagesUploadData=[]};
_.Y(rl,_.O1);rl.prototype.getAllUploadStatuses=function(){var q=this,N,b,y;return _.d(function(J){if(J.nextAddress==1)return J.yield(h5F(q),2);N=J.yieldResult;b=N.get("succeed");y=N.get("failed");return J.return(b.concat(y))})};
var Uix=function(q){var N,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(h5F(q),2);N=y.yieldResult;b=N.get("failed");b.length>0&&kU4(q,b);return y.return(q.getAllUploadStatuses())})},h5F=function(q){var N,b,y,J,E,F,R;
return _.d(function(c){if(c.nextAddress==1)return N=new Map,c.yield(Promise.allSettled(q.imagesUploadData.map(function(z){return z.uploadPromise})),2);
b=c.yieldResult;y=[];J=_.Z(b);for(E=J.next();!E.done;E=J.next())F=E.value,F.status==="fulfilled"&&y.push(F.value);R=q.imagesUploadData.map(function(z){return z.image}).filter(function(z){return y.every(function(m){return m.id!==z.id})});
N.set("succeed",y);N.set("failed",R);return c.return(N)})},kU4=function(q,N){N=_.Z(N);
for(var b=N.next();!b.done;b=N.next()){var y=q;b=b.value;fx1(y,b.id)>=0&&y.cancel(b.id);var J=new CAo(b),E=_.$tJ(y.uploadUrl,{"X-YouTube-ChannelId":y.channelId},b.imageBlob);J.transfer=E;J.uploadPromise=IxE(E,b);y.imagesUploadData.push(J);E.run()}};
rl.prototype.cancel=function(q){var N=fx1(this,q);N!==-1&&((N=this.imagesUploadData[N].transfer)&&N.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(b){return b.image.id!==q}))};
var fx1=function(q,N){return q.imagesUploadData.findIndex(function(b){return b.image.id===N})},IxE=function(q,N){return new Promise(function(b,y){q.listen("l",function(){var J=q.getResponseText();
J?(J=JSON.parse(J).encryptedBlobId,N.encryptedBlobId=J,b(N)):y("upload failed")});
q.listen("n",function(){y("upload failed")})})},CAo=function(q){this.image=q};var oIn=function(q,N,b,y,J){this.id=q;this.imageBlob=N;this.localImageSrc=b;this.naturalWidth=y;this.naturalHeight=J;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 T$o=[".jpeg",".jpg",".png"],Xh=function(){var q=_.C.apply(this,arguments)||this;q.showImagesPreview=!1;q.pollOptions=[];q.errorMessage="";q.optionPlaceholderText="";q.optionDefaultText="";q.JSC$15856_imageId=0;q.maxFileSizeMb=0;q.maxAspectRatio=0;q.invalidFileSizeError="";q.invalidAspectRatioError="";q.invalidFileTypeError="";q.imageSelector=new Oj(null,"single_file",T$o);return q};
_.Y(Xh,_.C);_.g=Xh.prototype;_.g.ready=function(){_.tn(this.imageSelector,"j",this.onImageSelect,!1,this);_.tn(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.tn(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.g.dataChanged=function(){var q,N,b=_.v((q=this.data)==null?void 0:(N=q.cellTemplate)==null?void 0:N.onEmptyCellTap,J$j);if(b&&b.uploadUrl&&b.channelId){var y;this.maxFileSizeMb=((y=b.imageValidationInfo)==null?void 0:y.maxFileSizeMb)||0;var J;this.maxAspectRatio=((J=b.imageValidationInfo)==null?void 0:J.allowedMaxAspectRatio)||0;var E;this.invalidFileSizeError=this.getSimpleString((E=this.data)==null?void 0:E.invalidFileSizeError);var F;this.invalidAspectRatioError=this.getSimpleString((F=this.data)==
null?void 0:F.invalidAspectRatioError);var R;this.invalidFileTypeError=this.getSimpleString((R=this.data)==null?void 0:R.invalidFileTypeError);this.uploadManager=new rl(b.uploadUrl,b.channelId)}};
_.g.onEditorInfoChange=function(){this.optionPlaceholderText=_.ao(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.ao(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.g.observeAddImageError=function(){this.errorMessage!==""&&_.e2(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.g.onPollOptionsChange=function(){for(var q=!1,N=[],b=0;b<this.pollOptions.length;b++){var y=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(b+1);this.pollOptions[b].placeholderText!==y?(q=!0,N.push(Object.assign({},this.pollOptions[b],{placeholderText:y}))):N.push(this.pollOptions[b])}q&&(this.pollOptions=N);this.isValid()?_.e2(this.hostElement,"yt-commentbox-post-enable"):_.e2(this.hostElement,"yt-commentbox-post-disable")};
_.g.createPollOptions=function(q){var N=[],b;q=(b=q==null?void 0:q.minPollOptions)!=null?b:0;for(b=0;b<q;b++)N.push(this.createPollOption());return N};
_.g.onImageSelect=function(q){var N=this,b,y,J,E,F,R;return _.d(function(c){if(c.nextAddress==1){if(N.selectedImageIndex===void 0)return c.jumpTo(0);b=q.files[0];N.errorMessage="";y=N.validateImage(b);if(y!=="")return N.errorMessage=y,c.return();J=new mJ(N.maxAspectRatio,!1,!0);return c.yield(J.transform(b),3)}if(c.nextAddress!=4)return E=c.yieldResult,E.transformedData?E.invalidAspectRatio?(N.errorMessage=N.invalidAspectRatioError,c.return()):c.yield(Aku(N.JSC$15856_imageId,q.files[0],E.transformedData),
4):(N.errorMessage=N.invalidFileTypeError,c.return());F=c.yieldResult;N.JSC$15856_imageId++;kU4(N.uploadManager,[F]);R=Object.assign({},N.pollOptions[N.selectedImageIndex],{image:F});N.pollOptions.splice(N.selectedImageIndex,1,R);N.refreshPollOptions();_.e2(N.hostElement,"yt-backstage-poll-image-select");_.hj(c)})};
_.g.validateImage=function(q){return q.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.g.refreshPollOptions=function(){this.pollOptions=[].concat(_.a9(this.pollOptions))};
_.g.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.a9(this.pollOptions),[this.createPollOption()]))};
_.g.onRemovePollOption=function(q){var N=this.pollOptions[q.model.index];N&&N.image&&this.uploadManager.cancel(N.image.id);this.pollOptions.splice(q.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.e2(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.g.onTextInput=function(){this.refreshPollOptions()};
_.g.onImageButtonClick=function(q){this.selectedImageIndex=q.model.index;this.imageSelector.click()};
_.g.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.g.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.g.saveImageRepositions=function(q){q=q.event_.detail;for(var N=0,b=[],y=_.Z(this.pollOptions),J=y.next();!J.done;J=y.next())J=J.value,J.image!==void 0?(J=Object.assign({},J,{image:q[N]}),b.push(J),N++):b.push(J);this.showImagesPreview=!1;this.pollOptions=[].concat(_.a9(b))};
_.g.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 q=0,N=_.Z(this.pollOptions),b=N.next();!b.done;b=N.next())if(b=b.value,b.optionText.trim()!==""||b.image!==void 0){if(!b.image||this.hasCustomOptionText&&b.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;q++}return q>=Number(this.editorInfo.minPollOptions)};
_.g.getAllUploadStatuses=function(){var q=this,N,b,y,J;return _.d(function(E){if(E.nextAddress==1)return E.yield(q.uploadManager.getAllUploadStatuses(),2);N=E.yieldResult;b=_.Z(N);for(y=b.next();!y.done;y=b.next())if(J=y.value,J.encryptedBlobId===void 0)return E.return(Uix(q.uploadManager));return E.return(N)})};
_.g.getPostCreateOptions=function(){for(var q=[],N=_.Z(this.pollOptions),b=N.next();!b.done;b=N.next())b=b.value,b.image!==void 0&&q.push({text:this.hasCustomOptionText?b.optionText:b.placeholderText,image:b.image});return q};
_.g.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.g.createButtonRenderer=function(q,N){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:q,accessibilityData:{accessibilityData:{label:this.getSimpleString(q)}},isDisabled:N}};
_.g.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.g.computeThumbnailRendererData=function(q){return q?{image:q,selected:!1}:void 0};
_.g.getSimpleString=function(q){return _.ao(q)};
_.g.updateOptionTextFromBinding=function(q){if(q.target){var N=Array.from(_.ee(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(q.target);if(N>=0){var b;this.pollOptions[N].optionText=(b=q.detail.value)!=null?b:""}}};
_.$H.Object.defineProperties(Xh.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var q,N;return this.pollOptions.length<((N=(q=this.editorInfo)==null?void 0:q.maxPollOptions)!=null?N:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(q){return q.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(q){return q.image}).map(function(q){return q.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(q){return q.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var q,N=(q=this.data)==null?void 0:q.addOptionButtonText;return N?this.createButtonRenderer(N,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var q,N=(q=this.data)==null?void 0:q.repositionImagesButtonLabel;return N?this.createButtonRenderer(N,!this.hasImages):void 0}}});
Xh.prototype.onPollOptionsChange=Xh.prototype.onPollOptionsChange;Xh.prototype.observeAddImageError=Xh.prototype.observeAddImageError;Xh.prototype.onEditorInfoChange=Xh.prototype.onEditorInfoChange;Xh.prototype.dataChanged=Xh.prototype.dataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Xh.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("ytd-backstage-multi-image-reposition-renderer"),_.P("design:type",Object)],Xh.prototype,"imageRepositionContainer",void 0);
_.p([_.U(),_.P("design:type",Object)],Xh.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Xh.prototype,"editorInfo",void 0);_.p([_.U(),_.P("design:type",rl)],Xh.prototype,"uploadManager",void 0);_.p([_.U(),_.P("design:type",Object)],Xh.prototype,"showImagesPreview",void 0);_.p([_.U(),_.P("design:type",Array)],Xh.prototype,"pollOptions",void 0);_.p([_.U(),_.P("design:type",Object)],Xh.prototype,"errorMessage",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xh.prototype,"dataChanged",null);_.p([_.$9("editorInfo"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xh.prototype,"onEditorInfoChange",null);_.p([_.FY("errorMessage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xh.prototype,"observeAddImageError",null);
_.p([_.$9("pollOptions"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xh.prototype,"onPollOptionsChange",null);_.p([_.l("pollOptions","editorInfo"),_.P("design:type",Object),_.P("design:paramtypes",[])],Xh.prototype,"isAllowedToAddOption",null);_.p([_.l("pollOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],Xh.prototype,"hasImages",null);
_.p([_.l("pollOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],Xh.prototype,"imagesToReposition",null);_.p([_.l("pollOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],Xh.prototype,"hasCustomOptionText",null);_.p([_.l("data","isAllowedToAddOption"),_.P("design:type",Object),_.P("design:paramtypes",[])],Xh.prototype,"addOptionButton",null);_.p([_.l("data","hasImages"),_.P("design:type",Object),_.P("design:paramtypes",[])],Xh.prototype,"repositionImagesButton",null);
_.p([_.I({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],Xh);
_.a(Xh,"ytd-backstage-image-poll-editor-renderer",function(){if(Kk4!==void 0)return Kk4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Kk4=q},{mode:2});var svE={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 nVx;var Vv=function(){var q=_.C.apply(this,arguments)||this;q.a11yConfig=svE;q.imageDisplayOffsetTop=0;q.imageDisplayOffsetLeft=0;q.pickerDisplayOffsetTop=0;q.pickerDisplayOffsetLeft=0;q.showPreviewContainer=!0;q.startPicker=!1;q.repositionOptional=!1;q.editOnlyMode=!1;q.savedImageDisplayOffsetTop=0;q.savedImageDisplayOffsetLeft=0;return q};
_.Y(Vv,_.C);_.g=Vv.prototype;_.g.created=function(){_.qM.requestAvailability()};
_.g.ready=function(){};
_.g.onArrowKeysDown=function(q){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){q.detail.keyboardEvent.preventDefault();var N=0,b=0,y="";switch(q.detail.keyboardEvent.key){case "ArrowUp":e$n(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?y=this.a11yConfig.reachBottomOfImage:N=this.imageHeight*.05*-1;break;case "ArrowDown":e$n(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?y=this.a11yConfig.reachTopOfImage:
N=this.imageHeight*.05;break;case "ArrowLeft":e$n(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?y=this.a11yConfig.reachRightOfImage:b=this.imageWidth*.05*-1;break;case "ArrowRight":e$n(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?y=this.a11yConfig.reachLeftOfImage:b=this.imageWidth*.05}y&&_.FE(y)&&_.e2(this.hostElement,"iron-announce",{text:_.FE(y)});if(b||N)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+N)),q=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),q=_.FE(this.a11yConfig.imageVerticalPosition,{x_percent:""+q,y_percent:""+(100-q)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+b)),q=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),q=_.FE(this.a11yConfig.imageHorizontalPosition,{x_percent:""+q,y_percent:""+(100-q)})),q&&_.e2(this.hostElement,"iron-announce",{text:q})}};
_.g.getPreviewPosition=function(q,N,b,y){return Math.round(100*(q+N*.5-b)/y)};
_.g.calculateDisplayPosition=function(){var q=this.imageData.naturalWidth,N=this.imageData.naturalHeight;this.displayScale=Math.max(200/q,200/N);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var b=q*this.displayScale*this.imageData.previewCoordinates.left,y=N*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=N>q?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-b;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=q>N?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-y;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=q*this.displayScale;this.imageHeight=N*this.displayScale};
_.g.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.g.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.g.getSignedPosition=function(q,N,b){return N==="X"&&_.M7("HTML_DIR")==="rtl"?b==="-"?q+"px":q*-1+"px":b==="-"?q*-1+"px":q+"px"};
_.g.pickerMove=function(q){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var N=this.pickerOffsetX-q.clientX,b=this.pickerOffsetY-q.clientY;this.pickerOffsetX=q.clientX;this.pickerOffsetY=q.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
b)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-N))}};
_.g.pickerMoveStart=function(q){this.startPicker=!0;this.pickerOffsetX=q.clientX;this.pickerOffsetY=q.clientY};
_.g.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var q=this.generateCropPreview();q&&_.e2(this.hostElement,"ytd-backstage-image-preview-coordinates-update",q)};
_.g.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.e2(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.g.deleteImage=function(){_.e2(this.hostElement,"ytd-backstage-image-preview-delete")};
_.g.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.g.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var q=this.generateCropPreview();q&&_.e2(this.hostElement,"ytd-backstage-image-preview-coordinates-save",q)};
_.g.getPreviewOffset=function(q,N,b){return N&&q?(b==="X"&&_.M7("HTML_DIR")==="rtl"?300/N*q:300/N*q*-1)+"px":"0px"};
_.g.getSimpleText=function(q){return q?_.ao(q):""};
_.g.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}};
_.$H.Object.defineProperties(Vv.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var q=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.FE(this.a11yConfig.imageVerticalPosition,{x_percent:""+q,y_percent:""+(100-q)})+"\n"+_.FE(this.a11yConfig.verticalRepositionInstruction)}q=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.FE(this.a11yConfig.imageHorizontalPosition,{x_percent:""+q,y_percent:""+(100-q)})+"\n"+_.FE(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 q,N,b=(q=this.instruction)==null?void 0:(N=q.previewInstruction)==null?void 0:N.editButtonLabel;return b?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:b,accessibilityData:{accessibilityData:{label:this.getSimpleText(b)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var q,N,b,y,J=this.editOnlyMode?(q=this.instruction)==null?void 0:(N=q.editInstruction)==null?void 0:N.saveImagesButtonLabel:(b=this.instruction)==null?void 0:(y=b.editInstruction)==null?void 0:y.saveButtonLabel;return J?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:J,accessibilityData:{accessibilityData:{label:this.getSimpleText(J)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var q,N,b=(q=this.instruction)==null?void 0:(N=q.previewInstruction)==null?void 0:N.deleteButtonLabel;return b?{size:"SIZE_SMALL",text:b,accessibilityData:{accessibilityData:{label:this.getSimpleText(b)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var q,N,b=(q=this.instruction)==null?void 0:(N=q.editInstruction)==null?void 0:N.cancelButtonLabel;q=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return b?{style:q,size:"SIZE_SMALL",text:b,accessibilityData:{accessibilityData:{label:this.getSimpleText(b)}}}: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"}}});
Vv.prototype.onEditOnlyModeUpdate=Vv.prototype.onEditOnlyModeUpdate;Vv.prototype.onImageChange=Vv.prototype.onImageChange;_.p([_.U(),_.P("design:type",oIn)],Vv.prototype,"imageData",void 0);_.p([_.U(),_.P("design:type",Object)],Vv.prototype,"instruction",void 0);_.p([_.U(),_.P("design:type",Object)],Vv.prototype,"a11yConfig",void 0);_.p([_.U(),_.P("design:type",Number)],Vv.prototype,"imageWidth",void 0);_.p([_.U(),_.P("design:type",Number)],Vv.prototype,"imageHeight",void 0);
_.p([_.U(),_.P("design:type",Number)],Vv.prototype,"displayScale",void 0);_.p([_.U(),_.P("design:type",Object)],Vv.prototype,"imageDisplayOffsetTop",void 0);_.p([_.U(),_.P("design:type",Object)],Vv.prototype,"imageDisplayOffsetLeft",void 0);_.p([_.U(),_.P("design:type",Object)],Vv.prototype,"pickerDisplayOffsetTop",void 0);_.p([_.U(),_.P("design:type",Object)],Vv.prototype,"pickerDisplayOffsetLeft",void 0);_.p([_.U(),_.P("design:type",Object)],Vv.prototype,"showPreviewContainer",void 0);
_.p([_.U(),_.P("design:type",Object)],Vv.prototype,"startPicker",void 0);_.p([_.U(),_.P("design:type",Number)],Vv.prototype,"pickerOffsetX",void 0);_.p([_.U(),_.P("design:type",Number)],Vv.prototype,"pickerOffsetY",void 0);_.p([_.U(),_.P("design:type",Object)],Vv.prototype,"repositionOptional",void 0);_.p([_.U(),_.P("design:type",Object)],Vv.prototype,"editOnlyMode",void 0);_.p([_.dq("#picker-container"),_.P("design:type",HTMLElement)],Vv.prototype,"JSC$15869_pickerContainer",void 0);
_.p([_.dq("#picker"),_.P("design:type",HTMLElement)],Vv.prototype,"picker",void 0);_.p([_.dq("#preview-clipper"),_.P("design:type",HTMLElement)],Vv.prototype,"previewClipper",void 0);_.p([_.dq("#image-in-picker-background"),_.P("design:type",HTMLImageElement)],Vv.prototype,"JSC$15869_imageInBackground",void 0);_.p([_.dq("#image-in-picker"),_.P("design:type",HTMLImageElement)],Vv.prototype,"JSC$15869_imageInPicker",void 0);
_.p([_.dq("#image-in-preview-clipper"),_.P("design:type",HTMLImageElement)],Vv.prototype,"JSC$15869_imageInPreviewClipper",void 0);_.p([_.l("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],Vv.prototype,"altLabelForImage",null);_.p([_.l("imageHeight","imageWidth"),_.P("design:type",Number),_.P("design:paramtypes",[])],Vv.prototype,"pickerSize",null);
_.p([_.l("imageHeight","imageWidth"),_.P("design:type",Object),_.P("design:paramtypes",[])],Vv.prototype,"imageOrientationStyle",null);_.p([_.l("instruction"),_.P("design:type",Object),_.P("design:paramtypes",[])],Vv.prototype,"editButton",null);_.p([_.l("instruction","editOnlyMode"),_.P("design:type",Object),_.P("design:paramtypes",[])],Vv.prototype,"saveButton",null);_.p([_.l("instruction"),_.P("design:type",Object),_.P("design:paramtypes",[])],Vv.prototype,"deleteButton",null);
_.p([_.l("instruction","editOnlyMode"),_.P("design:type",Object),_.P("design:paramtypes",[])],Vv.prototype,"cancelButton",null);_.p([_.l("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.P("design:type",Number),_.P("design:paramtypes",[])],Vv.prototype,"cropOffsetTop",null);_.p([_.l("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.P("design:type",Number),_.P("design:paramtypes",[])],Vv.prototype,"cropOffsetLeft",null);
_.p([_.l("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],Vv.prototype,"pickerBackgroundStyle",null);_.p([_.l("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],Vv.prototype,"pickerDisplayStyle",null);_.p([_.l("cropOffsetLeft","cropOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],Vv.prototype,"imageInPickerStyle",null);
_.p([_.l("cropOffsetLeft","cropOffsetTop","pickerSize"),_.P("design:type",String),_.P("design:paramtypes",[])],Vv.prototype,"previewClipperStyle",null);_.p([_.$9("imageData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vv.prototype,"onImageChange",null);_.p([_.$9("editOnlyMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vv.prototype,"onEditOnlyModeUpdate",null);
_.p([_.l("showPreviewContainer"),_.P("design:type",String),_.P("design:paramtypes",[])],Vv.prototype,"pickerModeStyle",null);_.p([_.I({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],Vv);
_.a(Vv,"ytd-backstage-image-preview-renderer",function(){if(nVx!==void 0)return nVx;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return nVx=q},{mode:1});var axF;var SzJ={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 Wk1;var Lkl;var jC=function(){var q=_.C.apply(this,arguments)||this;q.a11yConfig=SzJ;q.imageDisplayOffsetTop=0;q.imageDisplayOffsetLeft=0;q.pickerDisplayOffsetTop=0;q.pickerDisplayOffsetLeft=0;q.cropCoordinatesSaved=!1;q.previewSize=0;q.startPicker=!1;q.repositionOptional=!1;return q};
_.Y(jC,_.C);_.g=jC.prototype;_.g.created=function(){_.qM.requestAvailability()};
_.g.ready=function(){};
_.g.onArrowKeysDown=function(q){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){q.detail.keyboardEvent.preventDefault();var N=0,b=0,y="";switch(q.detail.keyboardEvent.key){case "ArrowUp":BQJ(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?y=this.a11yConfig.reachBottomOfImage:N=this.imageHeight*.05*-1;break;case "ArrowDown":BQJ(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?y=this.a11yConfig.reachTopOfImage:
N=this.imageHeight*.05;break;case "ArrowLeft":BQJ(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?y=this.a11yConfig.reachRightOfImage:b=this.imageWidth*.05*-1;break;case "ArrowRight":BQJ(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?y=this.a11yConfig.reachLeftOfImage:b=this.imageWidth*.05}y&&_.FE(y)&&_.e2(this.hostElement,"iron-announce",{text:_.FE(y)});if(b||N)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+N)),q=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),q=_.FE(this.a11yConfig.imageVerticalPosition,{x_percent:""+q,y_percent:""+(100-q)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+b)),q=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),q=_.FE(this.a11yConfig.imageHorizontalPosition,{x_percent:""+q,y_percent:""+(100-q)})),q&&_.e2(this.hostElement,"iron-announce",{text:q})}};
_.g.getPreviewPosition=function(q,N,b,y){return Math.round(100*(q+N*.5-b)/y)};
_.g.displayImage=function(){var q=this.JSC$15880_pickerContainer.getBoundingClientRect().width,N=this.JSC$15880_pickerContainer.getBoundingClientRect().height,b=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),y=this.JSC$15880_imageInBackground.naturalWidth,J=this.JSC$15880_imageInBackground.naturalHeight;this.displayScale=Math.max(b/y,b/J);this.imageWidth=y*this.displayScale;this.imageHeight=J*this.displayScale;this.pickerDisplayOffsetLeft=(q-b)/2;this.pickerDisplayOffsetTop=
(N-b)/2;this.imageDisplayOffsetLeft=J>y?this.pickerDisplayOffsetLeft:(q-this.imageWidth)/2;this.imageDisplayOffsetTop=y>J?this.pickerDisplayOffsetTop:(N-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.g.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15880_imageInBackground.src=this.imageData.toString(),this.JSC$15880_imageInPicker.src=this.imageData.toString(),this.JSC$15880_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.g.getSignedPosition=function(q,N,b){return N==="X"&&_.M7("HTML_DIR")==="rtl"?b==="-"?q+"px":q*-1+"px":b==="-"?q*-1+"px":q+"px"};
_.g.pickerMove=function(q){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var N=this.pickerOffsetX-q.clientX,b=this.pickerOffsetY-q.clientY;this.pickerOffsetX=q.clientX;this.pickerOffsetY=q.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
b)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-N))}};
_.g.pickerMoveStart=function(q){this.startPicker=!0;this.pickerOffsetX=q.clientX;this.pickerOffsetY=q.clientY};
_.g.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.g.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.e2(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.g.getPreviewOffset=function(q,N,b,y){return N&&q&&b?(y==="X"&&_.M7("HTML_DIR")==="rtl"?b/N*q:b/N*q*-1)+"px":"0px"};
_.g.getSimpleText=function(q){return q?_.ao(q):""};
_.g.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var q=this.cropOffsetTop/this.imageHeight,N=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,b=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,y=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.ee(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.e2(this.hostElement,"yt-img-crop-coordinates-update",{top:q,right:N,bottom:b,left:y})}};
_.$H.Object.defineProperties(jC.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var q=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.FE(this.a11yConfig.imageVerticalPosition,{x_percent:""+q,y_percent:""+(100-q)})+"\n"+_.FE(this.a11yConfig.verticalRepositionInstruction)}q=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.FE(this.a11yConfig.imageHorizontalPosition,{x_percent:""+q,y_percent:""+(100-q)})+"\n"+_.FE(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 q,N=(q=this.learnMore.runs[0])==null?void 0:q.navigationEndpoint,b;return((b=_.v(N,_.b_))==null?void 0:b.url)||void 0}}}});
jC.prototype.onImageDataChange=jC.prototype.onImageDataChange;_.p([_.U(),_.P("design:type",Object)],jC.prototype,"imageData",void 0);_.p([_.U(),_.P("design:type",Object)],jC.prototype,"instruction",void 0);_.p([_.U(),_.P("design:type",Object)],jC.prototype,"a11yConfig",void 0);_.p([_.U(),_.P("design:type",Number)],jC.prototype,"imageWidth",void 0);_.p([_.U(),_.P("design:type",Number)],jC.prototype,"imageHeight",void 0);_.p([_.U(),_.P("design:type",Number)],jC.prototype,"displayScale",void 0);
_.p([_.U(),_.P("design:type",Object)],jC.prototype,"imageDisplayOffsetTop",void 0);_.p([_.U(),_.P("design:type",Object)],jC.prototype,"imageDisplayOffsetLeft",void 0);_.p([_.U(),_.P("design:type",Object)],jC.prototype,"pickerDisplayOffsetTop",void 0);_.p([_.U(),_.P("design:type",Object)],jC.prototype,"pickerDisplayOffsetLeft",void 0);_.p([_.U(),_.P("design:type",Object)],jC.prototype,"cropCoordinatesSaved",void 0);_.p([_.U(),_.P("design:type",Object)],jC.prototype,"previewSize",void 0);
_.p([_.U(),_.P("design:type",Object)],jC.prototype,"startPicker",void 0);_.p([_.U(),_.P("design:type",Number)],jC.prototype,"pickerOffsetX",void 0);_.p([_.U(),_.P("design:type",Number)],jC.prototype,"pickerOffsetY",void 0);_.p([_.U(),_.P("design:type",Object)],jC.prototype,"repositionOptional",void 0);_.p([_.dq("#picker-container"),_.P("design:type",HTMLElement)],jC.prototype,"JSC$15880_pickerContainer",void 0);_.p([_.dq("#picker"),_.P("design:type",HTMLElement)],jC.prototype,"picker",void 0);
_.p([_.dq("#image-in-picker-background"),_.P("design:type",HTMLImageElement)],jC.prototype,"JSC$15880_imageInBackground",void 0);_.p([_.dq("#image-in-picker"),_.P("design:type",HTMLImageElement)],jC.prototype,"JSC$15880_imageInPicker",void 0);_.p([_.dq("#image-in-preview-clipper"),_.P("design:type",HTMLImageElement)],jC.prototype,"JSC$15880_imageInPreviewClipper",void 0);_.p([_.dq("#full-image-as-preview"),_.P("design:type",HTMLImageElement)],jC.prototype,"imageAsPreview",void 0);
_.p([_.l("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],jC.prototype,"altLabelForImage",null);_.p([_.l("imageHeight","imageWidth"),_.P("design:type",Number),_.P("design:paramtypes",[])],jC.prototype,"pickerSize",null);_.p([_.l("imageHeight","imageWidth"),_.P("design:type",Object),_.P("design:paramtypes",[])],jC.prototype,"imageOrientationStyle",null);
_.p([_.l("instruction.previewInstruction.editButtonLabel"),_.P("design:type",Object),_.P("design:paramtypes",[])],jC.prototype,"editButton",null);_.p([_.l("instruction.editInstruction.saveButtonLabel"),_.P("design:type",Object),_.P("design:paramtypes",[])],jC.prototype,"saveButton",null);_.p([_.l("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.P("design:type",Number),_.P("design:paramtypes",[])],jC.prototype,"cropOffsetTop",null);
_.p([_.l("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.P("design:type",Number),_.P("design:paramtypes",[])],jC.prototype,"cropOffsetLeft",null);_.p([_.l("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],jC.prototype,"pickerBackgroundStyle",null);_.p([_.l("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],jC.prototype,"pickerDisplayStyle",null);
_.p([_.l("cropOffsetLeft","cropOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],jC.prototype,"imageInPickerStyle",null);_.p([_.l("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.P("design:type",String),_.P("design:paramtypes",[])],jC.prototype,"previewClipperStyle",null);_.p([_.FY("imageData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jC.prototype,"onImageDataChange",null);
_.p([_.l("cropCoordinatesSaved"),_.P("design:type",String),_.P("design:paramtypes",[])],jC.prototype,"pickerModeStyle",null);_.p([_.l("instruction.editInstruction.learnMore"),_.P("design:type",Object),_.P("design:paramtypes",[])],jC.prototype,"learnMore",null);_.p([_.l("learnMore"),_.P("design:type",Object),_.P("design:paramtypes",[])],jC.prototype,"learnMoreUrl",null);_.p([_.Ok({is:"yt-img-crop-picker",disableElementRegistration:!0})],jC);
_.a(jC,"yt-img-crop-picker",function(){if(Lkl===void 0){var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;Wk1===void 0&&(Wk1=document.createElement("template"));var y=Wk1;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Lkl=q}q=Lkl;return q},{mode:2});var xr=function(){var q=_.C.apply(this,arguments)||this;q.errorMessage="";q.hasPreview=!1;q.isBackstagePost=!1;q.dismissButtonOverrides={size:"XS"};return q};
_.Y(xr,_.C);_.g=xr.prototype;_.g.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"}}}};
_.g.detached=function(){this.removeOverlay()};
_.g.setPreview=function(q){_.ee(this.hostElement).querySelector("#preview-picker").imageData=q;this.hasPreview=!0;_.e2(this.hostElement,"yt-backstage-image-select-preview")};
_.g.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var q=_.ee(this.hostElement).querySelector("#dropzone");q.classList.remove("dragover");q.classList.remove("error");_.e2(this.hostElement,"yt-backstage-image-select-cancel")};
_.g.setupOverlay=function(){var q=this.imageUploadEndpoint;this.removeOverlay();if(q&&q.imageValidationInfo){var N=_.ee(this.hostElement).querySelector("#dropzone"),b=_.ee(this.hostElement).querySelector("#select");this.overlay=new XF(q.uploadUrl,q.channelId,q.imageValidationInfo.maxFileSizeMb,q.imageValidationInfo.allowedMaxAspectRatio,N,b,!0);_.tn(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.tn(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.tn(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.tn(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.tn(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.g.removeOverlay=function(){this.overlay&&(_.QL(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.QL(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.QL(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.QL(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.QL(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.g.onDragOver=function(q){var N=_.ee(this.hostElement).querySelector("#dropzone");_.HP(N,"dragover",q.value)};
_.g.onPreview=function(q){this.setPreview(q.value)};
_.g.onImageError=function(q){if(q.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var N;q=(N=this.data)==null?void 0:N.fileSizeError}else if(q.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var b;q=(b=this.data)==null?void 0:b.invalidError}else if(q.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var y;q=(y=this.data)==null?void 0:y.invalidAspectRatioError}else return;this.errorMessage=_.ao(q);_.ee(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.g.onImageAlert=function(q){this.onImageError(q)};
_.g.uploadPromise=function(){var q=this,N=this.overlay&&this.overlay.uploadPromise();if(N)return N.catch(function(){throw Error(q.data?_.ao(q.data.uploadFailureError):"");})};
_.$H.Object.defineProperties(xr.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var q,N;if((q=this.data)==null?0:(N=q.icon)==null?0:N.iconType)return _.qo(this.data.icon.iconType)}}});
xr.prototype.setupOverlay=xr.prototype.setupOverlay;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],xr.prototype,"rendererStamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],xr.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],xr.prototype,"imageUploadEndpoint",void 0);_.p([_.U(),_.P("design:type",Object)],xr.prototype,"errorMessage",void 0);
_.p([_.U(),_.P("design:type",XF)],xr.prototype,"overlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],xr.prototype,"hasPreview",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],xr.prototype,"isBackstagePost",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],xr.prototype,"selectionCancel",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],xr.prototype,"previewCancel",null);
_.p([_.l("data.icon.iconType"),_.P("design:type",Object),_.P("design:paramtypes",[])],xr.prototype,"icon",null);_.p([_.U(),_.P("design:type",Object)],xr.prototype,"dismissButtonOverrides",void 0);_.p([_.FY("imageUploadEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xr.prototype,"setupOverlay",null);_.p([_.I({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],xr);
_.a(xr,"ytd-backstage-image-select-renderer",function(){if(axF!==void 0)return axF;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return axF=q},{mode:1});var p5x;var PAJ;var ve=function(){var q=_.C.apply(this,arguments)||this;q.selected=!1;return q};
_.Y(ve,_.C);_.g=ve.prototype;_.g.computeSelected=function(q){return q==null?void 0:q.selected};
_.g.computeTransform=function(q,N,b){var y,J,E=(J=(y=this.imageContainer)==null?void 0:y.getBoundingClientRect())!=null?J:{width:0,height:0};y=Math.max(E.width/N,E.height/b);b=b*y*q.top;return"translateX("+this.getSignedPosition(N*y*q.left,"X","-")+") translateY("+this.getSignedPosition(b,"Y","-")+")"};
_.g.getSignedPosition=function(q,N,b){return N==="X"&&_.M7("HTML_DIR")==="rtl"?b==="-"?q+"px":q*-1+"px":b==="-"?q*-1+"px":q+"px"};
_.g.onClick=function(){var q;_.e2(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(q=this.data)==null?void 0:q.image)};
_.g.onKeyPress=function(q){if(q.keyCode===13)this.onClick()};
_.$H.Object.defineProperties(ve.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.data)==null?void 0:(N=q.image)==null?void 0:N.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)!=null&&q.image){var N;q=(N=this.data)==null?void 0:N.image;return q.previewCoordinates.top!==0||q.previewCoordinates.left!==0?(N=this.computeTransform(q.previewCoordinates,q.naturalWidth,q.naturalHeight),q.naturalHeight>=q.naturalWidth?"width:inherit;transform:"+N+";":"height:inherit;transform:"+N+";"):q.naturalHeight>=q.naturalWidth?"width:inherit;":"height:inherit;"}}}});
ve.prototype.onKeyPress=ve.prototype.onKeyPress;_.p([_.dq(".image-container"),_.P("design:type",HTMLElement)],ve.prototype,"imageContainer",void 0);_.p([_.U(),_.P("design:type",Object)],ve.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.P("design:type",Object)],ve.prototype,"selected",void 0);_.p([_.l("data.image"),_.P("design:type",Object),_.P("design:paramtypes",[])],ve.prototype,"thumbnailUrl",null);
_.p([_.l("data.image","data.image.previewCoordinates"),_.P("design:type",Object),_.P("design:paramtypes",[])],ve.prototype,"thumbnailStyle",null);_.p([_.ZP("keypress"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],ve.prototype,"onKeyPress",null);_.p([_.I({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],ve);
_.a(ve,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(PAJ!==void 0)return PAJ;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return PAJ=q},{mode:2});var GF=function(q,N,b){b=b===void 0?!1:b;_.O1.call(this);var y=this;this.dropZoneOverlay=new QG(q);this.selectOverlay=b?new Oj(N,"multiple_file",["image/*"]):new Oj(N,"single_file",["image/*"]);this.handler=new _.xH(this);_.YN(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(N,"click",function(){y.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.Y(GF,_.O1);GF.prototype.onChange=function(q){var N;(N=q.files)!=null&&N.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:q.files}))};var Yr=function(){var q=_.C.apply(this,arguments)||this;q.addImageErrorMessage="";q.errorMessage="";q.images=[];q.selectedImageIndex=0;q.modern=_.x("web_modern_buttons");q.maxNumImagesPerPost=_.VX("max_num_images_per_post_web_ui");q.JSC$15895_imageId=0;return q};
_.Y(Yr,_.C);_.g=Yr.prototype;_.g.created=function(){var q=this;this.JSC$15895_ytReorderableController=new _.dS1(100,function(N){q.handleDrop(N)})};
_.g.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.e2(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.g.observeDragToReorder=function(){var q=this;if(this.showImagesPreview){var N,b=mk1(_.KP.getInstance(),(N=this.data)==null?void 0:N.dragToReorderTooltip);_.pY.addLowPriorityJob(function(){_.Nc(q.hostElement,b,q.thumbnailDragDropArea)})}};
_.g.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}}};
_.g.computeThumbnail=function(q){return(q==null?void 0:q.localImageSrc)||void 0};
_.g.onRendererstamperFinished=function(){_.cRo(this.JSC$15895_ytReorderableController,_.ee(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.ee(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.g.handleDrop=function(q){var N=q.currDragItem;if(N!=null&&N.data){q=this.images[this.selectedImageIndex];var b=N.data.image,y=this.images.indexOf(b)||0;N=_.Tz(N.parentNode.children,N);this.images.splice(y,1);this.images.splice(N,0,b);this.images=[].concat(_.a9(this.images));this.selectedImageIndex=this.images.indexOf(q)}};
_.g.setUpImagePicker=function(){var q=this.imageUploadEndpoint;q&&q.imageValidationInfo&&(this.uploadManager=new rl(q.uploadUrl,q.channelId),this.initialPicker||(this.initialPicker=new GF(this.dropzone,this.selectLink,!0),_.tn(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new GF(this.addImageButtonContainer,this.addImageSelectButton),_.tn(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.tn(this.JSC$15895_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.tn(this.JSC$15895_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.tn(_.ee(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.g.detached=function(){this.initialPicker&&(_.QL(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.QL(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.IQ(this.JSC$15895_ytReorderableController)};
_.g.onInitialSelectImages=function(q){var N=this;return _.d(function(b){return b.yield(N.onSelectImages(q,!1),0)})};
_.g.onAddImage=function(q){var N=this;return _.d(function(b){return b.yield(N.onSelectImages(q,!0),0)})};
_.g.onSelectImages=function(q,N){var b=this,y,J,E,F,R,c,z,m,r,X,V,G,w,D,k,f,L,S,W,M;return _.d(function(qe){switch(qe.nextAddress){case 1:N?b.addImageErrorMessage="":(b.images=[],b.errorMessage="");y=q.detail;J=b.validateImages([].concat(_.a9(y)));if(J!=="")return N?b.addImageErrorMessage=J:b.errorMessage=J,qe.return();E=[].concat(_.a9(y)).map(function(RJ){return(new mJ(b.maxAspectRatio,!1,!0)).transform(RJ)});
return qe.yield(Promise.allSettled(E),2);case 2:F=qe.yieldResult,R=_.Z(F.entries()),c=R.next();case 3:if(c.done){qe.jumpTo(5);break}z=c.value;m=_.Z(z);r=m.next().value;X=m.next().value;V=r;G=X;if(G.status!=="fulfilled"){k=D=w=void 0;N?b.addImageErrorMessage=_.ao((w=b.data)==null?void 0:w.invalidError):b.errorMessage=b.errorMessage===""?_.ao((D=b.data)==null?void 0:D.invalidError):_.ao((k=b.data)==null?void 0:k.multiFileError);qe.jumpTo(4);break}f=G.value;f.cropped&&_.e2(b.hostElement,"yt-backstage-multi-image-cropped");
if(f.invalidAspectRatio){W=S=L=void 0;N?b.addImageErrorMessage=_.ao((L=b.data)==null?void 0:L.invalidAspectRatioError):b.errorMessage=b.errorMessage===""?_.ao((S=b.data)==null?void 0:S.invalidAspectRatioError):_.ao((W=b.data)==null?void 0:W.multiFileError);qe.jumpTo(4);break}return qe.yield(Aku(b.JSC$15895_imageId,q.detail[V],f.transformedData),8);case 8:M=qe.yieldResult,b.images.push(M),b.JSC$15895_imageId++;case 4:c=R.next();qe.jumpTo(3);break;case 5:if(b.errorMessage!==""||b.addImageErrorMessage!==
"")return qe.return();N?kU4(b.uploadManager,[b.images[b.images.length-1]]):kU4(b.uploadManager,b.images);b.images=[].concat(_.a9(b.images));b.selectedImageIndex=N?Math.max(b.images.length-1,0):0;_.e2(b.hostElement,"yt-backstage-multi-image-select");_.hj(qe)}})};
_.g.onThumbnailClick=function(q){if(q=q.event_.detail)this.selectedImageIndex=this.images.indexOf(q)};
_.g.validateImages=function(q){if(q.length>this.maxNumImagesPerPost){var N;return _.ao((N=this.data)==null?void 0:N.multiImageExceedMaxImageCountError)}var b=1048576*this.maxFileSizeMb;q=q.filter(function(E){return E.size>b}).length;
if(q===0)return"";var y,J;q=q>1?(y=this.data)==null?void 0:y.multiFileError:(J=this.data)==null?void 0:J.fileSizeError;return _.ao(q)};
_.g.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.a9(this.images));this.selectedImageIndex=0};
_.g.repositionImage=function(q){this.images[this.selectedImageIndex].previewCoordinates=q.event_.detail;this.images=[].concat(_.a9(this.images))};
_.g.getAllUploadStatuses=function(){var q=this,N,b,y,J;return _.d(function(E){if(E.nextAddress==1)return E.yield(q.uploadManager.getAllUploadStatuses(),2);N=E.yieldResult;b=_.Z(N);for(y=b.next();!y.done;y=b.next())if(J=y.value,J.encryptedBlobId===void 0)return E.return(Uix(q.uploadManager));return E.return(N)})};
_.g.hasImages=function(){return this.images.length>0};
_.g.cancel=function(){for(var q=this.uploadManager,N=_.Z(q.imagesUploadData),b=N.next();!b.done;b=N.next())q.cancel(b.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.e2(this.hostElement,"yt-backstage-multi-image-cancel")};
_.$H.Object.defineProperties(Yr.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.imageUploadEndpoint)==null?void 0:(N=q.imageValidationInfo)==null?void 0:N.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.imageUploadEndpoint)==null?void 0:(N=q.imageValidationInfo)==null?void 0:N.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var q,N;if((q=this.data)==null?0:(N=q.icon)==null?0:N.iconType)return _.qo(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.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 q=this;return(this.images||[]).map(function(N,b){return{renderer:{image:N,selected:b===q.selectedImageIndex}}})}}});
Yr.prototype.setUpImagePicker=Yr.prototype.setUpImagePicker;Yr.prototype.onRendererstamperFinished=Yr.prototype.onRendererstamperFinished;Yr.prototype.observeDragToReorder=Yr.prototype.observeDragToReorder;Yr.prototype.observeAddImageError=Yr.prototype.observeAddImageError;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Yr.prototype,"rendererStamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);
_.p([_.dq("#dropzone"),_.P("design:type",HTMLElement)],Yr.prototype,"dropzone",void 0);_.p([_.dq("#select-link"),_.P("design:type",HTMLElement)],Yr.prototype,"selectLink",void 0);_.p([_.dq("#thumbnail-drag-drop-area"),_.P("design:type",HTMLElement)],Yr.prototype,"thumbnailDragDropArea",void 0);_.p([_.dq("#add-image-button-container"),_.P("design:type",HTMLElement)],Yr.prototype,"addImageButtonContainer",void 0);
_.p([_.dq("#add-image-button"),_.P("design:type",HTMLElement)],Yr.prototype,"addImageSelectButton",void 0);_.p([_.dq("#image-preview-container"),_.P("design:type",Object)],Yr.prototype,"JSC$15895_imagePreviewContainer",void 0);_.p([_.U(),_.P("design:type",Object)],Yr.prototype,"addImageErrorMessage",void 0);_.p([_.U(),_.P("design:type",Object)],Yr.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Yr.prototype,"errorMessage",void 0);
_.p([_.U(),_.P("design:type",Object)],Yr.prototype,"imageUploadEndpoint",void 0);_.p([_.U(),_.P("design:type",Array)],Yr.prototype,"images",void 0);_.p([_.U(),_.P("design:type",GF)],Yr.prototype,"initialPicker",void 0);_.p([_.U(),_.P("design:type",GF)],Yr.prototype,"addImagePicker",void 0);_.p([_.U(),_.P("design:type",rl)],Yr.prototype,"uploadManager",void 0);_.p([_.U(),_.P("design:type",Object)],Yr.prototype,"selectedImageIndex",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Yr.prototype,"modern",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Yr.prototype,"maxNumImagesPerPost",void 0);_.p([_.l("imageUploadEndpoint"),_.P("design:type",Number),_.P("design:paramtypes",[])],Yr.prototype,"maxAspectRatio",null);_.p([_.l("imageUploadEndpoint"),_.P("design:type",Number),_.P("design:paramtypes",[])],Yr.prototype,"maxFileSizeMb",null);
_.p([_.l("data.icon.iconType"),_.P("design:type",Object),_.P("design:paramtypes",[])],Yr.prototype,"dropIcon",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Yr.prototype,"selectionCancel",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Yr.prototype,"previewCancel",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Yr.prototype,"dataForAddImageButton",null);
_.p([_.l("errorMessage"),_.P("design:type",String),_.P("design:paramtypes",[])],Yr.prototype,"dropzoneClass",null);_.p([_.l("images"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Yr.prototype,"showImagesPreview",null);_.p([_.l("images"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Yr.prototype,"containMaxImages",null);_.p([_.FY("addImageErrorMessage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yr.prototype,"observeAddImageError",null);
_.p([_.FY("showImagesPreview"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yr.prototype,"observeDragToReorder",null);_.p([_.l("images","selectedImageIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],Yr.prototype,"selectedImageData",null);_.p([_.l("images","selectedImageIndex"),_.P("design:type",Array),_.P("design:paramtypes",[])],Yr.prototype,"thumbnailRenderers",null);
_.p([_.ZP("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yr.prototype,"onRendererstamperFinished",null);_.p([_.FY("imageUploadEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yr.prototype,"setUpImagePicker",null);_.p([_.I({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Yr);
_.a(Yr,"ytd-backstage-multi-image-select-renderer",function(){if(p5x!==void 0)return p5x;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return p5x=q},{mode:1});var Mhl;var oVE;var AuM;var Qv=function(){var q=_.C.apply(this,arguments)||this;q.boundCaptureFocus=function(N){q.onCaptureFocus(N)};
return q};
_.Y(Qv,_.C);_.g=Qv.prototype;_.g.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.g.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.g.onCaptureFocus=function(q){_.n9(q).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.g.getIconType=function(q){return q?"yt-icons:"+q.toLowerCase():null};
_.g.onSelect=function(){var q;if((q=this.data)==null?0:q.onSelectCommand)if(_.x("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var N;((N=_.v(this.data.onSelectCommand.commandMetadata,_.gg))==null?0:N.url)?_.e2(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.tz().resolve(_.rO).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.$H.Object.defineProperties(Qv.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.ao(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}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Qv.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Qv.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Qv.prototype,"data",void 0);_.p([_.dq("#item"),_.P("design:type",HTMLElement)],Qv.prototype,"item",void 0);_.p([_.l("data.label"),_.P("design:type",String),_.P("design:paramtypes",[])],Qv.prototype,"label",null);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Qv.prototype,"value",null);_.p([_.I({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],Qv);
_.a(Qv,"ytd-privacy-dropdown-item-renderer",function(){if(AuM!==void 0)return AuM;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return AuM=q},{mode:1});var Oi=function(){var q=_.C.apply(this,arguments)||this;q.value="";q.label="";q.disabled=!1;return q};
_.Y(Oi,_.C);_.g=Oi.prototype;_.g.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"}}}};
_.g.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.g.dataChanged=function(){this.reset()};
_.g.valueChanged=function(){var q;if(this.value&&(q=this.data)!=null&&q.entries){q=_.Z(this.data.entries);for(var N=q.next();!N.done;N=q.next())if((N=this.getRendererForEntry(N.value))&&this.getItemRendererValue(N)===this.value){this.label=this.ytComponentBehavior.getSimpleString(N.label);break}}};
_.g.setInitialLabel=function(){if(this.data&&this.data.entries)for(var q=_.Z(this.data.entries),N=q.next();!N.done;N=q.next())if(N=this.getRendererForEntry(N.value)){if(N.isSelected){this.label=this.ytComponentBehavior.getSimpleString(N.label);break}this.data.label&&(this.label=this.data.label)}};
_.g.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var q=_.Z(this.data.entries),N=q.next();!N.done;N=q.next()){N=this.getRendererForEntry(N.value);var b=void 0;if((b=N)==null?0:b.isSelected)return this.getItemRendererValue(N)||-1}return-1};
_.g.getItemRendererValue=function(q){return"stringValue"in q||"int32Value"in q?q.stringValue||q.int32Value||null:null};
_.g.getRendererForEntry=function(q){return q.dropdownItemRenderer||q.privacyDropdownItemRenderer||q.navigationDropdownItemRenderer||null};
_.g.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("value-changed",this.value))};
_.g.updateValueFromBinding=function(q){this.value=q.detail.value};
Oi.prototype.valueChangedForBinding=Oi.prototype.valueChangedForBinding;Oi.prototype.valueChanged=Oi.prototype.valueChanged;Oi.prototype.dataChanged=Oi.prototype.dataChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Oi.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Oi.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],Oi.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Oi.prototype,"value",void 0);_.p([_.U(),_.P("design:type",Object)],Oi.prototype,"label",void 0);_.p([_.dq("#entries"),_.P("design:type",Object)],Oi.prototype,"entries",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Oi.prototype,"disabled",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Oi.prototype,"dataChanged",null);
_.p([_.$9("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Oi.prototype,"valueChanged",null);_.p([_.FY("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Oi.prototype,"valueChangedForBinding",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Oi);
_.a(Oi,"ytd-flat-dropdown-renderer",function(){if(oVE!==void 0)return oVE;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return oVE=q},{mode:1});var e5l;var wl=function(){var q=_.C.apply(this,arguments)||this;q.quizOptions=[];q.explanationPlaceholderText="";q.optionPlaceholderText="";q.correctAnswerIndex=-1;q.isMarkAnswerTooltipShown=!1;q.timer=0;return q};
_.Y(wl,_.C);_.g=wl.prototype;_.g.dataChanged=function(){this.optionPlaceholderText=_.ao(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.ao(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.g.onMarkCorrectAnswer=function(q){var N,b=((N=this.quizOptions[this.correctAnswerIndex])==null?void 0:N.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[q.model.index]=Object.assign({},this.quizOptions[q.model.index],{explanationText:b,isCorrect:!0});this.correctAnswerIndex=q.model.index;this.quizOptions=[].concat(_.a9(this.quizOptions))};
_.g.updatePlaceholderTexts=function(){for(var q=!1,N=[],b=0;b<this.quizOptions.length;b++){var y=this.optionPlaceholderText+" "+(b+1),J=void 0;((J=this.quizOptions[b])==null?void 0:J.placeholderText)!==y?(q=!0,N.push(Object.assign({},this.quizOptions[b],{placeholderText:y}))):N.push(this.quizOptions[b])}q&&(this.quizOptions=N);this.isValid()?_.e2(this.hostElement,"yt-commentbox-post-enable"):_.e2(this.hostElement,"yt-commentbox-post-disable")};
_.g.getSimpleString=function(q){return _.ao(q)};
_.g.createQuizOptions=function(q){var N=[],b;q=(b=q==null?void 0:q.minQuizOptions)!=null?b:0;for(b=0;b<q;b++)N.push(this.createQuizOption());return N};
_.g.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.a9(this.quizOptions),[this.createQuizOption()]))};
_.g.onInput=function(){this.quizOptions=[].concat(_.a9(this.quizOptions))};
_.g.onExplanationInput=function(){_.e2(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.g.onRemoveQuizOption=function(q){this.quizOptions.splice(q.model.index,1);q.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:q.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.a9(this.quizOptions));this.quizOptions.length===0&&_.e2(this.hostElement,"yt-quiz-attachment-dismiss")};
_.g.updateHintRenderer=function(){var q=this;clearTimeout(this.timer);this.timer=setTimeout(function(){q.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.g.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var q=0,N=0,b=_.Z(this.quizOptions),y=b.next();!y.done;y=b.next()){y=y.value;var J=void 0;if(((J=y.optionText)==null?void 0:J.trim())!==""||y.isCorrect){y.isCorrect&&N++;J=void 0;if(this.hasCustomOptionText&&((J=y.optionText)==null?void 0:J.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;q++}}return q>=
Number(this.editorInfo.minQuizOptions)&&N===1};
_.g.getPostCreateOptions=function(){for(var q=[],N=_.Z(this.quizOptions),b=N.next();!b.done;b=N.next()){b=b.value;var y=void 0;((y=b.optionText)==null?void 0:y.trim())!==""&&q.push({pollOption:{text:b.optionText,explanation:b.explanationText},isCorrect:b.isCorrect})}return q};
_.g.getExplanationText=function(){var q;return((q=this.quizOptions[this.correctAnswerIndex])==null?void 0:q.explanationText)||""};
_.g.maybeDisplayMarkAnswerEduToolTip=function(){var q,N,b,y,J,E,F;this.shouldShowMarkAnswerTooltip()&&((q=this.editorInfo)==null?0:(N=q.markAnswerButton)==null?0:(b=N.buttonRenderer)==null?0:(y=b.hint)==null?0:(J=y.hintRenderer)==null?0:(E=J.content)==null?0:(F=E.bubbleHintRenderer)==null?0:F.text)&&(_.KP.getInstance(),q=DG(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,(q==null?void 0:q.length)>0&&this.optionSelectors&&_.yI(q[0],this.optionSelectors[0]))};
_.g.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var q=0,N=_.Z(this.quizOptions),b=N.next();!b.done;b=N.next()){b=b.value;var y=void 0;((y=b.optionText)==null?void 0:y.trim())!==""&&q++;if(b.isCorrect)return!1}return q<2?!1:!0};
_.g.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.g.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.g.updateOptionTextFromBinding=function(q){if(q.target){var N=Array.from(_.ee(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(q.target);if(N>=0){var b;this.quizOptions[N].optionText=(b=q.detail.value)!=null?b:""}}};
_.$H.Object.defineProperties(wl.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var q,N,b=(q=this.editorInfo)==null?void 0:(N=q.addOptionButton)==null?void 0:N.buttonRenderer;b&&(b.style="STYLE_SUGGESTIVE",b.size="SIZE_SMALL",b.isDisabled=!this.isAllowedToAddOption);return(b==null?0:b.text)?b:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var q,N;return this.quizOptions.length<((N=(q=this.editorInfo)==null?void 0:q.maxQuizOptions)!=null?N:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(q){var N;return(N=q.optionText)==null?void 0:N.trim()})}}});
wl.prototype.updatePlaceholderTexts=wl.prototype.updatePlaceholderTexts;wl.prototype.dataChanged=wl.prototype.dataChanged;_.p([_.U(),_.P("design:type",Object)],wl.prototype,"editorInfo",void 0);_.p([_.U(),_.P("design:type",Array)],wl.prototype,"quizOptions",void 0);_.p([_.U(),_.P("design:type",Object)],wl.prototype,"explanationPlaceholderText",void 0);_.p([_.cH(".option-selector-button"),_.P("design:type",Array)],wl.prototype,"optionSelectors",void 0);
_.p([_.$9("editorInfo"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wl.prototype,"dataChanged",null);_.p([_.l("editorInfo","isAllowedToAddOption","quizOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],wl.prototype,"addAnswerButton",null);_.p([_.l("editorInfo","quizOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],wl.prototype,"isAllowedToAddOption",null);
_.p([_.$9("quizOptions"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wl.prototype,"updatePlaceholderTexts",null);_.p([_.l("quizOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],wl.prototype,"hasCustomOptionText",null);_.p([_.I({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],wl);
_.a(wl,"ytd-backstage-quiz-editor-renderer",function(){if(e5l!==void 0)return e5l;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return e5l=q},{mode:2});var B$T;var Hs1=(gR.FIRSTDAYOFWEEK+1)%7;var qFv;var Nf4=[],bbR=0,yHx=0;bbR=0;yHx=24;if(.25*(yHx-bbR)<0)qFv=[];else{for(var JHx=bbR;JHx<yHx;JHx+=.25)Nf4.push(JHx);qFv=Nf4}var Eu1=qFv.map(function(q){q=q*60*60;return{secondsSinceMidnight:q,text:(new sR(7)).format(new Date(0,0,0,0,0,q))}});var gul;var iJ=function(){var q=_.C.apply(this,arguments)||this;q.skipNextOpenDialog=!1;q.errorMessage="";q.previousMonthLabel=_.FE("PREVIOUS_MONTH_LABEL");q.nextMonthLabel=_.FE("NEXT_MONTH_LABEL");return q};
_.Y(iJ,_.C);_.g=iJ.prototype;_.g.attached=function(){var q=this,N=new MutationObserver(function(){q.JSC$15937_calendarMain.scrollHeight>0&&(N.disconnect(),q.calendarConfig&&q.calendarConfig.selectedDate&&q.scrollToDate())});
N.observe(this.JSC$15937_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){N.disconnect()},1E3)};
_.g.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.g.onDateTextChange=function(){if(this.calendarConfig){var q=this.validateDateText();q.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(q.details)):this.textbox.setAttribute("invalid","")}};
_.g.handleDayClick=function(q){q.model.day.date&&(this.commitDate(q.model.day.date),this.dialog.close())};
_.g.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var q=ZHz(this.calendarConfig.selectedDate,this.renderData);q!==void 0&&this.JSC$15937_calendarMain.scrollToIndex(q)}};
_.g.scrollToNextMonth=function(){this.JSC$15937_calendarMain.scrollToIndex(this.JSC$15937_calendarMain.firstVisibleIndex+1)};
_.g.scrollToPrevMonth=function(){this.JSC$15937_calendarMain.firstVisibleIndex===0&&this.JSC$15937_calendarMain.scrollTo(0,0);this.JSC$15937_calendarMain.scrollToIndex(this.JSC$15937_calendarMain.firstVisibleIndex-1)};
_.g.onFormSubmit=function(q){q.preventDefault();this.calendarConfig&&(q=this.validateDateText(),q.isValid&&(this.commitDate(q.details),this.dialog.close()))};
_.g.onEscOrClickingOutside=function(q){q=q.detail.path&&!!q.detail.path.length&&q.detail.path[0];if(q.classList.contains("ytd-calendar-date-picker")){q===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var N=0;N<this.dropdownButton.children.length;N++)this.dropdownButton.children[N]===q&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}q=this.textbox.value!==this.dateText;N=this.validateDateText();q&&N.isValid&&this.commitDate(N.details);this.dialog.close();this.textbox.value=
this.dateText};
_.g.commitDate=function(q){this.calendarConfig&&(this.set("calendarConfig.selectedDate",q),_.e2(this.hostElement,"ytd-calendar-date-selected",q))};
_.g.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var q=this.textbox.value;var N=new Date;q=(new OHJ(2)).parse(q,N,{validate:!0})===q.length?E4z(N):void 0;if(!q)return this.errorMessage=_.FE("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};N=this.calendarConfig.start;var b=this.calendarConfig.end;if(qOe(q,N))return this.errorMessage=_.FE("ENTER_DATE_OR_LATER",{allowed_date:Jcz(N)}),{isValid:!1,details:void 0};if(qOe(b,q))return this.errorMessage=
_.FE("ENTER_DATE_OR_EARLIER",{allowed_date:Jcz(b)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:q}};
_.$H.Object.defineProperties(iJ.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Jcz(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var q=this.calendarConfig,N=[],b=0;b<7;b++)N.push(gR.NARROWWEEKDAYS[(b+Hs1)%7]);b=[];for(var y=new Date(q.start.year,q.start.month);y.getFullYear()<q.end.year||y.getFullYear()===q.end.year&&y.getMonth()<=q.end.month;){var J=b,E=J.push,F=y.getFullYear(),R=y.getMonth(),c=q,z=void 0,m=[],r=Object.freeze({extraCssClass:"invisible",debugClass:""}),X=new Date(F,R),V=E4z(X);X=X.getDay();for(var G=E4z(new Date);V.month===
R;){X!==Hs1&&z||(z=Array.from({length:7}).fill(r),m.push(z));var w={date:{year:F,month:R,day:V.day},extraCssClass:"",debugClass:""};c.selectedDate&&w.date&&Hen(w.date,c.selectedDate)&&(w.extraCssClass+=" selected");if(qOe(V,c.start)||qOe(c.end,V))w.extraCssClass+=" disabled";Hen(V,G)&&(w.extraCssClass+=" today");w.extraCssClass=w.extraCssClass.trim();z[(X-Hs1+7)%7]=w;V=bHZ(V);X=(X+1)%7}E.call(J,{weeks:m,monthLabel:gR.SHORTMONTHS[R]+" "+F,year:F,month:R,monthLabelExtraCssClass:m[0][2]===r?"shift-down-label":
""});y.setMonth(y.getMonth()+1)}return{months:b,daysOfWeekLabel:N}}}}});
iJ.prototype.onEscOrClickingOutside=iJ.prototype.onEscOrClickingOutside;iJ.prototype.scrollToDate=iJ.prototype.scrollToDate;_.p([_.U(),_.P("design:type",Object)],iJ.prototype,"calendarConfig",void 0);_.p([_.U(),_.P("design:type",Object)],iJ.prototype,"skipNextOpenDialog",void 0);_.p([_.U(),_.P("design:type",Object)],iJ.prototype,"errorMessage",void 0);_.p([_.U(),_.P("design:type",Object)],iJ.prototype,"previousMonthLabel",void 0);
_.p([_.U(),_.P("design:type",Object)],iJ.prototype,"nextMonthLabel",void 0);_.p([_.dq("#textbox"),_.P("design:type",HTMLInputElement)],iJ.prototype,"textbox",void 0);_.p([_.dq("#calendar-dialog"),_.P("design:type",Object)],iJ.prototype,"dialog",void 0);_.p([_.dq("#calendar-main"),_.P("design:type",Object)],iJ.prototype,"JSC$15937_calendarMain",void 0);_.p([_.dq("#date-picker"),_.P("design:type",HTMLElement)],iJ.prototype,"dropdownButton",void 0);
_.p([_.l("calendarConfig.selectedDate"),_.P("design:type",String),_.P("design:paramtypes",[])],iJ.prototype,"dateText",null);_.p([_.l("calendarConfig","calendarConfig.selectedDate"),_.P("design:type",Object),_.P("design:paramtypes",[])],iJ.prototype,"renderData",null);_.p([_.FY("renderData","calendarConfig.selectedDate"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iJ.prototype,"scrollToDate",null);
_.p([_.ZP("iron-overlay-canceled"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],iJ.prototype,"onEscOrClickingOutside",null);_.p([_.Ok({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],iJ);
_.a(iJ,"ytd-calendar-date-picker",function(){if(gul!==void 0)return gul;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return gul=q},{mode:2});var Zb1=_.FE("UTC_OFFSET_FORMAT",{utc_offset:(new sR("Z")).format(new Date)}),FrJ=(new Date).getTimezoneOffset()*-60,Rzx=new Date,dZq,cHF=TC(Rzx.getTimezoneOffset());dZq=oPF(eI1(cHF,Rzx));var uS1=_.FE("LOCAL_TIME_GMT_LABEL",{gmt_text:dZq.replace("+0","+").replace("-0","-").replace(":00","")}),lJ=function(){var q=_.C.apply(this,arguments)||this;q.selectedTimeIndex=0;q.selectedTimezoneIndex=0;q.timeOfDayOptions=Eu1;return q};
_.Y(lJ,_.C);_.g=lJ.prototype;_.g.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var q=ycD();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=q,this.selectedTimeIndex=0;else{var N=g4h(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},q,{selectedDate:N.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(b){return b.secondsSinceMidnight===N.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.g.onDatePicked=function(q){this.selectedDate=q.detail};
_.g.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.e2(this.hostElement,"ytd-date-time-selection-cancelled")};
_.g.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var q=this.selectedDate;q=new Date(q.year,q.month,q.day);_.e2(this.hostElement,"ytd-date-time-selection-update",Math.floor(q.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+q.getTimezoneOffset()*60))}};
_.g.getTimezoneFormat=function(q){return q.localizedDisplayText?q.localizedDisplayText:_.FE("TIMEZONE_FORMAT",{utc_offset_text:""+q.localizedUtcOffset,city_name:""+q.localizedName})};
_.g.updateSelectedTimeIndexFromBinding=function(q){this.selectedTimeIndex=q.detail.value};
_.g.updateSelectedTimezoneIndexFromBinding=function(q){this.selectedTimezoneIndex=q.detail.value};
_.$H.Object.defineProperties(lJ.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var q=this.data.timezoneOptions;var N={name:"Etc/Unknown",localizedName:_.FE("LOCAL_TIME_LABEL"),localizedUtcOffset:Zb1,utcOffsetSec:""+FrJ,localizedDisplayText:uS1};q?q.length&&q[0].name!==N.name&&(q[0].localizedDisplayText||(N.localizedDisplayText=""),q.unshift(N)):q=[N];return q}}},
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]}}});
lJ.prototype.onDateTimeTimezoneChange=lJ.prototype.onDateTimeTimezoneChange;lJ.prototype.onDatePicked=lJ.prototype.onDatePicked;lJ.prototype.updateDefaultSelectedValue=lJ.prototype.updateDefaultSelectedValue;_.p([_.U(),_.P("design:type",Object)],lJ.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],lJ.prototype,"calendarConfig",void 0);_.p([_.U(),_.P("design:type",Object)],lJ.prototype,"selectedDate",void 0);_.p([_.U(),_.P("design:type",Object)],lJ.prototype,"selectedTimeIndex",void 0);
_.p([_.U(),_.P("design:type",Object)],lJ.prototype,"selectedTimezoneIndex",void 0);_.p([_.dq("#time-listbox"),_.P("design:type",Object)],lJ.prototype,"timeListBox",void 0);_.p([_.dq("#timezone-listbox"),_.P("design:type",Object)],lJ.prototype,"timezoneListBox",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],lJ.prototype,"rendererStamperBehavior",void 0);_.p([_.l("data.timezoneOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],lJ.prototype,"timeZones",null);
_.p([_.$9("data","timeZones"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lJ.prototype,"updateDefaultSelectedValue",null);_.p([_.l("selectedTimezoneIndex","timeZones"),_.P("design:type",Object),_.P("design:paramtypes",[])],lJ.prototype,"selectedTimezone",null);_.p([_.l("selectedTimeIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],lJ.prototype,"selectedTime",null);
_.p([_.ZP("ytd-calendar-date-selected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],lJ.prototype,"onDatePicked",null);_.p([_.FY("selectedTimezone","selectedTime","selectedDate"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lJ.prototype,"onDateTimeTimezoneChange",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],lJ);
_.a(lJ,"ytd-date-time-picker-renderer",function(){if(B$T!==void 0)return B$T;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return B$T=q},{mode:1});var zz4;var K_=function(){var q=_.C.apply(this,arguments)||this;q.boundOnTapDismissButton=function(){q.dismissTapHandler()};
q.dismissButtonOverrides={size:"XS"};return q};
_.Y(K_,_.C);K_.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}}}}}};
K_.prototype.dismissTapHandler=function(){_.e2(this.hostElement,"yt-backstage-attachment-dismissed")};
K_.prototype.computeAttachmentType=function(q){return q?q.backstageImageRenderer?"image":q.videoRenderer?"video":"none":"none"};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],K_.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],K_.prototype,"attachmentPreview",void 0);_.p([_.U(),_.P("design:type",Object)],K_.prototype,"dismissButton",void 0);_.p([_.U(),_.P("design:type",Object)],K_.prototype,"boundOnTapDismissButton",void 0);
_.p([_.U(),_.P("design:type",Object)],K_.prototype,"dismissButtonOverrides",void 0);_.p([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.P("design:type",String)],K_.prototype,"attachmentType",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],K_);
_.a(K_,"ytd-backstage-dismissable-attachment",function(){if(zz4!==void 0)return zz4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return zz4=q},{mode:1});var $ZJ;var Dg=function(){var q=_.C.apply(this,arguments)||this;q.selectedVideoId=void 0;q.picker=void 0;q.dismissButtonOverrides={size:"XS"};q.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return q};
_.Y(Dg,_.C);_.g=Dg.prototype;_.g.onServiceRequestCompleted=function(q){q.stopPropagation()};
_.g.handleAddVideoPreviewAction=function(q){q=this.get("addVideoPreviewAction",q);this.onGetVideoPreviewSuccess(q)};
_.g.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}}}}}};
_.g.onLaunchVideoPicker=function(q){var N=this,b=_.ao(this.get("addVideoLinkAction.title",q)),y=this.get("addVideoLinkAction.onePickHostId",q);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",q);y&&(this.picker||(b=_.nFM(_.dwC(y).setTitle(b).addView(C_q()).addView(fmT()),function(J){N.onPickVideo(J)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",q)||b.addView("youtube"),this.picker=b.build()),this.picker.setVisible(!0))};
_.g.onPickVideo=function(q){if(q)if(q.action==="cancel")_.e2(this.hostElement,"yt-video-link-button-cancel");else if(q.action==="picked"){q=q.docs;if(!q||q.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(q=(q==null?0:q.length)?q[0]:void 0)?q.id:void 0;this.setVideoPreview()}};
_.g.setVideoPreview=function(){var q=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){q.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.g.onGetVideoPreviewSuccess=function(q){if(q&&q.videoPreview&&q.cancelButton)this.videoPreview=q.videoPreview,this.cancelButton=q.cancelButton,_.e2(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.g.onGetVideoPreviewError=function(){this.cancel()};
_.g.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.e2(this.hostElement,"yt-video-link-cancel")};
_.g.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
Dg.prototype.onServiceRequestCompleted=Dg.prototype.onServiceRequestCompleted;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Dg.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Dg.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Dg.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Dg.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Dg.prototype,"videoPreview",void 0);_.p([_.U(),_.P("design:type",Object)],Dg.prototype,"cancelButton",void 0);_.p([_.U(),_.P("design:type",Object)],Dg.prototype,"getVideoPreviewCommand",void 0);_.p([_.U(),_.P("design:type",Object)],Dg.prototype,"dismissButtonOverrides",void 0);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Dg.prototype,"onServiceRequestCompleted",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],Dg);
_.a(Dg,"ytd-backstage-video-link-attachment",function(){if($ZJ!==void 0)return $ZJ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return $ZJ=q},{mode:1});var tZJ;var mZo;var rH4;var hY=function(){return _.C.apply(this,arguments)||this};
_.Y(hY,_.C);hY.prototype.dataChanged=function(){this.active=!1};
hY.prototype.onTap=function(){_.e2(this.hostElement,"yt-select-emoji-suggestion",this.data)};
hY.prototype.identity=function(q){return q};
_.$H.Object.defineProperties(hY.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var q,N,b,y;if((q=this.data)==null?0:(N=q.image)==null?0:(b=N.thumbnails)==null?0:(y=b[0])==null?0:y.url)return q=this.data.image.thumbnails[0].url,q.startsWith("data:image/svg+xml")?Ix(q):_.pc(q)}}});
hY.prototype.dataChanged=hY.prototype.dataChanged;_.p([_.U(),_.P("design:type",Object)],hY.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],hY.prototype,"active",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hY.prototype,"dataChanged",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],hY.prototype,"imageSrc",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],hY);
_.a(hY,"ytd-emoji-suggestion",function(){if(rH4!==void 0)return rH4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return rH4=q},{mode:1});var XN4=/.*([:@#].*?)$/,kr=function(){var q=_.C.apply(this,arguments)||this;q.suggestions=[];q.suggestionIndex=-1;q.JSC$15965_lastSuggestionRange=null;return q};
_.Y(kr,_.C);_.g=kr.prototype;_.g.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.g.getSuggestions=function(q){var N=[],b=S9o(this.emojiManager,q.substr(0,3));if(b)for(var y in b)if(y.toLocaleLowerCase().indexOf(q)===0){var J=b[y];if(J&&J.emojiId){J=g7(this.emojiManager,J.emojiId);var E=void 0,F=void 0,R=void 0,c=void 0,z=((E=J)==null?0:E.isCustomEmoji)?(F=J)==null?void 0:(R=F.shortcuts)==null?void 0:R[0]:(c=J)==null?void 0:c.emojiId;E=void 0;N.push({suggestion:{image:(E=J)==null?void 0:E.image,alt:z,text:y}});if(N.length>=64)break}}return N?N.sort(function(m,r){return r.suggestion.text<
m.suggestion.text?-1:r.suggestion.text===m.suggestion.text?0:1}):null};
_.g.insertSuggestion=function(q){_.e2(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15965_lastSuggestionRange,text:q.alt});this.dropdown.opened=!1};
_.g.updateSuggestionsAtCaret=function(q){this.updateSuggestions(q,this.retrieveTextBeforeRange(q))};
_.g.offsetStartOfRangeBy=function(q,N){q.startOffset>=N&&q.setStart(q.startContainer,q.startOffset-N)};
_.g.updateSuggestions=function(q,N){var b=this;this.JSC$15965_lastSuggestionRange&&(this.JSC$15965_lastSuggestionRange.detach(),this.JSC$15965_lastSuggestionRange=null);if((N=XN4.exec(N))&&N.length&&(N=N[N.length-1].toLocaleLowerCase(),N.length>2||N===":_")&&(this.offsetStartOfRangeBy(q,N.length),this.JSC$15965_lastSuggestionRange=q,(q=this.getSuggestions(N))&&q.length)){this.suggestions=q;_.ut(this,function(){b.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(q.length-1);return}this.dropdown.opened=!1};
_.g.onKeyDown=function(q){if(this.dropdown.opened)switch(q.key){case "Escape":this.dropdown.opened=!1;q.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);q.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);q.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),q.preventDefault()}};
_.g.onKeyUp=function(q,N){switch(q.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(N);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(N)}};
_.g.onKeyPress=function(q){q.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),q.preventDefault())};
_.g.changeSuggestionIndex=function(q){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(q+this.suggestions.length)%this.suggestions.length,q=this.dropdownContent.children[this.suggestionIndex],q.active=!0,this.dropdownContent.scrollTop=q.offsetTop)};
_.g.retrieveTextBeforeRange=function(q){var N=q.startContainer;return N&&N.nodeType===Node.TEXT_NODE?N.textContent.substr(0,q.startOffset):""};
kr.prototype.onKeyPress=kr.prototype.onKeyPress;kr.prototype.onKeyUp=kr.prototype.onKeyUp;kr.prototype.onKeyDown=kr.prototype.onKeyDown;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],kr.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Array)],kr.prototype,"suggestions",void 0);_.p([_.U(),_.P("design:type",_.J0)],kr.prototype,"emojiManager",void 0);_.p([_.U(),_.P("design:type",Number)],kr.prototype,"verticalSuggestionsOffset",void 0);
_.p([_.dq("#dropdown"),_.P("design:type",Object)],kr.prototype,"dropdown",void 0);_.p([_.dq("#dropdown-content"),_.P("design:type",HTMLDivElement)],kr.prototype,"dropdownContent",void 0);_.p([_.ZP("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],kr.prototype,"onKeyDown",null);_.p([_.ZP("keyup"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent,Range]),_.P("design:returntype")],kr.prototype,"onKeyUp",null);
_.p([_.ZP("keypress"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],kr.prototype,"onKeyPress",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-emoji-input"})],kr);
_.a(kr,"ytd-emoji-input",function(){if(mZo!==void 0)return mZo;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return mZo=q},{mode:2});var VZ4;var Ui=function(){var q=_.C.apply(this,arguments)||this;q.hasMaxOptions=!1;return q};
_.Y(Ui,_.C);_.g=Ui.prototype;_.g.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.g.setPrefilledChoices=function(q){var N=this;this.set("pollOptions",[]);var b;for(b=0;b<Math.min(q.length,this.data.maxPollOptions);b++)this.push("pollOptions",q[b].substring(0,this.data.maxPollOptionChars));for(;b<this.data.minPollOptions;b++)this.push("pollOptions","");this.hasMaxOptions=b>=this.data.maxPollOptions;_.ut(this,function(){for(var y=N.pollOptions,J=_.ee(N.hostElement).querySelectorAll(".poll-option-input"),E=0;E<J.length;E++)J[E].value=y[E]})};
_.g.focusChanged=function(){_.Jm(this.hostElement)};
_.g.onInput=function(){var q=this;_.Uk(this,"onInput",function(){q.isValid()?_.e2(q.hostElement,"yt-commentbox-post-enable"):_.e2(q.hostElement,"yt-commentbox-post-disable")},300)};
_.g.setPollOptions=function(){var q=[],N,b=((N=this.data)==null?0:N.minPollOptions)?this.data.minPollOptions:0;for(N=0;N<b;N++)q.push("");return q};
_.g.addPollOption=function(){var q=this;_.e2(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.pY.addLowPriorityJob(function(){var N;(N=_.ee(q.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||N.focus()})};
_.g.onRemovePollOption=function(q){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.e2(this.hostElement,"yt-poll-attachment-dismiss")):(q=this.repeat.indexForElement(q.target.parentNode),q!==null&&(this.splice("pollOptions",q,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.e2(this.hostElement,"yt-commentbox-post-enable"))))};
_.g.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.g.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var q=0,N=this.pollOptions.length;q<N;q++)if(this.pollOptions[q].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.g.getPollOptions=function(){return this.pollOptions};
_.g.setPollOptionsFromInputs=function(){for(var q=_.ee(this.hostElement).querySelectorAll(".poll-option-input"),N=0;N<q.length;N++)this.pollOptions[N]=q[N].value.trim()};
_.g.clearPollOptions=function(){var q=_.ee(this.hostElement).querySelectorAll(".poll-option-input");q=_.Z(q);for(var N=q.next();!N.done;N=q.next())N.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.g.getSimpleString=function(q){return _.ao(q)};
_.g.updateValueFromBinding=function(q){if(q.target&&this.pollOptions){var N=Array.from(_.ee(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(q.target);if(N>=0){var b;this.pollOptions[N]=(b=q.detail.value)!=null?b:"";this.notifyPath("pollOptions."+N)}}};
Ui.prototype.dataChanged=Ui.prototype.dataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Ui.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ui.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Array)],Ui.prototype,"pollOptions",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Ui.prototype,"hasMaxOptions",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Ui.prototype,"enableCreationBox",void 0);
_.p([_.dq("#repeat"),_.P("design:type",vH)],Ui.prototype,"repeat",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ui.prototype,"dataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Ui);
_.a(Ui,"ytd-poll-attachment",function(){if(VZ4!==void 0)return VZ4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return VZ4=q},{mode:2});var j_j;var xZF;var vuJ;var GAM;var f_=function(){return _.C.apply(this,arguments)||this};
_.Y(f_,_.C);_.$H.Object.defineProperties(f_.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],f_.prototype,"rendererBehaviors",void 0);_.p([_.U(),_.P("design:type",Object)],f_.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],f_.prototype,"focused",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("focused"),_.P("design:type",Object),_.P("design:paramtypes",[])],f_.prototype,"ariaSelected",null);_.p([_.Ok({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],f_);
_.a(f_,"yt-user-mention-suggestion-renderer",function(){if(GAM===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;vuJ===void 0&&(vuJ=document.createElement("template"));var y=vuJ;b.call(N,y.content.cloneNode(!0),q.content.firstChild);GAM=q}q=GAM;return q},{mode:2});var YFj;var Q_q;var C_=function(){var q=_.C.apply(this,arguments)||this;q.focusedSuggestionIndex=-1;return q};
_.Y(C_,_.C);_.g=C_.prototype;_.g.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.g.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.g.setFocusedSuggestionIndex=function(q){!this.data||!this.data.suggestions||q<0||q>=this.data.suggestions.length||(this.focusedSuggestionIndex=q,q=this.getSuggestionId(q),this._setFocusedSuggestionId(q))};
_.g.advanceSuggestion=function(q){this.focusedSuggestionIndex===-1||q!==-1&&q!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+q),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.g.ensureSuggestionVisible=function(q){q=this.getSuggestionId(q);q=_.ee(this.hostElement).querySelector("[id="+q+"]");q!=null&&(q.offsetTop<this.hostElement.scrollTop?q.scrollIntoView(!0):q.offsetTop+q.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&q.scrollIntoView(!1))};
_.g.getSuggestionId=function(q){return"user-mention-suggestion-"+q};
_.g.onSuggestionTap=function(q){var N=_.v(q.model.item,A0F);this.ytRendererBehavior.logExplicitClick(N);_.e2(this.hostElement,"yt-user-mention-suggestion-selected",{data:N,index:q.model.index})};
_.g.onSuggestionMouseMove=function(q){q.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(q.model.index)};
_.g.isSuggestionFocused=function(q,N){return q===N};
_.g.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.g.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("focused-suggestion-id-changed",this.focusedSuggestionId))};
C_.prototype.focusedSuggestionIdChangedForBinding=C_.prototype.focusedSuggestionIdChangedForBinding;C_.prototype.onDomChange=C_.prototype.onDomChange;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],C_.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],C_.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],C_.prototype,"focusedSuggestionIndex",void 0);_.p([_.U({readOnly:!0}),_.P("design:type",String)],C_.prototype,"focusedSuggestionId",void 0);
_.p([_.ZP("dom-change"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],C_.prototype,"onDomChange",null);_.p([_.FY("focusedSuggestionId"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],C_.prototype,"focusedSuggestionIdChangedForBinding",null);_.p([_.Ok({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],C_);
_.a(C_,"yt-user-mention-suggestions-dropdown",function(){if(Q_q===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;YFj===void 0&&(YFj=document.createElement("template"));var y=YFj;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Q_q=q}q=Q_q;return q},{mode:2});var Ic=function(){var q=_.C.apply(this,arguments)||this;q.suggestionsResponse=null;q.activeMention=null;q.selectionChangeListener=q.onSelectionChange.bind(q);q.handlesEnabled=_.x("enable_handles_in_mention_suggest_posts");q.handlesInMentionSuggestionsEnabled=_.x("handles_in_mention_suggest_posts");q.zeroPrefixMentionSuggestionEnabled=_.x("enable_zero_prefix_mention_suggestion_web");q.pendingQuery=null;q.flowNonce=null;return q};
_.Y(Ic,_.C);_.g=Ic.prototype;_.g.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.g.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.g.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.g.hasSuggestions=function(q){return!!(q&&q.suggestions&&q.suggestions.length>0)};
_.g.onInput=function(){var q=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var N=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),b=this.activeMention.JSC$11424_getText().slice(-1)===" ",y=this.activeMention.JSC$11424_getText().slice(-2,-1)===" ",J="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11424_getText().slice(-2,
-1))>=0;J=this.zeroPrefixMentionSuggestionEnabled&&J;if(this.activeMention.isCollapsed()||(N||y||J)&&b)this.cancelActiveMention();else{var E=this.activeMention.JSC$11424_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Uk(this,"requestSuggestions",function(){q.requestSuggestions(E)},100)}}}};
_.g.onServiceRequestSent=function(q){q.stopPropagation()};
_.g.onServiceRequestCompleted=function(q){q.stopPropagation();q=q.detail.data;q.query&&(!this.pendingQuery||this.pendingQuery!==q.query)||!this.zeroPrefixMentionSuggestionEnabled&&q.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=q,this.hasSuggestions(q)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.g.onServiceRequestError=function(q){q.stopPropagation()};
_.g.onUserMentionSuggestionSelected=function(q){this.selectSuggestion(q.detail.data,q.detail.index)};
_.g.onSelectionChange=function(){if(this.activeMention){var q=_.N1(),N=this.activeMention.JSC$11424_containsRange(q);q=q&&this.containsHelper(this.dropdown,q.getContainer());N||q||this.cancelActiveMention()}};
_.g.containsHelper=function(q,N){var b;if(((b=window.ShadyDOM)==null?void 0:b.noPatch)===!0)return q.contains(N);for(;N;){if(N===q)return!0;N=N instanceof ShadowRoot?N.host:N.parentNode}return!1};
_.g.maybeStartSuggest=function(){var q=_.N1();if(q&&q.isCollapsed()){var N=q.JSC$11424_getStartNode(),b=q.JSC$11424_getStartOffset();if(N instanceof Text&&!(b<1)){var y=N.textContent;!(y=y&&y.charAt(b-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(y)<0||(this.activeMention=_.pz(N,b-1,q.JSC$11424_getEndNode(),q.JSC$11424_getEndOffset()),this.flowNonce=vy(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.g.updateActiveMention=function(){if(this.activeMention){var q=_.N1();q&&q.isCollapsed()&&(this.activeMention=_.pz(this.activeMention.JSC$11424_getStartNode(),this.activeMention.JSC$11424_getStartOffset(),q.JSC$11424_getEndNode(),q.JSC$11424_getEndOffset()))}};
_.g.requestSuggestions=function(q){if(this.activeMention){var N={suggestions_query:q};this.pendingQuery=q;_.qc(this.hostElement,[this.suggestionsEndpoint,N])}};
_.g.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()};
_.g.focusPreviousSuggestion=function(q){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),q.preventDefault())};
_.g.focusNextSuggestion=function(q){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),q.preventDefault())};
_.g.selectFocusedSuggestion=function(q){if(this.hasSuggestions(this.suggestionsResponse)){var N=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.v(N,A0F)&&(this.selectSuggestion(_.v(N,A0F),this.dropdown.focusedSuggestionIndex),q.preventDefault())}};
_.g.selectSuggestion=function(q,N){if(q){var b=this.activeMention;if(b){var y=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&q.handle?_.fG(y,"\u00a0\u2068@"+q.handle+"\u2069\u00a0"):this.handlesEnabled?_.fG(y,"\u00a0"+q.displayName+"\u00a0"):_.fG(y,"\u00a0@"+q.displayName+"\u00a0");AB(y,"/channel/"+q.channelId);y.classList.add("yt-formatted-string","yt-simple-endpoint");y.setAttribute("spellcheck","false");b.isCollapsed()||b.JSC$11424_removeContents();b.insertNode(y,!0);q=document.createTextNode(" ");
y.parentNode.insertBefore(q,y.nextSibling);window.getSelection().collapse(q,1);N={suggestionSelected:{suggestionIndex:N}};if(this.zeroPrefixMentionSuggestionEnabled){var J;N.suggestionSelected.isZeroPrefix=((J=this.suggestionsResponse)==null?void 0:J.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",N);this.cancelActiveMention();_.e2(this.hostElement,"yt-mention-inserted")}}};
_.g.getPositionTarget=function(q){return q&&q.getBrowserRangeObject()};
_.g.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.g.onFocusedSuggestionIdChanged=function(q){var N=_.GFJ(this.hostElement)[0];N&&(q.detail.value?N.setAttribute("aria-activedescendant",q.detail.value):N.removeAttribute("aria-activedescendant"))};
_.g.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.g.logGELEvent=function(q,N){q={eventType:q,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};N&&(q=Object.assign(q,N));_.W_("userMentionAutoCompleteBoxEvent",q)};
Ic.prototype.onDomChange=Ic.prototype.onDomChange;Ic.prototype.onUserMentionSuggestionSelected=Ic.prototype.onUserMentionSuggestionSelected;Ic.prototype.onServiceRequestError=Ic.prototype.onServiceRequestError;Ic.prototype.onServiceRequestCompleted=Ic.prototype.onServiceRequestCompleted;Ic.prototype.onServiceRequestSent=Ic.prototype.onServiceRequestSent;Ic.prototype.onInput=Ic.prototype.onInput;_.p([_.O(_.kT),_.P("design:type",Object)],Ic.prototype,"ironA11yKeysBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],Ic.prototype,"suggestionsEndpoint",void 0);_.p([_.U(),_.P("design:type",Object)],Ic.prototype,"suggestionsResponse",void 0);_.p([_.U(),_.P("design:type",Object)],Ic.prototype,"activeMention",void 0);_.p([_.dq("#dropdown"),_.P("design:type",Object)],Ic.prototype,"dropdown",void 0);_.p([_.dq("#iron-dropdown"),_.P("design:type",Object)],Ic.prototype,"ironDropdown",void 0);
_.p([_.ZP("input"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Ic.prototype,"onInput",null);_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ic.prototype,"onServiceRequestSent",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ic.prototype,"onServiceRequestCompleted",null);
_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ic.prototype,"onServiceRequestError",null);_.p([_.ZP("yt-user-mention-suggestion-selected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ic.prototype,"onUserMentionSuggestionSelected",null);
_.p([_.ZP("dom-change"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ic.prototype,"onDomChange",null);_.p([_.Ok({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],Ic);
_.a(Ic,"yt-user-mention-autosuggest-input",function(){if(xZF===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;j_j===void 0&&(j_j=document.createElement("template"));var y=j_j;b.call(N,y.content.cloneNode(!0),q.content.firstChild);xZF=q}q=xZF;return q},{mode:2});var TF=null;
_.x9({is:"ytd-commentbox",_template:function(){if(tZJ!==void 0)return tZJ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return tZJ=q},
behaviors:[_.Nid.YtHostElementBehavior,_.kT,_.Dc.YtActionHandlerBehavior,_.qT.YtComponentBehavior,_.rT.YtRendererstamperBehavior,_.ZyM.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(q,N){return _.Ji(q.entities,"aadcGuidelinesStateEntityPayload",N)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(q,N){return _.Ji(q.entities,"commentboxStateEntity",N)},
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 _.Zt}},
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:_.x("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.x("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",_.gq(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(q){this.fire(q?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(q){this.set("submitButtonDisabled",void 0);this.clear();q&&this.computeIsEmojiButtonDisplayed_(q)&&(q=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&q.updateEmojiCategories()},
observePrefilledImage_:function(q,N,b){this.isValidPrefilledImage_(q,N,b)&&(this.prefilledAttachment_="image",this.prefilledImageData_=N,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(q,N){this.isValidPrefilledVideo_(q,N)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(q){q&&q.pollData&&q.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(q.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.VO();this.focus()},
detached:function(){document.removeEventListener("tap",_.gq(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(q){q=q.detail;q=q.isCustomEmoji?q.shortcuts[0]:q.emojiId;var N=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(N,q);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var q=_.N1();if(q){q=q.getBrowserRangeObject();for(var N=q.commonAncestorContainer;N;){if(N===this.getEditableTextArea_())return q;N=N.parentNode}}q=this.getEditableTextArea_();q=_.Lz(q,q.childNodes.length);q.select();return q.getBrowserRangeObject()},
insertTextWithEmojis_:function(q,N,b){(N=this.emojiManager.createDocumentFragment(N,!0,!1,b===void 0?!0:b))&&N.childNodes.length!==0&&(q.collapsed||q.deleteContents(),b=N.lastChild,q.insertNode(N),_.mO1(b).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var q=_.N1();if(q){var N=q.JSC$11424_getStartNode(),b=q.JSC$11424_getEndNode();if(Fbz(N)&&Fbz(b)){var y=q.JSC$11424_getStartOffset(),J;if(_.yW&&N.nodeType===Node.ELEMENT_NODE&&(J=_.tc4(N)))_.Lz(J,0).select();else{J=BG(N)?N:_.Ph(N,BG);var E=BG(b)?b:_.Ph(b,BG);if(J||E)if(q.isCollapsed()){if(N.nodeType===Node.TEXT_NODE){q=!0;y===N.length&&(q=!1);if(TF==="end"||TF==="right")q=!1;N=N.parentNode;q=[].concat(_.a9(N.parentNode.childNodes)).indexOf(N)+(q?0:1);_.Lz(N.parentNode,
q).select()}}else J?J.previousSibling&&J.previousSibling.length>0?_.pz(b,q.JSC$11424_getEndOffset(),J.previousSibling,J.previousSibling.length-1).select():(N=document.createTextNode("\u200b"),J.parentNode.insertBefore(N,J),_.pz(b,q.JSC$11424_getEndOffset(),N,0).select()):E&&(E.nextSibling&&E.nextSibling.length>0?_.pz(N,q.JSC$11424_getStartOffset(),E.nextSibling,1).select():(b=document.createTextNode("\u200b"),E.parentNode.insertBefore(b,E.nextSibling),_.pz(N,q.JSC$11424_getStartOffset(),b,b.length).select()));
TF=null}}else TF=null}else TF=null},
leftKeyPressed_:function(){TF="left"},
rightKeyPressed_:function(){TF="right"},
endKeyPressed_:function(){TF="end"},
maybeDeleteChip_:function(){var q=$DR(!0);if(q){var N=_.N1(),b=N.JSC$11424_getStartNode();N=N.JSC$11424_getStartOffset();_.sC(b,N,q,q.childNodes.length).select()}},
maybeBackspaceChip_:function(){var q=$DR(!1);if(q){var N=_.N1(),b=N.JSC$11424_getStartNode();N=N.JSC$11424_getStartOffset();_.sC(b,N,q,0).select()}},
maybeBackspaceChipWordMode_:function(q){var N=_.N1();if(N.isCollapsed()){var b=N.JSC$11424_getStartNode();N=N.JSC$11424_getStartOffset();var y=tBA(b,N,!0);y&&(_.sC(b,N,y,0).select(),document.execCommand("delete"),q.preventDefault(),q.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(q){var N=_.N1();if(N.isCollapsed()){var b=N.JSC$11424_getStartNode();N=N.JSC$11424_getStartOffset();var y=tBA(b,N,!1);y&&(_.sC(b,N,y,y.childNodes.length).select(),document.execCommand("delete"),q.preventDefault(),q.stopImmediatePropagation())}},
onTap_:function(q){if(!q.defaultPrevented&&(q.currentTarget.tagName==="YTD-COMMENTBOX"&&BG(q.target)&&q.preventDefault(),this.isEmojiPickerDisplayed)){var N=this.$$("#emojis"),b=this.$$("#emoji-button"),y=this.getEditableTextArea_();if((q=q.path?q.path:q.composedPath&&q.composedPath())&&!q.includes(N)&&!q.includes(y)&&!q.includes(b))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(q,N,b){return q==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&N!==void 0&&N.encryptedBlobId!==null&&N.sourceExternalVideoId!==null&&b!==void 0&&b.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(q,N){return q==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!N&&!!N.videoRenderer&&!!N.videoRenderer.videoId},
isValidPrefilledAttachment_:function(q,N,b){return this.isValidPrefilledImage_(q,N,b)||this.isValidPrefilledVideo_(q,b)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.x("enable_multi_image_post_creation")){var q=this.$$("ytd-backstage-multi-image-select-renderer");q&&q.hasImages()&&q.cancel()}else(q=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&q.cancel();(q=this.$["poll-attachment"])&&this.hasPoll_&&q.clearPollOptions();(q=this.$["image-poll-attachment"])&&this.hasImagePoll_&&q.resetPollOptions();(q=this.$["quiz-attachment"])&&this.hasQuiz_&&q.resetQuizOptions();
(q=this.$["video-link-attachment"])&&this.hasVideo_&&q.cancel();(q=this.$["access-restrictions-selector"].firstElementChild)&&q.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 _.ee(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.ee(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(q,N){q=dDz(q,this.emojiManager,N).cloneNode(!0);for(N=q.firstChild;N;)if(N.nodeType!==1)N=N.nextSibling;else switch(N.tagName){case "BR":var b=_.lu();_.Gb4(b,N);N=b.nextSibling;break;case "DIV":(b=N.lastChild)&&N.nextSibling&&_.k_(_.lu(),b);N.previousSibling&&(N.previousSibling.nodeType===1||N.previousSibling.nodeType===3&&!N.previousSibling.textContent.endsWith("\n"))&&_.hx(_.lu(),N);b&&b.nodeName==="BR"&&_.lC(b);b=N;N.hasChildNodes()?(N=N.firstChild,
_.Ypx(b)):(N=N.nextSibling,_.lC(b));break;default:N=N.nextSibling}return mDd(q)},
onAddImageError_:function(q){q.stopPropagation();this.errorMessage_=_.nD(q.detail)},
setTextAreaValue_:function(q){q||(q="");var N=this.getEditableFormattedString_();N.text="";this.getEditableTextArea_().innerText="";typeof q==="string"&&(q={runs:[{text:q}]});N.text=q},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();TF=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var q=this.getEditableTextArea_();q&&(_.Lz(q,q.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.M7("HTML_DIR")==="rtl"){var q=this.getEditableTextArea_(),N=this.getTextAreaValue()!==""?"auto":"rtl";q.setAttribute("dir",N)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var q;return HzZ((q=this.$["quiz-attachment"])==null?void 0:q.getExplanationText())||HzZ(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var q=null;if(this.isEmojiButtonDisplayed){var N=this.getInputRange_();N&&(q=this.emojiInput.retrieveTextBeforeRange(N))}this.insertText_(q,!0);this.updateCharCount_();this.setSubmitButton_();q=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=q.scrollHeight>q.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var q=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:q})},
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(q){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(q)},
onPasteEmoji_:function(q){q.preventDefault();q.stopImmediatePropagation();q=q.clipboardData.getData("text/plain");this.insertText_(q,!1,!1)},
insertText_:function(q,N,b){N=N===void 0?!1:N;b=b===void 0?!0:b;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&q){var y=this.getInputRange_().cloneRange();this.emojiManager&&y&&(N&&this.emojiInput.offsetStartOfRangeBy(y,q.length),this.insertTextWithEmojis_(y,q,b),Rin(this.getEditableTextArea_().lastChild)||(y=this.getInputRange_().cloneRange()),y&&(this.emojiInput.updateSuggestions(y,q),this.updateSuggestionOffset_(y)))}},
setSubmitButton_:function(){if(this.data){var q=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",N=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(q||N){var b=this.getTextAreaValue().trim();N=b===this.previousText_;b=!b||this.aboveCharLimit_;q&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(b=this.aboveCharLimit_);this.submitButtonDisabled=
N||b||!this.getTextLength();q&&_.x("enable_post_scheduling")&&(this.submitButtonDisabled=N&&!this.scheduledPublishTimeSec_||b)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.ao,computeCreationBoxClass_:function(q){return q?"focused":"not-focused"},
computeFooterMessageClass_:function(q,N){return N?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(q,N){return N?N:q},
computeFooterMessageHidden_:function(q,N){return!N&&!q},
computePlaceholderText_:function(q,N,b){return(b==="video"||b==="image")&&(q==null?0:q.prefilledPlaceholderText)?q==null?void 0:q.prefilledPlaceholderText:N==="poll"||N==="image-poll"?q==null?void 0:q.pollPostPlaceholderText:N==="quiz"?q==null?void 0:q.quizPostPlaceholderText:N==="image"?q==null?void 0:q.imagePostPlaceholderText:q==null?void 0:q.placeholderText},
computeHideAttachmentButtons_:function(q,N,b,y){return q===void 0?!1:y&&this.getSimpleString(y)===this.getSimpleString(q.rateLimitErrorMessage)?!0:N!=="none"||b!=="none"||!q.videoLinkButton&&!q.pollButton&&!q.imagePollButton&&!q.quizButton&&!q.imageButton},
computeHideDismissableAttachment_:function(q){return q!=="image"&&q!=="video"},
computeHasVideo_:function(q){return q==="video"},
computeHasImage_:function(q){return q==="image"},
computeHasPoll_:function(q){return q==="poll"},
computeHasImagePoll_:function(q){return q==="image-poll"},
computeHasQuiz_:function(q){return q==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(q){return q&&q.backstageAttachment?q.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!q.backstageAttachment.quizRenderer&&!q.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(q){if(this.isValidPrefilledAttachment_(q.purpose,q.prefilledImageData,q.backstageAttachment))return q.backstageAttachment},
computeEditAttachment_:function(q){if(this.computePrefilledContent_(q)===void 0)return q.backstageAttachment},
computeAuthorThumbnailDimension_:function(q,N){return q&&!N?24:40},
computeImageUploadEndpoint_:function(q){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",q)},
computeRateLimitErrorCommands_:function(q){var N,b;return q==null?void 0:(N=q.advancedTierFeatures)==null?void 0:(b=N.rateLimit)==null?void 0:b.rateLimitCommands},
computeIsBackstageComment_:function(q){return!(!q||q!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(q){return this.get("submitButton.buttonRenderer.serviceEndpoint",q)||this.get("replyButton.buttonRenderer.serviceEndpoint",q)||this.get("postButton.buttonRenderer.serviceEndpoint",q)},
computeSubmitButtonOverride:function(){if(_.x("web_modern_buttons")){var q,N;return{segmentedPosition:this.dropdownSchedulePanel_||!((q=this.data)==null?0:(N=q.postOptionsMenu)==null?0:N.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.x("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(q,N){q=this.get("submitButton.buttonRenderer",q)||this.get("replyButton.buttonRenderer",q)||this.get("postButton.buttonRenderer",q);N&&(q=N);q&&(q=Object.assign({},q),q.serviceEndpoint=void 0,q.isDisabled=this.submitButtonDisabled);return q},
computeHasExternalLinksAccess_:function(q){if(_.x("enable_rfa_external_links")){var N,b,y;return(y=q==null?void 0:(N=q.advancedTierFeatures)==null?void 0:(b=N.externalLinks)==null?void 0:b.allowExternalLinks)!=null?y:!0}return!0},
computeIsEmojiButtonDisplayed_:function(q){return q.emojiButton&&q.emojiPicker&&q.emojiPicker.emojiPickerRenderer&&q.emojiPicker.emojiPickerRenderer.categories?q.emojiPicker.emojiPickerRenderer.categories.find(function(N){return N.emojiPickerCategoryRenderer?N.emojiPickerCategoryRenderer.emojiIds&&N.emojiPickerCategoryRenderer.emojiIds.length>0:N.emojiPickerUpsellCategoryRenderer?N.emojiPickerUpsellCategoryRenderer.emojis&&N.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(q){return q.charLimit?q.charLimit:null},
computeDropdownSchedulingPanel_:function(q,N){if(q==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&N)return N},
computeInlineSchedulingPanel_:function(q,N){if(q==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&N)return N},
computeHideAuthorThumbnail_:function(q,N){return q||this.computeUseIdentityChip_(N)},
computeHideIdentityChipRenderer_:function(q,N){return q||!this.computeUseIdentityChip_(N)},
computeUseIdentityChip_:function(q){return!!q&&!!q.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(q){var N,b,y,J;(q==null?0:(N=q.detail)==null?0:(b=N.endpoint)==null?0:b.ypcGetOffersEndpoint)||(q==null?0:(y=q.detail)==null?0:(J=y.endpoint)==null?0:J.ypcOffersEndpoint)?(q.stopPropagation(),_.qc(this,[q.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",q)&&(q.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(q){this.addedAttachment="video";this.selectedVideoId_=q.detail.videoId},
commentboxStateEntityChanged_:function(q){var N=this;(q==null?void 0:q.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(q==null?void 0:q.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){N.focus()})},
onYtServiceRequestSent_:function(q,N){if(N.actions)for(q=_.Z(N.actions),N=q.next();!N.done;N=q.next())N.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(q){this.isLoading=!1;var N=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",q),b,y,J,E=q==null?void 0:(b=q.detail)==null?void 0:(y=b.data)==null?void 0:(J=y.actionResult)==null?void 0:J.commentboxStateEntityKey;if(N)this.errorMessage_=N;else if(E){var F;this.dismissData_=q==null?void 0:(F=q.detail)==null?void 0:F.data;this.commentboxStateKey_=E}else{this.clear();var R;this.fire("yt-commentbox-dismiss",q==null?void 0:(R=q.detail)==
null?void 0:R.data)}},
onYtServiceRequestError_:function(q){q.stopPropagation();this.isLoading=!1;var N,b;if(((N=this.data)==null?void 0:N.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((b=this.data)==null?void 0:b.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(N=this.get("detail.error.args",q)||[],N.length>1&&N[1].message){this.handlePostsServiceRequestError_(N[1].message);return}(q=this.get("detail.error.message",q))?this.errorMessage_=this.data.errorMessage||_.nD(q):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(q){if(_.x("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var N=_.Z(this.rateLimitErrorCommands),b=N.next();!b.done;b=N.next())if(b=b.value,b.errorLabel===q){_.yI(b.command,this.hostElement);return}this.errorMessage_=_.nD(q)},
submitIfNotBackstagePost_:function(q){if(!this.isBackstagePost)this.onSubmit_(q)},
onSubmit_:function(q){var N=this,b,y,J,E,F,R,c,z,m,r,X,V,G,w,D;return _.d(function(k){switch(k.nextAddress){case 1:q.stopPropagation();if(!N.serviceEndpoint||!N.isValidInput_())return k.return();if(N.shouldShowPostAadcNotice_())return N.showPostAadcNotice_(),k.return();if(N.shouldShowCommentAadcNotice_())return N.showCommentAadcNotice_(),k.return();if(!(N.$$("ytd-backstage-multi-image-select-renderer")&&N.hasImage_&&_.x("enable_multi_image_post_creation"))){k.jumpTo(2);break}b=N.$$("ytd-backstage-multi-image-select-renderer");
return k.yield(b.getAllUploadStatuses(),3);case 3:y=k.yieldResult;if(!y)return k.return();J=_.Z(y);for(E=J.next();!E.done;E=J.next())if(F=E.value,F.encryptedBlobId===void 0)return N.isLoading=!1,c=R=void 0,N.errorMessage_=(c=(R=N.imageUploadEndpoint_)==null?void 0:R.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?c:null,k.return();return k.return(N.submitForm_(void 0,void 0,void 0,void 0,b.images,N.taggedVideoId_));case 2:if(!N.hasImagePoll_||!N.$["image-poll-attachment"]){k.jumpTo(4);
break}return k.yield(N.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:z=k.yieldResult;if(!z)return k.return();m=_.Z(z);for(r=m.next();!r.done;r=m.next())if(X=r.value,!X.encryptedBlobId)return N.isLoading=!1,V=void 0,N.errorMessage_=(V=N.data.errorMessage)!=null?V:null,k.return();case 4:w=(G=N.$$("ytd-backstage-image-select-renderer"))&&G.uploadPromise(),D=N.getSharedPostId_(),w?w.then(function(){N.submitForm_.apply(N,_.a9(_.MB.apply(0,arguments)))}).catch(function(f){N.isLoading=!1;
N.errorMessage_=_.nD(f.message)}):N.selectedVideoId_?N.submitForm_(void 0,N.selectedVideoId_):N.prefilledAttachment_==="image"?N.submitForm_(N.prefilledImageData_.encryptedBlobId,void 0,void 0,N.prefilledImageData_.sourceExternalVideoId,void 0,N.taggedVideoId_):N.prefilledAttachment_==="video"?N.submitForm_(void 0,N.data.backstageAttachment.videoRenderer.videoId):D?N.submitForm_(void 0,void 0,D):N.taggedVideoId_!==void 0?N.submitForm_(void 0,void 0,void 0,void 0,void 0,N.taggedVideoId_):N.submitForm_(),
_.hj(k)}})},
openSchedulingPanel:function(q){q&&q.scheduleButton&&q.scheduleButton.buttonRenderer&&(this.scheduleButton_=q.scheduleButton.buttonRenderer);q&&q.dateTimePicker&&this.set("data.schedulingDateTimePicker",q.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(q){q.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(q){q.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(q){q.stopPropagation();q.detail.alertMessage&&(this.alertMessage_=q.detail.alertMessage)},
onImageSelected_:function(q){q.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(q){q.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(q){q.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(q.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(q){q.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(q){var N=this.$["video-link-attachment"];N&&N.onLaunchVideoPicker(q)},
onAttachmentDismiss_:function(q){q.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"&&_.x("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.x("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 q;if(this.addedAttachment==="image-poll"&&((q=this.$["image-poll-attachment"])==null||!q.isValid()))return!1;var N;if(this.addedAttachment==="quiz"&&((N=this.$["quiz-attachment"])==null||!N.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;q=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(q=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")q=!0;return q||!!this.getTextAreaValue().trim()},
submitForm_:function(q,N,b,y,J,E){var F=this.getTextAreaValue().trim(),R={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&F===this.previousText_&&(F=void 0);F!==void 0&&(R.comment_text=F);this.isLoading=!0;E!=void 0&&(R.tagged_video_id=E);q?(R.image_blob_id=q,this.imagePreviewCoordinates_&&(R.image_preview_coordinates=this.imagePreviewCoordinates_)):N?R.attached_video_id=N:b?R.shared_post_id=b:J&&J.length>0&&(R.images_data=J.map(function(c){return{encryptedBlobId:c.encryptedBlobId,
previewCoordinates:c.previewCoordinates}}));
y&&(R.source_video_id=y);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(R.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(R.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(R.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(R.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.x("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(R.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.qc(this,[this.serviceEndpoint,R])},
onIsInputFocusChanged_:function(q,N){q?this.fire("yt-autonav-pause-focus"):N!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(q){var N=this.getEditableTextArea_();[].concat(_.a9(q.dataTransfer.items)).forEach(function(b){b.kind==="string"&&b.type.match("^text/plain")&&b.getAsString(function(y){N.appendChild(document.createTextNode(y))})});
q.preventDefault()},
preventDefault_:function(q){q.preventDefault()},
onSuggestionInsert_:function(q){this.insertTextWithEmojis_(q.detail.range,q.detail.text)},
onEmojiSuggestionClick_:function(q){this.emojiInput.insertSuggestion(q.detail)},
computeSubmitButtonClass_:function(q,N){return!N||q?"":"with-options"},
updateSuggestionOffset_:function(q){if(this.emojiInput&&_.ee(this.emojiInput).querySelector("#dropdown")){var N=this.getEditableTextArea_().getBoundingClientRect().bottom,b=q.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(N-b)+5;N=this.getEditableTextArea_().getBoundingClientRect().left;q=q.getBoundingClientRect().left-N;_.ee(this.emojiInput).querySelector("#dropdown").style.marginLeft=q+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(q){if(_.x("enable_post_scheduling")&&this.data&&this.data.purpose){q=q.detail;if(Math.floor(Date.now()/1E3)>=q)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var N=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(N)||N!==q?this.scheduledPublishTimeSec_=q:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=q;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var q=["image-button","image-poll-button","poll-button","quiz-button"];_.x("auto_convert_posts_video_tag")||q.push("video-link-button");return q},
getButtonRenderer:function(q,N){if(q)switch(N){case "video-link-button":var b;return((b=q.videoLinkButton)==null?void 0:b.buttonRenderer)||void 0;case "image-button":var y;return((y=q.imageButton)==null?void 0:y.buttonRenderer)||void 0;case "poll-button":var J;return((J=q.pollButton)==null?void 0:J.buttonRenderer)||void 0;case "image-poll-button":var E;return((E=q.imagePollButton)==null?void 0:E.buttonRenderer)||void 0;case "quiz-button":var F;return((F=q.quizButton)==null?void 0:F.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var q;return(q=this.data)==null||!q.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var q,N;return!((q=this.data)==null||!q.openAadcDialog)&&!((N=this.aadcGuidelinesState_)==null||!N.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.M7("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var q;((q=this.data)==null?0:q.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.ed("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(q){q.clickTrackingParams&&_.FR().clickCommand(q);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.By(this,"yt-close-popup-action")},
onHideIdentityChip:function(q){var N;this.set("data.placeholderText",(N=q.hideIdentityChipAction)==null?void 0:N.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var si=function(){var q=_.C.apply(this,arguments)||this;q.isOpen=!1;q.modern=_.x("web_modern_buttons");q.roundedContainer=!0;q.dropdownButtonOverride=_.x("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;q.inPopupContainer=!1;q.isCommentboxLoading=!1;var N=["image-button","image-poll-button","poll-button"];_.x("enable_quiz_creation")&&N.push("quiz-button");_.x("auto_convert_posts_video_tag")||N.push("video-link-button");q.attachmentButtonIds=N;q.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 q};
_.Y(si,_.C);_.g=si.prototype;_.g.computeButtonOverride=function(){var q;return((q=this.data)==null?0:q.postOptionsMenu)&&_.x("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.g.configureRendererStamper=function(){var q={"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]]"}}}}};_.x("auto_convert_posts_video_tag")||(q["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return q};
_.g.ready=function(){var q=this,N=_.ee(this.hostElement).querySelector("#placeholder-area"),b=function(y){q.onOpen(y)};
N.addEventListener("tap",b);N.addEventListener("keypress",b)};
_.g.showButtonEduTooltip=function(){var q,N,b,y,J,E,F;if(_.x("enable_quiz_creation")&&((q=this.data)==null?0:(N=q.quizButton)==null?0:(b=N.buttonRenderer)==null?0:(y=b.hint)==null?0:(J=y.hintRenderer)==null?0:(E=J.content)==null?0:(F=E.bubbleHintRenderer)==null?0:F.text)&&(_.KP.getInstance(),q=DG(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(q==null?void 0:
q.length)>0)){this.ytComponentBehavior.resolveCommand(q[0],{form:{element:this.quizButton}});return}var R;if((R=this.data)==null?0:R.imagePollButtonTooltip)if(_.KP.getInstance(),R=DG(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(R==null?void 0:R.length)>0){this.ytComponentBehavior.resolveCommand(R[0],{form:{element:this.imagePollButton}});return}var c;_.x("enable_multi_image_post_creation")&&
((c=this.data)==null?0:c.multiImageButtonTooltip)&&(_.KP.getInstance(),c=DG(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(c==null?void 0:c.length)>0&&this.ytComponentBehavior.resolveCommand(c[0],{form:{element:this.imageButton}}))};
_.g.onCreatePollAction=function(q){_.v(q,x2x)&&(this.JSC$16020_commentbox.addedAttachment="poll",this.openDialog())};
_.g.onAddVideoLinkAction=function(q){if(_.v(q,rtj))this.JSC$16020_commentbox.onAddVideoLink(q)};
_.g.onShowSchedulingPanelCommand=function(q){(q=_.v(q,PKE))&&this.openSchedulingPanel(q)};
_.g.onCreateImagePollCommand=function(q){_.v(q,PwT)&&(this.JSC$16020_commentbox.openImagePollComponent(),this.openDialog())};
_.g.onCreateQuizCommand=function(q){_.v(q,M9o)&&(this.JSC$16020_commentbox.openQuizComponent(),this.openDialog())};
_.g.openSchedulingPanel=function(q){_.x("enable_post_scheduling")&&(this.openDialog(),this.JSC$16020_commentbox.openSchedulingPanel(q))};
_.g.onCreateCommentAction=function(q){this.get("createCommentAction.contents",q)&&(this.JSC$16020_commentbox.clear(),this.closeDialog())};
_.g.onOpen=function(q){q instanceof KeyboardEvent&&q.type==="keypress"&&q.keyCode!==13&&q.keyCode!==32||(this.data.prepareAccountEndpoint?_.e2(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.g.onYtCommentboxDismiss=function(){this.closeDialog()};
_.g.onYtCommentboxLoadingStart=function(q){q.stopPropagation();this.isCommentboxLoading=!0};
_.g.onYtCommentboxLoadingEnd=function(q){q.stopPropagation();this.isCommentboxLoading=!1};
_.g.onYtVideoLinkButtonCancel=function(q){q.stopPropagation();this.onOpen(q)};
_.g.onYtVideoLinkSelected=function(q){q.stopPropagation();this.onOpen(q)};
_.g.onIronSelect=function(q){q.stopPropagation();q.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=q.detail.item.value&&(this.accessRestriction?(this.accessRestriction=q.detail.item.value,this.onOpen(q)):this.accessRestriction=q.detail.item.value)};
_.g.onYtNavigate=function(q){this.get("detail.endpoint.backstageImageUploadEndpoint",q)&&(this.JSC$16020_commentbox.addedAttachment="image",this.JSC$16020_commentbox.submitButtonDisabled=!0,this.onOpen(q))};
_.g.onRequestSent=function(q){for(var N=_.Z(q.detail),b=N.next();!b.done;b=N.next())_.v(b.value,J$j)&&(this.JSC$16020_commentbox.addedAttachment="image",this.JSC$16020_commentbox.submitButtonDisabled=!0,this.onOpen(q))};
_.g.openDialog=function(){var q;(q=this.data)!=null&&q.isIneligibleForCommunityPagePostCreation||(this.JSC$16020_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16020_commentbox.focus())};
_.g.onPopupClosed=function(){_.KP.getInstance()};
_.g.computeCreationDisabled=function(q){return!!q};
_.g.computeIsCreationDialog=function(q){return!!q&&q==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.g.computeDisabledPostButton=function(q){if(!q)return null;q.isDisabled=!0;return q};
_.g.computeIsCreationDialogWithHeader=function(q){return!this.inPopupContainer&&!!q&&!!q.authorText&&q.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.g.computeIsHeaderHidden=function(q,N){return!q||N};
_.g.computeDropdownRendererClasses=function(q){return q?["text-secondary-style"]:[]};
_.g.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var q=_.ee(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;q&&q.reset()};
si.prototype.onPopupClosed=si.prototype.onPopupClosed;si.prototype.onRequestSent=si.prototype.onRequestSent;si.prototype.onYtNavigate=si.prototype.onYtNavigate;si.prototype.onIronSelect=si.prototype.onIronSelect;si.prototype.onYtVideoLinkSelected=si.prototype.onYtVideoLinkSelected;si.prototype.onYtVideoLinkButtonCancel=si.prototype.onYtVideoLinkButtonCancel;si.prototype.onYtCommentboxLoadingEnd=si.prototype.onYtCommentboxLoadingEnd;si.prototype.onYtCommentboxLoadingStart=si.prototype.onYtCommentboxLoadingStart;
si.prototype.onYtCommentboxDismiss=si.prototype.onYtCommentboxDismiss;si.prototype.showButtonEduTooltip=si.prototype.showButtonEduTooltip;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],si.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],si.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],si.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],si.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],si.prototype,"isOpen",void 0);_.p([_.U({computed:"computeButtonOverride(data)"}),_.P("design:type",Object)],si.prototype,"buttonOverride",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],si.prototype,"modern",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],si.prototype,"roundedContainer",void 0);_.p([_.U(),_.P("design:type",Object)],si.prototype,"dropdownButtonOverride",void 0);_.p([_.U({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.P("design:type",Boolean)],si.prototype,"creationDisabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],si.prototype,"enableCreationBox",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.P("design:type",Boolean)],si.prototype,"isCreationDialog",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],si.prototype,"inPopupContainer",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.P("design:type",Boolean)],si.prototype,"isCreationDialogWithHeader",void 0);_.p([_.U(),_.P("design:type",Object)],si.prototype,"accessRestriction",void 0);
_.p([_.U({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.P("design:type",Array)],si.prototype,"dropdownRendererClasses",void 0);_.p([_.U(),_.P("design:type",Object)],si.prototype,"isCommentboxLoading",void 0);_.p([_.U(),_.P("design:type",Array)],si.prototype,"attachmentButtonIds",void 0);_.p([_.dq("#image-button"),_.P("design:type",HTMLElement)],si.prototype,"imageButton",void 0);
_.p([_.dq("#image-poll-button"),_.P("design:type",HTMLElement)],si.prototype,"imagePollButton",void 0);_.p([_.dq("#quiz-button"),_.P("design:type",HTMLElement)],si.prototype,"quizButton",void 0);_.p([_.dq("#commentbox"),_.P("design:type",Object)],si.prototype,"JSC$16020_commentbox",void 0);_.p([_.FY("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],si.prototype,"showButtonEduTooltip",null);
_.p([_.ZP("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],si.prototype,"onYtCommentboxDismiss",null);_.p([_.ZP("yt-commentbox-loading-start"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],si.prototype,"onYtCommentboxLoadingStart",null);
_.p([_.ZP("yt-commentbox-loading-end"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],si.prototype,"onYtCommentboxLoadingEnd",null);_.p([_.ZP("yt-video-link-button-cancel"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],si.prototype,"onYtVideoLinkButtonCancel",null);
_.p([_.ZP("yt-video-link-selected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],si.prototype,"onYtVideoLinkSelected",null);_.p([_.ZP("iron-select"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],si.prototype,"onIronSelect",null);_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],si.prototype,"onYtNavigate",null);
_.p([_.ZP("yt-service-request-sent-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],si.prototype,"onRequestSent",null);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],si.prototype,"onPopupClosed",null);_.p([_.I({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],si);
_.a(si,"ytd-backstage-post-dialog-renderer",function(){if(Mhl!==void 0)return Mhl;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Mhl=q},{mode:1});var Obq;var wNE;var n_=function(){return _.C.apply(this,arguments)||this};
_.Y(n_,_.C);_.g=n_.prototype;_.g.computeHeartButtonStyle=function(q){return(q==null?0:q.styleType)?q.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.g.onYtButtonTap=function(){if(this.data.isEnabled){var q=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(q=this.getEndpoint(q))&&_.tz().resolve(_.rO).resolveCommand(q,{form:{element:this.hostElement}})}else(q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(q)};
_.g.toggle=function(q){this.set("data.isHearted",q!==void 0?q:!this.data.isHearted)};
_.g.getEndpoint=function(q){var N,b=(N=this.data)==null?void 0:N.heartEndpoint,y;N=(y=this.data)==null?void 0:y.unheartEndpoint;if(b&&N)return q?N:b};
_.g.computeButtonAccessibility=function(q,N){var b,y,J=q==null?void 0:(b=q.heartedAccessibility)==null?void 0:(y=b.accessibilityData)==null?void 0:y.label,E,F;q=q==null?void 0:(E=q.unheartedAccessibility)==null?void 0:(F=E.accessibilityData)==null?void 0:F.label;return N?J:q};
_.$H.Object.defineProperties(n_.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 q;return _.x("kevlar_system_icons")&&!((q=this.data)==null||!q.isHearted)}}});
n_.prototype.onYtButtonTap=n_.prototype.onYtButtonTap;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.r7),_.P("design:type",Object)],n_.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],n_.prototype,"data",void 0);_.p([_.l("data.isHearted"),_.P("design:type",Object),_.P("design:paramtypes",[])],n_.prototype,"heartTooltip",null);
_.p([_.l("data.isHearted"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],n_.prototype,"iconFilled",null);_.p([_.U({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.P("design:type",String)],n_.prototype,"buttonAccessibility",void 0);_.p([_.U({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.P("design:type",String)],n_.prototype,"heartButtonStyle",void 0);
_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],n_.prototype,"onYtButtonTap",null);_.p([_.I({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],n_);
_.a(n_,"ytd-creator-heart-renderer",function(){if(wNE!==void 0)return wNE;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return wNE=q},{mode:1});var ac=function(){var q=_.C.apply(this,arguments)||this;q.hasCreatorReply=!1;q.buttonOverrides={size:"S",iconPosition:"icon-only"};q.replyButtonOverrides={size:"S",type:"text"};q.forceIconButton=!_.x("web_modern_buttons");q.modern=_.x("web_modern_buttons");q.buttonTooltipPosition="bottom";q.systemIcons=_.x("kevlar_system_icons");q.replyDialog=null;return q};
_.Y(ac,_.C);_.g=ac.prototype;
_.g.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]]"}}}}}};
_.g.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.g.dataChange=function(){this.replyDialog&&_.ee(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var q,N,b;this.isLiked=this.systemIcons&&!!((q=this.data)==null?0:(N=q.likeButton)==null?0:(b=N.toggleButtonRenderer)==null?0:b.isToggled)};
_.g.computeShowVoteCountBeginning=function(q,N){return q===void 0||N===void 0?!0:q.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!N&&this.ytRendererBehavior.getSimpleString(N)!=="0"};
_.g.computeShowVoteCountEnd=function(q,N){return q===void 0||N===void 0?!0:q.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!N&&this.ytRendererBehavior.getSimpleString(N)!=="0"};
_.g.computeShowCommentCount=function(q,N){return q===void 0||N===void 0?!0:q.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!N&&this.ytRendererBehavior.getSimpleString(N)!=="0"};
_.g.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.g.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.g.showReplyDialog=function(q){q&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.ee(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=q,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.g.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.g.onRequestSent=function(q){q=_.Z(q.detail);for(var N=q.next();!N.done;N=q.next())(N=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",N.value))&&this.showReplyDialog(N)};
_.g.onYtNavigate=function(q){var N,b;(q=(N=_.v(q.detail.endpoint,_.gYR))==null?void 0:(b=N.dialog)==null?void 0:b.commentReplyDialogRenderer)&&this.showReplyDialog(q)};
_.g.onYtServiceRequestSent=function(q,N){q.stopPropagation();if(N.actions)for(q=0;q<N.actions.length;q++){var b=_.v(N.actions[q],wto);b&&this.handleUpdateCommentVoteAction(b)}};
_.g.handleUpdateCommentVoteAction=function(q){this.voteCount=q.voteCount||_.nD("0");q.voteStatus==="LIKE"?this.JSC$16032_ytdDislikeToggleButtonRenderer.toggle(!1):q.voteStatus==="DISLIKE"?this.JSC$16032_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16032_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16032_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.g.computeReplyButtonHidden=function(q){return q};
_.g.computeReplyButtonBeginning=function(q){return(q==null?0:q.replyButton)&&q.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?q.replyButton:void 0};
_.g.computeReplyButtonEnd=function(q){return(q==null?0:q.replyButton)&&q.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?q.replyButton:void 0};
_.g.computeActionButtonStyle=function(q){return(q==null?0:q.style)?q.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.g.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.g.onYtToggleButton=function(q){var N,b;this.isLiked=this.systemIcons&&!!((N=q.detail)==null?0:(b=N.actions)==null?0:b.like)};
ac.prototype.onYtToggleButton=ac.prototype.onYtToggleButton;ac.prototype.onButtonTooltipPositionChanged=ac.prototype.onButtonTooltipPositionChanged;ac.prototype.onYtServiceRequestSent=ac.prototype.onYtServiceRequestSent;ac.prototype.onYtNavigate=ac.prototype.onYtNavigate;ac.prototype.onRequestSent=ac.prototype.onRequestSent;ac.prototype.onYtCommentboxDismiss=ac.prototype.onYtCommentboxDismiss;ac.prototype.dataChange=ac.prototype.dataChange;
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ac.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ac.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],ac.prototype,"voteCount",void 0);_.p([_.U(),_.P("design:type",Object)],ac.prototype,"commentCount",void 0);_.p([_.U(),_.P("design:type",Object)],ac.prototype,"replyThumbnail",void 0);
_.p([_.U(),_.P("design:type",Object)],ac.prototype,"hasCreatorReply",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],ac.prototype,"enableCreationBox",void 0);_.p([_.U({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.P("design:type",String)],ac.prototype,"actionButtonsStyle",void 0);_.p([_.U({computed:"computeReplyButtonBeginning(data)"}),_.P("design:type",Object)],ac.prototype,"replyButtonBeginning",void 0);
_.p([_.U({computed:"computeReplyButtonEnd(data)"}),_.P("design:type",Object)],ac.prototype,"replyButtonEnd",void 0);_.p([_.U(),_.P("design:type",Object)],ac.prototype,"buttonOverrides",void 0);_.p([_.U(),_.P("design:type",Object)],ac.prototype,"replyButtonOverrides",void 0);_.p([_.U(),_.P("design:type",Object)],ac.prototype,"forceIconButton",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],ac.prototype,"useCommentIcon",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ac.prototype,"modern",void 0);_.p([_.U(),_.P("design:type",Object)],ac.prototype,"buttonTooltipPosition",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ac.prototype,"systemIcons",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],ac.prototype,"isLiked",void 0);_.p([_.dq("ytd-button-renderer"),_.P("design:type",Object)],ac.prototype,"ytdReplyButtonRenderer",void 0);
_.p([_.dq("#like-button"),_.P("design:type",Object)],ac.prototype,"JSC$16032_ytdLikeToggleButtonRenderer",void 0);_.p([_.dq("#dislike-button"),_.P("design:type",Object)],ac.prototype,"JSC$16032_ytdDislikeToggleButtonRenderer",void 0);_.p([_.dq("#reply-dialog"),_.P("design:type",HTMLElement)],ac.prototype,"replyDialogElement",void 0);_.p([_.dq("#reply-button"),_.P("design:type",HTMLElement)],ac.prototype,"replyButtonElement",void 0);
_.p([_.dq("#reply-button-end"),_.P("design:type",HTMLElement)],ac.prototype,"replyButtonEndElement",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ac.prototype,"dataChange",null);_.p([_.ZP("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ac.prototype,"onYtCommentboxDismiss",null);
_.p([_.ZP("yt-service-request-sent-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ac.prototype,"onRequestSent",null);_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ac.prototype,"onYtNavigate",null);
_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],ac.prototype,"onYtServiceRequestSent",null);_.p([_.FY("buttonTooltipPosition"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ac.prototype,"onButtonTooltipPositionChanged",null);
_.p([_.ZP("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ac.prototype,"onYtToggleButton",null);_.p([_.I({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],ac);
_.a(ac,"ytd-comment-action-buttons-renderer",function(){if(Obq!==void 0)return Obq;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Obq=q},{mode:1});var ibj;var SC=function(){return _.C.apply(this,arguments)||this};
_.Y(SC,_.C);SC.prototype.focus=function(){_.ee(this.hostElement).querySelector("#commentbox").focus()};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],SC.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],SC.prototype,"zeroStepChannelCreationRenderer",void 0);_.p([_.I({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],SC);
_.a(SC,"ytd-comment-dialog-renderer",function(){if(ibj!==void 0)return ibj;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return ibj=q},{mode:1});var l5j;var We=function(){var q=_.C.apply(this,arguments)||this;q.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.x("enable_web_delhi_icons")};q.replyButtonOverrides={size:"S",type:"text"};return q};
_.Y(We,_.C);_.g=We.prototype;_.g.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.g.detached=function(){this.replyBox&&this.replyBox.remove()};
_.g.showReplyDialog=function(q){if(q){var N=this.replyBox;N||(N=document.createElement("ytd-comment-reply-dialog-renderer"),N.id="replybox",_.ee(this.replyDialogDiv).appendChild(N));N.data=q;this.replyDialogDiv.hidden=!1;N.openDialog()}};
_.g.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.g.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var q,N=_.v((q=this.toolbarSurface)==null?void 0:q.subscribersOnlyDisclaimerSnackbarCommand,_.QI);N&&_.e2(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:N})}};
_.g.onYtServiceRequestSent=function(q,N){q.stopPropagation();if(N.actions)for(var b=0;b<N.actions.length;b++){var y=_.v(N.actions[b],wto);y?this.handleUpdateCommentVoteAction(y):q.target===this.heartButton&&this.toggleHeartState()}};
_.g.handleUpdateCommentVoteAction=function(q){var N;(N=this.toolbarState)!=null&&N.key&&this.ytdReduxBehavior.dispatch(_.GK("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:q.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":q.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.g.toggleHeartState=function(){var q;(q=this.toolbarState)!=null&&q.key&&this.ytdReduxBehavior.dispatch(_.GK("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.$H.Object.defineProperties(We.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return(((q=this.toolbarState)==null?void 0:q.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(N=this.toolbarData)==null?void 0:N.likeCountLiked:(b=this.toolbarData)==null?void 0:b.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.toolbarSurface)==null?void 0:q.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.toolbarSurface)==null?void 0:q.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.toolbarSurface)==null?void 0:q.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.toolbarSurface)==null?void 0:q.prepareAccountCommand)!==void 0&&!_.x("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var q,N=_.v((q=this.toolbarSurface)==null?void 0:q.prepareAccountCommand,_.QI),b,y,J,E,F,R,c,z,m;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((b=this.toolbarSharedData)==null||!b.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((y=this.toolbarState)==null?void 0:y.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:N!=null?N:_.v((J=this.toolbarSurface)==null?void 0:J.likeCommand,_.QI),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:N!=null?N:_.v((E=this.toolbarSurface)==null?void 0:E.unlikeCommand,_.QI),defaultCommand:this.isVisiblyDisabled?_.v((F=this.toolbarSurface)==null?void 0:F.commentDisabledActionCommand,_.QI):void 0,defaultTooltip:(R=this.toolbarData)==null?void 0:R.likeInactiveTooltip,toggledTooltip:(c=this.toolbarData)==null?void 0:c.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(z=this.toolbarData)==null?void 0:z.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(m=this.toolbarSharedData)==null?void 0:m.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var q,N=_.v((q=this.toolbarSurface)==null?void 0:q.prepareAccountCommand,_.QI),b,y,J,E,F,R,c,z,m,r;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((b=this.toolbarSharedData)==null||!b.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((y=this.toolbarState)==null?void 0:y.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:N!=null?N:_.v((J=this.toolbarSurface)==null?void 0:J.dislikeCommand,_.QI),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:N!=null?N:_.v((E=this.toolbarSurface)==null?void 0:E.undislikeCommand,_.QI),defaultCommand:this.isVisiblyDisabled?_.v((F=this.toolbarSurface)==null?void 0:F.commentDisabledActionCommand,_.QI):void 0,defaultTooltip:(R=this.toolbarData)==null?void 0:R.dislikeInactiveTooltip,toggledTooltip:(c=this.toolbarData)==null?void 0:
c.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(z=this.toolbarSharedData)==null?void 0:z.dislikeReplyButtonA11y:(m=this.toolbarSharedData)==null?void 0:m.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(r=this.toolbarSharedData)==null?void 0:r.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var q,N,b;if(((q=this.toolbarState)==null?void 0:q.heartState)!==void 0&&((N=this.toolbarState)==null?void 0:N.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((b=this.toolbarState)==null?void 0:b.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var y,J,E,F,R,c,z,m,r,X,V,G,w,D;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(y=this.toolbarData)==null?void 0:y.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((J=this.toolbarState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((E=this.toolbarState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((F=this.toolbarState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((R=this.toolbarState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.v((c=this.toolbarSurface)==null?void 0:c.heartCommand,
_.QI),unheartEndpoint:this.isVisiblyDisabled?void 0:_.v((z=this.toolbarSurface)==null?void 0:z.unheartCommand,_.QI),disabledEndpoint:this.isVisiblyDisabled?_.v((m=this.toolbarSurface)==null?void 0:m.commentDisabledActionCommand,_.QI):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(r=this.toolbarData)==null?void 0:r.heartActiveTooltip,unheartedTooltip:(X=this.toolbarData)==null?void 0:X.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((V=
this.toolbarState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(G=this.toolbarSharedData)==null?void 0:G.unheartButtonA11y:(w=this.toolbarSharedData)==null?void 0:w.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(D=this.toolbarSharedData)==null?void 0:D.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.toolbarSurface)==null||!q.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.commentStrings)!=null&&q.replyButtonText){var N,b,y,J;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(N=this.commentStrings)==null?void 0:N.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.v((b=this.toolbarSurface)==null?void 0:b.replyCommand,_.QI),command:this.isVisiblyDisabled?
_.v((y=this.toolbarSurface)==null?void 0:y.commentDisabledActionCommand,_.QI):this.isSubsOnlyCommentsIneligibleUser?_.v((J=this.toolbarSurface)==null?void 0:J.subscribersOnlySnackbarCommand,_.QI):void 0}}}}});
We.prototype.onYtServiceRequestSent=We.prototype.onYtServiceRequestSent;We.prototype.hideReplyDialogDiv=We.prototype.hideReplyDialogDiv;_.p([_.U(),_.P("design:type",Object)],We.prototype,"commentStrings",void 0);_.p([_.U(),_.P("design:type",Boolean)],We.prototype,"isReply",void 0);_.p([_.U(),_.P("design:type",Object)],We.prototype,"toolbarData",void 0);_.p([_.U(),_.P("design:type",Object)],We.prototype,"toolbarSharedData",void 0);
_.p([_.U(),_.P("design:type",String)],We.prototype,"toolbarStateKey",void 0);_.p([_.U(),_.P("design:type",String)],We.prototype,"toolbarSurfaceKey",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],We.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],We.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],We.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.r7),_.P("design:type",Object)],We.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.dq("#reply-dialog"),_.P("design:type",HTMLElement)],We.prototype,"replyDialogDiv",void 0);_.p([_.dq("#replybox"),_.P("design:type",Object)],We.prototype,"replyBox",void 0);_.p([_.dq("ytd-creator-heart-renderer"),_.P("design:type",Object)],We.prototype,"heartButton",void 0);_.p([_.U({selector:function(q,N){return _.Ji(q.entities,"engagementToolbarStateEntityPayload",N)},
selectorArgs:["toolbarStateKey"]}),_.P("design:type",Object)],We.prototype,"toolbarState",void 0);_.p([_.U({selector:gXn,selectorArgs:["toolbarSurfaceKey"]}),_.P("design:type",Object)],We.prototype,"toolbarSurface",void 0);_.p([_.U(),_.P("design:type",Object)],We.prototype,"buttonOverrides",void 0);_.p([_.ZP("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],We.prototype,"hideReplyDialogDiv",null);
_.p([_.l("toolbarData","toolbarState"),_.P("design:type",String),_.P("design:paramtypes",[])],We.prototype,"likeCount",null);_.p([_.l("likeCount"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],We.prototype,"showLikeCount",null);_.p([_.l("toolbarSurface"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],We.prototype,"isVisiblyDisabled",null);_.p([_.l("toolbarSurface"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],We.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.p([_.l("toolbarSurface"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],We.prototype,"isSubsOnlyCommentsEligibleUser",null);_.p([_.l("toolbarSurface"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],We.prototype,"hasPrepareAccountCommand",null);_.p([_.l("toolbarData","toolbarState","toolbarSurface"),_.P("design:type",Object),_.P("design:paramtypes",[])],We.prototype,"likeToggleButtonRenderer",null);
_.p([_.l("isReply","toolbarData","toolbarState","toolbarSurface"),_.P("design:type",Object),_.P("design:paramtypes",[])],We.prototype,"dislikeToggleButtonRenderer",null);_.p([_.l("toolbarData","toolbarState","toolbarSurface"),_.P("design:type",Object),_.P("design:paramtypes",[])],We.prototype,"creatorHeartSupportedRenderer",null);_.p([_.l("toolbarSurface"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],We.prototype,"hasReplyCommand",null);
_.p([_.l("toolbarSurface","commentStrings","isVisiblyDisabled"),_.P("design:type",Object),_.P("design:paramtypes",[])],We.prototype,"replyButtonRenderer",null);_.p([_.U(),_.P("design:type",Object)],We.prototype,"replyButtonOverrides",void 0);_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],We.prototype,"onYtServiceRequestSent",null);_.p([_.I({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],We);
_.a(We,"ytd-comment-engagement-bar",function(){if(l5j!==void 0)return l5j;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return l5j=q},{mode:1});var Kro;var L_=function(){return _.C.apply(this,arguments)||this};
_.Y(L_,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],L_.prototype,"data",void 0);_.p([_.I({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],L_);
_.a(L_,"ytd-comment-inline-thumbnail-renderer",function(){if(Kro!==void 0)return Kro;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Kro=q},{mode:1});var DZl;var p_=function(){return _.C.apply(this,arguments)||this};
_.Y(p_,_.C);p_.prototype.onMessageTap=function(){if(this.onTapCommand){var q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);q&&this.ytdOpenPopupBehavior.openPopup(q)}};
_.$H.Object.defineProperties(p_.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return(q=this.data)==null?void 0:(N=q.button)==null?void 0:(b=N.buttonRenderer)==null?void 0:b.command}}});
_.p([_.O(_.r7),_.P("design:type",Object)],p_.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],p_.prototype,"data",void 0);_.p([_.l("data.button.buttonRenderer.command"),_.P("design:type",Object),_.P("design:paramtypes",[])],p_.prototype,"onTapCommand",null);_.p([_.I({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],p_);
_.a(p_,"ytd-comment-pause-composer-renderer",function(){if(DZl!==void 0)return DZl;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return DZl=q},{mode:1});var hzF;var kAx;var Pe=function(){var q=_.C.apply(this,arguments)||this;q.isOpen=!1;return q};
_.Y(Pe,_.C);_.g=Pe.prototype;_.g.dataChanged=function(){this.isOpen=!1};
_.g.onTap=function(){this.data&&(this.data.navigationEndpoint?_.e2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.g.focus=function(){this.JSC$16061_commentbox.focus()};
_.g.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.g.openDialog=function(){this.isOpen=!0;this.JSC$16061_commentbox.focus();this.JSC$16061_commentbox.maybeHeightChanged()};
Pe.prototype.onYtCommentboxDismiss=Pe.prototype.onYtCommentboxDismiss;Pe.prototype.dataChanged=Pe.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Pe.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Pe.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Pe.prototype,"isOpen",void 0);_.p([_.dq("#commentbox"),_.P("design:type",Object)],Pe.prototype,"JSC$16061_commentbox",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pe.prototype,"dataChanged",null);_.p([_.ZP("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Pe.prototype,"onYtCommentboxDismiss",null);_.p([_.I({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],Pe);
_.a(Pe,"ytd-comment-reply-dialog-renderer",function(){if(kAx!==void 0)return kAx;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return kAx=q},{mode:1});var UZl;var Mq=function(){return _.C.apply(this,arguments)||this};
_.Y(Mq,_.C);_.$H.Object.defineProperties(Mq.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var q,N,b=(q=this.data)==null?void 0:(N=q.icon)==null?void 0:N.iconType;return b?"yt-icons:"+b.toLowerCase():null}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Mq.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Mq.prototype,"data",void 0);_.p([_.U(),_.l("data.icon"),_.P("design:type",Object),_.P("design:paramtypes",[])],Mq.prototype,"icon",null);_.p([_.I({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Mq);
_.a(Mq,"ytd-pinned-comment-badge-renderer",function(){if(UZl!==void 0)return UZl;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return UZl=q},{mode:1});var f5T;var C6j={},I5E={input:!0,meta:!0,br:!0,link:!0,img:!0},oc=null;C6j.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(){oc==null&&(oc=document.createElement("tp-yt-paper-tooltip"),oc.offset=8,oc.fitToVisibleBounds=!0)},
onMouseOver_:function(q){if(q=_.Ph(q.target,function(J){return J==this||J.getAttribute&&J.getAttribute("shared-tooltip-text")}.bind(this),!0)){var N=q.getAttribute("shared-tooltip-text");
if(N){var b=this,y=null;q!=this&&(q.tagName.toLowerCase()in I5E?b=q.parentElement:b=q,q.id&&(y=q.id));this.polymerController.createTooltipIfRequired_();if(oc.parentElement!=b||oc.for!=y)(0,_.yb)(oc).textContent=N,_.ee(b).appendChild(oc),oc.for=y,oc.animationDelay=this.polymerController.sharedTooltipAnimationDelay,oc.position=this.polymerController.sharedTooltipPosition}}}};var AY=function(){return _.C.apply(this,arguments)||this};
_.Y(AY,_.C);AY.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]]"}}}}}};
AY.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var q;((q=this.data)==null?0:q.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var N;((N=this.data)==null?0:N.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
AY.prototype.colorChanged=function(){var q,N,b,y=(q=this.data)==null?void 0:(N=q.color)==null?void 0:(b=N.basicColorPaletteData)==null?void 0:b.foregroundBodyColor;y&&(this.rgbBadgeColor=_.GM(y));_.ee(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
AY.prototype.tooltipChanged=function(){var q;((q=this.data)==null?0:q.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
AY.prototype.tooltipChanged=AY.prototype.tooltipChanged;AY.prototype.colorChanged=AY.prototype.colorChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],AY.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],AY.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(C6j.YtSharedTooltipBehavior),_.P("design:type",Object)],AY.prototype,"ytSharedTooltipBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],AY.prototype,"data",void 0);
_.p([_.U({value:"#4285F4"}),_.P("design:type",String)],AY.prototype,"rgbBadgeColor",void 0);_.p([_.FY("data.color"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AY.prototype,"colorChanged",null);_.p([_.FY("data.tooltip"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AY.prototype,"tooltipChanged",null);_.p([_.I({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],AY);
_.a(AY,"ytd-sponsor-comment-badge-renderer",function(){if(f5T!==void 0)return f5T;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return f5T=q},{mode:1});var Tfl;var s_E;var eC=function(){return _.C.apply(this,arguments)||this};
_.Y(eC,_.C);eC.prototype.computeState=function(q){switch(q==null?void 0:q.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"}};
eC.prototype.updateStateIdentifier=function(q){if(this.viewModel.triStateKey){var N=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.GK("triStateButtonStateEntityPayload",N,{key:N,stateIdentifier:q}))}};
eC.prototype.onClick=function(){var q=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(){q.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){q.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.$H.Object.defineProperties(eC.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 q;return((q=this.data)==null?void 0:q.buttonText)||""}}});
_.p([_.U(),_.P("design:type",Object)],eC.prototype,"viewModel",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],eC.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],eC.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],eC.prototype,"ytRendererBehavior",void 0);_.p([_.U({selector:ZBh,selectorArgs:["viewModel.triStateKey"]}),_.P("design:type",Object)],eC.prototype,"triStateButtonStateEntity",void 0);
_.p([_.U({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.P("design:type",String)],eC.prototype,"state",void 0);_.p([_.l("viewModel","state"),_.P("design:type",Object),_.P("design:paramtypes",[])],eC.prototype,"data",null);_.p([_.l("data"),_.P("design:type",String),_.P("design:paramtypes",[])],eC.prototype,"buttonText",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],eC);
_.a(eC,"ytd-tri-state-button-view-model",function(){if(s_E!==void 0)return s_E;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return s_E=q},{mode:1});var nuq;var a5x;var Be=function(){var q=_.C.apply(this,arguments)||this;q.defaultIconToFilled=!_.x("kevlar_fill_comment_chip_icon_killswitch");return q};
_.Y(Be,_.C);Be.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Be.prototype.dataChanged=function(){if(this.data){var q,N;((q=this.data.chipColorPalette)==null?0:q.backgroundColor)&&((N=this.data.chipColorPalette)==null?0:N.foregroundTitleColor)&&_.Jm(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Y8(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Y8(this.data.chipColorPalette.foregroundTitleColor)});var b;((b=this.data)==null?0:b.command)?(_.Jm(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Jm(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}};
Be.prototype.onTap=function(){var q;if(this.data&&(q=this.data)!=null&&q.command){var N;this.ytComponentBehavior.resolveCommand((N=this.data)==null?void 0:N.command)}};
Be.prototype.getIconSize=function(){return _.x("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Be.prototype.onTap=Be.prototype.onTap;Be.prototype.dataChanged=Be.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Be.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Be.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.kT),_.P("design:type",Object)],Be.prototype,"ironA11yKeysBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Be.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Object)],Be.prototype,"basePriceText",void 0);_.p([_.U(),_.P("design:type",Object)],Be.prototype,"chipIcon",void 0);_.p([_.U(),_.P("design:type",Object)],Be.prototype,"defaultIconToFilled",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Be.prototype,"dataChanged",null);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Be.prototype,"onTap",null);
_.p([_.Ok({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Be);
_.a(Be,"yt-pdg-comment-chip-renderer",function(){if(a5x===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;nuq===void 0&&(nuq=document.createElement("template"));var y=nuq;b.call(N,y.content.cloneNode(!0),q.content.firstChild);a5x=q}q=a5x;return q},{mode:2});var He=function(){var q=_.C.apply(this,arguments)||this;q.useSmallAvatars=_.x("small_avatars_for_comments");q.commentThreadingEnabled=_.x("web_delhi_comment_threads");q.webWatchCompactComments=_.x("web_watch_compact_comments");q.editDialog=null;return q};
_.Y(He,_.C);_.g=He.prototype;_.g.onShow=function(){_.OY("cmv",void 0,"wn_comments")};
_.g.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"}}}};
_.g.detached=function(){this.editDialog=null;this.expander.reset()};
_.g.updateBackgroundColor=function(){if(this.backgroundColor){var q={"--ytd-comment-paid-background-color":_.Y8(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Jm(this.hostElement,q)}else _.Jm(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.g.resetExpander=function(){var q;(q=this.expander)==null||q.reset()};
_.g.openEditDialog=function(q){q.dialog&&(this.editDialog=q.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.g.onYtNavigate=function(q){var N=q.detail.endpoint;if(N=_.v(N,_.ZV4)||_.v(N,_.FuJ))q.stopPropagation(),this.openEditDialog(N)};
_.g.onYtCommentboxDismiss=function(){this.editDialog=null;_.Jm(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.g.onAuthorThumbnailClicked=function(){_.x("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.g.onYtCommentboxResize=function(q){var N;(q==null?0:(N=q.detail)==null?0:N.height)&&_.Jm(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":q.detail.height+"px"})};
_.$H.Object.defineProperties(He.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 q,N=(q=this.commentEntity)==null?void 0:q.author;return N&&(N.isCreator||N.isVerified||N.isArtist)?{renderer:{authorEndpoint:N.channelPageEndpoint?_.v(N.channelPageEndpoint,_.QI):_.v(N.channelCommand,_.QI),authorText:{runs:[{text:N.displayName}]},color:N.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:N.isArtist?{iconType:"AUDIO_BADGE"}:
N.isVerified?{iconType:N.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:N.isArtist||N.isVerified?N.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var q,N=(q=this.commentEntity)==null?void 0:q.author;return N!=null&&N.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:N.sponsorBadgeUrl}]},tooltip:N.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var q;return _.v((q=this.commentSurfaceEntity)==null?void 0:q.pdgCommentChip,_.Cwj)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var q;return this.voiceReplyContainerViewModel&&((q=this.voiceReplyContainerViewModel)==null?void 0:q.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var q;return _.v((q=this.commentSurfaceEntity)==null?void 0:q.voiceReplyContainerViewModel,CW4)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var q;return this.voiceReplyContainerViewModel&&(q=this.voiceReplyContainerViewModel)!=null&&q.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var q,N;return(N=(q=this.commentSurfaceEntity)==null?void 0:q.commentBackgroundColor)!=null?N:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.x("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var q,N;return(((q=this.commentEntity)==null?void 0:(N=q.properties)==null?void 0:N.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var q,N;if(_.x("enable_profile_cards_on_comments")&&((q=this.commentEntity)==null?0:(N=q.author)==null?0:N.profileCardEndpoint)&&this.viewModel.allowProfileCard){var b,y;return _.v((b=this.commentEntity)==null?void 0:(y=b.author)==null?void 0:y.profileCardEndpoint,_.QI)}var J,E;return _.v((J=this.commentEntity)==null?void 0:(E=J.avatar)==null?void 0:E.endpoint,_.QI)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var q,N;if(_.x("enable_profile_cards_on_comments")&&((q=this.commentEntity)==null?0:(N=q.author)==null?0:N.channelPageEndpoint)){var b,y;return _.v((b=this.commentEntity)==null?void 0:(y=b.author)==null?void 0:y.channelPageEndpoint,_.QI)}var J,E;return _.v((J=this.commentEntity)==null?void 0:(E=J.avatar)==null?void 0:E.endpoint,_.QI)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var q,N,b,y,J=(q=this.commentEntity)==null?void 0:(N=q.avatar)==null?void 0:(b=N.image)==null?void 0:(y=b.sources)==null?void 0:y[0];return J?{thumbnails:[{url:J.url,width:J.width,height:J.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.commentEntity)==null?0:(N=q.author)==null?0:N.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.commentEntity)==null?void 0:(N=q.author)==null?void 0:N.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.commentEntity)==null?void 0:(N=q.properties)==null?void 0:N.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var q;return _.v((q=this.commentSurfaceEntity)==null?void 0:q.publishedTimeCommand,_.QI)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var q,N;if(((q=this.commentEntity)==null?0:q.translatedContent)&&((N=this.translateButtonState)==null?void 0:N.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var b;if((b=this.voiceReplyContainerViewModel)==null?0:b.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var y,J;return((y=this.commentEntity)==null?void 0:(J=y.properties)==null?void 0:J.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.commentSharedEntity)==null?void 0:(N=q.strings)==null?void 0:N.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.commentSharedEntity)==null?void 0:(N=q.strings)==null?void 0:N.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.commentEntity)==null||!q.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var q,N,b=(N=_.v((q=this.viewModel)==null?void 0:q.translateButton,fhR))!=null?N:{},y,J,E,F,R,c,z,m,r,X,V;return Object.assign({},b,{untoggledStateData:Object.assign({},b.untoggledStateData,{buttonText:(y=this.commentEntity)==null?void 0:(J=y.translateData)==null?void 0:J.text}),togglingStateData:Object.assign({},b.togglingStateData,{buttonText:(E=this.commentSharedEntity)==null?
void 0:(F=E.strings)==null?void 0:F.translatingText}),toggledStateData:Object.assign({},b.toggledStateData,{buttonText:(R=this.commentSharedEntity)==null?void 0:(c=R.strings)==null?void 0:c.seeOriginalText}),transitionCommand:((z=this.commentEntity)==null?0:z.translatedContent)?void 0:_.v((m=this.commentEntity)==null?void 0:(r=m.translateData)==null?void 0:r.translateComment,_.QI),triStateKey:(X=this.commentEntity)==null?void 0:(V=X.properties)==null?void 0:V.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return((N=_.v(_.v((q=this.toolbarSurface)==null?void 0:q.menuCommand,_.QI),RZ1))==null?void 0:(b=N.menu)==null?void 0:b.menuRenderer)||null}}});
He.prototype.onYtCommentboxResize=He.prototype.onYtCommentboxResize;He.prototype.onYtCommentboxDismiss=He.prototype.onYtCommentboxDismiss;He.prototype.onYtNavigate=He.prototype.onYtNavigate;He.prototype.resetExpander=He.prototype.resetExpander;He.prototype.updateBackgroundColor=He.prototype.updateBackgroundColor;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],He.prototype,"ytdReduxBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],He.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],He.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("#author-thumbnail > button"),_.P("design:type",HTMLElement)],He.prototype,"authorThumbnailAnchor",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("viewModel"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],He.prototype,"linked",null);
_.p([_.l("viewModel","linked"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"linkedCommentBadge",null);_.p([_.U({reflectToAttribute:!0}),_.l("viewModel"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],He.prototype,"pinned",null);_.p([_.l("viewModel","pinned"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"pinnedCommentBadge",null);
_.p([_.l("commentEntity","commentSharedEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"authorCommentBadge",null);_.p([_.U({reflectToAttribute:!0}),_.l("authorCommentBadge"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"hasAuthorBadge",null);_.p([_.l("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"sponsorCommentBadge",null);
_.p([_.U({reflectToAttribute:!0}),_.l("sponsorCommentBadge"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"hasSponsorBadge",null);_.p([_.l("commentSurfaceEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"pdgCommentChipRenderer",null);_.p([_.U({reflectToAttribute:!0}),_.l("voiceReplyContainerViewModel"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"hasVoiceReply",null);
_.p([_.l("commentSurfaceEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"voiceReplyContainerViewModel",null);_.p([_.l("voiceReplyContainerViewModel"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"voiceReplyUnavailableText",null);_.p([_.U(),_.P("design:type",Object)],He.prototype,"data",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"viewModel",null);
_.p([_.U({selector:function(q,N){return _.Ji(q.entities,"commentSharedEntityPayload",N)},
selectorArgs:["viewModel.sharedKey"]}),_.P("design:type",Object)],He.prototype,"commentSharedEntity",void 0);_.p([_.U({selector:EXd,selectorArgs:["viewModel.commentKey"]}),_.P("design:type",Object)],He.prototype,"commentEntity",void 0);_.p([_.U({selector:function(q,N){return _.Ji(q.entities,"commentSurfaceEntityPayload",N)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.P("design:type",Object)],He.prototype,"commentSurfaceEntity",void 0);_.p([_.U({selector:gXn,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.P("design:type",Object)],He.prototype,"toolbarSurface",void 0);_.p([_.U({selector:ZBh,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.P("design:type",Object)],He.prototype,"translateButtonState",void 0);
_.p([_.l("commentSurfaceEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"backgroundColor",null);_.p([_.U({reflectToAttribute:!0}),_.l("viewModel"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],He.prototype,"optimalReadingWidthComments",null);_.p([_.dq("ytd-expander"),_.P("design:type",Object)],He.prototype,"expander",void 0);
_.p([_.FY("backgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],He.prototype,"updateBackgroundColor",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],He.prototype,"useSmallAvatars",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],He.prototype,"engagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],He.prototype,"commentThreadingEnabled",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],He.prototype,"webWatchCompactComments",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"isReply",null);_.p([_.l("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"authorThumbnailEndpoint",null);_.p([_.l("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"authorNameEndpoint",null);
_.p([_.l("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"authorThumbnail",null);_.p([_.l("commentEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],He.prototype,"authorTextClass",null);_.p([_.l("commentEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],He.prototype,"authorChannelName",null);_.p([_.l("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"publishedTime",null);
_.p([_.l("commentSurfaceEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"publishedTimeCommand",null);_.p([_.l("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"contentText",null);_.p([_.FY("contentText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],He.prototype,"resetExpander",null);
_.p([_.l("commentEntity"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],He.prototype,"shouldShowReadMoreInitially",null);_.p([_.l("commentSharedEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],He.prototype,"expandText",null);_.p([_.l("commentSharedEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],He.prototype,"collapseText",null);_.p([_.l("commentEntity"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],He.prototype,"shouldShowTranslateButton",null);
_.p([_.l("commentEntity","commentSharedEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"translateButton",null);_.p([_.l("toolbarSurface"),_.P("design:type",Object),_.P("design:paramtypes",[])],He.prototype,"overflowMenuRenderer",null);_.p([_.U(),_.P("design:type",Object)],He.prototype,"editDialog",void 0);_.p([_.dq("ytd-comment-dialog-renderer"),_.P("design:type",Object)],He.prototype,"editCommentDialogContainer",void 0);
_.p([_.dq("ytd-comment-reply-dialog-renderer"),_.P("design:type",Object)],He.prototype,"editReplyDialogContainer",void 0);_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],He.prototype,"onYtNavigate",null);_.p([_.ZP("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],He.prototype,"onYtCommentboxDismiss",null);
_.p([_.ZP("yt-commentbox-resize"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],He.prototype,"onYtCommentboxResize",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-comment-view-model"})],He);
_.a(He,"ytd-comment-view-model",function(){if(Tfl!==void 0)return Tfl;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Tfl=q},{mode:_.Am("kevlar_poly_si_batch_j025")?1:2});_.P$(_.n(function(q){var N={};return _.u("yt-sub-thread",{class:_.NO("ytSubThreadHost",(N.ytSubThreadHasButton=q.isButton,N.ytSubThreadHovered=q.hovered,N.ytSubThreadTopLevelThread=function(){var b,y;return((b=q.topLevelThread)==null?void 0:b.call(q))&&!(_.x("small_avatars_for_comments")&&((y=q.engagementPanel)==null?0:y.call(q)))},N))},_.u("div",{class:"ytSubThreadThreadline"},_.u(_.t,{cond:function(){var b;
return!((b=q.isTeaser)==null?0:b.call(q))},
then:function(){return _.u("div",{class:"ytSubThreadConnection"})}}),_.u("div",{class:"ytSubThreadContinuation"}),_.u("div",{class:"ytSubThreadShadow"})),_.u("div",{class:"ytSubThreadSubThreadContent"},q.children))},"Kc"),"yt-sub-thread",{props:{isButton:_.F5,
isTeaser:_.F5,hovered:_.F5,topLevelThread:_.F5,engagementPanel:_.F5}});var qV=function(){var q=_.C.apply(this,arguments)||this;q.modern=_.x("web_modern_buttons");q.commentThreadingEnabled=_.x("web_delhi_comment_threads");q.isWatchGrid=_.x("kevlar_watch_grid");q.buttonOverrides=q.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};q.JSC$16107_spinnerEl=null;return q};
_.Y(qV,_.C);_.g=qV.prototype;_.g.configureContinuationPathMap=function(){return _.x("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.g.shouldShowLegacyTeasers=function(q,N){return q&&!N};
_.g.shouldShowExpandedThreads=function(q,N){return this.commentThreadingEnabled&&N&&(q==null?void 0:q.length)>0};
_.g.shouldShowCollapsedThreads=function(q,N){return this.commentThreadingEnabled&&!N&&q};
_.g.computeCommentViewModel=function(q){return _.v(q,U2v)};
_.g.computeThreadRenderer=function(q){return _.v(q,izM)};
_.g.computeIsContinuationItem=function(q){return!!this.computeContinuationItemRenderer(q)};
_.g.computeButtonRenderer=function(q){return _.v(q,_.JI)};
_.g.computeContinuationItemRenderer=function(q){return _.v(q,_.SP)};
_.g.computeShowButton=function(q){var N;return!((N=this.computeContinuationItemRenderer(q))==null||!N.button)};
_.g.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]]"}}}}}};
_.g.attached=function(){this.isShowRepliesVisible=!0};
_.g.dataChanged=function(){var q=this.expanderContents;q&&(q.hidden=!0);this.isLoading=!1};
_.g.endsInContinuation=function(q){return!!q&&q.length>0&&!!this.computeContinuationItemRenderer(q[q.length-1])};
_.g.computeShouldShowHideRepliesButton=function(q,N){return!q&&N};
_.g.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.g.isLoadingChanged=function(){this.isLoading&&!this.JSC$16107_spinnerEl&&(this.JSC$16107_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ee(this.expanderContents).appendChild(this.JSC$16107_spinnerEl));this.JSC$16107_spinnerEl&&(this.JSC$16107_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var q;(q=this.contents)==null||q.classList.remove("reloading")}};
_.g.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var q=_.v(this.data.viewReplies,_.JI);q&&this.ytRendererBehavior.logExplicitClick(q);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.g.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var q=_.v(this.data.hideReplies,_.JI);q&&this.ytRendererBehavior.logExplicitClick(q);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.g.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var q=_.ee(this.hostElement).querySelector("#expander-contents");q&&(q.hidden=this.isShowRepliesVisible)}};
_.g.computeAlign=function(){if(this.modern){var q;return!((q=this.data)==null?0:q.viewRepliesCreatorThumbnail)}};
_.$H.Object.defineProperties(qV.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var q,N;return this.endsInContinuation((q=this.data)==null?void 0:q.contents)||this.commentThreadingEnabled&&this.endsInContinuation((N=this.data)==null?void 0:N.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var q;return(q=this.data)==null?void 0:q.teaserContents}}});
qV.prototype.isShowMoreChanged=qV.prototype.isShowMoreChanged;qV.prototype.isLoadingChanged=qV.prototype.isLoadingChanged;qV.prototype.triggerFirstContinuation=qV.prototype.triggerFirstContinuation;qV.prototype.dataChanged=qV.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],qV.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.tA),_.P("design:type",Object)],qV.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],qV.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],qV.prototype,"modern",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],qV.prototype,"commentThreadingEnabled",void 0);_.p([_.U(),_.P("design:type",Boolean)],qV.prototype,"expanded",void 0);
_.p([_.U(),_.P("design:type",Function)],qV.prototype,"toggleExpanded",void 0);_.p([_.U(),_.P("design:type",Array)],qV.prototype,"addedReplies",void 0);_.p([_.U(),_.P("design:type",Boolean)],qV.prototype,"hovered",void 0);_.p([_.U(),_.P("design:type",Boolean)],qV.prototype,"topLevelThread",void 0);_.p([_.U(),_.P("design:type",Boolean)],qV.prototype,"isLoading",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],qV.prototype,"isShowRepliesVisible",void 0);
_.p([_.U({value:!1}),_.P("design:type",Boolean)],qV.prototype,"useNewFormatting",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],qV.prototype,"engagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],qV.prototype,"isWatchGrid",void 0);_.p([_.U(),_.P("design:type",Object)],qV.prototype,"buttonOverrides",void 0);_.p([_.dq("#expander-contents"),_.P("design:type",HTMLElement)],qV.prototype,"expanderContents",void 0);
_.p([_.dq("ytd-continuation-item-renderer"),_.P("design:type",Object)],qV.prototype,"continuationItemRenderer",void 0);_.p([_.dq("#contents"),_.P("design:type",HTMLElement)],qV.prototype,"contents",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qV.prototype,"dataChanged",null);_.p([_.l("data.contents","data.subThreads.*"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],qV.prototype,"hasContinuation",null);
_.p([_.l("data.teaserContents"),_.P("design:type",Object),_.P("design:paramtypes",[])],qV.prototype,"subThreadTeasers",null);_.p([_.ZP("yt-expander-more-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qV.prototype,"triggerFirstContinuation",null);_.p([_.FY("isLoading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qV.prototype,"isLoadingChanged",null);
_.p([_.FY("isShowRepliesVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qV.prototype,"isShowMoreChanged",null);_.p([_.I({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],qV);
_.a(qV,"ytd-comment-replies-renderer",function(){if(hzF!==void 0)return hzF;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return hzF=q},{mode:1});var SFq;var NV=function(){var q=_.C.apply(this,arguments)||this;q.isOpen=!1;q.commentDialog=null;q.useSmallAvatars=_.x("small_avatars_for_comments");q.useSmallAvatarsEngagementPanelOnly=_.x("small_avatars_for_comments_ep");q.placeholderFocusListener=null;q.hasOpenedDialog=!1;q.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return q};
_.Y(NV,_.C);_.g=NV.prototype;_.g.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]]"}}}}}};
_.g.ready=function(){var q=this,N=_.ee(this.hostElement).querySelector("#placeholder-area"),b=_.ee(this.hostElement).querySelector("#simplebox-placeholder"),y=function(J){J.stopPropagation();J instanceof KeyboardEvent&&J.type==="keypress"&&J.keyCode!==13&&J.keyCode!==32||q.openDialog()};
this.placeholderFocusListener=y;b.addEventListener("focus",this.placeholderFocusListener);N.addEventListener("tap",y);N.addEventListener("keypress",y)};
_.g.maybeRemoveFocusEventListener=function(){var q;(q=this.data)!=null&&q.prepareAccountEndpoint&&!_.x("web_comments_simplebox_modal_focus_on_tap_ks")&&(q=_.ee(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(q.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.g.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.g.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.x("web_comment_simplebox_resolve_polymer_command_ks")?_.bq.instance.resolveCommand(this.data.prepareAccountEndpoint):_.yI(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);q&&this.ytdOpenPopupBehavior.openPopup(q);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.ee(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.g.onYtCommentboxDismiss=function(q){q.stopPropagation();this.isOpen=!1};
_.g.onCreateCommentAction=function(q){this.get("createCommentAction.contents",q)&&(this.isOpen=!1)};
_.g.computeCommentDialog=function(q){return{placeholderText:q.placeholderText,authorThumbnail:q.authorThumbnail,submitButton:q.submitButton,imageButton:q.imageButton,cancelButton:q.cancelButton,emojiButton:q.emojiButton,emojis:q.emojis,emojiPicker:q.emojiPicker,aadcGuidelinesStateEntityKey:q.aadcGuidelinesStateEntityKey,openAadcDialog:q.openAadcDialog,unicodeEmojisUrl:q.unicodeEmojisUrl}};
_.g.onHideIdentityChip=function(q){_.v(q,vcM)&&this.set("data.placeholderText",_.v(q,vcM).placeholderText)};
NV.prototype.onYtCommentboxDismiss=NV.prototype.onYtCommentboxDismiss;NV.prototype.dataChanged=NV.prototype.dataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.r7),_.P("design:type",Object)],NV.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],NV.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],NV.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],NV.prototype,"isOpen",void 0);_.p([_.U(),_.P("design:type",Object)],NV.prototype,"commentDialog",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],NV.prototype,"engagementPanel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],NV.prototype,"useSmallAvatars",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],NV.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],NV.prototype,"enableCreationBox",void 0);_.p([_.U(),_.P("design:type",Boolean)],NV.prototype,"showCreateDialog",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],NV.prototype,"dataChanged",null);_.p([_.ZP("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],NV.prototype,"onYtCommentboxDismiss",null);_.p([_.I({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],NV);
_.a(NV,"ytd-comment-simplebox-renderer",function(){if(SFq!==void 0)return SFq;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return SFq=q},{mode:1});var Wr1;_.xP("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var bp=function(){var q=_.C.apply(this,arguments)||this;q.addHoverEffect=_.x("swatcheroo_comments_hover_effect");q.useSmallAvatars=_.x("small_avatars_for_comments");q.scrollingEnabled=_.x("web_comment_threading_scroll_on_collapse");q.isSubThread=!1;q.threadHovered=!1;q.expanded=!1;q.removed=!1;q.addedReplies=[];q.actionMap=q.configureActionMap();q.toggleExpanded=function(){q.expanded=!q.expanded;!q.expanded&&q.scrollingEnabled&&_.By(q.hostElement,"yt-scroll-to-comment-element",[q.commentElement])};
return q};
_.Y(bp,_.C);_.g=bp.prototype;_.g.configureActionMap=function(){return _.x("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"}:{}};
_.g.createCommentReplyAction=function(q){q=_.v(q,jNF);if(q!=null&&q.contents){var N=q.replyToCommentId,b=q.parentCommentId,y,J=(y=this.commentViewModel)==null?void 0:y.commentId;(J===N||J===b&&!N)&&this.maybeAttachReply(q.contents)}};
_.g.maybeAttachReply=function(q){var N,b;(((N=this.commentEntity)==null?void 0:(b=N.properties)==null?void 0:b.replyLevel)||0)>=3?_.e2(this.hostElement,"yt-pushed-create-comment-reply",q):this.attachReply(q)};
_.g.onPushedCreateCommentReply=function(q){var N,b;(((N=this.commentEntity)==null?void 0:(b=N.properties)==null?void 0:b.replyLevel)||0)>=3||(this.attachReply(q.detail),q.stopPropagation())};
_.g.attachReply=function(q){var N;((N=this.data)==null?0:N.replies)?(N=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+N+".continuationItemRenderer")?N===0?this.push("addedReplies",q):this.splice("data.replies.commentRepliesRenderer.subThreads",N,0,q):this.push("data.replies.commentRepliesRenderer.subThreads",q)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[q],viewReplies:{buttonRenderer:{text:_.o5(_.FE("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.g.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.a9(this.addedReplies))),this.set("addedReplies",[]))};
_.g.removeCommentAction=function(q){q=_.v(q,QNl);var N=q==null?void 0:q.commentId,b;N&&((b=this.commentViewModel)==null?void 0:b.commentId)===N&&this.maybeRemoveComment(q.actionResult)};
_.g.banAuthorAction=function(q){q=_.v(q,Xtj);var N=q==null?void 0:q.commentId,b;N&&((b=this.commentViewModel)==null?void 0:b.commentId)===N&&this.maybeRemoveComment(q.actionResult)};
_.g.hideReportedCommentAction=function(q){q=_.v(q,ncF);var N=q==null?void 0:q.commentId,b;N&&((b=this.commentViewModel)==null?void 0:b.commentId)===N&&this.maybeRemoveComment(q.actionResult)};
_.g.maybeRemoveComment=function(q){q&&q.status==="STATUS_SUCCEEDED"&&(this.feedbackText=q.feedbackText||_.o5("Reply removed"),this.removed=!0)};
_.g.onTap=function(q){if(this.addHoverEffect&&!this.engagementPanel&&!_.Su(_.n9(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var N;((N=window.getSelection())==null?0:N.toString().length)||_.yI({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.g.attached=function(){var q=this;this.isSubThread&&(this.expanded=!0);var N;(N=this.commentThreadHitbox)==null||N.addEventListener("mouseover",function(){q.threadHovered=!0});
var b;(b=this.commentThreadHitbox)==null||b.addEventListener("mouseout",function(){q.threadHovered=!1});
var y;(y=this.commentThreadHitbox)==null||y.addEventListener("click",function(){q.maybeToggleExpanded()})};
_.g.onDataChanged=function(){var q=_.x("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(q)&&this.set(q,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.g.maybeToggleExpanded=function(){var q,N,b,y=(q=this.data)==null?void 0:(N=q.replies)==null?void 0:(b=N.commentRepliesRenderer)==null?void 0:b.subThreads,J;(y==null?void 0:y.length)===1&&((J=_.v(y[0],_.SP))==null?0:J.button)&&this.expanded||this.toggleExpanded()};
_.$H.Object.defineProperties(bp.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var q;return _.v((q=this.data)==null?void 0:q.commentViewModel,U2v)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return _.x("web_delhi_comment_threads")&&!!((q=this.data)==null?0:(N=q.replies)==null?0:(b=N.commentRepliesRenderer)==null?0:b.subThreads)}}});
bp.prototype.onDataChanged=bp.prototype.onDataChanged;bp.prototype.onTap=bp.prototype.onTap;bp.prototype.onAppendContinuationItemsActionFinished=bp.prototype.onAppendContinuationItemsActionFinished;bp.prototype.onPushedCreateCommentReply=bp.prototype.onPushedCreateCommentReply;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],bp.prototype,"ytdReduxBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],bp.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],bp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],bp.prototype,"addHoverEffect",void 0);_.p([_.U(),_.P("design:type",Object)],bp.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],bp.prototype,"useSmallAvatars",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],bp.prototype,"scrollingEnabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],bp.prototype,"isSubThread",void 0);_.p([_.dq(".thread-hitbox"),_.P("design:type",HTMLElement)],bp.prototype,"commentThreadHitbox",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],bp.prototype,"threadHovered",void 0);_.p([_.dq("#comment"),_.P("design:type",HTMLElement)],bp.prototype,"commentElement",void 0);
_.p([_.U(),_.P("design:type",Object)],bp.prototype,"expanded",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],bp.prototype,"removed",void 0);_.p([_.U(),_.P("design:type",Object)],bp.prototype,"feedbackText",void 0);_.p([_.U(),_.P("design:type",Array)],bp.prototype,"addedReplies",void 0);_.p([_.U({selector:EXd,selectorArgs:["commentViewModel.commentKey"]}),_.P("design:type",Object)],bp.prototype,"commentEntity",void 0);
_.p([_.ZP("yt-pushed-create-comment-reply"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],bp.prototype,"onPushedCreateCommentReply",null);_.p([_.ZP("yt-append-continuation-items-action-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bp.prototype,"onAppendContinuationItemsActionFinished",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],bp.prototype,"commentViewModel",null);
_.p([_.l("data.replies.commentRepliesRenderer.subThreads"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],bp.prototype,"hasSubThreading",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],bp.prototype,"engagementPanel",void 0);_.p([_.ZP("tap"),_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],bp.prototype,"onTap",null);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bp.prototype,"onDataChanged",null);_.p([_.I({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],bp);
_.a(bp,"ytd-comment-thread-renderer",function(){if(Wr1!==void 0)return Wr1;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Wr1=q},{mode:_.Am("kevlar_poly_si_batch_j025")?1:2});var Lrq;var yp=function(){var q=_.C.apply(this,arguments)||this;q.compactHeader=_.x("web_watch_compact_comments_header");q.hidePanelButton=!1;q.isPostSchedulingEnabled=_.x("enable_post_scheduling");q.hasFinishedStamping=!1;q.JSC$16130_handleOpenPostCommentDialogActionAfterStamp=!1;q.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return q};
_.Y(yp,_.C);_.g=yp.prototype;
_.g.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"}}}};
_.g.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.g.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16130_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.g.onYtServiceRequestSent=function(q,N){if(!_.x("kevlar_command_handler")&&N.actions)for(q=0;q<N.actions.length;q++){var b=N.actions[q];_.v(b,PKE)&&_.ee(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.v(b,PKE))}};
_.g.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var q;if(this.getPrefilledBackstagePostDialog((q=this.data)==null?void 0:q.actions)){_.ee(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var N=_.ee(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;N&&_.ut(this,function(){N.focus();N.openDialog&&N.openDialog()})}}else this.hasActionsChange=!0};
_.g.computeIsBackstage=function(q){return q};
_.g.onYtCommentboxDismiss=function(){_.ee(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.g.removePrefilledDialog=function(q){if(q==null?0:q.actions){for(var N=q.actions.length-1;N>=0;N--){var b=void 0;((b=_.v(q.actions[N],EYq))==null?0:b.dialog)&&delete q.actions[N]}this.set("data",void 0);this.set("data",q)}};
_.g.getPrefilledBackstagePostDialog=function(q){if(q)for(var N=0;N<q.length;N++){var b=q[N],y=void 0;if((y=_.v(b,EYq))==null?0:y.dialog)return _.v(b,EYq).dialog}return null};
_.g.computeBackstagePostDialog=function(q){return q&&(this.getPrefilledBackstagePostDialog(q.actions)||q.createRenderer)};
_.g.dataChanged=function(){if(this.data){var q=this.data.customEmojis,N=this.data.unicodeEmojisUrl;_.Zt.clear();N&&_.IA1(_.Zt,N);q&&_.Zt.load(q)}};
_.g.handleSignalActionOpenPostCommentDialogAction=function(){var q=_.ee(this.hostElement).querySelector("ytd-comment-simplebox-renderer");q?q.openDialog():this.JSC$16130_handleOpenPostCommentDialogActionAfterStamp=!0};
_.g.onPostHeaderTap=function(){var q;((q=this.data)==null?0:q.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.$H.Object.defineProperties(yp.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.x("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var q,N,b,y,J,E,F;return!this.hidePanelButton&&_.x("kevlar_watch_comments_panel_button")&&((F=_.v((q=this.data)==null?void 0:(N=q.sortMenu)==null?void 0:(b=N.sortFilterSubMenuRenderer)==null?void 0:(y=b.subMenuItems)==null?void 0:(J=y[0])==null?void 0:(E=J.serviceEndpoint)==null?void 0:E.commandMetadata,_.gg))==null?void 0:F.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.FE("MINIPLAYER_EXPAND_LABEL"),text:_.nD(_.FE("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
yp.prototype.dataChanged=yp.prototype.dataChanged;yp.prototype.onYtCommentboxDismiss=yp.prototype.onYtCommentboxDismiss;yp.prototype.observePrefilledBackstagePostDialog=yp.prototype.observePrefilledBackstagePostDialog;yp.prototype.onYtServiceRequestSent=yp.prototype.onYtServiceRequestSent;yp.prototype.onStampFinished=yp.prototype.onStampFinished;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],yp.prototype,"ytComponentBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],yp.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],yp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],yp.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],yp.prototype,"compactHeader",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],yp.prototype,"engagementPanel",void 0);_.p([_.U(),_.P("design:type",Object)],yp.prototype,"hidePanelButton",void 0);_.p([_.U({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.P("design:type",Boolean)],yp.prototype,"isBackstage",void 0);_.p([_.U({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.P("design:type",Object)],yp.prototype,"backstagePostDialog",void 0);
_.p([_.U(),_.P("design:type",Object)],yp.prototype,"isPostSchedulingEnabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data","showCommentsPanelButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],yp.prototype,"useSpaceBetween",null);_.p([_.U({reflectToAttribute:!0}),_.l("data","hidePanelButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],yp.prototype,"showCommentsPanelButton",null);
_.p([_.l("data","showCommentsPanelButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],yp.prototype,"commentsPanelButtonData",null);_.p([_.ZP("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yp.prototype,"onStampFinished",null);_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],yp.prototype,"onYtServiceRequestSent",null);
_.p([_.FY("data.actions"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yp.prototype,"observePrefilledBackstagePostDialog",null);_.p([_.ZP("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],yp.prototype,"onYtCommentboxDismiss",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yp.prototype,"dataChanged",null);
_.p([_.I({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],yp);
_.a(yp,"ytd-comments-header-renderer",function(){if(Lrq!==void 0)return Lrq;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Lrq=q},{mode:1});var pN1;var JJ=function(){return _.C.apply(this,arguments)||this};
_.Y(JJ,_.C);_.p([_.U(),_.P("design:type",Object)],JJ.prototype,"data",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);_.p([_.I({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],JJ);
_.a(JJ,"ytd-destination-button-renderer",function(){if(pN1!==void 0)return pN1;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return pN1=q},{mode:1});var P6M;var E8=function(){var q=_.C.apply(this,arguments)||this;q.isRichGrid=!1;q.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return q};
_.Y(E8,_.C);_.g=E8.prototype;_.g.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.g.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.g.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.g.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var q;if((q=this.data)==null||!q.isExpanded){q=this.hostElement.clientWidth;var N;if(q&&(N=this.data)!=null&&N.destinationButtons){N=Math.floor((q+4)/214);q=this.data.destinationButtons.length;var b=Math.ceil(q/N);this.fullyVisibleRows=q%N===1&&b===2?1:Math.min(b,2);this.isShowMoreVisible=this.fullyVisibleRows<b}}}};
_.g.updateRichGridDestinationButtonsVisibility=function(){var q,N;if(this.isRichGrid&&((q=this.data)==null||!q.isExpanded)&&(N=this.data)!=null&&N.destinationButtons){q=this.richGridItemsPerRow+1;N=this.data.destinationButtons.length;var b=Math.ceil(N/q);this.fullyVisibleRows=N%q===1&&b===2?1:Math.min(b,2);this.isShowMoreVisible=this.fullyVisibleRows<b}};
_.g.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
E8.prototype.updateRichGridDestinationButtonsVisibility=E8.prototype.updateRichGridDestinationButtonsVisibility;_.p([_.U(),_.P("design:type",Object)],E8.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Number)],E8.prototype,"fullyVisibleRows",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],E8.prototype,"isShowMoreVisible",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],E8.prototype,"isRichGrid",void 0);
_.p([_.U({selector:_.YR,value:0}),_.P("design:type",Number)],E8.prototype,"richGridItemsPerRow",void 0);_.p([_.U(),_.P("design:type",Object)],E8.prototype,"gridStateActionMap",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],E8.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],E8.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],E8.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],E8.prototype,"ytdReduxBehavior",void 0);_.p([_.FY("data","richGridItemsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E8.prototype,"updateRichGridDestinationButtonsVisibility",null);_.p([_.I({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],E8);
_.a(E8,"ytd-destination-shelf-renderer",function(){if(P6M!==void 0)return P6M;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return P6M=q},{mode:1});var MZq;var gi=function(){return _.C.apply(this,arguments)||this};
_.Y(gi,_.C);gi.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"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],gi.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],gi.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],gi.prototype,"data",void 0);_.p([_.I({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],gi);
_.a(gi,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(MZq!==void 0)return MZq;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return MZq=q},{mode:1});var ouE;var Zf=function(){var q=_.C.apply(this,arguments)||this;q.disableAnimation=!1;q.isSlimlineSurvey=!1;q.isSlimlineSurveyFollowUp=!1;q.isShortsStyle=!1;return q};
_.Y(Zf,_.C);Zf.prototype.onTap=function(q){q.preventDefault();this.data&&_.e2(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.$H.Object.defineProperties(Zf.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 q,N,b,y,J;return((q=this.data)==null?0:q.checked)?(N=this.data)==null?void 0:(b=N.onStateIcon)==null?void 0:b.iconType:(y=this.data)==null?void 0:(J=y.defaultStateIcon)==null?void 0:J.iconType}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Zf.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Zf.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Zf.prototype,"disableAnimation",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Zf.prototype,"isSlimlineSurvey",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Zf.prototype,"isSlimlineSurveyFollowUp",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Zf.prototype,"isShortsStyle",void 0);_.p([_.l("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zf.prototype,"isAnimatedIcon",null);
_.p([_.l("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.P("design:type",Number),_.P("design:paramtypes",[])],Zf.prototype,"iconSize",null);_.p([_.l("isShortsStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zf.prototype,"isDarkTheme",null);_.p([_.l("data.checked"),_.P("design:type",Object),_.P("design:paramtypes",[])],Zf.prototype,"icon",null);_.p([_.I({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Zf);
_.a(Zf,"ytd-rating-survey-option-renderer",function(){if(ouE!==void 0)return ouE;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return ouE=q},{mode:2});var AHM;var FZ=function(){var q=_.C.apply(this,arguments)||this;q.firstResponseText=null;q.lastResponseText=null;q.selectedNonStarOption=null;q.hideOptions=!1;q.hideUndoButton=!0;q.disableAnimation=!1;q.showResponseRangeText=!1;q.selectedRatingIndex=-1;q.isSlimlineSurvey=!1;q.isSlimlineSurveyFollowUp=!1;q.isShortsStyle=!1;q.slimlineSurveyRatingSelectedIndex=-1;return q};
_.Y(FZ,_.C);_.g=FZ.prototype;_.g.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.g.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.g.onOptionChange=function(q,N){var b=this;q=N.onStateIcon&&N.defaultStateIcon&&N.onStateIcon.iconType===N.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(F,R){F.responseText===N.responseText?b.isSlimlineSurvey?(b.selectedRatingIndex=R,b.ytdReduxBehavior.dispatch(yKl(R))):(b.setSurveyOptionValue(R,!0,"checked"),b.setSurveyOptionValue(R,!0,"selected")):(b.setSurveyOptionValue(R,!1,"checked"),b.setSurveyOptionValue(R,
!1,"selected"))});
else if(q)this.selectedNonStarOption=N,this.hideOptions=!0;else{var y=this.ytRendererBehavior.getSimpleString(N.responseText),J=!0;this.getOptionRenderers().forEach(function(F,R){b.setSurveyOptionValue(R,J,"checked");b.setSurveyOptionValue(R,!1,"selected");b.ytRendererBehavior.getSimpleString(F.responseText)===y&&(J=!1,b.setSurveyOptionValue(R,!0,"selected"))})}q=N.responseEndpoint;
var E;N.followUpCommand&&(E=_.v(N.followUpCommand,BCq));this.isSlimlineSurvey?(this.resetComponent(),_.By(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.By(this.hostElement,"ytd-inline-survey-rating-select-action",[q,E])};
_.g.showSelectedOption=function(){var q=this;_.pY.addJob(function(){var N=q.getOptionRenderers()[q.slimlineSurveyRatingSelectedIndex];q.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),N)},8,100)};
_.g.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(q){var N;return(N=_.v(q,qj1))!=null?N:{}}):[]};
_.g.onUndoClick=function(){this.resetComponent();_.By(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.g.setSurveyOptionValue=function(q,N,b){this.notifyPath("data.ratings."+q+".ratingSurveyOptionRenderer."+b);this.set("data.ratings."+q+".ratingSurveyOptionRenderer."+b,N)};
_.g.resetComponent=function(){var q=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var N=this.getOptionRenderers(),b,y;this.firstResponseText=(y=(b=N[0])==null?void 0:b.responseText)!=null?y:null;var J,E;this.lastResponseText=(E=(J=N[N.length-1])==null?void 0:J.responseText)!=null?E:null;N.forEach(function(F,R){q.setSurveyOptionValue(R,!1,"checked");q.setSurveyOptionValue(R,!1,"selected")})};
_.$H.Object.defineProperties(FZ.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
FZ.prototype.onOptionChange=FZ.prototype.onOptionChange;FZ.prototype.dataChanged=FZ.prototype.dataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],FZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],FZ.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],FZ.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Object)],FZ.prototype,"firstResponseText",void 0);_.p([_.U(),_.P("design:type",Object)],FZ.prototype,"lastResponseText",void 0);_.p([_.U(),_.P("design:type",Object)],FZ.prototype,"selectedNonStarOption",void 0);_.p([_.U(),_.P("design:type",Object)],FZ.prototype,"hideOptions",void 0);_.p([_.U(),_.P("design:type",Object)],FZ.prototype,"hideUndoButton",void 0);_.p([_.U(),_.P("design:type",Object)],FZ.prototype,"disableAnimation",void 0);
_.p([_.U(),_.P("design:type",Object)],FZ.prototype,"showResponseRangeText",void 0);_.p([_.U(),_.P("design:type",Object)],FZ.prototype,"selectedRatingIndex",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],FZ.prototype,"isSlimlineSurvey",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],FZ.prototype,"isSlimlineSurveyFollowUp",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],FZ.prototype,"isShortsStyle",void 0);_.p([_.U({selector:function(q){return q.ui.slimlineSurveyRatingSelectedIndex}}),
_.P("design:type",Object)],FZ.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.p([_.l("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],FZ.prototype,"isSingleSelect",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FZ.prototype,"dataChanged",null);
_.p([_.ZP("ytd-rating-survey-option-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],FZ.prototype,"onOptionChange",null);_.p([_.I({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],FZ);
_.a(FZ,"ytd-rating-survey-renderer",function(){if(AHM!==void 0)return AHM;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return AHM=q},{mode:1});var ezx;var BfE;var HbM;var GOz=(gR.FIRSTDAYOFWEEK+1)%7,qGj=function(q,N,b,y){var J="";if(y.selection&&VBh(y.selection))y_(q,y.selection)&&(J+=" selected");else if(y.selection&&jnA(y.selection)){var E=y.selection.selectionState||"START_DATE";y_(q,y.selection.start)&&(J+=" period-start ",E==="START_DATE"&&(J+="selected"));y_(q,y.selection.end)&&(J+=" period-end ",E==="END_DATE"&&(J+="selected"));J3(q,y.selection.start)||J3(y.selection.end,q)||(J+=" highlighted")}if(J3(N,y.start)||J3(y.end,N))J+=" disabled";y.circleToday&&
y_(N,b)&&(J+=" today");return J};var Ry=function(){return _.C.apply(this,arguments)||this};
_.Y(Ry,_.C);_.g=Ry.prototype;_.g.attached=function(){var q=this;_.ut(this,function(){q.JSC$16164_calendarMain.scrollHeight>0&&(q.calendarConfig.selection?q.scrollToDate(xDA(q.calendarConfig.selection)):q.scrollToDate(q.calendarConfig.end))})};
_.g.updateSelection=function(q){q=YOn(Object.assign({},this.calendarConfig,{selection:q}),qGj);this.splice.apply(this,["renderData.months",0,q.length].concat(_.a9(q)))};
_.g.scrollToDate=function(q){this.renderData&&(q=Qnd(q,this.renderData),q!==void 0&&this.JSC$16164_calendarMain.scrollToIndex(q))};
_.g.scrollToNextMonth=function(){this.JSC$16164_calendarMain.scrollToIndex(this.JSC$16164_calendarMain.firstVisibleIndex+1)};
_.g.scrollToPrevMonth=function(){this.JSC$16164_calendarMain.firstVisibleIndex===0&&this.JSC$16164_calendarMain.scrollTo(0,0);this.JSC$16164_calendarMain.scrollToIndex(this.JSC$16164_calendarMain.firstVisibleIndex-1)};
_.g.handleDayClick=function(q){_.By(this.hostElement,"ytd-calendar-date-clicked",[q.model.day.date])};
_.g.handleDayMouseDown=function(q){q.preventDefault();_.By(this.hostElement,"ytd-calendar-date-mousedown",[q.model.day.date])};
_.g.handleDayMouseUp=function(q){_.By(this.hostElement,"ytd-calendar-date-mouseup",[q.model.day.date])};
_.g.handleDayMouseEnter=function(q){q.preventDefault();_.By(this.hostElement,"ytd-calendar-date-mouseenter",[q.model.day.date])};
_.g.handleDayMouseLeave=function(q){_.By(this.hostElement,"ytd-calendar-date-mouseleave",[q.model.day.date])};
_.$H.Object.defineProperties(Ry.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var q=this.calendarConfig,N=qGj;N=N===void 0?qGj:N;for(var b=[],y=0;y<7;y++)b.push(gR.NARROWWEEKDAYS[(y+GOz)%7]);return{months:YOn(q,N),daysOfWeekLabel:b}}}});
_.p([_.U(),_.P("design:type",Object)],Ry.prototype,"calendarConfig",void 0);_.p([_.dq("#calendar-main"),_.P("design:type",Object)],Ry.prototype,"JSC$16164_calendarMain",void 0);_.p([_.l("calendarConfig"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ry.prototype,"renderData",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],Ry);
_.a(Ry,"ytd-scrollable-calendar",function(){if(HbM!==void 0)return HbM;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return HbM=q},{mode:2});var Nul;var bKR;var di=function(){var q=_.C.apply(this,arguments)||this;q.hideCharCounter=!1;q.hideLabel=!1;q.noLabelFloat=!1;q.autoValidate=!0;q.invalid=!1;q.disabled=!1;q.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return q};
_.Y(di,_.C);_.g=di.prototype;_.g.reset=function(q){this.value=q&&this.data?this.data.value=q:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.g.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.g.focusTextInput=function(){this.input.focus()};
_.g.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()};
_.g.valueChanged=function(){var q,N;if(((q=this.data)==null?0:q.value)||((N=this.data)==null?void 0:N.value)==="")this.value=this.data.value;else{var b;((b=this.data)==null?void 0:b.value)!==void 0||this.value||(this.value="")}};
_.g.computeLabel=function(q,N){return N?"":_.ao(q)};
_.g.computeAriaLabel=function(q,N){return N?_.ao(q):""};
_.g.computeErrorMessage=function(q,N,b,y){!q&&N?q=b||this.strings.REQUIRED_LABEL:(q=_.ao(y),q=_.un(q,"&")?"document"in _.JZ?RXx(q):dnM(q):q);return q};
_.g.computeType=function(q){return q==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.g.onTextValueChanged=function(q){this.value=q.detail.value;var N;(N=this.onValueChanged)==null||N.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.g.handleUpdateTextInputFormFieldRendererCommand=function(q){(q=_.v(q,VQR))&&this.data&&this.data.id===q.id&&(q.invalid!==void 0&&(this.invalid=q.invalid),q.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",q.invalidValueErrorMessage))};
_.g.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("value-changed",this.value))};
_.g.updateInvalidFromBinding=function(q){this.invalid=q.detail.value};
_.$H.Object.defineProperties(di.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var q;return!((q=this.data)==null||!q.isMultiline)}}});
di.prototype.valueChangedForBinding=di.prototype.valueChangedForBinding;di.prototype.valueChanged=di.prototype.valueChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],di.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],di.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],di.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],di.prototype,"data",void 0);_.p([_.U(),_.P("design:type",String)],di.prototype,"value",void 0);_.p([_.U(),_.P("design:type",String)],di.prototype,"pattern",void 0);_.p([_.U(),_.P("design:type",String)],di.prototype,"errorMessage",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],di.prototype,"componentStyle",void 0);_.p([_.U(),_.P("design:type",Object)],di.prototype,"hideCharCounter",void 0);
_.p([_.U(),_.P("design:type",Object)],di.prototype,"hideLabel",void 0);_.p([_.U(),_.P("design:type",Object)],di.prototype,"noLabelFloat",void 0);_.p([_.U(),_.P("design:type",Function)],di.prototype,"onValueChanged",void 0);_.p([_.U(),_.P("design:type",Boolean)],di.prototype,"isMultilineOverride",void 0);_.p([_.U(),_.P("design:type",Object)],di.prototype,"autoValidate",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],di.prototype,"invalid",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],di.prototype,"disabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],di.prototype,"enableOverlayTheme",void 0);_.p([_.U({value:{REQUIRED_LABEL:_.FE("REQUIRED_LABEL",void 0,"Required")}}),_.P("design:type",Object)],di.prototype,"strings",void 0);_.p([_.dq("#input"),_.P("design:type",Object)],di.prototype,"input",void 0);
_.p([_.l("data","isMultilineOverride"),_.P("design:type",Object),_.P("design:paramtypes",[])],di.prototype,"isMultiline",null);_.p([_.$9("data.value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],di.prototype,"valueChanged",null);_.p([_.FY("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],di.prototype,"valueChangedForBinding",null);_.p([_.Ok({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],di);
_.a(di,"yt-text-input-form-field-renderer",function(){if(bKR===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;Nul===void 0&&(Nul=document.createElement("template"));var y=Nul;b.call(N,y.content.cloneNode(!0),q.content.firstChild);bKR=q}q=bKR;return q},{mode:2});var c8=function(){var q=_.C.apply(this,arguments)||this;q.data=void 0;q.selectionState="START_DATE";q.isStartDateInvalid=!1;q.isEndDateInvalid=!1;q.autoapply=!1;q.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 q};
_.Y(c8,_.C);_.g=c8.prototype;_.g.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"}}}}};
_.g.focus=function(){this.startDateInput.focus()};
_.g.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:EA(this.data.selection.start),end:EA(this.data.selection.end)})};
_.g.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.g.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.ol(this.selectionState)}};
_.g.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.g.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.g.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.g.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var q=this.calendar.calendarConfig,N=q.end;q=wOA({start:q.start,end:this.endDate||N},this.startDateInput.value||"");this.isStartDateInvalid=!q.isValid;q.isValid&&(q=q.value,this.selection=this.endDate?{start:q,end:this.endDate}:q,this.calendar.scrollToDate(q));this.updateInvalidState()}};
_.g.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var q=this.calendar.calendarConfig,N=q.start;q=wOA({start:this.startDate||N,end:q.end},this.endDateInput.value||"");this.isEndDateInvalid=!q.isValid;q.isValid&&(q=q.value,this.selection={start:this.startDate,end:q},this.calendar.scrollToDate(q));this.updateInvalidState()}};
_.g.handleCalendarDateClicked=function(q){var N=this.selection&&xDA(this.selection),b=this.selection&&v4n(this.selection);N&&!J3(q,N)&&this.selectionState==="END_DATE"?(this.selection={start:N,end:q},this.selectionState="START_DATE"):(b&&!J3(b,q)?this.selection={start:q,end:b}:this.selection=q,this.selectionState="END_DATE")};
_.g.handleCalendarDateMouseDown=function(q){this.selection&&!VBh(this.selection)&&(this.dragPivot=y_(q,this.selection.start)?this.selection.end:y_(q,this.selection.end)?this.selection.start:q)};
_.g.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.g.handleCalendarDateMouseEnter=function(q){this.dragPivot&&(this.selection={start:function(N,b){return J3(N,b)?N:b}(this.dragPivot,q),
end:function(N,b){return J3(N,b)?b:N}(this.dragPivot,q)},this.dragPivot||(this.selectionState="START_DATE"))};
_.g.handleCalendarDateMouseLeave=function(){};
_.g.handleCalendarSubmitDateRange=function(){this.selection&&!VBh(this.selection)&&_.By(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.g.updateInvalidState=function(){var q=function(N,b){b?N.setAttribute("invalid",""):N.removeAttribute("invalid")};
q(this.startDateInput,this.isStartDateInvalid);q(this.endDateInput,this.isEndDateInvalid)};
_.g.updateDateStrings=function(){this.selection&&(VBh(this.selection)?XOz(this.selection):(XOz(this.selection.start),XOz(this.selection.end)))};
_.g.updateCalendarSelection=function(q){this.calendar.updateSelection(Object.assign({},q,{selectionState:this.selectionState}))};
_.g.updateIsStartDateInvalidFromBinding=function(q){this.isStartDateInvalid=q.detail.value};
_.g.updateIsEndDateInvalidFromBinding=function(q){this.isEndDateInvalid=q.detail.value};
_.g.updateStartDateStringFromBinding=function(){};
_.g.updateEndDateStringFromBinding=function(){};
_.$H.Object.defineProperties(c8.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:EA(this.data.dateRangeStart),end:EA(this.data.dateRangeEnd),selection:{start:EA(this.data.selection.start),end:EA(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&xDA(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&v4n(this.selection)}}});
c8.prototype.resetTextboxes=c8.prototype.resetTextboxes;c8.prototype.observeSelection=c8.prototype.observeSelection;c8.prototype.dataChanged=c8.prototype.dataChanged;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],c8.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],c8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("#calendar"),_.P("design:type",Object)],c8.prototype,"calendar",void 0);
_.p([_.dq("#start-date"),_.P("design:type",Object)],c8.prototype,"startDateInput",void 0);_.p([_.dq("#end-date"),_.P("design:type",Object)],c8.prototype,"endDateInput",void 0);_.p([_.U(),_.P("design:type",Object)],c8.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],c8.prototype,"selection",void 0);_.p([_.U(),_.P("design:type",String)],c8.prototype,"selectionState",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],c8.prototype,"calendarConfig",null);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],c8.prototype,"errorMessage",null);_.p([_.l("selection"),_.P("design:type",Object),_.P("design:paramtypes",[])],c8.prototype,"startDate",null);_.p([_.l("selection"),_.P("design:type",Object),_.P("design:paramtypes",[])],c8.prototype,"endDate",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],c8.prototype,"dataChanged",null);
_.p([_.FY("selection","selectionState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],c8.prototype,"observeSelection",null);_.p([_.FY("selectionState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],c8.prototype,"resetTextboxes",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],c8);
_.a(c8,"ytd-date-period-picker-renderer",function(){if(BfE!==void 0)return BfE;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return BfE=q},{mode:1});var up=function(){var q=_.C.apply(this,arguments)||this;var N={};q.actionMap=(N["ytd-date-period-picker-apply"]="handleDateRangeUpdated",N);return q};
_.Y(up,_.C);up.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
up.prototype.handleDateRangeUpdated=function(){};
_.p([_.U(),_.P("design:type",Object)],up.prototype,"data",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],up.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],up.prototype,"rendererstamperBehavior",void 0);_.p([_.I({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],up);
_.a(up,"ytd-report-history-section-header-renderer",function(){if(ezx!==void 0)return ezx;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return ezx=q},{mode:1});var ypo;var Jpj;var Evl;var zi=function(){return _.C.apply(this,arguments)||this};
_.Y(zi,_.C);_.$H.Object.defineProperties(zi.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.data)==null?0:(N=q.icon)==null?0:N.iconType)?_.qo(this.data.icon.iconType):""}}});
_.p([_.U(),_.P("design:type",Object)],zi.prototype,"data",void 0);_.p([_.l("data"),_.P("design:type",String),_.P("design:paramtypes",[])],zi.prototype,"icon",null);_.p([_.I({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],zi);
_.a(zi,"ytd-report-history-table-text-cell-renderer",function(){if(Evl!==void 0)return Evl;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Evl=q},{mode:1});var $p=function(){return _.C.apply(this,arguments)||this};
_.Y($p,_.C);$p.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],$p.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],$p.prototype,"data",void 0);_.p([_.I({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],$p);
_.a($p,"ytd-report-history-table-reason-cell-renderer",function(){if(Jpj!==void 0)return Jpj;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Jpj=q},{mode:1});var tJ=function(){return _.C.apply(this,arguments)||this};
_.Y(tJ,_.C);tJ.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"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],tJ.prototype,"rendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],tJ.prototype,"data",void 0);_.p([_.I({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],tJ);
_.a(tJ,"ytd-report-history-table-cell-renderer",function(){if(ypo!==void 0)return ypo;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
return ypo=q},{mode:1});var gvx;var m3=function(){var q=_.C.apply(this,arguments)||this;q.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 q};
_.Y(m3,_.C);m3.prototype.onDataChanged=function(){var q;if((q=this.data)==null?0:q.style)this.componentStyle=this.getStyleName(this.data.style)};
m3.prototype.getCellForColumn=function(q){return this.cells.find(function(N){var b;return((b=_.v(N==null?void 0:N.cell,yTE)||_.v(N==null?void 0:N.cell,bOl))==null?void 0:b.columnId)===q.type})};
m3.prototype.getClassForColumn=function(q){switch(q){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
m3.prototype.getStyleName=function(q){switch(q){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.$H.Object.defineProperties(m3.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var q;return(((q=this.data)==null?void 0:q.cells)||[]).map(function(N){return _.v(N,NUj)})}}});
m3.prototype.onDataChanged=m3.prototype.onDataChanged;_.p([_.U(),_.P("design:type",Object)],m3.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Array)],m3.prototype,"columnRenderData",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],m3.prototype,"componentStyle",void 0);_.p([_.l("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],m3.prototype,"cells",null);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],m3.prototype,"onDataChanged",null);_.p([_.I({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],m3);
_.a(m3,"ytd-report-history-table-row-renderer",function(){if(gvx!==void 0)return gvx;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return gvx=q},{mode:1});var ZKR;var Fgo;var iHZ={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},lEz={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var ri=function(){return _.C.apply(this,arguments)||this};
_.Y(ri,_.C);ri.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"}}}}}};
ri.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.$H.Object.defineProperties(ri.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.columns)?UDD(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return hiA(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var q=this.tableSpec,N=iHZ;N=N===void 0?lEz:N;N=kOe(q.columnDimensions,q.columnsToShow||[],N);q=0;N=_.Z(N);for(var b=N.next();!b.done;b=N.next())b=b.value,q+=b.minWidth+b.paddingLeft+b.paddingRight;return q}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.p([_.O(_.tA),_.P("design:type",Object)],ri.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ri.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ri.prototype,"data",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],ri.prototype,"tableSpec",null);_.p([_.l("tableSpec"),_.P("design:type",Array),_.P("design:paramtypes",[])],ri.prototype,"columnRenderData",null);
_.p([_.l("tableSpec"),_.P("design:type",Number),_.P("design:paramtypes",[])],ri.prototype,"totalMinWidth",null);_.p([_.l("totalMinWidth"),_.P("design:type",String),_.P("design:paramtypes",[])],ri.prototype,"tableWidthStyle",null);_.p([_.I({is:"ytd-table-renderer",disableElementRegistration:!0})],ri);
_.a(ri,"ytd-table-renderer",function(){if(Fgo!==void 0)return Fgo;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Fgo=q},{mode:1});var XZ=function(){return _.C.apply(this,arguments)||this};
_.Y(XZ,_.C);XZ.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}}}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],XZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],XZ.prototype,"data",void 0);_.p([_.I({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],XZ);
_.a(XZ,"ytd-report-reason-history-modal-renderer",function(){if(ZKR!==void 0)return ZKR;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return ZKR=q},{mode:1});var Rdo;var dsF;var cp1;var Vp=function(){return _.C.apply(this,arguments)||this};
_.Y(Vp,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Vp.prototype,"data",void 0);_.p([_.I({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Vp);
_.a(Vp,"ytd-profile-column-stats-entry-renderer",function(){if(cp1!==void 0)return cp1;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return cp1=q},{mode:1});var uDT;var jp=function(){return _.C.apply(this,arguments)||this};
_.Y(jp,_.C);jp.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],jp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],jp.prototype,"data",void 0);_.p([_.I({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],jp);
_.a(jp,"ytd-profile-column-stats-renderer",function(){if(uDT!==void 0)return uDT;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return uDT=q},{mode:1});var zdj;var xp=function(){return _.C.apply(this,arguments)||this};
_.Y(xp,_.C);_.$H.Object.defineProperties(xp.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.useThumbnailSize)return 80;var N,b;q=(N=this.data)==null?void 0:(b=N.thumbnail)==null?void 0:b.thumbnails;var y;return q&&((y=q[0])==null?void 0:y.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.useThumbnailSize)return 80;var N,b;q=(N=this.data)==null?void 0:(b=N.thumbnail)==null?void 0:b.thumbnails;var y;return q&&((y=q[0])==null?void 0:y.height)||80}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],xp.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],xp.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],xp.prototype,"componentStyle",void 0);_.p([_.l("data.useThumbnailSize"),_.P("design:type",Object),_.P("design:paramtypes",[])],xp.prototype,"thumbnailWidth",null);
_.p([_.l("data.useThumbnailSize"),_.P("design:type",Object),_.P("design:paramtypes",[])],xp.prototype,"thumbnailHeight",null);_.p([_.I({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],xp);
_.a(xp,"ytd-profile-column-user-info-renderer",function(){if(zdj!==void 0)return zdj;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return zdj=q},{mode:1});var Gi=function(){return _.C.apply(this,arguments)||this};
_.Y(Gi,_.C);Gi.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]]"}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Gi.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Gi.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Gi.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],Gi.prototype,"componentStyle",void 0);_.p([_.I({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],Gi);
_.a(Gi,"ytd-profile-column-renderer",function(){if(dsF!==void 0)return dsF;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return dsF=q},{mode:1});var Yp=function(){var q=_.C.apply(this,arguments)||this;q.componentStyle="NON_CENTERED_PROFILE";return q};
_.Y(Yp,_.C);Yp.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Yp.prototype.getIcon=function(q){return q?"settings:"+q.toLowerCase():null};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Yp.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Yp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Yp.prototype,"data",void 0);_.p([_.I({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Yp);
_.a(Yp,"ytd-page-introduction-renderer",function(){if(Rdo!==void 0)return Rdo;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Rdo=q},{mode:1});var $sl;var Qp=function(){return _.C.apply(this,arguments)||this};
_.Y(Qp,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Qp.prototype,"data",void 0);_.p([_.I({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Qp);
_.a(Qp,"ytd-report-description-renderer",function(){if($sl!==void 0)return $sl;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return $sl=q},{mode:1});var trl;var msR;var O8=function(){return _.C.apply(this,arguments)||this};
_.Y(O8,_.C);O8.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],O8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],O8.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],O8.prototype,"data",void 0);_.p([_.I({is:"ytd-video-report-renderer",disableElementRegistration:!0})],O8);
_.a(O8,"ytd-video-report-renderer",function(){if(msR!==void 0)return msR;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return msR=q},{mode:1});var rp1;_.xP("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.xP("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var wi=function(){return _.C.apply(this,arguments)||this};
_.Y(wi,_.C);wi.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]]"}}}}}};
wi.prototype.computeMessageStyle=function(q){return q};
wi.prototype.computeButtonOverride=function(q){var N;if((q==null?0:(N=q.style)==null?0:N.value)&&q.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],wi.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],wi.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],wi.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],wi.prototype,"shelf",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],wi.prototype,"panel",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.P("design:type",Boolean)],wi.prototype,"componentStyle",void 0);_.p([_.U({computed:"computeButtonOverride(data)"}),_.P("design:type",Object)],wi.prototype,"buttonOverride",void 0);_.p([_.I({is:"ytd-message-renderer",disableElementRegistration:!0})],wi);
_.a(wi,"ytd-message-renderer",function(){if(rp1!==void 0)return rp1;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return rp1=q},{mode:1});var ip=function(){return _.C.apply(this,arguments)||this};
_.Y(ip,_.C);ip.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"}}}};
ip.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
ip.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.$H.Object.defineProperties(ip.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var q,N;return!!(((q=this.data)==null?0:q.header)&&((N=this.data)==null?0:N.table))}}});
ip.prototype.onRequestError=ip.prototype.onRequestError;_.p([_.O(_.tA),_.P("design:type",Object)],ip.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ip.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ip.prototype,"data",void 0);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],ip.prototype,"isUnifiedReportHistory",null);_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ip.prototype,"onRequestError",null);_.p([_.I({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],ip);
_.a(ip,"ytd-report-history-section-renderer",function(){if(trl!==void 0)return trl;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return trl=q},{mode:1});var Xi4;var lp=function(){var q=_.C.apply(this,arguments)||this;q.answerExpanded=!1;return q};
_.Y(lp,_.C);lp.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],lp.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],lp.prototype,"answerExpanded",void 0);_.p([_.I({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],lp);
_.a(lp,"ytd-handles-claiming-faq-renderer",function(){if(Xi4!==void 0)return Xi4;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Xi4=q},{mode:1});var VrM;var jIF=function(){return _.C.apply(this,arguments)||this};
_.Y(jIF,_.C);_.p([_.U(),_.P("design:type",Object)],jIF.prototype,"data",void 0);_.p([_.I({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],jIF);
_.a(jIF,"ytd-handles-claiming-faq-section-renderer",function(){if(VrM!==void 0)return VrM;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return VrM=q},{mode:1});var xs1;var K8=function(){var q=_.C.apply(this,arguments)||this;q.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";q.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";q.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";q.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";q.leftSquiggly=q.leftSquigglyLight;q.rightSquiggly=q.rightSquigglyLight;
q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};q.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return q};
_.Y(K8,_.C);_.g=K8.prototype;_.g.updateLeftSquigglyStyle=function(){_.Jm(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.g.updateRightSquigglyStyle=function(){_.Jm(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.g.ready=function(){var q=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(q)};
_.g.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.set("isDarkTheme",q),q?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.g.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
K8.prototype.updateRightSquigglyStyle=K8.prototype.updateRightSquigglyStyle;K8.prototype.updateLeftSquigglyStyle=K8.prototype.updateLeftSquigglyStyle;_.p([_.U(),_.P("design:type",Object)],K8.prototype,"data",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],K8.prototype,"isDarkTheme",void 0);_.p([_.U(),_.P("design:type",String)],K8.prototype,"leftSquiggly",void 0);_.p([_.U(),_.P("design:type",String)],K8.prototype,"rightSquiggly",void 0);
_.p([_.FY("leftSquiggly"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K8.prototype,"updateLeftSquigglyStyle",null);_.p([_.FY("rightSquiggly"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K8.prototype,"updateRightSquigglyStyle",null);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],K8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],K8.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],K8.prototype,"actionButtonOverride",void 0);_.p([_.I({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],K8);
_.a(K8,"ytd-handles-claiming-header-renderer",function(){if(xs1!==void 0)return xs1;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return xs1=q},{mode:1});var vv4;var Df=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};q.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";q.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";q.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";q.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
q.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";q.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";q.image0SquigglyBackground=q.image0LightSquigglyBackground;q.image1SquigglyBackground=q.image1LightSquigglyBackground;q.image3SquigglyBackground=q.image3LightSquigglyBackground;return q};
_.Y(Df,_.C);_.g=Df.prototype;_.g.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.g.onDataChanged=function(){this.updateTitleAndImages()};
_.g.onThemeChanged=function(){this.updateTitleAndImages()};
_.g.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.isDarkTheme=q)};
_.g.updateImage0SquigglyBackground=function(){_.Jm(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.g.updateImage1SquigglyBackground=function(){_.Jm(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.g.updateImage3SquigglyBackground=function(){_.Jm(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.g.updateTitleAndImages=function(){var q,N;((q=this.data)==null?void 0:(N=q.titleImages)==null?void 0:N.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))};
Df.prototype.updateImage3SquigglyBackground=Df.prototype.updateImage3SquigglyBackground;Df.prototype.updateImage1SquigglyBackground=Df.prototype.updateImage1SquigglyBackground;Df.prototype.updateImage0SquigglyBackground=Df.prototype.updateImage0SquigglyBackground;Df.prototype.onThemeChanged=Df.prototype.onThemeChanged;Df.prototype.onDataChanged=Df.prototype.onDataChanged;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Df.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Df.prototype,"isDarkTheme",void 0);_.p([_.U(),_.P("design:type",Object)],Df.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Df.prototype,"title0",void 0);_.p([_.U(),_.P("design:type",Object)],Df.prototype,"title1",void 0);_.p([_.U(),_.P("design:type",Object)],Df.prototype,"title2",void 0);_.p([_.U(),_.P("design:type",Object)],Df.prototype,"title3",void 0);
_.p([_.U(),_.P("design:type",Object)],Df.prototype,"title4",void 0);_.p([_.U(),_.P("design:type",Object)],Df.prototype,"image0",void 0);_.p([_.U(),_.P("design:type",Object)],Df.prototype,"image1",void 0);_.p([_.U(),_.P("design:type",Object)],Df.prototype,"image2",void 0);_.p([_.U(),_.P("design:type",Object)],Df.prototype,"image3",void 0);_.p([_.U(),_.P("design:type",Object)],Df.prototype,"image4",void 0);_.p([_.U(),_.P("design:type",String)],Df.prototype,"image0SquigglyBackground",void 0);
_.p([_.U(),_.P("design:type",String)],Df.prototype,"image1SquigglyBackground",void 0);_.p([_.U(),_.P("design:type",String)],Df.prototype,"image3SquigglyBackground",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Df.prototype,"onDataChanged",null);_.p([_.FY("isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Df.prototype,"onThemeChanged",null);
_.p([_.FY("image0SquigglyBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Df.prototype,"updateImage0SquigglyBackground",null);_.p([_.FY("image1SquigglyBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Df.prototype,"updateImage1SquigglyBackground",null);
_.p([_.FY("image3SquigglyBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Df.prototype,"updateImage3SquigglyBackground",null);_.p([_.I({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Df);
_.a(Df,"ytd-handles-claiming-title-images-section-renderer",function(){if(vv4!==void 0)return vv4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return vv4=q},{mode:1});var GuR;var hJ=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.Y(hJ,_.C);hJ.prototype.ready=function(){var q=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(q)};
hJ.prototype.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&this.set("isDarkTheme",q)};
hJ.prototype.onCopyButtonClick=function(){var q=this,N,b,y;return _.d(function(J){return(N=q.data)!=null&&N.primaryChannelUrl?J.yield(navigator.clipboard.writeText(((b=q.data)==null?0:b.encodedChannelUrl)?q.data.encodedChannelUrl:"https://"+_.ao((y=q.data)==null?void 0:y.primaryChannelUrl)),0):J.jumpTo(0)})};
_.p([_.U(),_.P("design:type",Object)],hJ.prototype,"data",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],hJ.prototype,"ytComponentBehavior",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],hJ.prototype,"isDarkTheme",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],hJ.prototype,"ytActionHandlerBehavior",void 0);_.p([_.I({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],hJ);
_.a(hJ,"ytd-handles-claiming-update-social-renderer",function(){if(GuR!==void 0)return GuR;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return GuR=q},{mode:1});var YGE;var kp=function(){var q=_.C.apply(this,arguments)||this;q.JSC$16258_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";q.JSC$16258_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};q.squigglyBackground=q.JSC$16258_squigglyBackgroundLight;return q};
_.Y(kp,_.C);kp.prototype.updateSquigglyBackgroundStyle=function(){_.Jm(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
kp.prototype.ready=function(){var q=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",q);this.squigglyBackground=q?this.JSC$16258_squigglyBackgroundDark:this.JSC$16258_squigglyBackgroundLight};
kp.prototype.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.set("isDarkTheme",q),this.squigglyBackground=q?this.JSC$16258_squigglyBackgroundDark:this.JSC$16258_squigglyBackgroundLight)};
kp.prototype.updateSquigglyBackgroundStyle=kp.prototype.updateSquigglyBackgroundStyle;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],kp.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],kp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],kp.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],kp.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],kp.prototype,"isDarkTheme",void 0);_.p([_.U(),_.P("design:type",String)],kp.prototype,"squigglyBackground",void 0);_.p([_.FY("squigglyBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kp.prototype,"updateSquigglyBackgroundStyle",null);_.p([_.I({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],kp);
_.a(kp,"ytd-handles-claiming-vanity-info-renderer",function(){if(YGE!==void 0)return YGE;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return YGE=q},{mode:1});var QIM;var U8=function(){var q=_.C.apply(this,arguments)||this;q.JSC$16261_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";q.JSC$16261_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";q.squigglyBackground=q.JSC$16261_squigglyBackgroundLight;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.Y(U8,_.C);_.g=U8.prototype;_.g.ready=function(){var q=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(q)};
_.g.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.set("isDarkTheme",q),this.squigglyBackground=q?this.JSC$16261_squigglyBackgroundDark:this.JSC$16261_squigglyBackgroundLight)};
_.g.updateSquigglyBackgroundStyle=function(){_.Jm(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.g.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.g.detached=function(){this.stop()};
_.g.stop=function(){this.playerElement.stop()};
_.g.setupVideoPlayer=function(){var q=this,N,b;return _.d(function(y){N=q.data.videoId;b="http://i1.ytimg.com/vi/"+N+"/maxresdefault.jpg";q.playerElement.loadVideoWithPlayerVars({video_id:N,iurlhq:b});_.hj(y)})};
U8.prototype.onDataChanged=U8.prototype.onDataChanged;U8.prototype.updateSquigglyBackgroundStyle=U8.prototype.updateSquigglyBackgroundStyle;_.p([_.U({value:!1}),_.P("design:type",Boolean)],U8.prototype,"isDarkTheme",void 0);_.p([_.U(),_.P("design:type",String)],U8.prototype,"squigglyBackground",void 0);_.p([_.dq("#player"),_.P("design:type",Object)],U8.prototype,"playerElement",void 0);_.p([_.U(),_.P("design:type",Object)],U8.prototype,"data",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],U8.prototype,"ytActionHandlerBehavior",void 0);_.p([_.FY("squigglyBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],U8.prototype,"updateSquigglyBackgroundStyle",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],U8.prototype,"onDataChanged",null);
_.p([_.I({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],U8);
_.a(U8,"ytd-handles-claiming-video-item-renderer",function(){if(QIM!==void 0)return QIM;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return QIM=q},{mode:1});var OK1;var C8=function(){var q=_.uL.apply(this,arguments)||this;q.dragging=!1;q.dragMouseStart=0;q.dragOffsetStart=0;q.containerWidthDiff=0;q.boundPrevClick=function(){q.set("offset",f8(q,q.offset-(q.scrollDistance||320)))};
q.boundNextClick=function(){q.set("offset",f8(q,q.offset+(q.scrollDistance||320)))};
q.boundScrollContainerMouseDown=function(N){q.dragMouseStart=N.clientX;q.dragOffsetStart=q.offset;q.dragging=!0};
q.boundScrollContainerDrag=function(N){q.dragging&&q.set("offset",f8(q,q.dragOffsetStart-(N.clientX-q.dragMouseStart)))};
q.boundMouseUp=function(){q.onMouseUp()};
q.boundWheelScroll=function(N){var b=0;Math.abs(N.deltaX)>=Math.abs(N.deltaY)?b=N.deltaX:N.shiftKey&&(b=N.deltaY);b!==0&&(q.offset+=b,N.stopPropagation(),N.preventDefault())};
q.boundChipCloudChipScrollIntoView=function(N){(N=N.detail)&&q.scrollChipIntoView(N)};
return q};
_.Y(C8,_.uL);C8.prototype.attached=function(){var q=_.ee(this.hostElement).querySelector("#scroll-container");q.addEventListener("wheel",this.boundWheelScroll);q.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);q.style.touchAction="pan-y";q.addEventListener("pointerdown",this.boundScrollContainerMouseDown);q.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
C8.prototype.detached=function(){var q=_.ee(this.hostElement).querySelector("#scroll-container");q.removeEventListener("wheel",this.boundWheelScroll);q.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);q.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);q.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
C8.prototype.reset=function(){this.set("offset",0);_.ut(this,this.setContainerWidthDiff);_.ut(this,this.setButtonsState)};
var f8=function(q,N){return Math.min(Math.max(N,0),q.containerWidthDiff)};
_.g=C8.prototype;_.g.onMouseUp=function(){this.dragging=!1};
_.g.transformContainer=function(){this.offset=f8(this,this.offset);var q=_.M7("HTML_DIR")==="rtl"?"":"-";_.ee(this.hostElement).querySelector("#chips").style.transform="translateX("+q+this.offset+"px)";_.ut(this,this.setButtonsState)};
_.g.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=f8(this,this.offset));this.atStart=this.offset<=0};
_.g.setContainerWidthDiff=function(){var q=_.ee(this.hostElement).querySelector("#scroll-container"),N=_.ee(this.hostElement).querySelector("#chips");q&&N&&(this.containerWidthDiff=N.clientWidth-q.clientWidth)};
_.g.scrollChipIntoView=function(q){var N=_.ee(this.hostElement).querySelector("#scroll-container");if(N){var b=this.atStart?0:106,y=this.atEnd?0:106;q.offsetLeft<this.offset+b?this.offset=f8(this,q.offsetLeft-b):q.offsetLeft+q.clientWidth>this.offset+N.clientWidth-y&&(this.offset=f8(this,q.offsetLeft+q.clientWidth+y-N.clientWidth))}};
C8.prototype.transformContainer=C8.prototype.transformContainer;_.p([_.U({value:0}),_.P("design:type",Number)],C8.prototype,"offset",void 0);_.p([_.U({value:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],C8.prototype,"atStart",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],C8.prototype,"atEnd",void 0);_.p([_.U(),_.P("design:type",Number)],C8.prototype,"scrollDistance",void 0);
_.p([_.FY("offset"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],C8.prototype,"transformContainer",null);_.p([_.zs()],C8);var wiE;var iKj;_.Iy=_.n(function(q){var N=q.data;q=_.Z(_.QS(!1,void 0,"bob3J"));var b=q.next().value,y=q.next().value;q=function(E){if((N==null?void 0:N().state)!==1){var F,R;(R=(F=N()).onTap)==null||R.call(F,E)}};
var J={};return _.u("chip-shape",{class:"ytChipShapeHost","on:focusin":_.y0(function(){var E=_.tz().resolve(_.$f(_.X5));if(E){y(E.isKeyBoardInUse());var F,R;(R=(F=N()).onFocusIn)==null||R.call(F)}return!1}),
"on:focusout":_.y0(function(){y(!1);return!1})},_.u(lH1,{shouldWrapInButton:function(){return N().type!==2},
selected:function(){return N().state===0},
onClick:q,isDropdown:function(){return N().type===1},
accessibilityLabel:function(){return N().type===1?void 0:N().accessibilityLabel}},_.u("div",{class:_.NO("ytChipShapeChip",function(){a:switch(N==null?void 0:N().state){case 0:var E="ytChipShapeActive";
break a;case 1:E="ytChipShapeDisabled";break a;default:E="ytChipShapeInactive"}return E},function(){var E=N().type===1||N().type===2,F=N();
return E||F!=null&&F.startIcon?F==null||!F.startIcon||F!=null&&F.text?E?"ytChipShapeEndIconPadding":(F==null?0:F.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var E=N();
if((E==null?void 0:E.style)===0&&(E==null?void 0:E.state)===0){var F;E=((F=_.tz().resolve(_.$f(_.ft)))==null?0:F())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else E="";return E},(J.ytChipShapeFocused=function(){var E;
return b()&&((E=N())==null?void 0:E.state)!==1},J))},_.u(_.t,{cond:function(){return N().startIcon},
then:function(){return _.u(_.FQ,{icon:function(){var E;return(E=N())==null?void 0:E.startIcon},
className:_.NO(function(){return N().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var E=N(),F,R=(F=_.tz().resolve(_.$f(_.ft)))==null?void 0:F();
return(E==null?void 0:E.style)===0&&(E==null?void 0:E.state)===0&&R?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return N().text},_.u(KgT,{shape:N,
onClick:q}),_.u(_.j9,{model:{borderRadius:"8px"}}))))},"Lc");
_.Iy.idomCompat=!0;var lH1=_.n(function(q){var N=_.y0(function(b){q.onClick(b);return!1});
return _.u(_.t,{cond:q.shouldWrapInButton,then:function(){return _.u("button",{class:"ytChipShapeButtonReset","on:click":N,role:function(){return q.isDropdown()?"combobox":"tab"},
"aria-label":q.accessibilityLabel,"aria-selected":q.selected},q.children)},
else:function(){return q.children}})},"Mc"),KgT=_.n(function(q){var N=q.shape;
var b=q.onClick;var y=_.y0(function(J){b(J);return!1});
return _.u(_.sw,null,_.u(_.CI,{when:function(){return N().type===1}},function(){return _.u(_.FQ,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.u(_.CI,{when:function(){return N().type===2}},function(){return _.u("button",{class:"ytChipShapeButtonReset",
"on:click":y},_.u(_.FQ,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.u(_.CI,{when:function(){return N().type===0}},function(){return _.u(_.rV,null)}))},"Nc");_.P$(_.Iy,"chip-shape",{props:{data:_.F5}});var Ti=function(){var q=_.C.apply(this,arguments)||this;q.disableDeselectEvent=!1;q.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return q};
_.Y(Ti,_.C);_.g=Ti.prototype;_.g.onSelectChipCommand=function(q){if(!this.selected&&this.data&&(q=_.v(q,RU4),q.targetId&&q.targetId===this.data.targetId))this.onTap()};
_.g.onFilterChipTransformCommand=function(q){if(!this.selected&&this.data){var N;(q=(N=_.v(q,yt1))==null?void 0:N.chipUniqueId)&&q===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.g.dataChanged=function(){var q=this;_.ut(this,function(){q.data&&q.data.isSelected&&!q.selected&&(q.scrollChipIntoView(),q.onTap())})};
_.g.computeChipStyle=function(q){return q!=null?q:"STYLE_DEFAULT"};
_.g.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.By(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.By(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.g.onFocus=function(){var q=_.tz().resolve(_.$f(_.X5));q&&q.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.g.scrollChipIntoView=function(){_.e2(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.$H.Object.defineProperties(Ti.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return aEJ({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Ti.prototype.onFocus=Ti.prototype.onFocus;Ti.prototype.onTap=Ti.prototype.onTap;Ti.prototype.dataChanged=Ti.prototype.dataChanged;_.p([_.O(_.Ci),_.P("design:type",Object)],Ti.prototype,"ironButtonState",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ti.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Ti.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Ti.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.kT),_.P("design:type",Object)],Ti.prototype,"ironA11yKeysBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ti.prototype,"disableDeselectEvent",void 0);_.p([_.U(),_.P("design:type",Object)],Ti.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data.icon"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ti.prototype,"hasIcon",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data.uniqueId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ti.prototype,"isGnomeChip",null);_.p([_.U({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.P("design:type",String)],Ti.prototype,"chipStyle",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Ti.prototype,"selected",void 0);
_.p([_.l("data","selected"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ti.prototype,"chipShapeData",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ti.prototype,"dataChanged",null);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ti.prototype,"onTap",null);
_.p([_.ZP("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ti.prototype,"onFocus",null);_.p([_.Ok({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Ti);
_.a(Ti,"yt-chip-cloud-chip-renderer",function(){if(iKj===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;wiE===void 0&&(wiE=document.createElement("template"));var y=wiE;b.call(N,y.content.cloneNode(!0),q.content.firstChild);iKj=q}q=iKj;return q},{mode:2});var LbJ=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.DsF=_.n(function(q){function N(){if(LbJ.has(q.data().displayType)){var z=!y(),m;if((m=q.disableDeselection)==null||!m.call(q)||z){q.data().selected=z;m=Object.assign({},F(),{selected:z});R(m);var r;(r=q.callback)==null||r.call(q,m,z)}}}
var b=_.dI("chip-view-model"),y=function(){var z,m;return!!(((z=q.selected)==null?void 0:z.call(q))!==void 0?(m=q.selected)==null?0:m.call(q):F().selected)},J=_.Z(_.gJ(q.data)),E=J.next().value;
J=J.next().value;var F=E,R=J,c=_.dj(Wbu,function(){return q.data().chipEntityKey||""});
return _.u("chip-view-model",{class:"ytChipViewModelHost",el:b},_.u(_.Iy,{data:function(){var z,m=Object.assign({},F(),{selected:y()}),r=c(),X=(z=q.disableDeselection)==null?void 0:z.call(q);a:switch(m.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":z=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":z=3;break a;default:z=0}return{text:(r==null?void 0:r.text)||m.text,state:m.disabled?1:m.selected?0:2,type:z,onTap:pOe(m,b,N,
X),accessibilityLabel:m.accessibilityLabel||m.text}}}))},"Oc");
_.DsF.idomCompat={callbacks:{callback:!0}};_.s8=_.n(function(q){var N=q.data;var b=q.callback;var y=q.selectionBehavior;var J=q.disableChipsScrollAnimation;var E=_.cK("div");q=_.Z(_.QS(!0,void 0,"aUEsOc"));var F=q.next().value,R=q.next().value;q=_.Z(_.QS(!1,void 0,"V0aKld"));var c=q.next().value,z=q.next().value,m=!1,r=0;_.SI(function(){R(G());z(w())});
q=_.Z(_.gJ(function(){var qe={};return N().autoselectedChipIndex!=null?(qe[N().autoselectedChipIndex]=!0,qe):{}}));
var X=q.next().value,V=q.next().value,G=function(){var qe=E.value;return qe==null||qe.scrollLeft-1<=0},w=function(){var qe=E.value;
return qe==null?!1:qe.scrollLeft+1>=(qe==null?NaN:qe.scrollWidth)-(qe==null?NaN:qe.clientWidth)},D=function(){return N().isHorizontallyScrollable},k=function(qe){E.value!=null&&(_.M7("HTML_DIR")==="rtl"&&(qe=-qe),E.value.scrollBy({left:qe,
behavior:(J==null?0:J())?"instant":"smooth"}))},f=function(){k(-320)},L=function(){k(320)},S=_.y0(function(qe){m=!0;
r=qe.clientX}),W=_.y0(function(qe){if(m){qe=qe.clientX;
var RJ=qe-r;r=qe;var tZ;(tZ=E.value)==null||tZ.scrollBy({left:-RJ})}}),M=_.y0(function(){var qe=G(),RJ=w();
qe!==F()&&R(qe);RJ!==c()&&z(RJ)});
_.$F("pointerup",function(){m&&(m=!1)});
return _.u("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.u(_.KS,{contentId:function(){return N().contentId},
useModernStyle:!0},function(){var qe={},RJ={};return _.u("div",null,_.u(_.t,{cond:function(){return N().title},
then:function(){return _.u("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.u("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return N().title}),_.u(_.zS,{data:function(){return N().overflowButton}},{buttonViewModel:_.Ou}))}}),_.u("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.u(_.t,{cond:function(){return N().previousButton},
then:function(){var tZ={};return _.u("div",{class:_.NO("ytChipsShelfViewModelLeftArrowContainer",(tZ.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return F()},tZ))},_.u(_.zS,{data:function(){return N().previousButton}},{buttonViewModel:function(wA){return _.u(_.Ou,{data:wA.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:f})}}))}}),_.u("div",{el:E,
"on:pointerdown":S,"on:pointermove":W,"on:scroll":M,class:_.NO("ytChipsShelfViewModelChipsScrollContainer",(qe.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=D,qe))},_.u("div",{class:_.NO("ytChipsShelfViewModelChipsContainer",(RJ.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=D,RJ.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,RJ)),role:"tablist"},_.u(_.zS,{data:function(){return N().contents}},{chipViewModel:function(tZ,wA){return _.u("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.u(_.DsF,{data:tZ.data,
callback:function(rA,xD){var IJ=wA(),sJ,Sn=(sJ=y==null?void 0:y())!=null?sJ:0;Sn===1||Sn===2?(sJ={},V((sJ[IJ]=xD,sJ))):(sJ={},V(Object.assign({},X(),(sJ[IJ]=xD,sJ))));b==null||b(rA,xD,IJ)},
disableDeselection:function(){return(y==null?void 0:y())===1},
selected:function(){return!!X()[wA()]}}))}}))),_.u(_.t,{cond:function(){return N().nextButton},
then:function(){var tZ={};return _.u("div",{class:_.NO("ytChipsShelfViewModelRightArrowContainer",(tZ.ytChipsShelfViewModelRightArrowContainerIsHidden=c,tZ))},_.u(_.zS,{data:function(){return N().nextButton}},{buttonViewModel:function(wA){return _.u(_.Ou,{data:wA.data,
className:"ytChipsShelfViewModelRightArrow",onClick:L})}}))}})))}))},"Qc");
_.s8.idomCompat={callbacks:{callback:!0}};var hdq=_.n(function(q){var N=q.data;var b=q.showChips;var y=q.isUpdateInProgress;var J=function(){return b()&&!y()};
q={};return _.u("ytd-ai-response-box-view-model",{class:_.NO("ytdAiResponseBoxViewModelHost")},_.u("div",{class:_.NO("ytdAiResponseBoxViewModelResponseMessageContainer",(q.ytdAiResponseBoxViewModelResponseMessageContainerHidden=J,q))},_.u(_.t,{cond:y,then:function(){return _.u("div",null,_.u(_.Zc,{text:function(){return N().responsePendingMessage}}))},
else:function(){return _.u(_.rV,null,_.u(_.t,{cond:function(){var E;return(E=N().responseMessageIcon)==null?void 0:E.iconType},
then:function(E){return _.u("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.u(_.FQ,{icon:E}))}}),_.u("div",null,_.u(_.Zc,{text:function(){return N().responseMessage}})))}})),_.u(_.zS,{data:function(){return N().chipsShelf}},{chipsShelfViewModel:function(E){E=E.data;
var F={};return _.u("div",{class:_.NO("ytdAiResponseBoxViewModelChipsShelfContainer",(F.ytdAiResponseBoxViewModelChipsShelfContainerShown=J,F))},_.u(_.s8,{data:E}))}}))},"Rc");var kuT;kuT=Object.assign({},{continuation:p8x,download:TiE,canvas:zHZ,reportChannelAbuse:Bix,ui:tmu,share:H8x,talkToRecs:bdF,watch:bd,ypc:Ffl,radioButtonGroup:Ite,collabInviteLink:ftA},L3T,{voiceSearch:XXd,shorts:NA});_.n8=G4(kuT);_.UsM=YP(_.n8);_.fHo=(0,_.UsM)(_.n8.talkToRecs,{talkToRecsStateSelector:function(q){return q}});_.P$(_.n(function(q){var N=_.Z((0,_.qyF)(q.data)).next().value,b=_.Z(SOD()),y=b.next().value;b=b.next().value;var J=_.uR(_.fHo.talkToRecsStateSelector),E=_.Z(_.gJ(function(){var L,S,W;return(W=(S=MBJ(N(),J()))!=null?S:(L=N().textInputValue)==null?void 0:L.content)!=null?W:""})),F=E.next().value,R=E.next().value;
E=_.Z(_.QS(!1,void 0,"c7rlLe"));var c=E.next().value,z=E.next().value;E=_.Z(_.QS(!1,void 0,"jmnkf"));var m=E.next().value,r=E.next().value;_.WC(function(){var L=N().onVisible;L&&_.Kt(L,{})});
var X=_.y0(function(){z(!0)});
_.Sx(function(){N()&&(z(!1),r(!1))},"Aq2H4e");
var V=function(L){var S=N().onUpdateText;S&&_.Kt(S,{form:{userQuery:L}})},G=_.vE(function(L){V(L)},150),w=_.y0(function(L){L=L.target.value.trim();
R(L);G(L);return!1});
_.Sx(function(){var L=MBJ(N(),J());L&&L!==F()&&R(L)},"jerE");
var D=function(){r(!0)},k=_.y0(function(L){if(L.key==="Enter"){V(L.target.value.trim());
var S=_.v(N().submitButton,_.FF);L=void 0;var W;if(S==null?0:(W=S.loggingDirectives)==null?0:W.trackingParams)L=_.zT(S.loggingDirectives.trackingParams);if(W=S==null?void 0:S.onTap)_.Kt(W,{clickedVisualElement:L}),D()}return!1}),f=_.y0(function(){y("yt-feed-customization-scroll-up")});
return _.u("ytd-feed-customization-form-view-model",{class:"ytdFeedCustomizationFormViewModelHost",el:_.ai(b)},_.u(_.t,{cond:function(){var L,S;return!((S=(L=q.isCollapsed)==null?void 0:L.call(q))!=null&&S)},
then:function(){return _.u("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer"},_.u("div",{class:"ytdFeedCustomizationFormViewModelInputContainer"},_.u("input",{class:"ytdFeedCustomizationFormViewModelInput",type:"text",placeholder:function(){var L;return(L=N().textInputPlaceholder)==null?void 0:L.content},
"prop:value":F,"on:focus":X,"on:input":w,"on:keyup":k,maxlength:250}),_.u(_.t,{cond:function(){return!!F()},
then:function(){return _.u(_.zS,{data:function(){return N().clearButton}},{buttonViewModel:function(L){return _.u("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.u(_.Ou,{data:L.data}))}})}}),_.u(_.t,{cond:function(){return m()},
then:function(){return _.u(_.zS,{data:function(){return N().inProgressButton}},{buttonViewModel:function(L){return _.u("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.u(_.Ou,{data:L.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.u(_.zS,{data:function(){return N().submitButton}},{buttonViewModel:function(L){return _.u("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.u(_.Ou,{data:L.data,
onClick:D}))}})}}),_.u(_.zS,{data:function(){return N().menuButton}},{buttonViewModel:function(L){return _.u("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.u(_.Ou,{data:L.data}))}})),_.u(_.zS,{data:function(){return N().contents}},{aiResponseBoxViewModel:function(L){return _.u("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.u(hdq,{data:L.data,
showChips:c,isUpdateInProgress:m}))}}))},
else:function(){return _.u("div",{class:"ytdFeedCustomizationFormViewModelCollapsedBodyContainer","on:click":f},_.u("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var L;return F()||((L=N().textInputPlaceholder)==null?void 0:L.content)}))}}))},"Uc"),"ytd-feed-customization-form-view-model",{props:{data:_.F5,
isCollapsed:_.F5}});var C8o=_.U$.persistentPanelVisibleSelector,ay=function(){var q=_.C.apply(this,arguments)||this;q.isDarkTheme=!1;q.notSticky=!1;q.transparentBackground=!1;q.shouldHide=!1;q.disableSticky=!1;q.fluidWidth=!1;q.isClipList=!1;q.defaultChipIndex=0;q.collapseFeedCustomizationForm=!1;q.isPlaylist=!1;q.playlistVotingAnimationEnabled=_.x("web_enable_voting_animation");q.toolbarHeight=0;q.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.Y(ay,_.C);_.g=ay.prototype;
_.g.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}}}}}};
_.g.attached=function(){var q=this;document.addEventListener("scroll",_.gq(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var N;this.toolbarHeight=((N=document.querySelector("ytd-masthead"))==null?void 0:N.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(b){q.handleIntersect(b)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){q.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.g.detached=function(){var q;(q=this.intersectionObserver)==null||q.disconnect();var N;(N=this.resizeObserver)==null||N.disconnect();document.removeEventListener("scroll",_.gq(this,this.updateChipBarWidthAndTop))};
_.g.dataChanged=function(){var q=this,N,b,y;((y=_.v((N=this.data)==null?void 0:(b=N.contents)==null?void 0:b[0],zkj))==null?void 0:y.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var J=this.findSelectedChipIndex();this.selectedIndex!==J&&(this.selectedIndex=-1);_.ut(this,function(){q.selectedIndex=J;q.updateSelectedChipContent(q.selectedIndex);q.updating=!1;q.ytScrollableChipCloudBehavior.reset()})};
_.g.findSelectedChipIndex=function(){var q;if((q=this.data)==null||!q.contents)return 0;q=this.data.contents;for(var N=0;N<q.length;N++){var b=void 0;if((b=_.v(q[N],zkj))==null?0:b.isSelected)return N}return 0};
_.g.computeStyle=function(q){return q};
_.g.handleChipCloudChipSelectAction=function(q){q=this.JSC$16301_chipsSelector.indexOf(q);q>-1&&this.JSC$16301_chipsSelector.selectIndex(q)};
_.g.updateSelectedChipContent=function(q){var N;if((N=this.data)==null||!N.contents||q<0||q>=this.data.contents.length)this.selectedChipContent=void 0;else{var b;this.selectedChipContent=(b=_.v(this.data.contents[q],zkj))==null?void 0:b.content}};
_.g.handleChipCloudChipDeselectAction=function(){if(_.x("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var q,N,b,y=(b=_.v((q=this.data)==null?void 0:(N=q.contents)==null?void 0:N[0],zkj))==null?void 0:b.navigationEndpoint;y&&_.By(this.hostElement,"yt-browse-section-list-reload-endpoint",[y]);this.JSC$16301_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.g.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.g.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.g.onResize=function(){this.updateLayout()};
_.g.updateLayout=function(){var q=this.ytScrollableChipCloudBehavior;_.ut(q,q.setContainerWidthDiff);q=this.ytScrollableChipCloudBehavior;_.ut(q,q.setButtonsState)};
_.g.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.g.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.g.handleIntersect=function(q){this.notSticky=this.isChannelPageGrid||this.disableSticky||q[0].intersectionRatio===1};
_.g.updateDimensions=function(){var q=this.ytRendererBehavior.parentComponent;if(q){var N,b=(N=q.headerElement)!=null?N:q;_.Jm(this.hostElement,{"--ytd-rich-grid-chips-bar-width":b.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.g.updateSelectedIndexFromBinding=function(q){this.selectedIndex=q.detail.value};
_.g.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var q;(q=this.sortFilterHeaderRendererElement)==null||q.setAttribute("is-playlist-page-with-filters","")}};
_.g.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(gOl(!this.notSticky))};
_.$H.Object.defineProperties(ay.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 q,N,b=(q=this.data)==null?void 0:(N=q.contents)==null?void 0:N.find(function(y){return _.v(y,X6J)});
return{sortFilterHeaderRenderer:_.v(b,X6J)}}}});
ay.prototype.dispatchChipBarIsSticky=ay.prototype.dispatchChipBarIsSticky;ay.prototype.isPlaylistPageChanged=ay.prototype.isPlaylistPageChanged;ay.prototype.updateChipBarWidthAndTop=ay.prototype.updateChipBarWidthAndTop;ay.prototype.onResize=ay.prototype.onResize;ay.prototype.onPersistentPanelVisibleChanged=ay.prototype.onPersistentPanelVisibleChanged;ay.prototype.onGuideIsExpandedChanged=ay.prototype.onGuideIsExpandedChanged;ay.prototype.dataChanged=ay.prototype.dataChanged;
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ay.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ay.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],ay.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.SQ),_.P("design:type",Object)],ay.prototype,"ironResizableBehavior",void 0);_.p([_.O(),_.P("design:type",C8)],ay.prototype,"ytScrollableChipCloudBehavior",void 0);
_.p([_.O(_.H6),_.P("design:type",Object)],ay.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ay.prototype,"data",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],ay.prototype,"selectedIndex",void 0);_.p([_.U({value:320}),_.P("design:type",Number)],ay.prototype,"scrollDistance",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ay.prototype,"isDarkTheme",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ay.prototype,"notSticky",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ay.prototype,"transparentBackground",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.P("design:type",String)],ay.prototype,"componentStyle",void 0);_.p([_.U({selector:_.DTD}),_.P("design:type",Boolean)],ay.prototype,"guideIsExpanded",void 0);
_.p([_.U({selector:C8o}),_.P("design:type",Boolean)],ay.prototype,"persistentPanelVisible",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ay.prototype,"shouldHide",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ay.prototype,"disableSticky",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ay.prototype,"fluidWidth",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ay.prototype,"isClipList",void 0);
_.p([_.U(),_.P("design:type",Object)],ay.prototype,"defaultChipIndex",void 0);_.p([_.U(),_.P("design:type",Object)],ay.prototype,"selectedChipContent",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ay.prototype,"collapseFeedCustomizationForm",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ay.prototype,"isPlaylist",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],ay.prototype,"playlistVotingAnimationEnabled",void 0);
_.p([_.dq("#chips"),_.P("design:type",Object)],ay.prototype,"JSC$16301_chipsSelector",void 0);_.p([_.dq("ytd-sort-filter-header-renderer"),_.P("design:type",HTMLElement)],ay.prototype,"sortFilterHeaderRendererElement",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],ay.prototype,"updating",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ay.prototype,"dataChanged",null);
_.p([_.FY("guideIsExpanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ay.prototype,"onGuideIsExpandedChanged",null);_.p([_.FY("persistentPanelVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ay.prototype,"onPersistentPanelVisibleChanged",null);_.p([_.ZP("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ay.prototype,"onResize",null);
_.p([_.$9("isChannelPageGrid","disableSticky","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ay.prototype,"updateChipBarWidthAndTop",null);_.p([_.l("componentStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ay.prototype,"isChannelPageGrid",null);_.p([_.l("componentStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ay.prototype,"isHashtagLandingPage",null);
_.p([_.FY("isPlaylistPage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ay.prototype,"isPlaylistPageChanged",null);_.p([_.l("componentStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ay.prototype,"isPlaylistPage",null);_.p([_.l("componentStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ay.prototype,"isDisableDeselectEvent",null);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],ay.prototype,"sortFilterHeaderRendererData",null);_.p([_.U({reflectToAttribute:!0,selector:_.TTA}),_.P("design:type",String)],ay.prototype,"frostedGlassMode",void 0);_.p([_.FY("notSticky"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ay.prototype,"dispatchChipBarIsSticky",null);_.p([_.I({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],ay);
_.a(ay,"ytd-feed-filter-chip-bar-renderer",function(){if(OK1!==void 0)return OK1;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return OK1=q},{mode:1});var IH4;var Tuq=_.n(function(q){var N=q.data;var b=q.buttonIndex;var y=q.selectedIndex;var J=q.onSelect;var E=function(){return b()===y()},F=function(){var R,c;
return(c=(R=N().text)==null?void 0:R.content)!=null?c:""};
q=_.nXJ();return _.u("yt-toggleable-image-button-view-model",{class:function(){var R={};R=(R.toggleableImageButtonViewModelHost=!0,R[""]=!0,R.toggleableImageButtonViewModelSemiTransparent=y()!==-1&&!E(),R);return _.jz(R)},
tabindex:0,"aria-label":F,"aria-pressed":E,role:"button","on:keydown":q,"on:click":_.y0(function(){J(N().onSubmitCommand);return!1})},_.u(_.t,{cond:function(){return N().logo},
then:function(R){return _.u(_.s_,{data:R,className:function(){var c={};c=(c.toggleableImageButtonViewModelImage=!0,c.toggleableImageButtonViewModelCircularRadius=!(!N().backgroundColor||!N().backgroundColorDarkMode),c.toggleableImageButtonViewModelGradientRing=!!(E()&&N().backgroundColor&&N().backgroundColorDarkMode),c);return _.jz(c)},
alt:F,useWidth:!1,style:function(){if(E()&&N().backgroundColor&&N().backgroundColorDarkMode){var c=Qk(Number(N().backgroundColorDarkMode),"1");var z=Qk(Number(N().backgroundColor),"1");c="background: linear-gradient(180deg,"+c+","+z+") border-box;"}else c="";return c}})}}),_.u(_.j9,{model:{borderRadius:"16px"}}),_.u("p",{class:function(){var R={};
R=(R.toggleableImageButtonViewModelLabel=!0,R.toggleableImageButtonViewModelBoldText=E(),R);return _.jz(R)}},_.u(_.Zc,{text:function(){return N().text}})))},"Vc");
Tuq.idomCompat=!0;var nvE=_.n(function(q){var N=q.data;q=_.Z(_.QS({index:-1,command:{}},void 0,"GM3umb"));var b=q.next().value,y=q.next().value;return _.u("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.u("div",{class:"nudgeFormViewModelFormOptions"},_.u(_.zS,{data:function(){return N().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(J,E){return _.u(Tuq,{data:J.data,buttonIndex:E,selectedIndex:function(){return b().index},
onSelect:function(F){y({index:E(),command:F})}})}})),_.u(_.Zc,{text:function(){return N().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.u("div",{class:"nudgeFormViewModelSubmit"},_.u(_.zS,{data:function(){return N().submitButton}},{buttonViewModel:function(J){return _.u(sIJ,{data:J.data,
isDisabled:function(){return b().index===-1},
onClick:function(){_.Kt(b().command)}})}})))},"Wc");
nvE.idomCompat=!0;var sIJ=_.n(function(q){var N=_.K3(function(){return Object.assign({},q.data(),{state:q.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.u(_.Ou,{data:N,onClick:q.onClick})},"Xc");_.P$(nvE,"yt-nudge-form-view-model",{props:{data:_.F5}});var Sp=function(){var q=_.C.apply(this,arguments)||this;q.roundedContainer=!0;q.buttonUpdate=_.x("web_modern_buttons");q.isDarkMode=!1;q.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return q};
_.Y(Sp,_.C);_.g=Sp.prototype;_.g.computeNudgeStyle=function(q){return q?"modernized-nudge":""};
_.g.handleDarkModeToggledAction=function(q){this.isDarkMode=q};
_.g.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.g.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"}}}};
_.g.computeIsHorizontalButtons=function(q){return q?!!q.applyModernizedStyle&&!!q.enableHorizontalButtons&&!!q.secondaryButton:!1};
_.$H.Object.defineProperties(Sp.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var q,N;return(N=(q=this.data)==null?void 0:q.backgroundStyle)!=null?N:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var q,N;return(N=(q=this.data)==null?void 0:q.contentsLocation)!=null?N:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null?0:q.lightIconImage)}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Sp.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Sp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],Sp.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Sp.prototype,"actionHandlerBehavior",void 0);
_.p([_.U({reflectToAttribute:!0}),_.l("isHideEnclosingAction"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Sp.prototype,"isHidden",null);_.p([_.U(),_.P("design:type",Object)],Sp.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Sp.prototype,"roundedContainer",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Sp.prototype,"buttonUpdate",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.P("design:type",String)],Sp.prototype,"nudgeStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data.trimStyle"),_.P("design:type",String),_.P("design:paramtypes",[])],Sp.prototype,"trimStyle",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.backgroundStyle"),_.P("design:type",String),_.P("design:paramtypes",[])],Sp.prototype,"backgroundStyle",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data.contentsLocation"),_.P("design:type",String),_.P("design:paramtypes",[])],Sp.prototype,"contentsLocation",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.disableDropShadow"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Sp.prototype,"noShadow",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.lightIconImage"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Sp.prototype,"noIcon",null);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.P("design:type",Boolean)],Sp.prototype,"isHorizontalButtons",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Object)],Sp.prototype,"isDarkMode",void 0);_.p([_.I({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Sp);
_.a(Sp,"ytd-feed-nudge-renderer",function(){if(IH4!==void 0)return IH4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return IH4=q},{mode:_.Am("kevlar_poly_si_batch_j028")?1:2});var aHj;var SGq;var W8=function(){var q=_.C.apply(this,arguments)||this;q.collapsed=!1;q.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return q};
_.Y(W8,_.C);W8.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"}}}};
W8.prototype.handleRatingSelect=function(){var q;((q=this.data)==null?0:q.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
W8.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],W8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],W8.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],W8.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],W8.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.N8),_.P("design:type",Object)],W8.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],W8.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],W8.prototype,"collapsed",void 0);_.p([_.I({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],W8);
_.a(W8,"ytd-slimline-survey-renderer",function(){if(SGq!==void 0)return SGq;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return SGq=q},{mode:1});var WgE;var L8=function(){return _.C.apply(this,arguments)||this};
_.Y(L8,_.C);L8.prototype.maybeGetBackgroundColor=function(q){return this.isDarkMode?q.section2Color:q.section3Color};
L8.prototype.colorPaletteChanged=function(){var q=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;q&&(q==null?0:q.secondaryTitleColor)&&this.maybeGetBackgroundColor(q)?(this.hostElement.style.backgroundColor=_.GM(this.maybeGetBackgroundColor(q)),this.hostElement.style.color=_.GM(q.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
L8.prototype.colorPaletteChanged=L8.prototype.colorPaletteChanged;_.p([_.O(_.H6),_.P("design:type",Object)],L8.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],L8.prototype,"data",void 0);_.p([_.U({selector:function(q){return q.ui.darkModeIsEnabled}}),
_.P("design:type",Boolean)],L8.prototype,"isDarkMode",void 0);_.p([_.U(),_.P("design:type",Object)],L8.prototype,"lightColorPalette",void 0);_.p([_.U(),_.P("design:type",Object)],L8.prototype,"darkColorPalette",void 0);_.p([_.FY("darkColorPalette","lightColorPalette","data","isDarkMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],L8.prototype,"colorPaletteChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],L8);
_.a(L8,"ytd-endorsement-header-renderer",function(){if(WgE!==void 0)return WgE;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return WgE=q},{mode:1});_.P$(_.qw,"yt-decorated-avatar-view-model",{props:{data:_.F5,className:_.F5}});_.p8=new _.Jw("VIEW_TRANSITION_MANAGER_TOKEN");var P8=function(){var q=_.C.apply(this,arguments)||this;q.fullHeight=_.x("web_rich_grid_media_full_height");q.showChannelAvatar=!0;q.hasPlaylistThumbnail=!1;q.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};q.registerThumbnailForPageTransition=function(){_.x("web_thumbnail_to_watch_transition")&&_.Lgx(_.tz().resolve(_.p8),q.thumbnail)};
return q};
_.Y(P8,_.C);_.g=P8.prototype;
_.g.configureRendererStamper=function(){return{lazyLoadMenu:TQ,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"}}}};
_.g.attached=function(){this.updateInlinePreviewHoverListeners()};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.shouldLazyLoadMenu=function(){var q=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.x("kevlar_modern_downloads_page")||!q};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16325_inlinePreviewHoverListener=ix({mediaRenderer:this,lockupElement:this.JSC$16325_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.g.getVideoPreviewOpts=function(){var q={},N;if((N=this.data)==null?0:N.multipleInlinePlaybackEndpoint)q=OqT;this.isRadio&&(q=QGR);return q};
_.g.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$16325_inlinePreviewHoverListener)==null||am(q)};
_.g.getOwner=function(){var q,N,b;return((q=this.data)==null?void 0:(N=q.channelThumbnailSupportedRenderers)==null?void 0:N.channelThumbnailWithLinkRenderer)||_.v((b=this.data)==null?void 0:b.showProviderChannelThumbnail,zjq)};
_.g.updateLockupSize=function(){var q;((q=this.getOwner())==null?0:q.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.g.getFeedbackEndpoint=function(q){if(_.v(q,_.YJ))return q;var N,b;q=(b=(N=_.v(q,_.y6))==null?void 0:N.commands)!=null?b:[];N=_.Z(q);for(b=N.next();!b.done;b=N.next())if(b=this.getFeedbackEndpoint(b.value))return b;return null};
_.g.computeNavigationEndpoint=function(q){return IOJ(q==null?void 0:q.navigationEndpoint)};
_.g.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var q=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(q)!==JSON.stringify(this.data)&&this.set("data",q)}};
_.g.onDataChanged=function(){var q=this,N=this.getOwner();if(N){this.set("data.owner",N);var b,y,J,E,F,R=((b=this.data)==null?void 0:(y=b.shortBylineText)==null?void 0:(J=y.runs)==null?void 0:(E=J[0])==null?void 0:E.text)||((F=N.name)==null?void 0:F.simpleText);this.set("data.owner.title",R)}var c,z,m,r,X,V;N=((c=this.data)==null?void 0:(z=c.thumbnailRenderer)==null?void 0:z.playlistVideoThumbnailRenderer)||((m=this.data)==null?void 0:(r=m.thumbnailRenderer)==null?void 0:r.playlistCustomThumbnailRenderer)||
((X=this.data)==null?void 0:(V=X.thumbnailRenderer)==null?void 0:V.showCustomThumbnailRenderer);var G;((G=this.data)==null?0:G.thumbnail)||!N||this.set("data.thumbnail",N.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){q.updateLockupSize()});
var w;if(c=((w=this.data)==null?void 0:w.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(c);var D;((D=this.dismissActionToReplayEntity)==null?0:D.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.g.onHiddenChanged=function(){this.updateLockupSize()};
_.g.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.By(this.hostElement,"yt-terminate-video-preview-action");else{var q;(q=this.videoTitleLink)==null||q.focus()}};
_.g.metadataColorChanged=function(){var q;if(this.metadataColor&&((q=this.videoTitle)==null?0:q.style))this.videoTitle.style.color=_.GM(this.metadataColor);else{var N,b;!this.metadataColor&&((N=this.videoTitle)==null?0:(b=N.style)==null?0:b.color)&&(this.videoTitle.style.color="")}};
_.g.onDetailsClick=function(q){var N=this.computedNavigationEndpoint;N&&(_.Su(_.n9(q),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.e2(this.hostElement,"yt-navigate",{endpoint:N}))};
_.g.onRendererTap=function(){this.registerThumbnailForPageTransition();var q,N,b=((q=this.data)==null?void 0:q.serviceEndpoint)||this.getFeedbackEndpoint((N=this.data)==null?void 0:N.navigationEndpoint);b&&_.v(b,_.YJ)&&this.ytComponentBehavior.resolveCommand(b)};
_.g.onMouseDown=function(q){var N=q.target,b=this.computedNavigationEndpoint,y;q=N.href||((y=_.v(b==null?void 0:b.commandMetadata,_.gg))==null?void 0:y.url);y=N.data||b;q&&y&&lAC(q,y)};
_.g.computeVideoTitleText=function(){var q;if((q=this.data)==null?0:q.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.g.computeHasPlaylistThumbnail=function(q){var N,b,y,J,E;if((((N=q.thumbnailRenderer)==null?0:N.playlistVideoThumbnailRenderer)||((b=q.thumbnailRenderer)==null?0:b.playlistCustomThumbnailRenderer)||((y=q.thumbnailRenderer)==null?0:y.showCustomThumbnailRenderer)||((J=q.thumbnailRenderer)==null?0:J.playlistVideoThumbnailRenderer)||((E=q.thumbnailRenderer)==null?0:E.playlistCustomThumbnailRenderer))&&q.thumbnailOverlays)for(N=0;N<q.thumbnailOverlays.length;N++)if(b=void 0,(b=q.thumbnailOverlays[N])==
null?0:b.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.$H.Object.defineProperties(P8.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.x("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var q;return(q=this.data)==null?void 0:q.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var q;return(q=this.data)==null?void 0:q.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$16325_inlinePreviewHoverListener)==null?0:Jv(q))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.JvA(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.data)==null?void 0:q.videoId)||((N=this.data)==null?void 0:N.playlistId)||""}}});
P8.prototype.onMouseDown=P8.prototype.onMouseDown;P8.prototype.metadataColorChanged=P8.prototype.metadataColorChanged;P8.prototype.onIsDismissedChanged=P8.prototype.onIsDismissedChanged;P8.prototype.onHiddenChanged=P8.prototype.onHiddenChanged;P8.prototype.onDataChanged=P8.prototype.onDataChanged;P8.prototype.handleReloadDownloadsInfo=P8.prototype.handleReloadDownloadsInfo;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],P8.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],P8.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],P8.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.Fi),_.P("design:type",Object)],P8.prototype,"ytdLockupBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],P8.prototype,"ytdReduxBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],P8.prototype,"data",void 0);_.p([_.U(),_.P("design:type",String)],P8.prototype,"entitySelectorType",void 0);_.p([_.U(),_.P("design:type",Boolean)],P8.prototype,"noEndpoints",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],P8.prototype,"isRadio",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.GC}),_.P("design:type",Boolean)],P8.prototype,"miniMode",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],P8.prototype,"fullHeight",void 0);
_.p([_.U(),_.P("design:type",Boolean)],P8.prototype,"showDarkVideoMetadata",void 0);_.p([_.U(),_.P("design:type",Boolean)],P8.prototype,"showLightVideoMetadata",void 0);_.p([_.U(),_.P("design:type",Number)],P8.prototype,"metadataColor",void 0);_.p([_.U(),_.P("design:type",Object)],P8.prototype,"showChannelAvatar",void 0);_.p([_.U(),_.P("design:type",Boolean)],P8.prototype,"hidden",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],P8.prototype,"showYtInteraction",void 0);
_.p([_.U(),_.P("design:type",String)],P8.prototype,"dismissedContentId",void 0);_.p([_.U({selectorArgs:["dismissedContentId"],selector:R4e}),_.P("design:type",Object)],P8.prototype,"dismissActionToReplayEntity",void 0);
_.p([_.U({selectorArgs:["entitySelectorType","mediaId"],selector:function(q,N,b){if(_.x("kevlar_modern_downloads_page")&&b&&N&&N!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(N){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var y=Sun(q,b);if(y){N=_.ig(q,b);var J=KD(q,b),E=N7d(q,b);q=DC(q,b);var F=UJe(y,N,J,E);J=F.shortViewCountText;var R=F.publishedTimeText;F=F.badges;var c=q>0;E=hkD(y,N,E,q);y=_.zC(N)||N==="TRANSFER_STATE_FAILED"||N==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!ug(y.policyEntity)?
void 0:fOD(b,q,y.videoEntity.lengthSeconds);N==="TRANSFER_STATE_PAUSED_BY_USER"&&b&&!_.x("dl_resume_click_killswitch")&&(y={offlineVideoEndpoint:{videoId:b,action:"ACTION_RESUME"}});b={shortViewCountText:J,publishedTimeText:R,badges:F,isWatched:c,navigationEndpoint:y,thumbnailOverlays:E}}else b=void 0;return b;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(N=WuA(q,b))if(y=_.lg(q,b),E=_.LuR(q,b),y!=="TRANSFER_STATE_UNKNOWN"){b=k9Z(N,y,E,b,_.w3(q));break a}b=void 0}return b;default:_.M6(new _.IO("Error: entitySelectorType defined but not matched in selector.",
q,N))}}}),
_.P("design:type",Object)],P8.prototype,"entityDrivenState",void 0);_.p([_.U({computed:"computeVideoTitleText(data)"}),_.P("design:type",Object)],P8.prototype,"videoTitleText",void 0);_.p([_.U({computed:"computeHasPlaylistThumbnail(data)"}),_.P("design:type",Object)],P8.prototype,"hasPlaylistThumbnail",void 0);_.p([_.U({computed:"computeNavigationEndpoint(data)"}),_.P("design:type",Object)],P8.prototype,"computedNavigationEndpoint",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],P8.prototype,"typographyBump",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("typographyBump"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],P8.prototype,"typographyBumpV2",null);_.p([_.dq("#video-title"),_.P("design:type",HTMLElement)],P8.prototype,"videoTitle",void 0);_.p([_.dq("#video-title-link"),_.P("design:type",HTMLElement)],P8.prototype,"videoTitleLink",void 0);
_.p([_.dq("#thumbnail"),_.P("design:type",HTMLElement)],P8.prototype,"thumbnail",void 0);_.p([_.dq("#dismissible"),_.P("design:type",HTMLElement)],P8.prototype,"JSC$16325_dismissibleMedia",void 0);_.p([_.l("data.menu"),_.P("design:type",Object),_.P("design:paramtypes",[])],P8.prototype,"lazyLoadMenu",null);_.p([_.l("data.menu"),_.P("design:type",Object),_.P("design:paramtypes",[])],P8.prototype,"immediateLoadMenu",null);
_.p([_.$9("entityDrivenState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P8.prototype,"handleReloadDownloadsInfo",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P8.prototype,"onDataChanged",null);_.p([_.$9("hidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P8.prototype,"onHiddenChanged",null);
_.p([_.FY("isDismissed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P8.prototype,"onIsDismissedChanged",null);_.p([_.FY("metadataColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P8.prototype,"metadataColorChanged",null);_.p([_.ZP("mousedown"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],P8.prototype,"onMouseDown",null);
_.p([_.l("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],P8.prototype,"isHovered",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],P8.prototype,"useAvatar",null);_.p([_.l("data","entitySelectorType"),_.P("design:type",String),_.P("design:paramtypes",[])],P8.prototype,"mediaId",null);_.p([_.I({is:"ytd-rich-grid-media",disableElementRegistration:!0})],P8);
var piR=_.oU()(P8,"ytd-rich-grid-media",function(){if(aHj!==void 0)return aHj;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return aHj=q},{mode:_.Am("kevlar_poly_si_batch_j072")?1:2});var P8x;var MV=function(){var q=_.C.apply(this,arguments)||this;q.removeMaxWidth=!0;q.insetMetadata=!1;return q};
_.Y(MV,_.C);_.g=MV.prototype;_.g.configureRendererStamper=function(){return{innerMenu:TQ,outerMenu:Object.assign({},TQ,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.g.onDataChanged=function(){var q,N=((q=this.data)==null?void 0:q.trackingParams)||"";N&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(N));var b;((b=this.dismissActionToReplayEntity)==null?0:b.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.g.attached=function(){this.updateInlinePreviewHoverListeners()};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16330_inlinePreviewHoverListener=ix({mediaRenderer:this,lockupElement:this.JSC$16330_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:wzx})};
_.g.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$16330_inlinePreviewHoverListener)==null||am(q)};
_.g.onRendererTap=function(){var q,N,b=(q=this.data)==null?void 0:(N=q.serviceEndpoints)==null?void 0:N[0];_.v(b,_.YJ)&&this.componentBehavior.resolveCommand(b)};
_.g.onDetailsClick=function(q){var N,b=(N=this.data)==null?void 0:N.navigationEndpoint;b&&(_.Su(_.n9(q),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(b))};
_.g.onShow=function(){var q=this.data;q.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(q.onFirstVisibleCommand),delete q.onFirstVisibleCommand)};
_.$H.Object.defineProperties(MV.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var q;return this.insetMetadata?void 0:(q=this.data)==null?void 0:q.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var q;return this.insetMetadata?(q=this.data)==null?void 0:q.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var q=this.data;if(q!=null&&q.badge&&(q=_.v(q.badge,gwj))){var N,b,y;return[{metadataBadgeRenderer:{label:((N=q.label)==null?void 0:(b=N.runs)==null?void 0:b[0].text)||((y=q.label)==null?void 0:y.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var q=this.data;return Object.assign({},q.headline,{accessibility:q.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return this.isSlimShort?(q=this.computedTitle)==null?void 0:(N=q.accessibility)==null?void 0:(b=N.accessibilityData)==null?void 0:b.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.x("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$16330_inlinePreviewHoverListener)==null?0:Jv(q))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
MV.prototype.onDataChanged=MV.prototype.onDataChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],MV.prototype,"componentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Fi),_.P("design:type",Object)],MV.prototype,"ytdLockupBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],MV.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.N8),_.P("design:type",Object)],MV.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],MV.prototype,"ytdReduxBehavior",void 0);_.p([_.dq("ytd-thumbnail"),_.P("design:type",HTMLElement)],MV.prototype,"thumbnail",void 0);_.p([_.dq("#dismissible"),_.P("design:type",HTMLElement)],MV.prototype,"JSC$16330_dismissibleMedia",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],MV.prototype,"removeMaxWidth",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],MV.prototype,"insetMetadata",void 0);_.p([_.U(),_.P("design:type",String)],MV.prototype,"dismissedContentId",void 0);_.p([_.U({selectorArgs:["dismissedContentId"],selector:R4e}),_.P("design:type",Object)],MV.prototype,"dismissActionToReplayEntity",void 0);_.p([_.l("insetMetadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],MV.prototype,"thumbnailObjectFit",null);
_.p([_.l("data","insetMetadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],MV.prototype,"innerMenu",null);_.p([_.l("data","insetMetadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],MV.prototype,"outerMenu",null);_.p([_.U(),_.P("design:type",Object)],MV.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.GC}),_.P("design:type",Boolean)],MV.prototype,"miniMode",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],MV.prototype,"onDataChanged",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],MV.prototype,"shortsBadges",null);_.p([_.l("data"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MV.prototype,"isShort",null);
_.p([_.l("data"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MV.prototype,"isSlimShort",null);_.p([_.l("data","isShort"),_.P("design:type",Object),_.P("design:paramtypes",[])],MV.prototype,"computedTitle",null);_.p([_.l("isSlimShort","computedTitle"),_.P("design:type",Object),_.P("design:paramtypes",[])],MV.prototype,"computedAccessibilityLabel",null);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MV.prototype,"shouldForce2By3",null);_.p([_.l("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MV.prototype,"isHovered",null);_.p([_.I({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],MV);
_.a(MV,"ytd-rich-grid-slim-media",function(){if(P8x!==void 0)return P8x;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return P8x=q},{mode:_.Am("kevlar_poly_si_batch_j063")?1:2});var Mrv;var ov1;var oy=function(){return _.C.apply(this,arguments)||this};
_.Y(oy,_.C);oy.prototype.computeIcon=function(q){return q&&q.iconType?"yt-sys-icons:"+q.iconType.toLowerCase():""};
oy.prototype.onMouseEnter=function(){this.isHovered=!0};
oy.prototype.onMouseLeave=function(){this.isHovered=!1};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],oy.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],oy.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],oy.prototype,"data",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],oy.prototype,"isHovered",void 0);
_.p([_.I({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],oy);
_.a(oy,"ytd-expand-on-hover-card-renderer",function(){if(ov1!==void 0)return ov1;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return ov1=q},{mode:1});var ApF,edM=function(){if(ApF!==void 0)return ApF;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return ApF=q};_.xP("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var AJ=function(){var q=_.C.apply(this,arguments)||this;q.compactStyle=!1;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.Y(AJ,_.C);_.g=AJ.prototype;_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.g.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"}}}};
_.g.computeHideDot=function(q){return!(q&&q.subscriberCountText&&q.videoCountText)||this.compactStyle};
_.g.hasDualButtons=function(q){return q&&q.purchaseButton&&q.subscribeButton};
_.g.backgroundColorChanged=function(){if(this.data!==void 0){var q=this.data.backgroundColor;this.isDarkTheme&&(q=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=q!=null?_.GM(q):"transparent"}};
_.g.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.g.onTap=function(q){var N,b,y=((N=this.data)==null?void 0:N.navigationEndpoint)||((b=this.data)==null?void 0:b.serviceEndpoint);_.v(y,_.s$)&&(y&&_.tz().resolve(_.rO).resolveCommand(y,{form:{element:this.hostElement}}),q.preventDefault())};
_.g.computeChannelEndpoint=function(q){return _.v(q,_.s$)?null:q};
_.g.computeHrefEndpoint=function(q){return _.v(q,_.s$)?null:this.componentBehavior.computeHref_(q)};
_.g.computeChannelRendererStyle=function(q){return q};
_.g.computeIconSize=function(q){return q?108:136};
_.$H.Object.defineProperties(AJ,{template:{configurable:!0,enumerable:!0,get:function(){return edM()}}});
AJ.prototype.backgroundColorChanged=AJ.prototype.backgroundColorChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],AJ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.r7),_.P("design:type",Object)],AJ.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],AJ.prototype,"componentBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],AJ.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],AJ.prototype,"isDarkTheme",void 0);_.p([_.U({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.P("design:type",String)],AJ.prototype,"channelRendererStyle",void 0);_.p([_.U({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],AJ.prototype,"dualButtons",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.x("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],AJ.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.jA("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],AJ.prototype,"biggerThumbStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],AJ.prototype,"compactStyle",void 0);_.p([_.FY("data","isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AJ.prototype,"backgroundColorChanged",null);_.p([_.I({is:"ytd-channel-renderer",disableElementRegistration:!0})],AJ);_.a(AJ,"ytd-channel-renderer",function(){return edM()},{mode:1});var BuF;var HK4;_.xP("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var ep=function(){var q=_.C.apply(this,arguments)||this;q.displayItemCount=2;q.hasPlaylistThumbnail=!1;q.stackThumbnailSize="large";return q};
_.Y(ep,_.C);_.g=ep.prototype;_.g.attached=function(){this.updateInlinePreviewHoverListeners()};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.g.computeFirstVideos=function(q,N){return q&&N?q.slice(0,N):[]};
_.g.computeThumbnailWidth=function(q,N){return q?N==="BIG"?500:N==="MASSIVE"?600:N==="MEDIUM"?450:420:360};
_.g.computeThumbnailHeight=function(q,N){return q?N==="BIG"?280:N==="MASSIVE"?337:234:202};
_.g.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$16343_inlinePreviewHoverListener)==null||am(q)};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16343_inlinePreviewHoverListener=ix({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:OqT,thumbnailElement:this.thumbnail})};
_.g.computeHasPlaylistThumbnail=function(q){var N,b;if((((N=q.thumbnailRenderer)==null?0:N.playlistVideoThumbnailRenderer)||((b=q.thumbnailRenderer)==null?0:b.playlistCustomThumbnailRenderer))&&q.thumbnailOverlays)for(N=0;N<q.thumbnailOverlays.length;N++)if(b=void 0,(b=q.thumbnailOverlays[N])==null?0:b.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.$H.Object.defineProperties(ep.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$16343_inlinePreviewHoverListener)==null?0:Jv(q))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ep.prototype.dataChanged=ep.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ep.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Fi),_.P("design:type",Object)],ep.prototype,"ytdLockupBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ep.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],ep.prototype,"displayItemCount",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.x("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],ep.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.jA("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],ep.prototype,"biggerThumbsStyle",void 0);_.p([_.U({computed:"computeHasPlaylistThumbnail(data)"}),_.P("design:type",Object)],ep.prototype,"hasPlaylistThumbnail",void 0);_.p([_.U(),_.P("design:type",String)],ep.prototype,"stackThumbnailSize",void 0);_.p([_.dq("ytd-thumbnail"),_.P("design:type",HTMLElement)],ep.prototype,"thumbnail",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ep.prototype,"dataChanged",null);
_.p([_.l("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ep.prototype,"isHovered",null);_.p([_.I({is:"ytd-radio-renderer",disableElementRegistration:!0})],ep);
_.a(ep,"ytd-radio-renderer",function(){if(HK4!==void 0)return HK4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return HK4=q},{mode:_.Am("kevlar_poly_si_batch_j058")?1:2});var q4x;_.xP("itemSectionRenderer","showRenderer","ytd-show-renderer");var B8=function(){return _.C.apply(this,arguments)||this};
_.Y(B8,_.C);B8.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
B8.prototype.computeThumbnailWidth=function(q){return q?360:246};
B8.prototype.computeUseProminentThumbs=function(q){return q};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],B8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],B8.prototype,"data",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],B8.prototype,"isSearch",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.P("design:type",Boolean)],B8.prototype,"useProminentThumbs",void 0);_.p([_.I({is:"ytd-show-renderer",disableElementRegistration:!0})],B8);
_.a(B8,"ytd-show-renderer",function(){if(q4x!==void 0)return q4x;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return q4x=q},{mode:1});_.xP("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var H8=function(){var q=_.C.apply(this,arguments)||this;q.isRichGrid=!1;return q};
_.Y(H8,_.C);H8.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"}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],H8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],H8.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],H8.prototype,"isRichGrid",void 0);_.p([_.I({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],H8);
_.a(H8,"ytd-feed-entry-renderer",function(){if(BuF!==void 0)return BuF;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return BuF=q},{mode:1});var NB1;var ql=function(){return _.C.apply(this,arguments)||this};
_.Y(ql,_.C);ql.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.p([_.O(_.H6),_.P("design:type",Object)],ql.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ql.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],ql.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ql.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.YR,value:3}),_.P("design:type",Number)],ql.prototype,"itemsPerRow",void 0);
_.p([_.I({is:"ytd-link-card-renderer",disableElementRegistration:!0})],ql);
_.a(ql,"ytd-link-card-renderer",function(){if(NB1!==void 0)return NB1;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return NB1=q},{mode:1});var bjx;var Nl=function(){return _.C.apply(this,arguments)||this};
_.Y(Nl,_.C);_.g=Nl.prototype;_.g.configureRendererStamper=function(){return{"data.menu":TQ,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.g.onRendererTap=function(q){if(!this.ytdDismissibleItemBehavior.isDismissed){var N,b=(N=this.data)==null?void 0:N.navigationEndpoint;b&&!_.Su(_.n9(q),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(b)?_.Su(_.n9(q),this.hostElement,["A"])||_.e2(this.hostElement,"yt-navigate",{endpoint:b}):this.ytComponentBehavior.resolveCommand(b,{}))}};
_.g.maybeComputeHref=function(q){return this.ytComponentBehavior.computeHref_(q,!0)};
_.g.getNavigationCommand=function(q){return this.isNavigationCommand(q)?q:null};
_.g.isNavigationCommand=function(q){return q?_.v(q,_.FH)||_.v(q,_.nx)||_.v(q,_.b_)?!0:!1:!1};
Nl.prototype.onRendererTap=Nl.prototype.onRendererTap;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Nl.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Nl.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],Nl.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Nl.prototype,"ytComponentBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],Nl.prototype,"data",void 0);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Nl.prototype,"onRendererTap",null);_.p([_.I({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],Nl);
_.a(Nl,"ytd-lumiere-promo-item-image-renderer",function(){if(bjx!==void 0)return bjx;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return bjx=q},{mode:1});var yLq;var bN=function(){return _.C.apply(this,arguments)||this};
_.Y(bN,_.C);bN.prototype.computeLandscapeThumbnail=function(){var q;return((q=this.data)==null?void 0:q.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],bN.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],bN.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],bN.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.GC}),_.P("design:type",Boolean)],bN.prototype,"miniMode",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.YR}),_.P("design:type",Number)],bN.prototype,"itemsPerRow",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.P("design:type",Boolean)],bN.prototype,"landscapeThumbnail",void 0);_.p([_.I({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],bN);
_.a(bN,"ytd-lumiere-shelf-details-renderer",function(){if(yLq!==void 0)return yLq;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return yLq=q},{mode:_.Am("kevlar_poly_si_batch_j076")?1:2});var JLx;var yK=function(){return _.C.apply(this,arguments)||this};
_.Y(yK,_.C);yK.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],yK.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],yK.prototype,"data",void 0);_.p([_.I({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],yK);
_.a(yK,"ytd-primetime-promo-details-renderer",function(){if(JLx!==void 0)return JLx;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return JLx=q},{mode:1});var ESF;var JK=function(){return _.C.apply(this,arguments)||this};
_.Y(JK,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],JK.prototype,"data",void 0);_.p([_.I({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],JK);
_.a(JK,"ytd-panel-show-style-metadata-renderer",function(){if(ESF!==void 0)return ESF;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return ESF=q},{mode:1});var gSx;var EQ=function(){return _.C.apply(this,arguments)||this};
_.Y(EQ,_.C);_.g=EQ.prototype;_.g.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.g.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.g.computeThumbnail=function(q){if(q)return q.smallFormFactorBackgroundThumbnail||q.largeFormFactorBackgroundThumbnail};
_.g.maybeComputeHref=function(q){return this.ytComponentBehavior.computeHref_(q,!0)};
_.g.isNavigationCommand=function(q){return q?_.v(q,_.FH)||_.v(q,_.nx)||_.v(q,_.b_)?!0:!1:!1};
_.g.getNavigationCommand=function(q){return this.isNavigationCommand(q)?q:null};
EQ.prototype.onPanelTap=EQ.prototype.onPanelTap;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],EQ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],EQ.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],EQ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],EQ.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],EQ.prototype,"roundedContainer",void 0);_.p([_.U({reflectToAttribute:!0,value:_.x("web_modern_buttons")}),_.P("design:type",Boolean)],EQ.prototype,"modernButtons",void 0);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EQ.prototype,"onPanelTap",null);_.p([_.I({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],EQ);
_.a(EQ,"ytd-primetime-promo-panel-renderer",function(){if(gSx!==void 0)return gSx;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return gSx=q},{mode:1});_.P$(_.n(function(q){q=_.Sl(q,{data:{},useFullWidth:!1});var N=q.data,b=q.useFullWidth;q={};return _.u("teaser-card-view-model",{class:_.NO("ytTeaserCardViewModelHost",(q.ytTeaserCardViewModelUseFullWidth=function(){return b()},q))},_.u(_.t,{cond:function(){return N().onTap},
then:function(y){return _.u(_.Vf,{className:"ytTeaserCardViewModelLink",command:y},_.u("div",{class:"ytTeaserCardViewModelImageContainer"},_.u(_.t,{cond:function(){return N().image},
then:function(J){return _.u(_.s_,{data:J,className:"ytTeaserCardViewModelImage",alt:""})}})),_.u("p",{class:"ytTeaserCardViewModelCaption"},function(){return N().caption}))}}))},"Yc"),"teaser-card-view-model",{props:{data:_.F5,
useFullWidth:_.F5}});_.P$(_.n(function(q){var N=q.data;var b=function(){var y;return _.ke((y=N())==null?void 0:y.iconThemedImage)};
return _.u("yt-edu-card-view-model",null,_.u(_.KS,{contentId:function(){return N().nudgeId}},function(){return _.u("div",{class:_.NO("ytEduCardViewModelHost",function(){return N().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.u("div",{class:"ytEduCardViewModelTopCornerButton"},_.u(_.zS,{data:function(){return N().dismissButton}},{buttonViewModel:_.Ou})),_.u("div",{class:"ytEduCardViewModelContentWrapper"},_.u("div",{class:"ytEduCardViewModelHeaderImage"},_.u(_.t,
{cond:b,
then:function(y){return _.u(_.s_,{data:y,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.u("div",{class:"ytEduCardViewModelTextContainer"},_.u("div",{class:"ytEduCardViewModelTitle"},_.u(_.Zc,{text:function(){return N().title}})),_.u("div",{class:"ytEduCardViewModelSubtitle"},_.u(_.Zc,{text:function(){return N().subtitle}}))),_.u("div",{class:"ytEduCardViewModelContent"},_.u(_.zS,{data:function(){return N().form}},{nudgeFormViewModel:nvE}))),_.u("div",{class:_.NO("ytEduCardViewModelButtonWrapper",
function(){return N().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.u(_.zS,{data:function(){return N().primaryButton}},{buttonViewModel:function(y){return _.u("div",{class:"ytEduCardViewModelPrimaryButton"},_.u(_.Ou,{data:y.data}))}}),_.u(_.zS,{data:function(){return N().secondaryButton}},{buttonViewModel:function(y){return _.u("div",{class:"ytEduCardViewModelSecondaryButton"},_.u(_.Ou,{data:y.data}))}})))}))},"Zc"),"yt-edu-card-view-model",{props:{data:_.F5}});var Zj1=new _.Jw("RICH_GRID_VIDEO_RENDERER_TOKEN");_.P$(_.n(function(q){var N=q.data;var b=q.showYtInteractionInContent;var y=function(){return!!N().selectableFeedback};
q=_.Z(_.QS(!1,void 0,"qxtgaf"));var J=q.next().value,E=q.next().value;_.WC(function(){var X=_.v(N().primaryButton,_.de);(X==null?0:X.isToggled)&&E(X.isToggled)});
q=_.y0(function(X){if(!y())return!1;if(J()){var V;var G=(V=N().selectableFeedback)==null?void 0:V.onDeselect}else{var w;G=(w=N().selectableFeedback)==null?void 0:w.onSelect}G&&_.Kt(G,{form:{element:X.target}});E(!J());if(X=_.v(N().primaryButton,_.de))X.isToggled=J();return!1});
var F=function(){if(!y()){var X,V=(X=N().loggingDirectives)==null?void 0:X.trackingParams;V&&_.fm(_.tz().resolve(_.S9),V)}},R=_.a9A(),c=function(){var X;
return y()?(X=N().selectableFeedback)==null?void 0:X.a11yLabel:void 0},z=function(){return y()?{toggled:J()}:{}},m=_.tz().resolve(_.$f(Zj1)),r={};
return _.u("yt-feedback-item-renderer",{class:_.NO("ytFeedbackItemRendererHost",(r.ytFeedbackItemRendererSelectableFeedback=y,r)),"on:click":q,"on:keydown":R,title:c,"aria-label":c,"aria-pressed":function(){return y()?J():void 0},
tabindex:function(){return y()?0:void 0},
role:function(){return y()?"button":void 0}},_.u("div",{class:"ytFeedbackItemRendererContentContainer"},_.u(_.zS,{data:function(){return N().content}},{videoRenderer:function(X){return _.u(m,{data:X.data,
showYtInteraction:b})},
lockupViewModel:function(X){return _.u(_.UE,{data:X.data,containerType:2})}})),_.u("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.u(_.zS,{data:function(){return N().primaryButton}},{toggleButtonViewModel:function(X){return _.u(_.LV,{data:X.data,
buttonShapeOverrides:z,disableExplicitClickLogging:!0,onToggle:F})}})))},"$c"),"yt-feedback-item-renderer",{props:{data:_.F5,
showYtInteractionInContent:_.F5}});var gF=function(){var q=_.C.apply(this,arguments)||this;q.isShortsGrid=!1;q.isCompactGrid=!1;q.isShortsPanelGrid=!1;q.renderedFromRichGrid=!1;q.isInFirstColumn=!1;q.noGutterMargins=!1;q.noBottomMargin=!1;q.halfBottomMargin=!1;q.isInlineGroupItem=!1;q.insetMetadata=!1;q.noBottomMarginInAds=!0;q.force16By9ThumbnailAspectRatio=!1;q.useCompactList=!1;q.containerType=2;q.thumbnailTargetWidth=9999;q.isResponsiveGrid=!1;q.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};q.hoverListener=
q.hover.bind(q);q.leaveListener=q.leave.bind(q);q.highlighted=!1;q.JSC$16379_unsubscribeFromInlinePreviewIsActive=function(){};
return q};
_.Y(gF,_.C);_.g=gF.prototype;_.g.computeContainerType=function(){return this.useCompactList?3:2};
_.g.itemWidthChanged=function(){var q;this.thumbnailTargetWidth=(q=this.itemWidth)!=null?q:9999};
_.g.updateIsInFirstColumn=function(){var q;this.isInFirstColumn=((q=this.data)==null?void 0:q.colIndex)===0};
_.g.observerContainerType=function(){if(this.lockup){var q=this.lockup;q.containerType=this.containerType;q.sizing=this.sizing;q.typographyBump=this.typographyBump;q.itemWidth=this.itemWidth}this.richGridMedia&&_.x("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.x("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.g.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]]"}}}}}};
_.g.leave=function(q){q=q.relatedTarget;var N=document.querySelector("ytd-video-preview");q&&N&&_.BP(N).contains(q)||this.removeAndCleanupHighlight()};
_.g.hover=function(){var q;!this.highlighted&&(q=this.data)!=null&&q.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(q=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:q,boxShadow:"0 0 0 10px "+q})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.g.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};
_.g.registerHoverHighlightListeners=function(){var q=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16379_unsubscribeFromInlinePreviewIsActive=_.aM(_.WT(),_.fcC,function(N){q.highlighted&&!N&&q.removeAndCleanupHighlight()})};
_.g.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16379_unsubscribeFromInlinePreviewIsActive()};
_.g.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.g.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.g.getBackgroundColor=function(){var q,N,b=(q=this.data)==null?void 0:(N=q.onFocusEffect)==null?void 0:N.onFocusColor;if(b){if(document.documentElement.hasAttribute("dark")&&(b==null?0:b.darkTheme))return Ov(b==null?void 0:b.darkTheme);if(b==null?0:b.lightTheme)return Ov(b==null?void 0:b.lightTheme)}};
_.g.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var q=_.Oe(),N,b,y;q&&((N=this.data)==null?0:N.trackingParams)&&((b=this.data)==null?void 0:b.colIndex)!=null&&((y=this.data)==null?void 0:y.rowIndex)!=null&&_.Sg(q,_.zT(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.g.isSlimMediaRenderer=function(q){return!!_.v(q==null?void 0:q.content,_.UA1)||!!_.v(q==null?void 0:q.content,kV1)||!!_.v(q==null?void 0:q.content,_.bo)||!!_.v(q==null?void 0:q.content,y01)};
_.g.isPostRenderer=function(){var q,N;return!!_.v((q=this.data)==null?void 0:q.content,BPM)||!!_.v((N=this.data)==null?void 0:N.content,Hvq)};
_.g.computeIsGameCardShelf=function(){var q;return!!_.v((q=this.data)==null?void 0:q.content,u6M)};
_.g.computeIsMiniGameCardShelf=function(){var q,N;return!!_.v((q=this.data)==null?void 0:q.content,OO1)||!!_.v((N=this.data)==null?void 0:N.content,waM)};
_.g.computeIsTeaserCard=function(){var q;return!!_.v((q=this.data)==null?void 0:q.content,waM)};
_.g.computeIsSelectableFeedbackItem=function(){var q,N;return!((N=_.v((q=this.data)==null?void 0:q.content,lDT))==null||!N.selectableFeedback)};
_.g.computeContainsLumierePosters=function(){var q,N;return((N=_.v((q=this.data)==null?void 0:q.content,FSE))==null?void 0:N.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.g.computeIsExpandOnHoverCardShelf=function(){var q;return!!_.v((q=this.data)==null?void 0:q.content,Zzv)};
_.g.computeIsLinkCardShelf=function(){var q;return!!_.v((q=this.data)==null?void 0:q.content,rv1)};
_.g.computeIsReelItemStyleAvatarCircle=function(q){var N;return((N=_.v(q==null?void 0:q.content,_.bo))==null?void 0:N.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.g.computeIsLinkCardFullWidth=function(q,N){var b;return((b=_.v(q==null?void 0:q.content,rv1))==null?void 0:b.useFullWidth)||N<=2};
_.$H.Object.defineProperties(gF.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var q;return _.x("web_hover_effect_refactor")&&_.v((q=this.data)==null?void 0:q.content,_.m81)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.x("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var q;if(_.x("web_hover_effect_refactor")&&_.v((q=this.data)==null?void 0:q.content,_.m81))return!1;var N;return!((N=this.data)==null||!N.onFocusEffect)||_.x("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 q;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.x("web_hover_effect_refactor")?(q=this.data)==null?void 0:q.onFocusEffect:void 0}}}});
gF.prototype.richGridHoverHighlightChanged=gF.prototype.richGridHoverHighlightChanged;gF.prototype.observerContainerType=gF.prototype.observerContainerType;gF.prototype.updateIsInFirstColumn=gF.prototype.updateIsInFirstColumn;gF.prototype.itemWidthChanged=gF.prototype.itemWidthChanged;_.p([_.O(_.H6),_.P("design:type",Object)],gF.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],gF.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],gF.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],gF.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Fi),_.P("design:type",Object)],gF.prototype,"ytdLockupBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],gF.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.P("design:type",Boolean)],gF.prototype,"isPost",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.P("design:type",Boolean)],gF.prototype,"containsLumierePosters",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.P("design:type",Boolean)],gF.prototype,"isSlimMedia",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.P("design:type",Boolean)],gF.prototype,"isGameCardShelf",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.P("design:type",Boolean)],gF.prototype,"isMiniGameCardShelf",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.P("design:type",Boolean)],gF.prototype,"isTeaserCard",void 0);_.p([_.U({computed:"computeIsSelectableFeedbackItem(data)"}),_.P("design:type",Boolean)],gF.prototype,"isSelectableFeedbackItem",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gF.prototype,"isShortsGrid",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],gF.prototype,"isSlimGrid",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gF.prototype,"isCompactGrid",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gF.prototype,"isShortsPanelGrid",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.P("design:type",Boolean)],gF.prototype,"isExpandOnHoverCardShelf",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.P("design:type",Boolean)],gF.prototype,"isLinkCardShelf",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.YR,value:3}),_.P("design:type",Number)],gF.prototype,"itemsPerRow",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gF.prototype,"renderedFromRichGrid",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gF.prototype,"isInFirstColumn",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gF.prototype,"noGutterMargins",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gF.prototype,"noBottomMargin",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gF.prototype,"halfBottomMargin",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gF.prototype,"isInlineGroupItem",void 0);_.p([_.U(),_.P("design:type",Object)],gF.prototype,"insetMetadata",void 0);_.p([_.U(),_.P("design:type",Object)],gF.prototype,"noBottomMarginInAds",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],gF.prototype,"isShelfItem",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.P("design:type",Boolean)],gF.prototype,"isReelItemStyleAvatarCircle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.P("design:type",Boolean)],gF.prototype,"isLinkCardFullWidth",void 0);_.p([_.U(),_.P("design:type",Object)],gF.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gF.prototype,"useCompactList",void 0);_.p([_.U(),_.P("design:type",String)],gF.prototype,"sizing",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],gF.prototype,"typographyBump",void 0);_.p([_.U(),_.P("design:type",Number)],gF.prototype,"itemWidth",void 0);_.p([_.U(),_.P("design:type",Boolean)],gF.prototype,"isHomeShelf",void 0);_.p([_.U(),_.P("design:type",Boolean)],gF.prototype,"isHomeGrid",void 0);
_.p([_.dq("yt-lockup-view-model"),_.P("design:type",HTMLElement)],gF.prototype,"lockup",void 0);_.p([_.dq("ytd-rich-grid-media"),_.P("design:type",HTMLElement)],gF.prototype,"richGridMedia",void 0);_.p([_.dq("ytd-ad-slot-renderer"),_.P("design:type",HTMLElement)],gF.prototype,"adSlotRenderer",void 0);_.p([_.U({computed:"computeContainerType(useCompactList)"}),_.P("design:type",Object)],gF.prototype,"containerType",void 0);_.p([_.U(),_.P("design:type",Object)],gF.prototype,"thumbnailTargetWidth",void 0);
_.p([_.l("showYtInteractionOnRichItem"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],gF.prototype,"showYtInteractionOnRichGridMedia",null);_.p([_.l("isSelectableFeedbackItem","richGridHoverHighlight"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],gF.prototype,"showYtInteractionOnRichItem",null);_.p([_.l("typographyBump","isHomeGrid"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],gF.prototype,"richTypographyBump",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data","isShortsGrid","isCompactGrid"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],gF.prototype,"richGridHoverHighlight",null);_.p([_.l("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.P("design:type",Number),_.P("design:paramtypes",[])],gF.prototype,"shortsLockupViewModelAspectRatio",null);_.p([_.l("isInlineGroupItem"),_.P("design:type",Number),_.P("design:paramtypes",[])],gF.prototype,"shortsLockupViewModelScrimStyle",null);
_.p([_.FY("itemWidth"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gF.prototype,"itemWidthChanged",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gF.prototype,"updateIsInFirstColumn",null);_.p([_.FY("containerType","sizing","typographyBump"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gF.prototype,"observerContainerType",null);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gF.prototype,"isResponsiveGrid",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],gF.prototype,"lockupExperiments",null);_.p([_.FY("richGridHoverHighlight"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gF.prototype,"richGridHoverHighlightChanged",null);_.p([_.I({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],gF);
_.FeT=_.oU()(gF,"ytd-rich-item-renderer",function(){if(Mrv===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);Mrv=q}q=Mrv;return q},{mode:_.Am("kevlar_poly_si_batch_j028")?1:2});var bqn={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var t1n=_.nD(_.FE("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var JhA={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},gku={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},Zqd={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var RRx;var Z_=function(){var q=_.C.apply(this,arguments)||this;q.useResponsiveGrid=!1;q.hidden=!1;q.isShowMoreHidden=!1;q.isShowLessHidden=!0;q.hasExpansionButton=!1;q.isInnerShelf=!1;q.allVideosCount=0;q.allPlaylistCount=0;q.haveSmartDownloadsCompleted=!1;q.restrictContentsOverflow=!1;q.firstShownIndex=0;q.horizontalOffset=0;q.atEnd=!0;q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
q.nextClick=function(){var N;(N=q.data)!=null&&N.contents&&(q.firstShownIndex+=q.currentElementsPerRow,q.updateHorizontalOffset(),q.updateHorizontalItemVisibility())};
q.previousClick=function(){var N;(N=q.data)!=null&&N.contents&&(q.firstShownIndex-=q.currentElementsPerRow,q.updateHorizontalOffset(),q.updateHorizontalItemVisibility())};
return q};
_.Y(Z_,_.C);_.g=Z_.prototype;
_.g.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:_.M7("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.g.attached=function(){this.requestElementsPerRow()};
_.g.refreshGridLayoutNew=function(){var q;if((q=this.data)!=null&&q.contents&&this.containerWidth){var N;((N=this.data.responsiveContainerConfiguration)==null?0:N.responsiveSize)?(q=_.Xzd(this.data.responsiveContainerConfiguration,this.containerWidth,2),q=_.D7(Object.assign({},q,{standardUnitMinWidth:this.standardUnitMinWidth}))):q=_.D7({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=q.typographyBump;if(this.elementsPerRow!==
q.numItems||this.gutter!==q.gutter)this.elementsPerRow=q.numItems,this.gutter=q.gutter,this.itemWidth=q.itemWidth,_.Jm(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":q.gutter+"px"})}};
_.g.computeSizing=function(){if(!this.isLumiere){var q=_.IKD(this.data);return q?q:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.g.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.g.computeButton=function(q){var N=_.v(q,_.JI);q=Object.assign({},_.v(q,_.JI));return N?(q.text||(q.text={simpleText:q.tooltip}),q.style="STYLE_MONO_OUTLINE",q.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",q):N};
_.g.onRowIndexChange=function(){var q=_.Oe(),N,b;((N=this.data)==null?0:N.trackingParams)&&((b=this.data)==null?void 0:b.rowIndex)!=null&&q&&_.Sg(q,_.zT(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.g.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var q,N=((q=this.getRichItemRenderers()[0])==null?void 0:q.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*N;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.g.requestElementsPerRow=function(){_.e2(this.hostElement,"yt-request-elements-per-row")};
_.g.onUpdateElementsPerRowAction=function(q,N,b,y,J,E){if(this.containerWidth!==E&&(this.containerWidth=E,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&q&&N&&b&&y&&J&&(this.elementsPerRow!==q||this.postsPerRow!==N||this.slimItemsPerRow!==b||this.gameCardsPerRow!==y||this.miniGameCardsPerRow!==J)&&(this.elementsPerRow=q,this.postsPerRow=N,this.slimItemsPerRow=b,this.gameCardsPerRow=y,this.miniGameCardsPerRow=J,this.updateItemVisibility())};
_.g.isExpandedChanged=function(){var q=this.getRichItemRenderers(),N=this.isExpanded;q.forEach(function(b){b.halfBottomMargin=N})};
_.g.isCollapsedChanged=function(){var q=this.getRichItemRenderers(),N=this.isCollapsed;q.forEach(function(b){b.noBottomMargin=N})};
_.g.getRichItemRenderers=function(){return _.ee(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.g.updateItemVisibility=function(){var q=this;if(this.data&&this.data.contents){var N=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(y,J){var E;((E=q.data)==null?0:E.isExpanded)?(y.hidden=J>N-1,y.ytRendererBehavior.markDirty()):y.hidden=J>q.currentElementsPerRow-1||J>N-1});
var b=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||b||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||b||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.g.setHeightToSingleRow=function(){var q=this.getRichItemRenderers(),N=Number.parseInt(getComputedStyle(q[0]).marginBottom,10)||0;q=q.slice(0,this.currentElementsPerRow).reduce(function(b,y){return Math.max(b,y.getBoundingClientRect().height+N)},0);
this.contents.style.height=q+"px"};
_.g.focusNextExpandedItem=function(){var q;((q=this.data)==null?0:q.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.g.focusItem=function(q,N){var b=this.getRichItemRenderers();if(b[q]&&(q=b[q].querySelector(".focus-on-expand"))){if(N){var y;(y=b[this.currentElementsPerRow])==null||y.scrollIntoView({behavior:"smooth",block:"center"})}q.focus({preventScroll:!0})}};
_.g.onDataChange=function(){var q=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var N;if((N=this.data)==null?0:N.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.ut(this,function(){q.updateItemVisibility()});
var b;if((b=this.data)==null?0:b.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Jm(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),N=0;N<this.data.contents.length;N++)b=_.v(this.data.contents[N],_.at)||{},b.colIndex=N,b.rowIndex=this.data.rowIndex};
_.g.handleRerenderDownloadsData=function(){_.x("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())};
_.g.blockInlinePreview=function(q){var N=this,b;return _.d(function(y){(b=N.inlinePreviewIsEnabled)&&N.ytdReduxBehavior.dispatch(_.EO1(!1));return y.return(new Promise(function(J){q(function(){b&&N.ytdReduxBehavior.dispatch(_.EO1(!0));J()})}))})};
_.g.expandShelf=function(){var q=this;if(this.data){var N,b=(N=_.v(this.data.showMoreButton,_.JI))==null?void 0:N.trackingParams;b&&_.fm(_.FR(),b);this.set("data.isExpanded",!0);this.blockInlinePreview(function(y){q.setHeightToSingleRow();q.updateItemVisibility();q.contents.style.height=q.contents.scrollHeight+"px";_.pY.addJob(function(){q.contents.style.height="auto";q.focusNextExpandedItem();y()},2,200)})}};
_.g.collapseShelf=function(){var q=this;return _.d(function(N){if(N.nextAddress==1){if(!q.data)return N.return();q.set("data.isExpanded",!1);return N.yield(q.blockInlinePreview(function(b){q.contents.style.height=q.contents.scrollHeight+"px";q.setHeightToSingleRow();_.pY.addJob(function(){q.updateItemVisibility();q.contents.style.height="auto";b()},2,200)}),2)}_.e2(q.hostElement,"yt-rich-shelf-renderer-collapse",q.data.trackingParams);
q.focusItem(0,!1);_.hj(N)})};
_.g.updateArrowButtonStatus=function(){this.getRichItemRenderers();var q,N;var b=((q=this.data)==null?void 0:(N=q.contents)==null?void 0:N.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=b};
_.g.onChildElementFocus=function(q){this.hasChevronButtons&&(q=q.target.closest("#contents > *"),this.contents.contains(q)&&(q.offsetLeft<this.horizontalOffset?this.previousClick():q.offsetLeft+q.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.g.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.M7("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.g.updateHorizontalOffset=function(){var q=this.getRichItemRenderers(),N,b;var y=((N=this.data)==null?void 0:(b=N.contents)==null?void 0:b.length)||0;var J;q=((J=q[0])==null?void 0:J.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>y?this.firstShownIndex=y-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*q};
_.g.isSlimMediaShelfRenderer=function(){var q,N,b,y=(b=_.v((q=this.data)==null?void 0:(N=q.contents)==null?void 0:N[0],_.at))==null?void 0:b.content;return!!(_.v(y,_.UA1)||_.v(y,kV1)||_.v(y,_.bo)||_.v(y,y01))};
_.g.isGameCardShelf=function(){var q,N,b,y=(b=_.v((q=this.data)==null?void 0:(N=q.contents)==null?void 0:N[0],_.at))==null?void 0:b.content;return!!_.v(y,u6M)};
_.g.isMiniGameCardShelf=function(){var q,N,b,y=(b=_.v((q=this.data)==null?void 0:(N=q.contents)==null?void 0:N[0],_.at))==null?void 0:b.content;return!!_.v(y,OO1)||!!_.v(y,waM)};
_.g.hasGameBoxArtAvatarStyle=function(){var q;return((q=this.data)==null?void 0:q.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.g.hasRoundedGameBoxArtAvatarStyle=function(){var q;return((q=this.data)==null?void 0:q.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.g.isShortsShelf=function(){var q,N,b,y=(b=_.v((q=this.data)==null?void 0:(N=q.contents)==null?void 0:N[0],_.at))==null?void 0:b.content;return!!_.v(y,_.bo)||!!_.v(y,y01)};
_.g.isPostShelfRenderer=function(){var q,N,b,y=(b=_.v((q=this.data)==null?void 0:(N=q.contents)==null?void 0:N[0],_.at))==null?void 0:b.content;return!(!_.v(y,BPM)&&!_.v(y,Hvq))};
_.g.isLumiereShelf=function(){var q,N,b=_.v((q=this.data)==null?void 0:(N=q.contents)==null?void 0:N[0],_.at);return!!_.v(b==null?void 0:b.content,FSE)};
_.g.isLumiereShelfWithPosters=function(){var q,N,b=_.v((q=this.data)==null?void 0:(N=q.contents)==null?void 0:N[0],_.at),y;return((y=_.v(b==null?void 0:b.content,FSE))==null?void 0:y.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.g.isExpandOnHoverCardShelf=function(){var q,N,b,y=(b=_.v((q=this.data)==null?void 0:(N=q.contents)==null?void 0:N[0],_.at))==null?void 0:b.content;return!!_.v(y,Zzv)};
_.g.computeHasFeaturedBadge=function(){var q,N,b=_.v((q=this.data)==null?void 0:(N=q.badges)==null?void 0:N[0],_.w0o);return b?b.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.g.computeHasPaygatedFeaturedBadge=function(){var q,N,b=_.v((q=this.data)==null?void 0:(N=q.badges)==null?void 0:N[0],_.w0o);return b?(b==null?void 0:b.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.g.computeHeaderHidden=function(){var q,N,b,y,J,E;return!((q=this.data)==null?0:q.icon)&&!((N=this.data)==null?0:N.title)&&!((b=this.data)==null?0:b.subtitle)&&!((y=this.data)==null?0:y.thumbnail)&&!((J=this.data)==null?0:J.badges)&&!((E=this.data)==null?0:E.menu)};
_.g.showCtaButton=function(){var q;return!((q=this.data)==null||!q.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.g.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.g.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.g.computeForce16By9ThumbnailAspectRatio=function(){var q,N;return((q=this.data)==null?void 0:(N=q.responsiveContainerConfiguration)==null?void 0:N.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.g.onSectionReactiveDismissal=function(q,N,b){var y,J;var E=(y=this.data)==null?void 0:(J=y.targetingContext)==null?void 0:J.targetGroupId;this&&E&&N.targetGroupId&&E.includes(N.targetGroupId)?(y=this.rowIndex,q=y===void 0?!1:!(N.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&y<=q)):q=!1;q&&(this.hidden=b)};
_.$H.Object.defineProperties(Z_.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null?0:q.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var q=this.elementsPerRow;this.isPostShelfRenderer()?q=this.postsPerRow:this.isSlimMediaShelfRenderer()?q=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?q=this.slimItemsPerRow-1:this.isGameCardShelf()?q=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(q=this.miniGameCardsPerRow);return q}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null?0:q.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var q,N;return!((q=this.data)==null||!q.previousButton)&&!((N=this.data)==null||!N.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 q;return((q=_.tz().resolve(_.L6).getCurrentPage())==null?void 0:q.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var q,N,b,y;return!((q=this.data)==null?0:(N=q.thumbnail)==null?0:(b=N.accessibility)==null?0:(y=b.accessibilityData)==null?0:y.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Z_.prototype.onChildElementFocus=Z_.prototype.onChildElementFocus;Z_.prototype.handleRerenderDownloadsData=Z_.prototype.handleRerenderDownloadsData;Z_.prototype.onDataChange=Z_.prototype.onDataChange;Z_.prototype.isCollapsedChanged=Z_.prototype.isCollapsedChanged;Z_.prototype.isExpandedChanged=Z_.prototype.isExpandedChanged;Z_.prototype.onRowIndexChange=Z_.prototype.onRowIndexChange;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Z_.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],Z_.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Z_.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],Z_.prototype,"ytdReduxBehavior",void 0);
_.p([_.U({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.P("design:type",Object)],Z_.prototype,"useResponsiveGrid",void 0);_.p([_.U(),_.P("design:type",Object)],Z_.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Number)],Z_.prototype,"standardUnitMinWidth",void 0);_.p([_.U({reflectToAttribute:!0,value:3}),_.P("design:type",Number)],Z_.prototype,"elementsPerRow",void 0);_.p([_.U({value:3}),_.P("design:type",Number)],Z_.prototype,"postsPerRow",void 0);
_.p([_.U({value:6}),_.P("design:type",Number)],Z_.prototype,"slimItemsPerRow",void 0);_.p([_.U({value:6}),_.P("design:type",Number)],Z_.prototype,"gameCardsPerRow",void 0);_.p([_.U({value:6}),_.P("design:type",Number)],Z_.prototype,"miniGameCardsPerRow",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Z_.prototype,"hidden",void 0);_.p([_.U(),_.P("design:type",Object)],Z_.prototype,"isShowMoreHidden",void 0);
_.p([_.U(),_.P("design:type",Object)],Z_.prototype,"isShowLessHidden",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Z_.prototype,"hasExpansionButton",void 0);_.p([_.l("data.isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Z_.prototype,"isExpanded",null);_.p([_.l("data.isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Z_.prototype,"isCollapsed",null);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Z_.prototype,"isInnerShelf",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.P("design:type",Boolean)],Z_.prototype,"isShorts",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.P("design:type",Boolean)],Z_.prototype,"isLumiere",void 0);_.p([_.U({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.P("design:type",Boolean)],Z_.prototype,"hasBoxArtThumbnailStyle",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.P("design:type",Boolean)],Z_.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.P("design:type",Boolean)],Z_.prototype,"hasFeaturedBadge",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.P("design:type",Boolean)],Z_.prototype,"hasPaygatedFeaturedBadge",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.P("design:type",Boolean)],Z_.prototype,"isHeaderHidden",void 0);_.p([_.U({selector:_.acJ}),_.P("design:type",Object)],Z_.prototype,"allVideosCount",void 0);_.p([_.U({selector:rhu}),_.P("design:type",Object)],Z_.prototype,"allPlaylistCount",void 0);_.p([_.U({selector:BTC}),_.P("design:type",Object)],Z_.prototype,"haveSmartDownloadsCompleted",void 0);
_.p([_.U({selectorArgs:["entitySelectorType"],selector:function(q,N){if(_.x("kevlar_modern_downloads_page")&&N&&N!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var b=q.entities;switch(N){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":N=_.jN(b);q=FO(N);var y=_.$R(N);b=_.vT(b);b=_.o5(RBz(y,b,N.length));return{contents:q,subtitle:b};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return b=_.jN(b),{contents:FO(b)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return b=
_.xR(b),{contents:FO(b)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return b=_.XQn(b),{contents:FO(b)};default:_.M6(new _.IO("Error: entitySelectorType defined but not matched in selector.",q,N))}}}}),
_.P("design:type",Object)],Z_.prototype,"entityDrivenRichShelfData",void 0);_.p([_.U({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.P("design:type",Boolean)],Z_.prototype,"hasTopCtaButton",void 0);_.p([_.U({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.P("design:type",Boolean)],Z_.prototype,"hasBottomCtaButton",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.P("design:type",Boolean)],Z_.prototype,"force16By9ThumbnailAspectRatio",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Z_.prototype,"restrictContentsOverflow",void 0);_.p([_.U({selector:_.Cwn}),_.P("design:type",Boolean)],Z_.prototype,"inlinePreviewIsEnabled",void 0);_.p([_.U({computed:"computeSizing(data)"}),_.P("design:type",String)],Z_.prototype,"sizing",void 0);
_.p([_.U(),_.P("design:type",Boolean)],Z_.prototype,"typographyBump",void 0);_.p([_.U(),_.P("design:type",Number)],Z_.prototype,"itemWidth",void 0);_.p([_.U(),_.P("design:type",Object)],Z_.prototype,"firstShownIndex",void 0);_.p([_.U(),_.P("design:type",Object)],Z_.prototype,"horizontalOffset",void 0);_.p([_.U(),_.P("design:type",Object)],Z_.prototype,"atEnd",void 0);_.p([_.dq("#contents"),_.P("design:type",HTMLElement)],Z_.prototype,"contents",void 0);
_.p([_.FY("data.rowIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Z_.prototype,"onRowIndexChange",null);_.p([_.FY("isExpanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Z_.prototype,"isExpandedChanged",null);_.p([_.FY("isCollapsed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Z_.prototype,"isCollapsedChanged",null);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Z_.prototype,"onDataChange",null);_.p([_.FY("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Z_.prototype,"handleRerenderDownloadsData",null);_.p([_.ZP("focusin"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Z_.prototype,"onChildElementFocus",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data","isHomePage"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Z_.prototype,"isTruncated",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Z_.prototype,"showBottomDivider",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Z_.prototype,"hasChevronButtons",null);
_.p([_.l("firstShownIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],Z_.prototype,"previousButtonOverride",null);_.p([_.l("atEnd"),_.P("design:type",Object),_.P("design:paramtypes",[])],Z_.prototype,"nextButtonOverride",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Z_.prototype,"isHomePage",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Z_.prototype,"thumbnailAriaHidden",null);
_.p([_.l("data"),_.P("design:type",String),_.P("design:paramtypes",[])],Z_.prototype,"entitySelectorType",null);_.p([_.I({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Z_);
_.dbM=_.oU()(Z_,"ytd-rich-shelf-renderer",function(){if(RRx===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);RRx=q}q=RRx;return q},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Am("kevlar_poly_si_batch_j028")?1:2});var cLv;_.P$(_.XT,"yt-badge-view-model",{props:{data:_.F5,class:_.F5,workaroundShortsIsThumbnailBadge:_.F5,modern:_.F5,numBadgesInRow:_.F5,clipTextOverflow:_.F5}});_.P$(UDE,"yt-slimline-survey-view-model",{props:{data:_.F5}});var FX=function(){var q=_.C.apply(this,arguments)||this;q.tileLottieAnimationRef={};q.backgroundLottieAnimationRef={};q.isOnHoverBehaviorForLottieEnabled=!0;q.useBiggerShowcaseImage=_.x("enable_desktop_search_bigger_thumbs");q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return q};
_.Y(FX,_.C);_.g=FX.prototype;_.g.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.g.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"}}}};
_.g.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var q=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);q!==this.hasTile&&this.set("hasTile",q);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.g.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.g.currentColorChanged=function(){this.updateButtonPalette()};
_.g.computeBackgroundStyle=function(q){if(q&&this.data){var N=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var b=_.oi((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);b&&N.push('background-image: url("'+b+'");')}var y;((y=q.basicColorData)==null?void 0:y.backgroundColor)!==void 0&&N.push("background-color: "+_.Y8(q.basicColorData.backgroundColor)+";");return N.join("")}};
_.g.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&this.set("isDarkTheme",q)};
_.g.getCurrentLogo=function(q,N){if(q)return N?q.darkLogoImage:q.lightLogoImage};
_.g.getCurrentStaticTileImage=function(q,N){if(this.hasStaticTile(q))return q.darkTileImage?N?q.darkTileImage:q.tileImage:q.tileImage};
_.g.computeTitleStyle=function(q){if(this.data&&this.data.title&&q&&q.basicColorData&&q.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.GM(q.basicColorData.foregroundTitleColor)+";"};
_.g.computeSubtitleStyle=function(q){if(this.data&&this.data.subtitle&&q&&q.basicColorData&&q.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.GM(q.basicColorData.foregroundBodyColor)+";"};
_.g.computeSupplementalStyle=function(q){if(this.data&&this.data.supplementalText&&q&&q.supplementalTextColor!==void 0)return q=_.GM(q.supplementalTextColor),"color:"+q+";--yt-endpoint-color:"+q+";--yt-endpoint-hover-color:"+q+";--yt-endpoint-visited-color:"+q+";--yt-formatted-string-bold-font-weight:700;"};
_.g.computeDismissIconStyle=function(q){var N,b;if((q==null?0:(N=q.dismissButtonColorData)==null?0:N.foregroundTitleColor)&&(q==null?0:(b=q.dismissButtonColorData)==null?0:b.backgroundColor))return"--yt-button-color:"+_.Y8(q.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Y8(q.dismissButtonColorData.backgroundColor)+";"};
_.g.computeOverflowIconStyle=function(q){var N,b;if((q==null?0:(N=q.dismissButtonColorData)==null?0:N.foregroundTitleColor)&&(q==null?0:(b=q.dismissButtonColorData)==null?0:b.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Y8(q.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Y8(q.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Y8(q.dismissButtonColorData.foregroundTitleColor)+";"};
_.g.computeBannerStyle=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.g.computeLocation=function(q){switch(q==null?void 0:q.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.g.shouldShowTileSection=function(q,N,b){return!this.shouldExpandLogo(q,N,b)&&N};
_.g.shouldShowExpandedLogoSection=function(q,N,b){return this.shouldExpandLogo(q,N,b)&&q!==void 0&&this.hasLogo(q)};
_.g.shouldExpandLogo=function(q,N,b){return q&&N?!1:b>=2};
_.g.hasStaticTile=function(q){return!(q==null||!q.tileImage)};
_.g.hasTileLottie=function(q){var N;return!!(q==null?0:(N=q.tileLottie)==null?0:N.url)};
_.g.hasLogo=function(q){return this.getCurrentLogo(q,this.isDarkTheme)!==void 0};
_.g.getLogoHeight=function(q){return this.logoWithPadding(q)?"26":"20"};
_.g.getExpandedLogoHeight=function(q){return this.logoWithPadding(q)?"31":"24"};
_.g.getLogoImageId=function(q){return this.logoWithPadding(q)?"logo-image-with-padding":"logo-image"};
_.g.getMaxTitleFontSize=function(q){return q.overrideTitleMaxFontSize?String(q.overrideTitleMaxFontSize):"36"};
_.g.hasBackgroundLottie=function(q){var N;return!!(q==null?0:(N=q.backgroundLottie)==null?0:N.url)};
_.g.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var q,N;(q=this.tileLottieAnimationRef)==null||(N=q.lottieEl)==null||N.play();var b,y;(b=this.backgroundLottieAnimationRef)==null||(y=b.lottieEl)==null||y.play()}};
_.g.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var q,N;(q=this.tileLottieAnimationRef)==null||(N=q.lottieEl)==null||N.pause();var b,y;(b=this.backgroundLottieAnimationRef)==null||(y=b.lottieEl)==null||y.pause()}};
_.g.pauseLottie=function(){var q,N;(q=this.tileLottieAnimationRef)==null||(N=q.lottieEl)==null||N.pause();var b,y;(b=this.backgroundLottieAnimationRef)==null||(y=b.lottieEl)==null||y.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.g.performPrimaryButtonAction=function(){var q,N,b;((q=this.data)==null?0:(N=q.primaryButton)==null?0:(b=N.buttonRenderer)==null?0:b.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.g.requestElementsPerRow=function(){_.e2(this.hostElement,"yt-request-elements-per-row")};
_.g.updateButtonPalette=function(){if(this.data&&this.currentColorData){var q;((q=this.data.dismissButton)==null?0:q.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 N;if((N=this.data.primaryButton)==null?0:N.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 b;if((b=this.data.secondaryButton)==
null?0:b.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 y;((y=this.data.primaryButton)==null?0:y.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var J;((J=this.data.secondaryButton)==null?0:J.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var E;((E=this.data.primaryButton)==null?0:E.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.g.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var q=this.getTileLottieDataBasedOnTheme(),N,b;if(q.url!==((N=this.tileLottiePlayerProps)==null?void 0:(b=N.animationConfig)==null?void 0:b.path)){var y,J;(y=this.tileLottieAnimationRef)==null||(J=y.lottieEl)==null||J.destroy();var E;this.isOnHoverBehaviorForLottieEnabled=!((E=q.settings)==null?0:E.autoplay);var F,R;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(R=(F=q.settings)==null?void 0:F.autoplay)!=null?R:!1,loop:this.getLottieLoopValue(q.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof q.url==="string"?this.tileLottiePlayerProps.animationConfig.path=q.url:this.tileLottiePlayerProps.animationConfig.animationData=q.url}}};
_.g.getOverflowButton=function(q){return _.v(q.overflowButton,Fy1)};
_.g.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var q=this.getBackgroundLottieDataBasedOnTheme(),N,b;if(q.url!==((N=this.backgroundLottiePlayerProps)==null?void 0:(b=N.animationConfig)==null?void 0:b.path)){var y,J;(y=this.backgroundLottieAnimationRef)==null||(J=y.lottieEl)==null||J.destroy();var E;this.isOnHoverBehaviorForLottieEnabled=!((E=q.settings)==null?0:E.autoplay);var F,R;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(R=(F=q.settings)==null?void 0:F.autoplay)!=null?R:!1,loop:this.getLottieLoopValue(q.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof q.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=q.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
q.url}}};
_.g.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var q;((q=this.tileLottieAnimationRef)==null?void 0:q.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var N;((N=this.backgroundLottieAnimationRef)==null?void 0:N.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.g.getTileLottieDataBasedOnTheme=function(){var q;if(this.isDarkTheme&&((q=this.data)==null?0:q.darkThemeTileLottie))return this.data.darkThemeTileLottie;var N;return((N=this.data)==null?0:N.tileLottie)?this.data.tileLottie:{}};
_.g.getBackgroundLottieDataBasedOnTheme=function(){var q;if(this.isDarkTheme&&((q=this.data)==null?0:q.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var N;return((N=this.data)==null?0:N.backgroundLottie)?this.data.backgroundLottie:{}};
_.g.onUpdateElementsPerRowAction=function(q){q&&this.elementsPerRow!==q&&(this.elementsPerRow=q)};
_.g.getLottieLoopValue=function(q){return q?q.loop!==void 0?q.loop:q.loopCount?q.loopCount-1:!0:!0};
_.g.logoWithPadding=function(q){var N,b,y;return(q=(N=this.getCurrentLogo(q,this.isDarkTheme))==null?void 0:(b=N.thumbnails)==null?void 0:(y=b[0])==null?void 0:y.height)&&q%31===0?!0:!1};
FX.prototype.currentColorChanged=FX.prototype.currentColorChanged;FX.prototype.themeChanged=FX.prototype.themeChanged;FX.prototype.dataChanged=FX.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],FX.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],FX.prototype,"ytdDismissibleItemBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],FX.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],FX.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],FX.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],FX.prototype,"primaryButton",void 0);_.p([_.U(),_.P("design:type",Object)],FX.prototype,"secondaryButton",void 0);
_.p([_.U({reflectToAttribute:!0,value:3}),_.P("design:type",Number)],FX.prototype,"elementsPerRow",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],FX.prototype,"isDarkTheme",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],FX.prototype,"hasTile",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],FX.prototype,"hasMetadata",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],FX.prototype,"showLogoImage",void 0);_.p([_.U(),_.P("design:type",Object)],FX.prototype,"currentColorData",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.P("design:type",String)],FX.prototype,"bannerStyle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.P("design:type",String)],FX.prototype,"location",void 0);
_.p([_.U(),_.P("design:type",Object)],FX.prototype,"tileLottiePlayerProps",void 0);_.p([_.U(),_.P("design:type",Object)],FX.prototype,"tileLottieAnimationRef",void 0);_.p([_.U(),_.P("design:type",Object)],FX.prototype,"backgroundLottiePlayerProps",void 0);_.p([_.U(),_.P("design:type",Object)],FX.prototype,"backgroundLottieAnimationRef",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],FX.prototype,"useBiggerShowcaseImage",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],FX.prototype,"isHideEnclosingAction",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FX.prototype,"dataChanged",null);_.p([_.$9("isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FX.prototype,"themeChanged",null);
_.p([_.$9("currentColorData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FX.prototype,"currentColorChanged",null);_.p([_.I({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],FX);
_.a(FX,"ytd-statement-banner-renderer",function(){if(cLv!==void 0)return cLv;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return cLv=q},{mode:1});var uq1;var RL=function(){var q=_.C.apply(this,arguments)||this;q.isSearch=!1;q.hideShelfHeader=!1;q.engagementPanel=!1;q.disableMouseScroll=!0;q.useFloorScrolling=!0;return q};
_.Y(RL,_.C);RL.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.FE("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.FE("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
RL.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
RL.prototype.onDataChanged=RL.prototype.onDataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],RL.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],RL.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],RL.prototype,"hideShelfHeader",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],RL.prototype,"engagementPanel",void 0);_.p([_.U(),_.P("design:type",Object)],RL.prototype,"disableMouseScroll",void 0);_.p([_.U(),_.P("design:type",Object)],RL.prototype,"useFloorScrolling",void 0);_.p([_.U(),_.P("design:type",Object)],RL.prototype,"data",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RL.prototype,"onDataChanged",null);
_.p([_.I({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],RL);
_.a(RL,"ytd-reel-shelf-renderer",function(){if(uq1!==void 0)return uq1;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return uq1=q},{mode:_.Am("kevlar_poly_si_batch_j028")?1:2});var zRE;var $bR;$bR=_.Tt(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.tq1=_.Xe($bR);var mbJ=_.n(function(q){var N=q.data;q=q.useSmallFont;var b={},y={};return _.u("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.u(_.t,{cond:function(){return N().favicon},
then:function(J){return _.u(_.s_,{data:J,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.u("div",{class:"ytChannelExternalLinkViewModelContainer"},_.u(_.Zc,{text:function(){return N().title},
className:_.NO("ytChannelExternalLinkViewModelTitle",(b.ytChannelExternalLinkViewModelTitleSmallFont=q,b)),ellipsisTruncate:!0,userInput:!0}),_.u(_.Zc,{text:function(){return N().link},
className:_.NO("ytChannelExternalLinkViewModelLink",(y.ytChannelExternalLinkViewModelLinkSmallFont=q,y)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"ad");
mbJ.idomCompat=!0;_.P$(mbJ,"yt-channel-external-link-view-model",{props:{data:_.F5,useSmallFont:_.F5}});_.xP("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var dF=function(){var q=_.C.apply(this,arguments)||this;q.revealButtonClass="button";q.businessEmailDisplayState="HIDE_SECTION";return q};
_.Y(dF,_.C);_.g=dF.prototype;_.g.refit=function(){var q=this;_.k9(function(){_.Hy(q.hostElement,"yt-refit-popups-action")});
_.ut(this,function(){_.Hy(q.hostElement,"yt-refit-popups-action")})};
_.g.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.kU(_.tq1),this.businessEmailDisplayState="CAPTCHA")};
_.g.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"};
_.g.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.g.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"}}}};
_.g.computeEmailHref=function(q){return"mailto:"+q};
_.g.computeSafeUrl=function(q){if(q)return _.pc(q)};
_.g.linkEndpoint=function(q){return _.v(q.onTap,_.QI)};
_.g.linkEndpointToHref=function(q){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(q))};
_.g.onYtServiceRequestCompleted=function(q){var N;if((N=q.detail.data)==null?0:N.businessEmail)this.businessEmail=q.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var b;if((b=q.detail.data)==null?0:b.errorMessage)this.businessEmailErrorMessage=q.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.g.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var q=this.JSC$16492_captchaTextarea.value;if(q){q={recaptcha_response_token:q,channel_id:this.metadata.channelId};var N=_.v(this.metadata.onBusinessEmailRevealClickCommand,_.QI);N&&this.ytComponentBehavior.resolveCommand(N,{form:q})}}};
_.g.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.$H.Object.defineProperties(dF.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var q;return _.v((q=this.data)==null?void 0:q.metadata,uJx)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.v(this.metadata.businessEmailRevealButton,_.FF)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var q=new URL(this.metadata.canonicalChannelUrl);return q.host+q.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 _.v(this.metadata.learnMoreOnTap,_.QI)}}});
dF.prototype.onYtServiceRequestCompleted=dF.prototype.onYtServiceRequestCompleted;dF.prototype.businessEmailMetadataChanged=dF.prototype.businessEmailMetadataChanged;dF.prototype.refit=dF.prototype.refit;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],dF.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],dF.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],dF.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("#g-recaptcha-response"),_.P("design:type",HTMLTextAreaElement)],dF.prototype,"JSC$16492_captchaTextarea",void 0);_.p([_.U(),_.P("design:type",Object)],dF.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],dF.prototype,"revealButtonClass",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],dF.prototype,"metadata",null);
_.p([_.l("metadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],dF.prototype,"revealButton",null);_.p([_.l("metadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],dF.prototype,"channelDisplayUrl",null);_.p([_.$9("metadata"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dF.prototype,"refit",null);_.p([_.l("metadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],dF.prototype,"formattedDescription",null);
_.p([_.l("metadata","learnMoreCommand"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],dF.prototype,"shouldRendereVerifiedPhoneStatus",null);_.p([_.l("metadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],dF.prototype,"learnMoreCommand",null);_.p([_.U(),_.P("design:type",String)],dF.prototype,"businessEmailDisplayState",void 0);_.p([_.U(),_.P("design:type",String)],dF.prototype,"businessEmail",void 0);
_.p([_.U(),_.P("design:type",String)],dF.prototype,"businessEmailErrorMessage",void 0);_.p([_.$9("metadata"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dF.prototype,"businessEmailMetadataChanged",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],dF.prototype,"onYtServiceRequestCompleted",null);_.p([_.I({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],dF);
_.a(dF,"ytd-about-channel-renderer",function(){if(zRE!==void 0)return zRE;var q=document.createElement("template");_.Q(q,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden$="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden$="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden$="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank" aria-label$="[[metadata.learnMoreA11yLabel]]">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return zRE=q},{mode:1});var rLx;var cJ=function(){return _.C.apply(this,arguments)||this};
_.Y(cJ,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],cJ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],cJ.prototype,"data",void 0);_.p([_.I({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],cJ);
_.a(cJ,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(rLx!==void 0)return rLx;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return rLx=q},{mode:1});var XM4;var uN=function(){return _.C.apply(this,arguments)||this};
_.Y(uN,_.C);uN.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],uN.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],uN.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],uN.prototype,"aligment",void 0);_.p([_.I({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],uN);
_.a(uN,"ytd-channel-list-sub-menu-renderer",function(){if(XM4!==void 0)return XM4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return XM4=
q},{mode:1});var VqJ;var zH=function(){return _.C.apply(this,arguments)||this};
_.Y(zH,_.C);zH.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}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],zH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],zH.prototype,"data",void 0);_.p([_.I({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],zH);
_.a(zH,"ytd-channel-sub-menu-renderer",function(){if(VqJ!==void 0)return VqJ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return VqJ=q},{mode:1});var jB4;var xbF;var $O=function(){var q=_.C.apply(this,arguments)||this;q.isCompact=!1;return q};
_.Y($O,_.C);_.$H.Object.defineProperties($O.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var q,N;return((N=_.v((q=this.data)==null?void 0:q.endpoint,_.b_))==null?void 0:N.target)==="TARGET_NEW_WINDOW"}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],$O.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],$O.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],$O.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],$O.prototype,"isCompact",void 0);_.p([_.l("isCompact"),_.P("design:type",Number),_.P("design:paramtypes",[])],$O.prototype,"thumbnailWidth",null);
_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],$O.prototype,"openNewWindow",null);_.p([_.I({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],$O);
_.a($O,"ytd-media-lockup-renderer",function(){if(xbF!==void 0)return xbF;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return xbF=q},{mode:1});var vS1;var tK=function(){return _.C.apply(this,arguments)||this};
_.Y(tK,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],tK.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],tK.prototype,"data",void 0);_.p([_.I({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],tK);
_.a(tK,"ytd-structured-description-channel-lockup-renderer",function(){if(vS1!==void 0)return vS1;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return vS1=q},{mode:1});var GL1;var mf=function(){var q=_.C.apply(this,arguments)||this;q.isCompact=!1;q.collectionsStackColor=_.x("modernize_structured_description_playlist_lockups_v2");return q};
_.Y(mf,_.C);mf.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:_.x("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.$H.Object.defineProperties(mf.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var q,N,b,y,J,E;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(q=this.data)==null?void 0:(N=q.thumbnail)==null?void 0:N.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(b=this.data)==null?void 0:(y=b.thumbnail)==null?void 0:y.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(J=this.data)==null?void 0:(E=J.thumbnail)==null?
void 0:E.vibrantColorPalette:void 0}}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],mf.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],mf.prototype,"componentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],mf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],mf.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],mf.prototype,"showSidePanelThumbnailOverlay",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],mf.prototype,"isCompact",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],mf.prototype,"collectionsStackColor",void 0);_.p([_.l("data"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],mf.prototype,"twoLineTitle",null);_.p([_.l("data","collectionsStackColor"),_.P("design:type",Object),_.P("design:paramtypes",[])],mf.prototype,"collectionStack",null);
_.p([_.I({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],mf);
_.a(mf,"ytd-structured-description-playlist-lockup-renderer",function(){if(GL1!==void 0)return GL1;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return GL1=q},{mode:1});var Y4l;var rF=function(){return _.C.apply(this,arguments)||this};
_.Y(rF,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],rF.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],rF.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],rF.prototype,"data",void 0);_.p([_.I({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],rF);
_.a(rF,"ytd-structured-description-video-lockup-renderer",function(){if(Y4l!==void 0)return Y4l;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Y4l=q},{mode:2});var XX=function(){return _.C.apply(this,arguments)||this};
_.Y(XX,_.C);
XX.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}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],XX.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],XX.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],XX.prototype,"data",void 0);_.p([_.I({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],XX);
_.a(XX,"ytd-compact-infocard-renderer",function(){if(jB4!==void 0)return jB4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return jB4=q},{mode:1});var QBx;var VK=function(){return _.C.apply(this,arguments)||this};
_.Y(VK,_.C);VK.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.$H.Object.defineProperties(VK.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.x("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.x("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.x("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],VK.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],VK.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],VK.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],VK.prototype,"ytdReduxBehavior",void 0);_.p([_.U({selector:_.wJ}),_.P("design:type",Object)],VK.prototype,"isGridViewEnabled",void 0);
_.p([_.l("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],VK.prototype,"watchFeedBigThumbs",null);_.p([_.l("isGridViewEnabled","data"),_.U({reflectToAttribute:!0,value:"168"}),_.P("design:type",String),_.P("design:paramtypes",[])],VK.prototype,"thumbnailWidth",null);_.p([_.l("isGridViewEnabled","data"),_.U({reflectToAttribute:!0,value:"94"}),_.P("design:type",String),_.P("design:paramtypes",[])],VK.prototype,"customThumbnailSize",null);
_.p([_.U(),_.P("design:type",Object)],VK.prototype,"data",void 0);_.p([_.I({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],VK);
_.a(VK,"ytd-compact-playlist-renderer",function(){if(QBx!==void 0)return QBx;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return QBx=q},{mode:1});var Oj4;var jw=function(){var q=_.C.apply(this,arguments)||this;q.roundedContainer=!0;q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return q};
_.Y(jw,_.C);_.g=jw.prototype;_.g.attached=function(){this.requestElementsPerRow()};
_.g.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"}}}};
_.g.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.g.computeViewStyle=function(q){return q.style?q.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.g.onUpdateElementsPerRowAction=function(q){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&q===1};
_.g.requestElementsPerRow=function(){_.e2(this.hostElement,"yt-request-elements-per-row")};
jw.prototype.dataChanged=jw.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],jw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],jw.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],jw.prototype,"actionHandlerBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],jw.prototype,"data",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],jw.prototype,"hideThumbnail",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.P("design:type",String)],jw.prototype,"viewStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],jw.prototype,"roundedContainer",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jw.prototype,"dataChanged",null);_.p([_.I({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],jw);
_.a(jw,"ytd-compact-promoted-item-renderer",function(){if(Oj4!==void 0)return Oj4;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Oj4=q},{mode:1});var wMM;var xO=function(){return _.C.apply(this,arguments)||this};
_.Y(xO,_.C);xO.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
xO.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
xO.prototype.onYtNavigate=function(q,N){var b=this;if(N.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",N)){var y=this.get("watchEndpoint.videoId",N.endpoint),J=_.Hy(this.hostElement,"yt-get-current-video-id-action")[0];_.x("kevlar_mix_handle_first_endpoint_different")&&y&&J&&y!==J||(q.stopPropagation(),_.MO().getPlayerPromise().then(function(E){if(E.getPlayerState()===0&&b.data.secondaryNavigationEndpoint)var F=b.data.secondaryNavigationEndpoint;else{F=
Object.assign({},N.endpoint);var R=_.v(F.commandMetadata,_.gg);R&&(E=Math.floor(E.getCurrentTime()),R.url=_.F$(R.url,{t:E}),!_.x("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(R=_.v(F,_.nx)))&&(R.startTimeSeconds=E)}_.e2(b.hostElement,"yt-navigate",{endpoint:F})}))}};
_.$H.Object.defineProperties(xO.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.x("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.x("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var q,N,b,y,J,E;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(q=this.data)==null?void 0:(N=q.thumbnail)==null?void 0:N.sampledThumbnailColor,vibrantColorPalette:(b=this.data)==null?void 0:(y=b.thumbnail)==null?void 0:y.vibrantColorPalette,darkColorPalette:(J=this.data)==null?void 0:(E=J.thumbnail)==null?void 0:E.darkColorPalette,experimentEnabled:!0}}}});
xO.prototype.onYtNavigate=xO.prototype.onYtNavigate;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.KV.YtEndpointBehavior),_.P("design:type",Object)],xO.prototype,"ytEndpointBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],xO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],xO.prototype,"ytdDismissibleItemBehavior",void 0);
_.p([_.O(_.Fi),_.P("design:type",Object)],xO.prototype,"ytdLockupBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],xO.prototype,"ytdReduxBehavior",void 0);_.p([_.U({selector:_.wJ}),_.P("design:type",Object)],xO.prototype,"isGridViewEnabled",void 0);_.p([_.l("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],xO.prototype,"watchFeedBigThumbs",null);
_.p([_.l("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.P("design:type",String),_.P("design:paramtypes",[])],xO.prototype,"thumbnailWidth",null);_.p([_.U(),_.P("design:type",Object)],xO.prototype,"data",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],xO.prototype,"collectionStack",null);_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],xO.prototype,"onYtNavigate",null);
_.p([_.I({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],xO);
_.a(xO,"ytd-compact-radio-renderer",function(){if(wMM!==void 0)return wMM;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return wMM=q},{mode:1});var ijl;var vJ=function(){return _.C.apply(this,arguments)||this};
_.Y(vJ,_.C);vJ.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
vJ.prototype.computeRendererStyle=function(q){return q.style?q.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.p([_.U(),_.P("design:type",Object)],vJ.prototype,"data",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],vJ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],vJ.prototype,"rendererBehavior",void 0);_.p([_.U({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.P("design:type",String)],vJ.prototype,"rendererStyle",void 0);_.p([_.I({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],vJ);
_.a(vJ,"ytd-compact-text-promo-renderer",function(){if(ijl!==void 0)return ijl;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return ijl=q},{mode:1});var lXx;var GH=function(){var q=_.C.apply(this,arguments)||this;q.isShortsStyle=!1;return q};
_.Y(GH,_.C);_.g=GH.prototype;_.g.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"}}}};
_.g.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.e2(this.hostElement,"yt-disable-lockup-interaction"):_.e2(this.hostElement,"yt-enable-lockup-interaction"))};
_.g.isMetaBlockEmpty=function(q){return!q||!q.longBylineText&&!q.shortBylineText&&!q.shortViewCountText&&!q.viewCountText};
_.g.computeHasOneLineTitle=function(q){return this.forceOneLineTitle||!(q==null||!q.buttons)};
_.g.computeDisableInteraction=function(){var q;return!((q=this.data)==null?0:q.navigationEndpoint)};
_.g.hasSingularTopStandaloneBadge=function(){var q;return!((q=this.data)==null||!q.topStandaloneBadge)};
_.$H.Object.defineProperties(GH.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.x("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.x("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 q;return this.hasSingularTopStandaloneBadge()?[(q=this.data)==null?void 0:q.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var q;return this.shouldShowTopBadges?((q=this.data)==null?void 0:q.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
GH.prototype.disableInteractionChanged=GH.prototype.disableInteractionChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],GH.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.Fi),_.P("design:type",Object)],GH.prototype,"ytdLockupBehavior",void 0);
_.p([_.O(_.H6),_.P("design:type",Object)],GH.prototype,"ytdReduxBehavior",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.P("design:type",Boolean)],GH.prototype,"metaBlockEmpty",void 0);_.p([_.U({selector:_.wJ}),_.P("design:type",Object)],GH.prototype,"isGridViewEnabled",void 0);_.p([_.l("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],GH.prototype,"watchFeedBigThumbs",null);
_.p([_.l("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.P("design:type",String),_.P("design:paramtypes",[])],GH.prototype,"thumbnailWidth",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],GH.prototype,"isShortsStyle",void 0);_.p([_.U(),_.P("design:type",Object)],GH.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.P("design:type",Boolean)],GH.prototype,"hasOneLineTitle",void 0);
_.p([_.U(),_.P("design:type",Boolean)],GH.prototype,"hideThumbnail",void 0);_.p([_.U(),_.P("design:type",Boolean)],GH.prototype,"forceOneLineTitle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.P("design:type",Boolean)],GH.prototype,"disableInteraction",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],GH.prototype,"musicMetadataVideoLockup",void 0);
_.p([_.FY("disableInteraction"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],GH.prototype,"disableInteractionChanged",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],GH.prototype,"shouldShowTopBadges",null);_.p([_.l("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],GH.prototype,"topBadges",null);
_.p([_.l("shouldShowTopBadges","data"),_.P("design:type",Array),_.P("design:paramtypes",[])],GH.prototype,"inlineMetadataBadges",null);_.p([_.l("shouldShowTopBadges"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],GH.prototype,"shouldShowBadgesBelowMetadata",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],GH.prototype,"compactTitleClass",null);_.p([_.I({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],GH);
_.a(GH,"ytd-compact-video-renderer",function(){if(lXx!==void 0)return lXx;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return lXx=q},{mode:_.Am("kevlar_poly_si_batch_j067")?1:2});var Kel;_.xP("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var YO=function(){return _.C.apply(this,arguments)||this};
_.Y(YO,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],YO.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],YO.prototype,"data",void 0);_.p([_.I({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],YO);
_.a(YO,"ytd-counterfactual-renderer",function(){if(Kel!==void 0)return Kel;var q=document.createElement("template");_.Q(q,"\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");q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Kel=q},{mode:1});var DbF;var QK=function(){var q=_.C.apply(this,arguments)||this;q.hidden=!1;return q};
_.Y(QK,_.C);QK.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.tz().resolve(_.rO).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
QK.prototype.computeHidden=function(q){return!!q};
_.$H.Object.defineProperties(QK.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}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],QK.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.P("design:type",Object)],QK.prototype,"hidden",void 0);_.p([_.l("data.label"),_.P("design:type",String),_.P("design:paramtypes",[])],QK.prototype,"label",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],QK.prototype,"value",null);
_.p([_.I({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],QK);
_.a(QK,"ytd-dropdown-item-renderer",function(){if(DbF!==void 0)return DbF;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return DbF=q},{mode:1});var hRF;var kLl;var OQ=function(){return _.C.apply(this,arguments)||this};
_.Y(OQ,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],OQ.prototype,"data",void 0);_.p([_.U({computed:"getSimpleString(data.label)"}),_.P("design:type",String)],OQ.prototype,"label",void 0);_.p([_.I({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],OQ);
_.a(OQ,"ytd-navigation-dropdown-item-renderer",function(){if(kLl!==void 0)return kLl;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return kLl=q},{mode:1});var wF=function(){var q=_.C.apply(this,arguments)||this;q.disabled=!1;q.value="";q.noLabelFloat=!1;q.noUnderline=!1;q.usePrimaryColor=!1;q.hasBackground=!1;q.verticalAlign="top";q.autosize=!1;q.minAutosizeWidth=100;q.autosizeFont="14px Roboto";return q};
_.Y(wF,_.C);_.g=wF.prototype;_.g.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"}}}};
_.g.open=function(){this.inputEl.open()};
_.g.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.g.dataChanged=function(){this.reset()};
_.g.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("value-changed",this.value))};
_.g.stopPropagation=function(q){q.stopPropagation()};
_.g.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var q=this.canvas.getContext("2d");q&&(q.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(q.measureText(this.inputEl.value).width)+24)+"px")}};
_.g.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var q=0,N=this.data.entries.length;q<N;q++){var b=this.data.entries[q],y;for(y in b)if(b.hasOwnProperty(y)){var J=b[y];if("isSelected"in J&&J.isSelected)return"stringValue"in J?J.stringValue||"":"int32Value"in J?J.int32Value||0:0}}return null};
_.g.updateValueFromBinding=function(q){this.value=q.detail.value};
_.$H.Object.defineProperties(wF.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 q=0,N=this.data.entries.length;q<N;q++){var b=this.data.entries[q],y;for(y in b)if(b.hasOwnProperty(y)){var J=b[y];if("isSelected"in J&&J.isSelected&&"label"in J)return this.ytRendererBehavior.getSimpleString(J.label)}}return null}}});
wF.prototype.autoSizeLabel=wF.prototype.autoSizeLabel;wF.prototype.stopPropagation=wF.prototype.stopPropagation;wF.prototype.valueChangedForBinding=wF.prototype.valueChangedForBinding;wF.prototype.dataChanged=wF.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],wF.prototype,"ytRendererStamperBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],wF.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],wF.prototype,"disabled",void 0);_.p([_.U(),_.P("design:type",Object)],wF.prototype,"value",void 0);_.p([_.U(),_.P("design:type",Object)],wF.prototype,"noLabelFloat",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],wF.prototype,"noUnderline",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],wF.prototype,"theme",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],wF.prototype,"usePrimaryColor",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],wF.prototype,"hasBackground",void 0);_.p([_.U(),_.P("design:type",Object)],wF.prototype,"verticalAlign",void 0);_.p([_.U(),_.P("design:type",Object)],wF.prototype,"autosize",void 0);_.p([_.U(),_.P("design:type",Object)],wF.prototype,"minAutosizeWidth",void 0);_.p([_.U(),_.P("design:type",Object)],wF.prototype,"autosizeFont",void 0);
_.p([_.dq("#entries"),_.P("design:type",Object)],wF.prototype,"entries",void 0);_.p([_.dq("#input"),_.P("design:type",Object)],wF.prototype,"inputEl",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wF.prototype,"dataChanged",null);_.p([_.$9("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wF.prototype,"valueChangedForBinding",null);
_.p([_.ZP("iron-overlay-opened"),_.ZP("iron-overlay-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],wF.prototype,"stopPropagation",null);_.p([_.ZP("iron-select"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wF.prototype,"autoSizeLabel",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],wF.prototype,"label",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],wF);
_.a(wF,"ytd-dropdown-renderer",function(){if(hRF!==void 0)return hRF;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return hRF=q},{mode:1});var UbM;var iN=function(){var q=_.C.apply(this,arguments)||this;q.isConstrainedList=!1;return q};
_.Y(iN,_.C);iN.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"}}}};
iN.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
iN.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
iN.prototype.computeViewAllHidden=function(q,N){return q||!N.viewAllEndpoint};
iN.prototype.fillRestIfNoShowMore=iN.prototype.fillRestIfNoShowMore;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],iN.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],iN.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.V1.YtLazyListBehavior),_.P("design:type",Object)],iN.prototype,"ytLazyListBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],iN.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],iN.prototype,"isConstrainedList",void 0);_.p([_.$9("data","canShowMore"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iN.prototype,"fillRestIfNoShowMore",null);_.p([_.I({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],iN);
_.a(iN,"ytd-expanded-shelf-contents-renderer",function(){if(UbM!==void 0)return UbM;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return UbM=q},{mode:_.Am("kevlar_poly_si_batch_j025")?1:2});var fXE;var lN=function(){return _.C.apply(this,arguments)||this};
_.Y(lN,_.C);lN.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}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],lN.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],lN.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],lN.prototype,"data",void 0);_.p([_.I({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],lN);
_.a(lN,"ytd-feed-channel-filter-header-renderer",function(){if(fXE!==void 0)return fXE;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return fXE=q},{mode:1});var C2q;var IXq;var TBT;var Kd=function(){return _.C.apply(this,arguments)||this};
_.Y(Kd,_.C);_.g=Kd.prototype;_.g.onClick=function(q){var N,b=(N=this.data)==null?void 0:N.sectionEndpoint;!_.Su(_.n9(q),this.hostElement,["A".toString()])&&b&&_.e2(this.hostElement,"yt-navigate",{endpoint:b})};
_.g.computeHasSectionEndpoint=function(q){return(q==null?void 0:q.sectionEndpoint)!==void 0};
_.g.computeShowHeaderAsLink=function(q){return(q==null?void 0:q.header)!==void 0&&(q==null?void 0:q.sectionEndpoint)!==void 0};
_.g.computeShowSubheaderAsLink=function(q){return(q==null?void 0:q.subheader)!==void 0&&(q==null?void 0:q.sectionEndpoint)!==void 0&&(q==null?void 0:q.header)===void 0};
_.g.getHeaderAsLinkClass=function(q){var N=[],b;(q==null?0:(b=q.headerIcon)==null?0:b.iconType)&&N.push("header-link-active");return N.join(" ")};
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Kd.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Kd.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Kd.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Kd.prototype,"data",void 0);
_.p([_.U({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Kd.prototype,"hasSectionEndpoint",void 0);_.p([_.U({computed:"computeShowHeaderAsLink(data)"}),_.P("design:type",Boolean)],Kd.prototype,"showHeaderAsLink",void 0);_.p([_.U({computed:"computeShowSubheaderAsLink(data)"}),_.P("design:type",Boolean)],Kd.prototype,"showSubheaderAsLink",void 0);_.p([_.I({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Kd);
_.a(Kd,"ytd-medical-panel-section-renderer",function(){if(TBT!==void 0)return TBT;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return TBT=q},{mode:1});var D_=function(){var q=_.C.apply(this,arguments)||this;q.isExpanded=!1;q.roundedContainer=!0;q.skipRoundingTop=!1;q.toggleExpandableSection=function(){q.isExpanded=!q.isExpanded};
return q};
_.Y(D_,_.C);
D_.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]]"}}}}}};
D_.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
D_.prototype.dataChanged=D_.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],D_.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],D_.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],D_.prototype,"isExpanded",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],D_.prototype,"roundedContainer",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],D_.prototype,"skipRoundingTop",void 0);_.p([_.U(),_.P("design:type",Object)],D_.prototype,"toggleExpandableSection",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],D_.prototype,"dataChanged",null);_.p([_.I({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],D_);
_.a(D_,"ytd-medical-panel-content-renderer",function(){if(IXq!==void 0)return IXq;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return IXq=q},{mode:1});_.xP("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var hK=function(){var q=_.C.apply(this,arguments)||this;q.roundedContainer=!0;q.extractOverlay=!1;q.amsterdamEnabled=_.x("enable_desktop_amsterdam_info_panels");q.hasTitle=!1;q.linkIcon="OPEN_IN_NEW";q.isDismissed=!1;return q};
_.Y(hK,_.C);hK.prototype.onOverlayConditionsChange=function(){var q=_.ee(this.hostElement).querySelector("ytd-info-panel-content-renderer");q&&(q.set("extractOverlay",this.extractOverlay),q.set("roundedContainer",this.roundedContainer))};
hK.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"}}}};
hK.prototype.computeHasTitle=function(q){return!(q==null||!q.title)};
hK.prototype.onClick=function(q){var N,b=(N=this.data)==null?void 0:N.headerEndpoint;!_.Su(_.n9(q),this.hostElement,["BUTTON".toString()])&&b&&this.ytComponentBehavior.resolveCommand(b)};
_.$H.Object.defineProperties(hK.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 q;return((q=this.data)==null?void 0:q.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.data)==null?void 0:q.disableBottomDivider)||!((N=this.data)==null?0:N.title)}}});
hK.prototype.onOverlayConditionsChange=hK.prototype.onOverlayConditionsChange;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],hK.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],hK.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],hK.prototype,"ytdReduxBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],hK.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],hK.prototype,"roundedContainer",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],hK.prototype,"extractOverlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],hK.prototype,"amsterdamEnabled",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.P("design:type",Object)],hK.prototype,"hasTitle",void 0);
_.p([_.U({type:_.x("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.l("data.background"),_.P("design:type",Object),_.P("design:paramtypes",[])],hK.prototype,"background",null);_.p([_.U({type:_.x("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.l("data.titleStyle"),_.P("design:type",Object),_.P("design:paramtypes",[])],hK.prototype,"titleStyle",null);
_.p([_.U({type:_.x("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.l("data.titleStyle"),_.P("design:type",Object),_.P("design:paramtypes",[])],hK.prototype,"showLinkIcon",null);_.p([_.U(),_.P("design:type",String)],hK.prototype,"linkIcon",void 0);_.p([_.U({type:_.x("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],hK.prototype,"hideDivider",null);
_.p([_.U({selectorArgs:["data.dismissStateEntityKey"],selector:function(q,N){q=_.Ji(q.entities,"dismissState",N);return(q==null?void 0:q.isDismissed)||(q==null?void 0:q.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(q==null?void 0:q.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.P("design:type",Object)],hK.prototype,"isDismissed",void 0);_.p([_.FY("roundedContainer","extractOverlay"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hK.prototype,"onOverlayConditionsChange",null);_.p([_.I({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],hK);
_.a(hK,"ytd-info-panel-container-renderer",function(){if(C2q!==void 0)return C2q;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return C2q=q},{mode:1});var sBT;_.xP("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var kO=function(){return _.C.apply(this,arguments)||this};
_.Y(kO,_.C);kO.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
kO.prototype.computeStyle=function(q){return q?q:""};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],kO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],kO.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.P("design:type",String)],kO.prototype,"titleStyle",void 0);
_.p([_.I({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],kO);
_.oU()(kO,"ytd-item-section-header-renderer",function(){if(sBT===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);sBT=q}q=sBT;return q},{allowedProps:["data"],
mode:1});var nSx;var aXl,S4l=function(){return aXl!==void 0?aXl:aXl=document.createElement("template")};
document.head.appendChild(S4l().content);var Weq;_.UQ=new _.Jw("VOTING_ANIMATION_CONTROLLER_TOKEN");var pMT=_.n(function(q){var N=q.data;var b=_.dI("div"),y=_.dI("div");q=_.Z(_.QS("VOTE_STATUS_NONE",void 0,"YPH5mf"));var J=q.next().value,E=q.next().value,F=_.dj(V1n,function(){var X;return(X=N())==null?void 0:X.entityKey}),R=_.x("web_enable_voting_animation")||_.x("enable_music_web_cairo_voting_animation");
_.WC(function(){var X;((X=N().initialState)==null?0:X.status)&&E(N().initialState.status)});
var c=function(){var X,V,G=(V=(X=N().initialState)==null?void 0:X.votes)!=null?V:0,w;X=(w=N().initialState)==null?void 0:w.status;return X==="VOTE_STATUS_UPVOTED"?G-1:X==="VOTE_STATUS_DOWNVOTED"?G+1:G},z=function(){return J()==="VOTE_STATUS_UPVOTED"?c()+1:J()==="VOTE_STATUS_DOWNVOTED"?c()-1:c()},m=function(X){var V=X?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
E(V);var G=z(),w=_.tz().resolve(_.$f(_.UQ)),D=F();D&&(X&&(D==null?0:D.upvoteDefaultButtonOnTap)?_.Kt(D.upvoteDefaultButtonOnTap,{form:{element:b.value},disableClickTracking:!0}):(D==null?0:D.upvoteToggledButtonOnTap)&&_.Kt(D.upvoteToggledButtonOnTap,{form:{element:b.value},disableClickTracking:!0}));var k;X=(k=D==null?void 0:D.enableOptimisticReordering)!=null?k:N().enableOptimisticReordering;R&&w&&N().itemId&&X&&Lej(w,N().itemId,G,V)},r=function(X){var V=X?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
E(V);var G=z(),w=_.tz().resolve(_.$f(_.UQ)),D=F();D&&(X&&(D==null?0:D.downvoteDefaultButtonOnTap)?_.Kt(D.downvoteDefaultButtonOnTap,{form:{element:y.value},disableClickTracking:!0}):(D==null?0:D.downvoteToggledButtonOnTap)&&_.Kt(D.downvoteToggledButtonOnTap,{form:{element:y.value},disableClickTracking:!0}));var k;X=(k=D==null?void 0:D.enableOptimisticReordering)!=null?k:N().enableOptimisticReordering;R&&w&&N().itemId&&X&&Lej(w,N().itemId,G,V)};
q={};q=_.NO("ytVotingViewModelVoteCount",(q.ytVotingViewModelVoteCountDisabled=function(){return N().isDisabled},q));
return _.u("voting-view-model",{class:"ytVotingViewModelHost"},_.u("div",{el:b},_.u(_.zS,{data:function(){var X=_.v(N().upvoteButton,_.de);return{toggleButtonViewModel:Object.assign({},X,{isToggled:J()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(X){return _.u(_.LV,{data:X.data,
onToggle:m})}})),_.u("div",{class:q},function(){var X,V,G;
return J()==="VOTE_STATUS_UPVOTED"?(X=N().initialState)==null?void 0:X.compactVotesUpvoted:J()==="VOTE_STATUS_DOWNVOTED"?(V=N().initialState)==null?void 0:V.compactVotesDownvoted:(G=N().initialState)==null?void 0:G.compactVotes}),_.u("div",{el:y},_.u(_.zS,{data:function(){var X=_.v(N().downvoteButton,_.de);
return{toggleButtonViewModel:Object.assign({},X,{isToggled:J()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(X){return _.u(_.LV,{data:X.data,
onToggle:r})}})))},"bd");_.P$(_.n(function(q){var N=q.data;return _.u("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.u("div",{class:_.NO("ytEngagementBarViewModelEngagementBarWrapper",q.className)},_.u(_.zS,{data:function(){return N().actions}},{votingViewModel:pMT})))},"cd"),"engagement-bar-view-model",{props:{data:_.F5,
className:_.F5}});var fd=function(){var q=_.C.apply(this,arguments)||this;q.playlistVotingAnimationEnabled=_.x("web_enable_voting_animation");q.downloadProgress=0;q.transferState="TRANSFER_STATE_UNKNOWN";q.downloadState="DOWNLOAD_STATE_UNKNOWN";q.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";q.offlineVideoPolicyExpirationTimestamp=0;return q};
_.Y(fd,_.C);_.g=fd.prototype;_.g.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"}}}};
_.g.canReorderChanged=function(){this.persistentDragHandle=_.x("kevlar_playlist_drag_handles")&&this.canReorder};
_.g.onDrag=function(){if(this.thumbnail){var q=_.ee(this.thumbnail).querySelector("yt-image");q&&(q.shouldRenderLazy=!1)}};
_.g.onMenuOverlayChanged=function(q,N){this.menuOpened=N};
_.g.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.g.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.g.onContentsTap=function(q){var N,b=(N=this.data)==null?void 0:N.serviceEndpoints;if(b&&b.length===1&&_.v(b[0],jdn)&&!_.Su(_.n9(q),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(b[0]);else{var y;(N=(y=this.data)==null?void 0:y.navigationEndpoint)&&_.x("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?P21(_.tz().resolve(_.l9),N):(_.sM().playlistSuggestionsShelfActivation=
!0,_.MqJ(_.tz().resolve(_.l9),N)):N&&!_.Su(_.n9(q),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.x("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.e2(this.hostElement,"yt-navigate",{endpoint:N}):this.ytComponentBehavior.resolveCommand(N))}};
_.g.computeStyle=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.g.computeThumbnailWidth=function(q){return q==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.g.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=UJe(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))}};
_.g.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.g.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.g.dataChanged=function(){if(this.data){var q,N,b,y=((q=this.downloadRenderData)==null?void 0:q.badges)&&((N=this.downloadRenderData)==null?void 0:N.badges)!==((b=this.data)==null?void 0:b.badges),J,E,F;q=((J=this.downloadRenderData)==null?void 0:J.thumbnailOverlays)&&((E=this.downloadRenderData)==null?void 0:E.thumbnailOverlays)!==((F=this.data)==null?void 0:F.thumbnailOverlays);(!this.downloadRenderData||y||q)&&this.downloadStateChanged()}};
_.g.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var q,N,b=(q=this.data.menu)==null?void 0:(N=q.menuRenderer)==null?void 0:N.items;if(b)for(q=_.Z(b),N=q.next();!N.done;N=q.next())if(N=N.value,b=void 0,_.v((b=N.menuServiceItemRenderer)==null?void 0:b.serviceEndpoint,_.qz)){var y=b=void 0,J=void 0;N=(b=N)==null?void 0:(y=b.menuServiceItemRenderer)==null?void 0:(J=y.serviceEndpoint)==null?void 0:J.playlistEditEndpoint;J=y=void 0;if(b=(y=N)==null?void 0:(J=y.actions)==null?void 0:
J[0])y=void 0,b.setVideoId=(y=this.data)==null?void 0:y.setVideoId;J=y=b=void 0;if(N=(b=N)==null?void 0:(y=b.clientActions)==null?void 0:(J=y[0])==null?void 0:J.playlistRemoveVideosAction)b=void 0,N.setVideoIds=[(b=this.data)==null?void 0:b.setVideoId]}}};
_.$H.Object.defineProperties(fd.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
fd.prototype.setVideoIdChanged=fd.prototype.setVideoIdChanged;fd.prototype.dataChanged=fd.prototype.dataChanged;fd.prototype.downloadStateChanged=fd.prototype.downloadStateChanged;fd.prototype.onMenuOverlayChanged=fd.prototype.onMenuOverlayChanged;fd.prototype.canReorderChanged=fd.prototype.canReorderChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],fd.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],fd.prototype,"ytdReduxBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],fd.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Fi),_.P("design:type",Object)],fd.prototype,"ytdLockupBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],fd.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],fd.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],fd.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],fd.prototype,"canReorder",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],fd.prototype,"menuOpened",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],fd.prototype,"handleIsHovered",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],fd.prototype,"persistentDragHandle",void 0);_.p([_.U(),_.P("design:type",Object)],fd.prototype,"downloadRenderData",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],fd.prototype,"styleType",void 0);_.p([_.U({computed:"computeThumbnailWidth(data.style)"}),_.P("design:type",Number)],fd.prototype,"thumbnailWidth",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],fd.prototype,"isDownloads",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],fd.prototype,"playlistVotingAnimationEnabled",void 0);
_.p([_.U({selector:KD,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],fd.prototype,"downloadProgress",void 0);_.p([_.U(),_.P("design:type",Number)],fd.prototype,"relativeDateReference",void 0);_.p([_.U({selector:_.ig,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],fd.prototype,"transferState",void 0);_.p([_.U({selector:N7d,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],fd.prototype,"downloadState",void 0);
_.p([_.U({selector:sRn,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],fd.prototype,"offlinePolicyAction",void 0);_.p([_.U({selector:nYJ,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],fd.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.p([_.U({selector:Sun,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],fd.prototype,"entityInfo",void 0);_.p([_.U({selector:_.QU}),_.P("design:type",Boolean)],fd.prototype,"miniplayerIsActive",void 0);
_.p([_.l("data"),_.P("design:type",String),_.P("design:paramtypes",[])],fd.prototype,"playlistVideoId",null);_.p([_.dq("#thumbnail"),_.P("design:type",Object)],fd.prototype,"thumbnail",void 0);_.p([_.$9("canReorder"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fd.prototype,"canReorderChanged",null);
_.p([_.ZP("yt-menu-overlay-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Boolean]),_.P("design:returntype")],fd.prototype,"onMenuOverlayChanged",null);_.p([_.$9("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fd.prototype,"downloadStateChanged",null);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fd.prototype,"dataChanged",null);_.p([_.$9("data.setVideoId"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fd.prototype,"setVideoIdChanged",null);_.p([_.I({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],fd);
_.a(fd,"ytd-playlist-video-renderer",function(){if(Weq!==void 0)return Weq;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);q.content.insertBefore(S4l().content.cloneNode(!0),q.content.firstChild);return Weq=q},{mode:1});var oS1;var Cd=function(){return _.C.apply(this,arguments)||this};
_.Y(Cd,_.C);_.p([_.U(),_.P("design:type",Object)],Cd.prototype,"data",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Cd.prototype,"rendererBehavior",void 0);_.p([_.I({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],Cd);
_.a(Cd,"ytd-premium-browse-footer-renderer",function(){if(oS1!==void 0)return oS1;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return oS1=q},{mode:1});var ALl;var IL=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return q};
_.Y(IL,_.C);_.g=IL.prototype;_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.g.handleDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.g.computeHeaderLogoThumbnail=function(q,N){if(q)return N?q.darkLogo:q.lightLogo};
_.g.computeHeaderLogoHeight=function(q,N){var b,y,J;return(q=(b=this.computeHeaderLogoThumbnail(q,N))==null?void 0:(y=b.thumbnails)==null?void 0:(J=y[0])==null?void 0:J.height)&&q%31===0?"31":"24"};
_.g.computeHeaderLogoMarginBottom=function(q,N){return this.computeHeaderLogoHeight(q,N)==="24"?"0":"-7"};
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],IL.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],IL.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],IL.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],IL.prototype,"isDarkTheme",void 0);_.p([_.U({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.P("design:type",Object)],IL.prototype,"themeLogo",void 0);
_.p([_.U({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.P("design:type",String)],IL.prototype,"logoHeight",void 0);_.p([_.U({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.P("design:type",String)],IL.prototype,"logoMarginBottom",void 0);_.p([_.I({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],IL);
_.a(IL,"ytd-primetime-promo-header-renderer",function(){if(ALl!==void 0)return ALl;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return ALl=q},{mode:1});var eRR;_.TH=_.n(function(q){var N=q.className;var b=q.data;var y=q.isOverlay;var J=q.maxLinesOverride;var E=q.useMediumText;var F=function(){return b().alwaysShowTruncationText},R=function(){return b().truncationText},c=function(){return E!==void 0&&E()?"medium":"small"},z=function(){return y!==void 0&&y()?"overlay":"default"},m=function(){var G,w;
return(w=(G=_.v(b().rendererContext,_.$A))==null?void 0:G.label)!=null?w:""};
q=_.Z(_.QS(!1,void 0,"llBUm"));var r=q.next().value,X=q.next().value;q=_.y0(function(){b().expandOnTap&&X(!r());return!1});
var V={};return _.u("yt-description-preview-view-model",{el:_.ai(_.QR(function(){return b().rendererContext})),
class:_.NO("ytDescriptionPreviewViewModelHost",N,(V.ytDescriptionPreviewViewModelClickable=function(){var G;return!((G=_.v(b().rendererContext,_.O$))==null||!G.onTap)},V.ytDescriptionPreviewViewModelIsOverlay=y,V)),
"on:click":q},_.u(_.t,{cond:function(){return b().description},
then:function(G){return _.u(_.t,{cond:r,then:function(){var w={};return _.u("div",{class:_.NO("ytDescriptionPreviewViewModelDescription",(w.ytDescriptionPreviewViewModelDescriptionMediumText=E,w))},_.u(_.Zc,{text:G}))},
else:function(){return _.u(HHo,{text:G,alwaysShowTruncationText:F,truncationText:R,maxLines:function(){var w;return(w=J==null?void 0:J())!=null?w:b().maxLines},
textStyle:z,accessibilityLabel:m,textSize:c})}})}}))},"dd");
_.TH.idomCompat=!0;var Hj4=_.n(function(q){var N=_.y0(function(J){var E;(E=q.onClick)==null||E.call(q,J)}),b={},y={};
return _.u("yt-shelf-header-layout",{class:_.NO("yt-shelf-header-layout",(b["yt-shelf-header-layout--disable-horizontal-padding"]=q.disableHorizontalPadding,b["yt-shelf-header-layout--disable-vertical-padding"]=q.disableVerticalPadding,b["yt-shelf-header-layout--responsive"]=q.useResponsiveLayout,b["yt-shelf-header-layout--narrow"]=function(){var J,E;return((J=q.useResponsiveLayout)==null?void 0:J.call(q))&&((E=q.forceSmallLayout)==null?void 0:E.call(q))},b["yt-shelf-header-layout--is-overlay"]=q.isOverlay,
b["yt-shelf-header-layout--tappable"]=q.isInteractive,b["yt-shelf-header-layout--optional-medium-layout-padding"]=q.useUpdatedPadding,b)),
"on:click":N,tabindex:function(){var J;return((J=q.isInteractive)==null?0:J.call(q))?0:void 0}},_.u("div",{class:"yt-shelf-header-layout__header-row"},_.u(_.t,{cond:q.leadingIcon,
then:function(J){return _.u("div",{class:"yt-shelf-header-layout__leading-icon"},_.u(_.FQ,{icon:J}))},
else:function(){return _.u(_.t,{cond:q.hasLeadingImage,then:function(){var J,E={};return _.u("div",{class:_.NO("yt-shelf-header-layout__leading-image",(E["yt-shelf-header-layout__leading-image--circular-image"]=q.circularImage,E))},(J=q.leadingImage)==null?void 0:J.call(q))}})}}),_.u("div",{class:"yt-shelf-header-layout__label-container"},_.u(_.t,{cond:q.hasSuperlabel,
then:function(){var J;return _.u("div",{class:"yt-shelf-header-layout__superlabel"},(J=q.superlabel)==null?void 0:J.call(q))}}),_.u("div",{class:"yt-shelf-header-layout__title-row"},_.u(BB1,{text:q.title,
className:_.NO("yt-shelf-header-layout__title",(y["yt-shelf-header-layout__title--small-title"]=q.forceSmallLayout,y)),tagLevel:q.tagLevel}),_.u(_.t,{cond:q.hasDetail,then:function(){var J;return _.u("div",{class:"yt-shelf-header-layout__detail"},(J=q.detail)==null?void 0:J.call(q))}})),_.u(_.t,{cond:q.hasSublabel,
then:function(){var J;return _.u("div",{class:"yt-shelf-header-layout__sublabel"},(J=q.sublabel)==null?void 0:J.call(q))}})),_.u(_.t,{cond:q.hasTrailingActions,
then:function(){var J;return _.u("div",{class:"yt-shelf-header-layout__trailing-actions"},(J=q.trailingActions)==null?void 0:J.call(q))}})),_.u(_.t,{cond:q.hasBottomAccessory,
then:function(){var J;return _.u("div",{class:"yt-shelf-header-layout__bottom-accessory"},(J=q.bottomAccessory)==null?void 0:J.call(q))}}))},"ed");
Hj4.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var BB1=_.n(function(q){var N=q.text;var b=q.className;var y=q.tagLevel;return _.u(_.sw,null,_.u(_.CI,{when:function(){return(y==null?void 0:y())===0}},function(){return _.u("h2",{class:b},N())}),_.u(_.CI,{when:function(){return(y==null?void 0:y())===1}},function(){return _.u("h3",{class:b},N())}),_.u(_.CI,{when:function(){return(y==null?void 0:y())===2}},function(){return _.u("h4",{class:b},N())}),_.u(_.Iu,null,function(){return _.u("h2",{class:b},N())}))},"fd");var bnE,qto,N8R;_.sQ=_.n(function(q){var N=q.className;var b=q.data;var y=q.disableHorizontalPadding;var J=q.disableVerticalPadding;var E=q.forceSmallLayout;var F=q.useResponsiveLayout;var R=q.isOverlay;q=q.useUpdatedPadding;return _.u("yt-section-header-view-model",{class:_.NO("ytSectionHeaderViewModelHost",N),style:_.ZU({"background-color":function(){return Rm(b().backgroundColor)?_.Y8(Rm(b().backgroundColor)):void 0}})},_.u(Hj4,{hasDetail:!1,
title:function(){return _.u(_.Zc,{text:function(){return b().headline}})},
hasTitle:!0,sublabel:function(){return _.u(qto,{data:b})},
hasSublabel:function(){return!!b().sublabel||!!b().bottomBadge},
superlabel:function(){return _.u(N8R,{data:b})},
hasSuperlabel:function(){return!!b().superlabel||!!b().topBadge},
leadingImage:function(){return _.u(bnE,{leadingAccessory:function(){return b().leadingAccessory}})},
hasLeadingImage:function(){return!!b().leadingAccessory},
trailingActions:function(){return _.u(_.zS,{data:function(){return b().trailingActions}},{flexibleActionsViewModel:_.NW})},
hasTrailingActions:function(){return!!b().trailingActions},
disableHorizontalPadding:function(){return(y==null?void 0:y())||b().disableHorizontalPadding},
disableVerticalPadding:J,forceSmallLayout:E,useResponsiveLayout:F,isOverlay:R,isInteractive:function(){return!!_.GS(b().rendererContext)},
onClick:function(c){if(_.Ye(b().rendererContext)){var z=_.GS(b().rendererContext);z&&_.wa(z,{form:{element:c.target,event:c}})}},
bottomAccessory:function(){return _.u(_.zS,{data:function(){return b().bottomAccessory}},{descriptionPreviewViewModel:function(c){return _.u(_.TH,{data:c.data,
useMediumText:!0})}})},
hasBottomAccessory:function(){return!!b().bottomAccessory},
useUpdatedPadding:q}))},"gd");
bnE=_.n(function(q){var N=q.leadingAccessory;return _.u(_.rV,null,_.u(_.t,{cond:function(){var b;return(b=N().image)!=null?b:_.ke(N().themedImage)},
then:function(b){return _.u(_.s_,{data:b,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.u(_.t,{cond:function(){return _.v(N().avatar,_.wj)},
then:function(b){return _.u(_.HF,{data:b})}}))},"hd");
qto=_.n(function(q){var N=q.data;return _.u(_.rV,null,_.u(_.t,{cond:function(){return _.v(N().bottomBadge,d84)},
then:function(b){var y={};return _.u(_.XT,{data:b,class:_.NO((y.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!b()&&!!N().sublabel},y))})}}),_.u(_.t,{cond:function(){return N().sublabel},
then:function(b){return _.u(_.Zc,{text:b})}}))},"id");
N8R=_.n(function(q){var N=q.data;return _.u(_.rV,null,_.u(_.t,{cond:function(){return _.v(N().topBadge,d84)},
then:function(b){var y={};return _.u(_.XT,{data:b,class:_.NO((y.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!b()&&!!N().superlabel},y))})}}),_.u(_.t,{cond:function(){return N().superlabel},
then:function(b){return _.u(_.Zc,{text:b})}}))},"jd");_.P$(_.sQ,"yt-section-header-view-model",{props:{data:_.F5,className:_.F5,disableHorizontalPadding:_.F5,disableVerticalPadding:_.F5,forceSmallLayout:_.F5,useResponsiveLayout:_.F5,isOverlay:_.F5,useUpdatedPadding:_.F5}});_.xP("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var nd=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return q};
_.Y(nd,_.C);_.g=nd.prototype;_.g.attached=function(){this.requestElementsPerRow()};
_.g.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"}}}};
_.g.onDataChange=function(){var q=this;_.ut(this,function(){q.updateItemVisibility()})};
_.g.onUpdateElementsPerRowAction=function(q){q&&this.elementsPerRow!==q&&(this.elementsPerRow=q,this.updateItemVisibility())};
_.g.updateItemVisibility=function(){var q=this;this.data&&this.data.panels&&_.ee(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(N,b){N.hidden=b>q.elementsPerRow-1})};
_.g.requestElementsPerRow=function(){_.e2(this.hostElement,"yt-request-elements-per-row")};
nd.prototype.onDataChange=nd.prototype.onDataChange;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],nd.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],nd.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],nd.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],nd.prototype,"actionHandlerBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],nd.prototype,"data",void 0);_.p([_.U({value:3}),_.P("design:type",Number)],nd.prototype,"elementsPerRow",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nd.prototype,"onDataChange",null);_.p([_.I({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],nd);
_.a(nd,"ytd-primetime-promo-renderer",function(){if(eRR!==void 0)return eRR;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return eRR=q},{mode:1});var y_x;var aL=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return q};
_.Y(aL,_.C);aL.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
aL.prototype.handleButtonRefreshAction=function(q){if(q=_.v(q,Dtl))this.set("data.button",q.membershipButton),this.notifyPath("data.button")};
_.$H.Object.defineProperties(aL.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.data)==null?void 0:(N=q.avatars)==null?void 0:N.slice(0,8))||[]}}});
_.p([_.U(),_.P("design:type",Object)],aL.prototype,"data",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],aL.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],aL.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],aL.prototype,"rendererBehavior",void 0);_.p([_.l("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],aL.prototype,"avatars",null);
_.p([_.I({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],aL);
_.a(aL,"ytd-recognition-shelf-renderer",function(){if(y_x!==void 0)return y_x;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return y_x=q},{mode:1});var J_E;var Ego;var Sw=function(){var q=_.C.apply(this,arguments)||this;q.modernButtons=_.x("web_modern_buttons");return q};
_.Y(Sw,_.C);_.g=Sw.prototype;
_.g.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]]"}}}}}};
_.g.dataChanged=function(){this.collapsed=!0};
_.g.computeVisibleItems=function(q,N){return q!==void 0&&q.items?N?q.items.slice(0,this.data.collapsedItemCount):q.items:[]};
_.g.computeHideShowMore=function(q,N,b){return q>=N||!b};
_.g.computeHideShowAll=function(q,N,b){return!(q&&N)||b};
_.g.onMoreClick=function(){this.collapsed=!1};
_.$H.Object.defineProperties(Sw.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.x("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.jA("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.x("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
Sw.prototype.dataChanged=Sw.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Sw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Sw.prototype,"data",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],Sw.prototype,"isSearch",void 0);
_.p([_.U({computed:"computeVisibleItems(data,collapsed)"}),_.P("design:type",Array)],Sw.prototype,"visibleItems",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],Sw.prototype,"collapsed",void 0);_.p([_.U({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.P("design:type",Boolean)],Sw.prototype,"hideShowMore",void 0);
_.p([_.U({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.P("design:type",Boolean)],Sw.prototype,"hideShowAll",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Sw.prototype,"modernButtons",void 0);_.p([_.l("isSearch"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Sw.prototype,"typographyBump",null);
_.p([_.l("isSearch"),_.P("design:type",Object),_.P("design:paramtypes",[])],Sw.prototype,"lockupExperiments",null);_.p([_.l("isSearch"),_.P("design:type",String),_.P("design:paramtypes",[])],Sw.prototype,"thumbnailWidth",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Sw.prototype,"dataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],Sw);
_.a(Sw,"ytd-vertical-list-renderer",function(){if(Ego!==void 0)return Ego;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Ego=q},{mode:1});var ggq=_.Tt(["#"]);_.xP("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var WJ=function(){var q=_.C.apply(this,arguments)||this;q.isConstrainedList=!1;return q};
_.Y(WJ,_.C);_.g=WJ.prototype;
_.g.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"}}}};
_.g.computeThumbnailStyle=function(q){return q||""};
_.g.computePlaceAnnotationUnderTitle=function(){var q;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((q=this.data)==null?void 0:q.thumbnailStyle)||"")};
_.g.computeHrefWithDefault=function(q){return this.ytComponentBehavior.computeHref_(q)||_.Ftd(ggq)};
_.g.computeIsPromoShelf=function(q){var N;return(q=q==null?void 0:(N=q[0])==null?void 0:N.metadataBadgeRenderer)?q.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.g.computePlaceBadgeBesideTitle=function(q){var N;return(q==null?0:(N=q[0])==null?0:N.metadataBadgeRenderer)?!this.computeIsPromoShelf(q):!1};
_.g.computeMenuIcon=function(q){return this.computeIsPromoShelf(q)?"yt-icons:more_vert":"yt-icons:more"};
_.g.onDataChange=function(){var q,N;((q=this.data)==null?0:(N=q.content)==null?0:N.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.g.onLockupRequested=function(q){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&q.detail&&q.detail.videoIds){for(var N=this.data.content.gridRenderer.items,b=new Set,y=_.Z(q.detail.videoIds),J=y.next();!J.done;J=y.next())b.add(J.value);q.detail.returnValue=N.filter(function(E){return E.gridVideoRenderer&&E.gridVideoRenderer.videoId&&b.has(E.gridVideoRenderer.videoId)}).map(function(E){return E.gridVideoRenderer})}};
_.g.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
WJ.prototype.onLockupRequested=WJ.prototype.onLockupRequested;WJ.prototype.onDataChange=WJ.prototype.onDataChange;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],WJ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],WJ.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],WJ.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.SQ),_.P("design:type",Object)],WJ.prototype,"ironResizableBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],WJ.prototype,"data",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],WJ.prototype,"isSearch",void 0);_.p([_.U(),_.P("design:type",Object)],WJ.prototype,"isConstrainedList",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.x("kevlar_fluid_dismiss")}}),
_.P("design:type",Boolean)],WJ.prototype,"enableFluidDismiss",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.P("design:type",String)],WJ.prototype,"thumbnailStyle",void 0);_.p([_.U({computed:"computeMenuIcon(data.badges)"}),_.P("design:type",String)],WJ.prototype,"menuIcon",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.P("design:type",Boolean)],WJ.prototype,"featuredPromo",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WJ.prototype,"onDataChange",null);_.p([_.ZP("yt-lockup-requested"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],WJ.prototype,"onLockupRequested",null);_.p([_.I({is:"ytd-shelf-renderer",disableElementRegistration:!0})],WJ);
_.a(WJ,"ytd-shelf-renderer",function(){if(J_E!==void 0)return J_E;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return J_E=q},{mode:1});var Znv;var Ld=function(){return _.C.apply(this,arguments)||this};
_.Y(Ld,_.C);Ld.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.$H.Object.defineProperties(Ld.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Ld.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ld.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ld.prototype,"data",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Ld.prototype,"isPlaylist",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Ld.prototype,"isClipList",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Ld.prototype,"isPlaylistPageWithFilters",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ld.prototype,"hasTitle",null);_.p([_.U(),_.l("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ld.prototype,"isRightAligned",null);
_.p([_.I({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Ld);
_.a(Ld,"ytd-sort-filter-header-renderer",function(){if(Znv!==void 0)return Znv;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Znv=q},{mode:1});var FGT;var pd=function(){var q=_.C.apply(this,arguments)||this;q.enableRightArrowHidden=_.x("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return q};
_.Y(pd,_.C);pd.prototype.attached=function(){var q=this;this.enableRightArrowHidden&&(this.JSC$16622_throttledOnResize=new _.El(function(){var N;(N=q.ytdHorizontalListBehavior)==null||N.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var N;
(N=q.JSC$16622_throttledOnResize)==null||N.fire()}),this.resizeObserver.observe(this.hostElement))};
pd.prototype.detached=function(){if(this.enableRightArrowHidden){var q;(q=this.resizeObserver)==null||q.disconnect();var N;(N=this.JSC$16622_throttledOnResize)==null||N.dispose()}};
pd.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]]"}}}}}};
pd.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.$H.Object.defineProperties(pd.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.x("enable_creator_details_shelf_m2")){var q=[],N;((N=this.data)==null?0:N.creatorVideosButton)&&q.push(this.data.creatorVideosButton);var b;((b=this.data)==null?0:b.creatorAboutButton)&&q.push(this.data.creatorAboutButton);N=_.Z(this.data.creatorCustomUrlButtons||[]);for(b=N.next();!b.done;b=N.next())q.push(b.value);return q}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.x("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],pd.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],pd.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.jm.YtdHorizontalListBehavior),_.P("design:type",Object)],pd.prototype,"ytdHorizontalListBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],pd.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],pd.prototype,"engagementPanel",void 0);
_.p([_.U(),_.P("design:type",Object)],pd.prototype,"enableRightArrowHidden",void 0);_.p([_.l("enableRightArrowHidden","atEnd"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],pd.prototype,"hideRightArrow",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],pd.prototype,"creatorCustomUrlButtons",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data","creatorCustomUrlButtons"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],pd.prototype,"showCreatorCustomUrlButtons",null);_.p([_.l("showCreatorCustomUrlButtons"),_.P("design:type",Number),_.P("design:paramtypes",[])],pd.prototype,"channelAvatarSize",null);_.p([_.I({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],pd);
_.a(pd,"ytd-video-description-infocards-section-renderer",function(){if(FGT!==void 0)return FGT;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return FGT=q},{mode:_.Am("kevlar_poly_si_batch_j067")?1:2});var R91;var PJ=function(){return _.C.apply(this,arguments)||this};
_.Y(PJ,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],PJ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],PJ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],PJ.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.infoIcon)"}),_.P("design:type",Object)],PJ.prototype,"infoIcon",void 0);_.p([_.I({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],PJ);
_.a(PJ,"ytd-eom-settings-disclaimer-renderer",function(){if(R91!==void 0)return R91;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return R91=q},{mode:1});var dxv;var Ml=function(){return _.C.apply(this,arguments)||this};
_.Y(Ml,_.C);_.$H.Object.defineProperties(Ml.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.suppressPaddingDisclaimer)}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ml.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Ml.prototype,"componentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Ml.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ml.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ml.prototype,"suppressPaddingDisclaimer",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],Ml);
_.a(Ml,"ytd-product-list-header-renderer",function(){if(dxv!==void 0)return dxv;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return dxv=q},{mode:1});var c_R;var oL=function(){return _.C.apply(this,arguments)||this};
_.Y(oL,_.C);oL.prototype.computeThumbnailStyle=function(q){if(q&&(q=_.GM(q)))return"background-color:"+q+";"};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],oL.prototype,"rendererBehaviors",void 0);_.p([_.U(),_.P("design:type",Object)],oL.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],oL);
_.a(oL,"ytd-hashtag-tile-renderer",function(){if(c_R!==void 0)return c_R;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return c_R=q},{mode:1});var uMR;var AK=function(){return _.C.apply(this,arguments)||this};
_.Y(AK,_.C);AK.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}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],AK.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],AK.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],AK);
_.a(AK,"ytd-sponsorships-alert-renderer",function(){if(uMR!==void 0)return uMR;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return uMR=q},{mode:1});var z91;var ew=function(){return _.C.apply(this,arguments)||this};
_.Y(ew,_.C);ew.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.$H.Object.defineProperties(ew.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.x("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.x("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.p([_.O(_.N8),_.P("design:type",Object)],ew.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.Fi),_.P("design:type",Object)],ew.prototype,"ytdLockupBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ew.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);_.p([_.U({selector:_.wJ}),_.P("design:type",Object)],ew.prototype,"isGridViewEnabled",void 0);
_.p([_.l("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ew.prototype,"watchFeedBigThumbs",null);_.p([_.l("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.P("design:type",String),_.P("design:paramtypes",[])],ew.prototype,"thumbnailWidth",null);_.p([_.U(),_.P("design:type",Object)],ew.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],ew);
_.a(ew,"ytd-compact-movie-renderer",function(){if(z91!==void 0)return z91;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return z91=q},{mode:1});var $x1;var tH1;var mxF=_.M7("HTML_DIR")==="rtl",BJ=function(){var q=_.C.apply(this,arguments)||this;q.engagementPanel=!1;q.maxLines=2;q.expandButtonOffset=0;q.showExpandButton=!1;q.isTruncated=!1;q.isExpanded=!1;q.currentSnippetType=2;q.alwaysShowExpandButton=!1;q.JSC$16639_lastWidth=NaN;q.observer=null;q.left=0;q.right=0;q.mid=0;q.longestSnippetLength=0;q.isFinalSnippet=!1;q.isFirstMutation=!1;q.isResetMutation=!1;q.OVERFLOW_THRESHOLD=5;return q};
_.Y(BJ,_.C);_.g=BJ.prototype;_.g.onClick=function(q){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Su(_.n9(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var N;if((N=window.getSelection())==null||!N.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.g.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.g.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.g.updateTextOnSnippetTypeChange=function(){_.x("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.g.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.g.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.M6(new _.IO("AttributedSnippet is empty when the description is not empty",this.text))};
_.g.mutationCallback=function(){if(this.observer!=null){var q=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var N=Math.floor(q*this.maxLines/8);this.setSnippetText(this.text,N);N!==0||this.attributedTextIsEmpty()||_.M6(new _.IO("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;q=q*this.maxLines/8;this.left=0;var b;this.right=Math.min(q*2,(b=(N=this.simpleText)==null?void 0:N.length)!=null?b: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)}}};
_.g.mutationObserve=function(q){var N=this;this.observer||(this.observer=new MutationObserver(function(){N.mutationCallback()}));
this.observer.observe(q,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.g.attached=function(){var q=this;_.ut(this,function(){q.resize()})};
_.g.isExpandedChanged=function(){_.e2(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.g.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)};
_.g.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var q="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((mxF?"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",q);this.snippetContainer.style.setProperty("mask-image",
q)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(mxF?"right":"left",this.expandButtonOffset+"px")};
_.g.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.g.setSnippetText=function(q,N){q||(q={});if(_.Ct(q)){var b=U_(q,N);b.attachmentRuns||b.commandRuns||b.decorationRuns||b.styleRuns||b.alignment||b.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:U_(q,N),headerRuns:U5A(N,this.headerRuns)},this.currentSnippetType=0):_.M6(new _.IO("Tried to set snippet text when HTML element was null",q)):(this.plainSnippetText.textContent=hn(q.content||"",N),this.currentSnippetType=2)}else{a:{b=jGA(q,N);if(b.runs){b=_.Z(b.runs);for(var y=
b.next();!y.done;y=b.next())if(y=y.value,y.bold||y.deemphasize||y.italics||y.strikethrough||y.textColor||y.navigationEndpoint||_.v(y,GT)){b=!0;break a}}b=!1}b?this.formattedSnippetText?(this.formattedSnippetText.text=jGA(q,N),this.currentSnippetType=1):_.M6(new _.IO("Tried to set snippet text when HTML element was null",q)):(this.plainSnippetText.textContent=hn(_.ao(q),N),this.currentSnippetType=2)}};
_.g.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.g.attributedTextIsEmpty=function(){var q=this.text;if(!_.Ct(q))return!0;var N;return((N=q.content)==null?void 0:N.length)===0?!0:!1};
_.g.resize=function(q){if(this.snippetText){if(q===void 0?0:q)this.JSC$16639_lastWidth=NaN;var N=this.hostElement.offsetWidth;if(N!==this.JSC$16639_lastWidth&&!this.isExpanded)if(this.JSC$16639_lastWidth=N,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;q=0;var b,y;N=Math.min(N*this.maxLines/8*2,(y=(b=this.simpleText)==null?void 0:b.length)!=null?y:0)-1;for(b=0;q<=N;)y=Math.floor(q+(N-q)/2),this.setSnippetText(this.text,y),this.isOverflowing()?N=y-1:(q=y+1,b=y);this.setSnippetText(this.text,b);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.g.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.g.onExpandClick=function(){var q=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.x("inline_expander_reset_focus_killswitch")||_.ut(this,function(){var N;((N=_.tz().resolve(_.$f(_.X5)))==null?0:N.isKeyBoardInUse())&&_.Zy(q.hostElement)});
_.e2(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.g.onCollapseClick=function(){this.collapse();_.e2(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.g.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.g.computeExpandButtonOffset=function(){var q=this.expandSizer;return q?mxF?q.offsetParent?q.offsetParent.offsetWidth-q.offsetWidth-q.offsetLeft:0:q.offsetLeft:0};
_.$H.Object.defineProperties(BJ.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Ct(this.text)?this.text.content||"":_.ao(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 _.Ct(this.text)?!0:this.text&&_.x("web_replace_formatted_with_attributed_string")&&gWC(this.text)?(this.text=_.v$(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}}});
BJ.prototype.onTextChanged=BJ.prototype.onTextChanged;BJ.prototype.updateMaskAndExpandButtonOffset=BJ.prototype.updateMaskAndExpandButtonOffset;BJ.prototype.updateSnippetContainerMaxHeight=BJ.prototype.updateSnippetContainerMaxHeight;BJ.prototype.isExpandedChanged=BJ.prototype.isExpandedChanged;BJ.prototype.updateTextOnSnippetTypeChange=BJ.prototype.updateTextOnSnippetTypeChange;BJ.prototype.updateIsFormattedExpanded=BJ.prototype.updateIsFormattedExpanded;BJ.prototype.updateIsAttributedExpanded=BJ.prototype.updateIsAttributedExpanded;
BJ.prototype.onClick=BJ.prototype.onClick;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],BJ.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],BJ.prototype,"text",void 0);_.p([_.U(),_.P("design:type",Array)],BJ.prototype,"headerRuns",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],BJ.prototype,"engagementPanel",void 0);_.p([_.U(),_.P("design:type",Object)],BJ.prototype,"maxLines",void 0);
_.p([_.U(),_.P("design:type",String)],BJ.prototype,"expandLabel",void 0);_.p([_.U(),_.P("design:type",String)],BJ.prototype,"collapseLabel",void 0);_.p([_.U(),_.P("design:type",Object)],BJ.prototype,"expandCommand",void 0);_.p([_.U(),_.P("design:type",Object)],BJ.prototype,"expandButtonOffset",void 0);_.p([_.l("text"),_.P("design:type",String),_.P("design:paramtypes",[])],BJ.prototype,"simpleText",null);
_.p([_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],BJ.prototype,"onClick",null);_.p([_.l("text","isExpanded"),_.P("design:type",Object),_.P("design:paramtypes",[])],BJ.prototype,"expandedText",null);_.p([_.l("headerRuns","isExpanded"),_.P("design:type",Object),_.P("design:paramtypes",[])],BJ.prototype,"expandedHeaderRuns",null);
_.p([_.l("text"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],BJ.prototype,"hasAttributedStringText",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],BJ.prototype,"showExpandButton",void 0);_.p([_.l("collapseLabel","isExpanded"),_.P("design:type",Object),_.P("design:paramtypes",[])],BJ.prototype,"showCollapseButton",null);_.p([_.U(),_.P("design:type",Object)],BJ.prototype,"isTruncated",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],BJ.prototype,"isExpanded",void 0);_.p([_.U(),_.P("design:type",Boolean)],BJ.prototype,"isAttributedExpanded",void 0);_.p([_.FY("isExpanded","hasAttributedStringText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BJ.prototype,"updateIsAttributedExpanded",null);_.p([_.U(),_.P("design:type",Boolean)],BJ.prototype,"isFormattedExpanded",void 0);
_.p([_.FY("isExpanded","hasAttributedStringText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BJ.prototype,"updateIsFormattedExpanded",null);_.p([_.U(),_.P("design:type",Number)],BJ.prototype,"currentSnippetType",void 0);_.p([_.l("currentSnippetType"),_.P("design:type",Object),_.P("design:paramtypes",[])],BJ.prototype,"useAttributedSnippet",null);
_.p([_.l("currentSnippetType"),_.P("design:type",Object),_.P("design:paramtypes",[])],BJ.prototype,"useFormattedSnippet",null);_.p([_.l("currentSnippetType"),_.P("design:type",Object),_.P("design:paramtypes",[])],BJ.prototype,"usePlainSnippet",null);_.p([_.U(),_.P("design:type",Object)],BJ.prototype,"alwaysShowExpandButton",void 0);_.p([_.FY("currentSnippetType"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BJ.prototype,"updateTextOnSnippetTypeChange",null);
_.p([_.U(),_.P("design:type",Object)],BJ.prototype,"attributedSnippetText",void 0);_.p([_.dq("#snippet"),_.P("design:type",HTMLElement)],BJ.prototype,"snippetContainer",void 0);_.p([_.dq("#snippet-text"),_.P("design:type",HTMLElement)],BJ.prototype,"snippetText",void 0);_.p([_.dq("#plain-snippet-text"),_.P("design:type",HTMLElement)],BJ.prototype,"plainSnippetText",void 0);_.p([_.dq("#formatted-snippet-text"),_.P("design:type",Object)],BJ.prototype,"formattedSnippetText",void 0);
_.p([_.dq("#attributed-snippet-text"),_.P("design:type",Object)],BJ.prototype,"attributedSnippetTextEl",void 0);_.p([_.dq("#expand"),_.P("design:type",HTMLElement)],BJ.prototype,"expandButton",void 0);_.p([_.dq("#expand-sizer"),_.P("design:type",HTMLElement)],BJ.prototype,"expandSizer",void 0);_.p([_.$9("isExpanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BJ.prototype,"isExpandedChanged",null);
_.p([_.FY("isExpanded","maxLines"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BJ.prototype,"updateSnippetContainerMaxHeight",null);_.p([_.FY("isTruncated","showExpandButton","expandButtonOffset"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BJ.prototype,"updateMaskAndExpandButtonOffset",null);
_.p([_.$9("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BJ.prototype,"onTextChanged",null);_.p([_.I({is:"ytd-text-inline-expander",disableElementRegistration:!0})],BJ);
_.a(BJ,"ytd-text-inline-expander",function(){if(tH1===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);tH1=q}q=tH1;return q},{mode:2});var HJ=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return q};
_.Y(HJ,_.C);HJ.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
HJ.prototype.handleUpdateDescriptionAction=function(q){if(q=_.v(q,_.ntE))if(q.attributedDescription)this.set("data.attributedDescriptionBodyText",q.attributedDescription);else if(q.description){var N;((N=this.data)==null?0:N.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.v$(q.description)):this.set("data.descriptionBodyText",q.description)}};
_.$H.Object.defineProperties(HJ.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var q,N;return!((q=this.data)==null||!q.attributedDescriptionBodyText)||!((N=this.data)==null||!N.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null?0:q.collapsedLineCount){var N;return(N=this.data)==null?void 0:N.collapsedLineCount}q=_.VX("web_watch_description_collapsed_default_lines",12);if(_.x("ww_desc_line_page_size_ks"))return q;N=Math.round(_.cP().height*_.VX("web_watch_description_screen_height_percentage",.5)/20);return Math.max(N,q)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return(b=(q=this.data)==null?void 0:q.descriptionBodyText)!=null?b:(N=this.data)==null?void 0:N.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.sourceAttributions}}});
HJ.prototype.panelContentVisibleChanged=HJ.prototype.panelContentVisibleChanged;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],HJ.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],HJ.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],HJ.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Boolean)],HJ.prototype,"panelContentVisible",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],HJ.prototype,"engagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],HJ.prototype,"shortsPanel",void 0);_.p([_.dq("#inline-expander"),_.P("design:type",Object)],HJ.prototype,"inlineExpander",void 0);
_.p([_.FY("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HJ.prototype,"panelContentVisibleChanged",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],HJ.prototype,"hasDescriptionText",null);_.p([_.l("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],HJ.prototype,"collapsedLines",null);
_.p([_.l("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.P("design:type",Object),_.P("design:paramtypes",[])],HJ.prototype,"descriptionText",null);_.p([_.l("data","data.headerRuns"),_.P("design:type",Object),_.P("design:paramtypes",[])],HJ.prototype,"headerRuns",null);_.p([_.l("data","data.sourceAttributions"),_.P("design:type",Object),_.P("design:paramtypes",[])],HJ.prototype,"sourceAttributions",null);
_.p([_.I({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],HJ);
_.a(HJ,"ytd-expandable-video-description-body-renderer",function(){if($x1!==void 0)return $x1;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return $x1=q},{mode:_.Am("kevlar_poly_si_batch_j028")?1:2});var r_F;var Xoo=_.n(function(q){var N=q.data;return _.u("factoid-renderer",{class:"ytwFactoidRendererHost"},_.u("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return N().accessibilityText}},_.u("span",{class:"ytwFactoidRendererValue"},_.u(_.Zc,{text:function(){return N().value}})),_.u("span",{class:"ytwFactoidRendererLabel"},_.u(_.Zc,{text:function(){return N().label}}))))},"kd");_.P$(Xoo,"factoid-renderer",{props:{data:_.F5}});_.P$(_.n(function(q){var N=q.data;return _.u("upload-time-factoid-renderer",null,_.u(_.zS,{data:function(){return N().factoid}},{factoidRenderer:Xoo}))},"ld"),"upload-time-factoid-renderer",{props:{data:_.W$}});_.P$(_.n(function(q){var N=q.data;return _.u("view-count-factoid-renderer",null,_.u(_.zS,{data:function(){return N().factoid}},{factoidRenderer:Xoo}))},"md"),"view-count-factoid-renderer",{props:{data:_.W$}});var qk=function(){var q=_.C.apply(this,arguments)||this;q.shortsPanel=!1;q.engagementPanel=!1;q.watchWhileSdp=_.x("shorts_desktop_watch_while_sdp");return q};
_.Y(qk,_.C);qk.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"}}}}};
_.$H.Object.defineProperties(qk.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var q;return(q=this.data)==null?void 0:q.channel}}});
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],qk.prototype,"componentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],qk.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],qk.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],qk.prototype,"shortsPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],qk.prototype,"engagementPanel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],qk.prototype,"watchWhileSdp",void 0);_.p([_.l("shortsPanel","engagementPanel","data.channel"),_.P("design:type",Object),_.P("design:paramtypes",[])],qk.prototype,"showChannelInfo",null);_.p([_.I({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],qk);
_.a(qk,"ytd-video-description-header-renderer",function(){if(r_F!==void 0)return r_F;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return r_F=q},{mode:1});var VHT;var Nk=function(){return _.C.apply(this,arguments)||this};
_.Y(Nk,_.C);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Nk.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Nk.prototype,"ytRendererBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Nk.prototype,"noPadding",void 0);_.p([_.U(),_.P("design:type",Object)],Nk.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],Nk);
_.a(Nk,"ytd-list-item-view-model",function(){if(VHT!==void 0)return VHT;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return VHT=q},{mode:1});var jTM;var xxF;var vgx;var Gx1;var bF=function(){var q=_.C.apply(this,arguments)||this;q.adaptiveFullWidth=!1;q.modernButtons=_.x("web_modern_buttons");q.buttonOverrides={style:"call-to-action",type:"filled"};q.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return q};
_.Y(bF,_.C);bF.prototype.handleSetTimestamp_=function(q){this.data&&this.data.shortUrl&&(_.ee(this.hostElement).querySelector("#share-url").value=q.isSet?_.WE(this.data.shortUrl,"t",q.timestamp):this.data.shortUrl)};
bF.prototype.handleSignalActionCopyShareUrl_=function(q,N){(_.x("killswitch_copy_link_target_check")||_.ee(this.hostElement).querySelector("#copy-button")===N)&&this.copyUrlToClipboard()};
bF.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.ee(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
bF.prototype.computeStyle_=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],bF.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],bF.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.P("design:type",String)],bF.prototype,"rendererStyle",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],bF.prototype,"adaptiveFullWidth",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],bF.prototype,"modernButtons",void 0);_.p([_.U(),_.P("design:type",Object)],bF.prototype,"buttonOverrides",void 0);_.p([_.Ok({is:"yt-copy-link-renderer",disableElementRegistration:!0})],bF);
_.a(bF,"yt-copy-link-renderer",function(){if(Gx1===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;vgx===void 0&&(vgx=document.createElement("template"));var y=vgx;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Gx1=q}q=Gx1;return q},{mode:2});_.xP("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var y9=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return q};
_.Y(y9,_.C);_.g=y9.prototype;_.g.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.g.attached=function(){this.keyboardFocused=!1};
_.g.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var q=_.tz().resolve(_.$f(_.X5));q&&(this.keyboardFocused=q.isKeyBoardInUse())}};
_.g.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.g.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}};
_.g.onChange_=function(){if(this.data){var q=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;q&&this.ytComponentBehavior.resolveCommand(q);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.g.handleUpdateToggleAction_=function(q){(q=_.v(q,JGT))&&this.data&&q.targetId==this.data.targetId&&this.set("data.toggled",q.toggled)};
_.g.toBoolean_=function(q){return!!q};
_.g.reset=function(){};
_.g.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("data-changed",this.data))};
_.g.updateDataToggledFromBinding=function(q){this.set("data.toggled",q.detail.value)};
y9.prototype.dataChangedForBinding=y9.prototype.dataChangedForBinding;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],y9.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],y9.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],y9.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],y9.prototype,"data",void 0);_.p([_.U({computed:"computeDescription_(data.*)"}),_.P("design:type",Object)],y9.prototype,"description_",void 0);_.p([_.U({value:function(){return!!_.tz().resolve(_.$f(_.X5))&&_.x("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.P("design:type",Boolean)],y9.prototype,"useKeyboardFocused",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],y9.prototype,"keyboardFocused",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],y9.prototype,"dataChangedForBinding",null);_.p([_.Ok({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],y9);
_.a(y9,"yt-toggle-form-field-renderer",function(){if(xxF===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;jTM===void 0&&(jTM=document.createElement("template"));var y=jTM;b.call(N,y.content.cloneNode(!0),q.content.firstChild);xxF=q}q=xxF;return q},{mode:2});var Ytx;var QT1;var Jq=function(){var q=_.C.apply(this,arguments)||this;q.isDarkTheme=!1;q.isSearch=!1;q.noTopMargin=_.x("kevlar_watch_no_top_margin");q.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 q};
_.Y(Jq,_.C);_.g=Jq.prototype;_.g.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}}}}}};
_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.g.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.g.dataChanged=function(){var q=this.getSelectedIndex();if(q>0)this.selected=q;else{this.selected=0;var N,b;(N=this.ytScrollableChipCloudBehavior)==null||(b=N.reset)==null||b.call(N)}};
_.g.getSelectedIndex=function(){var q;if((q=this.data)==null||!q.chips)return-1;q=-1;for(var N,b=0;b<((N=this.data)==null?void 0:N.chips.length);b++){var y=void 0,J=void 0;if((y=this.data)==null?0:(J=y.chips[b].chipCloudChipRenderer)==null?0:J.isSelected){q=b;break}}return q};
_.g.onResize=function(){var q=this.ytScrollableChipCloudBehavior;_.ut(q,q.setContainerWidthDiff);q=this.ytScrollableChipCloudBehavior;_.ut(q,q.setButtonsState)};
_.g.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.g.handleRelatedChipCommand=function(q,N){q=this.JSC$16666_chipsSelector.indexOf(N);q!==-1&&this.JSC$16666_chipsSelector.selectIndex(q)};
_.g.handleChipCloudChipSelectAction=function(q){q=this.JSC$16666_chipsSelector.indexOf(q);q>-1&&this.JSC$16666_chipsSelector.selectIndex(q)};
_.g.handleChipCloudChipDeselectAction=function(){var q=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16666_chipsSelector&&((q==null?0:q.continuationCommand)?_.qc(this.hostElement,[q]):(q==null?0:q.searchEndpoint)?this.ytComponentBehavior.resolveCommand(q):q&&_.Nc(this.hostElement,[q],this.hostElement),this.JSC$16666_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.g.updateSelectedFromBinding=function(q){this.selected=q.detail.value};
Jq.prototype.onResize=Jq.prototype.onResize;Jq.prototype.dataChanged=Jq.prototype.dataChanged;Jq.prototype.isSearchChanged=Jq.prototype.isSearchChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Jq.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Jq.prototype,"actionHandlerBehavior",void 0);
_.p([_.O(_.SQ),_.P("design:type",Object)],Jq.prototype,"ironResizableBehavior",void 0);_.p([_.O(),_.P("design:type",C8)],Jq.prototype,"ytScrollableChipCloudBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Jq.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Jq.prototype,"data",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],Jq.prototype,"selected",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Jq.prototype,"isDarkTheme",void 0);_.p([_.U({value:160}),_.P("design:type",Number)],Jq.prototype,"scrollDistance",void 0);_.p([_.U(),_.P("design:type",Object)],Jq.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Jq.prototype,"noTopMargin",void 0);_.p([_.dq("#chips"),_.P("design:type",Object)],Jq.prototype,"JSC$16666_chipsSelector",void 0);
_.p([_.FY("isSearch"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jq.prototype,"isSearchChanged",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jq.prototype,"dataChanged",null);_.p([_.ZP("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jq.prototype,"onResize",null);_.p([_.Ok({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Jq);
_.a(Jq,"yt-chip-cloud-renderer",function(){if(QT1===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;Ytx===void 0&&(Ytx=document.createElement("template"));var y=Ytx;b.call(N,y.content.cloneNode(!0),q.content.firstChild);QT1=q}q=QT1;return q},{mode:2});var On1,wox=function(){return On1!==void 0?On1:On1=document.createElement("template")};
document.head.appendChild(wox().content);var inx;var lj1=document.head,KG1=lj1.appendChild,DxM;if(inx===void 0){var h9E=document.createElement("template");_.Q(h9E,"");h9E.content.insertBefore(wox().content.cloneNode(!0),h9E.content.firstChild);inx=h9E}DxM=inx;KG1.call(lj1,DxM.content);var kx1=_.n(function(q){var N=q.data;return _.u("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.u("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.u("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.u(_.t,{cond:function(){return _.ke(N().image)},
then:function(b){return _.u("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.u(_.s_,{data:b,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.u("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.u(_.Zc,{text:function(){return N().title}})),_.u("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.u(_.Zc,{text:function(){return N().subtitle}})))),_.u(_.t,{cond:function(){var b;
return(b=N())==null?void 0:b.hasBottomDivider},
then:function(){return _.u("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"nd");var UxF=_.n(function(q){var N=q.data;return _.u("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.u("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.u(_.zS,{data:function(){var b;return(b=N().offerPlanDetailsItem)!=null?b:[]}},{offerPlanDetailsItemViewModel:function(b){return _.u("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.u(kx1,{data:b.data}))}})),_.u("div",null,_.u(_.t,{cond:function(){return N().hasBottomDivider},
then:function(){return _.u("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.u("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.u("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.u("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.u("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"od");var fj1=_.n(function(q){var N=q.data;q=_.Z(_.QS(!1,void 0,"MrXxy"));var b=q.next().value,y=q.next().value,J=_.y0(function(){y(!b());return!1}),E=function(){var F;
return(F=N().offerPlanDetailsContainer)!=null?F:[]};
return _.u("lp-complex-offer-card-details-view-model",null,_.u("div",null,_.u(_.t,{cond:function(){return b()},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.u("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":J,"aria-expanded":b},_.u(_.Zc,{text:function(){return N().expandedTitle}})),_.u("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.u(_.zS,{data:E},{offerPlanDetailsContainerViewModel:function(F){return _.u("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.u(UxF,{data:F.data}))}})),_.u("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.u(_.Zc,{text:function(){return N().legalText}})))},
else:function(){return _.u("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":J,"aria-expanded":b},_.u(_.Zc,{text:function(){return N().collapsedTitle}}),_.u("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.u(_.FQ,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"pd");var CMT=_.n(function(q){var N=q.data;return _.u("lp-complex-offer-card-option-view-model",null,_.u("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.u(_.t,{cond:function(){return N().topDividerText},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.u("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.u("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.u("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.u(_.Zc,{text:function(){return N().topDividerText}}))))}}),_.u(_.t,{cond:function(){return N().description},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.u(_.Zc,{text:function(){return N().description}}))}}),_.u(_.t,{cond:function(){return N().planPricingPrimary},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.u(_.Zc,{text:function(){return N().planPricingPrimary}}))}}),_.u(_.t,{cond:function(){return N().planPricingSecondary},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.u(_.Zc,{text:function(){return N().planPricingSecondary}}))}}),_.u(_.t,{cond:function(){return N().primaryButton},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.u(_.zS,{data:function(){return N().primaryButton}},{buttonViewModel:function(b){return _.u(_.Ou,{data:b.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"qd");var Ij4=_.n(function(q){var N=q.data;var b=function(){var E;return((E=N())==null?void 0:E.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
q={};var y={},J={};return _.u("ytm-lp-complex-offer-card-view-model",null,_.u("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.u("div",{class:_.NO((q.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=b,q),"ytmLpComplexOfferCardViewModelCardContainer")},_.u(_.t,{cond:function(){var E;return(E=N())==null?void 0:E.bannerText},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.u("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.u(_.Zc,{text:function(){return N().bannerText}})))}}),_.u(_.t,{cond:function(){return _.ke(N().logo)},
then:function(E){var F={};return _.u("div",{class:_.NO((F.ytmLpComplexOfferCardViewModelLogoAlignLeft=b,F),"ytmLpComplexOfferCardViewModelLogo")},_.u(_.s_,{data:E,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.u("div",{class:_.NO((y.ytmLpComplexOfferCardViewModelTitleAlignLeft=b,y),"ytmLpComplexOfferCardViewModelTitle")},_.u(_.Zc,{text:function(){return N().title}})),_.u(_.t,{cond:function(){var E;
return(E=N())==null?void 0:E.subtitle},
then:function(){var E={};return _.u("div",{class:_.NO((E.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=b,E),"ytmLpComplexOfferCardViewModelSubtitle")},_.u(_.Zc,{text:function(){return N().subtitle}}))}}),_.u(_.t,{cond:function(){return N().planPricingPrimary},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.u(_.Zc,{text:function(){return N().planPricingPrimary}}))}}),_.u(_.t,{cond:function(){return N().planPricingSecondary},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.u(_.Zc,{text:function(){return N().planPricingSecondary}}))}}),_.u(_.t,{cond:function(){return N().purchaseButton},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.u(_.zS,{data:function(){return N().purchaseButton}},{buttonViewModel:function(E){return _.u(_.Ou,{data:E.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.u(_.t,{cond:function(){var E;
return(E=N())==null?void 0:E.offerOptions},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.u(_.zS,{data:function(){return N().offerOptions}},{lpComplexOfferCardOptionViewModel:CMT}))}}),_.u("div",{class:_.NO((J.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=b,J),"ytmLpComplexOfferCardViewModelLegalText")},_.u(_.Zc,{text:function(){return N().legalText}})),_.u(_.t,{cond:function(){var E;
return(E=N())==null?void 0:E.offerCardDetails},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.u(_.zS,{data:function(){return N().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:fj1}))}}))))},"rd");var T81=_.n(function(q){var N=q.data;var b=function(){var F;return((F=N())==null?void 0:F.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
q={};var y={},J={},E={};return _.u("ytm-lp-complex-offer-card-section-view-model",null,_.u("div",{class:_.NO("ytmLpComplexOfferCardSectionViewModelHost")},_.u("div",{class:_.NO((q.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=b,q),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.u("div",{class:_.NO((y.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=b,y),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.u("h2",{class:_.NO((J.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
b,J),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.u(_.Zc,{text:function(){return N().title}}))),_.u(_.t,{cond:function(){var F;
return(F=N())==null?void 0:F.subtitle},
then:function(){var F={},R={};return _.u("div",{class:_.NO((F.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=b,F),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.u("div",{class:_.NO((R.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=b,R),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.u(_.Zc,{text:function(){return N().subtitle}})))}}),_.u("div",{class:_.NO((E.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=b,E),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.u(_.zS,{data:function(){var F;
return(F=N().offerPlans)!=null?F:[]}},{lpComplexOfferCardViewModel:function(F){return _.u("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.u(Ij4,{data:F.data}))}})))))},"sd");var sTo=_.n(function(q){return _.u("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.u("div",{class:"ytLpCouponBannerViewModelIcon"},_.u(_.FQ,{icon:function(){return"price_tag"}})),_.u("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.u("div",{class:"ytLpCouponBannerViewModelContent"},_.u("div",{class:"ytLpCouponBannerViewModelHeading"},_.u(_.Zc,{text:function(){var N;
return(N=q.data())==null?void 0:N.title}})),_.u("div",{class:"ytLpCouponBannerViewModelBody"},_.u(_.Zc,{text:function(){var N;
return(N=q.data())==null?void 0:N.subtitle}})))))},"td");
sTo.idomCompat=!0;_.Em=lpE.getInstance();var ng1;ng1=_.n(function(q){return _.u("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":q.shouldAriaHideContent},_.u("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:q.questionId},_.u(_.Zc,{text:q.question})))},"ud");
_.ajJ=_.n(function(q){var N=q.data;var b=q.themeOverride;q=_.Z(_.QS(!1,void 0,"pNli2b"));var y=q.next().value,J=q.next().value;q=_.y0(function(){J(!y());return!1});
var E=function(){return y()?"EXPAND_LESS":"EXPAND_MORE"},F=("faq-container"+_.Cp(_.Em)).toString(),R="faq-question-and-answers-section-question"+_.Cp(_.Em),c={},z={};
return _.u("faq-entry-view-model",null,_.u("div",{class:_.NO("ytLpFaqEntryViewModelHost",(c.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return b==null?void 0:b().useDarkTheme},c))},_.u("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":q,role:"button","aria-expanded":y,"aria-labelledby":R.toString(),"tab-index":"0"},_.u(ng1,{question:function(){return N().question},
questionId:R,shouldAriaHideContent:!0}),_.u(_.t,{cond:function(){return y()!==void 0},
then:function(){return _.u("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.u(_.FQ,{icon:E,ariaHidden:!0}),_.u("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.u("div",{class:_.NO("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(z.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!y()},z))},_.u("div",{id:F},_.u(_.Tf,{each:function(){return N().answers||[]}},function(m){return _.u("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.u(_.Zc,
{text:m}))})))))},"vd");
_.ajJ.idomCompat=!0;var StJ=_.n(function(q){var N=q.data;var b=q.themeOverride;q={};return _.u("lp-faq-section-view-model",null,_.u("div",{class:_.NO("yt-lp-faq-section-view-model",(q["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return N().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},q["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(b==null||!b().useDarkTheme)},q))},_.u("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.u(_.t,{cond:function(){return N().header},
then:function(y){return _.u("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.u(_.Zc,{text:y}))}}),_.u("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.u(_.zS,{data:function(){return N().faqs}},{faqEntryViewModel:function(y){return _.u(_.ajJ,{data:y.data,
themeOverride:b})}})),_.u("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.u(_.Tf,{each:function(){return N().footers||[]}},function(y){return _.u(_.Zc,{text:y})})),_.u(_.t,{cond:function(){return N().legal},
then:function(y){return _.u("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.u(_.Zc,{text:y}))}}))))},"wd");
StJ.idomCompat=!0;var WG4=_.n(function(q){var N=q.data;var b=q.themeOverride;_.WC(function(){var F=N().gtmId;F&&_.az(F,_.M7("GL",""))});
var y={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var F,R,c;return(c=(F=N().logo)==null?void 0:(R=F.accessibilityData)==null?void 0:R.label)!=null?c:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},J=_.tz().resolve(_.$f(_.ft)),E=function(){return J&&J()||(b==null?void 0:b().useDarkTheme)};
return _.u("lp-header-section-view-model",null,_.u("div",{class:function(){var F=N().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",R=N().marginType==="LP_SECTION_MARGIN_TYPE_TOP",c=b==null?void 0:b().useDarkTheme,z=["lp-header-section-view-model"];F&&z.push("lp-header-section-view-model--ptc-layout-type");R&&z.push("lp-header-section-view-model__lp-header-section-margin");c&&z.push("lp-header-section-view-model--premium-force-dark-mode");return z.join(" ")}},_.u(_.t,{cond:function(){return N().logo},
then:function(){return _.u("div",null,_.u(_.t,{cond:E,then:function(){return _.u(_.t,{cond:function(){var F;return(F=N().logo)==null?void 0:F.imageDark},
then:function(F){return _.u(_.s_,Object.assign({},{data:F},y))}})},
else:function(){return _.u(_.t,{cond:function(){var F;return(F=N().logo)==null?void 0:F.imageLight},
then:function(F){return _.u(_.s_,Object.assign({},{data:F},y))}})}}))}}),_.u(_.t,{cond:function(){return N().title},
then:function(F){return _.u("div",{class:"lp-header-section-view-model__lp-header-title"},_.u(_.Zc,{text:F}))}}),_.u("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.u(_.t,{cond:function(){return N().subtitles},
then:function(F){return _.u(_.Tf,{each:F},function(R){return _.u("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.u(_.Zc,{text:R}))})}})),_.u(_.t,{cond:function(){return N().additionalInfo},
then:function(F){return _.u("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.u(_.Zc,{text:F}))}}),_.u("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.u(_.t,{cond:function(){return N().primaryButton},
then:function(F){return _.u("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.u(_.zS,{data:F},{buttonViewModel:_.Ou}))}}),_.u(_.t,{cond:function(){return N().secondaryButton},
then:function(F){return _.u("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.u(_.zS,{data:F},{buttonViewModel:_.Ou}))}})),_.u(_.t,{cond:function(){return N().otherOffersInfo},
then:function(F){return _.u("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.u(_.Zc,{text:F}))}}),_.u("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.u(_.t,{cond:function(){return N().billingInfo},
then:function(F){return _.u(_.Tf,{each:F},function(R){return _.u("div",null,_.u(_.Zc,{text:R}))})}}))))},"xd");
WG4.idomCompat=!0;var LGq=_.n(function(q){return _.u("lp-header-upsell-banner-view-model",{class:_.NO("lpHeaderUpsellBannerViewModelHost",q.className,{})},_.u("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.u(_.FQ,{icon:function(){return"CAMPAIGN"}})),_.u("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.u("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.u("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.u("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.u(_.Zc,{text:function(){var N;
return(N=q.data())==null?void 0:N.description}})))),_.u(_.zS,{data:function(){var N;
return(N=q.data())==null?void 0:N.purchaseButton}},{buttonViewModel:function(N){return _.u(_.Ou,{data:N.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"yd");var pov=_.n(function(q){var N=q.data;var b=_.aU(q.themeOverride,{useDarkTheme:!1});q={};q=_.NO("ytmLpHeadlineSectionViewModelHost",(q.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return b().useDarkTheme},q));
return _.u("lp-headline-section-view-model",null,_.u("div",{class:q},_.u(_.t,{cond:function(){return N().title},
then:function(y){return _.u("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.u(_.Zc,{text:y}))}}),_.u(_.t,{cond:function(){return N().subtitle},
then:function(y){return _.u("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.u(_.Zc,{text:y}))}})))},"zd");var PMF=_.n(function(q){var N=q.data;var b=q.themeOverride;var y=_.tz().resolve(_.$f(_.ft)),J=function(){return y&&y()||(b==null?void 0:b().useDarkTheme)},E=function(){var z,m;
var r=J()?(z=N().textBackgroundImage)==null?void 0:z.imageDark:(m=N().textBackgroundImage)==null?void 0:m.imageLight;return JgJ((r==null?void 0:r.sources)||[])},F=function(){var z,m;
return J()?(z=N().featureImage)==null?void 0:z.imageDark:(m=N().featureImage)==null?void 0:m.imageLight},R=function(){return N().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},c=function(){var z,m;
return J()?(z=N().logo)==null?void 0:z.imageDark:(m=N().logo)==null?void 0:m.imageLight};
return _.u("ytm-lp-large-feature-section-view-model",null,_.u("div",{class:function(){var z=N().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",m=N().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",r=(N().index||0)%2===1,X=b==null?void 0:b().useDarkTheme,V=["yt-lp-large-feature-section-view-model"];z?V.push("yt-lp-large-feature-section-view-model--music-feature-type"):m?V.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):r||V.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
X&&V.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return V.join(" ")}},_.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.u(_.t,{cond:F,
then:function(){return _.u(_.s_,{data:function(){return F()},
alt:function(){var z,m,r;return(r=(z=N().featureImage)==null?void 0:(m=z.accessibilityData)==null?void 0:m.label)!=null?r:""},
contentMode:R})}})),_.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var z;return((z=E())==null?0:z.url)?"background-image: url("+_.pc(E().url)+");":""}},_.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.u(_.t,{cond:c,
then:function(){return _.u(_.s_,{data:function(){return c()},
alt:function(){var z,m,r;return(r=(z=N().logo)==null?void 0:(m=z.accessibilityData)==null?void 0:m.label)!=null?r:""},
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"})}}),_.u(_.t,{cond:function(){return N().eyebrowText},
then:function(){return _.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.u(_.Zc,{text:function(){return N().eyebrowText}}))}}),_.u(_.t,{cond:function(){return N().title},
then:function(){return _.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.u(_.Zc,{text:function(){return N().title}}))}}),_.u(_.t,{cond:function(){return N().subtitles},
then:function(){return _.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.u(_.Tf,{each:function(){return N().subtitles||[]}},function(z){return _.u(_.Zc,{text:z})}))}})))))},"Ad");
PMF.idomCompat=!0;var MHR=_.n(function(q){return _.u("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.u("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.u(_.FQ,{icon:function(){var N;return(N=q.data())==null?void 0:N.iconType},
className:function(){var N;switch((N=q.data())==null?void 0:N.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 N;return((N=q.data())==null?void 0:N.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.u("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.u(_.Zc,{text:function(){var N;
return(N=q.data())==null?void 0:N.text},
className:function(){var N;return((N=q.data())==null?void 0:N.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Bd");var ogE=_.n(function(q){q=_.Sl(q,{config:void 0,themeOverride:void 0});var N=q.data,b=q.config,y=q.themeOverride;q={};q=_.NO("ytmLpOfferCardOptionViewModelHost",(q.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var R;return(R=y())==null?void 0:R.useDarkTheme},q));
var J=_.y0(function(){var R,c;(R=b())==null||(c=R.handleRadioButtonClick)==null||c.call(R,N());return!1}),E=function(){var R;
return(R=b())==null?void 0:R.shouldDisplayRadioButton},F=function(){var R;
return(R=N().featureListItems)!=null?R:[]};
return _.u("ytm-lp-offer-card-option-view-model",null,_.u("div",{class:q,"on:click":_.y0(function(){if(E()){var R,c;(R=b())==null||(c=R.handleRadioButtonClick)==null||c.call(R,N())}return!1})},_.u(_.t,{cond:E,
then:function(){return _.u("div",null,_.u("input",{type:"radio","on:click":J,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var R;return!((R=b())==null||!R.isOptionSelected)}}))}}),_.u("div",null,_.u("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.u(_.Zc,{text:function(){return N().eyebrowText}})),_.u("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.u(_.Zc,{text:function(){return N().title}})),_.u("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.u(_.Zc,
{text:function(){return N().subtitle}})),_.u(_.t,{cond:function(){return F().length>0},
then:function(){return _.u("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.u(_.zS,{data:F},{lpFeatureListItemViewModel:MHR}))}}),_.u("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.u(_.Zc,{text:function(){return N().description}})))))},"Cd");
ogE.idomCompat=!0;var A_x=_.n(function(q){var N=q.data;var b=q.themeOverride;q=_.Z(_.gJ(function(){var E,F=(E=N().offerOptions)==null?void 0:E[0];return _.v(F,BT1)||{}}));
var y=q.next().value,J=q.next().value;q={};return _.u("ytm-lp-offer-card-view-model",null,_.u("div",{class:_.NO("ytmLpOfferCardViewModelHost",(q.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(b==null||!b().useDarkTheme)},q))},_.u("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.u(_.t,{cond:function(){return N().titleIconType},
then:function(){return _.u("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.u(_.FQ,{icon:function(){var E;return((E=N().titleIconType)==null?void 0:E.toString())||""}}))}}),_.u("div",{class:"ytmLpOfferCardViewModelTitleText"},_.u(_.Zc,{text:function(){return N().title}})),_.u(_.zS,{data:function(){return N().titleBadge}},{badgeViewModel:function(E){return _.u("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.u(_.XT,{data:E.data}))}})),_.u("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.u(_.zS,{data:function(){return N().offerOptions}},{lpOfferCardOptionViewModel:function(E){var F=E.data;
return _.u(_.rV,null,_.u("div",{class:"ytmLpOfferCardViewModelDivider"}),_.u(ogE,{data:F,config:function(){var R;return{shouldDisplayRadioButton:(N().offerOptions||[]).length>1,isOptionSelected:F().id===((R=y())==null?void 0:R.id),handleRadioButtonClick:function(c){return void J(c)}}},
themeOverride:b}))}})),_.u("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.u(_.zS,{data:function(){var E;
return(E=y())==null?void 0:E.purchaseButtonOverride}},{buttonViewModel:_.Ou}))))},"Dd");
A_x.idomCompat=!0;var e91=_.n(function(q){var N=q.data;var b=q.themeOverride;q={};q=_.NO("ytmLpOfferCardSectionViewModelHost",(q.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var y;return b==null?void 0:(y=b())==null?void 0:y.useDarkTheme},q));
return _.u("ytm-lp-offer-card-section-view-model",null,_.u("div",{class:q},_.u(_.t,{cond:function(){return N().title!==void 0},
then:function(){return _.u("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.u("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.u(_.Zc,{text:function(){return N().title}})),_.u(_.t,{cond:function(){return N().subtitle},
then:function(){return _.u("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.u(_.Zc,{text:function(){return N().subtitle}}))}}))}}),_.u("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.u(_.zS,{data:function(){return N().offerCards}},{lpOfferCardViewModel:function(y){return _.u("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.u(A_x,{data:y.data,
themeOverride:b}))}})),_.u(_.t,{cond:function(){return N().footer},
then:function(){return _.u("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.u(_.Zc,{text:function(){return N().footer}}))}})))},"Ed");var B8v=_.n(function(q){var N=q.data;return _.u("lp-offer-table-cell-content-view-model",null,_.u("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.u(_.sw,null,_.u(_.CI,{when:function(){return N().title}},function(){return _.u(_.Zc,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return N().title}})}),_.u(_.CI,{when:function(){return N().subTitle}},function(){return _.u(_.Zc,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return N().subTitle}})}),_.u(_.CI,{when:function(){return N().featureDescription}},function(){return _.u(_.Zc,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return N().featureDescription}})}),_.u(_.CI,{when:function(){return N().description}},function(){return _.u(_.Zc,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return N().description}})}),_.u(_.CI,{when:function(){return N().iconType}},function(){return _.u("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.u(_.FQ,{icon:function(){return N().iconType.toString()}}))}),_.u(_.CI,{when:function(){return N().purchaseButton}},function(){return _.u(_.zS,{data:function(){return N().purchaseButton}},{buttonViewModel:function(b){return _.u("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.u(_.Ou,
{data:b.data}))}})}),_.u(_.CI,{when:function(){return N().note}},function(){return _.u(_.Zc,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return N().note}})}),_.u(_.CI,{when:function(){return N().featureDetail}},function(){return _.u(_.Zc,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return N().featureDetail}})}),_.u(_.CI,{when:function(){return N().badge}},function(){return _.u(_.zS,{data:function(){return N().badge}},{badgeViewModel:_.XT})}))))},"Fd");
B8v.idomCompat=!0;var Hnx=_.n(function(q){var N=q.data;return _.u("lp-offer-table-cell-view-model",null,_.u("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(N().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;"}}},_.u(_.zS,{data:function(){return N().contents}},{lpOfferTableCellContentViewModel:B8v})))},
"Gd");
Hnx.idomCompat=!0;var qB4=_.n(function(q){var N=q.data;var b=q.lpTableIsFirstRow;var y=q.lpTableIsLastRow;var J=function(){return(b==null?0:b())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},E=function(){return(b==null?0:b())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(y==null?0:y())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.u("ytm-lp-offer-table-row-view-model",null,_.u("div",{class:"ytLpOfferTableRowViewModelHost"},_.u(_.zS,{data:function(){return N().rowHeaderCell}},{lpOfferTableCellViewModel:function(F){return _.u("div",{class:J},_.u(Hnx,{data:F.data}))}}),_.u(_.zS,{data:function(){return N().contentCells}},{lpOfferTableCellViewModel:function(F){return _.u("div",{class:E},_.u(Hnx,{data:F.data}))}})))},"Hd");
qB4.idomCompat=!0;var N_1=_.n(function(q){var N=q.data;var b=q.themeOverride;var y=_.tz().resolve(_.$f(_.ft)),J=function(){return _.v(N().logo,Vio)||{}};
q={};return _.u("ytm-lp-offer-table-section-view-model",null,_.u("div",{class:"ytLpOfferTableViewModelHost"},_.u(_.t,{cond:function(){var E,F;return y&&y()||(b==null?0:b().useDarkTheme)?(E=J())==null?void 0:E.imageDark:(F=J())==null?void 0:F.imageLight},
then:function(E){return _.u(_.s_,{data:E,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var F,R,c;return(c=(F=J())==null?void 0:(R=F.accessibilityData)==null?void 0:R.label)!=null?c:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.u("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.u(_.Zc,{text:function(){return N().title}})),_.u("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.u(_.Zc,{text:function(){return N().subtitle}})),_.u(_.t,{cond:function(){return N().disclaimers},
then:function(E){return _.u("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.u(_.Tf,{each:E},function(F){return _.u("div",null,_.u(_.Zc,{text:F}))}))}}),_.u("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.u(_.zS,{data:function(){return N().rows}},{lpOfferTableRowViewModel:function(E,F){return _.u(qB4,{data:E.data,
lpTableIsFirstRow:function(){return F()===0},
lpTableIsLastRow:function(){return F()===N().rows.length-1}})}})),_.u("div",{class:_.NO((q.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return N().hasFooterBackground},q))},_.u(_.t,{cond:function(){return N().footer},
then:function(){return _.u("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.u(_.Zc,{text:function(){return N().footer}}))}}),_.u(_.t,{cond:function(){return N().footerTitle},
then:function(){return _.u("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.u(_.Zc,{text:function(){return N().footerTitle}}))}}),_.u(_.t,{cond:function(){return N().footerDescription},
then:function(){return _.u("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.u(_.Zc,{text:function(){return N().footerDescription}}))}}),_.u(_.t,{cond:function(){return N().footerDescriptions},
then:function(E){return _.u("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.u(_.Tf,{each:E},function(F){return _.u("div",null,_.u(_.Zc,{text:F}))}))}}))))},"Id");
N_1.idomCompat=!0;var blR=_.n(function(q){var N=q.data;var b=q.themeOverride;var y=_.tz().resolve(_.$f(_.ft)),J=function(){var R;return b==null?void 0:(R=b())==null?void 0:R.useDarkTheme},E=function(){var R,c;
return y&&y()||J()?(R=N().image)==null?void 0:R.imageDark:(c=N().image)==null?void 0:c.imageLight};
q={};q=_.NO("ytmLpSmallFeatureSectionViewModelHost",(q.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=J,q));var F=function(){var R,c,z;return(z=(R=N().image)==null?void 0:(c=R.accessibilityData)==null?void 0:c.label)!=null?z:""};
return _.u("ytm-lp-small-feature-section-view-model",{class:q},_.u(_.t,{cond:function(){return E()&&!gID},
then:function(){return _.u("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.u(_.s_,{data:function(){return E()},
alt:F,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.u("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.u("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.u(_.t,{cond:function(){return N().title},
then:function(R){return _.u(_.Zc,{text:R})}})),_.u("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.u(_.Zc,{text:function(){return N().description}}))))},"Jd");
blR.idomCompat=!0;var yC1=_.n(function(q){var N=q.data;var b=q.themeOverride;q={};return _.u("ytm-lp-small-feature-section-group-view-model",null,_.u("div",{class:_.NO("ytmLpSmallFeatureSectionGroupViewModelHost",(q.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(b==null||!b().useDarkTheme)},q))},_.u("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.u(_.zS,{data:function(){return N().smallFeatures}},{lpSmallFeatureSectionViewModel:function(y){return _.u("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.u(blR,{data:y.data,
themeOverride:b}))}}))))},"Kd");
yC1.idomCompat=!0;_.P$(_.n(function(q){var N=q.data;var b=function(){return N().forcedTheme==="USER_INTERFACE_THEME_DARK"},y=function(){return N().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},J=function(){var F="",R,c;
var z=_.tz().resolve(_.$f(_.ft));z=b()||(z==null?0:z())?(R=N().themedImageViewModel)==null?void 0:R.imageDark:(c=N().themedImageViewModel)==null?void 0:c.imageLight;(R=JgJ((z==null?void 0:z.sources)||[]))&&R.url&&(F=y()?"background-image: linear-gradient(to bottom, transparent, "+(N().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.pc(R.url)+");":"background-image: url("+_.pc(R.url)+");");return F},E=function(){return{useDarkTheme:b()}};
q={};return _.u("yt-section-group-view-model",null,_.u("div",{class:_.NO("yt-lp-section-group-view-model",(q["yt-lp-section-group-view-model--premium-force-dark-mode"]=b,q["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return N().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},q))},_.u(_.t,{cond:function(){return J().length},
then:function(){var F={};return _.u("div",{class:_.NO("yt-lp-section-group-view-model__bg-image",(F["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=y,F)),style:J})}}),_.u("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.u(_.zS,{data:function(){return N().sections}},{lpHeaderUpsellBannerViewModel:function(F){return _.u(LGq,{data:F.data})},
lpFaqSectionViewModel:function(F){return _.u(StJ,{data:F.data,themeOverride:E})},
lpHeaderSectionViewModel:function(F){return _.u(WG4,{data:F.data,themeOverride:E})},
lpHeadlineSectionViewModel:function(F){return _.u(pov,{data:F.data,themeOverride:E})},
lpLargeFeatureSectionViewModel:function(F){return _.u(PMF,{data:F.data,themeOverride:E})},
lpOfferCardSectionViewModel:function(F){return _.u(e91,{data:F.data,themeOverride:E})},
lpComplexOfferCardSectionViewModel:function(F){return _.u(T81,{data:F.data})},
lpOfferTableSectionViewModel:function(F){return _.u(N_1,{data:F.data,themeOverride:E})},
lpSmallFeatureSectionGroupViewModel:function(F){return _.u(yC1,{data:F.data,themeOverride:E})},
lpCouponBannerViewModel:function(F){return _.u(sTo,{data:F.data})}}))))},"Ld"),"yt-section-group-view-model",{props:{data:_.F5}});_.JC1=_.n(function(q){var N=_.dj(xfd,function(){var F;return(F=q.data())==null?void 0:F.chipBarStateEntityKey}),b=function(){return q.data().disableDeselection},y=_.Z(_.gJ(function(){var F;
if(((F=N())==null?void 0:F.selectedIndex)!=void 0)return N().selectedIndex;var R,c;F=_.Z(((R=q.data())==null?void 0:(c=R.chips)==null?void 0:c.entries())||[]);for(R=F.next();!R.done;R=F.next()){R=_.Z(R.value);c=R.next().value;R=R.next().value;var z=void 0;if((z=_.v(R,_.RM))==null?0:z.selected)return c}return-1})),J=y.next().value,E=y.next().value;
return _.u("chip-bar-view-model",{class:_.NO("ytChipBarViewModelHost",q.className),role:"tablist"},_.u(_.zS,{data:function(){return q.data().chips}},{chipViewModel:function(F,R){return _.u("div",{class:"ytChipBarViewModelChipWrapper"},_.u(_.DsF,{data:F.data,
selected:function(){return R()===J()},
callback:function(c,z){c=!!z;z=R();E(c?z:-1);var m,r=(m=q.data())==null?void 0:m.chipBarStateEntityKey;r&&c&&_.nk(_.$e("chipBarStateEntity",r,{key:r,selectedIndex:z}))},
disableDeselection:q.disableDeselection||b}))}}))},"Md");_.P$(_.JC1,"chip-bar-view-model",{props:{data:_.W$,className:_.W$,disableDeselection:_.W$}});_.Eq1=_.n(function(q){var N=q.data;q={};return _.u("divider-view-model",{class:_.NO("dividerViewModelHost",(q.dividerViewModelInsetThinPadding=function(){return N().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},q))},_.u("div",{class:_.NO("dividerViewModelBaseDivider",function(){return vkJ(N().dividerStyle)})}))},"Nd");
_.Eq1.idomCompat=!0;_.P$(_.Eq1,"divider-view-model",{props:{data:_.F5}});var dR=new Map,cD=new Map,QGA=0,uk;var Dfd=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],UfA={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var gqR,Zl4;gqR=function(q){return function(N){return function(){return(N==null?void 0:N())!==void 0?String(N())+q:void 0}}};
_.gW=gqR("px");Zl4=gqR("s");var FVj=j4A(function(q){return q.targetGroupId}).useUpdatableData;_.ZJ=_.n(function(q){function N(RJ){return function(){var tZ=D().numItemsPerGridRow,wA=RJ()*tZ;tZ=wA+tZ;var rA,xD;return(xD=(rA=y().contents)==null?void 0:rA.slice(wA,tZ))!=null?xD:[]}}
var b=_.Sl(q,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),y=b.data,J=b.layoutContainerWidth,E=b.shouldUseOwnContainerSize,F=b.marginSettings,R=b.useUpdatedMargin,c=JoR(),z=_.Z(FVj(function(){var RJ,tZ;return{targetGroupId:(RJ=y().targetingContext)==null?void 0:(tZ=RJ.targetGroupId)==null?void 0:tZ[0]}})).next().value;
b=_.Z(_.QS(!0,void 0,"lKny6d"));var m=b.next().value,r=b.next().value,X=function(){var RJ,tZ=(RJ=_.v(y().showMoreButton,_.FF))==null?void 0:RJ.trackingParams;tZ&&_.fm(_.FR(),tZ);r(!1)},V=function(){var RJ,tZ=(RJ=_.v(y().showLessButton,_.FF))==null?void 0:RJ.trackingParams;
tZ&&_.fm(_.FR(),tZ);r(!0)};
b=_.Z(_.zK({canHaveZeroSize:!1}));var G=b.next().value;b=b.next().value;var w=function(){var RJ;return(RJ=y().contentAspectRatio)!=null?RJ:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},D=_.K3(function(){var RJ=E()&&G.width()>0?G.width()||J():J(),tZ,wA=(tZ=q.data())==null?void 0:tZ.responsiveContainerConfiguration;
RJ=_.D7({containerWidth:RJ,sizing:wA?hO(wA==null?void 0:wA.responsiveSize):"EXTRA_COMPACT",marginSettings:F(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:RJ.maxContainerWidth,numItemsPerGridRow:RJ.numItems,contentPadding:E()?RJ.margin:RJ.contentMargin,itemWidth:RJ.itemWidth,itemMargin:RJ.gutter/2}},void 0,"XYkF9e"),k=function(){if(y().enableVerticalExpansion){if(m())return f();
var RJ,tZ,wA=(tZ=(RJ=y().contents)==null?void 0:RJ.length)!=null?tZ:0;return Math.ceil(wA/D().numItemsPerGridRow)}return D().numItemsPerGridRow<=2?2:1},f=function(){var RJ;
return Math.ceil(((RJ=y().minCollapsedItemCount)!=null?RJ:1)/D().numItemsPerGridRow)},L=function(){return y().enableVerticalExpansion&&y().showLessButton&&!m()&&k()>f()},S=function(){var RJ,tZ;
return y().enableVerticalExpansion&&y().showMoreButton&&m()&&((tZ=(RJ=y().contents)==null?void 0:RJ.length)!=null?tZ:0)>D().numItemsPerGridRow*f()},W=function(){return!L()},M=function(){return!S()},qe={};
return _.u("grid-shelf-view-model",{class:_.NO("ytGridShelfViewModelHost",q.className,(qe.ytGridShelfViewModelHostHasBottomButton=function(){return L()||S()},qe.ytGridShelfViewModelHostIsDismissed=function(){var RJ,tZ=(RJ=z())!=null?RJ:{};
RJ=tZ.behavior;var wA=tZ.isDismissed,rA=tZ.stamperContextTargetId;tZ=tZ.stamperIndex;if(!(_.x("mweb_see_fewer_shorts_group_dismissal")&&wA&&RJ&&rA))return!1;var xD;wA=c;for(var IJ,sJ,Sn=((IJ=wA)==null?0:IJ.targetId)?_.p3((sJ=wA)==null?void 0:sJ.targetId):void 0;((xD=wA)==null?0:xD.parent)&&Sn!==rA;)wA=wA.parent,sJ=IJ=void 0,Sn=((IJ=wA)==null?0:IJ.targetId)?_.p3((sJ=wA)==null?void 0:sJ.targetId):void 0;xD=Sn===rA?wA:void 0;if(!xD)return!1;var YE;rA=xD==null?void 0:(YE=xD.stamperIndex)==null?void 0:
YE.call(xD);return RJ==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||RJ==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&rA!=null&&tZ!=null&&rA>tZ},qe.ytGridShelfViewModelHostOptionalMediumLayoutMargin=R,qe)),
el:_.ai(b),style:_.ZU({"margin-left":(0,_.gW)(function(){return D().contentPadding}),
"margin-right":(0,_.gW)(function(){return D().contentPadding})})},_.u(_.t,{cond:function(){return _.v(y().header,wFR)},
then:function(RJ){return _.u(_.sQ,{data:RJ,useUpdatedPadding:R,disableHorizontalPadding:!0})}}),_.u("div",null,_.u(_.Tf,{each:function(){return Array(k())}},function(RJ,tZ){return _.u(RGj,{className:q.className,
items:N(tZ),responsiveGridShelfLayout:D,contentAspectRatio:w})})),_.u("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.u(_.zS,{data:function(){return y().showMoreButton}},{buttonViewModel:function(RJ){return _.u("div",{hidden:M},_.u(_.Ou,{data:RJ.data,
onClick:X}))}}),_.u(_.zS,{data:function(){return y().showLessButton}},{buttonViewModel:function(RJ){return _.u("div",{hidden:W},_.u(_.Ou,{data:RJ.data,
onClick:V}))}})))},"Pd");
_.ZJ.idomCompat=!0;var RGj=_.n(function(q){var N=q.items;var b=q.responsiveGridShelfLayout;var y=q.contentAspectRatio;q=q.className;var J=_.dI("div");YZR(J,function(){a:{var F=J.value;for(var R=N(),c=[],z=0;z<R.length;z++){var m=_.v(R[z],y01);if(!m||m==null||!m.inlinePlayerData){F=null;break a}var r=F.children.item(z);if(!r){F=null;break a}c.push({thumbnailElement:r,videoData:m})}F={gridVideoPreviewData:{gridItems:c}}}return F});
var E=(0,_.gW)(function(){return-b().itemMargin});
return _.u("div",{el:J,class:_.NO("ytGridShelfViewModelGridShelfRow",q),style:_.ZU({"margin-left":E,"margin-right":E})},_.u(_.zS,{data:N,replacementWrapper:function(F){return _.u(dpF,{responsiveGridShelfLayout:b},F)}},{shortsLockupViewModel:function(F){return _.u(dpF,{responsiveGridShelfLayout:b},_.u(f1M,{data:F.data,
aspectRatio:function(){return y()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.x("mweb_enable_one_line_title_on_shorts")?1:_.x("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(F){return _.u(dpF,{responsiveGridShelfLayout:b},_.u(_.UE,{data:F.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Qd"),dpF=_.n(function(q){return _.u("div",{style:_.ZU({width:(0,_.gW)(function(){return q.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+q.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},q.children)},"Rd");
_.ZJ.idomCompat=!0;_.P$(_.ZJ,"grid-shelf-view-model",{props:{data:_.F5,layoutContainerWidth:_.F5,shouldUseOwnContainerSize:_.F5,marginSettings:_.F5,useUpdatedMargin:_.F5,className:_.F5}});_.cCM=_.n(function(q){var N=_.Z(_.QS(!1,void 0,"FVl30c")),b=N.next().value,y=N.next().value;N={};return _.u("yt-alert-banner-view-model",{class:_.NO("ytAlertBannerViewModelHost",q.className,function(){var J;a:switch((J=q.data())==null?void 0:J.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":J="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":J="ytAlertBannerViewModelWarning";break a;default:J="ytAlertBannerViewModelInformational"}return J},(N.ytAlertBannerViewModelDismissed=
b,N.ytAlertBannerViewModelFullbleed=q.fullbleed,N.ytAlertBannerViewModelNarrow=q.narrow,N.ytAlertBannerViewModelIsInRichGrid=q.isInRichGrid,N))},_.u(_.t,{cond:function(){var J;
return!((J=q.data())==null?0:J.hideIcon)},
then:function(){return _.u("div",{class:"ytAlertBannerViewModelIcon"},_.u(_.FQ,{icon:function(){return"info_circle"}}))}}),_.u("div",{class:"ytAlertBannerViewModelOuterContainer"},_.u("div",{class:"ytAlertBannerViewModelContainer"},_.u("div",{class:"ytAlertBannerViewModelContent"},_.u("div",{class:"ytAlertBannerViewModelHeading"},_.u(_.Zc,{text:function(){var J;
return(J=q.data())==null?void 0:J.heading}})),_.u("div",{class:"ytAlertBannerViewModelBody"},_.u(_.Zc,{text:function(){var J;
return(J=q.data())==null?void 0:J.body}})))),_.u(_.zS,{data:function(){var J;
return(J=q.data())==null?void 0:J.actionButton}},{buttonViewModel:function(J){return _.u(_.Ou,{data:J.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.u(_.zS,{data:function(){var J;
return(J=q.data())==null?void 0:J.dismissButton}},{buttonViewModel:function(J){return _.u(_.Ou,{data:J.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var E;((E=q.data())==null?0:E.disableLocalDismissBehavior)||y(!0)}})}}))},"Sd");_.P$(_.cCM,"yt-alert-banner-view-model",{props:{data:_.F5,fullbleed:_.F5,narrow:_.F5,isInRichGrid:_.F5,className:_.F5}});var uWx;_.zGR=_.n(function(q){return _.u("basic-content-view-model",{class:_.NO("ytBasicContentViewModelHost",_.aU(q.className))},_.u(_.t,{cond:function(){return q.data().headline},
then:function(N){return _.u("div",{class:"ytBasicContentViewModelHeadline"},_.u(_.Zc,{text:N}))}}),_.u(_.Tf,{each:function(){return q.data().paragraphs||[]},
keyBy:"INDEX"},function(N){return _.u("div",{class:"ytBasicContentViewModelParagraph"},_.u(_.t,{cond:function(){var b=N();return!!(b.header||b.customHeader||b.headline)},
then:function(){return _.u(uWx,{paragraph:N})}}),_.u(_.t,{cond:function(){return N().asset||N().text},
then:function(){return _.u("div",{class:"ytBasicContentViewModelParagraphContent"},_.u(_.t,{cond:function(){return N().asset},
then:function(b){return _.u("div",{class:"ytBasicContentViewModelParagraphAsset"},_.u(_.zS,{data:b},{contentPreviewImageViewModel:_.wK}))}}),_.u(_.t,{cond:function(){return N().text},
then:function(b){return _.u("div",{class:"ytBasicContentViewModelParagraphText"},_.u(_.Zc,{text:b}))}}))}}))}))},"Td");
uWx=_.n(function(q){var N=q.paragraph;return _.u(_.rV,null,_.u(_.t,{cond:function(){return N().headline},
then:function(b){return _.u(_.Zc,{text:b,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.u(_.zS,{data:function(){return N().header||N().customHeader}},{sectionHeaderViewModel:function(b){return _.u(_.sQ,{data:b.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ud");_.$pT=_.n(function(q){function N(){var V,G;c((G=(V=J)==null?void 0:V.isKeyBoardInUse())!=null?G:!1)}
function b(){c(!1)}
function y(){var V;return R()?(V=q.focusedClassName)==null?void 0:V.call(q):""}
var J=_.tz().resolve(_.$f(_.X5)),E=_.Z(_.QS(!1,void 0,"SgkTXc")),F=E.next().value;E=E.next().value;var R=F,c=E,z=function(){var V,G;return((V=q.toggleable)==null?0:V.call(q))?(G=q.toggled)==null?void 0:G.call(q):void 0},m=_.y0(function(V){var G,w=(G=q.command)==null?void 0:G.call(q);
w&&_.tz().resolve(_.rO).resolveCommand(w);var D;(D=q.onClick)==null||D.call(q,V)}),r=_.y0(N),X=_.y0(b);
return _.u(_.t,{cond:function(){var V;if(V=q.command){V=q.command();V=$5A(V);var G=V.href;V=!(!V.navigatingCommand||!G)}return V},
then:function(){return _.u(_.Vf,Object.assign({},{command:q.command,style:q.style,ariaDescribedby:q.ariaDescribedby,ariaHidden:q.ariaHidden,ariaLabel:q.ariaLabel,ariaLabelledby:q.ariaLabelledby,ariaSelected:q.ariaSelected,disabled:q.disabled,dir:q.dir,tabIndex:q.tabIndex,target:q.target,title:q.title,onClick:q.onClick},{className:_.NO("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",q.className,function(){return y()}),
onFocusin:N,onFocusout:b,ariaCurrent:function(){var V,G;return(G=(V=q.ariaCurrent)==null?void 0:V.call(q))!=null?G:z()}}),q.children)},
else:function(){return _.u("button",{"on:click":m,"on:focusin":r,"on:focusout":X,class:_.NO("ytButtonOrAnchorHost","ytButtonOrAnchorButton",q.className,function(){return y()}),
style:q.style,"aria-describedby":q.ariaDescribedby,"aria-hidden":q.ariaHidden,"aria-label":q.ariaLabel,"aria-labelledby":q.ariaLabelledby,"aria-pressed":z,dir:q.dir,disabled:q.disabled,tabindex:q.tabIndex,title:q.title},q.children)}})},"Vd");var tJM=_.n(function(q){q=_.Sl(q,{disabled:!1});var N=q.active,b=q.disabled;q={};q=_.NO("ytSwitchShapeTrack",(q.ytSwitchShapeTrackActive=function(){return N()},q.ytSwitchShapeTrackDisabled=function(){return b()},q));
var y={};y=_.NO("ytSwitchShapeKnob",(y.ytSwitchShapeKnobActive=function(){return N()},y));
return _.u("switch-shape",{class:"ytSwitchShapeHost"},_.u("div",{class:q}),_.u("div",{class:y}))},"Wd");var mpF=_.n(function(q){var N=_.Sl(q,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),b=N.data;q=N.className;var y=N.handleOnTapEventInParent,J=N.parentActive,E=N.onTap;N=_.Z(_.gJ(function(){var X;return(X=J())!=null?X:b().switchedOnByDefault||!1}));
var F=N.next().value,R=N.next().value,c=function(){return b().isDisabled},z=_.dI("button");
N=_.y0(function(X){return X.key==="Enter"?(X.preventDefault(),z.value.click(),!1):!0});
var m=_.y0(function(X){if(b().handleOnTapEventInParent||y())return!0;if(c())return!1;if(E)return E(X),!0;I1Z(b(),F(),X);R(!F());return!1}),r={};
r=_.NO("ytSwitchButtonViewModelButton",(r.ytSwitchButtonViewModelTappable=function(){return!c()},r));
return _.u("switch-button-view-model",{class:_.NO("ytSwitchButtonViewModelHost",q)},_.u("button",{el:z,class:r,"on:click":m,"on:keydown":N,"aria-label":function(){return F()?b().a11yLabelSwitchedOn:b().a11yLabelSwitchedOff},
"aria-checked":F,"aria-disabled":c,role:"switch"},_.u(tJM,{active:F,disabled:c})))},"Xd");var rCM=_.n(function(q){var N=q.data;var b=q.isLeading;var y=q.hideSelectionTextChevron;var J=q.isToggled;var E=q.shouldNotFillIcon;var F=function(){if(b())var r=N().leadingImage;else{var X;r=(X=N().trailingImage)!=null?X:_.ke(N().themedTrailingImage)}return r},R=function(){a:switch(N().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var r="expand_more";
break a;default:r="chevron_right"}return r};
q={};var c=_.NO("yt-list-item-view-model__image-container",(q["yt-list-item-view-model__leading"]=b,q["yt-list-item-view-model__trailing"]=function(){return!b()},q)),z=_.NO("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
q={};var m=_.NO("yt-list-item-view-model__accessory",(q["yt-list-item-view-model__leading"]=b,q["yt-list-item-view-model__trailing"]=function(){return!b()},q));
return _.u(_.t,{cond:function(){var r=N(),X=b();return!!(X&&(r.leadingImage||r.leadingAccessory)||!X&&(r.trailingImage||r.trailingButton||r.trailingButtons||r.selectionText||r.themedTrailingImage||r.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.u(_.rV,null,_.u(_.t,{cond:F,then:function(r){return _.u("div",{class:c,"aria-hidden":"true"},_.u(_.s_,{data:r,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var X=(b()?N().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":N().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?b()?nkA(N().leadingIconAccessorySize):nkA(N().trailingIconAccessorySize):void 0;return X},
className:z,isToggled:function(){return!(E==null?0:E())&&(J==null?void 0:J())}}))}}),_.u(_.t,{cond:function(){return b()&&N().leadingAccessory},
then:function(){return _.u("div",{class:c},_.u(_.zS,{data:function(){return N().leadingAccessory}},{avatarViewModel:function(r){return _.u(_.HF,{data:r.data,
avatarButtonCustomClassName:z})},
collectionThumbnailViewModel:function(r){return _.u(Kbx,{data:r.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.u(_.t,{cond:function(){return!b()&&N().trailingButton},
then:function(){return _.u("div",{class:"yt-list-item-view-model__button-container"},_.u(_.zS,{data:function(){return N().trailingButton}},{buttonViewModel:function(r){return _.u(_.Ou,{data:r.data,
className:m})}}))}}),_.u(_.t,{cond:function(){var r;
return!b()&&((r=N().trailingButtons)==null?void 0:r.buttons)},
then:function(){return _.u("div",{class:"yt-list-item-view-model__button-container"},_.u(_.zS,{data:function(){var r;return(r=N().trailingButtons)==null?void 0:r.buttons}},{buttonViewModel:function(r){return _.u(_.Ou,{data:r.data,
className:m})},
accountLinkButtonViewModel:function(r){return _.u(r6x,{data:r.data,className:m})},
switchButtonViewModel:function(r){return _.u(mpF,{data:r.data,className:m})},
subscribeButtonViewModel:function(r){return _.u(_.HX,{data:r.data,isOverlay:!1,animateWidth:!1,className:m})},
toggleButtonViewModel:function(r){return _.u(_.LV,{data:r.data,className:m})}}))}}),_.u(_.t,{cond:function(){return!b()&&!!N().selectionText},
then:function(){return _.u(_.rV,null,_.u(_.Zc,{text:function(){return N().selectionText},
className:_.NO("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.u(_.t,{cond:function(){return!(y==null?0:y())},
then:function(){return _.u(_.FQ,{icon:R,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.u(_.t,{cond:function(){return!b()&&N().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.u("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"Yd");var Xsv=_.n(function(q){var N=q.data;return _.u(_.t,{cond:function(){return N().title||N().subtitle},
then:function(){return _.u("div",{class:"yt-list-item-view-model__text-wrapper"},_.u(_.t,{cond:function(){return N().title},
then:function(b){return _.u("div",{class:"yt-list-item-view-model__title-wrapper"},_.u(_.Zc,{text:b,className:"yt-list-item-view-model__title"}))}}),_.u(_.t,{cond:function(){return N().subtitle},
then:function(b){return _.u(_.Zc,{text:b,className:"yt-list-item-view-model__subtitle"})}}))}})},"Zd");var VJv=_.n(function(q){var N=q.data;var b=q.hideSelectionTextChevron;var y=q.TrailingAccessory;var J=q.isToggled;var E=q.disabled;var F=q.isSelectItem;var R=q.isCompact;var c=q.inPopup;var z=q.disableHorizontalPadding;var m=q.isTappableWithoutSelect;var r=q.useButtonOrAnchor;var X=q.onTap;var V=q.shouldNotFillIcon;var G=function(){return _.u(Xsv,{data:N,onTap:X,useButtonOrAnchor:r,isTappableWithoutSelect:m,isToggled:J})};
q={};return _.u("div",{class:_.NO("yt-list-item-view-model__label",(q["yt-list-item-view-model__container"]=function(){return!(F==null?0:F())},q["yt-list-item-view-model__container--disabled"]=function(){return!!N().isDisabled||!(E==null||!E())},q["yt-list-item-view-model__container--has-subtitle"]=function(){return!!N().subtitle},q["yt-list-item-view-model__container--compact"]=R,q["yt-list-item-view-model__container--tappable"]=m,q["yt-list-item-view-model__container--in-popup"]=c,q["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(z==null?void 0:z())&&!(F==null?0:F())},q))},_.u(rCM,{data:N,
isLeading:!0,hideSelectionTextChevron:b,isToggled:J,shouldNotFillIcon:V}),_.u(_.t,{cond:function(){return(r==null?void 0:r())&&(m==null?void 0:m())},
then:function(){return _.u(_.$pT,{command:function(){return _.GS(N().rendererContext)},
onClick:X,className:"yt-list-item-view-model__button-or-anchor",toggleable:J!==void 0,toggled:J},_.u(G,null))},
else:function(){return _.u(G,null)}}),_.u(_.t,{cond:function(){return!!y},
then:function(){return _.u("div",{class:"yt-list-item-view-model__trailing"},y&&_.u(y,null))},
else:function(){return _.u(rCM,{data:N,isLeading:!1,hideSelectionTextChevron:b,isToggled:J,shouldNotFillIcon:V})}}))},"$d");var xpx=_.n(function(q){var N=_.Sl(q,{checked:!1});q=N.name;var b=N.onChange,y=N.onClick,J=N.checked,E=N.labelRenderable,F=N.hasLeadingLabel,R=N.labelClass,c=N.isCompact,z=N.selectElementClass;N=N.disableHorizontalPadding;var m="checkbox"+_.Cp(_.Em),r=_.y0(function(G){y==null||y(G);return!1}),X=_.y0(function(G){b==null||b(G);
return!1}),V={};
return _.u("checkbox-shape",null,_.u("label",{class:_.NO("ytCheckboxShapeHost",R,(V.ytCheckboxShapeHostCompact=c,V.ytCheckboxShapeDisableHorizontalPadding=N,V))},_.u("input",{class:"ytCheckboxShapeInput",id:m,checked:J,name:q,type:"checkbox","prop:checked":J,"on:change":X,"on:click":r}),_.u(_.t,{cond:function(){return!(F==null?0:F())},
then:function(){return _.u(jFJ,{isLeading:!0,selectElementClass:z})}}),_.u(_.t,{cond:function(){return!!E},
then:function(){return _.u("div",{class:"ytCheckboxShapeLabel"},E==null?void 0:E())}}),_.u(_.t,{cond:F,
then:function(){return _.u(jFJ,{isLeading:!1,selectElementClass:z})}})))},"ae");
xpx.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var jFJ=_.n(function(q){var N=q.selectElementClass;q={};return _.u("div",{class:_.NO("ytCheckboxShapeCheckbox",N,(q.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(N==null?0:N())},q)),
"aria-hidden":"true"},_.u(_.FQ,{icon:_.x("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.u(_.FQ,{icon:_.x("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"be");_.Fo=_.n(function(q){var N=q.name;var b=q.onChange;var y=q.onClick;var J=q.checked;var E=q.labelRenderable;var F=q.useCheckIcon;var R=q.hasLeadingLabel;var c=q.labelClass;var z=q.isCompact;var m=q.selectElementClass;var r=q.ariaLabel;q=q.className;var X="radio"+_.Cp(_.Em),V=_.dI("input"),G=_.y0(function(M){V.value.checked=!(J==null||!J());b==null||b(M);return!1}),w=_.y0(function(M){y==null||y(M);
return!1}),D=_.y0(function(M){_.x("enable_ios_webview_radio_button_responsiveness")&&(M.preventDefault(),V.value.click())}),k=_.Z(_.QS(!1,void 0,"TcCZlf")),f=k.next().value,L=k.next().value;
k=_.y0(function(){var M;((M=_.tz().resolve(_.$f(_.X5)))==null?0:M.isKeyBoardInUse())&&L(!0)});
var S=_.y0(function(){L(!1)}),W={};
return _.u("radio-shape",{class:_.NO("yt-radio-shape",q)},_.u("input",{el:V,class:"yt-radio-shape__input",id:X,"prop:checked":J,name:N,type:"radio","on:change":G,"on:click":w,"aria-label":r,"on:focusin":k,"on:focusout":S}),_.u("label",{class:_.NO("yt-radio-shape__label-container",c,(W["yt-radio-shape--compact"]=z,W["yt-radio-shape__label-container--keyboard-focused"]=f,W)),for:X,"on:click":D},_.u(_.t,{cond:function(){return!(R==null?0:R())},
then:function(){return _.u(vq1,{checked:J,useCheckIcon:F,isLeading:!0,selectElementClass:m})}}),_.u(_.t,{cond:function(){return!!E},
then:function(){return _.u("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(r==null?0:r())?"true":"false"}},E==null?void 0:E())}}),_.u(_.t,{cond:R,
then:function(){return _.u(vq1,{checked:J,useCheckIcon:F,isLeading:!1,selectElementClass:m})}})))},"ce");
_.Fo.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var vq1=_.n(function(q){var N=q.useCheckIcon;var b=q.selectElementClass;q=function(){return(N==null?0:N())?"CHECK":_.x("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var y={};return _.u("div",{class:_.NO("yt-radio-shape__radio",b,(y["yt-radio-shape__radio--check-icon"]=N,y["yt-radio-shape__radio--radio-default-style"]=function(){return!(b==null?0:b())},y)),
"aria-hidden":"true"},_.u(_.FQ,{icon:q}),_.u(_.FQ,{icon:q,active:function(){return!(N==null?0:N())}}))},"de");_.R1=_.n(function(q){var N=q.data;var b=q.isMenuItem;var y=q.isCompact;var J=q.onTap;var E=q.trailingAccessory;var F=q.hideSelectionTextChevron;var R=q.disabled;var c=q.inPopup;var z=q.disableHorizontalPadding;var m=q.isOverlay;var r=q.isToggled;var X=q.ariaLabel;var V=q.ariaPressed;var G=q.shouldNotFillIcon;var w=!_.x("web_enable_killswitch_for_selectable_list_item_on_tap_fix");q=!_.x("web_enable_killswitch_for_skip_child_tags");var D=_.uR(function(YE){return a1n(N(),YE)}),k=function(){return(z==
null?void 0:z())||N().disableHorizontalPadding},f=function(){return _.x("enable_web_shorts_captions_language_command")||_.x("web_shorts_audio_track_picker")||N().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},L=function(){return f()?Object.assign({},N(),D().data):N()},S=_.Wpn(function(){return L().rendererContext}),W=function(){return!(L().isSelected===void 0||!L().selectionStyle||L().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},M=function(){return(_.Ye(L().rendererContext)||
J)&&!W()},qe={},RJ=_.NO("yt-list-item-view-model__container",(qe["yt-list-item-view-model__container--tappable"]=function(){return _.Ye(L().rendererContext)||W()},qe["yt-list-item-view-model__container--compact"]=y,qe["yt-list-item-view-model__container--in-popup"]=c,qe["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(k==null?void 0:k())&&W()},qe)),tZ=function(){return L().leadingImage||L().leadingAccessory},wA=_.NO("yt-list-item-view-model__image-container",function(){return tZ()?
"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
qe=_.nXJ();var rA=_.Z(_.QS(!1,void 0,"w9yOLe")),xD=rA.next().value,IJ=rA.next().value,sJ=function(){return _.u(VJv,{data:L,hideSelectionTextChevron:F,TrailingAccessory:E,isToggled:r,disabled:R,isSelectItem:W,isCompact:y,inPopup:c,disableHorizontalPadding:k,isTappableWithoutSelect:M,useButtonOrAnchor:Sn,onTap:J,shouldNotFillIcon:G})},Sn=_.x("web_button_or_anchor_list_item");
rA={};return _.u("yt-list-item-view-model",{el:_.ai(_.QR(function(){return L().rendererContext},void 0,void 0,Sn?["A".toString(),
"BUTTON".toString()]:[]),SZJ(function(YE){var xE;if(xE=w)xE=L().selectionStyle,xE=xE==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||xE==="LIST_ITEM_SELECTION_STYLE_RADIO"||xE==="LIST_ITEM_SELECTION_STYLE_DEFAULT";xE||J==null||J(YE)},q?["A".toString(),
"BUTTON".toString()]:[]),qTd(function(){return M==null?void 0:M()},{focusin:function(){var YE;
((YE=_.tz().resolve(_.$f(_.X5)))==null?0:YE.isKeyBoardInUse())&&IJ(!0)},
focusout:function(){IJ(!1)}})),
class:_.NO("yt-list-item-view-model",(rA["yt-list-item-view-model--is-overlay"]=m,rA["yt-list-item-view-model--keyboard-focused"]=xD,rA["yt-list-item-view-model--hidden"]=function(){return f()?D().isHidden:!1},rA)),
role:function(){return(b==null?0:b())?"menuitem":"listitem"},
tabindex:function(){var YE=M();YE=Sn?void 0:J||YE?0:void 0;return YE},
"on:keydown":qe,"aria-label":function(){var YE;return(X==null?void 0:X())||((YE=S())==null?void 0:YE.label)},
"aria-pressed":V},_.u(_.t,{cond:W,then:function(){return _.u(_.sw,null,_.u(_.CI,{when:function(){return L().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.u(xpx,{labelRenderable:sJ,
isCompact:y,checked:function(){return L().isSelected},
hasLeadingLabel:function(){return!!tZ()},
labelClass:RJ,selectElementClass:wA,disableHorizontalPadding:k,onClick:w?J:void 0})}),_.u(_.CI,{when:function(){return L().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.u(_.Fo,{labelRenderable:sJ,
isCompact:y,checked:function(){return L().isSelected},
hasLeadingLabel:function(){return!!tZ()},
labelClass:RJ,selectElementClass:wA,onClick:w?J:void 0})}),_.u(_.CI,{when:function(){return L().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.u(_.Fo,{labelRenderable:sJ,
isCompact:y,checked:function(){return L().isSelected},
hasLeadingLabel:function(){return!!tZ()},
labelClass:RJ,selectElementClass:wA,useCheckIcon:!0,onClick:w?J:void 0})}),_.u(_.Iu,null,sJ))},
else:sJ}))},"ee");
_.R1.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.dW=_.n(function(q){var N=_.Z(_.zK({canHaveZeroSize:!1})),b=N.next().value;N=N.next().value;var y=function(){return b2Z(b.width(),q.data().responsiveContainerConfiguration)||eBC(b.width(),q.data().linearLayoutContainerConfiguration)};
return _.u("yt-linear-layout-view-model",{el:_.ai(N),class:"ytLinearLayoutViewModelHost"},_.u("div",{class:_.NO("ytLinearLayoutViewModelContainer",function(){a:switch(q.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var J="ytLinearLayoutViewModelHorizontal";break a;default:J="ytLinearLayoutViewModelVertical"}return J},function(){var J=q.data().linearLayoutContainerConfiguration;
return J?[M1z(J.flexDirection),okD(J.justifyContent),Ahh(J.alignItems)].join(" "):""}),
style:function(){var J;var E=((J=y())==null?void 0:J.containerStyles)||{};return _.ZU(E)()}},_.u(_.zS,{data:function(){return q.data().items},
wrapper:function(J,E,F){return _.u("div",{style:function(){var R=F(),c;if((c=y())==null)R=void 0;else{var z=c.itemStyles,m=R===0,r,X;var V=(X=(r=q.data().items)==null?void 0:r.length)!=null?X:0;R=z.call(c,m,R===V-1)}return _.ZU(R||{})()}},J())}},{lockupViewModel:function(J){return _.u(_.UE,{data:J.data,
containerLayoutConfig:function(){var E;return(E=y())==null?void 0:E.containerLayoutConfig}})},
basicContentViewModel:_.zGR,linearLayoutViewModel:_.dW,thumbnailViewModel:_.Gv,descriptionPreviewViewModel:_.TH,listItemViewModel:_.R1,sectionHeaderViewModel:_.sQ})))},"fe");_.P$(_.dW,"yt-linear-layout-view-model",{props:{data:_.F5}});_.P$(_.s8,"chips-shelf-view-model",{props:{data:_.F5,callback:_.W$,selectionBehavior:_.F5,disableChipsScrollAnimation:_.F5}});_.P$(_.n(function(q){return _.u("yt-comment-filter-context-view-model",{class:_.NO("ytCommentFilterContextHost",q.className)},_.u(_.Zc,{text:function(){return q.data().text}}))},"ge"),"yt-comment-filter-context-view-model",{props:{data:_.F5,
className:_.W$}});_.GgJ=_.n(function(q){var N=q.data;var b=q.onTap;var y=q.onSwitch;var J=q.overrideDisabled;q=q.disableHorizontalPadding;var E=_.Z(_.gJ(function(){var X;return((X=sGZ(m()))==null?void 0:X.switchedOnByDefault)||!1})),F=E.next().value,R=E.next().value;
E=_.Z(_.QS(!1,void 0,"V0hCrd"));var c=E.next().value,z=E.next().value,m=function(){var X;if(!(X=N().switchButton)){var V=N();X=J==null?void 0:J();V={switchOnCommand:V.switchOnCommand,switchOffCommand:V.switchOffCommand,switchedOnByDefault:V.switchedOnByDefault,isDisabled:V.isDisabled,a11yLabelSwitchedOn:V.a11yLabelSwitchedOn,a11yLabelSwitchedOff:V.a11yLabelSwitchedOff};X!==void 0&&(V.isDisabled=X);X={switchButtonViewModel:V}}return X},r=function(X){var V=sGZ(m());
!V||V.isDisabled||N().ignoreTapUntilCommandCompletes&&c()||(b==null||b(X),I1Z(V,F(),X,N().ignoreTapUntilCommandCompletes,z),R(!F()),y==null||y(F()))};
return _.u("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.u(_.R1,{data:function(){return{title:N().title,subtitle:N().attributedSubtitle,leadingImage:N().leadingImage,leadingAccessory:N().leadingAccessory,isDisabled:N().isDisabled}},
onTap:r,isToggled:F,shouldNotFillIcon:!0,trailingAccessory:function(){return _.u(_.zS,{data:m},{switchButtonViewModel:function(X){return _.u(mpF,{data:X.data,parentActive:F,onTap:r})}})},
disableHorizontalPadding:q}))},"he");var YBv=_.n(function(q){var N=_.Z(_.gJ(function(){var J,E;return!!((J=q.data())==null?0:(E=J.initialState)==null?0:E.isToggled)})),b=N.next().value,y=N.next().value;
return _.u("toggleable-list-item-view-model",{el:_.ai(_.QR(function(){return q.data().rendererContext},{onTap:function(J,E){E();
y(!b())}})),
class:_.NO("toggleableListItemViewModelHost",q.className)},_.u(_.t,{cond:function(){if(b()){var J=q.data().toggledListItem;J=_.v(J,_.mI)}else J=q.data().defaultListItem,J=_.v(J,_.mI);return J},
then:function(J){return _.u(_.R1,{data:J,isToggled:b,ariaLabel:function(){var E=b()?q.data().toggledListItem:q.data().defaultListItem,F;E=(F=_.v(E,_.mI))==null?void 0:F.rendererContext;var R;return(R=_.v(E,_.$A))==null?void 0:R.label},
ariaPressed:function(){return b()}})}}))},"ie");var QFx=_.FE("DOWNLOAD",{},"Download"),OlJ=_.FE("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),ws4=_.FE("RETRY",{},"Retry"),il4=_.FE("PAUSE_DOWNLOADING",{},"Pause downloading"),leM=_.FE("RESUME_DOWNLOAD",{},"Resume download"),yyn={text:QFx,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},t3={text:OlJ,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},ghA={text:ws4,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
Jye={text:il4,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Ehu={text:leM,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var KVF=_.n(function(q){var N=function(){var R=q.data();R=_.GS(R.rendererContext);var c;return(c=_.v(R,_.F3))==null?void 0:c.videoId},b=_.uR(function(R){var c=N(),z=RDh(q.data());
return c?_.ig(R,c):z?_.lg(R,z):"TRANSFER_STATE_UNKNOWN"}),y=_.dj(_.q6n,N),J=_.uR(function(R){return _.Pwn(R,N(),RDh(q.data()))}),E=function(){return FxR(b(),y(),_.GS(q.data().rendererContext),!!RDh(q.data()))},F=function(){return J()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.u("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:F},_.u(_.t,{cond:function(){return!F()},
then:function(){return _.u(_.t,{cond:E,then:function(R){return _.u(_.Tf,{each:R},function(c){return _.u(_.R1,{data:c,isCompact:q.isCompact,isMenuItem:q.isMenuItem,inPopup:q.inPopup,disableHorizontalPadding:q.disableHorizontalPadding})})}})}}))},"je");
KVF.idomCompat=!0;_.Dpo=_.n(function(q){var N=q.data;var b=q.isCompact;var y=q.hideSelectionTextChevron;var J=q.inPopup;var E=q.isOverlay;var F=q.disableHorizontalPadding;var R=function(){return d_u(N())&&(J==null?void 0:J())};
q=_.y0(function(z){if(J!=null&&J()&&_.x("web_enable_arrow_key_navigation_in_dropdown")){var m=_.ZCJ(z.currentTarget),r=m.length;if(r!==0){var X=Array.prototype.indexOf.call(m,document.activeElement);switch(z.key){case "ArrowDown":z.preventDefault();var V;(V=m[(X+1)%r])==null||V.focus();break;case "ArrowUp":z.preventDefault();var G;(G=m[X===-1?r-1:(X-1+r)%r])==null||G.focus()}}}});
var c={};return _.u("yt-list-view-model",{class:_.NO("ytListViewModelHost",(c.ytListViewModelHostKaiosSpatNav=gID&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",c.ytListViewModelCollectionThumbnailClass=function(){return zDA(N())},c)),
role:function(){return R()?"menu":"list"},
style:_.ZU({"max-height":function(){var z,m=(z=N())==null?void 0:z.visibleElementCount;if(m)return zDA(N())?(m+.5)*48+"px":(m+.5)*40+"px"}}),
"on:keydown":q},_.u(_.zS,{data:function(){return N().listItems}},{listItemViewModel:function(z){return _.u(_.R1,{data:z.data,
isMenuItem:R,isCompact:b,hideSelectionTextChevron:y,inPopup:J,isOverlay:E,disableHorizontalPadding:F})},
toggleableListItemViewModel:function(z){return _.u(YBv,{data:z.data})},
downloadListItemViewModel:function(z){return _.u(KVF,{data:z.data,isMenuItem:R,isCompact:b,inPopup:J,disableHorizontalPadding:F})},
switchListItemViewModel:function(z){return _.u(_.GgJ,{data:z.data,disableHorizontalPadding:F})}}))},"ke");
_.Dpo.idomCompat=!0;var hGx=_.n(function(q){var N=q.data;var b=q.isOverlay;q={};return _.u("yt-course-perks-view-model",{class:_.NO("ytwCoursePerksViewModelHost",(q.ytwCoursePerksViewModelHostOverlay=b,q))},_.u("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.u(_.Zc,{text:function(){return N().title}})),_.u("div",null,_.u(_.t,{cond:function(){return N().perks},
then:function(y){return _.u(_.Dpo,{data:function(){return{listItems:y()}},
isCompact:!0,isOverlay:b})}})))},"le");_.P$(hGx,"yt-course-perks-view-model",{props:{data:_.W$,isOverlay:_.W$}});_.P$(_.n(function(q){var N=q.data;return _.u("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.u("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.u(_.Zc,{text:function(){return N().title}})),_.u("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.u(_.Zc,{text:function(){return N().progressSummary}})),_.u("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.u("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.ZU({width:function(){return N().progressPercentage*100+"%"}})})))},"me"),"yt-course-progress-view-model",{props:{data:_.F5}});var kgo=_.n(function(q){var N={};return _.u("yt-progress-view-model",{class:_.NO("ytwProgressViewModelHost",(N.ytwProgressViewModelHostOverlay=_.aU(q.isOverlay,!1),N))},_.u(_.t,{cond:function(){return q.data().progressSummary},
then:function(b){return _.u("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.u(_.Zc,{text:b}))}}),_.u("div",{class:"ytwProgressViewModelHostProgressContainer"},_.u(_.t,{cond:function(){return q.data().leadingLabel},
then:function(b){return _.u("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.u(_.Zc,{text:b}))}}),_.u("div",{class:"ytwProgressViewModelHostProgressBar"},_.u("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(q.data().progressPercentage||0)*100+"%"}}))))},"ne");var cp=_.n(function(q){var N=q.starNumber;var b=q.data;var y=function(){var J;return((J=b())==null?void 0:J.rating)||0};
return _.u(_.t,{cond:function(){return N()},
then:function(J){return _.u(_.sw,null,_.u(_.CI,{when:function(){return y()>=J()-.25}},function(){return _.u("div",{class:"ytStarRatingViewModelHostStar"},_.u(_.FQ,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.u(_.CI,{when:function(){return y()>=J()-.75}},function(){return _.u("div",{class:"ytStarRatingViewModelHostStar"},_.u(_.FQ,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.u(_.Iu,null,function(){return _.u("div",{class:"ytStarRatingViewModelHostStar"},_.u(_.FQ,{icon:"STAR",
size:function(){return 24}}))}))}})},"oe"),UpR=_.n(function(q){q=q.data;
return _.u("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.u(cp,{starNumber:1,data:q}),_.u(cp,{starNumber:2,data:q}),_.u(cp,{starNumber:3,data:q}),_.u(cp,{starNumber:4,data:q}),_.u(cp,{starNumber:5,data:q}))},"pe");_.P$(_.n(function(q){var N=_.Sl(q,{}).data;return _.u("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.u("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.u(_.Zc,{text:function(){var b;return(b=N())==null?void 0:b.title}})),_.u("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.u(_.t,{cond:function(){return N().starProgressViewModels},
then:function(b){return _.u("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.u(_.zS,{data:b},{progressViewModel:kgo}))}}),_.u("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.u("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.u(_.Zc,{text:function(){var b;
return(b=N())==null?void 0:b.averageRatingLabel}})),_.u(_.t,{cond:function(){return N().zeroStateText},
then:function(b){return _.u("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.u(_.Zc,{text:b}))}}),_.u(_.t,{cond:function(){return N().starRatingViewModel},
then:function(b){return _.u("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.u(_.zS,{data:b},{starRatingViewModel:UpR}))}}),_.u("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.u(_.Zc,{text:function(){var b;
return(b=N())==null?void 0:b.totalRatingsCountLabel}})))))},"qe"),"yt-course-ratings-view-model",{props:{data:_.W$}});var feo;feo={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"}};_.CyR=_.n(function(q){var N=_.dI("yt-learning-journey-loader-view-model"),b=_.gj();_.SI(function(){requestAnimationFrame(function(){var J;(J=b.lottieEl)==null||J.addEventListener("DOMLoaded",function(){var E;(E=q.onLottieLoaded)==null||E.call(q)})});
var y=q.data().browseEndpoint;y&&_.Kt(y)});
return _.u("yt-learning-journey-loader-view-model",{class:_.NO("learningJourneyLoaderViewModelHost",q.className),"data-target-id":function(){return q.data().targetId||""},
el:N},_.u(_.h$,{className:_.NO("learningJourneyLoaderViewModelLoader",q.className),animationName:function(){return feo.animationConfig.name},
data:feo,animationRef:b}))},"se");_.P$(_.CyR,"yt-learning-journey-loader-view-model",{props:{data:_.F5,className:_.W$,onLottieLoaded:_.W$}});var tKu=new Set,$_u=null;var Iex=_.n(function(q){var N=void 0,b=function(){return q.data()},y=function(){return!!_.XO(_.mU(b())).optionColor},J=_.Z(_.QS(-1,void 0,"eTdwcb")),E=J.next().value,F=J.next().value,R=function(X){return E()===X},c=function(X){return b().correctAnswerIndex===X},z=function(){return E()!==-1};
J=_.Z(_.QS("",void 0,"QwJs6"));var m=J.next().value,r=J.next().value;return _.u("learning-journey-quiz-view-model",{class:_.NO("learningQuizComponentHost","learningJourneyQuizYoututorHost",q.className),style:_.ZU({background:function(){return _.XO(_.mU(b())).backgroundColor}})},_.u("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},m),_.u("div",{class:"learningQuizComponentQuizContainer"},_.u("div",{class:"learningQuizComponentQuiz"},_.u("div",{class:"learningQuizComponentQuizContent"},_.u(_.t,{cond:function(){return!!b().aiGeneratedQuizLabel},
then:function(){return _.u("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.u(_.Zc,{text:function(){return b().aiGeneratedQuizLabel}}))}}),_.u("div",{class:"learningQuizComponentQuizHeader",
style:_.ZU({"align-items":function(){return b().overflowMenu?"start":"center"}})},_.u("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.ZU({"min-height":function(){return b().overflowMenu?"48px":"26px"}})},_.u("div",{class:"learningJourneyQuizYoututorText",
style:_.ZU({color:function(){return _.XO(_.mU(b())).primaryTextColor}})},_.u(_.Zc,{text:function(){return b().questionHeaderText}})))),_.u("div",{class:"learningQuizComponentQuizSubheader",
style:_.ZU({color:function(){return _.XO(_.mU(b())).secondaryTextColor}})},_.u(_.Zc,{text:function(){var X=b();
return z()?X.explanationText:X.questionSubheaderText}}))),_.u("div",{role:"group",
class:_.NO("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.u(_.Tf,{each:function(){return b().optionsData||[]}},function(X,V){var G={};
return _.u("button",{class:_.NO("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(G.learningQuizComponentQuizHover=function(){return!z()},G.learningQuizComponentQuizOptionWithCustomColor=y,G.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return z()&&c(V())},G.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return E()!==b().correctAnswerIndex&&R(V())},G.learningQuizComponentQuizIncorrectShake=
function(){return E()!==b().correctAnswerIndex&&R(V())},G)),
"on:click":_.y0(function(){if(z())return!1;F(V());var w,D;r(c(V())?((w=b().successTitle)==null?void 0:w.content)||"":((D=b().failureTitle)==null?void 0:D.content)||"");return!1}),
style:_.ZU({background:"transparent"}),"aria-description":function(){var w,D;return z()?c(V())?(w=b().successTitle)==null?void 0:w.content:(D=b().failureTitle)==null?void 0:D.content:""},
"aria-disabled":z,el:_.ai(function(w){_.V_(271905,w,N,function(D){N=D})}),
"client-ve-type":271905},_.u("div",{class:"learningQuizComponentQuizOptionContainer"},_.u(_.Zc,{text:X.optionText}),_.u(_.t,{cond:function(){var w=V();return z()&&(R(w)||c(w))},
then:function(){var w={};return _.u(_.FQ,{className:_.NO("learningJourneyQuizYoututorOptionIcon",(w.learningQuizComponentQuizPulse=function(){return E()===b().correctAnswerIndex&&c(V())},w)),
size:24,icon:function(){return c(V())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.u(_.t,{cond:z,
then:function(){return _.u("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.u("div",{class:"learningJourneyQuizYoututorExplanationText"},_.u(_.Zc,{text:function(){return b().explanationHeaderText}})),_.u(_.Zc,{text:function(){return b().optionsData[E()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"te");
Iex.idomCompat=!0;var T_l;_.sFJ=_.n(function(q){var N=null,b=null,y=null,J=function(){return q.data()},E=function(){return _.XO(_.mU(J()))},F=function(){return!!E().optionColor},R=_.Z(_.QS(-1,void 0,"gXauJb")),c=R.next().value,z=R.next().value,m=function(S){return c()===S},r=function(S){return J().correctAnswerIndex===S},X=function(){return c()!==-1},V=function(){return c()===J().correctAnswerIndex},G=function(){var S=J(),W=X(),M=V();
return W?M?S.successTitle:S.failureTitle:S.questionHeaderText},w=function(){var S=X(),W=V();
return S?W?264685:264684:264683},D=function(){var S=J();
return X()?S.explanationText:S.questionSubheaderText},k=function(){return!!J().video},f=function(S){return V()&&r(S)},L=_.y0(function(){z(-1);
return!1});
return _.u(_.t,{cond:function(){return J().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.u(Iex,{data:function(){return J()}})},
else:function(){return _.u("learning-journey-quiz-view-model",{class:_.NO("learningQuizComponentHost",q.className),style:_.ZU({background:function(){return E().backgroundColor}})},_.u(_.t,{cond:k,
then:function(){return _.u("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.ZU({background:function(){return E().videoBackgroundColor}})},_.u(_.zS,{data:function(){return J().video}},{lockupViewModel:function(S){return _.u(_.UE,{data:S.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.u("div",{class:"learningQuizComponentQuizContainer"},_.u("div",{class:"learningQuizComponentQuiz"},_.u("div",{class:"learningQuizComponentQuizContent"},_.u(_.t,{cond:function(){return!!J().aiGeneratedQuizLabel},
then:function(){return _.u("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.u(_.Zc,{text:function(){return J().aiGeneratedQuizLabel}}))}}),_.u("div",{class:"learningQuizComponentQuizHeader",
style:_.ZU({"align-items":function(){return J().overflowMenu?"start":"center"}})},_.u("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.ZU({"min-height":function(){return J().overflowMenu?"48px":"26px"}})},_.u("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.ai(function(S){_.V_(w(),S,N,function(W){N=W})}),
style:_.ZU({color:function(){return E().primaryTextColor}}),
"client-ve-type":w},_.u(_.Zc,{text:G}))),_.u("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.u(_.t,{cond:X,then:function(){return _.u("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.ai(function(S){_.V_(264687,S,b,function(W){b=W})}),
"on:click":L,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.u("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.ZU({fill:function(){return E().primaryTextColor}})},_.u("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"})))}}),
_.u(_.zS,{data:function(){return J().overflowMenu}},{buttonViewModel:function(S){return _.u(_.Ou,{data:S.data})}}))),_.u("div",{class:"learningQuizComponentQuizSubheader",
el:_.ai(function(S){_.V_(264688,S,y,function(W){y=W})}),
style:_.ZU({color:function(){return E().secondaryTextColor}}),
"client-ve-type":264688},_.u(_.Zc,{text:D}))),_.u("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.u(_.Tf,{each:function(){return J().optionsData||[]}},function(S,W){var M={};
return _.u("button",{class:_.NO("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(M.learningQuizComponentQuizHover=function(){return!X()},M.learningQuizComponentQuizOptionWithCustomColor=F,M.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return f(W())},M.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!V()&&m(W())},M.learningQuizComponentQuizIncorrectShake=function(){return!V()&&
m(W())},M.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return X()&&!m(W())},M)),
"on:click":_.y0(function(){if(X())return!1;z(W());return!1}),
style:_.ZU({background:function(){var qe=W();return X()&&m(qe)?"":F()?E().optionColor:"transparent"}}),
"aria-disabled":X,"client-ve-type":264686},_.u("div",{class:"learningQuizComponentQuizOptionContainer"},_.u(_.t,{cond:X,then:function(){return _.u(T_l,{isOptionCorrect:r,optionIndex:W,isOptionSelectedAndCorrect:f,colors:E})}}),_.u(_.Zc,{text:S.optionText})))})))))}})},"ue");
T_l=_.n(function(q){var N={};return _.u("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var b=q.optionIndex();return q.isOptionCorrect(b)?"0 0 24 24":"0 -960 960 960"},
class:_.NO("learningJourneyQuizViewModelQuizOptionIconLeading",(N.learningQuizComponentQuizPulse=function(){return q.isOptionSelectedAndCorrect(q.optionIndex())},N)),
style:_.ZU({fill:function(){return q.colors().primaryTextColor}})},_.u("path",{d:function(){var b=q.optionIndex();
return q.isOptionCorrect(b)?"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");
_.sFJ.idomCompat=!0;_.P$(_.sFJ,"learning-journey-quiz-view-model",{props:{data:_.F5,className:_.F5}});var nqJ=_.n(function(q){var N=_.Z((0,_.qyF)(function(){var F;return{targetId:(F=q.data().config)==null?void 0:F.suspenseKey,contents:[q.data()]}})).next().value,b=_.tz().resolve(_.rO),y=function(){var F=N().contents.length>0?N().contents[0]:void 0;
return F==null?void 0:F.config},J=function(){var F;
return(F=y())==null?void 0:F.entityTriggerConfig},E=_.dj(FEA,function(){var F,R;
return(R=(F=J())==null?void 0:F.entityKey)!=null?R:""});
_.Sx(function(){var F,R,c,z=(c=Number((F=J())==null?void 0:(R=F.invalidationTimestamp)==null?void 0:R.seconds))!=null?c:0,m,r,X;if(((X=Number((m=E())==null?void 0:(r=m.lastUpdated)==null?void 0:r.seconds))!=null?X:0)>z){var V;(F=(V=y())==null?void 0:V.continuationCommand)&&b.resolveCommand(F)}},"tC8nKe");
return _.u("yt-suspense-view-model",{class:_.NO("ytSuspenseViewModelHost")},_.u(_.zS,{data:function(){var F;return(F=y())==null?void 0:F.contents}},{lockupViewModel:_.UE}))},"xe");var ae1=_.n(function(q){var N=_.Sl(q,{palette:void 0,isLastItem:!1}),b=N.palette,y=N.isLastItem,J=function(){return q.data().isHighlighted},E=function(){var c;
return ryJ((c=b())==null?void 0:c.iconDisabledColor)},F=function(){var c;
return ryJ((c=b())==null?void 0:c.primaryTitleColor)},R=function(){var c;
return ryJ((c=b())==null?void 0:c.secondaryTitleColor)};
N={};return _.u("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.ai(_.QR(function(){return q.data().rendererContext}))},_.u(_.zS,{data:function(){return q.data().thumbnail}},{thumbnailViewModel:_.Gv}),_.u("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.u("div",{class:_.NO("ytMacroMarkerListItemViewModelTimeDescription",(N.ytMacroMarkerListItemViewModelHighlighted=J,N)),
style:_.ZU({"background-color":function(){return J()?F():E()},
color:function(){return J()?"":R()}})},_.u(_.Zc,{text:function(){return q.data().timestamp}})),_.u("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.ZU({"background-color":function(){return y()?"transparent":E()}})}),_.u("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(J()?F():R())}},_.u(_.Zc,{text:function(){return q.data().title}}))))},"ye");_.uF=_.n(function(q){function N(Fd){f("transform:translateX("+(_.M7("HTML_DIR")==="rtl"?"":"-")+Fd+"px)")}
function b(Fd){return Math.min(Math.max(Fd,0),k()-qe())}
function y(){var Fd=W()+rA();return J()?(Math.round(qe()/Fd)||1)*Fd:0}
var J=function(){return q.data().items||[]},E=function(){return q.data().previousButton},F=function(){return q.data().nextButton},R=function(){var Fd,yF;
return(yF=(Fd=q.disableArrows)==null?void 0:Fd.call(q))!=null?yF:!1},c=function(){var Fd;
return!((Fd=q.forceNarrowLayout)==null||!Fd.call(q))},z=_.K3(function(){var Fd;
return!((Fd=q.centerAlignItems)==null||!Fd.call(q))&&k()<=qe()},void 0,"Uto0kc"),m=_.dI("horizontal-shelf-view-model"),r=_.dI("div"),X=_.Z(_.QS(0,void 0,"G0xZB")),V=X.next().value,G=X.next().value;
X=_.Z(_.QS(0,void 0,"kqCYFf"));var w=X.next().value,D=X.next().value,k=w;w=_.Z(_.QS("",void 0,"Hh6Uye"));X=w.next().value;var f=w.next().value;w=_.Z(_.QS(0,void 0,"yMGBKb"));var L=w.next().value,S=w.next().value,W=L;w=_.Z(_.QS(0,void 0,"VChthd"));L=w.next().value;var M=w.next().value,qe=L;w=_.Z(_.QS(!1,void 0,"qJlhhe"));var RJ=w.next().value,tZ=w.next().value;w=_.Z(_.QS(0,void 0,"x7H94"));L=w.next().value;var wA=w.next().value,rA=L;w=_.Z(_.QS(0,void 0,"ksuUee"));var xD=w.next().value,IJ=w.next().value;
w=_.Z(_.QS("50%",void 0,"uxCxde"));var sJ=w.next().value,Sn=w.next().value,YE=function(){var Fd,yF=(Fd=q.data())==null?void 0:Fd.responsiveContainerConfiguration,vR,ej;return yF?hO(yF==null?void 0:yF.responsiveSize):(ej=(vR=q.sizing)==null?void 0:vR.call(q))!=null?ej:"STANDARD"};
w=_.K3(function(){return!R()&&V()>0},void 0,"XK60w");
L=_.K3(function(){return!R()&&V()<k()-qe()},void 0,"D22LVd");
var xE=function(){G(b(V()-y()));N(V())},qv=function(){G(b(V()+y()));
N(V())},mM=function(){m.value!==null&&h4()},Ox;
_.WC(function(){h4();window.ResizeObserver?(Ox=new ResizeObserver(_.vE(mM,0)),Ox.observe(m.value)):window.addEventListener("resize",mM)});
_.W1(function(){if(window.ResizeObserver){var Fd;(Fd=Ox)==null||Fd.disconnect()}else window.removeEventListener("resize",mM)});
var h4=function(){var Fd=m.value.clientWidth,yF=q.includeMargin!==void 0?q.includeMargin():!1,vR;var ej=q.hasPeek!==void 0?q.hasPeek():!((vR=q.data())==null||!vR.hasPeek);Fd=_.D7({containerWidth:Fd,hasPeek:ej,sizing:YE(),marginSettings:yF?c()?4:1:0});wA(Fd.gutter);IJ(Fd.margin);S(Fd.itemWidth);tZ(Fd.maxContainerWidth<528||c());M(Fd.maxContainerWidth);J()&&D((Fd.itemWidth+Fd.gutter)*J().length-Fd.gutter);if(J()){var Go;if(((Go=q.thumbnailAspectRatio)==null?void 0:Go.call(q))!==void 0){var qN;Sn(W()/
shA((qN=q.thumbnailAspectRatio)==null?void 0:qN.call(q))/2+"px")}else Sn("50%")}},QC={},rp={};
return _.u("horizontal-shelf-view-model",{class:_.NO("ytwHorizontalShelfViewModelHost",q.className),el:m},_.u(_.t,{cond:function(){var Fd;return q.data().header&&!((Fd=q.horizontalShelfExperiments)==null?0:Fd.call(q).hideHeader)},
then:function(){return _.u("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.ZU({width:function(){return qe()+"px"},
padding:function(){return"0 "+xD()+"px"}})},_.u(_.zS,{data:function(){return q.data().header}},{sectionHeaderViewModel:function(Fd){return _.u(_.sQ,{data:Fd.data,
disableHorizontalPadding:!0,forceSmallLayout:RJ,useResponsiveLayout:!0})}}))}}),_.u("div",{class:_.NO("ytwHorizontalShelfViewModelOuterContainer",(QC.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return z()},QC)),
style:_.ZU({"margin-top":function(){var Fd,yF=q.data().header&&!((Fd=q.horizontalShelfExperiments)==null?0:Fd.call(q).hideHeader),vR;return(((vR=q.ensureMarginTop)==null?0:vR.call(q))&&!yF?12:0)+"px"}})},_.u("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.ZU({width:function(){return qe()+"px"},
padding:function(){return"0 "+xD()+"px"},
overflow:function(){return R()?"auto":"hidden"}})},_.u("div",{class:_.NO("ytwHorizontalShelfViewModelItems",(rp.ytwHorizontalShelfViewModelCenterAlignItems=function(){return z()},rp)),
el:r,style:X},_.u(_.zS,{data:J},{macroMarkerListItemViewModel:function(Fd,yF){return _.u("div",{style:_.ZU({width:function(){return W()+"px"},
"margin-right":function(){return(yF()===J().length-1?0:rA())+"px"}})},_.u(ae1,{data:Fd.data,
palette:_.aU(q.palette),isLastItem:function(){return yF()===J().length-1}}))},
lockupViewModel:function(Fd,yF){var vR=Fd.data;return _.u("div",{style:_.ZU({width:function(){return W()+"px"},
"margin-right":function(){return(yF()===J().length-1?0:rA())+"px"}})},_.u(_.UE,{data:vR,
containerType:4,sizing:YE,protectBackground:q.protectBackground,thumbnailFixedWidth:function(){return XUd(vR())+"px"},
thumbnailTargetWidth:function(){return XUd(vR())}}))},
suspenseViewModel:function(Fd,yF){return _.u("div",{style:_.ZU({width:function(){return W()+"px"},
"margin-right":function(){return(yF()===J().length-1?0:rA())+"px"}})},_.u(nqJ,{data:Fd.data}))}}))),_.u(_.t,{cond:w,
then:function(){return _.u("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.ZU({top:function(){return sJ()}})},_.u(_.zS,{data:E},{buttonViewModel:function(Fd){return _.u(_.Ou,{data:Fd.data,
onClick:xE})}}))}}),_.u(_.t,{cond:L,
then:function(){return _.u("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.ZU({top:function(){return sJ()}})},_.u(_.zS,{data:F},{buttonViewModel:function(Fd){return _.u(_.Ou,{data:Fd.data,
onClick:qv})}}))}})))},"ze");
_.uF.idomCompat=!0;var SBE=_.n(function(q){var N=function(){return q.data().targetId||""},b=function(){var w;
return((w=q.data())==null?void 0:w.expansionEntityKey)||""},y=_.dj(_.ZZA,b),J=!0,E=function(){var w;
return((w=y())==null?void 0:w.value)===N()},F=function(w){_.nk(_.$e("stringEntity",b(),{key:b(),
value:w?N():""}))};
_.SI(function(){J=!1;q.data().isExpanded&&F(!0)});
var R=function(){if(E()){var w=!0;q.onCollapse!==void 0&&(w=q.onCollapse());w&&F(!1)}else F(!0)},c=_.y0(R),z=function(){var w;
return(((w=q.accordionStyle)==null?void 0:w.call(q))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},m=_.dI("div"),r=function(){var w,D;
return(D=(w=_.v(q.data().rendererContext,_.$A))==null?void 0:w.label)!=null?D:""},X=function(){var w,D;
return{disabled:(w=q.hideIfNotExpanded)==null?void 0:w.call(q),ariaHidden:(D=q.hideIfNotExpanded)==null?void 0:D.call(q)}},V={},G={};
return _.u("yt-accordion-item-view-model",{class:_.NO("ytAccordionItemViewModelHost",q.className,(V.ytAccordionItemViewModelExpanded=function(){return E()},V.ytAccordionItemViewModelHidden=function(){var w;
return(w=q.hideIfNotExpanded)==null?void 0:w.call(q)},V.ytAccordionItemViewModelMini=z,V)),
"data-target-id":N},_.u("div",{class:"ytAccordionItemViewModelContainer"},_.u("div",{class:"ytAccordionItemViewModelLeftSection","on:click":c,title:r,"aria-hidden":function(){var w;return(w=q.hideIfNotExpanded)==null?void 0:w.call(q)}},_.u(_.Zc,{text:function(){return q.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:r})),_.u("div",{class:"ytAccordionItemViewModelRightSection"},_.u(_.zS,{data:function(){return E()?q.data().expandButton:q.data().collapseButton}},{buttonViewModel:function(w){return _.u(_.Ou,{data:w.data,
className:"ytAccordionItemViewModelToggleButton",onClick:R,buttonOverrides:X})}}))),_.u("div",{class:"ytAccordionItemViewModelContainer"},_.u("div",{class:_.NO("ytAccordionItemViewModelContent",(G.ytAccordionItemViewModelExpandedSubtitle=function(){return E()},G)),
el:m,style:_.ZU({"max-height":function(){return J?"auto":E()?m.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!E()}},_.u(_.t,{cond:function(){return!z()},
then:function(){return _.u(_.Zc,{text:function(){return q.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.u(_.zS,{data:function(){return q.data().content}},{horizontalShelfViewModel:function(w){return _.u(_.uF,{data:w.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Be");_.WVx=_.n(function(q){var N=_.Z((0,_.qyF)(q.data)).next().value,b=function(){return q.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},y=function(){return b()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},J=_.Z(_.QS(!0,void 0,"VFpYAb")),E=J.next().value,F=J.next().value,R=function(){return y()&&E()},c=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){F(!E())}}},z=_.y0(function(){N().onTitleTap&&_.Kt(N().onTitleTap||{})});
J={};return _.u("yt-accordion-view-model",{class:_.NO("ytAccordionViewModelHost",(J.ytAccordionViewModelMinimized=function(){return R()},J)),
"data-target-id":function(){return q.data().targetId||""}},_.u(_.t,{cond:function(){return y()||!!N().title},
then:function(){return _.u("div",{class:"ytAccordionViewModelHeader"},_.u("div",{class:"ytAccordionViewModelTitleSection"},_.u("div",{class:"ytAccordionViewModelTitleWrapper"},_.u(_.t,{cond:function(){return!!q.data().headerIcon},
then:function(){return _.u(_.FQ,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var m;return(m=q.data().headerIcon)==null?void 0:m.iconType}})}}),_.u("div",{class:"ytAccordionViewModelTitle",
"on:click":z},_.u(_.Zc,{className:"ytAccordionViewModelTitleText",text:function(){return N().title}})))),_.u("div",{class:"ytAccordionViewModelButtonSection"},_.u(_.t,{cond:y,
then:function(){return _.u(_.GE,{data:c,iconName:function(){return R()?"chevron_down":"chevron_collapse"}})}})))}}),_.u("div",{class:"ytAccordionViewModelContent"},_.u(_.zS,{data:function(){return N().contents}},{accordionItemViewModel:function(m){return _.u(SBE,{data:m.data,
className:"ytAccordionViewModelRow",accordionStyle:b,hideIfNotExpanded:R,onCollapse:function(){return y()?(F(!0),!1):!0}})}})),_.u("div",null,_.u(_.t,{cond:function(){return!y()&&(!!N().disclaimerFooter||!!N().footer)},
then:function(){return _.u("div",{class:"ytAccordionViewModelFooter"},_.u(_.Zc,{text:function(){return N().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.u(_.zS,{data:function(){return q.data().footer}},{flexibleActionsViewModel:function(m){return _.u(_.NW,{data:m.data,
layout:0})}}))}})))},"Ce");_.P$(_.WVx,"yt-accordion-view-model",{props:{data:_.F5}});_.P$(_.n(function(q){var N=null,b=null,y,J=(y=_.tz().resolve(_.$f(_.ft)))==null?void 0:y(),E=_.Z(_.QS(!1,void 0,"CmEVtc"));y=E.next().value;var F=E.next().value;E=_.Z(_.QS(!0,void 0,"yo9dR"));var R=E.next().value,c=E.next().value,z=_.dI("textarea",function(D){_.V_(264503,D,N,function(k){N=k})}),m=function(D){F(!0);
D={learningJourneyFormData:{query:D}};_.Kt(q.data().searchEndpoint||{},{form:{formData:D}});return!1},r=_.y0(function(D){D.target.closest("button-view-model")&&F(!0)});
E=_.y0(function(){c(z.value.value.length===0)});
var X=_.y0(function(D){if(D.key==="Enter"&&!D.shiftKey&&!R()){var k=D.target;D.preventDefault();m(k.value)}}),V={},G={},w={};
return _.u("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.u("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.u(_.s_,{data:function(){return q.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.u("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.u("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.u("div",{class:_.NO("ytLearningJourneyZeroStateSearchBar",(V.ytLearningJourneyZeroStateSearchBarDark=J,V))},_.u("textarea",{class:_.NO("ytLearningJourneyZeroStateTextInput",(G.ytLearningJourneyZeroStateTextInputDark=J,G)),el:z,"on:keyup":E,"on:keydown":X,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.u("div",{class:_.NO("ytLearningJourneyZeroStateSearchButtonContainer",(w.ytLearningJourneyZeroStateSearchButtonContainerDark=J,w))},_.u(_.Ou,{data:function(){return _.v(q.data().searchButton,_.FF)},
className:"search-button",onClick:function(){return m(z.value.value)},
buttonOverrides:function(){return{disabled:R(),style:J?"mono-inverse":"mono",size:"XL"}}}))),_.u(_.t,{cond:function(){return!!q.data().errorBanner},
then:function(){return _.u("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.ai(function(D){_.V_(264617,D,b,function(k){b=k})})},_.u(_.zS,{data:function(){return q.data().errorBanner}},{alertBannerViewModel:function(D){return _.u(_.cCM,{data:D.data,
"client-ve-type":264617})}}))}})),_.u(_.t,{cond:y,
then:function(){return _.u("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.u(_.zS,{data:function(){return q.data().loader}},{learningJourneyLoaderViewModel:function(D){return _.u(_.CyR,{data:D.data})}}))},
else:function(){return _.u("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.u(_.t,{cond:function(){return!!q.data().learningJourneyShelf},
then:function(){return _.u("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.u("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return q.data().learningJourneySectionTitle}),_.u(_.zS,{data:function(){return q.data().learningJourneyShelf}},{horizontalShelfViewModel:function(D){return _.u(_.uF,{data:D.data,
centerAlignItems:!0})}}))}}),_.u("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.u("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return q.data().suggestedJourneySectionTitle}),_.u("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":r},_.u(_.zS,{data:function(){return q.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(D){return _.u(_.NW,{data:D.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"De"),"yt-learning-journey-zero-state",{props:{data:_.F5}});var LV1=_.n(function(q){var N=q.data;return _.u("ytvl-live-leaderboard-item-action-content-view-model",{class:_.NO("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.u(_.Zc,{text:function(){var b;return(b=N())==null?void 0:b.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.u(_.zS,{data:function(){return N().actionButton}},{buttonViewModel:function(b){return _.u(_.Ou,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:b.data})}}))},"Ee");var psx=_.n(function(q){var N=q.data;return _.u("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.NO("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.u(_.Zc,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var b;return(b=N())==null?void 0:b.displayName},
ellipsisTruncate:!0}),_.u(_.zS,{data:function(){return N().badge}},{buttonViewModel:function(b){return _.u(_.Ou,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:b.data})}}))},"Fe");_.P$(_.n(function(q){var N=q.data;return _.u("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.u("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.u(_.Zc,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var b;return(b=N())==null?void 0:b.rank}})),_.u("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.u(_.zS,{data:function(){return N().avatar}},{avatarViewModel:_.HF})),_.u("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.u(_.zS,{data:function(){return N().content}},{liveLeaderboardItemChannelContentViewModel:psx,
liveLeaderboardItemActionContentViewModel:LV1})),_.u(_.Zc,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var b;return(b=N())==null?void 0:b.points}}))},"Ge"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.F5}});_.P$(_.n(function(q){var N=q.data;return _.u("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.u(_.Zc,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var b,y;return(b=N())==null?void 0:(y=b.ranking)==null?void 0:y.rank}}),_.u("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.u(_.zS,{data:function(){return N().avatar}},{avatarViewModel:_.HF})),_.u(_.Zc,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var b,y;return(b=N())==null?void 0:(y=b.channelContent)==null?void 0:y.channelName}}),_.u(_.Zc,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var b;return(b=N())==null?void 0:b.points}}))},"He"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.F5}});var Pyl=_.n(function(q){q=_.Sl(q,{wrapper:!1}).wrapper;return _.u(_.t,{cond:q,then:function(){return _.u("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.u("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.u("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Ie");
Pyl.idomCompat=!0;var MJv=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],oqq=_.n(function(q){var N=q.data;var b=_.ai(),y=_.K3(function(){return N().command},void 0,"fyYsT");
_.Sx(function(){y()&&_.wa(y(),{form:{element:b.value}})},"B0nxdb");
return _.u("div",{el:b,class:"YtQrCodeRendererHostContainer"},_.u(_.t,{cond:function(){return N().qrCodeImage},
then:function(J){return _.u(_.s_,{data:J,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.u(_.t,{cond:function(){return N().spinner},
then:function(){return _.u(Pyl,null)}})}}),_.u(_.t,{cond:function(){return N().label},
then:function(J){return _.u(_.Zc,{text:J,className:"YtQrCodeRendererHostLabel"})}}),_.u(_.t,{cond:function(){return N().labels},
then:function(J){return _.u("div",{class:"YtQrCodeRendererHostLabels"},_.u(_.Tf,{each:J},function(E){return _.u(_.Zc,{text:E})}))}}))},"Le");_.P$(_.n(function(q){var N=q.data;var b=_.K3(function(){return N().qrEntityKey},void 0,"LmZ2xf"),y=_.K3(function(){return N().deleteEntityOnDismiss},void 0,"my0Tzb"),J=_.K3(function(){return N().command},void 0,"hzECIb"),E=_.dj(vnu,b);
q=_.K3(function(){return N().qrCodeImage},void 0,"AnD9rc");
var F=_.K3(function(){return N().style&&MJv.includes(N().style)},void 0,"f5fZv"),R=_.mn({visibilityCallback:function(c){c&&J()&&_.wa(J())},
showOption:{calledOnce:!0,state:"visible"}});_.WC(function(){_.W1(function(){y()&&b()&&_.sk().dispatch(_.$e("qrCodeEntity",b()))})});
return _.u("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.ai(R)},_.u(_.t,{cond:F,then:function(){return _.u(_.t,{cond:E,then:function(c){return _.u(oqq,{data:c})}})}}),_.u(_.t,{cond:q,
then:function(c){return _.u(_.s_,{data:c,alt:""})}}))},"Je"),"yt-qr-code-renderer",{props:{data:_.F5}});var eGT=_.n(function(q){var N=function(){return _.Y8(1728053247&(q.barColor!==void 0?Rm(q.barColor()):4278190080))};
return _.u("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.u("div",{class:"ytVideoOverviewGhostCardDetails"},_.u(ACj,{animationDelay:0,percentWidth:100,barColor:function(){return N()}}),_.u(ACj,{animationDelay:600,
percentWidth:60,barColor:function(){return N()}})))},"Me"),ACj=_.n(function(q){return _.u("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+q.percentWidth()+"%"}},_.u("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var N=q.animationDelay(),b=q.barColor();return"animation-delay:"+N+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+b+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Ne");var B_l;_.Hll=_.n(function(q){function N(k){F(k)}
var b=q.data;var y=_.dI("yt-video-overview-view-model"),J=_.cK("div");q=_.Z(_.QS(-1,void 0,"dW11He"));var E=q.next().value,F=q.next().value;q=_.Z(_.QS(0,void 0,"LqrsK"));var R=q.next().value,c=q.next().value,z={},m=_.dj(VKA,function(){return b().asyncDataEntityKey}),r=function(){var k;
if((k=m())==null?0:k.videoOverviewViewModel){var f;return _.v((f=m())==null?void 0:f.videoOverviewViewModel,G9x)}return b()};
_.WC(function(){c(Math.min((y.value.clientWidth-24)/4-8,72))});
var X=function(k){F(k);(J==null?0:J.value)&&J.value.children[k]&&J.value.children[k].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
YZR(y,function(){var k;if((k=r())==null||!k.inlinePlaybackEndpoint)return null;var f;k=z==null?void 0:(f=z.thumbnailElRef)==null?void 0:f.value;if(!k)return null;var L;f=(L=r())==null?void 0:L.inlinePlaybackEndpoint;L=_.v(f,sVR);return{multipleVideoPreviewData:{data:(L==null?0:L.playerDescriptors)&&(L==null?0:L.playerDescriptors.length)?L.playerDescriptors:[],thumbnailElement:k,trackingParams:"test",callbacks:{onPlaybackStarted:X},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var V=function(){var k;return((k=r())==null?void 0:k.headerSubtext)!==void 0?!0:!1},G=function(){var k,f=Rm((k=r())==null?void 0:k.titleColor);
return f?"color: "+_.Y8(f)+";":void 0},w=function(){var k,f=Rm((k=r())==null?void 0:k.subtextColor);
return f?"color: "+_.Y8(f)+";":void 0},D=function(){return _.u("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.u("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return G()}},_.u(_.Zc,{text:function(){var k;
return(k=r())==null?void 0:k.headerText}})),_.u(_.t,{cond:V,
then:function(){return _.u("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.u("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return w()}},_.u(_.FQ,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.u("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return w()}},_.u(_.Zc,{text:function(){var k;
return(k=r())==null?void 0:k.headerSubtext}})))}}))};
q={};return _.u("yt-video-overview-view-model",{class:_.NO("ytGenAiVideoOverviewViewModelHost",(q.ytGenAiVideoOverviewViewModelMweb=!1,q.ytGenAiVideoOverviewViewModelDesktop=!0,q)),el:y,style:function(){var k,f=Rm((k=r())==null?void 0:k.backgroundColor);return f?"background-color: "+_.Y8(f)+";":void 0}},_.u(_.t,{cond:function(){var k;
return(k=r())==null?void 0:k.isLoading},
then:function(){return _.u(eGT,{barColor:function(){var k;return(k=r())==null?void 0:k.titleColor}})},
else:function(){return _.u(_.rV,null,null,_.u("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.u(_.zS,{data:function(){var k;return(k=r())==null?void 0:k.thumbnail}},{thumbnailViewModel:function(k){return _.u(_.Gv,{data:k.data,
aspectRatio:0,playbackRef:vKz(z)})}})),_.u("div",{class:"ytGenAiVideoOverviewViewModelDetails"},D(),_.u(_.t,{cond:function(){var k,f,L,S;
return((k=r())==null?void 0:(f=k.listItems)==null?void 0:f.length)!==void 0&&((L=r())==null?void 0:(S=L.listItems)==null?void 0:S.length)>0?!0:!1},
then:function(){return _.u("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:J},_.u(_.Tf,{each:function(){var k;return(k=r())==null?void 0:k.listItems}},function(k,f){return _.u(B_l,{image:k.image,
index:f,isSelected:function(){return f()===E()},
onClick:N,itemWidth:R})}))}}),_.u("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.u("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return G()}},_.u(_.Zc,{text:function(){var k,f,L,S,W,M,qe;
return(qe=(k=r())==null?void 0:(f=k.listItems)==null?void 0:(L=f[E()])==null?void 0:L.headline)!=null?qe:(S=r())==null?void 0:(W=S.listItems)==null?void 0:(M=W[0])==null?void 0:M.headline}})),_.u("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return w()}},_.u(_.Zc,{text:function(){var k,f,L,S,W,M,qe;
return(qe=(k=r())==null?void 0:(f=k.listItems)==null?void 0:(L=f[E()])==null?void 0:L.subtext)!=null?qe:(S=r())==null?void 0:(W=S.listItems)==null?void 0:(M=W[0])==null?void 0:M.subtext}})))))}}))},"Oe");
B_l=_.n(function(q){var N=q.image;var b=q.itemWidth;var y=q.index;var J=q.isSelected;var E=q.onClick;q=_.y0(function(){y!==void 0&&E!==void 0&&E(y());return!1});
var F={};return _.u("div",{class:_.NO("ytGenAiVideoOverviewViewModelCarouselItem",(F.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return J==null?void 0:J()},F)),
style:function(){return"width: "+b()+"px;"},
"on:click":q},_.u(_.s_,{data:N,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.u(_.t,{cond:function(){return J==null?void 0:J()},
then:function(){return _.u("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.u("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Pe");
_.Hll.idomCompat=!0;_.P$(_.Hll,"yt-video-overview-view-model",{props:{data:_.F5}});_.qJa=_.n(function(q){var N=q.data;var b=q.topbarOffset;var y,J=((y=_.tz().resolve(_.$f(_.ft)))==null?void 0:y())||!1;return _.u("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var E=N();var F,R,c=J?(F=E.config)==null?void 0:F.darkThemeBackgroundColor:(R=E.config)==null?void 0:R.lightThemeBackgroundColor;E=c?_.GM(c):void 0;E="background-color: "+E+";";b!==void 0&&(E+="top: -"+b()+"px;");return E},
"aria-hidden":!0},_.u(_.t,{cond:function(){var E,F,R;return!!((E=N().backgroundImageConfig)==null?0:(F=E.image)==null?0:(R=F.sources)==null?0:R.length)},
then:function(){return _.u(_.s_,{data:function(){var E;return(E=N().backgroundImageConfig)==null?void 0:E.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.u("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+j3A(J,N().gradientColorConfig)+";"}}))},"Qe");
_.qJa.idomCompat=!0;var NAa=_.n(function(q){var N=q.data;var b=q.isOverlay;return _.u("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.u("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.u(_.zS,{data:function(){return N().header}},{sectionHeaderViewModel:function(y){return _.u(_.sQ,{data:y.data,
isOverlay:b})}})),_.u("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.u(_.zS,{data:function(){return N().channelInfoButtons}},{flexibleActionsViewModel:_.NW})),_.u("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.u(_.zS,{data:function(){return N().description}},{descriptionPreviewViewModel:function(y){return _.u(_.TH,{data:y.data,
isOverlay:b})}})))},"Re");
NAa.idomCompat=!0;var bCN=_.n(function(q){var N=q.data;var b={};return _.u("factoid-view-model",{class:_.NO("ytwFactoidViewModelHost",(b.ytwFactoidViewModelHostOverlay=q.isOverlay,b))},_.u(_.Zc,{text:function(){return N().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.u(_.Zc,{text:function(){return N().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Se");
bCN.idomCompat=!0;var yZA=_.n(function(q){var N=q.data;var b=q.isOverlay;return _.u("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.u(_.zS,{data:function(){return N().factoids}},{factoidViewModel:function(y){return _.u(bCN,{data:y.data,
isOverlay:b})}}))},"Te");
yZA.idomCompat=!0;_.JZp=_.n(function(q){var N=q.data;var b=q.isOverlay;return _.u("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.u(_.zS,{data:function(){return N().items}},{channelInfoViewModel:function(y){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(NAa,{data:y.data,
isOverlay:b}))},
coursePerksViewModel:function(y){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(hGx,{data:y.data,isOverlay:b}))},
descriptionPreviewViewModel:function(y){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(_.TH,{data:y.data,isOverlay:b}))},
factoidsRowViewModel:function(y){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(yZA,{data:y.data,isOverlay:b}))},
progressViewModel:function(y){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(kgo,{data:y.data,isOverlay:b}))}}))},"Ue");var EDC=_.n(function(q){return _.u("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.u(_.zS,{data:function(){return q.data().content}},{courseMetadataViewModel:function(N){return _.u(_.JZp,{data:N.data,
isOverlay:q.isOverlay})},
progressViewModel:function(N){return _.u(kgo,{data:N.data})}}))},"Ve");var gDB=_.n(function(q){var N=q.data;q=q.className;var b=function(){var J;return _.Ye((J=N())==null?void 0:J.rendererContext)},y={};
y=(y.dynamicTextViewModelHost=!0,y.dynamicTextViewModelHostTappable=function(){return b()},y);
return _.u("yt-dynamic-text-view-model",{el:_.ai(_.QR(function(){var J;return(J=N())==null?void 0:J.rendererContext})),
role:function(){return b()?"link":void 0},
tabindex:function(){return b()?0:void 0},
class:_.NO(q,y)},_.u("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var J,E,F;return(F=(E=_.v((J=N())==null?void 0:J.rendererContext,_.$A))==null?void 0:E.label)!=null?F:""}},_.u(_.Zc,{text:function(){return N().text},
userInput:!0})))},"We");
gDB.idomCompat=!0;_.z_=_.n(function(q){var N=q.data;var b=q.isPositionRelative;var y=_.vhz("(max-width: 527.9px)"),J=function(){var E,F;return(F=(E=N())==null?void 0:E.style)!=null?F:"IMAGE_BANNER_STYLE_FULL_BLEED"};
q={};return _.u("yt-image-banner-view-model",{el:_.ai(_.QR(function(){var E;return(E=N())==null?void 0:E.rendererContext})),
class:_.NO((q.ytImageBannerViewModelHost=!0,q.ytImageBannerViewModelInset=function(){return Gpz(J())},q.ytImageBannerViewModelPositionAbsolute=function(){return _.p3(!0)&&!(b==null?0:b())},q.ytImageBannerViewModelSmallInset=function(){return Gpz(J())&&y()},q.ytImageBannerViewModelTappable=function(){var E;
return _.Ye((E=N())==null?void 0:E.rendererContext)},q))},_.u(_.t,{cond:function(){var E;
return(E=N())==null?void 0:E.image},
then:function(){return _.u(_.s_,{data:function(){return N().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.u(_.zS,{data:function(){var E;
return(E=N())==null?void 0:E.overlays}},{thumbnailHoverOverlayViewModel:BF}))},"Xe");
_.z_.idomCompat=!0;var ZCf;ZCf=_.n(function(q){var N=q.condition;var b=q.content;return _.u(_.t,{cond:N,then:function(){return _.u("div",{class:"yt-page-header-view-model__scroll-container"},b())},
else:function(){return b()}})},"Ye");
_.Fdd=_.n(function(q){var N=q.data;var b=q.noPadding;var y=q.enableBanner;var J=q.cinematicContainerTopbarOffset;var E=q.allowCinematicContainerOverflow;var F=q.displayAsSidebar;var R=q.displayAsPanel;var c=q.alwaysUseMediumTextDescription;var z=Yye(),m=function(){return!!N().image||!!N().animatedImage},r=function(){return!!N().background},X=function(){return(F==null?0:F())||(R==null?0:R())?1:z()},V=function(){return X()===1},G=function(){return V()||X()===2},w=function(){return X()===4},D=function(){var xD=
N();
var IJ=!!N().heroImage;var sJ=X(),Sn=Q3R(N()),YE=F==null?void 0:F(),xE=!xD.metadata,qv;if(qv=IJ?_.v(xD.heroImage,cPo):_.v(xD.animatedImage||xD.image,cPo)){xD=qv.style;var mM=qv.layoutMode;if(mM!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(qv=oKe(MtR(qv)),IJ)IJ=x_J(sJ,xD,mM,qv,YE);else b:if(xE)IJ=sJ===1?{size:48}:{size:72};else switch(sJ){case 1:IJ={size:72};break b;case 2:IJ={size:120};break b;default:IJ=Sn<4?{size:120}:{size:160}}else IJ=void 0}else IJ={size:0};return IJ};
q={};q=_.NO((q["yt-page-header-view-model"]=!0,q["yt-page-header-view-model--no-padding"]=function(){return!(b==null||!b())},q["yt-page-header-view-model--small-top-padding"]=function(){return V()&&!N().actions&&!(R==null?0:R())||X()===2&&!(m()||N().heroImage)},q["yt-page-header-view-model--small-bottom-padding"]=function(){return G()&&!N().actions&&!(R==null?0:R())},q["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(E==null?0:E())},q["yt-page-header-view-model--display-as-sidebar"]=
F,q));
var k={},f=_.NO((k["yt-page-header-view-model__page-header-headline"]=!0,k["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var xD;return(xD=D())==null?void 0:xD.allowFullWidth},k)),L=function(){var xD;
return G()&&!((xD=D())==null?0:xD.allowFullWidth)},S=function(){return V()&&(!!N().heroImage||m())&&Q3R(N())>0},W=function(){return S()&&(R==null?void 0:R())};
k={};var M=_.NO((k["yt-page-header-view-model__page-header-title"]=!0,k["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!S()},k["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return S()&&!W()},k["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=W,k["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=r,k));
k={};var qe=_.NO((k["yt-page-header-view-model__page-header-headline-image"]=!0,k["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!N().heroImage&&G()},k));
k={};var RJ=_.NO((k["yt-page-header-view-model__page-header-banner-container"]=y,k["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var xD;return(y==null?void 0:y())&&((xD=_.v(N().banner,_.zH4))==null?void 0:xD.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},k));
k={};var tZ=_.NO((k["yt-page-header-view-model__page-header-content-metadata"]=!0,k["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=r,k));k={};var wA=_.NO((k["yt-page-header-view-model__page-header-flexible-actions"]=!0,k["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!N().metadata||G()},k["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!G()},k));
k={};var rA=_.NO((k["yt-page-header-view-model__page-header-attribution"]=!0,k["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=r,k));return _.u("yt-page-header-view-model",{class:q},_.u(_.t,{cond:r,then:function(){return _.u("div",{class:"yt-page-header-view-model__page-header-background"},_.u(_.zS,{data:function(){return N().background}},{cinematicContainerViewModel:function(xD){return _.u(_.qJa,{data:xD.data,
topbarOffset:J})}}))}}),_.u(ZCf,{condition:function(){return!(F==null||!F())},
content:function(){return _.u("div",{class:"yt-page-header-view-model__page-header-content"},_.u(_.t,{cond:function(){return(y==null?void 0:y())&&N().banner},
then:function(){return _.u("div",{class:RJ},_.u(_.zS,{data:function(){return N().banner}},{imageBannerViewModel:_.z_}))}}),_.u("div",{class:f},_.u(_.t,{cond:m,
then:function(){return _.u(_.zS,{data:function(){var xD;if(!(xD=N().animatedImage)){xD=N();if(m()){var IJ=xD=Object.assign({},xD),sJ=X(),Sn=Q3R(N()),YE=IJ.image,xE=_.v(YE,uiF),qv=xE==null?void 0:xE.avatar,mM=_.v(qv,_.wj);if(YE&&qv&&mM){switch(sJ){case 1:mM.avatarImageSize="AVATAR_SIZE_XL";break;case 2:mM.avatarImageSize="AVATAR_SIZE_XXL";break;default:Sn<4?mM.avatarImageSize="AVATAR_SIZE_XXL":mM.avatarImageSize="AVATAR_SIZE_XXXL"}_.x0(qv,_.wj,Object.assign({},mM));xE.avatar=Object.assign({},qv);_.x0(YE,
uiF,Object.assign({},xE));IJ.image=Object.assign({},YE)}}xD=xD.image}return xD}},{contentPreviewImageViewModel:function(xD){return _.u(_.wK,{data:xD.data,
className:qe,imageSizeConfig:D})},
decoratedAvatarViewModel:function(xD){return _.u(_.qw,{data:xD.data,className:qe})}})}}),_.u(_.t,{cond:function(){return!!N().heroImage&&!L()},
then:function(){return _.u(_.zS,{data:function(){return N().heroImage}},{contentPreviewImageViewModel:function(xD){return _.u(_.wK,{data:xD.data,
className:qe,imageSizeConfig:D})}})}}),_.u("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.u(_.t,{cond:function(){return!!N().heroImage&&L()},
then:function(){return _.u("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.u(_.zS,{data:function(){return N().heroImage}},{contentPreviewImageViewModel:function(xD){return _.u(_.wK,{data:xD.data,
className:qe,imageSizeConfig:D})}}))}}),_.u(_.zS,{data:function(){return N().title}},{dynamicTextViewModel:function(xD){return _.u(gDB,{data:xD.data,
className:M})}}),_.u(_.zS,{data:function(){return N().metadata}},{contentMetadataViewModel:function(xD){return _.u(_.l1,{data:xD.data,
layout:function(){return V()?1:0},
className:tZ,isOverlay:r,useMediumText:w})}}),_.u(_.t,{cond:function(){return N().description&&!V()},
then:function(){return _.u(_.zS,{data:function(){return N().description}},{descriptionPreviewViewModel:function(xD){return _.u(_.TH,{data:xD.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:r,maxLinesOverride:function(){return V()?void 0:1},
useMediumText:function(){return(c==null?void 0:c())||w()}})}})}}),_.u(_.t,{cond:function(){return N().attribution&&!G()},
then:function(){return _.u(_.zS,{data:function(){return N().attribution}},{attributionViewModel:function(xD){return _.u(i1,{data:xD.data,
className:rA,useMediumText:w})}})}}),_.u(_.t,{cond:function(){return N().actions&&!G()},
then:function(){return _.u(_.zS,{data:function(){return N().actions}},{flexibleActionsViewModel:function(xD){return _.u(_.NW,{data:xD.data,
layout:function(){return O2C(X())},
className:wA})}})}}))),_.u("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.u(_.t,{cond:function(){return N().description&&V()},
then:function(){return _.u(_.zS,{data:function(){return N().description}},{descriptionPreviewViewModel:function(xD){return _.u(_.TH,{data:xD.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:r,maxLinesOverride:function(){return V()?void 0:1},
useMediumText:function(){return(c==null?void 0:c())||w()}})}})}}),_.u(_.t,{cond:function(){return N().attribution&&G()},
then:function(){return _.u(_.zS,{data:function(){return N().attribution}},{attributionViewModel:function(xD){return _.u(i1,{data:xD.data,
className:rA,useMediumText:w})}})}}),_.u(_.t,{cond:function(){return N().actions&&G()},
then:function(){return _.u(_.zS,{data:function(){return N().actions}},{flexibleActionsViewModel:function(xD){return _.u(_.NW,{data:xD.data,
layout:function(){return O2C(X())},
className:wA})}})}})),_.u("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.u(_.zS,{data:function(){return N().bottomMetadataFlexibleContainer}},{flexibleContainer:function(xD){return _.u(EDC,{data:xD.data,
isOverlay:r})}})))}}))},"Ze");
_.Fdd.idomCompat=!0;_.P$(_.n(function(q){var N=_.Z(_.QS(!1,void 0,"qvRy4d")),b=N.next().value,y=N.next().value;return _.u("yt-official-card-view-model",{class:_.NO("ytOfficialCardViewModelHost",q.className),style:_.ZU({"background-color":function(){var J,E=Rm((J=q.data())==null?void 0:J.backgroundColor);return E?_.Y8(E):void 0}})},_.u(_.zS,{data:function(){return q.data().header}},{pageHeaderViewModel:function(J){return _.u(_.Fdd,{data:J.data,
noPadding:!0})}}),_.u(_.zS,{data:function(){return q.data().contents}},{horizontalShelfViewModel:function(J){return _.u(_.uF,{data:J.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.u(_.t,{cond:b,
then:function(){return _.u("div",{class:"ytOfficialCardViewModelExpandedContent"},_.u(_.zS,{data:function(){return q.data().expandedContents}},{horizontalShelfViewModel:function(J){return _.u(_.uF,{data:J.data,
sizing:"MINI"})}}),_.u("div",{class:"ytOfficialCardViewModelCollapseButton"},_.u(_.zS,{data:function(){return q.data().collapseButton}},{buttonViewModel:function(J){return _.u(_.Ou,{data:J.data,
onClick:function(){y(!b())}})}})))},
else:function(){return _.u("div",{class:"ytOfficialCardViewModelExpandButton"},_.u(_.zS,{data:function(){return q.data().expandButton}},{buttonViewModel:function(J){return _.u(_.Ou,{data:J.data,
onClick:function(){y(!b())}})}}))}}))},"$e"),"yt-official-card-view-model",{props:{data:_.F5,
className:_.F5}});var RuU=_.n(function(q){var N,b=(N=_.tz().resolve(_.$f(_.ft)))==null?void 0:N();return _.u("ytw-search-friction-view-model",{class:_.NO("ytwSearchFrictionViewModelHost",q.className)},_.u("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.u("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.u(_.t,{cond:function(){return b&&q.data().darkThemeImage?q.data().darkThemeImage:q.data().image},
then:function(y){return _.u(_.s_,{data:y,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.u(_.zS,{data:function(){return q.data().overflowMenuButton}},{buttonViewModel:function(y){return _.u(_.Ou,{data:y.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.u(_.Zc,{text:function(){return q.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.u(_.Tf,{each:function(){return q.data().bodyText||[]}},function(y){return _.u(_.Zc,{text:y,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.u(_.zS,{data:function(){return q.data().actions}},{buttonViewModel:function(y){return _.u(_.Ou,{data:y.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.u(_.Zc,{text:function(){return q.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.u(_.Zc,{text:function(){return q.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"af");
RuU.idomCompat=!0;_.P$(RuU,"ytw-search-friction-view-model",{props:{data:_.F5,className:_.F5}});_.$G=_.n(function(q){var N=_.dI("markdown-div"),b,y=(b=_.tz().resolve(_.$f(_.ft)))==null?void 0:b();_.Sx(function(){var J=N.value;var E=new g7T,F=new Map(E.JSC$9379_sanitizerTable.globalAttributePolicies);F.set("style",{policyAction:4});E.JSC$9379_sanitizerTable=new Gm(E.JSC$9379_sanitizerTable.allowedElements,E.JSC$9379_sanitizerTable.elementPolicies,E.JSC$9379_sanitizerTable.allowedGlobalAttributes,F,E.JSC$9379_sanitizerTable.globallyAllowedAttributePrefixes);var R=["data-time"];if(R===void 0)F=
new Set(E.JSC$9379_sanitizerTable.globallyAllowedAttributePrefixes),F.add("data-"),E.JSC$9379_sanitizerTable=new Gm(E.JSC$9379_sanitizerTable.allowedElements,E.JSC$9379_sanitizerTable.elementPolicies,E.JSC$9379_sanitizerTable.allowedGlobalAttributes,E.JSC$9379_sanitizerTable.globalAttributePolicies,F);else{F=new Set(E.JSC$9379_sanitizerTable.allowedGlobalAttributes);R=_.Z(R);for(var c=R.next();!c.done;c=R.next()){c=c.value;if(c.indexOf("data-")!==0)throw Error("ka`"+c);F.add(c)}E.JSC$9379_sanitizerTable=
new Gm(E.JSC$9379_sanitizerTable.allowedElements,E.JSC$9379_sanitizerTable.elementPolicies,F,E.JSC$9379_sanitizerTable.globalAttributePolicies,E.JSC$9379_sanitizerTable.globallyAllowedAttributePrefixes)}F=new Set(E.JSC$9379_sanitizerTable.allowedGlobalAttributes);F.add("class");E.JSC$9379_sanitizerTable=new Gm(E.JSC$9379_sanitizerTable.allowedElements,E.JSC$9379_sanitizerTable.elementPolicies,F,E.JSC$9379_sanitizerTable.globalAttributePolicies,E.JSC$9379_sanitizerTable.globallyAllowedAttributePrefixes);
_.d0(J,_.Nzx(E.build(),i2d(q.text())));lBA(N.value)},"OZ439c");
b={};return _.u("div",null,_.u("markdown-div",{class:_.NO("ytwMarkdownDivHost",(b.ytwMarkdownDivDark=y,b.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var J;return((J=q.isSmallText)==null?void 0:J.call(q))||!1},b.ytwMarkdownDivHostWrapCodeBlocks=function(){var J;
return((J=q.wrapCodeBlocks)==null?void 0:J.call(q))||!1},b.ytwMarkdownDivHostEnableDefaultStyling=function(){var J;
return!((J=q.disableDefaultStyling)==null?0:J.call(q))},b)),
el:N}))},"cf");
_.$G.idomCompat=!0;var deB=_.n(function(q){var N=q.imageData;var b=_.aU(q.isInList,!1),y=function(){return b()?{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 _.u("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.u(_.t,{cond:function(){return N().image},
then:function(J){return _.u(_.s_,{data:J,alt:function(){return y().alt},
contentMode:function(){return y().contentMode},
targetWidth:function(){return y().targetWidth},
targetHeight:function(){return y().targetHeight},
className:function(){return y().className}})}}),_.u("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.u("div",{class:_.NO("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.u(_.Zc,{text:function(){return N().title}})),_.u(_.Tf,{each:function(){var J;
return(J=N().description)!=null?J:[]}},function(J){return _.u("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.u(tq,{content:J}))})))},"df"),cZK=_.n(function(q){var N=q.list;
var b=function(){var y;return(y=N().items)!=null?y:[]};
return _.u("div",{class:"ytwGenAiRichTextViewModelListContent"},_.u(_.t,{cond:function(){return N().title},
then:function(y){return _.u("div",{class:_.NO("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.u(_.Zc,{text:y}))}}),_.u(_.t,{cond:function(){return N().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.u("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.u(_.Tf,{each:b},function(y){return _.u("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.u(tq,{content:y,isInList:!0}))}))}}),_.u(_.t,{cond:function(){return N().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.u("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.u(_.Tf,{each:b},function(y){return _.u("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.u(tq,{content:y,isInList:!0}))}))}}),_.u(_.t,{cond:function(){return N().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.u("div",{class:"ytwGenAiRichTextViewModelImageList"},_.u(_.Tf,{each:b},function(y){return _.u("div",{class:"ytwGenAiRichTextViewModelListItem"},_.u(tq,{content:y,isInList:!0}))}))}}))},"ef"),udd=_.n(function(q){var N=q.table;
return _.u("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.u("thead",null,_.u("tr",null,_.u(_.Tf,{each:function(){var b,y;return(y=(b=N().header)==null?void 0:b.cells)!=null?y:[]}},function(b){return _.u("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.u(_.Tf,{each:function(){return b.contents}},function(y){return _.u(tq,{content:y})}))}))),_.u("tbody",null,_.u(_.Tf,{each:function(){var b;
return(b=N().rows)!=null?b:[]}},function(b){return _.u("tr",null,_.u(_.Tf,{each:function(){return b.cells}},function(y){return _.u("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.u(_.Tf,{each:function(){return y.contents}},function(J){return _.u(tq,{content:J})}))}))})))},"ff"),tq=_.n(function(q){var N=q.content;
var b=_.aU(q.isInList,!1),y=function(){var J,E;return(E=(J=N().contentBlock)==null?void 0:J.contents)!=null?E:[]};
return _.u("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.u(_.t,{cond:function(){return N().text},
then:function(J){return _.u(_.Zc,{className:"ytwGenAiRichTextViewModelText",text:J})}}),_.u(_.t,{cond:function(){return N().image},
then:function(J){return _.u(deB,{imageData:J,isInList:b})}}),_.u(_.t,{cond:function(){return N().list},
then:function(J){return _.u(cZK,{list:J})}}),_.u(_.t,{cond:function(){return N().contentBlock},
then:function(){return _.u("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.u(_.Tf,{each:y},function(J){return _.u(tq,{content:J,isInList:!1})}))}}),_.u(_.t,{cond:function(){return N().table},
then:function(J){return _.u(udd,{table:J})}}))},"gf"),zuB=_.n(function(q){var N={};
N=_.jz("ytwGenAiRichTextViewModelHost",(N.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.jA("search_overview_link_style")),N));return _.u("gen-ai-rich-text-view-model",{class:N},_.u(tq,{content:function(){return q.data().content}}))},"hf");_.$eX=_.n(function(q){var N=q.data;var b=function(){var w;return((w=N().loadingUi)!=null?w:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},y=function(){return N().isLoading&&(b()==="UNSPECIFIED"||b()==="GHOST_CARD")},J=function(){return!N().isLoading},E=function(){return!!N().content&&!N().contents},F=function(){return!!N().contents},R=function(){return!!N().nextQueryButtons},c=function(){return N().isLoading&&b()==="INVISIBLE"},z=function(){var w,D;
return(D=(w=N().headerIcon)==null?void 0:w.iconType)!=null?D:""},m=function(){var w;
return(w=N().content)!=null?w:""},r=function(){return!!N().sourcesSection},X,V=!((X=_.tz().resolve(_.$f(_.ft)))==null||!X()),G=_.K3(function(){var w=[],D=N().contents;
if(D)for(var k=0;k<D.length;k++){var f=_.v(D&&D[k],vwJ);f&&w.push(f)}return w},void 0,"gcCsZb");
_.WC(function(){N().isLoading||_.Q6("so_re",void 0,"search_overview_answer")});
return _.u("ytd-overview-answer-view-model",{class:function(){var w={};w=(w.ytdOverviewAnswerViewModelHost=!0,w.ytdOverviewAnswerViewModelDarkBackground=V&&!c(),w.ytdOverviewAnswerViewModelLightBackground=!V&&!c(),w);return _.jz(w)}},_.u(_.t,{cond:function(){return!c()},
then:function(){return _.u(_.rV,null,_.u("h2",null,_.u("div",{class:"ytdOverviewAnswerViewModelHeader"},_.u(_.t,{cond:z,then:function(w){return _.u("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.u(_.FQ,{icon:w}))}}),_.u("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.u("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return N().headerText}),_.u("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.u(_.Zc,{text:function(){return N().headerSubtext}}))))),_.u(_.t,{cond:y,
then:function(){return _.u(Kxn,null)}}),_.u(_.t,{cond:J,
then:function(){return _.u(_.rV,null,_.u(_.t,{cond:E,then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelText"},_.u(_.$G,{text:m,isSmallText:!0}))}}),_.u(_.t,{cond:F,
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelRichText"},_.u(_.Tf,{each:G},function(w){return _.u(zuB,{data:w})}))}}),_.u(_.t,{cond:R,
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.u(_.zS,{data:function(){return N().nextQueryButtons}},{buttonViewModel:function(w){return _.u(_.Ou,{data:w.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.uF}))}}),_.u("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.u("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.u(_.t,{cond:function(){return!!_.v(N().likeButtonViewModel,_.Ba)&&!!_.v(N().dislikeButtonViewModel,_.eD)},
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.u(_.y$,{data:function(){return _.v(N().likeButtonViewModel,_.Ba)},
disableIconAnimation:!0}),_.u(_.bD,{data:function(){return _.v(N().dislikeButtonViewModel,_.eD)}}))}})),_.u(_.t,{cond:function(){var w;
return(w=N().sourcesSection)==null?void 0:w.headerText},
then:function(w){return _.u("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.u(_.Zc,{text:w}))}})),_.u(_.t,{cond:r,
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelSources"},_.u(_.zS,{data:function(){var w;return(w=N().sourcesSection)==null?void 0:w.sourcesShelf}},{buttonViewModel:_.Ou,
horizontalShelfViewModel:function(w){return _.u(_.uF,{data:w.data,includeMargin:!0,hasPeek:!0})}}))}}),_.u(_.t,{cond:function(){return N().disclaimerText},
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.u(_.Zc,{text:function(){return N().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"jf");var tnp=_.n(function(q){var N=_.Sl(q,{}).data;return _.u("yt-shopping-content-line-item-view-model",{class:_.NO("ytShoppingContentLineItemViewModelHost")},_.u(_.Zc,{text:function(){var b;return(b=N().text)==null?void 0:b.attributedString}}))},"kf");_.m2=_.n(function(q){q=_.Sl(q,{});var N=q.data,b={};return _.u("yt-shopping-content-line-view-model",{class:_.NO("ytShoppingContentLineViewModelHost",q.className,(b.ytShoppingContentLineViewModelTruncateText=function(){return!N().wrapContent},b)),
style:_.ZU({"--shopping-content-line-gap":function(){return N().itemGap?N().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return N().lineHeight?N().lineHeight+"px":void 0}})},_.u(_.Tf,{each:function(){return(N().items||[]).map(function(y){return _.v(y,hPF)}).filter(function(y){return!!y})}},function(y){return _.u(tnp,{data:y})}))},"lf");var meX=_.n(function(q){var N=q.data;var b=function(){var E;return((E=N().image)==null?void 0:E.height)||48},y=function(){var E;
return((E=N().image)==null?void 0:E.width)||48},J=function(){return"width: "+y()+"px; height: "+b()+"px;"};
return _.u("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var E,F,R,c=((E=_.tz().resolve(_.$f(_.ft)))==null?0:E())?(F=N())==null?void 0:F.darkThemeBackgroundColor:(R=N())==null?void 0:R.lightThemeBackgroundColor;return"background-color: "+(c?_.Y8(c):"")+";"},
el:_.ai(_.QR(function(){var E;return(E=N())==null?void 0:E.rendererContext}))},_.u(_.t,{cond:function(){var E,F;
return(F=(E=N().image)==null?void 0:E.image)!=null?F:N().thumbnail},
then:function(E){return _.u("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var F;return"background-color: "+(((F=N().image)==null?0:F.backgroundColor)?_.Y8(N().image.backgroundColor):"")+";"+J()}},_.u(_.s_,{data:E,
height:b,width:y,style:J,alt:""}))}}),_.u("div",{class:"ytShoppingDescriptionItemViewModelText"},_.u(_.zS,{data:function(){return N().line1}},{shoppingContentLineViewModel:function(E){return _.u(_.m2,{data:E.data})}}),_.u(_.zS,{data:function(){return N().line2}},{shoppingContentLineViewModel:function(E){return _.u(_.m2,{data:E.data})}}),_.u(_.zS,{data:function(){return N().line3}},{shoppingContentLineViewModel:function(E){return _.u(_.m2,{data:E.data})}})))},"mf");var rZA=_.n(function(q){var N=q.data;var b=q.active;var y=_.dI("transcript-segment-view-model");_.Sx(function(){var J,E,F,R=((J=_.tz().resolve(_.$f(_.ft)))==null?0:J())?(E=N())==null?void 0:E.darkThemeColorPalette:(F=N())==null?void 0:F.lightThemeColorPalette;R&&(R.additiveBackground&&y.value.style.setProperty("--timestamp-active-background-color",_.Y8(R.additiveBackground)),R.textSecondary&&y.value.style.setProperty("--timestamp-active-color",_.GM(R.textSecondary)))},"TnVCnb");
q={};return _.u("transcript-segment-view-model",{class:_.NO("ytwTranscriptSegmentViewModelHost",(q.ytwTranscriptSegmentViewModelHostActive=b,q.ytwTranscriptSegmentViewModelHostModern=_.x("enable_timeline_view_modern_transcript")||_.x("enable_timeline_view_modern_transcript_fe"),q)),el:y},_.u(_.t,{cond:function(){var J;return(J=N())==null?void 0:J.timestamp},
then:function(J){var E={};return _.u(_.rV,null,_.u("div",{class:_.NO("ytwTranscriptSegmentViewModelTimestamp",(E.ytwTranscriptSegmentViewModelTimestampActive=b,E)),"aria-hidden":!0},J),_.u("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var F=J().split(":").map(Number),R=_.Z(F.reverse());F=R.next().value;var c=R.next().value;R=R.next().value;return _.Zgu({hours:R,minutes:c,seconds:F})}))}}),_.u(_.Zc,{text:function(){var J,E,F;
return(F=(J=N())==null?void 0:J.attributedText)!=null?F:{content:(E=N())==null?void 0:E.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"of");var XAx=_.n(function(q){var N=q.data;return _.u("div",{class:"videoAttributesSectionViewModelHeader"},_.u("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.u("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return N().headerTitle}),_.u(_.t,{cond:function(){return N().headerInfoButton},
then:function(){return _.u(_.zS,{data:function(){return N().headerInfoButton}},{buttonViewModel:function(b){return _.u(_.Ou,{data:b.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.u(_.t,{cond:function(){return N().headerSubtitle},
then:function(){return _.u("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return N().headerSubtitle})}}))},"pf"),VnN=_.n(function(q){function N(w){return Math.max(Math.min(w,0),z()-R())}
var b=q.data;var y;q=_.dI("div",function(w){var D=function(){m(w.clientWidth)};
D();window.ResizeObserver&&(y=new ResizeObserver(D),y.observe(w))});
var J=_.dI("div",function(w){c(w.scrollWidth)}),E=_.Z(_.QS(0,void 0,"C3XQAe")),F=E.next().value;
E=E.next().value;var R=F,c=E;E=_.Z(_.QS(0,void 0,"db7y3"));F=E.next().value;E=E.next().value;var z=F,m=E;F=_.Z(_.QS(0,void 0,"RchC7"));var r=F.next().value,X=F.next().value;_.W1(function(){var w;(w=y)==null||w.disconnect()});
var V=function(){X(N(r()+z()))},G=function(){X(N(r()-z()))};
return _.u("yt-video-attributes-section-view-model",null,_.u("div",{class:"videoAttributesSectionViewModelHost"},_.u(_.t,{cond:function(){return b().headerTitle},
then:function(){return _.u(XAx,{data:b})}}),_.u("div",{class:_.NO("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:q},_.u("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.ZU({transform:function(){var w=r();_.M7("HTML_DIR")==="rtl"&&(w*=-1);return"translateX("+w+"px)"}}),
el:J},_.u(_.zS,{data:function(){return b().videoAttributeViewModels}},{videoAttributeViewModel:bqj}))),_.u(_.zS,{data:function(){return b().footerButton}},{buttonViewModel:function(w){return _.u(_.Ou,{data:w.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.u(_.t,{cond:function(){return r()<0&&b().previousButton},
then:function(){return _.u("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.u(_.zS,{data:function(){return b().previousButton}},{buttonViewModel:function(w){return _.u(_.Ou,{data:w.data,
onClick:V})}}))}}),_.u(_.t,{cond:function(){return r()>z()-R()&&b().nextButton},
then:function(){return _.u("div",{class:"videoAttributesSectionViewModelRightArrow"},_.u(_.zS,{data:function(){return b().nextButton}},{buttonViewModel:function(w){return _.u(_.Ou,{data:w.data,
onClick:G})}}))}})))},"qf");
VnN.idomCompat=!0;var jJd=_.n(function(q){var N=q.data;var b=q.active;var y={},J={};return _.u("timeline-item-view-model",{class:_.NO("ytwTimelineItemViewModelHost",(y.ytwTimelineItemViewModelHostChapterChild=q.chapterChild,y.ytwTimelineItemViewModelModern=_.x("enable_timeline_view_modern_transcript")||_.x("enable_timeline_view_modern_transcript_fe"),y))},_.u("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.u("div",{class:_.NO("ytwTimelineItemViewModelTimestamp",(J.ytwTimelineItemViewModelTimestampActive=
b,J))},function(){return N().timestamp})),_.u("div",{class:"ytwTimelineItemViewModelContentItems"},_.u(_.zS,{data:function(){return N().contentItems}},{transcriptSegmentViewModel:function(E){return _.u(rZA,{data:E.data,
active:b})},
videoAttributesSectionViewModel:VnN})))},"rf");var xep=_.n(function(q){var N=q.data;q={};return _.u("timeline-chapter-view-model",{class:_.NO("ytwTimelineChapterViewModelHost")},_.u("div",{class:_.NO("ytwTimelineChapterViewModelTitle",(q.ytwTimelineChapterViewModelModern=_.x("enable_timeline_view_modern_transcript")||_.x("enable_timeline_view_modern_transcript_fe"),q))},function(){return N().title}),_.u(_.zS,{data:function(){return N().contents}},{timelineItemViewModel:function(b){return _.u(jJd,{data:b.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(b){return _.u(VnN,{data:b.data})}}))},"sf");var vDW=_.n(function(q){var N=q.data;var b=_.dI("macro-markers-panel-item-view-model"),y=_.dj(_.rfn,function(){var E;return(E=N().markersEngagementPanelSyncEntityKey)!=null?E:""}),J=function(){var E;
return((E=y())==null?void 0:E.activeItemIndex)===N().index};
q=_.y0(function(E){var F,R,c,z,m;return _.d(function(r){if(r.nextAddress==1)return E.stopPropagation(),_.vG(_.xe(E),b.value,["A".toString(),"BUTTON".toString()])?r.return():(F=_.O_(N().onTap))?r.yield(_.yR(),2):r.return();R=r.yieldResult;z=(c=_.v(F,_.nx))==null?void 0:c.startTimeSeconds;z===void 0||(m=R)!=null&&m.seekTo(z,!0);_.hj(r)})});
return _.u("macro-markers-panel-item-view-model",{class:_.NO("ytwMacroMarkersPanelItemViewModelHost",{"is-active":J}),el:b,"on:click":q,tabindex:0,role:"button"},_.u(_.zS,{data:function(){var E;return(E=N())==null?void 0:E.item}},{timelineChapterViewModel:function(E){return _.u(xep,{data:E.data,
active:J})},
timelineItemViewModel:function(E){return _.u(jJd,{data:E.data,active:J})},
videoAttributeViewModel:bqj,shoppingDescriptionItemViewModel:meX}))},"tf");
vDW.idomCompat=!0;_.P$(vDW,"macro-markers-panel-item-view-model",{props:{data:_.F5}});_.P$(VnN,"yt-video-attributes-section-view-model",{props:{data:_.F5}});var GzA=_.n(function(q){var N=function(){var b,y,J;return(J=(b=q.data().leadingLogoAccessibility)==null?void 0:(y=b.accessibilityData)==null?void 0:y.label)!=null?J:""};
return _.u("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.u(_.t,{cond:function(){return q.data().leadingLogo},
then:function(b){return _.u(_.s_,{className:"ytwFantasySectionHeaderViewModelLogo",data:b,alt:N})}}),_.u("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.u(_.Zc,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return q.data().title}}),_.u(_.Zc,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return q.data().subtitle}})),_.u(_.zS,{data:function(){return q.data().trailingButton}},{buttonViewModel:function(b){return _.u(_.Ou,{data:b.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"uf");var YJc=_.n(function(q){var N={};N=_.NO("ytwFantasyTeamViewModelHost",(N.ytwFantasyTeamViewModelCompact=function(){var J;return!((J=q.compact)==null||!J.call(q))},N.ytwFantasyTeamViewModelUser=function(){return q.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},N.ytwFantasyTeamViewModelOpponent=function(){return q.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},N));
var b=function(){var J,E,F;return(F=(J=q.data().teamLogoAccessibility)==null?void 0:(E=J.accessibilityData)==null?void 0:E.label)!=null?F:""},y=_.dj(V7d,function(){return q.data().teamEntityKey});
return _.u("ytw-fantasy-team-view-model",{class:N},_.u(_.t,{cond:function(){return q.data().teamLogo},
then:function(J){return _.u(_.s_,{className:"ytwFantasyTeamViewModelLogo",data:J,alt:b})}}),_.u("div",{class:"ytwFantasyTeamViewModelMetadata"},_.u("div",{class:"ytwFantasyTeamViewModelHeader"},_.u(_.Zc,{className:"ytwFantasyTeamViewModelScore",
text:function(){var J;return(J=y())==null?void 0:J.score}}),_.u(_.FQ,{icon:function(){var J;
return(J=y())==null?void 0:J.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.u(_.Zc,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var J;return(J=y())==null?void 0:J.projectedScore}})),_.u(_.Zc,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return q.data().primaryText}}),_.u(_.Zc,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return q.data().secondaryText}}),_.u(_.Zc,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return q.data().tertiaryText}})),_.u(_.Zc,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var J;return(J=y())==null?void 0:J.score}}))},"vf");_.P$(_.n(function(q){return _.u("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.u("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.u(_.zS,{data:function(){return q.data().summaryHeader}},{fantasySectionHeaderViewModel:GzA})),_.u(_.zS,{data:function(){return q.data().userTeam}},{fantasyTeamViewModel:YJc}),_.u(_.zS,{data:function(){return q.data().opponentTeam}},{fantasyTeamViewModel:YJc}))},"wf"),"fantasy-league-summary-view-model",{props:{data:_.F5}});var QJf=_.n(function(q){var N=_.Sl(q,{shape:{},useCustomTabRenderable:!1}),b=N.shape;N=N.useCustomTabRenderable;var y=q.customTabRenderable,J=function(){return b().disabled},E=function(){return b().selected},F=function(){return b().title},R=function(){return b().icon},c=_.dI("yt-tab-shape");
q=_.y0(function(r){var X;if(!J()&&((X=b().aTagConfig)==null?0:X.onclick))b().aTagConfig.onclick(r);return!1});
var z=_.y0(function(r){if(r.key==="Enter"||r.key==="ArrowUp"||r.key==="ArrowDown")r.preventDefault(),c.value.click();return!1}),m={};
return _.u("yt-tab-shape",{class:_.NO("yt-tab-shape",function(){return b().className},(m["yt-tab-shape__tab--last-tab"]=function(){return b().isLastTab},m["yt-tab-shape--host-disabled"]=J,m["yt-tab-shape--host-clickable"]=!y,m)),
role:y?void 0:"tab","aria-selected":E!=null?E:!1,"aria-disabled":J,tabindex:y?void 0:0,"on:click":q,"on:keydown":z,el:c,"tab-identifier":function(){return b().identifier},
"tab-title":F},_.u(_.t,{cond:N,then:function(){return y()},
else:function(){var r={},X={};return _.u(_.rV,null,_.u("div",{class:_.NO("yt-tab-shape__tab",(r["yt-tab-shape__tab--tab-selected"]=E,r))},_.u(_.t,{cond:R,then:function(V){return _.u(_.FQ,{className:"yt-tab-shape__tab-icon",icon:function(){return V().iconType}})}}),F),_.u("div",{class:_.NO("yt-tab-shape__tab-bar",(X["yt-tab-shape__tab-bar--tab-bar-selected"]=E,X))}))}}))},"xf");
QJf.idomCompat={callbacks:{customTabRenderable:!0}};_.wAN=_.n(function(q){var N=q.shape;q=_.Z(_.QS(48,void 0,"nDAx4"));var b=q.next().value,y=q.next().value;q=_.Z(_.QS(0,void 0,"GCgjqb"));var J=q.next().value,E=q.next().value,F=function(){return N().tabs},R=_.dI("yt-tab-group-shape"),c=function(){var X,V;
return(V=(X=F())==null?void 0:X.findIndex(function(G){return G.selected}))!=null?V:-1};
q=_.Z(_.QS(!1,void 0,"SU01tf"));var z=q.next().value,m=q.next().value,r=function(){z()||_.pY.addJob(function(){m(!0)},0)};
_.Sx(function(){var X=c(),V=_.pY.addJob(function(){var G,w=((G=R.value)==null?void 0:G.querySelectorAll("yt-tab-shape"))||[],D;y(((D=X>-1?w[X]:void 0)==null?void 0:D.getBoundingClientRect().width)||0);for(D=G=0;D<X;D++)G+=w[D].offsetWidth+24;_.M7("HTML_DIR")==="rtl"&&(G=-G);E(G);r()},8,0);
_.W1(function(){_.pY.cancelJob(V)})},"PMwgb");
q={};return _.u("yt-tab-group-shape",{class:_.NO("tabGroupShapeHost",(q.tabGroupShapeOverflowHidden=function(){return N().isOverflowHidden},q)),
el:R},_.u(_.t,{cond:F,then:function(X){return _.u(_.rV,null,_.u("div",{class:"tabGroupShapeTabs",role:"tablist"},_.u(_.Tf,{each:X},function(V,G){return _.u(QJf,{shape:function(){return Object.assign({},V,{isLastTab:G()===X().length-1})},
customTabRenderable:V.customTabRenderable,useCustomTabRenderable:!!V.customTabRenderable})})),_.u(OCx,{width:b,
sliderOffset:J,enableTransition:z}))}}))},"zf");
_.wAN.idomCompat=!0;var OCx=_.n(function(q){var N=_.aU(q.sliderOffset,0),b=q.width,y=q.enableTransition;q={};return _.u("div",{class:_.NO("tabGroupShapeSlider",(q.tabGroupShapeSliderTransition=function(){return y()},q)),
style:_.ZU({width:function(){return b()+"px"},
transform:function(){return"translateX("+N()+"px)"}})})},"Af");var iCp=_.n(function(q){var N=function(){var E,F,R;return(R=(E=q.data().playerLogoAccessibility)==null?void 0:(F=E.accessibilityData)==null?void 0:F.label)!=null?R:""},b=_.dj(jhu,function(){return q.data().playerEntityKey}),y={};
y=_.NO("ytwFantasyPlayerViewModelHost",(y.ytwFantasyPlayerViewModelPlaying=function(){var E;return!((E=b())==null||!E.isPlayerPlaying)},y.ytwFantasyPlayerViewModelOnField=function(){var E;
return((E=b())==null?void 0:E.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},y.ytwFantasyPlayerViewModelRedZone=function(){var E;
return((E=b())==null?void 0:E.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},y));
var J=function(){var E,F,R,c=((E=_.tz().resolve(_.$f(_.ft)))==null?0:E())?(F=q.data().playerLogoBackgroundColor)==null?void 0:F.darkTheme:(R=q.data().playerLogoBackgroundColor)==null?void 0:R.lightTheme;return c===void 0?"":_.Y8(c)};
return _.u("ytw-fantasy-player-view-model",{class:y},_.u(_.t,{cond:function(){return q.data().playerLogo},
then:function(E){return _.u("div",{class:"ytwFantasyPlayerViewModelLogo"},_.u("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.u(_.s_,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.ZU({"background-color":J}),data:E,alt:N})),_.u("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.u(_.FQ,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.u("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.u("div",{class:"ytwFantasyPlayerViewModelHeader"},_.u(_.Zc,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var E;return(E=q.data())==null?void 0:E.playerNameText}}),_.u(_.Zc,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var E;return(E=q.data())==null?void 0:E.playerDescriptionText}})),_.u("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.u(_.Zc,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var E;return(E=b())==null?void 0:E.gamePeriodText}}),_.u(_.Zc,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var E;return(E=q.data())==null?void 0:E.opponentTeamText}}),_.u(_.Zc,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var E;return(E=b())==null?void 0:E.gameStatusText}}),_.u(_.Zc,{className:_.NO("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var E;return(E=b())==null?void 0:E.playerStatusText}})),_.u("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.u(_.Zc,{text:function(){var E;
return(E=b())==null?void 0:E.playerStatsText}}))),_.u(_.Zc,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var E;return(E=b())==null?void 0:E.fantasyScore}}))},"Bf");var lRf=_.n(function(q){return _.u("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.u(_.t,{cond:function(){return q.data().players},
then:function(N){return _.u(_.zS,{data:N},{fantasyPlayerViewModel:iCp})}}))},"Cf");var Kda=_.n(function(q){var N=_.Z(_.gJ(function(){var J;return(J=q.data().selectedTabIdentifierKey)!=null?J:""})),b=N.next().value,y=N.next().value;
_.SI(function(){var J;(J=q.setSelectedTabSignal)==null||J.call(q,b)});
return _.u("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.u("div",{class:"ytTabbedViewModelTabGroup"},_.u(_.wAN,{shape:function(){var J=q.data(),E=[],F={tabs:E};if(!J.tabs)return F;J=_.Z(J.tabs);for(var R=J.next(),c={};!R.done;c={tabViewModel:void 0},R=J.next())if(c.tabViewModel=_.v(R.value,IVx),c.tabViewModel){var z=R=void 0;E.push({aTagConfig:{onclick:function(m){return function(){var r;y((r=m.tabViewModel.tabIdentifier)!=null?r:"")}}(c)},
identifier:c.tabViewModel.tabIdentifier,selected:b()===c.tabViewModel.tabIdentifier,title:(z=(R=c.tabViewModel.title)==null?void 0:R.content)!=null?z:""})}return F}})),_.u(_.zS,{data:function(){var J,E=_.Z((J=q.data().tabs)!=null?J:[]);
for(J=E.next();!J.done;J=E.next())if((J=_.v(J.value,IVx))&&J.tabIdentifier===b())return J.content}},{fantasyRosterViewModel:lRf}))},"Ef");_.P$(_.n(function(q){var N=_.Z(D_J()),b=N.next().value,y=N.next().value;return _.u("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.u(_.Zc,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return q.data().title}}),_.u(_.t,{cond:function(){return q.data().tabbedViewModel},
then:function(J){return _.u(_.zS,{data:J},{tabbedViewModel:function(E){return _.u(Kda,{data:E.data,setSelectedTabSignal:y})}})}}),_.u(_.t,{cond:function(){var J,E=(J=_.v(q.data().tabbedViewModel,Tmx))==null?void 0:J.tabs;
J=_.v(E==null?void 0:E[0],IVx);E=_.v(E==null?void 0:E[1],IVx);var F=J==null?void 0:J.tabIdentifier;if(b()===F){var R,c;if(!((R=_.v(J==null?void 0:J.content,eUj))==null?0:(c=R.players)==null?0:c.length))return q.data().noUserTeamPlayersText}else{var z,m;if(!((z=_.v(E==null?void 0:E.content,eUj))==null?0:(m=z.players)==null?0:m.length))return q.data().noOpponentTeamPlayersText}},
then:function(J){return _.u(_.Zc,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:J})}}))},"Ff"),"ytw-fantasy-matchup-view-model",{props:{data:_.F5}});_.P$(_.n(function(q){return _.u("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.u(_.Zc,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return q.data().title}}),_.u(_.t,{cond:function(){return q.data().matchupTeamPairs},
then:function(N){return _.u(_.Tf,{each:N,keyBy:"INDEX"},function(b){return _.u("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.u(_.zS,{data:function(){return[b().firstTeam,b().secondTeam]}},{fantasyTeamViewModel:function(y){return _.u(YJc,{data:y.data,
compact:!0})}}))})}}))},"Gf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.F5}});_.P$(_.n(function(q){var N=function(){var J,E,F;return(F=(J=q.data().userLogoAccessibility)==null?void 0:(E=J.accessibilityData)==null?void 0:E.label)!=null?F:""},b=function(){var J,E,F;
return(F=(J=q.data().opponentLogoAccessibility)==null?void 0:(E=J.accessibilityData)==null?void 0:E.label)!=null?F:""},y=_.dj(Xgd,function(){return q.data().entityKey});
return _.u("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.u("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.u(_.t,{cond:function(){return q.data().userLogo},
then:function(J){return _.u(_.s_,{className:"ytwFantasyWinProbabilityViewModelLogo",data:J,alt:N})}}),_.u("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.u(_.Zc,{text:function(){return q.data().title}})),_.u(_.t,{cond:function(){return q.data().opponentLogo},
then:function(J){return _.u(_.s_,{className:"ytwFantasyWinProbabilityViewModelLogo",data:J,alt:b})}})),_.u("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.u("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.u(_.Zc,{text:function(){var J;
return(J=y())==null?void 0:J.userWinNumberLabel}})),_.u("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.u("div",{class:_.NO("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.ZU({flex:function(){var J,E;return(E=(J=y())==null?void 0:J.userWinNumber)!=null?E:50}})}),_.u("div",{class:_.NO("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.ZU({flex:function(){var J,E;return(E=(J=y())==null?void 0:J.opponentWinNumber)!=null?E:50}})})),_.u("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.u(_.Zc,{text:function(){var J;
return(J=y())==null?void 0:J.opponentWinNumberLabel}}))))},"Hf"),"fantasy-win-probability-view-model",{props:{data:_.F5}});var Dec={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},huf=_.n(function(q){return _.u(_.zS,{data:q.button},{buttonViewModel:function(N){return _.u(_.Ou,{data:N.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"If"),kza=_.n(function(q){return _.u("ytd-backstage-locked-post-view-model",{class:_.NO("ytdBackstageLockedPostViewModelHost",q.className)},_.u("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.u("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.u(_.zS,
{data:function(){return q.data().authorAvatar}},{decoratedAvatarViewModel:_.qw})),_.u("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.u("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.u(_.Zc,{text:function(){return q.data().authorText}})),_.u("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.u(_.Zc,{text:function(){return q.data().publishedTimeText}}),_.u(_.zS,{data:function(){return q.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(N){return _.u(UUo,
{data:N.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.u("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.u(_.Zc,{text:function(){return q.data().contentText}})),_.u(_.sw,null,_.u(_.CI,{when:function(){return q.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.u("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.u(_.s_,{data:Dec,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.u(_.Zc,{text:function(){return q.data().lockedText}}))}),_.u(_.CI,{when:function(){return q.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.u("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.u("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.u(_.s_,{data:Dec,
alt:""})),_.u(_.Zc,{text:function(){return q.data().lockedText}}))})),_.u("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.u(huf,{button:function(){return q.data().likeButton}}),_.u("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return q.data().voteCountA11y}},_.u(_.Zc,{text:function(){return q.data().voteCount}})),_.u(huf,{button:function(){return q.data().dislikeButton}}),_.u(huf,{button:function(){return q.data().commentButton}}),_.u("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return q.data().commentCountA11y}},_.u(_.Zc,{text:function(){return q.data().commentCount}}))))},"Jf");
kza.idomCompat=!0;_.P$(kza,"ytd-backstage-locked-post-view-model",{props:{data:_.F5,className:_.F5}});_.xP("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var rW=function(){var q=_.C.apply(this,arguments)||this;q.darkerPanels=_.x("web_watch_darker_panels");q.commentsHidePanelButton=!1;q.isWatchGrid=!1;q.continuationShowButton=!1;q.isSearch=!1;q.isConstrainedList=!1;q.isWatch=!1;q.eligibleToSwitchToGrid=!1;q.useBigThumbs=!1;q.notSticky=!1;q.epRestyle=!1;q.isCarouselInFeed=!0;q.topSpacingZero=!1;q.continuationIsInitialLoad=!0;q.enableSqueezebackPanels=_.x("web_shorts_enable_squeezeback_panels");q.enableAnchoredPanel=_.x("desktop_shorts_v2_anchored_panel");
q.mastheadHeight=0;q.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};q.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return q};
_.Y(rW,_.C);_.g=rW.prototype;_.g.updateLockupContainerTypes=function(q){if(this.eligibleToSwitchToGrid){var N;(N=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||N.forEach(function(b){b.containerType=q})}};
_.g.getItemsPath=function(){return"data.contents"};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.g.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:_.x("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.x("kevlar_low_priority_continuation")}}};
_.g.created=function(){};
_.g.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.g.handleIntersect=function(q){this.notSticky=q[0].intersectionRatio===1};
_.g.attached=function(){var q=this;if(_.x("web_fix_sticky_playlist_header_v2")){var N=_.x("web_item_section_sticky_header_use_scroll_as_fallback");N||document.addEventListener("scroll",_.gq(this,this.updateHeaderState));var b;this.mastheadHeight=((b=document.querySelector("ytd-masthead"))==null?void 0:b.clientHeight)||0;this.containerWidth=this.hostElement.clientWidth||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(y){q.handleIntersect(y)},{rootMargin:"-"+
(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):N&&document.addEventListener("scroll",_.gq(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){q.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))}};
_.g.detached=function(){if(_.x("web_fix_sticky_playlist_header_v2")){document.removeEventListener("scroll",_.gq(this,this.updateHeaderState));var q;(q=this.intersectionObserver)==null||q.disconnect();var N;(N=this.resizeObserver)==null||N.disconnect()}};
_.g.updated=function(q){q.has("data")&&_.x("web_fix_sticky_playlist_header_v2")&&this.updateHeaderState()};
_.g.dispatchChipBarIsSticky=function(){_.x("web_fix_sticky_playlist_header_v2")&&this.ytdReduxBehavior.dispatch(gOl(!this.notSticky))};
_.g.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var q=_.ee(this.hostElement).querySelector("ytd-comments-header-renderer");q&&(q.hidePanelButton=this.commentsHidePanelButton)}};
_.g.onRetrieveLocation=function(q,N){this.containsComments()&&(this.firstCommentsLoaded=N.hasComments=!0)};
_.g.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.g.onLoadReloadContinuation=function(q,N){var b=this;q.stopPropagation();this.isReloading=!0;_.e2(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(y){var J=_.tz().resolve(_.$8);y=N(y);J.postData(y).then(function(E){b.onReloadContinuationData(E)})}})};
_.g.onReloadContinuationData=function(q){if(q=this.get("response.continuationContents.itemSectionContinuation",q)||this.get("response.contents.itemSectionRenderer",q)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",q)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",q))this.set("data.contents",q.contents||q.results),q.header&&this.set("data.header",q.header),this.set("data.continuations",
q.continuations||[]);this.isReloading=!1};
_.g.computeContentsClass=function(q){return q?"reloading":""};
_.g.computeSectionIdentifier=function(q){return q==null?void 0:q.sectionIdentifier};
_.g.computeFitContainer=function(q){return(q==null?void 0:q.sectionIdentifier)==="youchat-item-section"};
_.g.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.x("kevlar_disable_comments_auto_load")};
_.g.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.g.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.g.computeHasDestinationShelfRenderer=function(q){var N,b;return!!(q==null?0:(N=q.contents)==null?0:(b=N[0])==null?0:b.destinationShelfRenderer)};
_.g.computeHasSectionGroupViewModel=function(q){var N,b;return!!(q==null?0:(N=q.contents)==null?0:(b=N[0])==null?0:b.sectionGroupViewModel)};
_.g.computeHasQrCodeRenderer=function(q){var N,b;return!!(q==null?0:(N=q.contents)==null?0:(b=N[0])==null?0:b.qrCodeRenderer)};
_.g.computeStaticCommentsHeader=function(q){return q&&this.containsComments()};
_.g.computeEpRestyle=function(q){return _.x("web_ep_restyling")&&q&&this.containsComments()};
_.g.computeIsContinuationCommentSection=function(q){return(q==null?void 0:q.targetId)==="shorts-engagement-panel-comments-section"||(q==null?void 0:q.targetId)==="comments-section"||(q==null?void 0:q.targetId)==="engagement-panel-comments-section"};
_.g.computeSuppressPaddingDisclaimer=function(){var q,N,b,y;return!!((q=this.data)==null?0:(N=q.contents)==null?0:(b=N[0])==null?0:(y=b.productListHeaderRenderer)==null?0:y.suppressPaddingDisclaimer)};
_.g.computeHeaderStyle=function(q){switch(q==null?void 0:q.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.g.dataChanged=function(){this.firstCommentsLoaded=!1};
_.g.observeDataContentsLength=function(){var q,N;((q=this.data)==null?0:(N=q.contents)==null?0:N.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.g.onYtDismissibleItemDismissedChange=function(q){this._setItemDismissed(q.type==="yt-dismissible-item-dismissed")};
_.g.triggerContinuations=function(){for(var q=_.ee(this.hostElement).querySelector("#continuations").children,N=0;N<q.length;N++)q[N].trigger()};
_.g.triggerInitialContinuations=function(){for(var q=_.ee(this.hostElement).querySelector("#continuations").children,N=0;N<q.length;N++)q[N].triggerIfNotPreviouslyTriggered()};
_.g.handleYtItemSectionContinuation=function(q,N){var b;N&&((b=this.data)==null?void 0:b.sectionIdentifier)!==N||(this.set("data.continuations",[q]),this.triggerContinuations())};
_.g.handleYtItemSectionReplace=function(q,N){var b;N&&((b=this.data)==null?void 0:b.sectionIdentifier)!==N||(this.set("data.contents",q),this.set("data.continuations",[]))};
_.g.computeUseHeightHack=function(q){return q&&!_.x("kevlar_disable_height_hack")};
_.g.computeTopSpacingZero=function(q){return q};
_.g.continuationShowButtonChanged=function(){var q=_.ee(this.hostElement).querySelector("ytd-continuation-item-renderer");q&&(q.showButton=this.continuationShowButton)};
_.g.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("data-changed",this.data))};
_.$H.Object.defineProperties(rW.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.x("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 q;return!((q=this.data)==null||!q.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.x("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.x("web_fix_sticky_playlist_header_v2")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return!!((q=this.data)==null?0:(N=q.contents)==null?0:(b=N[0])==null?0:b.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var q,N,b,y,J,E,F;return!!((q=this.data)==null?0:(N=q.contents)==null?0:(b=N[0])==null?0:(y=b.shelfRenderer)==null?0:(J=y.content)==null?0:(E=J.gridRenderer)==null?0:(F=E.targetId)==null?0:F.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return!!((q=this.data)==null?0:(N=q.contents)==null?0:(b=N[0])==null?0:b.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return!!((q=this.data)==null?0:(N=q.contents)==null?0:(b=N[0])==null?0:b.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.jA("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.x("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.x("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
rW.prototype.dataChangedForBinding=rW.prototype.dataChangedForBinding;rW.prototype.continuationShowButtonChanged=rW.prototype.continuationShowButtonChanged;rW.prototype.onYtDismissibleItemDismissedChange=rW.prototype.onYtDismissibleItemDismissedChange;rW.prototype.observeDataContentsLength=rW.prototype.observeDataContentsLength;rW.prototype.dataChanged=rW.prototype.dataChanged;rW.prototype.onServiceRequestCompleted=rW.prototype.onServiceRequestCompleted;rW.prototype.onLoadReloadContinuation=rW.prototype.onLoadReloadContinuation;
rW.prototype.onRetrieveLocation=rW.prototype.onRetrieveLocation;rW.prototype.commentsHidePanelButtonChanged=rW.prototype.commentsHidePanelButtonChanged;rW.prototype.dispatchChipBarIsSticky=rW.prototype.dispatchChipBarIsSticky;rW.prototype.updateLockupContainerTypes=rW.prototype.updateLockupContainerTypes;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],rW.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],rW.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.V1.YtLazyListBehavior),_.P("design:type",Object)],rW.prototype,"ytLazyListBehavior",void 0);_.p([_.O(_.m1.YtNextContinuationBehavior),_.P("design:type",Object)],rW.prototype,"ytNextContinuationBehavior",void 0);
_.p([_.O(_.tA),_.P("design:type",Object)],rW.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],rW.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],rW.prototype,"ytdReduxBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],rW.prototype,"darkerPanels",void 0);_.p([_.U(),_.P("design:type",Object)],rW.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Boolean)],rW.prototype,"engagementPanel",void 0);_.p([_.U(),_.P("design:type",Object)],rW.prototype,"commentsHidePanelButton",void 0);_.p([_.U(),_.P("design:type",Object)],rW.prototype,"isWatchGrid",void 0);_.p([_.U(),_.P("design:type",Object)],rW.prototype,"continuationShowButton",void 0);_.p([_.U({computed:"computeIsContinuationCommentSection(data)"}),_.P("design:type",Boolean)],rW.prototype,"continuationIsCommentsSection",void 0);
_.p([_.U({value:!0}),_.P("design:type",Boolean)],rW.prototype,"autoFill",void 0);_.p([_.U(),_.P("design:type",Boolean)],rW.prototype,"continuationDisablePrescanVisibility",void 0);_.p([_.U(),_.P("design:type",Boolean)],rW.prototype,"isReloading",void 0);_.p([_.U(),_.P("design:type",Object)],rW.prototype,"isSearch",void 0);_.p([_.U(),_.P("design:type",Object)],rW.prototype,"isConstrainedList",void 0);_.p([_.U(),_.P("design:type",Object)],rW.prototype,"isWatch",void 0);
_.p([_.U(),_.P("design:type",Object)],rW.prototype,"eligibleToSwitchToGrid",void 0);_.p([_.U(),_.P("design:type",Object)],rW.prototype,"useBigThumbs",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],rW.prototype,"notSticky",void 0);_.p([_.U({selector:_.wJ,reflectToAttribute:!0}),_.P("design:type",Object)],rW.prototype,"isGridViewEnabled",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.P("design:type",Object)],rW.prototype,"epRestyle",void 0);_.p([_.l("isWatch"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rW.prototype,"hideShortsShelfHeader",null);_.p([_.l("isSearch","isWatch"),_.P("design:type",String),_.P("design:paramtypes",[])],rW.prototype,"thumbnailWidth",null);
_.p([_.l("isSearch","containerWidth"),_.P("design:type",Object),_.P("design:paramtypes",[])],rW.prototype,"thumbnailTargetWidth",null);_.p([_.l("isSearch","isWatch","useBigThumbs"),_.P("design:type",String),_.P("design:paramtypes",[])],rW.prototype,"sizing",null);_.p([_.l("isWatch","isGridViewEnabled","useBigThumbs","data"),_.U({reflectToAttribute:!0}),_.P("design:type",Number),_.P("design:paramtypes",[])],rW.prototype,"lockupContainerType",null);
_.p([_.l("data"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rW.prototype,"hasHeader",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rW.prototype,"expFixPlaylistHeader",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rW.prototype,"expFixPlaylistHeaderV2",null);
_.p([_.FY("lockupContainerType","data"),_.P("design:type",Function),_.P("design:paramtypes",[Number]),_.P("design:returntype")],rW.prototype,"updateLockupContainerTypes",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],rW.prototype,"pageSubtype",void 0);_.p([_.U(),_.P("design:type",Number)],rW.prototype,"containerWidth",void 0);_.p([_.U(),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rW.prototype,"isPlaylist",null);
_.p([_.U(),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rW.prototype,"isClipList",null);_.p([_.U(),_.P("design:type",Object)],rW.prototype,"isCarouselInFeed",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rW.prototype,"isPlaylistVideoContainer",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rW.prototype,"isSearchFrictionPage",null);
_.p([_.U({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.P("design:type",Boolean)],rW.prototype,"useHeightHack",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.P("design:type",Object)],rW.prototype,"topSpacingZero",void 0);_.p([_.U({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.P("design:type",Boolean)],rW.prototype,"showButton",void 0);
_.p([_.U(),_.P("design:type",Boolean)],rW.prototype,"firstCommentsLoaded",void 0);_.p([_.U(),_.P("design:type",Object)],rW.prototype,"continuationIsInitialLoad",void 0);_.p([_.U({reflectToAttribute:!0,readOnly:!0}),_.P("design:type",Boolean)],rW.prototype,"itemDismissed",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.P("design:type",String)],rW.prototype,"sectionIdentifier",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.P("design:type",String)],rW.prototype,"fitContainer",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.P("design:type",Boolean)],rW.prototype,"hasDestinationShelfRenderer",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.P("design:type",Boolean)],rW.prototype,"staticCommentsHeader",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],rW.prototype,"enableSqueezebackPanels",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],rW.prototype,"enableAnchoredPanel",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.P("design:type",Boolean)],rW.prototype,"hasSectionGroupViewModel",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.P("design:type",Boolean)],rW.prototype,"hasQrCodeRenderer",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.P("design:type",Boolean)],rW.prototype,"suppressDisclaimerSeparator",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.P("design:type",String)],rW.prototype,"headerStyle",void 0);
_.p([_.l("isSearch","isWatch","useBigThumbs"),_.P("design:type",Object),_.P("design:paramtypes",[])],rW.prototype,"lockupExperiments",null);_.p([_.l("isSearch"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rW.prototype,"typographyBump",null);_.p([_.dq("#header"),_.P("design:type",HTMLElement)],rW.prototype,"header",void 0);_.p([_.FY("notSticky"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rW.prototype,"dispatchChipBarIsSticky",null);
_.p([_.FY("commentsHidePanelButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rW.prototype,"commentsHidePanelButtonChanged",null);_.p([_.ZP("yt-retrieve-location"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],rW.prototype,"onRetrieveLocation",null);
_.p([_.ZP("yt-load-reload-continuation"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Function]),_.P("design:returntype")],rW.prototype,"onLoadReloadContinuation",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rW.prototype,"onServiceRequestCompleted",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rW.prototype,"dataChanged",null);
_.p([_.$9("data.contents.length"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rW.prototype,"observeDataContentsLength",null);_.p([_.ZP("yt-dismissible-item-dismissed"),_.ZP("yt-dismissible-item-undismissed"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],rW.prototype,"onYtDismissibleItemDismissedChange",null);
_.p([_.FY("continuationShowButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rW.prototype,"continuationShowButtonChanged",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rW.prototype,"dataChangedForBinding",null);_.p([_.I({is:"ytd-item-section-renderer",disableElementRegistration:!0})],rW);
_.a(rW,"ytd-item-section-renderer",function(){if(nSx!==void 0)return nSx;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return nSx=q},{mode:1});var UeC;var U_n=_.nD(_.FE("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var fRa={},kpe=(fRa[0]={title:_.o5(_.FE("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.o5(_.FE("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.P3("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},fRa[1]={title:_.o5(_.FE("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.P3("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},fRa);_.xP("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Xo=function(){var q=_.C.apply(this,arguments)||this;q.allVideosCount=0;q.allPlaylistCount=0;q.isOnline=!1;q.shouldRenderDownloadsBanner=!1;q.shouldRenderDownloadsBannerUpsell=!1;q.hasOptedIntoSmartDownloads=!1;q.areAllSmartDownloadsDeleted=!1;q.smartDownloadsCompleted=!1;return q};
_.Y(Xo,_.C);Xo.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Xo.prototype.attached=function(){this.downloadsToRenderChanged()};
Xo.prototype.detached=function(){this.set("renderableData",{})};
Xo.prototype.downloadsToRenderChanged=function(){var q=_.WT().getState().entities,N=_.jN(q),b=_.x("kevlar_playlist_dl_page_killswitch")?iVD(q):_.xR(q),y=_.xTA(q),J=_.QRu(q),E=_.$R(N);q=_.vT(q);this.set("renderableData",CVA(b,N,y,J,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,E,q))};
Xo.prototype.downloadsToRenderChanged=Xo.prototype.downloadsToRenderChanged;_.p([_.O(_.H6),_.P("design:type",Object)],Xo.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Xo.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Xo.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Xo.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],Xo.prototype,"renderableData",void 0);_.p([_.U({selector:_.acJ}),_.P("design:type",Object)],Xo.prototype,"allVideosCount",void 0);_.p([_.U({selector:rhu}),_.P("design:type",Object)],Xo.prototype,"allPlaylistCount",void 0);_.p([_.U({selector:_.w3}),_.P("design:type",Object)],Xo.prototype,"isOnline",void 0);_.p([_.U({selector:_.oYu}),_.P("design:type",Object)],Xo.prototype,"shouldRenderDownloadsBanner",void 0);
_.p([_.U({selector:_.HVn}),_.P("design:type",Object)],Xo.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.p([_.U({selector:_.A$e}),_.P("design:type",Object)],Xo.prototype,"hasOptedIntoSmartDownloads",void 0);_.p([_.U({selector:_.eZC}),_.P("design:type",Object)],Xo.prototype,"areAllSmartDownloadsDeleted",void 0);_.p([_.U({selector:BTC}),_.P("design:type",Object)],Xo.prototype,"smartDownloadsCompleted",void 0);
_.p([_.$9("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xo.prototype,"downloadsToRenderChanged",null);_.p([_.I({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Xo);
_.a(Xo,"ytd-offline-item-section-renderer",function(){if(UeC!==void 0)return UeC;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return UeC=q},
{mode:1});var CnN;var IRW;var V9=function(){return _.C.apply(this,arguments)||this};
_.Y(V9,_.C);
V9.prototype.onDataChanged=function(){if(this.JSC$16931_lastData){var q=this.getFilterClass(this.JSC$16931_lastData.status);q&&this.hostElement.classList.remove(q)}var N;(q=this.getFilterClass((N=this.data)==null?void 0:N.status))&&this.hostElement.classList.add(q);q==="selected"?_.ee(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.ee(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");q==="disabled"?_.ee(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.ee(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16931_lastData=this.data};
V9.prototype.getFilterClass=function(q){switch(q){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
V9.prototype.onDataChanged=V9.prototype.onDataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],V9.prototype,"data",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],V9.prototype,"onDataChanged",null);_.p([_.I({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],V9);
_.a(V9,"ytd-search-filter-renderer",function(){if(IRW!==void 0)return IRW;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return IRW=q},{mode:_.Am("kevlar_poly_si_batch_j075")?1:2});var jf=function(){return _.C.apply(this,arguments)||this};
_.Y(jf,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],jf.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],jf.prototype,"data",void 0);_.p([_.I({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],jf);
_.a(jf,"ytd-search-filter-group-renderer",function(){if(CnN!==void 0)return CnN;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return CnN=q},{mode:_.Am("kevlar_poly_si_batch_j075")?1:2});var TAW;var xG=function(){return _.C.apply(this,arguments)||this};
_.Y(xG,_.C);xG.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.VO());this.isCollapsed=!this.isCollapsed};
xG.prototype.navigateToAboutTheseResultsPage=function(){var q=_.ax("https://www.youtube.com/howyoutubeworks/product-features/search/");q?_.yz(window,q,"_blank"):_.HC(Error("Uh"))};
xG.prototype.dataChanged=function(){this.isCollapsed=!0};
xG.prototype.computeShowBottomBorder=function(){var q,N,b;return!!((q=this.data)==null?0:(N=q.button)==null?0:N.toggleButtonRenderer)||!((b=this.data)==null||!b.aboutTheseResultsButton)};
xG.prototype.dataChanged=xG.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],xG.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.P("design:type",Boolean)],xG.prototype,"showBottomBorder",void 0);_.p([_.U(),_.P("design:type",Boolean)],xG.prototype,"renderCollapsibleMenu",void 0);
_.p([_.U(),_.P("design:type",Boolean)],xG.prototype,"isCollapsed",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xG.prototype,"dataChanged",null);_.p([_.I({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],xG);
_.a(xG,"ytd-search-sub-menu-renderer",function(){if(TAW!==void 0)return TAW;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return TAW=q},{mode:1});var sJA;var nDC=new _.Jw("SECTION_LIST_RENDERER_TOKEN");var aRK;var vp=function(){return _.C.apply(this,arguments)||this};
_.Y(vp,_.C);vp.prototype.computeStyle=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],vp.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],vp.prototype,"headerStyle",void 0);_.p([_.I({is:"ytd-text-header-renderer",disableElementRegistration:!0})],vp);
_.a(vp,"ytd-text-header-renderer",function(){if(aRK!==void 0)return aRK;var q=document.createElement("template");_.Q(q,"\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");q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return aRK=q},{mode:1});var SJd;var G_=function(){return _.C.apply(this,arguments)||this};
_.Y(G_,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],G_.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],G_.prototype,"data",void 0);_.p([_.I({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],G_);
_.a(G_,"ytd-minor-moment-header-renderer",function(){if(SJd!==void 0)return SJd;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return SJd=q},{mode:1});var Wda;var YG=function(){return _.C.apply(this,arguments)||this};
_.Y(YG,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],YG.prototype,"data",void 0);_.p([_.I({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],YG);
_.a(YG,"ytd-minor-moment-setting-alert-renderer",function(){if(Wda!==void 0)return Wda;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Wda=q},{mode:1});var LdB;var pAU;var Q9=function(){var q=_.C.apply(this,arguments)||this;q.booleanSettingById=!1;q.smartDownloadsEnabledVE=_.bx(128287);q.smartDownloadsDisabledVE=_.bx(128286);q.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return q};
_.Y(Q9,_.C);_.g=Q9.prototype;_.g.attachSmartDownloadsSettingVes=function(){var q;this.activeVeForLogging||((q=this.data)==null?void 0:q.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.hI(_.FR(),this.smartDownloadsEnabledVE),_.hI(_.FR(),this.smartDownloadsDisabledVE))};
_.g.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.e2(this.hostElement,"yt-settings-switch-ready")};
_.g.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.g.onSwitchChange=function(q){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(q=_.a0(q).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.x("kevlar_settings_switch_resolve_command_killswitch")?_.tz().resolve(_.rO).resolveCommand(q,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(q)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.g.handleUpdateSettingsSwitch=function(q){(q=_.v(q,mCv))&&this.data&&this.data.id===q.id&&this.set("data.enabled",!!q.enabled)};
_.g.onToggleSettingsSwitch=function(q,N){this.data&&this.data.id===q&&this.set("data.enabled",N!=null?N:!this.data.enabled)};
_.g.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.x3.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.g.maybeLogSmartDownloadsSettingVisibility=function(){var q=_.Oe(),N;q&&((N=this.data)==null?void 0:N.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Tr(q,[this.smartDownloadsEnabledVE]),_.sY(q,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Tr(q,[this.smartDownloadsDisabledVE]),_.sY(q,[this.smartDownloadsEnabledVE])))};
_.g.maybeLogSmartDownloadsSettingClick=function(){var q;((q=this.data)==null?void 0:q.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.UM(_.FR(),this.activeVeForLogging)};
_.g.updateDataEnabledFromBinding=function(q){this.set("data.enabled",q.detail.value)};
_.$H.Object.defineProperties(Q9.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var q=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!q&&(q=this.ytRendererBehavior.getSimpleString(this.data.title));return q}}});
Q9.prototype.dataChanged=Q9.prototype.dataChanged;_.p([_.O(_.H6),_.P("design:type",Object)],Q9.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Q9.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Q9.prototype,"ytComponentBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],Q9.prototype,"data",void 0);_.p([_.U({selector:function(q,N){if(Object.keys(q==null?void 0:q.entities).length)switch(N){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return lcA(q.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.P("design:type",Object)],Q9.prototype,"booleanSettingById",void 0);_.p([_.U(),_.P("design:type",Gy)],Q9.prototype,"activeVeForLogging",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Q9.prototype,"toggleAriaLabel",null);_.p([_.$9("data"),_.$9("booleanSettingById"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Q9.prototype,"dataChanged",null);
_.p([_.I({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Q9);
_.a(Q9,"ytd-settings-switch-renderer",function(){if(pAU!==void 0)return pAU;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return pAU=q},{mode:1});var Om=function(){return _.C.apply(this,arguments)||this};
_.Y(Om,_.C);Om.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}}}}};
_.$H.Object.defineProperties(Om.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var q=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(q+=" remove-left-margin");this.data.extraBottomSpace&&(q+=" extra-bottom-space");return q}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Om.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Om.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Om.prototype,"data",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Om.prototype,"contentsClassName",null);_.p([_.I({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],Om);
_.a(Om,"ytd-minor-moment-setting-section-renderer",function(){if(LdB!==void 0)return LdB;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return LdB=q},{mode:1});var PnW;var wW=function(){return _.C.apply(this,arguments)||this};
_.Y(wW,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],wW.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],wW.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],wW);
_.a(wW,"ytd-empty-product-details-renderer",function(){if(PnW!==void 0)return PnW;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return PnW=q},{mode:1});var MnA;var oDc;var iF=function(){var q=_.C.apply(this,arguments)||this;q.expanded=!0;return q};
_.Y(iF,_.C);iF.prototype.getBadgeRowClass=function(q,N,b){for(var y=_.Z(this.hostElement.querySelectorAll("yt-img-shadow")),J=y.next();!J.done;J=y.next())J.value.onShow();q=q.selected;return b?q!==-1?q===N?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(q!==void 0?q:0)===N?"badge-line":"badge-hidden"};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],iF.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],iF.prototype,"expanded",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],iF);
_.a(iF,"ytd-sponsorships-loyalty-badges-renderer",function(){if(oDc!==void 0)return oDc;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return oDc=q},{mode:1});var AZd;var lF=function(){var q=_.C.apply(this,arguments)||this;q.expanded=!0;return q};
_.Y(lF,_.C);lF.prototype.getContainerClasses=function(q,N){q=q?"expanded":"collapsed";N&&(q+=" item");return q};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],lF.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],lF.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],lF.prototype,"expanded",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],lF);
_.a(lF,"ytd-sponsorships-perk-renderer",function(){if(AZd!==void 0)return AZd;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return AZd=q},{mode:1});var eua;var Kw=function(){var q=_.C.apply(this,arguments)||this;q.expanded=!0;return q};
_.Y(Kw,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Kw.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Kw.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Kw.prototype,"expanded",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Kw);
_.a(Kw,"ytd-sponsorships-perks-renderer",function(){if(eua!==void 0)return eua;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return eua=q},{mode:1});var DJ=function(){var q=_.C.apply(this,arguments)||this;q.isCollapsed=!1;return q};
_.Y(DJ,_.C);DJ.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
DJ.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
DJ.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var q;this.expandCollapseButton=_.v((q=this.data)==null?void 0:q.expandButton,_.JI)}else{var N;this.expandCollapseButton=_.v((N=this.data)==null?void 0:N.collapseButton,_.JI)}};
DJ.prototype.updateExpandCollapseButton=DJ.prototype.updateExpandCollapseButton;DJ.prototype.onDataChanged=DJ.prototype.onDataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],DJ.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],DJ.prototype,"isCollapsed",void 0);_.p([_.U(),_.P("design:type",Object)],DJ.prototype,"expandCollapseButton",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DJ.prototype,"onDataChanged",null);_.p([_.$9("data","isCollapsed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DJ.prototype,"updateExpandCollapseButton",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],DJ);
_.a(DJ,"ytd-sponsorships-expandable-perks-renderer",function(){if(MnA!==void 0)return MnA;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return MnA=q},{mode:1});var BAX;var hq=function(){return _.C.apply(this,arguments)||this};
_.Y(hq,_.C);hq.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],hq.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],hq.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],hq.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],hq);
_.a(hq,"ytd-sponsorships-actionable-message-renderer",function(){if(BAX!==void 0)return BAX;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return BAX=q},{mode:1});var HCa;var kG=function(){return _.C.apply(this,arguments)||this};
_.Y(kG,_.C);_.g=kG.prototype;_.g.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.g.getExpansionIcon=function(q){return q?"COLLAPSE":"EXPAND"};
_.g.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.g.computeMessageContainerStyle=function(q){var N=q.expandableItems?" style-clickable":"";return q.messageContainerStyle?q.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+N:"style-unspecified"+N};
_.g.isSinglePerk=function(q){return!!q.messageContainerStyle&&(q.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||q.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.g.onExpandedChanged=function(){var q=this;if(this.expanded)for(var N=_.Z(this.hostElement.querySelectorAll("yt-img-shadow")),b=N.next();!b.done;b=N.next())b.value.onShow();_.ut(this,function(){_.e2(q.hostElement,"yt-refit")})};
_.g.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
kG.prototype.onDataChanged=kG.prototype.onDataChanged;kG.prototype.onExpandedChanged=kG.prototype.onExpandedChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],kG.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],kG.prototype,"data",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],kG.prototype,"expanded",void 0);
_.p([_.FY("expanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kG.prototype,"onExpandedChanged",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kG.prototype,"onDataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],kG);
_.a(kG,"ytd-sponsorships-expandable-message-renderer",function(){if(HCa!==void 0)return HCa;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return HCa=q},{mode:_.Am("kevlar_poly_si_batch_j028")?1:2});var qxA;var Um=function(){return _.C.apply(this,arguments)||this};
_.Y(Um,_.C);Um.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"}}}}};
Um.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.v(this.data.endButton,_.JI).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
Um.prototype.onDataChanged=Um.prototype.onDataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Um.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Um.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Um.prototype,"data",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Um.prototype,"onDataChanged",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],Um);
_.a(Um,"ytd-sponsorships-heading-renderer",function(){if(qxA!==void 0)return qxA;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return qxA=q},{mode:1});var NxB;var fw=function(){return _.C.apply(this,arguments)||this};
_.Y(fw,_.C);_.p([_.U(),_.P("design:type",Object)],fw.prototype,"data",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],fw.prototype,"ytRendererBehavior",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],fw);
_.a(fw,"ytd-sponsorships-links-renderer",function(){if(NxB!==void 0)return NxB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return NxB=q},{mode:1});var b1c;var Cw=function(){return _.C.apply(this,arguments)||this};
_.Y(Cw,_.C);_.g=Cw.prototype;_.g.onDataChanged=function(){if(this.data&&this.data.expandableItems){var q;(q=_.ee(this.hostElement).querySelector("tp-yt-paper-button"))==null||q.setAttribute("role","button")}else{var N;(N=_.ee(this.hostElement).querySelector("tp-yt-paper-button"))==null||N.removeAttribute("role")}};
_.g.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.g.getExpansionIcon=function(q){return q?"COLLAPSE":"EXPAND"};
_.g.getTileClasses=function(q){return q?"tile expandable-tile":"tile"};
_.g.getButtonDisabled=function(q){return q?void 0:""};
Cw.prototype.onDataChanged=Cw.prototype.onDataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Cw.prototype,"data",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],Cw.prototype,"expanded",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cw.prototype,"onDataChanged",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],Cw);
_.a(Cw,"ytd-sponsorships-list-tile-renderer",function(){if(b1c!==void 0)return b1c;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return b1c=q},{mode:1});var y4a;var J4p;var I1=function(){return _.C.apply(this,arguments)||this};
_.Y(I1,_.C);I1.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],I1.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],I1.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],I1.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],I1);
_.a(I1,"ytd-sponsorships-promotion-renderer",function(){if(J4p!==void 0)return J4p;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return J4p=q},{mode:1});var EEd;var T_=function(){return _.C.apply(this,arguments)||this};
_.Y(T_,_.C);T_.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],T_.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],T_.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],T_.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],T_);
_.a(T_,"ytd-sponsorships-purchase-option-renderer",function(){if(EEd!==void 0)return EEd;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return EEd=q},{mode:1});var gEf;var Z1C;var FMf=function(){return _.C.apply(this,arguments)||this};
_.Y(FMf,_.C);_.p([_.U(),_.P("design:type",Object)],FMf.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],FMf);
_.a(FMf,"ytd-ypc-offer-promo-renderer",function(){if(Z1C!==void 0)return Z1C;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Z1C=q},{mode:1});var sm=function(){return _.C.apply(this,arguments)||this};
_.Y(sm,_.C);_.g=sm.prototype;
_.g.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"}}}}};
_.g.expansionCTA=function(q,N){return q&&(N?q.collapseCallToAction:q.expansionCallToAction)};
_.g.getExpansionIcon=function(q){return q?"COLLAPSE":"EXPAND"};
_.g.expansionCallToActionTap=function(){var q=this;this.expanded=!this.expanded;_.ut(this,function(){_.e2(q.hostElement,"yt-refit")})};
_.g.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var q,N=(q=this.data)==null?void 0:q.onVisible;N&&this.ytComponentBehavior.resolveCommand(N)};
_.g.computeDisplayTitle=function(q){return!(!q||this.titledisplaystatus!=="show")};
_.g.computeDisplaySeparator=function(){return!1};
_.g.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
sm.prototype.onDataChanged=sm.prototype.onDataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],sm.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],sm.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],sm.prototype,"data",void 0);
_.p([_.U({value:!1}),_.P("design:type",Boolean)],sm.prototype,"expanded",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],sm.prototype,"purchaseButtonClicked",void 0);_.p([_.U({reflectToAttribute:!0,value:"show"}),_.P("design:type",String)],sm.prototype,"titledisplaystatus",void 0);_.p([_.U({computed:"computeDisplayTitle(data.title)"}),_.P("design:type",Boolean)],sm.prototype,"displayTitle",void 0);
_.p([_.U({computed:"computeDisplaySeparator(data)"}),_.P("design:type",Boolean)],sm.prototype,"displaySeparator",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sm.prototype,"onDataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],sm);
_.a(sm,"ytd-sponsorships-tier-renderer",function(){if(gEf!==void 0)return gEf;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return gEf=q},{mode:2});var nw=function(){return _.C.apply(this,arguments)||this};
_.Y(nw,_.C);
nw.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"}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],nw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],nw.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],nw);
_.a(nw,"ytd-sponsorships-management-renderer",function(){if(y4a!==void 0)return y4a;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return y4a=q},{mode:1});var RJf;var a1=function(){return _.C.apply(this,arguments)||this};
_.Y(a1,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],a1.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],a1.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],a1);
_.a(a1,"ytd-open-in-native-app-view-model",function(){if(RJf!==void 0)return RJf;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return RJf=q},{mode:_.Am("kevlar_poly_si_batch_j028")?1:2});var dvN;var c4X;var u1p=_.Tt(["top-"]),zJc=_.Tt(["bottom-"]),$vW=_.Tt(["left-"]),tjX=_.Tt(["right-"]),mvC={},r4a=function(q,N,b){q.removeAttribute("top-"+b);q.removeAttribute("bottom-"+b);q.removeAttribute("left-"+b);q.removeAttribute("right-"+b);N&&(N.top&&_.cx([_.ms(u1p)],q,"top-"+b,N.top),N.bottom&&_.cx([_.ms(zJc)],q,"bottom-"+b,N.bottom),N.left&&_.cx([_.ms($vW)],q,"left-"+b,N.left),N.right&&_.cx([_.ms(tjX)],q,"right-"+b,N.right))};
mvC.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(q){var N,b=_.ee((N=this.hostElement)!=null?N:this),y;N=this.cardItemBoxBehaviorMarginTargetId&&b?b.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(y=this.hostElement)!=null?y:this;r4a(N,q,"margin")},
cardItemContainerPaddingChanged_:function(q){var N,b=_.ee((N=this.hostElement)!=null?N:this),y;N=this.cardItemBoxBehaviorPaddingTargetId&&b?b.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(y=this.hostElement)!=null?y:this;r4a(N,q,"padding")}}];var Sf={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 XRK;var VjU;var Wp=function(){return _.C.apply(this,arguments)||this};
_.Y(Wp,_.C);Wp.prototype.textColorChanged_=function(){this.hostElement.style.color=Sf[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Wp.prototype.textColorChanged_=Wp.prototype.textColorChanged_;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.p([_.O(mvC.YtCardItemBoxBehavior),_.P("design:type",Object)],Wp.prototype,"ytCardItemBoxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Wp.prototype,"data",void 0);_.p([_.FY("data.textColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Wp.prototype,"textColorChanged_",null);
_.p([_.Ok({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Wp);
_.a(Wp,"yt-card-item-text-renderer",function(){if(VjU===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;XRK===void 0&&(XRK=document.createElement("template"));var y=XRK;b.call(N,y.content.cloneNode(!0),q.content.firstChild);VjU=q}q=VjU;return q},{mode:2});var jlU;var xvX;var Lw=function(){return _.C.apply(this,arguments)||this};
_.Y(Lw,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Lw.prototype,"data",void 0);_.p([_.Ok({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],Lw);
_.a(Lw,"yt-card-item-badge-renderer",function(){if(xvX===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;jlU===void 0&&(jlU=document.createElement("template"));var y=jlU;b.call(N,y.content.cloneNode(!0),q.content.firstChild);xvX=q}q=xvX;return q},{mode:2});var vEA;var Gox;var pw=function(){return _.C.apply(this,arguments)||this};
_.Y(pw,_.C);pw.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],pw.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],pw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],pw.prototype,"data",void 0);_.p([_.Ok({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],pw);
_.a(pw,"yt-card-item-text-collection-renderer",function(){if(Gox===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;vEA===void 0&&(vEA=document.createElement("template"));var y=vEA;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Gox=q}q=Gox;return q},{mode:2});var Yxp;var Qlf;var Pp=function(){return _.C.apply(this,arguments)||this};
_.Y(Pp,_.C);Pp.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]]"}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Pp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Pp.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Number)],Pp.prototype,"iconSize",void 0);_.p([_.Ok({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Pp);
_.a(Pp,"yt-card-item-text-with-button-renderer",function(){if(Qlf===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;Yxp===void 0&&(Yxp=document.createElement("template"));var y=Yxp;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Qlf=q}q=Qlf;return q},{mode:2});var Mk=function(){return _.C.apply(this,arguments)||this};
_.Y(Mk,_.C);Mk.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"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Mk.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Mk.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Mk.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],Mk);
_.a(Mk,"ytd-commerce-cart-summary-line-item-renderer",function(){if(c4X!==void 0)return c4X;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return c4X=q},{mode:1});_.xP("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var o1=function(){var q=_.C.apply(this,arguments)||this;q.hidden=!1;return q};
_.Y(o1,_.C);_.g=o1.prototype;_.g.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"}}}}};
_.g.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.g.updateSummary=function(){var q=this.commerceCartCheckoutButtonEntity,N;if(((N=this.data)==null?0:N.cartButton)&&q.checkoutSummaryText){var b,y=xA((b=this.data)==null?void 0:b.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+y+".cardItemTextRenderer.text",vD(q.checkoutSummaryText));if(q.checkoutDetailText){var J;b=xA((J=this.data)==null?void 0:J.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+b+".cardItemTextRenderer.text",vD(q.checkoutDetailText))}if(q.checkoutAdditionalMetadataText){var E;
J=xA((E=this.data)==null?void 0:E.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+J+".cardItemTextRenderer.text",vD(q.checkoutAdditionalMetadataText))}}else q.estimatedTotalPrice&&(E=xA((y=this.data)==null?void 0:y.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+E+".cardItemTextRenderer.text",vD(q.estimatedTotalPrice)))};
_.g.updateIsHidden=function(){var q,N=(q=this.commerceCartCheckoutButtonEntity)==null?void 0:q.isHidden;N!==void 0&&(this.hidden=N)};
_.g.updateCheckoutButton=function(){var q,N=(q=this.commerceCartCheckoutButtonEntity)==null?void 0:q.isDisabled;N!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",N);var b;q=(b=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:b.innertubeCommand;q!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",q);var y;b=(y=this.commerceCartCheckoutButtonEntity)==null?void 0:y.checkoutButtonText;b!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:b})};
o1.prototype.entityChanged=o1.prototype.entityChanged;_.p([_.O(_.H6),_.P("design:type",Object)],o1.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],o1.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],o1.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],o1.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],o1.prototype,"fullWidth",void 0);_.p([_.U(),_.P("design:type",Object)],o1.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],o1.prototype,"compact",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],o1.prototype,"hidden",void 0);
_.p([_.U({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:FFe}),_.P("design:type",Object)],o1.prototype,"commerceCartCheckoutButtonEntity",void 0);_.p([_.FY("commerceCartCheckoutButtonEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],o1.prototype,"entityChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],o1);
_.a(o1,"ytd-commerce-cart-checkout-button-renderer",function(){if(dvN!==void 0)return dvN;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return dvN=q},{mode:2});var O1a;_.wRx={};
_.wRx.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",_.gq(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.gq(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(q){!this.tappableItemBehaviorTapEnabled||q.keyCode!==13&&q.keyCode!==32||q.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var q=this.data.onTap;q.ypcGetCartEndpoint?(_.qc(this.hostElement,[q]),this.tappableItemBehaviorTapEnabled=!1):q.ypcOffersEndpoint?_.qc(this.hostElement,[q]):_.Nc(this.hostElement,[q],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(q){this.tappableItemBehaviorTapEnabled=!!q},
tappableItemBehaviorOnTapEnabledChanged_:function(){var q=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(q.setAttribute("tabIndex",0),q.setAttribute("role","button")):(q.removeAttribute("tabIndex"),q.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(q){q.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var i1a;var lqU;var Aq=function(){return _.C.apply(this,arguments)||this};
_.Y(Aq,_.C);Aq.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.vk("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.vk("sharingToggleButtonAndDefaultButton")}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Aq.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Aq.prototype,"data",void 0);_.p([_.Ok({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Aq);
_.a(Aq,"yt-card-item-actions-renderer",function(){if(lqU===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;i1a===void 0&&(i1a=document.createElement("template"));var y=i1a;b.call(N,y.content.cloneNode(!0),q.content.firstChild);lqU=q}q=lqU;return q},{mode:2});var KMf;var Dva;var hJU;var kop;var Uva;var fqf;var ef=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return q};
_.Y(ef,_.C);ef.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
ef.prototype.handleDarkModeToggledAction_=function(q){this.isDarkTheme_=q};
ef.prototype.computeThemeImage_=function(q,N){if(!q||!q.imageLight)return!1;this.isCircular_=q.isCircular;q.imageWidth&&(this.hostElement.style.width=q.imageWidth+"px");q.imageHeight&&(this.hostElement.style.height=q.imageHeight+"px");q.borderWidth&&(this.image.style.borderWidth=q.borderWidth+"px",this.image.style.borderStyle="solid");q.borderColor&&(this.image.style.borderColor=_.Y8(q.borderColor));return N&&q.imageDark?q.imageDark:q.imageLight};
ef.prototype.computeThemeIcon_=function(q){var N,b;if(!(q==null?0:(N=q.themedIcon)==null?0:(b=N.icon)==null?0:b.iconType))return!1;this.icon.style.color=Sf[q.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(q.imageWidth||18)+"px";this.icon.style.height=(q.imageHeight||18)+"px";return _.qo(q.themedIcon.icon.iconType)};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ef.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ef.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(mvC.YtCardItemBoxBehavior),_.P("design:type",Object)],ef.prototype,"ytCardItemBoxBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],ef.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ef.prototype,"data",void 0);
_.p([_.U({value:!1}),_.P("design:type",Boolean)],ef.prototype,"fit",void 0);_.p([_.U(),_.P("design:type",Boolean)],ef.prototype,"isDarkTheme_",void 0);_.p([_.U({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.P("design:type",Object)],ef.prototype,"themeImage_",void 0);_.p([_.U({computed:"computeThemeIcon_(data)"}),_.P("design:type",Object)],ef.prototype,"themeIcon_",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Object)],ef.prototype,"isCircular_",void 0);
_.p([_.dq("#image"),_.P("design:type",Object)],ef.prototype,"image",void 0);_.p([_.dq("#icon"),_.P("design:type",Object)],ef.prototype,"icon",void 0);_.p([_.Ok({is:"yt-themed-image-renderer",disableElementRegistration:!0})],ef);
_.a(ef,"yt-themed-image-renderer",function(){if(fqf===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;Uva===void 0&&(Uva=document.createElement("template"));var y=Uva;b.call(N,y.content.cloneNode(!0),q.content.firstChild);fqf=q}q=fqf;return q},{mode:2});var Bp=function(){return _.C.apply(this,arguments)||this};
_.Y(Bp,_.C);Bp.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"}}}}};
Bp.prototype.computeImagePlacement_=function(q){return q||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Bp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Bp.prototype,"data",void 0);_.p([_.U({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.P("design:type",String)],Bp.prototype,"imagePlacement",void 0);
_.p([_.Ok({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Bp);
_.a(Bp,"yt-card-item-text-with-image-renderer",function(){if(kop===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;hJU===void 0&&(hJU=document.createElement("template"));var y=hJU;b.call(N,y.content.cloneNode(!0),q.content.firstChild);kop=q}q=kop;return q},{mode:2});var Hp=function(){return _.C.apply(this,arguments)||this};
_.Y(Hp,_.C);Hp.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"}}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Hp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Hp.prototype,"data",void 0);_.p([_.Ok({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Hp);
_.a(Hp,"yt-card-item-error-renderer",function(){if(Dva===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;KMf===void 0&&(KMf=document.createElement("template"));var y=KMf;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Dva=q}q=Dva;return q},{mode:2});var CTf;var IqC;_.xP("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var qh=function(){return _.C.apply(this,arguments)||this};
_.Y(qh,_.C);_.g=qh.prototype;
_.g.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"}}}}};
_.g.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.g.backgroundColorChanged_=function(){var q,N=(q=this.data)==null?void 0:q.backgroundColor;q=Sf[N||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.ee(this.hostElement).querySelector("#main-content").style.backgroundColor=q};
_.g.headerPromoBackgroundColorChanged_=function(){var q,N=(q=this.data)==null?void 0:q.headerPromoBackgroundColor;q=Sf[N||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.ee(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=q};
_.g.errorRendererVisibilityChanged_=function(){var q=this.isExpanded_,N;this.isErrorRendererVisible_=!((N=this.data)==null||!N.errorRenderer)&&!q};
_.g.onYtToggleButton_=function(q,N){this.isExpanded_=N.toggled};
qh.prototype.onYtToggleButton_=qh.prototype.onYtToggleButton_;qh.prototype.errorRendererVisibilityChanged_=qh.prototype.errorRendererVisibilityChanged_;qh.prototype.headerPromoBackgroundColorChanged_=qh.prototype.headerPromoBackgroundColorChanged_;qh.prototype.backgroundColorChanged_=qh.prototype.backgroundColorChanged_;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],qh.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],qh.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(mvC.YtCardItemBoxBehavior),_.P("design:type",Object)],qh.prototype,"ytCardItemBoxBehavior",void 0);_.p([_.O(_.wRx.YtTappableItemBehavior),_.P("design:type",Object)],qh.prototype,"ytTappableItemBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],qh.prototype,"data",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],qh.prototype,"isExpanded_",void 0);
_.p([_.U({value:!1}),_.P("design:type",Boolean)],qh.prototype,"isErrorRendererVisible_",void 0);_.p([_.FY("data.backgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qh.prototype,"backgroundColorChanged_",null);_.p([_.FY("data.headerPromoBackgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qh.prototype,"headerPromoBackgroundColorChanged_",null);
_.p([_.FY("data.errorRenderer","isExpanded_"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qh.prototype,"errorRendererVisibilityChanged_",null);_.p([_.ZP("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[Event,Object]),_.P("design:returntype")],qh.prototype,"onYtToggleButton_",null);_.p([_.Ok({is:"yt-card-item-renderer",disableElementRegistration:!0})],qh);
_.a(qh,"yt-card-item-renderer",function(){if(IqC===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;CTf===void 0&&(CTf=document.createElement("template"));var y=CTf;b.call(N,y.content.cloneNode(!0),q.content.firstChild);IqC=q}q=IqC;return q},{mode:2});_.xP("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Nh=function(){var q=_.C.apply(this,arguments)||this;q.hidden=!1;return q};
_.Y(Nh,_.C);_.g=Nh.prototype;_.g.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.g.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.g.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var q,N=(q=this.commerceCartHeaderEntity)==null?void 0:q.isHidden;N!==void 0&&(this.hidden=N)}};
_.g.updateTitle=function(){var q=this.commerceCartHeaderEntity.isDisabled,N,b,y=(b=_.v((N=this.data)==null?void 0:N.item,$wF))==null?void 0:b.headingRenderer;y&&(N=xA(y,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+N+".0.cardItemTextRenderer.textColor",q?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.g.updateSummaryText=function(){var q=this.commerceCartHeaderEntity;if(this.compact){var N,b,y=(b=_.v((N=this.data)==null?void 0:N.item,$wF))==null?void 0:b.headingRenderer;y&&(N=xA(y,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+N+".1.cardItemTextRenderer.text",q.shortHeaderSummaryText?vD(q.shortHeaderSummaryText):q.headerSummaryText?vD(q.headerSummaryText):""))}else{var J;if(N=(J=_.v((y=this.data)==null?void 0:y.item,$wF))==null?void 0:J.additionalInfoRenderer)N=xA(N,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+N+".text",q.headerSummaryText?vD(q.headerSummaryText):"")}};
_.g.updateCheckoutButton=function(){var q=this.commerceCartHeaderEntity,N,b,y=(b=_.v((N=this.data)==null?void 0:N.item,$wF))==null?void 0:b.additionalInfoRenderer;N=xA(y,"buttonRenderer");var J;b=(J=this.commerceCartHeaderEntity)==null?void 0:J.isButtonDisabled;var E;J=(E=this.commerceCartHeaderEntity)==null?void 0:E.isButtonHidden;b!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+N+".buttonRenderer.isDisabled",b);J!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
J);var F;q=(F=q.checkoutButtonCommand)==null?void 0:F.innertubeCommand;q!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+N+".buttonRenderer.command",q)};
Nh.prototype.entityChanged=Nh.prototype.entityChanged;_.p([_.O(_.H6),_.P("design:type",Object)],Nh.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Nh.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Nh.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Nh.prototype,"compact",void 0);_.p([_.U({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(q,N){return _.Ji(q.entities,"commerceCartHeaderEntity",N)}}),
_.P("design:type",Object)],Nh.prototype,"commerceCartHeaderEntity",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Nh.prototype,"hidden",void 0);_.p([_.FY("commerceCartHeaderEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Nh.prototype,"entityChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Nh);
_.a(Nh,"ytd-commerce-cart-header-renderer",function(){if(O1a!==void 0)return O1a;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return O1a=q},{mode:1});var TxU;var sla=_.vE(function(q,N){var b;return(b=q.onChangeCallback)==null?void 0:b.call(q,N)},1E3),nEf=_.n(function(q){var N=q.data;
var b=q.iconMinus;q=q.iconPlus;var y=function(){return!!N().disabled},J=_.Z(_.QS(0,void 0,"mKh0af")),E=J.next().value,F=J.next().value;
J=_.y0(function(){if(E()===1){var r,X;(X=(r=N()).onRemoveCommand)==null||X.call(r)}r=E()>N().maxValue?N().maxValue:E()-1;F(r);sla(N(),r);return!1});
var R=_.y0(function(){if(E()===N().maxValue)return!1;var r=E()+1;F(r);sla(N(),r);return!1});
_.SI(function(){F(N().value)});
var c={},z={},m={};return _.u("quantity-incrementer-shape",null,_.u("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.u("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return E()===(N().onRemoveCommand?0:1)||y()},
"aria-label":function(){return E()!==1?N().minusLabel:N().minimumReachedLabel},
"on:click":J},_.u(_.j9,{model:{circular:!0}}),_.u("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.u("div",{class:_.NO("ytSpecQuantityIncrementerShapeIcon",(c.ytSpecQuantityIncrementerShapeIconDisabled=function(){return y()||E()===(N().onRemoveCommand?0:1)},c))},b()))),_.u("div",{class:_.NO("ytSpecQuantityIncrementerShapeText",(z.ytSpecQuantityIncrementerShapeTextInvalid=function(){return E()>N().maxValue},z.ytSpecQuantityIncrementerShapeTextDisabled=y,z))},E),_.u("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return E()>=N().maxValue||y()},
"aria-label":function(){return E()!==N().maxValue?N().plusLabel:N().maximumReachedLabel},
"on:click":R},_.u(_.j9,{model:{circular:!0}}),_.u("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.u("div",{class:_.NO("ytSpecQuantityIncrementerShapeIcon",(m.ytSpecQuantityIncrementerShapeIconDisabled=function(){return E()>=N().maxValue||y()},m))},q())))))},"Lf");_.P$(_.n(function(q){function N(){b().onRemoveCommand&&_.Kt(b().onRemoveCommand)}
var b=q.data;var y=_.dj(vXh,function(){return b().quantityIncrementerEntityKey});
return _.u("yt-quantity-incrementer-view-model",null,_.u(nEf,{data:function(){var J=b(),E;var F=y()?!((E=y())==null||!E.disabled):!1;var R;E=y()?(R=y())==null?void 0:R.quantity:b().quantity;return s3C(J,F,N,E)},
iconMinus:function(){return _.u(_.FQ,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.u(_.FQ,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Mf"),"yt-quantity-incrementer-view-model",{props:{data:_.F5}});var bh=function(){var q=_.C.apply(this,arguments)||this;q.compact=!1;q.hasQuantityIncrementer=!1;return q};
_.Y(bh,_.C);bh.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"}}}};
bh.prototype.computeHasQuantityIncrementer=function(){var q;return!!_.v((q=this.data)==null?void 0:q.picker,XjT)};
bh.prototype.onLabelClick=function(){var q;(q=this.dropdownEl)==null||q.open()};
_.p([_.dq("ytd-dropdown-renderer"),_.P("design:type",Object)],bh.prototype,"dropdownEl",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],bh.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],bh.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],bh.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],bh.prototype,"quantityColor",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],bh.prototype,"compact",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.P("design:type",Object)],bh.prototype,"hasQuantityIncrementer",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],bh);
_.a(bh,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(TxU!==void 0)return TxU;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return TxU=q},{mode:1});var aqa;var SxN;var yo=function(){return _.C.apply(this,arguments)||this};
_.Y(yo,_.C);yo.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
yo.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
yo.prototype.updateTitle=function(){var q=this.disabledCartItemEntity;q.disableActionName&&this.set("data.title",vD(q.disableActionName))};
yo.prototype.updateButton=function(){var q,N=(q=this.disabledCartItemEntity.undoCommand)==null?void 0:q.innertubeCommand;N!==void 0&&(this.set("data.actionButton.buttonRenderer.command",N),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
yo.prototype.entityChanged=yo.prototype.entityChanged;_.p([_.O(_.H6),_.P("design:type",Object)],yo.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],yo.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(q,N){return _.Ji(q.entities,"disabledCartItemEntity",N)}}),
_.P("design:type",Object)],yo.prototype,"disabledCartItemEntity",void 0);_.p([_.U(),_.P("design:type",Object)],yo.prototype,"data",void 0);_.p([_.FY("disabledCartItemEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yo.prototype,"entityChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],yo);
_.a(yo,"ytd-disabled-cart-item-renderer",function(){if(SxN!==void 0)return SxN;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return SxN=q},{mode:1});_.xP("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var JU=function(){var q=_.C.apply(this,arguments)||this;q.compact=!1;q.hidden=!1;q.errorHidden=!1;q.noOnTap=!1;return q};
_.Y(JU,_.C);_.g=JU.prototype;
_.g.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"}}}};
_.g.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.g.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var q=this.firstButtonElement;q.alignByText=!0;q.iconAlignByText=!0}};
_.g.computeNoOnTap=function(q){return!q};
_.g.updateQuantityColor=function(){if(this.pickerElement){var q,N=(q=this.commerceCartItemEntity)==null?void 0:q.quantityColor;this.pickerElement.quantityColor=N}};
_.g.updateTotalPriceColor=function(){var q,N=(q=this.commerceCartItemEntity)==null?void 0:q.totalPriceColor;if(N){var b;q=_.v((b=this.data)==null?void 0:b.quantityPicker,mwx);if(b=_.v(q==null?void 0:q.price,tiM))b.textColor=N}};
_.g.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var q,N=(q=this.commerceCartItemEntity)==null?void 0:q.isHidden;N!==void 0&&(this.hidden=N)}};
_.g.updateHideErrorMessage=function(){var q,N=(q=this.commerceCartItemEntity)==null?void 0:q.hideErrorMessage;N!==void 0&&(this.errorHidden=N)};
_.g.updateQuantity=function(){var q=this,N,b=(N=this.commerceCartItemEntity)==null?void 0:N.quantity,y;N=(y=this.commerceCartItemEntity)==null?void 0:y.totalPrice;if(b){this.updateTotalPriceColor();this.updateQuantityColor();var J;y=_.v((J=this.data)==null?void 0:J.quantityPicker,mwx);if(J=_.v(y==null?void 0:y.price,tiM))J.text=N?{simpleText:N.content}:void 0;if(N=_.v(y==null?void 0:y.picker,XjT))N.quantity=b;var E;if(J=(E=_.v(y==null?void 0:y.picker,$J4))==null?void 0:E.entries){E=!1;N=void 0;J=
_.Z(J);for(y=J.next();!y.done;y=J.next())y=y.value,y.dropdownItemRenderer&&(N||(N=y.dropdownItemRenderer),y.dropdownItemRenderer.isSelected=!1,b===y.dropdownItemRenderer.int32Value&&(E=!0,y.dropdownItemRenderer.isSelected=!0));!E&&N&&(N.isSelected=!0)}_.ut(this,function(){var F;q.set("data.quantityPicker",_.nM.unsafeClone((F=q.data)==null?void 0:F.quantityPicker))})}};
JU.prototype.onYtRendererstamperFinished=JU.prototype.onYtRendererstamperFinished;JU.prototype.entityChanged=JU.prototype.entityChanged;_.p([_.U(),_.P("design:type",Object)],JU.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],JU.prototype,"compact",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],JU.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],JU.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],JU.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(q,N){return _.Ji(q.entities,"commerceCartItemEntity",N)}}),
_.P("design:type",Object)],JU.prototype,"commerceCartItemEntity",void 0);_.p([_.U(),_.P("design:type",Object)],JU.prototype,"quantityPicker",void 0);_.p([_.U(),_.P("design:type",Object)],JU.prototype,"compactQuantityPicker",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],JU.prototype,"hidden",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],JU.prototype,"errorHidden",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.P("design:type",Object)],JU.prototype,"noOnTap",void 0);_.p([_.dq("ytd-commerce-cart-item-quantity-picker-renderer"),_.P("design:type",Object)],JU.prototype,"pickerElement",void 0);_.p([_.dq("yt-button-renderer"),_.P("design:type",Element)],JU.prototype,"firstButtonElement",void 0);
_.p([_.FY("commerceCartItemEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],JU.prototype,"entityChanged",null);_.p([_.ZP("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],JU.prototype,"onYtRendererstamperFinished",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],JU);
_.a(JU,"ytd-commerce-cart-item-renderer",function(){if(aqa!==void 0)return aqa;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return aqa=q},{mode:_.Am("kevlar_poly_si_batch_j028")?1:2});var WMd;var LMf;var EH=function(){return _.C.apply(this,arguments)||this};
_.Y(EH,_.C);EH.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}}}}}};
EH.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
EH.prototype.updateCheckoutLineItems=function(){var q,N=(q=this.commerceCartCheckoutButtonEntity)==null?void 0:q.checkoutLineItems;N&&(q=N.map(function(b){a:{var y=b.price,J=b.description;switch(b.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":b={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:vD(J),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:vD(y),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:b={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:vD(J),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:vD(y),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 b}),this.set("data.summaryLineItems",q))};
EH.prototype.updateIsHidden=function(){var q,N=(q=this.commerceCartCheckoutButtonEntity)==null?void 0:q.isHidden;N!==void 0&&(this.hostElement.hidden=N)};
EH.prototype.entityChanged=EH.prototype.entityChanged;_.p([_.O(_.H6),_.P("design:type",Object)],EH.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],EH.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],EH.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],EH.prototype,"data",void 0);_.p([_.U({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:FFe}),_.P("design:type",Object)],EH.prototype,"commerceCartCheckoutButtonEntity",void 0);_.p([_.FY("commerceCartCheckoutButtonEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EH.prototype,"entityChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],EH);
_.a(EH,"ytd-commerce-cart-summary-renderer",function(){if(LMf!==void 0)return LMf;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return LMf=q},{mode:1});var pRU={};pRU.InjectBehavior=[BlR.InjectBehavior];var PTB;var Mjd;var gG=function(){return _.C.apply(this,arguments)||this};
_.Y(gG,_.C);
gG.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:_.vk("menuRenderer")}}};
gG.prototype.onMenuTap=function(q){q.stopPropagation()};
_.$H.Object.defineProperties(gG.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 q,N;return!(((q=this.data)==null||!q.sectionHeading)&&((N=this.data)==null?void 0:N.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var q,N;return!(((q=this.data)==null||!q.image)&&((N=this.data)==null?void 0:N.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var q,N;return!(((q=this.data)==null||!q.menu)&&((N=this.data)==null?void 0:N.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],gG.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.wRx.YtTappableItemBehavior),_.P("design:type",Object)],gG.prototype,"ytTappableItemBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],gG.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.l("data.accessibilityData"),_.P("design:type",String),_.P("design:paramtypes",[])],gG.prototype,"ariaLabel",null);_.p([_.l("data.sectionHeading","data.layout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],gG.prototype,"sectionHeadingVisible",null);_.p([_.l("data.image","data.layout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],gG.prototype,"imageVisible",null);
_.p([_.l("data.menu","data.layout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],gG.prototype,"menuVisible",null);_.p([_.Ok({is:"yt-activity-item-renderer",disableElementRegistration:!0})],gG);
_.a(gG,"yt-activity-item-renderer",function(){if(Mjd===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;PTB===void 0&&(PTB=document.createElement("template"));var y=PTB;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Mjd=q}q=Mjd;return q},{mode:2});var oEa;var A4B;var eJA;var BxX;var Zw=function(){return _.C.apply(this,arguments)||this};
_.Y(Zw,_.C);
Zw.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"}}}}};
Zw.prototype.backgroundColorChanged_=function(){var q,N=(q=this.data)==null?void 0:q.backgroundColor;this.hostElement.style.backgroundColor=Sf[N||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Zw.prototype.backgroundColorChanged_=Zw.prototype.backgroundColorChanged_;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Zw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Zw.prototype,"data",void 0);
_.p([_.FY("data.backgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zw.prototype,"backgroundColorChanged_",null);_.p([_.Ok({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Zw);
_.a(Zw,"yt-offer-item-upsell-renderer",function(){if(BxX===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;eJA===void 0&&(eJA=document.createElement("template"));var y=eJA;b.call(N,y.content.cloneNode(!0),q.content.firstChild);BxX=q}q=BxX;return q},{mode:2});_.xP("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var FB=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};q.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return q};
_.Y(FB,_.C);_.g=FB.prototype;
_.g.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:_.vk("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.g.computeContainerStyle_=function(q){return q};
_.g.computeContainerIsHidden_=function(q){return q&&!!q.isHidden};
_.g.computeShowSpinner_=function(q,N){return q&&N==="in-progress"};
_.g.computeShowMoreContentsButton_=function(q,N,b,y,J){return!(!(y&&y.length||J&&J.length&&b)||!q||N)};
_.g.onToggleButton_=function(q){var N=this;q.stopPropagation();this.isExpanded_=q.detail&&q.detail.toggled;var b,y;this.isExpanded_&&!this.data.continuationSection.length&&((b=this.data)==null?0:(y=b.continuation)==null?0:y.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.e2(this.hostElement,"yt-load-next-continuation",function(J){return N.getContinuationUrl_(N.data.continuation.onClickContinuationData,J)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.qc(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.g.onShowMoreContentsButtonClicked_=function(q){var N=this;q.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.e2(this.hostElement,"yt-load-next-continuation",function(b){return N.getContinuationUrl_(N.data.continuations[0].nextContinuationData,b)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.qc(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.g.getContinuationUrl_=function(q,N){var b=q.continuation;q=q.clickTrackingParams;var y=_.Oe();q&&y&&_.nr(y,_.zT(q));return _.F$(N,{continuation:b})};
_.g.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var q=_.ee(this.hostElement).querySelector("#continuation-section");q&&(q=q.querySelectorAll("ytmusic-item-section-renderer"))&&q.forEach(function(N){return N.classList.add("memberships-and-purchases")})};
_.g.dataChanged_=function(){var q;this.isExpanded_=!((q=this.data)==null||!q.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.g.updateCardOnClickCommand_=function(q){q=_.v(q,gx1);var N,b;this.data&&((N=this.data)==null?0:N.targetId)&&q&&q.targetId===((b=this.data)==null?void 0:b.targetId)&&q.onClickCommand&&(this.data.onClickCommand=q.onClickCommand,this.isOnClickCommand_=!0)};
_.g.backgroundColorChanged_=function(){var q,N=(q=this.data)==null?void 0:q.backgroundColor;this.hostElement.style.backgroundColor=Sf[N||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
FB.prototype.backgroundColorChanged_=FB.prototype.backgroundColorChanged_;FB.prototype.dataChanged_=FB.prototype.dataChanged_;FB.prototype.nextContinuationDataUpdated_=FB.prototype.nextContinuationDataUpdated_;FB.prototype.onToggleButton_=FB.prototype.onToggleButton_;_.p([_.O(_.tA),_.P("design:type",Object)],FB.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],FB.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],FB.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.m1.YtNextContinuationBehavior),_.P("design:type",Object)],FB.prototype,"ytNextContinuationBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],FB.prototype,"ytRendererBehavior",void 0);_.p([_.O(pRU.InjectBehavior),_.P("design:type",Object)],FB.prototype,"injectBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],FB.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],FB.prototype,"compact",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],FB.prototype,"isExpanded_",void 0);_.p([_.U({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.P("design:type",String)],FB.prototype,"containerStyle_",void 0);_.p([_.U({value:"not-started"}),_.P("design:type",String)],FB.prototype,"continuationStatus_",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.P("design:type",Boolean)],FB.prototype,"showSpinner_",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],FB.prototype,"isOnClickCommand_",void 0);_.p([_.U({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.P("design:type",Boolean)],FB.prototype,"showMoreContentsButton_",void 0);
_.p([_.U({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(q,N){return!N||q.entities?null:_.Ji(q.entities,"cardItemContainerEntity",N)}}),
_.P("design:type",Object)],FB.prototype,"cardItemContainerEntity_",void 0);_.p([_.ZP("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],FB.prototype,"onToggleButton_",null);_.p([_.ZP("yt-next-continuation-data-updated"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FB.prototype,"nextContinuationDataUpdated_",null);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FB.prototype,"dataChanged_",null);_.p([_.FY("data.backgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FB.prototype,"backgroundColorChanged_",null);_.p([_.Ok({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],FB);
_.a(FB,"yt-card-item-container-renderer",function(){if(A4B===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;oEa===void 0&&(oEa=document.createElement("template"));var y=oEa;b.call(N,y.content.cloneNode(!0),q.content.firstChild);A4B=q}q=A4B;return q},{mode:2});var Rj=function(){return _.C.apply(this,arguments)||this};
_.Y(Rj,_.C);Rj.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"}}}};
Rj.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
Rj.prototype.computeLoadingHidden=function(){var q;return!((q=this.commerceCartPageStateEntity)==null?0:q.cartActionInProgress)};
Rj.prototype.updateNotification=function(){var q,N=(q=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:q.summaryText;N&&this.set("data.cartNotification",vD(N))};
Rj.prototype.notificationEntityChanged=Rj.prototype.notificationEntityChanged;_.p([_.O(_.H6),_.P("design:type",Object)],Rj.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Rj.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Rj.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],Rj.prototype,"data",void 0);_.p([_.U({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(q,N){return _.Ji(q.entities,"commerceCartExpandableNotificationEntity",N)}}),
_.P("design:type",Object)],Rj.prototype,"commerceCartExpandableNotificationEntity",void 0);_.p([_.U({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(q,N){return _.Ji(q.entities,"commerceCartPageStateEntity",N)}}),
_.P("design:type",Object)],Rj.prototype,"commerceCartPageStateEntity",void 0);_.p([_.dq("#spinner"),_.P("design:type",HTMLElement)],Rj.prototype,"spinner",void 0);_.p([_.FY("commerceCartExpandableNotificationEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Rj.prototype,"notificationEntityChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],Rj);
_.a(Rj,"ytd-commerce-cart-renderer",function(){if(WMd!==void 0)return WMd;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return WMd=q},{mode:1});var H1f;var dG=function(){var q=_.C.apply(this,arguments)||this;q.bigImage=!1;return q};
_.Y(dG,_.C);_.$H.Object.defineProperties(dG.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.placeholderImageUrl}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],dG.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],dG.prototype,"bigImage",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],dG.prototype,"placeholderImageUrl",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],dG);
_.a(dG,"ytd-empty-product-shelf-renderer",function(){if(H1f!==void 0)return H1f;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return H1f=q},{mode:1});var qfK;var cL=function(){var q=_.C.apply(this,arguments)||this;q.itemStyle="link-item";q.watchMetadataRefresh=!1;q.skinnyMode=!1;q.metaPanel=!1;q.inStructuredDescription=!1;q.detailedDescriptionOverride=!1;q.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};q.updateOnResizeDebouncer=null;return q};
_.Y(cL,_.C);_.g=cL.prototype;_.g.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.g.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"}}}}};
_.g.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.g.attachVEs=function(q){q.trackingParams&&_.FR().graftServerVe(q.trackingParams)};
_.g.handleUpdateMerchShelfAction=function(q){var N=this,b=_.v(q.updateMerchandiseShelfAction.merchandiseShelf,_.DAq);b&&(b.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){N.attachVEs(b);N.data=b},Number(b.renderDelayMs))):(this.attachVEs(b),this.data=b))};
_.g.updateOnResize=function(){if(this.JSC$17099_scrollContainer!==void 0&&this.JSC$17099_scrollContainer.clientWidth!==0&&this.items!==void 0){var q=this.JSC$17099_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-q));this.ytdHorizontalListBehavior.reposition_();var N;switch((N=this.data)==null?void 0:N.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var b,
y;((b=this.data)==null?void 0:(y=b.items)==null?void 0:y.length)===1?this.itemStyle="cta-item":this.itemStyle=q>=740?"large-item":"small-item"}}};
_.g.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.$c(this.updateOnResizeDebouncer,_.bW.after(100),this.updateOnResize)};
cL.prototype.debouncedUpdateOnResize=cL.prototype.debouncedUpdateOnResize;cL.prototype.dataChanged=cL.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.jm.YtdHorizontalListBehavior),_.P("design:type",Object)],cL.prototype,"ytdHorizontalListBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],cL.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],cL.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],cL.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],cL.prototype,"itemStyle",void 0);_.p([_.U({value:6}),_.P("design:type",Number)],cL.prototype,"initialCount",void 0);
_.p([_.U({value:"data.items"}),_.P("design:type",String)],cL.prototype,"itemsPath",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],cL.prototype,"watchMetadataRefresh",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],cL.prototype,"skinnyMode",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],cL.prototype,"metaPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],cL.prototype,"inStructuredDescription",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],cL.prototype,"detailedDescriptionOverride",void 0);_.p([_.dq("#items"),_.P("design:type",HTMLDivElement)],cL.prototype,"items",void 0);_.p([_.dq("#scroll-container"),_.P("design:type",HTMLDivElement)],cL.prototype,"JSC$17099_scrollContainer",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cL.prototype,"dataChanged",null);
_.p([_.ZP("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cL.prototype,"debouncedUpdateOnResize",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],cL);
_.a(cL,"ytd-merch-shelf-renderer",function(){if(qfK!==void 0)return qfK;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return qfK=q},{mode:2});var NpC;var uh=function(){var q=_.C.apply(this,arguments)||this;q.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 q};
_.Y(uh,_.C);_.g=uh.prototype;
_.g.addBackstagePostAction=function(q){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(q=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",q))&&(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:q}):this.set("data.contents",[{backstagePostThreadRenderer:q}]))};
_.g.addBackstageCommentAction=function(q){var N=this.get("addBackstageCommentAction.parentId",q);q=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",q);if(N&&q){N=this.postIdToIndices(N);for(var b=0;b<N.length;b++){var y=N[b];if(y<0)break;y="data.contents."+y+".backstagePostThreadRenderer.comments";this.get(y)&&(this.get(y+".backstageCommentsRenderer.contents")&&this.push(y+".backstageCommentsRenderer.contents",{commentThreadRenderer:q}),this.get(y+".backstageCommentsRenderer.teaserContents")?
this.push(y+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:q}):this.set(y+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:q}]))}}};
_.g.addBackstageReplyAction=function(q){var N=this.get("addBackstageReplyAction.parentId",q);q=this.get("addBackstageReplyAction.renderer.commentRenderer",q);N&&q&&this.setCreatorReply(N,q)};
_.g.banAuthorAction=function(q){var N=this.get("banAuthorAction.commentId",q);N&&(q=this.get("banAuthorAction.parentCommentId",q)||this.getParentPostId(N),this.removeFromStream(N,q))};
_.g.hideReportedCommentAction=function(q){var N=this.get("hideReportedCommentAction.commentId",q);N&&((q=this.get("hideReportedCommentAction.parentCommentId",q))||(q=this.getParentPostId(N)),this.removeFromStream(N,q))};
_.g.replaceBackstageCommentAction=function(q){var N=this.get("replaceBackstageCommentAction.commentId",q),b=this.get("replaceBackstageCommentAction.parentId",q);q=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",q);if(N&&b&&q){b=this.postIdToIndices(b);for(var y=0;y<b.length;y++){var J=b[y];if(J<0)break;var E=this.commentIdToIndex(N,J,!1);if(E>=0){var F=this.get("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+E+".commentThreadRenderer.replies.commentRepliesRenderer");
F&&(q.replies={commentRepliesRenderer:F});this.splice("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",E,1,{commentThreadRenderer:q})}E=this.commentIdToIndex(N,J,!0);if(E>=0){if(F=this.get("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(E+".commentThreadRenderer.replies.commentRepliesRenderer")))q.replies={commentRepliesRenderer:F};this.splice("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
E,1,{commentThreadRenderer:q})}}}};
_.g.replaceBackstagePostAction=function(q){var N=this.get("replaceBackstagePostAction.itemId",q);if(N){N=this.postIdToIndices(N);for(var b=0;b<N.length;b++){var y=N[b];if(y<0)break;var J=this.getPostRendererType(y),E=this.get("replaceBackstagePostAction.renderer."+J,q);if(!E&&J!=="sharedPostRenderer")break;var F=!1;E||(F=!0,E=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",q));if(!E)break;var R={};F?(_.x0(R,Awj,E),this.set("data.contents."+y+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
R)):(_.x0(R,new _.yT(J),E),this.set("data.contents."+y+".backstagePostThreadRenderer.post",R))}}};
_.g.replaceBackstageReplyAction=function(q){var N=this.get("replaceBackstageReplyAction.replyId",q),b=this.get("replaceBackstageReplyAction.parentId",q);q=this.get("replaceBackstageReplyAction.renderer.commentRenderer",q);N&&q&&b&&this.setCreatorReply(b,q)};
_.g.removeCommentAction=function(q){var N=this.get("removeCommentAction.commentId",q);if(N){var b=this.get("removeCommentAction.parentCommentId",q);b&&this.get("removeCommentAction.isCreatorReply",q)?this.setCreatorReply(b,void 0):(b||(b=this.getParentPostId(N)),this.removeFromStream(N,b))}};
_.g.setCreatorReply=function(q,N){var b=this.getParentPostId(q);if(b){b=this.postIdToIndices(b);for(var y=0;y<b.length;y++){var J=b[y];if(J<0)break;var E=this.commentIdToIndex(q,J,!1);if(E>=0){var F="data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+E;E=F+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";F+=".commentThreadRenderer.replies";N==void 0?(this.set(F,{}),this.set(E,!1)):(this.set(F,{commentRepliesRenderer:{teaserContents:[{commentRenderer:N}]}}),
this.set(F+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(E,!0))}E=this.commentIdToIndex(q,J,!0);E>=0&&(E="data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+E,J=E+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",E+=".commentThreadRenderer.replies",N==void 0?(this.set(E,{}),this.set(J,!1)):(this.set(E,{commentRepliesRenderer:{teaserContents:[{commentRenderer:N}]}}),this.set(J,!0)))}}};
_.g.removeFromStream=function(q,N){if(N){N=this.postIdToIndices(N);for(var b=0;b<N.length;b++){var y=N[b];if(y<0)break;var J=this.commentIdToIndex(q,y,!1);J>=0&&this.splice("data.contents."+y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",J,1);J=this.commentIdToIndex(q,y,!0);J>=0&&this.splice("data.contents."+y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",J,1);y="data.contents."+y+".backstagePostThreadRenderer.post.backstagePostRenderer";
J=y+".backstageAttachment.pollRenderer.votedCommentId";this.get(J)===q&&(this.set(J,null),this.set(y+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(N=this.postIdToIndices(q).reverse(),b=0;b<N.length;b++){y=N[b];if(y<0)break;J=this.getPostRendererType(y);var E=this.get("backstagePostThreadRenderer.post."+J,this.data.contents[y]);E.postId===q?this.splice("data.contents",y,1):J==="sharedPostRenderer"&&this.set("data.contents."+y+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);E.scheduledPublishTimeSec&&_.By(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.g.postIdToIndices=function(q){for(var N=[],b=0;b<this.data.contents.length;b++){var y=this.getPostRendererType(b);this.get("backstagePostThreadRenderer.post."+y+".postId",this.data.contents[b])===q&&N.push(b);if(y==="sharedPostRenderer"){var J=this.get("backstagePostThreadRenderer.post."+y+".originalPost.backstagePostRenderer.postId",this.data.contents[b]);y=this.get("backstagePostThreadRenderer.post."+y+".originalPost.postRenderer.postId",this.data.contents[b]);J!==q&&y!==q||N.push(b)}}return N};
_.g.commentIdToIndex=function(q,N,b){if(N<0)return-1;var y,J,E,F,R=_.v((y=this.data)==null?void 0:(J=y.contents)==null?void 0:(E=J[N])==null?void 0:(F=E.backstagePostThreadRenderer)==null?void 0:F.comments,MR1);return(N=b?R==null?void 0:R.teaserContents:R==null?void 0:R.contents)&&N.length?N.findIndex(function(c){return _.v(c,izM).comment.commentRenderer.commentId===q}):-1};
_.g.getParentPostId=function(q){q=q.split(".");if(q[1])return q[0]};
_.g.getPostRendererType=function(q){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[q])?"sharedPostRenderer":"backstagePostRenderer"};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],uh.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],uh.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],uh.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:_.x("enable_community_page_on_desktop")}),_.P("design:type",Boolean)],uh.prototype,"useSmallerPostContainer",void 0);
_.p([_.I({disableElementRegistration:!0,is:"ytd-backstage-items"})],uh);
_.a(uh,"ytd-backstage-items",function(){if(NpC!==void 0)return NpC;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return NpC=
q},{mode:1});var bUX;var yaC={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},z$=function(){var q=_.C.apply(this,arguments)||this;q.disablePrescanVisibility=!0;q.canScheduleJobs=!0;q.engagementPanel=!1;q.hidePanelButton=!1;q.isWatchGrid=
!1;q.hasShownSubscribersOnlyDisclaimer=!1;q.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_"};q.TEST_ONLY=void 0;return q};
_.Y(z$,_.C);_.g=z$.prototype;_.g.created=function(){this.initCommentsCsi_();_.x("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.x("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.g.contentsChanged_=function(){var q;(q=this.data)!=null&&q.contents&&this.tickForCommentsTimer_("cml")};
_.g.headerChanged_=function(){var q;(q=this.data)!=null&&q.header&&this.tickForCommentsTimer_("cmhl")};
_.g.initCommentsCsi_=function(){_.Yo("wn_comments");var q=_.Oe();q&&_.v3({clientScreenNonce:q},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.g.createCommentAction_=function(q){q=_.nM.unsafeClone(q);var N,b;if(q=(N=_.v(q,VV1))==null?void 0:(b=N.contents)==null?void 0:b.commentThreadRenderer){var y,J,E,F,R,c;!this.isBackstage&&((y=this.data)==null?0:(J=y.header)==null?0:(E=J.commentsHeaderRenderer)==null?0:(F=E.createRenderer)==null?0:(R=F.commentSimpleboxRenderer)==null?0:(c=R.zeroStep)==null?0:c.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var z,
m,r;this.isBackstage&&_.v((z=this.data)==null?void 0:(m=z.header)==null?void 0:(r=m.commentsHeaderRenderer)==null?void 0:r.zeroStateMessage,egq)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(q)}};
_.g.doReplyInsert_=function(q,N,b,y){y?this.splice(q,y,0,N):this.push(q,N)};
_.g.getRepliesPath_=function(q){return"data.contents."+q+".commentThreadRenderer.replies"};
_.g.getRepliesContentsPath_=function(q,N){q=this.getRepliesPath_(q);return N?q+".commentRepliesRenderer.teaserContents":q+".commentRepliesRenderer.contents"};
_.g.showSubscribersOnlyDisclaimer_=function(q){(q=q.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(q))&&(_.By(this.hostElement,"yt-open-popup-action",[q,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.g.createCommentReplyAction_=function(q){q=_.nM.unsafeClone(q);var N=_.v(q,jNF);if(q=N==null?void 0:N.contents){var b=this.commentIdToIndex_(N==null?void 0:N.parentCommentId);if(!(b<0)){var y=this.getRepliesPath_(b);if(this.get(y)){N=N.replyToCommentId;y=this.getRepliesContentsPath_(b,!1);if(this.get(y)){var J=this.get(y).length,E=y+"."+(J-1)+".continuationItemRenderer";this.get(E+".button")?(E=this.replyIdToIndex_(N,b,!1),this.doReplyInsert_(y,q,E,J-1)):this.get(E)||(J=this.replyIdToIndex_(N,b,
!1),this.doReplyInsert_(y,q,J,null))}y=this.getRepliesContentsPath_(b,!0);this.get(y)?(b=this.replyIdToIndex_(N,b,!0),(!N||b>=0)&&this.doReplyInsert_(y,q,b,null)):this.set(y,[q])}else this.set(y,{commentRepliesRenderer:{teaserContents:[q]}})}}};
_.g.hideReportedCommentAction_=function(q){var N=_.v(q,ncF);if(q=N==null?void 0:N.commentId)(N=this.get("parentCommentId",N))||(N=this.getParentCommentId_(q)),this.remove_(q,N)};
_.g.getParentCommentId_=function(q){q=q.split(".");if(q[1])return q[0]};
_.g.removeCommentAction_=function(q){var N=_.v(q,QNl);if(q=N==null?void 0:N.commentId)N=(N==null?void 0:N.parentCommentId)||this.getParentCommentId_(q),this.remove_(q,N)};
_.g.pinCommentAction_=function(q){q=_.nM.unsafeClone(q);var N=_.v(q,YCx);N!=null&&N.commentId&&(q=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",q))&&(this.remove_(N.commentId),this.insert_(q,!0))};
_.g.unpinCommentAction_=function(q){q=_.nM.unsafeClone(q);q=_.v(q,Oz4);if(q!=null&&q.commentId){var N,b,y=(N=q.actionResult)==null?void 0:(b=N.update)==null?void 0:b.commentThreadRenderer;y&&(this.remove_(q.commentId),this.insert_(y))}};
_.g.banAuthorAction_=function(q){var N=_.v(q,Xtj);N!=null&&N.commentId&&(q=N.commentId,N=N.parentCommentId||this.getParentCommentId_(q),this.remove_(q,N))};
_.g.handleScrollToCommentElement_=function(q){this.hostElement.contains(q)&&(this.nearestScrollParent||(this.nearestScrollParent=nhn(q)),this.isCommentVisibleInScrollParent(q)||q.scrollIntoView({behavior:"smooth",block:"start"}))};
_.g.isCommentVisibleInScrollParent=function(q){if(!this.nearestScrollParent)return!1;q=q.getBoundingClientRect();var N=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return q.top>=N.top&&q.bottom<=N.bottom};
_.g.commentIdToIndex_=function(q){var N;return q&&(N=this.data)!=null&&N.contents?this.data.contents.findIndex(function(b){b=b.commentThreadRenderer;var y;return q===((b==null?void 0:b.commentViewModel)&&((y=_.v(b.commentViewModel,U2v))==null?void 0:y.commentId))}):-1};
_.g.insert_=function(q,N){N=N===void 0?!1:N;var b,y;if((b=this.data)==null?0:(y=b.contents)==null?0:y.some(function(E){return!!E.commentThreadRenderer}))for(b=0,y=this.data.contents.length;b<y;b++){var J=this.data.contents[b].commentThreadRenderer;
if(yaC[q.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=yaC[J.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){N&&yaC[q.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===yaC[J.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",b,1,{commentThreadRenderer:q}):this.splice("data.contents",b,0,{commentThreadRenderer:q});break}}else this.set("data.contents",[{commentThreadRenderer:q}])};
_.g.doReplyRemove_=function(q,N,b){q=this.replyIdToIndex_(q,N,b);q<0||(N=this.getRepliesContentsPath_(N,b),this.splice(N,q,1))};
_.g.remove_=function(q,N){N=this.commentIdToIndex_(N);N<0?(N=this.commentIdToIndex_(q),N<0||this.splice("data.contents",N,1)):_.x("web_delhi_comment_threads")||(this.doReplyRemove_(q,N,!1),this.doReplyRemove_(q,N,!0))};
_.g.replyIdToIndex_=function(q,N,b){if(N<0)return-1;N=this.getRepliesContentsPath_(N,b);N=this.get(N);if(!N||!N.length)return-1;b=0;for(var y=N.length;b<y;b++){var J=void 0,E=void 0;if(((J=N[b])==null?void 0:(E=J.commentViewModel)==null?void 0:E.commentId)===q)return b}return-1};
_.g.tickForCommentsTimer_=function(q){_.OY(q,void 0,"wn_comments")};
_.g.reloadComments_=function(q){q=_.v(q,hj1);_.v(q==null?void 0:q.command,_.lR)&&_.qc(this.hostElement,[q==null?void 0:q.command])};
_.$H.Object.defineProperties(z$.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return!!((q=this.data)==null?0:(N=q.header)==null?0:(b=N.commentsHeaderRenderer)==null?0:b.isBackstageContent)}}});
_.$H.Object.defineProperties(z$,{template:{configurable:!0,enumerable:!0,get:function(){if(bUX===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);bUX=q}q=bUX;return q}}});
z$.prototype.showSubscribersOnlyDisclaimer_=z$.prototype.showSubscribersOnlyDisclaimer_;z$.prototype.headerChanged_=z$.prototype.headerChanged_;z$.prototype.contentsChanged_=z$.prototype.contentsChanged_;_.p([_.O(_.r7),_.P("design:type",Object)],z$.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.O(_.d2.YtPlayerListenerBehavior),_.P("design:type",Function)],z$.prototype,"ytPlayerListenerBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],z$.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],z$.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data.header.commentsHeaderRenderer.isBackstageContent"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],z$.prototype,"isBackstage",null);
_.p([_.U(),_.P("design:type",Object)],z$.prototype,"disablePrescanVisibility",void 0);_.p([_.U(),_.P("design:type",Object)],z$.prototype,"canScheduleJobs",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],z$.prototype,"engagementPanel",void 0);_.p([_.U(),_.P("design:type",Object)],z$.prototype,"hidePanelButton",void 0);_.p([_.U(),_.P("design:type",Object)],z$.prototype,"isWatchGrid",void 0);_.p([_.U(),_.P("design:type",Object)],z$.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.p([_.FY("data.contents"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],z$.prototype,"contentsChanged_",null);_.p([_.FY("data.header"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],z$.prototype,"headerChanged_",null);_.p([_.ZP("yt-show-subscribers-only-disclaimer"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],z$.prototype,"showSubscribersOnlyDisclaimer_",null);
_.p([_.I({is:"ytd-comments"})],z$);var $1=function(){return _.uL.apply(this,arguments)||this};
_.Y($1,_.uL);_.g=$1.prototype;_.g.bindIf=function(q,N,b){return q?N:b};
_.g.bindIfDefined=function(q,N){return q!==void 0?q:N};
_.g.booleanString=function(q){return(!!q).toString()};
_.g.equals=function(){for(var q=_.MB.apply(0,arguments),N=q[0],b=1;b<q.length;b++)if(N!=q[b])return!1;return!0};
_.g.isGreaterThan=function(q,N){return q>N};
_.g.isLessThan=function(q,N){return q<N};
_.g.logicalAND=function(){for(var q=_.MB.apply(0,arguments),N=!!q[0],b=1;b<q.length;b++)N=N&&!!q[b];return N};
_.g.logicalOR=function(){for(var q=_.MB.apply(0,arguments),N=!!q[0],b=1;b<q.length;b++)N=N||!!q[b];return N};
_.g.toBool=function(q){return!!q};
$1.prototype.toBool=$1.prototype.toBool;$1.prototype.logicalOR=$1.prototype.logicalOR;$1.prototype.logicalAND=$1.prototype.logicalAND;$1.prototype.isLessThan=$1.prototype.isLessThan;$1.prototype.isGreaterThan=$1.prototype.isGreaterThan;$1.prototype.equals=$1.prototype.equals;$1.prototype.booleanString=$1.prototype.booleanString;$1.prototype.bindIfDefined=$1.prototype.bindIfDefined;$1.prototype.bindIf=$1.prototype.bindIf;_.p([_.zs()],$1);_.Jaa=[$1.prototype];var EaU;var gaa;var tU=function(){return _.C.apply(this,arguments)||this};
_.Y(tU,_.C);tU.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
tU.prototype.onBackIconTap_=function(){window.history.back()};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],tU.prototype,"data",void 0);_.p([_.Ok({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],tU);
_.a(tU,"yt-header-with-back-renderer",function(){if(gaa===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;EaU===void 0&&(EaU=document.createElement("template"));var y=EaU;b.call(N,y.content.cloneNode(!0),q.content.firstChild);gaa=q}q=gaa;return q},{mode:2});var ZUp;var FKf;var mQ=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.Y(mQ,_.C);_.g=mQ.prototype;_.g.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.g.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.isDarkTheme=q,this.setUrl())};
_.g.dataChanged=function(){var q=this;if(this.data){var N=this.setUrl();N&&_.bu({destination:window,iframe:this.iframe,origin:_.Rpj(N.toString()),channelName:"yt-iframe",onMessage:function(b){(b=q.getCommunicationCommand(b.data))&&q.ytComponentBehavior.resolveCommand(b)},
onEstablished:function(){}})}};
_.g.setUrl=function(){if(this.data&&this.data.iframeUrl){var q=_.Pv(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(q)return _.Nn(this.iframe,q),q}};
_.g.getCommunicationCommand=function(q){var N;if((N=this.data)!=null&&N.onCommunicationCommandsMap){N=this.data.onCommunicationCommandsMap.find(function(J){return J.key===q});
if(N==null?0:N.value)return N==null?void 0:N.value;try{var b=ebx(_.HA(q)),y=this.data.onCommunicationCommandsMap.find(function(J){return J.key===(b==null?void 0:b.getMethodName())});
if(y==null?0:y.value)return y==null?void 0:y.value}catch(J){}}};
mQ.prototype.dataChanged=mQ.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],mQ.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],mQ.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],mQ.prototype,"data",void 0);
_.p([_.U({value:!1}),_.P("design:type",Boolean)],mQ.prototype,"isDarkTheme",void 0);_.p([_.dq("#iframe"),_.P("design:type",HTMLIFrameElement)],mQ.prototype,"iframe",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mQ.prototype,"dataChanged",null);_.p([_.Ok({is:"yt-iframe-renderer",disableElementRegistration:!0})],mQ);
_.a(mQ,"yt-iframe-renderer",function(){if(FKf===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;ZUp===void 0&&(ZUp=document.createElement("template"));var y=ZUp;b.call(N,y.content.cloneNode(!0),q.content.firstChild);FKf=q}q=FKf;return q},{mode:2});_.rG=function(q){_.UN.call(this);this.callback=q;this.bezier=new gAv(0,0,.4,0,.2,1,1,1);this.delay=new _.rd(this.next,window,this);this.JSC$17140_animating=!1;_.YN(this,this.delay)};
_.Y(_.rG,_.UN);_.rG.prototype.isAnimating=function(){return this.JSC$17140_animating};
_.rG.prototype.start=function(q,N,b){this.config={from:q,to:N,duration:b,startTime:(0,_.mA)()};this.JSC$17140_animating=!0;this.next()};
_.rG.prototype.stop=function(){this.delay.stop();this.JSC$17140_animating=!1;this.config=void 0};
_.rG.prototype.next=function(){if(this.config){var q=this.config,N=q.from,b=q.to,y=q.duration;q=q.startTime;var J=(0,_.mA)()-q;q=this.bezier;y=FUF(q,J/y);if(y==0)q=q.y0;else if(y==1)q=q.y3;else{J=Y_(q.y0,q.y1,y);var E=Y_(q.y1,q.y2,y);q=Y_(q.y2,q.y3,y);J=Y_(J,E,y);E=Y_(E,q,y);q=Y_(J,E,y)}q=_.Od(q,0,1);this.callback(N+(b-N)*q);q<1?this.delay.start():this.JSC$17140_animating=!1}};_.XB=new _.Jw("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var RxC={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},caU=function(q,N,b,y){_.UN.call(this);this.JSC$17151_miniAppId=q;this.localReleaseId=N;this.derivedDeviceInterface=b;this.isForeground=y;this.JSC$17151_playNonceResolver=new _.yk;this.playPingTimerId=NaN;this.playPingIntervalMs=_.VX("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.VX("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.x("enable_displaying_ppn");this.JSC$17151_miniAppClientDataProvider=_.tz().resolve(_.XB);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;dNA(this);var J=setTimeout(function(){_.M6(new _.IO("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17151_playNonceResolver.promise.then(function(){clearTimeout(J)})};
_.Y(caU,_.UN);var zxK=function(q,N){q.JSC$17151_playNonceResolver.resolve(N!=null?N:vy(8));q.enableDisplayingPpn&&uAU(q).then(function(b){q.JSC$17151_miniAppClientDataProvider.clientData.set("post_play_nonce",b)})},uAU=function(q){return _.d(function(N){return N.nextAddress==1?N.yield(q.JSC$17151_playNonceResolver.promise,2):N.return(N.yieldResult)})},dNA=function(q){var N,b;
_.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$17151_playNonceResolver.promise,2);N=y.yieldResult;b={miniAppInfo:{externalPostId:q.JSC$17151_miniAppId,localReleaseId:q.localReleaseId,postPlayNonce:N,derivedDeviceInterface:q.derivedDeviceInterface}};_.v3(b);_.hj(y)})},tXX=function(q){q.state!==0?_.M6(new _.IO("[MiniAppPlayLogger] recordPlayStart failed with state "+RxC[q.state])):(q.state=1,Vo(q,"ma_cl"),jo(q,"PLAY_EVENT_TYPE_PLAY_START"),$NC(q))},mNp=function(q){q.isForeground=!1;
jo(q,"PLAY_EVENT_TYPE_PLAY_PAUSE")},raX=function(q){q.state!==1&&q.state!==2?_.M6(new _.IO("[MiniAppPlayLogger] recordPlayEnd failed with state "+RxC[q.state])):(q.state=3,window.clearInterval(q.playPingTimerId),q.playPingTimerId=NaN,PQA(),jo(q,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},Xda=function(q,N){q.state===2&&q.gameReady&&(q.firstClickRecorded?Date.now()-q.clickRecordedMs<q.playClickIntervalMs||(q.clickRecordedMs=Date.now(),jo(q,"PLAY_EVENT_TYPE_PLAY_CLICK")):N&&(Vo(q,"ma_fua"),jo(q,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),q.firstClickRecorded=!0,q.clickRecordedMs=Date.now()))};
caU.prototype.logError=function(q){var N=this,b;_.d(function(y){if(y.nextAddress==1)return q.metadata.externalPostId=N.JSC$17151_miniAppId,b=q.metadata,y.yield(Promise.race([N.JSC$17151_playNonceResolver.promise,new Promise(function(J){setTimeout(function(){J("")},3E4)})]),2);
b.postPlayNonce=y.yieldResult;q.metadata.localReleaseId=N.localReleaseId;q.loggingError.level="WARNING";_.po(q.loggingError,q.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:q.metadata});_.hj(y)})};
var VXa=function(q,N,b,y){var J,E,F,R,c,z;_.d(function(m){if(m.nextAddress==1)return m.yield(q.JSC$17151_playNonceResolver.promise,2);J=m.yieldResult;E={externalPostId:q.JSC$17151_miniAppId,localReleaseId:q.localReleaseId,postPlayNonce:J,sdkVersion:b,api:N};y!==void 0&&(E.networkRequestsMeasurement={networkRequests:_.tW(y,1),cachedRequests:_.tW(y,2),transferredBytes:_.tW(y,3)},(F=y)==null?0:_.dM(F,ca,6))&&(E.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((R=_.Vr(y,
ca,6))==null?void 0:Ga(R,1))||"0",cacheHits:((c=_.Vr(y,ca,6))==null?void 0:Ga(c,2))||"0",cachedBytes:((z=_.Vr(y,ca,6))==null?void 0:Ga(z,3))||"0"});_.W_("miniAppSdkUsage",E);_.hj(m)})},xNU=function(q,N,b){var y,J,E,F,R,c,z,m,r,X,V,G,w,D,k,f;
_.d(function(L){if(L.nextAddress==1)return L.yield(q.JSC$17151_playNonceResolver.promise,2);y=L.yieldResult;J={externalPostId:q.JSC$17151_miniAppId,localReleaseId:q.localReleaseId,postPlayNonce:y,sdkVersion:b,measurementWindow:{startTimestampMs:String(VW(N,1)),endTimestampMs:String(VW(N,2))},frameRate:{averageFrameTimeDeltaMs:j5(N,3),averageFrameIdleTimeMs:j5(N,4)}};_.dM(N,uQ,5)&&(J.networkRequests={networkRequests:(E=VG(N))==null?void 0:_.tW(E,1),cachedRequests:(F=VG(N))==null?void 0:_.tW(F,2),transferredBytes:(R=
VG(N))==null?void 0:_.tW(R,3),sameOriginStatusCodeToCounts:jff((c=VG(N))==null?void 0:UNd(c,4)),crossOriginStatusCodeToCounts:jff((z=VG(N))==null?void 0:UNd(z,5))},(m=VG(N))==null?0:_.dM(m,ca,6))&&(J.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((r=VG(N))==null?void 0:(X=_.Vr(r,ca,6))==null?void 0:Ga(X,1))||"0",cacheHits:((V=VG(N))==null?void 0:(G=_.Vr(V,ca,6))==null?void 0:Ga(G,2))||"0",cachedBytes:((w=VG(N))==null?void 0:(D=_.Vr(w,ca,6))==null?void 0:Ga(D,3))||"0"});_.dM(N,
aNR,7)&&(J.gameCapture={averageFrameTimeDeltaMs:(k=_.Vr(N,aNR,7))==null?void 0:j5(k,1),averageFrameIdleTimeMs:(f=_.Vr(N,aNR,7))==null?void 0:j5(f,2)});_.W_("miniAppPerformanceMetrics",J);_.hj(L)})},vaa=function(q,N){var b,y;
return _.d(function(J){if(J.nextAddress==1)return J.yield(q.JSC$17151_playNonceResolver.promise,2);b=J.yieldResult;y={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:q.JSC$17151_miniAppId,postPlayNonce:b,miniAppReleaseId:q.localReleaseId},derivedDeviceInterface:q.derivedDeviceInterface,adTriggerType:N,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.W_("miniAppAdEvent",y);_.hj(J)})};
caU.prototype.disposeInternal=function(){_.UN.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var jo=function(q,N,b,y){b=b===void 0?{}:b;y=y===void 0?!1:y;var J,E,F,R;_.d(function(c){if(c.nextAddress==1)return J=q.isForeground,E=q.beforeReady,c.yield(q.JSC$17151_playNonceResolver.promise,2);F=c.yieldResult;R={externalPostId:q.JSC$17151_miniAppId,localReleaseId:q.localReleaseId,derivedDeviceInterface:q.derivedDeviceInterface,postPlayNonce:F,type:N};b.sequenceGroup=F;R.playState=E?"PLAY_STATE_NOT_READY":J?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.W_("miniAppPlayEvent",R,
b);y&&_.Lo();_.hj(c)})},Vo=function(q,N){var b;
_.d(function(y){if(y.nextAddress==1)return b=(0,_.mA)(),y.yield(q.JSC$17151_playNonceResolver.promise,2);_.Q6(N,b);_.hj(y)})},$NC=function(q){isNaN(q.playPingTimerId)&&(q.playPingTimerId=_.QX(function(){q.state!==1&&q.state!==2?_.M6(new _.IO("[MiniAppPlayLogger] reportPlayPing failed with state "+RxC[q.state])):jo(q,"PLAY_EVENT_TYPE_PLAY_PING")},q.playPingIntervalMs))},jff=function(q){return Array.from(q.entries()).map(function(N){var b=_.Z(N);
N=b.next().value;b=b.next().value;return{key:N,value:b}})};var Gcf=function(){},Yfa=function(q,N){q.showMiniAppAdCommand=N.showMiniAppAdCommand;
q.isEmbeddedInWebview=N.isEmbeddedInWebview;q.playLogger=N.playLogger},OUA=function(q,N){var b;
return _.d(function(y){if(y.nextAddress==1){if(!q.showMiniAppAdCommand||!q.isEmbeddedInWebview)return y.return(QfW(q,N));q.adResolver=new _.yk;var J=new LO;b=_.jd(J,3,N);OA(q.showMiniAppAdCommand,YjR(b));return y.yield(q.adResolver.promise,2)}return y.return(y.yieldResult)})};
Gcf.prototype.onAdFinished=function(q){q=VTl(q);var N;(N=this.adResolver)==null||N.resolve(q)};
var QfW=function(q,N){var b;return _.d(function(y){if(y.nextAddress==1)y=y.yield((b=q.playLogger)==null?void 0:vaa(b,MKh(N)),2);else{var J=y.return;var E=new Xwj;E=_.jd(E,1,2);y=J.call(y,E)}return y})};var wdW=new _.Jw("INNERTUBE_MANAGER_TOKEN");var iUU=function(){this.callbacks={}};
iUU.prototype.initialize=function(q){var N=this;this.callbacks=q;window.youtubewebview?window.youtubewebview.onmessage=function(b){lWU(N,b)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(b){lWU(N,b)})};
var lWU=function(q,N){if(N.data)try{var b=ebx(N.data);if(_.Ya(_.R6(b,1))!=null){var y=XaM(_.xs(b,2));switch(b.getMethodName()){case "yt-mini-app-load-audio-state":var J,E;(E=(J=q.callbacks).onAudioStateLoaded)==null||E.call(J,_.Xn(y,ky(y,Wa,1)));break;case "yt-mute-mini-app":var F,R;(R=(F=q.callbacks).onMuteMiniApp)==null||R.call(F);break;case "yt-unmute-mini-app":var c,z;(z=(c=q.callbacks).onUnmuteMiniApp)==null||z.call(c);break;case "yt-playable-exit":var m,r;(r=(m=q.callbacks).onExit)==null||r.call(m);
break;case "yt-post-play-nonce":var X,V;(V=(X=q.callbacks).onPostPlayNonceReceived)==null||V.call(X,Ys(y,2,Wa));break;case "yt-confirm-exit-mini-app":var G,w;(w=(G=q.callbacks).confirmExitMiniApp)==null||w.call(G);break;case "yt-confirm-exit-mini-app-edu":var D,k;(k=(D=q.callbacks).confirmExitMiniAppEdu)==null||k.call(D);break;case "yt-benchmarking-response":var f,L;(L=(f=q.callbacks).onNativeBenchmarkingMessageReceived)==null||L.call(f,Ys(y,2,Wa));break;case "yt-mini-app-load-3p-consent-state":var S,
W;(W=(S=q.callbacks).multiplayer3pAckStateLoaded)==null||W.call(S,_.Xn(y,ky(y,Wa,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var M,qe;(qe=(M=q.callbacks).exitMiniAppSeenStateLoaded)==null||qe.call(M,_.Xn(y,ky(y,Wa,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var RJ,tZ;(tZ=(RJ=q.callbacks).onNavigateToNewMiniApp)==null||tZ.call(RJ);break;case "yt-game-data-available":var wA,rA;(rA=(wA=q.callbacks).onGameDataAvailable)==null||rA.call(wA,Ys(y,2,Wa));break;case "yt-pause-mini-app":var xD,
IJ;(IJ=(xD=q.callbacks).onPauseMiniApp)==null||IJ.call(xD);break;case "yt-resume-mini-app":var sJ,Sn;(Sn=(sJ=q.callbacks).onResumeMiniApp)==null||Sn.call(sJ);break;case "yt-playable-ad-finished":var YE,xE;(xE=(YE=q.callbacks).onAdFinished)==null||xE.call(YE,Ys(y,2,Wa))}}else _.M6(Error("Vh"))}catch(qv){_.po(Error("Wh"))}else _.M6(Error("Xh"))};var AyA=function(q){this.rpcErrorCode=q};var x1=function(q,N,b){this.intervalMs=q;this.apiFunc=N;this.type=b;this.schedulerReady=!0};
x1.prototype.call=function(q){var N=this,b;return _.d(function(y){if(y.nextAddress==1){if(N.type!==1&&q===N.cachedValue)return y.return();N.pendingApiRequestResolver||(N.pendingApiRequestResolver=new _.yk);b=N.pendingApiRequestResolver.promise;N.cachedValue=q;return y.yield(KKU(N),2)}return y.return(b)})};
x1.prototype.flush=function(q){q=q===void 0?!1:q;var N=this;return _.d(function(b){return N.cachedValue===void 0?b.return():b.yield(N.apiFunc(N.cachedValue,q),0)})};
var KKU=function(q){var N,b,y;return _.d(function(J){switch(J.nextAddress){case 1:if(!q.schedulerReady||!q.pendingApiRequestResolver)return J.return();q.schedulerReady=!1;N=q.pendingApiRequestResolver;q.pendingApiRequestResolver=void 0;_.Yi(J,2);if(q.cachedValue===void 0){J.jumpTo(4);break}return J.yield(q.apiFunc(q.cachedValue),5);case 5:b=J.yieldResult,N.resolve(b);case 4:_.Ea(J,3);break;case 2:y=_.K7(J),N.reject(y);case 3:setTimeout(function(){return _.d(function(E){q.schedulerReady=!0;return E.yield(KKU(q),
0)})},q.intervalMs),_.hj(J)}})};var H2A=window.location.origin+"/miniapp_cloudsaves",eDz=[400,401],DNW=_.VX("cloud_save_game_data_rate_limit_ms",3E3),UNA=function(q){var N=this;this.JSC$17195_miniAppId=q;this.loadAttempts=0;this.cloudSaveIntervalMs=DNW;this.initialDownloadDataSucceeded=!1;this.JSC$17195_playNonceResolver=new _.yk;this.scottyUploadRateLimiter=new x1(this.cloudSaveIntervalMs,function(b,y){return hxf(N,b,y)},2);
this.downloadDataPromise=kcA(this);this.downloadDataPromise.then(function(){N.initialDownloadDataSucceeded=!0}).catch(function(){})},fWx=function(q,N){N.then(function(b){return q.JSC$17195_playNonceResolver.resolve(b)})},CBK=function(q){return _.d(function(N){return q.cachedData===void 0?N.return(q.downloadDataPromise):N.return(q.cachedData)})},IWW=function(q,N){return _.d(function(b){q.cachedData=N;
if(!q.initialDownloadDataSucceeded)throw Error("Yh");return b.yield(q.scottyUploadRateLimiter.call(N),0)})},Tpc=function(){return new Promise(function(q){setTimeout(q,1E3,"")})},sfa=function(q,N){var b,y;
return _.d(function(J){if(J.nextAddress==1)return b=q.JSC$17195_miniAppId,J.yield(Promise.race([q.JSC$17195_playNonceResolver.promise,Tpc()]),2);y={"X-YouTube-MiniAppId":b,"X-YouTube-PostPlayNonce":J.yieldResult};"DELEGATED_SESSION_ID"in _.pI&&dcC(N,y);return J.return(y)})},hxf=function(q,N,b){b=b===void 0?!1:b;
return _.d(function(y){return ohz()?_.x("enable_cloud_save_error_popup_after_retry")?y.return(new Promise(function(J,E){var F,R,c,z,m;return _.d(function(r){switch(r.nextAddress){case 1:F=0,R=!0,z=c=null;case 2:if(!(R&&F++<2)){r.jumpTo(4);break}_.Yi(r,5);return r.yield(naC(q,N,b),7);case 7:c=r.yieldResult;R=c.ok?!1:!eDz.includes(c.status);_.Ea(r,2);break;case 5:z=m=_.K7(r);R=BZd(z);r.jumpTo(2);break;case 4:c?c.ok?(vL(q,DNW),J()):(vL(q,q.cloudSaveIntervalMs*2),E(Error("Zh`"+String(c.status),{cause:{rpcErrorCode:c.status}}))):
(vL(q,q.cloudSaveIntervalMs*2),E(z||Error("$h"))),_.hj(r)}})})):y.return(new Promise(function(J,E){var F,R;
return _.d(function(c){if(c.nextAddress==1){if(q.JSC$17195_miniAppId==="")return E(Error("ai")),c.return();_.Yi(c,2);return c.yield(naC(q,N,b),4)}if(c.nextAddress!=2)return F=c.yieldResult,F.ok?(vL(q,DNW),J()):(vL(q,q.cloudSaveIntervalMs*2),E(Error("Zh`"+String(F.status),{cause:{rpcErrorCode:F.status}}))),_.Ea(c,0);R=_.K7(c);vL(q,q.cloudSaveIntervalMs*2);E(R);_.hj(c)})})):y.return()})},naC=function(q,N,b){b=b===void 0?!1:b;
var y,J,E;return _.d(function(F){if(F.nextAddress==1)return y=_.Uf((new TextEncoder).encode(N)),J=qzd(),F.yield(sfa(q,J),2);E=F.yieldResult;return F.return(fetch(J,{method:"POST",body:new Blob([y]),headers:E,keepalive:b}))})},kcA=function(q){var N,b;
return _.d(function(y){if(y.nextAddress==1){if(!ohz())return y.return("");if(q.JSC$17195_miniAppId==="")throw Error("ai");if(q.loadAttempts>2)return y.return(q.downloadDataPromise);_.Yi(y,2);return y.yield(aWp(q),4)}if(y.nextAddress!=2)return N=y.yieldResult,y.return(N);b=_.K7(y);if(BZd(b)&&++q.loadAttempts<2)return y.return(kcA(q));throw b;})},aWp=function(q){var N,b,y,J,E;
return _.d(function(F){switch(F.nextAddress){case 1:return _.Yi(F,2),N=qzd(),F.yield(sfa(q,N),4);case 4:return b=F.yieldResult,F.yield(fetch(N,{method:"GET",headers:b}),5);case 5:return y=F.yieldResult,y.ok?F.yield(y.text(),6):F.return(Promise.reject(Error("bi`"+String(y.status),{cause:new AyA(y.status)})));case 6:return J=F.yieldResult,F.return((new TextDecoder).decode(_.HA(J)));case 2:return E=_.K7(F),F.return(Promise.reject(E))}})},vL=function(q,N){q.cloudSaveIntervalMs=N;
q.scottyUploadRateLimiter.intervalMs=q.cloudSaveIntervalMs};
UNA.prototype.flush=function(){var q=this;return _.d(function(N){return q.initialDownloadDataSucceeded?N.yield(q.scottyUploadRateLimiter.flush(!0),0):N.return()})};var SfC=rU(mm(1),$z(1)),WKf=rU(mm(1),$z(3)),G$=function(q){this.callbacks=q};
_.g=G$.prototype;_.g.onAudioToggled=function(q,N){(N===void 0||N)&&_.r5("yt-mini-app-is-audio-enabled",q,2592E3)};
_.g.onPause=function(){this.onAudioToggled(!1,!1)};
_.g.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.g.returnNativeBenchmarkingMessage=function(){};
_.g.sendGameData=function(){};
_.g.sendStartGameFrameCapture=function(){};
var N$J=function(q,N,b){this.callbacks=q;var y=this;this.sdkVersion=new _.yk;this.channel=new tv4(_.bu({destination:window,iframe:N,origin:(new URL(b.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var J=Y1;var E=mm(5);var F=new ipx;F=_.On(F,1,1E4);E=_.iX(E,4,Clq,F);J(y,E);y.onAudioToggled(y.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){y.sdkVersion.resolve("")},1E4)};
_.Y(N$J,G$);_.g=N$J.prototype;_.g.onAudioToggled=function(q,N){G$.prototype.onAudioToggled.call(this,q,N===void 0?!0:N);N=Y1;var b=mm(2),y=new Opv;q=_.VE(y,1,q);q=_.iX(b,3,Clq,q);N(this,q)};
_.g.onPause=function(){G$.prototype.onPause.call(this);Y1(this,mm(3))};
_.g.onResume=function(){G$.prototype.onResume.call(this);Y1(this,mm(4))};
_.g.returnNativeBenchmarkingMessage=function(q){var N=Y1,b=mm(6);var y=$z(_.dM(q,MQ,1)?1:2);q=_.dM(q,MQ,1)?q:null;y=_.iX(y,5,tT,q);N(this,rU(b,y))};
_.g.sendGameData=function(q){var N=Y1,b=mm(7);q=_.iX(b,5,Clq,q);N(this,q)};
_.g.sendStartGameFrameCapture=function(){Y1(this,mm(9))};
var Qo=function(q,N,b){var y,J,E;return _.d(function(F){if(F.nextAddress==1)return y=q.callbacks,J=y.onSdkCalled,E=N,F.yield(q.sdkVersion.promise,2);J.call(y,E,F.yieldResult,b);_.hj(F)})};
N$J.prototype.onMessage=function(){var q=this;return XZT(jD,function(N){var b,y,J,E,F,R,c,z,m,r,X,V,G,w,D,k,f,L,S,W,M,qe,RJ,tZ,wA,rA,xD,IJ,sJ,Sn,YE,xE,qv,mM,Ox,h4,QC,rp,Fd,yF,vR,ej,Go,qN,O5,p1;return _.d(function($E){switch($E.nextAddress){case 1:if(!pwl(N.data))return _.M6(Error("ci")),$E.return();b=_.vc(N.data,1);_.x("enable_iframe_message_get_type_via_fields")&&(y=N.data,b=J=_.vc(y,1));switch(b){case 8:if(N.data.hasMetadata()){var t4=q.sdkVersion,gp=t4.resolve;var oJ=N.data.getMetadata();oJ=_.xs(oJ,
1);gp.call(t4,oJ);clearTimeout(q.sdkVersionTimeoutId)}break;case 6:return $E.jumpTo(2);case 16:if(!_.cc(N.data,sSx,14,xz))return $E.return();E=_.QW(N.data,sSx,14,xz);(R=(F=q.callbacks).onGameFrameReceived)==null||R.call(F,E);return $E.return();case 17:if(!_.cc(N.data,THq,15,xz))return $E.return();(z=(c=q.callbacks).onGameAudioReceived)==null||z.call(c,_.QW(N.data,THq,15,xz));return $E.return();case 1:if(t4=_.QW(N.data,DjE,2,xz))switch(_.vc(t4,1)){case 1:q.callbacks.onFirstFrameReady();if(_.x("enable_network_request_logging_on_game_events")&&
_.dM(t4,uQ,4)){Qo(q,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Vr(t4,uQ,4));break}Qo(q,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(oJ=(gp=q.callbacks).onGameReady)==null||oJ.call(gp);if(_.x("enable_network_request_logging_on_game_events")&&_.dM(t4,uQ,4)){Qo(q,"MINI_APP_SDK_API_GAME_READY",_.Vr(t4,uQ,4));break}Qo(q,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.cc(t4,zI,3,hEM))q.callbacks.onResourceLoaded(_.QW(t4,zI,3,hEM))}return $E.return();case 3:return $E.jumpTo(3);case 4:return $E.jumpTo(4);
case 2:return $E.jumpTo(5);case 9:return $E.jumpTo(6);case 10:return q.callbacks.onClick(),$E.return();case 5:return $E.jumpTo(7);case 11:if(!_.cc(N.data,Rt,9,xz))return $E.return();m=_.QW(N.data,Rt,9,xz);(X=(r=q.callbacks).onBenchmarkingMessageReceived)==null||X.call(r,m);t4=N.reply;gp=mm(1);oJ=$z(1);var bB=new Rt;var tB=new Uint8Array(UvE(m,ky(m,xjF,6))|0);bB=i0(bB,5,xjF,_.Ux(tB,!1));oJ=_.iX(oJ,5,tT,bB);t4.call(N,rU(gp,oJ));return $E.return();case 12:return $E.jumpTo(8);case 13:return $E.jumpTo(9);
case 15:if(!_.x("enable_open_yt_content"))return N.reply(WKf),$E.return();if(!_.cc(N.data,INM,12,xz))return N.reply(rU(mm(1),$z(2))),$E.return();t4=_.QW(N.data,INM,12,xz);V=_.xs(t4,1);q.callbacks.onOpenYTContent(V);N.reply(SfC);return $E.return();case 14:return $E.jumpTo(10);default:return $E.return()}$E.jumpTo(0);break;case 2:if(!_.cc(N.data,X6,5,xz))return $E.return();gp=N.data;t4=ky(gp,xz,5);gp=gp.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;G=Tpz(gp,gp[_.gx]|0,X6,t4)||X6[slD]||(X6[slD]=
nEJ(X6));t4=_.zP(G,dU,1,_.$N());w=_.Z(t4);D=w.next();case 12:if(D.done){$E.jumpTo(14);break}k=D.value;f=new _.IO;f.level=_.vc(k,2)===1?"WARNING":"ERROR";L=yuZ(k.getSource());return $E.yield(q.sdkVersion.promise,15);case 15:S={source:L,sdkVersion:$E.yieldResult};_.FA(_.R6(k,6))!=null?(f.message=k.getMessage(),f.stack=_.xs(k,5),S.sdkErrorType=Jun(_.vc(k,6)),_.FA(_.R6(k,7))!=null&&(S.sdkApi=EVz(_.vc(k,7)))):f.stack=void 0;M=W=void 0;(M=(W=q.callbacks).onError)==null||M.call(W,{loggingError:f,metadata:S});
D=w.next();$E.jumpTo(12);break;case 14:return $E.return();case 3:return _.Yi($E,16),t4=$E.yield,gp=q.callbacks,oJ=gp.onSave,bB=_.QW(N.data,wwM,4,xz),bB=_.xs(bB,1),t4.call($E,oJ.call(gp,bB),18);case 18:N.reply(SfC);_.Ea($E,17);break;case 16:return qe=_.K7($E),RJ=wR,tZ=qe,wA=q.callbacks,rA="MINI_APP_SDK_API_SAVE_DATA",$E.yield(q.sdkVersion.promise,19);case 19:RJ(tZ,wA,rA,$E.yieldResult),N.reply(WKf);case 17:return $E.yield(Qo(q,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return $E.return();case 4:return _.Yi($E,
21),$E.yield(q.callbacks.onLoad(),23);case 23:xD=$E.yieldResult;t4=N.reply;gp=mm(1);oJ=$z(1);bB=new wwM;bB=_.Up(bB,1,xD);oJ=_.iX(oJ,3,tT,bB);t4.call(N,rU(gp,oJ));_.Ea($E,22);break;case 21:return IJ=_.K7($E),sJ=wR,Sn=IJ,YE=q.callbacks,xE="MINI_APP_SDK_API_LOAD_DATA",$E.yield(q.sdkVersion.promise,24);case 24:sJ(Sn,YE,xE,$E.yieldResult),N.reply(WKf);case 22:return $E.yield(Qo(q,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return $E.return();case 5:_.Yi($E,26);q.callbacks.onSendHighScore(PY(_.QW(N.data,
WX1,3,xz).getValue()));N.reply(rU(mm(1),$z(1)));_.Ea($E,27);break;case 26:return qv=_.K7($E),mM=wR,Ox=qv,h4=q.callbacks,QC="MINI_APP_SDK_API_SEND_SCORE",$E.yield(q.sdkVersion.promise,28);case 28:mM(Ox,h4,QC,$E.yieldResult),N.reply(WKf);case 27:return $E.yield(Qo(q,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return $E.return();case 6:if(!_.cc(N.data,LXx,8,xz)){$E.jumpTo(30);break}t4=$E.yield;gp=_.QW(N.data,LXx,8,xz);gp=_.vc(gp,1);return t4.call($E,Qo(q,EVz(gp)),30);case 30:return $E.return();case 7:return t4=
N.reply,gp=mm(1),oJ=$z(1),bB=q.callbacks.getLanguage(),oJ=i0(oJ,4,tT,vd(bB)),t4.call(N,rU(gp,oJ)),$E.yield(Qo(q,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return $E.return();case 8:if(!_.cc(N.data,SIR,10,xz))return $E.return();rp=_.QW(N.data,SIR,10,xz);Fd=q.callbacks;yF=Fd.onSdkPerformanceUpdate;return $E.yield(q.sdkVersion.promise,33);case 33:return yF.call(Fd,rp,$E.yieldResult),$E.return();case 9:t4=N.data;gp=ky(t4,xz,11);if(_.Ya(_.R6(t4,gp))==null)return N.reply(rU(mm(1),$z(2))),$E.return();
vR=Ys(N.data,11,xz);q.callbacks.onShareInviteCode(vR);N.reply(SfC);return $E.yield(Qo(q,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return $E.return();case 10:if(_.cc(N.data,QST,13,xz)){$E.jumpTo(35);break}return $E.yield(q.callbacks.onShowMiniAppAd(2),36);case 36:return ej=$E.yieldResult,N.reply(rU(mm(1),Ujx(ej))),$E.yield(Qo(q,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return $E.return();case 35:t4=_.QW(N.data,QST,13,xz);a:switch(_.vc(t4,1)){case 1:t4={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:t4={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:t4={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Go=t4;qN=Go.adType;O5=Go.sdkApi;t4=$E.yield;gp=q.callbacks;oJ=gp.onShowMiniAppAd;bB=_.QW(N.data,QST,13,xz);bB=_.xs(bB,2);return t4.call($E,oJ.call(gp,qN,bB||void 0),38);case 38:return p1=$E.yieldResult,N.reply(rU(mm(1),Ujx(p1))),$E.yield(Qo(q,O5),39);case 39:return $E.return()}})})};
var Y1=function(q,N){_.d(function(b){q.channel.send(N);_.hj(b)})},ik=function(q,N,b){this.callbacks=q;
var y=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;q=HcC(N,(new URL(b.toString())).origin);this.gameSnacks=new DBv(q);this.gameSnacks.page.onReady(function(){y.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){y.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var J,E;(E=(J=y.callbacks).onGameReady)==null||E.call(J)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(J,E){try{y.callbacks.onSendHighScore(E)}catch(F){wR(F,y.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(J,E){var F;return _.d(function(R){if(R.nextAddress==1)return _.Yi(R,2),R.yield(y.callbacks.onSave(y.decoder.decode(E)),4);if(R.nextAddress!=2)return _.Ea(R,0);F=_.K7(R);wR(F,y.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return R.return()})});
this.gameSnacks.storage.onLoad(function(){var J,E;return _.d(function(F){if(F.nextAddress==1)return _.Yi(F,2),F.yield(y.callbacks.onLoad(),4);if(F.nextAddress!=2)return J=F.yieldResult,F.return(y.encoder.encode(J));E=_.K7(F);wR(E,y.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return F.return(y.encoder.encode(""))})});
this.gameSnacks.init()};
_.Y(ik,G$);ik.prototype.onAudioToggled=function(q,N){G$.prototype.onAudioToggled.call(this,q,N===void 0?!0:N);var b;(b=this.gameSnacks)==null||b.audio.update(q)};
ik.prototype.onPause=function(){G$.prototype.onPause.call(this);var q;(q=this.gameSnacks)==null||q.game.pause()};
ik.prototype.onResume=function(){G$.prototype.onResume.call(this);var q;(q=this.gameSnacks)==null||q.game.resume()};var LKX=gVd,pdf=_.n(function(q){var N=q.data;var b=q.loadingProgress;var y=q.forPaused;q=_.Z(_.QS("",void 0,"LYYTdd"));var J=q.next().value,E=q.next().value;q=_.Z(_.QS(!1,void 0,"K0waae"));var F=q.next().value,R=q.next().value,c=[],z=function(){return"transform: scaleX("+(_.p3(b)||0)+")"},m=null,r=function(){return N()&&m!==null&&m!==void 0?m:m=N().showAnniversaryAnimation?6:LKX()};
_.Sx(function(){var w;if(N().timeOutMessages&&((w=N().timeOutMessages)==null?0:w.length)){m=null;w=_.Z(c);for(var D=w.next();!D.done;D=w.next())clearTimeout(D.value);c.length=0;ZsA(N().timeOutMessages,c,E,R)}},"BNu9j");
var X=function(){return!!N().persistentErrorMessageTitle},V=function(){return b!==void 0},G=function(){return N().title};
return _.u("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.u("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.u("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.u("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var w,D=(w=N().backgroundImage)==null?void 0:w.sources,k;return(D==null?0:D.length)?"background-image: url("+((k=D[0])==null?void 0:k.url)+")":""}}),_.u("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.u(_.t,{cond:function(){return!X()&&!(y==null?0:y())},
then:function(){var w={};return _.u("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.u("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.u(_.h$,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+r()},
data:function(){var D="loading_animation_"+r();return{animationConfig:{name:D,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+D+".json",loop:!0,autoplay:!0}}}})),_.u("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.u(_.t,{cond:G,
then:function(){return _.u("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},G)}}),_.u("p",{class:_.NO("miniAppSplashScreenViewModelTimeoutMessage",(w.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return F()},w)),
"aria-live":"polite"},J),_.u(_.t,{cond:V,then:function(){return _.u("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.u("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:z}))}})))}}),_.u(_.t,{cond:X,
then:function(){return _.u("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.u("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return N().persistentErrorMessageTitle}),_.u(_.t,{cond:function(){return!!N().persistentErrorMessageDescription},
then:function(){return _.u("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return N().persistentErrorMessageDescription})}}))}}),_.u(_.t,{cond:y,
then:function(){return _.u("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.u("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.u("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},G))}})))},"Of");var PBK=new _.Jw("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var MXK=cC;cC=function(q){function N(b){if(b){var y,J;(y=b.__spec)==null||(J=y.didUnmount)==null||J.call(y);for(y=0;y<b.childNodes.length;y++)N(b.childNodes[y])}}
MXK==null||MXK(q);VI(function(){for(var b=0;b<q.length;b++)N(q[b])})};var oaU=_.n(function(q){var N=q.data;var b=q.score;var y=q.formattedScore;var J=q.onScoreChanged;var E=q.isEmbeddedInWebview;var F=_.cK("yt-mini-app-score-button-view-model"),R=function(){var V;return _.v(N==null?void 0:(V=N())==null?void 0:V.buttonViewModel,_.FF)},c=function(){var V;
return(b==null?void 0:b())||Number(N==null?void 0:(V=N())==null?void 0:V.lastScore)||0},z=function(){var V;
return(y==null?void 0:y())||((V=R())==null?void 0:V.title)||""},m,r=1;
if(q=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))q=Number(q),r=isNaN(q)?1:q/100;_.Sx(function(){J==null||J(c());var V;var G=_.O_((V=R())==null?void 0:V.onTap);if(G){V=_.v(G,g$M);var w,D,k;V=_.v(V==null?void 0:(w=V.panelLoadingStrategy)==null?void 0:(D=w.inlineContent)==null?void 0:(k=D.dialogViewModel)==null?void 0:k.customContent,Qto)}else V=void 0;if(w=V)w.score=z()},"Aekez");
q=_.y0(function(){var V,G,w=N==null?void 0:(V=N())==null?void 0:(G=V.loggingDirectives)==null?void 0:G.trackingParams;w&&_.fm(_.tz().resolve(_.S9),w);return!1});
_.WC(function(){if(F.value){var V=F.value.querySelector("button"),G=R();V&&G&&Fkh(V,G);_.$F("yt-share-playable-with-high-score",function(){var w=c().toString(),D=N==null?void 0:N().onShareHighScoreCommand,k=N==null?void 0:N().highScoreShareClientParamIdentifier,f=E==null?void 0:E();D&&(f?(k=new PPq,w=_.Up(k,2,w),OA(D,w.JSC$12606_serializeBinary())):k&&(_.tz().resolve(PBK).clientParams.set(k,{miniAppClientParams:{highScore:w}}),Wxd(D,!1)))})}});
var X=function(){var V=R();V&&(b==null?0:b())&&V.accessibilityText&&(V.accessibilityText=V.accessibilityText.replace(m,z()));m=z();return{numberValue:c(),numberText:z(),heightPx:36,fontSizeMultiplier:r,shouldAnimate:!(b==null||!b())&&!0}};
return _.u("yt-mini-app-score-button-view-model",{class:function(){var V={};return _.jz("miniAppScoreButtonViewModelHost",(V.miniAppScoreButtonViewModelIsVisible=c()!==0,V))},
el:F,"on:click":q},tdh(!1,function(){return _.u("span",{style:"display:none;"},c)}),_.u(_.zS,{data:function(){var V;
return N==null?void 0:(V=N())==null?void 0:V.buttonViewModel}},{buttonViewModel:function(V){return _.u(_.Ou,{data:V.data,
animatedTextProps:X})}}))},"Qf");var qhK=_.n(function(q){var N,b=(N=_.XH("yt-mini-app-is-theater-mode-enabled"))!=null?N:!1,y=_.x("enable_playable_container_save_button"),J=_.x("enable_play_next_destination_page_in_toolbar");N={};return _.u("ytm-mini-app-top-bar-view-model",null,_.u("div",{class:_.NO("yt-mini-app-top-bar-view-model",(N["yt-mini-app-top-bar-view-model--mobile"]=!1,N["yt-mini-app-top-bar-view-model--desktop"]=!0,N))},_.u("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.u(_.t,{cond:function(){var E;return!!q.data().backButtonEdu&&
!((E=q.isExitMiniAppSeen)==null?0:E.call(q))},
then:function(){return _.u(_.zS,{data:function(){return q.data().backButtonEdu}},{buttonViewModel:_.Ou})},
else:function(){return _.u(_.zS,{data:function(){return q.data().backButton}},{buttonViewModel:_.Ou})}}),_.u(_.t,{cond:function(){return q.data().viewAllButton&&!0},
then:function(){return _.u(_.zS,{data:function(){return q.data().viewAllButton}},{buttonViewModel:_.Ou})}}),_.u(_.t,{cond:function(){return q.data().title&&!0},
then:function(){return _.u("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return q.data().title})}})),_.u("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.u(_.t,{cond:function(){var E;
return(E=q.isDesktopPlayPage)==null?void 0:E.call(q)},
then:function(){return _.u(_.rV,null,_.u(Aaa,{highScoreButton:function(){return q.data().highScoreButton},
score:q.score,formattedScore:q.formattedScore,onScoreChanged:q.onScoreChanged,isEmbeddedInWebview:q.isEmbeddedInWebview}),_.u(exB,{enableSaveButton:function(){return _.p3(y)},
saveButton:function(){return q.data().saveButton},
isSaved:q.isSaved,onSaveToggled:function(){return q.onSaveToggled}}),_.u(BpU,{menuButton:function(){return q.data().menuButton}}))},
else:function(){return _.u(_.t,{cond:function(){return!1},
then:function(){return _.u(_.zS,{data:function(){return q.data().playPageButton}},{buttonViewModel:function(E){return _.u(_.Ou,{data:E.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.u(Aaa,{highScoreButton:function(){return q.data().highScoreButton},
score:q.score,formattedScore:q.formattedScore,onScoreChanged:q.onScoreChanged,isEmbeddedInWebview:q.isEmbeddedInWebview})}})}})),_.u("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.u(_.zS,{data:function(){return q.data().muteButton}},{toggleButtonViewModel:function(E){var F=E.data;
return _.u(_.LV,{data:function(){var R,c;return Object.assign({},F(),{isToggled:(c=(R=q.isAudioEnabled)==null?void 0:R.call(q))!=null?c:!0})},
onToggle:q.onAudioToggled,useOutlinedIcon:!0})}}),_.u(_.zS,{data:function(){return q.data().theatreModeButton}},{toggleButtonViewModel:function(E){var F=E.data;
return _.u("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.u(_.LV,{data:function(){return Object.assign({},F(),{isToggled:b})},
useOutlinedIcon:!0}))}}),_.u(HUa,{fullscreenButton:function(){return q.data().fullscreenButton}}),_.u(_.t,{cond:function(){return _.p3(J)&&q.data().viewAllButton&&!1},
then:function(){return _.u(_.zS,{data:function(){return q.data().viewAllButton}},{buttonViewModel:_.Ou})}}),_.u(_.t,{cond:function(){var E;
return!((E=q.isDesktopPlayPage)==null?0:E.call(q))},
then:function(){return _.u(_.rV,null,_.u(exB,{enableSaveButton:function(){return _.p3(y)},
saveButton:function(){return q.data().saveButton},
isSaved:q.isSaved,onSaveToggled:function(){return q.onSaveToggled}}),_.u(BpU,{menuButton:function(){return q.data().menuButton}}))}}))))},"Rf");
qhK.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var BpU=_.n(function(q){return _.u(_.zS,{data:q.menuButton},{buttonViewModel:_.Ou})},"Sf"),exB=_.n(function(q){var N=q.enableSaveButton;
var b=q.saveButton;var y=q.isSaved;var J=q.onSaveToggled;return _.u(_.t,{cond:function(){return N()&&!(b==null||!b())},
then:function(){return _.u(_.zS,{data:function(){var E=_.v(b==null?void 0:b(),_.de),F;return{toggleButtonViewModel:Object.assign({},E,{isToggled:(F=y==null?void 0:y())!=null?F:!(E==null||!E.isToggled)})}}},{toggleButtonViewModel:function(E){return _.u(_.LV,{data:E.data,
onToggle:J})}})}})},"Tf"),Aaa=_.n(function(q){var N=q.highScoreButton;
var b=q.score;var y=q.formattedScore;var J=q.onScoreChanged;var E=q.isEmbeddedInWebview;return _.u(_.zS,{data:N},{miniAppScoreButtonViewModel:function(F){return _.u(oaU,{data:F.data,score:b,formattedScore:y,onScoreChanged:J,isEmbeddedInWebview:E})}})},"Uf"),HUa=_.n(function(q){q=q.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.u(_.rV,null):_.u(_.zS,{data:q},{buttonViewModel:_.Ou})},"Vf");_.Nsc=_.n(function(q){var N=q.data;var b=q.extractOverlay;q={};return _.u("player-disclosure-view-model",{class:_.NO("ytwPlayerDisclosureViewModelHost",(q.ytwPlayerDisclosureViewModelExtractOverlay=function(){return b==null?void 0:b()},q))},_.u(_.Vf,{command:function(){return N().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.u(_.t,{cond:function(){return N().iconName},
then:function(y){return _.u(_.FQ,{icon:y})}}),_.u(_.t,{cond:function(){return N().iconName?void 0:N().image},
then:function(y){return _.u(_.s_,{data:y,alt:function(){return N().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.u(_.t,{cond:function(){return N().title||N().secondaryText},
then:function(){return _.u("div",null,_.u("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return N().title}),_.u("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return N().text}),_.u(_.t,{cond:function(){return N().secondaryText},
then:function(y){return _.u(_.rV,null,_.u("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.u("div",{class:"ytwPlayerDisclosureViewModelText"},y))}}))},
else:function(){return _.u("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return N().text})}}),_.u(_.t,{cond:function(){return N().showEndChevron},
then:function(){return _.u(_.FQ,{icon:"CHEVRON_RIGHT"})}})))},"Wf");_.bcK=new _.Jw("DESKTOP_CURRENT_PAGE");var F7N=_.n(function(q){var N=q.data;var b=_.x("force_active_time_logging_webview"),y=!1,J=new iUU,E=void 0,F=void 0,R=_.tz().resolve(wdW),c=new Gcf,z=void 0,m=void 0,r=[],X=void 0,V=void 0,G=!1,w=!1,D=!1,k=!1,f=new _.yk,L=_.tz().resolve(PBK),S=_.tz().resolve(_.XB),W=_.tz().resolve(_.$f(sb)),M,qe=(M=_.tz().resolve(_.$f(_.bcK)))==null?void 0:M.getCurrentPage(),RJ=!1,tZ=0,wA=function(Zq){Zq.preventDefault();return Zq.returnValue=""},rA,xD=_.Z(_.QS(!((rA=_.XH("yt-mini-app-is-audio-enabled"))!=null&&
!rA),void 0,"wBOrKf")),IJ=xD.next().value,sJ=xD.next().value,Sn,YE=_.Z(_.QS(!((Sn=_.XH("exit-mini-app-seen-state"))==null||!Sn),void 0,"a2xYg")),xE=YE.next().value,qv=YE.next().value,mM=_.Z(_.QS(!1,void 0,"i8BH4")),Ox=mM.next().value,h4=mM.next().value,QC=_.Z(_.QS(void 0,void 0,"UGqFqe")),rp=QC.next().value,Fd=QC.next().value,yF=_.Z(_.QS(void 0,void 0,"jrV5Ob")),vR=yF.next().value,ej=yF.next().value,Go=_.Z(_.QS(!0,void 0,"u5JS3d")),qN=Go.next().value,O5=Go.next().value,p1=_.Z(_.QS(!1,void 0,"MjPdB")),
$E=p1.next().value,t4=p1.next().value,gp=_.Z(_.QS(!1,void 0,"nT6Yxf")),oJ=gp.next().value,bB=gp.next().value,tB=_.Z(_.QS(void 0,void 0,"nkG6")),JB=tB.next().value,XA=tB.next().value,LU=_.Z(_.QS(0,void 0,"KH4u0b")),uC=LU.next().value,jc=LU.next().value,L1=_.dI("mini-app-container-view-model"),Of=_.Z(_.QS(!1,void 0,"NsE4qb")),Ef=Of.next().value,hb=Of.next().value,bC=function(){return N().isEmbeddedInWebview},CF=function(){return N().hasPlayNextShelf};
_.SI(function(){var Zq,xa=(Zq=_.v(N().contentDisclosure,acl))==null?void 0:Zq.animationParams;if((xa==null?0:xa.shouldHide)&&(xa==null?0:xa.hideDelaySecs)){var sf=setTimeout(function(){hb(!0)},xa.hideDelaySecs*1E3);
_.W1(function(){clearTimeout(sf)})}});
_.$F("yt-page-type-changed",function(Zq){if(_.x("enable_is_mini_app_page_active_bugfix"))Zq.detail.newPageSubtype==="mini_app"&&Zq.detail.newPageType==="ytd-browse"||!qN()||Mg();else if(Zq=_.nT()==="mini_app",Zq!==qN())if(O5(Zq),Zq){var xa;Zq=(xa=N().playableId)==null?void 0:xa.toString();Zq!==void 0&&window.location.href.includes(Zq)&&!w&&(k=!0,X8(),pQ.value&&XP(pQ.value))}else Zq||Mg()});
_.$F("yt-action",function(Zq){Zq.detail.actionName==="yt-engagement-panel-visible-changed"&&Zq.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Zq.detail.args[2]==="PAmini_app_panel"&&Mg();_.x("enable_is_mini_app_page_active_bugfix")?Zq.detail.actionName==="yt-history-load"&&!qN()&&(qe==null?0:qe.active)?(O5(!0),X8(),pQ.value&&XP(pQ.value)):Zq.detail.actionName==="yt-history-load"&&qN()&&!N().isEmbeddedInWebview&&jj():qN()&&Zq.detail.actionName==="yt-history-load"&&(k?k=!1:N().isEmbeddedInWebview||
jj())});
_.W1(function(){Wx()});
_.Sx(function(){X8()},"bzUf2c");
var X8=function(){var Zq=N().playableId,xa=N().localReleaseId,sf=N().derivedDeviceInterface;if(w)_.M6(new _.IO("[MiniAppContainerViewModel] onEnter was called more than once"));else{w=!0;E=new caU(Zq,xa,sf,document.visibilityState==="visible");tXX(E);F=new UNA(Zq);yBC(R,Zq);Yfa(c,{showMiniAppAdCommand:N().showMiniAppAdCommand,isEmbeddedInWebview:N().isEmbeddedInWebview,playLogger:E});AeC()&&(V=document.body.style.backgroundColor,_.IY(document.body,"background-color","black"));lW();vW();f=new _.yk;
if(N().isEmbeddedInWebview){if(Zq=(new URLSearchParams(window.location.search)).get("postPlayNonce"))zxK(E,Zq),RJ=!0;J.initialize({onAudioStateLoaded:function(rs){Me(rs)},
onMuteMiniApp:function(){Me(!1)},
onUnmuteMiniApp:function(){Me(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(rs){RJ||(zxK(E,rs),RJ=!0)},
confirmExitMiniApp:function(){var rs,s5,nF;return _.d(function(AV){if(AV.nextAddress==1)return N().confirmExitMiniAppCommand?AV.yield(Promise.race([f.promise,Promise.resolve(!1)]),2):AV.return();(rs=AV.yieldResult)?!N().confirmExitMiniAppCommandEdu||(nF=(s5=xE)==null?void 0:s5())!=null&&nF?Qi(N().confirmExitMiniAppCommand):(Qi(N().confirmExitMiniAppCommandEdu),_.r5("exit-mini-app-seen-state","true",2592E6)):Qi(N().closeMiniAppCommand);_.hj(AV)})},
onNativeBenchmarkingMessageReceived:function(rs){rs=G51(_.axh(rs));if(_.cc(rs,_.YA,3,jSR)){var s5=_.QW(rs,_.YA,3,jSR),nF=Lxe();var AV=PY(nF.getSeconds())-PY(s5.getSeconds());s5=_.tW(nF,2)-_.tW(s5,2);AV<0&&s5>0?(AV+=1,s5-=1E9):AV>0&&s5<0&&(--AV,s5+=1E9);AV=(new MQ).setSeconds(AV);AV=_.NB(AV,2,_.Rf(s5),0);_.ws(rs,1,AV)}var a6;(a6=m)==null||a6.returnNativeBenchmarkingMessage(rs)},
multiplayer3pAckStateLoaded:function(rs){jj(rs)},
exitMiniAppSeenStateLoaded:function(rs){N().confirmExitMiniAppCommandEdu&&qv(rs)},
onNavigateToNewMiniApp:function(){Qi(N().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(rs){rs=new URLSearchParams(rs);var s5=void 0;rs.has("invite_code")&&(s5=new KXR,rs=rs.get("invite_code"),s5=_.Up(s5,1,rs));if(rs=s5){var nF;(nF=m)==null||nF.sendGameData(rs)}},
onPauseMiniApp:function(){y=!0;KC()},
onResumeMiniApp:function(){y=!0;nC()},
onAdFinished:function(rs){c.onAdFinished(rs)}});
N().showMultiplayer3pConsentDialogCommand||f.resolve(!0);Qi(N().onContainerReadyCommand)}else zxK(E),f.resolve(!0);fWx(F,uAU(E));uAU(E).then(function(rs){rs={miniAppPlayData:{postPlayNonce:rs}};var s5,nF=(s5=N().loggingDirectives)==null?void 0:s5.trackingParams;nF&&_.FR().stateChanged(nF,rs)});
Zq=N().showSignInDialogCommand;!ohz()&&Zq&&(_.r5("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Qi(Zq));N().confirmExitMiniAppCommand&&W&&(Zq=aBd(N().confirmExitMiniAppCommand))&&(W.customConfirmationCommand=Zq)}},Wx=function(){V&&_.IY(document.body,"background-color",V);
G=!1;X&&X.release();F.flush().catch(function(Zq){_.M6(Zq)});
R.flush().catch(function(Zq){_.M6(Zq)});
raX(E);$x();m=void 0;JBU(L)},Mg=function(){O5(!1);
Wx();h4(!1);XA(void 0);Fd(void 0);ej(void 0);tZ=0;jc(0);w=!1},KC=function(){var Zq;
(Zq=m)==null||Zq.onPause();X&&X.release();F.flush().catch(function(xa){_.M6(xa)});
R.flush().catch(function(xa){_.M6(xa)});
mNp(E);t4(!0)},nC=function(){var Zq;
(Zq=m)==null||Zq.onResume();vW();Zq=E;Zq.isForeground=!0;jo(Zq,"PLAY_EVENT_TYPE_PLAY_RESUME");t4(!1)},Me=function(Zq){var xa;
(xa=m)==null||xa.onAudioToggled(Zq);sJ(Zq)},jj=function(Zq){N().showMultiplayer3pConsentDialogCommand&&(N().isEmbeddedInWebview&&Zq!==void 0&&f.resolve(Zq),!Zq&&_.nT()==="mini_app"&&Qi(N().showMultiplayer3pConsentDialogCommand))},Gc=function(){var Zq,xa,sf,rs;
return _.d(function(s5){if(s5.nextAddress==1){!N().isLivestream||N().disableVideoCapture||(Zq=m)!=null&&Zq.sendStartGameFrameCapture();xa=(new URL(window.location.href)).searchParams;if(xa.has("invite_code")){var nF=new KXR,AV=xa.get("invite_code");sf=_.Up(nF,1,AV);(rs=m)==null||rs.sendGameData(sf)}Ox()||(h4(!0),nF=E,nF.state!==1?_.M6(new _.IO("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+RxC[nF.state])):(_.v4("mini_app_ids_without_game_ready").includes(nF.JSC$17151_miniAppId)&&(nF.gameReady=
!0),nF.state=2,nF.beforeReady=!1,Vo(nF,"ma_ffr"),jo(nF,"PLAY_EVENT_TYPE_PLAY_READY")));return s5.yield(f.promise,2)}Qi(N().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();N().isEmbeddedInWebview||jj();_.hj(s5)})},Uh=function(){var Zq=E;
Zq.gameReady=!0;Vo(Zq,"ma_gr")},DW=function(Zq){var xa;
return _.d(function(sf){if(sf.nextAddress==1)return _.Yi(sf,2),sf.yield(IWW(F,Zq),4);if(sf.nextAddress!=2)return _.Ea(sf,0);xa=_.K7(sf);Qi(N().showSavingErrorPopupCommand);throw xa;})},lT=function(){var Zq,xa;
return _.d(function(sf){if(sf.nextAddress==1)return _.Yi(sf,2),sf.yield(CBK(F),4);if(sf.nextAddress!=2)return Zq=sf.yieldResult,sf.return(Zq);xa=_.K7(sf);Qi(N().showLoadingErrorDialogCommand);throw xa;})},wx=function(Zq){E.logError(Zq)},SX=function(Zq,xa,sf){VXa(E,Zq,xa,sf)},WZ=function(Zq,xa){xNU(E,Zq,xa)},VF=function(){!b&&N().isEmbeddedInWebview||_.$y();
Xda(E,!0);G||(window.addEventListener("beforeunload",wA,{capture:!0}),G=!0)},oW=function(Zq){var xa,sf,rs,s5,nF,AV,a6;
return _.d(function(GW){if(GW.nextAddress==1)return R&&(!z||z<Zq)&&Zq>0?GW.yield(EBf(R,Zq),3):GW.jumpTo(0);xa=GW.yieldResult;sf=_.Z(xa);rs=sf.next().value;s5=sf.next().value;nF=rs;AV=s5;((a6=nF)==null?0:a6.displayString)&&AV&&(Fd(AV),ej(nF.displayString));_.hj(GW)})},oe=function(Zq){var xa=N().onBenchmarkingMessageReceivedCommand;
if(xa){var sf=Lxe();_.iX(Zq,3,jSR,sf);OA(xa,YIq(Zq))}},Lc=function(Zq){var xa=N().onGameFrameReceivedCommand;
if(xa){var sf=new LO;var rs=new jtv;var s5=VW(Zq,1);rs=_.fo(rs,1,s5);Zq=_.xs(Zq,2);Zq=_.Up(rs,2,Zq);sf=_.ws(sf,2,Zq);OA(xa,YjR(sf))}},AX=function(Zq){var xa=N().onGameAudioDataReceivedCommand;
if(xa){var sf=new LO;var rs=new vzT;Zq=_.xs(Zq,1);rs=_.Up(rs,1,Zq);sf=_.ws(sf,4,rs);OA(xa,YjR(sf))}},yH=function(){var Zq=new URLSearchParams(window.location.search);
if(N().isEmbeddedInWebview&&Zq&&Zq.get("override_hl")==="true"&&Zq.get("hl"))return Zq.get("hl");Zq=document.documentElement.lang;return Zq!==""?Zq:hi},sv=function(Zq){var xa=N().onShareInviteCodeCommand;
if(xa)if(N().isEmbeddedInWebview){var sf=new PPq;Zq=_.Up(sf,1,Zq);OA(xa,owF(Zq))}else sf=N().inviteCodeShareClientParamIdentifier,L.clientParams.set(sf,{miniAppClientParams:{inviteCode:Zq}}),Qi(xa)},IA=function(Zq){var xa,sf,rs;
return _.d(function(s5){if(s5.nextAddress==1)return xa=N().onMiniAppOpenYtContentRequested,R&&_.x("enable_open_yt_content")&&xa?s5.yield(gBp(R,Zq),3):s5.jumpTo(0);sf=s5.yieldResult;if(sf==="OK")if(N().isEmbeddedInWebview){var nF=new mM4;rs=i0(nF,2,Wa,vd(Zq));OA(xa,VDJ(rs))}else S.clientData.set("video_id",Zq),Qi(xa);_.hj(s5)})},rb=function(Zq){tZ+=_.tW(Zq,3);
Zq=Math.min(Math.log(1+tZ/15E6*9)/Math.log(10),.99);jc(Zq);Jh(Zq)},Jh=_.vE(function(Zq){var xa=N().updateLoadingProgressCommand;
if(xa){var sf=new mM4;Zq=i0(sf,3,Wa,_.BR(Zq));OA(xa,VDJ(Zq))}},100),rL=function(Zq){return OUA(c,Zq)},vW=function(){var Zq,xa;
((Zq=_.OKC())==null?void 0:(xa=Zq.wakeLock)==null?void 0:xa.request)!=null&&_.OKC().wakeLock.request("screen").then(function(sf){X=sf}).catch(function(){})},pQ=_.cK("iframe");
_.Sx(function(){N().isSupportedCountry&&(ohz()||_.x("enable_sign_in_promo")||!N().showSignInDialogCommand?pQ.value&&XP(pQ.value):Qi(N().onMiniAppReadyCommand))},"VjCqQ");
var wz=function(){return _.u("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Ox()?0:-1},
el:pQ})},XP=function(Zq,xa){xa=xa===void 0?!1:xa;
var sf=zv();sf&&(xa||sf.toString()!==Zq.getAttribute("src"))&&(m=bsC(N().source,{isAudioEnabled:IJ,onFirstFrameReady:Gc,onGameReady:Uh,onSave:DW,onLoad:lT,onError:wx,onSdkCalled:SX,onSdkPerformanceUpdate:WZ,onClick:VF,onSendHighScore:oW,onBenchmarkingMessageReceived:oe,getLanguage:yH,onShareInviteCode:sv,onResourceLoaded:rb,onOpenYTContent:IA,onShowMiniAppAd:rL,onGameFrameReceived:Lc,onGameAudioReceived:AX},Zq,sf),c$(Zq,"load",function(){Vo(E,"ma_il");c$(Zq,"load",function(){XP(Zq,!0)})}),_.Nn(Zq,
sf))},zv=function(){var Zq=N().url;
if(Zq&&(Zq=_.Pv(Zq),Zq!==null)){if(N().source&&N().source==="MINI_APP_SOURCE_GAMESNACKS")Zq=_.Vu(Zq,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.x("enable_origin_query_parameter_bugfix")){var xa=_.VD(_.t8d(Zq.toString()));xa=new URLSearchParams(xa||"");xa.set("origin",window.location.origin);xa=xa.toString();Zq=_.kB(Zq).toString();Zq=_.hB(ZMF.exec(Zq)[0]+(xa.trim()?"#"+xa:""))}return Zq}},iW=function(){var Zq={};
Zq=_.NO("yt-mini-app-container-view-model__loading-screen",(Zq["yt-mini-app-container-view-model__loading-screen--fade-out"]=Ox,Zq));var xa=function(){return Ox()?1:uC()};
return _.u("div",{class:Zq},_.u(_.zS,{data:function(){return N().splashScreen}},{miniAppSplashScreenViewModel:function(sf){return _.u(pdf,{data:sf.data,
loadingProgress:xa})}}))},rv=function(){var Zq={};
return _.u("div",{class:_.NO("yt-mini-app-container-view-model__pause-interstitial",(Zq["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!$E()},Zq["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=$E,Zq))},_.u(_.zS,{data:function(){return N().splashScreen}},{miniAppSplashScreenViewModel:function(xa){return _.u(pdf,{data:xa.data,
forPaused:!0})}}))},lW=function(){r=[];
r.push(_.tn(window,"visibilitychange",function(){D||y&&bC()||(document.visibilityState==="visible"?nC():KC())}));
r.push(_.tn(window,"pagehide",function(){Wx()}));
r.push(_.tn(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&L1.value.dispatchEvent(new Event("tap"))},0)}));
r.push(_.tn(L1.value,"pointerdown",function(){Xda(E,!1)},!0));
r.push(_.tn(L1.value,"pause",function(){D=!0;KC()}));
r.push(_.tn(L1.value,"play",function(){D=!1;nC()}));
r.push(_.tn(L1.value,"exit",function(){Wx()}));
var Zq=navigator.keyboard,xa=Zq&&Zq.lock;r.push(_.tn(window,Vuo,function(){bB(xO4());xO4()?(N().hasPlayNextShelf&&GV("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),X7("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),xa&&Zq.lock(["Escape"])):(N().hasPlayNextShelf&&X7("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),GV("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),xa&&Zq.unlock())}));
N().showMultiplayer3pConsentDialogCommand&&r.push(_.tn(window,"yt-playables-ack-3p-data-usage",function(){Zcp(R)}));
N().confirmExitMiniAppCommandEdu&&r.push(_.tn(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.r5("exit-mini-app-seen-state","true",2592E6)}));
N().onGameAudioDataReceivedCommand&&r.push(_.tn(window,"message",function(sf){sf=sf.event_;var rs,s5=(rs=pQ.value)==null?void 0:rs.src;if(s5&&sf.origin===(new URL(s5)).origin&&sf.data&&sf.data.type==="GAME_AUDIO"&&sf.data.audio&&sf.data.audio.length>0)if(_.x("enable_sending_unwrapped_game_audio_as_serialized_metadata"))PVJ(N().onGameAudioDataReceivedCommand,sf.data.audio);else{var nF=new FileReader;nF.onload=function(){var AV=new LO;var a6=new vzT;a6=_.Up(a6,1,nF.result);AV=_.ws(AV,4,a6);OA(N().onGameAudioDataReceivedCommand,
YjR(AV))};
nF.readAsDataURL(new Blob([sf.data.audio]))}}))},$x=function(){r.forEach(function(Zq){uq(Zq)});
window.removeEventListener("beforeunload",wA,{capture:!0})},Qi=function(Zq){Zq&&Wxd(Zq,N().isEmbeddedInWebview||!1)},X7=function(Zq,xa){Zq=_.Z(L1.value.getElementsByClassName(Zq));
for(var sf=Zq.next();!sf.done;sf=Zq.next())sf.value.classList.add(xa)},GV=function(Zq,xa){Zq=_.Z(L1.value.getElementsByClassName(Zq));
for(var sf=Zq.next();!sf.done;sf=Zq.next())sf.value.classList.remove(xa)};
return function(){var Zq={};Zq=_.NO("yt-mini-app-container-view-model",(Zq["yt-mini-app-container-view-model--desktop"]=!0,Zq["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return N().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Zq["yt-mini-app-container-view-model--ios-web-view"]=AeC(),Zq["yt-mini-app-container-view-model--no-top-bar"]=function(){return!N().topBar},Zq["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return N().hasPlayNextShelf},Zq["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return N().hasPlayNextShelf},Zq["yt-mini-app-container-view-model--show-peek-below"]=function(){return!oJ()&&N().hasPlayNextShelf},Zq));
var xa={};xa=_.NO("yt-mini-app-container-view-model__content",(xa["yt-mini-app-container-view-model__content--desktop-content"]=!0,xa["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return N().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},xa["yt-mini-app-container-view-model--desktop-play-page"]=function(){return N().hasPlayNextShelf},xa));
return _.u("mini-app-container-view-model",{el:L1},_.u("div",{class:Zq},_.u(_.t,{cond:function(){return N().topBar&&!oJ()},
then:function(){return _.u(_.zS,{data:function(){return N().topBar}},{miniAppTopBarViewModel:function(sf){return _.u(qhK,{data:sf.data,
isAudioEnabled:IJ,onAudioToggled:function(rs){Me(rs)},
score:rp,formattedScore:vR,onScoreChanged:function(rs){z=rs},
isEmbeddedInWebview:bC,isSaved:JB,onSaveToggled:function(rs){XA(rs)},
isExitMiniAppSeen:xE,isDesktopPlayPage:CF})}})}}),_.u("div",{class:xa},_.u(_.t,{cond:qN,
then:function(){return wz()}}),_.u(_.t,{cond:function(){return N().isLivestream},
then:function(){return rv()}}),_.u(_.t,{cond:function(){return!N().isEmbeddedInWebview},
then:function(){return iW()}}),_.u(_.zS,{data:function(){return N().contentDisclosure}},{playerDisclosureViewModel:function(sf){sf=sf.data;
var rs={};return _.u("div",{class:_.NO("yt-mini-app-container-view-model__content-disclosure-overlay",(rs["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=Ef,rs))},_.u(_.Nsc,{data:sf}))}}))))}()},"$f");
F7N.idomCompat=!0;_.P$(F7N,"mini-app-container-view-model",{props:{data:_.F5}});var R_x=_.n(function(q){var N=q.data;return _.u("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.u("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.y0(function(){var b=N().onTap;b&&_.Kt(b)})},_.u(_.t,{cond:function(){return N().icon},
then:function(b){return _.u(_.FQ,{icon:function(){return b().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.u("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return N().title})))},"ag");
R_x.idomCompat=!0;var dBA=_.n(function(q){var N=_.dI("div"),b=_.Z(_.QS(void 0,void 0,"dg3xff")),y=b.next().value,J=b.next().value;b=_.Z(_.QS(void 0,void 0,"AgHNfc"));var E=b.next().value,F=b.next().value;b=_.Z(_.QS(void 0,void 0,"fuTKCc"));var R=b.next().value,c=b.next().value,z=function(){var k=y();return k!==void 0?Math.abs(k):void 0},m=function(){var k=z();
return k===void 0||k<=3},r=function(){var k=z();
var f=E(),L=R();k=k!==void 0&&f!==void 0&&L!==void 0?f-L-k:void 0;return k===void 0||k<=3},X=function(k){N.value&&N.value.scrollBy({top:0,
left:(_.M7("HTML_DIR")==="rtl"?-1:1)*k*N.value.clientWidth,behavior:"smooth"})},V=function(){var k;
J((k=N.value)==null?void 0:k.scrollLeft);var f;F((f=N.value)==null?void 0:f.scrollWidth);var L;c((L=N.value)==null?void 0:L.clientWidth)},G=function(){X(-.5)},w=function(){X(.5)};
b=_.y0(function(){V()});
_.SI(function(){V();if(N.value&&window.ResizeObserver){var k=new ResizeObserver(V);k.observe(N.value);_.W1(function(){k.disconnect()})}});
var D={};return _.u("yt-sponsorships-scrollable-shelf",{class:_.NO("ytdSponsorshipsScrollableShelfHost",q.className)},_.u("div",{class:_.NO("ytdSponsorshipsScrollableShelfContent",(D.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return q.data().previousButton&&q.data().nextButton&&!m()&&!r()},D.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return q.data().previousButton&&!m()&&r()},D.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return q.data().nextButton&&
m()&&!r()},D)),
el:N,"on:scroll":b},q.children),_.u(_.t,{cond:function(){return!m()},
then:function(){return _.u(_.zS,{data:function(){return q.data().previousButton}},{buttonViewModel:function(k){return _.u(_.Ou,{data:k.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:G})}})}}),_.u(_.t,{cond:function(){return!r()},
then:function(){return _.u(_.zS,{data:function(){return q.data().nextButton}},{buttonViewModel:function(k){return _.u(_.Ou,{data:k.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:w})}})}}))},"cg");
dBA.idomCompat=!0;var uyN=_.n(function(q){var N=q.data;q={};return _.u("yt-sponsorships-hub",{class:_.NO("ytdSponsorshipsHubHost",(q.ytdSponsorshipsHubHostIndented=function(){return N().indented},q))},_.u("div",{class:"ytdSponsorshipsHubHeader"},_.u("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.u("div",{class:"ytdSponsorshipsHubAvatar"},_.u(_.zS,{data:function(){return N().avatar}},{avatarViewModel:_.HF})),_.u(_.t,{cond:function(){return N().badgeImage},
then:function(b){return _.u("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.u("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.u("div",{class:"ytdSponsorshipsHubBadge"},_.u(_.s_,{data:b,targetWidth:24,targetHeight:24,alt:""}))))}})),_.u("div",{class:"ytdSponsorshipsHubDetails"},_.u("div",{class:"ytdSponsorshipsHubTierName"},function(){return N().tierName}),_.u("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return N().membershipType}),_.u("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return N().membershipDurationOrExpiry})),_.u("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.u(_.zS,{data:function(){return N().manageButton}},{buttonViewModel:function(b){return _.u(_.Ou,{data:b.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.u(_.zS,{data:function(){return N().actionMenuButton}},{buttonViewModel:function(b){return _.u(_.Ou,{data:b.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.u("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return N().perksTitle}),_.u(dBA,{data:function(){return{previousButton:N().previousPerkButton,
nextButton:N().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.u("div",{class:"ytdSponsorshipsHubPerkCards"},_.u(_.zS,{data:function(){return N().perkCards}},{sponsorshipsHubPerkCardViewModel:R_x}),_.u(_.t,{cond:function(){return N().viewAllPerksButton},
then:function(b){return _.u(cBN,{data:b})}}))))},"dg");
uyN.idomCompat=!0;var cBN=_.n(function(q){var N=q.data;return _.u("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.u(_.zS,{data:function(){return N().button}},{buttonViewModel:_.Ou}),_.u("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.u("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return N().title}),_.u("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return N().subtitle})))},"eg");
cBN.idomCompat=!0;_.P$(uyN,"yt-sponsorships-hub",{props:{data:_.F5}});_.z_U=_.n(function(q){var N=q.data;return _.u("yt-dual-avatar-view-model",{class:_.NO("ytDualAvatarViewModelHost",q.className),style:_.ZU({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var b;return((b=N().badgeCutoutRadius)!=null?b:14)+"px"}})},_.u("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.u(_.zS,{data:function(){return N().startAvatar}},{avatarViewModel:_.HF}),_.u(_.zS,{data:function(){return N().endAvatar}},{avatarViewModel:_.HF})),_.u(_.zS,{data:function(){return N().badge}},
{contentPreviewImageViewModel:function(b){return _.u("div",{class:"ytDualAvatarViewModelBadge"},_.u(_.wK,{data:b.data}))}}))},"fg");
_.z_U.idomCompat=!0;var tva=_.n(function(q){var N=q.data;var b,y=!((b=_.tz().resolve(_.$f(_.ft)))==null||!b());q=_.K3(function(){var m,r,X=y?(m=N().header)==null?void 0:m.backgroundColorDarkMode:(r=N().header)==null?void 0:r.backgroundColorLightMode;if(X!==void 0)return _.Y8(X)},void 0,"TDdh7d");
b=_.K3(function(){var m,r;return y?(m=N().header)==null?void 0:m.backgroundImagePart1Dark:(r=N().header)==null?void 0:r.backgroundImagePart1Light},void 0,"X0peMe");
var J=_.K3(function(){var m,r;return y?(m=N().header)==null?void 0:m.backgroundImagePart2Dark:(r=N().header)==null?void 0:r.backgroundImagePart2Light},void 0,"an0Hzd"),E=_.K3(function(){return _.M7("HTML_DIR")==="rtl"},void 0,"BltEgb"),F=_.dI("yt-sponsorships-perks-list"),R=!1,c=function(){var m=F.value;
if(m&&!R){var r,X=(r=m.parentElement)==null?void 0:r.parentElement;if(X)for(m=m.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),r=0;r<m.length;++r){var V=m[r];if(V instanceof HTMLElement){X.scrollTo({top:V.offsetTop+V.clientHeight/2-X.clientHeight/2,behavior:"smooth"});R=!0;break}}}};
_.WC(function(){var m=F.value;if(m&&window.ResizeObserver){var r=new ResizeObserver(c);r.observe(m);_.W1(function(){r.disconnect()})}});
var z={};return _.u("yt-sponsorships-perks-list",{el:F,class:_.NO("ytdSponsorshipsPerksListHost",(z.ytdSponsorshipsPerksListHorizontalPadding=function(){return N().horizontalPaddingEnabled},z))},_.u("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.u("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.ZU({"background-color":q})},_.u("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.u(_.t,{cond:b,then:function(m){var r={};return _.u("div",{class:_.NO((r.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=y,r.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!y,r.ytdSponsorshipsPerksListFlipped=E,r))},_.u(_.s_,{data:m,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.u("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.u(_.t,{cond:J,
then:function(m){var r={};return _.u("div",{class:_.NO((r.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=y,r.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!y,r.ytdSponsorshipsPerksListFlipped=E,r))},_.u(_.s_,{data:m,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.u("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.u(_.zS,{data:function(){var m;
return(m=N().header)==null?void 0:m.dualAvatar}},{dualAvatarViewModel:_.z_U})))),_.u("div",{class:"ytdSponsorshipsPerksListBody"},_.u("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return N().title}),_.u(_.t,{cond:function(){return N().perks},
then:function(m){return _.u(_.Tf,{each:m},function(r,X){var V={};return _.u("div",{class:_.NO("ytdSponsorshipsPerksListPerkContainer",(V.ytdSponsorshipsPerksListSelectedPerk=function(){var G=X(),w=N().selectedPerkIndex;return G===w},V))},_.u(_.t,{cond:function(){return X()>0},
then:function(){return _.u("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.u("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.u(_.t,{cond:function(){return r.icon},
then:function(G){return _.u(_.FQ,{icon:function(){return G().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.u("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.u("div",{class:"ytdSponsorshipsPerksListPerkTitle"},r.title),_.u("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.u(_.Zc,{text:r.description})),_.u(_.t,{cond:function(){return r.instructions},
then:function(){var G,w;return _.u("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.u("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(G=r.instructions)==null?void 0:G.title),_.u("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.u(_.Zc,{text:(w=r.instructions)==null?void 0:w.text})))}}))),_.u(_.t,{cond:function(){return r.emoji},
then:function(G){return _.u("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.u(_.Tf,{each:function(){return G()}},function(w){return _.u(_.s_,{data:w,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.u($Ba,{data:r}))})}})))},"gg");
tva.idomCompat=!0;var $Ba=_.n(function(q){var N=q.data;var b=function(F,R){return F===R},y=function(){var F=N();
F=_.v(F==null?void 0:F.badgesShelf,HgR);return F!==void 0&&F!==null?F:{previousButton:{},nextButton:{}}},J=_.cK("div"),E=function(){var F=J.value;
if(F){var R=F.parentElement;if(R){F=F.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var c=0;c<F.length;++c){var z=F[c];if(z instanceof HTMLElement){R.scrollTo({left:z.offsetLeft+z.clientWidth/2-R.clientWidth/2,behavior:"instant"});break}}}}};
_.WC(function(){var F=J.value;if(F){var R=new ResizeObserver(E);R.observe(F);_.W1(function(){R.disconnect()})}});
return _.u("div",null,_.u(_.t,{cond:function(){return N().badges},
then:function(F){return _.u(dBA,{data:y},_.u("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:J},_.u(_.Tf,{each:function(){return F()}},function(R,c){var z={},m={},r={};
return _.u("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.u(_.t,{cond:function(){return c()>0},
then:function(){return _.u("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.u("div",{class:_.NO("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(z.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return b(c(),N().currentBadgeIndex)},z.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!b(c(),N().currentBadgeIndex)},z))},_.u("div",{class:_.NO("ytdSponsorshipsPerksListLoyaltyBadge",(m.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return b(c(),
N().currentBadgeIndex)},m.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!b(c(),N().currentBadgeIndex)},m))},_.u(_.t,{cond:function(){return R.image},
then:function(X){var V={};return _.u("div",{class:_.NO((V.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return b(c(),N().currentBadgeIndex)},V.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!b(c(),N().currentBadgeIndex)},V))},_.u(_.s_,{data:X,
alt:""}))}})),_.u("div",{class:_.NO("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(r.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return b(c(),N().currentBadgeIndex)},r))},R.title)))})))}}))},"hg");
$Ba.idomCompat=!0;_.P$(tva,"yt-sponsorships-perks-list",{props:{data:_.F5}});_.P$(_.n(function(q){return _.u("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.u(_.t,{cond:function(){return q.data().image},
then:function(N){return _.u(_.s_,{className:"ytwFantasyEmptyStateViewModelImage",data:N,ariaHidden:!0,alt:""})}}),_.u(_.Zc,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return q.data().title}}),_.u(_.Zc,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return q.data().subtitle}}),_.u(_.zS,{data:function(){return q.data().primaryButton}},{buttonViewModel:function(N){return _.u(_.Ou,{data:N.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ig"),"ytw-fantasy-empty-state-view-model",{props:{data:_.F5}});var mBc;var rBp=_.n(function(q){var N=q.data;var b=q.uniqueId;var y=q.overrides;q=_.K3(function(){var J,E=((J=N().timedAnimationData)==null?void 0:J.animationTiming)||[];return{uniqueId:b(),timings:E,experimentEnabled:E.length>0,enabled:E.length>0}},void 0,"hiuXI");
return _.u("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.u(BYv,{settings:q},_.u(_.zS,{data:function(){return N().buttonRenderer}},{buttonRenderer:function(J){return _.u(_.rK,{data:J.data,
buttonOverrides:y})}})))},"jg");
rBp.idomCompat=!0;_.P$(rBp,"timed-animation-button-renderer",{props:{data:_.F5,uniqueId:_.F5,overrides:_.F5}});var OH=function(){var q=_.C.apply(this,arguments)||this;q.hideJoinButtonBeforeSubscribed=_.x("hide_join_button_before_subscribed");q.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return q};
_.Y(OH,_.C);_.g=OH.prototype;_.g.hasShowDialogCommand=function(q){return!!_.v(q,g$M)};
_.g.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"}}}};
_.g.updateJoinButtonOverrides=function(){var q,N;(q=_.ee(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(N=q.polymerController)==null||N.set("overrides",this.joinButtonOverrides);if(q=_.ee(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))q.overrides=this.joinButtonOverrides};
_.g.handleButtonRefreshAction=function(q){if(q=_.v(q,Dtl))this.set("data.membershipButton",q.membershipButton),this.notifyPath("data.membershipButton")};
_.g.onYtServiceRequestError=function(q){_.CT(this.hostElement,q.detail.error.message)};
_.g.onKeydown=function(q){if(q.key==="Enter"){var N;(N=this.data)!=null&&N.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.g.handleUnsubscribeAction=function(){var q,N,b;((q=this.data)==null?void 0:(N=q.membershipButton)==null?void 0:(b=N.buttonRenderer)==null?void 0:b.style)==="STYLE_PRIMARY"&&_.ee(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.$H.Object.defineProperties(OH.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.subscriptionStateEntity)==null||!q.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var q,N=(q=this.data)==null?void 0:q.membershipButton,b;q=(N==null?void 0:N.buttonRenderer)||_.v(N==null?void 0:(b=N.timedAnimationButtonRenderer)==null?void 0:b.buttonRenderer,_.JI);return(q==null?void 0:q.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(q==null?void 0:q.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(q==null?void 0:q.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var q;if(this.hasShowDialogCommand((q=this.data)==null?void 0:q.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var q;if(this.hasShowDialogCommand((q=this.data)==null?void 0:q.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.attributedTitle)}}});
OH.prototype.onYtServiceRequestError=OH.prototype.onYtServiceRequestError;OH.prototype.updateJoinButtonOverrides=OH.prototype.updateJoinButtonOverrides;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],OH.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.H6),_.P("design:type",Object)],OH.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],OH.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.Li),_.P("design:type",Object)],OH.prototype,"ironButtonState",void 0);_.p([_.U(),_.P("design:type",Object)],OH.prototype,"data",void 0);_.p([_.l("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.P("design:type",Object),_.P("design:paramtypes",[])],OH.prototype,"hideJoin",null);
_.p([_.U(),_.P("design:type",String)],OH.prototype,"subscribeKey",void 0);_.p([_.U({selectorArgs:["subscribeKey"],selector:bBn}),_.P("design:type",Object)],OH.prototype,"subscriptionStateEntity",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],OH.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.p([_.l("subscriptionStateEntity"),_.U({reflectToAttribute:!0}),_.P("design:type",Object),_.P("design:paramtypes",[])],OH.prototype,"subscribed",null);
_.p([_.l("subscribed","data.membershipButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],OH.prototype,"joinButtonOverrides",null);_.p([_.l("data.navigationEndpoint"),_.P("design:type",Object),_.P("design:paramtypes",[])],OH.prototype,"channelNameTabIndex",null);_.p([_.l("data.navigationEndpoint"),_.P("design:type",Object),_.P("design:paramtypes",[])],OH.prototype,"channelNameRole",null);
_.p([_.l("data.attributedTitle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],OH.prototype,"hasAttributedTitle",null);_.p([_.FY("joinButtonOverrides"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],OH.prototype,"updateJoinButtonOverrides",null);_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],OH.prototype,"onYtServiceRequestError",null);
_.p([_.I({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],OH);
var XZB=_.oU()(OH,"ytd-video-owner-renderer",function(){if(mBc===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);mBc=q}q=mBc;return q},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.P$(_.n(function(q){var N=q.data;var b;q=_.Z(_.QS(!((b=_.XH("yt-mini-app-is-theater-mode-enabled"))==null||!b),void 0,"i2pjVd"));var y=q.next().value,J=q.next().value;b=_.Z(_.QS(!1,void 0,"ga7V5c"));var E=b.next().value,F=b.next().value;_.WC(function(){var z=_.tn(window,Vuo,function(){F(xO4())});
_.W1(function(){uq(z)})});
var R;b=(R=_.tz().resolve(_.$f(nDC)))!=null?R:function(){return _.u("div",null)};
_.Zm("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){J(!0);_.r5("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.Zm("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){J(!1);_.r5("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
R={};q={};var c={};return _.u("mini-app-play-page-renderer",{class:_.NO("miniAppPlayPageRendererHost",(R.miniAppPlayPageRendererHostDetailsView=function(){return!y()},R))},_.u("div",{class:_.NO("miniAppPlayPageRendererGameContainer",(q.miniAppPlayPageRendererGameContainerDetailsView=function(){return!y()},q))},_.u(_.zS,{data:function(){return N().containerViewModel}},{miniAppContainerViewModel:F7N}),_.u(_.t,{cond:function(){return N().channel&&N().subscribeButton},
then:function(){var z={};return _.u("div",{class:_.NO("miniAppPlayPageRendererChannelContainer",(z.miniAppPlayPageRendererHideVisibility=function(){return E()},z))},_.u(_.zS,{data:function(){return N().channel}},{videoOwnerRenderer:function(m){return _.u(XZB,{data:m.data})}}),_.u(_.zS,{data:function(){return N().subscribeButton}},{subscribeButtonViewModel:function(m){return _.u(_.HX,{data:m.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.u(_.t,{cond:function(){return!y()&&N().description},
then:function(){var z={};return _.u("div",{class:_.NO("miniAppPlayPageRendererMiniAppDescriptionWrapper",(z.miniAppPlayPageRendererHideVisibility=function(){return E()},z))},_.u("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return N().description}))}})),_.u("div",{class:_.NO("miniAppPlayPageRendererPlayNextContainer",(c.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!y()},c.miniAppPlayPageRendererHideVisibility=function(){return E()},c))},_.u(_.zS,{data:function(){return N().sectionList}},
{sectionListRenderer:b})))},"kg"),"mini-app-play-page-renderer",{props:{data:_.F5}});var wG=function(){var q=_.C.apply(this,arguments)||this;q.isSearch=!1;q.isConstrainedList=!1;q.hasChipsBar=!1;q.inReplyPanel=!1;q.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"}};q.monitorScroll=!0;q.SCROLL_ANIMATION_DURATION_MS=300;q.nextContinuation={continuationType:"sectionListContinuation"};return q};
_.Y(wG,_.C);_.g=wG.prototype;
_.g.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(q){switch(q.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:_.x("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.x("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.g.created=function(){var q=this;this.JSC$17291_scrollAnimation=new _.rG(function(N){q.hostElement.scrollTop=N})};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.g.getItemsPath=function(){return"data.contents"};
_.g.replacePrimaryContent=function(q){this.set("data.contents",q)};
_.g.computeHasSortFilter=function(q){return!!q&&!!q.sortFilterSubMenuRenderer};
_.g.computeShouldScrollInPanel=function(q){var N;return!!(q==null?0:(N=q.scrollPaneStyle)==null?0:N.scrollable)};
_.g.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.HP(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.g.scrollToTop=function(){this.hostElement.scrollTop=0};
_.g.scrollToItemSection=function(q){if(q=this.getItemByIdentifier(q))q=this.getScrollPositionForItem(q),this.hostElement.scrollTop!==q&&this.JSC$17291_scrollAnimation.start(this.hostElement.scrollTop,q,this.SCROLL_ANIMATION_DURATION_MS)};
_.g.getItemByIdentifier=function(q){var N=this.contents.querySelectorAll("ytd-item-section-renderer");if(N&&N.length!==0){var b=Array.from(N).findIndex(function(y){return y.sectionIdentifier===q});
return N[b===-1?0:b]}};
_.g.getScrollPositionForItem=function(q){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===q)return 0;q=_.pM(q).y+this.hostElement.scrollTop-_.pM(this.hostElement).y;return Math.min(q,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.$H.Object.defineProperties(wG.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.targetId)==="browse-feedFEclips"}}});
wG.prototype.onScroll=wG.prototype.onScroll;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],wG.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.V1.YtLazyListBehavior),_.P("design:type",Object)],wG.prototype,"ytLazyListBehavior",void 0);_.p([_.O(_.m1.YtNextContinuationBehavior),_.P("design:type",Object)],wG.prototype,"ytNextContinuationBehavior",void 0);
_.p([_.O(_.Jaa),_.P("design:type",Object)],wG.prototype,"ytBooleanLogicBehavior",void 0);_.p([_.O(_.tA),_.P("design:type",Object)],wG.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],wG.prototype,"data",void 0);_.p([_.U({value:2}),_.P("design:type",Number)],wG.prototype,"initialCount",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],wG.prototype,"autoFill",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.P("design:type",Boolean)],wG.prototype,"hasSortFilter",void 0);_.p([_.U({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.P("design:type",Boolean)],wG.prototype,"hideBottomSeparator",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.P("design:type",Boolean)],wG.prototype,"shouldScrollInPanel",void 0);
_.p([_.U(),_.P("design:type",Object)],wG.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],wG.prototype,"isConstrainedList",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],wG.prototype,"responsiveSizing",void 0);_.p([_.U(),_.P("design:type",Object)],wG.prototype,"hasChipsBar",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],wG.prototype,"pageSubtype",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],wG.prototype,"engagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],wG.prototype,"liveChatEngagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],wG.prototype,"inReplyPanel",void 0);_.p([_.dq("#action-button"),_.P("design:type",HTMLElement)],wG.prototype,"actionButton",void 0);_.p([_.U(),_.P("design:type",Object)],wG.prototype,"scrollUpButtonData",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],wG.prototype,"engagementPanelDropdown",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],wG.prototype,"engagementPanelDialog",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],wG.prototype,"isClipList",null);_.p([_.dq("#contents"),_.P("design:type",HTMLElement)],wG.prototype,"monitorScrollElement",void 0);_.p([_.dq("#contents"),_.P("design:type",HTMLElement)],wG.prototype,"contents",void 0);
_.p([_.ZP("scroll"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wG.prototype,"onScroll",null);_.p([_.I({is:"ytd-section-list-renderer",disableElementRegistration:!0})],wG);
var VvU=_.oU()(wG,"ytd-section-list-renderer",function(){if(sJA===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);sJA=q}q=sJA;return q},{mode:1});var jxK;var xBA;var vBa;var Gea;var ih=function(){return _.C.apply(this,arguments)||this};
_.Y(ih,_.C);ih.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
ih.prototype.onLikeButtonClick=function(q){q.stopPropagation();q.preventDefault()};
_.$H.Object.defineProperties(ih.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)!=null&&q.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)})}}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ih.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],ih.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],ih.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ih.prototype,"ytRendererStamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ih.prototype,"data",void 0);
_.p([_.U({selectorArgs:["data.likeStatusEntityKey"],selector:iR}),_.P("design:type",Object)],ih.prototype,"likeStatusEntity",void 0);_.p([_.l("data","likeStatusEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],ih.prototype,"likeButtonRenderer",null);_.p([_.I({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],ih);
_.a(ih,"ytd-slim-metadata-toggle-button-renderer",function(){if(Gea!==void 0)return Gea;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
return Gea=q},{mode:1});var lh=function(){var q=_.C.apply(this,arguments)||this;q.minimizePipBreakages=_.x("web_pip_minimize_breakages");q.showEqualizer=_.x("web_enable_playlist_video_lockup_equalizer");q.watchColorUpdate=_.x("kevlar_watch_color_update");q.actionMap={};return q};
_.Y(lh,_.C);_.g=lh.prototype;_.g.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"}}}};
_.g.computeEditableClass=function(q){return q&&q.menu?"editable":""};
_.g.computeSelected=function(q){return!(q==null||!q.selected)};
_.g.computeUseColorPalette=function(q){return!!((q==null?0:q.lightColorPalette)&&(q==null?0:q.darkColorPalette))};
_.g.computeLargerPlaylistThumbs=function(q,N){return _.x("web_enable_playlist_bigger_thumbnails")&&!N};
_.g.computeMinimizePipBreakages=function(q){return this.minimizePipBreakages&&q};
_.g.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.g.onYtServiceRequestSent=function(q,N){N.endpoint&&this.isHideEnclosingAction(N.endpoint)&&!this.selected&&CNT(_.zV(),this.data.videoId)};
_.g.isHideEnclosingAction=function(q){var N=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",q);q=this.get("likeEndpoint.status",q)==="INDIFFERENT";return N||q};
_.g.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.g.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.$H.Object.defineProperties(lh.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.x("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.x("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 q;return!!(this.withinMiniplayer&&((q=this.data)==null?0:q.actionButtons))}}});
lh.prototype.onYtServiceRequestSent=lh.prototype.onYtServiceRequestSent;lh.prototype.canReorderChanged=lh.prototype.canReorderChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],lh.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],lh.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],lh.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.Fi),_.P("design:type",Object)],lh.prototype,"ytdLockupBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],lh.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],lh.prototype,"withinMiniplayer",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],lh.prototype,"minimizePipBreakages",void 0);_.p([_.U({computed:"computeSelected(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],lh.prototype,"selected",void 0);
_.p([_.U({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],lh.prototype,"useColorPalette",void 0);_.p([_.U({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.P("design:type",Boolean)],lh.prototype,"largerPlaylistThumbs",void 0);_.p([_.U(),_.P("design:type",Object)],lh.prototype,"showEqualizer",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],lh.prototype,"canReorder",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],lh.prototype,"touchPersistentDragHandle",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],lh.prototype,"handleIsHovered",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],lh.prototype,"watchColorUpdate",void 0);_.p([_.U(),_.P("design:type",String),_.P("design:paramtypes",[])],lh.prototype,"reorderIcon",null);
_.p([_.U(),_.P("design:type",String),_.P("design:paramtypes",[])],lh.prototype,"playIcon",null);_.p([_.l("largerPlaylistThumbs"),_.P("design:type",Number),_.P("design:paramtypes",[])],lh.prototype,"thumbnailWidth",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],lh.prototype,"showActionButtons",null);_.p([_.$9("canReorder"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lh.prototype,"canReorderChanged",null);
_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],lh.prototype,"onYtServiceRequestSent",null);_.p([_.I({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],lh);
_.a(lh,"ytd-playlist-panel-video-renderer",function(){if(vBa!==void 0)return vBa;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return vBa=q},{mode:2});var K$=function(){return _.C.apply(this,arguments)||this};
_.Y(K$,_.C);K$.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],K$.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],K$.prototype,"data",void 0);_.p([_.I({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],K$);
_.a(K$,"ytd-playlist-panel-supported-items",function(){if(xBA!==void 0)return xBA;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return xBA=
q},{mode:1});GSx=!0;Fwj("\\P{N}");var din;var YhN=_.FE("END_OF_PLAYLIST",void 0,"End of playlist"),Qxx=_.FE("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Dw=function(){var q=_.C.apply(this,arguments)||this;q.minimizePipBreakages=_.x("web_pip_minimize_breakages");q.hideHeaderText=!1;q.useColorPalette=!1;q.collapsed=!1;q.collapsedPreServerOverride="not_tracked";q.isHovered=!1;q.expandLabel=_.FE("MINIPLAYER_EXPAND_LABEL");q.collapseLabel=_.FE("MINIPLAYER_COLLAPSE_LABEL");q.isFloating=!1;q.metaPanel=
!1;q.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};q.currentIndex=void 0;return q};
_.Y(Dw,_.C);_.g=Dw.prototype;
_.g.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"}}}};
_.g.created=function(){var q=this;this.scrollThrottle=new _.El(this.onThrottledScroll,1E3,this);this.JSC$17313_ytReorderableController=new _.dS1(56,function(N){q.handleDrop(N)})};
_.g.onMouseEnter=function(){this.isHovered=!0};
_.g.onMouseLeave=function(){this.isHovered=!1};
_.g.computeOverflowMenuData=function(q){return q&&q.menu?q.menu:null};
_.g.computeCollapsible=function(q){return!q};
_.g.computeHasPlaylistButtons=function(q){return!(!q||!q.playlistButtons)};
_.g.computeHasSeparateSaveButton=function(q){return!(!q||!q.saveButton)};
_.g.computeHasToolbarButton=function(q,N){return!(!q||!(N||q.saveButton||q.menu))};
_.g.computePlaylistType=function(q){if(q&&q.playlistId)return q.playlistId.substring(0,4)};
_.g.computeCanReorder=function(q){return q?q.playlistId&&q.playlistId.startsWith("TLPQ")?!0:!!q.isEditable&&!q.isInfinite:!1};
_.g.attached=function(){var q=this;try{_.tz().resolve(_.F2).setPlaylistComponent(this.hostElement)}catch(N){if(_.x("kevlar_park_on_playlist_token_killswitch"))throw N;_.dw().parkOrScheduleJob(function(){_.tz().resolve(_.F2).setPlaylistComponent(q.hostElement)},2,"ci")}_.o$(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.g.detached=function(){_.A8(this.hostElement);_.IQ(this.JSC$17313_ytReorderableController)};
_.g.computeTrailingIcon=function(q,N,b){return b?N?"yt-icons:collapse":"yt-icons:close":N?"yt-icons:expand":_.x("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.g.computeIndexMessage=function(q,N){return z5D(q+1)+" / "+z5D(N)};
_.g.onRenderStamperFinished=function(){if(this.scrollForStampDom){var q=!0;this.isHovered&&(q=!1);if(this.collapsed||this.hidden)q=!1;q&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.g.collapseChanged=function(){var q=this;this.collapsed||(_.ZQ(this.ytTaskEmitterBehavior.getTaskManager(),function(){q.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.g.hiddenChanged=function(){var q=this;this.hidden||_.ZQ(this.ytTaskEmitterBehavior.getTaskManager(),function(){q.scrollToCurrentVideo()})};
_.g.setupReordering=function(){var q=_.ee(this.hostElement).querySelector("#items");s1x?_.cRo(this.JSC$17313_ytReorderableController,q,q,"playlist-drag-handle"):_.cRo(this.JSC$17313_ytReorderableController,q,q)};
_.g.scrollToCurrentVideo=function(){var q=this;_.pY.addJob(function(){var N=_.ee(q.hostElement).querySelector("#items");if(N){N.style.setProperty("padding-bottom","");var b=_.ee(q.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(b){N=b.parentElement||_.w1(document);var y=N||_.w1(document);var J=_.pM(b),E=_.pM(y),F=_.AbM(y);if(y==_.w1(document)){var R=J.x-y.scrollLeft;J=J.y-y.scrollTop}else R=J.x-E.x-F.left,J=J.y-E.y-F.top;b=ph1(b);E=y.clientHeight-
b.height;F=y.scrollLeft;var c=y.scrollTop;F+=R-(y.clientWidth-b.width)/2;y=new _.Sc(F,c+(J-E/2));N.scrollLeft=y.x;N.scrollTop=y.y}}},8)};
_.g.dataChanged=function(){var q=this;_.IQ(this.JSC$17313_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.ut(this,function(){_.Ip(q.ytTaskEmitterBehavior.getTaskManager(),function(){q.ytRendererBehavior.markDirty();q.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.g.onFullBleedPlayerChanged=function(){_.x("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.g.onFullscreenChanged=function(){_.x("web_watch_imax_theater_mode")||_.x("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.g.updateNowPlayingOverlay=function(){_.x("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.g.onPlaylistLockupNowPlaying=function(q,N){N&&(this.activeNowPlayingRenderer=N);this.updateNowPlayingOverlay()};
_.g.onScroll=function(){this.scrollThrottle.fire()};
_.g.onThrottledScroll=function(){var q=this;_.Ip(this.ytTaskEmitterBehavior.getTaskManager(),function(){q.ytRendererBehavior.markDirty()})};
_.g.onToggleExpanded=function(q){!this.collapsible||q&&(_.a0(q).tagName==="A"||_.Su(_.n9(q),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.g.setCollapsed=function(q){this.collapsible&&(this.collapsed=q,_.Hy(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.g.handleCollapsedFromData=function(q){if(q){var N=q.playlistPanelCollapseState;N==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||N==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),N=N==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==N&&this.setCollapsed(N)):this.currentPlaylistId!==q.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(N=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==N&&this.setCollapsed(N),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=q.playlistId}};
_.g.handleDrop=function(q){var N=q.currDragItem;q=N.data.playlistSetVideoId;var b=_.Tz(N.parentNode.childNodes,N),y=void 0;b>0&&(y=N.parentNode.childNodes[b-1].data.playlistSetVideoId);N=_.zV();if(N.responsePlaylistData&&N.responsePlaylistData.contents){var J=eHd(q,N.responsePlaylistData);N.responsePlaylistData=(0,_.nM.unsafeClone)(N.responsePlaylistData);TAR(N.responsePlaylistData.contents,J,b);N.queueProxy?uXo(N.queueProxy,J,b,q,y):N.playlistProxy&&uXo(N.playlistProxy,J,b,q,y);_.$6(N,_.t2(N,N.response?
N.response.autoplayRenderer:void 0))}};
_.g.handleDarkModeChange=function(q){q!==this.isDarkTheme&&(this.isDarkTheme=q)};
_.g.colorPaletteChanged=function(){var q,N=((q=this.data)==null?void 0:q.contents)||[],b;q=_.Z(N);for(N=q.next();!N.done;N=q.next()){N=N.value;var y=void 0;if((y=N.playlistPanelVideoRenderer)==null?0:y.selected){q=N.playlistPanelVideoRenderer;y=N=void 0;(b=this.isDarkTheme?(N=q)==null?void 0:N.darkColorPalette:(y=q)==null?void 0:y.lightColorPalette)&&_.V0(this.hostElement,b);break}}this.useColorPalette=!!b};
_.$H.Object.defineProperties(Dw.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.moveThreeDotsMenuToMainHeader)&&_.x("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var q=_.tz().resolve(_.$f(_.F2)),N;if(((N=this.data)==null?0:N.contents)&&(q==null?0:q.hasAutoplayData())){var b;if(((b=this.playlistLoopStateEntity)==null?void 0:b.state)==="PLAYLIST_LOOP_STATE_ONE"){if(q=this.data.currentIndex,q!==void 0){var y,J;var E=(y=this.data.contents[q])==null?void 0:(J=y.playlistPanelVideoRenderer)==null?void 0:J.title}}else{var F,R=(F=_.v(q.getAutoplayEndpoint(),_.nx))==null?void 0:F.videoId,c,z;E=(c=this.data.contents.find(function(m){var r;
return((r=m.playlistPanelVideoRenderer)==null?void 0:r.videoId)===R}))==null?void 0:(z=c.playlistPanelVideoRenderer)==null?void 0:z.title}return E}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)!=null&&q.nextVideoLabel?this.nextVideoTitle?_.ao(this.data.nextVideoLabel)+":":YhN:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var q;if(((q=this.data)==null?0:q.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.x("web_mix_long_byline_from_data"))return _.nD(Qxx);var N;return(N=this.data)==null?void 0:N.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var q,N,b,y=(q=this.data)==null?void 0:(N=q.playlistButtons)==null?void 0:(b=N.menuRenderer)==null?void 0:b.topLevelButtons;if(y)for(q=_.Z(y),N=q.next();!N.done;N=q.next())if(N=N.value,N.playlistLoopButtonRenderer)return N.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var q;return!!(this.collapsed&&((q=this.data)==null?0:q.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.x("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
Dw.prototype.colorPaletteChanged=Dw.prototype.colorPaletteChanged;Dw.prototype.onPlaylistLockupNowPlaying=Dw.prototype.onPlaylistLockupNowPlaying;Dw.prototype.updateNowPlayingOverlay=Dw.prototype.updateNowPlayingOverlay;Dw.prototype.onFullscreenChanged=Dw.prototype.onFullscreenChanged;Dw.prototype.onFullBleedPlayerChanged=Dw.prototype.onFullBleedPlayerChanged;Dw.prototype.dataChanged=Dw.prototype.dataChanged;Dw.prototype.hiddenChanged=Dw.prototype.hiddenChanged;Dw.prototype.collapseChanged=Dw.prototype.collapseChanged;
Dw.prototype.onRenderStamperFinished=Dw.prototype.onRenderStamperFinished;Dw.prototype.onMouseLeave=Dw.prototype.onMouseLeave;Dw.prototype.onMouseEnter=Dw.prototype.onMouseEnter;_.p([_.O(_.SQ),_.P("design:type",Object)],Dw.prototype,"ironResizableBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Dw.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Dw.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(Cb1.YtPlaylistPanelBehavior),_.P("design:type",Object)],Dw.prototype,"ytPlaylistPanelBehavior",void 0);_.p([_.O(_.zE.YtTaskEmitterBehavior),_.P("design:type",Object)],Dw.prototype,"ytTaskEmitterBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Dw.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],Dw.prototype,"ytdReduxBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Dw.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Dw.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Dw.prototype,"autoplayData",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Dw.prototype,"withinMiniplayer",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Dw.prototype,"minimizePipBreakages",void 0);
_.p([_.U({computed:"setMenuData_(data)"}),_.P("design:type",Object)],Dw.prototype,"menuRendererData",void 0);_.p([_.U({computed:"computeOverflowMenuData(data)"}),_.P("design:type",Object)],Dw.prototype,"overflowMenuDataTopRow",void 0);_.p([_.U({computed:"computeOverflowMenuData(data)"}),_.P("design:type",Object)],Dw.prototype,"overflowMenuData",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Dw.prototype,"hideHeaderText",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Dw.prototype,"useColorPalette",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.P("design:type",Boolean)],Dw.prototype,"collapsible",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Dw.prototype,"collapsed",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Dw.prototype,"hidden",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.P("design:type",Boolean)],Dw.prototype,"hasPlaylistButtons",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.P("design:type",Boolean)],Dw.prototype,"hasSeparateSaveButton",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.P("design:type",Boolean)],Dw.prototype,"hasToolbar",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.P("design:type",String)],Dw.prototype,"playlistType",void 0);_.p([_.U(),_.P("design:type",Object)],Dw.prototype,"isHovered",void 0);_.p([_.U({selectorArgs:["playlistLoopStateEntityKey"],selector:_.WQ.playlistLoopStateEntitySelector}),_.P("design:type",Object)],Dw.prototype,"playlistLoopStateEntity",void 0);_.p([_.U({computed:"computeCanReorder(data)"}),_.P("design:type",Boolean)],Dw.prototype,"canReorder",void 0);
_.p([_.U(),_.P("design:type",Object)],Dw.prototype,"expandLabel",void 0);_.p([_.U(),_.P("design:type",Object)],Dw.prototype,"collapseLabel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Dw.prototype,"isFloating",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Dw.prototype,"metaPanel",void 0);_.p([_.U({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.P("design:type",String)],Dw.prototype,"trailingIcon",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Dw.prototype,"isDarkTheme",void 0);_.p([_.U({selector:_.QU}),_.P("design:type",Boolean)],Dw.prototype,"miniplayerIsActive",void 0);_.p([_.U({selector:function(q){return q.watch.playerState}}),
_.P("design:type",Number)],Dw.prototype,"playerState",void 0);_.p([_.U({selector:_.Ol}),_.P("design:type",Boolean)],Dw.prototype,"isFullscreen",void 0);_.p([_.U({selector:_.Q0}),_.P("design:type",Boolean)],Dw.prototype,"isTheaterMode",void 0);_.p([_.U(),_.P("design:type",Object)],Dw.prototype,"activeNowPlayingRenderer",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Dw.prototype,"moveThreeDotMenuToTopRow",null);
_.p([_.l("data","autoplayData","playlistLoopStateEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],Dw.prototype,"nextVideoTitle",null);_.p([_.l("data","nextVideoTitle"),_.P("design:type",String),_.P("design:paramtypes",[])],Dw.prototype,"nextVideoLabel",null);_.p([_.l("collapsed"),_.P("design:type",String),_.P("design:paramtypes",[])],Dw.prototype,"buttonAriaLabel",null);
_.p([_.l("data","playlistId","longBylineText"),_.P("design:type",Object),_.P("design:paramtypes",[])],Dw.prototype,"mixLongByLine",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Dw.prototype,"playlistLoopStateEntityKey",null);_.p([_.ZP("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dw.prototype,"onMouseEnter",null);
_.p([_.ZP("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dw.prototype,"onMouseLeave",null);_.p([_.U({reflectToAttribute:!0}),_.l("data","collapsed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Dw.prototype,"showNextVideoHeader",null);_.p([_.ZP("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dw.prototype,"onRenderStamperFinished",null);
_.p([_.FY("collapsed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dw.prototype,"collapseChanged",null);_.p([_.FY("hidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dw.prototype,"hiddenChanged",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dw.prototype,"dataChanged",null);
_.p([_.l("isTheaterMode","isFullscreen"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Dw.prototype,"isFullBleedPlayer",null);_.p([_.FY("isTheaterMode","isFullscreen"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dw.prototype,"onFullBleedPlayerChanged",null);_.p([_.FY("isFullscreen"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dw.prototype,"onFullscreenChanged",null);
_.p([_.FY("playerState","miniplayerIsActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dw.prototype,"updateNowPlayingOverlay",null);_.p([_.ZP("yt-playlist-lockup-now-playing-active"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],Dw.prototype,"onPlaylistLockupNowPlaying",null);
_.p([_.FY("data","isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dw.prototype,"colorPaletteChanged",null);_.p([_.I({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Dw);
_.Occ=_.oU()(Dw,"ytd-playlist-panel-renderer",function(){if(jxK===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);jxK=q}q=jxK;return q},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var wZf;var hU=function(){return _.C.apply(this,arguments)||this};
_.Y(hU,_.C);hU.prototype.computeShouldButtonBeVertical=function(q,N){return q||N};
hU.prototype.onYtServiceRequestSent=function(q,N){(q=_.v(N.endpoint,_.lk))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.$e("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:q.status})):this.handleLikeEndpoint(q))};
hU.prototype.computelikeStatusEntityKey=function(q){return q==null?void 0:q.likeStatusEntityKey};
hU.prototype.handleLikeEndpoint=function(q){q.status==="LIKE"?this.JSC$17319_ytdDislikeToggleButtonRenderer.toggle(!1):q.status==="DISLIKE"?this.JSC$17319_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17319_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17319_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.$H.Object.defineProperties(hU.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var q;return miR(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(q=this.likeStatusEntity)==null?void 0:q.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var q;if(this.data&&((q=this.data)==null||!q.hideDislikeButton)){var N;return miR(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(N=this.likeStatusEntity)==null?void 0:N.likeStatus)}}}});
hU.prototype.onYtServiceRequestSent=hU.prototype.onYtServiceRequestSent;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],hU.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],hU.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],hU.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],hU.prototype,"vertical",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],hU.prototype,"textTransform",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],hU.prototype,"useShortsIcon",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],hU.prototype,"underIconLabel",void 0);_.p([_.U({value:"left"}),_.P("design:type",String)],hU.prototype,"buttonTooltipPosition",void 0);_.p([_.U(),_.P("design:type",Object)],hU.prototype,"overrides",void 0);
_.p([_.dq("#like-button"),_.P("design:type",Object)],hU.prototype,"JSC$17319_ytdLikeToggleButtonRenderer",void 0);_.p([_.dq("#dislike-button"),_.P("design:type",Object)],hU.prototype,"JSC$17319_ytdDislikeToggleButtonRenderer",void 0);_.p([_.l("data","likeStatusEntity.likeStatus","useShortsIcon"),_.P("design:type",Object),_.P("design:paramtypes",[])],hU.prototype,"likeButton",null);
_.p([_.l("data","likeStatusEntity.likeStatus","useShortsIcon"),_.P("design:type",Object),_.P("design:paramtypes",[])],hU.prototype,"dislikeButton",null);_.p([_.U({computed:"computelikeStatusEntityKey(data)"}),_.P("design:type",String)],hU.prototype,"likeStatusEntityKey",void 0);_.p([_.U({selectorArgs:["likeStatusEntityKey"],selector:iR}),_.P("design:type",Object)],hU.prototype,"likeStatusEntity",void 0);
_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],hU.prototype,"onYtServiceRequestSent",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],hU);
var icp=_.oU()(hU,"ytd-like-button-renderer",function(){if(wZf===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);wZf=q}q=wZf;return q},{mode:1});_.llp={};
_.llp.YtConditionalRendererBehavior=[_.e.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(q,N){var b=this,y,J;return _.d(function(E){switch(E.nextAddress){case 1:if(!N)return b.hidden=!0,b.showSpinner=!1,E.return();if((y=q)==null?0:(J=y.visibilityCondition)==null?0:J.mode)switch(q.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return E.jumpTo(5);default:return E.jumpTo(6)}b.showSpinner=
!1;b.hidden=!0;return E.yield(b.shouldShow_(q),4);case 4:b.hidden=!E.yieldResult;E.jumpTo(0);break;case 5:return E.yield(b.shouldShow_(q),8);case 8:b.showSpinner=E.yieldResult;b.hidden=!1;E.jumpTo(0);break;case 6:return b.showSpinner=!1,E.yield(b.shouldShow_(q),9);case 9:b.hidden=!E.yieldResult,_.hj(E)}})},
shouldShow_:function(q){return q&&q.supportedDatas&&q.supportedDatas.rendererVisibilityConditionData&&q.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(q.supportedDatas.rendererVisibilityConditionData.showIf):q&&q.visibilityCondition&&q.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(q.visibilityCondition.showIf):q&&q.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(q.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(q){switch(q){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(q){switch(q){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var q=_.By(this.hostElement,"yt-get-mdx-status");return q.length==1&&q[0].connected},
isLocationPermissionGranted_:function(){var q;return _.d(function(N){return N.nextAddress==1?navigator.permissions?N.yield(navigator.permissions.query({name:"geolocation"}),3):N.jumpTo(2):N.nextAddress!=2?(q=N.yieldResult,N.return(Promise.resolve(q.state==="granted"))):N.return(Promise.resolve(!1))})}}];var K7N=Smu("yt-icon",{callbackProps:["onKeydown"]}),DBN=_.x("kevlar_use_wil_icons")?_.n(function(q){var N=q.icon;var b=q.active;var y=q.className;var J=q.style;var E=q.title;var F=q.size;var R=q.dataSelected;var c=q.dataDisabled;var z=q.role;var m=q.themeOverride;var r=q.animateIcon;var X=q.ariaHidden;var V=q.ariaExpanded;var G=q.ariaLabel;var w=q.tabindex;var D=q.id;var k=q.iconFilter;var f=q.gradientColor;var L=q.onKeydown;var S=function(){var qe=N==null?void 0:N(),RJ=null,tZ=void 0;qe&&(qe=uUv(qe),
qe=XLd(qe),qe.length&&(RJ=qe[1],tZ=qe[0]));return{iconName:RJ,iconSetName:tZ}},W=function(){return zAE(S().iconName,b==null?void 0:b(),void 0,F==null?void 0:F(),S().iconSetName,_.tz().resolve(_.No))},M=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:k==null?void 0:k(),iconColor:f==null?void 0:f()}};
return _.u(_.t,{cond:r,then:function(){return _.u(K7N,{icon:N,active:b,className:y,style:J,title:E,dataSelected:R,dataDisabled:c,role:z,themeOverride:m,ariaHidden:X,ariaExpanded:V,ariaLabel:G,tabindex:w,id:D,iconFilter:k,gradientColor:f,onKeydown:L})},
else:function(){return _.u(_.t,{cond:W,then:function(qe){return _.u("span",{class:_.NO("ytIconWrapperHost",y),role:z,"aria-label":G,"aria-hidden":X,tabindex:function(){return isNaN(Number(w==null?void 0:w()))?void 0:Number(w==null?void 0:w())},
id:D,style:J,title:E,"on:keydown":_.y0(function(RJ){return void(L==null?void 0:L(RJ))})},_.u(_.XQ,{data:qe,
options:M}))}})}})},"lg"):K7N;var h_B=function(q){var N=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];X$D();_.zn("ytglobal.ytUtilActivityCallback_",function(){_.Hy(q,"yt-user-activity")});
new z6(function(){return N.JSC$17336_onMouseMove});
document.addEventListener("scroll",function(){return N.onScroll});
window.addEventListener("resize",function(){return N.onResize})},keB=function(q,N,b){N in q.eventJobIds||(b=_.ja().addLowPriorityJob(function(){_.$y();
delete q.eventJobIds[N]},b),q.eventJobIds[N]=b)};
h_B.prototype.onScroll=function(q){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):q.target===document&&keB(this,"scroll",200)};
h_B.prototype.onResize=function(){keB(this,"resize",200)};
h_B.prototype.JSC$17336_onMouseMove=function(){keB(this,"mousemove",100)};
_.r2=function(q){q.scrollEventsToIgnore+=1;q.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){q.scrollEventsToIgnore--},500))};var UBc=function(q){this.element=q;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
UBc.prototype.showFeedbackDialog=function(q,N,b,y){var J=flC();if(!J)return!1;var E=w5d();E.productId=J;N&&(E.flow="submit",E.report={description:N});b&&(flC()==="59"?E.callback=_.qg(function(){_.W_("userFeedbackEvent",{});b()}):E.callback=_.qg(b));
E.bucket=y||_.M7("GOOGLE_FEEDBACK_BUCKET","Other");CXA(E);q=IlC(this,"GFEEDBACK",q);try{_.VRF(E,q)}catch(F){return _.HC(F),!1}return!0};
UBc.prototype.showHelpDialog=function(q,N,b){var y=this,J=flC();if(!J)return!1;var E={helpCenterPath:"/youtube",productData:IlC(this,"GUIDED_HELP",b)};CXA(E);var F=w5d();F.context=q||E.productData.context||"default";F.defaultHelpArticleId=N;F.enableSendFeedback=!0;(_.Ng("gapi.load")||function(R,c){return c()})("client",function(){try{var R=Yaj(J,E);
if(_.x("web_always_load_chat_support")&&!y.chatSupportLoaded)try{R.JSC$10056_loadChatSupport(F),y.chatSupportLoaded=!0}catch(c){}R.startHelp(F)}catch(c){_.HC(c)}})};
var flC=function(){var q=_.M7("GOOGLE_FEEDBACK_PRODUCT_ID");q||_.HC(Error("gi"));return q},CXA=function(q){q&&(q.locale=_.x("kevlar_help_use_locale")?_.M7("INNERTUBE_CONTEXT_HL","en"):_.M7("HTML_LANG","en"))},IlC=function(q,N,b){var y=q.productData;
delete y.origin;y.device=_.Vh();var J;a:{if(J=document.createElement("canvas")){var E=J.getContext("experimental-webgl",{stencil:!0});if(E){var F=E.getExtension("WEBGL_debug_renderer_info");if(F){J=E.getParameter(F.UNMASKED_RENDERER_WEBGL);break a}}if(E=J.getContext("webgl")){J=E.getParameter(E.RENDERER);break a}}J=null}y.gpu=J;y.isSDC=!!_.M7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(J=_.M7("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.nM.extend(y,J);_.QvZ(N,y);_.OsZ(y);(q=_.Hy(q.element,"yt-get-autonav-pause-debug-state"))&&
q.length&&(y.autonav_pause_state=q[0]);q=_.KM();y.browser_resolution=q.width+"\u00d7"+q.height+"@"+(window.devicePixelRatio||1)+"x";b&&_.nM.extend(y,b);return y};
UBc.prototype.resetProductData=function(){this.productData={}};var TsU=function(q){this.feedbackManager=new UBc(q)};
TsU.prototype.showFeedbackDialog=function(q,N,b,y){return this.feedbackManager.showFeedbackDialog(q,N,b,y)};
TsU.prototype.showHelpDialog=function(q,N,b){return this.feedbackManager.showHelpDialog(q,N,b)};var sxp=function(){this.baseUrl="";this.aTag=document.createElement("a")},LLE=function(q,N,b){b=b===void 0?{}:b;
b.pbj||(b.pbj=1);b=_.NjC(N,b);q.baseUrl&&b&&!_.RO(b)[1]&&!_.dO(b)&&(N=q.baseUrl,ZR(N,"/")&&(N=N.slice(0,-1)),_.gA(b,"/")&&(b=b.slice(1)),b=N+"/"+b);AB(q.aTag,_.ax(b||""));return q.aTag.href};
sxp.prototype.fetchData=function(q){return _.Vhn(q)};
sxp.prototype.postData=function(q,N){var b={method:"POST"};if(N){for(var y=_.Z(Object.keys(N)),J=y.next();!J.done;J=y.next()){J=J.value;var E=N[J];_.AZ(E)&&(N[J]=JSON.stringify(E))}b.postParams=N}return _.Vhn(q,b)};
_.puF=function(q,N,b,y,J){q=LLE(q,N,b);if(!q)throw y=Error("hi"),Object.assign(y,{params:N}),y;return _.Vhn(q,J,y)};
sxp.prototype.requestDataForServiceEndpoint=function(q,N){if(_.v(q,_.YWJ))return this.fetchData("/getAccountSwitcherEndpoint");N=N||{};var b=_.v(q,w61);b?N.se=b.base64EncodedServiceEndpoint:N.sej=JSON.stringify(q);(b=_.Oe())&&_.x("enable_service_ajax_csn")&&(N.csn=b);N.theme=_.D4();_.v(q,vmZ)&&_.M7("DELEGATION_CONTEXT")&&(N.delegation_context=JSON.stringify(_.M7("DELEGATION_CONTEXT")));b=null;for(var y in q)if(ZR(y,"Endpoint")||ZR(y,"Command")){b=y;break}if(!b){var J=Error("ii");Object.assign(J,{params:q});
_.BJC(J,"WARNING");return new _.wL(function(F,R){R(J)})}y={name:b};
var E;(b=(E=_.v(q,_.EY))==null?void 0:E.signal)&&(y.signal=b);(E=_.gO(window.location.href))&&E.internalcountrycode&&(y.internalcountrycode=E.internalcountrycode);E="/service_ajax";_.x("debug_forward_web_query_parameters")&&(E=_.$cn(E,window.location.search));E=_.F$(E,y);q.clickTrackingParams&&_.Lx(E,{itct:q.clickTrackingParams});return this.postData(E,N)};_.nBf=new _.Jw("GFEEDBACK_TOKEN");var alB;var ShX;var W7X;var L7a;var k1=function(){var q=_.C.apply(this,arguments)||this;q.compact=!1;q.dismissButtonDisabled=!1;q.shouldRenderReasonAsFormattedString=!_.x("web_player_error_message_reason_as_formatted_string_killswitch");return q};
_.Y(k1,_.C);k1.prototype.computeHasIcon_=function(q){return!!q};
k1.prototype.isSignInIcon_=function(q){return q=="yt-icons:prompted_sign_in"};
k1.prototype.onDismissButtonClick=function(){var q=this,N=this.data.disableOnClick,b,y=(b=this.data.dismissButton)==null?void 0:b.buttonRenderer;N&&!this.dismissButtonDisabled&&y&&setTimeout(function(){q.dismissButtonDisabled=!0},0)};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.llp.YtConditionalRendererBehavior),_.P("design:type",Object)],k1.prototype,"ytConditionalRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],k1.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.icon)"}),_.P("design:type",Object)],k1.prototype,"icon_",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.P("design:type",Boolean)],k1.prototype,"hasIcon_",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.P("design:type",Boolean)],k1.prototype,"signInIcon_",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],k1.prototype,"compact",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],k1.prototype,"dismissButtonDisabled",void 0);
_.p([_.U({type:Boolean}),_.P("design:type",Object)],k1.prototype,"shouldRenderReasonAsFormattedString",void 0);_.p([_.Ok({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],k1);
_.a(k1,"yt-player-error-message-renderer",function(){if(L7a===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;W7X===void 0&&(W7X=document.createElement("template"));var y=W7X;b.call(N,y.content.cloneNode(!0),q.content.firstChild);L7a=q}q=L7a;return q},{mode:2});var pZf;var PXf;var UH=function(){return _.C.apply(this,arguments)||this};
_.Y(UH,_.C);UH.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
UH.prototype.computeIcon_=function(q){return q?"yt-icons:"+q.iconType.toLowerCase():"error_outline"};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],UH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],UH.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.icon)"}),_.P("design:type",Object)],UH.prototype,"icon_",void 0);_.p([_.Ok({is:"yt-player-kav-renderer",disableElementRegistration:!0})],UH);
_.a(UH,"yt-player-kav-renderer",function(){if(PXf===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;pZf===void 0&&(pZf=document.createElement("template"));var y=pZf;b.call(N,y.content.cloneNode(!0),q.content.firstChild);PXf=q}q=PXf;return q},{mode:2});var KkZ=_.Tt(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.P$(_.n(function(q){var N=_.dI("div"),b=_.Z(_.QS(0,void 0,"jxh75d")),y=b.next().value,J=b.next().value;b=_.Z(_.QS(null,void 0,"F5Zm8"));var E=b.next().value,F=b.next().value;_.WC(function(){Din(N.value,J,F);N.value.scrollIntoView()});
b=h5h.bind(null,q.data,y);_.$F("resize",function(){var R=E();if(y()===1&&R!==null){var c;(c=window.grecaptcha)==null||c.reset(R)}});
return _.u("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.u("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.u("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var R,c;return(R=q.data().accessibility)==null?void 0:(c=R.accessibilityData)==null?void 0:c.label}),_.u(_.Zc,{text:b,
className:_.NO("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.u("div",{el:N,class:"ytwPlayerCaptchaViewModelGridItem"})))},"mg"),"yt-player-captcha-view-model",{props:{data:_.W$}});var kUZ=!1;_.MvK=_.n(function(q){var N=q.data;return _.u("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.u(_.t,{cond:function(){return N().icon},
then:function(b){return _.u("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.u(_.s_,{data:b,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.u(_.t,{cond:function(){return N().title},
then:function(b){return _.u("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.u(_.Zc,{text:b}))}}),_.u(_.t,{cond:function(){return N().description},
then:function(b){return _.u("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.u(_.Zc,{text:b}))}}),_.u(_.zS,{data:function(){return N().primaryButton}},{buttonViewModel:function(b){return _.u(_.Ou,{data:b.data,
className:"interstitialViewModelFlexItem"})}}),_.u(_.zS,{data:function(){return N().secondaryButton}},{buttonViewModel:function(b){return _.u(_.Ou,{data:b.data,
className:"interstitialViewModelFlexItem"})}}))},"ng");
_.MvK.idomCompat=!0;var oBp=_.n(function(q){var N=q.data;_.kA();return _.u("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.u("div",{class:"playerInterstitialRendererScrim"},_.u(_.zS,{data:function(){return N().content}},{interstitialViewModel:_.MvK})))},"og");
oBp.idomCompat=!0;_.P$(oBp,"yt-player-interstitial-renderer",{props:{data:_.F5}});var f$=function(){var q=_.C.apply(this,arguments)||this;q.noBackground=!1;q.compact=!1;q.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return q};
_.Y(f$,_.C);f$.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"}}}};
f$.prototype.onUpdatePlayerErrorMessageCommand_=function(q){if(_.v(q,nYl)){var N;if(q=(N=_.v(q,nYl))==null?void 0:N.newPlayerErrorMessageRenderer)this.data=q}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],f$.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],f$.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],f$.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],f$.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],f$.prototype,"status",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],f$.prototype,"noBackground",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],f$.prototype,"compact",void 0);_.p([_.Ok({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],f$);
var ABc=_.oU()(f$,"yt-playability-error-supported-renderers",function(){if(ShX===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;alB===void 0&&(alB=document.createElement("template"));var y=alB;b.call(N,y.content.cloneNode(!0),q.content.firstChild);ShX=q}q=ShX;return q},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var e_f=Smu("ytd-button-renderer");var UiJ=void 0,CAz=void 0;var svD=new Rwv;var BD=new _.Jw("ENTITY_STATE_TOKEN"),C$=new _.Jw("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var BsU=function(q){this.store=q;this.fTK=new _.ull},kgz=function(q,N,b){var y,J;
if(!(J=((y=N.playabilityStatus)==null?void 0:y.status)!=="OK")){q=q.store;var E;J=N.offlineState&&((E=N.videoDetails)==null?0:E.videoId)?_.x("enable_pl_r_c_cd")?pWu(q.getState().entities,N.videoDetails.videoId):!!V9Z(q.getState().entities,N.videoDetails.videoId):!1}if(J)return!0;J=LkJ(N);if(J===1){if(_.x("ab_v_vid_sig")){var F,R=(F=N.videoDetails)==null?void 0:F.videoId;if(!R||!b||R!==b){var c;N=new _.IO("282054944_vid",{eXR:b,xBi:(c=N.videoDetails)==null?void 0:c.videoId});_.po(N)}}return!0}kQJ=
0;var z,m;c=(R=N.auxiliaryUi)==null?void 0:(z=R.messageRenderers)==null?void 0:(m=z.bkaEnforcementMessageViewModel)==null?void 0:m.displayType;if(J!==3&&(c==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||c==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;c={reason:_.o5(_.FE("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.x("ks_something_wrong_learn_more")?BcR("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.o5(_.FE("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:_.o5("282054944")};HcU(N,{playerErrorMessageRenderer:c});return!1},UpA=function(q,N){if(ebA(N)){_.g5(1,!0);
var b=(b=ebA(N))&&_.fxd()?b:void 0;b?(HcU(N,{enforcementMessageViewModel:b}),q.fTK.increment("IN_PLAYER"),_.g5(5)):(q.fTK.increment("SKIP_DISPLAY"),_.g5(2))}},HcU=function(q,N){q.playabilityStatus=Object.assign({},q.playabilityStatus,{status:"ERROR",
errorScreen:N});q.videoDetails=void 0};
BsU.prototype.handleResponse=function(q,N){if(q.playabilityStatus){var b,y,J,E=(N==null?void 0:(b=N.innerTubeRequest)==null?void 0:b.videoId)||(N==null?void 0:(y=N.innerTubeRequest)==null?void 0:(J=y.playerRequest)==null?void 0:J.videoId);kgz(this,q,E)&&UpA(this,q)}};
BsU[ma]=[BD];var Dpz=new _.Jw("ADBLOCK_DETECTION_SERVICE_TOKEN");var Im=function(q){this.kh6=q};
Im.prototype.bindInnertubeChallengeFetcher=function(q){this.kh6.bicf(q)};
Im.prototype.registerChallengeFetchedCallback=function(q){this.kh6.bcr(q)};
Im.prototype.getLatestChallengeResponse=function(){return this.kh6.blc()};var q5W;q5W=_.Tt(["https://static.doubleclick.net/instream/ad_status.js"]);_.N0K=_.Xe(q5W);var Eid;_.Ij=function(q,N,b){var y=this;this.network=q;this.options=N;this.networkStatusManager=b;this.wL=null;if(N.useBotguardEverywhere){var J=new _.yk;this.wL=J.promise;_.JZ.ytAtRC&&_.rj(_.pY,function(){var E,F;return _.d(function(R){if(R.nextAddress==1){if(!_.JZ.ytAtRC)return R.return();E=b7N(null);return R.yield(y.nT(E),2)}F=R.yieldResult;_.JZ.ytAtRC&&_.JZ.ytAtRC(JSON.stringify(F));_.hj(R)})});
Aud().then(function(E){var F,R,c,z;return _.d(function(m){if(m.nextAddress==1)return E.bindInnertubeChallengeFetcher(function(r){return y.nT(b7N(r))}),m.yield(WTd(),2);
F=m.yieldResult;R=E.getLatestChallengeResponse();c=R.challenge;if(!c)throw Error("ji");z={challenge:c,uR:C0(c),vm:F,bgChallenge:new UA};J.resolve(z);E.registerChallengeFetchedCallback(function(r){r=r.challenge;if(!r)throw Error("ki");r={challenge:r,uR:C0(r),vm:F,bgChallenge:new UA};y.wL=Promise.resolve(r)});
_.hj(m)})})}else N.preload&&yjC(this,new Promise(function(E){_.Ip(_.pY,function(){E(Jja(y))},0)}))};
Eid=function(q){var N={preload:!0,useBotguardEverywhere:!0},b=!1;if(typeof N==="boolean")var y={preload:N};else typeof N==="undefined"?y={preload:!0}:(y=N,b=!!N.sJi);N=b?void 0:new _.Jr;_.Ij.instance=new _.Ij(q,y,N);return _.Ij.instance};
_.Ij.prototype.xoF=function(){var q=this;return _.d(function(N){return N.nextAddress==1?N.yield(Promise.race([q.wL,null]),2):N.return(!!N.yieldResult)})};
_.Ij.prototype.cUS=function(q,N,b){var y=this,J,E,F;return _.d(function(R){y.wL===null&&yjC(y,Jja(y));J=!1;E={};F=function(){var c,z,m;return _.d(function(r){switch(r.nextAddress){case 1:return r.yield(y.wL,2);case 2:c=r.yieldResult;E.challenge=c.challenge;if(!c.vm){"c1a"in c.uR&&(E.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");r.jumpTo(3);break}z=Object.assign({},{c:c.challenge,e:q},N);_.Yi(r,4);J=!0;return r.yield(c.vm.snapshot({hm:z}),6);case 6:(m=r.yieldResult)?E.webResponse=m:E.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.Ea(r,3);break;case 4:_.K7(r),E.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(q==="ENGAGEMENT_TYPE_PLAYBACK"){var X=c.uR,V={};if(X.c6a){var G=Number(_.M7("DCLKSTAT",0));V.reportingStatus=String(Number(X.c)^(isNaN(G)?0:G))}X.c6b&&(V.broadSpectrumDetectionResult=String(Number(X.c)^Number(_.M7("CATSTAT",0))));E.adblockReporting=V}return r.return(E)}})};
return R.return(Promise.race([F(),giU(b,function(){var c=Object.assign({},E);J&&(c.error="ATTESTATION_ERROR_VM_TIMEOUT");return c})]))})};
var b7N=function(q){var N={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};q&&(N.interpreterHash=q);return N},Jja=function(q,N){N=N===void 0?0:N;
var b,y,J,E,F,R,c,z,m,r,X,V;return _.d(function(G){switch(G.nextAddress){case 1:b=b7N(zVv().cVO);if(_.x("att_fet_ks"))return _.Yi(G,7),G.yield(q.nT(b),9);_.Yi(G,4);return G.yield(Z7X(q,b),6);case 6:F=G.yieldResult;J=F.ede;E=F.meQ;y=F;_.Ea(G,3);break;case 4:return _.K7(G),_.M6(Error("li`"+N)),FtA(q,864E5),G.return({challenge:"",uR:{},vm:void 0,bgChallenge:void 0});case 9:y=G.yieldResult;if(!y)throw Error("mi");if(!y.challenge)throw Error("ni");J=y.challenge;E=C0(J);if("c1a"in E&&(!y.bgChallenge||!y.bgChallenge.program))throw Error("oi");
_.Ea(G,3);break;case 7:R=_.K7(G);_.M6(R);N++;if(N>=5)return _.M6(Error("li`"+N)),FtA(q,864E5),G.return({challenge:"",uR:{},vm:void 0,bgChallenge:void 0});c=1E3*Math.pow(2,N-1)+Math.random()*1E3;return G.return(new Promise(function(w){_.Ip(_.pY,function(){w(Jja(q,N))},c)}));
case 3:z=oVD(E);FtA(q,z*1E3);m=void 0;if(!("c1a"in E&&y.bgChallenge)){G.jumpTo(10);break}r=MhJ(y.bgChallenge);_.Yi(G,11);return G.yield(tAl(zVv(),r),13);case 13:_.Ea(G,12);break;case 11:return X=_.K7(G),_.M6(X),G.return({challenge:J,uR:E,vm:m,bgChallenge:r});case 12:return _.Yi(G,14),m=new _.T8({challenge:r,bKo:{eU:"aGIf"}}),G.yield(m.uHX,16);case 16:_.Ea(G,10);break;case 14:V=_.K7(G),_.M6(V),m=void 0;case 10:return G.return({challenge:J,uR:E,vm:m,bgChallenge:r})}})};
_.Ij.prototype.nT=function(q){var N=this,b;return _.d(function(y){b=N.networkStatusManager;if(!b||b.isNetworkAvailable())return y.return(N.network.nT(q));_.wg("att_pna",void 0,"attestation_challenge_fetch");return y.return(new Promise(function(J){b.listenOnce("publicytnetworkstatus-online",function(){N.network.nT(q).then(J)})}))})};
var RXp=function(q){if(!q)throw Error("mi");if(!q.challenge)throw Error("ni");var N=q.challenge,b=C0(N);if("c1a"in b&&(!q.bgChallenge||!q.bgChallenge.program))throw Error("oi");return Object.assign({},q,{ede:N,meQ:b})},Z7X=function(q,N){var b,y,J,E,F;
return _.d(function(R){switch(R.nextAddress){case 1:b=void 0,y=0,J={};case 2:if(!(y<5)){R.jumpTo(4);break}if(!(y>0)){R.jumpTo(5);break}J.lrL=1E3*Math.pow(2,y-1)+Math.random()*1E3;return R.yield(new Promise(function(c){return function(z){_.Ip(_.pY,function(){z(void 0)},c.lrL)}}(J)),5);
case 5:return _.Yi(R,7),R.yield(q.nT(N),9);case 9:return E=R.yieldResult,R.return(RXp(E));case 7:b=F=_.K7(R),F instanceof Error&&_.M6(F);case 8:y++;J={lrL:void 0};R.jumpTo(2);break;case 4:throw b;}})},yjC=function(q,N){q.wL=N},dnK=function(q){var N,b,y;
return _.d(function(J){if(J.nextAddress==1)return J.yield(Promise.race([q.wL,null]),2);N=J.yieldResult;var E=Jja(q);q.wL=E;(b=N)==null||(y=b.vm)==null||y.dispose();_.hj(J)})},FtA=function(q,N){var b=Date.now()+N,y=function(){var J;
return _.d(function(E){J=b-Date.now();return J<1E3?E.yield(dnK(q),0):(_.Ip(_.pY,y,Math.min(J,6E4)),E.jumpTo(0))})};
y()},giU=function(q,N){return new Promise(function(b){_.Ip(_.pY,function(){b(N())},q)})};var cjB=function(){};
cjB.prototype.processContext=function(q){var N=_.Ij.instance;if(!N)return _.tI();var b=bbA(q);return b?new $3(N.cUS(b,Hsd(q),500).then(function(y){var J;(q==null?0:(J=q.innerTubeRequest)==null?0:J.context)||(q.innerTubeRequest.context={});J=q.innerTubeRequest.context;J.request||(J.request={});J.request.attestationResponseData=y})):_.tI()};var uwx=function(q){this.innertubeTransportService=q};
uwx.prototype.nT=function(q){_.wg("att_fsr",void 0,"attestation_challenge_fetch");return _.ZG(this.innertubeTransportService,q,_.LD(_.P1T)).then(function(N){_.wg("att_frr",void 0,"attestation_challenge_fetch");return N})};_.zXA=function(q){this.innertubeTransportService=q};var $nc=new _.Jw("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var tFB=function(){},rjC=function(q,N,b,y,J){var E=_.M7("YPC_MB_URL");
_.nuR(E).then(function(){mnA(E,q,N,b,y,J)})},mnA=function(q,N,b,y,J,E){try{var F=_.WD.payments.business.integration,R=_.WD.payments.business.integration.Style.create().withMaterialDesignStyle(),c=F.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.x("enable_window_constrained_buy_flow_dialog")&&(c=c.usingPopupStyle("windowConstrained"));E&&(c=c.usingCloseCallback(E));var z=b?b:_.M7("YPC_GB_LANGUAGE"),m=_.M7("SESSION_INDEX");F.bootstrap.fromPaymentsUrl(q);F.bootstrap.asMashupMode(c).usingGaiaIndex(m).usingLocale(z).usingStyle(R).usingDefaultActivityStatusChangeHandler().inStandaloneContext(F.standaloneContextAuthId.forGaia()).purchaseManager(N,function(r){y&&y(r)}).load(void 0,J)}catch(r){throw J&&J(r),_.po(r),r;
}};var XxU=new _.Jw("PURCHASE_MANAGER_TOKEN");var VFK=function(){var q=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return q.videos},
getContinuationsPresent:function(){return q.continuationsPresent},
setVideos:function(N){q.videos=N},
getRecommendedVideos:function(){return q.recommendedVideos},
setRecommendedVideos:function(N){q.recommendedVideos=N}}};
VFK.prototype.addVideos=function(q){q&&(this.videos=q.filter(function(N){return!!_.JHA(N)}).map(function(N){var b=_.JHA(N);
a:{var y;if(N.playlistVideoRenderer&&((y=N.playlistVideoRenderer)==null?0:y.voteSortTiebreaker))var J=N.playlistVideoRenderer.voteSortTiebreaker;else{if(_.v(N,sA)){var E;if(y=(J=_.v(N,sA))==null?void 0:(E=J.playlistItemData)==null?void 0:E.voteSortTiebreaker){J=y;break a}}J=""}}return{itemId:b,videoId:_.Zbd(N),voteCount:_.Fru(N),voteSortTiebreaker:J}}),this.continuationsPresent=!!_.v(q[q.length-1],_.SP))};
var j9f=function(q,N){return q.videos.findIndex(function(b){return b.itemId===N})},xnC=function(q,N){return q.recommendedVideos.findIndex(function(b){return b.itemId===N})},vip=function(q){q={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:q}}}}};_.tz().resolve(_.rO).resolveCommand(q)};var GwX=function(){VFK.apply(this,arguments)};
_.Y(GwX,VFK);
var Lej=function(q,N,b,y){if(!q.parentElem)throw Error("ti");var J=j9f(q,N);J===-1&&(J=xnC(q,N),J=J!==-1?J+q.videos.length:-1);if(J===-1)throw Error("ui");var E=J>=q.videos.length?q.recommendedVideos[J-q.videos.length]:q.videos[J];E.voteCount=b;E.voteSortTiebreaker=Date.now().toString();J>=q.videos.length?q.recommendedVideos.splice(J-q.videos.length,1):q.videos.splice(J,1);var F=q.videos;for(var R=0,c=F.length-1;R<=c;){var z=Math.floor((R+c)/2);if(F[z].voteCount<E.voteCount)c=z-1;else if(F[z].voteCount>E.voteCount)R=
z+1;else{a:{var m=E.voteSortTiebreaker;var r=F[z].voteSortTiebreaker;if(m.length!==r.length)m=m.length>r.length;else{for(var X=0;X<m.length;X++){var V=m.charCodeAt(X),G=r.charCodeAt(X);if(V>G){m=!0;break a}if(V<G)break}m=!1}}m?c=z-1:R=z+1}}F=R;if(F===-1)throw Error("vi");q.videos.splice(F,0,E);J!==F&&Y5d(q,J,F,N,b,y)},Y5d=function(q,N,b,y,J,E){var F,R=(F=q.parentElem)==null?void 0:F.children,c=Math.min(N,b),z=Math.max(N,b);
if(R)for(F=c;F<=z;F++)R[F].style.viewTransitionName="item-"+String(F);document.startViewTransition(function(){if(q.parentElem){var m=q.parentElem.children;if(!(!m||N<0||N>=m.length||b<0||b>=m.length)){var r=m[N];if(r){r.remove();q.showRefreshPill=b>=q.videos.length-1&&q.continuationsPresent;if(!q.showRefreshPill){m=m[b]||null;var X;(X=q.parentElem)==null||X.insertBefore(r,m)}_.e2(q.parentElem,"yt-update-video-data-voting-animation",{toIdx:b,itemId:y,newVoteCount:J,voteStatus:E,hideItem:q.showRefreshPill})}}}}).finished.then(function(){if(R)for(var m=
c;m<=z;m++)R[m].style.viewTransitionName="";
if(q.showRefreshPill)vip(_.FE("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var r;if(r=m=(r=q.parentElem)==null?void 0:r.children[b])r=m.getBoundingClientRect(),m=r.bottom,r=!(r.top>=0&&m<=q.clientHeight);r&&(r=_.R5(N>b?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(N-b)),vip(r))}})};var wxd=function(q,N){var b=this;q?this.innertubeTransportServicePromise=Promise.resolve(q):N&&(this.innertubeTransportServicePromise=N(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new x1(3E3,function(y){return Q9c(b,y)},0);
this.validateMiniAppVideoIdRateLimiter=new x1(3E3,function(y){return O7W(b,y)},1)},yBC=function(q,N){q.JSC$17448_miniAppId=N;
q.reportMiniAppValueRateLimiter=new x1(3E3,function(b){return Q9c(q,b)},0);
q.validateMiniAppVideoIdRateLimiter=new x1(3E3,function(b){return O7W(q,b)},1)},EBf=function(q,N){var b;
return _.d(function(y){if(y.nextAddress==1)return y.yield(q.reportMiniAppValueRateLimiter.call(N),2);b=y.yieldResult;return y.return([b,N])})},Q9c=function(q,N){var b,y,J,E,F,R,c;
return _.d(function(z){switch(z.nextAddress){case 1:return z.yield(q.innertubeTransportServicePromise,2);case 2:return b=z.yieldResult,y=_.LD(Huo),J=Date.now(),E={externalPostId:q.JSC$17448_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(J/1E3),nanos:Math.round(J%1E3*1E6)},intValue:""+N}},_.Yi(z,3),z.yield(_.ZG(b,E,y),5);case 5:F=z.yieldResult;_.Ea(z,4);break;case 3:throw R=_.K7(z),R;case 4:if(F){if("error"in F&&F.error)throw F.error;if(F.errorMetadata)throw Error("wi`"+
F.errorMetadata.status);if(c=F.userStatResult)return z.return(c);throw Error("xi");}throw Error("yi");}})},Zcp=function(q){var N,b,y,J,E;
_.d(function(F){switch(F.nextAddress){case 1:return F.yield(q.innertubeTransportServicePromise,2);case 2:return N=F.yieldResult,b=_.LD(Huo),y={externalPostId:q.JSC$17448_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.Yi(F,3),F.yield(_.ZG(N,y,b),5);case 5:J=F.yieldResult;_.Ea(F,4);break;case 3:throw E=_.K7(F),E;case 4:if(J==null)throw Error("yi");if("error"in J&&J.error)throw J.error;if(J.errorMetadata)throw Error("wi`"+J.errorMetadata.status);_.hj(F)}})};
wxd.prototype.flush=function(){var q=this;return _.d(function(N){return N.nextAddress==1?N.yield(q.reportMiniAppValueRateLimiter.flush(),2):N.yield(q.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var gBp=function(q,N){return _.d(function(b){return b.nextAddress==1?b.yield(q.validateMiniAppVideoIdRateLimiter.call(N),2):b.return(b.yieldResult)})},O7W=function(q,N){var b,y,J,E,F,R;
return _.d(function(c){switch(c.nextAddress){case 1:return c.yield(q.innertubeTransportServicePromise,2);case 2:return b=c.yieldResult,y=_.LD(L1o),J={videoId:N},_.Yi(c,3),c.yield(_.ZG(b,J,y),5);case 5:E=c.yieldResult;_.Ea(c,4);break;case 3:throw F=_.K7(c),F;case 4:if(E){if("error"in E&&E.error)throw E.error;if(E.errorMetadata)throw Error("wi`"+E.errorMetadata.status);if(R=E.playabilityStatus)return c.return(R.status);throw Error("zi");}throw Error("yi");}})};
wxd[ma]=[_.$f(_.tN),_.$f(wJT)];var i7f=function(){this.clientData=new Map};
i7f.prototype.getData=function(q){return this.clientData.get(q)};var lbK=function(q){this.store=q};
lbK.prototype.handleResponse=function(q){(q=_.v(q.frameworkUpdates,sl))&&_.Ro(q,this.store)};
lbK[ma]=[_.eU];var KtB=new _.Jw("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var Dnx,hXf;_.T$=new _.Jw("FLOW_STATE_MANAGER_TOKEN");Dnx=function(){this.flowStates=new Map};
hXf=function(q,N){q=_.Z(q.flowStates.values());for(var b=q.next();!b.done;b=q.next())if(b=b.value,b.flowRenderer.targetId===N)return b};var kwf=function(q,N){this.JSC$17473_reduxStore=q;this.JSC$17473_flowStateManager=N};
_.Y(kwf,cf);
kwf.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F,R,c,z,m,r,X,V,G;return _.d(function(w){b=_.v(q,_.Ez4);y=b.stepId;J=b.targetId;E=hXf(N.JSC$17473_flowStateManager,J);R=(F=E)==null?void 0:F.flowRenderer;c=R.flowStateEntityKey;z=_.n0(N.JSC$17473_reduxStore.getState(),c);if(!z)return w.return();m=z.currentStepId;V=(X=(r=z)==null?void 0:r.stepIdStack)!=null?X:[];G=m===V[V.length-1]?y:m;N.JSC$17473_reduxStore.dispatch(_.GK("flowStateEntity",c,{currentStepId:y,stepIdStack:[G]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.hj(w)})};
var UnA=function(){kwf.apply(this,arguments)};
_.Y(UnA,kwf);UnA[ma]=[_.eU,_.T$];var fbf=function(q,N,b){this.JSC$17480_reduxStore=q;this.JSC$17480_flowStateManager=N;this.JSC$17480_commandHandler=b};
_.Y(fbf,cf);
fbf.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R,c,z,m,r,X,V,G,w;return _.d(function(D){y=_.v(q,_.gzJ);J=y.targetId;E=hXf(b.JSC$17480_flowStateManager,J);R=(F=E)==null?void 0:F.flowRenderer;c=R.flowStateEntityKey;z=_.n0(b.JSC$17480_reduxStore.getState(),c);X=[].concat(_.a9((r=(m=z)==null?void 0:m.stepIdStack)!=null?r:[]));V=X.pop();((G=z)==null?void 0:G.currentStepId)===V&&(V=X[X.length-1]);if(!V)return(w=y.onFirstStepCommand)&&b.JSC$17480_commandHandler.resolveCommand(w,N),D.return();
b.JSC$17480_reduxStore.dispatch(_.GK("flowStateEntity",c,{currentStepId:V,stepIdStack:X}));_.hj(D)})};
var C$f=function(){fbf.apply(this,arguments)};
_.Y(C$f,fbf);C$f[ma]=[_.eU,_.T$,_.rO];var IbU=function(q,N){this.innertubeTransportService=q;this.JSC$17485_commandHandler=N};
_.Y(IbU,cf);IbU.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R;return _.d(function(c){if(c.nextAddress==1){y=_.v(q,ZOq);if(!y)return c.return();_.Yi(c,2);return c.yield(_.IE(b.innertubeTransportService,q),4)}if(c.nextAddress!=2){J=c.yieldResult;if(!J)return c.return();(E=J.updateFlowCommand)&&b.JSC$17485_commandHandler.resolveCommand(E,N);return _.Ea(c,0)}_.K7(c);(R=(F=y)==null?void 0:F.onFailureCommand)&&b.JSC$17485_commandHandler.resolveCommand(R,N);_.hj(c)})};
var T0X=function(){IbU.apply(this,arguments)};
_.Y(T0X,IbU);T0X[ma]=[_.tN,_.rO];var s9f=function(q,N){this.JSC$17491_flowStateManager=q;this.JSC$17491_commandHandler=N};
_.Y(s9f,cf);
s9f.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F;return _.d(function(R){y=_.v(q,_.RaM);J=y.targetId;E=hXf(b.JSC$17491_flowStateManager,J);if(!E)return R.return(Promise.resolve());var c=E,z=(F=y.steps)!=null?F:[],m,r=(m=c.flowRenderer.steps)!=null?m:[];z=[].concat(_.a9(r),_.a9(z));c.flowRenderer.steps=z;y.flowContinuationCommand&&(E.flowRenderer.flowContinuationCommand=y.flowContinuationCommand);y.entityUpdateCommand&&b.JSC$17491_commandHandler.resolveCommand(y.entityUpdateCommand,N);
return R.return(Promise.resolve())})};
var sH=function(){s9f.apply(this,arguments)};
_.Y(sH,s9f);sH[ma]=[_.T$,_.rO];var niU={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 abK=new _.Jw("ICON_SET_TOKEN"),S5a=new _.Jw("ICON_URL_PROVIDER_TOKEN"),Wtp=new _.Jw("PREFETCH_ICONS_TOKEN"),Ltf=new _.Jw("ICON_MAP_FN_TOKEN");var n$={},pxN=(n$.ACCESS_TIME="clock",n$.ACCOUNT_BOX=_.M7("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",n$.ACCOUNT_BOX_CAIRO="person_account_cairo",n$.ACCOUNT_CIRCLE="person_circle",n$.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",n$.ACCOUNT_LINKED="account_link_success",n$.ACCOUNT_UNLINKED="account_link",n$.ADD_FRIEND="people",n$.ADD_MODERATOR="shield_add",n$.ADD_TO_LIBRARY="bookmark",n$.ADD_TO_PLAYLIST="add",n$.ADD_TO_QUEUE_TAIL="list_queue",n$.ADD_TO_REMOTE_QUEUE="list_music",
n$.ADD_TO_WATCH_LATER="clock",n$.ADD_VIDEO_LINK="film_strip_add",n$.ALERT_WARN_RED="alert_triangle",n$.ARROW_BACK="arrow_left",n$.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",n$.ARROW_DROP_DOWN="chevron_down",n$.ARROW_DROP_UP="chevron_up",n$.ARROW_FORWARD="arrow_right",n$.ARTIST="person_music",n$.AUDIOTRACK="audio",n$.AUTO_AWESOME="sparkle",n$.AVATAR_ANONYMOUS="person_circle",n$.AVATAR_LOGGED_OUT="person_circle",n$.BACK="arrow_left",n$.BAR_CHART="bar_graph",n$.BLOCK="slash_circle_left",
n$.BLOCK_USER="slash_circle_left",n$.BOOKMARK_BORDER="bookmark",n$.BREAKING_NEWS_ALT_1="article_alert",n$.BROADCAST_CAIRO="podcast_cairo",n$.BUG_REPORT="bug",n$.CAMERA_ALT="camera",n$.CAMPAIGN="megaphone",n$.CANCEL="x_circle",n$.CAPTIONS="closed_caption",n$.CAST_OUTLINE="chromecast",n$.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",n$.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",n$.CHAT="message_bubble_left",n$.CHAT_BUBBLE="message_bubble_empty",n$.CHAT_SPARK="spark_message_bubble_left",n$.CHECK_BOX_OUTLINE_BLANK=
"box_empty",n$.CHECK_CIRCLE_OUTLINE="check_circle",n$.CHECK_CIRCLE_THICK="check_circle",n$.CLARIFY="article_clarify",n$.CLOSED_CAPTION_SELECTED="closed_caption",n$.CLOSE="x_mark",n$.CLOUD_UPLOAD="cloud_arrow_up",n$.COLLAPSE="chevron_up",n$.COLLAPSE_CAIRO="chevron_up_cairo",n$.COLLECTION="layers",n$.COLOR_LENS="palette",n$.COMMENT="message_bubble_right",n$.CONSENT_SHIELD="person_shield",n$.CONTENT_CUT="scissors",n$.CONTENT_CUT_CAIRO="scissors_cairo",n$.COURSE=_.x("web_enable_course_icon_update")?"creator_academy":
"lightbulb",n$.COURSE_CAIRO=_.x("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",n$.CREATION_LIVE="radar_live",n$.CREATION_POST="box_pencil",n$.CREATION_UPLOAD="my_videos",n$.CREATION_UPLOAD_RED="upload",n$.CREATOR_METADATA_MONETIZATION="dollar_sign",n$.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",n$.CREATOR_STUDIO="youtube_studio",n$.DASHBOARD="grid_asymmetrical",n$.DELETE="trash_can",n$.DELETE_SWEEP="trash_can",n$.DESKTOP="laptop",n$.DISLIKE="thumb_down",n$.DISLIKE_SELECTED=
"thumb_down",n$.DISMISSAL="x_mark",n$.DISMISS_QUEUE="list_remove",n$.DONE_ALL="check_double",n$.DOWN_ARROW="arrow_down",n$.DO_NOT_DISTURB="slash_circle_left",n$.DRAFT="paper_corner_folded",n$.DRAG_HANDLE="bars_2",n$.EDIT="pencil",n$.EMOJI="face_very_happy",n$.EMOJI_FLAGS="flag",n$.EMOJI_OBJECTS="lightbulb",n$.EMOJI_PEOPLE="face_very_happy",n$.EMOJI_RECENT="clock",n$.EMPTY_HEART="heart",n$.EMPTY_LIKE="thumb_up",n$.ERROR_BLACK="alert_circle",n$.ERROR_OUTLINE="alert_circle",n$.EXIT_APP="arrow_in",n$.EXIT_TO_APP=
"arrow_in",n$.EXPAND="chevron_down",n$.EXPAND_ALL="chevron_expand",n$.EXPAND_CAIRO="chevron_down_cairo",n$.EXPAND_LESS="chevron_up",n$.EXPAND_MORE="chevron_down",n$.EXPLORE="compass",n$.EXPLORE_DESTINATION="compass",n$.EXTERNAL_LINK="open_new",n$.FAB_UPLOAD="upload",n$.FACE_HAPPY_OUTLINE="face_happy",n$.FACT_CHECK="article_check",n$.FASHION_LOGO="fashion",n$.FASHION_LOGO_CAIRO="fashion_cairo",n$.FAVORITE="heart",n$.FEEDBACK="message_bubble_alert",n$.FEEDBACK_CAIRO="message_bubble_alert_cairo",n$.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",n$.FILL_ARROW_SOLID_UP_16="arrow_solid_up",n$.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",n$.FILTER="menu_filter",n$.FIRST_PAGE="chevron_first",n$.FLAG="flag",n$.FULL_HEART="heart",n$.GAME_CONSOLE_DPAD="game_console_dpad",n$.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",n$.GAMING_LOGO="gaming",n$.GAMING_LOGO_CAIRO="gaming_cairo",n$.GO_TO_PAGE="arrow_right",n$.GROUPS="people_group",n$.HAPPY="face_happy",n$.HEALTH_AND_SAFETY="shield_plus",n$.HELP="question_circle",n$.HELP_CAIRO=
"question_circle_cairo",n$.HELP_OUTLINE="question_circle",n$.HIDE="slash_circle_left",n$.IMAGE="image",n$.INFINITY_ICON="infinity",n$.INFO="info_circle",n$.INFO_OUTLINE="info_circle",n$.INSERT_CHART="bar_graph_box_vertical",n$.INSERT_CHART_OUTLINED="bar_graph_box_vertical",n$.INSERT_PHOTO="image",n$.KEEP="pin",n$.KEEP_OFF="pin_off",n$.KEYBOARD="keyboard",n$.KEYBOARD_ARROW_DOWN="chevron_down",n$.KEYBOARD_ARROW_UP="chevron_up",n$.KIDS_BLOCK="slash_circle_left",n$.LANGUAGE="globe",n$.LAST_PAGE="chevron_last",
n$.LAUNCH="open_new",n$.LEARNING="lightbulb",n$.LEARNING_CAIRO="lightbulb_cairo",n$.LIBRARY_ADD=uSC("library_add"),n$.LIBRARY_OUTLINE="library",n$.LIBRARY_REMOVE=uSC(),n$.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",n$.LIKES_PLAYLIST="thumb_up",n$.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",n$.LIKE="thumb_up",n$.LIKE_SELECTED="thumb_up",n$.LIVE="radar_live",n$.LIVE_CAIRO="radar_live_cairo",n$.LIVE_UNLISTED="link",n$.LOCATION_ON="location_point",n$.LOCATION_PIN="location_point",n$.LOOP="arrow_repeat",n$.LOOP_ACTIVE=
"arrow_repeat",n$.LOOP_ONE="arrow_repeat_1",n$.LOOP_ONE_ACTIVE="arrow_repeat_1",n$.MEH="face_meh",n$.MEMBERS_ONLY_MODE_OFF="message_bubble_left",n$.MESSAGE="message_bubble_left",n$.MICROPHONE_ON="mic",n$.MIX="youtube_mix",n$.MONETIZATION_ON="dollar_sign_circle",n$.MONEY_FILL="dollar_sign_container",n$.MONEY_FILL_JPY="yen_sign_container",n$.MONEY_HEART="dollar_sign_heart",n$.MORE_HORIZ="overflow_horizontal",n$.MORE_VERT="overflow_vertical",n$.MUSIC="audio",n$.MUSIC_CAIRO="audio_cairo",n$.MUSIC_NOTE_SYMBOL=
"music",n$.MUSIC_SHUFFLE="arrow_shuffle",n$.MY_CHANNEL="person_circle",n$.MY_LOCATION="location_point",n$.NEWS_STORY="news",n$.NEXT="chevron_right",n$.NOTIFICATIONS="bell",n$.NOTIFICATIONS_ACTIVE="bell_on",n$.NOTIFICATIONS_CAIRO="bell_cairo",n$.NOTIFICATIONS_DONE_CHECKMARK="check",n$.NOTIFICATIONS_INBOX="bell",n$.NOTIFICATIONS_NONE="bell",n$.NOTIFICATIONS_OFF="bell_off",n$.NOT_INTERESTED="slash_circle_left",n$.OFFICIAL_ARTIST_BADGE="audio",n$.OFFLINE_CLOUD="cloud_off",n$.OFFLINE_DOWNLOAD="download",
n$.OFFLINE_DOWNLOAD_CAIRO="download_cairo",n$.OFFLINE_PAUSE="pause",n$.OPEN_IN_NEW="open_new",n$.OUTLINE_ADJUST="adjust",n$.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",n$.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",n$.OUTLINE_BAG="bag",n$.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",n$.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",n$.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",n$.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",n$.PAID="dollar_sign",n$.PAUSE_OUTLINED="pause",n$.PAYMENT=
"credit_card",n$.PERSON_RADAR_FILLED="person_radar",n$.PHONE_DOWNLOAD="mobile_download",n$.PLAYABLES_LOGO="tic_tac_toe",n$.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",n$.PLAYLISTS="list_play_arrow",n$.PLAYLISTS_CAIRO="list_play_arrow_cairo",n$.PLAYLIST_ADD=uSC("list_add"),n$.PLAYLIST_ADD_CHECK=uSC("list_check"),n$.PLAYLIST_PLAY="list_play_arrow",n$.PLAY_ALL="play_arrow",n$.PLAY_CIRCLE="play_arrow_circle",n$.PLAY_OUTLINED="play_arrow_circle",n$.PRIVACY_INFO="shield",n$.PRIVACY_PRIVATE="lock",n$.PRIVACY_PUBLIC=
"earth",n$.PRIVACY_UNLISTED="link",n$.PROMOTE="megaphone",n$.PURCHASES="price_tag",n$.PURCHASE_SUPER_CHAT="super_chat",n$.PURCHASE_SUPER_STICKER="super_sticker",n$.QUESTION_ANSWER="message_bubble_question",n$.QUEUE_PLAY_LAST="list_queue_last",n$.QUEUE_PLAY_NEXT="list_play_arrow",n$.REMIX_FILLED="youtube_shorts_remix",n$.REMOVE="bar_circle",n$.REMOVE_CIRCLE="bar_circle",n$.REMOVE_CIRCLE_OUTLINE="bar_circle",n$.REMOVE_DONE="check_double_off",n$.REMOVE_FROM_HISTORY="bar_circle",n$.REMOVE_FROM_PLAYLIST=
"bar_circle",n$.REMOVE_MODERATOR="shield_off",n$.REPLAY="arrow_circle",n$.REPLAY_10="skip_back_10",n$.REPORT_PROBLEM="alert_triangle",n$.SAD="face_sad",n$.SAVE_PLAYLIST="bookmark",n$.SCHEDULE="clock",n$.SCHOOL="creator_academy",n$.SCREEN_FULLSCREEN="screen_full",n$.SEARCH_HISTORY="arrow_time",n$.SELL="price_tag",n$.SETTINGS="gear",n$.SETTINGS_CAIRO="gear_cairo",n$.SETTINGS_LIGHT="gear",n$.SETTINGS_MATERIAL="gear",n$.SHARE_ARROW="share",n$.SHIELD_WITH_AVATAR="person_shield",n$.SHOPPING_BAG="bag",n$.SHOPPING_BAG_CAIRO=
"bag_cairo",n$.SHOPPING_CART="cart",n$.SHORTS_COMMENT="youtube_shorts_message_bubble_right",n$.SHORTS_DISLIKE="youtube_shorts_thumb_down",n$.SHORTS_LIKE="youtube_shorts_thumb_up",n$.SHORTS_SHARE="youtube_shorts_share",n$.SHUFFLE="arrow_shuffle",n$.SLOW_MODE_OFF="message_bubble_left",n$.SOCIAL="people",n$.SORT="menu_sort",n$.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",n$.SPEED_1X="1x",n$.SPEED_1_POINT_2X="1_point_2x",n$.SPEED_1_POINT_5X="1_point_5x",n$.SPEED_1_POINT_8X="1_point_8x",n$.SPEED_2X="2x",
n$.SPEED_POINT_2X="point_2x",n$.SPEED_POINT_8X="point_8x",n$.SPONSORSHIP_STAR="star_circle",n$.STAFF_PICK="spotlight",n$.START_DVR="add",n$.STAR_BORDER="star",n$.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",n$.STICKER_EMOTICON="face_happy",n$.STOP_DVR="stop",n$.SUBSCRIBE="youtube_logo_icon",n$.SUBSCRIBE_PLUS="add_cairo",n$.SUBSCRIPTION_MANAGER="gear",n$.SUPERVISOR_ACCOUNT="people",n$.SUPER_CHAT_FOR_GOOD="hands_heart",n$.SWAP_HORIZ="arrow_swap_horizontal",n$.SWITCH_ACCOUNTS="person_account",n$.TAB_ACCOUNT=
"person",n$.TAB_ACTIVITY="bell",n$.TAB_BOOKMARK="bookmark",n$.TAB_EXPLORE="compass",n$.TAB_HOME="home",n$.TAB_HOME_CAIRO="home_cairo",n$.TAB_INBOX="mail",n$.TAB_LIKED="thumb_up",n$.TAB_MUSIC_PREMIUM="youtube_music",n$.TAB_SHORTS="youtube_shorts",n$.TAB_SHORTS_CAIRO="youtube_shorts_cairo",n$.TAB_SUBSCRIPTIONS="subscriptions",n$.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",n$.TAB_TRENDING="fire",n$.TIMER="stopwatch",n$.TRAILER="youtube_originals",n$.TRENDING="fire",n$.TRENDING_CAIRO="fire_cairo",n$.TRENDING_DOWN=
"rating_down",n$.TRENDING_UP="rating_up",n$.TROPHY="trophy",n$.TROPHY_CELEBRATIONS="fireworks",n$.TUNE="adjust",n$.UNBLOCK_USER="bar_circle",n$.UNLIMITED="youtube_logo_icon",n$.UNPLUGGED_LIVE_GUIDE="radar_live",n$.UNPLUGGED_SPORTS="eye_off",n$.UPLOADS="library",n$.UP_ARROW="arrow_up",n$.VERTICAL_ALIGN_BOTTOM="download",n$.VERY_HAPPY="face_very_happy",n$.VERY_SAD="face_very_sad",n$.VIDEOGAME_ASSET="gaming",n$.VIDEOS="play_arrow_circle",n$.VIDEO_CALL="video_camera_add",n$.VIDEO_LIBRARY_WHITE="library",
n$.VIDEO_YOUTUBE="youtube_logo_icon",n$.VIEW_LIST="list_view",n$.VIEW_LIST_CAIRO="list_view_cairo",n$.VISIBILITY="eye",n$.VISIBILITY_OFF="eye_off",n$.VOLUME_MUTE="volume_off",n$.VOLUME_UP="volume_on",n$.WALLPAPER="image",n$.WARNING="alert_triangle",n$.WATCH_HISTORY="arrow_time",n$.WATCH_HISTORY_CAIRO="arrow_time_cairo",n$.WATCH_LATER="clock",n$.WATCH_LATER_CAIRO="clock_cairo",n$.WATCH_RELATED_MIX="youtube_mix",n$.WHAT_TO_WATCH="home",n$.YOUTUBE_MUSIC_MONOCHROME="youtube_music",n$.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",n$.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",n$.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",n$.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",n$.YT_OUTLINE_MUSIC_24="music",n$);var aj={},P$f=(aj.ACCESS_TIME="clock",aj.ACCOUNT_BOX="person_square",aj.ACCOUNT_BOX_CAIRO="person_square",aj.ACCOUNT_CIRCLE="person_circle",aj.ACCOUNT_CIRCLE_CAIRO="person_circle",aj.ACCOUNT_LINKED="account_link",aj.ACCOUNT_UNLINKED="account_link",aj.ADD_CIRCLE="add_circle",aj.ADD_CIRCLE_OUTLINE="add_circle",aj.ADD_FRIEND="person_child",aj.ADD_MODERATOR="shield_add",aj.ADD_TO_LIBRARY="bookmark",aj.ADD_TO_PLAYLIST="add",aj.ADD_TO_QUEUE_TAIL="queue",aj.ADD_TO_REMOTE_QUEUE="playlist_audio",aj.ADD_TO_WATCH_LATER=
"clock",aj.ADD_VIDEO_LINK="film_strip_add",aj.ADMIN_PANEL_SETTINGS="person_gear",aj.ALERT_WARN_RED="alert_triangle",aj.ALIGN_LEFT="text_align_left",aj.ARROWS_ALERT="arrow_split_alert",aj.ARROW_BACK="arrow_left",aj.ARROW_CIRCLE="arrow_counterclockwise",aj.ARROW_CIRCLE_PLAY="replay",aj.ARROW_CIRCLE_RIGHT="arrow_clockwise",aj.ARROW_DIAGONAL="arrow_up_left",aj.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",aj.ARROW_DROP_DOWN="triangle_down",aj.ARROW_DROP_UP="triangle_up",aj.ARROW_FORWARD="arrow_right",aj.ARROW_PAUSE=
"pause_history",aj.ARROW_UNDO="undo",aj.ARTICLE="text_page",aj.ARTICLE_ALERT="text_page_alert",aj.ARTICLE_CHECK="text_page_check",aj.ARTICLE_CLARIFY="text_page_info",aj.ARTIST="person_audio",aj.AUDIOTRACK="audio",aj.AUDIO_BADGE="audio_badge",aj.AUDIO_SURROUND="surround_sound",aj.AUTO_AWESOME="sparkles",aj.AVATAR_ANONYMOUS="person_circle",aj.AVATAR_LOGGED_OUT="person_circle",aj.BACK="arrow_left",aj.BAR_CHART="chart_bar",aj.BAR_CIRCLE="minus_circle",aj.BAR_HORIZONTAL="minus",aj.BLOCK="circle_slash",
aj.BLOCK_USER="circle_slash",aj.BOOKMARK_BORDER="bookmark",aj.BOX_OPEN_CHECK="quiz",aj.BOX_PENCIL="square_pencil",aj.BOX_STACK_3="square3_stack",aj.BREAKING_NEWS_ALT_1="text_page_alert",aj.BROADCAST="podcast",aj.BROADCAST_CAIRO="podcast",aj.BUG_REPORT="bug",aj.CAMERA_ALT="camera",aj.CAMPAIGN="megaphone",aj.CANCEL="x_circle",aj.CAPTIONS="closed_captions",aj.CAST_ICON="chromecast",aj.CAST_OUTLINE="chromecast",aj.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",aj.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
aj.CHAT="text_bubble",aj.CHAT_BUBBLE="bubble",aj.CHECK_BOX="check_square",aj.CHECK_BOX_OUTLINE_BLANK="square",aj.CHECK_CIRCLE_FILLED="check_circle",aj.CHECK_CIRCLE_OUTLINE="check_circle",aj.CHECK_CIRCLE_THICK="check_circle",aj.CHECK_DOUBLE="check_done",aj.CHECK_DOUBLE_OFF="check_done_slash",aj.CHEVRON_LEFT="chevron_left",aj.CHEVRON_RIGHT="chevron_right",aj.CHEVRON_RIGHT_CAIRO="chevron_right",aj.CIRCLES_OVERLAP="account_link",aj.CLAPPERBOARD_CAIRO="clapperboard",aj.CLARIFY="text_page_info",aj.CLOCK_ARROWS=
"clock_split",aj.CLOCK_ARROWS_ALERT="clock_split_alert",aj.CLOSED_CAPTION="closed_captions",aj.CLOSED_CAPTION_SELECTED="closed_captions",aj.CLOSE="x",aj.CLOUD_UPLOAD="cloud_arrow_up",aj.COLLAPSE="chevron_up",aj.COLLAPSE_CAIRO="chevron_up",aj.COLLECTION="square3d_stack",aj.COLOR_LENS="paint_palette",aj.COMMENT="text_bubble",aj.CONSENT_SHIELD="person_shield",aj.CONTENT_CUT="scissors",aj.CONTENT_CUT_CAIRO="scissors",aj.COURSE="graduation_cap",aj.COURSE_CAIRO="graduation_cap",aj.CREATION_LIVE="live",
aj.CREATION_POST="square_pencil",aj.CREATION_UPLOAD="video",aj.CREATION_UPLOAD_RED="upload",aj.CREATOR_ACADEMY="graduation_cap",aj.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",aj.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",aj.CREATOR_STUDIO="youtube_studio",aj.DARK_THEME="theme",aj.DELETE="trash_can",aj.DELETE_SWEEP="trash_can",aj.DESKTOP="laptop",aj.DISLIKE="thumb_down",aj.DISLIKE_SELECTED="thumb_down",aj.DISMISSAL="x",aj.DISMISS_QUEUE="playlist_x",aj.DOGFOOD="pawprint",aj.DOLLAR_SIGN=
"dollar_sign_circle",aj.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",aj.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",aj.DOWN_ARROW="arrow_down",aj.DO_NOT_DISTURB="circle_slash",aj.DRAFT="document",aj.DRAG_HANDLE="equal",aj.EARTH="globe",aj.EDIT="pencil",aj.EMOJI="face_very_happy",aj.EMOJI_FLAGS="flag",aj.EMOJI_OBJECTS="lightbulb",aj.EMOJI_PEOPLE="face_very_happy",aj.EMOJI_RECENT="clock",aj.EMPTY_HEART="heart",aj.EMPTY_LIKE="thumb_up",aj.ERROR_BLACK="alert_circle",aj.ERROR_OUTLINE="alert_circle",aj.ERROR_WHITE=
"alert_circle",aj.EXIT_APP="arrow_in",aj.EXIT_TO_APP="arrow_in",aj.EXPAND="chevron_down",aj.EXPAND_ALL="chevron_expand",aj.EXPAND_CAIRO="chevron_down",aj.EXPAND_LESS="chevron_up",aj.EXPAND_MORE="chevron_down",aj.EXPLORE="compass",aj.EXPLORE_DESTINATION="compass",aj.EXTERNAL_LINK="arrow_up_right",aj.EYE_OFF="eye_slash",aj.FAB_UPLOAD="upload",aj.FACE_HAPPY_OUTLINE="face_happy",aj.FACE_MEH="face_neutral",aj.FACT_CHECK="text_page_check",aj.FASHION_LOGO="fashion",aj.FASHION_LOGO_CAIRO="fashion",aj.FAVORITE=
"thumb_up",aj.FEEDBACK="alert_bubble",aj.FEEDBACK_CAIRO="alert_bubble",aj.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",aj.FILL_ARROW_SOLID_UP_16="arrow_solid_up",aj.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",aj.FIRST_PAGE="chevron_left_end",aj.FLAG_CAIRO="flag",aj.FLASH_OFF="flash_slash",aj.FLASH_ON="flash",aj.FULL_HEART="heart",aj.GAMING_LOGO="gaming",aj.GAMING_LOGO_CAIRO="gaming",aj.GO_TO_PAGE="arrow_right",aj.GRID_ASYMMETRICAL="dashboard",aj.GROUPS="person3",aj.HAND_SWIPE_LEFT="gesture_swipe_left",
aj.HAND_SWIPE_RIGHT="gesture_swipe_right",aj.HAPPY="face_happy",aj.HEALTH_AND_SAFETY="shield_health",aj.HEART_BOX="heart_cube",aj.HELP="help_circle",aj.HELP_CAIRO="help_circle",aj.HELP_OUTLINE="help_circle",aj.HIDE="circle_slash",aj.INCOGNITO_CAIRO="incognito",aj.INFINITY_ICON="infinity",aj.INFO="info_circle",aj.INFO_OUTLINE="info_circle",aj.INSERT_CHART="chart_bar_square",aj.INSERT_CHART_OUTLINED="chart_bar_square",aj.INSERT_PHOTO="image",aj.KEEP="pin",aj.KEEP_OFF="pin_slash",aj.KEYBOARD="keyboard",
aj.KEYBOARD_ARROW_DOWN="chevron_down",aj.KEYBOARD_ARROW_UP="chevron_up",aj.KIDS_BLOCK="circle_slash",aj.LANGUAGE="globe",aj.LAST_PAGE="chevron_right_end",aj.LAUNCH="arrow_up_right",aj.LEARNING="lightbulb",aj.LEARNING_CAIRO="lightbulb",aj.LIBRARY_ADD="bookmark",aj.LIBRARY_IMAGE="image_stack",aj.LIBRARY_MUSIC="audio_square_stack",aj.LIBRARY_OUTLINE="play_square_stack",aj.LIBRARY_REMOVE="bookmark",aj.LIBRARY_SAVED="check_square_stack",aj.LIKES_PLAYLIST="thumb_up",aj.LIKES_PLAYLIST_CAIRO="thumb_up",aj.LIKE=
"thumb_up",aj.LIKE_SELECTED="thumb_up",aj.LIST_QUEUE="queue",aj.LIVE_CAIRO="live",aj.LIVE_UNLISTED="link",aj.LOCATION_ON="location_pin",aj.LOCATION_PIN="location_pin",aj.LOCATION_POINT="location_pin",aj.LOOP="repeat",aj.LOOP_ACTIVE="repeat",aj.LOOP_ONE="repeat1",aj.LOOP_ONE_ACTIVE="repeat1",aj.MEET="google_meet",aj.MEH="face_neutral",aj.MEMBERSHIPS="memberships",aj.MEMBERS_ONLY_MODE_OFF="text_bubble",aj.MENU_FILTER="filter",aj.MESSAGE="text_bubble",aj.MESSAGE_BUBBLE_GEAR="bubble_gear",aj.MESSAGE_BUBBLE_LEFT=
"text_bubble",aj.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",aj.MESSAGE_BUBBLE_OVERLAP="bubble_stack",aj.MESSAGE_BUBBLE_QUESTION="help_bubble",aj.MICROPHONE_ON="mic",aj.MONETIZATION_ON="dollar_sign_circle",aj.MONEY_FILL="dollar_sign_rectangle",aj.MONEY_FILL_JPY="yen_sign_rectangle",aj.MONEY_HAND="dollar_sign_circle_hand",aj.MONEY_HEART="dollar_sign_heart",aj.MOON_Z="sleep_timer",aj.MORE_HORIZ="overflow_horizontal",aj.MORE_VERT="overflow_vertical",aj.MUSIC="audio",aj.MUSIC_CAIRO="audio",aj.MUSIC_EXPLICIT_BADGE=
"explicit",aj.MUSIC_NEW_RELEASE="audio_badge",aj.MUSIC_NOTE_SYMBOL="audio",aj.MUSIC_SCISSORS="audio_scissors",aj.MUSIC_SHUFFLE="shuffle",aj.MY_CHANNEL="person_circle",aj.MY_LOCATION="location_pin",aj.MY_VIDEOS="video",aj.MY_VIDEOS_CAIRO="video",aj.NEWS_CAIRO="news",aj.NEWS_STORY="news",aj.NEXT="chevron_right",aj.NOTE_ADD="bubble_pencil",aj.NOTIFICATIONS="bell",aj.NOTIFICATIONS_ACTIVE="bell_waves",aj.NOTIFICATIONS_CAIRO="bell",aj.NOTIFICATIONS_DONE_CHECKMARK="check",aj.NOTIFICATIONS_INBOX="bell",aj.NOTIFICATIONS_NONE=
"bell",aj.NOTIFICATIONS_OFF="bell_slash",aj.NOT_INTERESTED="circle_slash",aj.OFFICIAL_ARTIST_BADGE="audio",aj.OFFLINE_CLOUD="cloud_slash",aj.OFFLINE_DOWNLOAD="download",aj.OFFLINE_DOWNLOAD_CAIRO="download",aj.OFFLINE_PAUSE="pause",aj.OPEN_IN_NEW="arrow_up_right",aj.OUTLINE_ADJUST="adjust",aj.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",aj.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",aj.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",aj.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",aj.OUTLINE_BAG="bag",aj.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",aj.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",aj.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",aj.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",aj.PAID="dollar_sign_circle",aj.PAUSE_OUTLINED="pause",aj.PAYMENT="credit_card",aj.PEOPLE="person_child",aj.PEOPLE_2="person2_rectangle",aj.PEOPLE_GROUP="person3",aj.PEOPLE_NOTE="bubble_asterisk",aj.PERSON_2="person2",aj.PERSON_ACCOUNT="person_square_stack",aj.PERSON_MINUS="person_x",aj.PERSON_MUSIC="person_audio",aj.PERSON_RADAR="person_waves",
aj.PERSON_RADAR_FILLED="person_waves",aj.PERSON_SETTING="person_gear",aj.PHONE="phone",aj.PHONE_DOWNLOAD="mobile_arrow_down",aj.PICTURE_IN_PICTURE="picture_in_picture",aj.PLAYABLES_LOGO="playables",aj.PLAYABLES_LOGO_CAIRO="playables",aj.PLAYLISTS="playlist",aj.PLAYLISTS_CAIRO="playlist",aj.PLAYLIST_ADD_CHECK="bookmark",aj.PLAY_ALL="play",aj.PLAY_ARROW="play",aj.PLAY_ARROW_CIRCLE="play_circle",aj.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",aj.PLAY_CIRCLE="play_circle",aj.PLAY_OUTLINED="play_circle",
aj.PODCAST_ADD="podcast_add",aj.PODCAST_CHECK="podcast_check",aj.PRIVACY_INFO="shield_x",aj.PRIVACY_PRIVATE="lock",aj.PRIVACY_PUBLIC="globe",aj.PRIVACY_UNLISTED="link",aj.PROMOTE="megaphone",aj.PURCHASES="price_tag",aj.PURCHASE_SUPER_CHAT="super_chat",aj.PURCHASE_SUPER_STICKER="super_sticker",aj.QUESTION_ANSWER="help_bubble",aj.QUESTION_CIRCLE="help_circle",aj.QUEUE_PLAY_LAST="queue_last",aj.QUEUE_PLAY_NEXT="queue_next",aj.QUOTATION_MARK="quote",aj.RADAR_LIVE="live",aj.REMOVE="minus_circle",aj.REMOVE_CIRCLE=
"minus_circle",aj.REMOVE_CIRCLE_OUTLINE="minus_circle",aj.REMOVE_FROM_HISTORY="minus_circle",aj.REMOVE_FROM_PLAYLIST="minus_circle",aj.REMOVE_MODERATOR="shield_slash",aj.REPLAY="arrow_counterclockwise",aj.REPLAY_10="skip10_back",aj.REPLAY_ARROW="replay",aj.REPORT_PROBLEM="alert_triangle",aj.RSS_OFF="rss_slash",aj.SAD="face_sad",aj.SAVE_PLAYLIST="bookmark",aj.SCHEDULE="clock",aj.SCHOOL="graduation_cap",aj.SCREEN_DEFAULT="player_default",aj.SCREEN_FULLSCREEN="player_full_enter",aj.SCREEN_LIGHT="ambient_mode",
aj.SCREEN_ROTATION="rotate_portrait",aj.SCREEN_SWITCH="player_switch",aj.SCREEN_THEATRE="player_theater",aj.SEARCH_CAIRO="search",aj.SEARCH_HISTORY="history",aj.SELL="price_tag",aj.SETTINGS="gear",aj.SETTINGS_CAIRO="gear",aj.SETTINGS_LIGHT="gear",aj.SETTINGS_MATERIAL="gear",aj.SETTINGS_REMOTE="remote_waves",aj.SHARE="share",aj.SHARE_ARROW="share",aj.SHARE_CAIRO="share",aj.SHIELD="shield_x",aj.SHIELD_EMPTY="shield",aj.SHIELD_OFF="shield_slash",aj.SHIELD_WITH_AVATAR="person_shield",aj.SHOPPING_BAG=
"bag",aj.SHOPPING_BAG_CAIRO="bag",aj.SHOPPING_CART="cart",aj.SHORTS_COMMENT="text_bubble",aj.SHORTS_DISLIKE="thumb_down",aj.SHORTS_LIKE="thumb_up",aj.SHORTS_SHARE="share",aj.SKIP_FORWARD_30="skip30_forward",aj.SLASH_CIRCLE_LEFT="circle_slash",aj.SLASH_CIRCLE_RIGHT="circle_slash",aj.SLOW_MODE="bubble_slow",aj.SLOW_MODE_OFF="text_bubble",aj.SOCIAL="person_child",aj.SPARKLE="sparkles",aj.SPARK_IMAGE="image_spark",aj.SPARK_PENCIL="pencil_spark",aj.SPARK_RADAR="spark_waves",aj.SPARK_VIDEO="video_spark",
aj.SPEAKER_GROUP="speaker_stack",aj.SPEAKER_OFF="speaker_slash",aj.SPEED_1X="n1x",aj.SPEED_1_POINT_2X="n1point2x",aj.SPEED_1_POINT_5X="n1point5x",aj.SPEED_1_POINT_8X="n1point8x",aj.SPEED_2X="n2x",aj.SPONSORSHIP_STAR="star_circle",aj.SPORTS="basketball",aj.SPOTLIGHT="spotlight",aj.STAFF_PICK="spotlight",aj.START_DVR="add",aj.STAR_BORDER="star",aj.STAR_CIRCLE_RIBBON="memberships_gift",aj.STAR_HALF="star_full_half",aj.STAR_SHOOTING="hype",aj.STICKER="sticker",aj.STICKER_EMOTICON="face_happy",aj.STOP_DVR=
"stop",aj.SUBSCRIBE="youtube",aj.SUBSCRIBE_PLUS="add",aj.SUBSCRIPTION_MANAGER="gear",aj.SUPERSTAR="super_star",aj.SUPERVISOR_ACCOUNT="person_child",aj.SUPER_CHAT_FOR_GOOD="hands_heart",aj.SWAP_HORIZ="arrow_swap_horizontal",aj.SWITCH_ACCOUNTS="person_square_stack",aj.TAB_ACCOUNT="person",aj.TAB_ACTIVITY="bell",aj.TAB_BOOKMARK="bookmark",aj.TAB_EXPLORE="compass",aj.TAB_HOME="home",aj.TAB_HOME_CAIRO="home",aj.TAB_INBOX="mail",aj.TAB_LIKED="thumb_up",aj.TAB_MUSIC_PREMIUM="youtube_music",aj.TAB_SHORTS=
"shorts",aj.TAB_SHORTS_CAIRO="shorts",aj.TAB_SUBSCRIPTIONS="subscriptions",aj.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",aj.TAB_TRENDING="trending",aj.TARGET="target",aj.TARGET_ADD="target_add",aj.TEMPLATE_ADD="template_add",aj.TEXT="font",aj.TICKET_STAR="star_ticket",aj.TIMER="stopwatch",aj.TRENDING_CAIRO="trending",aj.TRENDING_DOWN="arrow_trend_down",aj.TRENDING_UP="arrow_trend_up",aj.TROPHY_CAIRO="trophy",aj.TROPHY_CELEBRATIONS="fireworks",aj.TROPHY_STAR="star_trophy",aj.TUNE="adjust",aj.TV_OFF="tv_slash",
aj.UNBLOCK_USER="minus_circle",aj.UNFAVORITE="thumb_down",aj.UNLIMITED="youtube",aj.UNPLUGGED_LIVE_GUIDE="live",aj.UNPLUGGED_SPORTS="eye_slash",aj.UPLOADS="play_square_stack",aj.UP_ARROW="arrow_up",aj.VERTICAL_ALIGN_BOTTOM="chevron_down_end",aj.VERTICAL_ALIGN_TOP="chevron_up_end",aj.VERY_HAPPY="face_very_happy",aj.VERY_SAD="face_very_sad",aj.VIDEOS="play_circle",aj.VIDEO_CALL="video_camera_add",aj.VIDEO_LIBRARY_WHITE="play_square_stack",aj.VIDEO_QUALITY_4K="n4k",aj.VIDEO_QUALITY_8K="n8k",aj.VIDEO_YOUTUBE=
"youtube",aj.VIEW_LIST_CAIRO="view_list",aj.VIEW_MODULE="view_column3_row2",aj.VISIBILITY="eye",aj.VISIBILITY_OFF="eye_slash",aj.VOLUME_DOWN="volume_min",aj.VOLUME_MUTE="volume_mute",aj.VOLUME_OFF="volume_mute",aj.VOLUME_STABLE="stable_volume",aj.VOLUME_UP="volume_max",aj.WALLPAPER="image",aj.WARNING="alert_triangle",aj.WATCH_HISTORY="history",aj.WATCH_HISTORY_CAIRO="history",aj.WATCH_LATER="clock",aj.WATCH_LATER_CAIRO="clock",aj.WATCH_RELATED_MIX="mix",aj.WHAT_TO_WATCH="home",aj.YOUTUBE_LINKED_TV=
"tv_mobile",aj.YOUTUBE_MUSIC_MONOCHROME="youtube_music",aj.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",aj.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",aj.YOUTUBE_SHORTS_ARROW_UP="arrow_up",aj.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",aj.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",aj.YOUTUBE_SHORTS_OUTLINE_24="shorts",aj.YT_OUTLINE_MUSIC_24="audio",aj);var MFB={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 oiB={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 Ajx={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"},So=function(q){this.iconUrlProvider=q};
So.prototype.resolveIcon=function(q,N){var b=Ajx[q.iconName.toUpperCase()];b&&(q.iconName=b);var y=q.iconName;y=y.replace(/-/g,"_");q=Object.assign({},q,{iconName:this.mapIconTypeToStandardName(y,!!b)||y.toLowerCase()});if(_.x("enable_web_delhi_icons")||b){var J;return dZR(oiB,q,((J=this.iconUrlProvider)==null?void 0:J.getYtStandardUrl)||$Zu,N)}var E;return dZR(MFB,q,((E=this.iconUrlProvider)==null?void 0:E.getYtStandardUrl)||zzZ,N)};
So.prototype.mapIconTypeToStandardName=function(q,N){return _.x("enable_web_delhi_icons")||N?P$f[q.toUpperCase()]:pxN[q.toUpperCase()]};
So[ma]=[_.$f(S5a)];var eXd=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),B0C=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),H7C=function(q){this.urlProvider=this.iconUrlProvider=q};
_.Y(H7C,So);
H7C.prototype.resolveIcon=function(q,N){q.iconName==="youtube_logo"&&(q.iconName="yt-logo-updated");if(q.iconName==="youtube_premium_logo"||q.iconName==="youtube_red_logo")q.iconName="yt-logo-red-updated";var b=Object.assign({},q);q.iconName==="menu"&&(_.x("enable_web_delhi_icons")||(b.iconName="bars_3"),b.iconStyle="youtube_outline");q.iconSetName==="socialNetworksRound"&&(q.iconName==="mail"&&(b.iconName="email"),q.iconName==="embed"&&(b.iconSize=60));q.iconName==="more"&&(b.iconName="overflow_horizontal");
q.iconName==="fullscreen"&&(b.iconName="screen_full");q.iconName==="premium_standalone"&&(b.iconName="premium_standalone_cairo");_.x("enable_connect_icon_update_web")&&q.iconName==="account_linked"&&(b.iconName="circles_overlap_check",b.iconStyle="youtube_fill");_.x("enable_connect_icon_update_web")&&q.iconName==="account_unlinked"&&(b.iconName="circles_overlap",b.iconStyle="youtube_outline");eXd.has(q.iconName)&&(b.iconStyle="youtube_fill");_.x("enable_web_delhi_icons")&&(q.iconName==="playlist_add"&&
(b.iconName="bookmark"),q.iconName==="offline_pin"&&(b.iconName="arrow_down_circle",b.iconStyle="youtube_fill"),B0C.has(q.iconName)&&(b.iconName+="_updated"));q=Object.assign({},b,{iconName:(So.prototype.mapIconTypeToStandardName.call(this,b.iconName)||b.iconName).toLowerCase()});var y;return(q=dZR(niU,q,((y=this.urlProvider)==null?void 0:y.getUrl)||tZu,N))?q:So.prototype.resolveIcon.call(this,b,N)};
H7C[ma]=[_.$f(S5a)];_.qpf=1;var WL=function(q,N){this.JSC$17512_commandHandler=q;this.innertubeTransportService=N};
_.Y(WL,cf);WL.prototype.resolveCommand=function(q,N){var b=this,y,J,E;return _.d(function(F){return(y=_.v(q,GJv))?F.return(Nzp(b,y,(J=N)==null?void 0:(E=J.form)==null?void 0:E.element)):F.return()})};
var Nzp=function(q,N,b){N={profileCardContext:N.profileCardContext,profileOwnerExternalChannelId:N.profileOwnerExternalChannelId};var y=_.LD(iuo);return _.ZG(q.innertubeTransportService,N,y).then(function(J){if(!J)throw new _.IO("GetProfileCard failed");if(J=J.popupCommand){q.JSC$17512_commandHandler.resolveCommand(J,{form:{element:b}});_.DO(_.FR(),66557);J=J==null?void 0:J.clickTrackingParams;var E=_.QY();J&&E&&_.FR().graftServerVe(J,E)}})};
WL[ma]=[_.rO,_.tN];var L$=function(){};
_.Y(L$,cf);L$.prototype.resolveCommand=function(q){var N,b;return _.d(function(y){N=_.v(q,hgM);if(!N)return y.return();b=Number(N.enableDelayedPacfLoggingTvMs);if(isNaN(b)){var J=IZ();s31(J,N,0)}else s31(IZ(),N,b);_.hj(y)})};_.p$=function(){};
_.Y(_.p$,cf);
_.p$.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R,c,z;return _.d(function(m){y=_.v(q,kJv);E=(J=N.form)==null?void 0:J.element;R=(F=E)==null?void 0:F.closest("ytd-enforcement-message-view-model");if(!y||!R)return m.return();b.allowAdsAction||(c=y.fundingChoiceInstructionPageUrl,b.allowAdsAction=new ioJ(window,_.Pv(c)));var r=b.allowAdsAction;r.wallElement=R;r.allowAdsPopup.style.setProperty("display","flex","important");var X=r.scrollManager;X.isScrollingEnabled&&(X.originalBodyOverflow=X.JSC$10081_domHelper.JSC$9407_document_.body.style.overflow,
X.JSC$10081_domHelper.JSC$9407_document_.body.style.overflow="hidden",X.isScrollingEnabled=!1);r.wallElement.style.setProperty("display","none","important");swv(r.accessibilityManager,r.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((z=b.allowAdsAction.allowAdsPopup)&&z instanceof HTMLElement)for(r=_.Z(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),X=r.next();!X.done;X=r.next()){var V=_.Z(X.value);X=V.next().value;V=V.next().value;
z.style.setProperty(X,V)}_.hj(m)})};
_.p$.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var PL=function(){};
_.Y(PL,cf);PL.prototype.resolveCommand=function(q){var N;return _.d(function(b){N=_.v(q,CPx);if(!N)return b.return();GBz(q);_.hj(b)})};_.Mh=new _.Jw("AI_CHAT_CONTROLLER_TOKEN");var oj=function(q,N,b,y){this.JSC$17527_commandHandler=q;this.store=N;this.getPlayerCb=b;this.aiChatController=y};
_.Y(oj,cf);oj.prototype.pageContext=function(){var q=_.U$.currentPageSubTypeSelector(this.store.getState()),N;return(N=this.aiChatController)==null?void 0:_.bMp(N,q)};
oj.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F;return _.d(function(R){b=_.v(q,Lzv);J=(y=b)==null?void 0:y.command;if(!J)return R.return();switch((F=b)==null?void 0:F.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var c="youchat-"+Date.now(),z;var m=String(Math.floor(((z=N.getPlayerCb())==null?void 0:z.getCurrentTime())||0)*1E3);E={inputComposerFormData:{clientMessageId:c,playerOffsetMs:m,pageContext:N.pageContext()}}}if(!E)return R.return();N.JSC$17527_commandHandler.resolveCommand(J,
{form:{formData:E}});_.hj(R)})};
oj[ma]=[_.rO,_.eU,Can,_.$f(_.Mh)];var ybf=new _.Jw("SESSION_STORAGE");var AU=function(q){this.sessionStorage=q("conversations")};
_.Y(AU,cf);AU.prototype.resolveCommand=function(q){var N=this,b;return _.d(function(y){b=_.v(q,p7E);if(!b)return y.return();b.conversationId?N.sessionStorage.set("conversation_id",b.conversationId):N.sessionStorage.remove("conversation_id");_.hj(y)})};
AU[ma]=[ybf];var eo=function(q){this.JSC$17539_commandHandler=q};
_.Y(eo,cf);
eo.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F,R,c,z;return _.d(function(m){if(m.nextAddress==1){b=_.v(q,c$1);if((y=b)==null||!y.text||!navigator.clipboard)return m.return();_.Yi(m,2);return m.yield(navigator.clipboard.writeText(b.text),4)}if(m.nextAddress!=2){if(!b.successActions||b.successActions.length===0)return m.return();J=_.Z(b.successActions);for(E=J.next();!E.done;E=J.next())F=E.value,N.JSC$17539_commandHandler.resolveCommand(F);return _.Ea(m,0)}_.K7(m);if(!b.failureActions||b.failureActions.length===
0)return m.return();R=_.Z(b.failureActions);for(c=R.next();!c.done;c=R.next())z=c.value,N.JSC$17539_commandHandler.resolveCommand(z);_.hj(m)})};
eo[ma]=[_.rO];var BL=function(q){this.JSC$17543_commandHandler=q};
_.Y(BL,cf);
BL.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R,c,z,m,r,X;return _.d(function(V){switch(V.nextAddress){case 1:y=_.v(q,WyF);if(!y)return V.return();_.Yi(V,2);if(!y.imageBytes&&!y.imageUrl)throw Error("Ai");if(!y.imageUrl){if(y.imageBytes){E=y.imageBytes;F=E.replace(/-/g,"+").replace(/_/g,"/");var G=XNZ(F);J=_.PZ(G)}V.jumpTo(4);break}return V.yield(fetch(y.imageUrl),5);case 5:return R=V.yieldResult,V.yield(R.blob(),6);case 6:c=V.yieldResult,J=_.PZ(c);case 4:r=(z=N)==null?void 0:(m=z.form)==
null?void 0:m.element;X=document.createElement("a");AB(X,J);r.appendChild(X);X.download="";X.click();r.removeChild(X);URL.revokeObjectURL(_.sh(J));y.successCommand&&b.JSC$17543_commandHandler.resolveCommand(y.successCommand);_.Ea(V,0);break;case 2:_.K7(V),y.errorCommand&&b.JSC$17543_commandHandler.resolveCommand(y.errorCommand),_.hj(V)}})};
BL[ma]=[_.rO];var HL=function(q){this.store=q};
_.Y(HL,cf);HL.prototype.resolveCommand=function(q){var N=this,b,y,J;return _.d(function(E){y=(b=_.v(q,_.WCq))==null?void 0:b.entityBatchUpdate;if(!y)return E.jumpTo(0);J=Object.assign({},y,{mutations:[].concat(_.a9(y.mutations||[]))});return E.yield(_.Ro(J,N.store),0)})};var JbB=function(q){this.JSC$17550_commandHandler=q;this.feedbackDialogMap=new Map};
JbB.prototype.openDialog=function(q,N){(q=this.feedbackDialogMap.get(q))&&this.JSC$17550_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:q}},N)};
JbB[ma]=[_.rO];var q5=new _.Jw("FEEDBACK_CONTROLLER_TOKEN");var N5=new _.Jw("APP_STORE_TOKEN");var bS=function(q,N){this.store=q;this.controller=N};
_.Y(bS,cf);bS.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R,c,z,m,r,X,V,G,w,D,k,f,L,S;return _.d(function(W){if(W.nextAddress==1){y=_.v(q,_.YJ);if(E=(J=y)==null?void 0:J.contentId)for(R=_.Z(((F=y)==null?void 0:F.actions)||[]),c=R.next();!c.done;c=R.next())z=c.value,E7f(b,z,E);X=(m=N)==null?void 0:(r=m.form)==null?void 0:r.element;return W.yield(_.qc(X,[q,{impression:(V=N)==null?void 0:V.disableClickTracking}]).catch(function(){}),2)}G=W.yieldResult;
((w=G)==null?0:(D=w.data)==null?0:(k=D.feedbackResponses)==null?0:k.length)&&(L=(f=G.data.feedbackResponses[0])==null?void 0:f.followUpDialog)&&E&&(S=b.controller)!=null&&S.feedbackDialogMap.set(E,L);_.hj(W)})};
var E7f=function(q,N,b){var y=_.v(N,_.y6);if(y){y=_.Z(y.commands||[]);for(var J=y.next();!J.done;J=y.next())E7f(q,J.value,b)}_.v(N,_.fO)&&q.store.dispatch(_.$e("commandEntity",Han(b),{key:b,command:N}));_.v(N,Kzl)&&q.store.dispatch(_.$e("commandEntity",Han(b),{key:b,command:N}))};
bS[ma]=[N5,q5];var yJ=function(q){this.controller=q};
_.Y(yJ,cf);yJ.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F;return _.d(function(R){y=_.v(q,_.qr);E=(J=y)==null?void 0:J.targetId;if(((F=y)==null?void 0:F.signal)!=="TELL_US_WHY"||!E)return R.return();b.controller.openDialog(E,N);_.hj(R)})};
yJ[ma]=[q5];var JF=function(q){this.store=q};
_.Y(JF,cf);JF.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R,c,z;return _.d(function(m){y=_.v(q,Xoz);E=(J=y)==null?void 0:J.contentId;c=(F=N)==null?void 0:(R=F.form)==null?void 0:R.element;z=_.qc(c,[q]);E&&b.undo(E);return m.yield(z,0)})};
JF.prototype.undo=function(q){this.store.dispatch(_.$e("commandEntity",Han(q),{key:q,command:void 0}))};
JF[ma]=[N5];var Es=function(q){this.JSC$17565_commandHandler=q};
_.Y(Es,cf);Es.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F,R,c,z;return _.d(function(m){b=_.v(q,FmM);y=b.flowStateKey;J=b.validationFailureCommand;E=b.submitValidFormCommand;F=NWd(_.n0,[y||""]);R=_.v(F,cTE);((c=R)==null?0:c.isValid)&&E&&N.JSC$17565_commandHandler.resolveCommand(E);((z=R)==null?0:z.isValid)||!J||N.JSC$17565_commandHandler.resolveCommand(J);_.hj(m)})};
Es[ma]=[_.rO];var gv=function(q){this.innertubeTransportService=q};
_.Y(gv,cf);gv.prototype.resolveCommand=function(q,N){var b=this,y;return _.d(function(J){return J.yield(_.IE(b.innertubeTransportService,q,(y=N)==null?void 0:y.form).then(function(E){var F,R;N==null||(F=N.commandController)==null||(R=F.onSuccess)==null||R.call(F,q,E)},function(E){var F,R;
N==null||(F=N.commandController)==null||(R=F.onServerError)==null||R.call(F,q,E)}),0)})};
gv[ma]=[_.tN];var Za=function(){};
_.Y(Za,cf);Za.prototype.resolveCommand=function(q){var N,b,y,J;return _.d(function(E){if(N=_.v(q,_.Ex4)){if(b=N.gtmId)y=_.M7("GL",""),_.az(b,y);(J=N.gtmData)&&_.SU(J)}_.hj(E)})};var F7=function(q,N,b){this.innertubeTransportService=q;this.JSC$17576_actionRouter=N;this.JSC$17576_screenManager=b};
_.Y(F7,cf);F7.prototype.resolveCommand=function(q){var N=this,b,y;return _.d(function(J){b=_.v(q,JtF);if(!b)return J.return();y=b.command;if(!y)return J.return();N.JSC$17576_actionRouter.triggerAction("yt-insert-rich-section-action",b);return J.yield(_.IE(N.innertubeTransportService,y,{disableCache:!0}).then(function(E){q.clickTrackingParams&&(E==null?0:E.trackingParams)&&N.JSC$17576_screenManager.graftServerVe(E.trackingParams,_.zT(q.clickTrackingParams))}),0)})};
F7[ma]=[_.tN,jO,_.S9];j_n.bind(null,uz);var g7B=j_n.bind(null,b24);vuu.bind(null,uz);var ZMC=vuu.bind(null,b24);YFn.bind(null,uz);var FsA=YFn.bind(null,b24);var R2=function(){};
_.Y(R2,cf);
R2.prototype.resolveCommand=function(q){var N,b,y,J,E,F,R,c,z,m;return _.d(function(r){N=_.v(q,ahE);if(!N)return r.return();y=((b=N.operations)==null?void 0:b.operations)||[];J=_.Z(y);for(E=J.next();!E.done;E=J.next())if(F=E.value,F.insertItemSectionContent){var X=F.insertItemSectionContent,V=X.contents||[];X.insertByPositionInSection?g7B(X.insertByPositionInSection.sectionTargetId,V,X.insertByPositionInSection.position):X.insertByRelativePositionInSection&&X.insertByRelativePositionInSection.sectionTargetId&&X.insertByRelativePositionInSection.itemTargetId&&
ZMC(X.insertByRelativePositionInSection.sectionTargetId,X.insertByRelativePositionInSection.itemTargetId,V,X.insertByRelativePositionInSection.relativePosition)}else F.replaceSection?(X=F.replaceSection,V={},X.replaceByTargetId?V=X.replaceByTargetId:X.replaceByGroupId&&(V={targetId:X.replaceByGroupId.groupId,newContent:X.replaceByGroupId.newContent,undoKey:""}),V.newContent&&EhJ(V.targetId,{continuationItems:[V.newContent]})):F.removeItem?(X=F.removeItem,X.removeByTargetId&&X.sectionTargetId&&FsA(X.sectionTargetId,
X.removeByTargetId.targetIds||[])):F.removeSection&&(F.removeSection.removeByTargetId?(R=void 0,RtA(((R=F.removeSection)==null?void 0:R.removeByTargetId.targetIds)||[])):F.removeSection.removeByGroupId&&(c=void 0,RtA(((c=F.removeSection)==null?void 0:c.removeByGroupId.groupIds)||[])));m=((z=N.operations)==null?void 0:z.scrollConfig)||{};dYx(m);_.hj(r)})};
var RtA=function(q){q=_.Z(q);for(var N=q.next();!N.done;N=q.next())EhJ(N.value,{continuationItems:[]})},dYx=function(q){if(q.scrollToItem){var N=q.scrollToItem.item||{},b=N.itemTargetId;
N=N.sectionTargetId;if(b&&N){var y=document.querySelector("[data-target-id="+N+"]"),J=y==null?void 0:y.querySelector("[data-target-id="+b+"]");y&&J&&setTimeout(function(){var E=J.offsetTop-y.offsetTop,F;if(((F=q.scrollToItem)==null?void 0:F.scrollPosition)==="SCROLL_POSITION_CENTER")E-=y.offsetHeight/2,E+=J.offsetHeight/2;else{var R;((R=q.scrollToItem)==null?void 0:R.scrollPosition)==="SCROLL_POSITION_END"&&(E-=y.offsetHeight,E+=J.offsetHeight)}y.scroll({top:E,behavior:"smooth"})},100)}}};var dv=new _.Jw("CLIENT_NAME_TOKEN");var cbd=new _.Jw("DEFAULT_STORE_EXPIRATION_TOKEN");var hGJ=new _.Jw("CLIENT_LOCATION_SERVICE_TOKEN");var cm=function(q,N,b){this.clientName=q||_.M7("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=N||_.Uv.getInstance();this.JSC$17604_commandHandler=b||_.bq.instance};
_.Y(cm,cf);cm.prototype.resolveCommand=function(q){var N=this,b,y;return _.d(function(J){y=(b=_.v(q,GDo))==null?void 0:b.onComplete;N.clientLocationService.clearLocationPlayabilityToken(N.clientName);y&&N.JSC$17604_commandHandler.resolveCommand(y);_.hj(J)})};
cm[ma]=[dv,hGJ,_.rO];var uS=function(q){this.innertubeTransportService=q};
_.Y(uS,cf);uS.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F;return _.d(function(R){E=(y=N)==null?void 0:(J=y.form)==null?void 0:J.element;return R.yield(_.IE(b.innertubeTransportService,q,(F=N)==null?void 0:F.form).then(function(c){jqA(E,new CustomEvent("yt-service-request-completed"),{data:c},_.M7("openPopupConfig"))}),0)})};
uS[ma]=[_.tN];var zB=function(){};
_.Y(zB,cf);zB.prototype.resolveCommand=function(q){var N,b;return _.d(function(y){N=_.v(q,tDJ);b=document.querySelector("mini-app-container-view-model");if(!N||!b)return y.return();N.isPlaying?b.dispatchEvent(new Event("play")):b.dispatchEvent(new Event("pause"));_.hj(y)})};var $W=function(){};
_.Y($W,cf);$W.prototype.resolveCommand=function(q){var N,b,y,J,E,F,R;return _.d(function(c){N=_.v(q,HRx);if((b=N)==null||!b.paramKeys)return c.return();y=N.paramKeys;J=_.N0(window.location.href);E=_.Z(y);for(F=E.next();!F.done;F=E.next())R=F.value,J.JSC$10113_queryData_.remove(R);window.history.replaceState(window.history.state,document.title,J.toString());_.hj(c)})};var uef=function(){this.dropdownMap=new Map};_.ztB=new _.Jw("DROPDOWN_CONTROLLER_TOKEN");var tF=function(q){this.controller=q};
_.Y(tF,cf);tF.prototype.resolveCommand=function(q){var N=this,b,y,J,E;return _.d(function(F){b=_.v(q,iRR);if(!b)return F.return();y=b;J=y.dropdownId;E=y.selectedOptionIndex;if(J===void 0||E===void 0)return F.return();var R=N.controller.dropdownMap.get(J);R&&R(E);_.hj(F)})};
tF[ma]=[_.ztB];var mZ=function(q){this.controller=q};
_.Y(mZ,cf);mZ.prototype.resolveCommand=function(q){var N=this,b;return _.d(function(y){return(b=_.v(q,IOx))?y.yield(N.controller.closeDialog(),0):y.return()})};
mZ[ma]=[_.AP];var VJ=function(q){this.controller=q};
_.Y(VJ,cf);VJ.prototype.resolveCommand=function(q){var N=this,b,y;return _.d(function(J){b=_.v(q,jzR);if(!b)return J.return();var E,F=b.panelIdentifier||((E=b.identifier)==null?void 0:E.tag);if(!F)throw Error("Bi");return(y=F)?J.yield(N.controller.hidePanel({identifier:y}),0):J.jumpTo(0)})};
VJ[ma]=[_.M8];var jW=function(q){this.controller=q};
_.Y(jW,cf);jW.prototype.resolveCommand=function(q){var N=this,b;return _.d(function(y){return(b=_.v(q,JPJ))?y.yield(N.controller.closeSheet(),0):y.return()})};
jW[ma]=[_.oQ];var xW=function(q,N){this.innertubeTransportService=q;this.controller=N};
_.Y(xW,cf);xW.prototype.resolveCommand=function(q){var N=this,b,y,J,E;return _.d(function(F){if(F.nextAddress==1)return b=_.v(q,xA4),(y=b)!=null&&y.panelId?F.yield(N.controller.getReloadContinuation(b.panelId),2):F.return();if(F.nextAddress!=3)return(J=F.yieldResult)?F.yield(_.IE(N.innertubeTransportService,q,{continuation:J}),3):F.return();E=F.yieldResult;return F.yield(N.controller.updatePanel({identifier:b.panelId,panelContents:E.content,shouldFocus:!1}),0)})};
xW[ma]=[_.tN,_.M8];var GB=function(q,N,b){this.innertubeTransportService=q;this.JSC$17646_screenManager=N;this.JSC$17646_commandHandler=b};
_.Y(GB,cf);
GB.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F,R;return _.d(function(c){if(c.nextAddress==1){b=_.v(q,_.$To);if(!b)return c.return();if(b.commands)for(y=_.Z(b.commands),J=y.next();!J.done;J=y.next())E=J.value,N.JSC$17646_commandHandler.resolveCommand(E,{disableClickTracking:!0});F=_.zT(q.clickTrackingParams);_.DO(N.JSC$17646_screenManager,21760,F,{layer:7,parentLayer:0});return c.yield(_.IE(N.innertubeTransportService,q),2)}R=c.yieldResult;if(!R)return c.return();N.JSC$17646_screenManager.graftServerVe(R.trackingParams,F,
7);_.hj(c)})};
GB[ma]=[_.tN,_.S9,_.rO];var YW=new _.Jw("PANEL_LOADING_STRATEGY_TOKEN");var QJ=function(q,N){this.controller=q;this.panelLoadingStrategy=N};
_.Y(QJ,cf);
QJ.prototype.resolveCommand=function(q,N){var b=this,y,J,E;return _.d(function(F){y=_.v(q,g$M);if((J=y)==null||!J.panelLoadingStrategy)return F.return();E=function(R){var c,z,m,r,X,V,G,w,D,k;return _.d(function(f){z=_.v((c=R.dialogViewModel)==null?void 0:c.header,lVx);m={viewModel:R.dialogViewModel};r={};if(G=_.x("web_enable_dialog_header_label")?(X=z)==null?void 0:(V=X.headline)==null?void 0:V.content:void 0)r.ariaLabel=G;y.dismissOnBackgroundTap===!1&&(r.isModal=!0);return R.dialogViewModel?f.yield(b.controller.openDialog(m,
(k=(w=N)==null?void 0:(D=w.form)==null?void 0:D.element)!=null?k:document.body,r),0):f.return()})};
return F.yield(b.panelLoadingStrategy.execute({command:q,data:y.panelLoadingStrategy,renderFn:E,createScreenConfig:{layer:4}}),0)})};
QJ[ma]=[_.AP,YW];var Os=function(q,N,b){this.innertubeTransportService=q;this.controller=N;this.JSC$17666_screenManager=b};
_.Y(Os,cf);
Os.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R,c,z,m,r,X,V,G,w,D,k;return _.d(function(f){switch(f.nextAddress){case 1:y=_.v(q,_.Gt);if(!y)return f.return();var L,S=y.panelIdentifier||((L=y.identifier)==null?void 0:L.tag);if(!S)throw Error("Bi");J=S;return f.yield(b.controller.isVisible(J,!0),2);case 2:if((E=f.yieldResult)&&y.blockIfPanelOpen)return f.return();c=(R=(F=b.controller).getPanelContent)==null?void 0:R.call(F,J);if(!(L=c))if(y){var W;L=((W=y.globalConfiguration)==null?void 0:
W.initialState)||y.engagementPanel;if(W=!L)W=!!(y==null?0:(S=y.engagementPanelPresentationConfigs)==null?0:S.engagementPanelPopupPresentationConfig);W&&(L=_.Q_R(y.panelIdentifier,y.identifier))}else L=void 0;z=L;m=y.engagementPanelPresentationConfigs;r=y.engagementPanelExtras;return f.yield(b.controller.showPanel({identifier:J,panelContents:z,config:m,extras:r,target:(X=N)==null?void 0:(V=X.form)==null?void 0:V.element}),3);case 3:if(!y.globalConfiguration){f.jumpTo(0);break}if(y.globalConfiguration.reuseModelAndState&&
_.x("enable_ai_companion")&&(D=(w=(G=b.controller).getPanelContent)==null?void 0:w.call(G,J)))return f.return();_.DO(b.JSC$17666_screenManager,32633);return f.yield(_.IE(b.innertubeTransportService,q),5);case 5:return k=f.yieldResult,b.JSC$17666_screenManager.graftServerVe(k.trackingParams),f.yield(b.controller.updatePanel({identifier:J,panelContents:k.content,shouldFocus:!0,extras:r,updatePanelContinuationData:k.updatePanelContinuationData}),0)}})};
Os[ma]=[_.tN,_.M8,_.S9];var wv=function(q,N){this.controller=q;this.panelLoadingStrategy=N};
_.Y(wv,cf);
wv.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R,c,z,m,r,X,V,G;return _.d(function(w){y=_.v(q,_.tO);if((J=y)==null||!J.panelLoadingStrategy)return w.return();R=$YC(b.controller,(E=N)==null?void 0:(F=E.form)==null?void 0:F.element);z=(c=y.contextualSheetPresentationConfig)==null?void 0:c.position;r=(m=y.contextualSheetPresentationConfig)==null?void 0:m.hoverConfig;V=(X=y.contextualSheetPresentationConfig)==null?void 0:X.expandToFullWidth;G=function(D){return _.d(function(k){if(!D.sheetViewModel)return k.return();if(r){var f=
b.controller;f.shouldPreventClosingWhileHovered=!!r.preventCloseWhileHovered;var L;f.hideDelayMs=(L=r.hideDelayMs)!=null?L:0}return k.yield(b.controller.openSheet({viewModel:D.sheetViewModel,sheetPosition:z,expandToFullWidth:V},R),0)})};
return w.yield(b.panelLoadingStrategy.execute({command:q,data:y.panelLoadingStrategy,renderFn:G,createScreenConfig:{layer:0}}),0)})};
wv[ma]=[_.oQ,YW];var iS=function(q,N){this.controller=q;this.JSC$17677_commandHandler=N};
_.Y(iS,cf);iS.prototype.resolveCommand=function(q,N){var b=this,y,J,E;return _.d(function(F){if(F.nextAddress==1){y=_.v(q,Qzq);var R=_.v(y.showCommand,_.Gt),c,z,m=(z=R==null?void 0:R.panelIdentifier)!=null?z:R==null?void 0:(c=R.identifier)==null?void 0:c.tag;if(!m)throw Error("Ci");J=m;return F.yield(b.controller.isVisible(J),2)}return(E=F.yieldResult)?F.yield(b.controller.hidePanel({identifier:J}),0):F.yield(b.JSC$17677_commandHandler.resolveCommand(y.showCommand,N),0)})};
iS[ma]=[_.M8,_.rO];var lS=function(q,N,b){this.innertubeTransportService=q;this.controller=N;this.JSC$17680_screenManager=b};
_.Y(lS,cf);
lS.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F,R,c,z,m,r,X,V,G,w,D,k,f,L,S,W,M,qe;return _.d(function(RJ){switch(RJ.nextAddress){case 1:return y=b=_.v(q,lcx),J=y.targetPanelIdentifier,E=y.contentSourcePanelIdentifier,F=y.globalConfiguration,((R=J)==null?0:R.tag)&&((c=E)==null?0:c.tag)?F?RJ.yield(N.controller.showPanel({identifier:J.tag,panelContents:_.Q_R(J.tag,J)}),5):RJ.yield((X=(r=N.controller).getPanel)==null?void 0:X.call(r,E.tag),4):RJ.return();case 4:V=RJ.yieldResult;z=(G=V)==
null?void 0:(D=(w=G).getPanelContent)==null?void 0:D.call(w);RJ.jumpTo(3);break;case 5:return RJ.yield(_.IE(N.innertubeTransportService,q),6);case 6:k=RJ.yieldResult,((f=k)==null?0:f.trackingParams)&&N.JSC$17680_screenManager.graftServerVe(k.trackingParams),z=(L=k)==null?void 0:L.content,m=(S=k)==null?void 0:S.updatePanelContinuationData;case 3:if(M=(W=z)==null?void 0:W.engagementPanelSectionListRenderer)return RJ.yield(N.controller.showPanel({identifier:J.tag,panelUpdatableFields:{content:M.content,
secondaryHeaderContent:(qe=M.header)!=null?qe:{},targetId:M.targetId,loggingDirectives:M.loggingDirectives},updatePanelContinuationData:m}),0);RJ.jumpTo(0)}})};
lS[ma]=[_.tN,_.M8,_.S9];var Kf=function(){};
_.Y(Kf,cf);Kf.prototype.resolveCommand=function(q){var N,b,y;return _.d(function(J){if(J.nextAddress==1)return(N=_.v(q,kDv))?J.yield(_.yR(),2):J.return();b=J.yieldResult;if(!b)return J.return();var E=b,F=(y=N)==null?void 0:y.languageCode,R;(E==null?0:(R=E.isReady)==null?0:R.call(E))&&(F=ObR(E,F))&&E.setAudioTrack(F);_.hj(J)})};var Da=function(){};
_.Y(Da,NJ);_.g=Da.prototype;_.g.getApiPaths=function(){return vrM};
_.g.getExtension=function(q){return _.v(q,_.nx)};
_.g.isNavigationCommand=function(){return!0};
_.g.JSC$14256_getStoreKey=function(q){if((q=this.getExtension(q))&&q.videoId){var N={videoId:q.videoId};q.playlistId&&(N.playlistId=q.playlistId);q.index&&(N.index=q.index);q.params&&(N.params=q.params);return _.se("next",N)}};
_.g.JSC$14249_getClientScreen=function(q){var N;return((N=q.contentPlaybackContext)==null?void 0:N.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.g.JSC$14249_buildRequest=function(q,N,b){N.videoId&&(q.videoId=N.videoId);N.playlistId&&(q.playlistId=N.playlistId);N.params&&(q.params=N.params);N.index!==void 0&&(q.playlistIndex=N.index);q.racyCheckOk=!(!b.racyCheckOk&&!N.racyCheckOk);q.contentCheckOk=!!N.contentCheckOk;b.contentPlaybackContext&&(q.autonavState=b.contentPlaybackContext.autonavState,q.playbackContext={vis:b.contentPlaybackContext.vis,lactMilliseconds:b.contentPlaybackContext.lactMilliseconds});b.prefetchPlaybackContext&&(q.context.request||
(q.context.request={}),q.context.request.isPrefetch=!0);_.x("captions_hats_killswitch")||(N=_.c3().getFlag(65),N=N!=null?!N:!1,b=!!_.XH("yt-player-sticky-caption"),q.captionsRequested=N&&b)};
_.g.getRequestConfig=function(q){q=this.JSC$14256_getStoreKey(q);var N;q&&(N={storeStrategy:{storeKey:q}});_.x("web_log_player_watch_next_ticks")&&(N=N||{},N.requestTick="wn_s",N.responseTick="wn_r");return N};
var hF=function(){};
_.Y(hF,NJ);hF.prototype.getApiPaths=function(){return vrM};
hF.prototype.getExtension=function(q){return _.v(q,_.lR)};
hF.prototype.JSC$14249_buildRequest=function(q,N){N.token&&(q.continuation=N.token)};var kW=function(){this.innerTubeTransport=_.tz().resolve(_.tN);this.miniplayerService=_.tz().resolve(_.l9)};
_.Y(kW,cf);var tca=function(q){var N;return _.d(function(b){N=_.M7("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;q.JSC$17705_mainAppPlayer=new uf(N);document.addEventListener("yt-page-data-updated",q.JSC$17705_pauseOnNavigation.bind(q));_.hj(b)})},mYf=function(q,N){var b,y,J,E;
return _.d(function(F){if(F.nextAddress==1){b=new Da;y=b.JSC$14249_getRequest(N);if(!y)return F.return(void 0);J=y.innerTubeRequest;return F.yield(_.ZG(q.innerTubeTransport,J,"/youtubei/v1/next"),2)}E=F.yieldResult;var R;var c,z,m=(R=E.contents)==null?void 0:(c=R.twoColumnWatchNextResults)==null?void 0:(z=c.playlist)==null?void 0:z.playlist,r;R=(m==null?0:(r=m.contents)==null?0:r.length)?m:void 0;return F.return(R)})},rbN=function(q,N){var b,y,J,E,F;
return _.d(function(R){if(R.nextAddress==1)return b=q.JSC$17705_mainAppPlayer,R.yield(b.api,2);if(R.nextAddress!=3)return y=R.yieldResult,N.watchCommand?R.yield(mYf(q,N.watchCommand),3):R.return();J=R.yieldResult;if((E=J)==null||!E.contents)return R.return();F=J.contents.map(function(c){var z;return(z=c.playlistPanelVideoRenderer)==null?void 0:z.videoId}).filter(function(c){return!!c}).map(function(c){return{encrypted_id:c}});
y.updatePlaylist({video:F});_.hj(R)})},XhK=function(q,N){var b,y,J;
return _.d(function(E){return E.nextAddress==1?(b=q.JSC$17705_mainAppPlayer,J=(y=N.playerParams)!=null?y:"",N.externalVideoId?E.yield(b.loadVideoWithPlayerVars({videoId:N.externalVideoId,audio_only:"1",player_params:J}),2):E.jumpTo(2)):N.watchCommand?E.yield(rbN(q,N),0):E.jumpTo(0)})};
kW.prototype.JSC$17705_pauseOnNavigation=function(){var q=this,N,b;return _.d(function(y){if(y.nextAddress==1)return N=q.JSC$17705_mainAppPlayer,y.yield(N.api,2);b=y.yieldResult;b.pauseVideo();_.hj(y)})};
kW.prototype.pauseVideo=function(){var q=this,N,b;return _.d(function(y){if(y.nextAddress==1)return N=q.JSC$17705_mainAppPlayer,y.yield(N.api,2);b=y.yieldResult;b.pauseVideo();_.hj(y)})};
kW.prototype.playVideo=function(){var q=this,N,b;return _.d(function(y){if(y.nextAddress==1)return N=q.JSC$17705_mainAppPlayer,y.yield(N.api,2);b=y.yieldResult;b.playVideo();_.hj(y)})};
var VcW=function(q){var N,b;return _.d(function(y){if(y.nextAddress==1)return N=q.JSC$17705_mainAppPlayer,y.yield(N.api,2);b=y.yieldResult;b.mute();_.hj(y)})},jWK=function(q){var N,b;
return _.d(function(y){if(y.nextAddress==1)return N=q.JSC$17705_mainAppPlayer,y.yield(N.api,2);b=y.yieldResult;b.unMute();_.hj(y)})};
kW.prototype.stopVideo=function(){var q=this,N,b;return _.d(function(y){if(y.nextAddress==1)return N=q.JSC$17705_mainAppPlayer,y.yield(N.api,2);b=y.yieldResult;b.stopVideo();_.hj(y)})};
var xYc=function(q,N){return _.d(function(b){switch(b.nextAddress){case 1:switch(N){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return b.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return b.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return b.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return b.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return b.jumpTo(6)}b.jumpTo(0);break;case 2:return b.yield(q.playVideo(),8);case 8:b.jumpTo(0);break;case 3:return b.yield(q.pauseVideo(),
9);case 9:b.jumpTo(0);break;case 4:return b.yield(q.stopVideo(),10);case 10:b.jumpTo(0);break;case 5:return b.yield(VcW(q),11);case 11:b.jumpTo(0);break;case 6:return b.yield(jWK(q),12);case 12:b.jumpTo(0)}})};
kW.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F,R;return _.d(function(c){return c.nextAddress==1?(b=_.v(q,gTl),((y=b)==null?0:y.newPlaybackParams)||((J=b)==null?0:J.controlAction)?N.JSC$17705_mainAppPlayer?c.jumpTo(2):c.yield(tca(N),2):c.return()):((E=b)==null?0:E.newPlaybackParams)?(N.miniplayerService.isMiniplayerActive()&&((F=N.miniplayerService.getPlayerElement())==null||F.pause()),R=b.newPlaybackParams,R.externalVideoId||R.externalPlaylistId?c.yield(XhK(N,R),0):c.return()):c.yield(xYc(N,
b.controlAction),0)})};var Us=function(q){this.JSC$17711_commandHandler=q};
_.Y(Us,cf);
Us.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F,R;return _.d(function(c){if(c.nextAddress==1)return(b=_.v(q,UzT))?c.yield(_.yR(),2):c.return();y=c.yieldResult;if(!y)return c.return();var z=y,m=(J=b)==null?void 0:J.languageCode,r=(E=b)==null?void 0:E.isAutoTranslated;z.getVideoData&&_.ibn(z).length&&((m=Krz(z,m,r))?z.setOption("captions","track",m):(z.setOption("captions","stickyLoading",{}),z.setOption("captions","track",{})));F=y.isSubtitlesOn()?_.FE("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.FE("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");R=_.PT(F,5E3);N.JSC$17711_commandHandler.resolveCommand(R);_.hj(c)})};
Us[ma]=[_.rO];var ff=function(q,N){this.shortsPlayerPromise=q;this.JSC$17715_commandHandler=N};
_.Y(ff,cf);
ff.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F,R,c,z;return _.d(function(m){if(m.nextAddress==1)return(b=_.v(q,bVv))?m.yield(N.shortsPlayerPromise,2):m.return();y=m.yieldResult;var r=DZJ(y);r!=null&&r.length||(y.loadModule("captions"),r=DZJ(y));J=r;if((E=J)==null||!E.length)return F=_.FE("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),R=_.PT(F),N.JSC$17715_commandHandler.resolveCommand(R),m.return();y.toggleSubtitles();c=y.isSubtitlesOn()?_.FE("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.FE("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");z=_.PT(c);N.JSC$17715_commandHandler.resolveCommand(z);_.hj(m)})};
ff[ma]=[_.eoq,_.rO];var Cf=function(q){this.JSC$17718_actionRouter=q;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(N,b){N.triggerAction("yt-dismiss-shopping-timely-shelf-action",b);(N=_.tz().resolve(_.$f(_.RCj)))&&N.dismissFeaturedProductOverlay()}]])};
_.Y(Cf,cf);Cf.prototype.resolveCommand=function(q){var N=this,b,y,J;return _.d(function(E){b=_.v(q,Teo);if((y=b)==null||!y.overlayId)return E.return();J=N.dismissPlayerOverlayActions.get(b.overlayId);if(!J)throw Error("Di`"+b.overlayId);J(N.JSC$17718_actionRouter,b);_.hj(E)})};
Cf[ma]=[jO];var I2=function(q){this.JSC$17722_playerPromise=q};
_.Y(I2,cf);I2.prototype.resolveCommand=function(q){var N=this,b,y,J,E;return _.d(function(F){if(F.nextAddress==1)return(b=_.v(q,GVv))?F.yield(N.JSC$17722_playerPromise,2):F.return();y=F.yieldResult;J=y.getVideoData().video_id;b.videoId===J&&(E=Number(b.offsetFromVideoStartMilliseconds),E>=0&&y.seekTo(E/1E3));_.hj(F)})};
I2[ma]=[_.Bk];var v7X=_.yU("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),TB=function(q){this.store=q};
_.Y(TB,cf);
var Gba=function(q){var N,b,y,J;return _.d(function(E){if(E.nextAddress==1)return N=_.M7("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,b=_.M7("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,y=N||b,q.JSC$17726_mainAppPlayer=new uf(y),E.yield(q.JSC$17726_mainAppPlayer.api,2);J=E.yieldResult;J.addEventListener("onStateChange",q.JSC$17726_playerStateChangeListener.bind(q));document.addEventListener("yt-page-data-updated",q.JSC$17726_pauseOnNavigation.bind(q));window.addEventListener("state-navigatestart",
q.JSC$17726_pauseOnNavigation.bind(q));_.hj(E)})};
TB.prototype.JSC$17726_playerStateChangeListener=function(q){switch(q){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"}Ypf(this)};
var Ypf=function(q){q.store.dispatch(_.$e("sfvAudioItemCurrentlyPlayingEntity",v7X,{key:v7X,externalVideoId:q.externalVideoId,sfvAudioItemPlaybackState:q.playbackState,nowPlayingEntityValue:q.nowPlayingEntityValue}))};
TB.prototype.JSC$17726_pauseOnNavigation=function(){var q=this,N,b,y,J;return _.d(function(E){if(E.nextAddress==1){if(!q.JSC$17726_mainAppPlayer){var F=new _.IO("Error: mainAppPlayer is unavailable",q.JSC$17726_mainAppPlayer);_.po(F);return E.return()}return E.yield(q.JSC$17726_mainAppPlayer.api,2)}N=E.yieldResult;y=(b=N)==null?void 0:b.getPlayerState();y!==1||(J=N)!=null&&J.pauseVideo();_.hj(E)})};
TB.prototype.playVideo=function(q,N,b){var y=this,J,E;return _.d(function(F){if(F.nextAddress==1)return F.yield((J=y.JSC$17726_mainAppPlayer)==null?void 0:J.api,2);E=F.yieldResult;if(!y.JSC$17726_mainAppPlayer||!E){var R=new _.IO("Error: mainAppPlayer is unavailable",y.JSC$17726_mainAppPlayer);_.po(R);return F.return()}return F.yield(y.JSC$17726_mainAppPlayer.loadVideoWithPlayerVars({videoId:y.externalVideoId,audio_only:"1",start:q/1E3,end:q/1E3+N,player_params:b}),0)})};
TB.prototype.pauseVideo=function(){var q=this,N,b;return _.d(function(y){if(y.nextAddress==1){if(!q.JSC$17726_mainAppPlayer){var J=new _.IO("Error: mainAppPlayer is unavailable",q.JSC$17726_mainAppPlayer);_.po(J);return y.return()}return y.yield(q.JSC$17726_mainAppPlayer.api,2)}N=y.yieldResult;(b=N)==null||b.pauseVideo();_.hj(y)})};
TB.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F,R,c,z,m,r,X,V,G,w,D,k,f,L,S;return _.d(function(W){if(W.nextAddress==1)return b=_.v(q,HVT),J=(y=b)==null?void 0:y.nowPlayingEntityValue,F=(E=b)==null?void 0:E.externalVideoId,r=Number((m=(R=b)==null?void 0:(c=R.defaultStartPoints)==null?void 0:(z=c[0])==null?void 0:z.offsetMs)!=null?m:"0"),k=Number((D=(X=b)==null?void 0:(V=X.defaultStartPoints)==null?void 0:(G=V[0])==null?void 0:(w=G.duration)==null?void 0:w.seconds)!=null?D:"15"),S=(L=
(f=b)==null?void 0:f.playerParams)!=null?L:"",J&&F?N.JSC$17726_mainAppPlayer?W.jumpTo(2):W.yield(Gba(N),2):W.return();if(W.nextAddress!=6){if(N.nowPlayingEntityValue&&J===N.nowPlayingEntityValue)return N.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?W.yield(N.pauseVideo(),0):W.yield(N.playVideo(r,k,S),0);N.externalVideoId=F;N.nowPlayingEntityValue=J;N.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return W.yield(N.playVideo(r,k,S),6)}Ypf(N);return W.jumpTo(0)})};
TB[ma]=[BD];var ss=function(q){this.JSC$17744_commandHandler=q};
_.Y(ss,cf);ss.prototype.resolveCommand=function(q,N){var b=this,y,J,E;return _.d(function(F){if(F.nextAddress==1)return(y=_.v(q,fOE))?F.yield(_.yR(),2):F.return();J=F.yieldResult;if(!J)return F.return();(E=hzh(J))&&b.JSC$17744_commandHandler.resolveCommand(E,N);_.hj(F)})};
ss[ma]=[_.rO];var nf=function(q){this.JSC$17750_commandHandler=q};
_.Y(nf,cf);nf.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R;return _.d(function(c){if(c.nextAddress==1)return(y=_.v(q,Co4))?c.yield(_.yR(),2):c.return();J=c.yieldResult;if(!J)return c.return();(E=I5D(J))?b.JSC$17750_commandHandler.resolveCommand(E,N):(F=_.FE("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),R=_.PT(F),b.JSC$17750_commandHandler.resolveCommand(R));_.hj(c)})};
nf[ma]=[_.rO];var a2=function(q){this.JSC$17753_playerPromise=q};
_.Y(a2,cf);a2.prototype.resolveCommand=function(q){var N=this,b,y;return _.d(function(J){if(J.nextAddress==1)return(b=_.v(q,SoM))?J.yield(N.JSC$17753_playerPromise,2):J.return();y=J.yieldResult;y.isFullscreen()&&y.wakeUpControls();_.hj(J)})};
a2[ma]=[_.Bk];var SW=function(q){this.JSC$17756_playerPromise=q};
_.Y(SW,cf);SW.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F;return _.d(function(R){if(R.nextAddress==1){b=_.v(q,YSo);if(!b)return R.return();y=b.overlayRenderer;return y?(J=_.v(y,MYJ))?R.yield(N.JSC$17756_playerPromise,3):R.jumpTo(0):R.return()}E=R.yieldResult;E.renderChapterSeekingAnimation(1,_.ao(J.text),(F=J.icon)==null?void 0:F.iconType);_.hj(R)})};
SW[ma]=[_.Bk];var Wm=function(q){this.store=q};
_.Y(Wm,cf);
Wm.prototype.resolveCommand=function(q){var N=this,b,y,J;return _.d(function(E){if(E.nextAddress==1){b=_.v(q,ZiT);if(!b)return E.return();y="";(J=N.store.getState().collabInviteLink)&&b.id===J.playlistId?y=J.inviteLinkURL:b.shortUrl&&(y=b.shortUrl);return y?E.yield(navigator.clipboard.writeText(y),3):E.jumpTo(0)}var F={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.FE("COPY_LINK_SUCCESS_TOAST")}}}}};_.tz().resolve(_.rO).resolveCommand(F);_.hj(E)})};
Wm[ma]=[N5];var Lf=function(q,N){this.innertubeTransportService=q;this.JSC$17766_commandHandler=N};
_.Y(Lf,cf);Lf.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R,c,z,m,r,X;return _.d(function(V){if(V.nextAddress==1)return(y=_.v(q,_.ZO))?V.yield(_.IE(b.innertubeTransportService,q,(J=N)==null?void 0:J.form),2):V.return();(E=V.yieldResult)&&E.errorMetadata&&(F=E,R=_.PT(F.error.message),b.JSC$17766_commandHandler.resolveCommand(R));c=E;if((z=c)==null?0:z.actions)for(m=_.Z(c.actions),r=m.next();!r.done;r=m.next())X=r.value,b.JSC$17766_commandHandler.resolveCommand(X);_.hj(V)})};
Lf[ma]=[_.tN,_.rO];var pf=function(){};
_.Y(pf,cf);pf.prototype.resolveCommand=function(q){var N;return _.d(function(b){N=_.v(q,ejx);if(!N)return b.return();(new G_x(N)).show();_.hj(b)})};_.Pm=new _.Jw("PLAYLIST_EDIT_CONTROLLER_TOKEN");var M5=function(q,N,b,y){this.store=q;this.innertubeTransportService=N;this.controller=b;this.JSC$17774_commandHandler=y};
_.Y(M5,cf);
M5.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R,c,z,m,r,X,V,G,w,D,k,f,L,S,W,M,qe,RJ,tZ,wA,rA,xD;return _.d(function(IJ){if(IJ.nextAddress==1){y=_.v(q,_.qz);if(!y)return IJ.return();if(y.clientActions){J=_.Z(y.clientActions);for(E=J.next();!E.done;E=J.next())F=E.value,b.JSC$17774_commandHandler.resolveCommand(F,N);var sJ,Sn=N==null?void 0:(sJ=N.form)==null?void 0:sJ.element;Sn&&_.e2(Sn,"yt-dismissible-item-action",y.clientActions)}return IJ.yield(_.IE(b.innertubeTransportService,q,(R=
N)==null?void 0:R.form),2)}if(c=IJ.yieldResult)c.errorMetadata?(z=c,m=_.PT(z.error.message),b.JSC$17774_commandHandler.resolveCommand(m),"error"in c&&((r=N)==null?0:(X=r.commandController)==null?0:X.onServerError)&&((V=N)==null||(G=V.commandController)==null||G.onServerError(q,c))):(w=N)==null||(D=w.commandController)==null||(f=(k=D).onSuccess)==null||f.call(k,q,c);L=c;((S=L)==null?0:S.collaborationInviteLink)&&y.playlistId&&(_.x("web_enable_invite_collaborators_link")||_.x("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
b.store.dispatch(_.B3({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:y.playlistId,inviteLinkUrl:L.collaborationInviteLink}}));((W=L)==null?0:W.redirectEndpoint)&&b.JSC$17774_commandHandler.resolveCommand(L.redirectEndpoint);((M=L)==null?0:(qe=M.newHeader)==null?0:qe.playlistHeaderRenderer)?QWx(b.controller,L.newHeader.playlistHeaderRenderer):((RJ=L)==null?0:(tZ=RJ.newHeader)==null?0:tZ.musicEditablePlaylistDetailHeaderRenderer)&&QWx(b.controller,L.newHeader.musicEditablePlaylistDetailHeaderRenderer);
b.controller.playlistVideoListElement&&((wA=L)==null?0:(rA=wA.playlistEditResults)==null?0:(xD=rA[0])==null?0:xD.playlistEditVideoAddedResultData)&&((Sn=b.controller.playlistVideoListElement)==null||Sn.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:L.playlistEditResults[0].playlistEditVideoAddedResultData})));_.hj(IJ)})};
M5[ma]=[_.eU,_.tN,_.Pm,_.rO];var o2=function(q,N){this.controller=q;this.JSC$17784_commandHandler=N};
_.Y(o2,cf);o2.prototype.resolveCommand=function(q,N){var b=this,y,J,E;return _.d(function(F){y=_.v(q,FCv);b.controller.showRefreshPill&&((J=y)==null?0:J.command)&&(b.JSC$17784_commandHandler.resolveCommand((E=y)==null?void 0:E.command,N),b.controller.showRefreshPill=!1);_.hj(F)})};
o2[ma]=[_.UQ,_.rO];var AF=function(q,N){this.store=q;this.JSC$17788_commandHandler=N||_.bq.instance};
_.Y(AF,cf);AF.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R,c,z,m,r,X;return _.d(function(V){y=_.v(q,vTR);J=b.store.getState().radioButtonGroup;if((E=y)==null?0:E.command)b.JSC$17788_commandHandler.resolveCommand((F=y)==null?void 0:F.command,N);else if(J&&((R=y)==null?void 0:R.formId)===J.currentFormId)for(c=Object.values(J.commandsMap),z=_.Z(c),m=z.next();!m.done;m=z.next())r=m.value,(X=_.O_(r))&&b.JSC$17788_commandHandler.resolveCommand(X,N);_.hj(V)})};
AF[ma]=[_.eU];var eW=new _.Jw("USER_PREFS");var Bm=function(q){this.JSC$17793_prefCookie=q};
_.Y(Bm,cf);Bm.prototype.resolveCommand=function(q){var N=this,b;return _.d(function(y){(b=_.v(q,SCj))&&typeof b.useListView==="boolean"&&(_.uG(0,155,b.useListView),N.JSC$17793_prefCookie.save());_.hj(y)})};
Bm[ma]=[eW];var Hm=function(q){this.JSC$17797_prefCookie=q};
_.Y(Hm,cf);Hm.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F;return _.d(function(R){b=_.v(q,Hz4);if((y=b)==null||!y.gl)return R.return();J=b.gl;E={persist_gl:"1",gl:J};N.JSC$17797_prefCookie.set("gl",J);N.JSC$17797_prefCookie.save();F=mIo(E);_.lI(F);_.hj(R)})};
Hm[ma]=[eW];var q4=function(q){this.JSC$17801_prefCookie=q};
_.Y(q4,cf);q4.prototype.resolveCommand=function(q){var N=this,b,y;return _.d(function(J){b=_.v(q,dCl);if(!b)return J.return();y=!1;b.flagNum&&typeof b.value==="boolean"?(_.uG(0,b.flagNum,b.value),y=!0):b.key&&typeof b.stringValue==="string"&&(N.JSC$17801_prefCookie.set(b.key,b.stringValue),y=!0);y&&N.JSC$17801_prefCookie.save();_.hj(J)})};
q4[ma]=[eW];var N4=new _.Jw("PREF_STORAGE_PROMISE_TOKEN");var bj=function(q){this.JSC$17805_prefStoragePromise=q};
_.Y(bj,cf);bj.prototype.resolveCommand=function(q){var N=this,b,y;return _.d(function(J){if(J.nextAddress==1)return(b=_.v(q,uK4))?J.yield(N.JSC$17805_prefStoragePromise,2):J.return();y=J.yieldResult;return y===void 0||b.key===void 0||b.value===void 0?J.return():J.yield(y.set(b.key,b.value),0)})};
bj[ma]=[N4];var yg=function(q){this.innertubeTransportService=q};
_.Y(yg,cf);yg.prototype.resolveCommand=function(q,N){var b=this,y,J;return _.d(function(E){(y=_.v(q,_.xJo))&&y&&y.isFirstRequest&&(_.Yo("search_overview_answer"),_.Q6("so_rq",void 0,"search_overview_answer"));return E.yield(_.IE(b.innertubeTransportService,q,(J=N)==null?void 0:J.form),0)})};
yg[ma]=[_.tN];var OMC=function(){};
_.Y(OMC,cf);
OMC.prototype.resolveCommand=function(q){var N,b,y,J,E,F,R,c,z;return _.d(function(m){N=_.v(q,v6M);if((b=N)==null?0:b.sectionIdentifier){if(N.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(J=(y=document.getElementsByTagName(N.sectionIdentifier))==null?void 0:y.item(0))J.scrollIntoView({behavior:"smooth"}),(E=RyZ(J))&&E.focus({preventScroll:!0});return m.return()}F=document.querySelector("[section-identifier="+N.sectionIdentifier+"]");R=document.querySelector("[section-identifier="+N.referenceSectionIdentifier+
"]");if(!F)return m.return();c=N.verticalScrollOffsetDp?N.verticalScrollOffsetDp:0;R&&(c-=R.offsetTop);window.scrollTo({top:F.offsetTop+c,behavior:"smooth"});(z=RyZ(F))&&z.focus({preventScroll:!0})}_.hj(m)})};var Jg=function(q){this.JSC$17817_commandHandler=q};
_.Y(Jg,cf);
Jg.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F,R,c;return _.d(function(z){if(z.nextAddress==1){b=_.v(q,Ly4);if(!b||!b.imageBytes||!navigator.clipboard)return z.return();if(b.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.po(Error("Fi")),z.return();_.Yi(z,2);J=(y=b)==null?void 0:y.imageBytes;E=J.replace(/-/g,"+").replace(/_/g,"/");F=XNZ(E);R={};c=[new ClipboardItem((R[F.type]=F,R))];return z.yield(navigator.clipboard.write(c),4)}if(z.nextAddress!=2)return b.successCommand&&
N.JSC$17817_commandHandler.resolveCommand(b.successCommand),_.Ea(z,0);_.K7(z);b.errorCommand&&N.JSC$17817_commandHandler.resolveCommand(b.errorCommand);_.hj(z)})};
Jg[ma]=[_.rO];var EP=function(q,N){this.innertubeTransportService=q;this.JSC$17821_commandHandler=N};
_.Y(EP,cf);EP.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R;return _.d(function(c){if(c.nextAddress==1)return(y=_.v(q,p6J))?c.yield(_.IE(b.innertubeTransportService,q,(J=N)==null?void 0:J.form),2):c.return();(E=c.yieldResult)&&E.errorMetadata&&y.onFailureCommand&&b.JSC$17821_commandHandler.resolveCommand(y.onFailureCommand);F=E;((R=F)==null?0:R.shareCommand)&&b.JSC$17821_commandHandler.resolveCommand(F.shareCommand,N);_.hj(c)})};
EP[ma]=[_.tN,_.rO];var g9=function(){};
_.Y(g9,cf);g9.prototype.resolveCommand=function(q){var N,b;return _.d(function(y){N=_.v(q,ETF);if(!N||!navigator.share)return y.return();b={url:N.url};try{return y.return(navigator.share(b))}catch(J){}_.hj(y)})};var Zr=function(){};
_.Y(Zr,cf);Zr.prototype.resolveCommand=function(){return _.d(function(q){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.hj(q)})};var Fu=function(q){this.JSC$17831_navigationConfirmationService=q};
_.Y(Fu,cf);Fu.prototype.resolveCommand=function(){var q=this;return _.d(function(N){q.JSC$17831_navigationConfirmationService.cancelPendingNavigation();_.hj(N)})};
Fu[ma]=[sb];var Rb=function(q){this.JSC$17834_screenManager=q};
_.Y(Rb,cf);Rb.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R,c,z;return _.d(function(m){J=(y=N.form)==null?void 0:y.event;F=(E=N.form)==null?void 0:E.element;if(!J)throw new _.IO("Event not passed in when resolving command");R=_.Z(J.composedPath());for(c=R.next();!c.done;c=R.next())if(z=c.value,z.tagName==="YT-COPY-LINK-RENDERER")return z.copyUrlToClipboard(),F&&_.Ul(b.JSC$17834_screenManager,F),m.return();_.hj(m)})};
Rb[ma]=[_.S9];var d9=function(){this.JSC$17838_miniAppClientDataProvider=_.tz().resolve(_.XB)};
_.Y(d9,cf);d9.prototype.resolveCommand=function(){var q=this,N,b;return _.d(function(y){if(q.JSC$17838_miniAppClientDataProvider.clientData.has("video_id")){var J=q.JSC$17838_miniAppClientDataProvider,E=J.clientData.get("video_id");E&&J.clientData.delete("video_id");N="https://youtube.com/watch?v="+E;b=_.ax(N);if(b===void 0)throw Error("Gi`"+N);_.yz(window,b)}_.hj(y)})};var c9=function(){};
_.Y(c9,cf);c9.prototype.resolveCommand=function(){return _.d(function(q){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.hj(q)})};var uj=function(){};
_.Y(uj,cf);uj.prototype.resolveCommand=function(){var q;return _.d(function(N){if(N.nextAddress==1)return N.yield(_.BCR(window.document.documentElement),2);(q=document.querySelector("mini-app-container-view-model iframe"))&&q.focus();_.hj(N)})};var z0=function(q){this.JSC$17845_navigationConfirmationService=q};
_.Y(z0,cf);
z0.prototype.resolveCommand=function(){var q=this;return _.d(function(N){var b=q.JSC$17845_navigationConfirmationService,y=_.tz().resolve(_.US),J;if(((J=b.navigateParams)==null?void 0:J.data)!==void 0){var E;_.kG1(y,b.navigateParams.endpoint,b.navigateParams.data,(E=b.navigateParams.navigationType)!=null?E:1,b.navigateParams.tempData,b.navigateParams.isMiniplayer,void 0,!0);b.navigateParams=void 0;b.customConfirmationCommand=void 0}else b.navigateParams&&(y.navigate(b.navigateParams.endpoint,b.navigateParams.reload,
b.navigateParams.params,b.navigateParams.tempData,b.navigateParams.requestType,b.navigateParams.createScreenConfig,!0),b.navigateParams=void 0,b.customConfirmationCommand=void 0);_.hj(N)})};
z0[ma]=[sb];var $b=function(){};
_.Y($b,cf);$b.prototype.resolveCommand=function(){return _.d(function(q){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.hj(q)})};var tg=function(q){this.JSC$17850_prefStorage=q};
_.Y(tg,cf);tg.prototype.resolveCommand=function(){var q=this,N,b;return _.d(function(y){switch(y.nextAddress){case 1:return y.yield(q.JSC$17850_prefStorage,2);case 2:return(N=y.yieldResult)?y.yield(N.set("sfvle",!1),3):y.return();case 3:return y.yield(N.set("sfvles",!0),4);case 4:b=_.c3(),_.uG(0,203,!1),_.uG(0,204,!0),b.save(),_.hj(y)}})};
tg[ma]=[N4];var mq=function(q){this.JSC$17853_prefStorage=q};
_.Y(mq,cf);mq.prototype.resolveCommand=function(){var q=this,N,b;return _.d(function(y){switch(y.nextAddress){case 1:return y.yield(q.JSC$17853_prefStorage,2);case 2:return(N=y.yieldResult)?y.yield(N.set("sfvle",!0),3):y.return();case 3:return y.yield(N.set("sfvles",!0),4);case 4:b=_.c3(),_.uG(0,203,!0),_.uG(0,204,!0),b.save(),_.hj(y)}})};
mq[ma]=[N4];_.whX=new _.Jw("SNACKBAR_CONTROLLER_TOKEN");_.iMB=new _.Jw("SHOULD_SHOW_PIVOT_BAR_TOKEN");var r9=function(q){this.controller=q};
_.Y(r9,cf);r9.prototype.resolveCommand=function(q){var N=this,b;return _.d(function(y){b=_.v(q,E$J);if(!b)return y.return();var J=N.controller;J.closeSnackbarFn&&J.closeSnackbarFn();_.hj(y)})};
r9[ma]=[_.whX];var Xu=function(q,N){this.controller=q;this.JSC$17860_sheetController=N};
_.Y(Xu,cf);Xu.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R,c;return _.d(function(z){y=_.v(q,ZEq);if(!y)return z.return();F=$YC(b.JSC$17860_sheetController,(J=N)==null?void 0:(E=J.form)==null?void 0:E.element);R=_.v(y.content,Yol);if(!R)return z.return();var m=b.controller,r=R,X=(c=y.animationStyle)!=null?c:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(m.showSnackbarFn)m.showSnackbarFn({snackbarViewModel:r,animationStyle:X,durationMs:y.durationSeconds*1E3,target:F});else throw Error("zj");_.hj(z)})};
Xu[ma]=[_.whX,_.oQ];var Vg=function(){};
_.Y(Vg,cf);Vg.prototype.resolveCommand=function(q){var N;return _.d(function(b){N=_.v(q,cGJ);if(!N||typeof N.key!=="string"||typeof N.value!=="string")return b.return();window.localStorage.setItem(N.key,N.value);_.hj(b)})};var jM=function(q){this.store=q};
_.Y(jM,cf);jM.prototype.resolveCommand=function(q){var N=this,b;return _.d(function(y){b=_.v(q,r_h);if(!b||!b.stepId||!b.token)return y.return();N.store.dispatch(qQF({stepId:b.stepId,token:b.token,isSelected:!1}));_.hj(y)})};
jM[ma]=[N5];var xb=function(q,N,b){this.innertubeTransportService=q;this.store=N;this.JSC$17872_screenManager=b};
_.Y(xb,cf);
xb.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F,R,c,z,m,r,X,V,G,w,D,k,f,L,S,W,M,qe,RJ,tZ;return _.d(function(wA){b=_.v(q,EcJ);if(!b||(y=b.stepIds)==null||!y.length)return wA.return();J=N.store.getState().talkToRecs;E=[];F=[];R=_.Z(b.stepIds);for(c=R.next();!c.done;c=R.next())for(z=c.value,m=void 0,(r=(m=J.stepStates[z])==null?void 0:m.userQuery)&&F.push({userQuery:b.submitEmptyUserQuery?"":r.userQuery,userQueryToken:r.token}),V=X=void 0,G=(V=(X=J.stepStates[z])==null?void 0:X.selectionStates)!=
null?V:{},w=_.Z(Object.entries(G)),D=w.next();!D.done;D=w.next())k=D.value,f=_.Z(k),L=f.next().value,S=f.next().value,W=L,M=S,M.isSelected&&E.push(W);qe={selectedChipTokens:E,userQueries:F,submittedStepIds:b.stepIds};RJ={browseTalk2recsFormData:qe};b.browseEndpoint?(tZ=q,_.x0(tZ,_.FH,b.browseEndpoint)):b.command&&(tZ=b.command);return tZ?wA.yield(_.IE(N.innertubeTransportService,tZ,{formData:RJ,disableCache:!0}).then(function(rA){(rA==null?0:rA.trackingParams)&&N.JSC$17872_screenManager.graftServerVe(rA==
null?void 0:rA.trackingParams)}),0):wA.return()})};
xb[ma]=[_.tN,N5,_.S9];var v9=function(q){this.store=q};
_.Y(v9,cf);
v9.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F,R,c,z;return _.d(function(m){b=_.v(q,mxh);if(!b||!b.stepId||!b.token)return m.return();b.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY"?(F=(E=(y=N.store.getState().talkToRecs.stepStates[b.stepId])==null?void 0:(J=y.userQuery)==null?void 0:J.userQuery)!=null?E:"",R=F.length>0?". ":"",c=F+R+b.selectedText,N.store.dispatch(NFj({stepId:b.stepId,userQueryToken:b.token,userQuery:c}))):b.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY"?N.store.dispatch(NFj({stepId:b.stepId,
userQueryToken:b.token,userQuery:(z=b.selectedText)!=null?z:""})):N.store.dispatch(qQF({stepId:b.stepId,token:b.token,isSelected:!0}));_.hj(m)})};
v9[ma]=[N5];var G0=function(q){this.store=q};
_.Y(G0,cf);G0.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R;return _.d(function(c){y=_.v(q,Pmn);if(!y||!y.stepId||!y.userQueryToken)return c.return();R=(F=(J=N)==null?void 0:(E=J.form)==null?void 0:E.userQuery)!=null?F:"";b.store.dispatch(NFj({stepId:y.stepId,userQueryToken:y.userQueryToken,userQuery:R}));_.hj(c)})};
G0[ma]=[N5];_.lka=new _.Jw("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Yb=function(q){this.controller=q};
_.Y(Yb,cf);Yb.prototype.resolveCommand=function(q){var N=this,b,y,J,E;return _.d(function(F){b=_.v(q,VUM);if(!b)return F.return();y=b;J=y.id;E=y.isVisible;if(J===void 0||E===void 0)return F.return();var R;(R=N.controller.timelyActionsMap.get(J))==null||R(J,E);_.hj(F)})};
Yb[ma]=[_.lka];var Ksc=function(){this.timelyActionsMap=new Map};var Qg=function(q){this.JSC$17898_commandHandler=q};
_.Y(Qg,cf);Qg.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F;return _.d(function(R){b=_.v(q,_.lL1);if(!b)return R.return();E=(y=b.item)==null?void 0:(J=y.notificationTextRenderer)==null?void 0:J.successResponseText;if(!E)return R.return();F=_.pD(E);N.JSC$17898_commandHandler.resolveCommand(F);_.hj(R)})};
Qg[ma]=[_.rO];var OP=function(q,N){this.innertubeTransportService=q;this.JSC$17903_playerApiPromise=N};
_.Y(OP,cf);
OP.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F,R,c,z,m;return _.d(function(r){if(r.nextAddress==1)return r.yield(N.JSC$17903_playerApiPromise,2);b=r.yieldResult;y=b.getOption("captions","track");J=Object.assign({},_.v(q,_.kWq));(F=(E=b.getVideoData())==null?void 0:E.video_id)?J.externalVideoId=F:_.bv(Error("Hi"));if((R=y)==null?0:R.languageCode)J.languageCode=y.languageCode;if((c=y)==null?0:c.kind)J.kind=y.kind;if((z=y)==null?0:z.name)J.name=y.name;m=Object.assign({},q,{getTranscriptEndpoint:J});return r.yield(_.IE(N.innertubeTransportService,
m),0)})};
OP[ma]=[_.tN,_.Bk];var w9=function(){};
_.Y(w9,cf);w9.prototype.resolveCommand=function(q){var N,b,y,J,E,F,R,c;return _.d(function(z){N=_.v(q,xCT);if((b=N)==null||!b.paramKeyValuePairs)return z.return();y=window.location.href;J=_.Z(N.paramKeyValuePairs);for(E=J.next();!E.done;E=J.next())F=E.value,F.key&&F.value&&(R={},y=_.ZM(y,(R[F.key]=F.value,R)));c=_.tz().resolve(_.fE);_.Ub(c,y);_.hj(z)})};_.ij=new _.Jw("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var lj=function(q,N,b,y){this.controller=q;this.JSC$17910_playerApiPromise=N;this.innertubeTransportService=b;this.JSC$17910_commandHandler=y};
_.Y(lj,cf);
lj.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F,R,c,z,m,r,X,V,G,w,D,k,f,L;return _.d(function(S){if(S.nextAddress==1){b=_.v(q,WPl);if((y=b)==null||!y.watchEndpoint)return S.return();J=new Da;E=J.JSC$14249_getRequest(b.watchEndpoint);if(!E)return S.return();F=b.watchEndpoint.clickTrackingParams;return S.yield(_.ZG(N.innertubeTransportService,E.innerTubeRequest,E.input,F,E.config),2)}if(S.nextAddress!=3)return R=S.yieldResult,S.yield(N.JSC$17910_playerApiPromise,3);c=S.yieldResult;c.updateVideoData({raw_watch_next_response:R});
if(G=(z=R)==null?void 0:(m=z.contents)==null?void 0:(r=m.twoColumnWatchNextResults)==null?void 0:(X=r.results)==null?void 0:(V=X.results)==null?void 0:V.contents)D=(w=G.find(function(W){return W.videoPrimaryInfoRenderer}))==null?void 0:w.videoPrimaryInfoRenderer,((k=D)==null?0:k.subtitle)&&DYp(N.controller,D.subtitle);
(L=(f=R)==null?void 0:f.onUiReady)&&N.JSC$17910_commandHandler.resolveCommand(L);_.hj(S)})};
lj[ma]=[_.ij,_.Bk,_.tN,_.rO];var hta=function(){this.subtitleChangeCallbackMap=new Map},DYp=function(q,N){q=_.Z(q.subtitleChangeCallbackMap.values());
for(var b=q.next();!b.done;b=q.next())b=b.value,b(N)};var K5=function(q,N){this.JSC$17920_commandHandler=q;this.innertubeTransportService=N};
_.Y(K5,cf);
K5.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R,c,z,m,r,X,V,G,w,D,k,f,L;return _.d(function(S){switch(S.nextAddress){case 1:return(E=(y=N)==null?void 0:(J=y.form)==null?void 0:J.element)&&_.DI(E),F=_.c3().get("hl"),R="",_.Yi(S,2),S.yield(a5A(F),4);case 4:R=S.yieldResult;_.Ea(S,3);break;case 2:return _.K7(S),E&&_.h3(E),_.po(Error("Ji"),"ERROR"),S.return();case 3:c=_.v(q,bSM);if(!c)return E&&_.h3(E),S.return();(r=(z=c.commerceActionConfig)==null?void 0:(m=z.commandLifeCycleConfig)==null?
void 0:m.onStartCommand)&&b.JSC$17920_commandHandler.resolveCommand(r);return S.yield(_.IE(b.innertubeTransportService,q,{client_data:{paymentsClientToken:{token:R}}}),5);case 5:(X=S.yieldResult)?(E&&_.h3(E),((D=X)==null?0:D.command)&&b.JSC$17920_commandHandler.resolveCommand(X.command),(L=(k=c.commerceActionConfig)==null?void 0:(f=k.commandLifeCycleConfig)==null?void 0:f.onSuccessCommand)&&b.JSC$17920_commandHandler.resolveCommand(L)):(E&&_.h3(E),_.po(Error("Ki")),(w=(V=c.commerceActionConfig)==
null?void 0:(G=V.commandLifeCycleConfig)==null?void 0:G.onFailureCommand)&&b.JSC$17920_commandHandler.resolveCommand(w)),_.hj(S)}})};
K5[ma]=[_.rO,_.tN];var Dr=function(q,N,b){this.store=q;this.JSC$17936_commandHandler=N;this.innertubeTransportService=b};
_.Y(Dr,cf);
Dr.prototype.resolveCommand=function(q,N){var b=this,y,J,E,F,R,c,z,m,r;return _.d(function(X){y=_.v(q,yvM);J=y.googlePaymentPayload;y.onStartCommand&&b.JSC$17936_commandHandler.resolveCommand(y.onStartCommand);E=J.encryptedPurchaseParams;F=J.ypcLogWalletAnalyticDataEndpoint;R=y.serializedTransactionFlowLoggingParams;c=J.serializedPaymentsClientParams;z=y.ypcCujContext;r=LrR(b.innertubeTransportService,(m=N)==null?void 0:m.form,E,F,R,c,z);return X.return(r.then(function(V){SFR(N==null?void 0:N.form,
!1);var G=b.store,w=b.JSC$17936_commandHandler,D=V.integratorData;D==null||D===""||V.error!=null?(String(V.error)==="-1"&&y.onDismissCommand?w.resolveCommand(y.onDismissCommand):String(V.error)!=="-1"&&y.onFailureCommand&&w.resolveCommand(y.onFailureCommand),String(V.error)!=="-1"&&String(V.error)!=="132"&&_.po(Error("Li"),"ERROR")):(y.googlePaymentEntityKey&&G.dispatch(_.$e("commerceAcquisitionClientPayloadEntity",y.googlePaymentEntityKey,{key:y.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:D,
fundsGuaranteeCallbackClientData:V.integratorClientCallbackData}}})),y.onSuccessCommand&&w.resolveCommand(y.onSuccessCommand));_.bG()},function(V){SFR(N==null?void 0:N.form,!1);
_.po(V,"ERROR");y.onFailureCommand&&b.JSC$17936_commandHandler.resolveCommand(y.onFailureCommand)}))})};
Dr[ma]=[BD,_.rO,_.tN];var hg=function(q,N){this.JSC$17940_commandHandler=q;this.purchaseManager=N};
_.Y(hg,cf);
hg.prototype.resolveCommand=function(q){var N=this,b,y,J,E,F,R,c,z,m;return _.d(function(r){b=_.v(q,JvR);((y=b)==null?0:(J=y.commandLifeCycleConfig)==null?0:J.onStartCommand)&&N.JSC$17940_commandHandler.resolveCommand(b.commandLifeCycleConfig.onStartCommand);if(!((E=b)==null?0:(F=E.googlePaymentPurchaseManagerPayload)==null?0:F.securePayloadBytes))return _.po(Error("Mi"),"ERROR"),r.return();R=p$j(_.HA(b.googlePaymentPurchaseManagerPayload.securePayloadBytes));c=_.c3().get("hl");z=_.T4();rjC(R.serialize(),
c,function(X){z.resolve(X)},function(X){z.reject(X)},z.resolve);
m=z.promise;return r.return(m.then(function(X){if(X)if(X==null?0:X.errorCode){_.po(Error("Ni`"+X.errorCode),"ERROR");var V,G;((V=b)==null?0:(G=V.commandLifeCycleConfig)==null?0:G.onFailureCommand)&&N.JSC$17940_commandHandler.resolveCommand(b.commandLifeCycleConfig.onFailureCommand)}else if(X==null?0:X.isCancelled){var w,D;((w=b)==null?0:(D=w.commandLifeCycleConfig)==null?0:D.onCancelCommand)&&N.JSC$17940_commandHandler.resolveCommand(b.commandLifeCycleConfig.onCancelCommand)}else{var k,f;((k=b)==
null?0:(f=k.commandLifeCycleConfig)==null?0:f.onSuccessCommand)&&N.JSC$17940_commandHandler.resolveCommand(b.commandLifeCycleConfig.onSuccessCommand)}},function(X){_.po(X,"ERROR");
var V,G;((V=b)==null?0:(G=V.commandLifeCycleConfig)==null?0:G.onFailureCommand)&&N.JSC$17940_commandHandler.resolveCommand(b.commandLifeCycleConfig.onFailureCommand)}))})};
hg[ma]=[_.rO,XxU];var kbU=function(q,N){this.JSC$17948_commandHandler=q;this.commandAllowlistOverride=N;var b;this.commandAllowlist=(b=this.commandAllowlistOverride)!=null?b:l8C};
kbU.prototype.handleResponse=function(q,N,b){var y,J=N==null?void 0:(y=N.config)==null?void 0:y.command;if(!J||this.commandAllowlist.some(function(E){return!!_.v(J,E)})){N=void 0;
b!==void 0&&(N={form:{element:b}});q.onResponseReceivedCommand&&this.JSC$17948_commandHandler.resolveCommand(q.onResponseReceivedCommand,N);q.onResponseReceivedAction&&this.JSC$17948_commandHandler.resolveCommand(q.onResponseReceivedAction,N);q.onResponseReceivedEndpoint&&this.JSC$17948_commandHandler.resolveCommand(q.onResponseReceivedEndpoint,N);q.command&&this.JSC$17948_commandHandler.resolveCommand(q.command,N);if(q.onResponseReceivedCommands)for(b=_.Z(q.onResponseReceivedCommands),y=b.next();!y.done;y=
b.next())this.JSC$17948_commandHandler.resolveCommand(y.value,N);if(q.onResponseReceivedActions)for(b=_.Z(q.onResponseReceivedActions),y=b.next();!y.done;y=b.next())this.JSC$17948_commandHandler.resolveCommand(y.value,N);if(q.onResponseReceivedEndpoints)for(b=_.Z(q.onResponseReceivedEndpoints),y=b.next();!y.done;y=b.next())this.JSC$17948_commandHandler.resolveCommand(y.value,N);if(q.actions)for(q=_.Z(q.actions),b=q.next();!b.done;b=q.next())this.JSC$17948_commandHandler.resolveCommand(b.value,N)}};
kbU[ma]=[_.rO,_.$f(iZn)];var UYA=new _.Jw("INNERTUBE_TOKEN_SERVICE");var fkf=new _.Jw("SCHEDULER_TOKEN");var C3p=function(q){this.scheduler=q;q={};this.tokenMap=(q.app={},q.user={},q)};
C3p.prototype.handleResponse=function(q,N){if(!N)throw Error("Oi");var b;if(q=(b=q.responseContext)==null?void 0:b.innertubeTokenJar){if(q.appTokens){var y,J,E;b=(y=N.innerTubeRequest.context)==null?void 0:(J=y.request)==null?void 0:(E=J.innertubeTokenJar)==null?void 0:E.appTokens;Ika(this,q.appTokens,this.tokenMap.app,b)}if(q.userTokens){var F,R,c;N=(F=N.innerTubeRequest.context)==null?void 0:(R=F.request)==null?void 0:(c=R.innertubeTokenJar)==null?void 0:c.userTokens;Ika(this,q.userTokens,this.tokenMap.user,
N)}}};
C3p.prototype.processContext=function(q){q.request||(q.request={});var N=Object.keys(this.tokenMap.app).length,b=Object.keys(this.tokenMap.user).length;if(N||b)q.request.innertubeTokenJar={},N&&(q.request.innertubeTokenJar.appTokens=[].concat(_.a9(Object.values(this.tokenMap.app).flat()))),b&&(q.request.innertubeTokenJar.userTokens=[].concat(_.a9(Object.values(this.tokenMap.user).flat())))};
var Ika=function(q,N,b,y){N=_.Z(N);for(var J=N.next(),E={};!J.done;E={token$jscomp$139:void 0},J=N.next()){E.token$jscomp$139=J.value;if(E.token$jscomp$139.type===void 0)throw new _.IO("InnerTube token has no type",E.token$jscomp$139);if(E.token$jscomp$139.clearTokens)b[E.token$jscomp$139.type]=[];else if(E.token$jscomp$139.value!==void 0){b[E.token$jscomp$139.type]||(b[E.token$jscomp$139.type]=[]);if(y!==void 0&&y.length){J=_.Z(y);for(var F=J.next(),R={};!F.done;R={requestToken:void 0},F=J.next())R.requestToken=
F.value,F=b[E.token$jscomp$139.type].findIndex(function(c){return function(z){return z===c.requestToken||(0,_.nM.equals)(z,c.requestToken)}}(R)),F>-1&&b[E.token$jscomp$139.type].splice(F,1)}b[E.token$jscomp$139.type].push(E.token$jscomp$139);
E.token$jscomp$139.maxAgeSeconds&&Number(E.token$jscomp$139.maxAgeSeconds)>0&&q.scheduler.addLowPriorityJob(function(c){return function(){var z=b[c.token$jscomp$139.type].indexOf(c.token$jscomp$139);z>-1&&b[c.token$jscomp$139.type].splice(z,1)}}(E),Number(E.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.IO("InnerTube token has no value",E.token$jscomp$139);
}};
C3p[ma]=[fkf];var Tzp=new _.Jw("LOCAL_INNERTUBE_ROUTER_TOKEN"),sWc=new _.Jw("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var kb=function(q){this.serviceMap=q};
kb.prototype.shouldPreferLocalResponse=function(q,N){return(q=n7K(this,q))?q.shouldPreferLocalResponse(N):!1};
kb.prototype.localInnertubeResponse=function(q,N){var b=this,y;return _.d(function(J){return(y=n7K(b,q))?J.return(y.localInnertubeResponse(N)):J.return(Promise.reject(Error("Pi")))})};
kb.prototype.canProvideFallbackResponse=function(q,N){return(q=n7K(this,q))?q.canProvideFallbackResponse(N):!1};
kb.prototype.localFallbackInnertubeResponse=function(q,N){var b=this,y;return _.d(function(J){return(y=n7K(b,q))?J.return(y.localFallbackInnertubeResponse(N)):J.return(Promise.reject(Error("Pi")))})};
var n7K=function(q,N){N=_.wO(N);return N?(q=q.serviceMap[N])?q:null:null};
kb[ma]=[sWc];var t7=function(){};
t7.prototype.shouldPreferLocalResponse=function(){return!1};
t7.prototype.localInnertubeResponse=function(){return _.d(function(q){return q.return(Promise.reject(Error("Qi")))})};
t7.prototype.canProvideFallbackResponse=function(){return!0};
t7.prototype.localFallbackInnertubeResponse=function(){var q,N,b;return _.d(function(y){q=ZI("CLOSE_POPUP");N={openPopupAction:P6d()};b={actions:[q,N]};return y.return(b)})};var Zne=function(q,N){this.JSC$17997_upliftPromise=q;this.store=N};
_.g=Zne.prototype;_.g.shouldPreferLocalResponse=function(q){var N=q.videoId,b;if(b=N)b=pWu(this.store.getState().entities,q.videoId);return b&&PdA(this.store.getState().entities,N)?ouD(this.store.getState().entities,q.playlistId):!1};
_.g.localInnertubeResponse=function(q){var N=this,b;return _.d(function(y){return(b=N.getPlayerResponse(q))?y.return(Promise.resolve(b)):y.return(Promise.reject(Error("Ri")))})};
_.g.canProvideFallbackResponse=function(q){return!!q.videoId};
_.g.localFallbackInnertubeResponse=function(q){var N=this,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(N.JSC$17997_upliftPromise,2);b=N.getPlayerResponse(q);var J;b?J=y.return(Promise.resolve(b)):J=m5(N.store.getState().entities,q.videoId)?y.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.o5(_.FE("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:HHz()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
y.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.o5(_.FE("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:BcR()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return J})};
_.g.getPlayerResponse=function(q){return V9Z(this.store.getState().entities,q.videoId)};var $J=function(q,N){this.localPlayerService=q;this.localWatchNextService=N};
$J.prototype.shouldPreferLocalResponse=function(q){var N=q.playerRequest;q=q.watchNextRequest;return!!(N&&this.localPlayerService.shouldPreferLocalResponse(N)&&q&&this.localWatchNextService.shouldPreferLocalResponse(q))};
$J.prototype.localInnertubeResponse=function(q){var N=this,b,y,J,E;return _.d(function(F){if(F.nextAddress==1){b=q.playerRequest;y=q.watchNextRequest;if(!b||!y)throw new _.IO("Missing streaming request",q);return F.yield(N.localPlayerService.localInnertubeResponse(b),2)}if(F.nextAddress!=3)return J=F.yieldResult,F.yield(N.localWatchNextService.localInnertubeResponse(y),3);E=F.yieldResult;return F.return({playerResponse:J,watchNextResponse:E})})};
$J.prototype.canProvideFallbackResponse=function(q){var N=q.playerRequest;q=q.watchNextRequest;return!!(N&&this.localPlayerService.canProvideFallbackResponse(N)&&q&&this.localWatchNextService.canProvideFallbackResponse(q))};
$J.prototype.localFallbackInnertubeResponse=function(q){var N=this,b,y,J,E;return _.d(function(F){if(F.nextAddress==1)return b=q.playerRequest,y=q.watchNextRequest,b&&y?F.yield(N.localPlayerService.localFallbackInnertubeResponse(b),2):F.return(Promise.reject(new _.IO("Missing streaming request",q)));if(F.nextAddress!=3)return J=F.yieldResult,F.yield(N.localWatchNextService.localFallbackInnertubeResponse(y),3);E=F.yieldResult;return F.return({playerResponse:J,watchNextResponse:E})})};var cV=function(q){this.JSC$18007_persistentStorePromiseAccessor=q};
cV.prototype.shouldPreferLocalResponse=function(){return!1};
cV.prototype.localInnertubeResponse=function(){return _.d(function(q){return q.return(Promise.reject(Error("Si")))})};
cV.prototype.canProvideFallbackResponse=function(){return!0};
cV.prototype.localFallbackInnertubeResponse=function(){var q=this,N,b;return _.d(function(y){return y.nextAddress==1?y.yield(q.JSC$18007_persistentStorePromiseAccessor(),2):y.nextAddress!=3?(N=y.yieldResult)?y.yield(N.get("service:guide:fallback"),3):y.return(Promise.reject(Error("Ti"))):(b=y.yieldResult)&&_.PD(b)?y.return(AHd(_.PD(b))):y.return(Promise.reject(Error("Ui")))})};var mv=function(){};
mv.prototype.shouldPreferLocalResponse=function(){return!1};
mv.prototype.localInnertubeResponse=function(){return _.d(function(q){return q.return(Promise.reject(Error("Vi")))})};
mv.prototype.canProvideFallbackResponse=function(){return!0};
mv.prototype.localFallbackInnertubeResponse=function(){var q,N,b;return _.d(function(y){q=ZI("CLOSE_POPUP");N={openPopupAction:P6d()};b={actions:[q,N]};return y.return(b)})};var dh=function(){this.urlMap=akp;this.fallbackCommand=_.nm};
dh.prototype.shouldPreferLocalResponse=function(q){return(q=q.url)?!!SpC(this,q):!1};
dh.prototype.localInnertubeResponse=function(q){var N=this,b;return _.d(function(y){return(b=q.url)?y.return(WsK(q,SpC(N,b))):y.return(Promise.reject(Error("Wi")))})};
dh.prototype.canProvideFallbackResponse=function(){return!0};
dh.prototype.localFallbackInnertubeResponse=function(q){var N=this,b,y,J,E,F,R,c;return _.d(function(z){b=q.url;if(!b)return z.return(WsK(q,N.fallbackCommand));if(y=SpC(N,b))return z.return(WsK(q,y));J=void 0;E=_.wO(b);E==="/watch"&&(F=_.HY(b,"v"))&&(c=(R=_.HY(b,"list"))!=null?R:void 0,J=_.Mc(F,c));J||(J=N.fallbackCommand);return z.return(WsK(q,J))})};
var SpC=function(q,N){if(N)return q.urlMap[_.fx(N)]},WsK=function(q,N){N&&q.parentTrackingParams&&(N.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:q.parentTrackingParams}},N.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:N})};var u9=function(q,N,b){this.JSC$18018_upliftPromise=q;this.store=N;this.JSC$18018_persistentStorePromiseAccessor=b};
u9.prototype.shouldPreferLocalResponse=function(){return!1};
u9.prototype.localInnertubeResponse=function(){return _.d(function(q){return q.return(Promise.reject(Error("Xi")))})};
u9.prototype.canProvideFallbackResponse=function(){return!0};
u9.prototype.localFallbackInnertubeResponse=function(){var q=this;return _.d(function(N){return N.return(LsA(q))})};
var LsA=function(q){var N,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(p0(q.JSC$18018_upliftPromise,q.store),2);N=y.yieldResult;b={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[MZR(N)]}}}};return y.return(phU(q,b))})},phU=function(q,N){var b,y;
return _.d(function(J){if(J.nextAddress==1)return J.yield(q.JSC$18018_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3)return b=J.yieldResult,J.yield(M1(b),3);y=J.yieldResult;return J.return({responseContext:{},contents:N,topbar:y})})};var F_=function(q,N,b){this.JSC$18025_upliftPromise=q;this.store=N;this.JSC$18025_persistentStorePromiseAccessor=b};
F_.prototype.shouldPreferLocalResponse=function(q){var N=q.videoId;return N&&pWu(this.store.getState().entities,N)&&PdA(this.store.getState().entities,N)?ouD(this.store.getState().entities,q.playlistId):!1};
F_.prototype.localInnertubeResponse=function(q){var N=this,b,y;return _.d(function(J){if(J.nextAddress==1)return(b=q.videoId)?J.yield(N.JSC$18025_upliftPromise,2):J.return(Promise.reject(Error("Yi")));if(J.nextAddress!=3)return J.yield(P3W(N,q,b),3);y=J.yieldResult;return J.return(Mcf(N,y,b))})};
F_.prototype.canProvideFallbackResponse=function(q){return q.videoId?!0:!1};
F_.prototype.localFallbackInnertubeResponse=function(q){var N=this,b,y,J,E;return _.d(function(F){switch(F.nextAddress){case 1:return(b=q.videoId)?F.yield(N.JSC$18025_upliftPromise,2):F.return(Promise.reject(Error("Yi")));case 2:return F.yield(P3W(N,q,b),3);case 3:y=F.yieldResult;if(m5(N.store.getState().entities,b)){F.jumpTo(4);break}return F.yield(p0(N.JSC$18025_upliftPromise,N.store),5);case 5:return J=F.yieldResult,F.return(o7A(y,J));case 4:return pWu(N.store.getState().entities,b)&&PdA(N.store.getState().entities,
b)?F.return(Mcf(N,y,b)):(E={title:_.o5(_.FE("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:HHz()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},F.return(o7A(y,E)))}})};
var P3W=function(q,N,b){var y,J,E,F,R;return _.d(function(c){if(c.nextAddress==1)return y=N.playlistId,J=_.Mc(b,y),c.yield(q.JSC$18025_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3)return E=c.yieldResult,c.yield(M1(E),3);F=c.yieldResult;R={responseContext:{},currentVideoEndpoint:J,topbar:F};return c.return(R)})},Mcf=function(q,N,b){if(q=m5(q.store.getState().entities,b)){var y;
b=q.videoEntity;var J,E={title:Ae(b.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.eg((y=b.localizedStrings)==null?void 0:y.viewCount),viewCount:_.eg((J=b.localizedStrings)==null?void 0:J.viewCount)}}};b.publishedTimestampMillis&&(E.dateText=_.eg(zkn(new Date(Number(b.publishedTimestampMillis)))));y={videoPrimaryInfoRenderer:E};J=q.videoEntity;q=q.channelEntity;q={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Ae(_.FE("SHOW_MORE",void 0,"Show more")),
showLessText:Ae(_.FE("SHOW_LESS",void 0,"Show less")),description:J.formattedDescription,owner:{videoOwnerRenderer:{title:Ae(q.title),thumbnail:q.avatar}}}};N.contents={twoColumnWatchNextResults:{results:{results:{contents:[y,q]}}}}}return N},o7A=function(q,N){q.contents={singleColumnWatchNextResults:{results:{results:{contents:[MZR(N)]}}}};
return q};var zt=function(q,N,b){this.JSC$18030_upliftPromise=q;this.store=N;this.JSC$18030_persistentStorePromiseAccessor=b};
zt.prototype.shouldPreferLocalResponse=function(){return!1};
zt.prototype.localInnertubeResponse=function(){return _.d(function(q){return q.return(Promise.reject(Error("Zi")))})};
zt.prototype.canProvideFallbackResponse=function(){return!0};
zt.prototype.localFallbackInnertubeResponse=function(){var q=this,N,b,y,J;return _.d(function(E){switch(E.nextAddress){case 1:return E.yield(q.JSC$18030_persistentStorePromiseAccessor(),2);case 2:return N=E.yieldResult,E.yield(M1(N),3);case 3:return b=E.yieldResult,y={responseContext:{},topbar:b},E.yield(q.JSC$18030_upliftPromise,4);case 4:return E.yield(p0(q.JSC$18030_upliftPromise,q.store),5);case 5:return J=E.yieldResult,y.watchStatus={backgroundPromoRenderer:J},E.return(y)}})};var AbK,eta;_.UP=new _.Jw("ENDPOINT_MAP");AbK=new _.Jw("WATCH_ENDPOINT_MAP");eta=new _.Jw("REEL_ENDPOINT_MAP");var bKA=/^[a-zA-Z0-9_\-]{11}$/;var ypz=_.x_(function(){var q,N;return(N=(q=window).matchMedia)==null?void 0:N.call(q,"(prefers-reduced-motion: reduce)").matches});var Bza=_.x_(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 q=_.Ng("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");q||(q=_.iC("VIDEO"),_.zn("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
q));return!!(q&&q.canPlayType&&q.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var HMU=XMLHttpRequest.prototype.fetch,qNd=HMU&&HMU.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!cv?!0:!1;var f5=function(q){this.JSC$18041_storeWithEntities=q};
_.Y(f5,NJ);_.g=f5.prototype;_.g.getApiPaths=function(){return L1o};
_.g.getExtension=function(q){return _.v(q,_.nx)||_.v(q,_.uI)||_.v(q,sRj)};
_.g.isNavigationCommand=function(){return!0};
_.g.JSC$14256_getStoreKey=function(q){if((_.x("kevlar_cache_on_ttl_player")||_.x("mweb_enable_shorts_innertube_player_prefetch")||_.x("mweb_use_new_history_manager")||_.x("web_shorts_prefetch_service_enabled"))&&(q=this.getExtension(q))&&q.videoId){var N={videoId:q.videoId};q.playlistId&&(N.playlistId=q.playlistId);q.playerParams&&(N.params=q.playerParams);return _.se("player",N)}};
_.g.JSC$14249_getClientScreen=function(q){var N;return((N=q.contentPlaybackContext)==null?void 0:N.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.g.JSC$14249_buildRequest=function(q,N,b){if(_.x("enable_interstitial_entity_check")){var y=this.JSC$18041_storeWithEntities;if(N.videoId)for(var J=_.Z(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),E=J.next();!E.done;E=J.next()){E=E.value;var F;var R=void 0,c=void 0,z=N.videoId,m=E;(F=y)?(z=_.yU(z+m,"interstitialInteractionStateEntity"),F=(R=(c=_.Ji(F.getState().entities,"interstitialInteractionStateEntity",z))==null?void 0:c.primaryButtonClicked)!=null?R:!1):F=!1;if(F)switch(E){case "CONTENT_CHECK_REQUIRED":N.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":N.racyCheckOk=!0}}}N.videoId&&(q.videoId=N.videoId);N.playlistId&&(q.playlistId=N.playlistId);N.index!==void 0&&(q.playlistIndex=N.index+1);N.playerParams&&(q.params=N.playerParams);"startTimeSeconds"in N&&N.startTimeSeconds&&(_.x("enable_player_request_builder_start_time_floor")?q.startTimeSecs=Math.floor(N.startTimeSeconds):q.startTimeSecs=N.startTimeSeconds);b.contentPlaybackContext&&(q.playbackContext={contentPlaybackContext:b.contentPlaybackContext});b.prefetchPlaybackContext&&
(q.playbackContext=Object.assign({},q.playbackContext,{prefetchPlaybackContext:b.prefetchPlaybackContext}),q.context.request||(q.context.request={}),q.context.request.isPrefetch=!0);q.playbackContext||(q.playbackContext={});y=Bza();q.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!y,supportXhr:qNd};b.overrideMutedAtStart&&(q.overrideMutedAtStart=b.overrideMutedAtStart);q.racyCheckOk=!!N.racyCheckOk;q.contentCheckOk=!!N.contentCheckOk;!_.x("captions_prefs_killswitch")&&(b=(b=_.XH("yt-player-caption-language-preferences"))?
b:[],b==null?0:b.length)&&(q.captionParams={viewerSelectedCaptionLangs:b})};
_.g.getRequestConfig=function(q){q=this.JSC$14256_getStoreKey(q);var N;q&&(N={storeStrategy:{storeKey:q}});_.x("web_log_player_watch_next_ticks")&&(N=N||{},N.requestTick="ps_s",N.responseTick="ps_r");return N};
f5[ma]=[BD];var C5=function(q,N){this.playerRequestBuilder=q;this.watchNextRequestBuilder=N};
_.Y(C5,NJ);C5.prototype.getApiPaths=function(){return kkx};
C5.prototype.getExtension=function(q){return _.v(q,_.nx)};
C5.prototype.isNavigationCommand=function(){return!0};
C5.prototype.JSC$14249_buildRequest=function(q,N,b){q.playerRequest={};this.playerRequestBuilder.JSC$14249_buildRequest(q.playerRequest,N,b);_.x("web_streaming_watch")&&(q.watchNextRequest={},this.watchNextRequestBuilder.JSC$14249_buildRequest(q.watchNextRequest,N,b))};
C5[ma]=[f5,Da];var NEp;_.Ib=new _.Jw("SHORTS_CONTROLLER_TOKEN");NEp=new _.Jw("SHORTS_STATE_STORE_TOKEN");var T0=function(q,N){var b=_.MB.apply(2,arguments);q=q===void 0?0:q;_.IO.call(this,N,b);this.errorType=q;Object.setPrototypeOf(this,this.constructor.prototype)};
_.Y(T0,_.IO);var bFC,yWx,JWN,R9C,h7,led,ZFU,gNp,uzB,dIB,RpX;bFC=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(q){return q+"="}).join("|"));
yWx=RegExp(".*\\?.*playnext=1.*");JWN=function(q,N,b,y,J){this.watchEndpointMap=q;this.reelWatchEndpointMap=N;this.innerTubeTransportService=b;this.fetchPbj=y;this.reloadOnPlayerFailure=J===void 0?!0:J};
_.ENB=function(q,N){var b=_.VX("web_pbj_log_warning_rate",0);b=b>0&&Math.random()<b;var y;if((y=_.v(N.commandMetadata,_.gg))==null||!y.rootVe)return b&&_.M6(Error("dj")),!1;var J;y=(J=_.v(N.commandMetadata,_.gg))==null?void 0:J.url;if(!y)return b&&_.M6(Error("ej")),!1;if(yWx.test(y))return!0;if(bFC.test(y))return b&&_.M6(Error("fj`"+y)),!1;if(_.v(N,_.nx)){if(!(q.watchEndpointMap.watchNext&&q.watchEndpointMap.player||_.x("kevlar_fetch_initial_data_op_watch_client")))return b&&_.M6(Error("$i")),!1;
q=_.VX("web_pbj_log_warning_rate",0);q=q>0&&Math.random()<q;_.v(N,_.nx)?qGn(N)?N=!0:(q&&_.M6(Error("aj")),N=!1):(q&&_.M6(Error("$i")),N=!1);return N}if(_.v(N,_.uI))return NuJ(N);if(_.v(N,_.Nz))return!0;q=_.C6(q.innerTubeTransportService,N);!q&&b&&_.po(Error("gj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(N)});return q};
R9C=function(q,N,b,y,J,E){N={url:N};if(b==null?0:b.itct)N.parentTrackingParams=b.itct;var F=_.LD(qiT);return _.ZG(q.innerTubeTransportService,N,F).then(function(R){(R=R.endpoint)||(R=_.nm);(b==null?0:b.itct)&&R&&!R.trackingParams&&(R.trackingParams=b.itct);var c=d5(R);return h7(q,R,b,y,c,J,E)})};
h7=function(q,N,b,y,J,E,F,R){R=R===void 0?{}:R;if(q.fetchPbj&&!_.ENB(q,N)&&!_.x("force_one_platform")){R=q.fetchPbj(N);var c=_.bG(R.then(function(S){if(!S)throw Error("hj");F(c)||E(N,S);return S}));
return c}var z,m,r={rootVe:(z=_.v(N.commandMetadata,_.gg))==null?void 0:z.rootVe,url:(m=_.v(N.commandMetadata,_.gg))==null?void 0:m.url,endpoint:N,page:J};if(_.v(N,_.nx)){var X,V={contentPlaybackContext:_.HD(b,(X=_.v(N.commandMetadata,_.gg))==null?void 0:X.url,y)},G=_.T4();_.x("web_streaming_watch")&&window.TextDecoderStream?(R=lA1(q.innerTubeTransportService,N,V,function(S){!r.response&&S.content&&(r.response=S.content);!r.playerResponse&&S.player&&(r.playerResponse=S.player);E(N,r)}),z=aYn(N),z.length&&
(r.preconnect=z,E(N,r)),gNp(R,G,r).catch(function(S){S instanceof T0&&S.errorType===2&&_.x("web_streaming_watch_fallback")&&ZFU(q,N,V,r,E,F,G)})):ZFU(q,N,V,r,E,F,G);
return G.promise}if(_.v(N,_.uI)){var w;if(((w=_.v(N,_.uI))==null?void 0:w.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var D=_.T4();_.FWd(_.tz().resolve(_.Ib),N).then(function(S){RpX(q,b,y,J,E,D,S)});
return D.promise}R=_.bG();var k;z={contentPlaybackContext:_.HD(b,(k=_.v(N.commandMetadata,_.gg))==null?void 0:k.url,y)};(k=q.reelWatchEndpointMap.player)&&(k=k().JSC$14249_getRequest(N,z))&&(R=_.ZG(q.innerTubeTransportService,k.innerTubeRequest,k.input,N.clickTrackingParams,k.config));k=_.bG();(m=q.reelWatchEndpointMap.reelItemWatch)&&(m=m().JSC$14249_getRequest(N))&&(k=_.ZG(q.innerTubeTransportService,m.innerTubeRequest,m.input,N.clickTrackingParams,m.config));m=_.bG();(X=q.reelWatchEndpointMap.reelWatchSequence)&&
_.v(N,_.uI).sequenceParams&&(z=X().JSC$14249_getRequest(N,z))&&(_.x("web_enable_delay_shorts_sequence_call_forget")?_.ZG(q.innerTubeTransportService,z.innerTubeRequest,z.input,N.clickTrackingParams,z.config):m=_.ZG(q.innerTubeTransportService,z.innerTubeRequest,z.input,N.clickTrackingParams,z.config));z=_.bG(r);X=_.T4();dIB(N,z,R,k,m,E,F,X);return X.promise}var f;if(_.v(N,gxC)&&((f=_.v(N.commandMetadata,_.gg))==null?0:f.url))return R=usd(_.N0(Wh().location.href),_.N0(_.v(N.commandMetadata,_.gg).url)).toString(),
R9C(q,R,b,y,E,function(){return!1});
if(_.v(N,_.Nz))return E(N,r),_.bG(r);if(_.C6(q.innerTubeTransportService,N)){R=Object.assign({},{tempData:b,disableCache:b.disableCache},R);var L=_.IE(q.innerTubeTransportService,N,R).then(function(S){r.response=S;F(L)||E(N,r);return r});
return L}return _.bG(r)};
_.cWC=function(q,N,b,y){if(_.v(N,_.nx)||_.v(N,_.uI)&&(_.x("mweb_enable_shorts_innertube_player_prefetch")||_.x("kevlar_enable_shorts_prefetch_in_sequence"))||_.v(N,sRj)&&_.x("web_enable_prefetching_videos_on_home")){var J,E={contentPlaybackContext:_.HD(b,(J=_.v(N.commandMetadata,_.gg))==null?void 0:J.url,y),prefetchPlaybackContext:EvJ(b)},F,R,c;if(((F=_.v(N,_.nx))==null?void 0:(R=F.watchEndpointSupportedPrefetchConfig)==null?void 0:(c=R.prefetchHintConfig)==null?void 0:c.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(b=
q.watchEndpointMap.watchNext)if(E=b().JSC$14249_getRequest(N,E))return Promise.resolve(_.ZG(q.innerTubeTransportService,E.innerTubeRequest,E.input,void 0,E.config).then(function(r){return r}))}else if(b=q.watchEndpointMap.player)if(E=b().JSC$14249_getRequest(N,E))return Promise.resolve(_.ZG(q.innerTubeTransportService,E.innerTubeRequest,E.input,void 0,E.config).then(function(r){return r}))}else if(_.C6(q.innerTubeTransportService,N)){var z={tempData:b},m=Y9M(q.innerTubeTransportService,N);
return m?new Promise(function(r,X){var V,G;return _.d(function(w){if(w.nextAddress==1)return w.yield(m,2);if(w.nextAddress!=4)return V=w.yieldResult,V.JSC$14256_getStoreKey(N,z)?w.yield(_.IE(q.innerTubeTransportService,N,z),4):(X(new _.IO("Prefetching request builder with no store key.",N)),w.jumpTo(0));G=w.yieldResult;r(G);_.hj(w)})}):Promise.reject(new _.IO("Prefetching unregistered request builder.",N))}return Promise.reject(new _.IO("No request builder available to prefetch endpoint.",N))};
led=function(q,N){var b,y,J;if(_.v(N,_.nx)){var E=q.watchEndpointMap.watchNext;E&&(b=E());(q=q.watchEndpointMap.player)&&(y=q())}else if(_.v(N,_.uI))(E=q.reelWatchEndpointMap.reelItemWatch)&&(b=E()),(E=q.reelWatchEndpointMap.player)&&(y=E()),(q=q.reelWatchEndpointMap.reelWatchSequence)&&(J=q());else{a:{q=c1J(N,q.innerTubeTransportService.endpointMap);if(q!==void 0)if(typeof q.then==="function")_.po(new _.IO("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",N));else break a;
q=void 0}q&&(b=q)}var F,R,c;return{content:(F=b)==null?void 0:F.JSC$14256_getStoreKey(N),player:(R=y)==null?void 0:R.JSC$14256_getStoreKey(N),reelSequence:(c=J)==null?void 0:c.JSC$14256_getStoreKey(N)}};
ZFU=function(q,N,b,y,J,E,F){var R=_.bG(),c=q.watchEndpointMap.player;_.x("web_streaming_player")&&(c=DU(C5));c&&(c=c().JSC$14249_getRequest(N,b))&&(R=_.ZG(q.innerTubeTransportService,c.innerTubeRequest,c.input,N.clickTrackingParams,c.config));c=_.bG();var z=q.watchEndpointMap.watchNext;z&&(b=z().JSC$14249_getRequest(N,b))&&(c=_.ZG(q.innerTubeTransportService,b.innerTubeRequest,b.input,N.clickTrackingParams,b.config));y=_.bG(y);uzB(q,N,y,R,c,J,E,F)};
gNp=function(q,N,b){var y;return _.d(function(J){if(J.nextAddress==1)return J.yield(q,2);_.x("web_streaming_watch_delay_200")||_.x("web_streaming_watch_delay_400")?(y=_.x("web_streaming_watch_delay_200")?200:400,setTimeout(function(){N.resolve(b)},y)):N.resolve(b);
_.hj(J)})};
uzB=function(q,N,b,y,J,E,F,R){var c,z,m,r,X;_.d(function(V){switch(V.nextAddress){case 1:return V.yield(b,2);case 2:c=V.yieldResult;if(F(R.promise))return R.resolve(c),V.return();E(N,c);z=aYn(N);if(!z.length){V.jumpTo(3);break}return V.yield(b,4);case 4:c.preconnect=z,E(N,c);case 3:return _.Yi(V,5),V.yield(y,7);case 7:m=V.yieldResult;_.Ea(V,6);break;case 5:return r=_.K7(V),R.reject(r),V.return();case 6:if(m===void 0&&q.reloadOnPlayerFailure)return c.reload=!0,E(N,c),R.resolve(c),V.return();if(F(R.promise))return R.resolve(c),
V.return();c.playerResponse=m;E(N,c);_.x("web_watch_stop_scheduler_on_player_response")&&liR();_.Yi(V,8);return V.yield(J,10);case 10:X=V.yieldResult;_.Ea(V,9);break;case 8:_.K7(V);case 9:if(X===void 0)return c.response={responseContext:{}},R.resolve(c),V.return();if(F(R.promise))return R.resolve(c),V.return();c.response=X;E(N,c);R.resolve(c);_.hj(V)}})};
dIB=function(q,N,b,y,J,E,F,R){var c,z,m,r,X,V;_.d(function(G){switch(G.nextAddress){case 1:return G.yield(N,2);case 2:c=G.yieldResult;if(F(R.promise))return R.resolve(c),G.return();E(q,c);z=aYn(q);if(!z.length){G.jumpTo(3);break}return G.yield(N,4);case 4:c.preconnect=z,E(q,c);case 3:return _.Yi(G,5),G.yield(b,7);case 7:m=G.yieldResult;_.Ea(G,6);break;case 5:return r=_.K7(G),R.reject(r),G.return();case 6:if(m===void 0)return c.reload=!0,E(q,c),R.resolve(c),G.return();if(F(R.promise))return R.resolve(c),
G.return();c.playerResponse=m;E(q,c);_.x("web_shorts_stop_scheduler_on_player_response")&&liR();_.Yi(G,8);return G.yield(y,10);case 10:X=G.yieldResult;_.Ea(G,9);break;case 8:_.K7(G);case 9:if(X===void 0)return c.response={responseContext:{}},R.resolve(c),G.return();if(F(R.promise))return R.resolve(c),G.return();c.response=X;E(q,c);_.Yi(G,11);return G.yield(J,13);case 13:V=G.yieldResult;_.Ea(G,12);break;case 11:_.K7(G);case 12:if(F(R.promise))return R.resolve(c),G.return();V&&(c.reelWatchSequenceResponse=
V);E(q,c);R.resolve(c);_.hj(G)}})};
RpX=function(q,N,b,y,J,E,F){var R,c,z,m,r,X;_.d(function(V){if((R=F)==null||!R.replacementEndpoint)return E.reject(),V.return();c=F.replacementEndpoint;(z=_.v(c,_.uI))?(F.sequenceContinuation&&(z.sequenceParams=F.sequenceContinuation),m=_.tz().resolve(_.Ib),r=z.sequenceParams,zpa(m,c)&&delete z.sequenceParams,X=h7(q,c,N,b,y,J,function(){return!1}),X.then(function(G){return _.d(function(w){if(w.nextAddress==1)return $Ix(m,{reelWatchEndpoint:{sequenceParams:r}},G),w.yield(0,2);
E.resolve(G);_.hj(w)})})):E.reject();
_.hj(V)})};
JWN[ma]=[AbK,eta,_.tN,_.$f(j14)];var tGU=function(){var q=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return q.sequenceMap}}},KLR=function(q,N,b){var y,J=(y=N.config)==null?void 0:y.sequenceStrategy;
if(!J)return b();q.sequenceMap.has(J.sequenceKey)||q.sequenceMap.set(J.sequenceKey,[]);q=q.sequenceMap.get(J.sequenceKey);switch(J.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return mIc(q,N,b);case "REQUEST_SEQUENCE_TYPE_REPLACE":return rWK(q,N,b);default:throw new _.IO("Request could not be sequenced",N);}},mIc=function(q,N,b){var y,J,E;
return _.d(function(F){q.length>0?(J=q[q.length-1],y=J.responsePromise.then(function(){return b()})):y=b();
E={request:N,responsePromise:y};q.push(E);XYA(q,E);return F.return(E.responsePromise)})},rWK=function(q,N,b){b=b();
if(q.length>0)for(var y=_.Z(q),J=y.next();!J.done;J=y.next())J.value.responsePromise=b;var E={request:N,responsePromise:b};q.push(E);XYA(q,E);return Promise.resolve().then(function(){return q.indexOf(E)>0?E.responsePromise.then(function(F){return Object.assign({},F,{sequenceMetaData:{skipProcessing:!0}})}):E.responsePromise})},XYA=function(q,N){N.responsePromise.then(function(){var b=q.indexOf(N);
b>-1&&q.splice(b,1)})};var VGA=new _.Jw("REQUEST_SEQUENCING");var sP=function(){};
_.Y(sP,NJ);sP.prototype.getApiPaths=function(){return[]};
sP.prototype.getExtension=function(q){return _.v(q,xtJ)};
sP.prototype.JSC$14249_buildRequest=function(q,N){q.recaptchaToken=N.recaptchaToken};
sP.prototype.getApiUrl=function(){return"/das_captcha"};var n5=function(){};
_.Y(n5,NJ);n5.prototype.getApiPaths=function(){return qrx};
n5.prototype.getExtension=function(q){return _.v(q,qCx)};
n5.prototype.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;N.createBackstagePostParams&&(q.createBackstagePostParams=N.createBackstagePostParams);b.comment_text&&(q.commentText=b.comment_text);if(b.attached_video_id)q.videoAttachment={videoId:b.attached_video_id};else if(b.image_poll_options)q.pollAttachmentData={options:b.image_poll_options};else if(b.poll_options)q.pollAttachment={choices:b.poll_options};else if(b.quiz_options)q.quizAttachmentData={options:b.quiz_options};else if(b.image_blob_id)q.imageAttachment=
{encryptedBlobId:b.image_blob_id},b.source_video_id&&(q.imageAttachment.sourceExternalVideoId=b.source_video_id),b.image_preview_coordinates&&(q.imageAttachment.previewCoordinates=JSON.parse(b.image_preview_coordinates));else if(b.images_data)q.imagesAttachment={imagesData:b.images_data};else if(b.clip_external_video_id!==void 0||b.clip_offset_ms!==void 0||b.clip_duration_ms!==void 0){var y,J,E,F,R;q.clipAttachment={externalVideoId:(E=b.clip_external_video_id)!=null?E:"",offsetMs:(F=(y=b.clip_offset_ms)==
null?void 0:y.toString())!=null?F:"",durationMs:(R=(J=b.clip_duration_ms)==null?void 0:J.toString())!=null?R:""}}else b.shared_post_id&&(q.sharedPostAttachment={postId:b.shared_post_id});b.tagged_video_id&&(q.postCreationData={taggedVideoId:b.tagged_video_id});b.access_restrictions&&(typeof b.access_restrictions==="number"&&(N=b.access_restrictions,q.accessRestrictions={restriction:N!==1&&N===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof b.access_restrictions==="string"&&
(q.accessRestrictionsParams=b.access_restrictions));b.scheduled_publish_time_sec&&(q.scheduledPublishTimeSec=b.scheduled_publish_time_sec.toString())};var ab=function(){};
_.Y(ab,NJ);ab.prototype.getApiPaths=function(){return Zu1};
ab.prototype.getExtension=function(q){return _.v(q,eZ1)};
ab.prototype.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;N.decorateMessageParams&&(q.params=N.decorateMessageParams);b.text&&(q.text=b.text)};var SM=function(){};
_.Y(SM,NJ);SM.prototype.getApiPaths=function(){return wfE};
SM.prototype.getExtension=function(q){return _.v(q,NkM)};
SM.prototype.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;b.video_id&&(q.videoId=b.video_id)};var W9=function(){};
_.Y(W9,NJ);W9.prototype.getApiPaths=function(){return hho};
W9.prototype.getExtension=function(q){return _.v(q,_.EY)};
W9.prototype.JSC$14249_buildRequest=function(q,N,b){b.suggestions_query&&(q.input=b.suggestions_query)};var L5=function(){};
_.Y(L5,NJ);L5.prototype.getApiPaths=function(){return uh1};
L5.prototype.getExtension=function(q){return _.v(q,bz1)};
L5.prototype.JSC$14249_buildRequest=function(q,N,b){b.comment_text!==void 0&&(q.commentText=b.comment_text);b.scheduled_publish_time_sec&&(q.scheduledPublishTimeSec=b.scheduled_publish_time_sec.toString());q.updateBackstagePostParams=N.updateBackstagePostParams};var p5=function(){};
_.Y(p5,NJ);p5.prototype.getApiPaths=function(){return TK};
p5.prototype.getExtension=function(q){return _.v(q,_.lR)};
p5.prototype.JSC$14249_buildRequest=function(q,N,b){b.formData&&(q.formData=b.formData);N.token?q.continuation=N.token:N.continuationTokenKey&&(b=_.WT().getState(),N=_.Ji(b.entities,"continuationTokenEntity",N.continuationTokenKey))&&(q.continuation=String(N.continuationToken))};
var jAK=function(){};
_.Y(jAK,NJ);_.g=jAK.prototype;_.g.getApiPaths=function(){return TK};
_.g.getExtension=function(q){return _.v(q,_.FH)};
_.g.isNavigationCommand=function(){return!0};
_.g.JSC$14256_getStoreKey=function(q){if((q=this.getExtension(q))&&q.browseId){var N={browseId:q.browseId};q.browseEndpointContextSupportedConfigs&&(N.browseEndpointContextSupportedConfigs=JSON.stringify(q.browseEndpointContextSupportedConfigs));q.params&&(N.params=q.params);q.query&&(N.query=q.query);return _.se("browse",N)}};
_.g.JSC$14249_buildRequest=function(q,N,b){N.browseId&&(q.browseId=N.browseId);N.params&&(q.params=N.params);N.query&&(q.query=N.query);b.formData?q.formData=b.formData:N.formData&&(q.formData=N.formData);N.browseId==="FEsubscriptions"&&_.c3().getFlag(155)&&(q.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");N.browseId==="SPaccount_playback"&&(b=_.c3(),q.formData||(q.formData={}),q.formData.accountSettingsFormData={flagCaptionsDefaultOff:b.getFlag(65),flagAutoCaptionsDefaultOn:b.getFlag(66),
flagDisableInlinePreview:b.getFlag(186),flagAudioDescriptionDefaultOn:b.getFlag(198)});if(N.browseId==="FEwhat_to_watch"){b=_.c3();var y=b.getFlag(196);b.getFlag(197)&&(q.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:y}}})}N.browseId==="FEwhat_to_watch"&&(N=_.c3().getFlag(186),q.inlineSettingStatus=N?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.g.getRequestConfig=function(q,N){N=N===void 0?{}:N;var b={};if(q=this.JSC$14256_getStoreKey(q,N))b.storeStrategy={storeKey:q,disableCache:N.disableCache};_.x("web_log_browse_ticks_ks")||(b.requestTick="br_s",b.responseTick="br_r");return b};var P9=function(){};
_.Y(P9,NJ);P9.prototype.getApiPaths=function(){return Miv};
P9.prototype.getExtension=function(q){return _.v(q,KCq)};
P9.prototype.JSC$14249_buildRequest=function(q,N,b){q.legacyYoutubeChannelUsername=b.legacyYouTubeChannelUsername||"";q.legacyYoutubeChannelPassword=b.legacyYouTubeChannelPassword||""};var M4=function(){};
_.Y(M4,NJ);M4.prototype.getApiPaths=function(){return Nl1};
M4.prototype.getExtension=function(q){return _.v(q,Rjj)};
M4.prototype.JSC$14249_buildRequest=function(q,N,b){b.recaptcha_response_token&&(q.recaptchaResponseToken=b.recaptcha_response_token);b.channel_id&&(q.channelId=b.channel_id)};var ob=function(){};
_.Y(ob,NJ);ob.prototype.getApiPaths=function(){return zeT};
ob.prototype.getExtension=function(q){return _.v(q,tVJ)};
ob.prototype.JSC$14249_buildRequest=function(q,N,b){N.externalChannelId&&(q.externalChannelId=N.externalChannelId);b.handle&&(q.handleUpdate={handle:b.handle},N.handleEditSource&&(q.handleUpdate.handleEditSource=N.handleEditSource))};var Ag=function(){};
_.Y(Ag,NJ);Ag.prototype.getApiPaths=function(){return rYx};
Ag.prototype.getExtension=function(q){return _.v(q,IhM)};
Ag.prototype.JSC$14249_buildRequest=function(q,N,b){N.request&&(q.channelId=N.request.channelId);var y;if(b==null?0:(y=b.uploadDefaults)==null?0:y.emojiReactionSet)q.uploadDefaultsRequest||(q.uploadDefaultsRequest={}),q.uploadDefaultsRequest.emojiReactionSet=b.uploadDefaults.emojiReactionSet};var eM=function(){};
_.Y(eM,NJ);eM.prototype.getApiPaths=function(){return jc4};
eM.prototype.getExtension=function(q){return _.v(q,d21)};
eM.prototype.JSC$14249_buildRequest=function(q,N,b){N.externalChannelId&&(q.externalChannelId=N.externalChannelId);N.channelHandleEntityKey&&(q.channelHandleEntityKey=N.channelHandleEntityKey);N.handleEditSource&&(q.handleEditSource=N.handleEditSource);b.handle?q.handle=b.handle:b.name&&(q.name=b.name)};var B9=function(){};
_.Y(B9,NJ);B9.prototype.getApiPaths=function(){return eYv};
B9.prototype.getExtension=function(q){return _.v(q,Kyx)};
B9.prototype.JSC$14249_buildRequest=function(q,N){N.actions?q.actions=N.actions:N.action&&(q.actions=[N.action])};var H9=function(){};
_.Y(H9,NJ);H9.prototype.getApiPaths=function(){return BKl};
H9.prototype.getExtension=function(q){return _.v(q,_.lR)};
H9.prototype.JSC$14249_buildRequest=function(q,N){N.token&&(q.continuation=N.token)};var qG=function(){};
_.Y(qG,NJ);qG.prototype.getApiPaths=function(){return QZ1};
qG.prototype.getExtension=function(q){return _.v(q,_.lR)};
qG.prototype.JSC$14249_buildRequest=function(q,N){q.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";N.token&&(q.fetchCommentsParams={continuation:N.token})};var NG=function(){};
_.Y(NG,NJ);NG.prototype.getApiPaths=function(){return yAq};
NG.prototype.getExtension=function(q){return _.v(q,lto)};
NG.prototype.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;N.createReplyParams&&(q.createReplyParams=N.createReplyParams);N.commentText&&(q.commentText=_.ao(N.commentText));b.comment_text&&(q.commentText=b.comment_text);b.image_blob_id&&(q.imageAttachment={encryptedBlobId:b.image_blob_id});b.botguard_response&&(q.botguardResponse=b.botguard_response)};
_.$H.Object.defineProperties(NG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var b4=function(){};
_.Y(b4,NJ);b4.prototype.getApiPaths=function(){return JAx};
b4.prototype.getExtension=function(q){return _.v(q,_.ig1)};
b4.prototype.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;N.createCommentParams&&(q.createCommentParams=N.createCommentParams);N.commentText&&(q.commentText=_.ao(N.commentText));N.videoPositionMention&&(q.videoPositionMention=N.videoPositionMention);N.sources&&(q.sources=N.sources);b.comment_text&&(q.commentText=b.comment_text);b.attached_video_id?q.videoAttachment={videoId:b.attached_video_id}:b.poll_options?q.pollAttachment={choices:b.poll_options}:b.image_blob_id?q.imageAttachment=
{encryptedBlobId:b.image_blob_id}:b.shared_post_id&&(q.sharedPostAttachment={postId:b.shared_post_id});b.access_restrictions&&typeof b.access_restrictions==="number"&&(N=b.access_restrictions,q.accessRestrictions={restriction:N!==1&&N===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});b.botguard_response&&(q.botguardResponse=b.botguard_response)};
_.$H.Object.defineProperties(b4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var yc=function(){};
_.Y(yc,NJ);yc.prototype.getApiPaths=function(){return $qj};
yc.prototype.getExtension=function(q){return _.v(q,hkE)};
yc.prototype.JSC$14249_buildRequest=function(q,N,b){N.commentText&&(q.replyText=_.ao(N.commentText));b.comment_text&&(q.replyText=b.comment_text);q.updateReplyParams=N.updateReplyParams};
_.$H.Object.defineProperties(yc.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Jf=function(){};
_.Y(Jf,NJ);Jf.prototype.getApiPaths=function(){return tC1};
Jf.prototype.getExtension=function(q){return _.v(q,DJx)};
Jf.prototype.JSC$14249_buildRequest=function(q,N,b){N.commentText&&(q.commentText=_.ao(N.commentText));b.comment_text&&(q.commentText=b.comment_text);q.updateCommentParams=N.updateCommentParams};
_.$H.Object.defineProperties(Jf.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var EK=function(){};
_.Y(EK,NJ);EK.prototype.getApiPaths=function(){return mqE};
EK.prototype.getExtension=function(q){return _.v(q,kqJ)};
EK.prototype.JSC$14249_buildRequest=function(q,N){N.settings&&(q.settings=N.settings)};var gX=function(){};
_.Y(gX,NJ);gX.prototype.getApiPaths=function(){return XfM};
gX.prototype.getExtension=function(q){return _.v(q,ctR)};
gX.prototype.JSC$14249_buildRequest=function(q,N){N.channelCreationToken&&(q.channelCreationToken=N.channelCreationToken);N.source&&(q.source=N.source)};var Zn=function(){};
_.Y(Zn,NJ);Zn.prototype.getApiPaths=function(){return buF};
Zn.prototype.getExtension=function(q){return _.v(q,$24)};
Zn.prototype.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;if(b.name&&(b.given_name||b.family_name))q=new _.IO("channel creation cannot set both GAIA and YouTube names",N),_.po(q);else{if(N.zeroStepChannelCreationParams){if(!b.comment_text){q=new _.IO("zero_step_create_comment_params but no zero_step_texts",N);_.po(q);return}q.zeroStepChannelCreationParams=N.zeroStepChannelCreationParams;q.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(q.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
b.comment_text,b.botguard_response&&(q.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=b.botguard_response))}q.channelCreationToken=N.channelCreationToken;b.given_name&&(q.givenName=b.given_name);b.family_name&&(q.familyName=b.family_name);N.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(q.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(b.name||b.handle||b.avatar_url||b.encryptedBlobId||b.isNameChanged!==void 0||b.isHandleChanged!==void 0||b.isDefaultProfilePhoto!==
void 0||b.obakeImageSource)q.overrideChannelCreationParams={},b.name&&(q.overrideChannelCreationParams.name=b.name),b.handle&&(q.overrideChannelCreationParams.handle=b.handle),b.avatar_url&&(q.overrideChannelCreationParams.avatarUrl=b.avatar_url),b.encryptedBlobId&&(q.overrideChannelCreationParams.blobEncryptionId=b.encryptedBlobId),b.enableIdentityForAllChannelCreationDialog&&(b.encryptedBlobId?q.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
b.isDefaultProfilePhoto!==void 0&&(q.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=b.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),b.isNameChanged!==void 0&&(q.overrideChannelCreationParams.identityForAllChannelCreationNameTag=b.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),b.isHandleChanged!==
void 0&&(q.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=b.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),b.obakeImageSource&&(q.overrideChannelCreationParams.obakeImageSourceType=b.obakeImageSource))}};var FU=function(){};
_.Y(FU,NJ);FU.prototype.getApiPaths=function(q){return(q=this.getExtension(q))&&q.status==="DISLIKE"?cAj:q&&q.status==="INDIFFERENT"?AAM:I0j};
FU.prototype.getExtension=function(q){return _.v(q,_.lk)};
FU.prototype.JSC$14249_buildRequest=function(q,N){N.target&&(q.target=N.target);if(N=this.getParams(N))q.params=N};
FU.prototype.getParams=function(q){switch(q==null?void 0:q.status){case "DISLIKE":return q.dislikeParams;case "INDIFFERENT":return q.removeLikeParams;default:return q==null?void 0:q.likeParams}};var Rh=function(){};
_.Y(Rh,NJ);Rh.prototype.getApiPaths=function(){return grl};
Rh.prototype.getExtension=function(q){return _.v(q,T7o)};
Rh.prototype.JSC$14249_buildRequest=function(q,N){N.settingItemId&&(q.settingItemId=N.settingItemId);N.stringValue!=null&&N.stringValue!==void 0?q.newValue={stringValue:N.stringValue}:N.intValue?q.newValue={intValue:N.intValue}:N.boolValue!==null&&N.boolValue!==void 0?q.newValue={boolValue:N.boolValue}:(q=new _.IO("Unknown value type for SetSettingEndpoint.",N),_.po(q))};var dX=function(){};
_.Y(dX,NJ);dX.prototype.getApiPaths=function(){return Re1};
dX.prototype.getExtension=function(q){return _.v(q,bEq)||void 0};
dX.prototype.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;N.channelIds&&(q.channelIds=N.channelIds);N.siloName&&(q.siloName=N.siloName);N.params&&(q.params=N.params);b.botguardResponse&&(q.botguardResponse=b.botguardResponse);b.feature&&(q.clientFeature=b.feature)};
_.$H.Object.defineProperties(dX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cg=function(){};
_.Y(cg,NJ);cg.prototype.getApiPaths=function(){return cYv};
cg.prototype.getExtension=function(q){return _.v(q,skx)||void 0};
cg.prototype.JSC$14249_buildRequest=function(q,N){N.channelIds&&(q.channelIds=N.channelIds);N.siloName&&(q.siloName=N.siloName);N.params&&(q.params=N.params)};
_.$H.Object.defineProperties(cg.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var u4=function(q){this.shareClientParamsProvider=q};
_.Y(u4,NJ);u4.prototype.getApiPaths=function(){return qFe};
u4.prototype.getExtension=function(q){return _.v(q,zZF)||_.v(q,_.$To)||_.v(q,u51)};
u4.prototype.JSC$14249_buildRequest=function(q,N){N.serializedShareEntity&&(q.serializedSharedEntity=N.serializedShareEntity);if(N.clientParamIdentifier){var b;if((b=this.shareClientParamsProvider)==null?0:b.clientParams.has(N.clientParamIdentifier)){b=this.shareClientParamsProvider;N=N.clientParamIdentifier;var y=b.clientParams.get(N);y&&b.clientParams.delete(N);q.clientParams=y}}};
u4[ma]=[PBK];var zl=function(){};
_.Y(zl,NJ);zl.prototype.getApiPaths=function(){return LoM};
zl.prototype.getExtension=function(q){return _.v(q,nTx)};
zl.prototype.JSC$14249_buildRequest=function(q,N){N.params&&(q.params=N.params)};var $n=function(){};
_.Y($n,NJ);$n.prototype.getApiPaths=function(){return usM};
$n.prototype.getExtension=function(q){return _.v(q,IY4)};
$n.prototype.JSC$14249_buildRequest=function(q,N){N.dismissal&&(q.items=[N.dismissal])};
_.$H.Object.defineProperties($n.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var tf=function(){};
_.Y(tf,NJ);tf.prototype.getApiPaths=function(){return f0J};
tf.prototype.getExtension=function(q){return _.v(q,_.YJ)||void 0};
tf.prototype.JSC$14249_buildRequest=function(q,N,b){q.feedbackTokens=[];N.feedbackToken&&q.feedbackTokens.push(N.feedbackToken);if(N=N.cpn||b.cpn)q.feedbackContext={cpn:N};q.isFeedbackTokenUnencrypted=!!b.is_feedback_token_unencrypted;q.shouldMerge=!1;b.extra_feedback_tokens&&(q.shouldMerge=!0,q.feedbackTokens=q.feedbackTokens.concat(b.extra_feedback_tokens))};
_.$H.Object.defineProperties(tf.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var m9=function(){};
_.Y(m9,NJ);m9.prototype.getApiPaths=function(){return f0J};
m9.prototype.getExtension=function(q){return _.v(q,_.EY)};
m9.prototype.JSC$14249_buildRequest=function(q,N,b){b.feedback_tokens&&(q.feedbackTokens=b.feedback_tokens,q.shouldMerge=!0)};
_.$H.Object.defineProperties(m9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rX=function(){};
_.Y(rX,NJ);rX.prototype.getApiPaths=function(){return f0J};
rX.prototype.getExtension=function(q){return _.v(q,Xoz)};
rX.prototype.JSC$14249_buildRequest=function(q,N){N.undoToken&&(q.feedbackTokens=[N.undoToken]);N.isUndoTokenUnencrypted&&(q.isFeedbackTokenUnencrypted=N.isUndoTokenUnencrypted)};
_.$H.Object.defineProperties(rX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Qc=function(){};
_.Y(Qc,NJ);Qc.prototype.getApiPaths=function(){return xq4};
Qc.prototype.getExtension=function(q){return _.v(q,UC1)};
Qc.prototype.JSC$14249_buildRequest=function(q,N){N.nextEndpoint&&_.v(N.nextEndpoint,_.b_)?q.nextEndpoint={urlEndpoint:_.v(N.nextEndpoint,_.b_)}:N.nextEndpoint&&_.v(N.nextEndpoint,_.nx)&&(q.nextEndpoint={watchEndpoint:_.v(N.nextEndpoint,_.nx)});N.setRacy&&(q.setRacy=N.setRacy);N.setControvercy&&(q.setControvercy=N.setControvercy)};var OK=function(q){this.JSC$18242_storeWithEntities=q};
_.Y(OK,NJ);OK.prototype.getApiPaths=function(){return $yM};
OK.prototype.getExtension=function(q){return _.v(q,ZOq)};
OK.prototype.JSC$14249_buildRequest=function(q,N){N.flowId&&(q.flowId=N.flowId);N.targetId&&(q.targetId=N.targetId);N.continuation&&(q.continuation=N.continuation);var b=N.flowStateEntityKey;if(N.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&b&&this.JSC$18242_storeWithEntities){var y;if(N=(y=this.JSC$18242_storeWithEntities.getState())==null?void 0:y.entities)if(y=_.qR(b).entityType,y=_.Ji(N,y,b))q.flowState=y,q.flowStateEntityKey=b}};
_.$H.Object.defineProperties(OK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
OK[ma]=[BD];var xId=function(){};
_.Y(xId,NJ);_.g=xId.prototype;_.g.getApiPaths=function(){return Uyo};
_.g.JSC$14256_getStoreKey=function(){return _.se("guide")};
_.g.getRequestConfig=function(){var q=this.JSC$14256_getStoreKey(),N;q&&(N={storeStrategy:{storeKey:q}});return N};
_.g.isNavigationCommand=function(){return!0};
_.g.getExtension=function(q){return _.v(q,_.EY)};
_.g.JSC$14249_buildRequest=function(q){q.fetchLiveState=!0};var wX=function(){};
_.Y(wX,NJ);wX.prototype.getApiPaths=function(){return ox1};
wX.prototype.getExtension=function(q){return _.v(q,Qko)};
wX.prototype.JSC$14249_buildRequest=function(){};var i4=function(){};
_.Y(i4,NJ);i4.prototype.getApiPaths=function(){return AvF};
i4.prototype.getExtension=function(q){return _.v(q,OgE)};
i4.prototype.JSC$14249_buildRequest=function(){};var l4=function(){};
_.Y(l4,NJ);l4.prototype.getApiPaths=function(){return Wo1};
l4.prototype.getExtension=function(q){return _.v(q,_.lR)};
l4.prototype.JSC$14249_buildRequest=function(q,N){N.token&&(q.continuation=N.token);var b,y;q==null||(b=q.context)==null||(y=b.user)==null||delete y.onBehalfOfUser};
l4.prototype.getRequestConfig=function(q){var N={},b;if(((b=this.getExtension(q))==null?void 0:b.sessionIndex)!==void 0){var y;N={authStrategy:{sessionIndex:(y=this.getExtension(q))==null?void 0:y.sessionIndex}}}return N};var KW=function(){};
_.Y(KW,NJ);KW.prototype.JSC$14249_getRequest=function(q){var N=this.getExtension(q),b=q="";if(N==null?0:N.popup)q="true";if(N==null?0:N.disableSignout)b="true";N={};return{input:"/getAccountSwitcherEndpoint",requestShell:Ty("/getAccountSwitcherEndpoint","GET",(N["X-YouTube-Delegation-Context"]=_.M7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),N["X-YouTube-Account-Switcher-Popup"]=q,N["X-YouTube-Account-Switcher-Disable-Signout"]=b,N)),innerTubeRequest:{}}};
KW.prototype.getApiPaths=function(){return[]};
KW.prototype.getExtension=function(q){return _.v(q,_.YWJ)};
KW.prototype.JSC$14249_buildRequest=function(){};var Dn=function(){};
_.Y(Dn,NJ);Dn.prototype.JSC$14249_getRequest=function(q){var N="/cross_account_channel_transfer";(q=this.getExtension(q))&&(N=WjA(N,{target_session:q.targetSessionIndex,source_rapt:q.sourceRapt,rapt:q.targetRapt}));return{input:N,requestShell:Ty(N,"GET"),innerTubeRequest:{}}};
Dn.prototype.getApiPaths=function(){return[]};
Dn.prototype.getExtension=function(q){return _.v(q,w7x)};
Dn.prototype.JSC$14249_buildRequest=function(){};var hf=function(){};
_.Y(hf,NJ);hf.prototype.getApiPaths=function(){return t$o};
hf.prototype.isNavigationCommand=function(){return!0};
hf.prototype.getExtension=function(q){return _.v(q,_.EY)};
hf.prototype.JSC$14249_buildRequest=function(q){var N=_.c3().get("gsml","");N&&(q.safetyModeLockerObfuscatedGaiaId=N);q.userInterfaceTheme=_.D4(!0);_.hN()?q.deviceTheme="DEVICE_THEME_SELECTED":_.Rhu()?q.deviceTheme="DEVICE_THEME_SUPPORTED":q.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var kn=function(){};
_.Y(kn,NJ);kn.prototype.getApiPaths=function(){return Wo1};
kn.prototype.getExtension=function(q){return _.v(q,ivq)};
kn.prototype.JSC$14249_buildRequest=function(q,N){if(N&&N.requestType&&(q.requestType=N.requestType,N.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||N.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var b=N.nextUrl;b&&(_.pyC(b)||uv(b))&&(q.nextNavendpoint={urlEndpoint:{url:b}})}N&&N.channelSwitcherQuery&&(q.channelSwitcherQuery=N.channelSwitcherQuery);N&&N.triggerChannelCreation&&(q.triggerChannelCreation=N.triggerChannelCreation);var y;if(N==null?0:(y=N.contentOwnerConfig)==
null?0:y.externalContentOwnerId)q.contentOwnerConfig=N.contentOwnerConfig;q.callCircumstance=N&&N.requestType&&N.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var J,E;N=q==null?void 0:(J=q.context)==null?void 0:(E=J.user)==null?void 0:E.onBehalfOfUser;if(N!==void 0){q.obfuscatedSelectedGaiaId=N;var F,R;q==null||(F=q.context)==null||(R=F.user)==null||delete R.onBehalfOfUser}var c,z;if(J=q==null?void 0:(c=q.context)==null?void 0:(z=c.user)==null?
void 0:z.serializedDelegationContext)q.selectedSerializedDelegationContext=J};var UK=function(){};
_.Y(UK,NJ);UK.prototype.getApiPaths=function(){return pjR};
UK.prototype.getExtension=function(q){return _.v(q,t91)};
UK.prototype.JSC$14249_buildRequest=function(q,N){N.params&&(q.params=N.params)};var fW=function(){};
_.Y(fW,NJ);fW.prototype.getApiPaths=function(){return Nol};
fW.prototype.getExtension=function(q){return _.v(q,_.OPE)};
fW.prototype.JSC$14249_buildRequest=function(q,N){if(N=N.createBroadcastRequest)q.useMasks=N.useMasks,q.broadcastType=N.broadcastType,q.broadcastSource=N.broadcastSource,q.broadcastMetadata=N.broadcastMetadata,q.broadcastMetadataMask=N.broadcastMetadataMask,q.videoMetadata=N.videoMetadata,q.videoMetadataMask=N.videoMetadataMask,q.liveChatSettingsUpdate=N.liveChatSettingsUpdate,q.liveChatSettingsUpdateMask=N.liveChatSettingsUpdateMask,q.cloneVideoId=N.cloneVideoId,q.cloneWithOverrides=N.cloneWithOverrides,
q.targetEntity=N.targetEntity,q.scheduledRedirectMetadata=N.scheduledRedirectMetadata};var CW=function(){};
_.Y(CW,NJ);CW.prototype.getApiPaths=function(){return El4};
CW.prototype.getExtension=function(q){return _.v(q,Xb1)};
CW.prototype.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;N.params&&(q.params=N.params);b.questionText&&(q.questionText=b.questionText);b.optionText&&b.optionText.length>0&&(q.optionText=b.optionText)};var Ih=function(){};
_.Y(Ih,NJ);Ih.prototype.getApiPaths=function(){return F1x};
Ih.prototype.getExtension=function(q){return _.v(q,mzo)};
Ih.prototype.JSC$14249_buildRequest=function(q,N){N.params&&(q.params=N.params)};var Tl=function(){};
_.Y(Tl,NJ);Tl.prototype.getApiPaths=function(){return jZF};
Tl.prototype.getExtension=function(q){return _.v(q,uFE)};
Tl.prototype.JSC$14249_buildRequest=function(q,N){N.params&&(q.params=N.params)};var sK=function(){};
_.Y(sK,NJ);sK.prototype.getApiPaths=function(){return vlx};
sK.prototype.getExtension=function(q){return _.v(q,zsq)};
sK.prototype.JSC$14249_buildRequest=function(q,N,b){N.params&&(q.params=N.params);N.continuation&&(q.continuation=N.continuation);b.currentPlayerState&&b.currentPlayerState.playerOffsetMs&&(q.currentPlayerState={playerOffsetMs:b.currentPlayerState.playerOffsetMs.toString()})};var nW=function(){};
_.Y(nW,NJ);nW.prototype.getApiPaths=function(){return Gkv};
nW.prototype.getExtension=function(q){return _.v(q,cIF)};
nW.prototype.JSC$14249_buildRequest=function(q,N,b){N.params&&(q.params=N.params);b.continuation&&(q.continuation=b.continuation);"hidden"in b&&(q.webClientInfo={isDocumentHidden:b.hidden});b.isInvalidationTimeoutRequest&&(q.isInvalidationTimeoutRequest=b.isInvalidationTimeoutRequest);b.invalidationPayload&&(N=dz4(_.HA(z1(b.invalidationPayload))),q.invalidationPayloadLastPublishAtUsec=Ga(N,2));b.reloadActionPanel&&(q.reloadActionPanel=b.reloadActionPanel);b.fullReload&&(q.fullReload=b.fullReload);
b.currentPlayerState&&(q.currentPlayerState=b.currentPlayerState)};var ah=function(){};
_.Y(ah,NJ);ah.prototype.getApiPaths=function(){return To4};
ah.prototype.getExtension=function(q){return _.v(q,rIq)};
ah.prototype.JSC$14249_buildRequest=function(q,N){q.params=N.params};var S7=function(){};
_.Y(S7,NJ);S7.prototype.getApiPaths=function(){return xyl};
S7.prototype.getExtension=function(q){return _.v(q,DTE)};
S7.prototype.JSC$14249_buildRequest=function(q,N){N.params&&(q.params=N.params)};var Wg=function(){};
_.Y(Wg,NJ);Wg.prototype.getApiPaths=function(){return Yrx};
Wg.prototype.getExtension=function(q){return _.v(q,hZx)};
Wg.prototype.JSC$14249_buildRequest=function(q,N){N.params&&(q.params=N.params)};var LW=function(){};
_.Y(LW,NJ);LW.prototype.getApiPaths=function(){return sZT};
LW.prototype.getExtension=function(q){return _.v(q,VOx)};
LW.prototype.JSC$14249_buildRequest=function(q,N){N.params&&(q.params=N.params)};var pW=function(){};
_.Y(pW,NJ);pW.prototype.getApiPaths=function(){return a0x};
pW.prototype.getExtension=function(q){return _.v(q,jM1)};
pW.prototype.JSC$14249_buildRequest=function(q,N){N.params&&(q.params=N.params)};var Pg=function(){};
_.Y(Pg,NJ);Pg.prototype.getApiPaths=function(){return ehv};
Pg.prototype.getExtension=function(q){return _.v(q,XQT)};
Pg.prototype.JSC$14249_buildRequest=function(q,N){N.params&&(q.params=N.params)};var MG=function(){};
_.Y(MG,NJ);MG.prototype.getApiPaths=function(){return JYo};
MG.prototype.getExtension=function(q){return _.v(q,_.xzx)};
MG.prototype.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;N.params&&(q.params=N.params);b.client_message_id&&(q.clientMessageId=b.client_message_id);b.recaptcha_token&&(q.recaptchaToken=b.recaptcha_token);b.rich_message&&b.rich_message.text_segments?(N=b.rich_message.text_segments.map(function(y){var J={};y.text&&(J.text=y.text);y.emoji_id&&(J.emojiId=y.emoji_id);return J}),q.richMessage={textSegments:N}):b.message&&(q.message=b.message);
b.currentPlayerState&&(q.currentPlayerState=b.currentPlayerState)};var oh=function(){};
_.Y(oh,NJ);oh.prototype.getApiPaths=function(){return Er4};
oh.prototype.getExtension=function(q){return _.v(q,v34)};
oh.prototype.JSC$14249_buildRequest=function(q,N){N.params&&(q.params=N.params)};var Af=function(){};
_.Y(Af,NJ);Af.prototype.getApiPaths=function(){return dq1};
Af.prototype.getExtension=function(q){return _.v(q,YMT)};
Af.prototype.JSC$14249_buildRequest=function(q,N,b){N.isUserInitiated&&(q.isUserInitiated=N.isUserInitiated);N.initiationSource&&(q.initiationSource=N.initiationSource);b.locationInfo&&(q.context.client.locationInfo=b.locationInfo)};var e7=function(){};
_.Y(e7,NJ);e7.prototype.getApiPaths=function(){return nlq};
e7.prototype.getExtension=function(q){return _.v(q,wWF)};
e7.prototype.JSC$14249_buildRequest=function(q,N,b){N.metadataUpdateRequest&&(N=N.metadataUpdateRequest,q.encryptedVideoId=N.encryptedVideoId,N.liveChat&&(N=N.liveChat,q.liveChat||(q.liveChat={}),N.performAsExternalChannelId&&(q.liveChat.performAsExternalChannelId=N.performAsExternalChannelId),N.source&&(q.liveChat.source=N.source)));var y;if(b==null?0:(y=b.liveChat)==null?0:y.liveChatSettings)q.liveChat||(q.liveChat={}),b=b.liveChat.liveChatSettings,q.liveChat.newLiveChatSettings=b,q.liveChat.newLiveChatSettingsMask||
(q.liveChat.newLiveChatSettingsMask={}),b.emojiReactionSet&&(q.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var Bg=function(){};
_.Y(Bg,NJ);Bg.prototype.getApiPaths=function(){return VCE};
Bg.prototype.getExtension=function(q){return _.v(q,_.nwx)};
Bg.prototype.JSC$14249_buildRequest=function(q,N,b){b.continuation?q.continuation=b.continuation:N.videoId&&(q.videoId=N.videoId);b.clientParams&&(q.clientParams=b.clientParams)};var Hg=function(){};
_.Y(Hg,NJ);Hg.prototype.getApiPaths=function(){return QZ1};
Hg.prototype.getExtension=function(q){return _.v(q,_.Ha)};
Hg.prototype.JSC$14249_buildRequest=function(q,N){q.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";q.fetchCommentsParams={};N.videoId&&(q.fetchCommentsParams.encryptedVideoId=N.videoId);N.postId&&(q.fetchCommentsParams.postId=N.postId);N.externalChannelId&&(q.fetchCommentsParams.externalChannelId=N.externalChannelId);N.linkedCommentId&&(q.fetchCommentsParams.linkedCommentId=N.linkedCommentId);(0,_.nM.isEmpty)(q.fetchCommentsParams)&&delete q.fetchCommentsParams};var qu=function(){};
_.Y(qu,NJ);qu.prototype.getApiPaths=function(){return TK};
qu.prototype.JSC$14249_buildRequest=function(q){q.browseId="FEnotifications_inbox"};
qu.prototype.getExtension=function(q){return _.v(q,_.EY)};var Nu=function(){};
_.Y(Nu,NJ);Nu.prototype.getApiPaths=function(){return QZ1};
Nu.prototype.JSC$14249_buildRequest=function(q,N){N.signal==="GET_NOTIFICATIONS_MENU"&&(q.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");N.ctoken&&(q.ctoken=N.ctoken)};
var vNU=function(){};
_.Y(vNU,Nu);vNU.prototype.getExtension=function(q){return _.v(q,_.EY)};
var GPx=function(){};
_.Y(GPx,Nu);GPx.prototype.getExtension=function(q){return _.v(q,DC1)};var br=function(){};
_.Y(br,NJ);br.prototype.getApiPaths=function(){return Dy4};
br.prototype.getExtension=function(q){return _.v(q,_.EY)};
br.prototype.JSC$14249_buildRequest=function(){};var ym=function(){};
_.Y(ym,NJ);ym.prototype.getApiPaths=function(){return SrM};
ym.prototype.getExtension=function(q){return _.v(q,ftR)||void 0};
ym.prototype.JSC$14249_buildRequest=function(q,N){N.params&&(q.params=N.params);N.secondaryParams&&(q.secondaryParams=N.secondaryParams)};var Jo=function(){};
_.Y(Jo,NJ);Jo.prototype.getApiPaths=function(){return W14};
Jo.prototype.getExtension=function(q){return _.v(q,mTl)};
Jo.prototype.JSC$14249_buildRequest=function(q,N){N.undo&&(q.undo=N.undo);N.serializedOptOut&&(q.serializedOptOut=N.serializedOptOut);N.serializedRecordInteractionsRequest&&(q.serializedRecordInteractionsRequest=N.serializedRecordInteractionsRequest)};var E9=function(){};
_.Y(E9,NJ);E9.prototype.getApiPaths=function(){return PzM};
E9.prototype.getExtension=function(q){return _.v(q,r$T)};
E9.prototype.JSC$14249_buildRequest=function(q,N){N.serializedInteractionsRequest&&(q.serializedRecordNotificationInteractionsRequest=N.serializedInteractionsRequest)};var gS=function(){};
_.Y(gS,NJ);gS.prototype.getApiPaths=function(){return NfZ};
gS.prototype.getExtension=function(q){return _.v(q,_.aE)};
gS.prototype.JSC$14249_buildRequest=function(q,N,b){N=N===void 0?{}:N;b=b===void 0?{}:b;N.videoId?q.videoId=N.videoId:N.playlistId&&(q.playlistId=N.playlistId);var y;q.crossDeviceDownloadData={isCrossDeviceDownload:(y=N.isCrossDeviceDownload)!=null?y:!1};!b.downloadToMobileEduShown&&N.isCrossDeviceDownload&&(q.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var J;if(y=(J=N.offlineWebClientEligibility)!=null?J:b.offlineWebClientEligibility)q.offlineWebClientEligibility=y;var E;if(J=(E=N.preferredFormatType)!=
null?E:b.preferredFormatType)q.preferredFormatType=J;var F;if(E=(F=N.lastOfflineQualitySettingsSavedMs)!=null?F:b.lastOfflineQualitySettingsSavedMs)q.lastOfflineQualitySettingsSavedMs=E;N.params&&(q.params=N.params)};var ZA=function(){};
_.Y(ZA,NJ);ZA.prototype.getApiPaths=function(){return Vx};
ZA.prototype.getExtension=function(q){return _.v(q,_.lR)};
ZA.prototype.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;N.token&&(q.continuation=N.token);b.formData&&(q.formData=b.formData)};var Fk=function(){};
_.Y(Fk,NJ);Fk.prototype.getApiPaths=function(){return Vx};
Fk.prototype.getExtension=function(q){return _.v(q,xA4)};
Fk.prototype.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;q.continuation=b.continuation};var Rq=function(){};
_.Y(Rq,NJ);Rq.prototype.getApiPaths=function(){return Vx};
Rq.prototype.getExtension=function(q){return _.v(q,_.Gt)};
Rq.prototype.JSC$14249_buildRequest=function(q,N){var b,y=N.panelIdentifier||((b=N.identifier)==null?void 0:b.tag);y&&(q.panelId=y);var J;if((J=N.globalConfiguration)==null?0:J.params){var E;q.params=(E=N.globalConfiguration)==null?void 0:E.params}if(_.x("enable_ai_companion")){var F;N=N.engagementPanelExtras;if(N==null?0:(F=N.aiCompanionPanelExtras)==null?0:F.includeClientConversationId){var R,c;F=(c=(R=_.tz().resolve(_.$f(ybf)))==null?void 0:R("conversations"))==null?void 0:c.get("conversation_id")}else F=
void 0;if(R=F)q.formData=Object.assign({},q.formData,{inputComposerFormData:{conversationId:R}})}};
_.$H.Object.defineProperties(Rq.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dS=function(){};
_.Y(dS,NJ);dS.prototype.getApiPaths=function(){return Vx};
dS.prototype.getExtension=function(q){return _.v(q,g$M)};
dS.prototype.JSC$14249_buildRequest=function(q,N){N.panelLoadingStrategy&&gvJ(q,N.panelLoadingStrategy)};var cu=function(){};
_.Y(cu,NJ);cu.prototype.getApiPaths=function(){return Vx};
cu.prototype.getExtension=function(q){return _.v(q,iVE)};
cu.prototype.JSC$14249_buildRequest=function(q,N){N.loadingStrategy&&gvJ(q,N.loadingStrategy)};var ur=function(){};
_.Y(ur,NJ);ur.prototype.getApiPaths=function(){return Vx};
ur.prototype.getExtension=function(q){return _.v(q,_.tO)};
ur.prototype.JSC$14249_buildRequest=function(q,N){N.panelLoadingStrategy&&gvJ(q,N.panelLoadingStrategy)};var zX=function(){};
_.Y(zX,NJ);zX.prototype.getApiPaths=function(){return Vx};
zX.prototype.getExtension=function(q){return _.v(q,lcx)};
zX.prototype.JSC$14249_buildRequest=function(q,N){var b,y=(b=N.contentSourcePanelIdentifier)==null?void 0:b.tag;y&&(q.panelId=y);var J;if((J=N.globalConfiguration)==null?0:J.params){var E;q.params=(E=N.globalConfiguration)==null?void 0:E.params}};var to=function(){};
_.Y(to,NJ);to.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
to.prototype.getExtension=function(q){return _.v(q,KuF)};
to.prototype.JSC$14249_buildRequest=function(q,N){N.params&&(q.params=N.params)};var mL=function(){};
_.Y(mL,NJ);mL.prototype.getApiPaths=function(){return XeF};
mL.prototype.getExtension=function(q){return _.v(q,kE4)};
mL.prototype.JSC$14249_buildRequest=function(q,N){N.externalChannelId&&(q.externalChannelId=N.externalChannelId);N.superChatAction&&(q.superChatAction=N.superChatAction);N.superStickersAction&&(q.superStickersAction=N.superStickersAction)};var rS=function(){};
_.Y(rS,NJ);rS.prototype.getApiPaths=function(){return myJ};
rS.prototype.getExtension=function(q){return _.v(q,Y6E)||_.v(q,Uad)};
rS.prototype.JSC$14249_buildRequest=function(q,N){N.videoIds?q.videoIds=N.videoIds:N.videoId&&(q.videoIds=[N.videoId]);N.playlistId&&(q.playlistId=N.playlistId);N.params&&(q.params=N.params);q.excludeWatchLater=!1};var Xk=function(){};
_.Y(Xk,NJ);Xk.prototype.getApiPaths=function(){return gl1};
Xk.prototype.getExtension=function(q){return _.v(q,_.ZO)};
Xk.prototype.JSC$14249_buildRequest=function(q,N,b){b.create_playlist_title?q.title=b.create_playlist_title:N.title&&(q.title=N.title);if(b.create_playlist_privacy_status&&typeof b.create_playlist_privacy_status==="number"){a:{var y=b.create_playlist_privacy_status;if(y!==0){if(y===1){y="PUBLIC";break a}if(y===2){y="UNLISTED";break a}}y="PRIVATE"}q.privacyStatus=y}else N.privacyStatus&&(q.privacyStatus=N.privacyStatus);b.create_playlist_description&&(q.description=b.create_playlist_description);N.videoIds&&
(q.videoIds=N.videoIds);N.params&&(q.params=N.params);N.sourcePlaylistId&&(q.sourcePlaylistId=N.sourcePlaylistId)};var Vm=function(){};
_.Y(Vm,NJ);Vm.prototype.getApiPaths=function(){return RhJ};
Vm.prototype.getExtension=function(q){return _.v(q,k94)};
Vm.prototype.JSC$14249_buildRequest=function(q,N){q.playlistId=N.playlistId};var jy=function(){};
_.Y(jy,NJ);jy.prototype.getApiPaths=function(){return Oux};
jy.prototype.getExtension=function(q){return _.v(q,dTT)};
jy.prototype.JSC$14249_buildRequest=function(q,N){N.playlistId&&(q.playlistId=N.playlistId);N.params&&(q.params=N.params)};var xj=function(){};
_.Y(xj,NJ);xj.prototype.getApiPaths=function(){return pfl};
xj.prototype.getExtension=function(q){return _.v(q,_.qz)||void 0};
xj.prototype.JSC$14249_buildRequest=function(q,N){N.actions&&(q.actions=N.actions);N.params&&(q.params=N.params);N.playlistId&&(q.playlistId=N.playlistId)};var vu=function(){};
_.Y(vu,NJ);_.g=vu.prototype;_.g.getApiPaths=function(){return M$R};
_.g.getExtension=function(q){return _.v(q,_.uI)};
_.g.JSC$14249_buildRequest=function(q,N){N.videoId&&(q.playerRequest={videoId:N.videoId},N.playerParams&&(q.playerRequest.params=N.playerParams),N.racyCheckOk&&(q.playerRequest.racyCheckOk=!!N.racyCheckOk),N.contentCheckOk&&(q.playerRequest.contentCheckOk=!!N.contentCheckOk));N.params&&(q.params=N.params);N.inputType&&(q.inputType=N.inputType);q.disablePlayerResponse=!0};
_.g.getRequestConfig=function(q){var N;(q=this.JSC$14256_getStoreKey(q))&&(N={storeStrategy:{storeKey:q}});_.x("web_log_reels_ticks")&&(N=N||{},N.requestTick="r_wrs",N.responseTick="r_wrr");return N};
_.g.JSC$14256_getStoreKey=function(q){q=this.getExtension(q);if(q!=null&&q.videoId){var N={videoId:q.videoId};q.params&&(N.params=q.params);return _.se("reel_item_watch",N)}};var GX=function(){};
_.Y(GX,NJ);_.g=GX.prototype;_.g.getApiPaths=function(){return olx};
_.g.getExtension=function(q){return _.v(q,_.uI)};
_.g.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;q.sequenceParams=N.sequenceParams;var y;((y=b)==null?0:y.contentPlaybackContext)&&_.x("web_shorts_prefetch_service_enabled")&&(q.playbackContext={contentPlaybackContext:b.contentPlaybackContext})};
_.g.JSC$14256_getStoreKey=function(q){if(_.x("shorts_controller_retrieve_seedless_sequence_v2")&&(q=this.getExtension(q),q==null?0:q.sequenceParams))return _.se("reel_watch_sequence",{sequenceParams:q.sequenceParams})};
_.g.getRequestConfig=function(q){q=this.JSC$14256_getStoreKey(q);var N;q&&(N={storeStrategy:{storeKey:q}});N=N||{};N.requestTick="r_wsrs";N.responseTick="r_wsrr";N.processorTick="r_wsrp";return N};
var Yj=function(){};
_.Y(Yj,NJ);Yj.prototype.getApiPaths=function(){return olx};
Yj.prototype.getExtension=function(q){return _.v(q,_.lR)};
Yj.prototype.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;N.token&&(q.continuation=N.token);var y;((y=b)==null?0:y.contentPlaybackContext)&&_.x("web_shorts_prefetch_service_enabled")&&(q.playbackContext={contentPlaybackContext:b.contentPlaybackContext})};
Yj.prototype.getRequestConfig=function(q){q=this.JSC$14256_getStoreKey(q);var N;q&&(N={storeStrategy:{storeKey:q}});N=N||{};N.requestTick="r_wsrs";N.responseTick="r_wsrr";N.processorTick="r_wsrp";return N};var Qm=function(){};
_.Y(Qm,NJ);Qm.prototype.getApiPaths=function(){return zh4};
Qm.prototype.getExtension=function(q){return _.v(q,_.JTT)};
Qm.prototype.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;N.flagAction&&(q.action=N.flagAction);N.flagRequestType&&(q.flagRequestType=N.flagRequestType);N.additionalDetailCheckboxChecked&&(q.additionalDetailCheckboxChecked=N.additionalDetailCheckboxChecked);N.legalCheckboxChecked&&(q.legalCheckboxChecked=N.legalCheckboxChecked);N={};b.flag_issue_type!==void 0&&(N.issue=b.flag_issue_type);b.flag_affiliation!==void 0&&(N.affiliation=b.flag_affiliation);b.flag_full_name&&(N.fullName=b.flag_full_name);
Object.keys(N).length&&(q.legalReportDetails=N);if(b.flag_description||b.text)q.userComments=b.flag_description||b.text;N={};b.minutes!==void 0&&b.seconds!==void 0&&(N.minutes=b.minutes,N.seconds=b.seconds);b.vss_id&&(N.vssId=b.vss_id);Object.keys(N).length&&(q.videoReportDetails=N);N={};b.video_ids&&(N.videoIds=b.video_ids);b.impersonated_channel_url&&(N.impersonatedChannelUrl=b.impersonated_channel_url);Object.keys(N).length&&(q.channelAbuseReportDetails=N)};
_.$H.Object.defineProperties(Qm.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var O9=function(){};
_.Y(O9,NJ);O9.prototype.getApiPaths=function(){return V$F};
O9.prototype.getExtension=function(q){return _.v(q,hax)};
O9.prototype.JSC$14249_buildRequest=function(q,N){N.blockedForKidsContent&&(q.blockedForKidsContent=N.blockedForKidsContent)};var wS=function(){};
_.Y(wS,NJ);wS.prototype.getApiPaths=function(){return Bo1};
wS.prototype.getExtension=function(q){return _.v(q,k3A)};
wS.prototype.JSC$14249_buildRequest=function(q,N,b){q.params=N.params;b.impersonated_channel_url&&(q.impersonatedChannelUrl=b.impersonated_channel_url)};var ir=function(){};
_.Y(ir,NJ);ir.prototype.getApiPaths=function(){return CzR};
ir.prototype.getExtension=function(q){return _.v(q,_.kI1)};
ir.prototype.JSC$14249_buildRequest=function(q,N){N.items&&(q.items=N.items);N.kidGaiaId&&(q.kidGaiaId=N.kidGaiaId)};var lr=function(){};
_.Y(lr,NJ);lr.prototype.getApiPaths=function(){return rAo};
lr.prototype.getExtension=function(q){return _.v(q,_.xJo)};
lr.prototype.JSC$14249_buildRequest=function(q,N){N.params&&(q.params=N.params);N.targetId&&(q.targetId=N.targetId)};var KX=function(){};
_.Y(KX,NJ);KX.prototype.getApiPaths=function(){return b_l};
KX.prototype.getExtension=function(q){return _.v(q,hUv)};
KX.prototype.JSC$14249_buildRequest=function(q,N){N.externalVideoId&&(q.externalVideoId=N.externalVideoId);N.query&&(q.query=N.query);N.sourceTimelines&&(q.sourceTimelines=N.sourceTimelines)};var DA=function(){};
_.Y(DA,NJ);DA.prototype.getApiPaths=function(){return yYq};
DA.prototype.getExtension=function(q){return _.v(q,_.lR)||void 0};
DA.prototype.JSC$14249_buildRequest=function(q,N){N.token&&(q.continuation=N.token)};
_.YNd=function(){};
_.Y(_.YNd,NJ);_.g=_.YNd.prototype;_.g.getApiPaths=function(){return yYq};
_.g.getExtension=function(q){return _.v(q,_.R0)||void 0};
_.g.isNavigationCommand=function(){return!0};
_.g.JSC$14256_getStoreKey=function(q,N){N=N===void 0?{}:N;if(!N.disableCache&&(q=this.getExtension(q))&&q.query)return N={query:q.query},q.params&&(N.params=q.params),_.se("search",N)};
_.g.JSC$14249_buildRequest=function(q,N,b){N.query&&(q.query=N.query);N.params&&(q.params=N.params);if(!_.x("web_forward_suggest_stats_killswitch")){var y=_.v(N,y$F);y&&(q.suggestStats=y)}var J;!_.x("kevlar_searchbox_stats_killswitch")&&((J=b.tempData)==null?0:J.gs_l)&&!_.v(N,y$F)&&(q.webSearchboxStatsUrl="/search?oq="+(b.tempData.oq||"")+"&gs_l="+b.tempData.gs_l);var E;if((E=b.tempData)==null?0:E.entityMid)N=q.suggestionSearchParams||{},N.entityMid=b.tempData.entityMid,q.suggestionSearchParams=N;
if(_.x("enable_desktop_vdcbg_components")||_.x("enable_inline_muted_playback_on_web_search"))N=_.c3().getFlag(186),q.inlineSettingStatus=N?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";b.isFromShorts&&(q.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.g.getRequestConfig=function(q,N){N=N===void 0?{}:N;q=this.JSC$14256_getStoreKey(q,N);var b;q&&(b={storeStrategy:{storeKey:q}});_.x("web_log_search_ticks_ks")||(b=b||{},b.requestTick="sr_s",b.responseTick="sr_r");return b};var ho=function(){};
_.Y(ho,NJ);ho.prototype.getApiPaths=function(){return l01};
ho.prototype.getExtension=function(q){return _.v(q,p6J)};
ho.prototype.JSC$14249_buildRequest=function(q,N){N.serializedGetSharingProviderDataParams&&(q.serializedGetSharingProviderDataParams=N.serializedGetSharingProviderDataParams)};var kj=function(){};
_.Y(kj,NJ);kj.prototype.getApiPaths=function(){return K1j};
kj.prototype.getExtension=function(q){return _.v(q,Hix)};
kj.prototype.JSC$14249_buildRequest=function(q,N){N.endpoint&&(q.endpoint=N.endpoint);N.action&&(q.action=N.action)};var U9=function(){};
_.Y(U9,NJ);U9.prototype.getApiPaths=function(){return dyv};
U9.prototype.getExtension=function(q){return _.v(q,UJv)};
U9.prototype.JSC$14249_buildRequest=function(q,N){q.videoId=N.videoId;N.scheduledRedirectMetadataSourceVideoId&&(q.scheduledRedirectMetadata={sourceVideoId:N.scheduledRedirectMetadataSourceVideoId})};var fX=function(){};
_.Y(fX,NJ);fX.prototype.getApiPaths=function(){return Z_l};
fX.prototype.getExtension=function(q){return _.v(q,_.fVJ)};
fX.prototype.JSC$14249_buildRequest=function(q,N){q.params=N.params;q.correctionText=N.correctionText};var CX=function(){};
_.Y(CX,NJ);CX.prototype.getApiPaths=function(){return B$n};
CX.prototype.getExtension=function(q){return _.v(q,_.kWq)};
CX.prototype.JSC$14249_buildRequest=function(q,N){N.params&&(q.params=N.params);q.searchQuery=N.searchQuery;q.languageCode=N.languageCode;q.kind=N.kind;q.name=N.name;q.externalVideoId=N.externalVideoId};var Iq=function(){};
_.Y(Iq,NJ);Iq.prototype.getApiPaths=function(){return GFl};
Iq.prototype.getExtension=function(q){return _.v(q,BmF)};
Iq.prototype.JSC$14249_buildRequest=function(q,N){N.params&&(q.params=N.params)};var TX=function(q){this.JSC$18518_storeWithEntities=q};
_.Y(TX,NJ);TX.prototype.getApiPaths=function(){return HSl};
TX.prototype.getExtension=function(q){return _.v(q,qET)||_.v(q,bSM)};
TX.prototype.JSC$14249_buildRequest=function(q,N,b){b.client_data&&(q.clientData=b.client_data);if(N.commerceActionConfig){var y=N.commerceActionConfig;N=y.actionId;y=y.commerceActionParams;N&&(q.actionId=N);y&&(q.commerceActionParams=y)}else{var J=N.actionId,E=N.commerceActionParams;b=N.entityKeys;J&&(q.actionId=J);E&&(q.commerceActionParams=E);var F;N=(y=this.JSC$18518_storeWithEntities)==null?void 0:(F=y.getState())==null?void 0:F.entities;if(b&&N){y=[];F=_.Z(b);for(b=F.next();!b.done;b=F.next())if(J=
b.value,b=_.qR(J).entityType,J=_.Ji(N,b,J))E={},y.push((E[b]=J,E));q.entityMutationPayloads=y}}};
TX.prototype.getRequestConfig=function(q){var N,b=(N=_.v(q,qET))==null?void 0:N.requestSequenceType;if(b&&q.clickTrackingParams&&b!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:q.clickTrackingParams,sequenceType:b}}};
TX[ma]=[BD];var s9=function(){};
_.Y(s9,NJ);s9.prototype.getApiPaths=function(){return YiF};
s9.prototype.getExtension=function(q){return _.v(q,_.jH4)};
s9.prototype.JSC$14249_buildRequest=function(q,N){N.feedbackData&&(q.feedbackData=N.feedbackData);N.params&&(q.itemParams=N.params)};
_.$H.Object.defineProperties(s9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nX=function(){};
_.Y(nX,NJ);nX.prototype.getApiPaths=function(){return Qco};
nX.prototype.getExtension=function(q){return _.v(q,xwE)};
nX.prototype.JSC$14249_buildRequest=function(q,N,b){b.payments_payload&&(q.paymentsPayload=b.payments_payload);b.offer_params&&(q.offerParams=b.offer_params);N.transactionParams&&(q.transactionParams=N.transactionParams)};var aq=function(){};
_.Y(aq,NJ);aq.prototype.getApiPaths=function(){return O_x};
aq.prototype.getExtension=function(q){return _.v(q,_.vxT)};
aq.prototype.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;N.buybucketParams&&(q.buybucketData={params:N.buybucketParams},N.stickerParams?q.buybucketData.stickerParams=N.stickerParams:(b.rich_chat_message?q.buybucketData.richChatMessage=b.rich_chat_message:b.chat_message_text&&(q.buybucketData.chatMessageText=b.chat_message_text),b.purchase_price_micros&&(q.buybucketData.purchasePriceMicros=b.purchase_price_micros.toString())));N.donationAmountMicros&&(q.tipAmountMicros=N.donationAmountMicros,
N.tipParams&&(q.tipParams=N.tipParams));N.offerParams&&(q.offerParams=N.offerParams);N.productData&&(q.productData=N.productData);N.transactionParams&&(q.transactionParams=N.transactionParams)};var Sy=function(){};
_.Y(Sy,NJ);Sy.prototype.getApiPaths=function(){return wej};
Sy.prototype.getExtension=function(q){return _.v(q,QH1)};
Sy.prototype.JSC$14249_buildRequest=function(q,N){N.updateFopParams&&(q.updateFopParams=N.updateFopParams)};var Wu=function(){};
_.Y(Wu,NJ);Wu.prototype.getApiPaths=function(){return i_o};
Wu.prototype.getExtension=function(q){return _.v(q,_.s$)};
Wu.prototype.JSC$14249_buildRequest=function(q,N){N.couponCode&&(q.couponCode=N.couponCode);N.params&&(q.itemParams=N.params)};var LX=function(){};
_.Y(LX,NJ);LX.prototype.getApiPaths=function(){return lgo};
LX.prototype.getExtension=function(q){return _.v(q,_.NKT)};
LX.prototype.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;N.params&&(q.params=N.params);b.ctk&&(q.clientToken=b.ctk)};var pX=function(q){this.JSC$18553_storeWithEntities=q};
_.Y(pX,NJ);pX.prototype.getApiPaths=function(){return KiF};
pX.prototype.getExtension=function(q){return _.v(q,_.cb)};
pX.prototype.JSC$14249_buildRequest=function(q,N,b){b.purchase_price_micros&&(q.productData={pdgData:{purchasePriceMicros:b.purchase_price_micros.toString()}},b.rich_chat_message&&(q.productData.pdgData.richChatMessage=b.rich_chat_message),b.currency_code&&(q.productData.pdgData.currencyCode=b.currency_code));N.transactionParams&&(q.transactionParams=N.transactionParams);N.clientLocationContext&&(q.clientLocationContext=N.clientLocationContext);b.payments_payload&&(q.paymentsPayload=b.payments_payload);
b.funds_guarantee_callback_client_data&&(q.fundsGuaranteeCallbackClientData=b.funds_guarantee_callback_client_data);var y,J;b=(y=this.JSC$18553_storeWithEntities)==null?void 0:(J=y.getState())==null?void 0:J.entities;if(N.entityKeys&&b){y=[];N=_.Z(N.entityKeys);for(J=N.next();!J.done;J=N.next()){var E=J.value;J=_.qR(E).entityType;if(E=_.Ji(b,J,E)){var F={};y.push((F[J]=E,F))}}q.entityMutationPayloads=y}};
pX[ma]=[BD];var Pu=function(){};
_.Y(Pu,NJ);Pu.prototype.getApiPaths=function(){return Dql};
Pu.prototype.getExtension=function(q){return _.v(q,Gvj)};
Pu.prototype.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;b.backend_analytics&&(q.serializedBackendAnalyticsEvent=b.backend_analytics);N.offerParams&&(q.offerParams=N.offerParams)};var Mu=function(){};
_.Y(Mu,NJ);Mu.prototype.getApiPaths=function(){return i_o};
Mu.prototype.getExtension=function(q){return _.v(q,jdn)};
Mu.prototype.JSC$14249_buildRequest=function(q,N){N.params&&(q.itemParams=N.params)};var oq=function(){};
_.Y(oq,NJ);oq.prototype.getApiPaths=function(){return hel};
oq.prototype.getExtension=function(q){return _.v(q,_.ZSo)};
oq.prototype.JSC$14249_buildRequest=function(q,N,b){b.resume_time_ms&&(q.resumeTimeMs=b.resume_time_ms);N.pauseParams&&(q.pauseParams=N.pauseParams)};var Ao=function(){};
_.Y(Ao,NJ);Ao.prototype.getApiPaths=function(){return kFx};
Ao.prototype.getExtension=function(q){return _.v(q,_.YEF)};
Ao.prototype.JSC$14249_buildRequest=function(q,N,b){b=b===void 0?{}:b;b.c&&(q.redeemCode=b.c);b.rd&&(q.riskData=b.rd);b.ctk&&(q.clientToken=b.ctk)};var ey=function(){};
_.Y(ey,NJ);ey.prototype.getApiPaths=function(){return Uq4};
ey.prototype.getExtension=function(q){return _.v(q,_.FoT)};
ey.prototype.JSC$14249_buildRequest=function(q,N){N.resumeParams&&(q.resumeParams=N.resumeParams)};var Bu=function(q,N){this.clientName=q;this.defaultExpirationDelayMs=N};
Bu.prototype.put=function(q,N){var b=this,y;return _.d(function(J){y=Object.assign({},N.data);y.key=q;y.clientName=b.clientName;y.expireTimestampMs===void 0&&(y.expireTimestampMs=(Math.round((0,_.mA)())+b.defaultExpirationDelayMs).toString());return J.return(b.putInternal(q,y))})};
Bu[ma]=[dv,cbd];var QAX=function(){Bu.apply(this,arguments);this.JSC$18583_responseStore=new Map};
_.Y(QAX,Bu);_.g=QAX.prototype;_.g.get=function(q){var N=this;return _.d(function(b){return b.return(hP(N,q))})};
_.g.putInternal=function(q,N){var b=this,y,J,E;return _.d(function(F){y=b.defaultExpirationDelayMs;N.expireTimestampMs&&(y=Number(N.expireTimestampMs)-Math.round((0,_.mA)()),J=_.VX("mweb_override_response_store_expiration_ms"),J>0&&J<y&&(y=J));E=setTimeout(function(){b.remove(q)},y);
b.JSC$18583_responseStore.set(q,{entryData:N,timer:E});_.hj(F)})};
_.g.remove=function(q){var N=this;return _.d(function(b){OFf(N,q);_.hj(b)})};
_.g.removeAll=function(){var q=this;return _.d(function(N){q.JSC$18583_responseStore.forEach(function(b){clearTimeout(b.timer)});
q.JSC$18583_responseStore.clear();_.hj(N)})};
_.g.has=function(q){return!!this.JSC$18583_responseStore.get(q)};
_.g.getKeys=function(){return this.JSC$18583_responseStore.keys()};
var hP=function(q,N){if(q=q.JSC$18583_responseStore.get(N))return new _.Dv(q.entryData)},OFf=function(q,N){var b=q.JSC$18583_responseStore.get(N);
b&&(clearTimeout(b.timer),q.JSC$18583_responseStore.delete(N))};var ZKA;var dsh=function(q,N,b){Bu.call(this,q,N);this.token=b};
_.Y(dsh,Bu);_.g=dsh.prototype;_.g.get=function(q){var N=this,b,y;return _.d(function(J){return J.nextAddress==1?J.yield(Rdz(N.token),2):J.nextAddress!=3?(b=J.yieldResult,J.yield(b.get("ResponseStore",[q,N.clientName]),3)):(y=J.yieldResult)?J.return(new _.Dv(y)):J.return(void 0)})};
_.g.putInternal=function(q,N){var b=this,y;return _.d(function(J){if(J.nextAddress==1)return J.yield(Rdz(b.token),2);y=J.yieldResult;return J.yield(y.put("ResponseStore",N),0)})};
_.g.remove=function(q){var N=this,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(Rdz(N.token),2);b=y.yieldResult;return y.return(b.delete("ResponseStore",[q,N.clientName]))})};
_.g.removeAll=function(){var q=this,N;return _.d(function(b){if(b.nextAddress==1)return b.yield(Rdz(q.token),2);N=b.yieldResult;return b.yield(WOJ(N,IDBKeyRange.only(q.clientName)),0)})};
_.g.has=function(){throw Error("ij");};_.Hu=new _.Jw("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var wYd=function(q){var N;this.stateTagsData=(N=q.responseContext)==null?void 0:N.stateTags},iFX=function(q){var N;
return((N=q.stateTagsData)==null?void 0:N.stateTagsModified)||[]};var lzc;lzc=function(q){this.JSC$18596_responseStore=q};
_.kJ=function(q,N,b){if(!_.x("state_tags_killswitch")){var y=new wYd(N);if(iFX(y).length>0){var J=q.JSC$18596_responseStore.getKeys();J=_.Z(J);for(var E=J.next();!E.done;E=J.next()){E=E.value;var F=hP(q.JSC$18596_responseStore,E);if(F){var R=_.PD(F);a:{var c=void 0;F=iFX(y);R=((c=(new wYd(R)).stateTagsData)==null?void 0:c.relevantStateTags)||[];c=_.Z(R);for(R=c.next();!R.done;R=c.next())if(R=R.value,R.stateTag!=null&&F.includes(R.stateTag)&&R.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){F=
!0;break a}F=!1}F&&OFf(q.JSC$18596_responseStore,E)}}}}var z;y=(z=N.responseContext)==null?void 0:z.maxAgeSeconds;b&&y&&Number(y)>0&&(N=qE(N,y),q.JSC$18596_responseStore.put(b,new _.Dv(N)))};
lzc.prototype.handleResponse=function(q,N){if(!N)throw Error("jj");var b,y;N=(b=N.config)==null?void 0:(y=b.storeStrategy)==null?void 0:y.storeKey;_.kJ(this,q,N)};
lzc[ma]=[_.KE];_.ilZ=new _.Jw("STORE_RESPONSE_PROCESSOR_TOKEN");var KWX=function(q){this.JSC$18599_responseStore=q};
KWX.prototype.handleResponse=function(q,N){if(N.input.match(_.LD(olx))){var b;if(q==null?0:(b=q.entries)==null?0:b.length)for(q=_.Z(q.entries),N=q.next();!N.done;N=q.next()){b=N.value.command;var y=void 0;N=(y=_.v(b,_.uI))==null?void 0:y.unserializedPrefetchData;if(!b||!N)break;y=(new vu).JSC$14256_getStoreKey(b);var J=_.v(N,Ewo),E=void 0,F=void 0,R=void 0,c=void 0,z=void 0,m=void 0,r=((E=J)==null?0:(F=E.responseContext)==null?0:F.maxAgeSeconds)&&Number((R=J)==null?void 0:(c=R.responseContext)==null?
void 0:c.maxAgeSeconds)>0?Number((z=J)==null?void 0:(m=z.responseContext)==null?void 0:m.maxAgeSeconds):600;y&&r>0&&(J=qE(J,r),this.JSC$18599_responseStore.put(y,new _.Dv(J)));b=(new f5).JSC$14256_getStoreKey(b);N=_.v(N,WuR);c=R=F=E=J=y=void 0;z=((y=N)==null?0:(J=y.responseContext)==null?0:J.maxAgeSeconds)&&Number((E=N)==null?void 0:(F=E.responseContext)==null?void 0:F.maxAgeSeconds)>0?Number((R=N)==null?void 0:(c=R.responseContext)==null?void 0:c.maxAgeSeconds):600;b&&z>0&&(N=qE(N,z),this.JSC$18599_responseStore.put(b,
new _.Dv(N)))}}};
KWX[ma]=[_.KE];var DIW=function(q,N){this.innertubeTransportService=q;this.JSC$18602_commandHandler=N};
DIW.prototype.submitForm=function(q,N,b,y,J){var E=this,F,R,c,z,m,r;return _.d(function(X){if(X.nextAddress==1)return F={submitId:q,formData:N,submitBehavior:b,params:y},R=_.LD(FiF),X.yield(_.ZG(E.innertubeTransportService,F,R,J),2);c=X.yieldResult;if(!c)return X.return(Promise.reject(new _.IO("Submit API returned an undefined response. Submit ID: "+q)));z=c;(r=(m=z)==null?void 0:m.onResponseReceived)&&E.JSC$18602_commandHandler.resolveCommand(r);return X.return(z)})};
DIW[ma]=[_.tN,_.rO];var qa=function(){this.scheduler=_.ja()},hpK;
qa.prototype.pause=function(){throw Error("kj");};
qa.prototype.resume=function(){throw Error("kj");};
qa.prototype.queue=function(q){var N=this,b=_.T4(),y=_.Ip(this.scheduler,function(){try{var J;if(_.bq.instance)var E=_.bq.instance;else{var F=new _.IO("Error: Unexpected uninitialized CommandHandler.");_.po(F);E=void 0}(J=E)==null||J.resolveCommand(q.command);b.resolve()}catch(R){b.reject(R)}});
b.promise.thenCatch(function(J){J instanceof _.K0&&N.scheduler.cancelJob(y)});
return b.promise};
qa.prototype.queueAll=function(q){var N=new Map;q=_.Z(q);for(var b=q.next();!b.done;b=q.next())b=b.value,N.set(b.id,this.queue(b));return N};var UId=function(q,N){var b=this;this.taskModel=q;this.onTaskCancelledCallback=N;this.resolver=_.T4();q=q.proto.prefetchConfig;if(!q)throw Error("lj");if(!q.prefetchAction)throw Error("mj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(y){y instanceof _.K0&&(kPp(b,b.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),b.onTaskCancelledCallback(b.taskModel.id,b.jobId),b.tick("pcc"));
throw y;});
this.timerName=this.taskModel.id;_.Yo(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
UId.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 kPp=function(q,N){_.v3({prefetchInfo:{cancellationReason:N}},q.timerName)};
UId.prototype.tick=function(q){_.Q6(q,void 0,this.timerName)};var bH=function(){var q=this;this.scheduler=_.ja();this.maxInflightTasks=_.VX("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.VX("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new vAF;this.onTaskCancelled=function(N,b){b&&q.scheduler.cancelJob(b);fzf(q,N);Na(q,3)}},CCx=function(){bH.instance||(bH.instance=new bH);
return bH.instance};
bH.prototype.pause=function(){this.prefetchCoordinatorState=0};
bH.prototype.resume=function(){Na(this,0)};
bH.prototype.queue=function(q){q=Izc(this,q);Na(this,1);return q};
bH.prototype.queueAll=function(q){var N=new Map;q=_.Z(q);for(var b=q.next();!b.done;b=q.next())b=b.value,N.set(b.id,Izc(this,b));Na(this,1);return N};
var Izc=function(q,N){var b=q.allPrefetchTasks.get(N.id);if(b)return b.cancellablePromise;try{var y=new UId(N,q.onTaskCancelled)}catch(E){return _.ra(E)}b=y;b.tick("pcq");var J={prefetchInfo:{taskId:b.taskModel.id,isPrefetch:!0,fetchAction:b.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:b.taskModel.command.clickTrackingParams}};b.taskModel.csn&&(J.clientScreenNonce=b.taskModel.csn);_.v3(J,b.timerName);q.allPrefetchTasks.set(N.id,y);q.drainingHeap.insert(-y.getPriority(),y);return y.cancellablePromise},
Na=function(q,N){q.prefetchCoordinatorState===N&&(q.prefetchCoordinatorState=2,TEa(q))},TEa=function(q){for(var N={};q.prefetchCoordinatorState!==0;N={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(q.inflightPrefetchTasks.size>=q.maxInflightTasks){q.prefetchCoordinatorState=3;break}N.prefetchTask$jscomp$1=q.drainingHeap.remove();if(!N.prefetchTask$jscomp$1){q.prefetchCoordinatorState=1;break}N.taskId$jscomp$3=N.prefetchTask$jscomp$1.taskModel.id;if(q.allPrefetchTasks.has(N.taskId$jscomp$3)){var b=-1;q.coordinatorTimeoutMs>0&&(b=_.Ip(q.scheduler,function(y){return function(){yj(q,y.taskId$jscomp$3,Error("nj"))}}(N),q.coordinatorTimeoutMs));
q.inflightPrefetchTasks.set(N.taskId$jscomp$3,b);if(!q.JSC$18619_commandHandler){if(!_.bq.instance){yj(q,N.taskId$jscomp$3,Error("oj"));continue}q.JSC$18619_commandHandler=_.bq.instance}a:switch(N.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":b=1;break a;default:b=0}N.prefetchTask$jscomp$1.jobId=q.scheduler.addJob(function(y){return function(){y.prefetchTask$jscomp$1.tick("pcr");try{q.JSC$18619_commandHandler.resolveCommand(y.prefetchTask$jscomp$1.taskModel.command)||
yj(q,y.taskId$jscomp$3,Error("pj"))}catch(J){yj(q,y.taskId$jscomp$3,J)}}}(N),b,0)}}},sAW=function(q,N){(N=fzf(q,N))!=null&&(N.resolver.resolve(),N.tick("pce"));
Na(q,3)},yj=function(q,N,b){(N=fzf(q,N,b))!=null&&(N.resolver.reject(b),N.tick("pcc"),kPp(N,"CANCELLATION_REASON_ERROR"),Math.random()<=_.VX("prefetch_coordinator_error_logging_sampling_rate")&&(b=new _.IO("Prefetch Command failed.",N.taskModel.id,b.message),_.po(b)));
Na(q,3)},fzf=function(q,N,b){var y=q.allPrefetchTasks.get(N);
y?((b=q.inflightPrefetchTasks.get(N))&&b!==-1&&q.scheduler.cancelJob(b),q.inflightPrefetchTasks.delete(N),q.allPrefetchTasks.delete(N)):_.M6(new _.IO("Unexpected missing prefetch task when deleting task.",N,b==null?void 0:b.message));return y};var nNa=function(q,N,b,y,J){this.id=q;this.triggerOn=N;this.cancelOn=b;this.command=y;this.proto=J};
_.$H.Object.defineProperties(nNa.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var azf=function(){this.JSC$18624_prefetchCoordinator=CCx();hpK||(hpK=new qa);this.defaultCoordinator=hpK},SNB;
azf.getInstance=function(){SNB||(SNB=new azf);return SNB};
azf.prototype.get=function(q){switch(q){case 0:return this.JSC$18624_prefetchCoordinator;default:return this.defaultCoordinator}};var J1=function(){this.coordinatorSupplier=azf.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},pYd=function(q){var N=_.Oe()||void 0,b=Object.keys(WWp)[0];
if(b){var y=q.taskIdByTriggerId.get(b);if(y!=null){q.taskIdByTriggerId.delete(b);b=[];y=_.Z(y);for(var J=y.next();!J.done;J=y.next())if(J=q.tasks.get(J.value))N!=="UNDEFINED_CSN"&&(J.csn=N),b.push(J);b=zdn(b);N=[];b=_.Z(b);for(y=b.next();!y.done;y=b.next()){J=_.Z(y.value);y=J.next().value;J=J.next().value;y=q.coordinatorSupplier.get(y).queueAll(J);y=_.Z(y);var E=y.next();for(J={};!E.done;J={taskId$jscomp$9:void 0},E=y.next()){var F=_.Z(E.value);E=F.next().value;F=F.next().value;J.taskId$jscomp$9=
E;E=F;N.push(J.taskId$jscomp$9);q.queuedPromisesByTask.set(J.taskId$jscomp$9,_.KJ(E,function(R){return function(){LWa(q,R.taskId$jscomp$9)}}(J)))}}}}else _.M6(new _.IO("Unexpected malformed TriggerEvent."))};
J1.prototype.trigger=function(q,N){var b=this,y=this.tasks.get(q);if(!y||this.queuedPromisesByTask.has(q))return!1;PCa(this,q,y.triggerOn);N!=="UNDEFINED_CSN"&&(y.csn=N);N=this.coordinatorSupplier.get(y.taskType).queue(y);this.queuedPromisesByTask.set(q,_.KJ(N,function(){LWa(b,q)}));
return!0};
J1.prototype.cancel=function(q){var N=this.queuedPromisesByTask.get(q);if(N)N.cancel();else return LWa(this,q)};
var LWa=function(q,N){q.queuedPromisesByTask.delete(N);var b=q.tasks.get(N);if(!b)return!1;q.tasks.delete(N);PCa(q,N,b.triggerOn);(b=uDn(b.cancelOn))&&(q=q.taskIdByCancelId.get(b))&&q.delete(N);return!0},PCa=function(q,N,b){(b=Object.keys(b)[0])&&(q=q.taskIdByTriggerId.get(b))&&q.delete(N)};var WWp={taskRegistered:{}},EW=function(){J1.instance||(J1.instance=new J1);this.JSC$18633_taskManager=J1.instance};
_.Y(EW,cf);
EW.prototype.resolveCommand=function(q){var N=this,b,y;return _.d(function(J){b=_.v(q,yPF);if((y=b)==null||!y.tasks){var E=new _.IO("RegisterTasksCommand is missing tasks.");_.po(E);return J.return()}E=N.JSC$18633_taskManager;for(var F=_.Z(b.tasks),R=F.next();!R.done;R=F.next())if(R=R.value,R=R.id&&R.triggerOn&&R.cancelOn&&R.command?new nNa(R.id,R.triggerOn,R.cancelOn,R.command,R):void 0,R){var c=Object.keys(R.triggerOn)[0];if(c){var z=uDn(R.cancelOn);z?(E.tasks.set(R.id,R),E.taskIdByTriggerId.has(c)||E.taskIdByTriggerId.set(c,
new Set),E.taskIdByTriggerId.get(c).add(R.id),E.taskIdByCancelId.has(z)||E.taskIdByCancelId.set(z,new Set),E.taskIdByCancelId.get(z).add(R.id)):_.M6(new _.IO("Unexpected malformed cancelOn field."))}else _.M6(new _.IO("Unexpected malformed triggerOn field."))}else _.M6(new _.IO("Unexpected malformed Task proto."));pYd(N.JSC$18633_taskManager);_.hj(J)})};var MGK={},oNN=(MGK.rendered={priority:_.x("web_adaptive_early_init")?8:0,callback:function(){var q={};q.numCpu=navigator.hardwareConcurrency;var N={};N.ramGb=_.JZ.navigator.deviceMemory;var b={staticContext:{}};N.ramGb&&XSd(N.ramGb)&&(b.staticContext.memoryTotalKbytes=(N.ramGb*1048576).toString());q.numCpu&&XSd(q.numCpu)&&(b.staticContext.cpuCores=q.numCpu);if(_.x("web_enable_adaptive_appl_signal")){q={};N=Xad();N=N.length>0?N[0]:void 0;var y,J=(y=_.iG("rses_dpj"))!=null?y:N==null?void 0:N.tick.rses_dpj,
E;y=(E=_.iG("rsef_dpj"))!=null?E:N==null?void 0:N.tick.rsef_dpj;J&&Number(J)>0&&y&&Number(y)>0&&(E=Math.ceil(Number(y)-Number(J)),E>0&&(q.loadLatency=E));q.loadLatency&&XSd(q.loadLatency)&&(b.appL=q.loadLatency.toString())}_.W_("applicationStarted",b);V8d=b;_.x("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",j7h)}},MGK);var AWA=new _.Jw("WINDOW_ON_ERROR"),epd=new _.Jw("ERROR_WEIGHT_MAPS"),BEc=new _.Jw("INIT_ERROR");var HFd={},qLf=(HFd.initialized={priority:10,callback:function(q){q.injector.resolve(BEc)()}},HFd);var Nna=function(){},b3x=function(){var q=_.Ng("meta_logger_impl");
q||(q=new Nna,_.zn("meta_logger_impl",q));return q},yXx=function(){b3x().csiSubscriptionKey=s0A("meta_logging_csi_event",function(q){var N=q.timerName;
if(q=q.timelineData){_.Yo(N,{startTime:q.startTime},N);q.infos&&_.v3(q.infos,N);for(var b=_.Z(Object.keys(q.ticks)),y=b.next();!y.done;y=b.next())y=y.value,_.Q6(y,q.ticks[y],N)}})};
Nna.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&SvA(this.csiSubscriptionKey)};var JXK={},ELA=(JXK.initialized={priority:10,callback:function(){yXx()}},JXK);var gLd=function(q,N){this.innertubeClientName=q;this.JSC$18644_prefCookie=N};
gLd.prototype.record=function(){if(_.x("web_li_record_binary_eval_tick")){var q=_.iG("rsef_dpj");var N=_.iG("rses_dpj");q=q!==void 0&&N!==void 0?Math.round(q-N):void 0;if(q!==void 0&&q>0){N=_.XH(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var b=this.poolSize;if(!(N.valuesSeen>=1E9)){if(N.valuesSample.length<b)N.valuesSample.push(q);else{var y=Math.floor(Math.random()*(N.valuesSeen+1));y<b&&(N.valuesSample[y]=q)}N.valuesSeen+=1}_.r5(this.storagePrefix+"-"+this.innertubeClientName,
N,2592E3);q=N.valuesSample;N=$sJ(q);q=q.length<this.poolSize?void 0:N<400?1:N<1700?2:3;q!==void 0&&(this.JSC$18644_prefCookie.set(this.cookiePrefix+this.innertubeClientName,q),this.JSC$18644_prefCookie.save())}}else _.Vk(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18644_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18644_prefCookie.save()};
gLd[ma]=[dv,eW];var Z3a=function(){gLd.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.Y(Z3a,gLd);var FRN=new _.Jw("PAGE_LOAD_TIME_TOKEN");var RMc=function(q){this.signal=q;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;q.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.Ip(_.pY,this.disableLoggingAndSendPayload,1E4)};
RMc.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.pY.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),d0c(this))};
var d0c=function(q){var N=_.QY();if(N){var b={webClientComponentsData:{components:Array.from(q.ids,function(y){return{id:y}})}};
q.ids.clear();_.FR().visualElementStateChanged(N,b)}};var cXf=G4({a11y:npE});_.u8c=YP(cXf)(cXf.a11y,{ephemeralActionSelector:function(q){return q.ephemeralAction||null}});var zMa=G4({continuation:p8x});var $0c=YP(zMa)(zMa.continuation,{continuationCommandSelector:function(q){return q.continuationCommand}});var txC=new _.Jw("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var g4=function(q,N){this.JSC$18673_storeWithEntities=q;this.JSC$18673_commandHandler=N;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
g4.prototype.start=function(){this.JSC$18673_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
g4.prototype.observeDownloadingEntities=function(){var q=_.n6d(this.JSC$18673_storeWithEntities.getState().entities).map(function(y){return aGR(y)});
if(q.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var N={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:qZC()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.o5(_.FE("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18673_commandHandler.resolveCommand(N)}this.downloadingEntities=q}else if(this.downloadingEntities.length){var b=szd(this.JSC$18673_storeWithEntities.getState().entities).map(function(y){return aGR(y)});
this.downloadingEntities.filter(function(y){return b.includes(y)}).length&&(q={openPopupAction:pNC()},this.JSC$18673_commandHandler.resolveCommand(q));
this.downloadingEntities=[]}};
g4[ma]=[BD,_.rO];var m0x;_.Z8=function(q,N,b,y,J,E,F,R){this.JSC$18676_playerApiPromise=q;this.JSC$18676_commandHandler=N;this.JSC$18676_screenManager=b;this.offlineWebClientEligibility=y;this.JSC$18676_prefStorage=J;this.JSC$18676_actionRouter=E;this.entityTypeMap=F;this.JSC$18676_persistentStorePromiseAccessor=R;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
m0x=function(){var q=_.tz().resolve(_.Z8),N;_.d(function(b){if(b.nextAddress==1)return q.downloadFailureListenerBound?b.return():b.yield(q.JSC$18676_playerApiPromise,2);N=b.yieldResult;N.addEventListener("onOfflineOperationFailure",function(y){if(y.failureReason&&y.entityKey&&y.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(y.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var J=_.qR(y.entityKey).entityId;J&&q.JSC$18676_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
J)}else if(_.x("kevlar_woffle")){J=q.JSC$18676_commandHandler;var E=J.resolveCommand;y=y.failureReason;var F=_.FE("TRANSFER_FAILED",void 0,"Download failed");y==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(F=_.FE("STORAGE_FULL",void 0,"Storage full"));E.call(J,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.o5(F),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
q.downloadFailureListenerBound=!0;_.hj(b)})};
_.Z8.prototype.deleteVideo=function(q,N){var b=this,y,J,E;return _.d(function(F){if(F.nextAddress==1)return F.yield(b.JSC$18676_playerApiPromise,2);y=F.yieldResult;E={offlineLoggingData:{offlineDeleteReason:(J=N)!=null?J:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return F.yield(y.queueOfflineAction(q,b.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",E),0)})};
_.Z8.prototype.pauseVideoDownload=function(q){var N=this,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(N.JSC$18676_playerApiPromise,2);b=y.yieldResult;b.pauseVideoDownload(q);_.hj(y)})};
_.Z8.prototype.resumeVideoDownload=function(q){var N=this,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(N.JSC$18676_playerApiPromise,2);b=y.yieldResult;return y.yield(b.resumeVideoDownload(q),0)})};
_.Z8[ma]=[_.Bk,_.rO,_.S9,txC,N4,jO,Ifj,C$];var rXf=new _.Jw("DOWNLOAD_STATE_STORE_TOKEN");var X1N=function(q,N){this.JSC$18697_persistentStorePromiseAccessor=q;this.store=N;this.upliftCompletionResolver=new _.yk},x0f=function(){var q=_.tz().resolve(Vxc),N;
_.d(function(b){switch(b.nextAddress){case 1:if(q.upliftImplPromise)return b.return(q.upliftImplPromise);_.Yi(b,2);q.upliftImplPromise=jeB(q);return b.yield(q.upliftImplPromise,4);case 4:q.upliftCompletionResolver.resolve();_.Ea(b,3);break;case 2:throw N=_.K7(b),q.upliftCompletionResolver.reject(N),N;case 3:return b.return(q.upliftImplPromise)}})},jeB=function(q){var N,b,y;
return _.d(function(J){switch(J.nextAddress){case 1:return _.ou("LOGGED_IN")?J.yield(q.JSC$18697_persistentStorePromiseAccessor(),2):J.return();case 2:N=J.yieldResult;if(!N)return _.Q6("vdeur"),J.return();_.Q6("vdeus");_.Yi(J,3);return J.yield(vLK(N),5);case 5:b=J.yieldResult;q.store.dispatch(QzR(b));N.observe(function(E){OPD(q.store,E)});
_.Ea(J,4);break;case 3:throw y=_.K7(J),_.Q6("vdeur"),y;case 4:_.Q6("vdeuc"),_.hj(J)}})},vLK=function(q){var N;
return _.d(function(b){if(b.nextAddress==1)return b.yield(jIh(q),2);N=b.yieldResult;return b.return(N.reduce(function(y,J){if(!J.data||!J.key||!J.entityType)return y;y[J.entityType]||(y[J.entityType]={});y[J.entityType][J.key]=J.data;return y},{}))})};
X1N[ma]=[C$,_.eU];var Vxc;Vxc=new _.Jw("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.FN=new _.Jw("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var R8=function(q,N){this.JSC$18700_persistentStorePromiseAccessor=q;this.transportService=N};
R8.prototype.refresh=function(){var q=this,N,b,y,J;return _.d(function(E){if(E.nextAddress==1)return _.ou("LOGGED_IN")?E.yield(q.JSC$18700_persistentStorePromiseAccessor(),2):E.return();if(E.nextAddress!=3)return(N=E.yieldResult)?E.yield(BfD(N),3):E.return();if((b=E.yieldResult)&&!(Number(b.data.refreshTimestampMs||0)<(0,_.mA)()))return E.return();y={browseId:"SPaccount_downloads"};J=_.LD(TK);_.ZG(q.transportService,y,J).then(function(F){var R;if(N&&(F==null?void 0:(R=F.responseContext)==null?void 0:
R.maxAgeSeconds)!==0){var c;R=(F==null?void 0:(c=F.responseContext)==null?void 0:c.maxAgeSeconds)||604800;c=String(Math.floor((0,_.mA)())+R*1E3);N.put("service:downloads_settings:fallback",new _.Dv({innertubeResponse:F,refreshTimestampMs:c}))}});
_.hj(E)})};
R8[ma]=[_.Hu,_.tN];var d4=function(q,N){this.JSC$18704_playerPromise=q;this.store=N;this.started=!1};
d4.prototype.start=function(){var q=this,N;return _.d(function(b){if(b.nextAddress==1)return q.started?b.return():b.yield(q.JSC$18704_playerPromise,2);N=b.yieldResult;N.addEventListener("onOrchestrationBecameLeader",q.updateIsLeader.bind(q,!0));N.addEventListener("onOrchestrationLostLeader",q.updateIsLeader.bind(q,!1));if(N.isOrchestrationLeader)q.updateIsLeader(N.isOrchestrationLeader());else{var y=new _.IO("Function isOrchestrationLeader is undefined",{"player.isReady":N.isReady(),"player.playVideo":N.playVideo?
"defined":"undefined"});_.po(y);q.updateIsLeader(!1)}q.started=!0;_.hj(b)})};
d4.prototype.updateIsLeader=function(q){this.store.dispatch(_.B3({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:q}}))};
d4[ma]=[_.Bk,_.eU];var G2W=function(q,N){this.networkStatusManager=q;this.JSC$18707_prefStoragePromise=N;this.redirectsToPreload=["https://youtube.com"]},YLC=function(){var q=_.tz().resolve(G2W),N,b,y,J,E,F;
_.d(function(R){switch(R.nextAddress){case 1:return R.yield(q.JSC$18707_prefStoragePromise,2);case 2:N=R.yieldResult;if(!(b=N)){R.jumpTo(3);break}return R.yield(N.get("yt-redirect-prefetch-id"),4);case 4:b=R.yieldResult;case 3:if(b||!q.networkStatusManager.isNetworkAvailable())return R.return();y={cache:"reload",redirect:"manual"};J=_.Z(q.redirectsToPreload);E=J.next();case 5:if(E.done){if(!N){R.jumpTo(0);break}return R.yield(N.set("yt-redirect-prefetch-id",!0,86400),0)}F=E.value;_.Yi(R,8);return R.yield(_.JZ.fetch(F,
y),10);case 10:_.Ea(R,6);break;case 8:_.K7(R);case 6:E=J.next(),R.jumpTo(5)}})};var QeN=function(q){this.JSC$18713_pageManager=q},O3x=function(q){var N=[];
YGD(["videoId","contentId"],q.JSC$18713_pageManager.data,new Set,N);return N},w1K=function(q){return O3x(q).filter(function(N){return N.contentType==="video"}).map(function(N){return N.contentId}).filter(function(N){return N!==void 0})};
QeN[ma]=[_.L6];var i3d=new _.Jw("PAGE_CONTENT_EXTRACTOR_TOKEN");var cn=function(q){q?(this.container=q,this.containerWasInjected=!0):this.containerWasInjected=!1};
cn.prototype.openDialog=function(q,N,b){var y=this,J;return _.d(function(E){(J=y.container)==null||J.openDialog(q,N,b);_.hj(E)})};
cn.prototype.closeDialog=function(){var q=this,N;return _.d(function(b){(N=q.container)==null||N.closeDialog();_.hj(b)})};
cn.prototype.isDialogOpen=function(){var q=this,N,b;return _.d(function(y){return y.return((b=(N=q.container)==null?void 0:N.isDialogOpen())!=null?b:!1)})};
cn[ma]=[_.$f(y6R)];_.luW=new _.Jw("POPUP_CONTROLLER_TOKEN");var KRf=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
KRf.prototype.registerPanel=function(q,N){if(q){this.panelMap.set(q,N);var b=this.pendingPanelResolvers.get(q);b&&(b.resolve(N),this.pendingPanelResolvers.delete(q))}};
KRf.prototype.getPanel=function(q){var N=this,b;return _.d(function(y){return(b=N.panelMap.get(q))?y.return(b):y.return(D0p(N,q))})};
var D0p=function(q,N){var b,y;return _.d(function(J){if(b=q.pendingPanelResolvers.get(N))return J.return(b.promise);y=new _.yk;q.pendingPanelResolvers.set(N,y);return J.return(y.promise)})},hMN=function(q,N){KRf.call(this);
var b=this;this.popupController=q;this.persistentPanelController=N;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return b.panelMap.size}}};
_.Y(hMN,KRf);_.g=hMN.prototype;_.g.getReloadContinuation=function(q){var N=this,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(N.getPanel(q),2);b=y.yieldResult;return y.return(b.getReloadContinuation())})};
_.g.showPanel=function(q){var N=this,b,y,J,E,F,R,c,z,m,r,X,V;return _.d(function(G){if(G.nextAddress==1){b=q;y=b.identifier;J=b.panelContents;E=b.config;F=b.extras;R=b.panelUpdatableFields;c=b.updatePanelContinuationData;z=q.target;c&&N.updatePanelContinuationDatas.set(y,c);if((m=E)==null?0:(r=m.engagementPanelPopupPresentationConfig)==null?0:r.popupType)if(X=E.engagementPanelPopupPresentationConfig.popupType,z===void 0&&(z=document.body),X==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!N.persistentPanelController)return _.M6(new _.IO("Persistent panel controller is not available.")),
G.return();var w=N.persistentPanelController;w.persistentPanelIdentifiers.has(y)||(w.persistentPanelWrapper.appendChild(w.engagementPanelElement({panelIdentifier:y},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),w.persistentPanelIdentifiers.add(y));a:switch(_.U$.currentPageSubTypeSelector(w.store.getState())){case "watch":var D="WATCH";break a;default:D="APP"}_.k2f(w,D);w.store.dispatch(S8v(!0))}else{if(X==="PANEL_POPUP_TYPE_DIALOG"||X==="PANEL_POPUP_TYPE_DROPDOWN"){w=G.return;D=N.popupController;
var k=D.openPopup;a:switch(X){case "PANEL_POPUP_TYPE_DIALOG":var f="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":f="DROPDOWN";break a;default:throw Error("rj`"+X);}return w.call(G,k.call(D,y,J,f,z))}_.M6(new _.IO("Popup type "+X+" not supported in PanelController."))}return G.yield(N.getPanel(y),2)}V=G.yieldResult;(J||R)&&V.updatePanel(J,!1,F,R);V.showPanel(F);_.hj(G)})};
_.g.hidePanel=function(q){var N=this,b,y,J,E;return _.d(function(F){if(F.nextAddress==1)return b=q,y=b.identifier,F.yield(N.getPanel(y),2);J=F.yieldResult;J.hidePanel();N.popupController.closePopup(y);(E=N.persistentPanelController)!=null&&E.persistentPanelIdentifiers.has(y)&&E.store.dispatch(S8v(!1));_.hj(F)})};
_.g.isVisible=function(q,N){var b=this,y;return _.d(function(J){if(J.nextAddress==1)return N&&!b.panelMap.has(q)?J.return(!1):J.yield(b.getPanel(q),2);y=J.yieldResult;return J.return(y.isVisible())})};
_.g.updatePanel=function(q){var N=this,b,y,J,E,F,R,c,z;return _.d(function(m){if(m.nextAddress==1){b=q;y=b.identifier;J=b.panelContents;E=b.shouldFocus===void 0?!1:b.shouldFocus;F=b.extras;R=b.panelUpdatableFields;c=b.updatePanelContinuationData;if(!J&&!R)return m.return();c&&N.updatePanelContinuationDatas.set(y,c);_.x("enable_ai_companion")&&y==="PAai_companion"&&_.ux.remove("youchat_messages_section");return m.yield(N.getPanel(y),2)}z=m.yieldResult;z.updatePanel(J,E,F,R);J&&_.x("enable_ai_companion")&&
N.registerPanelContent(y,J);_.hj(m)})};
_.g.registerPanelContent=function(q,N){q&&this.panelContentMap.set(q,N)};
_.g.unregisterPanelContent=function(q){this.panelContentMap.delete(q)};
_.g.getPanelContent=function(q){return this.panelContentMap.get(q)};
_.g.getUpdatePanelContinuationData=function(q){return this.updatePanelContinuationDatas.get(q)};
hMN[ma]=[_.luW,_.$f(_.em)];var uH=function(q,N){this.innertubeTransportService=q;this.JSC$18732_screenManager=N},U0d=function(q){var N;
return!((N=q.panelLoadingStrategy)==null||!N.requestTemplate)};
uH.prototype.makeRequest=function(q){var N=this,b,y;return _.d(function(J){switch(J.nextAddress){case 1:if(!U0d(N)){J.jumpTo(2);break}_.Yi(J,3);return J.yield(_.IE(N.innertubeTransportService,q),5);case 5:return b=J.yieldResult,b?J.return(b.content):(_.po(Error("sj")),J.return(void 0));case 3:y=_.K7(J),_.po(y);case 2:return J.return(void 0)}})};
uH.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
uH.prototype.execute=function(q){var N=this,b,y,J,E,F,R,c,z,m,r;return _.d(function(X){if(X.nextAddress==1){b=q;y=b.data;J=b.fallbackVe;E=b.parentVe;F=b.createScreenConfig;R=b.renderFn;c=b.command;N.panelLoadingStrategy=y;var V,G,w=((V=N.panelLoadingStrategy)==null?0:V.screenVe)?(G=N.panelLoadingStrategy)==null?void 0:G.screenVe:J;w&&_.DO(N.JSC$18732_screenManager,w,E,F);return(z=N.getContent())?X.yield(R(z),2):X.jumpTo(2)}return X.nextAddress!=4?U0d(N)?X.yield(N.makeRequest(c),4):X.return():(r=m=
X.yieldResult)?X.yield(R(r),0):X.return()})};
uH[ma]=[_.tN,_.S9];var fua;fua=function(q,N){this.engagementPanelElement=q;this.store=N;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%"};
_.k2f=function(q,N){var b=q.persistentPanelContainerMap.get(N);b?b.contains(q.persistentPanelWrapper)||(q=q.persistentPanelWrapper,_.Lt=!0,_.pt.set(q,!0),b.insertBefore(q,null),_.pt.delete(q),_.Lt=!1):_.M6(new _.IO("Persistent panel container not found for surface "+N+"."))};
fua[ma]=[J6x,_.eU];var z3=function(){var q=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.onHoverEntered=function(){q.isHovered=!0;var N;(N=q.hoverEnterCallback)==null||N.call(q)};
this.onHoverLeft=function(){q.isHovered=!1;var N;(N=q.hoverLeaveCallback)==null||N.call(q)}};
z3.prototype.getContainer=function(){return _.Py()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
z3.prototype.openSheet=function(q,N){var b=this,y,J,E,F,R,c,z;return _.d(function(m){switch(m.nextAddress){case 1:return y={stack:[],error:void 0,hasError:!1},_.Yi(m,2,3),J=F8,m.yield(b.isSheetOpen(),5);case 5:E=m.yieldResult;Vnv(y,xmD(J));if(!E){m.jumpTo(6);break}if(!b.shouldPreventClosingWhileHovered){if(!_.x("delay_sheet_open_killswitch")){if(_.x("web_close_sheet_if_same_target_killswitch")&&N&&b.currentTarget===N)return(F=b.getContainer())==null||F.closeSheet(),m.return();b.pendingData={data:q,
target:$YC(b,N)};return m.return()}m.jumpTo(6);break}if(b.currentTarget===N)return m.return();C5p(b);return m.yield((R=b.getContainer())==null?void 0:R.closeSheet(),6);case 6:if(q.viewModel&&(q={viewModel:q.viewModel,sheetPosition:q.sheetPosition,expandToFullWidth:q.expandToFullWidth}),(c=b.getContainer())==null||c.openSheet(q,N),b.currentTarget=N,b.shouldPreventClosingWhileHovered){var r;(r=b.currentTarget)==null||r.addEventListener("mouseenter",b.onHoverEntered);var X;(X=b.currentTarget)==null||
X.addEventListener("mouseleave",b.onHoverLeft);var V;r=(V=b.getContainer())==null?void 0:V.getSheetContainerElement();r==null||r.addEventListener("mouseenter",b.onHoverEntered);r==null||r.addEventListener("mouseleave",b.onHoverLeft);b.onHoverEntered()}case 3:_.w0(m);jJR(y);_.l$(m,0);break;case 2:z=_.K7(m),y.error=z,y.hasError=!0,m.jumpTo(3)}})};
z3.prototype.closeSheet=function(){var q=this;return _.d(function(N){return q.hideDelayMs?(setTimeout(function(){return _.d(function(b){return b.yield(Iuf(q),0)})},q.hideDelayMs),N.return()):N.yield(Iuf(q),0)})};
var Iuf=function(q){var N;return _.d(function(b){if(b.nextAddress==1){if(q.shouldPreventClosingWhileHovered){if(q.isHovered)return b.return();C5p(q)}return b.yield((N=q.getContainer())==null?void 0:N.closeSheet(),2)}if(b.nextAddress!=4)return q.shouldPreventClosingWhileHovered=!1,q.currentTarget=void 0,!q.pendingData||_.x("delay_sheet_open_killswitch")?b.jumpTo(0):b.yield(q.openSheet(q.pendingData.data,q.pendingData.target),4);q.pendingData=void 0;_.hj(b)})};
z3.prototype.isSheetOpen=function(){var q=this,N,b;return _.d(function(y){return y.return((b=(N=q.getContainer())==null?void 0:N.isSheetOpen())!=null?b:!1)})};
var C5p=function(q){var N;(N=q.currentTarget)==null||N.removeEventListener("mouseenter",q.onHoverEntered);var b;(b=q.currentTarget)==null||b.removeEventListener("mouseleave",q.onHoverLeft);var y;N=(y=q.getContainer())==null?void 0:y.getSheetContainerElement();N==null||N.removeEventListener("mouseenter",q.onHoverEntered);N==null||N.removeEventListener("mouseleave",q.onHoverLeft)},$YC=function(q,N){if(!_.x("web_parent_target_for_sheets"))return N;
var b,y;return(y=(b=q.getContainer())==null?void 0:b.getParentTarget(N))!=null?y:N};var q$=window.documentPictureInPicture;var kun=_.Tt(["dark"]),Usd=_.Tt(["system-icons"]),fHz=_.Tt(["typography"]),C8z=_.Tt(["lang"]),IHZ=_.Tt(["style"]),lHd=_.Tt(["dir"]),Kgn=_.Tt(["rounded-container"]),Dsh=_.Tt(["style"]),sIu=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],$m=function(q){this.JSC$18750_clientRoot=q;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
$m.prototype.openWindow=function(q){var N=this,b,y;return _.d(function(J){switch(J.nextAddress){case 1:if(!window.documentPictureInPicture||!_.ln()||N.currentPipWindow)return J.return(!1);_.Yi(J,2);return J.yield((y=q$?q$:null)==null?void 0:y.requestWindow(q),4);case 4:b=J.yieldResult;_.Ea(J,3);break;case 2:return _.K7(J),J.return(!1);case 3:if(!b)return J.return(!1);b.addEventListener("pagehide",function(){TnN(N)});
b.addEventListener("resize",N.handlePipWindowResize);TuR(b);aHn(b);moJ(b);return J.yield(iKn(b),5);case 5:if(!QId())return J.return(!1);N.currentPipWindow=b;N.JSC$18750_eventForwarder=nvD(b,N.JSC$18750_clientRoot);N.pipWindowResizeDelay=new _.rd(function(){N.currentPipWindow&&_.By(N.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.l3(N.currentPipWindow.innerWidth,N.currentPipWindow.innerHeight)])},b);
N.pipWindowResizeDelay.start();return J.return(!0)}})};
$m.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var TnN=function(q){if(q.currentPipWindow){var N,b;(N=q$?q$:null)==null||(b=N.window)==null||b.close();q.currentPipWindow.removeEventListener("resize",q.handlePipWindowResize);var y;(y=q.pipWindowResizeDelay)==null||y.dispose();q.pipWindowResizeDelay=void 0;var J;(J=q.JSC$18750_eventForwarder)==null||J.stop();q.JSC$18750_eventForwarder=void 0;N=_.Z(q.onCloseCallbacks);for(b=N.next();!b.done;b=N.next())b=b.value,b();q.onCloseCallbacks=[];q.currentPipWindow=null}};
$m.prototype.getWindow=function(){return this.currentPipWindow};
var seW=function(q,N){var b;(b=q.onCloseCallbacks)==null||b.push(N)};
$m.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.ln()};
_.$H.Object.defineProperties($m.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
$m[ma]=[jsR];var nLa=new _.Jw("PICTURE_IN_PICTURE_CONTROLLER");var SGR=function(q,N){this.lengthY=this.lengthX=0;this.lengthX=N.x-q.x;this.lengthY=N.y-q.y};var auX=function(){},QWx=function(q,N){var b;
(b=q.headerElement)==null||b.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:N}))};var SLC=function(){};
SLC.prototype.openPopup=function(q,N,b,y){var J=this,E;return _.d(function(F){if(!J.container)return F.return();E={openPopupAction:{popup:N,popupType:b,uniqueId:q}};return F.return(J.container.handleOpenPopupAction(E,y))})};
SLC.prototype.closePopup=function(q){this.container&&this.container.closePopup(q)};var WRB=function(){this.openTunnels=new Map},Ygh=function(q,N,b){if(ovC(b)){var y=_.HY(b,"gclid");
b={handleEvent:function(R){N&&!N.closed&&typeof N.postMessage==="function"&&R&&R.origin&&R.source===N&&R.data&&R.data.action==="gcl_setup"&&N.postMessage(Object.assign({},{action:"gcl_transfer"},y&&{gclid:y},{gadSource:2}),R.origin)}};
for(var J=_.Z(q.openTunnels),E=J.next();!E.done;E=J.next()){var F=_.Z(E.value);E=F.next().value;F=F.next().value;if(E.closed)try{window.removeEventListener("message",F),q.openTunnels.delete(E)}catch(R){_.po(R)}}N&&q.openTunnels.size<15&&(q.openTunnels.set(N,b),window.addEventListener("message",b))}};var LRa=function(){this.clientParams=new Map},JBU=function(q){for(var N=_.Z(q.clientParams.keys()),b=N.next();!b.done;b=N.next())b=b.value,b.startsWith("yt-mini-app-share")&&q.clientParams.delete(b)};var p1N=function(q,N){_.UN.call(this);var b=this;this.shortsController=q;this.storeWithShorts=N;q=_.aM(this.storeWithShorts,_.pID,function(y){if(y){var J,E=(J=b.shortsController.getRoot())==null?void 0:J.getPlayer(),F;(J=(F=b.shortsController.alternativePlayerContainerElement)==null?void 0:F.getPlayerContainer())&&(E==null||E.appendTo(J))}else{var R;F=(R=b.shortsController.alternativePlayerContainerElement)==null?void 0:R.getPlayerContainer().querySelector("#player");J=b.shortsController.activeIndex;
(R=(E=b.shortsController.getRoot())==null?void 0:E.querySelector('ytd-reel-video-renderer[id="'+J+'"] #player-container'))&&(F==null||F.appendTo(R,void 0,!0))}});
this.addOnDisposeCallback(q)};
_.Y(p1N,_.UN);var t1=function(q,N,b,y){var J=this;this.storeWithShorts=q;this.ephemeralResponseStore=N;this.innertubeTransportService=b;this.innertubeTransportLoader=y;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.uR(_.AO);this.isShortsPipActive=_.uR(_.ez);this.nextReelVe=_.bx(56921);this.prevReelVe=_.bx(56922);this.backButtonVe=_.bx(22156);this.TEST_ONLY={getActiveModules:function(){return J.activeModules}}},P5B=function(q){q.unsubscribeFromStore=
_.aM(q.storeWithShorts,_.LBn,function(N){q.initOrDisposeActiveModules(N);
!N&&q.storeWithShorts.getState().shorts.isFullscreen&&(_.MP(document.documentElement),q.storeWithShorts.dispatch(_.Ppq(!1)))});
q.initOrDisposeActiveModules(_.LBn(q.storeWithShorts.getState()))},zpa,$Ix,MxK;
t1.prototype.initOrDisposeActiveModules=function(q){q?this.activeModules.push(new p1N(this,this.storeWithShorts)):(_.dE(this.activeModules),this.activeModules.length=0)};
t1.prototype.registerRootElement=function(q){this.rootElement=q;P5B(this)};
t1.prototype.getRoot=function(){return this.rootElement};
t1.prototype.setActiveIndex=function(q){this.activeIndex=q};
_.FWd=function(q,N){var b,y,J,E,F,R,c;return _.d(function(z){switch(z.nextAddress){case 1:return b=new vu,(y=b.JSC$14256_getStoreKey(N))&&q.ephemeralResponseStore.has(y)?z.yield(q.ephemeralResponseStore.get(y),7):z.yield(MxK(q,N),4);case 4:J=z.yieldResult;if(!y){z.jumpTo(3);break}E=qE(J,3600);return z.yield(q.ephemeralResponseStore.put(y,new _.Dv(E)),3);case 7:J=(F=z.yieldResult)==null?void 0:_.PD(F);case 3:return((R=J)==null?0:R.replacementEndpoint)&&(c=_.v(J.replacementEndpoint,_.uI))&&J.sequenceContinuation&&
(c.sequenceParams=J.sequenceContinuation),z.return(J)}})};
zpa=function(q,N){N=(new GX).JSC$14256_getStoreKey(N);return!!N&&q.ephemeralResponseStore.has(N)};
$Ix=function(q,N,b){var y,J,E,F,R;_.d(function(c){if(c.nextAddress==1){y=new GX;J=y.JSC$14256_getStoreKey(N);if(!J)return c.return();if(b.reelWatchSequenceResponse)return E=qE(b.reelWatchSequenceResponse,3600),q.ephemeralResponseStore.put(J,new _.Dv(E)),c.jumpTo(0);if(!q.ephemeralResponseStore.has(J))return c.jumpTo(0);R=b;return c.yield(q.ephemeralResponseStore.get(J),4)}R.reelWatchSequenceResponse=(F=c.yieldResult)==null?void 0:_.PD(F);_.hj(c)})};
MxK=function(q,N){var b=b===void 0?{}:b;var y,J,E;return _.d(function(F){switch(F.nextAddress){case 1:if(q.innertubeTransportService){y=q.innertubeTransportService;F.jumpTo(2);break}if(!q.innertubeTransportLoader){_.HC(Error("uj"));F.jumpTo(2);break}return F.yield(q.innertubeTransportLoader(),4);case 4:y=F.yieldResult;case 2:return F.yield((J=y)==null?void 0:_.IE(J,N,b),5);case 5:return E=F.yieldResult,F.return(E)}})};
_.$H.Object.defineProperties(t1.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
t1[ma]=[NEp,_.KE,_.$f(_.tN),_.$f(wJT)];_.oLf=new _.Jw("STORAGE_MANAGER_TOKEN");var $bA=["touchmove","scroll"];var AXB=!1;var NBd=!1;var zRD={onSpanEnd:function(q){q.parentId==null&&(AXB||(HKZ(),setInterval(HKZ,6E5),AXB=!0),bjA(q,"web_tracing_action"))}};var Zjd=URL.createObjectURL;var cLe,eMp={traceAllComponents:_.x("web_tracing_all_components"),exportToCsi:_.x("web_tracing_export_to_csi"),enabledSpansArray:_.v4("web_tracing_enabled_spans"),exportToDevTools:_.x("web_tracing_export_to_devtools"),maxBreadcrumbs:_.VX("tel_max_breadcrumbs",0)};cLe=new gSJ(eMp);var uqC=_.x("web_shorts_enable_tracing");var Bna=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},H3f;
Bna.prototype.enqueue=function(q,N){N===1?this.currentPersistentToast=q:this.queue.push(q);this.openToast()};
Bna.prototype.openToast=function(){var q;(q=this.currentToast)!=null&&q.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.mE=new _.Jw("TOAST_MANAGER_TOKEN");var qwU=new _.Jw("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var NVW=new _.Jw("VIEW_TRANSITION_COORDINATOR_TOKEN");var bIX=function(q){this.config=q;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;q=_.Z(q.transitionConfigs);for(var N=q.next();!N.done;N=q.next())N=_.Z(N.value).next().value,this.transitionTasksMap.set(N,[])};
bIX.prototype.registerElement=function(q,N,b){b=b===void 0?!1:b;for(var y=_.Z(Object.keys(N)),J=y.next(),E={};!J.done;E={viewTransitionName:void 0},J=y.next()){J=J.value;E.viewTransitionName=N[J];var F=this.elementTasksMap.get(q),R=void 0;if((R=F)==null?0:R.has(J)){_.P_(new _.IO("Element already registered for transition",q.tagName,J));break}F=F||new Map;F.set(J,{beforeTransition:function(c){return function(){q.style.viewTransitionName=c.viewTransitionName}}(E),
afterTransition:function(){q.style.viewTransitionName&&(q.style.viewTransitionName="")},
runOnce:b});this.elementTasksMap.set(q,F)}};
_.lx=function(q,N){var b=q.elementTasksMap.get(N);b&&(b.clear(),b.size===0&&q.elementTasksMap.delete(N))};
bIX[ma]=[qwU];var JVf=_.n(function(q){var N=_.dI("yt-expandable-metadata-header-view-model"),b=_.y0(function(y){if(!_.vG(_.xe(y),N.value,["A".toString(),"BUTTON".toString()])){var J;(J=q.expandedCallback)==null||J.call(q,!1)}});
return _.u("yt-expandable-metadata-header-view-model",{el:N,class:"ytExpandableMetadataHeaderViewModelHost"},_.u(_.t,{cond:function(){return q.expanded()},
then:function(){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":b},_.u("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.u(_.t,{cond:function(){return q.data().expandedTitleImage},
then:function(y){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.u(_.s_,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:y}))}}),_.u("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.u("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.u(_.Zc,{text:function(){return q.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.u(_.Zc,{text:function(){return q.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.u(_.Zc,{text:function(){return q.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.u("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.u(_.zS,{data:function(){return q.data().infoButton}},{buttonViewModel:_.Ou}),_.u(_.zS,{data:function(){return q.data().collapseButton}},{buttonViewModel:function(y){return _.u(_.Ou,{data:y.data,
onClick:function(){var J;(J=q.expandedCallback)==null||J.call(q,!1)}})}})))},
else:function(){return _.u(yVU,Object.assign({},q))}}))},"qg"),EZC=_.n(function(q){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.u(_.t,{cond:function(){return q.data().collapsedLabelImage},
then:function(N){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.u(_.s_,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:N,alt:""}))}}),_.u(_.Zc,{text:function(){return q.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"rg"),yVU=_.n(function(q){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.y0(function(){var N;return void((N=q.expandedCallback)==null?void 0:N.call(q,!0))})},_.u("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.u(_.t,{cond:function(){return q.data().collapsedImage},
then:function(N){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.u(_.s_,{height:20,preserveHeight:!0,preserveWidth:!0,data:N,alt:""}))}}),_.u(_.t,{cond:function(){return q.data().showLeadingCollapsedLabel},
then:function(){return _.u(EZC,Object.assign({},q))}}),_.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.u(_.Zc,{text:function(){return q.data().collapsedTitle}}))),_.u("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.u(_.t,{cond:function(){return!q.data().showLeadingCollapsedLabel},
then:function(){return _.u(EZC,Object.assign({},q))}}),_.u(_.zS,{data:function(){return q.data().infoButton}},{buttonViewModel:_.Ou}),_.u(_.zS,{data:function(){return q.data().expandButton}},{buttonViewModel:function(N){return _.u(_.Ou,{data:N.data,
onClick:function(){var b;(b=q.expandedCallback)==null||b.call(q,!0)}})}})))},"sg");_.gZp=_.n(function(q){var N=_.Z(_.gJ(function(){return q.data().initiallyExpanded})),b=N.next().value,y=N.next().value,J,E=(J=_.tz().resolve(_.$f(_.ft)))==null?void 0:J(),F=function(){var R=q.data().colorData;
if(R)return E?R==null?void 0:R.darkColorPalette:R==null?void 0:R.lightColorPalette};
return _.u("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.ZU({"background-color":function(){var R=F();return(R==null?0:R.section2Color)?_.Y8(R.section2Color):""}})},_.u(_.zS,{data:function(){return q.data().header}},{expandableMetadataHeaderViewModel:function(R){return _.u(JVf,{data:R.data,
expanded:function(){return!!b()},
expandedCallback:function(c){y(c)}})}}),_.u(_.t,{cond:function(){return b()},
then:function(){return _.u("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.u(_.zS,{data:function(){return q.data().expandedContent}},{horizontalShelfViewModel:function(R){return _.u(_.uF,{data:R.data,
includeMargin:!0,forceNarrowLayout:!0,palette:F})},
videoSummaryContentViewModel:function(R){return _.u(yh4,{data:R.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(R){return _.u(_.UE,{data:R.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(R){return _.u(_.zGR,{data:R.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.u(_.zS,{data:function(){return q.data().expandedBottomButtons}},{buttonViewModel:function(R){return _.u("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.u(_.Ou,{data:R.data}))}}))}}))},"tg");var ZId=_.n(function(q){var N=q.text;var b=q.marqueeSpacing;var y=q.scrollDelay;var J=q.scrollDuration;var E=q.enableMarqueeScroll;q=q.large;var F=_.Z(_.QS(!1,void 0,"WyNYFf")),R=F.next().value,c=F.next().value,z=_.Z(_.QS(0,void 0,"OoTdhe"));F=z.next().value;var m=z.next().value,r=_.dI("marquee-scroll");z=_.dI("div");var X=_.dI("span"),V=_.tz().resolve(_.Ii);_.Sx(function(){if(E()){var D=X.value.getBoundingClientRect().width,k=r.value.getBoundingClientRect().width;if(D>k){var f=(V==="ltr"?-1:1)*(D+
(b?b():16));Promise.resolve().then(function(){c(!0);m(f)})}}},"dv0Anf");
var G={},w={};return _.u("marquee-scroll",{class:_.NO("ytMarqueeScrollHost",(G.ytMarqueeScrollHostLarge=q,G)),el:r},_.u("div",{id:"marquee-scroll-inner-container",class:_.NO("ytMarqueeScrollInnerContainer",(w.ytMarqueeScrollAnimationEnabled=function(){return R()},w)),
el:z,style:_.ZU({gap:b?(0,_.gW)(b):"16px","animation-duration":J?Zl4(J):"16s","animation-delay":y?Zl4(y):"3s","--marquee-translate":(0,_.gW)(F)})},_.u("span",{el:X,dir:"auto"},_.u(_.Zc,{text:N,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.u(_.t,{cond:R,then:function(){return _.u("span",{"aria-hidden":"true",dir:"auto"},_.u(_.Zc,{text:N,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"vg");_.FTU=_.n(function(q){var N=q.data;var b=q.overlayDensity;q=_.y0(function(){N().onTapCommand&&_.Kt(N().onTapCommand);return!1});
var y=_.nXJ(),J=function(){return(b==null?void 0:b())===1?22:16},E={};
return _.u("reel-sound-metadata-view-model",{class:_.NO("ytReelSoundMetadataViewModelHost",(E.ytReelSoundMetadataViewModelHostLarge=function(){return(b==null?void 0:b())===1},E)),
"on:click":q,tabindex:0,role:"button","on:keydown":y},_.u("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.u(_.t,{cond:function(){return N().musicIcon},
then:function(F){return _.u(_.s_,{data:F,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:J})}}),_.u("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.u(ZId,{text:function(){return N().soundMetadata},
enableMarqueeScroll:function(){return!!N().enableMarqueeScroll},
large:function(){return(b==null?void 0:b())===1}}))))},"wg");var Rla,d7B,r4,$7N,m7f,zlp,VIC,XCK;Rla=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];d7B=_.VX("wil_icon_max_concurrent_fetches",Infinity);
r4=function(q,N,b){var y=this;this.iconSet=q;this.appDirection=N;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.JZ.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.x("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.x("wil_icon_network_first");this.renderWhenIdle=_.x("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.x("wil_icon_load_immediately");this.isPurging=!1;q=function(){y.cacheStorageAvailable&&(y.cacheStorageAsync=_.JZ.caches.open("yt-icons").then(function(E){return y.cacheStorageSync=E}).catch(function(){y.cacheStorageAvailable=!1}))};
b=(b==null?void 0:b())||{};b=_.Z(Object.entries(b));for(N=b.next();!N.done;N=b.next()){var J=_.Z(N.value);N=J.next().value;J=J.next().value;J=KI(J);cVp(J);this.iconCache[N]=J.cloneNode(!0)}this.isPurging=uCK(this);this.isPurging instanceof Promise?this.isPurging.then(q):q()};
_.njR=function(q,N){var b=q.resolveIcon(N);return b?q.renderingMode===1?zlp(q,b,q.renderingMode):(N=q.iconCache[b.url])?(N=N.cloneNode(!0),$7N(q,N),zlp(q,b,q.renderingMode,N)):_.tIU(q,b).then(function(y){var J=y?0:1;$7N(q,y);return zlp(q,b,J,y)}):(_.P_(new _.IO("Icon not found",{iconShape:N})),function(){})};
$7N=function(q,N){if(N){q.counter+=1;q="_yt"+q.counter;N=[N].concat(_.a9(N.getElementsByTagName("*")));N=_.Z(N);for(var b=N.next();!b.done;b=N.next())if(b=b.value,b.tagName==="style"&&b.textContent)b.textContent=m7f(b.textContent,q,!0);else for(var y=_.Z(b.attributes),J=y.next();!J.done;J=y.next()){J=J.value;J.name==="id"&&(J.value+=q);["mask","fill","clip-path"].includes(J.name)&&(J.value=m7f(J.value,q));if(J.name==="style"){var E=b.style;try{E.cssText=m7f(E.cssText,q,!0)}catch(m){var F=void 0,R=
void 0,c=void 0,z=void 0;XN({error:((F=m)==null?void 0:(c=(R=F).toString)==null?void 0:c.call(R))||"",el:b.outerHTML,style:!!E,cssText:(z=E)==null?void 0:z.cssText})}}J.name==="xlink:href"&&(J.value=J.value.replace(/#(.*)/,"#$1"+q))}}};
m7f=function(q,N,b){var y=/url\(["']?#(.*?)["']?\)/;(b===void 0?0:b)&&(y=/url\(["']?#(.*?)["']?\)/g);return q.replace(y,"url(#$1"+N+")")};
zlp=function(q,N,b,y){return function(J,E){var F;var R=Object.assign({},{iconWidth:N.size+"px",iconHeight:N.size+"px",iconDisplay:"block"},E,{iconColor:(F=E==null?void 0:E.iconColor)!=null?F:"currentcolor"});F=_.iC("DIV");E=R.iconColor;var c=R.iconFilter;R="width: "+R.iconWidth+"; height: "+R.iconHeight+"; display: "+R.iconDisplay+";";c&&(R+=" filter: "+c+";");b===0&&(R+=" fill: "+E+";");b===1&&(c=N.url,R+=" -webkit-mask: url("+c+") no-repeat center / cover; mask: url("+(c+") no-repeat center / cover; background-color: ")+
E);N.allowMirroring&&q.appDirection==="rtl"&&(R+=" transform: scale(-1, 1); transform-origin: center center;");F.setAttribute("style",R);b===0&&y&&F.appendChild(y);J.appendChild(F)}};
_.tIU=function(q,N){var b,y,J;return _.d(function(E){b=function(F){return BZ(F)};
y=N.url;if(!rVf(y))throw Error("xj");J=XCK(q,y);return E.return(J.then(function(F){return F.clone().text()}).then(function(F){var R=b(F);
F=N.size;var c=_.iC("DIV");_.d0(c,R);R=_.lC(c.firstElementChild!==void 0?c.firstElementChild:_.QWJ(c.firstChild,!0));F=cVp(R,F);q.iconCache[y]=F.cloneNode(!0);delete q.responsePromises[y];return F}).catch(function(){}))})};
VIC=function(q){var N,b=(N=q.requestAninmationFrameResolver)==null?void 0:N.promise;b||(q.requestAninmationFrameResolver=new _.yk,b=q.requestAninmationFrameResolver.promise,_.JZ.requestAnimationFrame(function(){var y;(y=q.requestAninmationFrameResolver)==null||y.resolve();q.requestAninmationFrameResolver=null}));
return b};
XCK=function(q,N){var b,y;return _.d(function(J){if(J.nextAddress==1)return q.waitForAnimationFrame?J.yield(VIC(q),2):J.jumpTo(2);b=q.responsePromises[N];b||(y=function(){var E,F,R;return _.d(function(c){switch(c.nextAddress){case 1:if(!q.cacheStorageAvailable){E=void 0;c.jumpTo(2);break}if(F=q.cacheStorageSync){c.jumpTo(3);break}return c.yield(q.cacheStorageAsync,4);case 4:F=c.yieldResult;case 3:E=F;case 2:return R=E,q.isNetworkFirstStrategy?c.return(q.fetchAndUpdateCache(N,R).catch(q.getCacheStorageResponse.bind(q,
N,R))):c.return(q.getCacheStorageResponse(N,R).catch(q.fetchAndUpdateCache.bind(q,N,R)))}})},b=q.renderWhenIdle?new Promise(function(E,F){_.Ip(_.pY,function(){y().then(E).catch(F)},10)}):y(),q.responsePromises[N]=b);
return J.return(b.catch(function(E){delete q.responsePromises[N];XN({error:(E==null?0:E.toString)?E.toString():"",url:N});throw E;}))})};
r4.prototype.fetchAndUpdateCache=function(q,N){var b=this;return _.d(function(y){return y.return(juK(b,q).then(function(J){x7U(b,q,J,N);return J}))})};
var juK=function(q,N){var b;return _.d(function(y){if(q.numFetches<d7B)return q.numFetches+=1,y.return(vZx(q,N).finally(function(){--q.numFetches;if(Object.keys(q.queuedResponseResolvers).length){var J=Object.keys(q.queuedResponseResolvers)[0],E=q.queuedResponseResolvers[J];delete q.queuedResponseResolvers[J];E.resolve(juK(q,J))}}));
b=new _.yk;q.queuedResponseResolvers[N]=b;return y.return(b.promise)})},vZx=function(q,N,b){b=b===void 0?2:b;
var y;return _.d(function(J){y={credentials:"same-origin",priority:"low"};return J.return(_.JZ.fetch(N,y).then(function(E){return E.ok?E:Promise.reject(Error("yj`"+E.status+"`"+E.statusText))}).catch(function(E){if(b>0)return vZx(q,N,b-1);
throw E;}))})},x7U=function(q,N,b,y){_.d(function(J){return y?J.return(new Promise(function(E){_.Ip(_.pY,function(){var F,R;
return _.d(function(c){switch(c.nextAddress){case 1:if(!q.isNetworkFirstStrategy){F=void 0;c.jumpTo(2);break}return c.yield(y.match(N).catch(function(){}),3);
case 3:F=c.yieldResult;case 2:if(R=F){c.jumpTo(4);break}return c.yield(y.put(N,b.clone()).catch(function(z){XN({error:(z==null?0:z.toString)?z.toString():"",url:N})}),4);
case 4:E(),_.hj(c)}})},50)})):J.return()})};
r4.prototype.getCacheStorageResponse=function(q,N){return _.d(function(b){return N?b.return(N.match(q).then(function(y){return y&&y.ok?y:Promise.reject()})):b.return(Promise.reject())})};
var cVp=function(q,N){N===void 0||q.getAttribute("viewBox")||q.setAttribute("viewBox","0 0 "+N+" "+N);q.setAttribute("focusable","false");q.setAttribute("aria-hidden","true");try{q.style.pointerEvents="none",q.style.display="inherit",q.style.width="100%",q.style.height="100%"}catch(J){var b;XN({error:((b=J)==null?0:b.toString)?J.toString():""});try{q.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(E){var y;XN({error:((y=E)==null?0:y.toString)?E.toString():
""})}}return q},rVf=function(q){for(var N=_.Z(Rla),b=N.next();!b.done;b=N.next())if(q.startsWith(b.value)&&q.endsWith(".svg"))return!0;
return!1};
r4.prototype.resolveIcon=function(q){return this.iconSet.resolveIcon(q)};
var XN=function(q){_.M6(new _.IO("Error in IconManager",q))},uCK=function(q){if(_.x("wil_icons_cache_purge_killswitch"))return!1;
try{var N=_.JZ.localStorage}catch(E){return!1}if(!N||!q.cacheStorageAvailable)return!1;var b=function(E){try{var F;(F=N)==null||F.setItem("yt-icons-last-purged",E.toString())}catch(c){var R;XN({error:((R=c)==null?0:R.toString)?c.toString():""})}},y=Number(N.getItem("yt-icons-last-purged"));
if(!y)return y=new Date,y=y.setDate(y.getDate()-Math.floor(Math.random()*90+1)),b(y),!1;if(function(E,F){E=new Date(E);F=new Date(F);return F.getMonth()-E.getMonth()+12*(F.getFullYear()-E.getFullYear())}(y,Date.now())<3)return!1;
try{return _.JZ.caches.delete("yt-icons").then(function(E){E&&b(Date.now());return E}).catch(function(){return!1}).finally(function(){q.isPurging=!1})}catch(E){var J;
XN({error:((J=E)==null?0:J.toString)?E.toString():""});return!1}};
r4[ma]=[abK,_.Ii,_.$f(Ltf)];_.Vj=function(q,N){this.iconManager=q;this.iconsToFetch=N};
_.Vj[ma]=[_.No,_.$f(Wtp)];var GfX=function(){};var YwN=function(q,N,b){this.requestKey=q;this.fBV=N;this.aXW=b;this.vhE=function(){return new XMLHttpRequest};
this.ciy=void 0;this.pfK=[]};
YwN.prototype.getLatestChallengeResponse=function(){return this.aXW};
var i4j=function(q,N,b){var y,J,E,F;return _.d(function(R){if(R.nextAddress==1){_.Yo("attestation_challenge_fetch");_.Q6("att_fs",void 0,"attestation_challenge_fetch");if(!q.ciy)throw new _.hl(9,"Missing fetcher");return R.yield(q.ciy(N,b),2)}y=R.yieldResult;E=(J=y)==null?void 0:J.bgChallenge;if(!E)throw new _.hl(15,"Missing field");q.aXW=y;q.pfK.forEach(function(c){c(y)});
F=MhJ(E);_.Q6("att_fc",void 0,"attestation_challenge_fetch");Gr("attestation_challenge_fetch");return R.return(F)})},eVj=function(q,N){var b,y,J,E,F;
return _.d(function(R){switch(R.nextAddress){case 1:b=new jG(100,3E5,.25,2),y=void 0;case 2:if(!(b.currBackoffCount_<10)){R.jumpTo(4);break}_.Yi(R,5);if(!(b.currBackoffCount_>0)){R.jumpTo(7);break}return R.yield(mbu(b.getValue()),7);case 7:return R.yield(QuC(q,N),9);case 9:return J=R.yieldResult,R.return(J);case 5:E=_.K7(R);E instanceof _.hl?y=E:(F=E instanceof Error?E.message:"Unknown",y=new _.hl(9,F));Tnv(b);R.jumpTo(2);break;case 4:if(y)throw y;throw new _.hl(9,"Unknown error");}})},QuC=function(q,
N){N=rzx(X4R(new mg1,N),q.requestKey);
var b=new _.yk,y=q.vhE();y.open("POST",q.fBV);y.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");y.setRequestHeader("Content-Type","application/json+protobuf");y.onload=function(){if(_.god(y)){var J=OYF(y.responseText);b.resolve(J)}else b.reject(new _.hl(_.dgJ(_.G1(y)),y.statusText))};
y.onerror=function(){b.reject(new _.hl(_.dgJ(_.G1(y)),y.statusText))};
y.send(N.serialize());return b.promise};var wCa=function(q){this.networkStatusManager=q;this.isDownloaded=Hbd===void 0?function(){return!1}:Hbd;
this.isReady=!1;this.wsO=OIC(this)},OIC=function(q){var N;
return _.d(function(b){if(b.nextAddress==1)return b.yield(WTd(),2);if(b.nextAddress!=3)return N=b.yieldResult,b.yield(azl(N),3);q.zM=b.yieldResult;XMZ(q.zM).then(function(){q.isReady=!0});
return b.return(q.zM)})},iIU=function(q,N,b){q.zM?(q=q.zM.iKb({hm:b,
rxL:!0,j6v:!0}),N.serviceIntegrityDimensions={poToken:q}):_.po(Error("Aj"))};
wCa.prototype.processContext=function(q){var N=this;if(!q.input.match(_.LD(L1o)))return _.tI();var b=q.innerTubeRequest,y=b.videoId;return!y||this.isDownloaded(b)||this.networkStatusManager&&!this.zM&&!this.networkStatusManager.isNetworkAvailable()?_.tI():this.zM?this.isReady?(iIU(this,b,y),_.tI()):new $3(XMZ(this.zM).then(function(){iIU(N,b,y)})):new $3(this.wsO.then(function(J){return _.d(function(E){if(E.nextAddress==1)return E.yield(XMZ(J),2);
iIU(N,b,y);_.hj(E)})}))};var l$X=new _.Jw("WEB_PO_CONTEXT_PROCESSOR");var KTN=function(q,N){var b=this;this.i7W=0;var y;this.fTn=(y=N==null?void 0:N.fTn)!=null?y:window;this.networkStatusManagerPromise=N==null?void 0:N.networkStatusManagerPromise;var J;this.requestKey=(J=N==null?void 0:N.requestKey)!=null?J:_.jA("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var E;this.nu8=(E=N==null?void 0:N.nu8)!=null?E:function(c){return new s1(c)};
var F;y=(F=N==null?void 0:N.pZQ)!=null?F:function(c,z,m){return new YwN(c,z,m)};
this.bgChallenge=MhJ(q.bgChallenge);this.ttlSeconds=oVD(C0(q.challenge||""));this.n2=y(this.requestKey,_.x("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.JZ.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",q);this.fNq=N==null?void 0:N.fNq;rLJ(this.n2);var R;this.dpg=(R=N==null?void 0:N.dpg)!=null?R:function(c){_.tn(b.fTn.document,"visibilitychange",
function(){b.fTn.document.visibilityState==="visible"&&c()})}},hla=function(q){if(!q.vm){var N={maxAttempts:5,
mpg:q.ttlSeconds*1E3};Vqu(q.fTn);q.vm=q.nu8({n2:q.n2,bKo:{disable:_.x("html5_web_po_disable_remote_logging"),eU:"aGIf",j8q:NgJ("html5_web_po_experiment_ids"),jWe:_.x("wpo_dis_lfdms")?0:1E3,i1B:function(y){var J=Mw1.get(y);J||(J=new PNj(y),J=new QE(J),Mw1.set(y,J));return J}},
em6:N,ys8:q.bgChallenge,qME:jBZ});q.i7W=Date.now();G1M(q.vm,function(){q.i7W=Date.now()});
MIn(q.vm,function(){return _.d(function(y){return y.return(D7N(q))})});
var b=q.tbE.bind(q);q.networkStatusManagerPromise&&q.ttlSeconds>0&&q.networkStatusManagerPromise.then(function(y){y.listen("publicytnetworkstatus-online",b)});
q.dpg(b)}};
KTN.prototype.tbE=function(){if(Date.now()>this.i7W+this.ttlSeconds*1E3){var q;(q=this.vm)==null||vf1(q)}};
var D7N=function(q){if(q.nYW)return q.nYW;if(!q.vm)throw Error("Bj");q.nYW=new W2({vm:q.vm,n2:q.n2,iRQ:!0,onError:jBZ,em6:q.fNq});return q.nYW},vSC=function(q,N){q=new KTN(q,N);
hla(q);(N==null?0:N.oSi)||D7N(q)};var kff=_.u8c.ephemeralActionSelector,j4=function(q,N){this.store=q;this.queue=[];N==null||N.addEventListener("yt-navigate-start",this.reset.bind(this))};
j4.prototype.enqueue=function(q){var N=q.command,b=q.durationMs,y=q.elementToFocus;var J=q.label;var E=q.elementToFocus;q.command?J=_.FE("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:J,shortcut:_.FE("SHIFT_PLUS_ENTER")}):E&&(q=J+". "+_.FE("SHIFT_PLUS_ENTER")+" for more information.",J=_.FE("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:J,shortcut:_.FE("SHIFT_PLUS_ENTER")},q));b={announcement:J,durationMs:b!=null?b:8E3};N?b.command=N:y&&(y.classList.add("ephemeral-action-focusable-element"),b.selector=y.tagName+
".ephemeral-action-focusable-element");this.queue.push(b);U7K(this)};
j4.prototype.activate=function(q){var N=kff(this.store.getState());if(N){if(N==null?0:N.command)_.wa(N.command),this.store.dispatch(syx(null));if(N==null?0:N.selector)N=document.querySelector(N.selector),_.p4Z(N);q.preventDefault()}};
var U7K=function(q){if(!kff(q.store.getState())&&q.queue.length){var N=q.queue.shift();N&&(q.previousAnnouncement===N.announcement&&(N.announcement+="\u00a0"),q.store.dispatch(syx(N)),q.previousAnnouncement=N.announcement,q.timeoutId=setTimeout(function(){if(N.selector){var b;(b=document.querySelector(N.selector))==null||b.classList.remove("ephemeral-action-focusable-element")}q.store.dispatch(syx(null));U7K(q)},N.durationMs))}};
j4.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(syx(null));this.queue.length=0;this.timeoutId=void 0};
j4[ma]=[_.eU,_.$f(_.US)];_.xm=new _.Jw("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var f$p=new _.Jw("AUTH_SERVICE_TOKEN");var QBA=_.Tt(["about:blank"]),Y4J;var CcA=new _.Jw("API_IFRAME_TOKEN"),I$f=new _.Jw("FETCH_FN_TOKEN"),TVA=new _.Jw("WINDOW_REQUEST_TOKEN"),suf=new _.Jw("TEXT_DECODER_TOKEN");var l3E;l3E=new _.Jw("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.nZA=new _.Jw("MISC_UI_SHARED_FLAGS_TOKEN");var a$N=function(){};
a$N.prototype.getFlag=function(q){if(q.configType!==2)throw Error("Cj");return SwA(q)};
var SwA=function(q){switch(q.flagType){case "bool":return _.x(q.flagName);case "int":return _.To(_.VX(q.flagName));case "double":return _.VX(q.flagName);case "string":return _.jA(q.flagName);case "int32_list":return NgJ(q.flagName);case "int64_list":return NgJ(q.flagName).map(function(N){return _.To(N)});
case "string_list":return _.v4(q.flagName);default:throw Error("Dj");}};var vn=function(q,N,b){N=N===void 0?{}:N;Ig.call(this,b===void 0?"uninitialized":b);this.env=q;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}];N.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=N.shouldWaitOnAsyncImmediate)};
_.Y(vn,Ig);vn.prototype.init=function(q){var N=this,b;return _.d(function(y){if(y.nextAddress==1)return N.processPluginOptions.shouldWaitOnAsyncImmediate?y.yield(q(N.env),2):(q(N.env),y.jumpTo(2));if(y.nextAddress!=4)return N.jobSet?y.yield(N.jobSet.completedResolver.promise,4):y.jumpTo(4);b=_.dw();b.parkOrScheduleJob(function(){N.transition("rendering")},10,"ci");
_.hj(y)})};
vn.prototype.initialRender=function(q){var N=this,b;return _.d(function(y){if(y.nextAddress==1)return N.processPluginOptions.shouldWaitOnAsyncImmediate?y.yield(q(N.env),2):(q(N.env),y.jumpTo(2));if(y.nextAddress!=4)return N.jobSet?y.yield(N.jobSet.completedResolver.promise,4):y.jumpTo(4);b=_.dw();b.parkOrScheduleJob(function(){N.transition("rendered")},10,"cr");
_.hj(y)})};
vn.prototype.afterRenderImmediate=function(q){var N=this,b;return _.d(function(y){if(y.nextAddress==1)return N.processPluginOptions.shouldWaitOnAsyncImmediate?y.yield(q(N.env),2):(q(N.env),y.jumpTo(2));if(y.nextAddress!=4)return N.jobSet?y.yield(N.jobSet.completedResolver.promise,4):y.jumpTo(4);b=_.dw();b.parkOrScheduleJob(function(){N.transition("after-render-deferred")},10,"carml");
_.hj(y)})};
vn.prototype.afterRenderDeferred=function(q){var N=this;return _.d(function(b){q(N.env);_.hj(b)})};_.PC("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var WTA={},LTc=(WTA.rendered={priority:0,callback:function(q){dRF(q.injector.resolve(T6))}},WTA);var YBe=new _.Jw("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),pCc=new _.Jw("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var Pcp=function(q){this.callbackFnMap=q;this.configMap={}};
Pcp.prototype.handleResponse=function(q){var N;if(q=(N=q.responseContext)==null?void 0:N.serviceTrackingParams)for(N=_.Z(q),q=N.next();!q.done;q=N.next()){q=q.value;var b=q.params,y=q.service;if(b&&y){this.configMap[y]||(this.configMap[y]=new mul);q=this.configMap[y];var J=void 0,E=(J=this.callbackFnMap)==null?void 0:J[y];b=_.Z(b);for(y=b.next();!y.done;y=b.next())J=y.value,y=J.key,J=J.value,y&&J&&(q.set(y,J),E&&E(y,J))}}};
Pcp.prototype.getConfig=function(q){return this.configMap[q]||void 0};
Pcp[ma]=[_.$f(pCc)];var MIB=!1,C2R=0,hRh=null,fXD=null;var oZA=new _.Jw("NETWORK_SLI_TOKEN");var AVc=function(q){this.networkSli=q};
AVc.prototype.fetch=function(q,N,b){var y=this,J;return _.d(function(E){J=elC(y,q,N);return E.return(fetch(J).then(function(F){return y.handleResponse(F,b)}).catch(function(F){_.M6(F);
if((b==null?0:b.expectJsonStrict)&&F instanceof T0&&F.errorType===1)return Promise.reject(F)}))})};
var iXM=function(q,N,b,y){var J,E,F,R,c,z,m;return _.d(function(r){switch(r.nextAddress){case 1:return J=elC(q,N,b),_.Yi(r,2),r.yield(fetch(J),4);case 4:E=r.yieldResult;_.Ea(r,3);break;case 2:throw _.K7(r),new T0(2,"Failed to parse streaming response",J.url);case 3:if(!E.redirected&&!E.ok)throw(F=q.networkSli)==null||F.failure(),new _.IO("Streaming fetch request not ok",J.url);if(!E.body)throw new _.IO("No response body in streaming response",J.url);R={};if(_.x("web_streaming_fast"))return c=E.body.getReader(),
r.return(BVX(q,c,R,y));z=E.body.pipeThrough(new TextDecoderStream).getReader();m=new _.tG;return r.return(HIK(q,z,m,z1C,R,y))}})},elC=function(q,N,b){if(q.networkSli){var y=_.wO(_.px(N,"key"))||"/UNKNOWN_PATH";
q.networkSli.start(y)}q=b;_.x("wug_networking_gzip_request")&&(q=zQd(b));return new window.Request(N,q)},BVX=function(q,N,b,y){var J,E,F,R,c,z,m,r,X,V,G,w,D,k,f,L,S,W,M,qe,RJ,tZ,wA,rA,xD,IJ,sJ,Sn,YE,xE,qv;
return _.d(function(mM){switch(mM.nextAddress){case 1:J=new TextDecoder("utf-8"),E=[],R=F=0,_.Yi(mM,2,3);case 5:return mM.yield(N.read(),8);case 8:c=mM.yieldResult;z=c.value;if(m=c.done){r=0;if(E.length>F)for(r=E[F].length-R,X=F+1;X<E.length;X++)r+=E[X].length;r>0&&(V=IXR(E,r,F,R),G=V.indexOf(123),w=V.lastIndexOf(125),G!==-1&&w!==-1&&w>G&&(D=V.subarray(G,w+1),k=JSON.parse(J.decode(D)),z1C(b,k),f=void 0,(f=y)==null||f(b,k)));L=void 0;(L=q.networkSli)==null||L.success();return mM.return(b)}E.push(z);
S=F;for(W=R;S<E.length;)if(M=E[S],qe=M.indexOf(10,W),qe===-1){if(S===E.length-1)break;S++;W=0}else{RJ=S;tZ=qe+1;wA=0;if(F===RJ)wA=tZ-R;else{wA=E[F].length-R;for(rA=F+1;rA<RJ;rA++)wA+=E[rA].length;wA+=tZ}xD=IXR(E,wA,F,R,RJ,tZ);IJ=xD.indexOf(123);sJ=xD.lastIndexOf(125);if(IJ!==-1&&sJ!==-1&&sJ>IJ){Sn=xD.subarray(IJ,sJ+1);try{YE=JSON.parse(J.decode(Sn)),z1C(b,YE),xE=void 0,(xE=y)==null||xE(b,YE)}catch(Ox){throw new T0(1,"Failed to parse streaming response object",J.decode(Sn));}}F=S;W=R=qe+1;R===M.length&&
(F++,R=0,S=F,W=0)}mM.jumpTo(5);break;case 3:_.w0(mM);N.releaseLock();_.l$(mM,0);break;case 2:qv=_.K7(mM);if(qv instanceof T0)throw qv;throw new T0(1,"Failed to process streaming response");}})},HIK=function(q,N,b,y,J,E){var F,R,c,z,m,r,X,V,G;
return _.d(function(w){if(w.nextAddress==1)return w.yield(N.read(),2);F=w.yieldResult;R=F.value;if(c=F.done)return(z=q.networkSli)==null||z.success(),w.return(J);try{m=b.parse(R)}catch(D){throw new T0(1,"Failed to parse streaming response",R);}if(m!=null)for(r=_.Z(m),X=r.next();!X.done;X=r.next())V=X.value,y(J,V),G=void 0,(G=E)==null||G(J,V);return w.return(HIK(q,N,b,y,J,E))})};
AVc.prototype.handleResponse=function(q,N){var b=q.text().then(function(y){if((N==null?0:N.jspbResponseCtor)&&q.ok)return oBA(N.jspbResponseCtor,y);y=y.replace(")]}'","");if((N==null?0:N.expectJsonStrict)&&y)try{var J=JSON.parse(y)}catch(F){throw new T0(1,"JSON parsing failed after fetch");}var E;return(E=J)!=null?E:JSON.parse(y)});
q.redirected||q.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),b=b.then(function(y){_.M6(new _.IO("Error: API fetch failed",q.status,q.url,y));return Object.assign({},y,{errorMetadata:{status:q.status}})}));
return b};
AVc[ma]=[_.$f(oZA)];var qVd=new _.Jw("NETWORK_MANAGER_TOKEN");var NOa=[1,2,4,8,16,30],yzc=function(q){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=q.maxTimeMs;this.maxFrameCount=q.maxFrameCount===void 0?Math.ceil(60*q.maxTimeMs/1E3):q.maxFrameCount;q=_.Z(NOa);for(var N=q.next();!N.done;N=q.next())this.brokenFrameSummarizers.push(new b4U(N.value/60*1E3))},Jzf=function(q){var N=q.frameCountInternal>=q.maxFrameCount;
return q.elapsedTimeMs>=q.maxTimeMs||N};
yzc.prototype.summarize=function(){for(var q=[],N=_.Z(this.brokenFrameSummarizers),b=N.next();!b.done;b=N.next())b=b.value,b=b.brokenFrameCount!==0?{severityMs:Math.round(b.targetFrameTimeMs),eventCount:b.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(b.averageDurationBetweenEventsMs)}:void 0,b&&q.push(b);return{summaries:q,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.$H.Object.defineProperties(yzc.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 b4U=function(q){this.targetFrameTimeMs=q;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.$H.Object.defineProperties(b4U.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var Eff=function(){};
Eff.prototype.start=function(q,N){var b=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var y=new yzc({maxTimeMs:q});this.monitor=y;this.lastSummaryInternal=void 0;this.metadataToLog=N;return new Promise(function(J){var E=function(F){if(F===void 0)b.stop(),J(void 0);else if(b.monitor!==y)F=Object.assign({},y.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),J(F);else{var R=b.monitor;if(!Jzf(R)){R.frameCountInternal++;if(R.prevTime===
void 0)R.startTime=F;else for(var c=F-R.prevTime,z=_.Z(R.brokenFrameSummarizers),m=z.next();!m.done;m=z.next()){m=m.value;var r=m.currTimeMs;m.currTimeMs+=c;c>m.targetFrameTimeMs+2&&(m.brokenFrameCount++,m.timeOfFirstBrokenFrameMs===void 0&&(m.timeOfFirstBrokenFrameMs=r),m.timeOfLastBrokenFrameMs=r)}R.prevTime=F}Jzf(b.monitor)?J(b.stop()):_.pY.addJob(E,5,0)}};
_.pY.addJob(E,5,0)})};
Eff.prototype.stop=function(q){if(!this.monitor)return this.lastSummaryInternal;var N=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(N.monitoringDurationMs){q=q!=null?q:this.metadataToLog;var b={droppedFramesSummary:N,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};q&&(b[q.type]=q.data);_.W_("manualSmoothnessMeasurement",b)}this.monitor=void 0;this.lastSummaryInternal=N;this.metadataToLog=void 0;return N};_.gfd=new _.Jw("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var Z4B;Z4B=function(q){this.JSC$18906_expiringStorage=new sV(q)};
_.Fax=function(q){if(_.TBn()&&(q=_.WOu(_.f4()+"::"+q)))return new Z4B(q)};
Z4B.prototype.set=function(q,N,b){b=b!==void 0?Date.now()+b:void 0;this.JSC$18906_expiringStorage.set(q,N,b)};
Z4B.prototype.get=function(q){return this.JSC$18906_expiringStorage.get(q)};
Z4B.prototype.remove=function(q){this.JSC$18906_expiringStorage.remove(q)};_.G3=function(){};
_.G3.getInstance=function(){var q=_.Ng("ytglobal.storage_");q||(q=new _.G3,_.zn("ytglobal.storage_",q));return q};
_.G3.prototype.estimate=function(){var q,N,b;return _.d(function(y){q=navigator;return((N=q.storage)==null?0:N.estimate)?y.return(q.storage.estimate()):((b=q.webkitTemporaryStorage)==null?0:b.queryUsageAndQuota)?y.return(sBn()):y.return()})};
_.zn("ytglobal.storageClass_",_.G3);var P2C=0;var qtz=!1;var RVK=_.Tt(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),dgf=_.Tt(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var akp={"/":_.nm,"/?feature=ytca":_.nm,"/feed/downloads":_.AcA};var czB=$0c.continuationCommandSelector,RK=function(q,N,b){this.JSC$18922_upliftPromise=q;this.store=N;this.JSC$18922_persistentStorePromiseAccessor=b};
RK.prototype.shouldPreferLocalResponse=function(q){return q.browseId==="FEdownloads"||q.browseId==="FEsmart_downloads"&&_.x("kevlar_modern_downloads_page")?!0:!1};
RK.prototype.localInnertubeResponse=function(q){var N=this;return _.d(function(b){return q.browseId==="FEdownloads"?_.x("kevlar_modern_downloads_page")?b.return(u$p(N)):b.return(zVN(N)):q.browseId==="FEsmart_downloads"&&_.x("kevlar_modern_downloads_page")?b.return($gf(N)):b.return(Promise.reject(Error("Fj")))})};
RK.prototype.canProvideFallbackResponse=function(){return!0};
RK.prototype.localFallbackInnertubeResponse=function(q){var N=this,b,y,J;return _.d(function(E){switch(E.nextAddress){case 1:return E.yield(N.JSC$18922_persistentStorePromiseAccessor(),2);case 2:b=E.yieldResult;if(q.browseId!=="SPaccount_downloads"||!b){E.jumpTo(3);break}return E.yield(BfD(b),4);case 4:if(y=E.yieldResult)return E.return(_.PD(y));case 3:return q.browseId==="FEwhat_to_watch"?E.return(tAf(N)):(J=_.x("web_offline_continuation_automatic_retry")||_.x("web_offline_continuation_retry_button"))&&
q.continuation?E.return(mgA(N)):E.return(rzf(N))}})};
var tAf=function(q){var N;return _.d(function(b){if(b.nextAddress==1)return b.yield(q.JSC$18922_upliftPromise,2);N=_.XQn(q.store.getState().entities);return N.length?b.return(X4d(q,N)):b.return(rzf(q))})},zVN=function(q){var N,b;
return _.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$18922_upliftPromise,2);if(y.nextAddress!=3)return N=VAK([{offlineItemSectionRenderer:{}}]),y.yield(jOa(q,N),3);b=y.yieldResult;b.onResponseReceivedActions=[ZI("REFRESH_DOWNLOADS")];return y.return(b)})},u$p=function(q){var N,b,y,J,E,F,R,c,z,m,r,X,V,G,w,D;
return _.d(function(k){if(k.nextAddress==1)return k.yield(q.JSC$18922_upliftPromise,2);if(k.nextAddress!=3)return N=q.store.getState(),b=N.entities,y=_.jN(b),J=_.xR(b),E=_.A$e(N),F=_.oYu(N),R=_.eZC(N),c=_.xTA(b),z=_.$R(y),m=_.vT(b),r=_.QRu(b),X=_.HVn(N),V=_.w3(N),G={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.chZ(y,J,c,r,E,F,z,m,R,X,V),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},w="",_.x("kevlar_modern_downloads_skip_downloads_title")||
(w=_.FE("DOWNLOADS",void 0,"Downloads")),k.yield(xgd(q,G,w),3);D=k.yieldResult;D.onResponseReceivedActions=[ZI("REFRESH_DOWNLOADS")];return k.return(D)})},$gf=function(q){var N,b,y,J,E,F,R,c,z;
return _.d(function(m){if(m.nextAddress==1)return m.yield(q.JSC$18922_upliftPromise,2);if(m.nextAddress!=3)return N=q.store.getState(),b=N.entities,y=_.jN(b),J=_.$R(y),E=_.vT(b),F={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.zBC(y),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},R=_.FE("SMART_DOWNLOADS",void 0,"Smart downloads"),c=RBz(J,E),m.yield(xgd(q,F,R,c),3);z=m.yieldResult;z.onResponseReceivedActions=
[ZI("REFRESH_DOWNLOADS")];return m.return(z)})},rzf=function(q){var N,b;
return _.d(function(y){if(y.nextAddress==1)return y.yield(p0(q.JSC$18922_upliftPromise,q.store),2);N=y.yieldResult;b=VAK([MZR(N)]);return y.return(jOa(q,b))})},mgA=function(q){var N,b,y,J;
return _.d(function(E){if(E.nextAddress==1)return N={},b=czB(q.store.getState()),_.x0(N,_.lR,b),E.yield(p0(q.JSC$18922_upliftPromise,q.store,N,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);y=E.yieldResult;J={};_.x0(J,_.Tkx,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:y}}}],targetId:"browse-feedFEwhat_to_watch"});return E.return({responseContext:{},onResponseReceivedActions:[J]})})},VAK=function(q){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:q}}}}]}}},X4d=function(q,N){var b,y;
return _.d(function(J){var E={contents:FO(N)};b=E&&E.contents?E:{};_.x("kevlar_modern_downloads_page")&&(b=Object.assign({},_.$fZ(N),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));y={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:b}}}]}};return J.return(jOa(q,y))})},jOa=function(q,N){var b,y;
return _.d(function(J){if(J.nextAddress==1)return J.yield(q.JSC$18922_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3)return b=J.yieldResult,J.yield(M1(b),3);y=J.yieldResult;return J.return({responseContext:{},contents:N,topbar:y})})},xgd=function(q,N,b,y){var J,E;
return _.d(function(F){if(F.nextAddress==1)return F.yield(q.JSC$18922_persistentStorePromiseAccessor(),2);if(F.nextAddress!=3)return J=F.yieldResult,F.yield(M1(J),3);E=F.yieldResult;var R=F.return;var c=b;var z=y;c=c===void 0?"":c;z=z===void 0?"":z;c={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:c}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.FE("SETTINGS",void 0,"Settings"),accessibilityText:_.FE("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:_.P3("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:z}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:c};
return R.call(F,{responseContext:{},contents:N,topbar:E,header:{pageHeaderRenderer:c}})})};var vfU=function(){this.moduleRegistry={};this.fetchCount=0};
vfU.prototype.isFetching=function(){return this.fetchCount>0};
var KN=function(q,N){q.moduleRegistry[N.toString()]={asyncId:N,isFetching:!1};return q};
vfU.prototype.JSC$18933_loadModules=function(){for(var q=this,N=new Map,b=[],y=_.Z(_.MB.apply(0,arguments)),J=y.next();!J.done;J=y.next()){J=J.value;var E=this.moduleRegistry[J];E?E.resolver?N.set(J,E.resolver):(E.resolver=new _.yk,N.set(J,E.resolver),b.push(E.asyncId),E.isFetching=!0):(E=new _.yk,N.set(J,E),E.resolve(void 0))}b.length&&(this.fetchCount+=1,_.KJ(_.qJ.getMultipleAsync.apply(_.qJ,_.a9(b)).then(function(F){for(var R=0;R<b.length;R++){var c=F[R],z=q.moduleRegistry[b[R].toString()];z.isFetching=
!1;z.resolver.resolve(c)}}).catch(function(F){for(var R=_.Z(b),c=R.next();!c.done;c=R.next()){c=c.value;
var z=q.moduleRegistry[c.toString()];z.resolver=void 0;z.isFetching=!1;N.get(c.toString()).reject(F)}}),function(){--q.fetchCount}));
return Promise.all([].concat(_.a9(N.values())).map(function(F){return F.promise}))};_.DQ=new _.Jw("MODULE_REGISTRY_TOKEN");var G1K={},YVK=(G1K.rendered={priority:0,callback:function(q){a:{var N=void 0;try{var b;b:{if(_.Lod()){var y=_.SYJ(_.f4()+"::pom");if(y){var J=new Iz(y);break b}}J=void 0}var E=(b=J)==null?void 0:b.get("role_text");if(!E)break a;N={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:E}]}}}}}}catch(c){}N&&q.injector.resolve(_.rO).resolveCommand(N)}try{var F=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(F){var R=JSON.parse(F);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
R&&q.injector.resolve(_.rO).resolveCommand(R)}}catch(c){}}},G1K);var QOB,O4f={},w4p=(O4f.initialized={priority:10,callback:function(){QOB=X_()}},O4f.rendering={callback:function(q){var N;
return _.d(function(b){if(b.nextAddress==1)return b.yield(QOB,2);N=b.yieldResult;if(!N.endpoint)throw Error("Hj`"+_.JZ.location.href);vV(q,N);_.hj(b)})}},O4f);var i4X={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(_.a9(_.x("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(q){var N=q.stack;if(N.includes("chrome://")||N.includes("chrome-extension://")||q.message.includes("chrome-extension://")||N.includes("moz-extension://")||N.includes("local.adguard.org")||N.includes("auctioneer3.50million.club")||N.includes("youtubedownloader")||
N.includes("youtube_home_page")||N.includes("is_youtube_video_no_longer_available")||N.includes("switchScreenSizeHack")||N.includes("yt_main_big_banner.js")||N.includes("YouTubeCenter.js")||N.includes("/mytube.js")||N.includes("JSON.parseWrapper")||N.includes("/inj_js/common.js")||N.includes("firebug-lite")||N.includes(".repl.co/")||N.includes("linkfix")||N.includes("playAfterAd")||q.message.includes("Access is denied for this document")&&N.includes("<anonymous>")||q.fileName==="user-script"||q.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
N.includes("<anonymous>"))return!0;if(N.includes("https://www.youtube.com"))return!1;q=N.split("\n");if(!q.length)return!1;if(q.length<=3&&N.includes("s.onloadeddata"))return!0;N=0;for(var b=_.Z(q),y=b.next();!y.done;y=b.next())y=y.value,(y.includes("https://")||y.includes("http://"))&&N++;return N/q.length>.95},
weight:0},{callback:function(q){return q.message==="Unknown Error"&&q.name.indexOf("NS_")===0},
weight:100},{callback:function(q){if(!_.HV)return!1;var N=q.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||q.message.includes("available to complete this operation"),b=q.stack.includes("webcomponents")&&q.message==="Object doesn't support this action";q=q.message.includes("object that does not implement interface Element");return N||b||q},
weight:0},{callback:function(q){return q.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(q){return q.message==="Operation is not supported"&&(q.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(q){return q.stack.includes("eval code (eval (code:1:1)")||q.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(q){return q.message.includes("Permission denied")&&q.stack.includes("this.domHandler")?!0:q.name.includes("TypeError")&&q.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(q){if(!q.stack)return!1;var N=q.stack.trim().split("\n");N.length&&N[0].endsWith("Error: "+q.message)&&N.shift();N.length&&N[N.length-1].includes("at window.onerror (")&&N.pop();if(!N.length)return!0;if(q.message==="Script error.")return N[0].includes("www.youtube.com")||N.length>=2&&N[0].startsWith("at new")&&N[1].startsWith("at window.onerror");if(q.message==="Unexpected token")return!0;q=_.Z(N);for(N=q.next();!N.done;N=q.next())if(N=N.value,!(N.includes("<anonymous>")||
N.startsWith("load@")||N.startsWith("global code@")||N.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(q){return q.message==="Cannot read property 'experiments'"&&q.stack.includes("/s/player/")},
weight:500},{callback:function(q){return q.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(q){return q.stack.includes("/embed.js")?(q.params&&q.params&&(q.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.x("use_error_suppression"))var q=_.M7("SUPPRESS_CLIENT_ERRORS",!1);else{if(q=_.Js)q=/Chrome\/(\d+)/.exec(_.Vh()),q=(q?parseFloat(q[1]):NaN)>=66;q=!(q||_.yW&&_.bZ(65)||_.B4&&_.bZ(12.1)||cv&&_.bZ(79))}return q},
weight:500}]};var lMX={},Kaa=(lMX.initialized={priority:10,callback:function(q){q.injector.addProvider({provide:jsR,useValue:q.root});q.injector.addProvider({provide:AWA,useValue:TJz});q.injector.addProvider({provide:epd,useValue:i4X});var N={};q.injector.addProvider((N.provide=BEc,N.useFactory=function(b,y){return function(){rpC(b,y)}},N[ma]=[AWA,
epd],N));q.injector.addProvider({provide:CE,useClass:CE})}},lMX);var Dgf={},hVf=(Dgf.initialized={priority:3,callback:function(){var q;if(q=fin()){q=q.replace("/",".");var N=_.c3();N.set("tz",q);N.save();q=!0}else q=!1;q||(q=_.c3(),q.set("utco",-Math.floor((new Date).getTimezoneOffset())),q.save())}},Dgf);var k1a={},Uga=(k1a.initialized={priority:10,callback:function(q){q.injector.resolve(CE).start();q=_.f9();var N=_.ou("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.ou("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.ou("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.ou("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.J7(_.YDA(),{mainAppWeb:Object.assign({},q,{pageType:N})});_.J7(Oin(),{mainAppWeb:Object.assign({},q,{pageType:N})});
_.J7(w0z(),{mainAppWeb:q});_.J7(iin(),{mainAppWeb:q});xco(function(){_.Ed(w0z(),"FAILURE");_.Ed(iin(),"FAILURE")});
$xd();tHd();Uwz()}},k1a);var fMW={},CvB=(fMW.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Q6("dl"),_.dw().processSignal("pcl");else{var q=function(){_.Q6("dl");_.dw().processSignal("pcl");window.removeEventListener("load",q)};
window.addEventListener("load",q)}}},fMW);var IMa={},TOf=(IMa.rendering={priority:0,callback:function(){var q=_.dw();q.parkOrScheduleJob(function(){q.processSignal("eocs")},10,"eor",5E3)}},IMa);var sOx=function(){};
_.Y(sOx,cf);
sOx.prototype.resolveCommand=function(q,N){var b,y,J,E,F,R,c,z;return _.d(function(m){J=(b=_.v(q,_.gYR))==null?void 0:(y=b.dialog)==null?void 0:y.commentReplyDialogRenderer;if(!J)throw new _.IO("No dialog in createCommentReplyDialogEndpoint");F=(E=N.form)==null?void 0:E.event;if(!F)throw new _.IO("Event not passed in when resolving command");R=_.Z(F.composedPath());for(c=R.next();!c.done;c=R.next())if(z=c.value,z.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||z.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return z.showReplyDialog(J),m.return();
_.hj(m)})};var Ym=function(){};
_.Y(Ym,cf);Ym.prototype.resolveCommand=function(q){var N,b,y,J,E;return _.d(function(F){if(F.nextAddress==1)return N=_.v(q,X01),(b=N)!=null&&b.externalChannelId?F.yield((0,_.y3A)("NSzT5"),2):F.return();y=_.nfB;E=(J=N.forceInstall)!=null?J:!1;return F.yield(y(N.externalChannelId,E),0)})};var Qj=function(q){this.JSC$18951_pageRequestService=q;this.JSC$18951_prefetchCoordinator=CCx()};
_.Y(Qj,cf);Qj.prototype.resolveCommand=function(q){var N=this,b,y,J,E;return _.d(function(F){if(F.nextAddress==1){b=_.v(q,sRj);if((y=b)==null||!y.taskId)throw Error("Ij");J=b.taskId;_.Yi(F,2);return F.yield(_.cWC(N.JSC$18951_pageRequestService,q,{},"").then(function(R){if(!R)throw Error("Jj");},function(R){throw Error("Kj`"+R);
}),4)}if(F.nextAddress!=2)return sAW(N.JSC$18951_prefetchCoordinator,J),_.Ea(F,0);
E=_.K7(F);yj(N.JSC$18951_prefetchCoordinator,J,E);_.hj(F)})};
Qj[ma]=[_.rh];var OW=function(q,N){this.innertubeTransportService=q;this.JSC$18955_commandHandler=N};
_.Y(OW,cf);OW.prototype.resolveCommand=function(q){var N=this,b,y,J;return _.d(function(E){if(E.nextAddress==1){b=_.v(q,T7o);if(b.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||b.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")y=b.boolValue?2:1,_.x3.getInstance().setState(y,!0,!0);return E.yield(_.IE(N.innertubeTransportService,q),2)}J=E.yieldResult;aMX(N,J);_.hj(E)})};
var aMX=function(q,N){N.actions&&N.actions.forEach(function(b){q.JSC$18955_commandHandler.resolveCommand(b)})};
OW[ma]=[_.tN,_.rO];var w4={},iH=(w4.addToPlaylistEndpoint=pr(uS),w4.addToToastAction=pr(Qg),w4.adsControlFlowOpportunityReceivedCommand=pr(L$),w4.audioTrackSelectActionCommand=pr(Kf),w4.backgroundAudioPlaybackCommand=pr(kW),w4.captionLanguageSelectActionCommand=pr(Us),w4.captionPickerEndpoint=pr(ff),w4.changeMiniAppPlayStateCommand=pr(zB),w4.changeTimelyActionVisibilityCommand=pr(Yb),w4.channelCreationFormEndpoint=pr(gv),w4.clearLocationCommand=pr(cm),w4.clearUrlParamCommand=pr($W),w4.copyLinkCommand=pr(Wm),w4.copyTextEndpoint=
pr(eo),w4.createCommentReplyDialogEndpoint=kDe(sOx),w4.createPlaylistServiceEndpoint=pr(Lf),w4.dismissDialogEndpoint=pr(mZ),w4.dismissPlayerOverlayCommand=pr(Cf),w4.entityUpdateCommand=pr(HL),w4.feedbackEndpoint=pr(bS),w4.getAnswerCommand=pr(yg),w4.getPaymentsClientTokenCommand=pr(K5),w4.getTranscriptEndpoint=pr(OP),w4.googlePaymentBillingCommand=pr(Dr),w4.googlePaymentPurchaseManagerCommand=pr(hg),w4.hideEngagementPanelEndpoint=pr(VJ),w4.hideSheetCommand=pr(jW),w4.hideSnackbarCommand=pr(r9),w4.insertRichSectionCommand=
pr(F7),w4.listMutationCommand=pr(R2),w4.logGtmCommand=pr(Za),w4.notifyDropdownOptionSelectedCommand=pr(tF),w4.openAdAllowlistInstructionCommand=pr(_.p$),w4.openOnePickAddVideoModalCommand=pr(pf),w4.persistSubscriptionsDisplayPreferencesCommand=pr(Bm),w4.pingingEndpoint=pr(PL),w4.playlistEditEndpoint=pr(M5),w4.playlistVotingRefreshPopupCommand=pr(o2),w4.profileCardCommand=pr(WL),w4.refreshPanelEndpoint=pr(xW),w4.saveImageToDeviceEndpoint=pr(BL),w4.scrollToSectionEndpoint=kDe(OMC),w4.seekToVideoTimestampCommand=
pr(I2),w4.selectCountryCommand=pr(Hm),w4.setCookieCommand=pr(q4),w4.setLocalStorageCommand=pr(Vg),w4.setPrefStorageEntryCommand=pr(bj),w4.setSettingEndpoint=pr(OW),w4.sfvAudioItemPlaybackCommand=pr(TB),w4.shareImageCommand=pr(Jg),w4.sharingProviderDataCommand=pr(EP),w4.showAudioTrackPickerActionCommand=pr(ss),w4.showCaptionLanguageSelectActionCommand=pr(nf),w4.showCreatorChatbotEngagementPanelCommand=pr(Ym),w4.showDialogCommand=pr(QJ),w4.showEngagementPanelEndpoint=pr(Os),w4.showFullscreenPlayerControlsCommand=
pr(a2),w4.showSheetCommand=pr(wv),w4.showSnackbarCommand=pr(Xu),w4.showTransientPlayerScrimOverlayCommand=pr(SW),w4.submitFormWithValidationFlowCommand=pr(Es),w4.talkToRecsDeselectCommand=pr(jM),w4.talkToRecsNextCommand=pr(xb),w4.talkToRecsSelectCommand=pr(v9),w4.talkToRecsUpdateTextCommand=pr(G0),w4.toggleEngagementPanelCommand=pr(iS),w4.undoFeedbackEndpoint=pr(JF),w4.updateEngagementPanelContentCommand=pr(lS),w4.updateUrlParamCommand=pr(w9),w4.updateVideoMetadataCommand=pr(lj),w4.verifyCommand=
pr(gv),w4.webNativeShareCommand=pr(g9),w4.webSubmitFormCommand=pr(AF),w4.ACK_PLAYABLES_3P_DATA_CONSENT=pr(Zr),w4.CANCEL_NAVIGATION=pr(Fu),w4.COPY_SHARE_URL=pr(Rb),w4.MINI_APP_EXIT_DIALOG_SEEN=pr(c9),w4.MINI_APP_OPEN_URL=pr(d9),w4.REQUEST_MINI_APP_FULLSCREEN=pr(uj),w4.RESUME_NAVIGATION=pr(z0),w4.SHARE_PLAYABLE_WITH_HIGH_SCORE=pr($b),w4.TELL_US_WHY=pr(yJ),w4);_.x("web_enable_prefetching_videos_on_home")&&(iH.prefetchWatchCommand=pr(Qj),iH.registerTasksCommand=pr(EW));
_.x("enable_share_panel_navigation_logging_fix_on_web")&&(iH.shareEntityServiceEndpoint=pr(GB));_.x("web_use_flow_state_manager")&&(iH.flowNextStepCommand=pr(UnA),iH.flowPrevStepCommand=pr(C$f),iH.getFlowCommand=pr(T0X),iH.updateFlowCommand=pr(sH));_.x("enable_ai_companion")&&(iH.updateConversationIdCommand=pr(AU),iH.formDataDecoratorCommand=pr(oj));var AYT=Object.assign({},iH);var SVW={},Waf=(SVW.initialized={priority:10,callback:jTd},SVW);var LaB={},p4a=(LaB.initialized={callback:function(q){var N={},b={};JMD().install((N.document_disposed={callback:function(){_.x("finalize_all_timelines")?PQA():xo();kLJ("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.xFn();var y=q.injector.resolve(CE);y.intervalId!==void 0&&(y.intervalId&&_.pY.cancelJob(y.intervalId),y.intervalId=void 0,--y.currentPartitionIndex,y=gXj(y),y>0&&f2F({mainAppWeb:_.f9(),survivalSli:{partitionMinute:y,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));wjJ(uo);zD!=null&&
zD.flush();BT&&BT.snapshotAndFlush();y=_.Z(Mw1.values());for(var J=y.next();!J.done;J=y.next())J.value.snapshotAndFlush()}},N),(b.flush_logs={callback:function(){_.Lo()}},b))}},LaB);var Pvx={},MAx=(Pvx.rendered={priority:0,callback:function(){var q=new ZYl;q.increment("STARTED");if(_.M7("LOGGED_IN")&&!_.M7("IS_DBSC",!1)&&_.M7("SERVER_VERSION")!=="test"&&_.M7("SERVER_VERSION")!=="dev"&&!Ltx()&&!Wtx()){q.increment("EXECUTING");var N=document.createElement("iframe");N.style.display="none";_.b$(N,2,_.pc("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.M7("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(N);q.increment("DONE")}}},
Pvx);var ofK={},AzK=(ofK.rendered={callback:function(){CCx().resume()}},ofK);var eVX={acknowledgeChannelTouStrikeCommand:K6(zl),addToPlaylistServiceEndpoint:K6(rS),addToPlaylistEndpoint:K6(rS),addUpcomingEventReminderEndpoint:K6(UK),browseEndpoint:K6(jAK),channelCreationFormEndpoint:K6(gX),channelCreationServiceEndpoint:K6(Zn),claimLegacyYoutubeChannelEndpoint:K6(P9),clearSearchHistoryEndpoint:K6(wX),clearWatchHistoryEndpoint:K6(i4),commerceActionCommand:DU(TX),createBackstagePostEndpoint:K6(n5),createBroadcastCommand:K6(fW),createCommentEndpoint:K6(b4),createCommentReplyEndpoint:K6(NG),
createLiveChatPollEndpoint:K6(CW),createPlaylistServiceEndpoint:K6(Xk),crossAccountChannelTransferEndpoint:K6(Dn),deleteLiveChatMessageCommand:K6(Ih),deletePlaylistEndpoint:K6(Vm),deleteVideoEndpoint:K6(U9),dismissalEndpoint:K6($n),feedbackEndpoint:K6(tf),flagEndpoint:K6(Qm),getAccountSwitcherEndpoint:K6(KW),verifyCommand:K6(sP),getAccountsListInnertubeEndpoint:K6(kn),getCommentsFromInboxCommand:K6(Hg),getDownloadActionCommand:K6(gS),getFlowCommand:DU(OK),getKidsBlocklistPickerCommand:K6(O9),getNotificationMenuEndpoint:K6(GPx),
getPaymentInstrumentsParamsCommand:K6(LX),getPaymentsClientTokenCommand:DU(TX),getPdgBuyFlowCommand:K6(to),getReportFormEndpoint:K6(wS),getSearchInVideoCommand:K6(KX),getAnswerCommand:K6(lr),getSurveyCommand:K6(kj),getTranscriptEndpoint:K6(CX),getPostVideoPreviewEndpoint:K6(SM),decorateMessageEndpoint:K6(ab),likeEndpoint:K6(FU),liveChatActionEndpoint:K6(ah),liveChatEndpoint:K6(nW),liveChatItemContextMenuEndpoint:K6(Tl),liveChatPurchaseMessageEndpoint:K6(S7),liveChatReplayEndpoint:K6(sK),manageLiveChatUserEndpoint:K6(LW),
metadataUpdateCommand:K6(e7),moderateLiveChatEndpoint:K6(pW),modifyChannelNotificationPreferenceEndpoint:K6(ym),notificationOptOutEndpoint:K6(Jo),openSuperStickerBuyFlowCommand:K6(Wg),performCommentActionEndpoint:K6(B9),playlistEditEndpoint:K6(xj),playlistEditorEndpoint:K6(jy),recordNotificationInteractionsEndpoint:K6(E9),reelWatchEndpoint:K6(vu),refreshPanelEndpoint:K6(Fk),removeUpcomingEventReminderEndpoint:K6(Pg),resolveLocationCommand:K6(Af),revealBusinessEmailCommand:K6(M4),searchEndpoint:K6(_.YNd),
sendLiveChatMessageEndpoint:K6(MG),sendLiveChatVoteEndpoint:K6(oh),setSettingEndpoint:K6(Rh),shareEntityServiceEndpoint:DU(u4),sharingProviderDataCommand:K6(ho),showEngagementPanelEndpoint:K6(Rq),showMoreDrawerCommand:K6(cu),showSheetCommand:K6(ur),showDialogCommand:K6(dS),subscribeEndpoint:K6(dX),transcriptSubmitCaptionCorrectionCommand:K6(fX),undoFeedbackEndpoint:K6(rX),unsubscribeEndpoint:K6(cg),updateBackstagePostEndpoint:K6(L5),updateCommentEndpoint:K6(Jf),updateCommentReplyEndpoint:K6(yc),updateCommentsSettingsEndpoint:K6(EK),
updateCreatorChannelInnertubeCommand:K6(Ag),updateKidsBlacklistEndpoint:K6(ir),updateEngagementPanelContentCommand:K6(zX),updatePdgFeatureEnablementCommand:K6(mL),updatedMetadataEndpoint:K6(Bg),validateChannelHandleCommand:K6(eM),updateChannelPageSettingsEndpoint:K6(ob),verifyAgeEndpoint:K6(Qc),watchEndpoint:DU(f5),whitelistEditEndpoint:K6(Iq),ypcCancelRecurrenceEndpoint:K6(s9),ypcCompleteTransactionEndpoint:K6(nX),ypcFixInstrumentEndpoint:K6(Sy),ypcGetCartEndpoint:K6(aq),ypcGetOffersEndpoint:K6(Wu),
ypcHandleTransactionEndpoint:DU(pX),ypcLogWalletAnalyticDataEndpoint:K6(Pu),ypcOffersEndpoint:K6(Mu),ypcPauseSubscriptionCommand:K6(oq),ypcRedeemCodeEndpoint:K6(Ao),ypcResumeSubscriptionCommand:K6(ey),ypcUpdateFopEndpoint:K6(Sy)},lH={},BOp=(lH.GET_ACCOUNT_MENU=K6(hf),lH.GET_NOTIFICATIONS_MENU=K6(vNU),lH.GET_NOTIFICATIONS_INBOX=K6(qu),lH.GET_UNSEEN_NOTIFICATION_COUNT=K6(br),lH.GET_USER_MENTION_SUGGESTIONS=K6(W9),lH.LOAD_GUIDE=K6(xId),lH.SUBMIT_FEEDBACK=K6(m9),lH),KZ={},H4U=(KZ.CONTINUATION_REQUEST_TYPE_BROWSE=
K6(p5),KZ.CONTINUATION_REQUEST_TYPE_SEARCH=K6(DA),KZ.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=K6(hF),KZ.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=K6(l4),KZ.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=K6(qG),KZ.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=K6(H9),KZ.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=K6(Yj),KZ.CONTINUATION_REQUEST_TYPE_GET_PANEL=K6(ZA),KZ),qaX={player:DU(f5),watchNext:K6(Da)},NDK={player:DU(f5),reelItemWatch:K6(vu),reelWatchSequence:K6(GX)},bYp={watchEndpoint:DU(C5)},ySA=
{commandEndpointMap:eVX,signalEndpointMap:BOp,continuationEndpointMap:H4U,watchEndpointMap:qaX,reelWatchEndpointMap:NDK,streamingEndpointMap:bYp};var JSp,E5X,g5A;_.ZYf=((E5X=(JSp=window).matchMedia)==null?void 0:(g5A=E5X.call(JSp,"(prefers-reduced-motion: reduce)"))==null?void 0:g5A.matches)||!document.startViewTransition;var FAf={},RwN={disableAllTransitions:_.ZYf,ignoredErrors:(FAf.DOCUMENT_HIDDEN=!0,FAf.WINDOW_SIZE_CHANGED=!0,FAf.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,FAf),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 dmA=_.Tt("\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(",")),ulf=function(q){var N=this;this.viewTransitionCoordinator=
q;this.disableTransitionsForUltraHigh=_.x("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=cSa();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.jA("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.x("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.x("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.x("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.jA("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.x("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.pY.addJob(function(){N.registerRootElement();if(N.isAnyTransitionEnabled){var b=
_.VX("web_page_transition_exit_ms"),y=_.VX("web_page_transition_wait_ms"),J=_.VX("web_page_transition_enter_fast_ms"),E=_.VX("web_page_transition_watch_exit_ms"),F=_.VX("web_page_transition_watch_wait_ms"),R=_.VX("web_page_transition_watch_enter_ms"),c=_.VX("web_page_transition_watch_next_exit_ms"),z=_.VX("web_page_transition_watch_next_wait_ms"),m=_.VX("web_page_transition_watch_next_enter_fast_ms"),r=_.VX("web_page_transition_enter_ms"),X=_.VX("web_page_transition_watch_next_enter_ms");N.enableFasterTransitions&&
N.isUltraHighBucketDevice&&(r=J,X=m);isNaN(b)&&isNaN(y)&&isNaN(r)&&isNaN(E)&&isNaN(F)&&isNaN(R)&&isNaN(c)&&isNaN(z)&&isNaN(X)||!(b=IkD(dmA,b,y,r,E,F,R,c,z,X))||(y=document.createElement("style"),y.textContent=rjh(b),document.head.appendChild(y))}},8)},cSa=function(){var q=_.JZ.navigator.deviceMemory;
return q>=8||q===void 0?!0:!1};
ulf.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var q={};this.viewTransitionCoordinator.registerElement(document.documentElement,(q.slide="root-slide",q["lockup-to-watch"]="root-lockup-to-watch",q["learning-journey"]="root-learning-journey",q))}};
_.Lgx=function(q,N){q.isLockupToWatchTransitionEnabled&&q.isLockupThumbnailRegistrationEnabled&&(q.registeredLockupThumbnail?q.lockupThumbnailRegisteredFromWatchEndpoint?_.M6(new _.IO("Lockup thumbnail registration order is incorrect.")):_.M6(new _.IO("Lockup thumbnail already registered.")):(q.registeredLockupThumbnail=N,_.zwx(q,N)))};
_.zwx=function(q,N){var b={};q.viewTransitionCoordinator.registerElement(N,(b["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",b),!0)};
ulf[ma]=[NVW];var xxh={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 GxC=["videoPrimaryInfoRenderer","title"],YtA=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var $mW;$mW=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.tdC=_.n(function(q){q=_.Sl(q,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var N=q.data,b=q.playlistData,y=q.expanded,J=q.onExpandClick,E=q.isReadyToResume,F=function(){var m;return!((m=b())==null||!m.contents)},R=function(){var m=b();
return m&&m.totalVideos&&m.currentIndex!==void 0?m.currentIndex+1+" / "+m.totalVideos:""};
q=_.y0(function(){_.D8(_.tz().resolve(_.l9));return!1});
var c=_.y0(function(){F()&&J&&J()}),z={};
return _.u("ytd-miniplayer-info-bar",{class:_.NO("ytdMiniplayerInfoBarHost",(z.ytdMiniplayerInfoBarHasPlaylistData=F,z)),"on:click":c},_.u("div",{class:"ytdMiniplayerInfoBarContent"},_.u("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":q},_.u(_.Zc,{text:function(){var m=N();var r=b();if(r==null?0:r.contents){var X;m=(X=_.qoD(r))==null?void 0:X.title}else m=m==null?void 0:m.miniplayerTitle;return QTd(m)},
noEndpoints:!0,ellipsisTruncate:!0})),_.u("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.u(_.t,{cond:E,then:function(){return _.u(vKo,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:$mW})}}),_.u("h1",null,_.u(_.Zc,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var m=N();var r=b();m=E()?{simpleText:_.FE("CONTINUE_WATCHING",void 0,"Continue watching")}:(r==null?0:r.contents)?r.titleText:m==null?void 0:m.miniplayerSubtitle;return QTd(m)},
noEndpoints:!0,ellipsisTruncate:!0})),_.u(_.t,{cond:function(){return!!R()&&!E()},
then:function(){return _.u("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.u("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.u("span",null,R))}}))),_.u(_.t,{cond:F,
then:function(){return _.u("div",{class:"ytdMiniplayerInfoBarExpand"},_.u(_.GE,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(m){J&&(J(),m.stopPropagation())}}},
iconName:function(){return y()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"yg");var mmX;mmX=_.n(function(q){return _.u("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.u(_.GE,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:q.onTap}},
iconName:"yt-icons:close"}))},"zg");
_.rSA=_.n(function(q){q=_.Sl(q,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var N=q.size,b=q.playabilityStatus,y=q.isDisabled,J=q.isPictureInPicture,E=_.dI("div");q=_.Z(_.QS(void 0,void 0,"w4RAU"));var F=q.next().value,R=q.next().value;q=_.uR(_.ez);var c=!1,z=function(){return N().height<=0};
_.Sx(function(){var V=N(),G=z(),w=F();w&&!G&&w.setInternalSize(V.width,V.height)},"BHFc2b");
_.SI(function(){var V,G,w;return _.d(function(D){if(D.nextAddress==1){V=_.tz().resolve(_.l9);G=V.getPlayerElement();if(!V.isMiniplayerActive()||!G||!E.value)return D.return();G.appendTo(E.value);return D.yield(G.getPlayerPromise(),2)}w=D.yieldResult;J()||w.setSizeStyle(!1,!0);R(w);_.hj(D)})});
_.W1(function(){m()});
_.Sx(function(){var V=F();if(V)if(y()){var G=V.getPlayerState();(c=G===-1||G===1||G===3)&&V.pauseVideo()}else m()},"Invykd");
var m=function(){if(c){c=!1;var V;(V=F())==null||V.playVideo()}},r=_.y0(function(){_.D8(_.tz().resolve(_.l9))}),X={};
return _.u("ytd-miniplayer-player-container",{class:_.NO("ytdMiniplayerPlayerContainerHost",(X.ytdMiniplayerPlayerContainerHidden=z,X.ytdMiniplayerPlayerContainerHostShortsPip=q,X)),style:_.ZU({width:function(){return N().width+"px"},
height:function(){return N().height+"px"}})},_.u("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:E}),_.u(_.t,{cond:function(){return!!b()&&!_.piA(b())},
then:function(){return _.u(ABc,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var V;return((V=b())==null?void 0:V.errorScreen)||null},
status:function(){var V;return((V=b())==null?void 0:V.status)||null}})}}),_.u(_.t,{cond:y,
then:function(){return _.u("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":r},_.u(mmX,{onTap:function(){_.tz().resolve(_.l9).close()}}))}}))},"Dg");_.Xvx=_.n(function(q){var N=q.toastData;var b=_.dI("ytd-miniplayer-toast");q=_.Z(_.gJ(function(){return!!N()}));
var y=q.next().value,J=q.next().value;q=_.Z(_.QS(!1,void 0,"BvfNQe"));var E=q.next().value,F=q.next().value,R=function(){var m;return _.ao((m=N())==null?void 0:m.data.title)};
_.WC(function(){_.qM.requestAvailability();N()&&J(!1)});
var c,z;_.Sx(function(){y()&&(_.e2(b.value,"iron-announce",{text:N().label+" "+R()}),c&&_.pY.cancelJob(c),c=_.pY.addLowPriorityJob(function(){F(!0)},2500))},"no1dZb");
_.Sx(function(){E()&&(z&&_.pY.cancelJob(z),z=_.pY.addLowPriorityJob(function(){J(!1);F(!1)},300))},"G3yPNe");
q={};return _.u("ytd-miniplayer-toast",{el:b,class:_.NO("ytdMiniplayerToastHost",(q.ytdMiniplayerToastOpening=function(){return y()},q.ytdMiniplayerToastClosing=function(){return E()},q))},_.u(_.t,{cond:function(){var m;
return(m=N())==null?void 0:m.data},
then:function(m){return _.u(DXE,{className:"ytdMiniplayerToastThumbnail",data:m,width:78})}}),_.u("div",{class:"ytdMiniplayerToastInfo"},_.u("div",{class:"ytdMiniplayerToastLabel"},function(){var m;
return(m=N())==null?void 0:m.label}),_.u("div",{class:"ytdMiniplayerToastTitle"},R)))},"Gg");var fjd;var T8d=null;var jwC=_.n(function(q){var N=q.progressState;var b=q.multiMarkersPlayerBarRenderer;var y=q.progressBarWidth;var J=function(){return Stu(b())},E=function(){return poe(N())},F=function(){return y()*(N().playedTime/N().videoDuration)};
return _.u("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.u(_.Tf,{each:J},function(R,c){return _.u(VdU,{modifiedProps:E,chapters:J,index:c,playedProgressWidth:F,backgroundGradientPosition:function(){var z=E(),m=J(),r=c(),X=F();return(z.playedTime-i9(_.v(m[r],wh)))/z.playedTime*X}})}))},"Hg"),VdU=_.n(function(q){var N=q.modifiedProps;
var b=q.chapters;var y=q.index;var J=q.playedProgressWidth;var E=q.backgroundGradientPosition;q={};q=_.NO("ytChapteredProgressBarChapteredPlayerBarChapter",(q.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return F().isScrubbing},q.ytChapteredProgressBarHoveredMacroMarker=function(){return F().scrubberHovering},q.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return F().videoPosition==="seen"},q));
var F=function(){return PMh(N(),b(),y())},R=function(){var c=N();
var z=b(),m=y();if(PMh(c,z,m).videoPosition!=="active")c=0;else{var r=i9(_.v(z[m],wh));c=(c.playedTime-r)/((i9(_.v(z[m+1],wh))||c.videoDuration)-r)}return c};
return _.u("div",{class:q,style:_.ZU({width:function(){var c=N(),z=b(),m=y(),r=_.v(z[m],wh);z=_.v(z[m+1],wh);return(z?i9(z)-i9(r):c.videoDuration-i9(r))/c.videoDuration*100+"%"},
"background-color":function(){a:{var c=F();switch(c.videoPosition){case "pending":c=c.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":c=c.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:c=""}}return c},
"background-size":function(){return(MHA(F())?J():"")+"px"},
"background-position-x":function(){return(MHA(F())?E():"")+"px"}})},_.u("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var c=N(),z=b(),m=y();if(PMh(c,z,m).videoPosition==="seen")var r=0;else r=i9(_.v(z[m],wh)),z=i9(_.v(z[m+1],wh))||c.videoDuration,c=c.videoDuration*c.percentLoaded,r=z<=c?1:r>=c?0:(c-r)/(z-r);return"width: "+r*100+"%"}}),_.u("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.ZU({width:function(){return R()*100+"%"},
"background-size":function(){return(MHA(F(),R())?J():"")+"px"},
"background-position-x":function(){return(MHA(F(),R())?E():"")+"px"}})}))},"Ig");var xma=function(q,N){N=N===void 0?nJ4:N;var b,y=[],J,E=!1;return function(){var F=_.MB.apply(0,arguments);if(E&&b===this&&N(F,y))return J;J=q.apply(this,F);E=!0;b=this;y=F;return J}}(function(q){var N=q.heatMarkers,b=q.minHeightDp===void 0?0:q.minHeightDp,y=q.maxHeightDp===void 0?60:q.maxHeightDp;
var J=J===void 0?!1:J;var E=1E3/N.length;q=[];q.push({x:0,y:100});for(var F=0;F<N.length;F++){var R=void 0,c=((R=_.v(N[F],PDv))==null?void 0:R.heatMarkerIntensityScoreNormalized)||0;R=(F+.5)*E;c=100-_.Od(c*100,b/321*100,y/321*100);F!==0||J||q.push({x:0,y:c});q.push({x:R,y:c});F===N.length-1&&q.push({x:1E3,y:c})}q.push({x:1E3,y:100});N="";for(b=0;b<q.length;b++)J=q[b],b===0?J="M "+J.x.toFixed(1)+","+J.y.toFixed(1):(y=WgD(q[b-1],q[b-2],J),E=WgD(J,q[b-1],q[b+1],!0),J=" C "+(y.x.toFixed(1)+","+y.y.toFixed(1)+
" "+E.x.toFixed(1)+","+E.y.toFixed(1)+" "+J.x.toFixed(1)+","+J.y.toFixed(1))),N+=J;return N});var v5N=_.n(function(q){var N=q.progressBarProps;var b=q.config;var y={};q=_.NO("ytHeatSeekerHost",(y.ytHeatSeekerHighContrast=q.highContrast,y));var J=function(){return KGC(b().chapterData)};
return _.u("yt-progress-bar-heatseeker",{class:q,style:function(){var E;return"height: 320px; display: "+(N().isDragging&&((E=J())==null?0:E.heatMarkers)?"block":"none")}},_.u(_.t,{cond:J,
then:function(E){return _.u(_.t,{cond:function(){return E().heatMarkers},
then:function(){return _.u("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.u("path",{d:function(){return xma(E())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Jg");var Gnf=_.n(function(q){var N=q.progressBarProps;var b=q.config;q={};q=_.NO("ytProgressBarLineProgressBarLine",(q.ytProgressBarLineProgressBarLineRounded=function(){return b().rounded},q.ytProgressBarLineProgressBarLineBottomInset=function(){return b().position===2},q));
return _.u("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.u("div",{class:q},_.u("div",{class:"ytProgressBarLineProgressBarBackground"}),_.u("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+N().percentLoaded*100+"%"}}),_.u("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var y=N();return"width: "+(y.videoDuration?_.Od(y.hoveredTime/y.videoDuration,0,1):0)*100+"%"}}),_.u("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+woA(N())*100+"%"}})))},"Kg");
Gnf.idomCompat=!0;var YaX=_.n(function(q){var N=q.progressBarProps;var b=q.playheadData;var y=q.interpolateDotPosition;var J=q.hidePlayhead;q={};var E=_.NO("ytProgressBarPlayheadProgressBarPlayheadDot",(q.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return N().isDragging},q.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!N().isDragging&&J()},q));
return _.u("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.ZU({"margin-left":function(){return inJ(N())*100+"%"},
transform:function(){return"translateX(-"+(y()?inJ(N())*12:6)+"px)"}})},_.u(_.t,{cond:function(){var F;
return(F=_.aU(b)())==null?void 0:F.playheadImage},
then:function(F){var R={};return _.u("div",{class:_.NO("ytProgressBarPlayheadProgressBarPlayheadCustom",(R.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return N().isDragging},R.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!N().isDragging&&J()},R)),
style:_.ZU({"transform-origin":function(){return(y()?inJ(N())*20:10)+"px center"}})},_.u(_.s_,{data:F,
alt:"","aria-hidden":"true"}))},
else:function(){return _.u("div",{class:E,style:_.ZU({"transform-origin":function(){return(y()?inJ(N())*12:6)+"px center"}})})}}))},"Lg");
YaX.idomCompat=!0;var h1=function(q,N,b,y,J,E){this.getProgressBarRect=q;this.updateProgressBarRect=N;this.getFilmstripYPosition=b;this.setFineScrubbingDraggedTime=y;this.updateFilmStripDraggedYDistance=J;this.resetFilmStripYOffset=E;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.El(this.onThrottledSeek,100,this)},QwN=function(q,N,b){return function(y){q.handleClick(y,N(),b())}},iYd=function(q,N){return function(b){OYC(q,
b,wvA(b),N())}},l3a=function(q,N){return function(b){OYC(q,b,{x:b.clientX,
y:b.clientY},N())}},Dmf=function(q,N,b){return function(y){var J=N(),E=b();
KAN(q,y,wvA(y),J,E,!0);if(E.onTouchMove)E.onTouchMove(J)}},knp=function(q,N,b){return function(y){hwf(q,y,N(),b())}},UmB=function(q,N){return function(){q.handleMouseLeave(N())}},f3f=function(q,N,b){return function(){var y=N(),J=b();
km(q,y,J);if(J.onTouchEnd)J.onTouchEnd(y)}},C7x=function(q,N,b){return function(){var y=N(),J=b();
km(q,y,J);if(J.onTouchEnd)J.onTouchEnd(y)}},I3p=function(q,N,b){return function(){km(q,N(),b())}},TDW=function(q){return function(N){if(N.keyCode===39||N.keyCode===38){var b,y;
(b=q())==null||(y=b.playerApi)==null||y.seekBy(5,void 0,void 0,72)}else if(N.keyCode===37||N.keyCode===40){var J,E;(J=q())==null||(E=J.playerApi)==null||E.seekBy(-5,void 0,void 0,71)}}},swN=function(q,N,b){return function(y){!b().disableScrubbing&&q.startPosition&&hwf(q,y,N(),b())}},n5C=function(q,N,b){return function(){if(!b().disableScrubbing)if(q.startPosition){var y=N(),J=b();
km(q,N(),b());if(J.onTouchEnd)J.onTouchEnd(y)}else N().setState({isDragging:!1})}},wvA=function(q){q=q.touches[0];
return{x:q.clientX,y:q.clientY}},hwf=function(q,N,b,y){if(N.buttons!==1){if(N.movementX||N.movementY)N.preventDefault(),N.stopPropagation(),q=a3f(q,b,N.clientX),b.setState({isHovering:!0,
hoveredTime:q*b.videoDuration})}else Sax(b),KAN(q,N,{x:N.clientX,y:N.clientY},b,y,!1)};
h1.prototype.handleMouseLeave=function(q){Sax(q)};
var Sax=function(q){q.isHovering&&q.setState({isHovering:!1,hoveredTime:0})},OYC=function(q,N,b,y){q.startPosition||(q.startPosition=b,q.updateProgressBarRect(),q.controlsWereVisibleBeforeDragging=y.controlsVisible,N.stopPropagation(),_.x("medium_progress_bar_modification")||N.preventDefault())},KAN=function(q,N,b,y,J,E){if(q.startPosition)if(E&&J.isInlinePlayback&&q.startPosition&&!q.hasDraggedTheMinimumDistance&&Math.abs(b.y-q.startPosition.y)>Math.abs(b.x-q.startPosition.x))km(q,y,J);
else if(N.preventDefault(),N.stopPropagation(),y.videoDuration&&(q.startPosition&&!q.hasDraggedTheMinimumDistance&&(q.hasDraggedTheMinimumDistance=Math.abs(b.x-q.startPosition.x)>=1),J.enableFineScrubbing&&(q.startPosition&&(q.isDraggedForFineScrubbing=-(b.y-q.startPosition.y)>=60),!q.startPosition||b.y>=q.startPosition.y||(y.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:ogD(y.draggedTime,y,J.chapterData)}),q.setFineScrubbingDraggedTime(y.draggedTime),q.updateFilmStripDraggedYDistance(q.startPosition.y,
b.y,y))),q.hasDraggedTheMinimumDistance)){N=a3f(q,y,b.x);if(q.isDraggedForFineScrubbing){var F;(F=y.playerApi)==null||F.pauseVideo();y.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:y.draggedTime,filmStripXDistance:ogD(N*y.videoDuration,y,J.chapterData)})}J.enableFineScrubbing&&(!J.enableFineScrubbing||q.getFilmstripYPosition(y)<68)||y.setState({draggedTime:N*y.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:q.controlsWereVisibleBeforeDragging});var R;(R=
J.cancelAutohideControlsFn)==null||R.call(J)}},km=function(q,N,b){var y=b.enableFineScrubbing&&N.fineScrubbingActiveState!=="off";
if(N.isDragging||y){y={isDragging:!1,playedTime:N.draggedTime,controlsVisible:q.controlsWereVisibleBeforeDragging};b.enableFineScrubbing&&N.fineScrubbingActiveState!=="on"&&(q.resetFilmStripYOffset(),y.fineScrubbingActiveState="off");var J=J===void 0?T8d:J;var E=_.Oe(0);if(E&&J){var F=Math.round(N.playedTime*1E3),R=Math.round(N.draggedTime*1E3);F>2147483647||R>2147483647||_.a5(E,J,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(F),endMediaTimeMs:String(R),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}N.setState(y);
q.seekThrottle.fire(N.draggedTime,N,7);_.x("mweb_new_progress_bar_play_on_seek")&&q.resumeVideo(N);b.unmuteOnSeek&&(b=N.playerApi,N.volumeMuted&&(b==null||b.unMute()))}else N.setState({controlsVisible:!N.controlsVisible}),(E=b.triggerAutohideControlsAfterDelayFn)==null||E.call(b);q.startPosition=null;q.hasDraggedTheMinimumDistance=!1;q.isDraggedForFineScrubbing=!1;q.controlsWereVisibleBeforeDragging=!1};
h1.prototype.handleClick=function(q,N,b){this.updateProgressBarRect();q.stopPropagation();q=a3f(this,N,q.clientX)*N.videoDuration;N.setState({playedTime:q});if(N.playerState!==2){var y;(y=b.triggerAutohideControlsAfterDelayFn)==null||y.call(b)}this.seekThrottle.fire(q,N,7)};
var a3f=function(q,N,b){q=q.getProgressBarRect(N);return _.Od(0,(b-q.left)/q.width,1)};
h1.prototype.resumeVideo=function(q){if(q.draggedTime<q.videoDuration){var N;(N=q.playerApi)==null||N.playVideo()}};
h1.prototype.onThrottledSeek=function(q,N,b){if(N=N.playerApi){var y;if((y=N.getVideoData())==null?0:y.isLive)y=this.getProgressState(N),q+=(y==null?void 0:y.seekableStart)||0;N.seekTo(q,void 0,void 0,void 0,b)}};
h1.prototype.getProgressState=function(q){var N=q==null?void 0:q.getPresentingPlayerType();return q==null?void 0:q.getProgressState(N)};var pvN,LAd,P7f,o5f,WAc,ASB,ewU,BDC,HYB;pvN=_.n(function(q){var N=q.progressBarProps;var b=q.config;var y=q.progressBarWidthPx;var J=q.chapterData;var E=qBZ(N,function(){return b().isShortsPage}),F=function(){return!N().isHovering&&!b().isShortsPage};
q={};var R=_.NO("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(q.ytPlayerStoryboardHostMwebShorts=function(){return b().isShortsPage&&!1},q));
return _.u("yt-player-storyboard",null,_.u(_.t,{cond:function(){return N().isDragging||N().isHovering},
then:function(){return _.u(_.t,{cond:E,then:function(c){return _.u(_.t,{cond:F,then:function(){return _.u("div",{class:R,"aria-hidden":"true"},_.u(WAc,{props:N,config:b,isBigboard:!0,chapterData:J}))},
else:function(){return _.u(LAd,{props:N,frame:c,config:b,progressBarWidthPx:y,chapterData:J})}})}})}}))},"Mg");
_.MdC=_.n(function(q){var N=q.progressBarProps;var b=qBZ(N,q.isShortsPage);return _.u("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.u(_.t,{cond:function(){return N().isDragging||N().isHovering},
then:function(){return _.u(_.t,{cond:b,then:function(y){return _.u(P7f,{frame:y,props:N,isBigboard:!0})}})}}))},"Ng");
LAd=_.n(function(q){var N=q.props;var b=q.frame;var y=q.config;var J=q.progressBarWidthPx;q=q.chapterData;var E={};E=_.NO("ytPlayerStoryboardHost",(E.ytPlayerStoryboardHostMwebShorts=function(){return y().isShortsPage&&!1},E.ytPlayerStoryboardHostInlinePlayer=function(){return y().isInlinePlayer},E.ytPlayerStoryboardHostFadeIn=function(){return y().useFadeInAnimation},E));
return _.u("div",{class:E,"aria-hidden":"true",style:function(){var F=N(),R=A_A(b()),c=J();F=e9C(F)/F.videoDuration;var z=c*F,m=R/2+6;R=c-(R/2+6);return"left: "+(z<=m?m/c*100:z>=R?R/c*100:F*100)+"%"}},_.u(_.t,{cond:function(){var F=N();
return!(y().isShortsPage&&F.videoDuration<15)},
then:function(){return _.u(P7f,{frame:b,props:N,isBigboard:!1})}}),_.u(WAc,{props:N,
config:y,isBigboard:!1,chapterData:q}))},"Og");
P7f=_.n(function(q){var N=q.frame;var b=q.props;var y=q.isBigboard;var J=function(){var R,c;return(c=(R=b().playerApi)==null?void 0:R.getVideoContentRect())!=null?c:{width:0,height:0}},E=function(){return A_A(N())},F=function(){var R=N();
return R?R.height/R.rows:0};
q={};q=_.NO((q.ytPlayerStoryboardBigboardImageWrapper=y,q.ytPlayerStoryboardStoryboardImageWrapper=function(){return!y()},q));
return _.u("div",{class:q,style:function(){return"width: "+(y()?J().width:E())+"px; height: "+(y()?J().height:F())+"px;"}},_.u(o5f,{frame:N,
storyboardWidth:E,storyboardHeight:F,storyboardScale:function(){return(y()?J().width:E())/E()}}))},"Pg");
o5f=_.n(function(q){var N=q.frame;var b=q.storyboardWidth;var y=q.storyboardHeight;var J=q.storyboardScale;var E=function(){var F=N().row,R=N().column,c=b(),z=y(),m=J();return{left:-R*c*m,top:-F*z*m}};
return _.u("img",{src:function(){return N().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+E().left+"px; top: "+E().top+"px; width: "+N().width*J()+"px; height: "+N().height*J()+"px;"}})},"Qg");
WAc=_.n(function(q){var N=q.props;var b=q.config;var y=q.isBigboard;var J=q.chapterData;q={};q=_.NO("ytPlayerStoryboardMetadata",(q.ytPlayerStoryboardMetadataBigboard=y,q));return _.u("div",{class:q},_.u(_.t,{cond:y,then:function(){return _.u(_.rV,null,_.u(ASB,{props:N,config:b}),_.u(_.t,{cond:function(){a:{var E=N();var F=b(),R=J(),c;if((F==null?0:F.activeChapter)&&((c=_.v(F==null?void 0:F.activeChapter,wh))==null?0:c.title))E=!0;else{F=_.Z(Dxd(R));for(F=F.next();!F.done;F=F.next()){E=(F=_.v(F.value,
ot1))&&B8e(E,F);break a}E=!1}}return E},
then:function(){return _.u(ewU,{props:N,config:b,isBigboard:!0,chapterData:J})}}))},
else:function(){return _.u(_.rV,null,_.u(ewU,{props:N,config:b,isBigboard:!0,chapterData:J}),_.u(ASB,{props:N,config:b}))}}))},"Rg");
ASB=_.n(function(q){var N=q.props;var b=q.config;q={};q=_.NO("ytPlayerStoryboardTimestamp",(q.ytPlayerStoryboardTimestampShorts=function(){return b().isShortsPage},q.ytPlayerStoryboardTimestampIsHovering=function(){return N().isHovering||b().isShortsPage&&!0},q));
return _.u("div",{class:q},_.u(_.rV,null,function(){return _.HnA(e9C(N()))}))},"Sg");
ewU=_.n(function(q){var N=q.props;var b=q.config;var y=q.isBigboard;var J=q.chapterData;q={};y=_.NO("ytPlayerStoryboardTitle",(q.ytPlayerStoryboardTitleBigboard=y,q));return _.u("div",{class:y},_.u(_.t,{cond:function(){return!b().isShortsPage},
then:function(){return _.u(BDC,{props:N,activeChapter:function(){return b().activeChapter},
chapterData:J})}}))},"Tg");
BDC=_.n(function(q){var N=q.props;var b=q.activeChapter;var y=q.chapterData;return _.u(_.rV,null,_.u(_.Tf,{each:function(){return Dxd(y())},
keyBy:"INDEX"},function(J){return _.u(_.rV,null,_.u(_.t,{cond:function(){return _.v(J(),ot1)&&B8e(N(),_.v(J(),ot1))},
then:function(){return _.u(HYB,{timedMarker:function(){return _.v(J(),ot1)}})}}))}),_.u(_.t,{cond:function(){var J;
return b()&&((J=_.v(b(),wh))==null?void 0:J.title)},
then:function(J){return _.u(_.Zc,{text:J,noPreWrap:!0})}}))},"Ug");
HYB=_.n(function(q){var N=q.timedMarker;return _.u(_.rV,null,_.u("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.u(_.FQ,{icon:function(){return N().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.u(_.Zc,{text:function(){return N().label},
noPreWrap:!0}))},"Vg");_.q2f=_.n(function(q){var N=q.progressBarProps;var b=q.playheadData;var y=q.config;q=_.dI("yt-progress-bar");var J=_.dI("div"),E=_.dI("div"),F=_.Z(_.QS({width:0,left:0},void 0,"WloVn")),R=F.next().value,c=F.next().value,z=function(){E.value&&c(E.value.getBoundingClientRect())},m=function(){R().width<=0&&z();
return R()};
_.$F("resize",z);var r=new h1(m,function(){},function(){return 0},function(){},function(){},function(){}),X=function(){return N()};
F=_.Z(_.QS(!1,void 0,"u8BZZb"));var V=F.next().value,G=F.next().value;F=_.y0(function(){G(!0);y().position===2?setTimeout(function(){z()},100):z()});
var w=_.y0(function(){G(!1);UmB(r,X)()}),D=_.y0(function(sJ){y().doSeekOnClick&&QwN(r,X,y)(sJ);
return!1}),k=_.y0(function(sJ){iYd(r,X)(sJ);
return!1}),f=_.y0(function(sJ){l3a(r,X)(sJ);
return!1}),L=_.y0(function(sJ){Dmf(r,X,y)(sJ);
return!1}),S=_.y0(function(sJ){knp(r,X,y)(sJ);
return!1}),W=_.y0(function(){f3f(r,X,y)();
return!1}),M=_.y0(function(){C7x(r,X,y)();
return!1}),qe=_.y0(function(){I3p(r,X,y)();
return!1}),RJ=_.y0(function(sJ){TDW(X)(sJ);
return!1});
_.$F("mousemove",swN(r,X,y));_.$F("mouseup",n5C(r,X,y));_.WC(function(){sTz(J.value);G(!1);z();n5C(r,X,y)()});
var tZ={};tZ=_.NO("ytPlayerProgressBarHost",function(){return y().className},(tZ.ytPlayerProgressBarHostReadOnly=function(){return y().disableScrubbing},tZ.ytPlayerProgressBarHostHidden=function(){return y().hideProgressBar&&!V()},tZ.ytPlayerProgressBarHostLowerPlayer=function(){return y().position===0},tZ.ytPlayerProgressBarHostBottomEdge=function(){return y().position===1},tZ.ytPlayerProgressBarHostBottomInset=function(){return y().position===2},tZ.ytPlayerProgressBarHostCustom=function(){return y().position===
3},tZ));
var wA={},rA=_.NO("ytPlayerProgressBarBackground",(wA.ytPlayerProgressBarBackgroundHide=function(){return y().position===2&&!V()&&!N().isDragging},wA));
wA={};wA=_.NO("ytPlayerProgressBarDragContainer",(wA.ytPlayerProgressBarDragContainerBottomEdge=function(){return y().position===1},wA));
var xD={};xD=_.NO("ytPlayerProgressBarProgressBar",(xD.ytPlayerProgressBarProgressBarInset=function(){return y().position===2},xD.ytPlayerProgressBarProgressBarInsetMinimized=function(){return y().position===2&&!V()&&!N().isDragging},xD));
var IJ=function(){return Math.floor(woA(N())*100)};
return _.u("yt-progress-bar",{el:q,class:tZ},_.u(_.t,{cond:function(){return y().position===2},
then:function(){return _.u("div",{class:rA})}}),_.u("div",{el:J,
"on:click":D,"on:touchstart":k,"on:touchmove":L,"on:mouseenter":F,"on:mousedown":f,"on:mouseleave":w,"on:mousemove":S,"on:mouseup":M,"on:touchend":W,"on:touchcancel":qe,"on:keydown":RJ,class:wA,role:"slider","aria-valuenow":IJ,"aria-valuetext":function(){return IJ()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return N().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.FE("SEEK_SLIDER")},_.u("div",{el:E,class:xD},_.u(v5N,{progressBarProps:N,config:y,highContrast:function(){return!!y().isInlinePlayback}}),_.u(_.t,{cond:function(){return y().chapterData&&h9D(y().chapterData)},
then:function(){return _.u(jwC,{progressState:N,multiMarkersPlayerBarRenderer:function(){return y().chapterData},
progressBarWidth:function(){return R().width}})},
else:function(){return _.u(Gnf,{progressBarProps:N,config:y})}}),_.u(YaX,{progressBarProps:N,
playheadData:b,interpolateDotPosition:function(){return y().position!==2},
hidePlayhead:function(){return y().playheadDotBehavior===1&&!V()}}))),_.u(pvN,{progressBarProps:N,
config:function(){return{activeChapter:LGR(N(),y().chapterData),getProgressBarWidthPx:function(){return m().width},
isShortsPage:!!y().isShortsPage,isInlinePlayer:!!y().isInlinePlayback,useFadeInAnimation:!!y().isInlinePlayback}},
progressBarWidthPx:function(){return R().width},
chapterData:function(){return y().chapterData}}))},"Wg");
_.q2f.idomCompat=!0;Object.assign({},_.kxd(),{setState:function(){},
domMeasurements:{},appApi:_.OnC(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var NLU;
_.boA=_.n(function(){var q,N=(q=_.N_d(blA().playerApi))!=null?q:void 0;q=_.Z(_.QS(!1,void 0,"Z9NQ1b"));var b=q.next().value,y=q.next().value;q=_.Z(_.QS(!1,void 0,"HoVJXe"));var J=q.next().value,E=q.next().value;q=_.Z(_.QS(!1,void 0,"DWCY3"));var F=q.next().value,R=q.next().value;q=_.Z(_.QS(!1,void 0,"g4C2Zd"));var c=q.next().value,z=q.next().value;q=_.Z(_.QS(0,void 0,"lmVfFb"));var m=q.next().value,r=q.next().value;q=_.Z(_.QS(0,void 0,"mFLbzb"));var X=q.next().value,V=q.next().value;q=_.Z(_.QS(!1,void 0,
"hQN4Wb"));var G=q.next().value,w=q.next().value;q=_.Z(_.QS(0,void 0,"WWU0fb"));var D=q.next().value,k=q.next().value;q=_.Z(_.QS(0,void 0,"MJ7LMd"));var f=q.next().value,L=q.next().value;q=_.Z(_.QS("",void 0,"hnomOe"));var S=q.next().value,W=q.next().value;q=_.Z(_.QS(-1,void 0,"ARe3pf"));var M=q.next().value,qe=q.next().value,RJ=_.K3(function(){var tZ={controlsVisible:b(),isOverlayHidden:J(),shouldWaitToHideControls:F(),isDragging:c(),isHovering:G(),videoDuration:D(),playedTime:f(),videoId:S(),draggedTime:X(),
hoveredTime:m(),playerState:M()};return Object.assign({},_.kxd(),tZ,{domMeasurements:{},setState:function(wA){wA.controlsVisible!==void 0&&y(wA.controlsVisible);wA.isOverlayHidden!==void 0&&E(wA.isOverlayHidden);wA.shouldWaitToHideControls!==void 0&&R(wA.shouldWaitToHideControls);wA.isDragging!==void 0&&z(wA.isDragging);wA.isHovering!==void 0&&w(wA.isHovering);wA.draggedTime!==void 0&&V(wA.draggedTime);wA.hoveredTime!==void 0&&r(wA.hoveredTime);wA.videoDuration!==void 0&&k(wA.videoDuration);wA.playedTime!==
void 0&&L(wA.playedTime);wA.videoId!==void 0&&W(wA.videoId);wA.playerState!==void 0&&qe(wA.playerState)},
appApi:_.OnC(),playerApi:N})},void 0,"Au4PIf");
_.SI(function(){N==null||N.addEventListener("onVideoProgress",IjZ(RJ));N==null||N.addEventListener("onVideoDataChange",CMn(RJ));N==null||N.addEventListener("onStateChange",Uxh(RJ))});
_.W1(function(){if(N==null?0:N.isReady())N==null||N.removeEventListener("onVideoProgress",IjZ(RJ)),N==null||N.removeEventListener("onVideoDataChange",CMn(RJ)),N==null||N.removeEventListener("onStateChange",Uxh(RJ))});
return _.u("desktop-shorts-player-controls",null,_.u(NLU,{playerControlsProps:RJ}))},"Yg");
NLU=_.n(function(q){var N=q.playerControlsProps;return _.u("div",{class:"desktopShortsPlayerControlsHost"},_.u(_.q2f,{progressBarProps:N,config:function(){return{isShortsPage:!0,hideProgressBar:N().videoDuration<30&&N().playerState!==2&&!N().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Zg");_.yrA=_.n(function(q){function N(tZ){tZ!==0||r()?tZ>50&&(r()||!V())?(X(!1),G(!0)):tZ<=50&&(r()||V())&&(X(!1),G(!1)):X(!0)}
function b(tZ,wA){var rA;return _.d(function(xD){if(xD.nextAddress==1)return xD.yield(_.yR(),2);rA=xD.yieldResult;wA&&rA?(rA.unMute(!0),tZ&&(JCd(tZ,rA.getVolume()),D(rA.getVolume()))):rA&&(rA.mute(!0),tZ&&JCd(tZ,0));_.hj(xD)})}
function y(tZ){var wA,rA;return _.d(function(xD){if(xD.nextAddress==1)return xD.yield(_.yR(),2);wA=xD.yieldResult;rA=50;wA&&(rA=wA.getVolume(),wA.isMuted()?JCd(tZ,0):JCd(tZ,rA));D(rA);_.hj(xD)})}
var J=q.orientation;q=_.dI("desktop-shorts-volume-controls");var E=_.dI("button"),F=_.cK("input"),R=_.Z(_.QS(!1,void 0,"MvN0Tc")),c=R.next().value,z=R.next().value,m=_.Z(_.QS(!1,void 0,"aSjsEb"));R=m.next().value;m=m.next().value;var r=R,X=m;m=_.Z(_.QS(!0,void 0,"FUh46d"));R=m.next().value;m=m.next().value;var V=R,G=m;R=_.Z(_.QS(50,void 0,"yPke4d"));var w=R.next().value,D=R.next().value;R=_.K3(function(){var tZ=r();return _.x("web_shorts_keyboard_enable_mute_shortcut")?tZ?_.FE("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.FE("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):tZ?_.FE("UNMUTE_VOLUME",void 0,"Unmute"):_.FE("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
m=_.K3(function(){var tZ=r(),wA=V();return{sources:[{clientResource:{imageName:tZ?_.x("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":wA?_.x("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.x("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var k=_.K3(function(){var tZ=w();return r()?tZ+"% volume muted":tZ+"% volume"},void 0,"xZsRmc"),f=_.K3(function(){return J()==="vertical_down"},void 0,"FVqYmb");
_.WC(function(){function tZ(){z(!0)}
function wA(){z(!1)}
F&&F.value&&(F.value.addEventListener("focus",tZ),F.value.addEventListener("focusout",wA),y(F.value).then(function(){N(Number(Eqd(F.value)))}));
E&&E.value&&(E.value.addEventListener("focus",tZ),E.value.addEventListener("focusout",wA));_.W1(function(){var rA;F==null||(rA=F.value)==null||rA.removeEventListener("focus",tZ);var xD;F==null||(xD=F.value)==null||xD.removeEventListener("focusout",wA);var IJ;E==null||(IJ=E.value)==null||IJ.removeEventListener("focus",tZ);var sJ;E==null||(sJ=E.value)==null||sJ.removeEventListener("focusout",wA)})});
var L=_.y0(function(){if(F&&F.value){var tZ=Number(Eqd(F.value));yCd(tZ);D(tZ);F.value.style.setProperty("--gradient-percent",tZ+"%");N(tZ)}return!1}),S=_.y0(function(){F&&F.value&&(b(F.value,r()),X(!r()));
return!1}),W={},M={},qe={},RJ={};
return _.u("desktop-shorts-volume-controls",{"on:pointerleave":_.y0(function(){z(!1)}),
"on:pointerenter":_.y0(function(){z(!0)}),
class:_.NO("ytdDesktopShortsVolumeControlsHost",(W.ytdDesktopShortsVolumeControlsHostVertical=f,W.ytdDesktopShortsVolumeControlsHostModern=_.x("web_shorts_modern_controls"),W.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.x("web_shorts_modern_controls")&&c()},W)),
el:q},_.u(_.t,{cond:function(){return!f()},
then:function(){var tZ={};return _.u("div",{class:_.NO("ytdDesktopShortsVolumeControlsBackgroundScrim",(tZ.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=c,tZ.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.x("web_shorts_modern_controls")&&c()},tZ))})}}),_.u("div",{class:_.NO((M.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=f,M))},_.u("button",{"aria-label":R,
title:R,el:E,"on:click":S,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},m?_.u(_.s_,{data:m,alt:R,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.u("div",{class:_.NO("ytdDesktopShortsVolumeControlsSliderContainer",(qe.ytdDesktopShortsVolumeControlsSliderContainerExpanded=c,qe.ytdDesktopShortsVolumeControlsSliderContainerVertical=f,qe.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=f,qe.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return c()&&
f()},qe))},_.u("input",{"aria-label":_.FE("VOLUME"),
title:_.FE("VOLUME"),el:F,"on:input":L,type:"range",class:_.NO("ytdDesktopShortsVolumeControlsNativeSlider",(RJ.ytdDesktopShortsVolumeControlsNativeSliderModern=_.x("web_shorts_modern_controls"),RJ)),id:"volume-input",role:"slider","aria-valuenow":w,"aria-valuetext":k,"aria-valuemin":0,"aria-valuemax":100})))},"$g");var Jrf=_.n(function(q){var N=q.data;var b=q.overlayDensity;q={};return _.u("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.u(_.zS,{data:function(){return N().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(y){var J=y.data;
return _.u(_.qw,{data:function(){return(b==null?void 0:b())===1?Object.assign({},J(),{avatar:{avatarViewModel:Object.assign({},_.v(J().avatar,_.wj),{avatarImageSize:"AVATAR_SIZE_M"})}}):J()}})}}),_.u(_.zS,{data:function(){return N().avatarStackViewModel}},{avatarStackViewModel:function(y){return _.u(_.Nw,{data:y.data})}}),_.u(_.Zc,{className:_.NO("ytReelChannelBarViewModelChannelName",(q.ytReelChannelBarViewModelChannelNameLarge=function(){return(b==null?void 0:b())===1},q)),
text:function(){return N().channelName},
linkInheritColor:!0,userInput:!0}),_.u("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.u(_.zS,{data:function(){return N().subscribeButtonViewModel}},{subscribeButtonViewModel:function(y){var J=y.data;
return _.u(_.HX,{data:function(){return(b==null?void 0:b())===1?Object.assign({},J(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},J().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):J()},
isOverlay:!1})},
buttonViewModel:_.Ou})),_.u("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.u(_.zS,{data:function(){var y,J;return(J=_.v((y=N())==null?void 0:y.sponsorButtonViewModel,J0l))==null?void 0:J.sponsorButton}},{buttonViewModel:function(y){return _.u(_.Ou,{data:y.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ah");var Eya=_.n(function(q){var N=function(){var J;return((J=q.overlayDensity)==null?void 0:J.call(q))===1},b=function(){return N()?22:16},y={};
return _.u("yt-reel-multi-format-link-view-model",{class:_.NO("ytReelMultiFormatLinkViewModelHost",(y.ytReelMultiFormatLinkViewModelHostTall=!0,y.ytReelMultiFormatLinkViewModelHostLarge=function(){return N()},y))},_.u(_.Vf,{ariaLabel:function(){return q.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return q.data().command}},_.u("h3",{class:function(){return N()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.u(_.t,{cond:function(){return q.data().icon},
then:function(J){return _.u(_.s_,{data:J,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:b})}}),_.u(_.Zc,{text:function(){return q.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"bh");
Eya.idomCompat=!0;var gyW=_.n(function(q){var N=q.data;var b=q.overlayDensity;var y=q.extractOverlay;var J=_.dI("yt-shorts-suggested-action-view-model");q=_.Z(_.QS(!1,void 0,"S60Hzc"));var E=q.next().value,F=q.next().value;q=_.Z(_.QS(!1,void 0,"O76chf"));var R=q.next().value,c=q.next().value,z=function(){return N().isMultiLineSa},m=_.dj(xGh,function(){var W,M;
return(M=(W=N().toggleableContent)==null?void 0:W.entityKey)!=null?M:""}),r=function(){var W,M,qe;
return(qe=N().toggleableContent)!=null&&qe.entityKey?(M=(W=m())==null?void 0:W.value)!=null?M:!1:!1},X=function(){var W,M,qe,RJ,tZ,wA,rA,xD,IJ,sJ,Sn;
return N().toggleableContent?r()?(W=N().toggleableContent)==null?void 0:W.toggledData:(M=N().toggleableContent)==null?void 0:M.untoggledData:{primaryText:(xD=(qe=N().defaultContent)==null?void 0:qe.primaryText)!=null?xD:N().text,secondaryText:(RJ=N().defaultContent)==null?void 0:RJ.secondaryText,onTapCommand:(IJ=(tZ=N().defaultContent)==null?void 0:tZ.onTapCommand)!=null?IJ:N().onTapCommand,icon:(sJ=(wA=N().defaultContent)==null?void 0:wA.icon)!=null?sJ:N().icon,image:(Sn=(rA=N().defaultContent)==
null?void 0:rA.image)!=null?Sn:N().image}},V=function(){return z()?N().trailingTapTarget:void 0},G=function(W,M){return function(){return E()?M:W}},w=function(){return{leadingSection:G("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(b==null?void 0:b())===1?G("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):G("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:G("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:G("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:G("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
q={};q=_.NO((q.ytShortsSuggestedActionViewModelStaticHost=function(){return!z()},q.ytShortsSuggestedActionViewModelDynamicHost=z,q.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return z()&&R()},q.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return z()&&!R()},q.ytShortsSuggestedActionViewModelExtractOverlay=function(){return y==null?void 0:y()},q));
_.WC(function(){if(z()){var W=0,M;if((M=N().animationParams)==null?0:M.shouldExpand){var qe,RJ;W=((RJ=(qe=N().animationParams)==null?void 0:qe.expansionDelaySecs)!=null?RJ:0)*1E3}var tZ,wA=((tZ=N().animationParams)==null?0:tZ.shouldExpand)?setTimeout(function(){F(!0)},W):void 0,rA,xD;
W=((rA=N().animationParams)==null?0:rA.visibilityDelaySecs)?((xD=N().animationParams)==null?NaN:xD.visibilityDelaySecs)*1E3:0;var IJ=setTimeout(function(){c(!0)},W);
_.W1(function(){wA&&clearTimeout(wA);clearTimeout(IJ)})}});
var D=function(W){_.Kt(W,Object.assign({},{form:{element:J.value}}))},k=_.y0(function(){var W,M=(W=X())==null?void 0:W.onTapCommand;
M&&D(M)}),f=_.y0(function(){var W,M;
if(W=(M=V())==null?void 0:M.onTapCommand)return D(W),!1}),L=_.ZU({"vertical-align":"bottom",
"border-radius":function(){var W;return z()?((W=N().defaultContent)==null?0:W.isCircleImage)?"50%":"4px":"0px"},
width:function(){var W,M,qe;return z()&&((W=N().defaultContent)==null?0:W.imageSize)?((qe=(M=N().defaultContent)==null?void 0:M.imageSize)!=null?qe:24)+"px":null},
height:function(){var W,M,qe;return z()&&((W=N().defaultContent)==null?0:W.imageSize)?((qe=(M=N().defaultContent)==null?void 0:M.imageSize)!=null?qe:24)+"px":null}}),S={};
return _.u("yt-shorts-suggested-action-view-model",{class:q,el:J},_.u("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.u("button",{class:_.NO(function(){return z()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var W;
return(W=N().useFullRoundedBorder)!=null&&W?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!V()&&z()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":z()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var W;
return(W=N().disableFixedHeight)!=null&&W?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(S.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(b==null?void 0:b())===1},S.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return y==null?void 0:y()},S)),
"on:click":k},_.u(_.j9,{model:{color:4}}),_.u("div",{class:_.NO(function(){return z()?w().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.u(_.t,{cond:function(){var W;
return(W=X())==null?void 0:W.image},
then:function(W){return _.u(_.s_,{data:W,alt:"",className:function(){return z()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:L})}}),_.u(_.t,{cond:function(){var W,M;
return(W=X())==null?void 0:(M=W.icon)==null?void 0:M.iconType},
then:function(W){return _.u(_.FQ,{icon:W,active:r,className:function(){return z()?E()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.u("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.u(_.t,{cond:function(){var W;
return(W=X())==null?void 0:W.primaryText},
then:function(W){var M={};return _.u("div",{class:_.NO("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(M.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(b==null?void 0:b())===1},M))},_.u(_.Zc,{text:W}))}}),_.u(_.t,{cond:function(){var W;
return(W=X())==null?void 0:W.secondaryText},
then:function(W){return _.u("div",{class:function(){return w().secondaryText()}},_.u(_.Zc,{text:W}))}}))),_.u(_.t,{cond:V,
then:function(W){return _.u("div",{class:_.NO(function(){return w().trailingSection()},function(){var M,qe;
return(y==null?void 0:y())&&((qe=(M=w()).trailingSectionExtractOverlay)==null?void 0:qe.call(M))||""}),
"aria-label":function(){var M;return(M=W().a11yLabel)!=null?M:""},
"on:click":f,role:"button",tabindex:0},_.u(_.j9,{model:{color:4}}),_.u(_.FQ,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"ch");var ZoA=_.n(function(q){var N=q.data;var b=q.overlayDensity;var y=_.dI("yt-shorts-video-title-view-model");q=_.y0(function(F){if(_.vG(_.xe(F),y.value,["A".toString()]))return!1;(F=N().truncatedTextOnTapCommand)&&_.Kt(F);return!1});
var J={},E={};return _.u("yt-shorts-video-title-view-model",{el:y,class:_.NO("ytShortsVideoTitleViewModelHost",(J.ytShortsVideoTitleViewModelHostClickable=function(){return!!N().truncatedTextOnTapCommand},J)),
"on:click":q},_.u("h2",{class:_.NO("ytShortsVideoTitleViewModelShortsVideoTitle",(E.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(b==null?void 0:b())===1},E))},_.u(_.Zc,{text:function(){return N().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(b==null?void 0:b())===1}})))},"dh");_.F0x=_.n(function(q){var N=q.data;var b=q.overlayDensity;var y=q.extractOverlay;var J=function(){return(b==null?void 0:b())===1};
return _.u("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.u(_.zS,{data:function(){return N().metadataItems}},{badgeViewModel:function(E){E=E.data;
return _.u("div",{class:_.NO(function(){return J()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.u(_.XT,{data:E}))},
playerDisclosureViewModel:function(E){E=E.data;return _.u("div",{class:_.NO(function(){return J()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.u(_.Nsc,{data:E,
extractOverlay:y}))},
shortsSuggestedActionViewModel:function(E){E=E.data;return _.u("div",{class:_.NO(function(){return J()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.u(gyW,{data:E,
overlayDensity:b,extractOverlay:y}))},
reelChannelBarViewModel:function(E){E=E.data;var F={};return _.u("div",{class:_.NO("ytReelMetapanelViewModelMetapanelItem",(F.ytReelMetapanelViewModelExpansive=function(){return J()},F))},_.u(Jrf,{data:E,
overlayDensity:b}))},
reelMultiFormatLinkViewModel:function(E){E=E.data;var F={};return _.u("div",{class:_.NO("ytReelMetapanelViewModelMetapanelItem",(F.ytReelMetapanelViewModelExpansive=function(){return J()},F))},_.u(Eya,{data:E,
overlayDensity:b}))},
shortsVideoTitleViewModel:function(E){E=E.data;var F={};return _.u("div",{class:_.NO("ytReelMetapanelViewModelMetapanelItem",(F.ytReelMetapanelViewModelExpansive=function(){return J()},F))},_.u(ZoA,{data:E,
overlayDensity:b}))},
reelSoundMetadataViewModel:function(E){E=E.data;var F={};return _.u("div",{class:_.NO("ytReelMetapanelViewModelMetapanelItem",(F.ytReelMetapanelViewModelExpansive=function(){return J()},F))},_.u(_.FTU,{data:E,
overlayDensity:b}))},
toggleButtonViewModel:function(E){E=E.data;var F={};return _.u("div",{class:_.NO("ytReelMetapanelViewModelMetapanelItem",(F.ytReelMetapanelViewModelExpansive=function(){return J()},F))},_.u(_.LV,{data:E}))}}))},"eh");var Rra=_.n(function(q){var N=_.Sl(q,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),b=N.size,y=N.onTap,J=N.disabled,E=N.tooltipText;return _.u("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.u(_.GE,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:b(),disabled:J(),tooltipText:E(),onTap:y}},
iconName:q.iconType}))},"fh"),d6p=_.n(function(q){function N(m){m.stopPropagation();
m.code==="ArrowUp"?(m.preventDefault(),FVn(R.value)):m.code==="ArrowDown"?(m.preventDefault(),RGn(R.value)):m.code==="KeyM"?gqA():(m.code==="KeyK"||m.code==="Space")&&ZlZ(c())}
var b=_.Sl(q,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});q=b.previousButtonDisabled;var y=b.nextButtonDisabled,J=b.data,E=b.playabilityStatus,F=b.previewThumbnail,R=_.dI("ytd-shorts-miniplayer-overlay"),c=_.uR(_.IcZ),z;_.SI(function(){(z=_.LM(R.value))&&z.addEventListener("keydown",N)});
_.W1(function(){var m;(m=z)==null||m.removeEventListener("keydown",N)});
b=function(){var m,r,X;return(m=J())==null?void 0:(r=m.reelPlayerOverlayRenderer)==null?void 0:(X=r.likeButton)==null?void 0:X.likeButtonRenderer};
return _.u("ytd-shorts-miniplayer-overlay",{el:R,class:"ytdShortsMiniplayerOverlayHost"},_.u("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.ZU({"background-image":function(){var m=F();return m?'url("'+_.oi(m.thumbnails)+'")':""}})}),_.u("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.u("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.u(Rra,{iconType:function(){var m=c();
return m===2||m===-1||m===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){ZlZ(c())},
tooltipText:function(){var m=c();return m===1||m===3?_.FE("PLAYER_LABEL_PAUSE"):_.FE("PLAYER_LABEL_PLAY")}}),_.u(_.yrA,{orientation:"horizontal_right"})),_.u("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.u(Rra,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:q,onTap:function(){FVn(R.value)},
tooltipText:_.FE("PREVIOUS_VIDEO_LABEL")}),_.u(Rra,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:y,onTap:function(){RGn(R.value)},
tooltipText:_.FE("NEXT_VIDEO_LABEL")}),_.x("web_shorts_pip_like_button")?_.u("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.u(icp,{buttonTooltipPosition:"left",data:b,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.u("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.u(_.t,{cond:function(){var m,r;return _.v((m=J())==null?void 0:(r=m.reelPlayerOverlayRenderer)==null?void 0:r.metapanel,
N7M)},
then:function(m){return _.u("div",{class:_.NO("ytdShortsMiniplayerOverlayInteractive")},_.u(_.F0x,{data:m}))}})),_.u("div",{class:_.NO("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var m;return!((m=J())==null||!m.adsOverlay)||E()&&!LgJ(E())}},_.u("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.u(_.boA,null)))),_.u(_.t,{cond:function(){var m=J(),r,X;
m=_.v(m==null?void 0:(r=m.adsOverlay)==null?void 0:(X=r.fulfillmentContent)==null?void 0:X.fulfilledLayout,ILv);return _.v(m==null?void 0:m.renderingContent,Wzo)},
then:function(m){return _.u("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.u(EVo,{data:m}))}}))},"hh");var dph=_.n(function(){var q=_.Z(_.QS(new _.l3(NaN,NaN),void 0,"hq9Bjf")),N=q.next().value,b=q.next().value;q=_.Z(_.QS(!1,void 0,"Mu3aZc"));var y=q.next().value,J=q.next().value,E=_.Z(_.QS(!1,void 0,"LGtoFb"));q=E.next().value;var F=E.next().value,R=_.tz().resolve(_.l9).miniplayerPropSignalMap[0],c=R.data,z=R.shortsData,m=R.nextButtonDisabled,r=R.shortsPreviewThumbnail,X=R.previousButtonDisabled,V=R.externalPlaylistData;E=R.toastData;var G=R.playabilityStatus,w=R.isDisabled,D=R.playerVe,k=R.closeVe;
R=_.uR(_.ez);_.Zm("yt-pip-window-resized",function(W){b(W)});
_.Zm("yt-activate-pip-miniplayer",function(){return _.d(function(W){F(!0);_.hj(W)})});
var f=function(){var W;return!((W=V())==null||!W.contents)&&y()},L=function(){var W=N(),M=!!c(),qe=f();
W=W.clone();M&&(W.height-=76);qe&&(W.height-=285);return W},S=function(){J(!y())};
_.Sx(function(){var W=D(),M=_.Oe(11),qe=_.QY(11);M&&qe&&W&&(_.fr(M,qe,W),qe=k())&&(_.Cr(M,W,[qe]),_.Tr(M,[qe]))},"fHkmfb");
return _.u("ytd-pip-container",{class:"ytdPipContainerHost"},_.u(_.t,{cond:q,then:function(){return _.u(_.rSA,{isDisabled:w,playabilityStatus:G,size:L,isPictureInPicture:!0})}}),_.u(_.t,{cond:c,
then:function(){return _.u(_.tdC,{data:c,expanded:y,onExpandClick:S,playlistData:V})}}),_.u(_.t,{cond:f,
then:function(){return _.u("div",{class:"ytdPipContainerPlaylistPanel"},_.u(_.Occ,{data:V,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.u(_.t,{cond:R,
then:function(){return _.u(d6p,{data:z,nextButtonDisabled:m,previousButtonDisabled:X,playabilityStatus:G,previewThumbnail:r})}}),_.u("div",{class:"ytdPipContainerToast"},_.u(_.Xvx,{toastData:E})))},"jh");var UW=function(q,N,b){var y=this;this.pipController=q;this.JSC$19089_clientRoot=N;this.JSC$19089_pageRequestService=b;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=vgJ();this.watchPipEnabled=_.x("web_watch_pip");this.shortsPipEnabled=_.x("web_shorts_pip");this.JSC$19089_watchWhileEnabled=_.x("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;_.aM(_.WT(),hZA,function(J){y.isSingleOptionSurveyActive=J});
this.JSC$19089_onPlayerPlayVideo=this.JSC$19089_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);_.EX(_.JD.getInstance(),this.miniplayerServiceActionMap,this.JSC$19089_clientRoot);q.pictureInPictureSupported()&&_.W_("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},QsM,jpa,m6f,x6f,vyx,P21;
UW.prototype.handleMediaSessionPipActivation=function(){var q=this,N;return _.d(function(b){_.sM().mediaSessionPipActivation=!0;N=_.tz().resolve(_.L6);return N.isOnWatch()&&q.watchPipEnabled?(_.sM().watchPipActivation=!0,_.crA(q,N.data),b.jumpTo(0)):N.isOnShorts()&&q.shortsPipEnabled?(_.sM().shortsPipActivation=!0,_.ufx(q),b.jumpTo(0)):q.isMiniplayerActive()&&q.watchPipEnabled&&!q.watchWhileMode?b.yield(zrA(q),0):b.jumpTo(0)})};
var zrA=function(q){var N,b,y,J;return _.d(function(E){if(E.nextAddress==1)return N=!q.miniplayerToPipMode,b=q.playerElement,y=q.miniplayerData,J=q.watchResponse,E.yield(q.deactivate(),2);if(E.nextAddress!=3)return N?(_.sM().mediaSessionPipActivation=!0,_.sM().watchPipActivation=!0):_.sM().miniplayerButtonActivation=!0,E.yield(q.activate(b,y,J),3);q.miniplayerToPipMode=N;_.hj(E)})};
UW.prototype.onDownloadedVideoDeleted=function(q){var N,b=_.v((N=this.miniplayerData)==null?void 0:N.watchEndpoint,_.nx),y,J;b&&((y=this.watchResponse)==null?void 0:(J=y.playerResponse)==null?void 0:J.offlineState)!==void 0&&(N=b.videoId)&&q&&N===q&&this.close()};
UW.prototype.onShowMiniplayerCommand=function(q){var N=this,b,y,J,E,F,R,c,z,m,r,X;return _.d(function(V){switch(V.nextAddress){case 1:return b=_.v(q,n3E),J=(y=b)==null?void 0:y.miniplayerCommand,E=_.v(J,_.nx),J&&E&&!N.active?V.yield(_.oM.getInstance(),2):V.return();case 2:return F=V.yieldResult,V.yield((R=F)==null?void 0:R.get("yt-miniplayer-shown-video-id"),3);case 3:c=V.yieldResult;z=E.videoId;if(!z||c===z)return V.return();m=_.tz().resolve(_.L6);if(m.isOnWatch())return _.M6(Error("Tj")),V.return();
r={channelItem:{externalId:btoa(z)}};N.readyToResumeVe=_.bx(121253,void 0,void 0,r);_.sM().showMiniplayerCommandActivation=!0;return V.yield(_.MqJ(N,J,!0),4);case 4:return N.active&&(_.fZ(N,{readyToResumeVe:N.readyToResumeVe,isReadyToResume:!0}),N.isReadyToResume=!0),V.yield((X=F)==null?void 0:X.set("yt-miniplayer-shown-video-id",E.videoId),5);case 5:N.readyToResumeVe=void 0,_.hj(V)}})};
UW.prototype.init=function(q){this.miniplayerEl?_.M6(new _.IO("MiniplayerService already initialized.")):this.miniplayerEl=q};
UW.prototype.isInitialized=function(){var q=!!this.miniplayerEl;q||_.M6(new _.IO("MiniplayerService used before initialized."));return q};
_.crA=function(q,N){if(q.isInitialized()){var b=_.QD(N.response,!1,N.playerResponse),y=_.tz().resolve(_.L6).getPlayerFromWatch();_.sM().currentEndpoint=b.watchEndpoint||null;q.activate(y,b,N)}};
_.ufx=function(q){if(q.isInitialized()){var N=_.tz().resolve(_.L6).getPlayerFromShorts();q.activate(N)}};
QsM=function(q,N){var b;(b=!q.isInitialized())||(b=_.tz().resolve(_.L6).isOnWatch()&&q.watchPipMode,b=!(q.isMiniplayerActive()&&(_.sM().userActivation||_.sM().lockupActivation||b)));if(b)return!1;$6A(q,N)?_.D8(q):P21(q,N);return q.watchPipMode?!_.tz().resolve(_.L6).isOnWatch():!0};
UW.prototype.isMiniplayerActive=function(){return this.active};
var $6A=function(q,N){var b;N=(b=_.v(N,_.nx))==null?void 0:b.videoId;var y,J;q=(J=_.v((y=q.miniplayerData)==null?void 0:y.watchEndpoint,_.nx))==null?void 0:J.videoId;return N!=null&&N===q};
UW.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.e2(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.By(this.miniplayerEl,"yt-navigate-home-action"))};
_.MqJ=function(q,N,b,y){b=b===void 0?!1:b;var J,E,F;return _.d(function(R){switch(R.nextAddress){case 1:if(q.active){R.jumpTo(2);break}J=_.tz().resolve(_.L6);if(F=(E=q.playerElement)!=null?E:J.getPlayerFromWatch()){R.jumpTo(3);break}return R.yield(_.tz().resolve(_.Bk),4);case 4:F=J.getPlayerFromWatch();case 3:if(!F){_.M6(Error("Vj"));R.jumpTo(2);break}return R.yield(q.activate(F,y),2);case 2:return q.active?R.yield(P21(q,N,b),0):R.return()}})};
UW.prototype.activate=function(q,N,b){var y=this,J,E,F,R,c,z,m,r,X;return _.d(function(V){switch(V.nextAddress){case 1:if(!y.isInitialized())return V.return();if(!q)return _.M6(Error("Vj")),V.return();if(_.gpx()||y.isMiniplayerActive())var G=!0;else G=_.sM().watchPipActivation||_.sM().watchWhileActivation,_.tz().resolve(_.L6).isOnWatch()&&!G?(_.M6(new _.IO("miniplayer activated on watch page")),G=!0):G=_.sM().watchWhileActivation?y.userDeactivatedWatchWhile||!!document.pictureInPictureElement||QId():
!1;if(G)return EpJ(),V.return();J=_.sM().mediaSessionPipActivation;E=_.sM().shortsPipActivation;F=_.sM().watchPipActivation;c=(R=_.sM().watchWhileActivation)||F;z=F||E;if(!y.pictureInPictureEnabled()||!z){V.jumpTo(2);break}return V.yield(t0K(y,J),3);case 3:if(!V.yieldResult)return _.M6(Error("Uj")),EpJ(),V.return();case 2:return y.setActive(!0),y.watchResponse=b,y.playerElement=q,y.updateMiniplayerData(N),V.yield(m6f(y,q),4);case 4:if(!y.active)return _.M6(new _.IO("miniplayer deactivated during activation")),
y.removePlayerListeners(),V.return();G=_.tz().resolve(_.F2);G.addEventListener("yt-navigate",_.gq(y,y.onPlaylistNavigate));G.addEventListener("yt-playlist-data-updated",_.gq(y,y.JSC$19089_onPlaylistDataUpdated));y.JSC$19089_onPlaylistDataUpdated();EpJ();y.JSC$19089_watchWhileEnabled&&_.rrd(y,R);y.pictureInPictureEnabled()&&y.shortsPipEnabled&&(y.shortsPipMode=E,_.WT().dispatch(Mpl(y.shortsPipMode)));y.pictureInPictureEnabled()&&y.watchPipEnabled&&(y.watchPipMode=F,_.wiD(y.handleMediaSessionPipActivation));
y.player&&(m=y.player.getPlayerState(),r=m===1,_.WT().dispatch(JKF(m)),_.Hy(y.miniplayerEl,"yt-miniplayer-play-state-changed",[r]),_.sM().isVideoPlaying=r);_.Hy(y.miniplayerEl,"yt-miniplayer-endpoint-changed");X_K(y);_.V0X(y);if(y.shortsPipMode||y.watchPipMode)V=V.yield(_.By(y.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{G=V.yield;var w=_.By(y.miniplayerEl,"yt-activate-miniplayer",[c])[0];V=G.call(V,w,6)}return V;case 6:if(y.watchResponse){G=y.getScreenLayer();w=_.Oe(0);var D=dCJ(0);w&&D&&
(_.iE(w,D,G),G===0&&FCe(void 0,0))}jpa(y);x6f(y,!0);(X=y.getPlayerElement())==null||X.focusOnPlayer();_.hj(V)}})};
UW.prototype.updateMiniplayerData=function(q){this.miniplayerData=q;_.fZ(this,{data:q})};
_.V0X=function(q){var N,b,y=((N=q.miniplayerData)==null?void 0:(b=N.miniplayerRenderer)==null?void 0:b.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";N=q.watchWhileMode||q.watchPipMode?y&&!_.tz().resolve(_.L6).isOnWatch():y;_.fZ(q,{isDisabled:N});var J,E;b=_.v((J=q.miniplayerData)==null?void 0:(E=J.miniplayerRenderer)==null?void 0:E.minimizedEndpoint,_.sj);N&&b&&_.tz().resolve(_.oQ).openSheet({openPopupActionCommand:{openPopupAction:b}},q.miniplayerEl)};
jpa=function(q){if(q.watchResponse&&!vyx(q)){var N,b=(N=q.watchResponse.playerResponse)==null?void 0:N.trackingParams;b&&(_.fZ(q,{expandVe:_.bx(35989),closeVe:_.bx(34699),readyToResumeCloseVe:_.bx(131070),repositionVe:_.bx(226204),resizeVe:_.bx(226205)}),_.fZ(q,{playerVe:_.zT(b)}))}};
m6f=function(q,N){return _.d(function(b){if(b.nextAddress==1)return N.preparePlayer(),b.yield(N.getPlayerPromise(),2);q.player=b.yieldResult;q.player&&(q.player.addEventListener("onPlayVideo",q.JSC$19089_onPlayerPlayVideo),q.player.addEventListener("onCloseMiniplayer",q.onPlayerCloseMiniplayer),q.player.addEventListener("onExpandMiniplayer",q.onPlayerExpandMiniplayer),q.player.addEventListener("onStateChange",q.onPlayerStateChange));_.hj(b)})};
_.g=UW.prototype;_.g.JSC$19089_onPlayerPlayVideo=function(q){var N=q.sessionData&&"autonav"in q.sessionData,b;q.sessionData&&q.sessionData.itct&&(b=q.sessionData.itct);var y=q.watchEndpoint;N=y&&N?_.a8D(y,b):_.Mc(q.videoId,q.listId||void 0,b);q.sessionData&&_.Lx(_.v(N.commandMetadata,_.gg).url,q.sessionData);P21(this,N)};
_.g.onPlayerExpandMiniplayer=function(){_.D8(this)};
_.g.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.g.onPlayerStateChange=function(){if(this.player){var q=this.player.getPlayerState(),N=q===1;_.WT().dispatch(JKF(q));_.WT().dispatch(_.Zdx(q));_.Hy(this.miniplayerEl,"yt-miniplayer-play-state-changed",[N]);_.sM().isVideoPlaying=N;if(q===0){N=!_.x3.getInstance().isAutoplaySetExplicitly();var b,y,J,E,F,R,c=(b=this.watchResponse.response)==null?void 0:(y=b.contents)==null?void 0:(J=y.twoColumnWatchNextResults)==null?void 0:(E=J.autoplay)==null?void 0:(F=E.autoplay)==null?void 0:(R=F.autoplayExplicitChoiceDialogRenderer)==
null?void 0:R.confirmDialogRenderer;N&&c&&this.player.setAutonavState(1)}q===0&&this.watchWhileMode&&this.deactivate()}};
_.g.onPlaylistNavigate=function(q,N){var b=this,y,J,E,F,R,c,z;return _.d(function(m){if(m.nextAddress==1){if(!_.v(N.endpoint,_.nx))return m.return();_.sM().currentEndpoint=N.endpoint;_.Hy(b.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.tz().resolve(_.L6).isOnWatch()&&(b.watchWhileMode||b.watchPipMode))return m.return();q.stopPropagation();(E=(J=_.v((y=N.endpoint)==null?void 0:y.commandMetadata,_.gg))==null?void 0:J.url)&&N.tempData&&!_.nM.isEmpty(N.tempData)&&_.Lx(E,N.tempData);F={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};R=new Zwo(function(){return b.getPlayerElement()},F,{layer:b.getScreenLayer()});
c=function(r){R.processChunk({endpoint:N.endpoint,data:r})};
G6a(b);b.miniplayerFetchRequest=Y2K(b,N.endpoint,c);_.Yi(m,2);return m.yield(b.miniplayerFetchRequest,4)}if(m.nextAddress!=2)return z=m.yieldResult,QpX(b,z),_.Ea(m,0);_.K7(m);_.hj(m)})};
_.g.JSC$19089_onPlaylistDataUpdated=function(){var q=_.tz().resolve(_.F2).getPlaylistData();this.hasPlaylistData=!!q;_.fZ(this,{externalPlaylistData:q||{}})};
_.g.close=function(q){if(this.isInitialized())if(q){if(!((this.watchWhileMode||this.watchPipMode)&&_.tz().resolve(_.L6).isOnWatch()||this.shortsPipMode)){var N;(N=this.getPlayerElement())==null||N.stop()}this.deactivate()}else _.zV().closeMiniplayer(this.miniplayerEl)};
_.g.deactivate=function(q){var N=this,b,y,J,E;return _.d(function(F){if(F.nextAddress==1){if(!N.isInitialized()||!N.active)return F.return();N.setActive(!1);G6a(N);(b=!!q&&$6A(N,q))&&N.isSingleOptionSurveyActive&&_.By(N.miniplayerEl,"yt-show-watch-page-survey",[N.isSingleOptionSurveyActive]);return F.yield(Oof(N),2)}if(F.nextAddress!=3){x6f(N,!1);N.isReadyToResume=!1;N.watchResponse=void 0;N.updateMiniplayerData(void 0);N.shortsPipMode&&(N.shortsPipMode=!1,_.WT().dispatch(Mpl(N.shortsPipMode)),TnN(N.pipController),
(y=N.player)==null||y.setInternalSize(NaN,NaN));N.watchPipMode&&(N.watchPipMode=!1,TnN(N.pipController));(J=N.watchWhileMode)&&_.rrd(N,!1);N.removePlayerListeners();var R=_.tz().resolve(_.F2);R.removeEventListener("yt-navigate",_.gq(N,N.onPlaylistNavigate));R.removeEventListener("yt-playlist-data-updated",_.gq(N,N.JSC$19089_onPlaylistDataUpdated));_.sM().currentEndpoint=null;_.Hy(N.miniplayerEl,"yt-miniplayer-endpoint-changed");N.playerElement=null;EpJ();if(N.shortsPipMode||N.watchPipMode)F=F.jumpTo(3);
else{R=F.yield;var c=_.By(N.miniplayerEl,"yt-deactivate-miniplayer",[b,J])[0];F=R.call(F,c,3)}return F}(E=N.player)==null||E.setInternalSize(NaN,NaN);N.player=null;_.hj(F)})};
var Oof=function(q){var N;return _.d(function(b){N=_.tz().resolve(_.L6);return q.shortsPipMode?b.yield(N.movePlayerToShorts(q.playerElement),0):b.yield(N.movePlayerToWatch(q.playerElement),0)})};
UW.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19089_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
UW.prototype.setActive=function(q){this.active=q;this.isSingleOptionSurveyActive?_.By(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.By(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.WT().dispatch(_.B3({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.rrd=function(q,N){q.watchWhileMode=N;_.fZ(q,{watchWhile:N})};
x6f=function(q,N){if(!vyx(q))if(q.shortsPipMode||q.watchPipMode){var b;(b=q.player)==null||b.setDocumentPictureInPicture(N)}else{var y;(y=q.player)==null||y.setMinimized(N)}};
vyx=function(q){return q.watchWhileMode&&_.x("kevlar_watch_while_counterfactual")};
_.D8=function(q){var N;return _.d(function(b){switch(b.nextAddress){case 1:if(!q.isInitialized())return b.return();_.Yi(b,2);return b.yield(q.miniplayerFetchRequest,4);case 4:_.Ea(b,3);break;case 2:_.K7(b);case 3:q.watchResponse&&q.miniplayerData&&q.miniplayerData.watchEndpoint?(N={url:q.watchResponse.url,endpoint:q.miniplayerData.watchEndpoint,data:q.watchResponse,miniplayer:!0},_.e2(q.miniplayerEl,"yt-navigate-cache",N)):q.miniplayerData&&q.miniplayerData.watchEndpoint&&_.e2(q.miniplayerEl,"yt-navigate",
{endpoint:q.miniplayerData.watchEndpoint}),_.hj(b)}})};
P21=function(q,N,b){var y,J,E,F;return _.d(function(R){if(R.nextAddress==1){if($6A(q,N))return R.return();_.sM().currentEndpoint=N;_.Hy(q.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Hy(q.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.sM().isVideoPlaying=!1;y={clientParams:{miniplayer:!0,autoSaveToQueue:!b}};J=new Zwo(function(){return q.getPlayerElement()},y,{layer:q.getScreenLayer(),
parentLayer:0},void 0,q.readyToResumeVe);E=function(c){var z,m,r=Object.assign({},(z=c.playerResponse)==null?void 0:(m=z.playerConfig)==null?void 0:m.playbackStartConfig,{startPaused:!0}),X;b&&((X=c.playerResponse)==null?0:X.playerConfig)&&(c.playerResponse.playerConfig.playbackStartConfig=r);J.processChunk({endpoint:N,data:c})};
G6a(q);q.miniplayerFetchRequest=Y2K(q,N,E);_.Yi(R,2);return R.yield(q.miniplayerFetchRequest,4)}if(R.nextAddress!=2)return F=R.yieldResult,QpX(q,F),_.Ea(R,0);_.K7(R);_.hj(R)})};
UW.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var G6a=function(q){q.miniplayerFetchRequest&&(q.miniplayerFetchRequest.cancel&&q.miniplayerFetchRequest.cancel("Active request obsolete"),q.miniplayerFetchRequest=null)},Y2K=function(q,N,b){var y,J=(y=_.v(N.commandMetadata,_.gg))==null?void 0:y.url,E;
y=!J||_.x("disable_miniplayer_tempdata")?{}:(E=AGd(J))!=null?E:{};return h7(q.JSC$19089_pageRequestService,N,y,window.location.href,"watch",function(F,R){b(R)},function(F){return F!==q.miniplayerFetchRequest})},QpX=function(q,N){var b;
_.d(function(y){if(!N)return y.return();q.watchResponse=N;jpa(q);X_K(q);b=_.QD(N.response,!1,N.playerResponse);if(q.isMiniplayerActive()){N.response&&(q.playerElement.watchNextData=N.response);var J=_.nM.getValueByKeys.apply(_.nM,[N].concat(_.a9(rKx)));_.nM.getValueByKeys.apply(_.nM,[N].concat(_.a9(vOE)))&&J&&_.tz().resolve(_.F2).setAutoplayRenderer(J);if(J)if(_.x("kevlar_is_pupi_enabled")){var E,F,R,c,z,m=((E=N.response)==null?0:(F=E.playerOverlays)==null?0:(R=F.playerOverlayRenderer)==null?0:(c=
R.autonavToggle)==null?0:(z=c.autoplaySwitchButtonRenderer)==null?0:z.enabled)?2:1;_.x3.getInstance().setState(m,!1,!1)}else E=Rad()?2:1,(m=q.player)==null||m.setAutonavState(E);q.updateMiniplayerData(b);_.V0X(q)}_.hj(y)})},X_K=function(q){var N,b,y=(N=q.watchResponse)==null?void 0:(b=N.playerResponse)==null?void 0:b.playabilityStatus,J;
N=y==null?void 0:(J=y.miniplayer)==null?void 0:J.miniplayerRenderer;(N==null?void 0:N.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&N.minimizedEndpoint&&_.qc(q.miniplayerEl,[N.minimizedEndpoint]);_.fZ(q,{playabilityStatus:y})};
UW.prototype.openToast=function(q,N){_.fZ(this,{toastData:{data:q,label:N}})};
_.fZ=function(q,N){(0,q.miniplayerPropSignalMap[1])(N)};
UW.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var q;return this.playerElement?this.playerElement:(q=_.ee(this.miniplayerEl).querySelector("#player-container"))==null?void 0:q.firstElementChild};
UW.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var t0K=function(q,N){N=N===void 0?!1:N;var b,y,J,E,F,R;return _.d(function(c){if(c.nextAddress==1){if(!q.pictureInPictureSupported()||!uWA()&&!N)return c.return(!1);b=w_x(q);y=b.width;J=b.height;return c.yield(q.pipController.openWindow({width:y,height:J}),2)}E=c.yieldResult;F=q.pipController.getWindow();if(!F||!E)return c.return(!1);F.document.body.style.overflow="hidden";R=cCd(F);seW(q.pipController,function(){iox(q);R()});
return c.return(!0)})},w_x=function(q){var N=_.sM().shortsPipActivation,b,y;
q=N?.5625:(y=(b=q.player)==null?void 0:b.getVideoAspectRatio())!=null?y:16/9;b=Math.min(window.innerWidth,window.innerHeight)/2;N=N?0:76;return q>1?new _.l3(b,N+b/q):new _.l3(b*q,N+b)},iox=function(q){var N;
_.d(function(b){N=_.tz().resolve(_.L6);return N.isOnWatch()&&q.watchPipMode||N.isOnShorts()&&q.shortsPipMode?b.yield(q.deactivate(),0):q.miniplayerToPipMode?b.yield(zrA(q),0):q.watchPipMode?b.yield(_.D8(q),0):b.jumpTo(0)})};
UW.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.$H.Object.defineProperties(UW.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
UW[ma]=[nLa,jsR,_.rh];var lya="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(" "),
K0p="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(" "),D6B="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
hra="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var k6f=function(q,N,b){_.UN.call(this);this.store=q;this.panelController=N;this.pageContentExtractor=b;this.isInitialized=!1};
_.Y(k6f,_.UN);
k6f.prototype.init=function(q){var N=this;this.isInitialized||(this.isInitialized=!0,this.environment=q!=null?q:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.U$.currentPageSubTypeSelector(this.store.getState()),q=_.aM(this.store,_.U$.currentPageSubTypeSelector,function(b){a:if(_.U6f(N))switch(b){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var y=!0;break a;default:y=!1}else y=!1;y&&N.panelController.hidePanel({identifier:"PAai_companion"});
N.pageSubtype!==b&&(N.pageSubtype=b)}),this.addOnDisposeCallback(q))};
_.bMp=function(q,N){if(_.U6f(q))switch(N){case "watch":var b,y;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(b=_.JO())==null?void 0:(y=b.getVideoData())==null?void 0:y.video_id};case "search":var J,E,F;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(E=(J=q.pageContentExtractor)==null?void 0:w1K(J))!=null?E:[],entityId:(F=(new URLSearchParams(window.location.search)).get("search_query"))!=null?F:void 0};case "companion-canvas":var R,c;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(c=(R=
q.pageContentExtractor)==null?void 0:w1K(R))!=null?c:[]};default:var z,m;q={videoIds:(m=(z=q.pageContentExtractor)==null?void 0:w1K(z))!=null?m:[]};return _.x("enable_ai_companion_default_page_context")?q:void 0}};
_.U6f=function(q){return q.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
k6f[ma]=[_.eU,_.M8,_.$f(i3d)];_.fyX=_.n(function(q){return _.u("yt-ai-companion-attachment-view-model",{el:_.ai(_.QR(function(){return q.data().rendererContext})),
class:_.NO("ytAiCompanionAttachmentViewModelHost",q.className)},_.u("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.u(_.t,{cond:function(){return q.data().title},
then:function(N){return _.u("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return N().content}},_.u(_.Zc,{text:N}))}}),_.u(_.t,{cond:function(){return _.ke(q.data().trailingTitleIcon)},
then:function(N){return _.u("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.u(_.s_,{data:N,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.u(_.t,{cond:function(){return q.data().description},
then:function(N){return _.u("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.u(_.Zc,{text:N}))}}),_.u(_.t,{cond:function(){return q.data().bottomItem},
then:function(N){return _.u("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.u(_.zS,{data:N},{tableViewModel:fEM}))}}))},"lh");_.C0B=_.n(function(q){return _.u("yt-channel-attribution-view-model",{class:_.NO("ytChannelAttributionViewModelHost",q.className)},_.u("div",{class:"ytChannelAttributionViewModelUpper"},_.u(_.zS,{data:function(){return q.data().avatar}},{decoratedAvatarViewModel:_.qw}),_.u("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.u(_.Zc,{text:function(){return q.data().title}}))),_.u("div",{class:"ytChannelAttributionViewModelBottom"},_.u(_.Zc,{text:function(){return q.data().subtitle}})))},"mh");var Iyf=_.n(function(q){var N=_.Z(_.QS(!1,void 0,"MFRKRb")),b=N.next().value,y=N.next().value,J=function(){return q.data().activeRenderer},E=function(){return q.data().inactiveRenderer};
return _.u("yt-channel-disclosure-view-model",{"on:mouseleave":_.y0(function(){y(!1)}),
"on:mouseover":_.y0(function(){y(!0)}),
class:_.NO("ytChannelDisclosureViewModelHost",q.className)},_.u(_.t,{cond:function(){return b()},
then:function(){return _.u(_.zS,{data:J},{channelAttributionViewModel:_.C0B})},
else:function(){return _.u(_.zS,{data:E},{decoratedAvatarViewModel:_.qw})}}))},"nh");var TLf=null;var spX={},nyf=(spX.initialized={priority:10,callback:function(q){var N=_.tz();N.addProvider({provide:l3E,useClass:a$N});N.addProvider({provide:_.nZA,useFactory:function(){return new KAv}});
N.addProvider({provide:dv,useValue:_.M7("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});N.addProvider({provide:cbd,useValue:5184E6});N.addProvider({provide:fkf,useValue:_.ja()});N.addProvider({provide:FRN,useClass:jbE});N.addProvider({provide:zk,useClass:zk});N.addProvider({provide:_.Bk,useFactory:function(){return opj.promise}});
N.addProvider({provide:_.eoq,useFactory:function(){return _.AJ4.promise}});
N.addProvider({provide:Can,useValue:function(){var c;return((c=_.Pk())==null?void 0:c.getPlayer())||null}});
var b={};N.addProvider((b.provide=_.Hu,b.useFactory=function(c,z){return function(){return cpC(c,z)}},b[ma]=[dv,
cbd],b));b={};N.addProvider((b.provide=_.KE,b.useClass=QAX,b[ma]=[dv,cbd],b));b={};N.addProvider((b.provide=_.ilZ,b.useClass=lzc,b[ma]=[_.KE],b));N.addProvider({provide:N5,useFactory:_.WT});N.addProvider({provide:BD,useFactory:_.WT});N.addProvider({provide:rXf,useFactory:_.WT});N.addProvider({provide:NEp,useFactory:_.WT});N.addProvider({provide:_.eU,useFactory:_.WT});N.addProvider({provide:C$,useValue:_.ZC});N.addProvider({provide:f$p,useClass:Pgn});N.addProvider({provide:KtB,useClass:lbK});N.addProvider({provide:TX,
useClass:TX});N.addProvider({provide:f5,useClass:f5});N.addProvider({provide:Da,useClass:Da});N.addProvider({provide:C5,useClass:C5});N.addProvider({provide:pX,useClass:pX});N.addProvider({provide:OK,useClass:OK});N.addProvider({provide:u4,useClass:u4});N.addProvider({provide:_.UP,useValue:ySA});b={};N.addProvider((b.provide=AbK,b.useFactory=function(c){return c.watchEndpointMap||{}},b[ma]=[_.UP],b));
b={};N.addProvider((b.provide=eta,b.useFactory=function(c){return c.reelWatchEndpointMap||{}},b[ma]=[_.UP],b));
N.addProvider({provide:_.S9,useFactory:_.FR});N.addProvider({provide:eW,useFactory:_.c3});b={};N.addProvider((b.provide=c_A,b.useFactory=function(c){return function(z){var m=m===void 0?{}:m;var r,X,V=(X=_.v((r=z.endpoint)==null?void 0:r.commandMetadata,_.gg))==null?void 0:X.rootVe;if(V){var G,w;if(r=z.previousCsn||((w=_.v((G=z.endpoint)==null?void 0:G.commandMetadata,Vsl))==null?void 0:w.parentCsn)){var D=D===void 0?{}:D;if(r!==_.Oe(D.layer)||V!==dCJ(D.layer))tQZ(r,D.cttAuthInfo,D.layer||0),FCe(r,
D.layer||0),G=D.layer||0,_.PC(RUZ(G===void 0?0:G),V);m.parentCsn=r}z.endpoint&&r?Si1(c,z.endpoint,m):_.DO(c,V,void 0,m);var k;((k=z.response)==null?0:k.trackingParams)&&c.graftServerVe(z.response.trackingParams);var f;((f=z.playerResponse)==null?0:f.trackingParams)&&c.graftServerVe(z.playerResponse.trackingParams);var L;((L=z.reelWatchSequenceResponse)==null?0:L.trackingParams)&&c.graftServerVe(z.reelWatchSequenceResponse.trackingParams)}}},b[ma]=[_.S9],b));
b={};N.addProvider((b.provide=Vxc,b.useClass=X1N,b[ma]=[C$,_.eU],b));b={};N.addProvider((b.provide=d4,b.useClass=d4,b[ma]=[_.Bk,_.eU],b));b={};N.addProvider((b.provide=g4,b.useClass=g4,b[ma]=[BD,_.rO],b));N.addProvider({provide:_.luW,useClass:SLC});b={};N.addProvider((b.provide=_.M8,b.useClass=hMN,b[ma]=[_.luW,_.$f(_.em)],b));N.addProvider({provide:_.ij,useClass:hta});b={};N.addProvider((b.provide=lj,b.useClass=lj,b[ma]=[_.ij,_.Bk,_.tN,_.rO],b));N.addProvider({provide:_.oQ,useClass:z3});N.addProvider({provide:_.whX,
useClass:GfX});N.addProvider({provide:_.AP,useClass:cn});_.x("enable_ai_companion")&&(N.addProvider({provide:_.em,useClass:fua}),N.addProvider({provide:_.Xrl,useClass:I14}),N.addProvider({provide:i3d,useClass:QeN}),N.addProvider({provide:AU,useClass:AU}),N.addProvider({provide:oj,useClass:oj}),N.addProvider({provide:jnx,useValue:Iyf}),N.addProvider({provide:_.xDR,useValue:_.fyX}));_.x("enable_ai_chat_controller")&&N.addProvider({provide:_.Mh,useClass:k6f});b={};N.addProvider((b.provide=_.Pm,b.useClass=
auX,b[ma]=[_.Pm],b));N.addProvider({provide:_.UQ,useClass:GwX});N.addProvider({provide:gv,useClass:gv});N.addProvider({provide:kW,useClass:kW});N.addProvider({provide:uS,useClass:uS});b={};N.addProvider((b.provide=WL,b.useClass=WL,b[ma]=[_.rO,_.tN],b));N.addProvider({provide:YW,useClass:uH});b={};N.addProvider((b.provide=wv,b.useClass=wv,b[ma]=[_.oQ,YW],b));b={};N.addProvider((b.provide=jW,b.useClass=jW,b[ma]=[_.oQ],b));b={};N.addProvider((b.provide=bS,b.useClass=bS,b[ma]=[N5,q5],b));N.addProvider({provide:q5,
useClass:JbB});_.x("web_enable_feedback_endpoint_resolver_batch_2")&&(b={},N.addProvider((b.provide=JF,b.useClass=JF,b[ma]=[N5],b)),b={},N.addProvider((b.provide=yJ,b.useClass=yJ,b[ma]=[q5],b)));b={};N.addProvider((b.provide=QJ,b.useClass=QJ,b[ma]=[_.AP,YW],b));b={};N.addProvider((b.provide=mZ,b.useClass=mZ,b[ma]=[_.AP],b));b={};N.addProvider((b.provide=Os,b.useClass=Os,b[ma]=[_.tN,_.M8],b));b={};N.addProvider((b.provide=GB,b.useClass=GB,b[ma]=[_.tN,_.S9],b));N.addProvider({provide:Jg,useClass:Jg});
b={};N.addProvider((b.provide=AF,b.useClass=AF,b[ma]=[N5],b));N.addProvider({provide:Xu,useClass:Xu});N.addProvider({provide:r9,useClass:r9});b={};N.addProvider((b.provide=jM,b.useClass=jM,b[ma]=[N5],b));b={};N.addProvider((b.provide=xb,b.useClass=xb,b[ma]=[_.tN,N5],b));b={};N.addProvider((b.provide=v9,b.useClass=v9,b[ma]=[N5],b));b={};N.addProvider((b.provide=G0,b.useClass=G0,b[ma]=[N5],b));b={};N.addProvider((b.provide=VJ,b.useClass=VJ,b[ma]=[_.M8],b));b={};N.addProvider((b.provide=Rb,b.useClass=
Rb,b[ma]=[_.S9],b));b={};N.addProvider((b.provide=tg,b.useClass=tg,b[ma]=[N4],b));b={};N.addProvider((b.provide=mq,b.useClass=mq,b[ma]=[N4],b));N.addProvider({provide:uj,useClass:uj});N.addProvider({provide:z0,useClass:z0});N.addProvider({provide:Fu,useClass:Fu});b={};N.addProvider((b.provide=iS,b.useClass=iS,b[ma]=[_.M8,_.rO],b));N.addProvider({provide:R2,useClass:R2});b={};N.addProvider((b.provide=xW,b.useClass=xW,b[ma]=[_.tN,_.M8],b));N.addProvider({provide:zB,useClass:zB});b={};N.addProvider((b.provide=
M5,b.useClass=M5,b[ma]=[N5,_.tN,_.Pm],b));b={};N.addProvider((b.provide=Lf,b.useClass=Lf,b[ma]=[_.tN,_.rO],b));N.addProvider({provide:$Dq,useValue:rHZ});N.addProvider({provide:v4T,useValue:H5n});N.addProvider({provide:pf,useClass:pf});b={};N.addProvider((b.provide=Wm,b.useClass=Wm,b[ma]=[N5],b));b={};N.addProvider((b.provide=o2,b.useClass=o2,b[ma]=[_.UQ,_.rO],b));b={};N.addProvider((b.provide=Es,b.useClass=Es,b[ma]=[_.rO],b));N.addProvider({provide:HL,useFactory:function(){return new HL(_.WT())}});
N.addProvider({provide:hGJ,useFactory:_.Uv.getInstance});b={};N.addProvider((b.provide=cm,b.useClass=cm,b[ma]=[dv,hGJ,_.rO],b));N.addProvider({provide:Za,useClass:Za});N.addProvider({provide:L$,useClass:L$});N.addProvider({provide:PL,useClass:PL});N.addProvider({provide:_.p$,useClass:_.p$});N.addProvider({provide:OP,useClass:OP});b={};N.addProvider((b.provide=TB,b.useClass=TB,b[ma]=[BD],b));b={};N.addProvider((b.provide=Kf,b.useClass=Kf,b[ma]=[_.rO],b));b={};N.addProvider((b.provide=ss,b.useClass=
ss,b[ma]=[_.rO],b));b={};N.addProvider((b.provide=nf,b.useClass=nf,b[ma]=[_.rO],b));_.x("web_enable_prefetching_videos_on_home")&&(N.addProvider({provide:EW,useClass:EW}),N.addProvider({provide:Qj,useClass:Qj}));b={};N.addProvider((b.provide=Qg,b.useClass=Qg,b[ma]=[_.rO],b));N.addProvider({provide:eo,useClass:eo});b={};N.addProvider((b.provide=EP,b.useClass=EP,b[ma]=[_.tN,_.rO],b));b={};N.addProvider((b.provide=BL,b.useClass=BL,b[ma]=[_.rO],b));b={};N.addProvider((b.provide=OW,b.useClass=OW,b[ma]=
[_.tN,_.rO],b));N.addProvider({provide:Ym,useClass:Ym});N.addProvider({provide:ff,useClass:ff});b={};N.addProvider((b.provide=Us,b.useClass=Us,b[ma]=[BD,_.rO],b));N.addProvider({provide:Cf,useClass:Cf});b={};N.addProvider((b.provide=Dr,b.useClass=Dr,b[ma]=[BD,_.rO,_.tN],b));b={};N.addProvider((b.provide=hg,b.useClass=hg,b[ma]=[_.rO],b));b={};N.addProvider((b.provide=K5,b.useClass=K5,b[ma]=[_.rO,_.tN],b));b={};N.addProvider((b.provide=yg,b.useClass=yg,b[ma]=[_.rO,_.tN],b));b={};N.addProvider((b.provide=
SW,b.useClass=SW,b[ma]=[_.Bk],b));b={};N.addProvider((b.provide=a2,b.useClass=a2,b[ma]=[_.Bk],b));b={};N.addProvider((b.provide=I2,b.useClass=I2,b[ma]=[_.Bk],b));N.addProvider({provide:q4,useClass:q4});N.addProvider({provide:bj,useClass:bj});N.addProvider({provide:Vg,useClass:Vg});N.addProvider({provide:g9,useClass:g9});N.addProvider({provide:Hm,useClass:Hm});N.addProvider({provide:$W,useClass:$W});N.addProvider({provide:Bm,useClass:Bm});_.x("kevlar_enable_mss_lazy_load")&&N.addProvider({provide:_.DQ,
useClass:vfU});N.addProvider({provide:_.Ib,useClass:t1});N.addProvider({provide:jO,useFactory:function(){return _.JD.getInstance()}});
N.addProvider({provide:txC,useFactory:GuA});N.addProvider({provide:N4,useFactory:function(){return _.oM.getInstance()}});
N.addProvider({provide:Ifj,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});b={};N.addProvider((b.provide=_.Z8,b.useClass=_.Z8,b[ma]=[_.Bk,_.rO,_.S9,txC,N4,jO,Ifj,C$],b));N.addProvider({provide:_.fE,useClass:bBT});N.addProvider({provide:_.ztB,useClass:uef});b={};N.addProvider((b.provide=tF,b.useClass=tF,b[ma]=[_.ztB],b));b={};N.addProvider((b.provide=_.FN,b.useFactory=function(c){return c.upliftCompletionResolver.promise},b[ma]=[Vxc],b));
b=_.ou("IS_SHELL_LOAD")?"aa":"eocs";var y=_.ou("IS_SHELL_LOAD")?3:2;_.dw().parkOrScheduleJob(function(){x0f()},y,b);
_.dw().parkOrScheduleJob(function(){_.tz().resolve(d4).start()},2,"eocs");
_.dw().parkOrScheduleJob(function(){m0x()},2,"eocs");
_.dw().parkOrScheduleJob(function(){_.tz().resolve(g4).start()},2,"eocs");
_.x("kevlar_debug_data_app_registration_ks")||dFh();N.addProvider({provide:_.$P,useValue:new h_B(q.root)});N.addProvider({provide:Nr,useValue:new dED});N.addProvider({provide:_.nBf,useValue:new TsU(q.root)});N.addProvider({provide:_.$8,useValue:new sxp});N.addProvider({provide:_.US,useClass:nE});N.addProvider({provide:nLa,useClass:$m});_.x("kevlar_network_sli_killswitch")||N.addProvider({provide:oZA,useValue:g1q});N.addProvider({provide:CcA,useFactory:OjZ});_.x("web_bind_fetch")&&(b={},N.addProvider((b.provide=
I$f,b.useFactory=wMd,b[ma]=[_.$f(CcA)],b)));_.x("web_bind_window_request")&&(b={},N.addProvider((b.provide=TVA,b.useFactory=ijJ,b[ma]=[_.$f(CcA)],b)));_.x("web_bind_text_decoder")&&(b={},N.addProvider((b.provide=suf,b.useFactory=lXA,b[ma]=[_.$f(CcA)],b)));b={};N.addProvider((b.provide=sWc,b.useFactory=FGn,b[ma]=[_.FN,N5,_.Hu],b));b={};N.addProvider((b.provide=Tzp,b.useClass=kb,b[ma]=[sWc],b));N.addProvider({provide:VGA,useClass:tGU});N.addProvider({provide:UYA,useClass:C3p});b=[].concat(_.a9(l8C));
_.x("web_continuation_response_processing")&&b.push(_.lR);b.push(qET);_.x("enable_share_panel_navigation_logging_fix_on_web")&&b.push(_.$To);N.addProvider({provide:iZn,useValue:b});N.addProvider({provide:fez,useClass:kbU});N.addProvider({provide:qVd,useClass:AVc});b={};N.addProvider((b.provide=Dpz,b.useClass=BsU,b[ma]=[BD],b));_.pY.addLowPriorityJob(function(){T$z()});
b={};N.addProvider((b.provide=j14,b.useFactory=function(c){return function(z){var m,r=(m=_.v(z.commandMetadata,_.gg))==null?void 0:m.url;if(!r)throw new _.IO("No URL for PBJ Command",z);r=WjA(r,{pbj:"1"});m=dcC(r,{})||{};m=Object.assign({},m,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.M7("STS").toString()});z=_.lv({command:JSON.stringify(z),session_token:_.M7("XSRF_TOKEN")});return c.fetch(r,{method:"POST",headers:m,body:z})}},b[ma]=[qVd],b));
N.addProvider({provide:pCc,useFactory:function(){var c={};return c.CSI=Dbh(),c.ECATCHER=KeJ(),c}});
N.addProvider({provide:YBe,useClass:Pcp});b=[];b.push(N.resolve(UYA));y={};y=(y.client_location=_.Uv.getInstance(),y.consistency=_.zhZ(),y.entities=N.resolve(KtB),y.response_received_commands=N.resolve(fez),y.store=N.resolve(_.ilZ),y.tokens=N.resolve(UYA),y.service_params=N.resolve(YBe),y);if(_.x("web_shorts_prefetch_service_enabled")){var J=new KWX(N.resolve(_.KE));y.shorts_prefetch=J}y.adblock_detection=N.resolve(Dpz);N.addProvider({provide:_.Jr,useClass:_.Jr});J=N.resolve(_.UP);var E=[];_.x("PremiumClientSharedConfig__enable_att_context_processor")&&
(N.addProvider({provide:$nc,useClass:cjB}),E.push(N.resolve($nc)));if(_.x("owl_pl_await")){var F={};N.addProvider((F.provide=l$X,F.useFactory=function(c){return new wCa(c)},F[ma]=[_.Jr],F));
E.push(N.resolve(l$X))}GXj(J,N.resolve(qVd),N.resolve(f$p),y,N.resolve(_.KE),b,E,N.resolve(Tzp),N.resolve(VGA));N.addProvider({provide:_.tN,useValue:_.f6.instance});_.x("start_client_gcf")&&N.addProvider({provide:T6,useValue:ZDJ()});N.addProvider({provide:G2W,useFactory:function(){return new G2W(_.tz().resolve(_.Jr),_.oM.getInstance())}});
_.dw().parkOrScheduleJob(function(){YLC()},1,"eocs");
b={};N.addProvider((b.provide=R8,b.useClass=R8,b[ma]=[_.Hu,_.tN],b));N.addProvider({provide:_.oLf,useFactory:_.G3.getInstance});_.dw().parkOrScheduleJob(function(){_.tz().resolve(R8).refresh()},0,"eocs");
N.addProvider({provide:_.rh,useClass:JWN});_.x("kevlar_signal_collection_killswitch")||(b={},N.addProvider((b.provide=Z3a,b.useClass=Z3a,b[ma]=[dv,eW],b)),_.dw().parkOrScheduleJob(function(){_.tz().resolve(Z3a).record()},1,"eocs"));
_.x("web_debug_handler_registration_killswitch")||_.dw().parkOrScheduleJob(function(){FDz("DOWNLOAD_PES",vvZ);_.x("offline_client_state_export_ks")||FDz("OFFLINE_CLIENT_STATE",Vrd)},0,"eocs");
_.x("kevlar_prevent_polymer_dynamic_font_load")&&_.dw().parkOrScheduleJob(function(){var c=[_.Xe(RVK),_.Xe(dgf)];c=_.Z(c);for(var z=c.next();!z.done;z=c.next()){z=z.value;var m=document.createElement("link");_.u$(m,z,"stylesheet");document.head.appendChild(m)}},1,"eocs");
b=q.injector.resolve(_.tN);_.zXA.instance=new _.zXA(b);e5J(Eid(new uwx(b)));b={};q.injector.addProvider((b.provide=tD,b.useFactory=function(c){(c=c==null?void 0:c.getCurrentPage())?c=c.visibilityObserver:(TLf||(TLf=$wh()),c=TLf);return c},b[ma]=[_.$f(_.L6)],b.skipCache=!0,b));
N.addProvider({provide:_.l9,useClass:UW});N.addProvider({provide:sb,useClass:uI1});q.injector.addProvider({provide:gbj,useValue:DBN});N.addProvider({provide:e$T,useValue:e_f});N.addProvider({provide:J6x,useValue:R5h});N.addProvider({provide:_.ft,useValue:Yze});q=N.addProvider;H3f||(H3f=new Bna);q.call(N,{provide:_.mE,useValue:H3f});N.addProvider({provide:_.Ii,useValue:_.M7("HTML_DIR")==="rtl"?"rtl":"ltr"});N.addProvider({provide:abK,useClass:H7C});N.addProvider({provide:_.No,useClass:r4});_.tz().addProvider({provide:Wtp,
useValue:_.x("enable_web_delhi_icons")?K0p.concat(hra):lya.concat(D6B)});N.addProvider({provide:_.Vj,useClass:_.Vj});N.addProvider({provide:_.gfd,useValue:new Eff});N.addProvider({provide:wdW,useClass:wxd});N.addProvider({provide:Zr,useClass:Zr});N.addProvider({provide:d9,useClass:d9});q={};N.addProvider((q.provide=lS,q.useClass=lS,q[ma]=[_.tN,_.M8],q));N.addProvider({provide:w9,useClass:w9});N.addProvider({provide:PBK,useClass:LRa});N.addProvider({provide:$b,useClass:$b});N.addProvider({provide:Zj1,
useValue:piR});N.addProvider({provide:_.XB,useClass:i7f});_.x("enable_payments_purchase_manager")&&N.addProvider({provide:XxU,useClass:tFB});N.addProvider({provide:ybf,useFactory:function(){return function(c){return _.Fax(c)}}});
N.addProvider({provide:_.lka,useClass:Ksc});q={};N.addProvider((q.provide=Yb,q.useClass=Yb,q[ma]=[_.lka],q));N.addProvider({provide:c9,useClass:c9});N.addProvider({provide:nDC,useValue:VvU});N.addProvider({provide:DDR,useValue:_.gZp});N.addProvider({provide:Q7D,useClass:WRB});N.addProvider({provide:qwU,useValue:RwN});q={};N.addProvider((q.provide=NVW,q.useClass=bIX,q[ma]=[qwU],q));q={};N.addProvider((q.provide=_.p8,q.useClass=ulf,q[ma]=[NVW],q));q={};N.addProvider((q.provide=_.xm,q.useClass=j4,q[ma]=
[_.eU,_.US],q));if(_.x("web_explore_hub_on_hover")||_.x("web_client_explore_hub_on_hover"))q={},N.addProvider((q.provide=F7,q.useClass=F7,q[ma]=[_.tN,jO],q));if(_.x("web_enable_renderer_logger")){var R=new WIu;NUn(function(){R.abort()});
N.addProvider({provide:U3C,useValue:new RMc(R.signal)})}N.addProvider({provide:F9j,useValue:hmd});N.addProvider({provide:m3J,useClass:DIW});_.x("web_use_flow_state_manager")&&(N.addProvider({provide:_.T$,useClass:Dnx}),q={},N.addProvider((q.provide=sH,q.useClass=sH,q[ma]=[_.T$,_.rO],q)))}},spX);var ayd={},S2c=(ayd.initialized={priority:10,callback:function(){if(!MIB){X$D();kLJ("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.QX(_.dg(kLJ,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.x("log_heartbeat_with_lifecycles")){var q={};tP.instance||(tP.instance=new tP);tP.instance.install((q.document_visible={callback:Ubd,priority:10},q.document_hidden={callback:Ubd,priority:10},q))}else _.u0(document,"visibilitychange",Ubd);MIB=!0}(q=_.Oe())&&q!=="UNDEFINED_CSN"&&gTJ(q)}},ayd);var W0W={},L0a=(W0W.initialized={callback:function(q){var N=_.bx(232091),b=q.injector.resolve(_.S9);_.hI(b,N);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?zGA()&&_.UM(b,N):(q=q.injector.resolve(ybf)("refresh_detector"))&&(q.get("first_tab_load")?_.UM(b,N):q.set("first_tab_load","1"))}},W0W);var p_p={},P0U=(p_p.initialized={priority:10,callback:xpJ},p_p);var M0W={},oyA=(M0W.initialized={priority:0,callback:function(){var q=new g51,N="other";_.Js?N="chrome":_.yW?N="firefox":_.B4?N="safari":cv&&(N="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(b){q.increment(_.UV(),b,N)}).catch(function(){q.increment(_.UV(),!1,N)}):q.increment(_.UV(),!1,N)}},M0W);var Arc={},erW=(Arc.rendering={priority:8,callback:vqC},Arc);var BLd={},HoK=(BLd.rendering={priority:10,callback:IeJ},BLd.rendered={callback:CyA},BLd),qXK={},NIC=(qXK.rendering={callback:IeJ},qXK.rendered={callback:CyA},qXK);var bQN=!1,yDU={},JDX=(yDU.initialized={priority:10,callback:function(){bQN||(S7h({didPatch:function(q){q.el&&pMn(q.el,q.props)},
didUnmount:function(q){WeR(q.el)}}),bQN=!0)}},yDU);var EFc=/^\/shorts\/?$/;_.PC("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:{}}}}}}});_.x("kevlar_use_common_module_manager_ks")?(_.ofd(new T_J),J3Z()):sFu();
(function(){var q=document.querySelector("ytd-app");if(!q)throw Error("Xj");q=new vn({root:q,injector:_.tz()});q.install(S2c);var N={};q.install((N.initialized={priority:10,callback:ElZ},N));_.x("wp_lat_b")&&(N={},q.install((N.initialized={priority:10,callback:function(){GLC()}},N)));
N={};q.install((N.rendered={priority:0,callback:buh},N));N={};q.install((N.rendered={priority:0,callback:function(){_.pY.addLowPriorityJob(function(){_.qpf>1&&(oxd(),qrJ())},4E4)}},N));
q.install(CvB);q.install(L0a);q.install(JDX);y_A();q.install(p4a);q.install(Kaa);q.install(Uga);q.install(qLf);q.install(ELA);q.install(Waf);q.install(nyf);_.x("kevlar_enable_mss_lazy_load")&&q.install(P0U);q.install(hVf);q.install(oyA);if(!_.ou("IS_SHELL_LOAD")||_.x("kevlar_fetch_initial_data_promise_client")||_.x("sw_nav_preload_pbj")){var b=_.wO(window.location.href);N=b&&b==="/watch";b=b&&b.match(EFc);N?q.install(NIC):b?q.install(erW):q.install(HoK)}else q.install(w4p);q.install(TOf);_.x("web_enable_prefetching_videos_on_home")&&
q.install(AzK);_.x("start_client_gcf")&&q.install(LTc);q.install(oNN);(new ZYl).increment("INSTALLED");q.install(MAx);q.install(YVK);q.transition("initialized");tqC();Fen()})();
_.bI=[[["a2luZCN3aDQyaWZ0YWthZm8=","IzVmejBuNHU1c21kanZhbHVl"],"Izh4MGhpOHR0d21xdUFEX1BMQUNFTUVOVF9LSU5EX1NUQVJU"]];_.NK=["NGdsb2JhbENhbGxiYWNrcyM4aXozNWh1OWh0MA==","ZXRlY3RlZCNjOW9mdm9vcXlnem9uQWJub3JtYWxpdHlE","em9uQWRTa2lwI3g3NjNiNjJvbWdw","cmVzcG9uc2Ujang4MzFwdGN3NWQxcmF3X3BsYXllcl8=","NW9sODlhZFNsb3RzIzVkN2VmdW8="];_.mN="NGdsb2JhbENhbGxiYWNrcyM4aXozNWh1OWh0MA== ZXRlY3RlZCNjOW9mdm9vcXlnem9uQWJub3JtYWxpdHlE em9uQWRTa2lwI3g3NjNiNjJvbWdw cmVzcG9uc2Ujang4MzFwdGN3NWQxcmF3X3BsYXllcl8= cXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjM2Q4NHQ2OGN0anRwd2ViX3BsYXlsaXN0Xw== MmFiX3NhX2VmI2dzeXd4dmxtcHFk NW9sODlhZFNsb3RzIzVkN2VmdW8=".split(" ");
_._ModuleManager_initialize=function(q,N){if(!_.aA){if(!_.SG)return;_.ofd(_.SG())}_.aA.setAllModuleInfoString(q,N)};
_._ModuleManager_initialize('kevlar_base_module/sy3/sy4/sy1:1,2/sy2/sy5:1,2/sy6/sy7/sy8/sy9/sya:3/syb/syc/kevlar_main_module:3,4,5,6,7,8,9/syd:1/sye:a,e/syf:f/syg/syh:6/syi/h8y2qb:5,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:2,9,h,j,n/syl:4,c,f,h,l,n/sym:p/nmfa2d:j,q/syn:7,p/syo:i,j,q,s/CF909:t/Tm0L3c:t/L3n37:g,i,j,s/NSzT5:b/iuT5Oc',['sy4','sy3','sy1','sy8','syd','sya','syk','syj','syg','sye','syc','sy2','syl','sy7','sy6','syn','sym','syi','syh','syb','syf','syo','sy9','sy5','iuT5Oc','NSzT5','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
var jCA,xrU;_.nZ=function(q){return!!q.getOptions("captions")};
_.V6p=function(q){return(q=q.getOption("captions","track"))?!!q.displayName:!1};
_.a8=function(q,N){_.V_(N,q,function(){return jCA[N]},function(b){jCA[N]=b;
if(!_.x("mweb_player_ve_show_ks")){var y=_.Oe(0);y&&b&&_.I5(y,b)}})};
_.S4=function(q){(q=jCA[q])&&_.UM(_.FR(),q)};
jCA={};var vFx;/*

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
*/
_.x9({_template:function(){if(vFx!==void 0)return vFx;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;xrU===void 0&&(xrU=document.createElement("template"));var y=xrU;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return vFx=q},
is:"tp-yt-paper-checkbox",behaviors:[_.F4o],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.ut(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var q=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),N="px",b=q.match(/[A-Za-z]+$/);b!==null&&(N=b[0]);q=parseFloat(q);b=8/3*q;N==="px"&&(b=Math.floor(b),b%2!==q%2&&b++);this.updateStyles({"--paper-checkbox-ink-size":b+
N})}})},
_computeCheckboxClass:function(q,N){var b="";q&&(b+="checked ");N&&(b+="invalid");return b},
_computeCheckmarkClass:function(q){return q?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.gC4._createRipple.call(this)}});var GhN=new _.yT("radioButtonSurveyOptionRenderer"),YXx=new _.yT("checkboxSurveyOptionRenderer");var QCN;var OQf;var wKC=0,Wn=function(){var q=_.C.call(this)||this;q.selected=!1;q.isOverlay=!1;q.inputId="toggle-option-"+wKC;wKC++;return q};
_.Y(Wn,_.C);Wn.prototype.onTap=function(){_.e2(this.hostElement,"ytd-toggle-option-clicked")};
_.p([_.U(),_.P("design:type",String)],Wn.prototype,"label",void 0);_.p([_.U(),_.P("design:type",String)],Wn.prototype,"inputId",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Wn.prototype,"selected",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Wn.prototype,"isOverlay",void 0);_.p([_.I({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.P("design:paramtypes",[])],Wn);
_.a(Wn,"ytd-toggle-option-renderer",function(){if(OQf!==void 0)return OQf;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return OQf=q},{mode:1});var LZ=function(){var q=_.C.apply(this,arguments)||this;q.isToggleOption=!1;q.isOverlay=!1;return q};
_.Y(LZ,_.C);LZ.prototype.onTap=function(q){q.preventDefault();this.data&&(q=!this.data.checked,this.set("data.checked",q),_.e2(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:q,value:this.data.value}))};
_.$H.Object.defineProperties(LZ.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
LZ.prototype.onTap=LZ.prototype.onTap;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],LZ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],LZ.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],LZ.prototype,"isToggleOption",void 0);_.p([_.U(),_.P("design:type",Object)],LZ.prototype,"isOverlay",void 0);_.p([_.l("data.responseText"),_.P("design:type",String),_.P("design:paramtypes",[])],LZ.prototype,"label",null);
_.p([_.ZP("ytd-toggle-option-clicked"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],LZ.prototype,"onTap",null);_.p([_.I({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],LZ);
_.a(LZ,"ytd-checkbox-survey-option-renderer",function(){if(QCN!==void 0)return QCN;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return QCN=q},{mode:1});var iQa;var lmX;var pZ=function(){var q=_.C.apply(this,arguments)||this;q.checked=!1;q.isToggleOption=!1;return q};
_.Y(pZ,_.C);pZ.prototype.onTap=function(){this.data&&(this.checked?_.By(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.By(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
pZ.prototype.onTap=pZ.prototype.onTap;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],pZ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],pZ.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],pZ.prototype,"checked",void 0);_.p([_.U(),_.P("design:type",Object)],pZ.prototype,"isToggleOption",void 0);_.p([_.ZP("ytd-toggle-option-clicked"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],pZ.prototype,"onTap",null);
_.p([_.I({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],pZ);
_.a(pZ,"ytd-radio-button-survey-option-renderer",function(){if(lmX!==void 0)return lmX;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return lmX=q},{mode:1});var Pn=function(){var q=_.C.apply(this,arguments)||this;q.disableAnimation=!1;q.isToggleOption=!0;q.followUpSurveyCommand=null;q.selectedRatingEndpoint=null;q.isSlimlineSurveyFollowUp=!1;q.isShortsStyle=!1;q.styleOverrideAttribute=!0;q.isDarkMode=!1;q.isSubmitted=!1;q.roundedContainer=!0;q.improveShortsResponseRate=_.x("web_improve_shorts_response_rate");q.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 q};
_.Y(Pn,_.C);_.g=Pn.prototype;
_.g.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"}}}}};
_.g.attached=function(){var q=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(b){var y;if((y=b[0])!=null&&y.isIntersecting){_.E_().reportShown(q.hostElement);var J;(J=q.intersectionObserver)==null||J.unobserve(q.hostElement)}},{rootMargin:"0px",
threshold:.6});var N;(N=this.intersectionObserver)==null||N.observe(this.hostElement)};
_.g.onDarkModeToggledAction=function(q){this.isDarkMode=q};
_.g.dataChanged=function(){var q;if(((q=this.data)==null?void 0:q.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var N;((N=this.data)==null?void 0:N.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var b,y,J,E;this.darkColorPalette=(b=this.data)==null?void 0:(y=b.inlineContent)==null?void 0:(J=y.compactVideoRenderer)==null?void 0:(E=J.thumbnail)==null?
void 0:E.darkColorPalette;var F,R,c,z;this.lightColorPalette=(F=this.data)==null?void 0:(R=F.inlineContent)==null?void 0:(c=R.compactVideoRenderer)==null?void 0:(z=c.thumbnail)==null?void 0:z.lightColorPalette;var m,r;if(((m=this.data)==null?0:(r=m.inlineContent)==null?0:r.compactVideoRenderer)&&this.isShortsStyle){var X,V,G,w;q=_.oi((X=this.data)==null?void 0:(V=X.inlineContent)==null?void 0:(G=V.compactVideoRenderer)==null?void 0:(w=G.thumbnail)==null?void 0:w.thumbnails);_.Jm(this.hostElement,
{"--yt-background-url":"url("+q+")"})}};
_.g.handleRequestCompletion=function(){this.hostElement.hidden&&_.e2(this.hostElement,"yt-dismissible-item-dismissed")};
_.g.onPopupClosed=function(q){var N;((N=q.detail)==null?void 0:N.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.By(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.g.handleInlineSurveyRatingSelect=function(q,N){var b=this;this.selectedRatingEndpoint=q;this.followUpSurveyCommand=N;this.expanded=!!q;this.getOptionRenderers().forEach(function(y,J){b.notifyPath("followUpSurveyCommand.followUpOptions."+J+".checkboxSurveyOptionRenderer.checked");b.set("followUpSurveyCommand.followUpOptions."+J+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),q=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.By(this.hostElement,"yt-reel-non-video-content-dismissal-command",[q]))};
_.g.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.By(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var q,N=(q=this.data)==null?void 0:q.dismissalEndpoint;N&&this.ytComponentBehavior.resolveCommand(N)}};
_.g.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.By(this.hostElement,"yt-close-popup-action"))};
_.g.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var q=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{q=this.getOptionRenderers().filter(function(y){return y.checked});
if(q.length===0)return;q=q.map(function(y){return y.responseEndpoint})}var N=[];
q.forEach(function(y,J){J!==0&&(y=_.v(y,_.YJ))&&y.feedbackToken&&N.push(y.feedbackToken)});
if(q=q[0]){var b={};N.length>0&&(b.extra_feedback_tokens=N);this.ytComponentBehavior.resolveCommand(q,{form:b})}}};
_.g.getOptionRenderers=function(){var q=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(N){q.isSingleSelect=!!_.v(N,GhN);return q.isSingleSelect?_.v(N,GhN):_.v(N,YXx)}):[]};
_.g.handleInlineSurveyOptionSelect=function(q){q=this.optionSelector.indexOf(q);q!==-1&&this.optionSelector.selectIndex(q)};
_.g.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.g.maybeGetBackgroundColor=function(q){return this.isDarkMode?q.section2Color:q.section3Color};
_.g.colorPaletteChanged=function(){var q=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;q=q&&this.maybeGetBackgroundColor(q);this.dismissibleEl.style.backgroundColor=!q||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.GM(q)};
_.$H.Object.defineProperties(Pn.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Pn.prototype.colorPaletteChanged=Pn.prototype.colorPaletteChanged;Pn.prototype.onPopupClosed=Pn.prototype.onPopupClosed;Pn.prototype.handleRequestCompletion=Pn.prototype.handleRequestCompletion;Pn.prototype.dataChanged=Pn.prototype.dataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Pn.prototype,"actionHandlerBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Pn.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],Pn.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.dq("#follow-up-survey-options"),_.P("design:type",Object)],Pn.prototype,"optionSelector",void 0);_.p([_.U(),_.P("design:type",Object)],Pn.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Object)],Pn.prototype,"disableAnimation",void 0);_.p([_.U(),_.P("design:type",Object)],Pn.prototype,"isToggleOption",void 0);_.p([_.U(),_.P("design:type",Object)],Pn.prototype,"followUpSurveyCommand",void 0);_.p([_.U(),_.P("design:type",Object)],Pn.prototype,"selectedRatingEndpoint",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Pn.prototype,"expanded",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Pn.prototype,"isSlimlineSurveyFollowUp",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Pn.prototype,"isShortsStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Pn.prototype,"styleOverrideAttribute",void 0);_.p([_.U(),_.P("design:type",Boolean)],Pn.prototype,"isSingleSelect",void 0);_.p([_.U(),_.P("design:type",Object)],Pn.prototype,"isDarkMode",void 0);
_.p([_.U(),_.P("design:type",Object)],Pn.prototype,"lightColorPalette",void 0);_.p([_.U(),_.P("design:type",Object)],Pn.prototype,"darkColorPalette",void 0);_.p([_.l("selectedRatingEndpoint","isShortsStyle"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Pn.prototype,"isOptionSelected",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Pn.prototype,"roundedContainer",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Pn.prototype,"improveShortsResponseRate",void 0);_.p([_.dq("#dismissible"),_.P("design:type",HTMLElement)],Pn.prototype,"dismissibleEl",void 0);_.p([_.dq("#dismiss-button yt-icon-button"),_.P("design:type",HTMLElement)],Pn.prototype,"dismissButtonEl",void 0);_.p([_.dq("#inline-survey-header yt-icon-button"),_.P("design:type",HTMLElement)],Pn.prototype,"inlineHeaderDismissButtonEl",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pn.prototype,"dataChanged",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pn.prototype,"handleRequestCompletion",null);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Pn.prototype,"onPopupClosed",null);
_.p([_.FY("darkColorPalette","lightColorPalette","isDarkMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pn.prototype,"colorPaletteChanged",null);_.p([_.I({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Pn);
_.a(Pn,"ytd-inline-survey-renderer",function(){if(iQa!==void 0)return iQa;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return iQa=q},{mode:1});var KnU=["en-CA","en","es-MX","fr-CA"];_.Drd=_.n(function(q){var N=_.Sl(q,{isOverlay:!1,isModern:!1}),b=N.captionIconType,y=N.onClick;q=N.ariaLabel;var J=N.ariaPressed,E=N.isOverlay,F=N.isModern;N=_.dI("button",function(z){_.a8(z,127299)});
var R=_.y0(function(z){_.S4(127299);y==null||y(z);return!1}),c={};
return _.u("ytm-closed-captioning-button",{class:_.NO("ytmClosedCaptioningButtonHost",(c.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return b()===-1&&E()},c.ytmClosedCaptioningButtonIconDisabled=function(){return b()===-1&&!E()},c))},_.u("button",{el:N,
class:"ytmClosedCaptioningButtonButton",title:q,"aria-label":q,"aria-pressed":J,"on:click":R},_.u(_.FQ,{icon:function(){var z="",m=F();var r=m?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";m=m?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var X=_.c3().get("hl");r=!X||KnU.includes(X)?r:m;m=b();switch(m){case -1:case 0:z=r;break;case 1:z=r+"_FILLED";break;default:_.ol(m)}return z}})))},"oh");
_.Drd.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.CZ=function(q,N,b,y,J){var E={};N&&(E[N]=b);y?E.errorType=y:J&&(E.errorReason=J);_.W_(q,E);_.Lo()};
_.I8=function(q){var N=_.dw();return _.l_R(N,q,1)};
_.x9({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 q=this.query;q&&(this.full||q[0]==="("||(q="("+q+")"),this._mq=window.matchMedia(q),this._add(),this.queryHandler(this._mq))},
queryHandler:function(q){this._setQueryMatches(q.matches)}});var u0U;var z3U;var $rx=function(){};
_.g=$rx.prototype;_.g.addOwnKeyBinding=function(){};
_.g.removeOwnKeyBindings=function(){};
_.g.keyboardEventMatchesKeys=function(){};
_.g._collectKeyBindings=function(){};
_.g._prepKeyBindings=function(){};
_.g._addKeyBinding=function(){};
_.g._resetKeyEventListeners=function(){};
_.g._listenKeyEventListeners=function(){};
_.g._unlistenKeyEventListeners=function(){};
_.g._onKeyBindingEvent=function(){};
_.g._triggerKeyHandler=function(){};
_.g._tapHandler=function(){};
_.g._focusChanged=function(){};
_.g._detectKeyboardFocus=function(){};
_.g._userActivate=function(){};
_.g._upHandler=function(){};
_.g._spaceKeyDownHandler=function(){};
_.g._spaceKeyUpHandler=function(){};
_.g._asyncClick=function(){};
_.g._pressedChanged=function(){};
_.g._ariaActiveAttributeChanged=function(){};
_.g._activeChanged=function(){};
_.g._controlStateChanged=function(){};
_.g._changedButtonState=function(){};
_.g._focusBlurHandler=function(){};
_.g._disabledChanged=function(){};
_.g._changedControlState=function(){};
_.g._downHandler=function(){};
_.g.ensureRipple=function(){};
_.g.getRipple=function(){};
_.g.hasRipple=function(){};
_.g._noinkChanged=function(){};
_.g._focusedChanged=function(){};
_.g._createRipple=function(){};
_.g.registered=function(){};
_.g._invalidChanged=function(){};
_.g.hasValidator=function(){};
_.g.validate=function(){};
_.g._getValidity=function(){};
_.g._requiredChanged=function(){};
_.g._valueChanged=function(){};
_.g._checkedChanged=function(){};
_.g._buttonStateChanged=function(){};
_.g._setPressed=function(){};
_.g._setPointerDown=function(){};
_.g._setReceivedFocusFromKeyboard=function(){};
_.g._setFocused=function(){};
$rx=_.x9({is:"tp-yt-paper-radio-button",_template:function(){if(z3U!==void 0)return z3U;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;u0U===void 0&&(u0U=document.createElement("template"));var y=u0U;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return z3U=q},
behaviors:[_.F4o],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(){_.ut(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var q=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),N=Math.floor(3*q);N%2!==q%2&&N++;this.updateStyles({"--paper-radio-button-ink-size":N+"px"})}})}});var t6f;var mrC;_.x9({_template:function(){if(mrC!==void 0)return mrC;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;t6f===void 0&&(t6f=document.createElement("template"));var y=t6f;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return mrC=q},
is:"tp-yt-paper-radio-group",behaviors:[_.NMj],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(q){var N=this._valueToItem(q);if(!N||!N.hasAttribute("disabled")){if(this.selected){N=this._valueToItem(this.selected);if(this.selected==q)if(this.allowEmptySelection)q="";else{N&&(N.checked=!0);return}N&&
(N.checked=!1)}_.Ck.select.apply(this,[q]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(q){this._focusPrevious();q.preventDefault();this._activateFocusedItem()},
_onDownKey:function(q){this._focusNext();q.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(q){_.qn4._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(q){_.qn4._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Ck._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.aV._resetTabindices.apply(this,arguments);this.items.forEach(function(q){q.removeAttribute("aria-selected")},this)}});var rDd;_.xP("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var T3=function(){return _.C.apply(this,arguments)||this};
_.Y(T3,_.C);_.g=T3.prototype;_.g.computeHasPrimaryIcon=function(q){return!(!q.icon&&!q.thumbnail)};
_.g.computeHasSecondary=function(q){return!(!q.secondaryIcon&&!q.secondaryNotificationText)};
_.g.computeHideSecondaryString=function(q){return!_.x("disable_hide_empty_secondary_string")&&!q.secondaryNotificationText};
_.g.computeCompactLinkStyle=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.g.computeHasFitHeight=function(q){return q==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.g.isActiveEndpoint=function(q){return(q=this.get("commandMetadata.webCommandMetadata.url",q))?_.wO(window.location.href)!=="/account_transfer_channel"&&_.wO(window.location.href)!=="/gaia_link"&&_.wO(window.location.href)!=="/channel_switcher"||q!=="/account"?_.wO(window.location.href)===q:!0:!1};
_.g.onTap=function(){var q;((q=this.data)==null?0:q.serviceEndpoint)&&_.qc(this.hostElement,[this.data.serviceEndpoint])};
T3.prototype.onTap=T3.prototype.onTap;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],T3.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.P("design:type",Boolean)],T3.prototype,"active",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.P("design:type",String)],T3.prototype,"compactLinkStyle",void 0);
_.p([_.U({computed:"computeIcon_(data.icon)"}),_.P("design:type",Object)],T3.prototype,"icon",void 0);_.p([_.U({computed:"computeIcon_(data.secondaryIcon)"}),_.P("design:type",Object)],T3.prototype,"secondaryIcon",void 0);_.p([_.U({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],T3.prototype,"hasSecondary",void 0);_.p([_.U({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],T3.prototype,"hideSecondaryString",void 0);
_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],T3.prototype,"onTap",null);_.p([_.I({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],T3);
_.a(T3,"ytd-compact-link-renderer",function(){if(rDd!==void 0)return rDd;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return rDd=q},{mode:1});var XKa;_.xP("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var sW=function(){var q=_.C.apply(this,arguments)||this;q.role="link";q.tabindex="0";q.actionMap=_.x("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 q};
_.Y(sW,_.C);_.g=sW.prototype;_.g.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.D4()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.g.getCurrentTheme=function(){return _.hN()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.D4()};
_.g.onThemeSelected=function(q,N){var b=q||N?q:_.K9(),y=(b&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!b&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.dye(_.wO(window.location.href));_.uG(0,165,q);_.uG(0,174,N);this.prefs.save();y&&_.By(this.hostElement,"yt-dark-mode-toggled-action",[b]);_.By(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.g.onTap=function(){this.data.serviceEndpoint&&_.qc(this.hostElement,[this.data.serviceEndpoint])};
_.g.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.g.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.g.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
sW.prototype.onTap=sW.prototype.onTap;sW.prototype.dataChanged=sW.prototype.dataChanged;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],sW.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.F6),_.P("design:type",Object)],sW.prototype,"paperItemBehaviors",void 0);_.p([_.U(),_.P("design:type",Object)],sW.prototype,"data",void 0);_.p([_.U({value:function(){return _.c3()}}),
_.P("design:type",_.gP)],sW.prototype,"prefs",void 0);_.p([_.U(),_.P("design:type",Object)],sW.prototype,"label",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],sW.prototype,"role",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],sW.prototype,"tabindex",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sW.prototype,"dataChanged",null);
_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sW.prototype,"onTap",null);_.p([_.I({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],sW);
_.oU()(sW,"ytd-toggle-theme-compact-link-renderer",function(){if(XKa===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);XKa=q}q=XKa;return q},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var h3C,khK,Urf,C_W,ImN,TIA,sCA,nFK,amp,SXf,ADf,A1,oFd,LnN,M6X,P_a,pKp,Wnf,e3p,BIC,HQf,q7c,e4,NdK,bAf,EHA,Hn,y9U,ba,Bn,qF,J9c,NF,gHU,ZAA,FHf,RTA,dLa,c9x,zTC,$Lf,tLB,mLa,r9K,XBf,VLx,jPf,xLU,vHc,Y7N,QPK,OAC,iAf,KHK,hTK,kjx,ULa,fpa,Ipf,TdC,sPa,nHB,apB,S7C,WHK,pBB,A9K,oHd,PtK,eTA,MLc,BdU,bxK,NyW,HAU,qeN,JM,y8f,EUK,gUp,ZxC,uvx,z0N,$Pp,t2A,mPa,r8U,XyX,V2B,j$B,vUW,GyU,Yea,Q$a,Oxc,wyA,ixp,lZa,h0d,FjC;
_.Ma=function(q){var N=new _.IO("Error accessing DB");return _.Viz().then(function(b){return new Promise(function(y,J){try{var E=b.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(q);E.onsuccess=function(){var F=E.result;y(F?F.value:null)};
E.onerror=function(){N.params={key:q,source:"onerror"};J(N)}}catch(F){N.params={key:q,
thrownError:String(F)},J(N)}})},function(){return null})};
h3C=function(q,N){return _.Ji(q.entities,"inlineExpansionEntity",N)};
khK=function(q,N){return _.Ji(q.entities,"flowStateEntity",N)};
Urf=function(q,N){if(q&&N){var b=_.cG();b().set(q,N);_.tSD(b())}};
_.fmB=function(q,N){if(q&&N){var b=_.cG();b().set(q,N);_.tSD(b())}};
C_W=function(q,N){return _.Ji(q.entities,"contextNoteUserRatingEntityPayload",N)};
ImN=function(q){return _.fC(q,function(N){return N.languageCode==="en"})};
TIA=function(q){var N=o8;if(_.V6p(q))q.setOption("captions","stickyLoading",{}),q.setOption("captions","track",{});else{var b=_.fC(_.ibn(q),function(y){return y.displayName===N});
q.setOption("captions","track",b)}};
sCA=function(q){if(!q)return 0;var N=q.getPresentingPlayerType(),b=q.getVideoData();return b&&b.isLive?(q=q.getProgressState(N),q.seekableEnd-q.seekableStart):q.getDuration(N)};
nFK=function(q,N){for(var b=_.Z(Object.keys(q)),y=b.next();!y.done;y=b.next())if(y=y.value,q[y]!==N[y])return!1;return!0};
amp=function(){return document.getElementById("player-control-overlay")};
SXf=function(q){q!==-1&&!_.x("player_controls_log_creation_killswitch")&&amp()&&(_.Q6("pcu_cs",q),_.Q6("pcu_ce"))};
ADf=function(q,N){var b=_.aU(q,{}),y=Wnf("top",N),J=Wnf("bottom",N),E=Wnf("left",N),F=Wnf("right",N);return _.ZU({top:function(){return A1(b().position,y)},
bottom:function(){return A1(b().position,J)},
left:function(){return A1(b().position,E)},
right:function(){return A1(b().position,F)},
position:function(){return A1(b().positionType,LnN)},
height:function(){return A1(b().height,e4)},
width:function(){return A1(b().width,e4)},
"min-width":function(){return A1(b().minWidth,e4)},
"min-height":function(){return A1(b().minHeight,e4)},
"max-width":function(){return A1(b().maxWidth,e4)},
"max-height":function(){return A1(b().maxHeight,e4)},
"aspect-ratio":function(){return A1(b().aspectRatio,String)},
"margin-top":function(){return A1(b().margin,y)},
"margin-bottom":function(){return A1(b().margin,J)},
"margin-left":function(){return A1(b().margin,E)},
"margin-right":function(){return A1(b().margin,F)},
"padding-top":function(){return A1(b().padding,y)},
"padding-bottom":function(){return A1(b().padding,J)},
"padding-left":function(){return A1(b().padding,E)},
"padding-right":function(){return A1(b().padding,F)},
"flex-direction":function(){return A1(b().flexDirection,pKp)},
"justify-content":function(){return A1(b().justifyContent,P_a)},
"align-items":function(){return A1(b().alignItems,M6X)},
"flex-grow":function(){return A1(b().flexGrow,String)},
"flex-shrink":function(){return A1(b().flexShrink,String)},
"flex-basis":function(){return A1(b().flexBasis,e4)},
"align-self":function(){return A1(b().alignSelf,M6X)},
"flex-wrap":function(){return A1(b().flexWrap,oFd)},
"align-content":function(){return A1(b().alignContent,M6X)}})};
A1=function(q,N){return q!==void 0?N(q):void 0};
oFd=function(q){switch(q){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
LnN=function(q){switch(q){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
M6X=function(q){switch(q){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"}};
P_a=function(q){switch(q){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"}};
pKp=function(q){switch(q){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"}};
Wnf=function(q,N){var b=N==="rtl";switch(q){case "top":var y=e3p;break;case "bottom":y=BIC;break;case "left":y=HQf;break;default:y=q7c}return function(J){return A1(y(J,b),e4)}};
e3p=function(q){var N=q.top;var b=q.vertical;q=q.all;var y;return(y=N!=null?N:b)!=null?y:q};
BIC=function(q){var N=q.bottom;var b=q.vertical;q=q.all;var y;return(y=N!=null?N:b)!=null?y:q};
HQf=function(q,N){var b=q.left;var y=q.end;var J=q.start;var E=q.horizontal;q=q.all;var F,R;return(R=(F=b!=null?b:N?y:J)!=null?F:E)!=null?R:q};
q7c=function(q,N){var b=q.right;var y=q.end;var J=q.start;var E=q.horizontal;q=q.all;var F,R;return(R=(F=b!=null?b:N?J:y)!=null?F:E)!=null?R:q};
e4=function(q){var N=q.value;switch(q.unit){case "YPC_DIMENSION_UNIT_POINT":return N+"px";case "YPC_DIMENSION_UNIT_FRACTION":return N+"%";default:return""+N}};
NdK=function(q){switch(q){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"}};
bAf=function(q){var N=q!=null?q:{};q=N.fontRole;var b=N.fontSize;N=N.fontWeight;if(q!==null&&b!==null)switch(q){case "YPC_FONT_ROLE_DISPLAY":switch(b){case "YPC_FONT_SIZE_L":return N==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return N==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return N==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return N==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(b){case "YPC_FONT_SIZE_L":return N==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return N==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return N===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return N==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(b){case "YPC_FONT_SIZE_XL":return N==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return N==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return N==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return N==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return N==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
EHA=function(q,N,b){function y(r){return Object.values(r).map(function(X){var V=X.productId;X=X.pricingOptionIndex;return Bn(J(V).pricingOptions,X).pricingOptionId})}
function J(r){return c().get(r)}
function E(r){r=y(r);b(r)}
function F(r,X){return Array.from(Hn(r.pricingOptions)).filter(function(V){V=_.Z(V);V.next();V=V.next().value;return qF(V.pricingGroupAttributes,X)}).map(function(V){return _.Z(V).next().value})}
var R=NF([q,N],function(r,X){var V=r==null?void 0:r.selectedPricingOptions;r={};var G=!0;if(V&&X.length)for(var w=_.Z(X),D=w.next();!D.done;D=w.next()){D=D.value;var k=y9U(D.pricingOptions,function(S){a:{S=S.pricingOptionId;for(var W=_.Z(V),M=W.next();!M.done;M=W.next())if(M.value===S){S=!0;break a}S=!1}return S});
if(k>=0){G=!1;var f=Bn(D.pricingOptions,k),L=void 0;r[D.groupId]={productId:D.productId,pricingOptionIndex:k,pricingGroupAttributes:(L=f)==null?void 0:L.pricingGroupAttributes}}}G&&X.length&&(G=Bn(X[0].pricingOptions,0),r[X[0].groupId]={productId:X[0].productId,pricingOptionIndex:0,pricingGroupAttributes:G==null?void 0:G.pricingGroupAttributes});return r}),c=NF([N],function(r){return new Map(r.map(function(X){return[X.productId,
X]}))}),z=NF([N],function(r){var X=new Map;
r=_.Z(r);for(var V=r.next();!V.done;V=r.next()){var G=V.value;V=G.groupId;var w=G.productId;G=_.Z(Hn(G.pricingOptions));for(var D=G.next();!D.done;D=G.next()){var k=_.Z(D.value);D=k.next().value;k=k.next().value;X.set(k.pricingOptionId,{groupId:V,productId:w,index:D,pricingOption:k,pricingGroupAttributes:k.pricingGroupAttributes})}}return X}),m=NF([N],function(r){var X=new Map;
r=_.Z(r);for(var V=r.next();!V.done;V=r.next()){var G=V.value;V=G.groupId;var w=G.productId,D=void 0;G=_.Z(Hn((D=G.pricingGroups)!=null?D:[]));for(D=G.next();!D.done;D=G.next()){var k=_.Z(D.value);D=k.next().value;k=k.next().value;X.set(k.pricingGroupId,{groupId:V,productId:w,index:D,pricingGroup:k,pricingGroupAttributes:k.pricingGroupAttributes})}}return X});
return{getProductById:J,isProductSelected:function(r){var X=J(r);if(!X)return!1;var V;return((V=R()[X.groupId])==null?void 0:V.productId)===r},
getSelectedPricingOptions:function(){return Object.values(R()).map(function(r){var X=r.productId;r=r.pricingOptionIndex;return Bn(J(X).pricingOptions,r)})},
getSelectedPricingGroupAttributesByGroupId:function(r){var X;return(r=(X=R()[r])==null?void 0:X.pricingGroupAttributes)?Array.from(r):void 0},
getSelectedProductByGroupId:function(r){var X;return(r=(X=R()[r])==null?void 0:X.productId)?J(r):void 0},
onProductSelected:function(r){var X=J(r);if(X){var V=R(),G;if(((G=V[X.groupId])==null?void 0:G.productId)!==r){var w=(G=(w=V[X.groupId])==null?void 0:w.productId)?J(G):void 0;var D;G=(D=V[X.groupId])==null?void 0:D.pricingGroupAttributes;var k;D=(k=V[X.groupId])==null?void 0:k.pricingOptionIndex;if(w&&D!==void 0)if(G){k=F(w,G).indexOf(D);if(k===-1)throw Error("Yj`"+D+"`"+w.productId);D=F(X,G);k=k<D.length?D[k]:D.length>0?D[0]:0}else k=D<ba(X.pricingOptions)?D:0;else k=0;ba(X.pricingOptions)<=k&&(k=
0);D=Bn(X.pricingOptions,k);var f;w={};E(Object.assign({},V,(w[X.groupId]={productId:r,pricingOptionIndex:k,pricingGroupAttributes:(f=D==null?void 0:D.pricingGroupAttributes)!=null?f:[]},w)))}}},
onPricingOptionSelected:function(r){var X=z().get(r);if(X){r=X.groupId;var V=X.productId;X=X.index;var G=R(),w,D;if(((w=G[r])==null?void 0:w.productId)!==V||((D=G[r])==null?void 0:D.pricingOptionIndex)!==X){var k,f;w={};E(Object.assign({},G,(w[r]={productId:V,pricingOptionIndex:X,pricingGroupAttributes:(f=(k=G[r])==null?void 0:k.pricingGroupAttributes)!=null?f:[]},w)))}}},
onPricingGroupSelected:function(r){var X=m().get(r);if(X){r=X.groupId;var V=X.productId,G=X.pricingGroup.pricingGroupAttributes,w=J(V);if(w){X=R();var D=X[r].pricingGroupAttributes,k;if(((k=X[r])==null?void 0:k.productId)!==V||!qF(J9c(D,ba(G)),G)){k=Array.from(G);for(G=ba(G);G<ba(D);G++){var f="",L=!1,S=Array.from(k);S.push(Bn(D,G));for(var W=_.Z(w.pricingGroups),M=W.next();!M.done;M=W.next())if(M=M.value,qF(M.pricingGroupAttributes,S)){k.push(Bn(D,G));L=!0;break}else f===""&&ba(M.pricingGroupAttributes)===
S.length&&qF(J9c(M.pricingGroupAttributes,k.length),k)&&(f=Bn(M.pricingGroupAttributes,G));L||k.push(f)}f=X[r].pricingOptionIndex;G=[];L=new Map;S=0;w=_.Z(Hn(w.pricingOptions));for(W=w.next();!W.done;W=w.next())M=_.Z(W.value),W=M.next().value,M=M.next().value,qF(M.pricingGroupAttributes,k)&&G.push(W),qF(M.pricingGroupAttributes,D)&&L.set(W,S++);G.length===0?D=0:(D=L.get(f),D=D!==void 0&&D<G.length?G[D]:G[0]);w={};E(Object.assign({},X,(w[r]={productId:V,pricingOptionIndex:D,pricingGroupAttributes:k},
w)))}}}},
onClearGroupSelected:function(r){var X=R();X[r]&&(X=Object.fromEntries(Object.entries(X).filter(function(V){return _.Z(V).next().value!==r})),E(X))}}};
Hn=function(q){return function b(){var y,J,E,F,R;return _.b9(b,function(c){switch(c.nextAddress){case 1:_.i$(c,2),y=0,J=_.Z(q),E=J.next();case 4:if(E.done){c.jumpTo(2);break}F=E.value;R=_.yD;return c.yield([y++,F],7);case 7:R(c.yieldResult);E=J.next();c.jumpTo(4);break;case 2:_.w0(c),_.l$(c,0)}})}()};
y9U=function(q,N){q=_.Z(Hn(q));for(var b=q.next();!b.done;b=q.next()){var y=_.Z(b.value);b=y.next().value;y=y.next().value;if(N(y))return b}return-1};
ba=function(q){var N=0;for(q=q[Symbol.iterator]();!q.next().done;)++N;return N};
Bn=function(q,N){q=_.Z(Hn(q));for(var b=q.next();!b.done;b=q.next()){var y=_.Z(b.value);b=y.next().value;y=y.next().value;if(b===N)return y}};
qF=function(q,N){if(!q&&!N)return!0;if(!q||!N)return!1;q=Array.from(q);N=Array.from(N);if(q.length!==N.length)return!1;for(var b=0;b<q.length;b++)if(q[b]!==N[b])return!1;return!0};
J9c=function(q,N){N=N===void 0?Infinity:N;var b=[];q=_.Z(Hn(q));for(var y=q.next();!y.done;y=q.next()){var J=_.Z(y.value);y=J.next().value;J=J.next().value;if(y>=N)break;y>=0&&b.push(J)}return b};
NF=function(q,N){var b,y;return function(){for(var J=q.map(function(F){return F()}),E=0;E<J.length;E++)if(!b||J[E]!==b[E]){b=J;
y=N.apply(null,_.a9(J));break}return y}};
gHU=function(q,N,b){var y=[];q=_.Z(q);for(var J=q.next();!J.done;J=q.next()){J=J.value;var E=void 0;((E=N)==null?0:E.length)&&!qF(J.pricingGroupAttributes,N)||y.push({pricingOption:J,isSelected:b.includes(J.pricingOptionId)})}return y};
ZAA=function(q,N){return _.Ji(q.entities,"pdpStateEntity",N)};
FHf=function(q){var N,b;return!!(q.productId&&q.groupId&&((N=q.pricingOptions)==null?0:N.length)&&q.pricingOptions.every(function(y){return y.pricingOptionId})&&((b=q.pricingGroups)==null||!b.length||Array.isArray(q.pricingGroups)&&q.pricingGroups.every(function(y){return y.pricingGroupId&&y.pricingGroupAttributes&&y.pricingGroupAttributes.length>0})))};
RTA=function(q,N,b){return EHA(q,NF([N],function(y){return y.filter(FHf)}),b)};
dLa=function(q,N){return N.length===0?[q]:[q.slice(0,N[0]),q.slice(N[0])].filter(function(b){return b.length>0})};
c9x=function(q){switch(q){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""}};
zTC=function(q,N,b,y){y=Object.assign({},y);_.x0(y,u4c,{selectedOptionId:q,primaryButtonOverride:b});_.sk().dispatch(_.$e("flowStateEntity",N,y))};
$Lf=function(q,N,b){!_.v(b,u4c)&&q.noPreselect&&N!==""&&q.defaultButtonOverride&&zTC("default",N,q.defaultButtonOverride,b)};
tLB=function(q){switch(q){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"}};
mLa=function(q){switch(q){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"}};
r9K=function(q,N){if(N)return"ytCardViewModelCardSelected";switch(q){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
XBf=function(q,N){N.includes(q)?N=N.filter(function(b){return b!==q}):N.push(q);
return[].concat(_.a9(N))};
VLx=function(q,N){return _.Ji(q.entities,"contextNoteFeedEntityPayload",N)};
jPf=function(q,N){switch(q){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return N==null?void 0:N.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return N==null?void 0:N.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return N==null?void 0:N.ratingNotHelpfulText}};
xLU=function(q,N,b){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:b||q.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:q.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:q.deleteDialogTitle}]},dialogMessages:[{runs:[{text:q.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:q.deleteActionText}]},command:{performCommentActionEndpoint:{action:N}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:q.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
vHc=function(q,N,b){var y;if(q&&((y=N())==null?0:y.includes(q))){var J;b((J=N())==null?void 0:J.filter(function(E){return E!==q}))}else b([].concat(_.a9(N()||[]),[q]))};
Y7N=function(q,N){if(q){var b=[];N=_.Z((N==null?void 0:N.checkboxes)||[]);for(var y=N.next();!y.done;y=N.next()){y=_.v(y.value,GjW);var J=void 0;((J=y)==null?0:J.value)&&q.includes(y.key||"")&&b.push(y.value)}return b}};
QPK=function(q){q.style.height="auto";q.style.height=q.scrollHeight+"px"};
OAC=function(q){return[q.syncStep,q.asyncStep].filter(function(N){return N!==void 0})};
iAf=function(q){var N,b,y;if(q=(N=q.structuredContextNoteFormSchema)==null?void 0:(b=N.fieldSchemas)==null?void 0:(y=b.noteBody)==null?void 0:y.validationSchema)for(N=_.Z(OAC(q)),b=N.next();!b.done;b=N.next()){b=b.value.rules;if(!b)break;b=_.Z(b);for(b=b.next();!b.done;b=b.next())return _.v(b.value,_.wBB)}};
KHK=function(q){if(q){q=_.Z(OAC(q));for(var N=q.next();!N.done;N=q.next()){N=N.value.rules;if(!N)break;N=_.Z(N);for(N=N.next();!N.done;N=N.next())return _.v(N.value,lpa)}}};
hTK=function(q){if(q){q=_.Z(OAC(q));for(var N=q.next();!N.done;N=q.next()){N=N.value.rules;if(!N)break;N=_.Z(N);for(N=N.next();!N.done;N=N.next())return _.v(N.value,DLc)}}};
kjx=function(q){q=/^https?:\/\//.test(q)?q:"http://"+q;try{var N=_.N0(q)}catch(b){return!1}if(N.toString()!==q)return!1;q=N.JSC$10113_domain_.split(".");return q.length>1&&q.every(function(b){return!!b})};
ULa=function(q,N,b,y){var J;y=(J=y.structuredContextNoteData)==null?void 0:J.createCommentEndpoint;if(J=_.v(y,_.ig1))return J.commentText=_.nD(q),J.videoPositionMention=N,J.sources=b,y};
fpa=function(q){return q==null?void 0:q.stringValue};
Ipf=function(q,N,b){q=q.map(function(y,J){return{listItemViewModel:{title:y.title,subtitle:y.subtitle,leadingImage:y.leadingImage,trailingImage:J===N?CtC:void 0,rendererContext:{commandContext:{onTap:y.onTap}}}}});
return Object.assign({},b&&{header:{panelHeaderViewModel:{title:b}}},{content:{listViewModel:{listItems:q}}})};
TdC=function(q,N){if(q&&N)switch(N){case "SELECTION_TYPE_BOOL":return q.boolValue;case "SELECTION_TYPE_INT":return q.intValue;case "SELECTION_TYPE_STRING":return q.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return q.privacyStatusValue}};
sPa=function(q){var N;q=(N=q.options)==null?void 0:N.findIndex(function(b){return b.isSelected});
return q===void 0?-1:q};
nHB=function(q,N,b){var y=function(){return q().label},J={},E=_.NO("ytDropdownViewModelLabel",(J.ytDropdownViewModelLabelError=N,J));
return _.u(_.t,{cond:function(){return q().label&&!(b()===-1&&q().label&&!q().placeholderText)},
then:function(){return _.u("div",{class:E},_.u(_.Zc,{text:y}))}})};
apB=function(q,N){var b={};b=_.NO("ytDropdownViewModelTitle",(b.ytDropdownViewModelTitlePlaceholder=function(){return N()===-1},b));
return _.u("div",{class:b},_.u(_.Zc,{text:function(){var y=q();var J=N();if(J===-1)y=y.placeholderText?y.placeholderText:y.label;else{var E,F;y=(E=y.options)==null?void 0:(F=E[J])==null?void 0:F.title}return y}}))};
S7C=function(q,N){var b=function(){return q().hint};
return _.u(_.rV,null,_.u(_.t,{cond:function(){return b()&&!N()},
then:function(){return _.u("div",{class:_.NO("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.u(_.Zc,{text:b,className:"ytDropdownViewModelSupportText"}))}}),_.u(_.t,{cond:N,
then:function(){return _.u("div",{id:"dropdown-view-model-error",role:"alert",class:_.NO("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.u(_.FQ,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.u(_.Zc,{text:N,className:"ytDropdownViewModelSupportText"}))}}))};
WHK=function(q,N){var b=_.tz().resolve(_.ztB);_.WC(function(){var y=q().id;y&&b!=null&&b.dropdownMap.set(y,N)})};
pBB=function(q){q=_.v(q.scheduleButton,LHp);q=_.v(q==null?void 0:q.primaryButton,_.FF);q=_.v(q==null?void 0:q.onTap,_.QI);var N,b,y=((b=_.v(q,_.y6))==null?void 0:b.commands)||[q];b=_.Z(y);for(q=b.next();!q.done&&!(N=_.v(q.value,_.OPE));q=b.next());var J;N=(J=N)==null?void 0:J.createBroadcastRequest;if(!N)throw Error("ek");return N};
A9K=function(q,N,b){b=b===void 0?{}:b;var y,J;return _.d(function(E){if(y=PtK(N))return E.return(y);(J=MLc(q,N,b))&&oHd(N,J);return E.return(J)})};
oHd=function(q,N){var b=eTA(q);b&&N.then(function(y){_.tz().resolve(_.KE).put(b,new _.Dv({innertubeResponse:y}))})};
PtK=function(q){if(q=eTA(q)){var N=_.tz().resolve(_.KE);if(N.has(q))return N.get(q).then(function(b){return b==null?void 0:_.PD(b)})}return null};
eTA=function(q){var N=_.v(q.endpoint,_.nx);if(N!=null&&N.videoId)return N={videoId:N.videoId},_.x("web_imp_player_mute_params")&&(N.mutedAtStart=q.startPlaybackInMutedState),_.se("inline_playback",N)};
MLc=function(q,N,b){q=_.IE(q,N.endpoint,BdU(N,b)).then(function(y){return y});
return Promise.resolve(q)};
BdU=function(q,N){N=_.x("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!q.startPlaybackInMutedState},N):Object.assign({},{vis:5,autonav:"1"},N);var b;N={contentPlaybackContext:_.HD(N,(b=_.v(q.endpoint.commandMetadata,_.gg))==null?void 0:b.url,window.location.href)};_.x("web_imp_player_mute_params")&&(N.overrideMutedAtStart=!q.startPlaybackInMutedState);return N};
bxK=function(q,N){var b=window.MutationObserver;b&&(y8=new b(function(y,J){y=_.Z(y);for(var E=y.next();!E.done;E=y.next()){E=E.value;var F;if(F=E.type==="childList"&&E.target)a:{F=q;E=HAU(E.target);F=HAU(F);for(var R=null,c=0;c<E.length;c++)if(F.includes(E[c])){if(c===0){F=!1;break a}R=E[c];break}R?(E=qeN(E,R),F=qeN(F,R),F=E<F):F=!1}if(F){N();J.disconnect();break}}}),(b=NyW())&&y8.observe(b,{childList:!0,
subtree:!0}))};
NyW=function(){var q=document.getElementsByTagName("ytd-rich-grid-renderer");if(q.length>0)return q[0];q=document.getElementsByTagName("ytd-section-list-renderer");return q.length>0?q[0]:null};
HAU=function(q){for(var N=[];q;)N.push(q),q=q.parentElement;return N};
qeN=function(q,N){var b=Array.from(N.children);N=q.indexOf(N);return N>0?b.indexOf(q[N-1]):-1};
JM=function(q,N,b){b=b===void 0?{}:b;return _.FE(q,b,N)};
y8f=function(q){switch(q){case "MUSIC":return!0;default:return!1}};
EUK=function(q){if(q=q==null?void 0:q.find(function(y){var J,E;return((J=_.v(y,J8C))==null?void 0:(E=J.inlinePlaybackBadgeData)==null?void 0:E.replicateAsTimestamp)===!0}))if(q=_.v(q,J8C),q==null?0:q.icon){var N,b;
if((q=(N=_.gbn(q.icon))==null?void 0:(b=N.clientResource)==null?void 0:b.imageName)&&y8f(q))return q}};
gUp=function(q){return q==null?void 0:q.filter(function(N){return N.premiereTrailerBadgeRenderer})};
ZxC=function(q){var N,b=q==null?void 0:(N=q.find(function(c){return c.thumbnailOverlayTimeStatusRenderer}))==null?void 0:N.thumbnailOverlayTimeStatusRenderer,y,J;
if((b==null?0:(y=b.icon)==null?0:y.iconType)&&y8f(b==null?void 0:(J=b.icon)==null?void 0:J.iconType)){var E;return{icon:b==null?void 0:(E=b.icon)==null?void 0:E.iconType}}var F;if(N=q==null?void 0:(F=q.find(function(c){return c.thumbnailOverlayBadgeViewModel}))==null?void 0:F.thumbnailOverlayBadgeViewModel)if(F=EUK(N.thumbnailBadges))return{icon:F};
var R;if(q=q==null?void 0:(R=q.find(function(c){return c.thumbnailBottomOverlayViewModel}))==null?void 0:R.thumbnailBottomOverlayViewModel)if(R=EUK(q.badges))return{icon:R};
return{}};
uvx=function(q,N){var b=new FjC(function(E){J(E)},N);
N=_.Z(_.QS(R0N(b),void 0,"D2uee"));var y=N.next().value,J=N.next().value;_.Sx(function(){Promise.resolve().then(function(){var E,F=(E=q())!=null?E:{};b.playerControlsData=F;b.lastSeenPlayerApi=_.N_d(F.playerApi);dPB(b)});
_.W1(function(){c8K(b)})},"xfRk8b");
return y};
z0N=function(q){return function(N){var b=q(),y={playerState:N};if(N===1){var J;(J=b.playerApi)==null||J.loadModule("captions")}if(N===0){var E;(E=b.playerApi)==null||E.unloadModule("captions")}N!==-1&&b.setState(y)}};
$Pp=function(q){return function(N){q().setState({playbackRate:N})}};
t2A=function(q){return function(N){var b=q(),y=b.playerApi,J=y==null?void 0:y.getVideoData(),E=(J==null?void 0:J.isLive)||!1;J=J==null?void 0:J.video_id;E={videoDuration:sCA(y||void 0),isLive:E,videoId:J};E.videoId!==b.videoId&&(E=Object.assign({},_.kxd(y),E));if(N==null?0:N.playertype)E.playerType=N.playertype;if(y){E.captionsAvailable=_.nZ(y);N=E;var F;J=(F=y.getStoryboardLevel(y.getNumberOfStoryboardLevels()-1))==null?void 0:F.intervalMs;N.storyboardInterval=J?J/1E3:void 0;E.captionsAvailable&&
(E.captionsEnabled=_.V6p(y))}E.volumeMuted=!(y==null||!y.isMuted());b.setState(E)}};
mPa=function(q){return function(N){var b=q(),y=b.playerApi;if(y){var J=y.getPresentingPlayerType();N={playedTime:N||0,percentLoaded:y.getVideoLoadedFraction(),playerType:J};b.playerState===0&&(N.playedTime=b.videoDuration);b.isLive&&(J=y.getProgressState(J),N.playedTime-=J.seekableStart,N.videoDuration=sCA(y));if(b.playerType===1)y=!1;else{var E;if((E=b.uxConfig)==null?0:E.showCuedOverlay){var F;y=!((F=b.playerApi)==null?0:F.getPlayerStateObject(b.playerType).isDomPaused)}else y=!0}y&&delete N.playedTime;
b.setState(N)}}};
r8U=function(q){return function(){var N=q(),b,y,J,E={volume:(J=(b=N.playerApi)==null?void 0:b.getVolume())!=null?J:0,volumeMuted:!((y=N.playerApi)==null||!y.isMuted())};N.setState(E)}};
XyX=function(q){return function(){var N=q(),b=N.playerApi;if(b){var y={captionsAvailable:_.nZ(b)};y.captionsAvailable&&(y.captionsEnabled=_.V6p(b));N.setState(y)}}};
V2B=function(q){return{appApi:Object.assign({},_.OnC(),{showCaptionsToggleToast:function(N){var b,y;(y=(b=q()).showCaptionsToggleToast)==null||y.call(b,N)},
openInMiniplayer:function(){var N,b;(b=(N=q()).openInMiniplayer)==null||b.call(N)}})}};
j$B=function(q,N){var b,y,J;return!!(q==null?0:(b=q.playerResponse)==null?0:(y=b.playerConfig)==null?0:(J=y.inlinePlaybackConfig)==null?0:J.showScrubbingControls)&&!(N==null?0:N.hideScrubbingControls)};
_.xPa=function(q){var N=!q.miniplayerIsActive;return[5,2,0].includes(q.miniplayerPlaybackState)||N};
vUW={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};GyU=function(q){this.onStepChangeCallback=function(){};
this.flowRenderer=q};
GyU.prototype.getCurrentStep=function(){var q=this,N;return((N=this.flowRenderer.steps)!=null?N:[]).map(function(b){return _.v(b,_.SD)}).find(function(b){return b&&b.stepId===q.currentStepId})};
Yea=function(q,N){var b=N.flowStateEntityKey,y=q.flowStates.get(b);if(y)return y;N=new GyU(N);q.flowStates.set(b,N);return N};
Q$a=function(q,N){for(var b=_.Z(q.flowStates.entries()),y=b.next();!y.done;y=b.next()){var J=_.Z(y.value);y=J.next().value;J=J.next().value;if(J.flowRenderer.targetId===N){q.flowStates.delete(y);break}}};
Oxc=function(q,N){q.onStepChangeCallback=N;q.onStepChangeCallback(q.getCurrentStep())};
wyA=function(q,N){var b=q.getCurrentStep();if(!b||b.stepId!==N){var y;((y=q.flowRenderer.steps)!=null?y:[]).map(function(J){return _.v(J,_.SD)}).find(function(J){return J&&J.stepId===N})&&(q.currentStepId=N,q.onStepChangeCallback(q.getCurrentStep()))}};
ixp=function(q,N){var b,y,J,E,F;_.d(function(R){if(!N.length)return R.return([]);b=[];y=_.Z(N);for(J=y.next();!J.done;J=y.next())E=J.value,(F=q.resolveIcon(E))&&!q.iconCache[F.url]&&b.push(_.tIU(q,F).then(function(){}).catch(function(){}));
return R.return(Promise.all(b))})};
lZa=function(q,N){var b=[];N=(new Set(N)).values();N=_.Z(N);for(var y=N.next();!y.done;y=N.next()){y=y.value;for(var J=_.Z(Object.values(vUW)),E=J.next();!E.done;E=J.next())b.push({iconName:y,iconStyle:E.value})}ixp(q.iconManager,b)};
_.KjN=function(q,N,b){var y=b!=null?b:q.iconsToFetch;y!=null&&y.length?N!==void 0&&N>=0?_.Ip(_.pY,function(){lZa(q,y)},N):lZa(q,y):Promise.resolve()};
_.DPW=_.uX(function(q,N,b){if(q.nextWireType_!==5)return!1;_.ze(N,b,_.Ds(q.decoder_));return!0},function(q,N,b){N=_.xvn(N);
N!=null&&(_.$B(q,b,5),_.m7(q.encoder_,N))},_.ZUx);
h0d=[0,_.CL,_.DPW,-1];_.kyX=function(){return _.B3({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
FjC=function(q,N){var b=UPd,y=this;this.renderFn=q;this.listeners=b;this.context=N;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var J;this.lastSeenPlayerApi=_.N_d((J=this.playerControlsData)==null?void 0:J.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.kxd(),void 0);_.x("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){R0N(y).setState({playerState:-1});y.resetRecentlyNavigatedJobId&&_.pY.cancelJob(y.resetRecentlyNavigatedJobId);
y.recentlyNavigated=!0;y.resetRecentlyNavigatedJobId=_.pY.addJob(function(){y.recentlyNavigated=!1},8,1E4)})};
FjC.prototype.setState=function(q){if(!_.x("mweb_player_skip_no_op_state_changes")||!nFK(q,this.state))if(this.state=Object.assign({},this.state,q),!_.x("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)q=-1,_.x("player_controls_log_creation_killswitch")||amp()||(q=(0,_.mA)()),_.Q6("pcu_s"),_.Q6("pcu_se"),_.Q6("pcu_rs"),this.renderFn(R0N(this)),_.Q6("pcu_re"),SXf(q),_.pY.addJob(function(){_.Q6("pcu_ap")},8)};
var R0N=function(q){var N;var b=_.N_d((N=q.playerControlsData)==null?void 0:N.playerApi);return Object.assign({},q.state,{setState:q.boundSetState,domMeasurements:{progressBarLineRect:q.progressBarLineRect},playerApi:b,appApi:q.context.appApi,playerContainer:q.context.playerContainer,playerControlContainer:q.context.playerControlContainer,uxConfig:q.context.uxConfig})},dPB=function(q){q.listeners.forEach(function(N){q.eventListenerCleanupFunctions.push(N.register(function(){return R0N(q)},function(){return q.getData()}))})},
c8K=function(q){q.eventListenerCleanupFunctions.forEach(function(N){N()});
q.eventListenerCleanupFunctions.length=0};
FjC.prototype.getData=function(){return this.playerControlsData};var fZc=[0,_.Bc,_.sn,_.Bc,-1,_.sn,[0,_.nL,_.LL,-1],_.Bc,-1];var CEx=[0,[1,2,3],_.Pc,-2];var IZc=[0,_.Bc];var Tyf=new _.yT("crowdsourcedContextUserRatingFormFlowState");var s$a=new _.yT("noteViewModel");var Eg=new _.yT("abuseReportFlowState");var nUf=new _.yT("feedbackFormFlowState");var aZB=new _.yT("inputBoxViewModel");_.wBB=new _.yT("lengthValidationRule");var lpa=new _.yT("regexValidationRule");var DLc=new _.yT("selectedValidationRule");var SeW=[0,_.LL,_.Bc,_.bU];var Wjd=[0,_.sn,-2,h0d];var LjX=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(LjX,_.Rx);LjX.prototype.getFeature=function(){return _.xs(this,6)};
LjX.prototype.hasFeature=function(){return _.Ya(_.R6(this,6))!=null};var pyU=[0,_.LL];var PEU=_.xB(LjX,[0,_.sn,-2,h0d,_.sn,_.LL,-1,_.Ta,-1,_.LL,-3,_.OU1,_.nL,Wjd,_.LL,-1,fZc,_.Ta,_.LL,SeW,[0,[0,_.LL,-2,2,_.LL,-1,[0,_.LL],[0,_.Bc,_.LL],[0,_.Bc],[0,_.LL],2,[0,_.Bc,2,[0,_.Bc,-1],[0,_.Md,CEx],1,[0,IZc],1,[0,_.LL]],[0,_.nL],[0,[1,2],_.o6,[0,_.LL],_.o6,[0,_.LL,_.e5,-1]],[0,_.Bc],[0,_.LL,[0,[1,2,3,4],_.o6,[0,[0,_.LL],pyU],_.o6,[0,[0,_.LL],pyU],_.o6,[0,pyU],_.o6,[0,[0,_.LL],pyU]]],[0,_.LL],1,[0,_.LL,_.Bc],1,[0,_.LL],[0,_.nL],[0,_.LL,_.Bc,-1,[0,_.LL,-4]],[0,_.LL],[0,_.LL,-2],1,[0,_.LL],[0,
_.nL],[0,_.nL,_.LL],1,[0,_.nL],[0]],_.LL,_.Bc,_.CL,1,_.As,_.LL,_.Bc],_.sn,_.As,_.Bc,-1,_.sn]);var M2K=new _.yT("talkToRecsViewModel");var oUC=new _.yT("creatorGoalSetUpFlowDropdownItemViewModel");var A8X=new _.yT("creatorGoalSetUpFlowDropdownViewModel");var J8C=new _.yT("thumbnailBadgeViewModel");var e0f=new _.yT("checkboxGroupViewModel");var GjW=new _.yT("checkboxItemViewModel");_.gr=new _.yT("radioButtonGroupViewModel");var Bya=new _.yT("radioButtonItemViewModel");var LHp=new _.yT("panelFooterViewModel");var Hxp=new _.yT("ypcCancelRecurrenceCommand");var qYK=new _.yT("cancellationFlowState");var u4c=new _.yT("premiumPurchaseFlowState");var Ngf=new _.yT("surveyAnswerCardRenderer");var brx=new _.yT("showMoreButtonRenderer");var yea;var JeW,EoN=function(){if(JeW!==void 0)return JeW;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;yea===void 0&&(yea=document.createElement("template"));var y=yea;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return JeW=q};var ZS=function(){var q=_.C.apply(this,arguments)||this;q.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";q.goalDescription="";q.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";q.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";q.startButtonId="start-button";q.exampleButtonId="example-button";return q};
_.Y(ZS,_.C);_.g=ZS.prototype;_.g.getGoalDropdownItems=function(){var q,N;return(N=_.v((q=this.data)==null?void 0:q.purchaseTargetDropdown,A8X))==null?void 0:N.dropdownItems};
_.g.getTimerDropdownItems=function(){var q,N;return(N=_.v((q=this.data)==null?void 0:q.timerDropdown,A8X))==null?void 0:N.dropdownItems};
_.g.getColorDropdownItems=function(){var q,N;return(N=_.v((q=this.data)==null?void 0:q.colorDropdown,A8X))==null?void 0:N.dropdownItems};
_.g.getDropdownItemText=function(q){var N;return(N=_.v(q,oUC))==null?void 0:N.itemLabel};
_.g.getDropdownItemValue=function(q){q=_.v(q,oUC);return(q==null?void 0:q.timeLimit)||(q==null?void 0:q.purchaseTarget)||(q==null?void 0:q.eligiblePurchaseType)};
_.g.updateFlowState=function(q){_.By(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:q}])};
_.g.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.g.updateGoalValue=function(q){this.goal=q.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.g.onTextValueChanged=function(q){this.goalDescription=q.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.g.updateTimerValue=function(q){this.timer=q.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.g.updateTierValue=function(q){this.tier=q.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.g.getButtonViewModel=function(q){q=(q==null?void 0:q.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var N,b=_.v((N=this.data)==null?void 0:N.startGoalButton,_.FF);return Object.assign({},b,{state:q})};
_.$H.Object.defineProperties(ZS,{template:{configurable:!0,enumerable:!0,get:function(){return EoN()}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ZS.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],ZS.prototype,"goal",void 0);_.p([_.U(),_.P("design:type",Object)],ZS.prototype,"goalDescription",void 0);_.p([_.U(),_.P("design:type",Object)],ZS.prototype,"timer",void 0);_.p([_.U(),_.P("design:type",Object)],ZS.prototype,"tier",void 0);
_.p([_.U(),_.P("design:type",Object)],ZS.prototype,"startButtonId",void 0);_.p([_.U(),_.P("design:type",Object)],ZS.prototype,"exampleButtonId",void 0);_.p([_.Ok({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],ZS);_.a(ZS,"yt-creator-goal-set-up-flow-view-model",function(){return EoN()},{mode:0});var goA;var ZrK;var FOU;var R2f=function(){return _.C.apply(this,arguments)||this};
_.Y(R2f,_.C);_.p([_.U(),_.P("design:type",Object)],R2f.prototype,"data",void 0);_.p([_.Ok({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],R2f);
_.a(R2f,"yt-survey-answer-card-renderer",function(){if(FOU===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;ZrK===void 0&&(ZrK=document.createElement("template"));var y=ZrK;b.call(N,y.content.cloneNode(!0),q.content.firstChild);FOU=q}q=FOU;return q},{mode:2});var dcU;var cec;var Fb=function(){return _.C.apply(this,arguments)||this};
_.Y(Fb,_.C);_.g=Fb.prototype;_.g.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.g.selectedItemChanged=function(q){_.By(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[q.feedbackToken||""]}])};
_.g.surveyAnswerCardRendererClicked=function(q){if(q.target&&_.v(q.model.item,Ngf)){var N=q.target;q=_.v(q.model.item,Ngf);q.onTapCommand?_.Nc(N,[q.onTapCommand],N):this.data.onTapCommand&&_.Nc(N,[this.data.onTapCommand],N);this.selectedItemChanged(q)}};
_.g.checkIsCancellationStyle=function(q){return q==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.g.updateSelectedItemFromBinding=function(q){this.selectedItem=q.detail.value};
Fb.prototype.onSelectedItemChanged=Fb.prototype.onSelectedItemChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Fb.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Fb.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Fb.prototype,"selectedItem",void 0);_.p([_.U({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Fb.prototype,"isCancellationStyle",void 0);
_.p([_.FY("selectedItem"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Fb.prototype,"onSelectedItemChanged",null);_.p([_.Ok({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],Fb);
_.a(Fb,"yt-survey-flow-step-renderer",function(){if(cec===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;dcU===void 0&&(dcU=document.createElement("template"));var y=dcU;b.call(N,y.content.cloneNode(!0),q.content.firstChild);cec=q}q=cec;return q},{mode:2});var R7=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return q};
_.Y(R7,_.C);R7.prototype.handleSurveyFlowStepOptionChanged=function(q){this.ytdReduxBehavior.dispatch(_.B3({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:q}));_.By(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:q}}])};
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],R7.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],R7.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],R7.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],R7);
_.a(R7,"ytd-survey-flow-step-renderer",function(){if(goA!==void 0)return goA;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return goA=q},{mode:1});_.tgA=_.n(function(q){var N=q.data;var b=q.hideDivider;var y=q.isChannelInfoCard;q={};return _.u("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.u("div",{class:_.NO("yt-profile-identity-info-view-model__frame",(q["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!N().channelBanner},q))},_.u(uEf,{profileIdentityInfoData:N}),_.u("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.u("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.u(_.zS,{data:function(){return N().avatar}},{avatarViewModel:_.HF})),_.u(z2x,{profileIdentityInfoData:N})),_.u(_.t,{cond:function(){return N().channelDescription},
then:function(J){var E={};return _.u("div",{class:_.NO((E["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(y==null||!y())},E["yt-profile-identity-info-view-model__channel-description"]=function(){return!(y==null?0:y())},E))},J)}}),_.u($cB,{profileIdentityInfoData:N}),_.u(_.t,{cond:function(){return!(b==null?0:b())},
then:function(){return _.u("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"ph");
_.tgA.idomCompat=!0;var $cB=_.n(function(q){var N=q.profileIdentityInfoData;return _.u("div",{class:"yt-profile-identity-info-view-model__buttons"},_.u(_.Tf,{each:function(){return N().subscribeButton?[N().subscribeButton,N().channelAccess]:[N().channelAccess]}},function(b){return _.u("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.u("div",{class:"yt-profile-identity-info-view-model--button"},_.u(_.zS,{data:function(){return b}},{buttonViewModel:_.Ou,
subscribeButtonViewModel:_.HX})))}))},"qh"),z2x=_.n(function(q){var N=q.profileIdentityInfoData;
return _.u("div",{class:"yt-profile-identity-info-view-model__trio"},_.u("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.u(mcp,{profileIdentityInfoData:N}),_.u(_.zS,{data:function(){return N().threeDotMenu}},{buttonViewModel:_.Ou})),_.u(reK,{profileIdentityInfoData:N}))},"rh"),mcp=_.n(function(q){var N=q.profileIdentityInfoData;
return _.u("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.u("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return N().channelDisplayName}),_.u(_.t,{cond:function(){return N().verifiedOrOacBadge},
then:function(b){return _.u("div",{class:"yt-profile-identity-info-view-model__badge"},_.u(_.s_,{data:function(){return{thumbnails:[{url:b().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"sh"),uEf=_.n(function(q){var N=q.profileIdentityInfoData;
return _.u("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.u(_.zS,{data:function(){var b=N().channelBanner;if(b)return{imageBannerViewModel:{image:b.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(b){return _.u("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.u(_.z_,{data:b.data,
isPositionRelative:!0}))}}))},"th"),reK=_.n(function(q){var N=q.profileIdentityInfoData;
return _.u("div",{class:"yt-profile-identity-info-view-model__metadata"},_.u("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.u("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return N().channelHandle}),_.u(_.t,{cond:function(){return N().channelPronouns&&N().channelHandle},
then:function(){return _.u("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.u("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return N().channelPronouns})),_.u("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.u("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return N().leftOfBulletInfo}),_.u(_.t,{cond:function(){return N().leftOfBulletInfo&&N().rightOfBulletInfo},
then:function(){return _.u("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.u("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return N().rightOfBulletInfo})))},"uh");var X3K;var dr=function(){return _.C.apply(this,arguments)||this};
_.Y(dr,_.C);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],dr.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],dr.prototype,"data",void 0);_.p([_.I({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],dr);
_.a(dr,"ytd-channel-history-renderer",function(){if(X3K!==void 0)return X3K;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return X3K=q},{mode:1});var VgN;var j5N=function(){return _.C.apply(this,arguments)||this};
_.Y(j5N,_.C);_.p([_.U(),_.P("design:type",Object)],j5N.prototype,"data",void 0);_.p([_.I({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],j5N);
_.a(j5N,"ytd-feature-enablement-info-renderer",function(){if(VgN!==void 0)return VgN;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return VgN=q},{mode:1});var xcc;var voC;var cS=function(){var q=_.C.apply(this,arguments)||this;q.textBoxMaxLength=_.x("enable_tvod_campaign_code_integration")?15:12;return q};
_.Y(cS,_.C);_.g=cS.prototype;_.g.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.g.onSubmit=function(){var q=this.data.serviceEndpoint,N=_.v(q,_.s$);N&&q&&(N.couponCode=this.userInput,_.tz().resolve(_.rO).resolveCommand(q,{form:{element:this.hostElement}}))};
_.g.validate=function(){var q=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=q&&!this.data.errorMessage;this.showErrorMessage=q&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.x("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.g.computeStyle=function(q){return q};
_.g.computeShowValidationBelowInput=function(q){return q!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.g.updateUserInputFromBinding=function(q){this.userInput=q.currentTarget.value};
_.g.updateShowErrorMessageFromBinding=function(q){this.showErrorMessage=q.detail.value};
_.$H.Object.defineProperties(cS.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
cS.prototype.dataChanged=cS.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],cS.prototype,"data",void 0);_.p([_.U(),_.P("design:type",String)],cS.prototype,"userInput",void 0);_.p([_.U(),_.P("design:type",Boolean)],cS.prototype,"disableApplyButton",void 0);_.p([_.U(),_.P("design:type",Boolean)],cS.prototype,"hideApplyButton",void 0);
_.p([_.U(),_.P("design:type",Boolean)],cS.prototype,"hideErrorMessage",void 0);_.p([_.U(),_.P("design:type",Boolean)],cS.prototype,"showTick",void 0);_.p([_.U(),_.P("design:type",Boolean)],cS.prototype,"showErrorMessage",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],cS.prototype,"couponStyle",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.P("design:type",Boolean)],cS.prototype,"showValidationBelowInput",void 0);_.p([_.U(),_.P("design:type",Object)],cS.prototype,"textBoxMaxLength",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cS.prototype,"dataChanged",null);
_.p([_.l("showTick","showErrorMessage","userInput"),_.P("design:type",String),_.P("design:paramtypes",[])],cS.prototype,"validationState",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],cS);
_.a(cS,"ytd-ypc-coupon-renderer",function(){if(voC!==void 0)return voC;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return voC=q},{mode:1});var ua=function(){return _.C.apply(this,arguments)||this};
_.Y(ua,_.C);ua.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"}}}};
ua.prototype.computeStyle=function(q){return q};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ua.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ua.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ua.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],ua.prototype,"buttonStyle",void 0);_.p([_.I({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],ua);
_.a(ua,"ytd-flow-bottom-bar-renderer",function(){if(xcc!==void 0)return xcc;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return xcc=q},{mode:1});var GrW;var YYp;var Q5p;var zZ=function(){return _.C.apply(this,arguments)||this};
_.Y(zZ,_.C);zZ.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
zZ.prototype.focus=function(q){this.title&&_.Zy(this.title,q)};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],zZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],zZ.prototype,"data",void 0);_.p([_.dq("#title"),_.P("design:type",HTMLElement)],zZ.prototype,"title",void 0);_.p([_.I({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],zZ);
_.a(zZ,"ytd-flow-top-bar-renderer",function(){if(Q5p!==void 0)return Q5p;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Q5p=q},{mode:1});var OrB;var w3N;var irX;var $d=function(){return _.C.apply(this,arguments)||this};
_.Y($d,_.C);$d.prototype.freeTextValueChanged=function(){_.By(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
$d.prototype.updateFreeTextValueFromBinding=function(q){this.freeTextValue=q.detail.value};
_.$H.Object.defineProperties($d.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var q,N,b=(N=(q=this.data)==null?void 0:q.responseMaxLength)!=null?N:500,y;return((y=this.freeTextValue)!=null?y:"").length>=b?"maxed-out":""}}});
$d.prototype.freeTextValueChanged=$d.prototype.freeTextValueChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],$d.prototype,"data",void 0);_.p([_.U(),_.P("design:type",String)],$d.prototype,"freeTextValue",void 0);_.p([_.dq("#user-input"),_.P("design:type",HTMLTextAreaElement)],$d.prototype,"input",void 0);
_.p([_.l("freeTextValue"),_.P("design:type",Object),_.P("design:paramtypes",[])],$d.prototype,"characterLimitClass",null);_.p([_.FY("freeTextValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$d.prototype,"freeTextValueChanged",null);_.p([_.Ok({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],$d);
_.a($d,"yt-free-text-input-flow-step-renderer",function(){if(irX===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;w3N===void 0&&(w3N=document.createElement("template"));var y=w3N;b.call(N,y.content.cloneNode(!0),q.content.firstChild);irX=q}q=irX;return q},{mode:2});var tM=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return q};
_.Y(tM,_.C);tM.prototype.handleFreeTextFlowStepInputChanged=function(q){_.By(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:q}}])};
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],tM.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],tM.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],tM.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],tM);
_.a(tM,"ytd-free-text-input-flow-step-renderer",function(){if(OrB!==void 0)return OrB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return OrB=q},{mode:1});var lid;var KOd;var DcW=function(){return _.C.apply(this,arguments)||this};
_.Y(DcW,_.C);_.p([_.U(),_.P("design:type",Object)],DcW.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],DcW);
_.a(DcW,"ytd-metadata-line-renderer",function(){if(KOd!==void 0)return KOd;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return KOd=q},{mode:1});var mD=function(){return _.C.apply(this,arguments)||this};
_.Y(mD,_.C);mD.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],mD.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],mD.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],mD.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],mD.prototype,"isMasthead",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],mD);
_.a(mD,"ytd-media-product-renderer",function(){if(lid!==void 0)return lid;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return lid=q},{mode:1});var h2K;var rr=function(){return _.C.apply(this,arguments)||this};
_.Y(rr,_.C);rr.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
rr.prototype.onBillboardImageLoaded=function(){_.e2(this.hostElement,"yt-refit")};
rr.prototype.onBillboardImageLoaded=rr.prototype.onBillboardImageLoaded;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],rr.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],rr.prototype,"data",void 0);_.p([_.dq("#billboardImage"),_.P("design:type",Object)],rr.prototype,"billboardImage",void 0);_.p([_.ZP("yt-img-shadow-loaded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rr.prototype,"onBillboardImageLoaded",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],rr);
_.a(rr,"ytd-billboard-masthead-renderer",function(){if(h2K!==void 0)return h2K;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return h2K=q},{mode:1});var krd;var Xb=function(){var q=_.C.apply(this,arguments)||this;q.smallSize=!1;return q};
_.Y(Xb,_.C);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Xb.prototype,"ytComponentBehaviorType",void 0);_.p([_.U(),_.P("design:type",Object)],Xb.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Xb.prototype,"smallSize",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Xb);
_.a(Xb,"ytd-bullet-formatted-string",function(){if(krd!==void 0)return krd;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return krd=q},{mode:1});var Uca;var V8=function(){return _.C.apply(this,arguments)||this};
_.Y(V8,_.C);V8.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],V8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],V8.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],V8);
_.a(V8,"ytd-offer-detail-renderer",function(){if(Uca!==void 0)return Uca;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Uca=q},{mode:1});var fiB;var j8=function(){return _.C.apply(this,arguments)||this};
_.Y(j8,_.C);j8.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"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],j8.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],j8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],j8.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],j8);
_.a(j8,"ytd-offer-detail-step-renderer",function(){if(fiB!==void 0)return fiB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return fiB=q},{mode:1});var CGc;var xd=function(){var q=_.C.apply(this,arguments)||this;q.isInOfferModule=!1;return q};
_.Y(xd,_.C);_.g=xd.prototype;_.g.computeHasEndpoint=function(){var q;return!((q=this.data)==null||!q.onClickCommand)};
_.g.dataChanged=function(){var q;if((q=this.data)==null?0:q.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")};
_.g.detached=function(){var q;if((q=this.data)==null?0:q.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.g.handleClickEvent=function(){var q;if((q=this.data)==null?0:q.onClickCommand){var N;this.componentBehavior.resolveCommand((N=this.data)==null?void 0:N.onClickCommand)}};
_.g.onContentKeyDown=function(q){q.key==="Enter"?this.handleClickEvent(q):q.key===" "&&q.preventDefault()};
_.g.onContentKeyUp=function(q){q.key===" "&&this.handleClickEvent(q)};
xd.prototype.dataChanged=xd.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],xd.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],xd.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],xd.prototype,"data",void 0);_.p([_.U({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],xd.prototype,"hasEndpoint",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],xd.prototype,"isInOfferModule",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xd.prototype,"dataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],xd);
_.a(xd,"ytd-channel-masthead-renderer",function(){if(CGc!==void 0)return CGc;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return CGc=q},{mode:1});var Iic;var vS=function(){var q=_.C.apply(this,arguments)||this;q.thumbnailObjectFit="CONTAIN";q.thumbnailObjectPosition="LEFT";q.isExpanded=!1;return q};
_.Y(vS,_.C);_.g=vS.prototype;_.g.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.g.dataChanged=function(){this.resetStates()};
_.g.computeisTapOnOfferInfoContainerEnabled=function(){var q;return((q=this.data)==null?void 0:q.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.g.onExpandBtnClick=function(){var q,N=_.v((q=this.data)==null?void 0:q.showMoreButtonRenderer,brx);N&&_.fm(_.FR(),N.trackingParams);this.isExpanded=!this.isExpanded};
_.g.onOfferInfoClick=function(q){this.isTapOnOfferInfoContainerEnabled&&(_.Su(_.n9(q)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.Wk(_.n9(q)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.g.onBottomBarClick=function(){this.executeTapCommand()};
_.g.executeTapCommand=function(){var q,N=(q=this.data)==null?void 0:q.tapCommand;N&&this.ytComponentBehavior.resolveCommand(N)};
_.g.resetStates=function(){this.isExpanded=!1};
_.$H.Object.defineProperties(vS.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var q=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),N,b,y;return((N=this.data)==null?void 0:N.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&q&&!!((b=this.data)==null?0:(y=b.benefits)==null?0:y.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return((N=_.v((q=this.data)==null?void 0:q.showMoreButtonRenderer,brx))==null?void 0:N.showMoreButtonTitle)||((b=this.data)==null?void 0:b.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return((N=_.v((q=this.data)==null?void 0:q.showMoreButtonRenderer,brx))==null?void 0:N.showLessButtonTitle)||((b=this.data)==null?void 0:b.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var q;return(q=this.showLessButtonTitle)!=null?q:""}var N;return(N=this.showMoreButtonTitle)!=null?N:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return((q=this.data)==null?void 0:q.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((N=this.data)==null?0:N.footerTitle)||((b=this.data)==null?0:b.footerSubtitle))}}});
vS.prototype.dataChanged=vS.prototype.dataChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],vS.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],vS.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",String)],vS.prototype,"thumbnailObjectFit",void 0);
_.p([_.U(),_.P("design:type",String)],vS.prototype,"thumbnailObjectPosition",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.P("design:type",Boolean)],vS.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.p([_.U(),_.P("design:type",Object)],vS.prototype,"isExpanded",void 0);_.p([_.U(),_.P("design:type",Object)],vS.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.footerIcon)"}),_.P("design:type",String)],vS.prototype,"icon",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vS.prototype,"dataChanged",null);_.p([_.l("data.thumbnail"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vS.prototype,"hasThumbnail",null);_.p([_.l("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vS.prototype,"enableExpandButton",null);
_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vS.prototype,"enableOfferContentIcon",null);_.p([_.l("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.P("design:type",Object),_.P("design:paramtypes",[])],vS.prototype,"showMoreButtonTitle",null);_.p([_.l("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.P("design:type",Object),_.P("design:paramtypes",[])],vS.prototype,"showLessButtonTitle",null);
_.p([_.l("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.P("design:type",String),_.P("design:paramtypes",[])],vS.prototype,"expandedBtnText",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vS.prototype,"enableBottomBar",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],vS);
_.a(vS,"ytd-offer-card-renderer",function(){if(Iic!==void 0)return Iic;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Iic=q},{mode:1});var Tga;var GZ=function(){return _.C.apply(this,arguments)||this};
_.Y(GZ,_.C);GZ.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"}}}};
GZ.prototype.onClick=function(q){if(!_.Su(q.composedPath()||[],this.hostElement,["A".toString()])){var N,b;if((q=(b=_.v((N=this.data)==null?void 0:N.actionButton,_.JI))==null?void 0:b.command)&&!this.ytComponentBehavior.resolveCommand(q)){var y;(y=_.FR())==null||y.clickCommand(q);_.tz().resolve(_.rO).resolveCommand(q,{form:{element:this.hostElement}})}}};
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],GZ.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],GZ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],GZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],GZ.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],GZ);
_.a(GZ,"ytd-offer-content-renderer",function(){if(Tga!==void 0)return Tga;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Tga=q},{mode:1});var s5X;var Yd=function(){return _.C.apply(this,arguments)||this};
_.Y(Yd,_.C);Yd.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.$H.Object.defineProperties(Yd.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var q,N;return!((q=this.data)==null||!q.title)||!((N=this.data)==null||!N.description)}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Yd.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Yd.prototype,"data",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Yd.prototype,"hasHeaderData",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Yd);
_.a(Yd,"ytd-offer-section-renderer",function(){if(s5X!==void 0)return s5X;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return s5X=q},{mode:1});var nop;var Q8=function(){return _.C.apply(this,arguments)||this};
_.Y(Q8,_.C);
Q8.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"}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Q8.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Q8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Q8.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Q8);
_.a(Q8,"ytd-offer-selection-step-renderer",function(){if(nop!==void 0)return nop;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return nop=q},{mode:1});var aix;var Og=function(){return _.C.apply(this,arguments)||this};
_.Y(Og,_.C);Og.prototype.computeStyle=function(q){return q};
Og.prototype.computeImageWidth=function(q){return q==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.p([_.U({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.P("design:type",String)],Og.prototype,"containerStyle",void 0);_.p([_.U({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.P("design:type",String)],Og.prototype,"imageWidth",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Og.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Og.prototype,"data",void 0);
_.p([_.I({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Og);
_.a(Og,"ytd-confirmation-masthead-renderer",function(){if(aix!==void 0)return aix;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return aix=q},{mode:1});var SYf;var wr=function(){return _.C.apply(this,arguments)||this};
_.Y(wr,_.C);wr.prototype.computeStyle=function(q){return q};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],wr.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.P("design:type",String)],wr.prototype,"containerStyle",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],wr);
_.a(wr,"ytd-purchase-complete-detail-renderer",function(){if(SYf!==void 0)return SYf;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return SYf=q},{mode:1});var WOx;var ia=function(){var q=_.C.apply(this,arguments)||this;q.scriptsAppended=!1;return q};
_.Y(ia,_.C);ia.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"}}}};
ia.prototype.onDataChanged=function(){var q=this.get("data.gtmId");q&&(_.az(q,_.M7("GL","")),this.setupConversionTracking())};
ia.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var q=document.createElement("noscript");q.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(q);this.scriptsAppended=!0}};
ia.prototype.onDataChanged=ia.prototype.onDataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ia.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ia.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ia.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],ia.prototype,"scriptsAppended",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ia.prototype,"onDataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],ia);
_.a(ia,"ytd-purchase-complete-step-renderer",function(){if(WOx!==void 0)return WOx;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return WOx=q},{mode:1});var LOX;var la=function(){return _.C.apply(this,arguments)||this};
_.Y(la,_.C);la.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],la.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],la.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],la);
_.a(la,"ytd-ypc-transaction-error-message-renderer",function(){if(LOX!==void 0)return LOX;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return LOX=q},{mode:1});var p3x;var PGB;var Kh=function(){var q=_.C.apply(this,arguments)||this;q.handlePhoneVerificationSuccess=function(N){if(q.isValidPhoneVerificationCompletionMessageEvent(N)){var b;((b=q.data)==null?0:b.nextStepCommand)&&q.ytComponentBehavior.resolveCommand(q.data.nextStepCommand)}};
return q};
_.Y(Kh,_.C);Kh.prototype.isValidPhoneVerificationCompletionMessageEvent=function(q){if(q.data!=="yt-phone-verification-complete")return!1;q=_.dO(q.origin);return q!==null&&q.includes("youtube.com")};
Kh.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Kh.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Kh.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Kh.prototype,"data",void 0);_.p([_.Ok({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Kh);
_.a(Kh,"yt-feature-enablement-soft-entry-renderer",function(){if(PGB===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;p3x===void 0&&(p3x=document.createElement("template"));var y=p3x;b.call(N,y.content.cloneNode(!0),q.content.firstChild);PGB=q}q=PGB;return q},{mode:1});var Mgx;var ooB;var AeU;var e2B;var Bgp=function(){return _.C.apply(this,arguments)||this};
_.Y(Bgp,_.C);_.p([_.U(),_.P("design:type",Object)],Bgp.prototype,"data",void 0);_.p([_.Ok({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],Bgp);
_.a(Bgp,"yt-benefits-item-renderer",function(){if(e2B===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;AeU===void 0&&(AeU=document.createElement("template"));var y=AeU;b.call(N,y.content.cloneNode(!0),q.content.firstChild);e2B=q}q=e2B;return q},{mode:2});var HrC;var qRp;var DS=function(){return _.C.apply(this,arguments)||this};
_.Y(DS,_.C);DS.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
DS.prototype.computeisWithoutPadding=function(){var q;return((q=this.data)==null?void 0:q.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],DS.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],DS.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.P("design:type",Boolean)],DS.prototype,"isWithoutPadding",void 0);_.p([_.Ok({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],DS);
_.a(DS,"yt-benefits-section-renderer",function(){if(qRp===void 0){var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;HrC===void 0&&(HrC=document.createElement("template"));var y=HrC;b.call(N,y.content.cloneNode(!0),q.content.firstChild);qRp=q}q=qRp;return q},{mode:2});var hM=function(){return _.C.apply(this,arguments)||this};
_.Y(hM,_.C);hM.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
hM.prototype.computeisUsingLargeWidth=function(){var q;return((q=this.data)==null?void 0:q.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],hM.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],hM.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.P("design:type",Boolean)],hM.prototype,"isUsingLargeWidth",void 0);_.p([_.Ok({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],hM);
_.a(hM,"yt-benefits-flow-step-renderer",function(){if(ooB===void 0){var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;Mgx===void 0&&(Mgx=document.createElement("template"));var y=Mgx;b.call(N,y.content.cloneNode(!0),q.content.firstChild);ooB=q}q=ooB;return q},{mode:2});var N3f;var bDf;var kd=function(){return _.C.apply(this,arguments)||this};
_.Y(kd,_.C);kd.prototype.checkIsUsingLargeWidth=function(){var q;return((q=this.data)==null?void 0:q.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.p([_.U(),_.P("design:type",Object)],kd.prototype,"data",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],kd.prototype,"ytRendererBehavior",void 0);_.p([_.U({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.P("design:type",Boolean)],kd.prototype,"isUsingLargeWidth",void 0);_.p([_.Ok({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],kd);
_.a(kd,"yt-confirmation-flow-step-renderer",function(){if(bDf===void 0){var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;N3f===void 0&&(N3f=document.createElement("template"));var y=N3f;b.call(N,y.content.cloneNode(!0),q.content.firstChild);bDf=q}q=bDf;return q},{mode:2});var yiU;var Jid;var ERK=function(){return _.C.apply(this,arguments)||this};
_.Y(ERK,_.C);_.p([_.U(),_.P("design:type",Object)],ERK.prototype,"data",void 0);_.p([_.Ok({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],ERK);
_.a(ERK,"yt-info-flow-step-renderer",function(){if(Jid===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;yiU===void 0&&(yiU=document.createElement("template"));var y=yiU;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Jid=q}q=Jid;return q},{mode:2});var gRc;var ZDx;var F5a=function(){return _.C.apply(this,arguments)||this};
_.Y(F5a,_.C);_.p([_.U(),_.P("design:type",Object)],F5a.prototype,"data",void 0);_.p([_.Ok({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],F5a);
_.a(F5a,"yt-info-list-flow-step-renderer",function(){if(ZDx===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;gRc===void 0&&(gRc=document.createElement("template"));var y=gRc;b.call(N,y.content.cloneNode(!0),q.content.firstChild);ZDx=q}q=ZDx;return q},{mode:2});var RSf=_.n(function(q){var N=q.data;return _.u("styled-text-view-model",{class:_.NO("ytStyledTextViewModelHost",function(){return bAf(N().fontAttributes)},function(){return NdK(N().color)})},_.u(_.Zc,{text:function(){return N().text},
ariaLabel:function(){var b,y,J;return(J=(b=N().accessibility)==null?void 0:(y=b.accessibilityData)==null?void 0:y.label)!=null?J:""}}))},"vh");
RSf.idomCompat=!0;var dRC=_.n(function(q){var N=function(){var J,E,F,R;return(R=(F=(J=q.alt)==null?void 0:J.call(q))!=null?F:(E=q.data().accessibilityData)==null?void 0:E.label)!=null?R:""},b=function(){return q.data().imageWidth},y=function(){return q.data().imageHeight};
return _.u("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.u(_.t,{cond:function(){var J=q.data();if(J){var E,F,R;var c=((E=_.tz().resolve(_.$f(_.ft)))==null?0:E())?(F=J.imageDark)!=null?F:J.imageLight:(R=J.imageLight)!=null?R:J.imageDark}else c=void 0;return c},
then:function(J){return _.u(_.s_,Object.assign({},q,{data:J,alt:N,targetWidth:b,targetHeight:y,preserveHeight:!0,preserveWidth:!0}))}}))},"wh");
dRC.idomCompat=!0;var Ug=_.n(function(q){var N=q.data;q=_.aU(function(){return N().slots},[]);
var b=_.aU(function(){return N().layoutProperties},{}),y=_.tz().resolve(_.Ii);
return _.u("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:ADf(b,y)},_.u(_.Tf,{each:q,keyBy:"INDEX"},function(J){return _.u("div",{class:"ytContainerLayoutViewModelSlot",style:ADf(function(){return J().layoutProperties},y)},_.u(_.zS,{data:function(){return J().contents}},{containerLayoutViewModel:Ug,
badgeViewModel:_.XT,buttonViewModel:_.Ou,styledTextViewModel:RSf,contentPreviewImageViewModel:function(E){return _.u(_.wK,{data:E.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(E){return _.u(dRC,{data:E.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"xh");
Ug.idomCompat=!0;var ciX=_.n(function(q){var N=q.data;var b=q.stateFns;var y=function(){var z=N(),m=z.productId;return!(!z.clearGroupId&&!m)},J=function(){var z=N(),m=z.clearGroupId;
return(z=z.productId)?b().isProductSelected(z):m?b().getSelectedProductByGroupId(m)==null:!1},E=function(z){var m=N(),r=m.clearGroupId;
if(m=m.productId)b().onProductSelected(m),z==null||z.forEach(function(X){_.Kt(X)});
else if(r)b().onClearGroupSelected(r)},F=function(){var z=N(),m=z.clearGroupId;
if(z=z.productId){var r;return"group:"+(((r=b().getProductById(z))==null?void 0:r.groupId)||"")}return m?"group:"+m:""},R=_.aU(function(){return N().header},[]),c=_.aU(function(){return N().body},[]);
return _.u("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.u(_.t,{cond:function(){return R().length>0||y()},
then:function(){return _.u("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.u("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.u(_.zS,{data:R},{containerLayoutViewModel:function(z){return _.u("div",{class:"ytPdpCardSectionViewModelContentItem"},_.u(Ug,{data:z.data}))},
styledTextViewModel:function(z){return _.u("div",{class:"ytPdpCardSectionViewModelContentItem"},_.u(RSf,{data:z.data}))}})),_.u(_.t,{cond:y,
then:function(){return _.u("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.u(_.Fo,{checked:J,name:F,onChange:function(){E(N().onSelect)}}))}}))}}),_.u(_.t,{cond:function(){return c().length>0},
then:function(){return _.u("div",null,_.u(_.zS,{data:c},{containerLayoutViewModel:function(z){return _.u("div",{class:"ytPdpCardSectionViewModelContentItem"},_.u(Ug,{data:z.data}))}}))}}))},"yh");
ciX.idomCompat=!0;var uta=_.n(function(q){var N=q.data;var b=q.stateFns;return _.u("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.u(_.t,{cond:function(){return N().banner},
then:function(y){return _.u("div",{class:"ytPdpCardViewModelBanner"},_.u(_.Zc,{text:y}))}}),_.u(_.zS,{data:function(){return N().sections}},{pdpCardSectionViewModel:function(y){y=y.data;
var J={};return _.u("div",{class:_.NO("ytPdpCardViewModelSectionContainer",(J.ytPdpCardViewModelShowDividers=function(){return N().showDividers},J))},_.u(ciX,{data:y,
stateFns:b}))}}))},"zh");
uta.idomCompat=!0;var zSa=_.n(function(q){var N=q.data;var b=q.isOverlay;q={};return _.u("pdp-masthead-view-model",{class:_.NO("ytPdpMastheadViewModelHost",(q.ytPdpMastheadViewModelIsOverlay=b,q))},_.u(_.zS,{data:function(){return N().image}},{contentPreviewImageViewModel:_.wK,
themedImageViewModel:function(y){return _.u(dRC,{data:y.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.u(_.t,{cond:function(){return N().title},
then:function(y){return _.u("h1",{class:"ytPdpMastheadViewModelHeading"},_.u(_.Zc,{text:y,isOverlay:b}))}}),_.u(_.Tf,{each:function(){var y;
return(y=N().finePrint)!=null?y:[]}},function(y){return _.u("div",{class:"ytPdpMastheadViewModelFinePrint"},_.u(_.Zc,{text:y,
isOverlay:b}))}))},"Ah");
zSa.idomCompat=!0;var $Ra=_.n(function(q){var N=q.data;var b=q.stateFns;var y=function(){return"pdp-pricing-group-selector-"+N().pricingGroupAttributeIds},J=_.aU(function(){return N().pricingGroupSelectorSectionHeader});
return _.u("pdp-pricing-group-selector-view-model",null,_.u(_.t,{cond:function(){return!!J()},
then:function(){return _.u(_.zS,{data:J},{sectionHeaderViewModel:function(E){E=E.data;var F={};return _.u("div",{class:_.NO("ytPdpPricingGroupSelectorViewModelSectionHeader",(F.ytPdpPricingGroupSelectorViewModelFullBleed=!0,F.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,F))},_.u(_.sQ,{data:E}))}})}}),_.u("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.u(_.Tf,{each:function(){var E=b().getSelectedProductByGroupId(N().groupId);
if(!E)return _.P_(Error("Zj`"+N().groupId)),[];var F,R=(F=N().pricingGroupAttributeIds)!=null?F:[],c;if((c=E.pricingGroups)==null||!c.length||!R.length)return[];F=E.pricingGroups.filter(function(X){return R.length?X.pricingGroupAttributes.every(function(V){return R.includes(V)}):!1});
E=[];if(R.length>0){F=[].concat(_.a9(F));c=_.Z(R);for(var z=c.next(),m={};!z.done;m={targetAttrId:void 0},z=c.next())m.targetAttrId=z.value,z=F.findIndex(function(X){return function(V){return V.pricingGroupAttributes.includes(X.targetAttrId)}}(m)),z!==-1&&(E.push(F[z]),F.splice(z,1))}var r=b().getSelectedPricingGroupAttributesByGroupId(N().groupId);
return E.map(function(X){var V=!1;r&&X.pricingGroupAttributes&&(V=qF(X.pricingGroupAttributes,r));return{pricingGroup:X,isSelected:V}})},
keyBy:function(E){return E.pricingGroup.pricingGroupId}},function(E){return _.u("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.u("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.u(_.zS,{data:function(){return E().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:Ug})),_.u("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.u(_.Fo,{checked:function(){return E().isSelected},
name:y,onClick:function(){var F=E().pricingGroup;b().onPricingGroupSelected(F.pricingGroupId);if(F=_.O_(F.onSelectPricingGroup)){var R;(R=_.tz().resolve(_.rO))==null||R.resolveCommand(F)}}})))})))},"Bh");
$Ra.idomCompat=!0;var tNC=_.n(function(q){var N=q.data;var b=q.stateFns;var y=function(){var F=b().getSelectedPricingOptions().map(function(z){return z.pricingOptionId}),R=b().getSelectedProductByGroupId(N().groupId);
if(!R)return _.P_(Error("$j`"+N().groupId)),[];var c=b().getSelectedPricingGroupAttributesByGroupId(N().groupId);return gHU(R.pricingOptions,c,F)},J=_.aU(function(){return N().pricingOptionSelectorSectionHeader}),E=function(){return y().length>1};
return _.u("pdp-pricing-option-selector-view-model",null,_.u(_.t,{cond:function(){return!!J()&&E()},
then:function(){return _.u(_.zS,{data:J},{sectionHeaderViewModel:function(F){F=F.data;var R={};return _.u("div",{class:_.NO("ytPdpPricingOptionSelectorViewModelSectionHeader",(R.ytPdpPricingOptionSelectorViewModelFullBleed=!0,R.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,R))},_.u(_.sQ,{data:F}))}})}}),_.u(_.t,{cond:E,
then:function(){return _.u("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.u(_.Tf,{each:y,keyBy:"INDEX"},function(F){return _.u("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.u("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.u(_.zS,{data:function(){return F().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:Ug})),_.u("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.u(_.Fo,{checked:function(){return F().isSelected},
onClick:function(){b().onPricingOptionSelected(F().pricingOption.pricingOptionId);var R=F().pricingOption.onSelectPricingOption;if(R=_.O_(R)){var c;(c=_.tz().resolve(_.rO))==null||c.resolveCommand(R)}}})))}))}}))},"Ch");
tNC.idomCompat=!0;var mRp=_.n(function(q){var N=q.data;var b=q.stateFns;return _.u("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.u(_.zS,{data:function(){var y,J;return(J=(y=b().getSelectedPricingOptions()[0])==null?void 0:y.primaryButton)!=null?J:N().emptyStateButton}},{buttonViewModel:_.Ou}))},"Dh");
mRp.idomCompat=!0;var ric=_.n(function(q){var N=q.stateFns;return _.u("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.u(_.zS,{data:function(){return N().getSelectedPricingOptions().flatMap(function(b){return b.summaryLines}).filter(function(b){return!!b})}},{containerLayoutViewModel:function(b){return _.u("div",{class:"ytPdpSummaryViewModelLineItem"},_.u(Ug,{data:b.data}))}}))},"Eh");
ric.idomCompat=!0;var XTa=_.n(function(q){function N(G){var w=F();_.nk(_.GK("pdpStateEntity",w,{key:w,selectedPricingOptions:G}))}
var b=q.data;var y=q.internalScrolling;var J=q.stateFnsForTesting;var E=_.aU(function(){return b().allProducts},[]),F=_.aU(function(){return b().pdpStateEntityKey},""),R=_.dj(ZAA,F),c=_.K3(function(){_.p3(!0);
var G;return(G=J==null?void 0:J())!=null?G:RTA(R,E,N)},void 0,"Pzdsic"),z=_.aU(function(){return b().body},[]),m=_.aU(function(){return b().columnBreakHints},[]),r=function(){return b().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},X=function(){return r()||b().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},V=_.K3(function(){var G=_.ke(b().background),w;
if(G==null?0:(w=G.sources)==null?0:w.length){var D=D===void 0?!0:D;G=_.cgd(void 0,G.sources,void 0,D,D?1E3:void 0,D?void 0:1E3)}else G=null;return G},void 0,"RDPOae");
_.WC(function(){var G=b().onStartCommand;if(G&&(G=_.O_(G))){var w;(w=_.tz().resolve(_.rO))==null||w.resolveCommand(G)}});
q={};return _.u("pdp-view-model",{class:_.NO("ytPdpViewModelHost",(q.ytPdpViewModelHasBackground=function(){return X()||!!V()},q.ytPdpViewModelHasDarkBackground=X,q.ytPdpViewModelHasScrim=r,q.ytPdpViewModelInternalScrolling=y,q)),
style:_.ZU({"--pdp-view-model-background":function(){return V()?"url("+V()+")":void 0}})},_.u("div",{class:"ytPdpViewModelColumnContainer"},_.u(_.Tf,{each:function(){return dLa(z(),m())},
keyBy:"INDEX"},function(G){return _.u("div",{class:"ytPdpViewModelColumn"},_.u(_.zS,{data:G},{containerLayoutViewModel:function(w){return _.u(fh,null,_.u(Ug,{data:w.data}))},
dividerViewModel:function(w){return _.u(fh,{fullBleed:!0},_.u(_.Eq1,{data:w.data}))},
pdpCardViewModel:function(w){return _.u(fh,null,_.u(uta,{data:w.data,stateFns:c}))},
pdpMastheadViewModel:function(w){return _.u(fh,null,_.u(zSa,{data:w.data,isOverlay:X}))},
pdpPricingGroupSelectorViewModel:function(w){return _.u(fh,null,_.u($Ra,{data:w.data,stateFns:c}))},
pdpPricingOptionSelectorViewModel:function(w){return _.u(fh,null,_.u(tNC,{data:w.data,stateFns:c}))},
pdpPrimaryButtonViewModel:function(w){return _.u(fh,null,_.u(mRp,{data:w.data,stateFns:c}))},
pdpSummaryViewModel:function(w){return _.u(fh,null,_.u(ric,{data:w.data,stateFns:c}))},
sectionHeaderViewModel:function(w){return _.u(fh,{fullBleed:!0,noVerticalPadding:!0},_.u(_.sQ,{data:w.data}))}}))})))},"Fh");
XTa.idomCompat=!0;var fh=_.n(function(q){var N={};return _.u("div",{class:_.NO("ytPdpViewModelItem",(N.ytPdpViewModelFullBleed=q.fullBleed,N.ytPdpViewModelNoVerticalPadding=q.noVerticalPadding,N))},q.children)},"Gh");_.P$(XTa,"pdp-view-model",{props:{data:_.F5,stateFnsForTesting:_.W$,internalScrolling:_.W$}});var VNd=_.n(function(q){var N=q.data;var b=q.className;var y=_.dj(_.n0,function(){return N().flowStateEntityKey});
return _.u("ytm-premium-purchase-button-renderer",{class:_.NO("ytPremiumPurchaseButtonRendererHost",b)},_.u(_.zS,{data:function(){var J;return(J=_.v(y(),u4c))==null?void 0:J.primaryButtonOverride}},{buttonRenderer:function(J){return _.u(_.rK,{data:J.data,
className:b})},
buttonViewModel:function(J){return _.u(_.Ou,{data:J.data,className:b})}}))},"Hh");
VNd.idomCompat=!0;var joa=_.n(function(q){var N=q.data;q=q.className;var b=function(){return c9x(N().style)},y=_.NO("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",b),J=_.NO("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",b);
return _.u("yt-flow-bottom-bar-renderer",{class:_.NO("yt-flow-bottom-bar-renderer",q,b)},_.u(_.zS,{data:function(){return N().secondaryButton}},{buttonRenderer:function(E){return _.u(_.rK,{data:E.data,
className:J})},
buttonViewModel:function(E){return _.u(_.Ou,{data:E.data,className:J})},
premiumPurchaseButtonRenderer:function(E){return _.u(VNd,{data:E.data,className:J})}}),_.u(_.zS,{data:function(){return N().primaryButton}},{buttonRenderer:function(E){return _.u(_.rK,{data:E.data,
className:y})},
buttonViewModel:function(E){return _.u(_.Ou,{data:E.data,className:y})},
premiumPurchaseButtonRenderer:function(E){return _.u(VNd,{data:E.data,className:y})}}))},"Ih");
joa.idomCompat=!0;_.P$(joa,"yt-flow-bottom-bar-renderer",{props:{data:_.F5,className:_.F5}});var xRK=_.n(function(q){var N=_.NO(q.className,"ytOfferSummaryRendererHost");return _.u("yt-offer-summary-renderer",{class:N},_.u("div",{class:"ytOfferSummaryRendererTextContainer"},_.u("div",{class:"ytOfferSummaryRendererEyebrowText"},_.u(_.Zc,{text:function(){return q.data().eyebrowText}})),_.u("div",{class:"ytOfferSummaryRendererTitle"},_.u(_.Zc,{text:function(){return q.data().title}})),_.u("div",{class:"ytOfferSummaryRendererSubtitle"},_.u(_.Zc,{text:function(){return q.data().subtitle}})),_.u("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.u(_.Tf,{each:function(){var b;
return(b=q.data().featureListData)!=null?b:[]}},function(b){var y;
return _.u("div",{class:"ytOfferSummaryRendererFeatureList"},_.u(_.FQ,{icon:(y=b.icon)==null?void 0:y.iconType,active:function(){return b.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(b.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"}}}),_.u("div",{class:"ytOfferSummaryRendererFeatureListText"},_.u(_.Zc,{text:b.text,
className:function(){return b.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.u("div",{class:"ytOfferSummaryRendererDescription"},_.u(_.Zc,{text:function(){return q.data().description}}))))},"Jh");_.P$(_.n(function(q){var N={};N=_.NO("ytOfferSummaryFlowStepRendererHost",(N.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=q.shouldDisableHeaderTopMargin,N));return _.u("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:N},_.u("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.u("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.u(_.Zc,{text:function(){return q.data().header}})),_.u("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.u(_.Zc,{text:function(){return q.data().subtitle}}))),_.u("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.u(_.zS,{data:function(){return q.data().offerSummary}},{offerSummaryRenderer:function(b){return _.u(xRK,{data:b.data,
className:q.flowClassName})}})))},"Kh"),"yt-offer-summary-flow-step-renderer",{props:{data:_.W$,
flowClassName:_.W$,flowStateEntityKey:_.W$,shouldDisableHeaderTopMargin:_.W$}});var vRf=_.n(function(q){var N=q.data;var b=q.className;var y=q.flowStateEntityKey;var J=q.selectionStepStyle;q=_.y0(function(c){var z=N(),m=y==null?void 0:y();c.target&&(c.stopPropagation(),c=m||"",m=_.n0(_.sk().getState(),c),z=Object.assign({},m,{premiumPurchaseFlowState:{selectedOptionId:z.optionId,primaryButtonOverride:z.primaryButtonOverride}}),_.sk().dispatch(_.$e("flowStateEntity",c,z)));return!1});
var E=function(){return(y==null?void 0:y())||""},F=_.dj(_.n0,E);
_.WC(function(){var c=N(),z=E(),m=F();c.defaultSelected&&z!==""&&c.primaryButtonOverride&&zTC(c.optionId||"",z,c.primaryButtonOverride,m)});
var R={};return _.u("ytm-option-item-renderer",{"on:click":q,class:_.NO(b,"ytm-option-item-renderer",(R["ytm-option-item-renderer--lp2-style"]=function(){return(J==null?void 0:J())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},R))},_.u("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.u("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var c=N(),z=E(),m=F();m=_.v(m,u4c);return(m?(m==null?void 0:m.selectedOptionId)||"":c.defaultSelected&&z!==""?(c==null?void 0:c.optionId)||"":"")===N().optionId},
name:("input"+_.Cp(_.Em)).toString()})),_.u("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.u(_.zS,{data:function(){return N().titleBadge}},{badgeViewModel:function(c){return _.u(_.XT,{data:c.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.u(_.t,{cond:function(){return N().eyebrowText},
then:function(){return _.u("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.u(_.Zc,{text:function(){return N().eyebrowText}}))}}),_.u("div",{class:"ytm-option-item-renderer__option-item-title"},_.u(_.Zc,{text:function(){return N().title}})),_.u("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.u(_.Zc,{text:function(){return N().subtitle}})),_.u(_.t,{cond:function(){return N().featureListData},
then:function(){return _.u("div",{class:"ytm-option-item-renderer__feature-list-data"},_.u(_.Tf,{each:function(){return N().featureListData||[]}},function(c){var z,m=(z=c.icon)==null?void 0:z.iconType;
a:switch(c.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":z="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":z="ytm-option-item-renderer__feature-list-icon-small";break a;default:z="ytm-option-item-renderer__feature-list-icon-default"}return _.u("div",{class:"ytm-option-item-renderer__feature-list"},_.u(_.FQ,{icon:m,className:z,active:function(){return c.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.u("div",{class:"ytm-option-item-renderer__feature-list-text"},_.u(_.Zc,{text:c.text,
className:function(){return c.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.u("div",{class:"ytm-option-item-renderer__option-item-description"},_.u(_.Zc,{text:function(){return N().description}}))))},"Lh");var GCa=_.n(function(q){var N=q.data;var b=q.flowClassName;var y=q.flowStateEntityKey;var J=q.selectionStepStyle;return _.u("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.u("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.u("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.u(_.Zc,{text:function(){return N().title}}),_.u(_.zS,{data:function(){return N().titleBadge}},{badgeViewModel:function(E){return _.u(_.XT,{data:E.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.u(_.t,{cond:function(){return N().subtitle},
then:function(){return _.u("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.u(_.Zc,{text:function(){return N().subtitle}}))}}),_.u(_.t,{cond:function(){return N().featureListData},
then:function(E){return _.u("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.u(_.Tf,{each:E},function(F){var R;return _.u("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.u(_.FQ,{icon:(R=F.icon)==null?void 0:R.iconType,active:function(){return F.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(F.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"}}}),_.u("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.u(_.Zc,{text:F.text,
className:function(){return F.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.u(_.t,{cond:function(){return N().secondaryTitle},
then:function(){return _.u("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.u(_.Zc,{text:function(){return N().secondaryTitle}}))}}),_.u(_.Tf,{each:function(){return N().sectionDisclaimers||[]}},function(E){return _.u("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.u(_.Zc,{text:E}))})),_.u(_.zS,{data:function(){return N().optionItems}},{optionItemRenderer:function(E){return _.u("div",{class:"ytOptionSectionRendererOptionItem"},_.u(vRf,{data:E.data,
className:b,flowStateEntityKey:y,selectionStepStyle:J}))}}),_.u(_.t,{cond:function(){return N().offerText},
then:function(){return _.u("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.u(_.Zc,{text:function(){return N().offerText}}))}}))},"Mh");
GCa.idomCompat=!0;var YRf=_.n(function(q){var N=q.data;var b=q.flowClassName;var y=q.flowStateEntityKey;q=q.isDesktop;var J=_.dI("div"),E=function(){var m;return(m=N().flowStateEntityKey)!=null?m:y==null?void 0:y()},F=function(){return(E==null?void 0:E())||""},R=function(){return N().style},c=_.dj(_.n0,F);
_.WC(function(){$Lf(N(),F(),c());setTimeout(function(){var m;(m=J.value)==null||m.focus()})});
var z={};return _.u("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.NO("ytm-option-selection-flow-step-renderer",(z["ytm-option-selection-flow-step-renderer--desktop"]=q,z["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return N().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},z))},_.u("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"},
_.u("div",{el:J,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.u(_.Zc,{text:function(){return N().header}})),_.u("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.u(_.Zc,{text:function(){return N().subtitle}}))),_.u(_.zS,{data:function(){return N().optionItems||[]}},{optionItemRenderer:function(m){return _.u("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.u(vRf,{data:m.data,
className:b,flowStateEntityKey:E,selectionStepStyle:R}))},
optionSectionRenderer:function(m){return _.u("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.u(GCa,{data:m.data,flowClassName:b,flowStateEntityKey:E,selectionStepStyle:R}))}}))},"Nh");
YRf.idomCompat=!0;_.P$(YRf,"yt-option-selection-flow-step-renderer",{props:{data:_.F5,flowClassName:_.F5,flowStateEntityKey:_.F5,isDesktop:_.F5}});_.Ch=_.n(function(q){var N=_.Sl(q,{type:1,disablePadding:!1,disablePrimaryButton:!1}),b=N.data,y=N.type;q=N.disablePadding;var J=N.disablePrimaryButton,E=N.onClickPrimaryButton,F=function(){return b().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},R=function(){return{disabled:J(),
state:J()?"disabled":"active"}},c=function(){return b().leadingLabel||b().trailingLabel};
N={};return _.u("yt-panel-footer-view-model",{class:_.NO("yt-panel-footer-view-model",(N["yt-panel-footer-view-model--hide-divider"]=function(){return b().shouldHideDivider},N["yt-panel-footer-view-model--disable-padding"]=q,N))},_.u(_.t,{cond:c,
then:function(){var z={},m={};return _.u("div",{class:_.NO("yt-panel-footer-view-model__text-row",(z["yt-panel-footer-view-model--row-bottom-padding"]=function(){var r=b();return!(!r.leadingLabel&&!r.trailingLabel||!r.primaryButton&&!r.secondaryButton)},z))},_.u(_.Zc,{text:function(){return b().leadingLabel},
className:_.NO((m["yt-panel-footer-view-model--text-padding"]=c,m))}),_.u(_.Zc,{text:function(){return b().trailingLabel}}))}}),_.u(_.t,{cond:F,
then:function(){var z={};return _.u("div",{class:"yt-panel-footer-view-model__button-stack"},_.u("div",{class:_.NO("yt-panel-footer-view-model__primary-button",(z["yt-panel-footer-view-model__button-stack--top-button"]=function(){return b().secondaryButton},z))},_.u(_.zS,{data:function(){return b().primaryButton}},{buttonViewModel:function(m){return _.u(_.Ou,{data:m.data,
buttonOverrides:R,onClick:E})}})),_.u(_.zS,{data:function(){return b().secondaryButton}},{buttonViewModel:_.Ou}))}}),_.u(_.t,{cond:function(){return!F()},
then:function(){var z={},m={},r={};return _.u("div",{class:_.NO("yt-panel-footer-view-model__button-row",(z["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===y()},z))},_.u("div",{class:_.NO("yt-panel-footer-view-model__button-row--left-button",(m["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===y()},m["yt-panel-footer-view-model__button-row--hidden"]=function(){return!b().secondaryButton||0===y()},m["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===y()},m))},_.u(_.zS,{data:function(){return b().secondaryButton}},{buttonViewModel:_.Ou})),_.u("div",{class:_.NO("yt-panel-footer-view-model__primary-button",(r["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===y()||1===y()},r["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===y()},r))},_.u(_.zS,{data:function(){return b().primaryButton}},{buttonViewModel:function(X){return _.u(_.Ou,{data:X.data,
buttonOverrides:R,onClick:E})}})))}}))},"Oh");
_.Ch.idomCompat=!0;_.Qox=_.n(function(q){q=_.Sl(q,{disablePadding:!1});var N=q.data,b=q.disablePadding;q=_.uGz(function(){return N().formId});
var y=q.submitForm,J=q.isValid,E=q.isSubmitting;return _.u("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.u(_.zS,{data:function(){return N().panelFooter}},{panelFooterViewModel:function(F){return _.u(_.Ch,{data:F.data,
onClickPrimaryButton:function(){y()},
disablePrimaryButton:function(){return!J()||E()},
disablePadding:b})}}))},"Ph");_.P$(_.Qox,"yt-form-footer-view-model",{props:{data:_.F5,disablePadding:_.F5}});var ODB=_.n(function(q){var N=_.x("enable_user_rating_web");return _.u("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.u("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.u(_.t,{cond:function(){var b;return(b=q.data())==null?void 0:b.image},
then:function(b){return _.u(_.s_,{data:b,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.u("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.u(_.Zc,{text:function(){var b;
return(b=q.data())==null?void 0:b.title}})),_.u("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.u(_.Zc,{text:function(){var b;
return(b=q.data())==null?void 0:b.subtitle}})),_.u(_.t,{cond:function(){return!N},
then:function(){return _.u(_.zS,{data:function(){var b;return(b=q.data())==null?void 0:b.viewTipsButton}},{buttonViewModel:function(b){return _.u(_.Ou,{data:b.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Qh");_.P$(ODB,"yt-contributor-zero-state-view-model",{props:{data:_.F5}});var wTB=_.n(function(q){var N=function(){var b;return(b=q.data())==null?void 0:b.image};
return _.u("yt-featured-content-item-view-model",{class:_.NO("ytFeaturedContentItemViewModelHost")},_.u("div",{class:_.NO(function(){return N()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.u("div",{class:function(){return N()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.u(_.t,{cond:N,
then:function(){return _.u("div",{class:"ytFeaturedContentItemViewModelImage"},_.u(_.zS,{data:function(){return q.data().image}},{themedImageViewModel:function(b){return _.u(dRC,{data:b.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.u(_.t,{cond:function(){var b;
return!N()&&((b=q.data())==null?void 0:b.iconName)},
then:function(){return _.u("div",{class:"ytFeaturedContentItemViewModelIcon"},_.u(_.FQ,{icon:function(){return q.data().iconName}}))}}),_.u("div",{class:"ytFeaturedContentItemViewModelContent"},_.u(_.t,{cond:function(){var b;
return(b=q.data())==null?void 0:b.title},
then:function(){return _.u("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.u(_.Zc,{text:function(){return q.data().title}}))}}),_.u(_.t,{cond:function(){var b;
return(b=q.data())==null?void 0:b.body},
then:function(){return _.u("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.u(_.Zc,{text:function(){return q.data().body}}))}})))))},"Rh");var iDK=_.n(function(q){var N=function(){var J;return tLB((J=q.data())==null?void 0:J.titleFontSize)},b=function(){var J;
return mLa((J=q.data())==null?void 0:J.descriptionFontSize)},y=function(){var J;
return((J=q.data())==null?void 0:J.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.u("yt-landing-page-view-model",{class:_.NO("ytLandingPageViewModelHost",q.className)},_.u("div",{class:"ytLandingPageViewModelHeader"},_.u(_.t,{cond:function(){var J;return(J=q.data())==null?void 0:J.bannerImage},
then:function(J){return _.u("div",{class:"ytLandingPageViewModelHeaderImage"},_.u(_.zS,{data:function(){return J()}},{imageBannerViewModel:function(E){return _.u(_.z_,{data:E.data,
isPositionRelative:!0})}}))}}),_.u(_.t,{cond:function(){var J;
return(J=q.data())==null?void 0:J.bannerAnimation},
then:function(J){return _.u(_.h$,{data:function(){var E=J();if(E==null?0:E.url){var F;E={path:(F=E==null?void 0:E.url)!=null?F:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(E==null?0:E.payload){var R;E={animationData:JSON.parse((R=E==null?void 0:E.payload)!=null?R:""),autoplay:!0,loop:!0,renderer:"svg"}}else E=void 0;return{animationConfig:E}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.u("div",{class:"ytLandingPageViewModelHeaderTitle"},_.u(_.t,{cond:function(){var J;
return(J=q.data())==null?void 0:J.title},
then:function(J){return _.u("div",{class:_.NO("ytLandingPageViewModelHeaderTitleContent",N)},_.u(_.Zc,{text:function(){return J()}}))}}),_.u(_.t,{cond:function(){var J;
return(J=q.data())==null?void 0:J.description},
then:function(J){var E={};return _.u(_.Zc,{className:_.NO("ytLandingPageViewModelHeaderTitleDescription",b,(E.ytLandingPageViewModelHeaderTitleDescriptionMargin=y,E)),text:function(){return J()}})}}))),_.u(_.t,{cond:function(){var J,E;
return(J=q.data())==null?void 0:(E=J.featuredContentList)==null?void 0:E.length},
then:function(){return _.u("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.u(_.zS,{data:function(){return q.data().featuredContentList}},{featuredContentItemViewModel:function(J){return _.u(wTB,{data:J.data})}}))}}),_.u(_.t,{cond:function(){var J,E;
return(J=q.data())==null?void 0:(E=J.expandableContentList)==null?void 0:E.length},
then:function(){return _.u("div",{class:"ytLandingPageViewModelFaqSection"},_.u(_.zS,{data:function(){return q.data().expandableContentList}},{faqEntryViewModel:function(J){return _.u("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.u(_.ajJ,{data:J.data}))}}))}}),_.u("div",{class:"ytLandingPageViewModelFooter"},_.u(_.t,{cond:function(){var J;
return(J=q.data())==null?void 0:J.legalCopy},
then:function(J){return _.u("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.u(_.Zc,{text:function(){return J()}}))}}),_.u(_.t,{cond:function(){var J;
return(J=q.data())==null?void 0:J.actions},
then:function(J){return _.u("div",null,_.u(_.zS,{data:function(){return J()}},{flexibleActionsViewModel:function(E){return _.u(_.NW,{data:E.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Sh");_.P$(_.n(function(q){return _.u("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.u("div",{class:"ytLpSectionGroupViewModelContainer"},_.u(_.zS,{data:function(){return q.data().sections}},{landingPageViewModel:function(N){return _.u(iDK,{data:N.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Th"),"yt-lp-section-group-view-model",{props:{data:_.F5}});var lCX=_.n(function(q){var N=q.data;var b=q.selectedKey;var y=q.onSelected;var J=q.groupName;var E=function(){return N().text},F=function(){return N().attributedText},R=function(){return N().subtext},c=function(){return N().attributedSubtext},z=_.u("div",{class:"ytRadioButtonItemViewModelLabel"},_.u(_.t,{cond:E,
then:function(){return _.u("div",null,E)}}),_.u(_.t,{cond:F,
then:function(){return _.u(_.Zc,{text:F})}}),_.u(_.t,{cond:R,
then:function(){return _.u("div",{class:"ytRadioButtonItemViewModelSubText"},R)}}),_.u(_.t,{cond:c,
then:function(){return _.u("div",{class:"ytRadioButtonItemViewModelSubText"},_.u(_.Zc,{text:c}))}})),m=function(){if(F()){var X;
return(X=F())==null?void 0:X.content}return E()},r=function(){if(c()){var X;
return(X=c())==null?void 0:X.content}return R()};
q={};return _.u("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.u(_.Fo,{name:J,checked:function(){return!(b==null||!b()||N().key!==(b==null?void 0:b()))},
onChange:function(X){y==null||y(X.target,N(),J==null?void 0:J())},
labelRenderable:function(){return z},
ariaLabel:function(){return r()?m()+", "+r():m()},
className:_.NO((q.ytRadioButtonItemViewModelSubTitle=function(){return!!N().subtext},q))}))},"Uh");_.K5X=_.n(function(q){var N=q.data;var b=function(){var y;return _.Ye((y=N())==null?void 0:y.rendererContext)};
q={};return _.u("content-list-item-view-model",{el:_.ai(_.QR(function(){return N().rendererContext})),
class:_.NO("ytContentListItemViewModelHost",(q.ytContentListItemViewModelTappable=b,q)),role:function(){return b()?"listitem":void 0},
tabindex:function(){return b()?0:void 0}},_.u("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.u("div",{class:"ytContentListItemViewModelImageContainer"},_.u(_.t,{cond:function(){return N().image},
then:function(y){return _.u(_.s_,{data:y,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.u(_.zS,{data:function(){var y;
return(y=N())==null?void 0:y.avatar}},{avatarViewModel:_.HF})),_.u("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.u("div",{class:_.NO("ytContentListItemViewModelTitle",function(){a:{switch(N().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var y="ytContentListItemViewModelProminentTitle";
break a}y=void 0}return y})},_.u(_.Zc,{text:function(){return N().title}})),_.u("div",{class:"ytContentListItemViewModelMetadata"},_.u(_.zS,{data:function(){return N().metadata}},{contentMetadataViewModel:function(y){return _.u(_.l1,{data:y.data,
layout:1})}})))),_.u("div",{class:"ytContentListItemViewModelActionButton"},_.u(_.zS,{data:function(){var y;
return(y=N())==null?void 0:y.actionButton}},{buttonViewModel:_.Ou,
toggleButtonViewModel:_.LV})))},"Vh");var DRd=_.n(function(q){var N=q.data,b=function(){var J;return(J=N())==null?void 0:J.description},y=function(){var J;
return(J=N())==null?void 0:J.title};
return _.u("ytfc-youth-basic-section-header-view-model",{class:_.NO("ytfcYouthBasicSectionHeaderViewModelHost",q.className)},_.u("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.u(_.zS,{data:function(){var J;return(J=N())==null?void 0:J.avatar}},{avatarViewModel:_.HF}),_.u(_.t,{cond:function(){var J;
return _.ke((J=N())==null?void 0:J.themedImage)},
then:function(J){return _.u(_.s_,{data:J,alt:function(){var E,F;return(F=(E=y())==null?void 0:E.content)!=null?F:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.u("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.u(_.t,{cond:y,
then:function(){return _.u(_.Zc,{text:y,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.u("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.u(_.zS,{data:function(){var J;
return(J=N())==null?void 0:J.bottomBadge}},{badgeViewModel:function(J){return _.u("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.u(_.XT,{data:J.data}))}}),_.u(_.t,{cond:b,
then:function(){return _.u(_.Zc,{text:b,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Wh");var hSW=_.n(function(q){var N=q.data;return _.u("ytfc-youth-section-body-view-model",{class:_.NO("ytfcYouthSectionBodyViewModelHost",q.className)},_.u(_.zS,{data:function(){var b;return(b=N())==null?void 0:b.topContent}},{avatarStackViewModel:function(b){return _.u(_.Nw,{data:b.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.u(_.Zc,{text:function(){var b;
return(b=N())==null?void 0:b.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Xh");var kCB=_.n(function(q){var N=_.Z(_.QS(!1,void 0,"SrK51e")),b=N.next().value,y=N.next().value,J=function(){return q.data().inlineExpansionEntityKey},E=_.dj(h3C,J),F=function(){if(q.isSelected!==void 0)return q.isSelected();
if(J()){var c;return(c=E())==null?void 0:c.expanded}return b()};
N={};var R={};return _.u("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.y0(function(){q.isSelected!==void 0||J()||y(!b())})},_.u("div",{class:"ytInlineExpanderViewModelHeader"},_.u(_.zS,{data:function(){return q.data().headerContent}},{youthBasicSectionHeaderViewModel:DRd}),_.u("div",{class:_.NO("ytInlineExpanderViewModelButton",(N.ytInlineExpanderViewModelButtonExpanded=F,N))},_.u(_.GE,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:F(),accessibilityLabel:F()?_.FE("SHOW_LESS",void 0,"Show Less"):_.FE("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.u("div",{class:_.NO("ytInlineExpanderViewModelBody",(R.ytInlineExpanderViewModelBodyExpanded=F,R)),"aria-hidden":function(){return!F()}},_.u("div",{class:"ytInlineExpanderViewModelBodyContent"},_.u(_.zS,{data:function(){return q.data().bodyContent}},{youthSectionBodyViewModel:hSW}))))},"Yh");var URd=new _.Jw("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.fCf=_.n(function(q){var N=function(){return q.data().background},b=function(){return q.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},y=function(){return q.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},J=_.tz().resolve(_.$f(URd)),E={};
return _.u("yt-card-view-model",{el:_.ai(_.QR(function(){return q.data().rendererContext})),
class:_.NO("ytCardViewModelHost",q.className,(E.ytCardViewModelClickable=function(){return _.GS(q.data().rendererContext)},E))},_.u(_.KS,{contentId:function(){return q.data().contentId}},function(){var F={};
return _.u("div",{class:_.NO("ytCardViewModelCardViewModelInner",function(){var R;return r9K(q.data().cardStyle,(R=q.isSelected)==null?void 0:R.call(q))},function(){if(q.isSelected===void 0){var R;
a:{switch((R=q.data().cardState)==null?void 0:R.selectionState){case "CARD_SELECTION_STATE_SELECTED":R="ytCardViewModelSelected";break a}R=void 0}return R}})},_.u(_.zS,{data:N},{cinematicContainerViewModel:function(R){return _.u(_.qJa,{data:R.data})}}),_.u("div",{class:"ytCardViewModelContentWrapper"},_.u(_.t,{cond:function(){return!b()},
then:function(){var R={},c={};return _.u("div",{class:"ytCardViewModelTopContentContainer"},_.u("div",{class:_.NO("ytCardViewModelTopContent",(R.ytCardViewModelInnerPadding=function(){return!q.data().disableTopContentPadding&&q.data().topContent},R))},_.u(_.zS,{data:function(){return q.data().topContent}},{contentListItemViewModel:function(z){return _.u(_.K5X,{data:z.data})},
basicContentViewModel:_.zGR,linearLayoutViewModel:_.dW})),_.u("div",{class:_.NO("ytCardViewModelInlineTrailingAction",(c.ytCardViewModelInlineCenterTrailingAction=y,c.ytCardViewModelInlineTrailingActionMargin=function(){return q.data().trailingAction},c))},_.u(_.zS,{data:function(){return q.data().trailingAction}},{buttonViewModel:function(z){return _.u(_.Ou,{data:z.data})}})))}}),_.u("div",{class:_.NO((F.ytCardViewModelInnerPadding=function(){return!q.data().disableBodyContentPadding&&q.data().bodyContent},
F))},_.u(_.zS,{data:function(){return q.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.C0B,
contentListItemViewModel:_.K5X,descriptionPreviewViewModel:_.TH,inlineExpanderViewModel:function(R){return _.u(kCB,{data:R.data,isSelected:q.isSelected})},
linearLayoutViewModel:_.dW,listItemViewModel:_.R1},J&&{contentSectionViewModel:J})))),_.u(_.t,{cond:function(){return b()},
then:function(){return _.u("div",{class:"ytCardViewModelOverlayTrailingAction"},_.u(_.zS,{data:function(){return q.data().trailingAction}},{buttonViewModel:function(R){return _.u(_.Ou,{data:R.data})}}))}}))}))},"Zh");var CgU=_.n(function(q){var N=q.data,b=q.onSelected,y=q.selectedKey,J=q.groupName;q=q.className;var E=_.Z(_.QS(!1,void 0,"mDtSad")),F=E.next().value,R=E.next().value,c=function(){if(y!==void 0){var z=y();return!(!z||N().key!==z)}return F()};
E=_.y0(function(z){b?b(z.currentTarget,N(),J==null?void 0:J()):R(!F())});
return _.u("yt-selectable-item-view-model",{class:_.NO("ytSelectableItemViewModelHost",q,"ytSelectableItemViewModelContainer"),"on:click":E,"prop:checked":c},_.u(_.zS,{data:function(){return N().content}},{cardViewModel:function(z){return _.u(_.fCf,{data:z.data,
isSelected:c})}}))},"$h");_.ICA=_.n(function(q){var N=q.data;var b=q.onSelected;var y=q.selectedKey;var J=q.groupName;var E=function(){return(J==null?void 0:J())||N().key};
return _.u("yt-radio-button-group-view-model",{class:_.NO("ytRadioButtonGroupViewModelHost",q.className)},_.u("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.u(_.zS,{data:function(){return N().radioButtons}},{radioButtonItemViewModel:function(F){return _.u(lCX,{data:F.data,
onSelected:b,selectedKey:y,groupName:E})},
selectableItemViewModel:function(F){return _.u(CgU,{data:F.data,onSelected:b,selectedKey:y,groupName:E})}})))},"ai");var T3A=_.n(function(q){_.WC(function(){if(q.controlledMode()&&q.data().defaultSelected)_.po(Error("ak"));else{var E;!q.controlledMode()&&((E=q.selected)==null?0:E.call(q))&&_.po(Error("bk"))}});
var N=_.Z(_.gJ(function(){if(!q.controlledMode())return q.data().defaultSelected})),b=N.next().value,y=N.next().value,J=function(){if(!q.controlledMode())return b();
var E;return(E=q.selected)==null?void 0:E.call(q)};
return _.u("yt-checkbox-item-view-model",{class:_.NO("ytCheckboxItemViewModelHost",q.className)},_.u(_.R1,{data:function(){var E=q.data(),F=J();return{title:E.text,subtitle:E.subtext,superlabel:E.superlabel,isSelected:!!F,isDisabled:E.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!q.controlledMode()&&y(!b());var E,F;(F=q.onTap)==null||F.call(q,!!J(),q.data(),(E=q.groupName)==null?void 0:E.call(q))},
isCompact:q.isCompact}))},"bi");var soc=_.n(function(q){var N=q.data;var b=q.controlledMode;var y=q.selectedKeys;var J=q.onItemTap;var E=q.groupName;var F=function(){return(E==null?void 0:E())||N().key};
_.WC(function(){b()&&N().defaultSelectedKeys?_.po(Error("ck")):!b()&&(y==null?0:y())&&_.po(Error("dk"))});
q=_.Z(_.gJ(function(){if(!b())return N().defaultSelectedKeys}));
var R=q.next().value,c=q.next().value,z=function(m,r,X){m=[];!b()&&r.key&&(m=XBf(r.key,R()||[]),c(m));J==null||J(r,m,X)};
return _.u("yt-checkbox-group-view-model",{class:_.NO("ytCheckboxGroupViewModelHost")},_.u("fieldset",{class:_.NO("ytCheckboxGroupViewModelFieldset")},_.u(_.zS,{data:function(){return N().checkboxes}},{checkboxItemViewModel:function(m){var r=m.data;
return _.u(T3A,{data:r,controlledMode:!0,selected:function(){var X=b()?(y==null?void 0:y())||[]:R()||[],V=r().key;return V?X.includes(V):!1},
onTap:z,groupName:F})}})))},"ci");var I7=_.n(function(q){var N=_.dj(VLx,_.aU(function(){var R;return(R=q.data())==null?void 0:R.noteFeedEntityKey},"")),b=_.dj(C_W,_.aU(function(){var R;
return(R=q.data())==null?void 0:R.userRatingEntityKey},"")),y=_.x("enable_user_rating_web"),J=function(){var R,c,z;
return((R=N())==null?0:R.contributorNote)?(c=N())==null?void 0:c.contributorNote:(z=q.data())==null?void 0:z.existingNote},E=function(){var R,c;
return!!b()&&!!jPf((R=b())==null?void 0:R.helpfulnessValue,(c=q.data())==null?void 0:c.noteData)};
if(y){var F={};return _.u("yt-note-view-model",{class:_.NO("ytNoteViewModelHostUserRating",(F.ytNoteViewModelHostUserRatingPublishedNote=function(){var R,c,z,m;return((R=q.data())==null?void 0:(c=R.noteData)==null?void 0:c.isPublished)&&!((z=q.data())==null?0:(m=z.noteData)==null?0:m.isUserRatingForm)},F))},_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.u(_.t,{cond:function(){var R,c;
return(R=q.data())==null?void 0:(c=R.noteData)==null?void 0:c.isPinned},
then:function(){return _.u(_.FQ,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.u(_.t,{cond:function(){var R,c;return(R=q.data())==null?void 0:(c=R.noteData)==null?void 0:c.isPublished},
then:function(){return _.u(_.FQ,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.u(_.zS,{data:function(){var R;
return(R=q.data())==null?void 0:R.metadata}},{contentMetadataViewModel:_.l1}),_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var R,c;
return(c=_.v((R=q.data())==null?void 0:R.metadata,_.xWv))==null?void 0:c.delimiter}),_.u(_.Zc,{text:function(){var R;
return(R=J())==null?void 0:R.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.u(_.t,{cond:function(){var R,c;return!((R=q.data())==null?0:(c=R.noteData)==null?0:c.isUserRatingForm)},
then:function(){return _.u(_.zS,{data:function(){var R,c,z,m,r,X,V,G=!!((R=q.data())==null?0:(c=R.noteData)==null?0:c.isPinned);R=E();c=(z=q.data())==null?void 0:z.noteData;z=(m=N())==null?void 0:(r=m.contributorNote)==null?void 0:r.deleteAction;m=(X=q.data())==null?void 0:X.overflowButtonNoteWithRatingOnTapOverride;X=(V=q.data())==null?void 0:V.overflowButton;var w;V=(w=_.v(X,_.FF))==null?void 0:w.accessibilityText;return G?xLU(c,z,V):R?{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:m,accessibilityText:V}}:X}},{buttonViewModel:function(R){return _.u(_.Ou,{data:R.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.u("div",{class:"ytNoteViewModelNoteContent"},_.u(_.Zc,{text:function(){var R;
return(R=J())==null?void 0:R.text}})),_.u(_.t,{cond:function(){var R,c,z,m;
return!((R=q.data())==null?0:(c=R.noteData)==null?0:c.isPinned)&&!((z=q.data())==null?0:(m=z.noteData)==null?0:m.isUserRatingForm)},
then:function(){return _.u(_.t,{cond:E,then:function(){return _.u("div",{class:"ytNoteViewModelUserRatingContainer"},_.u(_.Zc,{text:function(){var R,c;return jPf((R=b())==null?void 0:R.helpfulnessValue,(c=q.data())==null?void 0:c.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.u(_.zS,{data:function(){var R;return(R=q.data())==null?void 0:R.userRatingButton}},{buttonViewModel:function(R){return _.u(_.Ou,{data:R.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.u(_.t,{cond:function(){var R,c,z,m;
return!((R=q.data())==null?0:(c=R.noteData)==null?0:c.ignoreDivider)&&!((z=q.data())==null?0:(m=z.noteData)==null?0:m.isUserRatingForm)},
then:function(){return _.u("div",{class:"ytNoteViewModelDivider"},_.u(_.zS,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(R){return _.u(_.Eq1,{data:R.data})}}))}}))}return _.u("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.u(_.t,{cond:function(){var R,c;return(R=q.data())==null?void 0:(c=R.noteData)==null?void 0:c.isPinned},
then:function(){return _.u(_.FQ,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.u(_.t,{cond:function(){var R,c;return(R=q.data())==null?void 0:(c=R.noteData)==null?void 0:c.isPublished},
then:function(){return _.u(_.FQ,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.u(_.t,{cond:function(){return y},
then:function(){return _.u(_.zS,{data:function(){var R;return(R=q.data())==null?void 0:R.metadata}},{contentMetadataViewModel:function(R){return _.u(_.l1,{data:R.data})}})}}),_.u(_.Zc,{text:function(){var R,c;
return(R=q.data())==null?void 0:(c=R.noteData)==null?void 0:c.headerText}}),_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.u(_.Zc,{text:function(){var R,c;
return(R=q.data())==null?void 0:(c=R.noteData)==null?void 0:c.delimiter}})),_.u(_.Zc,{text:function(){var R,c;
return(R=N())==null?void 0:(c=R.contributorNote)==null?void 0:c.publishedTimeText}})),_.u(_.zS,{data:function(){var R,c,z;
return xLU((R=q.data())==null?void 0:R.noteData,(c=N())==null?void 0:(z=c.contributorNote)==null?void 0:z.deleteAction)}},{buttonViewModel:function(R){return _.u(_.Ou,{data:R.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.u("div",{class:"ytNoteViewModelNoteContent"},_.u(_.Zc,{text:function(){var R,c;
return(R=N())==null?void 0:(c=R.contributorNote)==null?void 0:c.text}})))},"di");
I7.idomCompat=!0;_.P$(_.n(function(q){var N=_.aU(function(){var f;return(f=q.data())==null?void 0:f.flowStateEntityKey},""),b=_.dj(_.n0,N),y=_.dj(VLx,_.aU(function(){var f;
return(f=q.data())==null?void 0:f.noteFeedEntityKey},"")),J=_.Z(_.gJ(function(){var f;
return(f=_.v(q.data().helpfulnessValue,_.gr))==null?void 0:f.defaultSelectedKey})),E=J.next().value,F=J.next().value;
J=_.Z(_.gJ(function(){var f,L,S;return(S=_.v((f=_.v(q.data().helpfulnessValue,_.gr))==null?void 0:(L=f.radioButtons)==null?void 0:L.find(function(W){var M;return((M=_.v(W,Bya))==null?void 0:M.key)===E()}),Bya))==null?void 0:S.value}));
var R=J.next().value,c=J.next().value;J=_.Z(_.gJ(function(){var f;return(f=_.v(q.data().helpfulReasons,e0f))==null?void 0:f.defaultSelectedKeys}));
var z=J.next().value,m=J.next().value;J=_.Z(_.gJ(function(){var f;return(f=_.v(q.data().notHelpfulReasons,e0f))==null?void 0:f.defaultSelectedKeys}));
var r=J.next().value,X=J.next().value,V=function(f,L){F(L.key);c(L.value);m([]);X([])},G=function(){var f,L;
return((f=R())==null?void 0:f.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((L=R())==null?void 0:L.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},w=function(){var f,L;
return((f=R())==null?void 0:f.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((L=R())==null?void 0:L.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},D=function(f){vHc(f.key,z,m)},k=function(f){vHc(f.key,r,X)};
_.WC(function(){var f,L,S;Urf((f=q.data())==null?void 0:(L=f.userRatingFormSchema)==null?void 0:L.id,{isValid:function(){return!!E()},
formData:function(){var W=R(),M=Y7N(z(),_.v(q.data().helpfulReasons,e0f)),qe=Y7N(r(),_.v(q.data().notHelpfulReasons,e0f));W={helpfulnessValue:W==null?void 0:W.noteHelpfulnessValue};if(M){W.helpfulReasons=[];M=_.Z(M);for(var RJ=M.next();!RJ.done;RJ=M.next()){RJ=RJ.value;var tZ=void 0;if((tZ=RJ)==null?0:tZ.noteHelpfulReason)tZ=void 0,W.helpfulReasons.push((tZ=RJ)==null?void 0:tZ.noteHelpfulReason)}}if(qe)for(W.notHelpfulReasons=[],qe=_.Z(qe),M=qe.next();!M.done;M=qe.next())if(M=M.value,RJ=void 0,(RJ=
M)==null?0:RJ.noteNotHelpfulReason)RJ=void 0,W.notHelpfulReasons.push((RJ=M)==null?void 0:RJ.noteNotHelpfulReason);return{userRatingFormData:W}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(S=_.v(b(),Tyf))==null?void 0:S.submitFormParams},onSubmitResult:function(){var W,M=(W=_.v(b(),Tyf))==null?void 0:W.userRatingEntityKey,qe;W={key:M,helpfulnessValue:(qe=R())==null?void 0:qe.noteHelpfulnessValue};M&&_.nk(_.$e("contextNoteUserRatingEntityPayload",M,W));var RJ;M=(RJ=q.data())==null?void 0:RJ.viewNoteFlowStepId;var tZ;if((tZ=y())==null||!tZ.contributorNote){var wA;M=(wA=q.data())==null?void 0:wA.zeroStateFlowStepId}(RJ=
Object.assign({},b()))&&M&&(RJ.currentStepId=M,RJ.stepIdStack=[M],_.nk(_.$e("flowStateEntity",N(),RJ)));var rA;(RJ=(rA=q.data())==null?void 0:rA.ratingSubmittedSnackbarCommand)&&_.Kt(RJ)},
disableDuringSubmission:!0})});
return _.u("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.u(_.zS,{data:function(){var f=_.v(b(),Tyf);if(f){var L;var S={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:f==null?void 0:(L=f.note)==null?void 0:L.headerText}]}],delimiter:"\u2022"}},existingNote:f.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else S=void 0;return S}},{noteViewModel:function(f){return _.u("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.u(I7,{data:f.data}))}}),_.u(_.zS,{data:function(){var f;
return(f=q.data())==null?void 0:f.helpfulnessValue}},{radioButtonGroupViewModel:function(f){return _.u("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.u(_.ICA,{data:f.data,
onSelected:V,selectedKey:E}))}}),_.u(_.t,{cond:G,
then:function(){return _.u("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.u("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.u(_.Zc,{text:function(){var f;return(f=q.data())==null?void 0:f.helpfulReasonQuestion}})),_.u(_.zS,{data:function(){var f;
return(f=q.data())==null?void 0:f.helpfulReasons}},{checkboxGroupViewModel:function(f){return _.u(soc,{data:f.data,
onItemTap:D,selectedKeys:z,controlledMode:!0})}}))}}),_.u(_.t,{cond:w,
then:function(){return _.u("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.u("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.u(_.Zc,{text:function(){var f;return(f=q.data())==null?void 0:f.notHelpfulReasonQuestion}})),_.u(_.zS,{data:function(){var f;
return(f=q.data())==null?void 0:f.notHelpfulReasons}},{checkboxGroupViewModel:function(f){return _.u(soc,{data:f.data,
onItemTap:k,selectedKeys:r,controlledMode:!0})}}))}}),_.u(_.t,{cond:function(){return!G()&&!w()},
then:function(){return _.u(_.zS,{data:function(){var f;return(f=q.data())==null?void 0:f.helpfulNoteFeatures}},{alertBannerViewModel:function(f){return _.u("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.u(_.cCM,{data:f.data}))}})}}))},"ei"),"yt-note-user-rating-view-model",{props:{data:_.F5}});_.P$(I7,"yt-note-view-model",{props:{data:_.F5}});_.P$(_.n(function(q){var N=_.dj(VLx,_.aU(function(){var b;return(b=q.data())==null?void 0:b.noteFeedEntityKey},""));
return _.u("yt-notes-wrapper-view-model",{class:_.NO("ytNotesWrapperViewModelHost")},_.u(_.t,{cond:function(){var b,y,J;return!((b=q.data())==null||!b.existingNotes)||!((y=q.data())==null||!y.currentNote)&&!((J=N())==null||!J.contributorNote)},
then:function(){return _.u(_.rV,null,_.u(_.zS,{data:function(){var b,y,J,E;return((y=_.v((b=q.data())==null?void 0:b.currentNote,s$a))==null?0:(J=y.noteData)==null?0:J.isPublished)?(E=q.data())==null?void 0:E.currentNote:void 0}},{noteViewModel:function(b){return _.u(I7,{data:b.data})}}),_.u(_.zS,{data:function(){var b;
return(b=q.data())==null?void 0:b.existingNotes}},{noteViewModel:function(b){var y=b.data;
return _.u(_.t,{cond:function(){var J,E;return(J=y())==null?void 0:(E=J.noteData)==null?void 0:E.isPublished},
then:function(){return _.u(I7,{data:y})}})}}),_.u(_.zS,{data:function(){var b,y,J,E,F;
return((y=_.v((b=q.data())==null?void 0:b.currentNote,s$a))==null?0:(J=y.noteData)==null?0:J.isPublished)||(E=N())==null||!E.contributorNote?void 0:(F=q.data())==null?void 0:F.currentNote}},{noteViewModel:function(b){return _.u(I7,{data:b.data})}}),_.u(_.zS,{data:function(){var b;
return(b=q.data())==null?void 0:b.existingNotes}},{noteViewModel:function(b){var y=b.data;
return _.u(_.t,{cond:function(){var J,E;return!((J=y())==null?0:(E=J.noteData)==null?0:E.isPublished)},
then:function(){return _.u(I7,{data:y})}})}}))},
else:function(){return _.u(_.zS,{data:function(){var b;return(b=q.data())==null?void 0:b.zeroStateData}},{contributorZeroStateViewModel:ODB})}}))},"fi"),"yt-notes-wrapper-view-model",{props:{data:_.F5}});var TZ=_.n(function(q){var N=_.Sl(q,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0,timePickerData:void 0}),b=N.label,y=N.text,J=N.placeholder,E=N.hint;q=N.rows;var F=N.overflowStyle,R=N.outline,c=N.disabled,z=N.disableNewLines,m=N.characterLimit,r=N.validation,X=N.onInput,V=N.timePickerData,G=_.dI("textarea");N=_.Z(_.gJ(function(){return y()}));
var w=N.next().value,D=N.next().value;N=_.Z(_.QS(!1,void 0,"q1mZCd"));var k=N.next().value,f=N.next().value,L=function(){f(!0)},S=function(){f(!1)};
_.WC(function(){var Sn=G.value,YE=F(),xE=w();YE==="expand-vertically"&&xE&&QPK(Sn);G.value.addEventListener("focusin",L);G.value.addEventListener("focusout",S)});
_.W1(function(){G.value.removeEventListener("focusin",L);G.value.removeEventListener("focusout",S)});
var W=function(){var Sn;return(Sn=r())==null?void 0:Sn.validate(w())},M=function(){return m()&&!W()&&w().length>m().maxChars},qe=function(){return!!W()||M()};
N=_.y0(function(Sn){if(!Sn.currentTarget)return!1;Sn=Sn.currentTarget;D(Sn.value);F()==="expand-vertically"&&QPK(Sn);X==null||X(Sn.value);return!0});
var RJ=_.y0(function(Sn){z()&&Sn.key==="Enter"&&Sn.preventDefault();return!1}),tZ=_.y0(function(){G.value.focus()}),wA=function(){return J()||b()},rA={},xD={},IJ={},sJ={};
return _.u("textarea-shape",{class:_.NO("ytStandardsTextareaShapeHost",(rA.ytStandardsTextareaShapeTimePicker=function(){var Sn;return(Sn=V())==null?void 0:Sn.useTimePickerStyles},rA))},_.u("div",{class:_.NO("ytStandardsTextareaShapeTextareaContainer",(xD.ytStandardsTextareaShapeTextareaContainerOutline=R,xD.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=c,xD.ytStandardsTextareaShapeTextareaContainerOutlineError=qe,xD)),
"on:click":tZ},_.u("label",{class:_.NO("ytStandardsTextareaShapeLabel",(IJ.ytStandardsTextareaShapeLabelFocused=k,IJ.ytStandardsTextareaShapeLabelDisabled=c,IJ.ytStandardsTextareaShapeLabelError=function(){return qe()&&!c()},IJ.ytStandardsTextareaShapeLabelHidden=function(){return!k()&&!w()&&!!wA()},IJ))},b),_.u("div",{class:_.NO("ytStandardsTextareaShapePlaceholder",(sJ.ytStandardsTextareaShapePlaceholderVisible=function(){return!k()&&!w()},sJ)),
"aria-hidden":"true"},wA),_.u("textarea",{el:G,class:"ytStandardsTextareaShapeTextarea",rows:q,disabled:c,placeholder:wA,"on:input":N,"on:keydown":RJ},w)),_.u(_.t,{cond:function(){return E()&&!qe()},
then:function(){var Sn={};return _.u("div",{class:_.NO("ytStandardsTextareaShapeHint",(Sn.ytStandardsTextareaShapeHintDisabled=c,Sn))},_.u("div",{class:"ytStandardsTextareaShapeHintHintMessage"},E))}}),_.u(_.t,{cond:W,
then:function(){return _.u(nRU,{disabled:c},_.u("div",{class:"ytStandardsTextareaShapeErrorMessage"},W))}}),_.u(_.t,{cond:m,
then:function(Sn){return _.u(_.t,{cond:M,then:function(){return _.u(nRU,{disabled:c},_.u("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return Sn().errorMessage}),_.u("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return w().length+"/"+Sn().maxChars}))}})}}))},"gi");
TZ.idomCompat={callbacks:{onInput:!0}};var nRU=_.n(function(q){var N={};return _.u("div",{class:_.NO("ytStandardsTextareaShapeError",(N.ytStandardsTextareaShapeErrorDisabled=q.disabled,N)),role:"alert"},_.u(_.FQ,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),q.children)},"hi");_.aCC=_.n(function(q){var N=q.data;return _.u("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.u(TZ,{text:q.text,label:function(){var b;return(b=N().contentProperties)==null?void 0:b.labelText},
placeholder:function(){var b;return(b=N().contentProperties)==null?void 0:b.placeholderText},
hint:function(){var b;return(b=N().contentProperties)==null?void 0:b.hintText},
outline:function(){var b;return!((b=N().displayProperties)==null?0:b.hideBorder)},
overflowStyle:function(){var b;return((b=N().displayProperties)==null?0:b.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:q.disabled,disableNewLines:function(){var b;return(b=N().displayProperties)==null?void 0:b.disableNewLines},
onInput:q.onInput,characterLimit:q.characterLimit,validation:q.validation,rows:function(){var b;return(b=N().displayProperties)==null?void 0:b.rows}}))},"ii");_.SRU=_.n(function(q){var N=q.data;return _.u("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.u(TZ,{text:q.text,label:function(){var b;return(b=N().contentProperties)==null?void 0:b.labelText},
placeholder:function(){var b;return(b=N().contentProperties)==null?void 0:b.placeholderText},
hint:function(){var b;return(b=N().contentProperties)==null?void 0:b.hintText},
outline:function(){var b;return!((b=N().displayProperties)==null?0:b.hideBorder)},
overflowStyle:function(){var b;return((b=N().displayProperties)==null?0:b.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var b;return(b=N().displayProperties)==null?void 0:b.disableNewLines},
onInput:q.onInput,characterLimit:q.characterLimit,validation:q.validation,rows:function(){var b;return(b=N().displayProperties)==null?void 0:b.rows}}))},"ji");var W5W=_.n(function(q){var N=_.Z(_.gJ(function(){var tZ,wA;return((tZ=q.data().structuredContextNoteFormSchema)==null?0:(wA=tZ.initialValues)==null?0:wA.noteBody)?q.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),b=N.next().value,y=N.next().value;
N=_.Z(_.gJ(function(){q.data();return!1}));
var J=N.next().value,E=N.next().value;N=_.Z(_.gJ(function(){q.data();return!1}));
var F=N.next().value,R=N.next().value;N=_.Z(_.gJ(function(){var tZ,wA;return((tZ=q.data().structuredContextNoteFormSchema)==null?0:(wA=tZ.initialValues)==null?0:wA.timestamp)?q.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var c=N.next().value,z=N.next().value;N=_.Z(_.gJ(function(){q.data();return!1}));
var m=N.next().value,r=N.next().value;N=_.Z(_.gJ(function(){var tZ,wA;return((tZ=q.data().structuredContextNoteFormSchema)==null?0:(wA=tZ.initialValues)==null?0:wA.sources)?[q.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var X=N.next().value,V=N.next().value;N=_.Z(_.gJ(function(){q.data();return!1}));
var G=N.next().value,w=N.next().value;N=_.Z(_.gJ(function(){return!1}));
var D=N.next().value,k=N.next().value;_.WC(function(){var tZ;_.fmB((tZ=q.data().structuredContextNoteFormSchema)==null?void 0:tZ.id,{isSubmitting:D,onSubmit:function(){k(!0);var wA=ULa(b(),c(),X(),q.data()),rA=_.tz().resolve(_.rO);wA&&rA&&rA.resolveCommand(wA,{commandController:{onSuccess:function(){k(!1)}}})},
isValid:function(){return J()&&!F()&&!m()&&!G()}})});
var f=function(tZ){if(tZ!==void 0&&(y(tZ),!J()&&tZ.length>0&&E(!0),J())){var wA=iAf(q.data());if(wA){var rA=wA.minLength;wA=wA.maxLength;rA&&tZ.length<rA?R(!0):wA&&tZ.length>wA?R(!0):R(!1)}}},L=function(tZ){if(tZ!==void 0){z(tZ);
if(tZ.length>0){var wA,rA,xD,IJ,sJ=KHK((wA=q.data())==null?void 0:(rA=wA.structuredContextNoteFormSchema)==null?void 0:(xD=rA.fieldSchemas)==null?void 0:(IJ=xD.timestamp)==null?void 0:IJ.validationSchema);if(sJ&&(wA=sJ.regex)&&!(new RegExp(wA)).test(tZ)){r(!0);return}}r(!1)}},S=function(tZ){if(tZ!==void 0){var wA=tZ.split(/[ \n]/).map(function(rA){return rA.trim()});
V(wA);if(tZ.length>0)for(tZ=_.Z(wA),wA=tZ.next();!wA.done;wA=tZ.next())if(!kjx(wA.value)){w(!0);return}w(!1)}},W=function(){return{validate:function(tZ){if(J()){var wA=iAf(q.data());
if(wA){var rA=wA.minLength;wA=wA.translations;if(rA&&tZ.length<rA)return wA==null?void 0:wA.minLengthErrorMessage}}}}},M=function(){var tZ=iAf(q.data()),wA=tZ==null?void 0:tZ.maxLength,rA;
tZ=tZ==null?void 0:(rA=tZ.translations)==null?void 0:rA.maxLengthErrorMessage;if(wA&&tZ)return{maxChars:wA,errorMessage:tZ}},qe=function(){return{validate:function(tZ){if(tZ){var wA,rA,xD,IJ,sJ=KHK((wA=q.data())==null?void 0:(rA=wA.structuredContextNoteFormSchema)==null?void 0:(xD=rA.fieldSchemas)==null?void 0:(IJ=xD.timestamp)==null?void 0:IJ.validationSchema);
if(sJ&&(wA=sJ.regex,sJ=sJ.translations,wA&&!(new RegExp(wA)).test(tZ)))return sJ==null?void 0:sJ.regexErrorMessage}}}},RJ=function(){return{validate:function(tZ){if(tZ){var wA,rA,xD,IJ,sJ=hTK((wA=q.data())==null?void 0:(rA=wA.structuredContextNoteFormSchema)==null?void 0:(xD=rA.fieldSchemas)==null?void 0:(IJ=xD.sources)==null?void 0:IJ.validationSchema);
if(sJ&&(wA=sJ.translations,wA==null?0:wA.selectedErrorMessage))for(tZ=tZ.split(/[ \n]/).map(function(Sn){return Sn.trim()}),tZ=_.Z(tZ),rA=tZ.next();!rA.done;rA=tZ.next())if(!kjx(rA.value))return tZ=void 0,(tZ=wA)==null?void 0:tZ.selectedErrorMessage}}}};
return _.u("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.u("div",{class:"ytStructuredContextNoteViewModelTextField"},_.u(_.zS,{data:function(){var tZ;return(tZ=q.data())==null?void 0:tZ.noteContents}},{textFormFieldViewModel:function(tZ){return _.u(_.SRU,{data:tZ.data,
onInput:f,validation:W,characterLimit:M})},
textFieldViewModel:function(tZ){return _.u(_.aCC,{data:tZ.data,onInput:f,validation:W,characterLimit:M})}})),_.u("div",{class:"ytStructuredContextNoteViewModelTextField"},_.u(_.zS,{data:function(){var tZ;
return(tZ=q.data())==null?void 0:tZ.noteTimestamp}},{textFormFieldViewModel:function(tZ){return _.u(_.SRU,{data:tZ.data,
onInput:L,validation:qe})},
textFieldViewModel:function(tZ){return _.u(_.aCC,{data:tZ.data,onInput:L,validation:qe})}})),_.u("div",{class:"ytStructuredContextNoteViewModelTextField"},_.u(_.zS,{data:function(){var tZ;
return(tZ=q.data())==null?void 0:tZ.noteSources}},{textFormFieldViewModel:function(tZ){return _.u(_.SRU,{data:tZ.data,
onInput:S,validation:RJ})},
textFieldViewModel:function(tZ){return _.u(_.aCC,{data:tZ.data,onInput:S,validation:RJ})}})))},"ki");
W5W.idomCompat=!0;_.P$(W5W,"yt-structured-context-note-view-model",{props:{data:_.F5}});var L5K=_.n(function(q){var N=_.Z(_.gJ(function(){var E;if((E=q.controlled)==null?0:E.call(q))return[];var F;return(((F=q.data())==null?void 0:F.chips)||[]).map(function(R){R=_.v(R,_.RM);if(R==null?0:R.selected)return fpa(R.chipValue)}).filter(function(R){return R!==void 0})})),b=N.next().value,y=N.next().value,J=function(E){var F=fpa(E.chipValue);
if(F!==void 0){var R;if((R=q.controlled)==null?0:R.call(q))return void q.controlled().onTap(F);E=b().includes(F)?[].concat(_.a9(b().filter(function(z){return z!==F}))):[].concat(_.a9(b()),[F]);
y(E);var c;if((c=q.uncontrolled)==null?0:c.call(q))q.uncontrolled().onUpdate(E)}};
return _.u("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.u(_.Tf,{each:function(){return q.data().chips||[]}},function(E){return _.u("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.u(_.DsF,{data:function(){return _.v(E,_.RM)},
selected:function(){var F;if(F=_.v(E,_.RM)){var R=fpa(F.chipValue);if(R!==void 0){var c;F=((c=q.controlled)==null?0:c.call(q))?q.controlled().selectedValues.includes(R):b().includes(R)}else F=void 0}else F=!1;return F},
callback:J}))}))},"li");var pTA=_.n(function(q){var N=q.data;var b=function(){var R;return((R=N())==null?void 0:R.flowStateKey)||""},y=_.dj(_.n0,b),J=function(){var R;
return(R=_.v(y(),nUf))==null?void 0:R.chips},E=function(R){if(R!==void 0){var c=J()||[];
c=c.find(function(z){return z===R})?c.filter(function(z){return z!==R}):[].concat(_.a9(c),[R]);
c=Object.assign({},y(),{feedbackFormFlowState:Object.assign({},_.v(y(),nUf),{chips:c})});_.nk(_.$e("flowStateEntity",b(),c))}},F=function(){var R;
return _.v((R=N())==null?void 0:R.inputBox,aZB)};
q=_.vE(function(R){var c=F();c=!(c==null?0:c.maxChars)||R.length<=c.maxChars;R=Object.assign({},y(),{feedbackFormFlowState:Object.assign({},_.v(y(),nUf),{detail:R}),abuseReportFlowState:Object.assign({},_.v(y(),Eg),{navigationEnabled:c})});_.nk(_.$e("flowStateEntity",b(),R))},150);
return _.u("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.u("div",{class:"ytFeedbackFormViewModelChips"},_.u(_.zS,{data:function(){var R;return(R=N())==null?void 0:R.chipSelection}},{chipSelectionFormFieldViewModel:function(R){return _.u(L5K,{data:R.data,
controlled:function(){return{selectedValues:J()||[],onTap:E}}})}})),_.u("div",{class:"ytFeedbackFormViewModelInputBox"},_.u(TZ,{text:function(){var R;
return(R=_.v(y(),nUf))==null?void 0:R.detail},
placeholder:function(){var R;return((R=F())==null?void 0:R.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var R=F();if(R&&R.maxChars)return{maxChars:R.maxChars,errorMessage:R.maxCharsExceededErrorMessage||""}},
onInput:q})),_.u("div",{class:"ytFeedbackFormViewModelFooterText"},_.u(_.Zc,{text:function(){return N().footerText}})))},"mi");
pTA.idomCompat=!0;_.P$(pTA,"yt-feedback-form-view-model",{props:{data:_.F5}});var PgB=_.n(function(q){var N=q.data;var b=_.dj(khK,function(){return N().flowStateKey||""}),y=function(){var J;
_.Kt((J=_.v(b(),Eg))==null?void 0:J.navigationCommand)};
return _.u("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.u("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.u(_.zS,{data:function(){return N().cancelButton}},{buttonViewModel:function(J){return _.u(_.Ou,{data:J.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:y})}}),_.u(_.zS,{data:function(){var J;
if(N().navButton){var E=Object;var F=E.assign,R=_.v(N().navButton,_.FF),c=((J=_.v(b(),Eg))==null?0:J.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",z,m;J=_.v((z=_.v(b(),Eg))==null?void 0:z.navigationCommand,_.QI);z=(m=_.v(J,_.b_))==null?void 0:m.url;E={buttonViewModel:F.call(E,{},R,{state:c,iconName:z?"OPEN_IN_NEW":""})}}else E=void 0;return E}},{buttonViewModel:function(J){return _.u(_.Ou,{data:J.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:y})}})))},"ni");
PgB.idomCompat=!0;_.P$(PgB,"yt-report-form-bottom-bar-view-model",{props:{data:_.F5}});var MNN=_.n(function(q){var N=q.nextStep;return _.u("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.u("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.u(_.FQ,{icon:function(){return N().iconName||""}})),_.u("div",null,_.u(_.Zc,{text:function(){return N().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"oi"),oRU=_.n(function(q){var N=q.data;
var b,y=(b=_.tz().resolve(_.$f(_.ft)))==null?void 0:b(),J=_.dj(_.n0,function(){return N().flowStateKey||""});
return _.u("yt-report-form-confirmation-page-view-model",{class:function(){var E;return((E=_.v(J(),Eg))==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.u("div",{class:function(){var E;
return((E=_.v(J(),Eg))==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.u(_.s_,{data:function(){return y&&N().imageDark?N().imageDark:N().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.u("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.u("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return N().confirmationHeader}),_.u("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.u(_.Zc,{text:function(){return N().confirmationText}})),_.u("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.u(_.Zc,{text:function(){return N().lawEnforcementText}})),
_.u("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return N().whatToExpectHeader}),_.u(_.t,{cond:function(){return N().nextSteps},
then:function(E){return _.u("div",null,_.u(_.Tf,{each:E},function(F){return _.u(MNN,{nextStep:F})}))}}),_.u(_.t,{cond:function(){return N().legalReportText},
then:function(E){return _.u("div",null,_.u(_.Zc,{text:E,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"pi");
oRU.idomCompat=!0;_.P$(oRU,"yt-report-form-confirmation-page-view-model",{props:{data:_.F5}});var Aip=_.n(function(q){var N=q.data;var b=function(){var E;return((E=_.v(N().inputBox,aZB))==null?void 0:E.maxChars)||500},y=function(){return N().flowStateKey||""},J=_.dj(_.n0,y);
q=_.vE(function(E){E=Object.assign({},J(),{flowFormState:{isValid:E.length<=b()},abuseReportFlowState:{userComments:E,navigationEnabled:!(E.length>b()),isReportFormDirty:!0}});_.sk().dispatch(_.GK("flowStateEntity",y(),E))},150);
_.WC(function(){var E=Object.assign({},J(),{flowFormState:{isValid:!0}});_.sk().dispatch(_.GK("flowStateEntity",y(),E))});
return _.u("yt-report-form-details-page-view-model",{class:function(){var E;return((E=_.v(J(),Eg))==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.u("h1",{class:function(){var E;
return((E=_.v(J(),Eg))==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return N().detailsPageHeader}),_.u("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.u(_.Zc,{text:function(){return N().bodyText}})),_.u("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.u(TZ,{label:function(){var E;
return((E=_.v(N().inputBox,aZB))==null?void 0:E.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var E;return{errorMessage:((E=_.v(N().inputBox,aZB))==null?void 0:E.maxCharsExceededErrorMessage)||"",maxChars:b()}},
onInput:q})))},"qi");
Aip.idomCompat=!0;_.P$(Aip,"yt-report-form-details-page-view-model",{props:{data:_.F5}});var eSC=_.n(function(q){var N=q.data;var b=function(){return N().flowStateKey||""},y=_.dj(_.n0,b),J=function(){return _.v(y(),Eg)};
return _.u("yt-report-form-reason-select-page-view-model",{class:function(){var E;return((E=J())==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.u("h1",{class:function(){var E;
return((E=J())==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return N().pageHeader}),_.u("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.u(_.Zc,{text:function(){return N().bodyText}})),_.u("div",{class:function(){var E;
return((E=J())==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.u(_.ICA,{data:function(){return _.v(N().radioButtonGroup,_.gr)},
onSelected:function(E,F){E=Object.assign({},y(),{abuseReportFlowState:Object.assign({},J(),{reasonKey:F.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:F.command})});_.nk(_.$e("flowStateEntity",b(),E))},
selectedKey:function(){var E;return(E=J())==null?void 0:E.reasonKey},
groupName:"report-form-reason-select-page"})))},"ri");
eSC.idomCompat=!0;_.P$(eSC,"yt-report-form-reason-select-page-view-model",{props:{data:_.F5}});var B3B=_.n(function(q){var N=q.data;var b,y=(b=_.tz().resolve(_.$f(_.ft)))==null?void 0:b();return _.u("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.u("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.u(_.s_,{data:function(){return y&&N().imageDark?N().imageDark:N().image},
alt:""})),_.u("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.u("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return N().header}),_.u(_.Zc,{text:function(){return N().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"si");
B3B.idomCompat=!0;_.P$(B3B,"yt-report-form-sign-in-page-view-model",{props:{data:_.F5}});_.P$(_.n(function(q){var N=q.data;var b=_.uR(_.fHo.talkToRecsStateSelector),y=function(){return N().titleSuperscript},J=function(){return N().answersShelf},E=function(){return N().videoShelf},F=function(){var qe;
return(qe=N().textInputPlaceholder)==null?void 0:qe.content},R=function(){return N().showOpenTextInput},c=function(){var qe;
return(qe=N().textInputValue)==null?void 0:qe.content},z=function(){return N().isMultiTurnFlow?N().resetButtonViewModel:void 0},m="",r=function(){return N().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
q=_.Z(_.QS("",void 0,"wOgRlf"));var X=q.next().value,V=q.next().value;q=_.Z(_.QS(!1,void 0,"TYP5Ff"));var G=q.next().value,w=q.next().value,D=function(){return{state:G()||X()?"active":"disabled",disabled:!(G()||X())}};
_.SI(function(){if(R()){c()&&V(c());var qe;if(!z()&&((qe=b())==null?0:qe.stepStates)){var RJ;qe=Object.keys((RJ=b())==null?void 0:RJ.stepStates);RJ=qe[qe.length-1];var tZ,wA;RJ=(tZ=b().stepStates[RJ])==null?void 0:(wA=tZ.userQuery)==null?void 0:wA.userQuery;_.nk(_.kyX());RJ&&k(RJ)}}});
var k=function(qe){var RJ=N().onUpdateText;RJ&&_.Kt(RJ,{form:{userQuery:qe}});V(qe)},f=_.vE(function(qe){k(qe.target.value.trim())},150),L=_.y0(function(qe){var RJ;
m=(RJ=qe.target.value)==null?void 0:RJ.trim();f(qe);return!1}),S=_.y0(function(qe){qe.key==="Enter"&&(G()||X())&&(k(qe.target.value.trim()),M());
return!1}),W=function(qe,RJ){w(RJ);
if(RJ){if(N().isMultiTurnFlow&&!m){var tZ;k((tZ=qe==null?void 0:qe.text)!=null?tZ:"")}N().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&M()}else V(m)},M=function(){var qe=void 0,RJ=_.v(N().nextButtonViewModel,_.FF),tZ,wA;
if(RJ==null?0:(tZ=RJ.loggingDirectives)==null?0:(wA=tZ.clientVeSpec)==null?0:wA.uiType){var rA,xD;qe=_.bx((rA=RJ.loggingDirectives)==null?void 0:(xD=rA.clientVeSpec)==null?void 0:xD.uiType)}(RJ=N().onNextStepCommand)&&_.Kt(RJ,{clickedVisualElement:qe})};
q={};return _.u("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.u("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.u(_.zS,{data:function(){return N().topCornerButton}},{buttonViewModel:_.Ou})),_.u("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.u("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.u(_.Zc,{text:function(){return N().title}}),_.u(_.t,{cond:y,
then:function(){return _.u("sup",{class:"ytwTalkToRecsSuperScript"},_.u(_.Zc,{text:y}))}})),_.u("div",{class:"ytwTalkToRecsSubtitle"},_.u(_.Zc,{text:function(){return N().subtitle}})),_.u("div",{class:"ytwTalkToRecsResultsShelf"},_.u(_.t,{cond:J,
then:function(){return _.u(_.zS,{data:J},{chipsShelfViewModel:function(qe){return _.u("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.u(_.s8,{data:qe.data,callback:W,selectionBehavior:r}))}})}}),_.u(_.t,{cond:E,
then:function(){return _.u(_.zS,{data:E},{horizontalShelfViewModel:function(qe){return _.u("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.u(_.uF,{data:qe.data,thumbnailAspectRatio:0}))}})}})),_.u("div",{class:_.NO("ytwTalkToRecsRefinementContainer",(q.ytwTalkToRecsBottomMargin=function(){return N().isMultiTurnFlow},q))},_.u(_.t,{cond:R,
then:function(){return _.u("div",{class:"ytwTalkToRecsUserInputBox"},_.u("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:F,value:X,"on:input":L,"on:keyup":S,maxlength:200}))}}),_.u(_.zS,{data:function(){return N().isMultiTurnFlow?N().nextButtonViewModel:void 0}},{buttonViewModel:function(qe){return _.u("div",{class:"ytwTalkToRecsFlowControlButtons"},_.u(_.Ou,{data:qe.data,
buttonOverrides:D}))}}),_.u(_.zS,{data:z},{buttonViewModel:function(qe){return _.u("div",{class:"ytwTalkToRecsFlowControlButtons"},_.u(_.Ou,{data:qe.data,
onClick:function(){var RJ=_.v(N().resetButtonViewModel,_.FF);k(X());(RJ=RJ==null?void 0:RJ.onTap)&&_.Kt(RJ)}}))}}))))},"ui"),"yt-talk-to-recs-view-model",{props:{data:_.F5}});var CtC={sources:[{clientResource:{imageName:"CHECK"}}]};_.HDA=_.n(function(q){var N=_.dI("div");q=_.Sl(q,{error:void 0});var b=q.data,y=q.error,J=q.onSelected;q=_.Z(_.gJ(function(){return sPa(b())}));
var E=q.next().value,F=q.next().value;WHK(b,function(X){F(X);var V,G,w=TdC((V=b().options)==null?void 0:(G=V[X])==null?void 0:G.value,b().type);J==null||J(w);N.value.focus()});
q=_.y0(function(){if(!b().disabled){var X=b(),V=E(),G=N.value;X.options&&(X=Ipf(X.options,V,X.label),_.tz().resolve(_.oQ).openSheet({viewModel:X},G))}});
var R=_.a9A(),c=function(){return!!y()},z=function(){return!!b().disabled},m={},r={};
return _.u("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.u("div",{class:_.NO("ytDropdownViewModelDropdownContainer",(m.ytDropdownViewModelDropdownContainerErrorBorder=c,m.ytDropdownViewModelDropdownContainerDisabled=z,m)),"on:click":q,el:N,role:"combobox",tabindex:0,"on:keydown":R,"aria-invalid":c,"aria-disabled":z,"aria-describedby":function(){return c()?"dropdown-view-model-error":void 0}},_.u("div",{class:"ytDropdownViewModelText"},nHB(b,c,E),apB(b,E)),_.u("div",{class:_.NO("ytDropdownViewModelChevronDown",
(r.ytDropdownViewModelChevronDownDisabled=z,r))},_.u(_.FQ,{icon:"CHEVRON_DOWN"}))),S7C(b,y))},"vi");_.P$(_.n(function(q){var N=q.data;var b=function(J){var E=pBB(N());E.videoMetadata||(E.videoMetadata={});E.videoMetadata.sponsorshipsMetadata||(E.videoMetadata.sponsorshipsMetadata={});E.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(J)},y=function(J){var E=pBB(N());
E.scheduledRedirectMetadata||(E.scheduledRedirectMetadata={});E.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(J)};
return _.u("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.u("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.u("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.u(_.Zc,{text:function(){return N().title}}),_.u(_.FQ,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.u(_.Zc,{text:function(){return N().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.u(_.zS,{data:function(){return N().tierChoices}},{dropdownViewModel:function(J){return _.u("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.u(_.HDA,{data:J.data,
onSelected:b}))}}),_.u(_.zS,{data:function(){return N().startTimeChoices}},{dropdownViewModel:function(J){return _.u("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.u(_.HDA,{data:J.data,
onSelected:y}))}}),_.u(_.Zc,{text:function(){return N().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.u("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.u(_.zS,{data:function(){return N().scheduleButton}},{panelFooterViewModel:_.Ch})))},"wi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.F5}});_.P$(_.n(function(q){var N=q.data;q=q.className===void 0?"":q.className;var b=_.dj(khK,function(){return N().flowStateEntityKey||""}),y={};
y=_.NO("ytFlowBottomBarViewModelFlowBottomBarButtons",(y.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return N().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||N().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},y));
var J={},E=_.NO("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",y,(J.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return N().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},J.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return N().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},J));
J={};var F=_.NO("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",y,(J.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return N().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},J.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return N().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},J));
y={};y=_.NO("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(y.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return N().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},y.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return N().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},y.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return N().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
y));
q=_.NO("ytFlowBottomBarViewModelHost",q);return _.u("yt-flow-bottom-bar-view-model",{class:q},_.u(_.t,{cond:function(){var R;return(R=N())==null?void 0:R.textSection},
then:function(R){return _.u("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.u(_.Zc,{text:R}))}}),_.u("div",{class:y},_.u(_.zS,{data:function(){return N().secondaryButton}},{buttonViewModel:function(R){return _.u(_.Ou,{data:R.data,
className:F})}}),_.u(_.zS,{data:function(){return N().primaryButton}},{buttonViewModel:function(R){return _.u(_.Ou,{data:R.data,
className:E,buttonOverrides:function(){var c;return{disabled:!((c=b())==null||!c.primaryButtonDisabled)}}})}})))},"xi"),"yt-flow-bottom-bar-view-model",{props:{data:_.F5,
className:_.W$}});var qvf="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),sg=function(){var q=_.C.apply(this,arguments)||this;q.enableScrollingFix=!0;q.bottomBar=!1;q.fitContent=!1;return q};
_.Y(sg,_.C);_.g=sg.prototype;_.g.ready=function(){_.x("enable_pdp_icon_prefetch")&&_.KjN(_.tz().resolve(_.Vj),0,qvf)};
_.g.focus=function(q){this.topBar?_.Zy(this.topBar,q):this.paperDialog.focus(q)};
_.g.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19457_scroller&&(this.JSC$19457_scroller.dialogElement=this.paperDialog,this.JSC$19457_scroller.attached&&typeof this.JSC$19457_scroller.attached==="function"&&this.JSC$19457_scroller.attached())};
_.g.onDataChanged=function(){var q;this.fitContent=!((q=this.data)==null||!q.fitContent);var N;this.bottomBar=!((N=this.data)==null||!N.bottomBar)};
_.g.onProgressChanged=function(){var q,N,b=((N=(q=this.data)==null?void 0:q.progress)!=null?N:0)*100;this.progressElement.style.width=b+"%"};
_.g.isProgressHidden=function(){var q;return!((q=this.data)==null?0:q.progress)};
_.g.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(q){return q&&!q.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
sg.prototype.onProgressChanged=sg.prototype.onProgressChanged;sg.prototype.onDataChanged=sg.prototype.onDataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],sg.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],sg.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],sg.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],sg.prototype,"enableScrollingFix",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],sg.prototype,"bottomBar",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],sg.prototype,"fitContent",void 0);_.p([_.dq("#progress"),_.P("design:type",HTMLElement)],sg.prototype,"progressElement",void 0);_.p([_.dq("#scroller"),_.P("design:type",Object)],sg.prototype,"JSC$19457_scroller",void 0);_.p([_.dq("ytd-flow-top-bar-renderer"),_.P("design:type",HTMLElement)],sg.prototype,"topBar",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sg.prototype,"onDataChanged",null);_.p([_.FY("data.progress"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sg.prototype,"onProgressChanged",null);_.p([_.I({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],sg);
_.a(sg,"ytd-flow-step-renderer",function(){if(YYp!==void 0)return YYp;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return YYp=q},{mode:1});var nh=function(q){this.resolveCommand=q;this.steps={}},N5f=function(q,N){N=_.Z(N||[]);
for(var b=N.next();!b.done;b=N.next()){b=b.value;var y=Object.values(b)[0],J=void 0;if((J=y)==null?0:J.stepId)q.steps[y.stepId]=b}},yNX=function(q,N){var b,y,J,E,F;
return _.d(function(R){if((b=q.state)==null||!b.currentStepId)return R.return(void 0);y=q.getCurrentStep();if(!y)return R.return(b9a(q));if(J=_.v(y,_.SD))q.logVEScreen(J),((E=J)==null?0:E.onStepStartCommand)&&q.resolveCommand((F=J)==null?void 0:F.onStepStartCommand,{});J&&N&&(q.logFlowEvent(J,N),N.steps&&!N.steps.includes(y)&&N.steps.push(y));return R.return(y)})};
nh.prototype.back=function(){var q;(q=this.state)!=null&&q.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
nh.prototype.handleUpdateFlowCommand=function(q){q.steps&&N5f(this,q.steps);q.entityUpdateCommand&&this.resolveCommand(q.entityUpdateCommand,{});q.flowContinuationCommand&&(q=q.flowContinuationCommand)&&(this.getFlowContinuationCommand=q);this.awaitFlowContinuation&&(q=this.getCurrentStep(),this.awaitFlowContinuation(q),this.awaitFlowContinuation=void 0)};
nh.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var b9a=function(q){return _.d(function(N){return q.getFlowContinuationCommand?N.return(new Promise(function(b){q.awaitFlowContinuation=b;q.getFlowContinuationCommand&&q.resolveCommand(q.getFlowContinuationCommand,{flow_state:q.state})})):N.return(Promise.resolve(void 0))})};
nh.prototype.getCurrentStep=function(){var q;if((q=this.state)!=null&&q.currentStepId)return this.steps[this.state.currentStepId]};
nh.prototype.logVEScreen=function(q){var N;((N=q.screenLoggingData)==null?0:N.screenVeType)&&_.DO(_.FR(),q.screenLoggingData.screenVeType)};
nh.prototype.logFlowEvent=function(q,N){var b,y,J,E;((b=N.flowLoggingData)==null?0:b.eventNamespace)&&((y=q.flowEventData)==null?0:y.eventType)&&((J=q.flowEventData)==null?0:J.eventMetadata)&&((E=N.flowLoggingData)==null?0:E.flowType)&&(q=_.JN(N.flowLoggingData.eventNamespace,q.flowEventData.eventType,q.flowEventData.eventMetadata),_.Ev().logFlowEvent(q,N.flowLoggingData.flowType))};
_.$H.Object.defineProperties(nh.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.state)==null?void 0:q.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.state)!=null&&q.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(N,b){b.key&&b.value&&(N[b.key]=b.value);return N},{})}}});var a7=function(){var q=_.C.apply(this,arguments)||this;q.flowState=_.x("web_use_flow_state_manager")?void 0:new nh(function(N,b){b=b===void 0?{}:b;_.bq.instance.resolveCommand(N,{form:{form:b,element:q.hostElement}})});
q.JSC$19468_flowStateManager=_.x("web_use_flow_state_manager")?_.tz().resolve(_.T$):void 0;q.currentTargetId="";q.initialState=!0;q.isLoading=!1;q.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"};q.containsTalkToRecs=!1;return q};
_.Y(a7,_.C);_.g=a7.prototype;_.g.onPopupClosed=function(q){if(!q||this.hostElement===q.detail.popupRenderer){if(this.JSC$19468_flowStateManager){var N;((N=this.data)==null?0:N.flowStateEntityKey)&&this.JSC$19468_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.g.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"}}}};
_.g.focus=function(q){var N=this;_.k9(function(){var b=_.ee(N.hostElement).querySelector("ytd-flow-step-renderer");(b==null?0:b.topBar)?b.focus(q):N.topBar&&_.Zy(N.topBar,q)},1)};
_.g.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.g.computeTopBarHidden=function(q){var N;return!((N=_.v(q,_.SD))==null||!N.topBarOverride)};
_.g.onCurrentFlowChange=function(){if(this.JSC$19468_flowStateManager&&this.data&&this.flow){var q=Yea(this.JSC$19468_flowStateManager,this.data),N;q&&((N=this.flow)==null?0:N.currentStepId)&&(wyA(q,this.flow.currentStepId),this.initialState=!1,this.isLoading=!this.currentFlowStep)}};
_.g.observeData=function(){var q=this;if(this.JSC$19468_flowStateManager){var N=this.currentTargetId,b,y,J=(y=(b=this.data)==null?void 0:b.targetId)!=null?y:"";N!==J&&N&&Q$a(this.JSC$19468_flowStateManager,N);this.currentTargetId=J;this.data&&Oxc(Yea(this.JSC$19468_flowStateManager,this.data),function(E){E&&(q.initialState=!1,q.currentFlowStep={flowStepRenderer:E},q.isLoading=!q.currentFlowStep,q.autofocusAndRefit(),q.updateContainsTalkToRecs(),q.logVEScreen(),q.logFlowEvent())})}};
_.g.dataChanged=function(){var q=this,N,b;return _.d(function(y){if(y.nextAddress==1){if(!q.flowState)return y.return();((N=q.data)==null?0:N.steps)&&N5f(q.flowState,q.data.steps);if((b=q.data)==null?0:b.flowContinuationCommand){var J=q.flowState,E=q.data.flowContinuationCommand;E&&(J.getFlowContinuationCommand=E)}return y.yield(yNX(q.flowState,q.data),2)}q.currentFlowStep=y.yieldResult;_.hj(y)})};
_.g.flowChanged=function(){var q=this,N;return _.d(function(b){if(b.nextAddress==1){if(!q.flowState||!q.flow)return b.return();q.flowState.state=q.flow;q.isLoading=!0;return b.yield(yNX(q.flowState,q.data),2)}N=b.yieldResult;if(!N||q.flow.isLoading)return b.return();q.currentFlowStep=N;q.initialState=!1;q.isLoading=!1;q.autofocusAndRefit();q.updateContainsTalkToRecs();_.hj(b)})};
_.g.logVEScreen=function(){var q,N,b=(q=_.v(this.currentFlowStep,_.SD))==null?void 0:(N=q.screenLoggingData)==null?void 0:N.screenVeType;b&&_.DO(_.tz().resolve(_.S9),b)};
_.g.logFlowEvent=function(){var q=_.v(this.currentFlowStep,_.SD),N,b,y,J,E,F;(this==null?0:(N=this.data)==null?0:(b=N.flowLoggingData)==null?0:b.eventNamespace)&&(this==null?0:(y=this.data)==null?0:(J=y.flowLoggingData)==null?0:J.flowType)&&(q==null?0:(E=q.flowEventData)==null?0:E.eventType)&&(q==null?0:(F=q.flowEventData)==null?0:F.eventMetadata)&&(q=_.JN(this.data.flowLoggingData.eventNamespace,q.flowEventData.eventType,q.flowEventData.eventMetadata),_.Ev().logFlowEvent(q,this.data.flowLoggingData.flowType))};
_.g.updateContainsTalkToRecs=function(){var q,N=(q=_.v(this.currentFlowStep,_.SD))==null?void 0:q.content;this.containsTalkToRecs=!!N&&!!_.v(N,M2K)};
_.g.autofocusAndRefit=function(){var q=this,N=_.tz().resolve(_.$f(_.X5)),b=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),y=document.querySelector("yt-report-form-confirmation-page-view-model"),J=document.querySelector("yt-report-form-details-page-view-model"),E=document.querySelector("yt-report-form-reason-select-page-view-model"),F=document.querySelector("yt-contributor-zero-state-view-model"),
R=document.querySelector("yt-structured-context-note-view-model"),c=document.querySelector("yt-note-view-model");(!b&&N&&N.isKeyBoardInUse()||y||!b&&J||!b&&E||!b&&(F||R||c))&&_.Ff(this.hostElement);_.ut(this,function(){_.e2(q.hostElement,"yt-refit")})};
_.g.handleUpdateFlowCommand=function(q){this.flowState?this.data&&(q=_.v(q,_.RaM),q.targetId===this.data.targetId&&(q.flowContinuationCommand&&(this.data.flowContinuationCommand=q.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(q),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(q)};
_.g.handleFlowNextStepCommand=function(q){this.JSC$19468_flowStateManager?this.ytComponentBehavior.resolveCommand(q):this.data&&this.flow&&this.flow.key&&(q=_.v(q,_.Ez4),q.targetId===this.data.targetId&&(q=q.stepId||"",this.ytdReduxBehavior.dispatch(_.GK("flowStateEntity",this.flow.key,{currentStepId:q,stepIdStack:(this.flow.stepIdStack||[]).concat(q)}))))};
_.g.handleFlowPrevStepCommand=function(q){if(this.JSC$19468_flowStateManager)this.ytComponentBehavior.resolveCommand(q);else if(this.data&&this.flow&&this.flow.key&&(q=_.v(q,_.gzJ),q.targetId===this.data.targetId)){var N=[].concat(_.a9(this.flow.stepIdStack||[]));N.length>1?(N.pop(),this.ytdReduxBehavior.dispatch(_.GK("flowStateEntity",this.flow.key,{currentStepId:N[N.length-1],stepIdStack:N}))):q.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(q.onFirstStepCommand)}};
_.g.handleYpcCancelRecurrenceCommand=function(q){if(this.data&&this.flow&&this.flow.key&&(q=_.v(q,Hxp),q.targetId===this.data.targetId&&q.endpointCommand)){var N=_.v(this.flow,qYK);N&&_.v(q.endpointCommand,_.jH4)&&(_.v(q.endpointCommand,_.jH4).feedbackData=N.surveyFeedback);this.ytComponentBehavior.resolveCommand(q.endpointCommand)}};
_.g.handlePartialUpdateFlowStateEntity=function(q){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.GK("flowStateEntity",this.flow.key,q,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
a7.prototype.flowChanged=a7.prototype.flowChanged;a7.prototype.dataChanged=a7.prototype.dataChanged;a7.prototype.observeData=a7.prototype.observeData;a7.prototype.onCurrentFlowChange=a7.prototype.onCurrentFlowChange;a7.prototype.onPopupClosed=a7.prototype.onPopupClosed;_.p([_.O(_.H6),_.P("design:type",Object)],a7.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],a7.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],a7.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],a7.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],a7.prototype,"initialState",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],a7.prototype,"isLoading",void 0);_.p([_.U(),_.P("design:type",Object)],a7.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],a7.prototype,"currentFlowStep",void 0);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],a7.prototype,"onPopupClosed",null);
_.p([_.U({selectorArgs:["data.flowStateEntityKey"],selector:khK}),_.P("design:type",Object)],a7.prototype,"flow",void 0);_.p([_.dq("ytd-flow-top-bar-renderer"),_.P("design:type",HTMLElement)],a7.prototype,"topBar",void 0);_.p([_.FY("data","flow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],a7.prototype,"onCurrentFlowChange",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],a7.prototype,"observeData",null);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],a7.prototype,"dataChanged",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],a7.prototype,"containsTalkToRecs",void 0);_.p([_.$9("flow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],a7.prototype,"flowChanged",null);_.p([_.I({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],a7);
_.JNB=_.oU()(a7,"ytd-flow-root-renderer",function(){if(GrW!==void 0)return GrW;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return GrW=q},{mode:_.Am("kevlar_poly_si_batch_j025")?1:2});var E8c;var y8=null;_.P$(_.n(function(q){return _.u("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.u("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.u(_.Zc,{text:function(){return q.data().text}}),_.u("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"yi"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.F5}});var g8X=_.n(function(q){var N=q.playerControlsProps;var b=q.isShortsPage;return _.u("yt-bigboard",null,_.u(_.t,{cond:function(){return N().isDragging},
then:function(){return _.u("div",{class:"ytBigboardStoryboardHost"},_.u(_.MdC,{progressBarProps:N,isShortsPage:b}))}}))},"zi");
g8X.idomCompat=!0;_.S8={ACCOUNT_LABEL:JM("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:JM("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:JM("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:JM("AD_BADGE_HINT"),AD_BADGE_TEXT:JM("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:JM("ALL_CHANNELS_LABEL"),AMBIENT_MODE:JM("AMBIENT_MODE"),AMBIENT_MODE_OFF:JM("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:JM("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:JM("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:JM("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:JM("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:JM("APP_UPSELL_TITLE"),AUDIO_TRACK:JM("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:JM("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:JM("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:JM("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:JM("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:JM("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:JM("AUTO_ZOOM","Auto zoom"),BACK:JM("BACK"),CANCEL:JM("CANCEL"),CHANNEL_SWITCHER_LABEL:JM("CHANNEL_SWITCHER_LABEL"),CLOSE:JM("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:JM("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:JM("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:JM("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:JM("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:JM("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:JM("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:JM("COMMENT_MODAL_CONTENT"),CONFIRM_OK:JM("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:JM("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:JM("COPIED_TO_CLIPBOARD"),COPY:JM("COPY"),COPY_DEBUG_INFO:JM("COPY_DEBUG_INFO"),COPY_EMBED_CODE:JM("COPY_EMBED_CODE"),
COPY_LINK_LABEL:JM("COPY_LINK_LABEL"),COPY_VIDEO_URL:JM("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:JM("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:JM("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:JM("DELETE_FROM_DOWNLOADS"),DIALOG:JM("DIALOG"),DONE:JM("DONE"),DOWNLOAD:JM("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:JM("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:JM("FLAG_CONFIRM"),FLAG_CONTENT:JM("FLAG_CONTENT"),FLAG_LABEL:JM("FLAG_LABEL"),FLAG_TITLE:JM("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:JM("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:JM("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:JM("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:JM("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:JM("HIDE_SEARCH_FILTERS_LABEL"),HOME:JM("HOME","Home"),INVALID_RESPONSE_RECEIVED:JM("INVALID_RESPONSE_RECEIVED"),LIBRARY:JM("LIBRARY","Library"),LISTENING:JM("LISTENING"),LOADING:JM("LOADING"),LONG_PRESS_MIC_TO_SPEAK:JM("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:JM("LOOP"),MENU_DESKTOP:JM("MENU_DESKTOP"),
MENU_EXIT:JM("MENU_EXIT"),MENU_FEEDBACK:JM("MENU_FEEDBACK"),MENU_HELP:JM("MENU_HELP"),MENU_IMPRESSUM:JM("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:JM("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:JM("MENU_SETTINGS"),MENU_SIGN_IN:JM("MENU_SIGN_IN"),MENU_TITLE:JM("MENU_TITLE"),MENU_YOUR_DATA:JM("MENU_YOUR_DATA"),MORE_INFO:JM("MORE_INFO"),MORE_OPTIONS:JM("MORE_OPTIONS"),MUTE_VOLUME:JM("MUTE_VOLUME"),NEW_PLAYLIST:JM("NEW_PLAYLIST"),NEXT_VIDEO:JM("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:JM("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:JM("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:JM("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:JM("NOT_FOUND_TITLE"),NO_DOWNLOADS:JM("NO_DOWNLOADS"),NO_MIC_INPUT:JM("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:JM("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:JM("OOPS_MESSAGE"),OPEN_APP:JM("OPEN_APP"),OPEN_YOUTUBE:JM("OPEN_YOUTUBE"),PAUSE:JM("PAUSE"),PLAY:JM("PLAY"),PLAYER_CAPTION:JM("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:JM("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:JM("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:JM("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:JM("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:JM("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:JM("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:JM("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:JM("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:JM("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:JM("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:JM("PLAYER_MINIMIZE"),PLAYER_NEXT:JM("PLAYER_NEXT"),PLAYER_PAUSE:JM("PLAYER_PAUSE"),PLAYER_PLAY:JM("PLAYER_PLAY"),
PLAYER_PREVIOUS:JM("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:JM("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:JM("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:JM("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:JM("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:JM("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:JM("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:JM("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:JM("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:JM("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:JM("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:JM("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:JM("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:JM("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:JM("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:JM("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:JM("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:JM("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:JM("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:JM("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:JM("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:JM("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:JM("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:JM("PLAY_ALL"),PLEASE_FIX_ERRORS:JM("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:JM("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:JM("PREVIOUS_VIDEO"),PRIVACY_POLICY:JM("PRIVACY_POLICY"),RELOAD:JM("RELOAD"),REQUIRED_LABEL:JM("REQUIRED_LABEL"),SAVE_PLAYLIST:JM("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:JM("SCRUB_SLIDE_USER_EDU"),SEARCH:JM("SEARCH","Search"),
SEARCH_APPEND_LABEL:JM("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:JM("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:JM("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:JM("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:JM("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:JM("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:JM("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:JM("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:JM("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:JM("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:JM("SEEK_SLIDER"),SETTINGS_LABEL:JM("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:JM("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:JM("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:JM("SHOW_LESS"),SHOW_MORE:JM("SHOW_MORE"),SHOW_PLAYER_CONTROLS:JM("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:JM("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:JM("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:JM("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:JM("SIGN_IN_ON_WEB"),STABLE_VOLUME:JM("STABLE_VOLUME"),STABLE_VOLUME_OFF:JM("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:JM("STABLE_VOLUME_ON"),STATS_FOR_NERDS:JM("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:JM("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:JM("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:JM("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:JM("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:JM("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:JM("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:JM("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:JM("TIMESTAMP_SECONDS"),TOGGLE_OFF:JM("TOGGLE_OFF"),TOGGLE_ON:JM("TOGGLE_ON"),TRENDING:JM("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:JM("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:JM("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:JM("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:JM("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:JM("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:JM("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:JM("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:JM("VIDEO_LINK_LABEL")};var Z9K=_.n(function(q){var N=q.playerApi;q=_.dI("button",function(y){_.a8(y,36843)});
var b=JM("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.u("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.u("button",{el:q,class:"ytPlayerControlsJumpForwardButtonButton",title:b,"aria-label":b,"on:click":_.y0(function(){_.S4(36843);N&&N().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.u("span",null,_.u(_.FQ,{icon:"FAST_FORWARD"}))))},"Ai");var FlB=_.n(function(q){var N=q.appApi;q=_.dI("button",function(y){_.a8(y,62946)});
var b=JM("OPEN_IN_MINIPLAYER");return _.u("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.u("button",{el:q,class:"ytMiniplayerButtonButton",title:b,"aria-label":b,"on:click":_.y0(function(){_.S4(62946);var y,J;(J=(y=N()).openInMiniplayer)==null||J.call(y);return!1})},_.u(_.FQ,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Bi");var Rna=_.n(function(q){var N=q.playerApi;q=_.dI("button",function(E){_.a8(E,142812)});
var b=_.Z(_.QS(!1,void 0,"eOMRAb")),y=b.next().value,J=b.next().value;b=function(){return JM("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(y()?1:2)})};
return _.u("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.u("button",{el:q,class:"ytPlaybackSpeedButtonButton",title:b,"aria-label":b,"on:click":_.y0(function(){_.S4(142812);if(N){var E=N(),F=y();E.setPlaybackRate(F?1:2);J(!y())}return!1})},_.u("span",null,_.u(_.FQ,{icon:function(){return y()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Ci");var dKc=_.n(function(q){var N=q.title;var b=q.ariaLabel;var y=q.icon;var J=q.command;var E=q.visualElementId;q=_.dI("button",function(F){E&&_.a8(F,E())});
return _.u("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.u("button",{el:q,class:"ytdThumbnailOverlayButtonButton",title:N,"aria-label":b,"on:click":_.y0(function(){E&&_.S4(E());J&&_.tz().resolve(_.rO).resolveCommand(J())})},_.u(_.FQ,{icon:y})))},"Di");var o8="";var cNc=_.n(function(q){var N=q.playerControlsProps,b=q.onClickFn;q=_.K3(function(){var E=N(),F=-1;E.captionsAvailable&&(F=E.captionsEnabled?1:0);return F},void 0,"MZ0Wqe");
var y=_.K3(function(){var E=N();return E.captionsAvailable?_.FE(E.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.FE("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),J=_.K3(function(){var E=N();
E=E.captionsAvailable?E.captionsEnabled:void 0;return E},void 0,"fhuQRe");
return _.u("yt-closed-captions-toggle-button",null,_.u(_.Drd,{captionIconType:q,ariaLabel:y,ariaPressed:J,onClick:function(E){var F=N();if(F.captionsAvailable){var R=F.playerApi;if(R){var c=F.playerApi;if(c){var z=o8;if(z){c=c.getOption("captions","track");var m;o8=(m=c?c.displayName:null)!=null?m:z}else _.nZ(c)?(z=_.ibn(c),o8=z.length?(m=ImN(z))?m.displayName:z[0].displayName:""):o8=""}TIA(R);_.x("mweb_disable_set_state_captions_killswitch")&&F.setState({captionsEnabled:!F.captionsEnabled})}}var r,
X;(X=(r=F.appApi).showCaptionsToggleToast)==null||X.call(r,F);b==null||b(E)},
isOverlay:!0}))},"Ei");var uHx=_.n(function(q){var N=q.data;return _.u("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.u(_.Eo,{data:function(){return{type:17,text:_.fEd(N().label)}}}))},"Fi");var znU=_.n(function(q){var N=_.NO("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return q.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return q.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return q.size()==="small"?q.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
q.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.u("animated-seek-arrows",{class:_.NO("ytPlayerControlsAnimatedSeekArrowsHost")},_.u("span",{class:N}),_.u("span",{class:N}),_.u("span",{class:N}))},"Gi");
znU.idomCompat=!0;var $Ka=_.n(function(){var q=_.FE("PLAYER_SECONDS",{seconds_placeholder:"30"}),N=_.Z(_.QS(!1,void 0,"iRJu8c")),b=N.next().value,y=N.next().value,J=_.Z(_.QS(!1,void 0,"MPnizf"));N=J.next().value;var E=J.next().value;J={};var F=_.NO("jumpForwardOverlayOverlay",(J.jumpForwardOverlayOverlayHidden=N,J));_.WC(function(){var R=null,c=null,z=function(){R!==null&&_.ja().cancelJob(R);c!==null&&_.ja().cancelJob(c);E(!0);y(!0);_.B$(_.ja(),function(){E(!1)});
R=_.B$(_.ja(),function(){E(!0);c=_.B$(_.ja(),function(){y(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",z);_.W1(function(){window.removeEventListener("jump-forward-clicked",z)})});
return _.u("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.u(_.t,{cond:b,then:function(){return _.u("div",{class:F},_.u(znU,{direction:1,size:"large"}),_.u("div",null,q))}}))},"Hi");var ted=_.S8.MUTE_VOLUME,mKx=_.S8.UNMUTE_VOLUME,rNB=_.n(function(q){var N=q.muteIconType;var b=q.onClick;var y=q.useOutlineIcon;var J=q.useDelhiIcons;q=_.dI("button",function(R){_.a8(R,28662)});
var E=function(){var R=N(),c=y==null?void 0:y(),z=J==null?void 0:J(),m="",r="";switch(R){case -1:case 0:m=c?"VOLUME_OFF":z?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";r=mKx;break;case 1:m=c?"VOLUME_UP_OUTLINE":z?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";r=ted;break;case 2:m=c?"VOLUME_DOWN_OUTLINE":z?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";r=ted;break;default:_.ol(R)}return{iconName:m,ariaLabel:r}},F=function(){return E().ariaLabel};
return _.u("ytm-mute-button",{class:"ytmMuteButtonHost"},_.u("button",{el:q,class:"ytmMuteButtonButton",title:F,"aria-label":F,"on:click":_.y0(function(R){_.S4(28662);b==null||b(R);return!1})},_.u("span",null,_.u(_.FQ,{icon:function(){return E().iconName}}))))},"Ii");var XPa=_.n(function(q){var N=q.volumeProps;var b=q.onClickFn;var y=q.useOutlineIcon;var J=q.useDelhiIcons;return _.u("yt-mute-toggle-button",null,_.u(rNB,{muteIconType:function(){var E=N();return E.volumeMuted||E.volume===0?0:E.volume>50?1:2},
onClick:function(E){var F=N().playerApi;F&&(F.isMuted()?F.unMute():F.mute(!1));b==null||b(E)},
useOutlineIcon:function(){return!(y==null||!y())},
useDelhiIcons:function(){return!(J==null||!J())}}))},"Ji");
XPa.idomCompat=!0;var Vef=_.n(function(q){var N=q.data;var b=_.dI("ytm-paid-content-overlay-renderer");return _.u("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:b,"on:animationend":_.y0(function(){b.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.u(_.Vf,{command:function(){return N().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.u(_.t,{cond:function(){var y;return(y=N().icon)==null?void 0:y.iconType},
then:function(){return _.u("span",null,_.u(_.FQ,{icon:function(){var y;return(y=N().icon)==null?void 0:y.iconType}}))}}),_.u("div",{class:"ytmPaidContentOverlayText"},_.u(_.Zc,{text:function(){return N().text}})),_.u(_.t,{cond:function(){return N().navigationEndpoint},
then:function(){return _.u(_.FQ,{icon:"CHEVRON_RIGHT"})}})))},"Ki");
Vef.idomCompat=!0;var UPd=[].concat(_.a9([{register:function(q){var N=r8U(q),b;(b=q().playerApi)==null||b.addEventListener("onVolumeChange",N);return function(){}}},
{register:function(q){var N=XyX(q);q=q().playerApi;q==null||q.addEventListener("captionschanged",N);q==null||q.addEventListener("captionssettingschanged",N);q==null||q.addEventListener("onCaptionsTrackListChanged",N);return function(){}}}]),[{register:function(q){var N=z0N(q),b;
(b=q().playerApi)==null||b.addEventListener("onStateChange",N);return function(){}}},
{register:function(q){var N=$Pp(q),b;(b=q().playerApi)==null||b.addEventListener("onPlaybackRateChange",N);return function(){}}},
{register:function(q){var N=t2A(q),b;(b=q().playerApi)==null||b.addEventListener("onVideoDataChange",N);return function(){}}},
{register:function(q){var N=mPa(q),b,y;(b=q())==null||(y=b.playerApi)==null||y.addEventListener("onVideoProgress",N);return function(){}}}]);var j0B=_.n(function(q){var N=q.data;var b=function(){return _.FE("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+N().playbackRate})};
return _.u(_.t,{cond:function(){return N().playbackRate&&N().playbackRate!==1},
then:function(){return _.u("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.u("div",{class:"ytPlaybackRateOverlayOverlay"},_.u(znU,{direction:1,size:"small"}),_.u("div",{class:"ytPlaybackRateOverlayLabel"},b)))}})},"Mi");var xKW=_.n(function(q){var N=q.data;return _.u("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.u(_.t,{cond:function(){var b,y=(b=N())==null?void 0:b.playerResponse,J;return y==null?void 0:(J=y.paidContentOverlay)==null?void 0:J.paidContentOverlayRenderer},
then:function(b){return _.u(Vef,{data:b})}}))},"Oi"),v8d=_.n(function(q){var N=q.props;
var b=q.data;var y=q.options;var J=function(){var z,m,r,X;return(z=b())==null?void 0:(m=z.playerResponse)==null?void 0:(r=m.playerConfig)==null?void 0:(X=r.inlinePlaybackConfig)==null?void 0:X.showAudioControls},E=function(){var z,m;
if(J()&&((z=y())==null?void 0:(m=z.additionalButton)==null?void 0:m.button)!==void 0){var r,X,V;z=(r=b())==null?void 0:(X=r.playerApi)==null?void 0:(V=X.getSize())==null?void 0:V.height;if(!(z===void 0||z<180)){var G,w;return(G=y())==null?void 0:(w=G.additionalButton)==null?void 0:w.button}}},F=function(){var z,m;
return(z=y())==null?void 0:(m=z.additionalButton)==null?void 0:m.thumbnailOverlayButtonRenderers},R=function(){var z,m;
return(z=y())==null?void 0:(m=z.additionalButton)==null?void 0:m.thumbnailOverlayButtonViewModels},c=function(){var z=[_.u(XPa,{volumeProps:N})],m;
((m=y())==null?0:m.hideCaptionsToggleButton)||z.push(_.u(cNc,{playerControlsProps:N}));E()===1&&z.push(_.u(Z9K,{playerApi:function(){return N().playerApi}}));
E()===2&&z.push(_.u(FlB,{appApi:function(){return N().appApi}}));
E()===3&&z.push(_.u(Rna,{playerApi:function(){return N().playerApi}}));
m=F();if(E()===4&&m){m=_.Z(m);for(var r=m.next(),X={};!r.done;X={tooltip$jscomp$2:void 0,ariaLabel$jscomp$19:void 0,icon$jscomp$50:void 0,command$jscomp$603:void 0},r=m.next()){r=r.value;X.tooltip$jscomp$2=r.tooltip;var V=void 0,G=void 0;X.ariaLabel$jscomp$19=((V=r.accessibility)==null?void 0:(G=V.accessibilityData)==null?void 0:G.label)||X.tooltip$jscomp$2;V=void 0;X.icon$jscomp$50=(V=r.icon)==null?void 0:V.iconType;X.command$jscomp$603=r.command;X.tooltip$jscomp$2&&X.ariaLabel$jscomp$19&&X.icon$jscomp$50&&
z.push(_.u(dKc,{title:function(w){return function(){return w.tooltip$jscomp$2}}(X),
ariaLabel:function(w){return function(){return w.ariaLabel$jscomp$19}}(X),
icon:function(w){return function(){return w.icon$jscomp$50}}(X),
command:function(w){return function(){return w.command$jscomp$603}}(X)}))}}m=R();
if(E()===4&&m)for(m=_.Z(m),r=m.next(),X={};!r.done;X={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$604:void 0,trackingParamsVeType:void 0},r=m.next())r=r.value,X.tooltip$jscomp$3=r.title,X.ariaLabel$jscomp$20=r.accessibilityText||X.tooltip$jscomp$3,X.icon$jscomp$51=r.iconName,X.command$jscomp$604=_.O_(r.onTap),G=V=void 0,X.trackingParamsVeType=((V=r.loggingDirectives)==null?0:V.trackingParams)?(G=PEU(_.HA(r.loggingDirectives.trackingParams)))==null?void 0:
_.tW(G,2):void 0,X.tooltip$jscomp$3&&X.ariaLabel$jscomp$20&&X.icon$jscomp$51&&z.push(_.u(dKc,{title:function(w){return function(){return w.tooltip$jscomp$3}}(X),
ariaLabel:function(w){return function(){return w.ariaLabel$jscomp$20}}(X),
icon:function(w){return function(){return w.icon$jscomp$51}}(X),
command:function(w){return function(){return w.command$jscomp$604}}(X),
visualElementId:function(w){return function(){return w.trackingParamsVeType}}(X)}));
return z};
return _.u(_.t,{cond:J,then:function(){return _.u("div",{class:"ytInlinePlayerControlsTopRightControls"},_.u(_.Tf,{each:c},function(z){return _.u("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.u("div",{class:"ytInlinePlayerControlsButtonIcon"},z))}))}})},"Pi"),Q0K=_.n(function(q){var N=q.props;
var b=q.data;var y=q.options;q={};q=_.NO("ytInlinePlayerControlsBottomRightControls",(q.ytInlinePlayerControlsBottomRightControlsHidden=function(){var J;return j$B(b(),y())&&((J=y())==null?void 0:J.insetProgressBar)&&(N().isHovering||N().isDragging)},q));
return _.u("div",{class:q},_.u(GMU,{data:b}),_.u(_.t,{cond:function(){var J;return!((J=y())==null?0:J.hideTimeDisplay)},
then:function(){return _.u(YvU,{props:N,data:b})}}))},"Qi"),GMU=_.n(function(q){var N=q.data;
return _.u(_.zS,{data:function(){var b;return gUp((b=N())==null?void 0:b.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:uHx})},"Ri"),YvU=_.n(function(q){var N=q.props;
var b=q.data;return _.u(_.t,{cond:function(){return N().isLive},
then:function(){return _.u(O9C,{props:N,data:b})},
else:function(){return _.u(wPW,{props:N,data:b})}})},"Si"),wPW=_.n(function(q){var N=q.props;
var b=q.data;var y=_.K3(function(){var J;return ZxC((J=b())==null?void 0:J.thumbnailOverlays)},void 0,"AFvHu");
return _.u("div",{class:_.NO("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.S8.PLAYER_TIME_ELAPSED+" "+_.HnA(N().playedTime)}},_.u(_.Eo,{data:function(){var J=_.HnA(N().videoDuration-N().playedTime);
return Object.assign({},{type:17,text:J},y())}}))},"Ti"),i9B=_.n(function(q){q=q.badgeShapeData;
return _.u("div",{class:_.NO("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.u(_.Eo,{data:q}))},"Ui"),O9C=_.n(function(q){var N=q.data;
q=_.K3(function(){if(_.x("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var y,J;return(y=N())==null?void 0:(J=y.thumbnailOverlays)==null?void 0:J.find(function(E){return E.thumbnailOverlayTimeStatusRenderer||E.thumbnailOverlayBadgeViewModel})}},void 0,"y9XYN");
var b=_.K3(function(){var y,J,E,F,R,c;return _.nnR((y=N())==null?void 0:(J=y.playerApi)==null?void 0:(E=J.getSize())==null?void 0:E.width,(F=N())==null?void 0:(R=F.playerApi)==null?void 0:(c=R.getSize())==null?void 0:c.height)},void 0,"anNoxe");
return _.u(_.t,{cond:q,then:function(y){return _.u(_.zS,{data:y},{thumbnailOverlayTimeStatusRenderer:function(J){var E=J.data;J=_.K3(function(){return _.iBd(E(),0)},void 0,"Ncdcme");
return _.u(i9B,{badgeShapeData:J})},
thumbnailOverlayBadgeViewModel:function(J){return _.u(_.lTF,{data:J.data,thumbnailSize:b})}})},
else:function(){var y={type:18,text:_.S8.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.u(i9B,{badgeShapeData:function(){return y}})}})},"Vi"),l4C=_.n(function(q){var N=q.props;
var b=q.data;var y=q.options;return _.u(_.q2f,{progressBarProps:N,config:function(){var J,E=_.v((J=b())==null?void 0:J.multiMarkersPlayerBar,_.pF4),F;J=((F=y())==null?0:F.insetProgressBar)?2:1;var R;F=(R=y())==null?void 0:R.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:J,chapterData:E,isInlinePlayback:!0,doSeekOnClick:F,playheadDotBehavior:F?1:0}}})},"Wi");_.P$(_.n(function(q){var N=q.data;var b=q.appApi;var y=q.options;var J=uvx(N,V2B(b));q={};b={};return _.u("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.u("div",{class:_.NO("ytInlinePlayerControlsDarkenedOverlay",(q.ytInlinePlayerControlsDarkenedOverlayShow=function(){return J().isHovering},q))}),_.u($Ka,null),_.u(j0B,{data:J}),_.u(xKW,{data:N}),_.u(g8X,{playerControlsProps:J,
isShortsPage:!1}),_.u("div",{class:_.NO((b.ytInlinePlayerControlsControlsHidden=function(){return J().isDragging},b))},_.u(v8d,{props:J,
data:N,options:y}),_.u(Q0K,{props:J,data:N,options:y})),_.u(_.t,{cond:function(){return j$B(N(),y())},
then:function(){return _.u(l4C,{props:J,data:N,options:y})}}))},"Ni"),"yt-inline-player-controls",{props:{data:_.F5,
appApi:_.W$,options:_.F5}});var WS=function(){var q=_.C.apply(this,arguments)||this;q.opts=null;q.playerControlsData=null;q.playerControlsAppApi={openInMiniplayer:function(){q.openInMiniplayer()}};
q.playerControlsOptions={};q.noAnimation=!1;q.playbackIntentTriggered=!1;q.positionData=null;q.hidden=!0;q.active=!1;q.playing=!1;q.persistentPanelVisible=!1;q.videoPreviewDataIndex=0;q.JSC$19511_playerPromise=null;q.player=null;q.enableAudioControls=!1;q.hasBeenUnmuted=!1;q.captionsHaveBeenTurnedOff=!1;q.JSC$19511_playerEvents=new Map;q.videoPreviewFetchRequest=null;q.scheduledPreviewEndJobId=null;q.JSC$19511_preventProgressSaveTimer=null;q.watchEndpointStartTimeUpdaterInterval=null;q.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};q.windowOnBlurFn=function(){q.deactivate()};
return q};
_.Y(WS,_.C);_.g=WS.prototype;
_.g.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"}}}};
_.g.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19511_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19511_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19511_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19511_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.gq(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.gq(this,this.onScroll))};
_.g.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.gq(this,this.onScroll))};
_.g.onPageTypeChange=function(){this.deactivate()};
_.g.onWindowResized=function(){this.deactivate()};
_.g.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.g.onCaptionsChanged=function(q){q=!!q.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!q);this.setCaptionSize()};
_.g.setCaptionSize=function(){var q;if(this.active&&!this.captionsHaveBeenTurnedOff&&((q=this.player)==null?0:q.getCaptionWindowContainerId())){var N;(N=this.player)==null||N.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.g.currentPageAllowed=function(){return!this.isWatchPage};
_.g.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.x("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var q=this.positionData,N=q.initialTopPosition,b=q.initialHorizontalPosition;_.Jm(this.hostElement,{"--ytd-video-preview-translate-left":q.finalHorizontalPosition-b+"px","--ytd-video-preview-translate-top":q.finalTopPosition-N+"px","--ytd-video-preview-original-top-position":N+
"px","--ytd-video-preview-original-horizontal-position":b+"px","--ytd-video-preview-initial-scale":"scale("+q.initialScale+")","--ytd-video-preview-width":q.videoPreviewWidth+"px","--ytd-video-preview-height":q.videoPreviewHeight+"px"});return!0};
_.g.isOutOfBounds=function(q){var N=q.initialHorizontalPosition+12;q=N+q.videoPreviewWidth>window.innerWidth;return N<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&N<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&N<72||q};
_.g.handleOpenVideoPreviewAction=function(q){var N=this,b;return _.d(function(y){if(!N.currentPageAllowed())return y.return(0);N.opts=q;return(b=N.alignVideoPreviewForAnimation(q.thumbnail))?y.return(N.activate()):y.return(0)})};
_.g.onMouseLeave=function(q){var N,b;(N=this.opts)==null||(b=N.mouseleaveCallback)==null||b.call(N);this.shouldDeactivateOnMouseLeave(q)&&this.deactivate()};
_.g.onScroll=function(){var q,N;((q=this.opts)==null?0:q.isAutoplay)&&((N=this.opts)==null?0:N.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.g.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.pY.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.g.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.g.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",WS.JSC$19510_DEFAULT_CLICK_LOCATION_BEHAVIOR,WS.JSC$19510_CLICK_LOCATION_ID_MAP)};
_.g.shouldDeactivateOnMouseLeave=function(q){q=q.relatedTarget;if(!q)return!0;var N;return(N=this.opts)!=null&&N.mediaRenderer?!_.BP(this.opts.mediaRenderer).contains(q):!0};
_.g.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.g.onPlaybackStart=function(){var q=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$19511_preventProgressSaveTimer=
_.B$(_.pY,function(){q.resetPreventProgressSaveTimer()},1E4);
var N;if((N=this.opts)==null?0:N.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.B$(_.pY,function(){q.hasMultipleVideoPreviews()?q.startPlaybackForNextVideo():q.deactivate()},this.opts.videoPreviewDurationMs);
var b;this.player.setGlobalCrop(((b=this.opts)==null?0:b.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.g.getRoundedCornersSize=function(){var q;if((q=this.opts)==null?0:q.roundedCornersSize){var N;return(N=this.opts)==null?void 0:N.roundedCornersSize}var b;if((b=this.opts)==null?0:b.enableRounding){var y;if(((y=this.opts)==null?void 0:y.thumbnailSize)==="small")return 1;var J;if(((J=this.opts)==null?void 0:J.thumbnailSize)==="medium")return 2;var E;if(((E=this.opts)==null?void 0:E.thumbnailSize)==="large")return 3}return _.x("web_imp_inset_progress_bar")?3:0};
_.g.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.g.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.g.onMediaContainerClick=function(q){this.isShortcutClick(q)||(this.navigateToWatch(q),q.preventDefault(),q.stopPropagation())};
_.g.activate=function(){var q=this,N,b,y,J,E,F,R,c,z;return _.d(function(m){switch(m.nextAddress){case 1:if(!q.currentPageAllowed())return m.return(0);b=(N=q.videoPreviewData)==null?void 0:N.inlinePlaybackEndpoint;y=_.f6.instance;if(!b||!y)return m.return(0);q.playbackIntentTriggered=!0;((J=q.opts)==null?0:J.mediaRenderer)&&((E=q.opts)==null||!E.isAutoplay)&&bxK(q.opts.mediaRenderer,function(){q.deactivate()});
_.ut(q,function(){q.revealPreviewUi()});
F={};_.x("enable_unknown_lact_fix_on_html5")&&(_.tz().resolve(_.$P),F.lact=_.tr());q.videoPreviewFetchRequest=A9K(y,q.getInlinePlaybackRequestData(q.videoPreviewData),F);_.Yi(m,2);return m.yield(q.videoPreviewFetchRequest,4);case 4:R=m.yieldResult;if(((c=R)==null?void 0:(z=c.playabilityStatus)==null?void 0:z.status)==="OK")return m.return(q.handlePlayerResponse(R));throw Error("fk");case 2:_.K7(m),q.deactivate();case 3:return m.return(1)}})};
_.g.getInlinePlaybackRequestData=function(q){var N,b=_.x("web_imp_player_mute_params")?((N=this.opts)==null?void 0:N.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:q.inlinePlaybackEndpoint,startPlaybackInMutedState:b}};
_.g.handlePlayerResponse=function(q){var N=this,b,y,J,E,F,R,c,z,m,r,X,V,G,w;return _.d(function(D){if(D.nextAddress==1){b=N.getInlinePlaybackVideoId();if(!(((y=q)==null?0:(J=y.videoDetails)==null?0:J.videoId)&&N.currentPageAllowed()&&N.playbackIntentTriggered&&N.opts&&b))return N.deactivate(),D.return(0);if(q.videoDetails.videoId!==b)return D.return(0);N.enableAudioControls=!!((E=q.playerConfig)==null?0:(F=E.inlinePlaybackConfig)==null?0:F.showAudioControls);q.trackingParams=N.getInlinePlaybackTrackingParams();
if(!N.inlinePlayer)return D.return(0);R={};if(z=_.v((c=N.videoPreviewData)==null?void 0:c.inlinePlaybackEndpoint,_.nx))R.watch_endpoint=z;if(N.videoPreviewData){var k,f=(k=_.v(N.videoPreviewData.inlinePlaybackEndpoint,_.nx))==null?void 0:k.startTimeSeconds;f!==void 0&&(q.playerConfig||(q.playerConfig={}),q.playerConfig.playbackStartConfig||(q.playerConfig.playbackStartConfig={}),q.playerConfig.playbackStartConfig.startPosition||(q.playerConfig.playbackStartConfig.startPosition={}),q.playerConfig.playbackStartConfig.startSeconds=
f,q.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(f*1E3))}N.inlinePlayer.loadVideoWithPlayerResponse(q,R);if(N.JSC$19511_playerPromise)return D.jumpTo(2);N.JSC$19511_playerPromise=N.inlinePlayer.getPlayerPromise();return D.yield(N.JSC$19511_playerPromise,3)}D.nextAddress!=2&&(m=D.yieldResult,m.setInlinePreview(!0),r=!_.x("web_imp_theater_bugfix"),m.setSizeStyle(!1,r),N.ytPlayerListenerBehavior.listenToPlayerEvents(m,N.JSC$19511_playerEvents),N.player=m,_.e2(N.hostElement,
"player-api-ready"));((X=N.opts)==null?0:X.showPlayerControls)&&N.videoPreviewData&&N.player&&(N.playerControlsData={playerResponse:q,isInlinePlayback:!0,thumbnailOverlays:N.videoPreviewData.thumbnailOverlays,playerApi:N.player},N.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!N.unroundCornersForPlayback,additionalButton:N.getAdditionalButtonType(N.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(V=N.opts)==null?void 0:V.hideTimeDisplay,hideScrubbingControls:(G=N.opts)==
null?void 0:G.hideScrubber,hideCaptionsToggleButton:(w=N.opts)==null?void 0:w.hideCaptionsToggleButton});return D.return(2)})};
_.g.revealPreviewUi=function(){var q=this;this.playbackIntentTriggered&&_.mdJ(this,function(){q.hasThumbnailPositionChangedSinceTriggered()||(q.updateActiveState(!0),q.noAnimation=!1)})};
_.g.hasThumbnailPositionChangedSinceTriggered=function(){var q=this.positionData,N=this.getThumbnailPositionData();return(q==null?void 0:q.initialTopPosition)!==(N==null?void 0:N.initialTopPosition)||(q==null?void 0:q.initialHorizontalPosition)!==(N==null?void 0:N.initialHorizontalPosition)};
_.g.getThumbnailPositionData=function(){var q,N;if((N=this.opts)==null||!N.thumbnail)return null;N=this.opts.thumbnail;var b=((q=this.opts)==null?0:q.cropPlayerToFillThumbnailHorizontally)?!1:!0;var y=N.getBoundingClientRect();q=y.width;N=y.height;var J=y.top+window.scrollY;y=y.left+window.scrollX;var E=b?Math.ceil(q):q;b=b?Math.ceil(N):N;var F=q/E;q={initialScale:F,initialTopPosition:J-12*F,finalTopPosition:J-12-(b-N)/2,initialHorizontalPosition:y-(12+(E-q)/2),finalHorizontalPosition:y-12-(E-q)/
2,videoPreviewWidth:E,videoPreviewHeight:b};return q};
_.g.updateActiveState=function(q){this.active=q;this.ytdReduxBehavior.dispatch(_.B3({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:q}))};
_.g.stopPlayer=function(q){q=q.resetWatchEndpointStartTime===void 0?!1:q.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(q)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.pY.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.g.deactivate=function(q){q=q===void 0?{}:q;q=q.resetWatchEndpointStartTime===void 0?!1:q.resetWatchEndpointStartTime;y8&&(y8.disconnect(),y8=null);this.stopPlayer({resetWatchEndpointStartTime:q});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.g.isValidThumbnailOverlayButton=function(q,N){q=q.thumbnailOverlayButtonRenderer;var b;return!!q&&!!q.tooltip&&!((b=q.icon)==null||!b.iconType)&&N.includes(q.icon.iconType)};
_.g.isValidThumbnailOverlayButtonViewModel=function(q,N){var b;q=_.v((b=q.thumbnailOverlayButtonViewModel)==null?void 0:b.overlayButton,_.FF);return!!q&&!!q.title&&!!q.iconName&&N.includes(q.iconName)};
_.g.getAdditionalButtonType=function(q){var N=this;if(_.x("web_imp_fastforward_button"))return{button:1};if(_.x("web_imp_miniplayer_button"))return{button:2};if(_.x("web_imp_playback_speed_button"))return{button:3};var b=["BOX_STACK_3"],y=(q||[]).filter(function(E){return N.isValidThumbnailOverlayButton(E,b)}).map(function(E){return E.thumbnailOverlayButtonRenderer});
if(y.length)return{button:4,thumbnailOverlayButtonRenderers:y};var J=["BOX_STACK_3"];q=(q||[]).filter(function(E){return N.isValidThumbnailOverlayButtonViewModel(E,J)}).map(function(E){return _.v(E.thumbnailOverlayButtonViewModel.overlayButton,_.FF)});
if(q.length)return{button:4,thumbnailOverlayButtonViewModels:q}};
_.g.allowCaptions=function(){var q;return!((q=this.opts)==null?0:q.forceCaptionsOff)};
_.g.allowUnmuting=function(){var q;return this.enableAudioControls&&!((q=this.opts)==null?0:q.forceMutedVolume)};
_.g.beginStartTimeUpdater=function(){var q=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.QX(function(){q.updateWatchEndpointStartTime()},1E3)};
_.g.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.g.resetPreventProgressSaveTimer=function(){this.JSC$19511_preventProgressSaveTimer!==null&&(_.pY.cancelJob(this.JSC$19511_preventProgressSaveTimer),this.JSC$19511_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.g.updateWatchEndpointStartTime=function(q){var N=this.videoPreviewData;if(this.player&&N!=null&&N.inlinePlaybackEndpoint&&!this.JSC$19511_preventProgressSaveTimer){q=q?0:Math.floor(this.player.getCurrentTime());var b=_.v(N.navigationEndpoint,_.nx);b&&(b.startTimeSeconds=q);if(N=_.v(N.inlinePlaybackEndpoint,_.nx))N.startTimeSeconds=q}};
_.g.isShortcutClick=function(q){return!!q&&(q.ctrlKey||q.shiftKey||q.metaKey)};
_.g.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.g.openInMiniplayer=function(){var q=this,N,b;return _.d(function(y){if(y.nextAddress==1){b=(N=q.videoPreviewData)==null?void 0:N.navigationEndpoint;if(!b)return y.return();_.sM().lockupActivation=!0;return y.yield(_.MqJ(_.tz().resolve(_.l9),b),2)}_.sM().userActivation=!0;_.hj(y)})};
_.g.navigateToWatch=function(q){var N,b=(N=this.videoPreviewData)==null?void 0:N.navigationEndpoint;if(b){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(b,q,!0);else{var y;_.x("web_thumbnail_to_watch_transition")&&((y=this.opts)==null?0:y.thumbnail)&&_.Lgx(_.tz().resolve(_.p8),this.opts.thumbnail);_.e2(this.hostElement,"yt-navigate",{endpoint:b})}this.deactivate()}};
_.g.getInlinePlaybackVideoId=function(){var q,N;return(N=_.v((q=this.videoPreviewData)==null?void 0:q.inlinePlaybackEndpoint,_.nx))==null?void 0:N.videoId};
_.g.getInlinePlaybackTrackingParams=function(){var q,N;return(q=this.videoPreviewData)==null?void 0:(N=q.inlinePlaybackEndpoint)==null?void 0:N.clickTrackingParams};
_.g.hasMultipleVideoPreviews=function(){var q;return!!(((q=this.opts)==null?0:q.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.g.startPlaybackForNextVideo=function(){var q;(q=this.opts)!=null&&q.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())};
_.$H.Object.defineProperties(WS.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.opts)==null?0:q.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.opts)==null||!q.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 q;if(Array.isArray((q=this.opts)==null?void 0:q.videoPreviewData)){var N;return(N=this.opts)==null?void 0:N.videoPreviewData[this.videoPreviewDataIndex]}var b;return(b=this.opts)==null?void 0:b.videoPreviewData}}});
WS.prototype.onIsAdsVideoChange=WS.prototype.onIsAdsVideoChange;WS.prototype.onInlinePreviewIsEnabledChange=WS.prototype.onInlinePreviewIsEnabledChange;WS.prototype.optsChanged=WS.prototype.optsChanged;WS.prototype.onMouseLeave=WS.prototype.onMouseLeave;WS.prototype.onPersistentPanelVisibleChange=WS.prototype.onPersistentPanelVisibleChange;WS.JSC$19510_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
WS.JSC$19510_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"}];_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],WS.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],WS.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.d2.YtPlayerListenerBehavior),_.P("design:type",_.cX)],WS.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],WS.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],WS.prototype,"componentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],WS.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.H6),_.P("design:type",Object)],WS.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.Xi.YtSparklesClickLocationBehavior),_.P("design:type",Object)],WS.prototype,"ytSparklesClickLocationBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],WS.prototype,"opts",void 0);_.p([_.U(),_.P("design:type",Object)],WS.prototype,"playerControlsData",void 0);_.p([_.U(),_.P("design:type",Object)],WS.prototype,"playerControlsAppApi",void 0);
_.p([_.U(),_.P("design:type",Object)],WS.prototype,"playerControlsOptions",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],WS.prototype,"noAnimation",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],WS.prototype,"hidden",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],WS.prototype,"active",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],WS.prototype,"playing",void 0);
_.p([_.U({selector:_.Cwn}),_.P("design:type",Boolean)],WS.prototype,"inlinePreviewIsEnabled",void 0);_.p([_.U(),_.P("design:type",String)],WS.prototype,"pagePath",void 0);_.p([_.U({selector:_.kEZ}),_.P("design:type",Boolean)],WS.prototype,"isWatchPage",void 0);_.p([_.U({selector:_.U$.persistentPanelVisibleSelector}),_.P("design:type",Object)],WS.prototype,"persistentPanelVisible",void 0);
_.p([_.l("videoPreviewData"),_.P("design:type",Object),_.P("design:paramtypes",[])],WS.prototype,"thumbnailData",null);_.p([_.l("opts","active"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],WS.prototype,"hidePlayerControls",null);_.p([_.l("opts"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],WS.prototype,"isAdsVideo",null);
_.p([_.l("opts"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],WS.prototype,"roundedCornersSmall",null);_.p([_.l("opts"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],WS.prototype,"roundedCornersMedium",null);_.p([_.l("opts"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],WS.prototype,"roundedCornersLarge",null);
_.p([_.l("opts"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],WS.prototype,"unroundCornersForPlayback",null);_.p([_.l("opts","videoPreviewDataIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],WS.prototype,"videoPreviewData",null);_.p([_.U(),_.P("design:type",Object)],WS.prototype,"videoPreviewDataIndex",void 0);_.p([_.dq("#inline-player"),_.P("design:type",Object)],WS.prototype,"inlinePlayer",void 0);
_.p([_.FY("persistentPanelVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WS.prototype,"onPersistentPanelVisibleChange",null);_.p([_.ZP("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[MouseEvent]),_.P("design:returntype")],WS.prototype,"onMouseLeave",null);_.p([_.$9("opts"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WS.prototype,"optsChanged",null);
_.p([_.$9("inlinePreviewIsEnabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WS.prototype,"onInlinePreviewIsEnabledChange",null);_.p([_.FY("isAdsVideo"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WS.prototype,"onIsAdsVideoChange",null);_.p([_.I({is:"ytd-video-preview",disableElementRegistration:!0})],WS);
_.a(WS,"ytd-video-preview",function(){if(E8c!==void 0)return E8c;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return E8c=q},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.ZF=function(q){return function(N,b){var y=q||b.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(N,b,{get:function(){var J;return this.$?this.$[y]:(J=_.RU(this))==null?void 0:J.querySelector("#"+y)},
enumerable:!0,configurable:!0})}};_.FG=function(q){q=q===void 0?!1:q;_.UN.call(this);this.pubSub_=new _.K4(q);_.YN(this,this.pubSub_)};
_.oK(_.FG,_.UN);_.FG.prototype.subscribe=function(q,N,b){return this.isDisposed()?0:this.pubSub_.subscribe(q,N,b)};
_.FG.prototype.unsubscribe=function(q,N,b){return this.isDisposed()?!1:this.pubSub_.unsubscribe(q,N,b)};
_.FG.prototype.unsubscribeByKey=function(q){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(q)};
_.FG.prototype.publish=function(q,N){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var Go_=function(){_.CZ("ypcRedeemFlowStarted")},Yxs=function(q){_.CZ("ypcRedeemFlowFailed",void 0,void 0,void 0,q)},Qlh=function(q,N,b){N&&b&&(q.videos.forEach(function(y){y.videoId===N&&(y.itemId=b)}),q.recommendedVideos.forEach(function(y){y.videoId===N&&(y.itemId=b)}))};var O1B;var wR_;/*

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
*/
_.x9({_template:function(){if(wR_!==void 0)return wR_;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;O1B===void 0&&(O1B=document.createElement("template"));var y=O1B;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return wR_=q},
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(q,N){var b=this._resolveSrc(q);b!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",q===""||N?this._setLoading(!1):(this._resolvedSrc=b,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 q=this.$.sizedImgDiv.style,N=this.$.placeholder.style;q.backgroundSize=N.backgroundSize=this.sizing;q.backgroundPosition=N.backgroundPosition=this.sizing?this.position:"";q.backgroundRepeat=N.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(q){q=_.xF(q,this.$.baseURIAnchor.href);q.length>=2&&q[0]==="/"&&q[1]!=="/"&&(q=(location.origin||location.protocol+"//"+location.host)+q);return q}});var i1B;var lqc;_.x9({_template:function(){if(lqc!==void 0)return lqc;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;i1B===void 0&&(i1B=document.createElement("template"));var y=i1B;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return lqc=q},
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(q){return q?"false":"true"},
_headingChanged:function(q){var N=this.getAttribute("heading"),b=this.getAttribute("aria-label");typeof b==="string"&&b!==N||this.setAttribute("aria-label",q)},
_computeHeadingClass:function(q){return q?" over-image":""},
_computeAnimated:function(q){return q}});var KMh=new _.yT("addRendererToItemSectionAction");var DvB;var Cs=function(){return _.C.apply(this,arguments)||this};
_.Y(Cs,_.C);Cs.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Cs.prototype,"rendererBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],Cs.prototype,"dismissibleItemBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Cs.prototype,"rendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Cs.prototype,"data",void 0);_.p([_.I({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],Cs);
_.a(Cs,"ytd-comment-history-entry-renderer",function(){if(DvB!==void 0)return DvB;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return DvB=q},{mode:1});var hJc;_.xP("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.xP("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var Iv=function(){return _.C.apply(this,arguments)||this};
_.Y(Iv,_.C);_.g=Iv.prototype;_.g.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.onKeyUp=function(q){if(q.keyCode===13)this.onTap()};
_.g.onTap=function(){this.data.recordClickEndpoint&&_.tz().resolve(_.rO).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var q=this.data.navigationEndpoint;q&&_.v(q,_.Ha)&&_.tz().resolve(_.rO).resolveCommand(q,{form:{element:this.hostElement}})};
_.g.readChanged=function(){var q;_.HP(this.hostElement,"unread",!((q=this.data)==null?0:q.read))};
_.g.dataChanged=function(){this.data&&_.HP(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.g.computeThumbnailSize=function(){var q;return((q=this.data)==null?0:q.highPriorityNotification)?32:48};
_.g.getEndpointURL=function(q){return q&&!_.v(q,_.Ha)?this.componentBehavior.computeHref_(q):null};
_.g.getEndpointData=function(q){return q&&!_.v(q,_.Ha)?q:null};
Iv.prototype.computeThumbnailSize=Iv.prototype.computeThumbnailSize;Iv.prototype.dataChanged=Iv.prototype.dataChanged;Iv.prototype.readChanged=Iv.prototype.readChanged;Iv.prototype.onKeyUp=Iv.prototype.onKeyUp;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Iv.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Iv.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Iv.prototype,"data",void 0);_.p([_.U({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.P("design:type",Number)],Iv.prototype,"thumbnailSize",void 0);_.p([_.ZP("keyup"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],Iv.prototype,"onKeyUp",null);
_.p([_.FY("data.read"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Iv.prototype,"readChanged",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Iv.prototype,"dataChanged",null);_.p([_.FY("data.highPriorityNotification"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Iv.prototype,"computeThumbnailSize",null);
_.p([_.I({is:"ytd-notification-renderer",disableElementRegistration:!0})],Iv);
_.a(Iv,"ytd-notification-renderer",function(){if(hJc!==void 0)return hJc;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return hJc=q},{mode:1});var kos;var TU=function(){return _.C.apply(this,arguments)||this};
_.Y(TU,_.C);TU.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"}}}};
TU.prototype.computeActionButtonClass=function(q){return!q.actionButtons||q.actionButtons.length<=1?"single-button":q.description?"vertical-buttons":"horizontal-buttons"};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],TU.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],TU.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],TU.prototype,"data",void 0);_.p([_.I({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],TU);
_.a(TU,"ytd-playlist-show-metadata-renderer",function(){if(kos!==void 0)return kos;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return kos=q},{mode:1});var UvB;_.xP("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var sz=function(){return _.C.apply(this,arguments)||this};
_.Y(sz,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],sz.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],sz.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],sz.prototype,"data",void 0);_.p([_.I({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],sz);
_.a(sz,"ytd-purchase-item-renderer",function(){if(UvB!==void 0)return UvB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return UvB=q},{mode:1});var fqh;var CTh={};CTh.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(q){if(q)return q.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(q){if(q==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.xP("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var ns=function(){return _.C.apply(this,arguments)||this};
_.Y(ns,_.C);ns.prototype.onYtNavigate=function(q){var N=this.openPopupBehavior.getNavigationEndpointPopupAction(q.detail.endpoint);N&&(q.stopPropagation(),this.openPopupBehavior.openPopup(N))};
ns.prototype.onYtNavigate=ns.prototype.onYtNavigate;_.p([_.O(CTh.YtSimpleTextSectionBehavior),_.P("design:type",Object)],ns.prototype,"ytSimpleTextSectionBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.r7),_.P("design:type",Object)],ns.prototype,"openPopupBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ns.prototype,"data",void 0);
_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ns.prototype,"onYtNavigate",null);_.p([_.I({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],ns);
_.a(ns,"ytd-simple-text-section-renderer",function(){if(fqh!==void 0)return fqh;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return fqh=q},{mode:1});var Iqe;_.xP("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var Txc=function(){return _.C.apply(this,arguments)||this};
_.Y(Txc,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Txc.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Txc.prototype,"data",void 0);_.p([_.I({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],Txc);
_.a(Txc,"ytd-unlimited-page-feature-info-renderer",function(){if(Iqe!==void 0)return Iqe;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Iqe=q},{mode:1});var slB;var nEh;var av=function(){return _.C.apply(this,arguments)||this};
_.Y(av,_.C);av.prototype.dataChanged=function(){if(this.data){var q=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);q&&(q=_.Mo(q,screen.width),this.hostElement.style.backgroundImage="url("+q+")")}};
av.prototype.dataChanged=av.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],av.prototype,"data",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],av.prototype,"dataChanged",null);_.p([_.I({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],av);
_.a(av,"ytd-post-redemption-section-renderer",function(){if(nEh!==void 0)return nEh;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return nEh=q},{mode:1});var aqB;var Sh=function(){return _.C.apply(this,arguments)||this};
_.Y(Sh,_.C);Sh.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Sh.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Sh.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Sh.prototype,"data",void 0);_.p([_.I({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Sh);
_.a(Sh,"ytd-ypc-post-redemption-renderer",function(){if(aqB!==void 0)return aqB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return aqB=q},{mode:1});_.xP("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var W5=function(){var q=_.C.apply(this,arguments)||this;q.MIN_CODE_LENGTH=12;q.MAX_CODE_LENGTH=24;return q};
_.Y(W5,_.C);_.g=W5.prototype;_.g.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.g.created=function(){this.riskService=new _.TfJ;this.loadPaymentThenable=_.nuR(_.M7("YPC_MB_URL"))};
_.g.ready=function(){var q=this;this.code.addEventListener("keypress",function(N){q.onCodeInputKeypress(N)})};
_.g.dataChanged=function(){var q=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(N){N=_.Z(N);for(var b=N.next();!b.done;b=N.next())b=b.value,b.type==="attributes"&&b.attributeName==="dark"&&q.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.g.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var q=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+q+")")}};
_.g.computeRedeemButton=function(q){(q=this.get("redeemButton.buttonRenderer",q))&&(q=Object.assign({},q,{serviceEndpoint:void 0}));return q};
_.g.onRedeemButtonTap=function(q){q.stopPropagation();Go_();this.redeemCode()};
_.g.redeemCode=function(){var q=this;this.isLoading=!0;var N=this.riskService.init();_.lU([N,this.loadPaymentThenable]).then(function(){var b=q.data.redeemButton.buttonRenderer.serviceEndpoint,y=_.s_D(),J=_.WD.payments.business.integration.ClientTokenFactory.createClientToken(_.v(b,_.YEF).countryCode,y);y={c:q.code.value.trim(),rd:window.btoa(y),ctk:J};b&&_.tz().resolve(_.rO).resolveCommand(b,{form:Object.assign({},y,{element:q.hostElement})})},function(){q.showGenericError();
Yxs("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.HC(Error("No"))})};
_.g.onYtServiceRequestCompleted=function(q){q.stopPropagation();this.isLoading=!1;var N,b;this.errorMessage=(N=q.detail)==null?void 0:(b=N.data)==null?void 0:b.errorMessage;var y,J;this.postRedemptionRenderer=(y=q.detail)==null?void 0:(J=y.data)==null?void 0:J.renderer;var E,F;if(q=(E=q.detail)==null?void 0:(F=E.data)==null?void 0:F.redirectEndpoint)this.isLoading=!0,_.e2(this.hostElement,"yt-navigate",{endpoint:q});this.errorMessage?Yxs("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
q)&&_.CZ("ypcRedeemFlowSucceeded")};
_.g.onYtServiceRequestError=function(q){q.stopPropagation();this.isLoading=!1;if(q=this.get("detail.error.message",q))this.errorMessage=_.nD(q);Yxs("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.g.onInvokeInstrumentManagerActionCompleted=function(q){q.stopPropagation();this.redeemCode()};
_.g.onInvokeInstrumentManagerActionError=function(q){q.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",q)){case "instrumentManagerLoadError":this.showGenericError();Yxs("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();Yxs("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.CZ("ypcRedeemFlowCancelled")}};
_.g.onInput=function(){var q=this;_.Uk(this,"onInput",function(){var N=q.code.value.trim();q.redeemButtonDisabled=N.length<q.MIN_CODE_LENGTH||N.length>q.MAX_CODE_LENGTH},200)};
_.g.onCodeInputKeypress=function(q){q.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(Go_(),this.redeemCode())};
_.g.computeImageUrl=function(q){return q?_.Mo(q.thumbnails,600):null};
_.g.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
W5.prototype.onInvokeInstrumentManagerActionError=W5.prototype.onInvokeInstrumentManagerActionError;W5.prototype.onInvokeInstrumentManagerActionCompleted=W5.prototype.onInvokeInstrumentManagerActionCompleted;W5.prototype.onYtServiceRequestError=W5.prototype.onYtServiceRequestError;W5.prototype.onYtServiceRequestCompleted=W5.prototype.onYtServiceRequestCompleted;W5.prototype.dataChanged=W5.prototype.dataChanged;
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],W5.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],W5.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],W5.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],W5.prototype,"isLoading",void 0);_.p([_.U(),_.P("design:type",Boolean)],W5.prototype,"redeemButtonDisabled",void 0);
_.p([_.U(),_.P("design:type",Object)],W5.prototype,"errorMessage",void 0);_.p([_.U(),_.P("design:type",Object)],W5.prototype,"postRedemptionRenderer",void 0);_.p([_.U(),_.P("design:type",Object)],W5.prototype,"observer",void 0);_.p([_.dq("#code"),_.P("design:type",HTMLInputElement)],W5.prototype,"code",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],W5.prototype,"dataChanged",null);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],W5.prototype,"onYtServiceRequestCompleted",null);_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],W5.prototype,"onYtServiceRequestError",null);
_.p([_.ZP("yt-invoke-instrument-manager-action-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],W5.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.p([_.ZP("yt-invoke-instrument-manager-action-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],W5.prototype,"onInvokeInstrumentManagerActionError",null);_.p([_.I({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],W5);
_.a(W5,"ytd-redeem-code-renderer",function(){if(slB!==void 0)return slB;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return slB=q},{mode:1});var SxB;_.xP("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Ls=function(){var q=_.C.apply(this,arguments)||this;q.businessEmailDisplayState="HIDE_SECTION";return q};
_.Y(Ls,_.C);_.g=Ls.prototype;_.g.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}}}}}};
_.g.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"};
_.g.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.g.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.kU(_.tq1),this.businessEmailDisplayState="CAPTCHA"))};
_.g.onYtServiceRequestCompleted=function(q){var N;if((N=q.detail.data)==null?0:N.businessEmail)this.businessEmail=q.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var b;if((b=q.detail.data)==null?0:b.errorMessage)this.businessEmailErrorMessage=q.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.g.computeEmailHref=function(q){return"mailto:"+q};
_.g.computeSafeUrl=function(q){if(q)return _.pc(q)};
_.g.onBusinessEmailCaptchaSubmit=function(){var q;(q=this.data)!=null&&q.onBusinessEmailRevealClickCommand&&(q=this.JSC$22228_captchaTextarea.value)&&(q={recaptcha_response_token:q,channel_id:this.data.channelId},_.tz().resolve(_.rO).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},q,{element:this.hostElement})}))};
_.g.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.$H.Object.defineProperties(Ls.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 q,N;return!((q=this.data)==null||!q.primaryLinks)&&!((N=this.data)==null?0:N.links)&&this.data.primaryLinks.every(function(b){return b.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var q,N;return!((q=this.data)==null||!q.primaryLinks)&&!((N=this.data)==null?0:N.links)&&!this.shouldShowNewLinks}}});
Ls.prototype.onYtServiceRequestCompleted=Ls.prototype.onYtServiceRequestCompleted;Ls.prototype.dataChanged=Ls.prototype.dataChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Ls.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Ls.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.dq("#g-recaptcha-response"),_.P("design:type",HTMLTextAreaElement)],Ls.prototype,"JSC$22228_captchaTextarea",void 0);_.p([_.U(),_.P("design:type",Object)],Ls.prototype,"data",void 0);_.p([_.U(),_.P("design:type",String)],Ls.prototype,"businessEmailDisplayState",void 0);_.p([_.U(),_.P("design:type",String)],Ls.prototype,"businessEmail",void 0);_.p([_.U(),_.P("design:type",String)],Ls.prototype,"businessEmailErrorMessage",void 0);
_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ls.prototype,"hideDetailsSection",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ls.prototype,"dataChanged",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ls.prototype,"shouldShowNewLinks",null);_.p([_.l("data","shouldShowLinks"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ls.prototype,"shouldShowLegacyLinks",null);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ls.prototype,"onYtServiceRequestCompleted",null);_.p([_.I({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Ls);
_.a(Ls,"ytd-channel-about-metadata-renderer",function(){if(SxB!==void 0)return SxB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return SxB=q},{mode:1});var WMZ;_.xP("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var ps=function(){return _.C.apply(this,arguments)||this};
_.Y(ps,_.C);ps.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]]"}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ps.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Number)],ps.prototype,"lockupContainerType",void 0);_.p([_.U(),_.P("design:type",String)],ps.prototype,"thumbnailFixedWidth",void 0);
_.p([_.I({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],ps);
_.a(ps,"ytd-channel-featured-content-renderer",function(){if(WMZ!==void 0)return WMZ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return WMZ=q},{mode:1});var LMh;_.xP("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var P5=function(){var q=_.C.apply(this,arguments)||this;q.roundContainer=!0;q.amsterdamEnabled=_.x("enable_desktop_amsterdam_info_panels");return q};
_.Y(P5,_.C);_.g=P5.prototype;_.g.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.g.dataChanged=function(){this.imageWidth=this.imageHeight=24;var q=this.data;q.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!q.style&&q.image&&q.image.thumbnails.length&&(q=q.image.thumbnails[0],this.imageWidth=q.width||0,this.imageHeight=q.height||0)};
_.g.computeSource=function(q){return q.secondarySource?_.ao(q.secondarySource):_.ao(q.source)};
_.g.computeClarifyStyle=function(q){return q?q.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.g.isLargeStyle=function(q){return q==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.g.computeBackgroundStyle=function(q){return q?q.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.g.computeHasActionButton=function(q){return!!q.actionButton};
_.g.computeHasBottomSection=function(q){return!!q.ctaHasBottomSection};
_.g.computeIsSourceMissing=function(q){return q.ctaHasBottomSection===!1?!0:q&&this.computeSource(q)?!1:!0};
_.g.computeSecondaryEndpoint=function(q){return q.secondaryEndpoint||q.endpoint};
P5.prototype.dataChanged=P5.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],P5.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],P5.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Number)],P5.prototype,"imageWidth",void 0);_.p([_.U(),_.P("design:type",Number)],P5.prototype,"imageHeight",void 0);
_.p([_.U({computed:"computeSecondaryEndpoint(data)"}),_.P("design:type",Object)],P5.prototype,"secondaryEndpoint",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.P("design:type",Boolean)],P5.prototype,"hasActionButton",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.P("design:type",Boolean)],P5.prototype,"hasBottomSection",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.P("design:type",Boolean)],P5.prototype,"missingSource",void 0);_.p([_.U({computed:"computeIcon_(data.icon)"}),_.P("design:type",String)],P5.prototype,"icon",void 0);_.p([_.U({computed:"computeIcon_(data.secondaryIcon)"}),_.P("design:type",String)],P5.prototype,"secondaryIcon",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.P("design:type",String)],P5.prototype,"clarifyStyle",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.P("design:type",String)],P5.prototype,"backgroundStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],P5.prototype,"roundContainer",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],P5.prototype,"amsterdamEnabled",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P5.prototype,"dataChanged",null);
_.p([_.I({is:"ytd-clarification-renderer",disableElementRegistration:!0})],P5);
_.a(P5,"ytd-clarification-renderer",function(){if(LMh!==void 0)return LMh;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return LMh=q},{mode:1});var pRc;var PTX;var Mi=function(){var q=_.C.apply(this,arguments)||this;q.amsterdamEnabled=_.x("enable_desktop_amsterdam_info_panels");return q};
_.Y(Mi,_.C);_.g=Mi.prototype;_.g.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.g.computeIcon=function(q){return q?"yt-icons:"+q.toLowerCase():null};
_.g.computeUseContacts=function(q){return!!q.contacts&&q.contacts.length>0};
_.g.computePhoneContact=function(q){var N,b;return(N=q.contacts)==null?void 0:(b=N.find(function(y){var J;return(y==null?void 0:(J=y.icon)==null?void 0:J.iconType)==="PHONE"}))==null?void 0:b.actionText};
_.g.computeSmsContact=function(q){var N,b;return(N=q.contacts)==null?void 0:(b=N.find(function(y){var J;return(y==null?void 0:(J=y.icon)==null?void 0:J.iconType)==="SMS"}))==null?void 0:b.actionText};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Mi.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Mi.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Mi.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Mi.prototype,"amsterdamEnabled",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.P("design:type",Boolean)],Mi.prototype,"useContacts",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.P("design:type",String)],Mi.prototype,"phoneContact",void 0);_.p([_.I({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Mi);
_.a(Mi,"ytd-single-action-emergency-support-renderer",function(){if(PTX!==void 0)return PTX;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return PTX=q},{mode:1});_.xP("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var ov=function(){var q=_.C.apply(this,arguments)||this;q.roundedContainer=!0;q.amsterdamEnabled=_.x("enable_desktop_amsterdam_info_panels");return q};
_.Y(ov,_.C);ov.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"}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ov.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ov.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ov.prototype,"roundedContainer",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],ov.prototype,"amsterdamEnabled",void 0);
_.p([_.I({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],ov);
_.a(ov,"ytd-emergency-onebox-renderer",function(){if(pRc!==void 0)return pRc;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return pRc=q},{mode:1});var MjZ;_.xP("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Au=function(){return _.C.apply(this,arguments)||this};
_.Y(Au,_.C);Au.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"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Au.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Au.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Au.prototype,"data",void 0);_.p([_.I({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Au);
_.a(Au,"ytd-exploratory-results-renderer",function(){if(MjZ!==void 0)return MjZ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return MjZ=q},{mode:1});var oEB;_.xP("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var eh=function(){var q=_.C.apply(this,arguments)||this;q.messageData=null;return q};
_.Y(eh,_.C);_.g=eh.prototype;_.g.onServiceRequestCompleted=function(q,N){q=N.actions||[];N=0;for(var b=q.length;N<b;N++){var y=q[N],J=void 0,E=void 0;if((J=_.v(y,_.fO))==null?0:(E=J.item)==null?0:E.messageRenderer)this.messageData=_.v(y,_.fO).item.messageRenderer}};
_.g.dataChanged=function(){var q=this.data;this.hostElement.hidden=!1;_.HP(this.hostElement,"is-channel",q&&!q.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.g.computeThumbnailWidth=function(q){return q?126:56};
_.g.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.g.onSubmitTap=function(){var q=this.data,N=this.selectedResponseIndex;q!==void 0&&N!==void 0&&(q=q.responses[N],q.responseData&&_.tz().resolve(_.rO).resolveCommand(q.responseData,{form:{element:this.hostElement}}))};
_.g.onDismissTap=function(){this.hostElement.hidden=!0;var q=this.data;q!==void 0&&q.dismissalEndpoint&&_.tz().resolve(_.rO).resolveCommand(q.dismissalEndpoint,{form:{element:this.hostElement}})};
_.g.updateSelectedResponseIndexFromBinding=function(q){this.selectedResponseIndex=q.detail.value};
eh.prototype.onSelectedResponseIndexChange=eh.prototype.onSelectedResponseIndexChange;eh.prototype.dataChanged=eh.prototype.dataChanged;eh.prototype.onServiceRequestCompleted=eh.prototype.onServiceRequestCompleted;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],eh.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],eh.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],eh.prototype,"messageData",void 0);
_.p([_.U(),_.P("design:type",Number)],eh.prototype,"selectedResponseIndex",void 0);_.p([_.dq("#submit-button"),_.P("design:type",HTMLButtonElement)],eh.prototype,"submitButton",void 0);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],eh.prototype,"onServiceRequestCompleted",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eh.prototype,"dataChanged",null);
_.p([_.FY("selectedResponseIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eh.prototype,"onSelectedResponseIndexChange",null);_.p([_.I({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],eh);
_.a(eh,"ytd-feedback-elicitation-single-question-renderer",function(){if(oEB!==void 0)return oEB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return oEB=q},{mode:1});var A4X;var B5=function(){return _.C.apply(this,arguments)||this};
_.Y(B5,_.C);B5.prototype.computeThumbnailWidth=function(q){return q?602:428};
B5.prototype.updateWideFromBinding=function(q){this.wide=q.detail.value};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],B5.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],B5.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],B5.prototype,"wide",void 0);_.p([_.I({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],B5);
_.a(B5,"ytd-newspaper-hero-video-renderer",function(){if(A4X!==void 0)return A4X;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return A4X=q},{mode:1});var eJy;var Bxv=function(){return _.C.apply(this,arguments)||this};
_.Y(Bxv,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Bxv.prototype,"rendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Bxv.prototype,"data",void 0);_.p([_.I({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],Bxv);
_.a(Bxv,"ytd-newspaper-mini-video-renderer",function(){if(eJy!==void 0)return eJy;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return eJy=q},{mode:1});var H1x;_.xP("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var H5=function(){return _.C.apply(this,arguments)||this};
_.Y(H5,_.C);H5.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"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],H5.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],H5.prototype,"data",void 0);_.p([_.I({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],H5);
_.a(H5,"ytd-newspaper-renderer",function(){if(H1x!==void 0)return H1x;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return H1x=q},{mode:1});var qf7;_.xP("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var qZ=function(){var q=_.C.apply(this,arguments)||this;q.isSegment=!1;q.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};q.nextContinuation={continuationType:"playlistVideoListContinuation"};return q};
_.Y(qZ,_.C);_.g=qZ.prototype;_.g.created=function(){var q=this;this.JSC$22261_ytReorderableController=new _.dS1(101,function(N){q.handleDrop(N)})};
_.g.attached=function(){_.tz();var q;(q=_.tz().resolve(_.$f(_.Pm)))!=null&&(q.playlistVideoListElement=this.hostElement)};
_.g.detached=function(){var q;(q=_.tz().resolve(_.$f(_.Pm)))!=null&&(q.playlistVideoListElement=void 0);q=_.tz().resolve(_.$f(_.UQ));_.x("web_enable_voting_animation")&&q&&(q.parentElem=void 0,q.videos=[],q.continuationsPresent=!1,q.showRefreshPill=!1);_.IQ(this.JSC$22261_ytReorderableController)};
_.g.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"}}}}}};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.g.dataChanged=function(){var q=_.tz().resolve(_.$f(_.UQ));if(_.x("web_enable_voting_animation")&&this.data&&q){var N=_.ee(this.hostElement).querySelector("#contents");N&&(q.parentElem=N);q.addVideos(this.data.contents)}_.IQ(this.JSC$22261_ytReorderableController)};
_.g.onRendererstamperFinished=function(){this.canReorder&&_.cRo(this.JSC$22261_ytReorderableController,_.ee(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.g.onPlaylistReloading=function(){this.isReloading=!0};
_.g.onUpdateSetVideoId=function(q){if(q.detail&&this.data&&this.data.contents){var N=q.detail;q=this.data.contents.findIndex(function(J){var E;return((E=J.playlistVideoRenderer)==null?void 0:E.videoId)===N.videoId});
if(!(q<0)&&N.setVideoId&&(this.set("data.contents."+q+".playlistVideoRenderer.setVideoId",N.setVideoId),_.x("web_enable_voting_animation"))){var b;if(q=_.v((b=this.data.contents[q].playlistVideoRenderer)==null?void 0:b.engagementBar,_.EuC)){var y;(y=q.actions)==null||y.forEach(function(J){if(J=_.v(J,_.guJ))J.itemId=N.setVideoId})}(b=_.tz().resolve(_.$f(_.UQ)))&&Qlh(b,N.videoId,N.setVideoId)}}};
_.g.computeContentsClass=function(q){return q?"reloading":""};
_.g.computeIsSortable=function(q,N){return q&&N>0&&!this.isSegment&&!_.x("shorts_in_playlists_web")};
_.g.computeIsEditable=function(q){return q};
_.g.computeCanReorder=function(q){return q};
_.g.handlePlaylistRemoveVideosAction=function(q){if(this.get("playlistRemoveVideosAction.setVideoIds",q)&&this.data&&this.data.contents){q=_.v(q,_.WSl).setVideoIds;for(var N=this.data.contents.length-1;N>=0;){var b=this.data.contents[N].playlistVideoRenderer;b&&b.setVideoId&&q.includes(b.setVideoId)&&this.splice("data.contents",N,1);N--}_.By(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.g.updateIndices=function(){if(this.data&&this.data.contents)for(var q=0;q<this.data.contents.length;q++)this.set("data.contents."+q+".playlistVideoRenderer.index",_.nD(String(q+1)))};
_.g.handleDrop=function(q){q=q.currDragItem;var N=_.Tz(q.parentNode.childNodes,q),b=this.data.contents.splice(Number(_.ao(q.data.index))-1,1)[0];this.data.contents.splice(N,0,b);N=N?this.get("contents."+(N-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();q=this.buildReorderServiceEndpoint(q.data.setVideoId,N);this.ytComponentBehavior.resolveCommand(q)};
_.g.buildReorderServiceEndpoint=function(q,N){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",q),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",N),this.data.onReorderEndpoint):null};
_.g.handleUpdatePlaylistAction=function(q){var N;(q=_.v((N=_.v(q,_.LSq))==null?void 0:N.updatedRenderer,_.pQF))&&this.canReorder!==q.canReorder&&this.set("data.canReorder",q.canReorder);q&&q.contents&&(this.set("data.contents",q.contents),this.isReloading=!1);q&&q.continuations&&this.set("data.continuations",q.continuations)};
_.g.handleAddRendererToItemSectionAction=function(q){var N,b=(N=_.v(q,KMh))==null?void 0:N.renderer,y;b&&((y=_.v(q,KMh))==null?void 0:y.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,b),q=_.tz().resolve(_.$f(_.UQ)),_.x("web_enable_voting_animation")&&q&&(b&&(N=_.JHA(b))&&q.recommendedVideos.push({itemId:N,videoId:_.Zbd(b),voteCount:_.Fru(b),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.g.isVotingEnabledOnPlaylist=function(q){if(!q)return!1;q=_.Z(q);for(q=q.next();!q.done;q=q.next()){var N=void 0;return!!_.v((N=q.value.playlistVideoRenderer)==null?void 0:N.engagementBar,_.EuC)}return!1};
_.g.onAppendContinuationItemsActionFinished=function(){var q;this.isVotingEnabledOnPlaylist((q=this.data)==null?void 0:q.contents)&&(this.updateIndices(),q=_.tz().resolve(_.$f(_.UQ)),_.x("web_enable_voting_animation")&&q&&this.data&&q.addVideos(this.data.contents))};
_.g.updateVideoData=function(q){if(q.detail&&this.data&&this.data.contents){var N=q.detail;q=N.toIdx;var b=N.itemId,y=N.newVoteCount,J=N.voteStatus;N=N.hideItem;var E,F,R=(E=this.data)==null?void 0:(F=E.contents)==null?void 0:F.findIndex(function(r){return _.JHA(r)===b});
if(!(R<0)){E=this.data.contents[R];var c;if((c=E.playlistVideoRenderer)==null?0:c.voteCount)E.playlistVideoRenderer.voteCount=y;var z;if(c=_.v((z=E.playlistVideoRenderer)==null?void 0:z.engagementBar,_.EuC)){var m;(m=c.actions)==null||m.forEach(function(r){(r=_.v(r,_.guJ))&&r.initialState&&(r.initialState.votes=y,r.initialState.status=J)})}this.data.contents.splice(R,1);
N||this.data.contents.splice(q,0,E);this.updateIndices()}}};
qZ.prototype.updateVideoData=qZ.prototype.updateVideoData;qZ.prototype.onAppendContinuationItemsActionFinished=qZ.prototype.onAppendContinuationItemsActionFinished;qZ.prototype.onUpdateSetVideoId=qZ.prototype.onUpdateSetVideoId;qZ.prototype.onPlaylistReloading=qZ.prototype.onPlaylistReloading;qZ.prototype.onRendererstamperFinished=qZ.prototype.onRendererstamperFinished;qZ.prototype.dataChanged=qZ.prototype.dataChanged;
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],qZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],qZ.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.m1.YtNextContinuationBehavior),_.P("design:type",Object)],qZ.prototype,"ytNextContinuationBehavior",void 0);
_.p([_.O(_.tA),_.P("design:type",Object)],qZ.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],qZ.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],qZ.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],qZ.prototype,"isReloading",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],qZ.prototype,"isSegment",void 0);
_.p([_.U({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.P("design:type",Boolean)],qZ.prototype,"isSortable",void 0);_.p([_.U({computed:"computeIsEditable(data.isEditable)"}),_.P("design:type",Boolean)],qZ.prototype,"isEditable",void 0);_.p([_.U({computed:"computeCanReorder(data.canReorder)"}),_.P("design:type",Boolean)],qZ.prototype,"canReorder",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qZ.prototype,"dataChanged",null);_.p([_.ZP("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qZ.prototype,"onRendererstamperFinished",null);_.p([_.ZP("yt-playlist-reloading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qZ.prototype,"onPlaylistReloading",null);
_.p([_.ZP("yt-update-set-video-id"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],qZ.prototype,"onUpdateSetVideoId",null);_.p([_.ZP("yt-append-continuation-items-action-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qZ.prototype,"onAppendContinuationItemsActionFinished",null);
_.p([_.ZP("yt-update-video-data-voting-animation"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],qZ.prototype,"updateVideoData",null);_.p([_.I({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],qZ);
_.a(qZ,"ytd-playlist-video-list-renderer",function(){if(qf7!==void 0)return qf7;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return qf7=q},{mode:_.Am("kevlar_poly_si_batch_j047")?1:2});var Npe;var NZ=function(){return _.C.apply(this,arguments)||this};
_.Y(NZ,_.C);NZ.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"}}}}};
NZ.prototype.onTextWrapperTap=function(q){var N=this.data&&this.data.navigationEndpoint;N&&!_.Su(_.n9(q),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.e2(this.hostElement,"yt-navigate",{endpoint:N})};
NZ.prototype.dataChanged=function(){var q=this.get("data.offerButton.buttonRenderer.serviceEndpoint");q&&q.commandMetadata&&_.v(q.commandMetadata,_.nO)&&_.v(q.commandMetadata,_.nO).fireAutomatically&&_.tz().resolve(_.rO).resolveCommand(q,{form:{element:this.hostElement}})};
NZ.prototype.dataChanged=NZ.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],NZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Fi),_.P("design:type",Object)],NZ.prototype,"ytdLockupBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],NZ.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.x("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],NZ.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.jA("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],NZ.prototype,"biggerThumbsStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],NZ.prototype,"leftAligned",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],NZ.prototype,"dataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-movie-renderer"})],NZ);
_.a(NZ,"ytd-movie-renderer",function(){if(Npe!==void 0)return Npe;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Npe=q},{mode:1});var bUv;var b6=function(){var q=_.C.apply(this,arguments)||this;q.rounded=!0;q.pageAttachedTo=void 0;q.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return q};
_.Y(b6,_.C);b6.prototype.attached=function(){this.pageAttachedTo=_.tz().resolve(_.L6).getCurrentPage();_.e2(this.hostElement,"yt-player-attached",this.player)};
b6.prototype.detached=function(){var q;if((q=this.pageAttachedTo)==null?0:q.hostElement)_.e2(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
b6.prototype.dataChanged=function(){var q;if((q=this.data)==null?0:q.videoId)q={video_id:this.data.videoId,autoplay:!0},!_.x("miniplayer_stop_channel_video_autoplay_killswitch")&&_.tz().resolve(_.l9).isMiniplayerActive()&&(q.pause_at_start=!0,q.autoplay=!1),this.player.loadVideoWithPlayerVars(q)};
b6.prototype.handleSignalActionPausePlayer=function(){_.MO().pause()};
b6.prototype.dataChanged=b6.prototype.dataChanged;_.p([_.U(),_.P("design:type",Object)],b6.prototype,"data",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],b6.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],b6.prototype,"rounded",void 0);_.p([_.dq("#player"),_.P("design:type",Object)],b6.prototype,"player",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],b6.prototype,"dataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],b6);
_.a(b6,"ytd-channel-video-player-renderer",function(){if(bUv!==void 0)return bUv;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return bUv=q},{mode:1});var yae;var JaB;var Eac;var yN=function(){var q=_.C.apply(this,arguments)||this;q.playing=!1;q.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.en(q);q.active=!1;return q};
_.Y(yN,_.C);_.g=yN.prototype;_.g.detached=function(){this.stop()};
_.g.play=function(){var q=this,N,b,y,J,E;return _.d(function(F){if(F.nextAddress==1)return q.active=!0,N=q.get("data.inlinePlaybackEndpoint.watchEndpoint"),b=N.videoId||q.data.videoId,y=N.startTimeSeconds||0,J=N.playerParams||null,_.x("kevlar_player_update_killswitch")?F.yield(q.playerEl.update({args:{video_id:b,startSeconds:y,player_params:J}}),2):(q.playerEl.loadVideoWithPlayerVars({video_id:b,startSeconds:y,player_params:J,autoplay:!0}),F.jumpTo(2));if(F.nextAddress!=4)return F.yield(q.playerEl.getPlayerPromise(),
4);E=F.yieldResult;E.unloadModule("annotations_module");E.addEventListener("onStateChange",function(R){q.onPlayerStateChange(R)});
_.hj(F)})};
_.g.onPlayerStateChange=function(q){if(this.active)switch(this.playing=q===1,q){case 1:_.e2(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.e2(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.g.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.g.resize=function(){var q=this,N;return _.d(function(b){if(b.nextAddress==1)return b.yield(q.playerEl.getPlayerPromise(),2);N=b.yieldResult;N.setSize(NaN,NaN);_.hj(b)})};
_.p([_.U(),_.P("design:type",Object)],yN.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],yN.prototype,"playing",void 0);_.p([_.U(),_.P("design:type",Object)],yN.prototype,"playerId",void 0);_.p([_.dq("#player"),_.P("design:type",Object)],yN.prototype,"playerEl",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],yN);
_.a(yN,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(Eac!==void 0)return Eac;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Eac=q},{mode:1});var gaB;var ZUs;var JH=function(){var q=_.C.apply(this,arguments)||this;q.width=0;return q};
_.Y(JH,_.C);_.g=JH.prototype;_.g.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.gq(this,this.onEnded));this.mp4El.addEventListener("error",_.gq(this,this.onError))};
_.g.detached=function(){this.videoEl.removeEventListener("ended",_.gq(this,this.onEnded));this.mp4El.removeEventListener("error",_.gq(this,this.onError))};
_.g.play=function(){var q=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var N=this.videoEl.play();N?N.then(function(){q.handleVideoStartPlaying()}).catch(function(){_.e2(q.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.e2(this.hostElement,"yt-video-thumbnail-not-playing")};
_.g.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.g.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.g.dataChanged=function(){var q;if((q=this.data)==null?0:q.thumbnailPlaceholder)q=_.Mo(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+q+")";this.stop();this.autoplay&&this.play()};
_.g.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.g.onEnded=function(){this.stop();_.e2(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.g.onError=function(){_.e2(this.hostElement,"yt-video-thumbnail-error")};
_.g.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.g.getVideoThumbnail=function(q){if(q&&q.length)return q[0]};
JH.prototype.dataChanged=JH.prototype.dataChanged;_.p([_.U(),_.P("design:type",Object)],JH.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],JH.prototype,"animatePlaceholderOnEntrance",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],JH.prototype,"autoplay",void 0);_.p([_.U({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.P("design:type",Object)],JH.prototype,"videoThumbnail",void 0);
_.p([_.U(),_.P("design:type",Boolean)],JH.prototype,"loop",void 0);_.p([_.U(),_.P("design:type",Boolean)],JH.prototype,"isVideoPlaying",void 0);_.p([_.U(),_.P("design:type",Object)],JH.prototype,"width",void 0);_.p([_.dq("#mp4"),_.P("design:type",HTMLElement)],JH.prototype,"mp4El",void 0);_.p([_.dq("#placeholder"),_.P("design:type",HTMLElement)],JH.prototype,"placeholderEl",void 0);_.p([_.dq("#video"),_.P("design:type",HTMLVideoElement)],JH.prototype,"videoEl",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],JH.prototype,"dataChanged",null);_.p([_.Ok({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],JH);
_.a(JH,"yt-video-as-thumbnail-details",function(){if(ZUs===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;gaB===void 0&&(gaB=document.createElement("template"));var y=gaB;b.call(N,y.content.cloneNode(!0),q.content.firstChild);ZUs=q}q=ZUs;return q},{mode:2});var EF=function(){var q=_.C.apply(this,arguments)||this;q.disableGridStateAware=!1;q.animationEnabled=_.x("enable_web_ketchup_hero_animation");q.transitioningOut=!1;q.narrow=!1;q.narrower=!1;q.isCarouselInFeed=!1;q.videoTimeoutJobId=0;q.panelTimeoutJobId=0;q.panelTimeoutJobStartMs=0;q.actionMap={"yt-window-resized":"onWindowResized"};return q};
_.Y(EF,_.C);_.g=EF.prototype;_.g.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.g.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var q;this.player&&((q=this.data)==null?0:q.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.g.attached=function(){this.onWindowResized()};
_.g.detached=function(){this.clearTimeouts()};
_.g.onWindowResized=function(){this.updateSize()};
_.g.computePanelLayout=function(q){return q&&q.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.g.playVideo=function(){var q;this.video&&((q=this.data)==null?0:q.videoThumbnail)&&this.video.play();var N;this.player&&((N=this.data)==null?0:N.inlinePlaybackRenderer)&&this.player.play()};
_.g.stopVideo=function(){var q;this.video&&((q=this.data)==null?0:q.videoThumbnail)&&this.video.stop();var N;this.player&&((N=this.data)==null?0:N.inlinePlaybackRenderer)&&this.player.stop()};
_.g.transitionOut=function(){var q=this;this.transitioningOut=!0;return new Promise(function(N){var b=function(){_.ee(q.hostElement).querySelector("#action-button").removeEventListener("animationend",b);_.pY.cancelJob(y);N();q.transitioningOut=!1};
var y=_.Ip(_.pY,b,1E3);_.ee(q.hostElement).querySelector("#action-button").addEventListener("animationend",b);q.player&&(q.player.playing=!1)})};
_.g.computeMetadataOrder=function(q){return q&&q.metadataOrder&&q.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?q.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.g.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.g.computeAvatarSize=function(q){return q&&q.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.g.onContentClick=function(q){if(!_.Su(_.n9(q),this.hostElement,["A".toString(),"BUTTON".toString()])){var N;if((N=this.data)==null?0:N.navigationEndpoint){var b;this.componentBehavior.resolveCommand((b=this.data)==null?void 0:b.navigationEndpoint)}}};
_.g.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.g.setBackgroundImage=function(q){if(q=this.getBackgroundImageUrl(q))_.ee(this.hostElement).querySelector("#hero").style.backgroundImage="url("+q+")"};
_.g.setScrimLayer=function(q){var N=this.getScrimLayerColorStops(q);q=((q==null?void 0:q.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(q=180);_.M7("HTML_DIR")==="rtl"&&(q=-q);N&&(_.ee(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+q+"deg, "+N+")")};
_.g.isNarrower=function(){return this.hostElement.clientWidth<EF.NARROW_VERSION_SIZE};
_.g.getScrimLayerColorStops=function(){var q,N=(q=this.data)==null?void 0:q.scrimColorValues;if(!N)return null;if(N.length===1)return q=_.Y8(N[0]),q+" 0%, "+q+" 100%";if(N.length===3){var b=[0,72,98];return N.map(function(y,J){return _.Y8(y)+" "+b[J]+"%"}).join(",")}return null};
_.g.getBackgroundImageUrl=function(q){return q&&q.largeFormFactorBackgroundThumbnail?_.Mo((q.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||q.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.g.onPlaying=function(){this.startVideoTimeout()};
_.g.onEnded=function(){this.rotate()};
_.g.startPanelTimeout=function(){var q=this;if(!this.panelTimeoutJobId){var N=this.get("data.minPanelDisplayDurationMs");N&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.Ip(_.pY,function(){q.rotate()},N))}};
_.g.startVideoTimeout=function(){var q=this;if(!this.videoTimeoutJobId){_.pY.cancelJob(this.panelTimeoutJobId);var N=Date.now()-this.panelTimeoutJobStartMs;N=Math.max(0,this.get("data.minPanelDisplayDurationMs")-N);N=Math.max(this.get("data.minVideoPlayDurationMs")||0,N);this.videoTimeoutJobId=_.Ip(_.pY,function(){q.rotate()},N)}};
_.g.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.pY.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.pY.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.g.rotate=function(){this.clearTimeouts();_.e2(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.$H.Object.defineProperties(EF.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.ee(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.ee(this.hostElement).querySelector("#video")}}});
_.$H.Object.defineProperties(EF,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
EF.prototype.onEnded=EF.prototype.onEnded;EF.prototype.onPlaying=EF.prototype.onPlaying;EF.prototype.dataChanged=EF.prototype.dataChanged;_.p([_.O(_.y1),_.P("design:type",Object)],EF.prototype,"ytdGridStateAwareBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],EF.prototype,"componentBehavior",void 0);_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],EF.prototype,"ytdGuideStateAwareBehavior",void 0);
_.p([_.O(_.Jaa),_.P("design:type",Object)],EF.prototype,"ytBooleanLogicBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],EF.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],EF.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],EF.prototype,"disableGridStateAware",void 0);_.p([_.U(),_.P("design:type",Object)],EF.prototype,"data",void 0);_.p([_.U({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.P("design:type",String)],EF.prototype,"panelLayout",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],EF.prototype,"animationEnabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],EF.prototype,"transitioningOut",void 0);
_.p([_.U({computed:"computeMetadataOrder(data)"}),_.P("design:type",Boolean)],EF.prototype,"metadataOrder",void 0);_.p([_.U({computed:"computeByline(data)"}),_.P("design:type",Object)],EF.prototype,"byline",void 0);_.p([_.U({computed:"computeAvatarSize(data)"}),_.P("design:type",Number)],EF.prototype,"avatarSize",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],EF.prototype,"narrow",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],EF.prototype,"narrower",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],EF.prototype,"layoutStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],EF.prototype,"isCarouselInFeed",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EF.prototype,"dataChanged",null);_.p([_.ZP("yt-default-promo-panel-renderer-playing"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EF.prototype,"onPlaying",null);
_.p([_.ZP("yt-default-promo-panel-renderer-ended"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EF.prototype,"onEnded",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],EF);
_.a(EF,"ytd-default-promo-panel-renderer",function(){if(JaB!==void 0)return JaB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return JaB=q},{mode:1});_.xP("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var gf=function(){var q=_.C.apply(this,arguments)||this;q.narrower=!1;q.dotMenuVisible=!1;q.paginationThumbnailsVisible=!1;q.active=!0;q.disableGridStateAware=!1;q.actionMap={"yt-window-resized":"onWindowResized"};return q};
_.Y(gf,_.C);_.g=gf.prototype;_.g.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]]"}}}}}};
_.g.attached=function(){document.addEventListener("yt-page-type-changed",_.gq(this,this.onPageTypeChange));this.currentPageSubtype=_.JvA(location.pathname);this.onWindowResized()};
_.g.detached=function(){this.jobId&&_.pY.cancelJob(this.jobId);this.updateSizeJobId&&_.pY.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.gq(this,this.onPageTypeChange))};
_.g.onPageTypeChange=function(q){this.active=q.detail.newPageSubtype===this.currentPageSubtype};
_.g.onWindowResized=function(){this.updateSize()};
_.g.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.g.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.g.setCarouselItem=function(q){q>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.pY.cancelJob(this.jobId);var N=this.getCurrentPanelElement();N&&N.stopVideo();this.currentItemIndex=q%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(N||(N=this.getCurrentPanelElement()),N.playVideo()):this.startRotationJob()};
_.g.scrollThumbnails=function(q){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var N=this.getCurrentPaginationElement();if(N){var b=_.ee(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?b.style.transform="translateX(0)":(N=N.offsetWidth+8,b.style.transform="translateX(-"+N*(q-Math.ceil(Math.floor(this.overlay.offsetWidth/N)/2)+1)+"px)")}}};
_.g.onDataChanged=function(){var q=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.ZQ(_.pY,function(){var N;(N=q.getCurrentPanelElement())==null||N.updateSize();q.updateSize()}))};
_.g.getCurrentPanelElement=function(){return _.ee(_.ee(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.g.getCurrentPaginationElement=function(){return _.ee(_.ee(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.g.getNavigationClass=function(q,N){return q===N?"selected":""};
_.g.getNavigationDurationStyle=function(q){return"animation-duration:"+(this.get("data.carouselItems."+q+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.g.onNavigationTap=function(q){var N=this,b=q.model.index;b!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){N.setCarouselItem(b)}),this.autorotateActive=!1)};
_.g.onVideoThumbnailEnded=function(){var q=this;if(this.shouldRotate()){var N=this.getCurrentPaginationElement();N&&(N.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){N.classList.remove("finished");q.setNextCarouselItem()}))}};
_.g.onVideoThumbnailError=function(){this.startRotationJob()};
_.g.onVideoNotPlaying=function(){this.startRotationJob()};
_.g.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.g.startRotationJob=function(){var q=this;_.pY.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.pY.addLowPriorityJob(function(){q.getCurrentPanelElement().transitionOut().then(function(){q.setNextCarouselItem()})},this.rotationTimeout))};
_.g.computeDotMenuVisible=function(q,N){return!!q&&!!q.carouselItems&&q.carouselItems.length>1&&!q.paginationThumbnails||!!N};
_.g.computePaginationThumbnailsVisible=function(q,N){var b,y;return((y=q==null?void 0:(b=q.paginationThumbnails)==null?void 0:b.length)!=null?y:0)>1&&!N};
_.g.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.g.computePaginatorAlignment=function(q){return(q==null?void 0:q.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.g.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.g.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.g.isNarrower=function(q){return(q!=null?q:0)<EF.NARROW_VERSION_SIZE};
gf.prototype.activeChanged=gf.prototype.activeChanged;gf.prototype.onVideoNotPlaying=gf.prototype.onVideoNotPlaying;gf.prototype.onVideoThumbnailError=gf.prototype.onVideoThumbnailError;gf.prototype.onVideoThumbnailEnded=gf.prototype.onVideoThumbnailEnded;gf.prototype.onDataChanged=gf.prototype.onDataChanged;_.p([_.O(_.y1),_.P("design:type",Object)],gf.prototype,"ytdGridStateAwareBehavior",void 0);
_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],gf.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],gf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],gf.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],gf.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],gf.prototype,"currentItem",void 0);
_.p([_.U(),_.P("design:type",Number)],gf.prototype,"currentItemIndex",void 0);_.p([_.U(),_.P("design:type",Number)],gf.prototype,"rotationTimeout",void 0);_.p([_.U(),_.P("design:type",Number)],gf.prototype,"loopCount",void 0);_.p([_.U({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.P("design:type",String)],gf.prototype,"paginatorAlignment",void 0);_.p([_.U(),_.P("design:type",Number)],gf.prototype,"jobId",void 0);
_.p([_.U(),_.P("design:type",Number)],gf.prototype,"updateSizeJobId",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],gf.prototype,"isCarouselInFeed",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gf.prototype,"narrower",void 0);_.p([_.U({computed:"computeDotMenuVisible(data, narrower)"}),_.P("design:type",Object)],gf.prototype,"dotMenuVisible",void 0);
_.p([_.U({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.P("design:type",Object)],gf.prototype,"paginationThumbnailsVisible",void 0);_.p([_.U({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.P("design:type",String)],gf.prototype,"layoutType",void 0);_.p([_.U({value:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],gf.prototype,"autorotateActive",void 0);_.p([_.U(),_.P("design:type",Object)],gf.prototype,"active",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gf.prototype,"disableGridStateAware",void 0);_.p([_.dq("#overlay"),_.P("design:type",HTMLElement)],gf.prototype,"overlay",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gf.prototype,"onDataChanged",null);
_.p([_.ZP("yt-video-thumbnail-ended"),_.ZP("yt-default-promo-panel-renderer-rotate"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gf.prototype,"onVideoThumbnailEnded",null);_.p([_.ZP("yt-video-thumbnail-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gf.prototype,"onVideoThumbnailError",null);
_.p([_.ZP("yt-video-thumbnail-not-playing"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gf.prototype,"onVideoNotPlaying",null);_.p([_.$9("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gf.prototype,"activeChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],gf);
_.a(gf,"ytd-carousel-item-renderer",function(){if(yae!==void 0)return yae;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return yae=q},{mode:2});var FKx;var Rxe;var dNy;var cac;var Z5=function(){var q=_.C.apply(this,arguments)||this;q.originalQuery=null;q.originalEndpoint=null;return q};
_.Y(Z5,_.C);Z5.prototype.computeShowOriginalQueryWithoutEndpoint_=function(q,N){return!(!q||N)};
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Z5.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Z5.prototype,"correctedText",void 0);_.p([_.U(),_.P("design:type",Object)],Z5.prototype,"correctedQuery",void 0);_.p([_.U(),_.P("design:type",Object)],Z5.prototype,"correctedEndpoint",void 0);_.p([_.U(),_.P("design:type",Object)],Z5.prototype,"originalText",void 0);_.p([_.U(),_.P("design:type",Object)],Z5.prototype,"originalQuery",void 0);
_.p([_.U(),_.P("design:type",Object)],Z5.prototype,"originalEndpoint",void 0);_.p([_.U({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.P("design:type",Boolean)],Z5.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.p([_.Ok({is:"yt-search-query-correction",disableElementRegistration:!0})],Z5);
_.a(Z5,"yt-search-query-correction",function(){if(cac===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;dNy===void 0&&(dNy=document.createElement("template"));var y=dNy;b.call(N,y.content.cloneNode(!0),q.content.firstChild);cac=q}q=cac;return q},{mode:2});_.xP("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var uAc=function(){return _.C.apply(this,arguments)||this};
_.Y(uAc,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],uAc.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],uAc.prototype,"data",void 0);_.p([_.Ok({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],uAc);
_.a(uAc,"yt-did-you-mean-renderer",function(){if(Rxe===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;FKx===void 0&&(FKx=document.createElement("template"));var y=FKx;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Rxe=q}q=Rxe;return q},{mode:2});var zx7;var $Ne;_.xP("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var tXv=function(){return _.C.apply(this,arguments)||this};
_.Y(tXv,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],tXv.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],tXv.prototype,"data",void 0);_.p([_.Ok({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],tXv);
_.a(tXv,"yt-including-results-for-renderer",function(){if($Ne===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;zx7===void 0&&(zx7=document.createElement("template"));var y=zx7;b.call(N,y.content.cloneNode(!0),q.content.firstChild);$Ne=q}q=$Ne;return q},{mode:2});var mNs;var rav;_.xP("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var FS=function(){return _.C.apply(this,arguments)||this};
_.Y(FS,_.C);FS.prototype.computeExtraClasses_=function(q,N){var b="";q&&(b+=" "+q.toLowerCase().replace(/_/g,"-"));N&&(b+=" "+N.toLowerCase().replace(/_/g,"-"));return b};
FS.prototype.computeUrlImg_=function(){var q=this.data;q.image&&(_.ee(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.Mo(q.image.thumbnails,Number.MAX_VALUE)+")")};
FS.prototype.computeUrlImg_=FS.prototype.computeUrlImg_;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],FS.prototype,"data",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FS.prototype,"computeUrlImg_",null);_.p([_.Ok({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],FS);
_.a(FS,"yt-music-pass-feature-info-renderer",function(){if(rav===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;mNs===void 0&&(mNs=document.createElement("template"));var y=mNs;b.call(N,y.content.cloneNode(!0),q.content.firstChild);rav=q}q=rav;return q},{mode:2});var XdB;var VXB;_.xP("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var jfh=function(){return _.C.apply(this,arguments)||this};
_.Y(jfh,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],jfh.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],jfh.prototype,"data",void 0);_.p([_.Ok({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],jfh);
_.a(jfh,"yt-no-results-found-showing-results-for-renderer",function(){if(VXB===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;XdB===void 0&&(XdB=document.createElement("template"));var y=XdB;b.call(N,y.content.cloneNode(!0),q.content.firstChild);VXB=q}q=VXB;return q},{mode:2});var xNc;var vaB;_.xP("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var Gcx=function(){return _.C.apply(this,arguments)||this};
_.Y(Gcx,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Gcx.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Gcx.prototype,"data",void 0);_.p([_.Ok({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],Gcx);
_.a(Gcx,"yt-results-without-quotes-renderer",function(){if(vaB===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;xNc===void 0&&(xNc=document.createElement("template"));var y=xNc;b.call(N,y.content.cloneNode(!0),q.content.firstChild);vaB=q}q=vaB;return q},{mode:2});var YfB;var Qfl;_.xP("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var OUy=function(){return _.C.apply(this,arguments)||this};
_.Y(OUy,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],OUy.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],OUy.prototype,"data",void 0);_.p([_.Ok({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],OUy);
_.a(OUy,"yt-search-no-results-renderer",function(){if(Qfl===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;YfB===void 0&&(YfB=document.createElement("template"));var y=YfB;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Qfl=q}q=Qfl;return q},{mode:2});var wdl;var iUc;_.xP("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var lWc=function(){return _.C.apply(this,arguments)||this};
_.Y(lWc,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],lWc.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],lWc.prototype,"data",void 0);_.p([_.Ok({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],lWc);
_.a(lWc,"yt-showing-results-for-renderer",function(){if(iUc===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;wdl===void 0&&(wdl=document.createElement("template"));var y=wdl;b.call(N,y.content.cloneNode(!0),q.content.firstChild);iUc=q}q=iUc;return q},{mode:2});var KKc;var DNl;var hxh;var kcy;var vN=function(){var q=_.C.apply(this,arguments)||this;q.answerExpanded=!1;return q};
_.Y(vN,_.C);vN.prototype.toggleAnswer_=function(q){var N=_.a0(q);N&&N.classList.contains("yt-simple-endpoint")||(q.preventDefault(),q.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
vN.prototype.toggleAnswer_=vN.prototype.toggleAnswer_;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],vN.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],vN.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],vN.prototype,"answerExpanded",void 0);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],vN.prototype,"toggleAnswer_",null);
_.p([_.Ok({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],vN);
_.a(vN,"yt-generic-faq-question-renderer",function(){if(kcy===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;hxh===void 0&&(hxh=document.createElement("template"));var y=hxh;b.call(N,y.content.cloneNode(!0),q.content.firstChild);kcy=q}q=kcy;return q},{mode:2});_.xP("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var GA=function(){return _.C.apply(this,arguments)||this};
_.Y(GA,_.C);GA.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],GA.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],GA.prototype,"data",void 0);_.p([_.Ok({is:"yt-faq-section-renderer",disableElementRegistration:!0})],GA);
_.a(GA,"yt-faq-section-renderer",function(){if(DNl===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;KKc===void 0&&(KKc=document.createElement("template"));var y=KKc;b.call(N,y.content.cloneNode(!0),q.content.firstChild);DNl=q}q=DNl;return q},{mode:2});var UNy;var fW_;_.xP("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var Yu=function(){return _.C.apply(this,arguments)||this};
_.Y(Yu,_.C);
Yu.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"}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Yu.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Yu.prototype,"data",void 0);_.p([_.Ok({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],Yu);
_.a(Yu,"yt-offer-item-expanded-renderer",function(){if(fW_===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;UNy===void 0&&(UNy=document.createElement("template"));var y=UNy;b.call(N,y.content.cloneNode(!0),q.content.firstChild);fW_=q}q=fW_;return q},{mode:2});var CB7;var IWl;_.xP("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var QN=function(){return _.C.apply(this,arguments)||this};
_.Y(QN,_.C);
QN.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"}}}}};
QN.prototype.computeFullWidthMode=function(q){return!(!q||!q.fullWidthMode)};
QN.prototype.computeBorderlessMode=function(q){return!(!q||!q.borderlessMode)};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],QN.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],QN.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.P("design:type",Boolean)],QN.prototype,"fullWidthMode",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.P("design:type",Boolean)],QN.prototype,"borderlessMode",void 0);_.p([_.Ok({is:"yt-offer-item-renderer",disableElementRegistration:!0})],QN);
_.a(QN,"yt-offer-item-renderer",function(){if(IWl===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;CB7===void 0&&(CB7=document.createElement("template"));var y=CB7;b.call(N,y.content.cloneNode(!0),q.content.firstChild);IWl=q}q=IWl;return q},{mode:2});var Tpe;var sfB;_.xP("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var OF=function(){return _.C.apply(this,arguments)||this};
_.Y(OF,_.C);OF.prototype.computeAriaLevel_=function(q){return this.getLevelID_(q)};
OF.prototype.getLevelID_=function(q){return(q=q.match(/[0-9]+$/))&&q.length==1?q[0]:"1"};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],OF.prototype,"data",void 0);_.p([_.U({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.P("design:type",String)],OF.prototype,"ariaLevel",void 0);_.p([_.U({value:"heading",reflectToAttribute:!0}),_.P("design:type",String)],OF.prototype,"role",void 0);
_.p([_.U({value:-1,reflectToAttribute:!0}),_.P("design:type",Number)],OF.prototype,"tabindex",void 0);_.p([_.Ok({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],OF);
_.a(OF,"yt-subscription-product-header-renderer",function(){if(sfB===void 0){var q=document.createElement("template");_.Q(q,"\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");q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;Tpe===void 0&&(Tpe=document.createElement("template"));var y=Tpe;b.call(N,y.content.cloneNode(!0),q.content.firstChild);sfB=q}q=sfB;return q},{mode:2});var nae;var aWs;_.xP("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var wf=function(){return _.C.apply(this,arguments)||this};
_.Y(wf,_.C);wf.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:_.vk("menuRenderer"),events:!0}}};
wf.prototype.onStampFinished_=function(){_.ee(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
wf.prototype.onStampFinished_=wf.prototype.onStampFinished_;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],wf.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],wf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],wf.prototype,"data",void 0);_.p([_.ZP("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wf.prototype,"onStampFinished_",null);
_.p([_.Ok({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],wf);
_.a(wf,"yt-subscription-product-renderer",function(){if(aWs===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;nae===void 0&&(nae=document.createElement("template"));var y=nae;b.call(N,y.content.cloneNode(!0),q.content.firstChild);aWs=q}q=aWs;return q},{mode:2});var Sfe;var WKh;_.xP("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var i6=function(){return _.C.apply(this,arguments)||this};
_.Y(i6,_.C);i6.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
i6.prototype.imageScrimColorValuesChanged_=function(){var q,N=(q=this.data)==null?void 0:q.imageScrimColorValues;_.ee(this.hostElement).querySelector("#scrim").style.backgroundColor=N?_.Y8(N[0]):"transparent"};
i6.prototype.imageScrimColorValuesChanged_=i6.prototype.imageScrimColorValuesChanged_;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],i6.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],i6.prototype,"data",void 0);
_.p([_.FY("data.imageScrimColorValues"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],i6.prototype,"imageScrimColorValuesChanged_",null);_.p([_.Ok({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],i6);
_.a(i6,"yt-subscription-product-upsell-offer-renderer",function(){if(WKh===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;Sfe===void 0&&(Sfe=document.createElement("template"));var y=Sfe;b.call(N,y.content.cloneNode(!0),q.content.firstChild);WKh=q}q=WKh;return q},{mode:2});var LKv;var pdh;var PB7;var MX7;var oac;var AaB;var l6=function(){return _.C.apply(this,arguments)||this};
_.Y(l6,_.C);l6.prototype.onYtServiceRequestError_=function(q){_.CT(this.hostElement,q.detail.error.message)};
l6.prototype.onYtServiceRequestError_=l6.prototype.onYtServiceRequestError_;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],l6.prototype,"data",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],l6.prototype,"collapsible",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],l6.prototype,"isManageRed",void 0);
_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],l6.prototype,"onYtServiceRequestError_",null);_.p([_.Ok({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],l6);
_.a(l6,"yt-single-ypc-offer-renderer",function(){if(AaB===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;oac===void 0&&(oac=document.createElement("template"));var y=oac;b.call(N,y.content.cloneNode(!0),q.content.firstChild);AaB=q}q=AaB;return q},{mode:2});var Kb=function(){return _.C.apply(this,arguments)||this};
_.Y(Kb,_.C);Kb.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Kb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Kb.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Kb.prototype,"isManageRed",void 0);_.p([_.Ok({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Kb);
_.a(Kb,"yt-single-ypc-offer-list-renderer",function(){if(MX7===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;PB7===void 0&&(PB7=document.createElement("template"));var y=PB7;b.call(N,y.content.cloneNode(!0),q.content.firstChild);MX7=q}q=MX7;return q},{mode:2});var exX;var Bpc;_.xP("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var D5=function(){return _.C.apply(this,arguments)||this};
_.Y(D5,_.C);D5.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],D5.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],D5.prototype,"data",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],D5.prototype,"isManageRed",void 0);_.p([_.Ok({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],D5);
_.a(D5,"yt-ypc-offers-list-renderer",function(){if(Bpc===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;exX===void 0&&(exX=document.createElement("template"));var y=exX;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Bpc=q}q=Bpc;return q},{mode:2});_.xP("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var hH=function(){return _.C.apply(this,arguments)||this};
_.Y(hH,_.C);
hH.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}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],hH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],hH.prototype,"data",void 0);_.p([_.Ok({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],hH);
_.a(hH,"yt-unlimited-manage-subscription-page-renderer",function(){if(pdh===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;LKv===void 0&&(LKv=document.createElement("template"));var y=LKv;b.call(N,y.content.cloneNode(!0),q.content.firstChild);pdh=q}q=pdh;return q},{mode:2});var HUB;var qh7;var ku=function(){return _.C.apply(this,arguments)||this};
_.Y(ku,_.C);_.g=ku.prototype;_.g.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.g.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.g.onKeypress_=function(q){q.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.g.handleHeaderTap_=function(q){q.preventDefault();q.stopPropagation();this.expandOffers_()};
_.g.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.g.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
ku.prototype.dataChanged_=ku.prototype.dataChanged_;_.p([_.O(_.kT),_.P("design:type",Object)],ku.prototype,"ironA11yKeysBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ku.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ku.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ku.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],ku.prototype,"offersVisible_",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ku.prototype,"dataChanged_",null);_.p([_.Ok({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],ku);
_.a(ku,"yt-collapsible-ypc-offer-renderer",function(){if(qh7===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;HUB===void 0&&(HUB=document.createElement("template"));var y=HUB;b.call(N,y.content.cloneNode(!0),q.content.firstChild);qh7=q}q=qh7;return q},{mode:2});var Nse;var bc7;_.xP("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var UF=function(){return _.C.apply(this,arguments)||this};
_.Y(UF,_.C);_.g=UF.prototype;_.g.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.g.dataChanged_=function(){if(this.data.backgroundImage){var q=_.Mo(this.data.backgroundImage.thumbnails,screen.width),N=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=N?"linear-gradient(180deg, "+N+"), url("+q+")":"url("+q+")";this.data.gtmId&&_.az(this.data.gtmId,_.M7("GL",""))}};
_.g.onYtServiceRequestError_=function(q){_.CT(this.hostElement,q.detail.error.message)};
_.g.getScrimLayerColorStops_=function(){var q,N,b=(q=this.data.unlimitedHeaderV2Data)==null?void 0:(N=q.unlimitedHeaderV2Data)==null?void 0:N.scrimLayerColors;if(!b)return null;var y=100/b.length;return b.map(function(J,E){E*=y;return _.Y8(J)+" "+E+"%"}).join(",")};
_.g.computeLogoWithPadding=function(q){var N,b,y;return(q=(N=q.unlimitedLogoImage)==null?void 0:(b=N.thumbnails)==null?void 0:(y=b[0])==null?void 0:y.height)&&q%31===0?!0:!1};
UF.prototype.onYtServiceRequestError_=UF.prototype.onYtServiceRequestError_;UF.prototype.dataChanged_=UF.prototype.dataChanged_;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],UF.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.p([_.U({computed:"computeLogoWithPadding(data)"}),_.P("design:type",Boolean)],UF.prototype,"logoWithPadding",void 0);
_.p([_.U(),_.P("design:type",Object)],UF.prototype,"data",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],UF.prototype,"dataChanged_",null);_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],UF.prototype,"onYtServiceRequestError_",null);_.p([_.Ok({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],UF);
_.a(UF,"yt-unlimited-page-header-renderer",function(){if(bc7===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;Nse===void 0&&(Nse=document.createElement("template"));var y=Nse;b.call(N,y.content.cloneNode(!0),q.content.firstChild);bc7=q}q=bc7;return q},{mode:2});var yBe;var JBc;_.xP("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var fb=function(){return _.C.apply(this,arguments)||this};
_.Y(fb,_.C);fb.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],fb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],fb.prototype,"data",void 0);_.p([_.Ok({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],fb);
_.a(fb,"yt-unlimited-user-notification-renderer",function(){if(JBc===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;yBe===void 0&&(yBe=document.createElement("template"));var y=yBe;b.call(N,y.content.cloneNode(!0),q.content.firstChild);JBc=q}q=JBc;return q},{mode:2});
}catch(e){_._DumpException(e)}
try{
var lPf,D9f,hQB,U9K,fPx,Tqd;_.zY=function(q){var N=q.clientMessageId;var b=q.playerOffsetMs;var y=q.pageContext;q=q.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:N},!!b&&{playerOffsetMs:b},!!y&&{pageContext:y},!!q&&{userInputText:q})}};
_.ikd=function(q,N,b){N=N===void 0?5:N;if(N!==0){var y=typeof q==="function"?q():document.querySelector(q);y?(b==null?0:b.enableSmartFocus)?_.p4Z(y):y.focus():setTimeout(function(){_.ikd(q,N-1,b)},500)}};
lPf=function(q){return String.raw.apply(String,[{raw:q}].concat(_.a9(_.MB.apply(1,arguments).map(function(N){return N instanceof Array?N.join(""):N}))))};
D9f=function(q){var N=_.MB.apply(1,arguments),b=N.length;if(!Array.isArray(q)||!Array.isArray(q.raw)||q.length!==q.raw.length||!_.pZx&&q===q.raw||!(_.pZx&&!_.PXx||_.fc(q))||b+1!==q.length)throw new TypeError("$");return new K_a(Object.freeze({strings:Object.freeze(q),args:Object.freeze(N)}))};
_.$M=function(q){return{continuationCommand:{token:q,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
hQB=function(){return _.MB.apply(0,arguments).flat().filter(function(q){return q}).join(";")};
U9K=function(){return D9f(ksN,hQB.apply(null,_.a9(_.MB.apply(0,arguments))))};
fPx=function(q,N){if(_.x("web_enable_chat_autoscroll_to_user_turn")&&q&&N)return q-4+"px"};
_.CLN=function(q,N){return _.Ji(q.entities,"youchatPendingResponseEntity",N)};
_.IPa=function(q){return function(N){_.nk(_.$e("youchatPendingResponseEntity",q,{entityKey:q,isPendingResponse:N}))}};
Tqd=function(q){q==null||q.addEventListener("DOMLoaded",function(){q.goToAndPlay(q.totalFrames-48,!0)})};
_.$Z=function(q){this.__isSoyCss=!0;this.css=lPf.apply(null,[q.strings].concat(_.a9(q.args)))};
_.$Z.prototype.toString=function(){return this.css};
var K_a=function(){_.$Z.apply(this,arguments)};
_.Y(K_a,_.$Z);var ksN=_.Tt(["",""]);_.sUK=_.n(function(q){var N=_.Sl(q,{numberOfChips:5}).numberOfChips;return _.u("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.u(_.Tf,{each:function(){return Array(N==null?void 0:N())}},function(){return _.u("div",{class:"ytGhostChipShelfChip"})}))},"Xi");var n9f=_.n(function(q){var N=void 0,b=function(){return q.data()},y=function(){return!!_.XO(_.mU(b())).optionColor},J=_.Z(_.QS(-1,void 0,"WFh1pc")),E=J.next().value,F=J.next().value,R=function(X){return E()===X},c=function(X){return b().correctAnswerIndex===X},z=function(){return E()!==-1};
J=_.Z(_.QS("",void 0,"Vi7Gfe"));var m=J.next().value,r=J.next().value;return _.u("yoututor-quiz-view-model",{class:_.NO("learningQuizComponentHost","learningYoututorQuizHost",q.className),style:_.ZU({background:function(){return _.XO(_.mU(b())).backgroundColor}})},_.u("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},m),_.u("div",{class:"learningQuizComponentQuizContainer"},_.u("div",{class:"learningQuizComponentQuiz"},_.u("div",{class:"learningQuizComponentQuizContent"},_.u(_.t,{cond:function(){return!!b().aiGeneratedQuizLabel},
then:function(){return _.u("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.u(_.Zc,{text:function(){return b().aiGeneratedQuizLabel}}))}}),_.u("div",{class:"learningQuizComponentQuizHeader"},_.u("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.u("div",{class:"learningYoututorQuizText",
style:_.ZU({color:function(){return _.XO(_.mU(b())).primaryTextColor}})},_.u(_.Zc,{text:function(){return b().questionHeaderText}}))))),_.u("div",{role:"group",
class:_.NO("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.u(_.Tf,{each:function(){return b().optionsData||[]}},function(X,V){var G={};
return _.u("button",{class:_.NO("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(G.learningQuizComponentQuizHover=function(){return!z()},G.learningQuizComponentQuizOptionWithCustomColor=y,G.learningYoututorQuizOptionSelectedCorrectOutline=function(){return z()&&c(V())},G.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return E()!==b().correctAnswerIndex&&R(V())},G.learningQuizComponentQuizIncorrectShake=function(){return E()!==
b().correctAnswerIndex&&R(V())},G)),
"on:click":_.y0(function(){if(z())return!1;F(V());r(c(V())?b().correctAnswerAriaLabel||"":b().incorrectAnswerAriaLabel||"");return!1}),
style:_.ZU({background:"transparent"}),"aria-description":function(){return z()?c(V())?b().correctAnswerAriaLabel:b().incorrectAnswerAriaLabel:""},
"aria-disabled":z,el:_.ai(function(w){_.V_(271905,w,N,function(D){N=D})}),
"client-ve-type":271905},_.u("div",{class:"learningQuizComponentQuizOptionContainer"},_.u(_.Zc,{text:X.optionText}),_.u(_.t,{cond:function(){var w=V();return z()&&(R(w)||c(w))},
then:function(){var w={};return _.u(_.FQ,{className:_.NO("learningYoututorQuizOptionIcon",(w.learningQuizComponentQuizPulse=function(){return E()===b().correctAnswerIndex&&c(V())},w)),
size:24,icon:function(){return c(V())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.u(_.t,{cond:z,
then:function(){return _.u("div",{class:"learningYoututorQuizExplanationContainer"},_.u("div",{class:"learningYoututorQuizExplanationText"},_.u(_.Zc,{text:function(){return b().explanationHeaderText}})),_.u(_.Zc,{text:function(){return b().optionsData[E()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Yi");
n9f.idomCompat=!0;var aPa=_.n(function(q){var N=q.thumbsUp,b=q.thumbsDown,y=q.rightAlignThumbs;q=_.Z(_.QS(!1,void 0,"OxPsH"));var J=q.next().value,E=q.next().value;q=_.Z(_.QS(!1,void 0,"V5vWne"));var F=q.next().value,R=q.next().value;q={};return _.u("div",{class:_.NO("ytwThumbsUpDownThumbs",(q.ytwThumbsUpDownRightAlign=function(){return y==null?void 0:y()},q))},_.u(_.LV,{data:N,
onToggle:function(c){E(c);F()&&R(!1)},
buttonShapeOverrides:function(){return{toggled:J()}}}),_.u(_.LV,{data:b,
onToggle:function(c){R(c);J()&&E(!1)},
buttonShapeOverrides:function(){return{toggled:F()}}}))},"Zi");
aPa.idomCompat=!0;var W_f=_.n(function(q){var N=function(){return q.data().pendingStateEntityKey||""},b=_.dj(_.CLN,N),y=function(){var R;
if(!(R=q.disabled())){var c;R=!((c=b())==null||!c.isPendingResponse)}return R},J=_.Z(_.QS(U9K(""),void 0,"Q6q6y")),E=J.next().value,F=J.next().value;
_.SI(function(){requestAnimationFrame(function(){var R=q.data().onShowAnimationMs||0;R=R>0?U9K("--chip-animation-duration: "+R+"ms;"):U9K("");F(R)})});
return _.u("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:E},_.u(_.Tf,{each:function(){return q.data().chipData||[]},
keyBy:"REFERENCE"},function(R){return _.u(SkU,{data:R,disabled:y,pendingStateKey:N,onError:q.onError})}))},"aj"),SkU=_.n(function(q){var N=_.cK("button"),b=_.Z(_.QS(!0,void 0,"baSFEf")),y=b.next().value,J=b.next().value,E=function(){return q.data().text.content},F=function(){return q.data().transparentWhenLoading},R=_.uR(_.U$.currentPageSubTypeSelector),c=function(){var m;
return(m=_.tz().resolve(_.$f(_.Mh)))==null?void 0:_.bMp(m,R())},z=_.y0(function(m){var r,X,V,G,w,D,k,f;
return _.d(function(L){switch(L.nextAddress){case 1:m.stopPropagation();if(q.disabled())return L.return();X=String(Math.floor(((r=_.JO())==null?void 0:r.getCurrentTime())||0)*1E3);V="youchat-"+Date.now();G=function(){_.wa(q.data().onClick||{});var S=_.$M(q.data().continuation),W=_.zY({clientMessageId:V,playerOffsetMs:X,pageContext:c()});return new Promise(function(M,qe){_.wa(S,{form:{formData:W},commandController:{onSuccess:function(RJ,tZ){M(tZ)},
onServerError:function(RJ,tZ){qe(tZ.error)}}})})};
w=_.IPa(q.pendingStateKey());w(!0);_.ikd("#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");J(!1);_.Yi(L,2);return L.yield(G(),4);case 4:_.Ea(L,3);break;case 2:D=_.K7(L),(f=(k=q).onError)==null||f.call(k,D);case 3:w(!1),_.hj(L)}})});
return _.u(_.t,{cond:y,then:function(){return _.u("div",{class:"ytwYouChatChipsDataChipWrapper"},_.u("button",{el:N,class:"ytwYouChatChipsDataChip","data-disabled":q.disabled,"data-transparent-loading":F,"on:click":z,tabindex:0},E))}})},"bj");var L_N=_.n(function(q){var N=q.data;var b=q.initiallyExpanded;var y=function(){var z;return(z=N().conversationResourceData)==null?void 0:z.learningGuideData};
q=_.Z(_.gJ(function(){var z;return(z=b==null?void 0:b())!=null?z:!1}));
var J=q.next().value,E=q.next().value,F=function(){E(!0)},R=_.K3(function(){var z,m;
return(m=(z=y())==null?void 0:z.sections)!=null?m:[]},void 0,"QxyRyf"),c=_.K3(function(){return R().length>4},void 0,"MEbwoe");
q=_.K3(function(){var z;return!J()&&c()&&(z=y())!=null&&z.expandButton?R().slice(0,4):R()},void 0,"hIE70b");
return _.u("yt-conversation-resource-view-model",{class:_.NO("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.u(_.zS,{data:q},{expandableMetadataViewModel:_.gZp}),_.u(_.t,{cond:function(){return c()&&!J()},
then:function(){return _.u("div",{id:"showMoreButton"},_.u(_.zS,{data:function(){var z;return(z=y())==null?void 0:z.expandButton}},{buttonViewModel:function(z){return _.u(_.Ou,{data:z.data,
onClick:F})}}))}}))},"cj");_.pHp=_.n(function(q){var N=function(){var f;return(f=q.data().text)==null?void 0:f.content},b=function(){var f,L;
return(f=q.data().webData)==null?void 0:(L=f.textResult)==null?void 0:L.content},y=_.tz().resolve(_.Ii),J=_.gj(),E=function(){return q.data().chatResponseStyle},F=function(){return!q.data().transparentBackground},R=function(){return q.data().rightAlignThumbs},c=function(){return q.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||q.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},z=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:c()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:q.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},m=function(){var f;
return q.data().webData||((f=q.data().text)==null?void 0:f.content)||q.data().videoResultsData||q.data().conversationResourceViewModel||q.data().quiz||q.data().yoututorQuiz||q.data().richContent},r=function(){return!!q.data().sectionHeader||m()},X=function(){var f;
return(f=q.data().videoResultsData)==null?void 0:f.videoShelf},V=function(){var f;
return(f=q.data().webData)==null?void 0:f.sourcesShelf},G=function(){return E()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||E()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:q.data().thumbsDownViewModel&&q.data().thumbsUpViewModel},w=function(){return _.v(q.data().thumbsUpViewModel,_.de)},D=function(){return _.v(q.data().thumbsDownViewModel,_.de)};
_.SI(function(){requestAnimationFrame(function(){var f;(f=q.shouldAnimateIcon)!=null&&f.call(q)&&Tqd(J.lottieEl)})});
var k={};return _.u("you-chat-item-view-model",{class:_.NO("ytwYouChatItemViewModelYouChatItemViewModel",(k.ytwYouChatItemViewModelColumnLayout=function(){return c()},k)),
style:_.ZU({"min-height":function(){var f,L;return fPx((f=q.containerHeight)==null?void 0:f.call(q),(L=q.isLastItem)==null?void 0:L.call(q))}}),
"data-target-id":function(){return q.data().id||""}},_.u(_.t,{cond:function(){return q.data().removeIcon?!1:r()},
then:function(){var f={};return _.u("div",{"aria-hidden":"true"},_.u(_.h$,{className:_.NO("ytwYouChatItemViewModelIcon",(f.ytwYouChatItemViewModelRtl=y==="rtl",f.ytwYouChatItemViewModelHidden=function(){return!(q.data().hideIcon||E()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||E()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:r())},f)),
animationName:"YOUCHAT_ICON",data:z,animationRef:J}))}}),_.u(_.t,{cond:r,
then:function(){var f={};return _.u("div",{class:_.NO("ytwYouChatItemViewModelHost",(f.ytwYouChatItemViewModelHostNoPadding=function(){return!!q.data().sectionHeader&&!m()},f.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return E()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},f.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return E()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},f.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return E()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
f.ytwYouChatItemViewModelGradientBackground=F,f.ytwYouChatItemViewModelHostAlignStart=function(){return!c()},f.ytwYouChatItemViewModelHostDefaultFlex=function(){return!c()},f)),
role:"alert"},_.u(_.t,{cond:N,then:function(L){return _.u(_.$G,{text:L,wrapCodeBlocks:!0})}}),_.u(_.zS,{data:function(){return q.data().sectionHeader}},{sectionHeaderViewModel:function(L){var S={};
return _.u(_.sQ,{data:L.data,className:_.NO("ytwYouChatItemViewModelSectionHeader",(S.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!q.data().sectionHeader&&!m()},S)),
forceSmallLayout:!0})}}),_.u(_.t,{cond:b,
then:function(L){return _.u(_.$G,{text:L,wrapCodeBlocks:!0})}}),_.u(_.t,{cond:X,
then:function(){return _.u("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.u(_.zS,{data:function(){var L;return(L=q.data().videoResultsData)==null?void 0:L.videoShelf}},{horizontalShelfViewModel:function(L){return _.u(_.uF,{data:L.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.u(_.t,{cond:V,
then:function(){return _.u("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.u(_.zS,{data:function(){var L;return(L=q.data().webData)==null?void 0:L.sourcesShelf}},{horizontalShelfViewModel:function(L){return _.u(_.uF,{data:L.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.u(_.zS,{data:function(){return q.data().conversationResourceViewModel}},{conversationResourceViewModel:L_N}),_.u(_.zS,{data:function(){return q.data().quiz}},{learningJourneyQuizViewModel:_.sFJ}),_.u(_.zS,{data:function(){return q.data().yoututorQuiz}},{yoututorQuizViewModel:n9f}),_.u(_.zS,{data:function(){return q.data().richContent}},{cardViewModel:_.fCf,
linearLayoutViewModel:_.dW}),_.u(_.t,{cond:G,then:function(){return _.u(aPa,{thumbsUp:w,thumbsDown:D,rightAlignThumbs:R})}}))}}),_.u(_.t,{cond:function(){return q.data().chipsData},
then:function(f){return _.u(W_f,{data:f,disabled:q.pending,onError:q.onError})}}))},"ej");
_.pHp.idomCompat={callbacks:{onError:!0,onSend:!0}};_.PLp=_.n(function(q){var N=function(){var F;return((F=q.data)==null?void 0:F.call(q).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},b=_.gj(),y=_.tz().resolve(_.Ii);
_.SI(function(){requestAnimationFrame(function(){var F;(F=b.lottieEl)==null||F.addEventListener("DOMLoaded",function(){var R;(R=q.onLottieLoaded)==null||R.call(q)})})});
var J=function(){var F;return(F=q.data)==null?void 0:F.call(q).loadingAnimationA11yLabel},E={};
return _.u("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var F;return((F=q.data)==null?void 0:F.call(q).targetId)||""},
"aria-label":function(){return J()||""},
role:function(){return J()?"progressbar":void 0},
style:_.ZU({"min-height":function(){var F,R;return fPx((F=q.containerHeight)==null?void 0:F.call(q),(R=q.isLastItem)==null?void 0:R.call(q))}})},_.u(_.h$,{"aria-hidden":"true",
className:_.NO((E.ytChatLoadingViewModelRtl=y==="rtl",E)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:N()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||N()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:N()}}},
animationRef:b}))},"gj");_.MlA=_.n(function(q){var N=function(){return q.data().choiceSelectedText},b=function(){return q.data().hasGradientBackground},y={};
return _.u("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost",style:_.ZU({"min-height":function(){var J,E;return fPx((J=q.containerHeight)==null?void 0:J.call(q),(E=q.isLastItem)==null?void 0:E.call(q))}}),
"data-target-id":function(){var J;return(J=q.data().itemTargetId)!=null?J:""}},_.u(_.t,{cond:N,
then:function(){return _.u("div",{class:"ytYouChatUserTurnChoiceSelected"},_.u(_.Zc,{text:N}))}}),_.u("div",{class:_.NO("ytYouChatUserTurnUserMessage",(y.ytYouChatUserTurnGradientContainer=b,y.ytYouChatUserTurnDefaultContainer=function(){return!b()},y))},function(){return q.data().text}))},"hj");
}catch(e){_._DumpException(e)}
try{
var fzx,CC_,Ize;fzx=function(q){return _.x("kevlar_watch_cinematics_invisible")||q.fullscreen&&_.x("kevlar_watch_cinematics_invisible_in_fullscreen")||q.theater&&!q.fullscreen&&_.x("kevlar_watch_cinematics_invisible_in_theater")};
CC_=function(){var q=document.createElement("canvas"),N=q.getContext("2d");if(!N)throw Error("Ro");_.IY(q,{position:"absolute",width:"100%",height:"100%"});return{element:q,context:N}};
Ize=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.x("kevlar_watch_cinematics_css_blur")};
_.TEB=function(q,N,b){return Math.abs(q-N)<=(b||1E-6)};
_.sAl=function(q,N){return q==N?!0:q&&N?q.width==N.width&&q.height==N.height:!1};_.nNB=new _.yT("notificationActionRenderer");var azx=function(q){var N=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.yk;this.element.addEventListener("load",function(){N.loaded=!0;N.resolver.resolve(N.element)});
this.element.addEventListener("error",function(){N.failed=!0});
this.element.src=q};var SNX=function(q,N){this.image=q;this.frame=N};
SNX.prototype.drawToCanvas=function(q,N){var b=this.frame.width/this.frame.columns,y=this.frame.height/this.frame.rows,J=N.offsetX,E=N.offsetY;fzx(N)?(q.fillStyle=N.fullscreen?"#000":"#0f0f0f",q.fillRect(J,E,(N==null?void 0:N.width)||b,(N==null?void 0:N.height)||y)):q.drawImage(this.image,this.frame.column*b,this.frame.row*y,b,y,J,E,(N==null?void 0:N.width)||b,(N==null?void 0:N.height)||y)};
var WWs=function(q){this.color=q};
WWs.prototype.drawToCanvas=function(q,N){var b=N.offsetX,y=N.offsetY,J=N.width,E=N.height;q.fillStyle=fzx(N)?N.fullscreen?"#000":"#0f0f0f":this.color;q.fillRect(b,y,J,E)};var me=function(q,N){_.FG.call(this);this.playerApi=N;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.l3(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();LWB(this,q);pYZ(this);this.update()};
_.Y(me,_.FG);me.prototype.addEventListeners=function(){var q=this,N=function(){q.update()},b=function(J){q.paused||(J.type==="newdata"&&(q.mosaics.clear(),PCB(q),rB(q)),pYZ(q),q.update())},y=function(){q.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",N);this.playerApi.addEventListener("onVideoDataChange",b);this.playerApi.addEventListener("onStateChange",y);this.addOnDisposeCallback(function(){q.playerApi.removeEventListener("onVideoProgress",N);q.playerApi.removeEventListener("onVideoDataChange",b);q.playerApi.removeEventListener("onStateChange",y)})};
var LWB=function(q,N){q.cinematicContainerRenderer!==N&&(q.cinematicContainerRenderer=N,PCB(q),rB(q),q.colorStoreUpdateJobId=_.pY.addLowPriorityJob(function(){var b;if((b=q.cinematicContainerRenderer.colorStore)!=null&&b.sampledColors){b=Infinity;for(var y=_.Z(q.cinematicContainerRenderer.colorStore.sampledColors),J=y.next();!J.done;J=y.next()){J=J.value;var E=Number(J.key);E!==0&&E<b&&(b=E);E=_.Y8(J.value);q.colorStore.set(J.key,E)}q.colorStoreTimeInterval=b}}))},PCB=function(q){q.colorStoreUpdateJobId&&
(_.pY.cancelJob(q.colorStoreUpdateJobId),q.colorStoreUpdateJobId=void 0);
q.colorStore.clear();q.currentStoryboardColor=void 0},MG7=function(q,N){var b;
return(b=q.getStoryboardFrame(N))==null?void 0:b.url};
me.prototype.onPlayerStateChange=function(){this.update()};
me.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var pYZ=function(q){var N=q.getStoryboardFrame(0);N&&(N=new _.l3(N.width/N.columns,N.height/N.rows),_.sAl(q.currentStoryboardSize,N)||(q.currentStoryboardSize=N,q.publish("STORYBOARD_SIZE_CHANGED",q.currentStoryboardSize)))},oNB=function(q,N){q.currentStoryboardIndex=N;
q.pendingStoryboardIndex=NaN;N=q.getStoryboardFrame(q.currentStoryboardIndex);q.currentStoryboard=new SNX(q.mosaics.get(N.url).element,N);q.publish("STORYBOARD_CHANGED",q.currentStoryboard);q.lastUpdateTime=(0,_.mA)()};
me.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var rB=function(q){q.currentStoryboardIndex=NaN;q.pendingStoryboardIndex=NaN;q.currentStoryboard&&(q.currentStoryboard=void 0,q.publish("STORYBOARD_CHANGED",void 0));q.lastUpdateTime=NaN};
me.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)rB(this);else{var q=this.playerApi.getPlayerState(1);if(q===-1||q===5||q===0)rB(this);else if(isNaN(this.lastUpdateTime)||!((0,_.mA)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(q=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){q=""+Math.round(q*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var N=this.colorStore.get(q);N?N!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=N,this.currentStoryboard=new WWs(N),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.mA)()):(_.M6(new _.IO("Could not find color for timestamp: "+q,this.cinematicContainerRenderer)),rB(this))}else rB(this);else AWy(this,q)}};
var AWy=function(q,N){var b=q.getStoryboardFrameIndex(N);if(b!==q.currentStoryboardIndex&&b!==q.pendingStoryboardIndex){N=MG7(q,b);var y=q.mosaics.get(N);y?y.loaded&&oNB(q,b):(q.pendingStoryboardIndex=b,b=new azx(N),q.mosaics.set(N,b),b.resolver.promise.then(function(){if(!q.isDisposed()&&!q.paused&&!isNaN(q.pendingStoryboardIndex)){var J=MG7(q,q.pendingStoryboardIndex);if(J){var E;(E=q.mosaics.get(J))!=null&&E.loaded&&oNB(q,q.pendingStoryboardIndex)}else rB(q)}}))}};
me.prototype.getStoryboardFrameIndex=function(q){var N=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(q,N)};
me.prototype.getStoryboardFrame=function(q){var N=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,b,y;return((y=(b=this.playerApi).getStoryboardFrame)==null?void 0:y.call(b,q,N))||null};
me.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var VZ=function(q,N,b,y){y=y===void 0?!1:y;_.UN.call(this);this.cinematicContainerRenderer=N;this.playerApi=b;this.theater=this.fullscreen=!1;var J;this.ambientLightThemeEnabled=!y&&!!(N==null?0:(J=N.config)==null?0:J.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=y)&&!0;this.container=document.createElement("div");q.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);epZ(this);this.backCanvas=
CC_();this.frontCanvas=CC_();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new me(N,this.playerApi);_.YN(this,this.storyboardManager);this.addEventListeners();BEe(this)?HFZ(this,100+Xq(this)*3*2,100+Xq(this)*3*2):qLh(this);NnB(this,this.storyboardManager.currentStoryboard)};
_.Y(VZ,_.UN);
var epZ=function(q){var N=q.playerApi.getVideoAspectRatio();_.IY(q.container,{"aspect-ratio":""+N,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var b;var y;if((q.fullscreen||q.theater)&&((b=q.cinematicContainerRenderer.config)==null?0:(y=b.watchFullscreenConfig)==null?0:y.colorSourceWidthMultiplier))b=q.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var J;b=(J=
q.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?J:q.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var E,F;if((q.fullscreen||q.theater)&&((E=q.cinematicContainerRenderer.config)==null?0:(F=E.watchFullscreenConfig)==null?0:F.colorSourceHeightMultiplier))J=q.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var R;J=(R=q.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?R:q.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.IY(q.innerContainer,
{"aspect-ratio":""+N,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+b+", "+J+")"});Ize()&&_.IY(q.innerContainer,"filter","blur("+_.VX("cinematic_watch_css_filter_blur_strength",40)+"px)")};
VZ.prototype.setFullscreen=function(q,N){this.fullscreen=q;this.theater=!!N;epZ(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),q=this.storyboardManager.currentStoryboard,b3_(this),q&&yX_(this,q)};
VZ.prototype.addEventListeners=function(){var q=this,N=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(J){NnB(q,J)}),b=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){qLh(q)});
this.addOnDisposeCallback(function(){q.storyboardManager.unsubscribeByKey(N);q.storyboardManager.unsubscribeByKey(b)});
var y=function(){epZ(q)};
this.playerApi.addEventListener("onVideoDataChange",y);this.addOnDisposeCallback(function(){q.playerApi.removeEventListener("onVideoDataChange",y)})};
var qLh=function(q){if(!BEe(q)){var N=q.storyboardManager.currentStoryboardSize;isNaN(N.width)||isNaN(N.height)||HFZ(q,Number(N.width)+Xq(q)*3*2,Number(N.height)+Xq(q)*3*2)}},HFZ=function(q,N,b){q.backCanvas.element.width=N;
q.backCanvas.element.height=b;q.frontCanvas.element.width=N;q.frontCanvas.element.height=b},BEe=function(q){return q.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},NnB=function(q,N,b){b=b===void 0?!1:b;
var y=q.frontCanvas.element.getAnimations()[0];y?(y.pause(),q.backCanvas.context.globalAlpha=Number(getComputedStyle(q.frontCanvas.element).opacity),q.frontCanvas.element.style.opacity="0",y.finish()):q.backCanvas.context.globalAlpha=1;q.backCanvas.context.drawImage(q.frontCanvas.element,0,0,q.backCanvas.element.width,q.backCanvas.element.height);b3_(q);N&&yX_(q,N);N=N?q.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.VX("cinematic_watch_fade_out_duration",500);y=_.VX("cinematic_watch_transition_frame_rate")/
1E3;var J={};y&&(J={easing:"steps("+Math.round(N*y)+")"});(b===void 0?0:b)||q.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:N,iterations:1},J));q.frontCanvas.element.style.opacity="1"},b3_=function(q){var N=q.ambientLightThemeEnabled||q.ambientTheaterModeEnabled,b=q.ambientLightThemeEnabled||q.ambientFullscreenEnabled;
q.frontCanvas.context.fillStyle=q.theater&&N||q.fullscreen&&b?"#000":"#0f0f0f";Ize()||(q.frontCanvas.context.filter="blur(0)");q.frontCanvas.context.fillRect(0,0,q.frontCanvas.element.width,q.frontCanvas.element.height)},yX_=function(q,N){Ize()||(q.frontCanvas.context.filter="blur("+Xq(q)+"px)");
q.frontCanvas.context.globalAlpha=q.fullscreen&&q.ambientFullscreenEnabled||q.theater&&q.ambientTheaterModeEnabled?_.VX("cinematic_watch_effect_letterbox_opacity",.4):_.VX("cinematic_watch_effect_opacity",.4);var b={offsetX:Xq(q)*3,offsetY:Xq(q)*3,theater:q.theater,fullscreen:q.fullscreen};BEe(q)&&(b.width=100,b.height=100);N.drawToCanvas(q.frontCanvas.context,b);q.frontCanvas.context.globalAlpha=1},Xq=function(q){var N;
return(N=q.cinematicContainerRenderer.config.blurStrength)!=null?N:5};
VZ.prototype.disposeInternal=function(){_.UN.prototype.disposeInternal.call(this);this.container.remove()};
VZ.prototype.clear=function(){NnB(this,void 0,!0)};
VZ.prototype.pause=function(){this.storyboardManager.pause()};var JX7;JX7=_.x_(function(){var q,N,b=!((N=(q=document.createElement("canvas")).getContext)==null||!N.call(q,"2d")),y;q=!((y=CSS)==null||!y.supports("filter: blur(0)"));y=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var J;return b&&q&&y&&!((J=CSS)==null||!J.supports("aspect-ratio: 1 / 1"))});
_.jq=function(q,N){_.FG.call(this);this.container=q;this.playerApi=N;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=ELy(this);this.update()};
_.Y(_.jq,_.FG);_.gLZ=function(q){var N=document.documentElement.hasAttribute("dark");q.isDarkModeEnabled=N;q.update()};
_.Z3B=function(q,N){q.settingEnabled=N;q.update()};
_.jq.prototype.setFullscreen=function(q,N){this.fullscreen=q;this.theater=!!N;this.update()};
_.FRB=function(q,N){q.cinematicContainerRenderer=N;q.cinematicContainerRenderer&&(q.cinematicsVe=_.bx(q.isShorts()?227858:159022),_.hI(_.FR(),q.cinematicsVe),q.loggingClientData={watchCinematicContainerData:{presentationStyle:q.cinematicContainerRenderer.presentationStyle}});q.update()};
_.jq.prototype.isShorts=function(){var q,N;return((q=this.cinematicContainerRenderer)==null?void 0:(N=q.config)==null?void 0:N.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.jq.prototype.isAllowed=function(){var q;if(q=JX7()){var N,b,y;q=((b=this.cinematicContainerRenderer)==null?void 0:b.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((y=this.cinematicContainerRenderer)==null||!y.colorStore)||((N=this.cinematicContainerRenderer)==null?void 0:N.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(q)if(_.x("web_cinematics_pausing")){var J,E;q=this.isDarkModeEnabled||!!((J=this.cinematicContainerRenderer)==
null?0:(E=J.config)==null?0:E.enableInLightTheme)}else{var F,R;J=!!((F=this.cinematicContainerRenderer)==null?0:(R=F.config)==null?0:R.enableInLightTheme)&&(_.M7("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);q=this.isDarkModeEnabled||J}if(F=q){var c,z;F=!((z=(c=this.prefersReducedMotionQuery)==null?void 0:c.matches)!=null&&z)}return F};
_.RMe=function(q){(q=q.currentCinematicEffect)!=null&&(q=q.storyboardManager,q.paused=!1,pYZ(q),q.update())};
_.jq.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var ELy=function(q){if(!_.x("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var N=window.matchMedia("(prefers-reduced-motion: reduce)"),b=function(){q.update()};
N.addListener(b);q.addOnDisposeCallback(function(){N.removeListener(b)});
return N}};
_.jq.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var q=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new VZ(this.container,q,this.playerApi,this.isDarkModeEnabled),_.YN(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var N=this.currentCinematicEffect;N.cinematicContainerRenderer!==
q&&(N.cinematicContainerRenderer=q,LWB(N.storyboardManager,q),epZ(N));q=_.c3();_.uG(0,194,!0);q.save();q=_.Oe();this.cinematicsVe&&q&&_.Tr(q,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(q=_.Oe(),this.cinematicsVe&&q&&_.sY(q,[this.cinematicsVe],!1,this.loggingClientData),_.RA(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.$H.Object.defineProperties(_.jq.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var FWZ;var Rpv;_.x9({_template:function(){if(Rpv!==void 0)return Rpv;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=
q.content,b=N.insertBefore;FWZ===void 0&&(FWZ=document.createElement("template"));var y=FWZ;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return Rpv=q},
is:"tp-yt-iron-pages",behaviors:[_.SQ,_.Ck],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var EiZ;_.gic=function(){if(_.x("kevlar_home_skeleton")&&!EiZ){var q=document.querySelector("#home-page-skeleton");q&&(_.Q6("hgcr"),_.lC(q),EiZ=!0)}};
EiZ=!1;_.Ns=new _.yT("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var EBx=function(q){return _.Wod(_.SEJ(q&16777215))<.5},gBs=function(q,N,b){var y=b.minimumRowsOfVideosBetweenSections===void 0?1:b.minimumRowsOfVideosBetweenSections;
return q<(b.minimumRowsOfVideosAtStart===void 0?2:b.minimumRowsOfVideosAtStart)||N!==null&&q-N<=y?!1:!0},Zcs=function(q,N){var b=0,y=0;
q=_.Z(q);for(var J=q.next();!J.done;J=q.next()){var E=J.value;if(E.richItemRenderer)E.richItemRenderer.rowIndex=y,E.richItemRenderer.colIndex=b++,b===N&&(b=0,y++);else if(E.richGroupRenderer&&E.richGroupRenderer.numColumns!==void 0)E.richGroupRenderer.rowIndex=y,E.richGroupRenderer.colIndex=b,b+=E.richGroupRenderer.numColumns,b===N&&(b=0,y++);else if(E.richSectionRenderer){var F=J=void 0;if(E=_.v((J=E)==null?void 0:(F=J.richSectionRenderer)==null?void 0:F.content,_.OiT))E.rowIndex=y++}}},F7B=function(q,
N){var b=N.contentElement;
N=N.rendererToTagNameMap;if(b&&N&&N.size!==0){for(var y=new Map,J=_.Z(b.children),E=J.next();!E.done;E=J.next()){E=E.value;var F=E.tagName.toLowerCase(),R=y.get(F);R||(R=[],y.set(F,R));R.push(E)}if(y.size!==0)for(J=Math.min(q.length,b.children.length),E=new Map,F=0;F<J;F++){R=Object.keys(q[F])[0];R=N.get(R);if(!R)break;var c=E.get(R);c===void 0&&(c=0,E.set(R,c));var z=y.get(R);if(!z||c>=z.length)break;E.set(R,c+1);R=z[c];c=b.children[F];c!==R&&(_.Lt=!0,_.pt.set(R,!0),b.insertBefore(R,c),_.pt.delete(R),
_.Lt=!1)}}},R__=function(q,N,b,y,J,E,F){y=y===void 0?{}:y;
if(!q||!q.length)return{orderedContent:[]};q=q.slice();var R=[],c=[];J=null;for(var z=0,m=function(L){c.sort(function(M,qe){return qe.skippedOnRow-M.skippedOnRow});
for(var S,W=(S=c.shift())==null?void 0:S.content;W;)!W.richSectionRenderer&&L||R.push(W),S=void 0,W=(S=c.shift())==null?void 0:S.content},r=void 0,X=void 0,V=new Set;q.length>0||c.length>0;){for(var G=[],w=N;w>0;){var D=void 0,k=void 0,f=(k=c[0]&&c[0].skippedOnRow<z?(D=c.shift())==null?void 0:D.content:void 0)!=null?k:q.shift();
if(!f)break;if(f.richItemRenderer)D=f.richItemRenderer.targetId,k=void 0,D&&((k=F)==null?0:k.has(D))&&(k=F.get(D),!r||k&&k.timestamp>r.timestamp)&&(r=k,X&&V.add(X),X=D),G.push(f),w--;else if(f.richGroupRenderer&&f.richGroupRenderer.numColumns!==void 0)f.richGroupRenderer.numColumns<=w?(G.push(f),w-=f.richGroupRenderer.numColumns):w===N&&f.richGroupRenderer.numColumns>N?(G.push({richGroupRenderer:Object.assign({},f.richGroupRenderer,{numColumns:N})}),w=0):c.push({content:f,skippedOnRow:z});else if(f.richSectionRenderer)if(gBs(z,
J,y)&&w===N){R.push(f);J=z;z++;continue}else c.push({content:f,skippedOnRow:z});else if(f.continuationItemRenderer){m(!0);R.push(f);w=0;break}if(w===0)R.push.apply(R,_.a9(G));else if(!b&&q.length===0){m(!1);R.push.apply(R,_.a9(G));w=0;break}}z++;r&&(R.push(r.content),z++);X=r=void 0}Zcs(R,N);E&&F7B(R,E);return{orderedContent:R,pinnedContentNotShownTargetIds:V}},uyB=function(q,N){if(N){var b=_.WT().getState().entities.flowStateEntity,y=dBy(q),J=[N];
y&&y!==N&&J.push(y);var E=!0,F;if(b&&q.flowStateEntityKey&&((F=b[q.flowStateEntityKey])==null?void 0:F.primaryButtonDisabled)!==void 0){var R;E=!((R=b[q.flowStateEntityKey])==null||!R.primaryButtonDisabled)}cBB(q,y!=null?y:N,J,E)}},$BB=function(q){return _.aM(_.WT(),function(N){return N.entities.flowStateEntity},function(N,b){if(q.flowStateEntityKey){var y,J=N==null?void 0:(y=N[q.flowStateEntityKey])==null?void 0:y.currentStepId,E;
b=b==null?void 0:(E=b[q.flowStateEntityKey])==null?void 0:E.currentStepId;E=_.WT().getState().talkToRecs;if(J&&J!==b){var F;N=(N==null?void 0:(F=N[q.flowStateEntityKey])==null?void 0:F.stepIdStack)||Object.keys(E.stepStates);F=!z_c(E==null?void 0:E.stepStates[J]);cBB(q,J,N,F)}}})},mBe=function(q){return _.aM(_.WT(),tvB,function(N){var b=dBy(q);
if(b){var y=Object.keys(N.stepStates);N=!z_c(N==null?void 0:N.stepStates[b]);cBB(q,b,y,N)}})},z_c=function(q){var N=Object.keys((q==null?void 0:q.selectionStates)||{}).reduce(function(E,F){return E||(q==null?void 0:q.selectionStates[F].isSelected)},!1),b,y,J=!!(q==null?0:(b=q.userQuery)==null?0:(y=b.userQuery)==null?0:y.trim());
return N||J},dBy=function(q){if(q.flowStateEntityKey){var N,b,y=(N=_.WT().getState().entities.flowStateEntity)==null?void 0:(b=N[q.flowStateEntityKey])==null?void 0:b.currentStepId;
if(y)return y}},cBB=function(q,N,b,y){_.WT().dispatch(_.$e("flowStateEntity",q.flowStateEntityKey,{currentStepId:N,
stepIdStack:b,key:q.flowStateEntityKey,primaryButtonDisabled:y}))},rBs;var XZX;_.x9({_template:function(){if(XZX!==void 0)return XZX;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
var N=q.content,b=N.insertBefore;rBs===void 0&&(rBs=document.createElement("template"));var y=rBs;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return XZX=q},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var Vvc=new _.yT("flowRootRenderer");var jx7=new _.yT("chipsShelfViewModel");var xBy=new _.yT("responsiveContainerConfiguration");_.vBB=new _.yT("engagementPanelSectionListRenderer");var GeB=function(){this.horizontal=!1},YhB=function(q,N){q.horizontal=N};
GeB.prototype.position=function(q,N,b,y){y=y===void 0?1:y;q=this.delta(q)*y+N;y=Math.max(N,b);return q>=Math.min(N,b)&&q<=y?q:b};
GeB.prototype.axis=function(q){q=this.direction(q);return q==="up"||q==="down"?"Y":"X"};var Cb=function(q,N,b){N=N===void 0?_.CP():N;this.target=q;this.manager=N;this.touchAction=b;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Cb.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(_.a9(this.events)));for(var q=_.Z(this.events),N=q.next();!N.done;N=q.next())this.listen(N.value)}};
Cb.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.a9(this.events)));for(var q=_.Z(this.events),N=q.next();!N.done;N=q.next())this.unlisten(N.value)}};
Cb.prototype.listen=function(q){this.eventMap[q]&&this.target.addEventListener(q,this.eventMap[q])};
Cb.prototype.unlisten=function(q){this.eventMap[q]&&this.target.removeEventListener(q,this.eventMap[q])};var I_=function(){GeB.apply(this,arguments)};
_.Y(I_,GeB);I_.prototype.direction=function(q){var N=q.detail;q=N.deltaY;N=N.deltaX;return q&&!this.horizontal?q>0?"down":"up":N&&this.horizontal?N>0?"right":"left":"none"};
I_.prototype.distance=function(q){return Math.abs(this.delta(q))};
I_.prototype.delta=function(q){var N=this.direction(q),b=q.detail;q=b.deltaX;b=b.deltaY;return N==="up"||N==="down"?b||0:q||0};
I_.prototype.velocity=function(q){var N=this.direction(q),b=q.detail;q=b.velocityX;b=b.velocityY;return Math.abs(N==="up"||N==="down"?b||0:q||0)};_.TA=function(q,N,b,y,J,E){J=J===void 0?new I_:J;E=E===void 0?_.CP():E;Cb.call(this,N,E,y);var F=this;this.element=q;this.target=N;this.config=b;this.input=J;this.manager=E;this.events=["panstart","panmove","panend"];this.onPanStart=function(){F.config.draggingClass&&F.element.classList.add(F.config.draggingClass);F.config.startAction&&F.config.startAction()};
this.onPanMove=function(R){var c=Qx_(F,R);if(c){F.move(R,c);c.fade&&F.fade(R,c);var z=F.input.direction(R);c.moveAction&&c.moveAction(Oce(F,R,c),z)}};
this.onPanEnd=function(R){var c,z,m,r,X,V;return _.d(function(G){if(G.nextAddress==1){F.animationRequestId&&cancelAnimationFrame(F.animationRequestId);F.animationRequestId=void 0;c=Qx_(F,R);if(!c)return G.return();z=c;m=z.triggerAction;r=z.fade;X=z.disableFinish;V=z.translateBack;var w=F.input.velocity(R),D=F.input.distance(R),k=F.threshold(c);return w>.3&&D>10||D>k?X?G.jumpTo(6):r?G.yield(wZx(F,R),6):G.yield(ics(F,R,c),6):V?G.yield(F.translateBack(R),3):G.jumpTo(3)}G.nextAddress!=3&&m&&m();F.config.draggingClass&&
F.element.classList.remove(F.config.draggingClass);F.reset();_.hj(G)})};
q=Object.keys(b.triggers);this.directions=new Set(q);YhB(this.input,this.directions.has("right")||this.directions.has("left"))};
_.Y(_.TA,Cb);_.TA.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var Qx_=function(q,N){N=q.input.direction(N);return q.config.triggers[N]};
_.TA.prototype.move=function(q,N){var b=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var y=b.input.axis(q),J=b.input.position(q,b.config.startPosition,N.endPosition,N.moveRatio||1);b.element.style.transform="translate"+y+"("+J+"px)";b.animationRequestId=void 0}))};
var Oce=function(q,N,b){var y=b.moveRatio||1;b=Math.abs(q.config.startPosition-b.endPosition);return Math.min(q.input.distance(N)*y,b)/b};
_.TA.prototype.fade=function(q,N){var b=N.endOpacity;q=Oce(this,q,N);q>0&&(this.element.style.opacity=""+(((b||0)-1)*q+1))};
_.TA.prototype.threshold=function(q){return q.threshold?q.threshold:Math.abs(q.endPosition-this.config.startPosition)/3};
var ics=function(q,N,b){var y,J,E,F,R,c,z;return _.d(function(m){if(m.nextAddress==1)return y=q.input.delta(N)+q.config.startPosition,J=q.input.axis(N),E=b,F=E.endPosition,R=E.transitionEndPosition,z=(c=R)!=null?c:F,m.yield(q.element.animate([{transform:"translate"+J+"("+y+"px)"},{transform:"translate"+J+"("+z+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);q.element.style.transform="translate"+J+"("+z+"px)";_.hj(m)})};
_.TA.prototype.translateBack=function(q){var N=this,b,y;return _.d(function(J){if(J.nextAddress==1){if(!N.element.style.transform)return J.return();b=N.input.axis(q);y=N.config.startPosition;return J.yield(N.element.animate([{transform:N.element.style.transform},{transform:"translate"+b+"("+y+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}N.element.style.transform="translate"+b+"("+y+"px)";_.hj(J)})};
var wZx=function(q,N){var b,y,J,E;return _.d(function(F){if(F.nextAddress==1)return b=q.input.delta(N)+q.config.startPosition,y=q.input.axis(N),J=b+70,E=q.element.style.opacity===""?1:q.element.style.opacity,F.yield(q.element.animate([{transform:"translate"+y+"("+b+"px)",opacity:E},{transform:"translate"+y+"("+J+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);q.element.style.transform="translate"+y+"("+J+"px)";q.element.style.opacity="0";_.hj(F)})};var sF=function(){var q=_.uL.apply(this,arguments)||this;q._noAccessors=!0;q.scrollRate=3;q.autoScrollAnimationStart=0;q.autoScrollPaused=!1;q.autoScrollRafId=0;return q};
_.Y(sF,_.uL);_.g=sF.prototype;_.g.created=function(){var q=this;this.boundAutoScrollHandler=function(N){q.autoScroll(N)}};
_.g.detached=function(){this.hostElement.removeEventListener("mouseout",_.gq(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.gq(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.gq(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.g.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.gq(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.gq(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.gq(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.gq(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.gq(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.gq(this,this.endAutoScroll)),this.endAutoScroll())};
_.g.autoScroll=function(q){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=q);var N;if(N=!this.autoScrollPaused&&this.scrollTarget)N=this.scrollTarget,N=N.scrollHeight-N.scrollTop!==N.clientHeight;N&&(N=1E3/this.scrollRate,q-=this.autoScrollAnimationStart,q>N&&(this.scrollTarget.scrollTop+=Math.ceil(q/N),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.g.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.g.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
sF.prototype.autoScrollEnabledChanged=sF.prototype.autoScrollEnabledChanged;_.p([_.U(),_.P("design:type",Object)],sF.prototype,"scrollRate",void 0);_.p([_.U(),_.P("design:type",Object)],sF.prototype,"scrollTarget",void 0);_.p([_.U(),_.P("design:type",Boolean)],sF.prototype,"autoScrollEnabled",void 0);_.p([_.FY("autoScrollEnabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sF.prototype,"autoScrollEnabledChanged",null);_.p([_.zs()],sF);_.lls=[sF.prototype];var K7B;var nb=function(){var q=_.C.apply(this,arguments)||this;q.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};q.forceDarkTheme=!1;q.forceLightTheme=!1;q.dynamicTextHeight=94;q.hasOverflowButton=!1;q.isInfeedModernization=!1;return q};
_.Y(nb,_.C);_.g=nb.prototype;_.g.computeUrlImg=function(q){if(q)return _.oi(q.thumbnails)};
_.g.getLogoHeight=function(q){return this.logoWithPadding(q)?"31":"24"};
_.g.getLogoClassName=function(q){return this.logoWithPadding(q)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.g.logoWithPadding=function(q){var N,b;return(q=(N=q.thumbnails)==null?void 0:(b=N[0])==null?void 0:b.height)&&q%31===0?!0:!1};
_.g.sendImpressionEndpoints=function(q){q.impressionEndpoints&&_.qc(this.hostElement,q.impressionEndpoints)};
_.g.observeBasicPalette=function(){var q,N,b=(q=this.data)==null?void 0:(N=q.colorData)==null?void 0:N.basicColorPaletteData;b?_.V0(this.hostElement,b):_.V0(this.hostElement,{})};
_.g.observeDataChanged=function(){var q;this.dynamicTextHeight=((q=this.data)==null?0:q.supplementalText)?74:94;var N;this.hasSupplementalText=!((N=this.data)==null||!N.supplementalText);var b,y,J,E;q=(b=this.data)==null?void 0:(y=b.actionButton)==null?void 0:(J=y.buttonRenderer)==null?void 0:(E=J.colorData)==null?void 0:E.basicColorPaletteData;var F,R,c;if(!((F=this.data)==null?0:(R=F.actionButton)==null?0:(c=R.buttonRenderer)==null?0:c.style)&&q){this.computeIsInfeedModernization(this.data)||(q.borderColor=
q.foregroundTitleColor);var z,m;this.set("data.actionButton.buttonRenderer",_.nM.unsafeClone((z=this.data)==null?void 0:(m=z.actionButton)==null?void 0:m.buttonRenderer))}};
_.g.observeDataForCounterfactual=function(){if(_.x("kevlar_banner_cf_extra_logging")){var q;((q=this.data)==null?0:q.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.g.computeSupplementalStyle=function(){var q;if((q=this.data)!=null&&q.supplementalText){var N,b,y;if((N=this.data)==null?0:(b=N.colorData)==null?0:(y=b.basicColorPaletteData)==null?0:y.foregroundActivatedColor)return q=_.GM(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+q+"; --yt-endpoint-hover-color:"+q+"; --yt-endpoint-visited-color:"+q+"; --yt-formatted-string-bold-font-weight:700;"}};
_.g.computeForcedDarkTheme=function(){var q,N,b,y=(q=this.data)==null?void 0:(N=q.actionButton)==null?void 0:(b=N.buttonRenderer)==null?void 0:b.style,J,E,F;q=EBx(((J=this.data)==null?void 0:(E=J.colorData)==null?void 0:(F=E.basicColorPaletteData)==null?void 0:F.backgroundColor)||0);return y&&q};
_.g.computeForcedLightTheme=function(){var q,N,b,y=(q=this.data)==null?void 0:(N=q.actionButton)==null?void 0:(b=N.buttonRenderer)==null?void 0:b.style,J,E,F;q=!EBx(((J=this.data)==null?void 0:(E=J.colorData)==null?void 0:(F=E.basicColorPaletteData)==null?void 0:F.backgroundColor)||0);return y&&q};
_.g.computeHasOverflowButton=function(q){return!!q.overflowButton};
_.g.computeHasTitle=function(q){return!!q.title};
_.g.computeTitleMaxFontSize=function(q){return this.computeHasOverflowButton(q)?28:64};
_.g.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.g.computeIsInfeedModernization=function(){var q,N,b,y,J=(q=this.data)==null?void 0:(N=q.actionButton)==null?void 0:(b=N.buttonRenderer)==null?void 0:(y=b.colorData)==null?void 0:y.basicColorPaletteData;return(J==null?void 0:J.backgroundColor)===452984831||(J==null?void 0:J.backgroundColor)===218103808};
nb.prototype.observeDataForCounterfactual=nb.prototype.observeDataForCounterfactual;nb.prototype.observeDataChanged=nb.prototype.observeDataChanged;nb.prototype.observeBasicPalette=nb.prototype.observeBasicPalette;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],nb.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],nb.prototype,"ytdDismissibleItemBehavior",void 0);
_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],nb.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],nb.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],nb.prototype,"hasSupplementalText",void 0);_.p([_.U(),_.P("design:type",Object)],nb.prototype,"dismissButtonOverrides",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.P("design:type",Boolean)],nb.prototype,"hasTitle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.P("design:type",Object)],nb.prototype,"forceDarkTheme",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.P("design:type",Object)],nb.prototype,"forceLightTheme",void 0);_.p([_.U(),_.P("design:type",Object)],nb.prototype,"dynamicTextHeight",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.P("design:type",Object)],nb.prototype,"hasOverflowButton",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.P("design:type",Object)],nb.prototype,"isInfeedModernization",void 0);_.p([_.FY("data.colorData.basicColorPaletteData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nb.prototype,"observeBasicPalette",null);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nb.prototype,"observeDataChanged",null);_.p([_.FY("data.isVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nb.prototype,"observeDataForCounterfactual",null);_.p([_.I({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],nb);
_.a(nb,"ytd-banner-promo-renderer",function(){if(K7B!==void 0)return K7B;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return K7B=q},{mode:1});var DBB;var h_X;var keX;var UBe=function(){return _.C.apply(this,arguments)||this};
_.Y(UBe,_.C);_.p([_.U(),_.P("design:type",Object)],UBe.prototype,"data",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],UBe.prototype,"ytRendererBehavior",void 0);_.p([_.I({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],UBe);
_.a(UBe,"ytd-hashtag-grid-tile-renderer",function(){if(keX!==void 0)return keX;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return keX=q},{mode:1});var a_=function(){return _.C.apply(this,arguments)||this};
_.Y(a_,_.C);a_.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
a_.prototype.updateRichGridTrendingHashtagsVisibility=function(){var q,N;if(((q=this.data)==null||!q.isExpanded)&&(N=this.data)!=null&&N.tiles){q=this.data.tiles.length;N=q>this.richGridItemsPerRow?this.richGridItemsPerRow+1:q;var b=Math.ceil(q/N);this.fullyVisibleRows=q%N===1&&b===2?1:Math.min(b,2);this.isShowMoreVisible=this.fullyVisibleRows<b}};
a_.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
a_.prototype.updateRichGridTrendingHashtagsVisibility=a_.prototype.updateRichGridTrendingHashtagsVisibility;_.p([_.U(),_.P("design:type",Object)],a_.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Number)],a_.prototype,"fullyVisibleRows",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],a_.prototype,"isShowMoreVisible",void 0);_.p([_.U({selector:_.YR,value:0}),_.P("design:type",Number)],a_.prototype,"richGridItemsPerRow",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],a_.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],a_.prototype,"ytdReduxBehavior",void 0);_.p([_.FY("data","richGridItemsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],a_.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.p([_.I({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],a_);
_.a(a_,"ytd-hashtag-grid-shelf-renderer",function(){if(h_X!==void 0)return h_X;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return h_X=q},{mode:1});var fle;var CXy;var SZ=function(){var q=_.C.apply(this,arguments)||this;q.visibleVideos=[];q.hiddenVideos=[];q.modern=_.x("web_modern_buttons");q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.Y(SZ,_.C);_.g=SZ.prototype;_.g.attached=function(){var q=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",q);this.onDarkModeToggledAction(q)};
_.g.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"}}}};
_.g.dataChanged=function(){var q=this;this.requestElementsPerRow();var N,b;this.currentColorPalette=this.isDarkTheme?(N=this.data)==null?void 0:N.darkColorData:(b=this.data)==null?void 0:b.lightColorData;var y;if((y=this.currentColorPalette)==null?0:y.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.ut(this,function(){q.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.g.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.g.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.g.computeIsFirstFeedItem=function(q){return q};
_.g.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&this.set("isDarkTheme",q);this.data&&(this.currentColorPalette=q?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.g.getCurrentLogo=function(q,N){if(q)return N?q.darkLogoImage:q.lightLogoImage};
_.g.computeTitleStyle=function(q){var N;if((N=this.data)!=null&&N.title&&q&&q.textPrimary!==void 0)return"color:"+_.GM(q.textPrimary)+";"};
_.g.computeSubtitleStyle=function(q){var N;if((N=this.data)!=null&&N.subtitle&&q&&q.textSecondary!==void 0)return"color:"+_.GM(q.textSecondary)+";"};
_.g.computeDismissIconStyle=function(q){if(this.data&&this.data.dismissButton&&q&&q.textPrimary!==void 0)return"--yt-button-color:"+_.GM(q.textPrimary)+";"};
_.g.computeOverflowButtonStyle=function(q){if(this.data&&this.data.overflowButton&&q&&q.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.GM(q.textPrimary)+";--yt-spec-icon-active-other:"+_.GM(q.textPrimary)+";"};
_.g.computeBackgroundStyle=function(q){if(q&&this.data){var N="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var b=_.oi((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);b&&(N+='background-image:url("'+b+'");')}q.backgroundColor!==void 0&&(N+="background-color:"+_.Y8(q.backgroundColor)+";");return N}};
_.g.computeButton=function(){var q,N=Object.assign({},_.v((q=this.data)==null?void 0:q.showMoreButton,_.JI));if(this.modern&&N){N.style="STYLE_MONO_OUTLINE";var b;if(q=(b=this.currentColorPalette)==null?void 0:b.textPrimary)N.colorData={basicColorPaletteData:{foregroundTitleColor:q,borderColor:q}}}return N};
_.g.shouldShowBottomButton=function(q,N){return!(q==null?0:q.header)&&!(q==null||!q.primaryButton)&&N<3};
_.g.checkExpanded=function(q){this.isExpanded=q&&q.content?this.hiddenVideos.length===0:!0};
_.g.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.g.getLogoHeight=function(q){return this.logoWithPadding(q)?"26":"20"};
_.g.getLogoImageId=function(q){return this.logoWithPadding(q)?"logo-image-with-padding":"logo-image"};
_.g.computeHasSectionHeader=function(q){return!!q.header};
_.g.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var q;if((q=this.data.primaryButton)==null?0:q.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 N;((N=this.data.dismissButton)==null?0:N.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var b,y;((b=this.data)==null?0:(y=b.primaryButton)==null?0:y.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.g.setVisibleVideos=function(q){if(this.data&&this.data.content)if(this.data.content.length){var N=this.data.content.length;this.data.header?q?(this.visibleVideos=this.data.content.slice(0,Math.min(N,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(N,this.slimItemsPerRow),N)):(this.visibleVideos=this.data.content.slice(0,Math.min(N,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(N,this.elementsPerRow),N)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(N,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(N,this.elementsPerRow),N)):(this.visibleVideos=this.data.content.slice(0,Math.min(N,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(N,this.elementsPerRow-1),N))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.g.setHasMovieRenderer=function(){var q;if((q=this.data)!=null&&q.content){var N;this.hasMovieRenderer=!!_.v((N=this.data)==null?void 0:N.content[0],_.UA1)}else this.hasMovieRenderer=!1};
_.g.requestElementsPerRow=function(){_.e2(this.hostElement,"yt-request-elements-per-row")};
_.g.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var q=_.Z(this.hiddenMediaRenderers),N=q.next();!N.done;N=q.next())N.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(q=_.ee(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&q.focus()}};
_.g.updateTitleSpec=function(){var q;(q=this.data)!=null&&q.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.g.logoWithPadding=function(q){var N,b,y;return(q=(N=this.getCurrentLogo(q,this.isDarkTheme))==null?void 0:(b=N.thumbnails)==null?void 0:(y=b[0])==null?void 0:y.height)&&q%31===0?!0:!1};
_.g.onUpdateElementsPerRowAction=function(q,N,b){q&&this.elementsPerRow!==q&&(this.elementsPerRow=q);b&&this.slimItemsPerRow!==b&&(this.slimItemsPerRow=b)};
SZ.prototype.slimItemsPerRowChanged=SZ.prototype.slimItemsPerRowChanged;SZ.prototype.elementsPerRowChanged=SZ.prototype.elementsPerRowChanged;SZ.prototype.dataChanged=SZ.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],SZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],SZ.prototype,"ytdDismissibleItemBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],SZ.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],SZ.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],SZ.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],SZ.prototype,"currentColorPalette",void 0);_.p([_.U(),_.P("design:type",Array)],SZ.prototype,"visibleVideos",void 0);_.p([_.U(),_.P("design:type",Array)],SZ.prototype,"hiddenVideos",void 0);
_.p([_.U(),_.P("design:type",Object)],SZ.prototype,"primaryButton",void 0);_.p([_.U({reflectToAttribute:!0,value:3}),_.P("design:type",Number)],SZ.prototype,"elementsPerRow",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],SZ.prototype,"isDarkTheme",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],SZ.prototype,"isExpanded",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],SZ.prototype,"largeTitle",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],SZ.prototype,"hasMovieRenderer",void 0);_.p([_.U(),_.P("design:type",Number)],SZ.prototype,"slimItemsPerRow",void 0);_.p([_.U(),_.P("design:type",Boolean)],SZ.prototype,"showLightVideoMetadata",void 0);_.p([_.U(),_.P("design:type",Boolean)],SZ.prototype,"showDarkVideoMetadata",void 0);_.p([_.U(),_.P("design:type",Number)],SZ.prototype,"videoMetadataColor",void 0);
_.p([_.U({reflectToAttribute:!0,selector:_.GC}),_.P("design:type",Boolean)],SZ.prototype,"miniMode",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.P("design:type",Boolean)],SZ.prototype,"isFirstFeedItem",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.P("design:type",Boolean)],SZ.prototype,"hasSectionHeader",void 0);
_.p([_.U({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],SZ.prototype,"roundedContainer",void 0);_.p([_.cH("#visible-video-container ytd-rich-grid-media"),_.P("design:type",Array)],SZ.prototype,"visibleMediaRenderers",void 0);_.p([_.cH("#hidden-video-container ytd-rich-grid-media"),_.P("design:type",Array)],SZ.prototype,"hiddenMediaRenderers",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],SZ.prototype,"modern",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],SZ.prototype,"dataChanged",null);_.p([_.FY("elementsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],SZ.prototype,"elementsPerRowChanged",null);_.p([_.FY("slimItemsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],SZ.prototype,"slimItemsPerRowChanged",null);
_.p([_.I({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],SZ);
_.a(SZ,"ytd-brand-video-shelf-renderer",function(){if(CXy!==void 0)return CXy;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return CXy=q},{mode:1});var Ile;var WN=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.Y(WN,_.C);_.g=WN.prototype;_.g.attached=function(){var q=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",q);this.onDarkModeToggledAction(q)};
_.g.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"}}}};
_.g.dataChanged=function(){this.requestElementsPerRow();var q,N;this.currentColorPalette=this.isDarkTheme?(q=this.data)==null?void 0:q.darkColorData:(N=this.data)==null?void 0:N.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.g.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.g.computeIsFirstFeedItem=function(q){return q};
_.g.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&this.set("isDarkTheme",q);this.data&&(this.currentColorPalette=q?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(q),this.updateButtonPalette())};
_.g.shouldShowThumbnailInMetadata=function(q){return q<=1};
_.g.computeVideoMetadataColor=function(){if(this.data){var q;if((q=this.currentColorPalette)==null?0:q.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.g.computeTitleStyle=function(q){var N;if((N=this.data)!=null&&N.title&&q&&q.textPrimary!==void 0)return"color:"+_.GM(q.textPrimary)+";"};
_.g.computeSubtitleStyle=function(q){var N;if((N=this.data)!=null&&N.subtitle&&q&&q.textSecondary!==void 0)return"color:"+_.GM(q.textSecondary)+";"};
_.g.computeOverflowButtonStyle=function(q){if(this.data&&this.data.overflowButton&&q.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.GM(q.textPrimary)+";--yt-spec-icon-active-other:"+_.GM(q.textPrimary)+";"};
_.g.computeBackgroundStyle=function(q){if(q&&this.data){var N="";q.backgroundColor!==void 0&&(N+="background-color:"+_.Y8(q.backgroundColor)+";");return N}};
_.g.computeHasOverflowButton=function(q){return!!q.overflowButton};
_.g.updateButtonPalette=function(){if(this.data){var q;if((q=this.data.primaryButton)==null?0:q.buttonRenderer){var N;if((N=this.currentColorPalette)==null?0:N.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var b;((b=this.currentColorPalette)==null?0:b.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)})}}};
_.g.requestElementsPerRow=function(){_.e2(this.hostElement,"yt-request-elements-per-row")};
_.g.updateTitleSpec=function(){var q;(q=this.data)!=null&&q.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")};
_.g.onUpdateElementsPerRowAction=function(q){q&&this.elementsPerRow!==q&&(this.elementsPerRow=q)};
WN.prototype.elementsPerRowChanged=WN.prototype.elementsPerRowChanged;WN.prototype.dataChanged=WN.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],WN.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],WN.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],WN.prototype,"ytdDismissibleItemBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],WN.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],WN.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],WN.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],WN.prototype,"currentColorPalette",void 0);_.p([_.U(),_.P("design:type",Object)],WN.prototype,"primaryButton",void 0);
_.p([_.U({reflectToAttribute:!0,value:3}),_.P("design:type",Number)],WN.prototype,"elementsPerRow",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],WN.prototype,"isDarkTheme",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],WN.prototype,"titleSize",void 0);_.p([_.U(),_.P("design:type",Number)],WN.prototype,"videoMetadataColor",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.GC}),_.P("design:type",Boolean)],WN.prototype,"miniMode",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.P("design:type",Boolean)],WN.prototype,"isFirstFeedItem",void 0);_.p([_.U({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],WN.prototype,"roundedContainer",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.P("design:type",Boolean)],WN.prototype,"hasOverflowButton",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WN.prototype,"dataChanged",null);_.p([_.FY("elementsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WN.prototype,"elementsPerRowChanged",null);_.p([_.I({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],WN);
_.a(WN,"ytd-brand-video-singleton-renderer",function(){if(Ile!==void 0)return Ile;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Ile=q},{mode:_.Am("kevlar_poly_si_batch_j070")?1:2});var Tsc;var sxs=_.n(function(q){var N=q.data;return _.u(_.s_,{data:function(){return N().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(N().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var b=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":b=88;break a;default:b=88}return b},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return N().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"bn"),alX=_.n(function(q){var N=q.metadataRow;
var b=q.delimiter;return _.u(_.Tf,{each:function(){return N().textParts||[]},
keyBy:"INDEX"},function(y,J){return _.u(_.rV,null,_.u(_.Zc,{text:y,noWrap:!0,userInput:!0}),_.u(nBx,{delimiter:b,max:function(){return N().textParts.length},
index:J}))})},"cn"),nBx=_.n(function(q){var N=q.delimiter;
var b=q.max;var y=q.index;return _.u(_.t,{cond:function(){return(N==null?void 0:N())&&b()-1>y()},
then:function(){return _.u("span",null,N)}})},"dn"),Shv=_.n(function(q){var N=q.data;
q={};return _.u("yt-profile-page-header-information-view-model",{class:_.NO("profilePageHeaderInformationViewModelHost",(q.profilePageHeaderInformationViewModelMobile=!1,q))},_.u(_.t,{cond:function(){return N().onTap},
then:function(){return _.u(_.Vf,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.O_(N().onTap)}},_.u(_.zS,{data:function(){return N().thumbnail}},{profilePageHeaderThumbnailViewModel:sxs}))},
else:function(){return _.u("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.u(_.zS,{data:function(){return N().thumbnail}},{profilePageHeaderThumbnailViewModel:sxs}))}}),_.u("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.u(_.t,{cond:function(){return N().onTap},
then:function(){return _.u(_.zS,{data:function(){return N().title}},{profilePageHeaderTitleViewModel:function(b){var y=b.data;
return _.u(_.Vf,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.O_(y().onTap)}},_.u(_.Zc,{text:function(){return y().title}}))}})},
else:function(){return _.u(_.zS,{data:function(){return N().title}},{profilePageHeaderTitleViewModel:function(b){var y=b.data;
return _.u(_.Zc,{text:function(){return y().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.u(_.zS,{data:function(){return N().metadata}},{profilePageHeaderMetadataViewModel:function(b){var y=b.data;
return _.u(_.t,{cond:function(){return y().metadataRows},
then:function(J){return _.u("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.u(_.Tf,{each:J,keyBy:"INDEX"},function(E,F){return _.u(_.rV,null,_.u(alX,{metadataRow:E,delimiter:" \u2022 "}),_.u(nBx,{delimiter:" \u2022 ",max:function(){return J().length},
index:F}))}))}})}})))},"en");
Shv.idomCompat=!0;_.P$(Shv,"yt-profile-page-header-information-view-model",{props:{data:_.F5}});var Lb=function(){return _.C.apply(this,arguments)||this};
_.Y(Lb,_.C);Lb.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Lb.prototype,"data",void 0);_.p([_.I({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Lb);
_.a(Lb,"ytd-effect-pivot-header-view-model",function(){if(Tsc!==void 0)return Tsc;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Tsc=
q},{mode:1});var W7v;var pb=function(){return _.C.apply(this,arguments)||this};
_.Y(pb,_.C);pb.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],pb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],pb.prototype,"data",void 0);_.p([_.I({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],pb);
_.a(pb,"ytd-source-pivot-header-renderer",function(){if(W7v!==void 0)return W7v;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return W7v=q},{mode:1});_.P$(_.fCf,"yt-card-view-model",{props:{data:_.F5,className:_.F5,isSelected:_.F5}});var tvB=_.fHo.talkToRecsStateSelector;_.P$(_.n(function(q){var N=function(){return _.v(q.data().flowRoot,Vvc)};
_.WC(function(){var b=N(),y=function(){},J=function(){};
if(b){var E,F,R,c=((R=_.v((E=N())==null?void 0:(F=E.steps)==null?void 0:F[0],_.SD))==null?void 0:R.stepId)||"";uyB(b,c);y=$BB(b);J=mBe(b)}_.W1(function(){var z=N();z&&_.WT().dispatch(_.$e("flowStateEntity",z.flowStateEntityKey));y();y=function(){};
J();J=function(){};
_.nk(_.kyX())})});
return _.u("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.u(_.KS,{contentId:function(){return q.data().contentId}},function(){return _.u("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.u(_.t,{cond:N,
then:function(b){return _.u(_.JNB,{data:b})}}))}))},"fn"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.F5}});_.P$(_.n(function(){return _.u("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.u("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.u("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.u(_.sUK,null)),_.u(_.AhF,{data:{rows:1},isExploreHub:!0}))},"gn"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.P$(_.n(function(q){var N=q.data;var b=q.standardUnitMinWidth;q=_.Z((0,_.qyF)(N));var y=q.next().value,J=q.next().value,E=function(){var R,c=(R=y())==null?void 0:R.contents;return c==null||c.length===0},F=function(){J(Object.assign({},y(),{contents:[]}))};
return _.u("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.ai(_.mn({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var R=_.v(N().chipsShelf,jx7);if(R!=null&&R!=null&&R.autoselectChipOnVisible){var c,z,m=_.v(R==null?void 0:(c=R.contents)==null?void 0:c[(z=R.autoselectedChipIndex)!=null?z:0],_.RM);m&&m.tapCommand&&_.Kt(m.tapCommand)}}}))},_.u(_.KS,{contentId:function(){return N().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.u("div",null,_.u("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.u(_.zS,{data:function(){return N().header}},{sectionHeaderViewModel:function(R){return _.u(_.sQ,{data:R.data,
disableHorizontalPadding:!0})}})),_.u("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.u(_.zS,{data:function(){return N().chipsShelf}},{chipsShelfViewModel:function(R){return _.u(_.s8,{data:R.data,
callback:F,selectionBehavior:1})}})),_.u("div",null,_.u(_.t,{cond:E,
then:function(){return _.u("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.u(_.AhF,{data:{rows:1},isExploreHub:!0}))}}),_.u(_.zS,{data:function(){var R;
return(R=y())==null?void 0:R.contents}},{richShelfRenderer:function(R){return _.u(_.dbM,{data:R.data,
isInnerShelf:!0,standardUnitMinWidth:b})}})))}))},"hn"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.F5,
standardUnitMinWidth:_.F5}});var PN=function(){return _.C.apply(this,arguments)||this};
_.Y(PN,_.C);
PN.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}}};
PN.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.p([_.O(_.H6),_.P("design:type",Object)],PN.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],PN.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.tA),_.P("design:type",Object)],PN.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],PN.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],PN.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Number)],PN.prototype,"standardUnitMinWidth",void 0);_.p([_.I({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],PN);
_.a(PN,"ytd-rich-section-renderer",function(){if(fle!==void 0)return fle;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return fle=q},{mode:_.Am("kevlar_poly_si_batch_j029")?
1:2});_.P$(_.tgA,"yt-profile-identity-info-view-model",{props:{data:_.F5,hideDivider:_.F5,isChannelInfoCard:_.F5}});_.P$(_.Fdd,"yt-page-header-view-model",{props:{data:_.F5,noPadding:_.F5,enableBanner:_.F5,cinematicContainerTopbarOffset:_.F5,allowCinematicContainerOverflow:_.F5,displayAsSidebar:_.F5,displayAsPanel:_.F5,alwaysUseMediumTextDescription:_.F5}});_.P$(_.n(function(q){var N=q.data;var b=function(){var J;return(J=N().numColumns)!=null?J:2},y=function(){return b()>1?3:2};
q={};return _.u("ytd-rich-grid-group",{class:_.NO("ytdRichGridGroupHost",(q.ytdRichGridGroupHostFirstColumn=function(){return N().colIndex===0},q)),
style:_.ZU({"--ytd-rich-grid-group-num-columns":b,"--ytd-rich-grid-items-per-group":y})},_.u("div",{class:"ytdRichGridGroupContents"},_.u(_.zS,{data:function(){var J;return(J=N().contents)==null?void 0:J.slice(0,y())}},{richItemRenderer:function(J){return _.u(_.FeT,{data:J.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"jn"),"ytd-rich-grid-group",{props:{data:_.F5}});var MZ=function(){var q=_.C.apply(this,arguments)||this;q.resizeOnObserverInit=!1;q.isInlinePreviewDisabled=_.x("web_disable_inline_preview");q.disableStickyFilterBar=!1;q.transparentBackgroundChipsBar=!1;q.hideChipsBar=!1;q.collapseFeedCustomizationForm=!1;q.isWatchDefaultLayout=!0;q.continuationShowButton=!1;q.rowReducedHorizontalMargin=!1;q.useCompactList=!1;q.manualDownloadsPresent=!1;q.smartDownloadsPresent=!1;q.isOnline=!1;q.shouldRenderDownloadsBanner=!1;q.shouldRenderDownloadsBannerUpsell=
!1;q.hasOptedIntoSmartDownloads=!1;q.elementsPerRow=4;q.typographyBump=!1;q.slimItemsPerRow=1;q.pageLoadingFromNavigation=!1;q.resizeObserver=null;q.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"};q.rendererToTagNameMap=
new Map(Object.entries(q.contentMapping()).map(function(N){var b=_.Z(N);N=b.next().value;b=b.next().value;return[N,b.component]}));
q.insertedContent=new Map;return q};
_.Y(MZ,_.C);_.g=MZ.prototype;_.g.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var q=_.Z(_.ee(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),N=q.next();!N.done;N=q.next())N.value.useCompactList=this.useCompactList};
_.g.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var q=_.Z(_.ee(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),N=q.next();!N.done;N=q.next())N=N.value,N.sizing=this.sizing,N.typographyBump=this.typographyBump};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.g.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]]"}}}};
_.g.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}}};
_.g.attached=function(){document.addEventListener("yt-page-type-changed",_.gq(this,this.onPageChange));document.addEventListener("scroll",_.gq(this,this.onScroll));document.addEventListener("yt-feed-customization-scroll-up",_.gq(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$22418_throttledOnResize=new _.El(this.resizeObserved,_.VX("rich_grid_resize_delay_ms",50),this)};
_.g.detached=function(){var q;(q=this.resizeObserver)==null||q.disconnect();document.removeEventListener("yt-page-type-changed",_.gq(this,this.onPageChange));document.removeEventListener("scroll",_.gq(this,this.onScroll));document.removeEventListener("yt-feed-customization-scroll-up",_.gq(this,this.onFeedCustomizationScrollUp))};
_.g.insertRichSection=function(q){var N=q.richItemTargetId;q=q.richSectionRendererToInsert;N&&q&&(this.insertedContent.set(N,{content:q,timestamp:Date.now()}),this.reflowContent())};
_.g.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.g.computeIsInlinePreviewEnabled=function(q,N,b){return _.x("web_disable_inline_preview")?!1:!b&&_.xPa({miniplayerIsActive:q,miniplayerPlaybackState:N})};
_.g.computeSizing=function(){var q=_.IKD(this.data);if(q||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return q?this.useCompactList?"COMPACT":q:this.miniMode?"COMPACT":"STANDARD"};
_.g.updateItemMinAndMaxWidth=function(){var q=_.VX("rich_grid_max_item_width",500);q>0&&_.Jm(this.hostElement,{"--ytd-rich-grid-item-max-width":q+"px"});var N;q=this.getRichItemMinWidth((N=this.hostElement)==null?void 0:N.clientWidth);q>0&&_.Jm(this.hostElement,{"--ytd-rich-grid-item-min-width":q+"px"})};
_.g.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.g.resizeObserved=function(){_.Hy(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.g.onPageChange=function(){var q=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.Hy(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.pY.addJob(function(){q.pageLoadingFromNavigation=!1;q.setMasthead();q.maybeSetBigYoodle();q.forceRefreshAndLog();q.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.g.dataChanged=function(){var q=this;_.Hy(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.ut(this,function(){q.updateRichItemGridPositions();q.contentsElement&&_.Jm(q.hostElement,{"--ytd-rich-grid-content-offset-top":q.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.g.initResizeObserver=function(){var q=this;if(window.ResizeObserver){var N;(N=this.resizeObserver)==null||N.disconnect();var b=!1;this.resizeObserver=new ResizeObserver(function(){if(b){var y;(y=q.resizeObserver)==null||y.disconnect();var J;(J=q.JSC$22418_throttledOnResize)==null||J.fire();requestAnimationFrame(function(){var F;(F=q.JSC$22418_throttledOnResize)==null||F.fire();q.initResizeObserver()})}else if(b=!0,q.resizeOnObserverInit){var E;
(E=q.JSC$22418_throttledOnResize)==null||E.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.g.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Hy(this.hostElement,"ytd-rich-item-index-update-action")};
_.g.updateElementsPerRow=function(){_.Hy(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.B3({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.B3({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.g.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.g.onRichShelfRendererCollapse=function(q){if(this.shownItems){var N=q.detail;q=this.shownItems.findIndex(function(y){var J,E;return((E=_.v(y==null?void 0:(J=y.richSectionRenderer)==null?void 0:J.content,_.OiT))==null?void 0:E.trackingParams)===N});
var b=q+1;q<0||b>=this.contentsElement.children.length||!this.shownItems[b].richItemRenderer||this.contentsElement.children[b].scrollIntoView({behavior:"smooth",block:"start"})}};
_.g.onSoftReloadPage=function(){this.scrollUpToTop()};
_.g.handleRerenderDownloadsData=function(){_.x("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.g.handlePlaylistRemoveVideosAction=function(q){var N;if(((N=_.v(q,_.WSl))==null?0:N.setVideoIds)&&this.data&&this.data.contents){q=_.v(q,_.WSl).setVideoIds;for(N=this.data.contents.length-1;N>=0;){var b=_.v(this.data.contents[N],_.at);(b=b&&_.v(b.content,_.bo))&&b.setVideoId&&q.includes(b.setVideoId)&&this.splice("data.contents",N,1);N--}this.updateIndices()}};
_.g.updateIndices=function(){if(this.data&&this.data.contents)for(var q=0;q<this.data.contents.length;q++)this.set("data.contents."+q+".richItemRenderer.index",_.nD(String(q+1)))};
_.g.hasTopRowInlinePlayableVideoWithEndorsement=function(q){var N;return!((N=q.slice(0,this.getItemsPerRow()))==null||!N.some(function(b){var y;b=_.v(b==null?void 0:(y=b.richItemRenderer)==null?void 0:y.content,_.ge);var J;return(b==null?void 0:b.inlinePlaybackEndpoint)&&(b==null?void 0:(J=b.thumbnailOverlays)==null?void 0:J.some(function(E){return E.thumbnailOverlayEndorsementRenderer}))}))};
_.g.refreshGridLayoutNew=function(q,N,b,y){var J=y.postsPerRow;var E=y.slimItemsPerRow;var F=y.gameCardsPerRow;y=y.miniGameCardsPerRow;var R;if((R=this.data)==null||!R.contents||!this.containerWidth)return!1;var c;if((c=this.data.responsiveContainerConfiguration)==null?0:c.responsiveSize){var z=_.Xzd(this.data.responsiveContainerConfiguration,this.containerWidth,2),m;R=_.D7(Object.assign({},z,{standardUnitMinWidth:(m=this.data)==null?void 0:m.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&z.isCompactList)}else R=_.D7({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(z=this.data)==null?void 0:z.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=R.typographyBump;m=!1;if(q||this.elementsPerRow!==R.numItems||this.postsPerRow!==J||this.slimItemsPerRow!==E||this.gameCardsPerRow!==
F||this.miniGameCardsPerRow!==y||this.gutter!==R.gutter)m=this.elementsPerRow!==R.numItems,this.elementsPerRow=R.numItems,this.postsPerRow=J,this.slimItemsPerRow=E,this.gameCardsPerRow=F,this.miniGameCardsPerRow=y,this.gutter=R.gutter,this.itemWidth=R.itemWidth,this.reflowContent(N),_.Jm(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":R.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(b);this.ytdReduxBehavior.dispatch(_.B3({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:R.maxContainerWidth}));return m};
_.g.refreshGridLayout=function(q,N){var b,y=(b=this.hostElement)==null?void 0:b.clientWidth;this.containerWidth=this.adjustRichGridWidth(y,!0);var J;if((J=this.data)==null||!J.contents||!this.containerWidth)return q&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(q=!0,this.pendingForceReflow=!1);b=this.getRichItemMinWidth(y);var E=this.isShortsPanel?146:194,F=this.getMiniGameCardMinWidth(),R=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.VX("rich_grid_default_max_items_per_row",
6);y=b=this.calcElementsPerRow(b,R);(J=b<=3&&this.miniModeAllowed())&&(b=this.calcElementsPerRow(240,4));var c=this.calcMaxSlimElementsPerRow(b,R,this.isDefaultGrid);R=this.calcElementsPerRow(E,c);var z=this.calcElementsPerRow(this.isCompactGrid?E:154,c);E=this.calcElementsPerRow(this.isCompactGrid?E:F,c);F=!1;if(this.sizing)return this.refreshGridLayoutNew(q,N,J,{postsPerRow:y,slimItemsPerRow:R,gameCardsPerRow:z,miniGameCardsPerRow:E});if(q||this.elementsPerRow!==b||this.postsPerRow!==y||this.slimItemsPerRow!==
R||this.gameCardsPerRow!==z||this.miniGameCardsPerRow!==E)F=this.elementsPerRow!==b,this.elementsPerRow=b,this.postsPerRow=y,this.slimItemsPerRow=R,this.gameCardsPerRow=z,this.miniGameCardsPerRow=E,this.reflowContent(N),this.updateElementsPerRow(),_.Jm(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)&&_.Jm(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(J);_.Hy(this.hostElement,"yt-rich-grid-layout-refreshed");return F};
_.g.getRichItemMinWidth=function(q){var N=_.VX("rich_grid_min_item_width",310);if(!_.x("kevlar_disable_min_width_override")){var b,y;N=(y=(b=this.data)==null?void 0:b.minItemWidth)!=null?y:N}return N+_.DUZ(q)};
_.g.calcMaxSlimElementsPerRow=function(q,N,b){return(b===void 0?0:b)?q===1?2:q%2===0?q/2*3:q+2:N*2};
_.g.adjustRichGridWidth=function(q,N){var b=_.x("disable_rich_grid_guide_compensation");if(!this.isWatch&&!b){b=_.tz().resolve(_.$f(_.JP));var y=b==null?void 0:b.guideElement;if(!(!b||b.getData()||y!=null&&y.opened||b.getMiniGuideVisible()))if(b.canFitPersistentGuide(q)&&b.getGuideExpandsAutomatically()){var J,E,F=Number((J=window.getComputedStyle(this.hostElement))==null?void 0:(E=J.getPropertyValue("--app-drawer-width"))==null?void 0:E.replace("px",""));q-=F||0}else if(b.canFitMiniGuide(q)){var R;
J=Number((F=window.getComputedStyle(this.hostElement))==null?void 0:(R=F.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:R.replace("px",""));q-=J||0}}q>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(q-=N?32:48));return q};
_.g.calcElementsPerRow=function(q,N){var b=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),y=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((b+y)/(q+y))||1,N)};
_.g.reflowContent=function(q){var N=this;if(!this.isReflowing){this.isReflowing=!0;var b,y,J=!!((b=this.data)==null?0:(y=b.contents)==null?0:y.some(function(R){return _.v(R,_.SP)}));
b=this.getItemsPerRow();var E;y=(E=this.data)==null?void 0:E.reflowOptions;q&&(_.Q6("rgr_s"),_.ut(this,function(){_.Q6("rgr_nrf")}));
q={};(E=_.ee(this.hostElement).querySelector("#contents"))&&(q={contentElement:E,rendererToTagNameMap:this.rendererToTagNameMap});E=(E=this.data.contents)?E.slice():[];J=R__(E,b,J,y,this.getRichGridStyle(),q,this.insertedContent);var F=J.orderedContent;if(J=J.pinnedContentNotShownTargetIds)for(J=_.Z(J),b=J.next();!b.done;b=J.next())this.insertedContent.delete(b.value);J=function(){N.shownItems=F;N.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(F),_.ut(this,J)):J()}};
_.g.getFirstRowItems=function(q){for(var N=[],b=0;b<q.length;b++){var y=void 0,J=void 0,E=void 0,F=void 0,R=void 0,c=void 0;if(((y=q[b])==null?void 0:(J=y.richItemRenderer)==null?void 0:J.rowIndex)===0||((E=q[b])==null?void 0:(F=E.richGroupRenderer)==null?void 0:F.rowIndex)===0||((R=q[b])==null?void 0:(c=R.richSectionRenderer)==null?void 0:c.rowIndex)===0)N.push(q[b]);else break}return N};
_.g.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.g.resetInsertedContentIfNeeded=function(){(_.x("web_explore_hub_on_hover")||_.x("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.g.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.g.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()};
_.g.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.g.terminateVideoPreview=function(){_.Hy(this.hostElement,"yt-terminate-video-preview-action")};
_.g.updateRichItemGridPositions=function(){var q={gridData:{gridColumnCount:this.elementsPerRow}},N;((N=this.data)==null?0:N.trackingParams)&&(N=_.Oe())&&_.Sg(N,_.zT(this.data.trackingParams),q);_.Hy(this.hostElement,"ytd-rich-item-index-update-action")};
_.g.miniModeAllowed=function(){return this.isChannelPage};
_.g.getMiniGameCardMinWidth=function(){return 154};
_.g.updateMiniMode=function(q){this.miniMode=this.miniModeAllowed()&&q;this.ytdReduxBehavior.dispatch(_.B3({type:"SET_RICH_GRID_MINI_MODE",payload:q}))};
_.g.isCurrentPage=function(){return location.pathname===this.pagePath};
_.g.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var q=_.tz().resolve(_.L6).getCurrentPage();q&&q.setScrollTop(0)}};
_.g.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.g.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.g.maybeSetBigYoodle=function(){var q,N=(q=this.data)==null?void 0:q.bigYoodle;this.bigYoodleData!==N&&(this.bigYoodleData=N)};
_.g.setMasthead=function(){var q;((q=this.data)==null?0:q.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.g.getRichGridStyle=function(){var q,N;return(N=(q=this.data)==null?void 0:q.style)!=null?N:"RICH_GRID_STYLE_UNKNOWN"};
_.g.onIsShortsGridChange=function(){var q=this.ytdReduxBehavior,N=q.dispatch,b=this.getRichGridStyle();N.call(q,_.B3({type:"SET_RICH_GRID_STYLE",payload:b}))};
_.g.onScroll=function(){this.collapseFeedCustomizationForm=window.scrollY>20};
_.g.onFeedCustomizationScrollUp=function(){this.collapseFeedCustomizationForm=!1;this.scrollUpToTop()};
_.$H.Object.defineProperties(MZ.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var q;return(((q=this.data)==null?void 0:q.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var q;return(((q=this.data)==null?void 0:q.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var q=_.tz().resolve(_.L6).getCurrentPage(),N,b,y;return(((N=this.data)==null?void 0:N.targetId)==="browse-feedFEsfv_audio_pivot"||_.x("web_enable_channel_pivot_panel")&&((b=this.data)==null?void 0:b.targetId)==="browse-feedFEsfv_channel_pivot"||_.x("web_enable_effect_pivot_panel")&&((y=this.data)==null?void 0:y.targetId)==="browse-feedFEsfv_effect_pivot")&&(q==null?void 0:q.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.x("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 q;return!((q=this.data)==null?0:q.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var q;return((q=_.tz().resolve(_.L6).getCurrentPage())==null?void 0:q.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var q;return((q=_.tz().resolve(_.L6).getCurrentPage())==null?void 0:q.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 q;return(((q=this.data)==null?void 0:q.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return((q=this.data)==null?0:q.enableContentSpecificAspectRatio)||((N=this.data)==null?0:(b=N.responsiveContainerConfiguration)==null?0:b.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.VX("web_continuation_handler_margin",0):0}}});
MZ.prototype.onIsShortsGridChange=MZ.prototype.onIsShortsGridChange;MZ.prototype.onReloadContinuationFinish=MZ.prototype.onReloadContinuationFinish;MZ.prototype.reflowContent=MZ.prototype.reflowContent;MZ.prototype.handleRerenderDownloadsData=MZ.prototype.handleRerenderDownloadsData;MZ.prototype.onRichShelfRendererCollapse=MZ.prototype.onRichShelfRendererCollapse;MZ.prototype.onRequestElementsPerRow=MZ.prototype.onRequestElementsPerRow;MZ.prototype.contentLengthChanged=MZ.prototype.contentLengthChanged;
MZ.prototype.dataChanged=MZ.prototype.dataChanged;MZ.prototype.onSizingChange=MZ.prototype.onSizingChange;MZ.prototype.onUseCompactListChange=MZ.prototype.onUseCompactListChange;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],MZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.SQ),_.P("design:type",Object)],MZ.prototype,"ironResizableBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],MZ.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.tA),_.P("design:type",Object)],MZ.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],MZ.prototype,"componentBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],MZ.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],MZ.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0,selector:_.GC}),_.P("design:type",Boolean)],MZ.prototype,"miniMode",void 0);_.p([_.U({value:[]}),_.P("design:type",Array)],MZ.prototype,"shownItems",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],MZ.prototype,"isReflowing",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],MZ.prototype,"isFilteredFeed",void 0);_.p([_.U({selector:_.DTD}),_.P("design:type",Boolean)],MZ.prototype,"guideIsExpanded",void 0);
_.p([_.U({selectorArgs:["entitySelectorType"],selector:function(q,N){if(_.x("kevlar_modern_downloads_page")&&N&&N!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(N){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":N=q.entities;var b=_.jN(N),y=_.xR(N),J=_.A$e(q),E=_.oYu(q),F=_.eZC(q),R=_.xTA(N),c=_.$R(b),z=_.vT(N);return _.chZ(b,y,R,_.QRu(N),J,E,c,z,F,_.HVn(q),_.w3(q));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return q=_.jN(q.entities),_.zBC(q);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return q=
_.XQn(q.entities),_.$fZ(q);default:_.M6(new _.IO("Error: entitySelectorType defined but not matched in selector.",q,N))}}}),
_.P("design:type",Object)],MZ.prototype,"entityDrivenRichGridData",void 0);_.p([_.U(),_.P("design:type",Object)],MZ.prototype,"resizeOnObserverInit",void 0);_.p([_.U(),_.P("design:type",Object)],MZ.prototype,"bigYoodleData",void 0);_.p([_.U(),_.P("design:type",Object)],MZ.prototype,"mastheadData",void 0);_.p([_.U(),_.P("design:type",Boolean)],MZ.prototype,"isInlinePreviewDisabled",void 0);_.p([_.U(),_.P("design:type",Object)],MZ.prototype,"disableStickyFilterBar",void 0);
_.p([_.U(),_.P("design:type",Object)],MZ.prototype,"transparentBackgroundChipsBar",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],MZ.prototype,"hideChipsBar",void 0);_.p([_.U(),_.P("design:type",Object)],MZ.prototype,"collapseFeedCustomizationForm",void 0);_.p([_.U(),_.P("design:type",Object)],MZ.prototype,"isWatchDefaultLayout",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],MZ.prototype,"continuationShowButton",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],MZ.prototype,"rowReducedHorizontalMargin",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],MZ.prototype,"useCompactList",void 0);_.p([_.U({selector:function(q){return _.xR(q.entities).length>0}}),
_.P("design:type",Object)],MZ.prototype,"manualDownloadsPresent",void 0);_.p([_.U({selector:function(q){return _.jN(q.entities).length>0}}),
_.P("design:type",Object)],MZ.prototype,"smartDownloadsPresent",void 0);_.p([_.U({selector:_.w3}),_.P("design:type",Object)],MZ.prototype,"isOnline",void 0);_.p([_.U({selector:_.oYu}),_.P("design:type",Object)],MZ.prototype,"shouldRenderDownloadsBanner",void 0);_.p([_.U({selector:_.HVn}),_.P("design:type",Object)],MZ.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.p([_.U({selector:_.A$e}),_.P("design:type",Object)],MZ.prototype,"hasOptedIntoSmartDownloads",void 0);
_.p([_.FY("useCompactList"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],MZ.prototype,"onUseCompactListChange",null);_.p([_.FY("sizing","typographyBump"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],MZ.prototype,"onSizingChange",null);_.p([_.U({selector:_.IcZ}),_.P("design:type",Number)],MZ.prototype,"miniplayerPlaybackState",void 0);_.p([_.U({selector:_.QU}),_.P("design:type",Boolean)],MZ.prototype,"miniplayerIsActive",void 0);
_.p([_.U({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.P("design:type",Boolean)],MZ.prototype,"isInlinePreviewEnabled",void 0);_.p([_.U({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.P("design:type",String)],MZ.prototype,"sizing",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],MZ.prototype,"elementsPerRow",void 0);
_.p([_.U(),_.P("design:type",Object)],MZ.prototype,"typographyBump",void 0);_.p([_.U(),_.P("design:type",Number)],MZ.prototype,"itemWidth",void 0);_.p([_.dq("#header"),_.P("design:type",HTMLElement)],MZ.prototype,"headerElement",void 0);_.p([_.dq("#contents"),_.P("design:type",HTMLElement)],MZ.prototype,"contentsElement",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],MZ.prototype,"dataChanged",null);
_.p([_.$9("data.contents.length"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],MZ.prototype,"contentLengthChanged",null);_.p([_.ZP("yt-request-elements-per-row"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],MZ.prototype,"onRequestElementsPerRow",null);
_.p([_.ZP("yt-rich-shelf-renderer-collapse"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],MZ.prototype,"onRichShelfRendererCollapse",null);_.p([_.$9("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],MZ.prototype,"handleRerenderDownloadsData",null);
_.p([_.l("data"),_.P("design:type",String),_.P("design:paramtypes",[])],MZ.prototype,"entitySelectorType",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.targetId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"isSub",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.targetId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"isWatch",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data.targetId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"isShortsPanel",null);_.p([_.U({reflectToAttribute:!0}),_.l("isWatch"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"reducedTopMargin",null);_.p([_.U({reflectToAttribute:!0}),_.l("data","isWatch","isWatchDefaultLayout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"noTopMargin",null);
_.p([_.U({reflectToAttribute:!0}),_.l("isInlinePreviewEnabled","shownItems"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"topRowEndorsement",null);_.p([_.l("data.header"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"hideHeader",null);_.p([_.ZP("yt-rich-grid-reflow"),_.P("design:type",Function),_.P("design:paramtypes",[Boolean]),_.P("design:returntype")],MZ.prototype,"reflowContent",null);
_.p([_.ZP("yt-reload-continuation-finish"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],MZ.prototype,"onReloadContinuationFinish",null);_.p([_.l("data"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"isSlimGrid",null);_.p([_.l("data"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"isShortsGrid",null);
_.p([_.l("data","isSlimGrid","isShortsGrid"),_.U(),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"noRichItemGutterMargins",null);_.p([_.l("data"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"isShortsGridSlim",null);_.p([_.l("data"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"isCompactGrid",null);
_.p([_.l("data"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"isDefaultGrid",null);_.p([_.l("data.targetId"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"hideChipsBarOnWatch",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],MZ.prototype,"onIsShortsGridChange",null);
_.p([_.l("data.enableContentSpecificAspectRatio"),_.U(),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"force16By9ThumbnailAspectRatio",null);_.p([_.l("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],MZ.prototype,"continuationTriggerOffset",null);_.p([_.I({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],MZ);
_.a(MZ,"ytd-rich-grid-renderer",function(){if(DBB!==void 0)return DBB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return DBB=q},{mode:2});var L7B=_.n(function(q){return _.u("yt-feedback-prompt-view-model",{class:_.NO("ytFeedbackPromptViewModelHost",q.className)},_.u(_.t,{cond:function(){return q.data().text},
then:function(N){return _.u(_.Zc,{text:N,className:"ytFeedbackPromptViewModelPrompt"})}}),_.u(_.zS,{data:function(){return q.data().likeButton}},{likeButtonViewModel:function(N){return _.u(_.y$,{data:N.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.u(_.zS,{data:function(){return q.data().dislikeButton}},{dislikeButtonViewModel:_.bD}))},"kn");var pZh=_.n(function(q){var N=_.Z((0,_.yyT)(q.data)).next().value,b=function(){var y,J;return(J=(y=N().contents)==null?void 0:y.length)!=null?J:0};
return _.u("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return q.data().targetId||""},
"aria-busy":function(){var y,J;return(J=(y=N().contents)==null?void 0:y.some(function(E){return!!E.chatLoadingViewModel}))!=null?J:!1}},_.u(_.zS,{data:function(){return q.data().header}},{chipBarViewModel:_.JC1,
sectionHeaderViewModel:_.sQ}),_.u(_.zS,{data:function(){return N().contents}},{accordionViewModel:_.WVx,
alertBannerViewModel:_.cCM,chatLoadingViewModel:function(y,J){return _.u(_.PLp,{data:y.data,containerHeight:q.containerHeight,isLastItem:function(){return J()===b()-1}})},
chatUserTurnViewModel:function(y,J){return _.u(_.MlA,{data:y.data,containerHeight:q.containerHeight,isLastItem:function(){return J()===b()-1}})},
feedbackPromptViewModel:L7B,gridShelfViewModel:function(y){return _.u(_.ZJ,{data:y.data,shouldUseOwnContainerSize:!0,marginSettings:q.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.CyR,linearLayoutViewModel:_.dW,lockupViewModel:function(y){return _.u(_.UE,{data:y.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:q.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.sQ,videoOverviewViewModel:_.Hll,youChatItemViewModel:function(y,J){return _.u(_.pHp,{data:y.data,pending:!1,containerHeight:q.containerHeight,isLastItem:function(){return J()===b()-1}})}}))},"ln");_.P$(_.n(function(q){var N=_.Z((0,_.yyT)(q.data)).next().value,b=_.Z(_.zK()),y=b.next().value;b=b.next().value;var J=_.ai(b);b=_.Z(_.QS(void 0,void 0,"fqbUqd"));var E=b.next().value,F=b.next().value,R=function(){var c;return _.v((c=q.data().sectionListLayoutConfiguration)==null?void 0:c.layoutConfiguration,xBy)};
_.WC(function(){var c,z=(c=J.value)==null?void 0:c.clientWidth;c=R()?_.qyh(z,R()):void 0;F(c)});
b={};return _.u("yt-section-list-renderer",{class:_.NO("ytSectionListRendererHost",q.className,(b.ytSectionListRendererHostOverscrollContain=function(){var c;return(c=q.overscrollContain)==null?void 0:c.call(q)},b)),
el:J,"data-target-id":function(){return q.data().targetId||""}},_.u(_.zS,{data:function(){return N().contents}},{itemSectionRenderer:function(c){return _.u(pZh,{data:c.data,
containerLayoutConfig:E,marginSettings:q.marginSettings,containerHeight:function(){return y.height()}})}}))},"mn"),"yt-section-list-renderer",{props:{data:_.F5,
className:_.W$,marginSettings:_.F5,overscrollContain:_.F5}});var PXh;var Mv7;var oBs=function(){return _.C.apply(this,arguments)||this};
_.Y(oBs,_.C);_.p([_.U(),_.P("design:type",Object)],oBs.prototype,"data",void 0);_.p([_.Ok({is:"yt-alert-renderer",disableElementRegistration:!0})],oBs);
_.a(oBs,"yt-alert-renderer",function(){if(Mv7===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;PXh===void 0&&(PXh=document.createElement("template"));var y=PXh;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Mv7=q}q=Mv7;return q},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Kla;Kla=function(q,N,b,y){b||(q?y&&(y.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||y.WINDOW_SIZE_CHANGED&&(N.width!==window.innerWidth||N.height!==window.innerHeight)||y.SAFARI_ABORTED_BY_NEW_TRANSITION&&q instanceof DOMException&&q.name==="AbortError"&&q.message.includes("Old view transition aborted by new view transition"))||_.po(q):_.po(Error("wj")))};
_.DKC=function(q,N){N=N===void 0?{}:N;var b,y,J,E,F,R,c,z,m,r,X,V,G;return _.d(function(w){switch(w.nextAddress){case 1:b=N;y=b.shouldWrap===void 0?!0:b.shouldWrap;J=b.skipTransitionTimeoutMs===void 0?300:b.skipTransitionTimeoutMs;E=b.beforeTransition;F=b.afterTransition;if(!y||!document.startViewTransition||document.visibilityState==="hidden")return w.return(q());R={width:window.innerWidth,height:window.innerHeight};c=!1;(z=E)==null||z();_.Yi(w,2);m=document.startViewTransition(q);r=setTimeout(function(){m.skipTransition();
c=!0},J);
return w.yield(m.ready,4);case 4:return clearTimeout(r),w.yield(m.finished,5);case 5:clearTimeout(r);(X=F)==null||X();_.Ea(w,0);break;case 2:V=_.K7(w),(G=F)==null||G(),Kla(V,R,c,N.ignoredErrors),_.hj(w)}})};
_.hnX=function(q,N){var b=_.dnd(N);b!=="javascript:"&&b!=="data:"&&q.setAttribute("href",N)};
_.Lh=function(){for(var q=Array(36),N=0,b,y=0;y<36;y++)y==8||y==13||y==18||y==23?q[y]="-":y==14?q[y]="4":(N<=2&&(N=33554432+Math.random()*16777216|0),b=N&15,N>>=4,q[y]=_.WwR[y==19?b&3|8:b]);return q.join("")};
_.kMx=function(q,N,b){q.persistentPanelContainerMap.set(b,N)};/*

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 UKB=_.Tt(['<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>']),
f4a=_.W_l(UKB);f4a.setAttribute("style","display: none;");document.head.appendChild(f4a.content);_.ph=_.$mR(function(q){var N=_.iC("DIV");q&&(N.className=q);N.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";q=_.iC("DIV");_.SpF(q,"200px","200px");N.appendChild(q);document.body.appendChild(N);q=N.offsetWidth-N.clientWidth;_.lC(N);return q});var CId;var I4K;var PS=function(){var q=_.C.apply(this,arguments)||this;q.icon=null;return q};
_.Y(PS,_.C);PS.prototype.dismiss=function(){_.e2(this.hostElement,"yt-live-chat-error-message-dismiss")};
PS.prototype.computeIcon=function(q){return q&&q.iconType?"yt-icons:"+q.iconType.toLowerCase():"yt-icons:close"};
_.p([_.U(),_.P("design:type",Object)],PS.prototype,"data",void 0);_.p([_.U({computed:"computeIcon(data.icon)"}),_.P("design:type",Object)],PS.prototype,"icon",void 0);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],PS);
_.a(PS,"yt-live-chat-error-message-renderer",function(){if(I4K===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;CId===void 0&&(CId=document.createElement("template"));var y=CId;b.call(N,y.content.cloneNode(!0),q.content.firstChild);I4K=q}q=I4K;return q},{mode:0});
}catch(e){_._DumpException(e)}
try{
var RlB,d7X,cVs,uC7,m7x,VIe,ju7,x7c,vZ_,Gfv,YwB,Que,OIe,DX,wCB,iIc,l$v,KTB,D7B,hlB,kfh,U77,f$s,I$h,TVy,sux,nZy,a$B,Swy,WTy,LTe,pCe,Pcs,MIX,oZy,AVe,ele,BVv,NOB,yze,Efh,gfZ,Z4X,Fa_,HI7,qVZ,czX,u$s,zVB,$gx,tAx,mgy,rzh,X4Z,RV7;RlB=function(q,N){return _.Ji(q.entities,"timedMarkersListSyncEntity",N)};
d7X=function(q,N){return _.Ji(q.entities,"liveReactionsDataEntity",N)};
cVs=function(q,N){q=_.Ji(q.entities,"booleanEntity",N);return!(!q||!q.value)};
uC7=function(q,N){var b=_.Oe();b&&q&&_.fr(b,_.zT(q),N)};
_.zls=function(q){return q.watch.isWatchActive};
_.$7B=function(q){return _.Q0(q)||_.Ol(q)||_.J1A(q)};
_.tIc=function(q){return!_.$7B(q)};
_.Kj=function(q){return q.watch.watchScrollTop};
m7x=function(q){return q.watch.isLiveChatCollapsed};
_.rVh=function(){_.x("web_watch_log_theater_mode")&&_.wrd("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.XC7=function(q,N,b){if(!q.includes("START_TIME_PLACEHOLDER")||!q.includes("END_TIME_PLACEHOLDER"))return q;var y=new Date(0),J=new Date(0);y.setUTCMilliseconds(N);J.setUTCMilliseconds(b);return q.replace("START_TIME_PLACEHOLDER",_.Io(y,7)).replace("END_TIME_PLACEHOLDER",_.Io(J,7))};
VIe=function(q){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:q}}]}}}};
ju7=function(q,N,b){var y=_.x("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;N=Object.assign({},{text:N,hasGradientBackground:b},y&&{itemTargetId:y});y=_.x("web_enable_chat_autoscroll_to_user_turn")&&y?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:y,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:N}],insertByPositionInSection:{sectionTargetId:q,
position:"INSERTION_POSITION_LAST"}}}]},y?{scrollConfig:y}:{})}}};
x7c=function(q,N){return _.Ji(q.entities,"booleanEntity",N)};
vZ_=function(){return function(q){_.nk(_.$e("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:q}))}};
Gfv=function(q){switch(q){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}};
YwB=function(q,N,b){var y=_.O_(b);q&&N&&y&&q.getPlayerPromise().then(function(J){_.hKA(y)&&_.Lo();(new _.ei(J)).executeCommand(y,N);_.x("continue_playback_on_desktop_companion_click")||J.pauseVideo()})};
Que=function(q){var N=_.Pk(),b;if(b=_.Ng("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var y;b=(y=b())==null?void 0:y.layoutId}else b=null;YwB(N,b,q)};
OIe=function(q){var N=_.Pk(),b;if(b=_.Ng("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var y;b=(y=b())==null?void 0:y.layoutId}else b=null;YwB(N,b,q)};
DX=function(q,N){var b=q<0?"-":"";q=Math.abs(q);var y=Math.floor(q/3600),J=Math.floor(q)%3600,E=Math.floor(J/60);J=Math.floor(J)%60;var F="";(N===void 0?0:N)&&(F="."+Math.round((q-Math.floor(q))*10));return y>0?b+y+":"+(E<10?"0"+E:""+E)+":"+(J<10?"0"+J:""+J)+F:b+E+":"+(J<10?"0"+J:""+J)+F};
wCB=function(q){var N=q.match(/[^0-9:\.]/g);if(N&&N.length>0)return null;q=q.split(":");if(q.length===0||q.length>3)return null;N=1;for(var b=0;q.length>0;){var y=q.pop();if(y===void 0)break;var J=Number(y);if(y===""||isNaN(J))return null;b+=J*N;N*=60}return b};
iIc=function(q,N,b,y){q=Math.max(b,q);N=Math.min(N,y-b);q+N>y?(b=y,q=b-N):b=q+N;return{start:q,end:b}};
l$v=function(q,N,b,y,J,E){q<b?q=b:q+J>y&&(q=y-J);N>y&&(N=y);N=Math.min(q+E,Math.max(q+J,N));return{start:q,end:N}};
KTB=function(q,N,b,y,J,E){N>y?N=y:N-J<b&&(N=b+J);q<b&&(q=b);q=Math.min(N-J,Math.max(N-E,q));return{start:q,end:N}};
D7B=function(q){return _.x("web_transcript_cue_id_killswitch")?String(q):"ytd-transcript-renderer_"+q};
hlB=function(q){return _.x("web_transcript_cue_id_killswitch")?!0:q.startsWith("ytd-transcript-renderer")};
kfh=function(q){var N=_.Pk(),b;if(b=_.Ng("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var y;b=(y=b())==null?void 0:y.layoutId}else b=null;YwB(N,b,q)};
U77=function(q){q.style.height="auto";q.style.height=Math.min(q.scrollHeight||20,80)+"px"};
f$s=function(){var q;return String(Math.floor(((q=_.JO())==null?void 0:q.getCurrentTime())||0)*1E3)};
I$h=function(q){if(q.onWelcomeCommand)return _.O_(q.onWelcomeCommand);q=_.v(q.inputComposerViewModel,Ccy);if(q==null?0:q.welcomeFeatureContinuation)return _.$M(q.welcomeFeatureContinuation)};
TVy=function(q){var N=_.Pk(),b;b=(b=_.Ng("yt.www.ads.eventcache.getLastCompanionData"))?(b=b())&&b.layoutId:null;YwB(N,b,q)};
sux=function(q){var N=_.Pk(),b;b=(b=_.Ng("yt.www.ads.eventcache.getLastCompanionData"))?(b=b())&&b.layoutId:null;YwB(N,b,q)};
nZy=function(q){if(q.simpleText)return[{text:q.simpleText}];var N;return(N=q.runs)!=null?N:[]};
a$B=function(q){var N=q.startEndTimeTemplate,b=q.startTimeUtcMillis;q=q.endTimeUtcMillis;if(N&&b&&q)return _.nD(_.XC7(_.ao(N),Number(b),Number(q)))};
Swy=function(q,N){var b,y,J=q==null?void 0:(b=q.viewCount)==null?void 0:(y=b.videoViewCountRenderer)==null?void 0:y.shortViewCount;if(!N&&J)return J;var E,F;return q==null?void 0:(E=q.viewCount)==null?void 0:(F=E.videoViewCountRenderer)==null?void 0:F.viewCount};
WTy=function(q,N){var b=q==null?void 0:q.relativeDateText;return!N&&b?[b,!0]:[q==null?void 0:q.dateText,!1]};
LTe=function(q,N,b,y,J){y=y===void 0?"":y;J=J===void 0?!1:J;var E=Swy(q,N),F=_.Z(WTy(q,N)),R=F.next().value;F=F.next().value;N=N?q==null?void 0:q.sponsorsOnlyFirstTimeLongText:q==null?void 0:q.sponsorsOnlyFirstTimeShortText;var c=[];b&&E&&c.push(E);!b&&F||!R||c.push(R);q=[J?q==null?void 0:q.subtitle:void 0].concat(_.a9(c),[N,q==null?void 0:q.stationName,q==null?void 0:q.rating,q?a$B(q):void 0,q==null?void 0:q.upNextProgramText,q==null?void 0:q.superTitleLink]).filter(function(z){return!!z});
b={runs:[]};for(J=0;J<q.length;J++)b.runs.push.apply(b.runs,_.a9(nZy(q[J]))),J<q.length-1&&b.runs.push({text:" "+y+" "});return b};
pCe=function(q){return q.filter(function(N){return!_.v(N,_.eD)})};
Pcs=function(q){var N,b,y,J;if(q=q==null?void 0:(N=q.contents)==null?void 0:(b=N.twoColumnWatchNextResults)==null?void 0:(y=b.results)==null?void 0:(J=y.results)==null?void 0:J.contents){var E,F;return(F=(E=q.find(function(R){return!!R.videoPrimaryInfoRenderer}))==null?void 0:E.videoPrimaryInfoRenderer)==null?void 0:F.updatedMetadataEndpoint}};
MIX=function(q,N){var b;return(b=q.sourceConfigs)==null?void 0:b.find(function(y){return y.videoId===N})};
oZy=function(q){return q==="End of video"||q==="End of playlist"};
AVe=function(q){var N,b,y,J;return(N=q.getWatchNextResponse())==null?void 0:(b=N.contents)==null?void 0:(y=b.twoColumnWatchNextResults)==null?void 0:(J=y.playlist)==null?void 0:J.playlist};
ele=function(q){var N,b,y,J,E,F;return(N=AVe(q))==null?void 0:(b=N.playlistButtons)==null?void 0:(y=b.menuRenderer)==null?void 0:(J=y.topLevelButtons)==null?void 0:(E=J[0])==null?void 0:(F=E.playlistLoopButtonRenderer)==null?void 0:F.playlistLoopStateEntityKey};
BVv=function(q){var N=_.tz().resolve(_.F2),b;return(N=(b=_.v(N.getAutoplayEndpoint(),_.nx))==null?void 0:b.playlistId)&&N===q};
NOB=function(q,N,b,y,J){function E(){_.pY.cancelJob(hL);var F=HI7(N,b/q.getPlaybackRate()),R=F.hours,c=F.minutes;F=(F.seconds*1E3||6E4)/q.getPlaybackRate();q.setVideoTimeLeft(qVZ(R,c));y&&q.getPlayerState()!==0&&q.setSleepTimerTimeLeft(qVZ(R,c,!0));(R>0||c>0)&&!J&&(hL=_.rj(_.pY,E,F))}
_.pY.cancelJob(hL);hL=_.rj(_.pY,E)};
yze=function(q,N,b){function y(){_.pY.cancelJob(b4c);var J=HI7(N,b),E=J.hours;J=J.minutes;var F=6E4/q.getPlaybackRate();if(E>0||J>0)q.setSleepTimerTimeLeft(qVZ(E,J,!0)),b4c=_.rj(_.pY,y,F)}
_.pY.cancelJob(b4c);b4c=_.rj(_.pY,y)};
Efh=function(q,N){var b=q.getVolume()/(N/500),y=function(J){_.pY.cancelJob(Jzx);var E=Math.floor(J-b);q.setVolume(E,!1);E>0&&(Jzx=_.rj(_.pY,function(){y(E)},500))};
_.pY.cancelJob(Jzx);Jzx=_.rj(_.pY,function(){y(q.getVolume())})};
gfZ=function(q,N){_.pY.cancelJob(Jzx);N&&q.syncVolume()};
Z4X=function(){var q={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.FE("SLEEP_TIMER_DISRUPTED")}}}}};_.tz().resolve(_.rO).resolveCommand(q)};
Fa_=function(q){return(q.getDuration()-q.getProgressState().current)*1E3};
HI7=function(q,N){q=q+N-(0,_.mA)();if(q<=0)return{hours:0,minutes:0,seconds:0};var b=new RV7(0,0,0,0,0,0,q);q=b.getHours();N=b.getMinutes();b=b.getSeconds();b!==0&&N++;N!==0&&N%60===0&&(q++,N=0);return{hours:q,minutes:N,seconds:b}};
qVZ=function(q,N,b){return q>0&&N>0?b?_.FE("TIME_LEFT_HOURS_MINUTES",{hours:q.toString(),minutes:N.toString()}):_.FE("TIME_HOURS_MINUTES",{hours:q.toString(),minutes:N.toString()}):q>0?b?_.R5("TIME_LEFT_HOURS",q):_.R5("TIME_HOURS",q):b?_.FE("TIME_LEFT_MINUTES",{minutes:N.toString()}):_.FE("TIME_MINUTES",{minutes:N.toString()})};
czX=function(q,N){if(q.timelyActions)return q.timelyActions.find(function(b){var y;return((y=_.v(b,dgh))==null?void 0:y.cueRangeId)===N})};
u$s=function(q){var N=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.z5(q);q.keyMap_.forEach(function(b,y){_.aJ(N,y)||this.remove(y)},q)};
zVB=function(q,N){q.reloadContinuationItemsCommandMatcher=N};
$gx=function(q,N){var b;return _.d(function(y){return y.nextAddress==1?N&&q.lastWelcomeContinuationSent!==N?_.U6f(q)?y.yield(q.panelController.isVisible("PAai_companion"),3):y.jumpTo(2):y.return(!1):y.nextAddress==2||(b=y.yieldResult,b)?y.return(!0):y.return(!1)})};
tAx=function(q){var N,b,y,J,E;return _.d(function(F){if(F.nextAddress==1){if(!q.welcomeOptions)return F.return();N=q.welcomeOptions;b=N.command;y=N.setPending;if(b){var R;var c=(R=_.v(b,_.lR))==null?void 0:R.token}else c=void 0;J=c;return F.yield($gx(q,J),2)}if(!F.yieldResult)return F.return();q.lastWelcomeContinuationSent=J;(E=y)==null||E(!0);c="youchat-"+Date.now();R=(R=_.JO())?String(Math.floor(R.getCurrentTime())*1E3):void 0;_.wa(b,{form:{formData:_.zY({clientMessageId:c,playerOffsetMs:R,pageContext:_.bMp(q,
q.pageSubtype)})}});_.hj(F)})};
mgy=function(q,N){_.d(function(b){q.welcomeOptions=N;return b.yield(tAx(q),0)})};
_.kS=function(q,N){q.insertBefore(N,q.childNodes[0]||null)};
rzh=function(q){if(q>=48&&q<=57||q>=96&&q<=106||q>=65&&q<=90||_.Nd&&q==0)return!0;switch(q){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 _.qd;default:return!1}};
X4Z=function(q){if(q.altKey&&!q.ctrlKey||q.metaKey||q.keyCode>=112&&q.keyCode<=123)return!1;if(rzh(q.keyCode))return!0;switch(q.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!_.qd;default:return q.keyCode<166||q.keyCode>183}};
RV7=function(q,N,b,y,J,E,F){this.date=typeof q==="number"?new Date(q,N||0,b||1,y||0,J||0,E||0,F||0):new Date(q&&q.getTime?q.getTime():_.M$())};
_.oK(RV7,_.ht);_.g=RV7.prototype;_.g.getHours=function(){return this.date.getHours()};
_.g.getMinutes=function(){return this.date.getMinutes()};
_.g.getSeconds=function(){return this.date.getSeconds()};
_.g.getMilliseconds=function(){return this.date.getMilliseconds()};
_.g.getUTCDay=function(){return this.date.getUTCDay()};
_.g.getUTCHours=function(){return this.date.getUTCHours()};
_.g.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.g.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.g.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.g.setHours=function(q){this.date.setHours(q)};
_.g.setMinutes=function(q){this.date.setMinutes(q)};
_.g.setSeconds=function(q){this.date.setSeconds(q)};
_.g.setMilliseconds=function(q){this.date.setMilliseconds(q)};
_.g.setUTCHours=function(q){this.date.setUTCHours(q)};
_.g.setUTCMinutes=function(q){this.date.setUTCMinutes(q)};
_.g.setUTCSeconds=function(q){this.date.setUTCSeconds(q)};
_.g.setUTCMilliseconds=function(q){this.date.setUTCMilliseconds(q)};
_.g.add=function(q){_.ht.prototype.add.call(this,q);q.hours&&this.setUTCHours(this.date.getUTCHours()+q.hours);q.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+q.minutes);q.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+q.seconds)};
_.g.JSC$11407_toIsoString=function(q){var N=_.ht.prototype.JSC$11407_toIsoString.call(this,q);return q?N+"T"+_.Eq(this.getHours(),2)+":"+_.Eq(this.getMinutes(),2)+":"+_.Eq(this.getSeconds(),2):N+"T"+_.Eq(this.getHours(),2)+_.Eq(this.getMinutes(),2)+_.Eq(this.getSeconds(),2)};
_.g.equals=function(q){return this.getTime()==q.getTime()};
_.g.toString=function(){return this.JSC$11407_toIsoString()};
_.g.clone=function(){var q=new RV7(this.date);q.firstDayOfWeek_=this.firstDayOfWeek_;q.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return q};
_.VA7=function(q){return _.B3({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:q}})};var jOB=new _.yT("imageTileRenderer");var xgZ=new _.yT("promotedSparklesWebRenderer");var vfc=new _.yT("adGridCardCollectionViewModel");var G17=new _.yT("carouselTitleViewModel");var YV7=new _.yT("ctaCarouselItemViewModel");var QOX=new _.yT("textFieldViewModel");_.O4x=new _.yT("engagementPanelHeaderShowNavigationButtonCommand");var w4s=new _.yT("hideEngagementPanelScrimAction");var i4v=new _.yT("setActivePanelItemAction");var lMv=new _.yT("showEngagementPanelScrimAction");var KaB=new _.yT("updateEngagementPanelAction");var Dgx=new _.yT("updateSearchInVideoResultsAction");var hVx=new _.yT("transcriptCueGroupRenderer");var k1B=new _.yT("transcriptCueRenderer");var UgB=new _.yT("transcriptFooterRenderer");var fMl=new _.yT("engagementPanelAdSubtitleRenderer");var CvX=new _.yT("videoDescriptionFantasySectionViewModel");var IMB=new _.yT("deleteClipEngagementPanelCommand");var TOh=new _.yT("loopCommand");var sO_=new _.yT("changeCreatorEndscreenVisibilityCommand");var nfX=new _.yT("liveChatCallForQuestionsRenderer");var aMv=new _.yT("updateTimedMarkersSyncObserverCommand");var dgh=new _.yT("timelyActionViewModel");var SVl=new _.yT("timelyActionsOverlayViewModel");var Wah=new _.yT("repeatChapterCommand");var LaX=new _.yT("watchPlayerOverflowMenuCommand");var p4B=new _.yT("compositeVideoOverlayRenderer");var Pv_=new _.yT("sortFilterSubMenuRenderer");var MA_=new _.yT("switchListItemViewModel");var Ccy=new _.yT("inputComposerViewModel");var of7=new _.yT("transcriptEditSegmentCommand");var Az7=new _.yT("transcriptUpdateSegmentTextCommand");var eVv=new _.yT("transcriptSearchBoxRenderer");var BOs=new _.yT("transcriptSegmentListRenderer");var H4c=new _.yT("transcriptSegmentRenderer");_.qav=new _.yT("updateDateTextAction");var ND7=new _.yT("updateTitleAction");var bYs=new _.yT("updateViewershipAction");var ySy=new _.yT("relatedChipCommand");var JSs=new _.yT("carouselLockupRenderer");var U4=new _.yT("expandableVideoDescriptionBodyRenderer");var E5v=new _.yT("videoDescriptionHeaderRenderer");var g5y=new _.yT("videoDescriptionYouchatSectionViewModel");_.fj=_.VX("kevlar_watch_page_horizontal_margin",24);_.ZYx=_.VX("kevlar_watch_page_columns_top_padding",24);_.FAh=426+_.fj*2;_.Cj=_.VX("kevlar_watch_two_column_width_threshold",1E3);_.RwB=_.fj*2;_.dmy=_.VX("kevlar_watch_secondary_width",402);_.cSB=_.VX("kevlar_watch_max_player_width",1280);_.ulx=_.VX("kevlar_watch_flexy_metadata_height",136);_.zw_=_.RwB+310+_.fj;_.$ml=_.RwB+360+_.fj;var tde={PAUSE_CHAT:18};var mmv;var rSy;var IB=function(){return _.C.apply(this,arguments)||this};
_.Y(IB,_.C);IB.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
IB.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var q=_.v(this.data.button,_.FF);q&&(q.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.$H.Object.defineProperties(IB,{template:{configurable:!0,enumerable:!0,get:function(){if(rSy===void 0){var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;mmv===void 0&&(mmv=document.createElement("template"));var y=mmv;b.call(N,y.content.cloneNode(!0),q.content.firstChild);rSy=q}q=rSy;return q}}});
_.p([_.O(_.BW),_.P("design:type",Object)],IB.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],IB.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U({selectorArgs:["data.enabledEntityKey"],selector:cVs,observer:"onEnabledChange"}),_.P("design:type",Boolean)],IB.prototype,"enabled",void 0);_.p([_.U(),_.P("design:type",Object)],IB.prototype,"data",void 0);_.p([_.Ok({is:"yt-disableable-button-view-model",noInjection:!0})],IB);var Xv_;var Vdc;var jwe=["transVert01","transVert02","transVert03"],xmB="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),TL=function(){var q=_.C.apply(this,arguments)||this;q.emojiManager=_.Zt;q.isDarkTheme=document.documentElement.hasAttribute("dark");q.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};q.reactionBuckets=[];q.noEmojiIdentifier="NO_EMOJI";return q};
_.Y(TL,_.C);_.g=TL.prototype;_.g.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.g.desktopFountainEmojiSizePxChanged=function(){_.Jm(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.g.createUserReactionAnimation=function(q){this.createEmojiAnimation(q,!0)};
_.g.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var q;((q=this.data)==null?0:q.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.$e("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.a9(this.emojiContainer.children)).forEach(function(N){N.remove()})};
_.g.detached=function(){this.cleanupFountain()};
_.g.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var q;this.reactionBuckets=_.nM.unsafeClone((q=this.emojiFountainData)==null?void 0:q.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.g.processEmojiBucket=function(q){var N=this;if(this.reactionBuckets&&!(q>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var b=this.reactionBuckets[q];this.generateEmojiAnimations(b);if(q<this.reactionBuckets.length-1){var y;if(b==null?0:(y=b.duration)==null?0:y.seconds)this.emojiBucketTimerId=setTimeout(function(){N.processEmojiBucket(q+1)},Number(b.duration.seconds)*1E3)}}};
_.g.generateEmojiAnimations=function(q){var N=this,b=this.getRandomEmojiIdFromBucketWithOverride(q);if(b&&b!==this.noEmojiIdentifier){var y=0;q.targetEps?(y=this.linearInterpolateBounded(1,20,100,12,q.emojiSizeIndex||0),this.createEmojiAnimation(b,!1,q.emojiAnimationMs,y),y=this.getEmojiDelayMsFromTargetEps(q.targetEps)):(this.createEmojiAnimation(b),y=this.getEmojiDelayMsFromDistribution(q.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){N.generateEmojiAnimations(q)},y)}};
_.g.getRandomEmojiIdFromBucketWithOverride=function(q){if(!(q&&q.reactionsData&&q.reactionsData.length&&q.totalReactions))return this.noEmojiIdentifier;for(var N=q.totalReactions,b=1,y=_.Z(q.reactionsData),J=y.next();!J.done;J=y.next())J=J.value,(J.reactionWeightOverride||J.reactionWeightOverride===0)&&J.reactionCount&&(N-=J.reactionCount,b-=J.reactionWeightOverride);y=!0;b<0&&(y=!1,N=q.totalReactions,b=1);if(y&&b>0&&N===0)if(b===1){J=0;for(var E=_.Z(q.reactionsData),F=E.next();!F.done;F=E.next())F=
F.value,F.reactionCount&&F.reactionCount>0&&J++;J=1/J;E=_.Z(q.reactionsData);for(F=E.next();!F.done;F=E.next())F.value.reactionWeightOverride=J}else for(J=1/(1-b),E=_.Z(q.reactionsData),F=E.next();!F.done;F=E.next())F=F.value,F.reactionWeightOverride&&(F.reactionWeightOverride*=J);J=Math.random();E=0;F=_.Z(q.reactionsData);for(var R=F.next();!R.done;R=F.next())if(R=R.value,R.reactionCount&&(E=(R.reactionWeightOverride||R.reactionWeightOverride===0)&&y?E+R.reactionWeightOverride:E+b*R.reactionCount/
N,E>J&&(R.reactionCount--,q.totalReactions--,R=this.reactionItemToEmojiString(R),R!==this.noEmojiIdentifier)))return R;return this.noEmojiIdentifier};
_.g.reactionItemToEmojiString=function(q){if(q.unicodeEmojiId)return q.unicodeEmojiId;if(q.emoteId)return q.emoteId;if(q.videoReactionType)switch(q.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.g.createEmojiAnimation=function(q,N,b,y){N=N===void 0?!1:N;this.lastEmojiRequestedForTesting=q;var J=q.startsWith("yt-icons:"),E=_.E6(this.emojiManager,q);if(E||J){var F=document.createElement("emoji");F.classList.add("yt-emoji-fountain-view-model");F.classList.add(jwe[Math.floor(Math.random()*jwe.length)]);var R=document.createElement("div");R.classList.add("yt-emoji-fountain-view-model");R.classList.add("horizontal-container");R.classList.add(xmB[Math.floor(Math.random()*xmB.length)]);N?(b=document.createElement("div"),
b.classList.add("user-reaction-bubble"),b.classList.add("yt-emoji-fountain-view-model"),R.appendChild(b)):(b&&(F.style.animationDuration=b+"ms",R.style.animationDuration=b+"ms"),y&&(F.style.width=y+"px",F.style.height=y+"px"));J?(J=document.createElement("yt-icon"),J.polymerController.icon=q,y&&(J.style.width=y+"px",J.style.height=y+"px"),q=J):q=this.emojiManager.createEmoji(E,!1);q.classList.add("yt-emoji-fountain-view-model");R.appendChild(q);F.appendChild(R);this.emojiContainer.appendChild(F);
F.addEventListener("animationend",function(){F.remove()});
var c,z;if((c=this.data)==null?0:(z=c.loggingDirectives)==null?0:z.trackingParams)N=N?_.bx(183501):_.bx(183500),uC7(this.data.loggingDirectives.trackingParams,N),_.muJ(N);setTimeout(function(){F&&F.remove()},2E3)}};
_.g.getEmojiDelayMsFromDistribution=function(q){return Math.random()*(q||1)*1E3};
_.g.getEmojiDelayMsFromTargetEps=function(q){return Math.random()*2*(1/q)*1E3};
_.g.linearInterpolateBounded=function(q,N,b,y,J){J=Math.min(Math.max(J,q),b);return(N*(b-J)+y*(J-q))/(b-q)};
TL.prototype.onEmojiFountainDataEntityUpdate=TL.prototype.onEmojiFountainDataEntityUpdate;TL.prototype.desktopFountainEmojiSizePxChanged=TL.prototype.desktopFountainEmojiSizePxChanged;TL.prototype.isActiveChanged=TL.prototype.isActiveChanged;_.p([_.U(),_.P("design:type",_.J0)],TL.prototype,"emojiManager",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.BW),_.P("design:type",Object)],TL.prototype,"ytLiveChatReduxBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],TL.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],TL.prototype,"data",void 0);_.p([_.U({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(q,N){return _.Ji(q.entities,"emojiFountainDataEntity",N)}}),
_.P("design:type",Object)],TL.prototype,"emojiFountainData",void 0);_.p([_.U(),_.P("design:type",Boolean)],TL.prototype,"isActive",void 0);_.p([_.FY("isActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TL.prototype,"isActiveChanged",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],TL.prototype,"isDarkTheme",void 0);_.p([_.U(),_.P("design:type",String)],TL.prototype,"lastEmojiRequestedForTesting",void 0);
_.p([_.U({value:function(){return _.VX("desktop_fountain_emoji_size_px",20)}}),
_.P("design:type",Number)],TL.prototype,"desktopFountainEmojiSizePx",void 0);_.p([_.FY("desktopFountainEmojiSizePx"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TL.prototype,"desktopFountainEmojiSizePxChanged",null);_.p([_.dq("#emoji-container"),_.P("design:type",HTMLElement)],TL.prototype,"emojiContainer",void 0);
_.p([_.FY("emojiFountainData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TL.prototype,"onEmojiFountainDataEntityUpdate",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],TL);
_.a(TL,"yt-emoji-fountain-view-model",function(){if(Vdc===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;Xv_===void 0&&(Xv_=document.createElement("template"));var y=Xv_;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Vdc=q}q=Vdc;return q},{mode:0});var v5B;var Gnh;var s4=function(){return _.C.apply(this,arguments)||this};
_.Y(s4,_.C);s4.prototype.onChoiceChanged=function(){this.data&&_.Jm(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
s4.prototype.onChoiceChanged=s4.prototype.onChoiceChanged;_.p([_.U(),_.P("design:type",Object)],s4.prototype,"data",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],s4.prototype,"onChoiceChanged",null);_.p([_.I({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],s4);
_.a(s4,"yt-live-chat-banner-poll-choice",function(){if(Gnh===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;v5B===void 0&&(v5B=document.createElement("template"));var y=v5B;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Gnh=q}q=Gnh;return q},{mode:0});var Yav;var QwB;var nj=function(){var q=_.C.apply(this,arguments)||this;q.modern=_.x("web_button_rework_with_live");q.small=!1;return q};
_.Y(nj,_.C);nj.prototype.computeIsSmall=function(){var q;return((q=this.buttonOverrides)==null?void 0:q.size)==="S"};
nj.prototype.computeId=function(){return this.data&&this.data.targetId};
_.p([_.O(_.HW.YtLiveChatTooltipTargetingBehavior),_.P("design:type",Object)],nj.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.p([_.U({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.P("design:type",String)],nj.prototype,"id",void 0);_.p([_.U(),_.P("design:type",Object)],nj.prototype,"buttonOverrides",void 0);_.p([_.U(),_.P("design:type",Object)],nj.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],nj.prototype,"modern",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.P("design:type",Object)],nj.prototype,"small",void 0);_.p([_.I({disableElementRegistration:!0,is:"yt-live-chat-button"})],nj);
_.a(nj,"yt-live-chat-button",function(){if(QwB===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;Yav===void 0&&(Yav=document.createElement("template"));var y=Yav;b.call(N,y.content.cloneNode(!0),q.content.firstChild);QwB=q}q=QwB;return q},{mode:0});var OYe;var wvy;var aB=function(){var q=_.C.apply(this,arguments)||this;q.inCollapsedBanner=!1;q.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};q.questionButtonOverrides={style:"mono",type:"filled"};return q};
_.Y(aB,_.C);_.g=aB.prototype;_.g.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]]"}}}}}};
_.g.onContextMenuButtonClick=function(q){this.ytLiveChatItemBehavior.showContextMenu(q)};
_.g.onYtRendererstamperFinished=function(){this.menuButton=_.ee(this.hostElement).querySelector("#menu-button")};
_.g.dataChanged=function(){var q,N;if((N=_.v((q=this.data)==null?void 0:q.overflowMenuButton,_.JI))==null?0:N.command)this.data.contextMenuEndpoint=_.v(this.data.overflowMenuButton,_.JI).command};
_.g.onButtonClick=function(){var q,N=_.v((q=this.data)==null?void 0:q.askQuestionButton,_.JI);if(N){if(N.trackingParams&&(q=_.zT(N.trackingParams))){var b=_.Oe();b&&_.nr(b,q)}_.e2(this.hostElement,"innertube-command",N.command)}};
aB.prototype.onYtRendererstamperFinished=aB.prototype.onYtRendererstamperFinished;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],aB.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.BW),_.P("design:type",Object)],aB.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.O(_.Fx.YtLiveChatItemBehavior),_.P("design:type",_.Rk)],aB.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.U({observer:"dataChanged"}),_.P("design:type",Object)],aB.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],aB.prototype,"inCollapsedBanner",void 0);_.p([_.U(),_.P("design:type",Object)],aB.prototype,"buttonOverrides",void 0);_.p([_.U(),_.P("design:type",Object)],aB.prototype,"questionButtonOverrides",void 0);_.p([_.ZP("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aB.prototype,"onYtRendererstamperFinished",null);
_.p([_.I({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],aB);
_.a(aB,"yt-live-chat-call-for-questions-renderer",function(){if(wvy===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;OYe===void 0&&(OYe=document.createElement("template"));var y=OYe;b.call(N,y.content.cloneNode(!0),q.content.firstChild);wvy=q}q=wvy;return q},{mode:0});var iYZ={};iYZ.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 q=this;window.requestAnimationFrame(function(){q.restoreFocusNode_||(q.restoreFocusNode_=document.activeElement);var N=_.n_F(q.hostElement);N.length&&N[N.length-1].focus()})},
isAttachedChanged_:function(q,N){q?this.focusChild_():N&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(q){this.hidden||_.n9(q).indexOf(this.hostElement)!==-1||(q.stopPropagation(),this.focusChild_())}};var l3B;var KAB;var Sq=function(){return _.C.apply(this,arguments)||this};
_.Y(Sq,_.C);Sq.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Sq.prototype.onClick=function(q){q.target!==this.confirmButton&&q.target!==this.cancelButton&&(this.hidden=!0)};
_.p([_.dq("#confirm_button"),_.P("design:type",Object)],Sq.prototype,"confirmButton",void 0);_.p([_.dq("#cancel_button"),_.P("design:type",Object)],Sq.prototype,"cancelButton",void 0);_.p([_.U(),_.P("design:type",Dmx)],Sq.prototype,"data",void 0);_.p([_.U({value:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],Sq.prototype,"hidden",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Sq.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(iYZ.YtLiveChatDialogBehavior),_.P("design:type",Object)],Sq.prototype,"ytLiveChatDialogBehavior",void 0);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Sq);
var Dmx=_.a(Sq,"yt-live-chat-dialog-renderer",function(){if(KAB===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;l3B===void 0&&(l3B=document.createElement("template"));var y=l3B;b.call(N,y.content.cloneNode(!0),q.content.firstChild);KAB=q}q=KAB;return q},{mode:0});var hwh;var kns,UmX=function(){if(kns!==void 0)return kns;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;hwh===void 0&&(hwh=document.createElement("template"));var y=hwh;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return kns=q};var f3h;var C7_;var WM=function(){var q=_.C.apply(this,arguments)||this;q.tooltip=null;q.data=null;q.id="";q.active=!1;q.icon="";q.disabled=!1;q.showTooltip=!1;q.useToggledActiveState=!0;q.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return q};
_.Y(WM,_.C);_.g=WM.prototype;
_.g.dataChanged=function(){var q;((q=this.data)==null?0:q.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,_.yb)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var N;if((N=this.data)==null?0:N.disabled)this.disabled=!0};
_.g.computeId=function(q){return q};
_.g.computeIcon=function(q,N){if(!q)return"";if(this.useToggledActiveState)return"yt-icons:"+q.toLowerCase();var b,y;return N&&((b=this.data)==null?0:(y=b.toggledIcon)==null?0:y.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+q.toLowerCase()};
_.g.logPDGEntryPoint=function(){_.qEn(_.JN("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")};
_.g.immediatelyShowTooltip=function(){var q=_.ee(this.hostElement).querySelector("#tooltip");q.animationDelay=0;q.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};q.show()};
_.g.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.g.onClick=function(q){var N;((N=this.data)==null?0:N.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(),q.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.e2(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.g.computeShowTooltip=function(q,N){return!!(q&&q.tooltip&&N)};
_.g.maybeUpdateTooltipText=function(){var q=this,N;if((N=this.data)==null?0:N.tooltip){var b=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.yb)(q.tooltip).textContent=b},250)}};
_.g.handleLiveChatActions=function(q){var N=this;q.length&&(this.id!=="creator"&&this.id!=="product-picker"||q.forEach(function(b){(b=N.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",b))&&b.durationSec===b.fullDurationSec&&N.startBubble(N.colorFromDecimal(b.startBackgroundColor))}))};
_.g.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.g.startBubble=function(q){_.Jm(this.hostElement,{"--yt-live-chat-monetization-button-glow":q});this.hostElement.setAttribute("bubble","")};
_.g.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.g.colorFromDecimal=function(q){typeof q==="string"&&(q=Number(q));return"rgba("+[q>>16&255,q>>8&255,q&255,(q>>24&255)/255].join()+")"};
WM.prototype.onAnimationEnd=WM.prototype.onAnimationEnd;WM.prototype.disabledChanged=WM.prototype.disabledChanged;WM.prototype.dataChanged=WM.prototype.dataChanged;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],WM.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.HW.YtLiveChatTooltipTargetingBehavior),_.P("design:type",Object)],WM.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],WM.prototype,"data",void 0);_.p([_.U({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.P("design:type",Object)],WM.prototype,"id",void 0);_.p([_.U({notify:!0,reflectToAttribute:!0}),_.P("design:type",Object)],WM.prototype,"active",void 0);
_.p([_.U({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.P("design:type",Object)],WM.prototype,"icon",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],WM.prototype,"disabled",void 0);_.p([_.U({computed:"computeShowTooltip(data, disabled)"}),_.P("design:type",Object)],WM.prototype,"showTooltip",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],WM.prototype,"useToggledActiveState",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WM.prototype,"dataChanged",null);_.p([_.FY("disabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WM.prototype,"disabledChanged",null);_.p([_.ZP("animationend"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],WM.prototype,"onAnimationEnd",null);
_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],WM);
_.a(WM,"yt-live-chat-icon-toggle-button-renderer",function(){if(C7_===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;f3h===void 0&&(f3h=document.createElement("template"));var y=f3h;b.call(N,y.content.cloneNode(!0),q.content.firstChild);C7_=q}q=C7_;return q},{mode:0});var I3s;var TDl;var Lj=function(){return _.C.apply(this,arguments)||this};
_.Y(Lj,_.C);Lj.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.p([_.U(),_.P("design:type",Object)],Lj.prototype,"data",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Lj.prototype,"ytRendererstamperBehavior",void 0);_.p([_.I({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],Lj);
_.a(Lj,"yt-live-chat-message-input-prompt-header-renderer",function(){if(TDl===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;I3s===void 0&&(I3s=document.createElement("template"));var y=I3s;b.call(N,y.content.cloneNode(!0),q.content.firstChild);TDl=q}q=TDl;return q},{mode:0});var swB;var n5e;var a3h;var Sa_;var WAe;var LAZ;var pvB=function(){return _.C.apply(this,arguments)||this};
_.Y(pvB,_.C);_.p([_.U(),_.P("design:type",Object)],pvB.prototype,"data",void 0);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],pvB);
_.a(pvB,"yt-live-chat-message-subtext-renderer",function(){if(LAZ===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;WAe===void 0&&(WAe=document.createElement("template"));var y=WAe;b.call(N,y.content.cloneNode(!0),q.content.firstChild);LAZ=q}q=LAZ;return q},{mode:0});var pj=function(){var q=_.C.apply(this,arguments)||this;q.subtextOnBottom=!1;q.buttonOverrides={style:"mono",type:"tonal"};return q};
_.Y(pj,_.C);pj.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"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],pj.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],pj.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],pj.prototype,"subtextOnBottom",void 0);_.p([_.U(),_.P("design:type",Object)],pj.prototype,"buttonOverrides",void 0);
_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],pj);
_.a(pj,"yt-live-chat-message-renderer",function(){if(Sa_===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;a3h===void 0&&(a3h=document.createElement("template"));var y=a3h;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Sa_=q}q=Sa_;return q},{mode:0});var P7h;var Mde;var PM=function(){var q=_.C.apply(this,arguments)||this;q.isRemovable=!1;q.hasPrefilledText=!1;q.isInputDirty=!1;q.overCharacterLimit=!1;q.underCharacterLimit=!1;q.showErrorMessage=!1;return q};
_.Y(PM,_.C);_.g=PM.prototype;_.g.computeId=function(){return this.data.id};
_.g.computeInputData=function(){return this.data.inputData};
_.g.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.g.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.g.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.g.getLiveChatRichMessageInput=function(){return _.ee(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.g.clearInput=function(){_.ee(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.g.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.g.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.g.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.g.handleTextInputCharCountChanged=function(q){q=q.detail&&q.detail.characterCount;q!==void 0&&(this.characterCount=q,q!==0&&(this.isInputDirty=!0))};
_.g.onInputFocusOut=function(){this.isInputDirty=!0};
_.g.onClickCloseButton=function(){_.e2(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
PM.prototype.handleTextInputCharCountChanged=PM.prototype.handleTextInputCharCountChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],PM.prototype,"data",void 0);_.p([_.U({computed:"computeId(data.id)"}),_.P("design:type",String)],PM.prototype,"id",void 0);_.p([_.U({computed:"computeInputData(data.inputData)"}),_.P("design:type",Object)],PM.prototype,"inputData",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.P("design:type",Object)],PM.prototype,"isRemovable",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.P("design:type",Object)],PM.prototype,"hasPrefilledText",void 0);_.p([_.U({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.P("design:type",Number)],PM.prototype,"charactersRemaining",void 0);
_.p([_.U(),_.P("design:type",Number)],PM.prototype,"characterCount",void 0);_.p([_.U(),_.P("design:type",Object)],PM.prototype,"isInputDirty",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.P("design:type",Object)],PM.prototype,"overCharacterLimit",void 0);_.p([_.U({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.P("design:type",Object)],PM.prototype,"underCharacterLimit",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.P("design:type",Object)],PM.prototype,"showErrorMessage",void 0);_.p([_.ZP("yt-live-chat-text-input-field-renderer-character-count-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],PM.prototype,"handleTextInputCharCountChanged",null);
_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],PM);
_.a(PM,"yt-live-chat-poll-editor-input",function(){if(Mde===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;P7h===void 0&&(P7h=document.createElement("template"));var y=P7h;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Mde=q}q=Mde;return q},{mode:0});var o5h;var ASX;var ewc={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Mb=function(){var q=_.C.apply(this,arguments)||this;q.modern=_.x("web_button_rework_with_live");q.closeButtonOverrides={iconPosition:"icon-only"};q.startButtonOverrides={style:"mono",type:"filled"};q.addOptionButtonOverrides={style:"mono",type:"text"};return q};
_.Y(Mb,_.C);_.g=Mb.prototype;
_.g.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"}}}}};
_.g.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var q;_.v((q=this.data)==null?void 0:q.startButton,_.JI)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.g.computeId=function(){return this.data&&this.data.id||""};
_.g.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.g.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.g.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.g.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.g.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var q=0;q<this.pollEditorInfoWithDefaults.minPollOptions;q++)this.addPollOptionData()};
_.g.getIsValidPoll=function(){var q=this;if(!this.pollEditorInfoWithDefaults)return!1;var N=this.pollEditorInfoWithDefaults,b=N.minPollOptionChars,y=N.maxPollOptionChars,J=N.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>N.maxPollQuestionChars)return!1;N=_.ee(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(N).every(function(E,F){E=E.characterCount;!E&&J[F]&&(E=q.ytRendererBehavior.getSimpleString(J[F]).length);return E!==void 0&&E>=b&&E<=y})};
_.g.isValidPollChanged=function(){var q;_.v((q=this.data)==null?void 0:q.startButton,_.JI)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.g.addPollOptionData=function(){var q=this.pollEditorInfoWithDefaults,N=q.maxPollOptionChars,b=q.optionPlaceholderText,y=q.customOptionPlaceholderText,J=q.pollOptionData;this.currentNumPollOptions>=q.maxPollOptions||(q={liveChatPollOptionInput:{inputData:{placeholder:y[this.currentNumPollOptions]||b,maxCharacterLimit:N},maxCharacterLimit:N,minCharacterLimit:q.minPollOptionChars,hasPrefilledText:!!y[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=q.minPollOptions}},J.charCountErrorText&&
(q.liveChatPollOptionInput.charCountErrorText=J.charCountErrorText),J.charsRemainingAltLabel&&(q.liveChatPollOptionInput.charsRemainingAltLabel=J.charsRemainingAltLabel),J.removeOptionAltText&&(q.liveChatPollOptionInput.removeOptionAltText=J.removeOptionAltText),this.push("pollOptionsData",q),J=Array.from(_.ee(_.ee(this.hostElement).querySelector("#poll-options")).children),J.forEach(function(E,F){E.polymerController.set("data.id",F)}),_.ee(J[J.length-1]).querySelector("#input").focus())};
_.g.getPollOptionInputValues=function(){var q=this,N=[],b=_.ee(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),y=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(b).forEach(function(J,E){var F=null;J=J.getLiveChatRichMessageInput();var R;(J==null?0:(R=J.textSegments)==null?0:R.length)?F=_.hE(J):y[E]&&(F=q.formattedStringToLiveChatRichMessageInput(y[E]));N.push(F)});
return N};
_.g.requestCreateAndStartPoll=function(q){var N=this.getPollOptionInputValues();if(!N.some(function(y){return!y})){N={optionText:N};
var b=_.ee(_.ee(this.hostElement).querySelector("#poll-question")).firstChild;b&&b.liveChatRichMessageInput&&(N.questionText=_.hE(b.liveChatRichMessageInput));_.qc(this.hostElement,[q,N])}};
_.g.selectedChanged=function(){if(this.selected){var q=_.ee(_.ee(this.hostElement).querySelector("#start-button")).firstElementChild;if(q){var N;(N=_.ee(q).querySelector("#button")||_.BP(q).querySelector("button"))==null||N.focus()}}};
_.g.handleTextInputChanged=function(q){var N;((N=q.target)==null?void 0:N.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=q.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.g.handleStartButtonAction=function(q){q.detail.actionName==="yt-service-request"&&(q.stopPropagation(),(q=q.detail.args[1])&&this.requestCreateAndStartPoll(q))};
_.g.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.g.handleServiceRequestCompleted=function(q){this.createPollRequestInFlight=!1;(q=q.detail&&q.detail.data)&&q.success&&(_.e2(this.hostElement,"picker-cancelled"),_.By(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.g.onCloseClick=function(){_.e2(this.hostElement,"picker-cancelled");_.By(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.g.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.g.handlePollEditorInputClosed=function(q){var N=this.pollOptionsData.findIndex(function(b){return b.liveChatPollOptionInput.id===q.detail.id});
this.splice("pollOptionsData",N,1);this.isValidPoll=this.getIsValidPoll()};
_.g.onPickerCancelled=function(){this.reset()};
_.g.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var q=_.ee(_.ee(this.hostElement).querySelector("#poll-question")).firstChild;q&&q.setLiveChatRichMessageInput(null);if(q=_.ee(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){q=_.Z(Array.from(q));for(var N=q.next();!N.done;N=q.next())N.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.g.formattedStringToLiveChatRichMessageInput=function(q){return q.simpleText?{text_segments:[q.simpleText]}:{text_segments:q.runs}};
_.$H.Object.defineProperties(Mb.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(ewc,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
Mb.prototype.onPickerCancelled=Mb.prototype.onPickerCancelled;Mb.prototype.handlePollEditorInputClosed=Mb.prototype.handlePollEditorInputClosed;Mb.prototype.handleServiceRequestCompleted=Mb.prototype.handleServiceRequestCompleted;Mb.prototype.handleServiceRequestSent=Mb.prototype.handleServiceRequestSent;Mb.prototype.handleTextInputChanged=Mb.prototype.handleTextInputChanged;Mb.prototype.selectedChanged=Mb.prototype.selectedChanged;Mb.prototype.isValidPollChanged=Mb.prototype.isValidPollChanged;
Mb.prototype.shouldInitializePollChanged=Mb.prototype.shouldInitializePollChanged;Mb.prototype.dataChanged=Mb.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Mb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Mb.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Mb.prototype,"modern",void 0);
_.p([_.U(),_.P("design:type",Object)],Mb.prototype,"closeButtonOverrides",void 0);_.p([_.U(),_.P("design:type",Object)],Mb.prototype,"startButtonOverrides",void 0);_.p([_.U(),_.P("design:type",Object)],Mb.prototype,"addOptionButtonOverrides",void 0);_.p([_.U({computed:"computeId(data.id)",reflectToAttribute:!0}),_.P("design:type",String)],Mb.prototype,"id",void 0);_.p([_.U({value:function(){return[]}}),
_.P("design:type",Array)],Mb.prototype,"pollOptionsData",void 0);_.p([_.l("pollEditorInfoWithDefaults"),_.P("design:type",Object),_.P("design:paramtypes",[])],Mb.prototype,"pollQuestionData",null);_.p([_.U({value:0}),_.P("design:type",Number)],Mb.prototype,"pollQuestionCharacterCount",void 0);_.p([_.l("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.P("design:type",Object),_.P("design:paramtypes",[])],Mb.prototype,"pollQuestionCharactersRemaining",null);
_.p([_.U({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.P("design:type",Boolean)],Mb.prototype,"overQuestionCharacterLimit",void 0);_.p([_.l("data.pollEditorInfo"),_.P("design:type",Object),_.P("design:paramtypes",[])],Mb.prototype,"pollEditorInfoWithDefaults",null);_.p([_.U({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.P("design:type",Number)],Mb.prototype,"currentNumPollOptions",void 0);
_.p([_.U({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Mb.prototype,"hasMaxNumPollOptions",void 0);_.p([_.l("pollEditorInfoWithDefaults","pollOptionsData"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Mb.prototype,"shouldInitializePoll",null);_.p([_.U(),_.P("design:type",Object)],Mb.prototype,"isValidPoll",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Mb.prototype,"createPollRequestInFlight",void 0);_.p([_.U(),_.P("design:type",Object)],Mb.prototype,"selected",void 0);_.p([_.U({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.P("design:type",Boolean)],Mb.prototype,"showQuestionErrorMessage",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mb.prototype,"dataChanged",null);_.p([_.FY("shouldInitializePoll"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mb.prototype,"shouldInitializePollChanged",null);_.p([_.FY("isValidPoll"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mb.prototype,"isValidPollChanged",null);
_.p([_.FY("selected"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mb.prototype,"selectedChanged",null);_.p([_.ZP("yt-live-chat-text-input-field-renderer-character-count-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Mb.prototype,"handleTextInputChanged",null);
_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mb.prototype,"handleServiceRequestSent",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Mb.prototype,"handleServiceRequestCompleted",null);
_.p([_.ZP("yt-live-chat-poll-editor-input-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Mb.prototype,"handlePollEditorInputClosed",null);_.p([_.ZP("picker-cancelled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mb.prototype,"onPickerCancelled",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Mb);
_.a(Mb,"yt-live-chat-poll-editor-panel-renderer",function(){if(ASX===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;o5h===void 0&&(o5h=document.createElement("template"));var y=o5h;b.call(N,y.content.cloneNode(!0),q.content.firstChild);ASX=q}q=ASX;return q},{mode:0});var BDe;var HYX;var oB=function(){return _.C.apply(this,arguments)||this};
_.Y(oB,_.C);oB.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
oB.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.$H.Object.defineProperties(oB.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var q,N;return(q=this.data)==null?void 0:(N=q.title)==null?void 0:N.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var q;return _.O_((q=this.data)==null?void 0:q.onTapCommand)}}});
_.p([_.O(_.KV.YtEndpointBehavior),_.P("design:type",Object)],oB.prototype,"ytEndpointBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],oB.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],oB.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],oB.prototype,"itemId",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],oB.prototype,"hasPromotion",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],oB.prototype,"innertubeCommand",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],oB);
_.a(oB,"yt-live-chat-product-picker-panel-item-view-model",function(){if(HYX===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;BDe===void 0&&(BDe=document.createElement("template"));var y=BDe;b.call(N,y.content.cloneNode(!0),q.content.firstChild);HYX=q}q=HYX;return q},{mode:0});var q2x;var NLc;var AL=function(){var q=_.C.apply(this,arguments)||this;q.id="product-picker";q.selected=!1;q.closeButtonId="close-button";q.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return q};
_.Y(AL,_.C);_.g=AL.prototype;_.g.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.g.observeSelected=function(){this.selected&&this.hostElement.focus();var q=_.ee(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");q.length&&q[0].focus()};
_.g.onCloseBuyFlow=function(){_.e2(this.hostElement,"picker-cancelled")};
_.g.onCloseClick=function(){_.e2(this.hostElement,"picker-cancelled");var q;((q=this.data)==null?0:q.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.v(this.data.closeButton,_.FF))};
_.g.onCloseEngageWithAudienceEditorPanels=function(){_.e2(this.hostElement,"picker-cancelled")};
AL.prototype.observeSelected=AL.prototype.observeSelected;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],AL.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],AL.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],AL.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],AL.prototype,"id",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],AL.prototype,"selected",void 0);_.p([_.U(),_.P("design:type",Object)],AL.prototype,"closeButtonId",void 0);_.p([_.FY("selected"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AL.prototype,"observeSelected",null);
_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],AL);
_.a(AL,"yt-live-chat-product-picker-panel-view-model",function(){if(NLc===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;q2x===void 0&&(q2x=document.createElement("template"));var y=q2x;b.call(N,y.content.cloneNode(!0),q.content.firstChild);NLc=q}q=NLc;return q},{mode:0});var boy;var yry;var eq=function(){var q=_.C.apply(this,arguments)||this;q.iconId="";q.icon="";q.disabled=!1;q.systemIcons=_.x("kevlar_system_icons");return q};
_.Y(eq,_.C);_.g=eq.prototype;_.g.computeIconId=function(q){return q&&q.icon&&q.icon.iconType?q.icon.iconType.toLowerCase():""};
_.g.computeIcon=function(q){return q&&q.icon&&q.icon.iconType?(q=q.icon.iconType.toLowerCase(),(q.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+q):""};
_.g.computeDisabled=function(q){return!!q};
_.g.computeCommand=function(q,N){return N?void 0:q};
_.g.computeTooltip=function(q,N){return N&&q?q:""};
_.g.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.$H.Object.defineProperties(eq.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var q="",N,b,y;if((N=this.data)==null?0:(b=N.text)==null?0:(y=b.runs)==null?0:y.length)q=this.data.text.runs[0].text||"";else{var J,E;if((J=this.data)==null?0:(E=J.text)==null?0:E.simpleText)q=this.data.text.simpleText}var F,R,c;if((F=this.data)==null?0:(R=F.subtext)==null?0:(c=R.runs)==null?0:c.length)q&&(q+=". "),q+=this.data.subtext.runs[0].text||"";else{var z,m;if((z=this.data)==null?0:(m=z.subtext)==
null?0:m.simpleText)q&&(q+=". "),q+=this.data.subtext.simpleText}return q}}});
_.p([_.O(_.KV.YtEndpointBehavior),_.P("design:type",Object)],eq.prototype,"ytEndpointBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],eq.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],eq.prototype,"data",void 0);_.p([_.U({computed:"computeIconId(data)",reflectToAttribute:!0}),_.P("design:type",Object)],eq.prototype,"iconId",void 0);
_.p([_.U({computed:"computeIcon(data)",reflectToAttribute:!0}),_.P("design:type",Object)],eq.prototype,"icon",void 0);_.p([_.U({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.P("design:type",Object)],eq.prototype,"disabled",void 0);_.p([_.U({computed:"computeCommand(data.command, disabled)"}),_.P("design:type",Object)],eq.prototype,"command",void 0);_.p([_.U({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.P("design:type",String)],eq.prototype,"tooltip",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],eq.prototype,"systemIcons",void 0);_.p([_.l("data.text","data.subtext"),_.U(),_.P("design:type",String),_.P("design:paramtypes",[])],eq.prototype,"ariaLabel",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],eq);
_.a(eq,"yt-live-chat-product-button-renderer",function(){if(yry===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;boy===void 0&&(boy=document.createElement("template"));var y=boy;b.call(N,y.content.cloneNode(!0),q.content.firstChild);yry=q}q=yry;return q},{mode:0});var Jrh;var EyB;var BM=function(){var q=_.C.apply(this,arguments)||this;q.selected=!1;q.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 q};
_.Y(BM,_.C);_.g=BM.prototype;_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.g.computeId=function(q){return q.id||""};
_.g.onCloseClick=function(){_.e2(this.hostElement,"picker-cancelled")};
_.g.observeSelected=function(){this.selected&&this.hostElement.focus();var q=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");q.length&&q[0].focus()};
_.g.onCloseBuyFlow=function(){_.e2(this.hostElement,"picker-cancelled")};
_.g.onCloseEngageWithAudienceEditorPanels=function(){_.e2(this.hostElement,"picker-cancelled")};
BM.prototype.observeSelected=BM.prototype.observeSelected;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],BM.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],BM.prototype,"data",void 0);
_.p([_.U({computed:"computeId(data)",reflectToAttribute:!0}),_.P("design:type",String)],BM.prototype,"id",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],BM.prototype,"selected",void 0);_.p([_.FY("selected"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BM.prototype,"observeSelected",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],BM);
_.a(BM,"yt-live-chat-product-picker-renderer",function(){if(EyB===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;Jrh===void 0&&(Jrh=document.createElement("template"));var y=Jrh;b.call(N,y.content.cloneNode(!0),q.content.firstChild);EyB=q}q=EyB;return q},{mode:0});var gyl;var Zoy;var F0_;var RrB;var HM=function(){return _.C.apply(this,arguments)||this};
_.Y(HM,_.C);HM.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()};
HM.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
HM.prototype.created=function(){this.ids={background:_.Lh(),maskOne:_.Lh(),maskTwo:_.Lh(),gradient:_.Lh(),largeBackground:_.Lh(),largeGradientOne:_.Lh(),largeGradientTwo:_.Lh(),largeGradientPath:_.Lh()}};
HM.prototype.maybeLoadAnimationBackground=HM.prototype.maybeLoadAnimationBackground;_.p([_.U({value:!1}),_.P("design:type",Boolean)],HM.prototype,"useLargeBackground",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],HM.prototype,"useAnimationBackground",void 0);_.p([_.U({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.P("design:type",Boolean)],HM.prototype,"useRegularBackground",void 0);
_.p([_.U(),_.P("design:type",Object)],HM.prototype,"ids",void 0);_.p([_.U(),_.P("design:type",Object)],HM.prototype,"lottieAnimation",void 0);_.p([_.dq("#animation-background"),_.P("design:type",HTMLDivElement)],HM.prototype,"animationBackground",void 0);_.p([_.FY("useAnimationBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HM.prototype,"maybeLoadAnimationBackground",null);
_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],HM);
_.a(HM,"yt-live-interactivity-component-background",function(){if(RrB===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;F0_===void 0&&(F0_=document.createElement("template"));var y=F0_;b.call(N,y.content.cloneNode(!0),q.content.firstChild);RrB=q}q=RrB;return q},{mode:0});var qx=function(){var q=_.C.apply(this,arguments)||this;q.characterCount=0;q.showInputErrorMessage=!1;q.startQnaRequestInFlight=!1;q.modern=_.x("web_button_rework_with_live");q.buttonOverrides={style:"mono",type:"filled"};q.closeButtonOverrides={iconPosition:"icon-only"};q.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return q};
_.Y(qx,_.C);_.g=qx.prototype;
_.g.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]]"}}}}}};
_.g.onCharacterCountChanged=function(q){var N,b,y,J,E=(b=_.v(this==null?void 0:(N=this.data)==null?void 0:N.creatorCallForQuestions,nfX))==null?void 0:(y=b.inputField)==null?void 0:(J=y.liveChatTextInputFieldRenderer)==null?void 0:J.maxCharacterLimit,F,R;E!=null&&(q==null?void 0:(F=q.detail)==null?void 0:F.characterCount)!=null&&_.v(this==null?void 0:(R=this.data)==null?void 0:R.startButton,_.JI)&&(N=q.detail.characterCount>E,this.set("data.startButton.buttonRenderer.isDisabled",q.detail.characterCount===
0||N),this.showInputErrorMessage=N)};
_.g.onCloseClick=function(){_.e2(this.hostElement,"picker-cancelled");_.By(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.g.onPickerCancelled=function(){var q=_.ee(this.hostElement).querySelector("#qna-creator-text-input-field");q&&q.setLiveChatRichMessageInput(null)};
_.g.handleOpenQnaStartPanel=function(){var q=_.ee(this.hostElement).querySelector("#qna-creator-text-input-field");q&&q.focus()};
_.g.handleStartButtonAction=function(q){var N=this;if(q.detail.actionName==="yt-service-request"&&(q.stopPropagation(),q=q.detail.args[1])){var b=_.ee(this.hostElement).querySelector("#qna-creator-text-input-field"),y;(b==null?0:(y=b.liveChatRichMessageInput)==null?0:y.textSegments)&&b.liveChatRichMessageInput.textSegments.length!==0&&(y={rich_message:_.hE(b.liveChatRichMessageInput)},_.qc(this.hostElement,[q,y]).then(function(){_.e2(N.hostElement,"picker-cancelled")}))}};
_.g.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.g.handleServiceRequestCompleted=function(q){var N;q=q==null?void 0:(N=q.detail)==null?void 0:N.data;(q==null?0:q.actions)&&q.actions.length>0?this.startQnaRequestInFlight=!1:_.By(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.g.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
qx.prototype.handleServiceRequestError=qx.prototype.handleServiceRequestError;qx.prototype.handleServiceRequestCompleted=qx.prototype.handleServiceRequestCompleted;qx.prototype.handleServiceRequestSent=qx.prototype.handleServiceRequestSent;qx.prototype.onPickerCancelled=qx.prototype.onPickerCancelled;qx.prototype.onCharacterCountChanged=qx.prototype.onCharacterCountChanged;_.p([_.U(),_.P("design:type",Object)],qx.prototype,"characterCount",void 0);
_.p([_.U(),_.P("design:type",Object)],qx.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],qx.prototype,"showInputErrorMessage",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],qx.prototype,"startQnaRequestInFlight",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],qx.prototype,"modern",void 0);_.p([_.U(),_.P("design:type",Object)],qx.prototype,"buttonOverrides",void 0);
_.p([_.U(),_.P("design:type",Object)],qx.prototype,"closeButtonOverrides",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],qx.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.BW),_.P("design:type",Object)],qx.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.O(_.Fx.YtLiveChatItemBehavior),_.P("design:type",_.Rk)],qx.prototype,"ytLiveChatItemBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],qx.prototype,"ytActionHandlerBehavior",void 0);_.p([_.ZP("yt-live-chat-text-input-field-renderer-character-count-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],qx.prototype,"onCharacterCountChanged",null);_.p([_.ZP("picker-cancelled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qx.prototype,"onPickerCancelled",null);
_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qx.prototype,"handleServiceRequestSent",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],qx.prototype,"handleServiceRequestCompleted",null);
_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],qx.prototype,"handleServiceRequestError",null);_.p([_.I({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],qx);
_.a(qx,"yt-live-chat-qna-start-panel-renderer",function(){if(Zoy===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;gyl===void 0&&(gyl=document.createElement("template"));var y=gyl;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Zoy=q}q=Zoy;return q},{mode:0});var d6s;var cry;var Nx=function(){return _.C.apply(this,arguments)||this};
_.Y(Nx,_.C);Nx.prototype.dismiss=function(){_.e2(this.hostElement,"yt-live-chat-error-message-dismiss")};
Nx.prototype.edit=function(){_.e2(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.p([_.U(),_.P("design:type",Object)],Nx.prototype,"data",void 0);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Nx);
_.a(Nx,"yt-live-chat-text-actions-error-message-renderer",function(){if(cry===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;d6s===void 0&&(d6s=document.createElement("template"));var y=d6s;b.call(N,y.content.cloneNode(!0),q.content.firstChild);cry=q}q=cry;return q},{mode:0});var uf_;var zry;var $6y;var t07;var bM=function(){var q=_.C.apply(this,arguments)||this;q.isDarkTheme=document.documentElement.hasAttribute("dark");q.newnessDotEligible=!1;return q};
_.Y(bM,_.C);bM.prototype.sendReaction=function(){var q,N,b=((q=this.data)==null?void 0:q.emojiId)||((N=this.data)==null?void 0:N.emoteId),y;b&&((y=this.data)==null?0:y.shouldTriggerAnimation)&&_.By(this.hostElement,"yt-create-user-reaction-animation",[b]);var J;(q=_.O_((J=this.data)==null?void 0:J.onTap))&&_.yI(q,this.hostElement);this.showNewnessDot&&_.By(this.hostElement,"yt-hide-newness-dot")};
bM.prototype.onClick=function(q){(!q||q.clientX||q.clientY)&&this.sendReaction()};
bM.prototype.onKeyDown=function(q){q.key!=="Enter"&&q.key!==" "||q.repeat||this.sendReaction()};
_.$H.Object.defineProperties(bM.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var q,N;return!!(((q=this.data)==null?0:q.emojiId)||((N=this.data)==null?0:N.emoteId))}}});
_.p([_.U(),_.P("design:type",Object)],bM.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],bM.prototype,"isDarkTheme",void 0);_.p([_.U(),_.P("design:type",Object)],bM.prototype,"newnessDotEligible",void 0);_.p([_.l("data.maybeShowNewnessDot"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],bM.prototype,"showNewnessDot",null);_.p([_.l("data.emojiId","data.emoteId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],bM.prototype,"useYtImage",null);
_.p([_.Ok({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],bM);
_.a(bM,"yt-reaction-control-panel-button-view-model",function(){if(t07===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;$6y===void 0&&($6y=document.createElement("template"));var y=$6y;b.call(N,y.content.cloneNode(!0),q.content.firstChild);t07=q}q=t07;return q},{mode:0});var m6h;var rrZ;var yl=function(){var q=_.C.apply(this,arguments)||this;q.reactionControlPanelExpanded=!1;q.isDarkTheme=document.documentElement.hasAttribute("dark");q.newnessDotEligible=!1;return q};
_.Y(yl,_.C);_.g=yl.prototype;_.g.expandedButtonsChanged=function(){var q,N;_.Jm(this.hostElement,{"--expanded-buttons-height":((N=(q=this.expandedButtonsData)==null?void 0:q.length)!=null?N:0)*36+"px"})};
_.g.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}}};
_.g.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.g.onMouseLeave=function(){var q=this;this.collapseTimer=setTimeout(function(){q.reactionControlPanelExpanded=!1},500)};
_.g.onFocusIn=function(){this.onMouseEnter()};
_.g.onFocusOut=function(){this.onMouseLeave()};
_.g.onCollapsedButtonFocusIn=function(){var q=this;setTimeout(function(){var N;(N=q.expandedButtons.querySelector("button"))==null||N.focus()},100)};
_.g.onCollapsedButtonFocusOut=function(q){q.stopPropagation()};
_.$H.Object.defineProperties(yl.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var q,N;return _.nM.unsafeClone((q=this.liveReactionsData)==null?void 0:q.emojiButtonData)||((N=this.data)==null?void 0:N.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var q;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((q=this.data)==null||!q.maybeShowNewnessDot)}}});
yl.prototype.expandedButtonsChanged=yl.prototype.expandedButtonsChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],yl.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],yl.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.BW),_.P("design:type",Object)],yl.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],yl.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],yl.prototype,"reactionControlPanelExpanded",void 0);_.p([_.U({selectorArgs:["data.liveReactionsDataEntityKey"],selector:d7X}),_.P("design:type",Object)],yl.prototype,"liveReactionsData",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],yl.prototype,"isDarkTheme",void 0);_.p([_.U(),_.P("design:type",Object)],yl.prototype,"newnessDotEligible",void 0);
_.p([_.l("liveReactionsData","data.expandedButtons"),_.P("design:type",Object),_.P("design:paramtypes",[])],yl.prototype,"expandedButtonsData",null);_.p([_.l("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.U({reflectToAttribute:!0}),_.P("design:type",Object),_.P("design:paramtypes",[])],yl.prototype,"showNewnessDot",null);_.p([_.dq("#expanded-buttons"),_.P("design:type",HTMLElement)],yl.prototype,"expandedButtons",void 0);
_.p([_.FY("expandedButtonsData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yl.prototype,"expandedButtonsChanged",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],yl);
_.a(yl,"yt-reaction-control-panel-view-model",function(){if(rrZ===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;m6h===void 0&&(m6h=document.createElement("template"));var y=m6h;b.call(N,y.content.cloneNode(!0),q.content.firstChild);rrZ=q}q=rrZ;return q},{mode:0});var J_=new _.ed("yt-live-chat"),X_7=Date.parse("2024-7-24"),Et=function(){var q=_.C.apply(this,arguments)||this;q.emojiManager=_.Zt;q.newnessDotEligible=!1;q.newnessDotImpressionCounted=!1;q.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return q};
_.Y(Et,_.C);_.g=Et.prototype;_.g.emojiCustomizationEnabledChanged=function(){var q;((q=this.data)==null?0:q.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((q=J_.getCreationTime("emoji-customization-count"))&&q<X_7&&J_.set("emoji-customization-count","0"),q=Number(J_.get("emoji-customization-count"))||0,q<3&&(this.newnessDotEligible=!0,J_.set("emoji-customization-count",(q+1).toString())),this.newnessDotImpressionCounted=!0)};
_.g.hideNewnessDot=function(){this.newnessDotEligible=!1;J_.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.g.handleReactionsMute=function(q){var N=_.Oe(),b=_.bx(206221),y={checkboxData:{state:q?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};N&&_.nr(N,b,y);this.reactionsMuted=q};
_.g.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.g.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}}};
_.$H.Object.defineProperties(Et.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var q;return(!((q=this.liveReactionsData)==null||!q.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Et.prototype.liveReactionsSettingChanged=Et.prototype.liveReactionsSettingChanged;Et.prototype.emojiCustomizationEnabledChanged=Et.prototype.emojiCustomizationEnabledChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.BW),_.P("design:type",Object)],Et.prototype,"ytLiveChatReduxBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Et.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Et.prototype,"data",void 0);_.p([_.U(),_.P("design:type",_.J0)],Et.prototype,"emojiManager",void 0);_.p([_.U(),_.P("design:type",Object)],Et.prototype,"newnessDotEligible",void 0);_.p([_.U(),_.P("design:type",Object)],Et.prototype,"newnessDotImpressionCounted",void 0);
_.p([_.U({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:cVs}),_.P("design:type",Boolean)],Et.prototype,"liveReactionsSetting",void 0);_.p([_.U({selectorArgs:["data.liveReactionsDataEntityKey"],selector:d7X}),_.P("design:type",Object)],Et.prototype,"liveReactionsData",void 0);_.p([_.U({value:function(){var q=_.x("enable_lwe_web_mute"),N=J_.get("allow-reactions");return N===void 0?!1:!N&&q}}),
_.P("design:type",Boolean)],Et.prototype,"reactionsMuted",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Et.prototype,"liveReactionsEnabled",null);_.p([_.FY("data.emojiCustomizationEnabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Et.prototype,"emojiCustomizationEnabledChanged",null);
_.p([_.FY("liveReactionsEnabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Et.prototype,"liveReactionsSettingChanged",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Et);
_.a(Et,"yt-reaction-control-panel-overlay-view-model",function(){if(zry===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;uf_===void 0&&(uf_=document.createElement("template"));var y=uf_;b.call(N,y.content.cloneNode(!0),q.content.firstChild);zry=q}q=zry;return q},{mode:0});var V0v={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(q){var N=this.$.pickers.selected;if(N){_.ee(this.hostElement).removeAttribute(N+"-open");var b="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(b="#picker-buttons",N==="emoji"&&_.ee(this.hostElement).querySelector("#emoji-picker-button")&&(b="#emoji-picker-button"));if(b=_.ee(this.hostElement).querySelector(b).querySelector("#"+N))b.active=!1}b=q;N==q&&(b=null);N!=
q&&_.ee(this.hostElement).setAttribute(q+"-open","");this.$.pickers.selected=b;_.By(this.hostElement,"yt-live-chat-picker-changed",[b])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var g8=function(){var q=_.C.apply(this,arguments)||this;q.numSentMessages=0;q.timeoutDurationMs=0;q.timeoutMs=0;q.lastTimeoutTimeMs=0;q.pendingMessageId="";q.hasFiredInitialFocusActions=!1;q.isBeforeFocusEnabled=!0;q.id="";q.characterCount=0;q.maxCharacterLimit=0;q.remainingCharacterCount=0;q.inputExpanded=!1;q.buttonOverrides={iconPosition:"icon-only"};q.inReplyPanel=!1;q.countdownRatio=0;q.isTooltipVisible=!1;q.tooltipTimeout=1E4;q.systemIcons=_.x("kevlar_system_icons");q.tallerEmojiPicker=_.x("live_chat_taller_emoji_picker");
q.sendReplyMessageInFlight=!1;q.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"};q.onResize=function(){q.maybeToggleCharacterCount()};
return q};
_.Y(g8,_.C);_.g=g8.prototype;
_.g.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"}}}};
_.g.attached=function(){window.addEventListener("resize",this.onResize)};
_.g.detached=function(){window.removeEventListener("resize",this.onResize)};
_.g.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.g.sendMessage=function(){var q=this,N,b,y,J;return _.d(function(E){if(q.sendDisabled)return E.return();q.isTooltipVisible&&_.By(q.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(q.data.sendButton&&q.data.sendButton.buttonRenderer){q.input.completeEmojis();N=q.data.sendButton.buttonRenderer.serviceEndpoint;if(!N)return E.return();y=((b=_.v(N,_.xzx))==null?void 0:b.clientIdPrefix)||"";J={client_message_id:y+String(q.numSentMessages++),rich_message:_.hE(q.input.liveChatRichMessageInput)};
q.pendingMessageId=J.client_message_id;q.inReplyPanel&&(q.sendReplyMessageInFlight=!0);_.qc(q.hostElement,[N,J]);q.input.setLiveChatRichMessageInput(null)}_.hj(E)})};
_.g.handleSendButtonAction=function(q){q.detail.actionName==="yt-service-request"&&(q.stopPropagation(),this.sendMessage())};
_.g.onSendCompleted=function(q,N){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(q=this.get("timeoutDurationUsec",N.data))&&this.handleTimeout(Number(q)/1E3);this.errorMessage=this.get("errorMessage",N.data);this.pendingMessageId=""};
_.g.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.By(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.g.handlePickerButtonToggle=function(q){q=q.detail.targetId;this.ytPickerBehavior.togglePicker_(q);if(q==="emoji")this.input.focus();else if(q==="qna-start-panel"){var N,b;(N=_.ee(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(b=N.querySelector("#qna-creator-text-input-field"))==null||b.focus()}};
_.g.onComponentReplaced=function(q){var N,b;q.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((N=q.replacement.liveChatMessageInputRenderer)==null?0:(b=N.headerRenderer)==null?0:b.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.g.onEmojiSelect=function(q){this.input.focus();this.input.insertEmoji(q.detail)};
_.g.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.g.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.By(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.By(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.g.onOpenPopupAction=function(q,N){var b=this;N===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.By(b.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.g.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.g.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.g.focusChanged=function(){this.maybeToggleCharacterCount()};
_.g.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var q=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",q>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.g.computeId=function(){return this.data&&this.data.targetId||""};
_.g.computeSendDisabled=function(q,N,b,y){q=!!(!q||N&&q>N||y);(N=_.ee(this.hostElement).querySelector("#send-button"))&&N.children.length&&(N.children[0].disabled=q);return q};
_.g.handleTimeout=function(q){this.timeoutDurationMs=this.timeoutMs=q;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.g.updateTimeout=function(q){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(q-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=q,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.g.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.g.onErrorMessageEdit=function(q){this.input.setLiveChatRichMessageInput(q.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.g.errorMessageChanged=function(){var q=this;_.k9(function(){_.By(q.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.g.computeAuthorNameColor=function(q){var N;if(_.x("live_chat_author_name_color_usernames")&&(q==null?0:(N=q.authorName)==null?0:N.simpleText))return _.mhJ(_.rUn(q.authorName.simpleText));if(_.x("live_chat_seed_color_usernames")&&(q==null?0:q.authorSeedColorArgb))return _.mhJ(_.BH(q.authorSeedColorArgb));if(_.x("live_chat_colored_usernames"))return"#cc0000";var b;return _.x("live_chat_simple_color_usernames")&&(q==null?0:(b=q.authorName)==null?0:b.simpleText)&&(q==null?0:q.authorUsernameColorLight)&&
(q==null?0:q.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.BH(q.authorUsernameColorDark):_.BH(q.authorUsernameColorLight):""};
_.g.onIsTooltipVisibleChanged=function(){var q=_.ee(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){q.hidden=!1;q.setAttribute("role","alert")},0):(q.hidden=!0,q.removeAttribute("role"))};
_.g.onFocusedChanged=function(q){this.inputFocused=q.detail.value};
_.$H.Object.defineProperties(g8.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 q;return!((q=this.data)==null||!q.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.data)==null?void 0:(N=q.pickers)==null?void 0:N.find(function(b){return b.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var q=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return q?this.ytRendererBehavior.getSimpleString(q):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
g8.prototype.onIsTooltipVisibleChanged=g8.prototype.onIsTooltipVisibleChanged;g8.prototype.errorMessageChanged=g8.prototype.errorMessageChanged;g8.prototype.onErrorMessageEdit=g8.prototype.onErrorMessageEdit;g8.prototype.onErrorMessageDismiss=g8.prototype.onErrorMessageDismiss;g8.prototype.focusChanged=g8.prototype.focusChanged;g8.prototype.characterCountChanged=g8.prototype.characterCountChanged;g8.prototype.onEmojiSelect=g8.prototype.onEmojiSelect;g8.prototype.handlePickerButtonToggle=g8.prototype.handlePickerButtonToggle;
g8.prototype.onSendError=g8.prototype.onSendError;g8.prototype.onSendCompleted=g8.prototype.onSendCompleted;g8.prototype.sendMessage=g8.prototype.sendMessage;g8.prototype.dataChanged=g8.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],g8.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.O(V0v.YtPickerBehavior),_.P("design:type",Object)],g8.prototype,"ytPickerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],g8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.HW.YtLiveChatTooltipTargetingBehavior),_.P("design:type",Object)],g8.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],g8.prototype,"hasFiredInitialFocusActions",void 0);
_.p([_.U(),_.P("design:type",Object)],g8.prototype,"isBeforeFocusEnabled",void 0);_.p([_.U(),_.P("design:type",Object)],g8.prototype,"data",void 0);_.p([_.U({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.P("design:type",Object)],g8.prototype,"id",void 0);_.p([_.U(),_.P("design:type",Object)],g8.prototype,"characterCount",void 0);_.p([_.U(),_.P("design:type",Object)],g8.prototype,"maxCharacterLimit",void 0);
_.p([_.U(),_.P("design:type",Object)],g8.prototype,"remainingCharacterCount",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],g8.prototype,"inputExpanded",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],g8.prototype,"inputFocused",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],g8.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.p([_.U(),_.P("design:type",_.uP)],g8.prototype,"participantsManager",void 0);
_.p([_.U(),_.P("design:type",Object)],g8.prototype,"buttonOverrides",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],g8.prototype,"inReplyPanel",void 0);_.p([_.l("characterCount, maxCharacterLimit, countdownActive"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],g8.prototype,"sendDisabled",null);_.p([_.U(),_.P("design:type",Object)],g8.prototype,"countdownRatio",void 0);
_.p([_.l("countdownRatio"),_.P("design:type",Number),_.P("design:paramtypes",[])],g8.prototype,"countdownStrokeDashOffset",null);_.p([_.l("countdownRatio"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],g8.prototype,"countdownActive",null);_.p([_.l("data.interactionMessage"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],g8.prototype,"hasInteractionMessage",null);
_.p([_.l("data.emojiPickerButton"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],g8.prototype,"hasEmojiPickerButton",null);_.p([_.l("data, characterCount"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],g8.prototype,"showAvatar",null);_.p([_.l("data.pickers"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],g8.prototype,"hasProductPickerPanelViewModel",null);
_.p([_.U(),_.P("design:type",Object)],g8.prototype,"errorMessage",void 0);_.p([_.U(),_.P("design:type",Object)],g8.prototype,"genericErrorMessage",void 0);_.p([_.U(),_.P("design:type",Object)],g8.prototype,"isTooltipVisible",void 0);_.p([_.U(),_.P("design:type",Object)],g8.prototype,"tooltipTimeout",void 0);_.p([_.l("data.onInitialFocusCommand"),_.P("design:type",String),_.P("design:paramtypes",[])],g8.prototype,"tooltipMessage",null);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],g8.prototype,"systemIcons",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],g8.prototype,"tallerEmojiPicker",void 0);_.p([_.l("data"),_.P("design:type",String),_.P("design:paramtypes",[])],g8.prototype,"authorNameColor",null);_.p([_.U(),_.P("design:type",Object)],g8.prototype,"sendReplyMessageInFlight",void 0);_.p([_.dq("#input"),_.P("design:type",_.N41)],g8.prototype,"input",void 0);
_.p([_.dq("#count"),_.P("design:type",HTMLElement)],g8.prototype,"count",void 0);_.p([_.dq("#input-container"),_.P("design:type",HTMLElement)],g8.prototype,"inputContainer",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],g8.prototype,"dataChanged",null);_.p([_.ZP("yt-live-chat-send-message"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],g8.prototype,"sendMessage",null);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[Event,_.n6]),_.P("design:returntype")],g8.prototype,"onSendCompleted",null);_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],g8.prototype,"onSendError",null);
_.p([_.ZP("yt-live-chat-icon-toggle-button-renderer-toggle"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],g8.prototype,"handlePickerButtonToggle",null);_.p([_.ZP("yt-emoji-select"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],g8.prototype,"onEmojiSelect",null);
_.p([_.FY("characterCount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],g8.prototype,"characterCountChanged",null);_.p([_.FY("inputFocused"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],g8.prototype,"focusChanged",null);_.p([_.ZP("yt-live-chat-error-message-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],g8.prototype,"onErrorMessageDismiss",null);
_.p([_.ZP("yt-live-chat-error-message-edit"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],g8.prototype,"onErrorMessageEdit",null);_.p([_.FY("errorMessage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],g8.prototype,"errorMessageChanged",null);_.p([_.FY("isTooltipVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],g8.prototype,"onIsTooltipVisibleChanged",null);
_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],g8);
_.a(g8,"yt-live-chat-message-input-renderer",function(){if(n5e===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;swB===void 0&&(swB=document.createElement("template"));var y=swB;b.call(N,y.content.cloneNode(!0),q.content.firstChild);n5e=q}q=n5e;return q},{mode:0});var jpB;var x6h;var Zj=function(){var q=_.C.apply(this,arguments)||this;q.systemIcons=_.x("kevlar_system_icons");q.firedOnClickCommand=!1;q.inReplyPanel=!1;return q};
_.Y(Zj,_.C);
Zj.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"}}}};
Zj.prototype.onButtonToggle=function(q){q.target.disabled||this.ytPickerBehavior.togglePicker_(q.detail.targetId)};
Zj.prototype.onClick=function(){var q=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.By(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return q.firedOnClickCommand=!1},5E3))};
_.$H.Object.defineProperties(Zj.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.data)==null?void 0:(N=q.panels)==null?void 0:N.find(function(b){return b.liveChatProductPickerPanelViewModel}))!==void 0}}});
Zj.prototype.onButtonToggle=Zj.prototype.onButtonToggle;_.p([_.O(V0v.YtPickerBehavior),_.P("design:type",Object)],Zj.prototype,"ytPickerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Zj.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Zj.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Zj.prototype,"systemIcons",void 0);_.p([_.U({reflectToAttribute:!1}),_.P("design:type",Object)],Zj.prototype,"firedOnClickCommand",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Zj.prototype,"inReplyPanel",void 0);_.p([_.l("data.pickers"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zj.prototype,"hasProductPickerPanelViewModel",null);
_.p([_.ZP("yt-live-chat-icon-toggle-button-renderer-toggle"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Zj.prototype,"onButtonToggle",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Zj);
_.a(Zj,"yt-live-chat-restricted-participation-renderer",function(){if(x6h===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;jpB===void 0&&(jpB=document.createElement("template"));var y=jpB;b.call(N,y.content.cloneNode(!0),q.content.firstChild);x6h=q}q=x6h;return q},{mode:0});var FM=function(){var q=_.C.apply(this,arguments)||this;q.genericErrorMessage=_.nD("Error, try again.");q.inReplyPanel=!1;q.hideBorder=!1;return q};
_.Y(FM,_.C);FM.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}}}}}};
_.$H.Object.defineProperties(FM,{template:{configurable:!0,enumerable:!0,get:function(){return UmX()}}});
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],FM.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],FM.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],FM.prototype,"genericErrorMessage",void 0);_.p([_.U(),_.P("design:type",Object)],FM.prototype,"inReplyPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],FM.prototype,"hideBorder",void 0);
_.p([_.Ok({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],FM);_.a(FM,"yt-live-chat-engagement-panel-input-renderer",function(){return UmX()},{mode:0});var vy_,G6B;vy_=_.bx(115994);G6B=_.bx(115993);_.RT=function(q,N,b){var y=this;var J=b.dragDownAction;this.layer=0;this.JSC$23017_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return y.dragDownAction()}}}};
this.JSC$23017_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return y.dragDownAction()}}}};
this.fullscreen=!1;var E=_.FR();_.k3(E,vy_,this.layer);_.k3(E,G6B,this.layer);this.dragDownAction=function(){J();_.Ul(E,{visualElement:y.fullscreen?vy_:G6B})};
this.gesture=new _.TA(q,N,this.getConfig(!1),"pandown");this.attach()};
_.RT.prototype.attach=function(){this.gesture.attach()};
_.RT.prototype.detach=function(){this.gesture.detach()};
_.RT.prototype.update=function(q){this.fullscreen=q;var N=this.gesture;q=this.getConfig(q);N.config=q};
_.RT.prototype.getConfig=function(q){return q?this.JSC$23017_watchFullScreenConfig:this.JSC$23017_watchConfig};var Y27={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(q){if(q&&q.length==1&&Array.isArray(q[0].loggingUrls)){q=_.nM.unsafeClone(q[0]);var N=this.macros||{},b=this.getAdModuleClient_();if(!b)return _.bG();q.loggingUrls.forEach(function(y){if(y.baseUrl){var J=y.baseUrl;var E=N;E=E===void 0?{}:E;J=b.getOptions().includes("replaceUrlMacros")?_.jGR(b,"replaceUrlMacros",{url:J,additionalMapping:E}):J;y.baseUrl=J}},this);
q=[q]}return _.qc(this.hostElement,q)},
getAdModuleClient_:function(){var q=_.Pk(this);return q?(q=q.getPlayer())?new _.ei(q):null:null}}]};var Qpv;var Oox;var d8=function(){return _.C.apply(this,arguments)||this};
_.Y(d8,_.C);d8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],d8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],d8.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],d8);
_.a(d8,"ytd-compact-tvfilm-entry-point-renderer",function(){if(Oox!==void 0)return Oox;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Oox=q},{mode:1});var w__;var io_;var lyB;var co=function(){return _.C.apply(this,arguments)||this};
_.Y(co,_.C);co.prototype.ready=function(){this.initializeDefs()};
co.prototype.initializeDefs=function(){var q=this.meta.byKey("yt-icons"),N=_.ee(q).querySelector("#star"),b=_.ee(q).querySelector("#star_half");q=_.ee(q).querySelector("#star_border");N&&this.defs.appendChild(N.cloneNode(!0));b&&this.defs.appendChild(b.cloneNode(!0));q&&this.defs.appendChild(q.cloneNode(!0))};
co.prototype.percentChanged=function(){for(var q=this.rating;q.firstChild;)q.removeChild(q.firstChild);var N=Math.round(this.percent/10);q=Math.floor(N/2);N%=2;var b=5-q-N;this.appendStars("star",q,0);this.appendStars("star_half",N,q);this.appendStars("star_border",b,q+N)};
co.prototype.appendStars=function(q,N,b){for(var y=0;y<N;y++){var J=(18+this.spacing)*(y+b),E=document.createElementNS("http://www.w3.org/2000/svg","use");_.hnX(E,"#"+q);E.setAttribute("x",""+J);E.setAttribute("y","0");this.rating.appendChild(E)}};
co.prototype.percentChanged=co.prototype.percentChanged;_.p([_.dq("#defs"),_.P("design:type",HTMLElement)],co.prototype,"defs",void 0);_.p([_.dq("#rating"),_.P("design:type",HTMLElement)],co.prototype,"rating",void 0);_.p([_.U(),_.P("design:type",Number)],co.prototype,"percent",void 0);_.p([_.U({value:6}),_.P("design:type",Number)],co.prototype,"spacing",void 0);_.p([_.U({value:_.Dh.create("iron-meta",{type:"iconset"})}),_.P("design:type",_.TW)],co.prototype,"meta",void 0);
_.p([_.FY("percent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],co.prototype,"percentChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-ratings"})],co);
_.a(co,"ytd-ratings",function(){if(lyB!==void 0)return lyB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return lyB=q},{mode:1});var K0s=function(){return _.C.apply(this,arguments)||this};
_.Y(K0s,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],K0s.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],K0s.prototype,"data",void 0);_.p([_.I({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],K0s);
_.a(K0s,"ytd-offer-review-renderer",function(){if(io_!==void 0)return io_;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return io_=q},{mode:1});var uM=function(){var q=_.C.apply(this,arguments)||this;q.badges=[{textBadge:{label:_.nD("CC")}}];return q};
_.Y(uM,_.C);_.g=uM.prototype;_.g.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.g.dataChanged=function(){var q=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(q&&q.commandMetadata&&_.v(q.commandMetadata,_.nO)&&_.v(q.commandMetadata,_.nO).fireAutomatically)_.tz().resolve(_.rO).resolveCommand(q,{form:{element:this.hostElement}});else{var N;q&&((N=_.v(q,_.nO))==null?0:N.fireAutomatically)&&_.tz().resolve(_.rO).resolveCommand(q,{form:{element:this.hostElement}})}};
_.g.isEmptyContent=function(q){return this.isStorefrontEntryPointEmpty(q)&&this.shouldHideOfferModule(q)};
_.g.isStorefrontEntryPointEmpty=function(q){return!q||!q.storefrontEntryPoint};
_.g.shouldHideOfferModule=function(q){return!!q.hideVideoDetails};
_.g.isOfferModuleNavigationInactive=function(q){return!q.navigationEndpoint&&!q.serviceEndpoint};
_.g.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.tz().resolve(_.rO).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
uM.prototype.dataChanged=uM.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],uM.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],uM.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],uM.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.P("design:type",Boolean)],uM.prototype,"hidden",void 0);
_.p([_.U(),_.P("design:type",Object)],uM.prototype,"badges",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uM.prototype,"dataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],uM);
_.a(uM,"ytd-movie-offer-module-renderer",function(){if(w__!==void 0)return w__;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return w__=q},{mode:1});var D6X;var hrB=function(){return _.C.apply(this,arguments)||this};
_.Y(hrB,_.C);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],hrB.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],hrB.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],hrB);
_.a(hrB,"ytd-media-masthead-renderer",function(){if(D6X!==void 0)return D6X;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return D6X=q},{mode:1});var k6h;_.P$(_.JZp,"course-metadata-view-model",{props:{data:_.W$,isOverlay:_.W$}});var zx=function(){var q=_.C.apply(this,arguments)||this;q.isMetadataVisible=!1;q.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return q};
_.Y(zx,_.C);_.g=zx.prototype;
_.g.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"}}}}};
_.g.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.g.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.g.expanderChanged=function(){var q;if((q=this.data)==null?0:q.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.g.isExpandButtonToggled=function(){var q,N;return(N=_.v((q=this.data)==null?void 0:q.expandMetadataButton,_.de))==null?void 0:N.isToggled};
_.g.onVisibilityButtonClick=function(){var q;if((q=this.data)==null?0:q.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.g.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
zx.prototype.expanderChanged=zx.prototype.expanderChanged;zx.prototype.dataChanged=zx.prototype.dataChanged;zx.prototype.descriptionChanged=zx.prototype.descriptionChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],zx.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],zx.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O([_.Dc.YtActionHandlerBehavior]),_.P("design:type",Object)],zx.prototype,"actionHandlerBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],zx.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],zx.prototype,"isMetadataVisible",void 0);_.p([_.dq("#expander"),_.P("design:type",Object)],zx.prototype,"expander",void 0);_.p([_.FY("data.description"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zx.prototype,"descriptionChanged",null);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zx.prototype,"dataChanged",null);_.p([_.FY("isMetadataVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zx.prototype,"expanderChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],zx);
_.a(zx,"ytd-tvfilm-offer-module-renderer",function(){if(k6h!==void 0)return k6h;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return k6h=q},{mode:2});var U6x;var $g=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return q};
_.Y($g,_.C);$g.prototype.dataChanged=function(){this.hostElement.hidden=!1};
$g.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
$g.prototype.onThumbnailTap=function(q){this.data&&this.data.serviceEndpoint&&(_.tz().resolve(_.rO).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),q.stopPropagation())};
$g.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
$g.prototype.dataChanged=$g.prototype.dataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],$g.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],$g.prototype,"rendererBehaviors",void 0);_.p([_.O([_.Dc.YtActionHandlerBehavior]),_.P("design:type",Object)],$g.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],$g.prototype,"data",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$g.prototype,"dataChanged",null);_.p([_.I({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],$g);
_.a($g,"ytd-unlimited-offer-module-renderer",function(){if(U6x!==void 0)return U6x;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return U6x=q},{mode:1});var fyv;var C0X;var t_=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return q};
_.Y(t_,_.C);t_.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
t_.prototype.handleRelatedChipCommand=function(q){q=_.v(q,ySy);var N=q.contents;N?_.Hy(this.hostElement,"yt-item-section-replace-action",[N,q.targetSectionIdentifier]):_.Hy(this.hostElement,"yt-item-section-continuation-action",[q.continuationData,q.targetSectionIdentifier])};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],t_.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],t_.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],t_.prototype,"data",void 0);_.p([_.Ok({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],t_);
_.a(t_,"yt-related-chip-cloud-renderer",function(){if(C0X===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;fyv===void 0&&(fyv=document.createElement("template"));var y=fyv;b.call(N,y.content.cloneNode(!0),q.content.firstChild);C0X=q}q=C0X;return q},{mode:2});var mG=function(){var q=_.C.apply(this,arguments)||this;q.isTwoColumns=!0;q.watchFeedBigThumbs=_.x("kevlar_watch_feed_big_thumbs");q.watchFeedBigThumbsOnLockup=_.x("web_watch_next_big_thumbs");q.watchNextGridHideChips=_.x("kevlar_watch_grid_hide_chips");q.eligibleToSwitchToGrid=!0;q.disableShortsShelfHeightOverride=_.x("web_shorts_wn_shelf_ratio_tuning");q.isWatchNextGrid=!1;q.reuseComponents=!_.x("kevlar_watch_grid");q.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return q};
_.Y(mG,_.C);_.g=mG.prototype;
_.g.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:!_.x("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}}};
_.g.getItemsPath=function(){return"data.results"};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.g.created=function(){this.ytLazyListBehavior.initialCount=1};
_.g.ready=function(){_.Jm(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.g.resultsChanged=function(){if(this.data&&this.data.results){for(var q=this.data.results,N=null,b=null,y=0;y<q.length;y++)q[y].relatedChipCloudRenderer?N=q[y].relatedChipCloudRenderer:q[y].itemSectionRenderer&&(b=q[y].itemSectionRenderer);if(N&&b)for(this.set("data.continuations",[]),q=_.v(N.content,_.uxl).chips,N=0;N<q.length;N++)if(y=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",q[N]),y.loadCached||!y.contents){y.contents=b.contents;break}}};
_.g.dataChanged=function(){var q=this,N;if((N=this.data)!=null&&N.results&&this.hasAllowedInstreamAd(this.playerData)){if(N=this.data.results.filter(function(R){return!!R.promotedSparklesWebRenderer})){for(var b=0;b<N.length;b++){var y=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",N[b]);
if(y)for(var J=0;J<y.length;J++)y[J]&&y[J].baseUrl&&_.b0(y[J].baseUrl)}this.set("data.results",this.data.results.filter(function(R){return!R.promotedSparklesWebRenderer}))}if(N=this.data.results.filter(function(R){return!!q.getSparklesAd(R)})){N=_.Z(N);
for(J=N.next();!J.done;J=N.next())if(y=b=void 0,J=(b=this.getSparklesAd(J.value))==null?void 0:(y=b.errorCommand)==null?void 0:y.loggingUrls)for(b=_.Z(J),y=b.next();!y.done;y=b.next())(y=y.value)&&y.baseUrl&&_.b0(y.baseUrl);var E,F;this.set("data.results",(E=this.data)==null?void 0:(F=E.results)==null?void 0:F.filter(function(R){return!R.adSlotRenderer}))}}};
_.g.getSparklesAd=function(q){var N,b;q=_.v((N=q.adSlotRenderer)==null?void 0:(b=N.fulfillmentContent)==null?void 0:b.fulfilledLayout,_.CKj);return _.v(q==null?void 0:q.renderingContent,xgZ)};
_.g.hasAllowedInstreamAd=function(q){q=this.get("adPlacements",q)||[];for(var N=0;N<q.length;N++){var b=this.get("adPlacementRenderer.config.adPlacementConfig",q[N]);if(b&&b.suppressDisplayAd)return!0}return!1};
_.g.computeHideUnlimitedOfferModule=function(q,N){return q&&q.offerModule&&N&&q.offerModule.unlimitedOfferModuleRenderer&&q.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(N)?!0:!1};
_.g.hideUnlimitedOfferModuleChanged=function(){var q=_.ee(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");q&&(q.hidden=this.hideUnlimitedOfferModule)};
_.g.updateLockupContainerTypes=function(q){if(this.eligibleToSwitchToGrid){var N;(N=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||N.forEach(function(b){b.containerType=q})}};
_.g.computeHideTvfilmOfferModule=function(q,N){var b,y;return!!((q==null?0:(b=q.offerModule)==null?0:(y=b.tvfilmOfferModuleRenderer)==null?0:y.clientShouldSuppressIfCompanionAdDisplayed)&&N&&this.hasCompanionAds(N))};
_.g.hideTvfilmOfferModuleChanged=function(){var q=_.ee(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");q&&(q.hidden=this.hideTvfilmOfferModule)};
_.g.hasCompanionAds=function(q){q=this.get("adPlacements",q)||[];for(var N=0;N<q.length;N++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",q[N]))return!0;var b=void 0,y=void 0,J=void 0;if(!_.x("web_watch_top_banner_companion_check_killswitch")&&((b=q[N])==null?0:(y=b.adPlacementRenderer)==null?0:(J=y.renderer)==null?0:J.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.g.hasSuppressedResults=function(q){return q==null?!0:q.filter(function(N){return!N.continuationItemRenderer&&!N.compactPromotedVideoRenderer&&!N.promotedSparklesWebRenderer}).length===0};
_.g.computeShowButton=function(q,N){return this.isWatchNextGrid?q:q||this.hasSuppressedResults(N)};
_.g.showButtonChanged=function(){if(this.isWatchNextGrid){var q=_.ee(this.hostElement).querySelector("ytd-rich-grid-renderer");q&&this.showButton!==null&&(q.continuationShowButton=this.showButton)}else{q=_.ee(this.hostElement).querySelector("yt-next-continuation");var N=_.ee(this.hostElement).querySelector("ytd-continuation-item-renderer"),b=_.ee(this.hostElement).querySelector("ytd-item-section-renderer");q&&(q.showButton=this.showButton);N&&(N.showButton=this.showButton);b&&(b.continuationShowButton=
this.showButton)}};
_.g.continuationTap=function(q){var N;if(((N=this.data)==null?void 0:N.continuations)!=null&&q.target.tagName==="TP-YT-PAPER-BUTTON")for(q=this.data.continuations,N=0;N<q.length;N++)q[N].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(q[N].nextContinuationData||{})};
_.g.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("shown-items-changed",this.shownItems))};
_.$H.Object.defineProperties(mG.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 q;return!((q=this.shownItems)==null||!q.some(function(N){return!!N.lockupViewModel||N.compactVideoRenderer}))}}});
mG.prototype.shownItemsChangedForBinding=mG.prototype.shownItemsChangedForBinding;mG.prototype.showButtonChanged=mG.prototype.showButtonChanged;mG.prototype.hideTvfilmOfferModuleChanged=mG.prototype.hideTvfilmOfferModuleChanged;mG.prototype.updateLockupContainerTypes=mG.prototype.updateLockupContainerTypes;mG.prototype.hideUnlimitedOfferModuleChanged=mG.prototype.hideUnlimitedOfferModuleChanged;mG.prototype.dataChanged=mG.prototype.dataChanged;mG.prototype.resultsChanged=mG.prototype.resultsChanged;
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],mG.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],mG.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.V1.YtLazyListBehavior),_.P("design:type",Object)],mG.prototype,"ytLazyListBehavior",void 0);_.p([_.O(_.m1.YtNextContinuationBehavior),_.P("design:type",Object)],mG.prototype,"ytNextContinuationBehavior",void 0);
_.p([_.O(_.tA),_.P("design:type",Object)],mG.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],mG.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],mG.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],mG.prototype,"playerData",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],mG.prototype,"autoFill",void 0);_.p([_.U({value:60}),_.P("design:type",Number)],mG.prototype,"targetFramerate",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],mG.prototype,"isTwoColumns",void 0);_.p([_.U(),_.P("design:type",Object)],mG.prototype,"shownItems",void 0);_.p([_.U({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.P("design:type",Boolean)],mG.prototype,"hideUnlimitedOfferModule",void 0);_.p([_.U({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.P("design:type",Boolean)],mG.prototype,"hideTvfilmOfferModule",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],mG.prototype,"watchFeedBigThumbs",void 0);_.p([_.U(),_.P("design:type",Object)],mG.prototype,"watchFeedBigThumbsOnLockup",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],mG.prototype,"watchNextGridHideChips",void 0);_.p([_.U(),_.P("design:type",Object)],mG.prototype,"eligibleToSwitchToGrid",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],mG.prototype,"disableShortsShelfHeightOverride",void 0);
_.p([_.U({selector:_.wJ,reflectToAttribute:!0}),_.P("design:type",Object)],mG.prototype,"isGridViewEnabled",void 0);_.p([_.U({selector:_.y1d,reflectToAttribute:!0}),_.P("design:type",Object)],mG.prototype,"isSwatcherooActive",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],mG.prototype,"showMoreButton",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],mG.prototype,"isWatchNextGrid",void 0);
_.p([_.U({computed:"computeShowButton(showMoreButton, data.results)"}),_.P("design:type",Boolean)],mG.prototype,"showButton",void 0);_.p([_.$9("data.results.*"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mG.prototype,"resultsChanged",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mG.prototype,"dataChanged",null);
_.p([_.FY("hideUnlimitedOfferModule"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mG.prototype,"hideUnlimitedOfferModuleChanged",null);_.p([_.l("isGridViewEnabled","containsLockups","data"),_.U({reflectToAttribute:!0}),_.P("design:type",Number),_.P("design:paramtypes",[])],mG.prototype,"lockupContainerType",null);
_.p([_.FY("lockupContainerType","data"),_.P("design:type",Function),_.P("design:paramtypes",[Number]),_.P("design:returntype")],mG.prototype,"updateLockupContainerTypes",null);_.p([_.FY("hideTvfilmOfferModule"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mG.prototype,"hideTvfilmOfferModuleChanged",null);_.p([_.FY("showButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mG.prototype,"showButtonChanged",null);
_.p([_.FY("shownItems"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mG.prototype,"shownItemsChangedForBinding",null);_.p([_.l("shownItems"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],mG.prototype,"containsLockups",null);
_.a(mG,"ytd-watch-next-secondary-results-renderer",function(){if(Qpv===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);Qpv=q}q=Qpv;return q},{mode:1});var Iyh;var r8=function(){var q=_.C.apply(this,arguments)||this;q.isCollapsed=!1;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return q};
_.Y(r8,_.C);_.g=r8.prototype;_.g.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.g.onDonateTap=function(){var q=this.get("data.donateButton.buttonRenderer.command");if(q){var N=_.Oe(),b=this.get("data.donateButton.buttonRenderer.trackingParams");N&&b&&_.nr(N,_.zT(b));this.ytOpenPopupBehavior.openPopup(q)}};
_.g.onShowMore=function(){this.isCollapsed=!1;var q=_.Oe(),N=this.get("data.expandButton.buttonRenderer.trackingParams");q&&N&&_.nr(q,_.zT(N))};
_.g.onShowLess=function(){this.isCollapsed=!0};
_.g.dataChanged=function(){_.Jm(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.g.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.g.handleUpdate=function(q){if(q=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",q))this.set("data.startLabel",q.startLabel),this.set("data.endLabel",q.endLabel),this.set("data.progress",q.progress),this.set("data.amountRaisedLabel",q.amountRaisedLabel),this.dataChanged()};
_.g.handleOpenPopupAction=function(q){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",q)&&_.By(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.g.computeHeaderBackgroundUrl=function(q,N){if(q)return N?q.headerBackgroundDarkUrl:q.headerBackgroundUrl};
_.g.isProgressBarVisible=function(q){return!(!q||q.progress===void 0)};
_.g.headerBackgroundClass=function(){return _.M7("HTML_DIR")==="rtl"?"flip":""};
r8.prototype.dataChanged=r8.prototype.dataChanged;_.p([_.O(_.lw.YtOpenPopupBehavior),_.P("design:type",Object)],r8.prototype,"ytOpenPopupBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],r8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],r8.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],r8.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],r8.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],r8.prototype,"isCollapsed",void 0);_.p([_.U({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.P("design:type",String)],r8.prototype,"headerBackgroundUrl",void 0);_.p([_.U(),_.P("design:type",Boolean)],r8.prototype,"isDarkTheme",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],r8.prototype,"dataChanged",null);
_.p([_.I({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],r8);
_.a(r8,"ytd-donation-shelf-renderer",function(){if(Iyh!==void 0)return Iyh;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Iyh=q},{mode:1});var TLh;var spv=function(){return _.C.apply(this,arguments)||this};
_.Y(spv,_.C);_.p([_.U(),_.P("design:type",Object)],spv.prototype,"data",void 0);_.p([_.I({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],spv);
_.a(spv,"ytd-donation-unavailable-renderer",function(){if(TLh!==void 0)return TLh;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return TLh=q},{mode:1});var nyh;var XM=function(){return _.C.apply(this,arguments)||this};
_.Y(XM,_.C);XM.prototype.computeIconType=function(q){return q?"yt-icons:"+q.toLowerCase():null};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],XM.prototype,"data",void 0);_.p([_.I({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],XM);
_.a(XM,"ytd-limited-state-message-renderer",function(){if(nyh!==void 0)return nyh;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return nyh=q},{mode:1});var ayZ;var Vl=function(){return _.C.apply(this,arguments)||this};
_.Y(Vl,_.C);Vl.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Vl.prototype.onTap=function(q){var N=this.data&&this.data.endpoint;N&&!_.Su(_.n9(q),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.e2(this.hostElement,"yt-navigate",{endpoint:N})};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Vl.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Vl.prototype,"data",void 0);_.p([_.I({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Vl);
_.a(Vl,"ytd-autotagging-metadata-renderer",function(){if(ayZ!==void 0)return ayZ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return ayZ=q},{mode:1});var S2e;var jH=function(){return _.C.apply(this,arguments)||this};
_.Y(jH,_.C);jH.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],jH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],jH.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],jH.prototype,"data",void 0);_.p([_.I({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],jH);
_.a(jH,"ytd-autotagging-metadata-row-renderer",function(){if(S2e!==void 0)return S2e;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return S2e=q},{mode:1});var W0l;var L0B;var xg=function(){var q=_.C.apply(this,arguments)||this;q.engagementPanelContent=!1;return q};
_.Y(xg,_.C);xg.prototype.computeHasDividerLine=function(q,N){return q&&!N};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],xg.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.P("design:type",Boolean)],xg.prototype,"hasDividerLine",void 0);_.p([_.U(),_.P("design:type",Object)],xg.prototype,"engagementPanelContent",void 0);
_.p([_.I({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],xg);
_.a(xg,"ytd-metadata-row-header-renderer",function(){if(L0B!==void 0)return L0B;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return L0B=q},{mode:1});var p_s;var vo=function(){return _.C.apply(this,arguments)||this};
_.Y(vo,_.C);vo.prototype.computeHasDividerLine=function(q){return q};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],vo.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.P("design:type",Boolean)],vo.prototype,"hasDividerLine",void 0);_.p([_.I({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],vo);
_.a(vo,"ytd-metadata-row-renderer",function(){if(p_s!==void 0)return p_s;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return p_s=q},{mode:1});var P0c;var M0l=function(){return _.C.apply(this,arguments)||this};
_.Y(M0l,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],M0l.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],M0l.prototype,"data",void 0);_.p([_.I({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],M0l);
_.a(M0l,"ytd-metadata-with-image-row-renderer",function(){if(P0c!==void 0)return P0c;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return P0c=q},{mode:1});var oyy;var Gx=function(){var q=_.C.apply(this,arguments)||this;q.rounded=!0;q.fixie=!1;q.fullWidth=!1;return q};
_.Y(Gx,_.C);_.g=Gx.prototype;_.g.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.onDataChanged=function(){var q=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(N){q.onEndpointLinkKeyPress(N)}))};
_.g.onEndpointLinkKeyPress=function(q){q.target===this.endpointLink&&q.keyCode===13&&_.e2(this.hostElement,"click")};
_.g.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var q;if((q=this.data)==null?0:q.endpoint)_.Nc(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.g.onYtNavigate=function(q){this.endpointHref||(q.stopPropagation(),q.preventDefault())};
_.g.onInformationButtonContainerClick=function(q){q.target.id!=="information-button-container"&&(q.stopPropagation(),q.preventDefault())};
_.g.computeStyle=function(q){return q};
_.g.computeIsThumbnailStyle=function(q){return q==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.g.computeThumbnailWidth=function(q){switch(q){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}};
_.g.computeThumbnailObjectFit=function(q){switch(q){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.$H.Object.defineProperties(Gx.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
Gx.prototype.onYtNavigate=Gx.prototype.onYtNavigate;Gx.prototype.onClick=Gx.prototype.onClick;Gx.prototype.onDataChanged=Gx.prototype.onDataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Gx.prototype,"componentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Gx.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],Gx.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],Gx.prototype,"componentStyle",void 0);_.p([_.U({computed:"computeIsThumbnailStyle(data.style)"}),_.P("design:type",Boolean)],Gx.prototype,"isThumbnailStyle",void 0);_.p([_.U({computed:"computeThumbnailObjectFit(data.style)"}),_.P("design:type",String)],Gx.prototype,"thumbnailObjectFit",void 0);
_.p([_.U({computed:"computeThumbnailWidth(data.style)"}),_.P("design:type",Number)],Gx.prototype,"thumbnailWidth",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Gx.prototype,"rounded",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Gx.prototype,"fixie",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Gx.prototype,"fullWidth",void 0);_.p([_.dq("#endpoint-link"),_.P("design:type",HTMLAnchorElement)],Gx.prototype,"endpointLink",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Gx.prototype,"onDataChanged",null);_.p([_.l("data.endpoint"),_.P("design:type",Object),_.P("design:paramtypes",[])],Gx.prototype,"endpointHref",null);_.p([_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Gx.prototype,"onClick",null);
_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Gx.prototype,"onYtNavigate",null);_.p([_.I({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],Gx);
_.a(Gx,"ytd-rich-metadata-renderer",function(){if(oyy!==void 0)return oyy;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return oyy=q},{mode:_.Am("kevlar_poly_si_batch_j075")?1:2});var Are;var Yg=function(){var q=_.C.apply(this,arguments)||this;q.fixie=!1;q.fullWidth=!1;return q};
_.Y(Yg,_.C);Yg.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Yg.prototype.computeHasDividerLine=function(q){return q};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Yg.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Yg.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.P("design:type",Boolean)],Yg.prototype,"hasDividerLine",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Yg.prototype,"fixie",void 0);_.p([_.U(),_.P("design:type",Object)],Yg.prototype,"fullWidth",void 0);
_.p([_.I({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Yg);
_.a(Yg,"ytd-rich-metadata-row-renderer",function(){if(Are!==void 0)return Are;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Are=q},{mode:1});var Ql=function(){var q=_.C.apply(this,arguments)||this;q.engagementPanelContent=!1;q.fixie=!1;q.fullWidth=!1;return q};
_.Y(Ql,_.C);
Ql.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"}}}};
Ql.prototype.computeCollapsibleItems=function(q,N,b){return q===void 0||N===void 0||b===void 0||b?[]:q.slice(N)};
Ql.prototype.computeAlwaysShownItems=function(q,N){return q&&q.length?q.slice(0,N):[]};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Ql.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ql.prototype,"data",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],Ql.prototype,"collapsed",void 0);
_.p([_.U({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.P("design:type",Array)],Ql.prototype,"alwaysShownItems",void 0);_.p([_.U({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.P("design:type",Array)],Ql.prototype,"collapsibleItems",void 0);_.p([_.U(),_.P("design:type",Object)],Ql.prototype,"engagementPanelContent",void 0);_.p([_.U(),_.P("design:type",Object)],Ql.prototype,"fixie",void 0);
_.p([_.U(),_.P("design:type",Object)],Ql.prototype,"fullWidth",void 0);_.p([_.I({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],Ql);
_.a(Ql,"ytd-metadata-row-container-renderer",function(){if(W0l!==void 0)return W0l;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return W0l=q},{mode:1});var erl;var Ot=function(){var q=_.C.apply(this,arguments)||this;q.currentPageUrl="";q.baseUrl="";q.isHiddenByUser=null;q.hidden=!1;q.showAboveScrim=!1;q.watchNextGrid=_.x("kevlar_watch_grid");q.modernButtons=_.x("web_modern_buttons");q.roundedContainer=!0;q.noBorder=!1;q.roundBackground=!_.x("live_chat_round_background_killswitch");q.overflowHideChat=_.x("live_chat_overflow_hide_chat");q.forceDarkTheme=!1;q.theaterWatchWhile=!1;q.isListeningForPlayerProgress=!1;q.JSC$23088_playerEvents=new Map;q.isFrameReady=
!1;q.player=null;q.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 q};
_.Y(Ot,_.C);_.g=Ot.prototype;_.g.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Hy(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.g.created=function(){var q=this;this.handleIframeEventListener=function(N){q.handleIframeEvent(N)};
this.handleKeyboardEventListener=function(N){q.handleKeyboardEvent(N)};
this.JSC$23088_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$23088_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23088_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$23088_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$23088_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.g.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()};
_.g.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};
_.g.computeBaseUrl=function(q){var N="/live_chat";this.isChatReplay()&&(N="/live_chat_replay");return _.Fg(_.ZN(_.gH(_.N0(q),N),null),"").toString()};
_.g.dataChanged=function(){_.x("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.g.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var q=this.url;if(this.isChatReplay()&&this.player){var N=Math.floor(this.player.getProgressState().current*1E3);q=_.yS(_.N0(q),"playerOffsetMs",N.toString()).toString()}N=this.chatframe;try{var b=q==="about:blank"?_.MvM:_.pc(q),y=N.contentDocument.location,J=_.ox(b);J!==void 0&&y.replace(J)}catch(E){N.src=q}}};
_.g.collapsedChanged=function(){_.e2(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.g.handleIframeEvent=function(q){if(q&&this.baseUrl.startsWith(q.origin)&&q.source===this.chatframe.contentWindow&&_.AZ(q.data))if(q.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(q);else if(q.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(q.data["yt-show-feedback-dialog"]){var N=_.tz().resolve(_.$f(_.nBf));if(N){var b=q.ports,y;b&&b.length&&(y=function(){b[0].postMessage({})});
q=q.data["yt-show-feedback-dialog"];N.showFeedbackDialog(q.customProductData,q.feedbackContent,y,q.bucket)}}else if(q.data["yt-show-survey"])_.e2(this.hostElement,"yt-show-survey",q.data["yt-show-survey"]);else if(q.data["yt-purchase-membership"])_.tz().resolve(_.rO).resolveCommand(q.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(q.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(q.data["yt-tunnel-out-live-service-request"]);else if(q.data["yt-user-activity"])_.$y();
else if(q.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(q.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(q.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(q.data["yt-open-popup"]);else if(q.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(q.data["yt-log-flow-logging-event-command"]);else if(q.data["yt-hide-live-chat"])this.onShowHideChat();else q.data["yt-report-moderation-state-log"]&&
this.player&&(N={cpn:this.player.getVideoData().cpn},_.W_("liveChatBeingModerated",N))};
_.g.attachLiveChatResponseVeTrackingParams=function(q){q=_.zT(q);var N=_.Oe(),b=_.Ng("liveChatRenderer.trackingParams",this.data);N&&b&&_.fr(N,_.zT(b),q)};
_.g.handleBuyflowMessages=function(q){var N=q.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,b=q.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,y=q.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.Wrd(_.L0(_.TM),N.replace(/-/g,"+").replace(/_/g,"/"),function(J){q.ports[0].postMessage({success:!0,buyFlowResponse:J})},void 0,function(J){q.ports[0].postMessage({success:!1,
error:J&&J.message||"Buyflow rejected without error."})},_.c3().get("hl"),void 0,function(){q.ports[0].postMessage({closed:!0})},b,y)};
_.g.setupPlayerProgressRelay=function(){var q=this;if(!this.isListeningForPlayerProgress){var N=_.MO();N!=null&&N.getPlayerPromise&&(N.getPlayerPromise().then(function(b){q.playerApiReady(b)}),this.isListeningForPlayerProgress=!0)}};
_.g.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.g.playerApiReady=function(q){this.setPlayer(q)};
_.g.playerProgressHandler=function(){if(this.player){var q=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":q.current})}};
_.g.playerAdStartHandler=function(q){this.postToContentWindow({"yt-player-ad-start":q})};
_.g.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.g.playerStateChangeHandler=function(q){this.postToContentWindow({"yt-player-state-change":q})};
_.g.setPlayer=function(q){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23088_playerEvents);q&&(this.player=q,this.ytPlayerListenerBehavior.listenToPlayerEvents(q,this.JSC$23088_playerEvents),_.e2(this.hostElement,"player-api-ready"))};
_.g.liveChatPageUrl=function(q,N,b,y){return!b||N?"about:blank":b.liveChatRenderer?(N=_.N0(this.currentPageUrl).JSC$10113_queryData_,u$s(N),q=_.N0(q),N.add("continuation",b.liveChatRenderer.continuations[0].reloadContinuationData.continuation),b=_.D4()==="USER_INTERFACE_THEME_DARK",(y||b)&&N.add("dark_theme","true"),_.ZN(q,N),y=_.N0(q.toString()),b=y.JSC$10113_queryData_,"SESSION_INDEX"in _.pI&&(b.add("authuser",_.M7("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.pI&&b.add("pageId",_.M7("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.pI&&b.add("sdc",_.M7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),y.toString()):""};
_.g.isCollapsed=function(q,N){return N!==null?N:this.isChatReplay()||q&&q.conversationBarRenderer&&q.conversationBarRenderer.availabilityMessage?!0:q?q.liveChatRenderer?q.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.x("live_chat_hide_premiere_replay_message")||q.conversationBarRenderer&&q.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.g.isHidden=function(q,N,b){var y=N&&N.conversationBarRenderer&&N.conversationBarRenderer.availabilityMessage,J=N&&N.liveChatRenderer&&N.liveChatRenderer.showHideButton,E=N&&N.liveChatRenderer&&N.liveChatRenderer.showButton;return b&&q&&!y&&!E||!b&&q&&!y&&!J?!0:N&&N.liveChatRenderer&&N.liveChatRenderer.initialDisplayState?N.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.g.computeButtonOverride=function(q,N){if(q&&N)return{type:"outline"}};
_.g.setCollapsedState=function(q){_.v(q,_.ID1)&&((this.isHiddenByUser=!!_.v(q,_.ID1).collapsed)||_.By(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.g.forwardReduxActionToIframe=function(q){this.postToContentWindow({"yt-live-chat-forward-redux-action":q})};
_.g.onLoopRangeChange=function(q){this.showAboveScrim=!(q==null||!q.postId)};
_.g.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.g.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.g.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.g.sendDarkThemePostMessage=function(q){this.postToContentWindow({"yt-live-chat-set-dark-theme":q})};
_.g.onLiveChatBuyFlowCallback=function(q){this.postToContentWindow({"yt-live-chat-buy-flow-callback":q})};
_.g.handleKeyboardEvent=function(q){(0,_.nM.containsValue)(tde,q.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:q.type,keyCode:q.keyCode}})};
_.g.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.g.postToContentWindow=function(q){if(this.isFrameReady)try{var N=window.location.protocol+"//"+window.location.host,b;(b=this.chatframe)!=null&&b.contentWindow?this.chatframe.contentWindow.postMessage(q,N):_.M6(new _.IO("Tried posting a message to an iframe with no content window",q))}catch(y){_.po(y)}};
_.g.shouldHideChatFrame=function(q){return q&&_.x("hide_live_chat_button_when_collapsed")};
_.$H.Object.defineProperties(Ot.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.x("live_chat_overflow_hide_chat")||_.x("web_watch_chat_hide_button_killswitch"))return _.x("live_chat_overflow_hide_chat");var q,N,b,y;return!!((q=this.data)==null?0:(N=q.liveChatRenderer)==null?0:(b=N.header)==null?0:(y=b.liveChatHeaderRenderer)==null?0:y.collapseButton)}}});
Ot.prototype.collapsedChanged=Ot.prototype.collapsedChanged;Ot.prototype.urlChanged=Ot.prototype.urlChanged;Ot.prototype.dataChanged=Ot.prototype.dataChanged;Ot.prototype.onShowHideChat=Ot.prototype.onShowHideChat;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Ot.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Ot.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.d2.YtPlayerListenerBehavior),_.P("design:type",_.cX)],Ot.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.O(_.lw.YtOpenPopupBehavior),_.P("design:type",Object)],Ot.prototype,"ytOpenPopupBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ot.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Ot.prototype,"currentPageUrl",void 0);
_.p([_.U({computed:"computeBaseUrl(currentPageUrl,data)"}),_.P("design:type",Object)],Ot.prototype,"baseUrl",void 0);_.p([_.U({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.P("design:type",String)],Ot.prototype,"url",void 0);_.p([_.U(),_.P("design:type",Object)],Ot.prototype,"isHiddenByUser",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.P("design:type",Object)],Ot.prototype,"hidden",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.P("design:type",Boolean)],Ot.prototype,"collapsed",void 0);_.p([_.U({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.P("design:type",Boolean)],Ot.prototype,"hideChatFrame",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Ot.prototype,"showAboveScrim",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Ot.prototype,"watchNextGrid",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Ot.prototype,"modernButtons",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Ot.prototype,"roundedContainer",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Ot.prototype,"noBorder",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Ot.prototype,"roundBackground",void 0);
_.p([_.U({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.P("design:type",Object)],Ot.prototype,"toggleButtonOverride",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Ot.prototype,"overflowHideChat",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Ot.prototype,"forceDarkTheme",void 0);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ot.prototype,"enableShowWithoutHideChatButton",null);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Ot.prototype,"theaterWatchWhile",void 0);_.p([_.dq("#chatframe"),_.P("design:type",HTMLIFrameElement)],Ot.prototype,"chatframe",void 0);_.p([_.ZP("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ot.prototype,"onShowHideChat",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ot.prototype,"dataChanged",null);
_.p([_.FY("url"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ot.prototype,"urlChanged",null);_.p([_.FY("collapsed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ot.prototype,"collapsedChanged",null);_.p([_.I({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Ot);
_.a(Ot,"ytd-live-chat-frame",function(){if(erl!==void 0)return erl;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return erl=q},{mode:1});var BLZ;var w8=function(){var q=_.C.apply(this,arguments)||this;q.modern=_.x("web_modern_buttons");q.buttonOverrides={style:"call-to-action",type:"filled"};return q};
_.Y(w8,_.C);w8.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=_.GM(this.data.backgroundColor)))};
w8.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var q=this.getFormattedStringLoggingDirectives(this.data.headline);q&&this.rendererBehavior.logExplicitClick(q)}};
w8.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var q=this.getFormattedStringLoggingDirectives(this.data.description);q&&this.rendererBehavior.logExplicitClick(q)}};
w8.prototype.getFormattedStringLoggingDirectives=function(q){return q&&q.runs&&q.runs.length>0&&q.runs[0]&&q.runs[0].loggingDirectives?q.runs[0].loggingDirectives:null};
w8.prototype.dataChanged=w8.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],w8.prototype,"rendererBehavior",void 0);_.p([_.O(Y27.YtMacroReplacementBehavior),_.P("design:type",Object)],w8.prototype,"macroReplacementBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],w8.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],w8.prototype,"navigationEndpoint",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],w8.prototype,"enableColors",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],w8.prototype,"modern",void 0);_.p([_.U(),_.P("design:type",Object)],w8.prototype,"buttonOverrides",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w8.prototype,"dataChanged",null);_.p([_.I({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],w8);
_.a(w8,"ytd-action-basic-immersive-content-renderer",function(){if(BLZ!==void 0)return BLZ;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return BLZ=q},{mode:1});var Ho7;var qX7;var iM=function(){return _.C.apply(this,arguments)||this};
_.Y(iM,_.C);iM.prototype.dataChanged=function(){var q;((q=this.data)==null?void 0:q.backgroundColor)!==void 0&&_.Jm(this.hostElement,{"--bgu-color":_.GM(this.data.backgroundColor)})};
iM.prototype.onImageTileClick=function(){var q;((q=this.data)==null?0:q.navigationEndpoint)&&_.e2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var N;((N=this.data)==null?0:N.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.$H.Object.defineProperties(iM.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var q;if(((q=this.data)==null?void 0:q.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 q;return((q=this.data)==null?void 0:q.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var q,N,b;if(((q=this.data)==null?void 0:(N=q.detailsLine)==null?void 0:N.texts)!=null&&((b=this.data)==null?void 0:b.detailsLine.texts.length)>0){var y;return(y=this.data)==null?void 0:y.detailsLine.texts.map(function(J){return J.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var q,N,b;if(((q=this.data)==null?void 0:(N=q.optionalDetailsLine)==null?void 0:N.texts)!=null&&((b=this.data)==null?void 0:b.optionalDetailsLine.texts.length)>0){var y;return(y=this.data)==null?void 0:y.optionalDetailsLine.texts.map(function(J){return J.text}).join("")}return null}}});
iM.prototype.dataChanged=iM.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],iM.prototype,"rendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],iM.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],iM.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data.backgroundColor"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],iM.prototype,"hasBackgroundColor",null);
_.p([_.l("data.objectFit"),_.P("design:type",Object),_.P("design:paramtypes",[])],iM.prototype,"getObjectFit",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.tileRenderingStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],iM.prototype,"hasTileMetadata",null);_.p([_.l("data.detailsLine"),_.P("design:type",Object),_.P("design:paramtypes",[])],iM.prototype,"getSecondaryDetails",null);
_.p([_.l("data.optionalDetailsLine"),_.P("design:type",Object),_.P("design:paramtypes",[])],iM.prototype,"getOptionalDetails",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iM.prototype,"dataChanged",null);_.p([_.I({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],iM);
_.a(iM,"ytd-image-tile-renderer",function(){if(qX7!==void 0)return qX7;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return qX7=q},{mode:1});var NIe;var lM=function(){return _.C.apply(this,arguments)||this};
_.Y(lM,_.C);lM.prototype.getOpenLinkIcon=function(){return _.x("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
lM.prototype.onSitelinkTap=function(){_.e2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.x("kevlar_command_handler_migration_killswitch"))_.Nc(this.hostElement,this.data.clickCommands,this.hostElement);else for(var q=_.Z(this.data.clickCommands),N=q.next();!N.done;N=q.next())this.ytComponentBehavior.resolveCommand(N.value)};
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],lM.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],lM.prototype,"rendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],lM.prototype,"data",void 0);_.p([_.I({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],lM);
_.a(lM,"ytd-sitelink-renderer",function(){if(NIe!==void 0)return NIe;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return NIe=q},{mode:1});var Kn=function(){var q=_.C.apply(this,arguments)||this;q.paddingFix=_.x("enable_ads_web_ep_buenos_aires_and_padding_fix");return q};
_.Y(Kn,_.C);Kn.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"}}}};
Kn.prototype.dataChanged=function(){var q=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(N){N.clickTrackingParams&&delete N.clickTrackingParams;q.ytMacroReplacementBehavior.sendServiceRequestAction([N])})};
Kn.prototype.shouldHideFooter=function(q){return!(q&&_.x("use_ads_engagement_panel_desktop_footer_cta"))};
_.$H.Object.defineProperties(Kn.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.data)==null?void 0:q.imageTileRenderers)===void 0||((N=this.data)==null?void 0:N.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(b){var y;return(y=_.v(b,jOB))==null?void 0:y.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.data)==null?void 0:q.imageTileRenderers)===void 0||((N=this.data)==null?void 0:N.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(b){var y;return((y=_.v(b,jOB))==null?void 0:y.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Kn.prototype.dataChanged=Kn.prototype.dataChanged;_.p([_.O(Y27.YtMacroReplacementBehavior),_.P("design:type",Object)],Kn.prototype,"ytMacroReplacementBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Kn.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Kn.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Kn.prototype,"paddingFix",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data.imageTileRenderers"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Kn.prototype,"removeBorderFromImageTiles",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.imageTileRenderers"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Kn.prototype,"useFooteredMetadataRenderingStyle",null);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Kn.prototype,"dataChanged",null);_.p([_.I({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Kn);
_.a(Kn,"ytd-action-engagement-panel-content-renderer",function(){if(Ho7!==void 0)return Ho7;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Ho7=q},{mode:1});var bQB;var yDc=_.n(function(q){var N=q.data;var b=q.customCommandResolver;return _.u("ad-grid-card-image-full-metadata-view-model",{class:function(){var y;return((y=N().interaction)==null?0:y.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.ai(_.mn({visibilityCallback:function(y){var J,E=(J=N().interaction)==null?void 0:J.onFirstVisible;y&&E&&_.Kt(E)},
showOption:_.Yx}),_.KT(function(){return N().interaction},b)),
"aria-label":function(){var y,J;return(y=N().interaction)==null?void 0:(J=y.accessibility)==null?void 0:J.label}},_.u("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.u(_.zS,{data:function(){return N().adImage}},{adImageViewModel:function(y){return _.u(_.Lu,{data:y.data,
customCommandResolver:b})}})),_.u("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.u(_.t,{cond:function(){return N().headline},
then:function(y){return _.u(_.Zc,{text:y,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.u(_.t,{cond:function(){return N().detailsLine},
then:function(y){return _.u("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.u(_.zS,{data:y},{adDetailsLineViewModel:function(J){return _.u(_.hv,{data:J.data,customCommandResolver:b,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.u(_.t,{cond:function(){return N().secondaryDetailsLine},
then:function(y){return _.u("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.u(_.zS,{data:y},{adDetailsLineViewModel:function(J){return _.u(_.hv,{data:J.data,customCommandResolver:b,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Fn");var JDv=_.n(function(q){var N=q.data;var b=q.customCommandResolver;return _.u("ad-grid-card-image-view-model",{class:function(){var y;return((y=N().interaction)==null?0:y.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.ai(_.mn({visibilityCallback:function(y){var J,E=(J=N().interaction)==null?void 0:J.onFirstVisible;y&&E&&_.Kt(E)},
showOption:_.Yx}),_.KT(function(){return N().interaction},b)),
"aria-label":function(){var y,J;return(y=N().interaction)==null?void 0:(J=y.accessibility)==null?void 0:J.label}},_.u(_.zS,{data:function(){return N().adImage}},{adImageViewModel:function(y){return _.u(_.Lu,{data:y.data,
customCommandResolver:b})}}),_.u("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.u(_.zS,{data:function(){return N().adCardBadge}},{adCardBadgeViewModel:_.MKF})))},"Gn");var EFe=_.n(function(q){var N=q.data;var b=q.customCommandResolver;return _.u("ad-grid-card-text-view-model",{class:function(){var y;return((y=N().interaction)==null?0:y.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.ai(_.mn({visibilityCallback:function(y){var J,E=(J=N().interaction)==null?void 0:J.onFirstVisible;y&&E&&_.Kt(E)},
showOption:_.Yx}),_.KT(function(){return N().interaction},b)),
"aria-label":function(){var y,J;return(y=N().interaction)==null?void 0:(J=y.accessibility)==null?void 0:J.label}},_.u("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.u(_.t,{cond:function(){return N().title},
then:function(y){return _.u(_.Zc,{text:y,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.u("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.u(_.Tf,{each:function(){var y;
return((y=N())==null?void 0:y.descriptions)||[]},
keyBy:"INDEX"},function(y){return _.u(_.Zc,{text:y,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.u("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.u(_.zS,{data:function(){return N().moreInfoButton}},{adButtonViewModel:function(y){return _.u(_.OE,{data:y.data,
customCommandResolver:b})}})))},"Hn");var gFl=_.n(function(q){var N=q.data;var b=q.customCommandResolver;var y=q.adGridCardCollectionStyle;return _.u("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.ai(_.mn({visibilityCallback:function(J){var E,F=(E=N().interaction)==null?void 0:E.onFirstVisible;J&&F&&_.Kt(F)},
showOption:_.Yx})),style:function(){return"grid-template-columns: repeat("+Gfv(y?y():N().style)+", minmax(0, 1fr));"}},_.u(_.zS,{data:function(){var J;
return(J=N())==null?void 0:J.gridCards}},{adGridCardImageViewModel:function(J){return _.u(JDv,{data:J.data,
customCommandResolver:b})},
adGridCardImageFullMetadataViewModel:function(J){return _.u(yDc,{data:J.data,customCommandResolver:b})},
adGridCardTextViewModel:function(J){return _.u(EFe,{data:J.data,customCommandResolver:b})}}))},"In");_.P$(_.n(function(q){var N=q.data;return _.u("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.ai(_.mn({visibilityCallback:function(b){var y,J=(y=N().interaction)==null?void 0:y.onFirstVisible;b&&J&&_.Kt(J)},
showOption:_.Yx}),_.KT(function(){return N().interaction},Que))},_.u("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.u(_.t,{cond:_.vhz("(min-width: "+((0,_.ph)()+_.Cj)+"px)"),
then:function(){return _.u(_.zS,{data:function(){return N().adGridCardCollection}},{adGridCardCollectionViewModel:function(b){return _.u(gFl,{data:b.data,
customCommandResolver:Que})}})},
else:function(){return _.u(_.zS,{data:function(){return N().adGridCardCollection}},{adGridCardCollectionViewModel:function(b){return _.u(gFl,{data:b.data,
customCommandResolver:Que,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.u("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.u(_.zS,{data:function(){return N().adButton}},{adButtonViewModel:function(b){return _.u(_.OE,{data:b.data,
customCommandResolver:Que})}})))},"Jn"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.F5}});_.P$(_.n(function(q){var N=q.data;return _.u("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.ai(_.mn({visibilityCallback:function(b){var y,J=(y=N().interaction)==null?void 0:y.onFirstVisible;b&&J&&_.Kt(J)},
showOption:_.Yx}),_.KT(function(){return N().interaction},OIe))},_.u("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.u(_.zS,{data:function(){if(_.vhz("(min-width: "+((0,_.ph)()+_.Cj)+"px)")())var b=N().adGridCardCollection;
else{b=Object.assign({},_.v(N().adGridCardCollection,vfc));var y;b.gridCards!==void 0&&((y=b.gridCards)==null?void 0:y.length)>1?b.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":b.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";b={adGridCardCollectionViewModel:b}}return b}},{adGridCardCollectionViewModel:function(b){return _.u(gFl,{data:b.data,
customCommandResolver:OIe})}})),_.u("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.u(_.zS,{data:function(){return N().adButton}},{adButtonViewModel:function(b){return _.u(_.OE,{data:b.data,
customCommandResolver:OIe})}})))},"Kn"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.F5}});var Dj=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return q};
_.Y(Dj,_.C);_.g=Dj.prototype;_.g.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"}}}};
_.g.attached=function(){this.getDataFromPlayerAndRender()};
_.g.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.g.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.g.getDataFromPlayerAndRender=function(){var q=this,N=_.Pk(this.hostElement);N&&N.getPlayerPromise().then(function(b){q.getCachedDataAndListen(b)})};
_.g.getCachedDataAndListen=function(q){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(q,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(q,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=q)};
_.g.resolveCachedActions=function(){var q=_.Ng("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(q=q&&q())&&!_.nM.isEmpty(q)&&this.sendUpdateEngagementPanelAction(q);(q=(q=_.Ng("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&q())&&!_.nM.isEmpty(q)&&this.sendChangeEngagementPanelVisibilityAction(q);(q=(q=_.Ng("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&q())&&!_.nM.isEmpty(q)&&this.sendScrollToEngagementPanelCommand(q)};
_.g.sendUpdateEngagementPanelAction=function(q){var N;_.By(this.hostElement,"yt-update-engagement-panel-action",[(N=_.nM.get(q,"action"))!=null?N:q])};
_.g.sendChangeEngagementPanelVisibilityAction=function(q){_.By(this.hostElement,"yt-change-engagement-panel-visibility-action",[q])};
_.g.sendScrollToEngagementPanelCommand=function(q){_.By(this.hostElement,"yt-scroll-to-engagement-panel-command",[q])};
_.g.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.x("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.M6(Error("ap"))};
Dj.prototype.dataChanged=Dj.prototype.dataChanged;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Dj.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Dj.prototype,"componentBehavior",void 0);_.p([_.O(_.d2.YtPlayerListenerBehavior),_.P("design:type",_.cX)],Dj.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Dj.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Dj.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Dj.prototype,"player",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dj.prototype,"dataChanged",null);_.p([_.I({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Dj);
_.a(Dj,"ytd-ads-engagement-panel-content-renderer",function(){if(bQB!==void 0)return bQB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
return bQB=q},{mode:1});var ZQc;var h_=function(){var q=_.C.apply(this,arguments)||this;q.player=null;q.JSC$23125_playerEvents=new Map;q.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return q};
_.Y(h_,_.C);_.g=h_.prototype;_.g.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]]"}}}}}};
_.g.created=function(){this.player=null;this.JSC$23125_playerEvents=new Map;this.JSC$23125_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$23125_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23125_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23125_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.g.attached=function(){var q=this,N=_.Pk();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));N&&N.getPlayerPromise().then(function(b){q.setPlayer(b);q.set("isPageLoad",!1)})};
_.g.setPlayer=function(q){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23125_playerEvents);this.set("player",q);q&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(q,this.JSC$23125_playerEvents),q.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.g.onLoopRangeChange=function(q){var N=_.tz().resolve(_.$f(_.L6));if((!N||N.isOnWatch())&&this.hostElement.clientHeight){var b;!q&&((b=this.data)==null?0:b.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.g.onVideoProgress=function(q){var N,b,y=((N=this.player)==null?void 0:(b=N.getPresentingPlayerType)==null?void 0:b.call(N))===2;this.isAdPlaying!==y&&this.set("isAdPlaying",y);var J;if(!y&&(J=this.player)!=null&&J.getLoopRange()){b=this.player.getLoopRange();N=b.startTimeMs;b=b.endTimeMs;y=this.player.getProgressState(1).seekableStart;var E;N<y*1E3&&((E=this.data)==null?0:E.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
q=b<q*1E3;var F;((F=this.player)==null?0:F.getLoopRange())&&q&&this.player.seekTo(N/1E3)}};
_.g.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.g.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.g.onYtDeleteClipEngagementPanelCommand=function(q){_.v(q,IMB).command&&this.ytComponentBehavior.resolveCommand(_.v(q,IMB).command)};
_.$H.Object.defineProperties(h_.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.voteCount)||_.nD("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],h_.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],h_.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],h_.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],h_.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.d2.YtPlayerListenerBehavior),_.P("design:type",_.cX)],h_.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],h_.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],h_.prototype,"isAdPlaying",void 0);_.p([_.U({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],h_.prototype,"isPageLoad",void 0);_.p([_.U({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],h_.prototype,"isDarkTheme",void 0);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],h_.prototype,"voteCount",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],h_.prototype,"channelEndpoint",null);_.p([_.l("channelEndpoint"),_.P("design:type",Object),_.P("design:paramtypes",[])],h_.prototype,"channelHref",null);_.p([_.I({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],h_);
_.a(h_,"ytd-clip-attribution-renderer",function(){if(ZQc!==void 0)return ZQc;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return ZQc=q},{mode:1});var FnZ;var kg=function(){var q=_.C.apply(this,arguments)||this;q.player=null;q.JSC$23130_playerEvents=new Map;return q};
_.Y(kg,_.C);_.g=kg.prototype;_.g.created=function(){this.player=null;this.JSC$23130_playerEvents=new Map;this.JSC$23130_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23130_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23130_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.g.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.g.attached=function(){var q=this,N=_.Pk();N&&N.getPlayerPromise().then(function(b){q.setPlayer(b);q.set("isPageLoad",!1)})};
_.g.setPlayer=function(q){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23130_playerEvents);this.set("player",q);if(q){this.ytPlayerListenerBehavior.listenToPlayerEvents(q,this.JSC$23130_playerEvents);var N;(q==null?void 0:(N=q.getPresentingPlayerType)==null?void 0:N.call(q))===2&&this.playerAdStartHandler()}};
_.g.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.g.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.g.onVideoProgress=function(){var q,N,b=((q=this.player)==null?void 0:(N=q.getPresentingPlayerType)==null?void 0:N.call(q))===2;this.isAdPlaying!==b&&this.set("isAdPlaying",b)};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.d2.YtPlayerListenerBehavior),_.P("design:type",_.cX)],kg.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],kg.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],kg.prototype,"isAdPlaying",void 0);
_.p([_.U({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],kg.prototype,"isPageLoad",void 0);_.p([_.I({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],kg);
_.a(kg,"ytd-clip-section-footer-renderer",function(){if(FnZ!==void 0)return FnZ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return FnZ=q},{mode:1});var R3e;var dr_;var cDh=function(){return _.C.apply(this,arguments)||this};
_.Y(cDh,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],cDh.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],cDh.prototype,"data",void 0);_.p([_.I({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],cDh);
_.a(cDh,"ytd-clip-ad-state-renderer",function(){if(dr_!==void 0)return dr_;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return dr_=q},{mode:1});var u0c;var Ut=function(){var q=_.C.apply(this,arguments)||this;q.value="";q.valid=!1;q.userChangedValue=!1;q.disabled=!1;q.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return q};
_.Y(Ut,_.C);_.g=Ut.prototype;_.g.detached=function(){this.userChangedValue=!1};
_.g.handleKeyDown=function(q){if(_.qd)var N=13;else _.oDo&&_.Nd?N=13:N=13;q.keyCode===N&&q.preventDefault()};
_.g.handleInput=function(){var q=_.ee(this.hostElement).querySelector("#title");if(q){var N=(q.value||"").replace(/\r|\n/g," ");this.set("value",N);q.value=N;this.valid=q.validate();this.userChangedValue=!0}};
_.g.handleBlur=function(){this.valid=_.ee(this.hostElement).querySelector("#title").validate()};
_.g.onValueChanged=function(){_.e2(this.hostElement,"title-changed",{title:this.value})};
_.g.onValidChanged=function(){_.e2(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.g.setInput=function(q,N){var b=_.ee(this.hostElement).querySelector("#title");b&&(b.value=q,this.handleInput(),N&&(b.invalid=!1,this.valid=!0))};
_.g.onClipCreationDisable=function(){this.set("disabled",!0)};
_.g.onClipCreationEnable=function(){this.set("disabled",!1)};
_.g.onClipCreationVisibilityChange=function(q){var N=this;q.visible?requestAnimationFrame(function(){var b;((b=_.ee(N.hostElement).querySelector("#title"))==null?void 0:b.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Ut.prototype.onValidChanged=Ut.prototype.onValidChanged;Ut.prototype.onValueChanged=Ut.prototype.onValueChanged;Ut.prototype.handleBlur=Ut.prototype.handleBlur;Ut.prototype.handleInput=Ut.prototype.handleInput;Ut.prototype.handleKeyDown=Ut.prototype.handleKeyDown;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Ut.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],Ut.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Ut.prototype,"value",void 0);_.p([_.U(),_.P("design:type",Object)],Ut.prototype,"valid",void 0);_.p([_.U(),_.P("design:type",Object)],Ut.prototype,"userChangedValue",void 0);_.p([_.U(),_.P("design:type",Object)],Ut.prototype,"disabled",void 0);_.p([_.ZP("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],Ut.prototype,"handleKeyDown",null);
_.p([_.ZP("input"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ut.prototype,"handleInput",null);_.p([_.ZP("blur"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ut.prototype,"handleBlur",null);_.p([_.FY("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ut.prototype,"onValueChanged",null);
_.p([_.FY("valid"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ut.prototype,"onValidChanged",null);_.p([_.I({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Ut);
_.a(Ut,"ytd-clip-creation-text-input-renderer",function(){if(u0c!==void 0)return u0c;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return u0c=q},{mode:1});var z3c;var $r_;var t6x;var mre;var rDZ;var fn=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};q.pendingStoryboardImages_={};q.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];q.tickLabelInterval=30;q.mediumTickInterval=5;q.largeTickInterval=15;q.aboveRulerHeight=32;q.rulerHeight=50;q.smallTickHeight=4;q.mediumTickHeight=8;q.largeTickHeight=16;q.mediaListeners_=
{};return q};
_.Y(fn,_.C);_.g=fn.prototype;_.g.attached=function(){var q=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(N){N=_.Z(["screen and (min-resolution: "+N+")","screen and (max-resolution: "+N+")"]);for(var b=N.next();!b.done;b=N.next()){b=b.value;var y=window.matchMedia(b);y&&(q.mediaListeners_[b]=q.updatePixelRatio_.bind(q),y.addEventListener?y.addEventListener("change",q.mediaListeners_[b]):y.addListener?y.addListener(q.mediaListeners_[b]):delete q.mediaListeners_[b])}})};
_.g.detached=function(){this.setPlayer(null);for(var q=_.Z(Object.keys(this.mediaListeners_)),N=q.next();!N.done;N=q.next()){var b=N.value;N=this.mediaListeners_[b];(b=window.matchMedia(b))&&(b.removeEventListener?b.removeEventListener("change",N):b.removeListener&&b.removeListener(N))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.g.onVisibilityChangedAction_=function(q){var N=this;q.visible&&!this.player_&&(q=_.Pk())&&q.getPlayerPromise().then(function(b){N.setPlayer(b)})};
_.g.setPlayer=function(q){q&&this.set("player_",q)};
_.g.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.g.setUpCanvas_=function(){var q=this.rulerWidth,N=this.devicePixelRatio_,b=this.visible;this.set("canvasReady_",!1);if(b&&N!==0){b=this.aboveRulerHeight+this.rulerHeight;var y=_.ee(this.hostElement).querySelector("#ticks");y.width=q*N;y.height=b*N;y.style.width=q+"px";y.style.height=b+"px";y.getContext("2d").scale(N,N);this.set("canvasReady_",!0)}};
_.g.drawRuler_=function(q,N,b,y,J,E,F,R,c,z,m,r){q&&b&&N&&(q=_.ee(this.hostElement).querySelector("#ticks"),N=q.getContext("2d"),N.clearRect(0,0,q.width,q.height),N.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),N.lineWidth=2,N.beginPath(),N.moveTo(0,this.aboveRulerHeight),N.lineTo(q.width,this.aboveRulerHeight),N.moveTo(0,q.height),N.lineTo(q.width,q.height),N.stroke(),this.drawRulerTicks_(q,E,J,y),this.drawStoryboardImages_(q,b,E,J,y),N.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
N.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(F-E,y,!1),this.rulerHeight),b=this.timeToPixels_(R-E,y,!1),N.fillRect(b,this.aboveRulerHeight,q.width-b,this.rulerHeight),this.drawSpeedLines_(q,E,r))};
_.g.drawRulerTicks_=function(q,N,b,y){var J=q.getContext("2d");J.save();J.lineWidth=1;for(var E=Math.floor(Math.max(0,N-this.tickLabelInterval));E<N+b;E++){J.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var F=(E-N)*y;J.beginPath();J.moveTo(F,q.height);var R=this.smallTickHeight;E%this.largeTickInterval===0?R=this.largeTickHeight:E%this.mediumTickInterval===0&&(R=this.mediumTickHeight);J.lineTo(F,q.height-R);J.stroke();E%this.tickLabelInterval===0&&(J.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),J.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),J.fillText(DX(E),F+4,12),J.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),J.moveTo(F,0),J.lineTo(F,this.aboveRulerHeight),J.stroke())}J.restore()};
_.g.percentToHex_=function(q){q=Math.round(q*255).toString(16);q.length<2&&(q="0"+q);return q};
_.g.drawSpeedLines_=function(q,N,b){var y=q.getContext("2d");y.save();var J=Math.min(25,Math.abs(b)-15)/25,E=q.width*.3*J,F=q.width*-.3,R=q.width*1.3,c=this.aboveRulerHeight;q=q.height;var z=Math.round(4*J),m=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");m.length<7&&(m="#"+m.substring(1,4).repeat(2));var r=this.percentToHex_(.5+J/2);r=m+r;m+="00";if(J>0)for(J=0;J<z;J++){var X=F+Math.random()*(R-F),V=c+Math.random()*(q-c),G=E+N%E,w=y.createLinearGradient(X,V,X+G,V);
b<0?(w.addColorStop(0,r),w.addColorStop(.4,r),w.addColorStop(.9,m)):(w.addColorStop(.1,m),w.addColorStop(.6,r),w.addColorStop(1,r));y.strokeStyle=w;y.lineWidth=1;y.beginPath();y.moveTo(X,V);y.lineTo(X+G,V);y.stroke()}y.restore()};
_.g.getStoryboardForTime_=function(q,N,b){b===void 0&&(b=N.getNumberOfStoryboardLevels()-1);q=N.getStoryboardFrameIndex(q,b);return N.getStoryboardFrame(q,b)};
_.g.drawStoryboardImages_=function(q,N,b,y,J){if(!this.disabled){q=q.getContext("2d");var E=this.getStoryboardForTime_(0,N);if(E){var F=E.width/E.columns;E=E.height/E.rows;var R=F/E,c=this.rulerHeight*R;c=this.tickLabelInterval*(R<this.tickLabelInterval*J/this.rulerHeight?1/Math.floor(this.tickLabelInterval*J/c):Math.round(c/(this.tickLabelInterval*J)));var z=c*J,m=this.rulerHeight,r=z/this.rulerHeight,X=Math.floor(Math.max(0,b-c));for(X-=X%c;X<b+y;X+=c){var V=this.getStoryboardForTime_(X,N),G=this.getPreloadedStoryboard_(V.url);
if(G){var w=(X-b)*J,D=this.aboveRulerHeight,k=V.column*F,f=V.row*E;if(R<r){var L=m/(z/R);V=F;L*=E;f+=(E-L)/2}else V=z/(m*R)*F,L=E,k+=(F-V)/2;q.drawImage(G,k,f,V,L,w,D,z,m)}else this.fetchStoryboardImage_(V)}}}};
_.g.getPreloadedStoryboard_=function(q){return this.storyboardImages_.find(function(N){if(N.src==q)return!0;var b=N.src.indexOf(q);return b!=-1&&b==N.src.length-q.length})};
_.g.fetchStoryboardImage_=function(q){var N=this,b=this.getPreloadedStoryboard_(q.url),y=this.pendingStoryboardImages_[q.url];b||y!==void 0||(b=new Promise(function(J){var E=new Image(q.width,q.height);E.src=q.url;E.onload=function(){J(E)};
E.onerror=function(){J(null)}}),this.pendingStoryboardImages_[q.url]=b,b.then(function(J){J&&N.push("storyboardImages_",J);
return J}).finally(function(){delete N.pendingStoryboardImages_[q.url]}))};
_.g.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.g.timeToPixels_=function(q,N,b){q*=N;return b===void 0||b?q+"px":q};
_.g.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
fn.prototype.drawRuler_=fn.prototype.drawRuler_;fn.prototype.setUpCanvas_=fn.prototype.setUpCanvas_;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],fn.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],fn.prototype,"ytRendererBehavior",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],fn.prototype,"start",void 0);_.p([_.U({value:30}),_.P("design:type",Number)],fn.prototype,"end",void 0);
_.p([_.U({value:!1}),_.P("design:type",Boolean)],fn.prototype,"visible",void 0);_.p([_.U(),_.P("design:type",Object)],fn.prototype,"player_",void 0);_.p([_.U(),_.P("design:type",Number)],fn.prototype,"tickSpacing",void 0);_.p([_.U(),_.P("design:type",Number)],fn.prototype,"windowSizeSec",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],fn.prototype,"rulerWidth",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],fn.prototype,"rulerShift",void 0);
_.p([_.U({value:!1}),_.P("design:type",Boolean)],fn.prototype,"canvasReady_",void 0);_.p([_.U({value:function(){return[]}}),
_.P("design:type",Array)],fn.prototype,"storyboardImages_",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],fn.prototype,"disabled",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],fn.prototype,"forceRender_",void 0);_.p([_.U({value:1}),_.P("design:type",Number)],fn.prototype,"devicePixelRatio_",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],fn.prototype,"windowSpeed",void 0);
_.p([_.FY("visible","devicePixelRatio_","rulerWidth"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fn.prototype,"setUpCanvas_",null);
_.p([_.FY("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.P("design:type",Function),_.P("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.P("design:returntype")],fn.prototype,"drawRuler_",null);_.p([_.Ok({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],fn);
_.a(fn,"yt-clip-creation-scrubber-canvas",function(){if(rDZ===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);rDZ=q}q=rDZ;return q},
{mode:2});var XKB;var V6s;var Cn=function(){var q=_.C.apply(this,arguments)||this;q.start=0;q.end=30;q.visible=!1;q.draggingLeft_=!1;q.draggingRight_=!1;q.draggingRuler_=!1;q.draggingWindow_=!1;q.seekableStart=0;q.seekableEnd=0;q.rulerWidth_=0;q.rulerShift_=0;q.windowSlideSpeed=0;q.disabled=!1;q.initialized=!1;q.durationAccessibilityLabel="";q.activeLoopRange_=!1;q.rulerDragMouseStart_=0;q.rulerDragRulerStart_=0;q.rulerDragStartTime_=0;q.rulerDragEndTime_=0;q.dragMouseLastX_=0;q.scrollInterval_=null;q.scrubberVe_=null;q.boundHandlers_=
{};q.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return q};
_.Y(Cn,_.C);_.g=Cn.prototype;
_.g.created=function(){var q=this;this.JSC$23143_playerEvents=new Map;this.JSC$23143_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$23143_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$23143_playerEvents.set("onStateChange",this.onStateChange_);var N={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(N).forEach(function(b){q.boundHandlers_[b]=N[b].bind(q)})};
_.g.attached=function(){this.activeLoopRange_=!1;_.ee(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.ee(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.bx(156731)};
_.g.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.ee(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.ee(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.g.onVisibilityChangedAction_=function(q){var N=this;q.visible&&!this.player_&&(q=_.Pk())&&q.getPlayerPromise().then(function(b){N.setPlayer(b)})};
_.g.setPlayer=function(q){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23143_playerEvents);q&&(this.set("player_",q),this.ytPlayerListenerBehavior.listenToPlayerEvents(q,this.JSC$23143_playerEvents))};
_.g.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.g.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.g.beginHandleDrag_=function(q){this.disabled||(q.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=q.clientX,q.target===_.ee(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():q.target===_.ee(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.g.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.g.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.g.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.g.beginRulerDrag_=function(q){this.disabled||(q.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=q.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.g.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.g.beginWindowScroll_=function(){var q=this;this.scrollInterval_=setInterval(function(){var N=q.windowSlideSpeed;if(N=_.TEB(q.start,q.boundedRulerStartLimit_())?N-.1:_.TEB(q.end,q.boundedRulerEndLimit_())?N+.1:0){var b=q.capRulerOffset_(q.rulerShift_+N);b==q.rulerShift_?N=0:(q.set("rulerShift_",b),_.e2(q.hostElement,"set-fixed-length-range",{start:q.start+N,duration:q.end-q.start}))}q.set("windowSlideSpeed",N)},33)};
_.g.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.g.endDrag_=function(){this.logClick();var q=void 0;this.draggingRight_?q=this.end-1:this.draggingLeft_&&(q=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,q);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))};
_.g.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.g.updateRulerSize_=function(){this.set("rulerWidth_",_.ee(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.g.handleMouseDrag_=function(q){q.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(q):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(q):this.draggingWindow_&&this.handleWindowDrag_(q))};
_.g.handleRulerDrag_=function(q){q=this.pixelsToTime_(q.clientX-this.rulerDragMouseStart_);q=this.capRulerOffset_(this.rulerDragRulerStart_-q);this.set("rulerShift_",q);var N=this.rulerDragStartTime_-(this.rulerDragRulerStart_-q);_.e2(this.hostElement,"set-fixed-length-range",{start:N,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-q)-N})};
_.g.handleWindowDrag_=function(q){var N=q.clientX-this.dragMouseLastX_;this.dragMouseLastX_=q.clientX;q=this.pixelsToTime_(N);_.e2(this.hostElement,"set-fixed-length-range",{start:this.start+q,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.g.capRulerOffset_=function(q){var N=this.seekableStart-this.pixelsToTime_(16),b=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(N,q),b)};
_.g.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.g.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.g.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.g.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.g.handleWindowHandleDrag_=function(q){var N=q.clientX-this.dragMouseLastX_;this.dragMouseLastX_=q.clientX;q=this.pixelsToTime_(N);if(this.draggingLeft_){var b=this.start+q;var y=this.end}else this.draggingRight_&&(b=this.start,y=this.end+q);_.e2(this.hostElement,"set-range",{start:b,end:y,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.g.onVideoProgress_=function(q){this.disabled||(q=this.timeToPixels_(q-this.rulerShift_,this.tickSpacing_),_.ee(this.hostElement).querySelector("#playhead").style.transform="translateX("+q+")")};
_.g.onClipCreationDisable_=function(){this.endDrag_()};
_.g.timeToPixels_=function(q,N,b){q*=N;return b===void 0||b?q+"px":q};
_.g.pixelsToTime_=function(q){return q/this.tickSpacing_};
_.g.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.g.centerRuler_=function(q,N,b){this.set("rulerShift_",this.capRulerOffset_(q+(N-q)/2-b/2))};
_.g.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.g.updateLoopRange_=function(q,N,b,y,J,E,F){q&&(N&&y&&!b?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(q.pauseVideo(),q.seekTo(J,!1,void 0,void 0,50)):this.draggingRight_?(q.pauseVideo(),q.seekTo(E-.1,!1,void 0,void 0,50)):(F!==void 0?q.seekTo(F,!0,void 0,void 0,50):(N=q.getCurrentTime(),N<J||N>E?q.seekTo(J,!0,void 0,void 0,50):q.seekTo(N,!0,void 0,void 0,50)),q.playVideo()),q.setLoopRange({startTimeMs:J*1E3,endTimeMs:E*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(q.getCurrentTime())):
this.activeLoopRange_&&(q.setLoopRange(null),this.activeLoopRange_=!1))};
_.g.updateHandles_=function(){_.ee(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.ee(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.g.updateRuler_=function(){var q=this.end,N=this.start,b=this.draggableStartLimit_(),y=this.draggableEndLimit_();(N<b-.001||q>y+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.g.computeDurationLabel_=function(q,N){return q?q.replace("$clip_length",parseFloat(N).toFixed(1)):""};
_.g.computeDuration_=function(q,N){return this.isValidTime_(q)&&this.isValidTime_(N)&&q<N?N-q:0};
_.g.isValidTime_=function(q){return isNaN(parseFloat(q))||q<0?!1:this.player_?q>=this.seekableStart&&q<=this.seekableEnd:!0};
_.g.computeWindowSizeSec_=function(q,N,b){return Math.min((q||12E4)/1E3,b-N)};
_.g.computeTickSpacing_=function(q,N){return N?N/q:1};
_.g.onDragStateChanged_=function(){_.e2(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.g.centerRangeOnTime_=function(q){var N=this.duration;q=iIc(q-N/2,N,this.seekableStart,this.seekableEnd);_.e2(this.hostElement,"set-fixed-length-range",{start:q.start,duration:q.end-q.start})};
_.g.nearlyLessThan_=function(q,N,b){return q+(b===void 0?1E-6:b)<N};
_.g.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var q=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(q,this.start)||this.nearlyLessThan_(this.end,q))&&this.centerRangeOnTime_(q)}};
_.g.onStateChange_=function(q){this.visible&&!this.disabled&&q==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.g.computeDragState_=function(q,N,b,y){return q?"left":N?"right":b?"ruler":y?"window":"none"};
_.g.logClick=function(){var q=_.Oe(),N=_.QY();q&&N&&this.scrubberVe_&&(_.x("combine_ve_grafts")?_.hI(_.FR(),this.scrubberVe_,N):_.fr(q,N,this.scrubberVe_),_.nr(q,this.scrubberVe_))};
Cn.prototype.onDragStateChanged_=Cn.prototype.onDragStateChanged_;Cn.prototype.updateRuler_=Cn.prototype.updateRuler_;Cn.prototype.updateHandles_=Cn.prototype.updateHandles_;Cn.prototype.onUpdateLoopRange=Cn.prototype.onUpdateLoopRange;Cn.prototype.onInitializedChanged_=Cn.prototype.onInitializedChanged_;Cn.prototype.onVisibleChanged_=Cn.prototype.onVisibleChanged_;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Cn.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.O(_.d2.YtPlayerListenerBehavior),_.P("design:type",Object)],Cn.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Cn.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Cn.prototype,"start",void 0);_.p([_.U(),_.P("design:type",Object)],Cn.prototype,"end",void 0);_.p([_.U({computed:"computeDuration_(start, end)"}),_.P("design:type",Number)],Cn.prototype,"duration",void 0);
_.p([_.U(),_.P("design:type",String)],Cn.prototype,"lengthTemplate",void 0);_.p([_.U({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.P("design:type",String)],Cn.prototype,"durationLabel",void 0);_.p([_.U(),_.P("design:type",Object)],Cn.prototype,"visible",void 0);_.p([_.U(),_.P("design:type",Object)],Cn.prototype,"player_",void 0);_.p([_.U(),_.P("design:type",Object)],Cn.prototype,"draggingLeft_",void 0);_.p([_.U(),_.P("design:type",Object)],Cn.prototype,"draggingRight_",void 0);
_.p([_.U(),_.P("design:type",Object)],Cn.prototype,"draggingRuler_",void 0);_.p([_.U({value:!1}),_.P("design:type",Object)],Cn.prototype,"draggingWindow_",void 0);_.p([_.U({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.P("design:type",Number)],Cn.prototype,"tickSpacing_",void 0);_.p([_.U(),_.P("design:type",Object)],Cn.prototype,"seekableStart",void 0);_.p([_.U(),_.P("design:type",Object)],Cn.prototype,"seekableEnd",void 0);
_.p([_.U(),_.P("design:type",Number)],Cn.prototype,"windowSizeMs",void 0);_.p([_.U({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.P("design:type",Number)],Cn.prototype,"windowSizeSec_",void 0);_.p([_.U(),_.P("design:type",Object)],Cn.prototype,"rulerWidth_",void 0);_.p([_.U(),_.P("design:type",Object)],Cn.prototype,"rulerShift_",void 0);_.p([_.U(),_.P("design:type",Object)],Cn.prototype,"windowSlideSpeed",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Cn.prototype,"disabled",void 0);_.p([_.U(),_.P("design:type",Object)],Cn.prototype,"initialized",void 0);_.p([_.U(),_.P("design:type",Object)],Cn.prototype,"durationAccessibilityLabel",void 0);_.p([_.U({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.P("design:type",String)],Cn.prototype,"dragState",void 0);
_.p([_.FY("visible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cn.prototype,"onVisibleChanged_",null);_.p([_.FY("initialized"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cn.prototype,"onInitializedChanged_",null);_.p([_.FY("player_","visible","disabled","initialized","start","end"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cn.prototype,"onUpdateLoopRange",null);
_.p([_.FY("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cn.prototype,"updateHandles_",null);_.p([_.FY("start","end"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cn.prototype,"updateRuler_",null);
_.p([_.FY("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cn.prototype,"onDragStateChanged_",null);_.p([_.Ok({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],Cn);
_.a(Cn,"yt-clip-creation-scrubber-view",function(){if(V6s===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;XKB===void 0&&(XKB=document.createElement("template"));var y=XKB;b.call(N,y.content.cloneNode(!0),q.content.firstChild);V6s=q}q=V6s;return q},{mode:2});var IT=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};q.startHighlightTimeout=0;q.endHighlightTimeout=0;return q};
_.Y(IT,_.C);_.g=IT.prototype;_.g.attached=function(){var q=this;this.startInput.addEventListener("input",function(N){return q.handleStartInput_(N)});
this.endInput.addEventListener("input",function(N){return q.handleEndInput_(N)});
this.startInput.addEventListener("focusout",function(N){return q.handleStartBlur_(N)});
this.endInput.addEventListener("focusout",function(N){return q.handleEndBlur_(N)})};
_.g.setPlayer=function(q){this.set("player_",q)};
_.g.onSetFixedLengthRange_=function(q){var N=q.detail;q=N.start;var b=N.duration,y=N.startLimit;N=N.endLimit;y||(y=this.seekableStart_);N||(N=this.seekableEnd_);q=iIc(q,b,y,N);this.start=q.start;this.end=q.end};
_.g.onSetRange_=function(q){var N=q.detail;q=N.start;var b=N.end,y=N.startLimit;N=N.endLimit;y||(y=this.seekableStart_);N||(N=this.seekableEnd_);if(q=l$v(q,b,y,N,this.minLengthSec,this.maxLengthSec))this.start=q.start,this.end=q.end};
_.g.updateInputs_=function(){var q=this.end,N=this.start;this.startInput.focused||(this.startInput.value=DX(N,!0));this.endInput.focused||(this.endInput.value=DX(q,!0))};
_.g.handleStartInput_=function(q){q=wCB(q.target.value);if(q===null)this.set("startValid",!1);else{var N=this.end,b=l$v(q,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);b?(this.set("endWillUpdate",b.end!==N),this.set("startValid",b.start===q)):this.set("startValid",!1)}};
_.g.handleEndInput_=function(q){q=wCB(q.target.value);if(q===null)this.set("endValid",!1);else{var N=this.start,b=KTB(this.start,q,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);b?(this.set("startWillUpdate",b.start!==N),this.set("endValid",b.end===q)):this.set("endValid",!1)}};
_.g.handleStartBlur_=function(q){q=wCB(q.target.value);q===null?this.startInput.value=DX(this.start,!0):this.forceUpdateInputs_(l$v(q,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.g.handleEndBlur_=function(q){q=wCB(q.target.value);q===null?this.endInput.value=DX(this.end,!0):this.forceUpdateInputs_(KTB(this.start,q,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.g.forceUpdateInputs_=function(q){q&&(this.start=q.start,this.end=q.end);this.startInput.value=DX(this.start,!0);this.endInput.value=DX(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.g.initializeClipRange_=function(){var q=this.seekableEnd_,N=this.seekableStart_,b=this.visible_,y=this.player_;if(!y||!b||N===null||!q)this.set("initialized",!1);else if(!this.initialized){var J=y.getCurrentTime(),E=this.getDefaultLengthSec_();b=y.getVideoData();var F=y.getPlayerState()==1,R=b.isLive;E=Math.min(E,q-N);J=Math.max(0,J);q=R?KTB(J-E,J,N,q,this.minLengthSec,this.maxLengthSec):F?iIc(J-E/2,E,N,q):iIc(J,E,N,q);this.start=q.start;this.end=q.end;this.set("initialized",!0);b.isLive&&y.seekTo(q.start);
this.startInput.value=DX(this.start,!0);this.endInput.value=DX(this.end,!0)}};
_.g.onStartChanged_=function(){var q=this;_.e2(this.hostElement,"start-changed",{start:this.start});var N;isNaN((N=this.oldStart)!=null?N:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){q.set("highlightStart",!1);q.startHighlightTimeout=0;q.oldStart=q.start},3E3))};
_.g.onEndChanged_=function(){var q=this;_.e2(this.hostElement,"end-changed",{end:this.end});var N;isNaN((N=this.oldEnd)!=null?N:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){q.set("highlightEnd",!1);q.endHighlightTimeout=0;q.oldEnd=q.end},3E3))};
_.g.onVisibilityChangedAction_=function(q){var N=this;this.set("visible_",q.visible);this.visible_&&!this.player_&&(q=_.Pk())&&q.getPlayerPromise().then(function(b){N.setPlayer(b)})};
_.g.computeMinLengthSec_=function(q){return q/1E3||5};
_.g.computeMaxLengthSec_=function(q){return q/1E3||60};
_.g.computeDefaultLengthSec_=function(q){return q/1E3};
_.g.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.g.computeSeekableStart_=function(q,N){return q&&N?q.getProgressState(1).seekableStart:0};
_.g.computeSeekableEnd_=function(q,N){return q&&N?q.getProgressState(1).seekableEnd:0};
_.g.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.g.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.g.onDragState_=function(q){this.set("highlightStart",q.detail.startChanging);this.set("highlightEnd",q.detail.endChanging)};
IT.prototype.onDragState_=IT.prototype.onDragState_;IT.prototype.onEndChanged_=IT.prototype.onEndChanged_;IT.prototype.onStartChanged_=IT.prototype.onStartChanged_;IT.prototype.initializeClipRange_=IT.prototype.initializeClipRange_;IT.prototype.updateInputs_=IT.prototype.updateInputs_;IT.prototype.onSetRange_=IT.prototype.onSetRange_;IT.prototype.onSetFixedLengthRange_=IT.prototype.onSetFixedLengthRange_;
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],IT.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],IT.prototype,"data",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],IT.prototype,"start",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],IT.prototype,"startValid",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],IT.prototype,"startWillUpdate",void 0);_.p([_.U({value:30}),_.P("design:type",Number)],IT.prototype,"end",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],IT.prototype,"endValid",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],IT.prototype,"endWillUpdate",void 0);_.p([_.U({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.P("design:type",Number)],IT.prototype,"minLengthSec",void 0);
_.p([_.U({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.P("design:type",Number)],IT.prototype,"maxLengthSec",void 0);_.p([_.U({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.P("design:type",Number)],IT.prototype,"defaultLengthSec",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],IT.prototype,"visible_",void 0);_.p([_.U(),_.P("design:type",Object)],IT.prototype,"player_",void 0);
_.p([_.U({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.P("design:type",Number)],IT.prototype,"seekableStart_",void 0);_.p([_.U({computed:"computeSeekableEnd_(player_, visible_)"}),_.P("design:type",Number)],IT.prototype,"seekableEnd_",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],IT.prototype,"initialized",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],IT.prototype,"disabled",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],IT.prototype,"highlightStart",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],IT.prototype,"highlightEnd",void 0);_.p([_.dq("#start"),_.P("design:type",HTMLInputElement)],IT.prototype,"startInput",void 0);_.p([_.dq("#end"),_.P("design:type",HTMLInputElement)],IT.prototype,"endInput",void 0);
_.p([_.ZP("set-fixed-length-range"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],IT.prototype,"onSetFixedLengthRange_",null);_.p([_.ZP("set-range"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],IT.prototype,"onSetRange_",null);_.p([_.FY("start","end"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IT.prototype,"updateInputs_",null);
_.p([_.FY("player_","visible_","seekableStart_","seekableEnd_"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IT.prototype,"initializeClipRange_",null);_.p([_.FY("start"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IT.prototype,"onStartChanged_",null);_.p([_.FY("end"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IT.prototype,"onEndChanged_",null);
_.p([_.ZP("clips-drag-state"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],IT.prototype,"onDragState_",null);_.p([_.Ok({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],IT);
_.a(IT,"yt-clip-creation-scrubber-renderer",function(){if(mre===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;t6x===void 0&&(t6x=document.createElement("template"));var y=t6x;b.call(N,y.content.cloneNode(!0),q.content.firstChild);mre=q}q=mre;return q},{mode:2});var Tx=function(){var q=_.C.apply(this,arguments)||this;q.player_=null;q.JSC$23157_playerEvents=new Map;q.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return q};
_.Y(Tx,_.C);_.g=Tx.prototype;_.g.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"}}}};
_.g.created=function(){this.JSC$23157_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$23157_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$23157_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$23157_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.g.detached=function(){this.setPlayer(null)};
_.g.onVisibilityChangedAction_=function(q){var N=this,b;if((b=this.data)==null?0:b.externalVideoId){var y;this.videoId=(y=this.data)==null?void 0:y.externalVideoId}this.getPlayer().then(function(J){if(q.visible)N.returnTime=J.getCurrentTime(),N.isAtLiveHead=J.getProgressState().isAtLiveHead;else{var E=N.returnTime;N.isAtLiveHead&&(E=Number.POSITIVE_INFINITY);J.seekTo(E,void 0,void 0,void 0,51)}})};
_.g.getPlayer=function(){var q=this;if(!this.player_){var N=_.Pk();if(N)return N.getPlayerPromise().then(function(b){q.setPlayer(b);return b})}return Promise.resolve(this.player_)};
_.g.setPlayer=function(q){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23157_playerEvents);if(q){this.player_=q;var N;((N=this.data)==null?0:N.externalVideoId)||this.set("videoId",q.getVideoData().video_id||"");var b;(q==null?void 0:(b=q.getPresentingPlayerType)==null?void 0:b.call(q))===2&&(this.set("isAdPlaying",!0),_.By(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(q,this.JSC$23157_playerEvents)}};
_.g.ready=function(){_.ee(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.g.onTitleChanged_=function(q){this.set("titleValue",q.detail.title)};
_.g.onStartChanged_=function(q){this.set("start",q.detail.start)};
_.g.onEndChanged_=function(q){this.set("end",q.detail.end)};
_.g.onTitleValidChanged_=function(q){this.set("titleValid",q.detail.valid)};
_.g.onStartValidChanged_=function(q){this.set("startValid",q.detail.valid)};
_.g.onEndValidChanged_=function(q){this.set("endValid",q.detail.valid)};
_.g.onVideoDataChange_=function(){var q;if((q=this.data)==null||!q.externalVideoId){var N;this.set("videoId",((N=this.player_)==null?void 0:N.getVideoData().video_id)||"")}};
_.g.computeFormValid_=function(q,N,b,y){return!!(q&&N&&b&&y)};
_.g.computeCancelButton_=function(q,N,b){return q&&_.v(q,_.JI)?{buttonRenderer:Object.assign({},_.v(q,_.JI),{isDisabled:N||b})}:null};
_.g.computeSubmitButton_=function(q,N,b){return q&&_.v(q,_.JI)?{buttonRenderer:Object.assign({},_.v(q,_.JI),{command:void 0,isDisabled:!this.formValid||N||b})}:null};
_.g.computeSubmitCommand_=function(q){return q||null};
_.g.onSubmit_=function(q){var N=this;q.stopPropagation();q.preventDefault();this.submitCommand_&&(q={},q.comment_text=this.titleValue,q.clip_external_video_id=this.videoId,q.clip_offset_ms=parseInt(this.start*1E3,10),q.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.qc(this.hostElement,[this.submitCommand_,q]).then(function(){N.set("isLoading_",!1)},function(){N.set("isLoading_",!1)}))};
_.g.playerAdStartHandler_=function(){_.By(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.g.playerAdEndHandler_=function(){_.By(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.g.onVideoProgress_=function(){var q=this;this.getPlayer().then(function(N){var b,y=(N==null?void 0:(b=N.getPresentingPlayerType)==null?void 0:b.call(N))===2;q.isAdPlaying!==y&&(y?q.playerAdStartHandler_():q.playerAdEndHandler_())})};
Tx.prototype.onEndValidChanged_=Tx.prototype.onEndValidChanged_;Tx.prototype.onStartValidChanged_=Tx.prototype.onStartValidChanged_;Tx.prototype.onTitleValidChanged_=Tx.prototype.onTitleValidChanged_;Tx.prototype.onEndChanged_=Tx.prototype.onEndChanged_;Tx.prototype.onStartChanged_=Tx.prototype.onStartChanged_;Tx.prototype.onTitleChanged_=Tx.prototype.onTitleChanged_;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Tx.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.O(_.d2.YtPlayerListenerBehavior),_.P("design:type",Object)],Tx.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Tx.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Tx.prototype,"data",void 0);_.p([_.U({value:""}),_.P("design:type",String)],Tx.prototype,"titleValue",void 0);
_.p([_.U({value:!1}),_.P("design:type",Boolean)],Tx.prototype,"titleValid",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],Tx.prototype,"start",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],Tx.prototype,"startValid",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],Tx.prototype,"end",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],Tx.prototype,"endValid",void 0);_.p([_.U({value:""}),_.P("design:type",String)],Tx.prototype,"videoId",void 0);
_.p([_.U({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.P("design:type",Boolean)],Tx.prototype,"formValid",void 0);_.p([_.U({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.P("design:type",Object)],Tx.prototype,"submitButton_",void 0);_.p([_.U({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.P("design:type",Object)],Tx.prototype,"submitCommand_",void 0);
_.p([_.U({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.P("design:type",Object)],Tx.prototype,"cancelButton_",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],Tx.prototype,"isLoading_",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Tx.prototype,"isAdPlaying",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],Tx.prototype,"returnTime",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],Tx.prototype,"isAtLiveHead",void 0);
_.p([_.ZP("title-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Tx.prototype,"onTitleChanged_",null);_.p([_.ZP("start-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Tx.prototype,"onStartChanged_",null);_.p([_.ZP("end-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Tx.prototype,"onEndChanged_",null);
_.p([_.ZP("title-valid-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Tx.prototype,"onTitleValidChanged_",null);_.p([_.ZP("start-valid-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Tx.prototype,"onStartValidChanged_",null);_.p([_.ZP("end-valid-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Tx.prototype,"onEndValidChanged_",null);
_.p([_.Ok({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Tx);
_.a(Tx,"yt-clip-creation-renderer",function(){if($r_===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;z3c===void 0&&(z3c=document.createElement("template"));var y=z3c;b.call(N,y.content.cloneNode(!0),q.content.firstChild);$r_=q}q=$r_;return q},{mode:2});var st=function(){return _.C.apply(this,arguments)||this};
_.Y(st,_.C);st.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"}}}};
st.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(q){return q.hasOwnProperty("clipCreationRenderer")})&&_.By(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
st.prototype.onPanelContentVisibleChanged=st.prototype.onPanelContentVisibleChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],st.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.yf.YtVisibilityBehavior),_.P("design:type",Object)],st.prototype,"ytVisibilityBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],st.prototype,"ytdReduxBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],st.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],st.prototype,"panelContentVisible",void 0);_.p([_.FY("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],st.prototype,"onPanelContentVisibleChanged",null);_.p([_.I({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],st);
_.a(st,"ytd-clip-section-renderer",function(){if(R3e!==void 0)return R3e;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return R3e=q},{mode:1});var jCy;var nn=function(){return _.C.apply(this,arguments)||this};
_.Y(nn,_.C);_.g=nn.prototype;
_.g.onKeyDown=function(q){if(this.snippetElements.length!==0&&(q=q.keyCode,q===38||q===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);q===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Od(this.highlightedIndex,-1,this.snippetElements.length);q=this.snippetElements.length;var N=this.highlightedIndex%q;this.highlightedIndex=N*q<0?N+q:N;q=this.snippetElements[this.highlightedIndex];this.highlightSnippet(q);this.ensureVisible(q)}};
_.g.onKeyUp=function(q){var N=this;X4Z(q)&&(q.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.pY.cancelJob(this.inputTimerId),this.inputTimerId=_.pY.addLowPriorityJob(function(){N.typedValue&&(N.fetchSnippets(N.typedValue),N.logInputGesture(N.data))},1E3))};
_.g.onClick=function(q){(q=_.Tzx(q.target,null,"snippet-item"))&&this.selectSnippet(q)};
_.g.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.g.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.g.ready=function(){var q=this;this.inputElement.addEventListener("focus",function(){q.snippetsWrapper.style.removeProperty("display")})};
_.g.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.g.getSourceTimelines=function(){if(!this.data)return[];var q=[];if(this.data.searchInVideoSources)for(var N=_.Z(this.data.searchInVideoSources),b=N.next();!b.done;b=N.next())b=b.value,b==="SEARCH_IN_VIDEO_SOURCE_ASR"?q.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):b==="SEARCH_IN_VIDEO_SOURCE_OCR"&&q.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return q};
_.g.fetchSnippets=function(q){var N=_.By(this.hostElement,"yt-get-current-video-id-action")[0],b=this.getSourceTimelines();q={getSearchInVideoCommand:{externalVideoId:N,query:q!=null?q:"",sourceTimelines:b},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.tz().resolve(_.rO).resolveCommand(q,{form:{element:this.hostElement}})};
_.g.filterSnippets=function(q,N){var b=this;if(N){this.filteredSnippets=(0,_.nM.unsafeClone)(q);var y=RegExp(_.w7A(N),"i");this.filteredSnippets=this.filteredSnippets.filter(function(F){return y.test(b.ytRendererBehavior.getSimpleString(F.snippet))});
q=_.Z(this.filteredSnippets);for(var J=q.next();!J.done;J=q.next()){J=J.value;var E=this.ytRendererBehavior.getSimpleString(J.snippet);J.snippet={runs:[{text:E.substring(0,E.toLowerCase().indexOf(N))},{text:E.substring(E.toLowerCase().indexOf(N),E.toLowerCase().indexOf(N)+N.length),bold:!0},{text:E.substring(E.toLowerCase().indexOf(N)+N.length,E.length)}]}}}else this.filteredSnippets=q};
_.g.onUpdateSearchInVideoResults=function(q){if(!(this.snippets.length>0)){var N,b,y;if((y=(N=_.v(q,Dgx))==null?void 0:(b=N.results)==null?void 0:b.length)!=null&&y){var J;this.filteredSnippets=this.snippets=((J=_.v(q,Dgx))==null?void 0:J.results).map(function(E){var F,R,c;return{startMs:E==null?void 0:(F=E.searchInVideoResultRenderer)==null?void 0:F.startMs,startTimeText:E==null?void 0:(R=E.searchInVideoResultRenderer)==null?void 0:R.startTimeText,snippet:E==null?void 0:(c=E.searchInVideoResultRenderer)==
null?void 0:c.snippet}})}}};
_.g.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};
_.g.highlightSnippet=function(q){q.classList.add("highlighted")};
_.g.removeSnippetHighlight=function(q){q.classList.remove("highlighted")};
_.g.selectSnippet=function(q){this.typedValue=String(q.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(q);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.g.ensureVisible=function(q){var N=this.snippetsWrapper.scrollTop,b=N+this.snippetsWrapper.clientHeight,y=q.offsetTop-this.snippetsWrapper.offsetTop;q=y+q.clientHeight;y<N?this.snippetsWrapper.scrollTop-=N-y:q>b&&(this.snippetsWrapper.scrollTop+=q-b)};
_.g.seekPlayer=function(q){var N,b;return _.d(function(y){if(y.nextAddress==1){if(!q)return y.jumpTo(0);N=Number(q.dataset.startOffset);return y.yield(_.MO().getPlayerPromise(),3)}b=y.yieldResult;b.seekTo(N/1E3,!0);b.wakeUpControls();_.hj(y)})};
_.g.logInputGesture=function(q){var N=_.Oe();N&&(q==null?0:q.trackingParams)&&_.a5(N,_.zT(q.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.g.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("typed-value-changed",this.typedValue))};
_.g.updateTypedValueFromBinding=function(q){this.typedValue=q.currentTarget.value};
nn.prototype.typedValueChangedForBinding=nn.prototype.typedValueChangedForBinding;nn.prototype.dataChanged=nn.prototype.dataChanged;nn.prototype.panelContentVisibleChanged=nn.prototype.panelContentVisibleChanged;nn.prototype.onClick=nn.prototype.onClick;nn.prototype.onKeyUp=nn.prototype.onKeyUp;nn.prototype.onKeyDown=nn.prototype.onKeyDown;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],nn.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],nn.prototype,"data",void 0);_.p([_.U({value:[]}),_.P("design:type",Array)],nn.prototype,"snippets",void 0);_.p([_.U({value:[]}),_.P("design:type",Array)],nn.prototype,"filteredSnippets",void 0);_.p([_.U({value:[]}),_.P("design:type",Array)],nn.prototype,"snippetElements",void 0);
_.p([_.dq("#siv-input"),_.P("design:type",HTMLElement)],nn.prototype,"inputElement",void 0);_.p([_.dq("#siv-snippets-wrapper"),_.P("design:type",HTMLElement)],nn.prototype,"snippetsWrapper",void 0);_.p([_.U(),_.P("design:type",String)],nn.prototype,"typedValue",void 0);_.p([_.U({value:-1}),_.P("design:type",Number)],nn.prototype,"highlightedIndex",void 0);_.p([_.ZP("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[_.v2]),_.P("design:returntype")],nn.prototype,"onKeyDown",null);
_.p([_.ZP("keyup"),_.P("design:type",Function),_.P("design:paramtypes",[_.v2]),_.P("design:returntype")],nn.prototype,"onKeyUp",null);_.p([_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],nn.prototype,"onClick",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],nn.prototype,"panelContentVisible",void 0);
_.p([_.FY("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nn.prototype,"panelContentVisibleChanged",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nn.prototype,"dataChanged",null);_.p([_.FY("typedValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nn.prototype,"typedValueChangedForBinding",null);
_.p([_.I({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],nn);
_.a(nn,"ytd-search-in-video-renderer",function(){if(jCy!==void 0)return jCy;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return jCy=q},{mode:1});var xrc;var aT=function(){return _.C.apply(this,arguments)||this};
_.Y(aT,_.C);aT.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
aT.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]]"}}}}}};
aT.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var q,N,b,y,J=(N=_.v((q=this.data)==null?void 0:q.onClickCommand,_.lL1))==null?void 0:(b=N.item)==null?void 0:(y=b.notificationTextRenderer)==null?void 0:y.successResponseText;J&&_.$XR(this.hostElement,J)}};
_.$H.Object.defineProperties(aT.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var q,N,b,y;return this.isProductPlaceholder&&((q=this.data)==null?void 0:(N=q.hiddenProductOptions)==null?void 0:N.showDropCountdown)&&!!((b=this.data)==null?0:(y=b.hiddenProductOptions)==null?0:y.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var q;return!this.isProductPlaceholder&&!((q=this.data)==null?0:q.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var q,N;return!((q=this.data)==null?0:q.priceReplacementText)&&!((N=this.data)==null||!N.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],aT.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],aT.prototype,"componentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],aT.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],aT.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.l("isProductPlaceholder"),_.P("design:type",Object),_.P("design:paramtypes",[])],aT.prototype,"useCenterLayoutContainer",null);_.p([_.U({computed:"computeButtonOverride(data)"}),_.P("design:type",Object)],aT.prototype,"buttonOverride",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],aT.prototype,"isProductPlaceholder",null);
_.p([_.l("isProductPlaceholder"),_.P("design:type",Object),_.P("design:paramtypes",[])],aT.prototype,"showDropCountdown",null);_.p([_.l("isProductPlaceholder","data"),_.P("design:type",Object),_.P("design:paramtypes",[])],aT.prototype,"showBrandName",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],aT.prototype,"showPriceReplacementText",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],aT.prototype,"showPrice",null);
_.p([_.l("isProductPlaceholder"),_.P("design:type",Object),_.P("design:paramtypes",[])],aT.prototype,"showMetadata",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],aT);
_.a(aT,"ytd-product-list-item-renderer",function(){if(xrc!==void 0)return xrc;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return xrc=q},{mode:1});var vF_;var SH=function(){return _.C.apply(this,arguments)||this};
_.Y(SH,_.C);SH.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
SH.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
SH.prototype.panelContentVisibleChanged=function(){var q=this,N;return _.d(function(b){if(b.nextAddress==1)return q.playerApi?b.jumpTo(2):b.yield(_.MO().getPlayerPromise(),3);b.nextAddress!=2&&(q.playerApi=b.yieldResult);(N=q.playerApi)==null||N.productsInVideoVisibilityUpdated(!!q.panelContentVisible);_.hj(b)})};
SH.prototype.panelContentVisibleChanged=SH.prototype.panelContentVisibleChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],SH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],SH.prototype,"panelContentVisible",void 0);_.p([_.U(),_.P("design:type",Object)],SH.prototype,"data",void 0);
_.p([_.FY("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],SH.prototype,"panelContentVisibleChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],SH);
_.a(SH,"ytd-product-list-renderer",function(){if(vF_!==void 0)return vF_;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return vF_=q},{mode:1});var GhB;var Wo=function(){var q=_.C.apply(this,arguments)||this;q.hideTimestamps=!!_.XH("hide-transcript-timestamps");q.currentCueIndex=-1;q.flatCues=[];q.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};q.TEST_ONLY={getFlatCues:function(){return q.flatCues}};
return q};
_.Y(Wo,_.C);_.g=Wo.prototype;_.g.hideTimestampsChanged=function(){_.r5("hide-transcript-timestamps",this.hideTimestamps)};
_.g.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.g.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.g.dataChanged=function(){var q;if((q=this.data)!=null&&q.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;q=_.Z(this.data.cueGroups);for(var N=q.next();!N.done;N=q.next()){N=_.Z(_.v(N.value,hVx).cues);for(var b=N.next();!b.done;b=N.next())this.flatCues.push(Number(_.v(b.value,k1B).startOffsetMs))}}};
_.g.onYtPlayerTimeChanged=function(q){if(!(q<0)){for(var N=this.currentCueIndex,b=N;;){var y=b>=0?this.flatCues[b]/1E3:-1;if(q+.5<y)--b;else if(y=b+1<this.flatCues.length?this.flatCues[b+1]/1E3:Infinity,q+.5>y)b+=1;else break}b!==N&&(N>=0&&((q=this.getCueElement(N))&&q.classList.remove("active"),(N=this.getCueGroupElement(N))&&N.classList.remove("active")),(N=this.getCueElement(b))&&N.classList.add("active"),(N=this.getCueGroupElement(b))&&N.classList.add("active"),this.currentCueIndex=b,this.isHovered||
this.scrollElementToTop(b))}};
_.g.scrollElementToTop=function(q){q=this.getCueElement(q>=3?q-3:0);this.hostElement.scrollTop=Math.min(q.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.g.getCueElement=function(q){return _.ee(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[q]+'"]')};
_.g.getCueGroupElement=function(q){return(q=this.getCueElement(q))&&q.parentElement?q.parentElement.parentElement:null};
_.g.onTap=function(q){var N=_.a0(q);q.target.classList.contains("cue")&&this.seekCueElement(N)};
_.g.onKeyPress=function(q){q.keyCode==13&&(q=_.Tzx(q.target,null,"cue"))&&this.seekCueElement(q)};
_.g.seekCueElement=function(q){q=Number(q.getAttribute("start-offset"));_.By(this.hostElement,"yt-transcript-player-seek",[q/1E3])};
_.g.onMouseEnter=function(){this.isHovered=!0};
_.g.onMouseLeave=function(){this.isHovered=!1};
Wo.prototype.onMouseLeave=Wo.prototype.onMouseLeave;Wo.prototype.onMouseEnter=Wo.prototype.onMouseEnter;Wo.prototype.onKeyPress=Wo.prototype.onKeyPress;Wo.prototype.onTap=Wo.prototype.onTap;Wo.prototype.dataChanged=Wo.prototype.dataChanged;Wo.prototype.hideTimestampsChanged=Wo.prototype.hideTimestampsChanged;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Wo.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Wo.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Wo.prototype,"hideTimestamps",void 0);_.p([_.U(),_.P("design:type",Boolean)],Wo.prototype,"isHovered",void 0);_.p([_.FY("hideTimestamps"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Wo.prototype,"hideTimestampsChanged",null);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Wo.prototype,"dataChanged",null);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Wo.prototype,"onTap",null);_.p([_.ZP("keypress"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Wo.prototype,"onKeyPress",null);
_.p([_.ZP("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Wo.prototype,"onMouseEnter",null);_.p([_.ZP("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Wo.prototype,"onMouseLeave",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Wo);
_.a(Wo,"ytd-transcript-body-renderer",function(){if(GhB!==void 0)return GhB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return GhB=q},{mode:1});var YX_;var Ln=function(){var q=_.C.apply(this,arguments)||this;q.darkerPanels=_.x("web_watch_darker_panels");return q};
_.Y(Ln,_.C);Ln.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Ln.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ln.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Ln.prototype,"darkerPanels",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Ln);
_.a(Ln,"ytd-transcript-footer-renderer",function(){if(YX_!==void 0)return YX_;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return YX_=q},{mode:1});var QCB;var OQx;var pn=function(){var q=_.C.apply(this,arguments)||this;q.systemIcons=_.x("kevlar_system_icons");q.showClearButton=!1;return q};
_.Y(pn,_.C);_.g=pn.prototype;_.g.handleInput=function(q){var N=this;q.target.value.length?_.Uk(this,"ytdTranscriptSearchBoxSearch",function(){N.emitSearchEvent(q)},500):(_.vOD(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=q.target.value.length>0};
_.g.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.g.handleClick=function(){var q,N=(q=this.data)==null?void 0:q.trackingParams;N&&_.fm(_.FR(),N)};
_.g.handleClear=function(){_.vOD(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var q,N,b=(N=_.v((q=this.data)==null?void 0:q.clearButton,_.JI))==null?void 0:N.trackingParams;b&&_.fm(_.FR(),b);this.clear()};
_.g.emitSearchEvent=function(q){_.e2(this.hostElement,"yt-transcript-search-box-search",{query:q.target.value});var N,b;(q=(b=_.v((N=this.data)==null?void 0:N.searchButton,_.JI))==null?void 0:b.trackingParams)&&_.fm(_.FR(),q)};
_.g.emitClearEvent=function(){_.e2(this.hostElement,"yt-transcript-search-box-clear")};
_.$H.Object.defineProperties(pn.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.ee(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],pn.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],pn.prototype,"systemIcons",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],pn);
_.a(pn,"ytd-transcript-search-box-renderer",function(){if(OQx!==void 0)return OQx;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return OQx=q},{mode:1});var wKe;var iQB;var Po=function(){return _.C.apply(this,arguments)||this};
_.Y(Po,_.C);Po.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var q,N;this.sectionHeaderAriaLabel=(q=this.data)==null?void 0:(N=q.accessibility)==null?void 0:N.accessibilityData.label}};
Po.prototype.fireSelectedEvent=function(q){_.e2(this.hostElement,"ytd-transcript-section-header",{startMs:q})};
Po.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Po.prototype.handleKeyPress=function(q){this.data&&q.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.$H.Object.defineProperties(Po.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var q,N;return(N=(q=this.data)==null?void 0:q.enableTappableTranscriptHeader)!=null?N:!1}}});
Po.prototype.dataChanged=Po.prototype.dataChanged;_.p([_.U(),_.P("design:type",Object)],Po.prototype,"data",void 0);_.p([_.U(),_.P("design:type",String)],Po.prototype,"sectionHeaderAriaLabel",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Po.prototype,"enableTappableTranscriptHeader",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Po.prototype,"dataChanged",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Po);
_.a(Po,"ytd-transcript-section-header-renderer",function(){if(iQB!==void 0)return iQB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return iQB=q},{mode:1});var lmv;var Knc;var Mx=function(){var q=_.C.apply(this,arguments)||this;q.isEditMode=!1;q.touchCaptionsEnabled=!1;q.deleteCaptionCorrectionPopupCommand=null;q.voteCaptionCorrectionPopupCommand=null;q.roundedContainer=!0;q.mouseOver=!1;q.textChanged=!1;q.messages={suggest_correction:_.FE("suggest_correction",void 0,"Edit caption"),suggested_caption:_.FE("suggested_caption",void 0,"Suggested caption"),submit_correction:_.FE("submit_correction",void 0,"Submit for review"),cancel_correction:_.FE("cancel_correction",
void 0,"Cancel"),replay_segment:_.FE("replay_segment",void 0,"Re-play segment"),delete_correction:_.FE("delete_correction",void 0,"Delete correction")};q.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return q};
_.Y(Mx,_.C);_.g=Mx.prototype;_.g.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)};
_.g.handleDelete=function(q){if(this.deleteCaptionCorrectionPopupCommand){var N=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);N&&this.ytdOpenPopupBehavior.openPopup(N);q.stopPropagation()}};
_.g.handleSubmit=function(q){if(this.data&&this.data.submitCaptionCorrectionCommand&&(q.stopPropagation(),this.textChanged)){var N;q=(N=_.v(this.data.submitCaptionCorrectionCommand,_.fVJ))==null?void 0:N.params;N=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:q,correctionText:String(this.ironTextAreaElement.value),originalText:_.ao(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(N);this.isEditMode=!1}};
_.g.handleUpdateSegmentText=function(q){(q=_.v(q,Az7))&&q.targetId&&this.data&&q.targetId===this.data.targetId&&(q.userCorrection&&(this.editedText=q.userCorrection),q.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.ao(this.data.snippet)),q.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=q.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=q.voteCaptionCorrectionPopupCommand?
q.voteCaptionCorrectionPopupCommand:null,q.accessibility&&(this.segmentAriaLabel=q.accessibility.accessibilityData.label))};
_.g.handleCancel=function(q){this.isEditMode=!1;q.stopPropagation();this.logClientVe(159409)};
_.g.handleEditSegmentCommand=function(q){(q=_.v(q,of7))&&q.targetId&&this.data&&q.targetId===this.data.targetId&&this.handleEdit()};
_.g.handleEditButtonClick=function(q){this.data&&(this.handleEdit(),q.stopPropagation())};
_.g.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var q;(q=this.ironTextAreaElement.textarea)==null||q.focus();this.logClientVe(159407)}};
_.g.handleMouseEnter=function(){this.mouseOver=!0};
_.g.handleMouseLeave=function(){this.mouseOver=!1};
_.g.handleReplay=function(q){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),q.stopPropagation(),this.logClientVe(159408))};
_.g.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()))};
_.g.handleKeypress=function(q){this.data&&(this.isEditMode?q.stopPropagation():this.isEnterPress(q)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(q)&&this.logClientVe(138758))};
_.g.handleTextboxClick=function(q){q.stopPropagation()};
_.g.handleTextboxKeydown=function(q){this.isControlEnterPress(q)?this.handleSubmit(q):q.key==="Escape"&&this.handleCancel(q)};
_.g.handleTextboxKeyup=function(){this.textChanged=_.ao(this.latestText)!==String(this.ironTextAreaElement.value)};
_.g.fireSelectedEvent=function(q){_.e2(this.hostElement,"yt-transcript-segment-selected",{startMs:q})};
_.g.fireReplayEvent=function(q,N){_.e2(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(q-100,0),endMs:N})};
_.g.fireEditEvent=function(q,N){_.e2(this.hostElement,"yt-transcript-segment-edit",{startMs:q,endMs:N})};
_.g.isEnterPress=function(q){return q.key==="Enter"||q.code==="Enter"||q.code==="NumpadEnter"||q.keyCode===13?!0:!1};
_.g.isControlEnterPress=function(q){var N=q.key==="Enter"||q.code==="Enter"||q.code==="NumpadEnter"||q.keyCode===13;return(q.ctrlKey||q.metaKey)&&N};
_.g.isCopyPress=function(q){var N=q.ctrlKey;return q.key==="c"&&N};
_.g.logClick=function(){var q,N=(q=this.data)==null?void 0:q.trackingParams;N&&_.fm(_.FR(),N)};
_.g.logClientVe=function(q){_.UM(_.FR(),_.bx(q))};
_.$H.Object.defineProperties(Mx.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}}});
Mx.prototype.handleMouseLeave=Mx.prototype.handleMouseLeave;Mx.prototype.handleMouseEnter=Mx.prototype.handleMouseEnter;Mx.prototype.dataChanged=Mx.prototype.dataChanged;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Mx.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.r7),_.P("design:type",Object)],Mx.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],Mx.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Mx.prototype,"isEditMode",void 0);_.p([_.U(),_.P("design:type",Object)],Mx.prototype,"touchCaptionsEnabled",void 0);_.p([_.U(),_.P("design:type",Object)],Mx.prototype,"editedText",void 0);_.p([_.U(),_.P("design:type",Object)],Mx.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.p([_.U(),_.P("design:type",Object)],Mx.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.p([_.U(),_.P("design:type",String)],Mx.prototype,"segmentAriaLabel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Mx.prototype,"roundedContainer",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Mx.prototype,"mouseOver",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Mx.prototype,"textChanged",void 0);_.p([_.U(),_.P("design:type",Object)],Mx.prototype,"messages",void 0);
_.p([_.dq("#suggestion"),_.P("design:type",Object)],Mx.prototype,"ironTextAreaElement",void 0);_.p([_.l("data","editedText"),_.P("design:type",Object),_.P("design:paramtypes",[])],Mx.prototype,"latestText",null);_.p([_.l("touchCaptionsEnabled","isEditMode"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Mx.prototype,"enableEditButton",null);
_.p([_.l("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Mx.prototype,"enableUndoButton",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mx.prototype,"dataChanged",null);_.p([_.ZP("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mx.prototype,"handleMouseEnter",null);
_.p([_.ZP("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mx.prototype,"handleMouseLeave",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],Mx);
_.a(Mx,"ytd-transcript-segment-renderer",function(){if(Knc!==void 0)return Knc;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Knc=q},{mode:1});var oT=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};q.isError=!1;q.darkerPanels=_.x("web_watch_darker_panels");q.useParentMaxHeight=_.x("web_watch_transscript_use_parent_max_height");q.segmentOffsets=[];q.segmentIndex=-1;return q};
_.Y(oT,_.C);_.g=oT.prototype;_.g.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"}}}}};
_.g.segmentsChanged=function(){this.updateOffsets()};
_.g.onYtPlayerTimeChanged=function(q){for(var N=this.segmentIndex,b=N;;){if(b>=0){var y=this.segmentOffsets[b].start;var J=this.segmentOffsets[b].isAutoScrollable}else y=-1,J=!0;var E=q+.5;if(!J){y=b+1<this.segmentOffsets.length?this.segmentOffsets[b+1].start:Infinity;if(E>=y){b+=1;continue}b=-1;break}if(E<y)y=b-1>=0&&this.segmentOffsets[b-1].isAutoScrollable,J=b===0||y?1:2,b-=J;else if(J=b+1<this.segmentOffsets.length&&this.segmentOffsets[b+1].isAutoScrollable?1:2,y=b+J<this.segmentOffsets.length?
this.segmentOffsets[b+J].start:Infinity,E>y)b+=J;else{if(b<0)break;b<this.segmentOffsets.length&&E>this.segmentOffsets[b].end&&(b=-1);break}}if(N!==b){if(N>=0){var F;(F=this.getSegmentElement(N))==null||F.classList.remove("active")}this.segmentIndex=b;if(!(b<0)){var R;(R=this.getSegmentElement(b))==null||R.classList.add("active");this.isHovered||this.scrollElementToTop(b)}}};
_.g.handleSegmentEdit=function(q){q.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=q.target,_.By(this.hostElement,"yt-transcript-player-edit",[q.detail.startMs/1E3,q.detail.endMs/1E3]))};
_.g.handleSegmentSelected=function(q){_.By(this.hostElement,"yt-transcript-player-seek",[q.detail.startMs/1E3])};
_.g.handleSegmentReplay=function(q){_.By(this.hostElement,"yt-transcript-player-replay",[q.detail.startMs/1E3,q.detail.endMs/1E3])};
_.g.handleSectionHeaderSelected=function(q){_.By(this.hostElement,"yt-transcript-player-seek",[q.detail.startMs/1E3])};
_.g.onMouseEnter=function(){this.isHovered=!0};
_.g.onMouseLeave=function(){this.isHovered=!1};
_.g.onRetryButtonClick=function(){_.e2(this.hostElement,"transcript-retry-button-click")};
_.g.getSegmentElement=function(q){return _.ee(this.hostElement).querySelector(":nth-child("+(q+1)+")")};
_.g.scrollElementToTop=function(q){q=this.getSegmentElement(q>=2?q-2:0);this.hostElement.scrollTop=Math.min(q.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.g.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(q){var N,b=(N=q.transcriptSegmentRenderer)!=null?N:q.transcriptSectionHeaderRenderer;return{start:Number(b.startMs)/1E3,end:Number(b.endMs)/1E3,isAutoScrollable:q.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.g.clearHighlightedSegments=function(){var q=_.ee(this.hostElement);q=_.Z(q.querySelectorAll("ytd-transcript-segment-renderer"));for(var N=q.next();!N.done;N=q.next())N.value.classList.remove("active")};
_.$H.Object.defineProperties(oT.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.data)==null?void 0:q.searchResultSegments)||((N=this.data)==null?void 0:N.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
oT.prototype.onMouseLeave=oT.prototype.onMouseLeave;oT.prototype.onMouseEnter=oT.prototype.onMouseEnter;oT.prototype.handleSectionHeaderSelected=oT.prototype.handleSectionHeaderSelected;oT.prototype.handleSegmentReplay=oT.prototype.handleSegmentReplay;oT.prototype.handleSegmentSelected=oT.prototype.handleSegmentSelected;oT.prototype.handleSegmentEdit=oT.prototype.handleSegmentEdit;oT.prototype.segmentsChanged=oT.prototype.segmentsChanged;
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],oT.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],oT.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],oT.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],oT.prototype,"isError",void 0);
_.p([_.U(),_.P("design:type",Object)],oT.prototype,"noResultLabel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],oT.prototype,"darkerPanels",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],oT.prototype,"useParentMaxHeight",void 0);_.p([_.l("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],oT.prototype,"segments",null);
_.p([_.l("segments","noResultLabel"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],oT.prototype,"displayNoResults",null);_.p([_.FY("segments"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oT.prototype,"segmentsChanged",null);_.p([_.ZP("yt-transcript-segment-edit"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],oT.prototype,"handleSegmentEdit",null);
_.p([_.ZP("yt-transcript-segment-selected"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],oT.prototype,"handleSegmentSelected",null);_.p([_.ZP("yt-transcript-segment-replay"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],oT.prototype,"handleSegmentReplay",null);
_.p([_.ZP("ytd-transcript-section-header"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],oT.prototype,"handleSectionHeaderSelected",null);_.p([_.ZP("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oT.prototype,"onMouseEnter",null);_.p([_.ZP("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oT.prototype,"onMouseLeave",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],oT);
_.a(oT,"ytd-transcript-segment-list-renderer",function(){if(lmv!==void 0)return lmv;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return lmv=q},{mode:1});var A_=function(){var q=_.C.apply(this,arguments)||this;q.hideTimestamps=!!_.XH("hide-transcript-timestamps");q.isLoadingTranscripts=!1;q.darkerPanels=_.x("web_watch_darker_panels");q.isError=!1;q.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return q};
_.Y(A_,_.C);_.g=A_.prototype;_.g.headerChanged=function(){var q,N;this.baseGetTranscriptsCommand=(N=_.v((q=this.data)==null?void 0:q.header,eVv))==null?void 0:N.onTextChangeCommand};
_.g.bodyChanged=function(){var q=this.getBodyRenderer();q&&(q.initialSegments&&(this.initialTranscriptsRenderer=q),q.noResultLabel&&(this.noResultLabel=q.noResultLabel),q.retryLabel&&(this.retryLabel=q.retryLabel))};
_.g.detached=function(){this.clearSearchBoxText()};
_.g.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.g.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"}}}};
_.g.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.g.fireSearch=function(q){var N=this;if(q){var b=q.detail.query;if(this.baseGetTranscriptsCommand){var y;q=(y=_.v(this.baseGetTranscriptsCommand,_.kWq))==null?void 0:y.params;var J;y=_.v((J=this.data)==null?void 0:J.footer,UgB);var E;if((J=(E=_.v(y==null?void 0:y.languageMenu,Pv_))==null?void 0:E.subMenuItems)&&J.length>0&&(E=J.find(function(c){return c.selected}))){var F,R;
q=(F=E.continuation)==null?void 0:(R=F.reloadContinuationData)==null?void 0:R.continuation}F=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:q,searchQuery:b}});this.ytComponentBehavior.resolveCommand(F,{commandController:{onServerError:function(){N.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});zVB(this.ytContinuationHandlerBehavior,function(){return b===N.getCurrentSearchBoxText()})}}};
_.g.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.g.onRetryButtonClick=function(){this.isError=!1;var q={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:q}))};
_.g.hideTimestampsChanged=function(){_.r5("hide-transcript-timestamps",this.hideTimestamps)};
_.g.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.g.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.g.handleSignalActionCopyTranscript=function(){var q=this,N=this.getBodyRenderer();N&&(N=((N==null?void 0:N.searchResultSegments)||(N==null?void 0:N.initialSegments)||[]).map(function(b){return _.v(b,H4c)}).filter(function(b){return!!b}).map(function(b){return{snippet:b.snippet||{runs:[{text:""}]},
startTimeText:b.startTimeText||{simpleText:""}}}).map(function(b){var y=(b.snippet.runs||[]).reduce(function(J,E){return J+E.text},"");
return q.hideTimestamps?y:b.startTimeText.simpleText+" "+y}).join("\n"),this.copyToClipboard(N))};
_.g.copyToClipboard=function(q){navigator.clipboard&&navigator.clipboard.writeText(q)};
_.g.getCurrentSearchBoxText=function(){var q;return(q=this.searchBox)==null?void 0:q.value};
_.g.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.g.getBodyRenderer=function(){var q;return _.v((q=this.data)==null?void 0:q.body,BOs)};
_.g.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.$H.Object.defineProperties(A_.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.ee(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
A_.prototype.hideTimestampsChanged=A_.prototype.hideTimestampsChanged;A_.prototype.searchCleared=A_.prototype.searchCleared;A_.prototype.fireSearch=A_.prototype.fireSearch;A_.prototype.onReloadContinuationFinish=A_.prototype.onReloadContinuationFinish;A_.prototype.bodyChanged=A_.prototype.bodyChanged;A_.prototype.headerChanged=A_.prototype.headerChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],A_.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],A_.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.tA),_.P("design:type",Object)],A_.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],A_.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],A_.prototype,"hideTimestamps",void 0);
_.p([_.U(),_.P("design:type",Object)],A_.prototype,"isLoadingTranscripts",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],A_.prototype,"darkerPanels",void 0);_.p([_.U(),_.P("design:type",Object)],A_.prototype,"isError",void 0);_.p([_.FY("data.header"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A_.prototype,"headerChanged",null);
_.p([_.$9("data.body"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A_.prototype,"bodyChanged",null);_.p([_.ZP("yt-reload-continuation-finish"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A_.prototype,"onReloadContinuationFinish",null);_.p([_.ZP("yt-transcript-search-box-search"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],A_.prototype,"fireSearch",null);
_.p([_.ZP("yt-transcript-search-box-clear"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A_.prototype,"searchCleared",null);_.p([_.FY("hideTimestamps"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A_.prototype,"hideTimestampsChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],A_);
_.a(A_,"ytd-transcript-search-panel-renderer",function(){if(wKe!==void 0)return wKe;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return wKe=q},{mode:1});var eH=function(){var q=_.C.apply(this,arguments)||this;q.player=null;q.playerPollJobId=0;return q};
_.Y(eH,_.C);_.g=eH.prototype;_.g.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.g.onLoadReloadContinuation=function(q){_.x("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:q.target.data.continuation}}):(q={clickTrackingParams:q.target.data.clickTrackingParams,getTranscriptEndpoint:{params:q.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.tz().resolve(_.rO).resolveCommand(q,{form:{element:this.hostElement}}))};
_.g.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"}}}};
_.g.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.g.attached=function(){this.updatePlayerListening()};
_.g.detached=function(){this.updatePlayerListening()};
_.g.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.g.startPlayerListening=function(){var q=this,N;return _.d(function(b){if(b.nextAddress==1)return(N=_.Pk())?b.yield(N.getPlayerPromise(),2):b.return();q.player=b.yieldResult;q.playerPollJobId=_.pY.addLowPriorityJob(function(){q.getPlayerVideoProgress()},1E3);
q.player.addEventListener("onCueRangeEnter",function(y){q.onCueRangeEnter(y)});
q.player.addEventListener("onCueRangeExit",function(y){q.onCueRangeExit(y)});
q.player.addEventListener("onStateChange",function(y){q.onPlayerStateChange(y)});
q.player.addEventListener("SEEK_TO",function(y){q.onPlayerSeek(y)});
_.hj(b)})};
_.g.getPlayerVideoProgress=function(){var q=this;_.pY.cancelJob(this.playerPollJobId);if(this.player){var N=this.player.getCurrentTime();_.By(this.hostElement,"yt-player-time-changed",[N])}this.playerPollJobId=_.pY.addLowPriorityJob(function(){q.getPlayerVideoProgress()},1E3)};
_.g.stopPlayerListening=function(){this.player=null;_.pY.cancelJob(this.playerPollJobId)};
_.g.onPlayerStateChange=function(q){q===2&&this.removePendingCue()};
_.g.onPlayerSeek=function(q){var N;if(N=this.pendingReplayCueId)N=this.pendingReplayCueId,N=q===(_.x("web_transcript_cue_id_killswitch")?Number(N):Number(N.split("_")[1]));N||this.removePendingCue()};
_.g.onCueRangeEnter=function(q){hlB(q)&&(this.pendingReplayCueId=q)};
_.g.onCueRangeExit=function(q){hlB(q)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.g.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.g.onYtTranscriptPlayerSeek=function(q){this.player&&this.player.seekTo(q,!0)};
_.g.onYtTranscriptPlayerReplay=function(q,N){this.player&&(this.player.addCueRange(D7B(q),q,N),this.player.seekTo(q,!0),this.player.playVideo())};
_.g.onYtTranscriptPlayerEdit=function(q,N){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(D7B(q),q,N),this.player.seekTo(q,!0))};
eH.prototype.onLoadReloadContinuation=eH.prototype.onLoadReloadContinuation;eH.prototype.panelContentVisibleChanged=eH.prototype.panelContentVisibleChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],eH.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],eH.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],eH.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],eH.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],eH.prototype,"panelContentVisible",void 0);_.p([_.FY("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eH.prototype,"panelContentVisibleChanged",null);
_.p([_.ZP("yt-load-reload-continuation"),_.P("design:type",Function),_.P("design:paramtypes",[Object]),_.P("design:returntype")],eH.prototype,"onLoadReloadContinuation",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],eH);
_.a(eH,"ytd-transcript-renderer",function(){if(QCB!==void 0)return QCB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return QCB=q},{mode:1});var DrZ;var h3e;var Bo=function(){return _.C.apply(this,arguments)||this};
_.Y(Bo,_.C);Bo.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.e2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Nc(this.hostElement,[this.data.clickCommand],this.hostElement))};
Bo.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.ph)()+_.Cj)+"px)"};
Bo.prototype.updateShouldHideFromBinding=function(q){this.shouldHide=q.detail.value};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Bo.prototype,"rendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Bo.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],Bo.prototype,"shouldHide",void 0);_.p([_.I({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Bo);
_.a(Bo,"ytd-ad-engagement-panel-banner-renderer",function(){if(h3e!==void 0)return h3e;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return h3e=q},{mode:_.Am("kevlar_poly_si_batch_j070")?1:2});var kh7;var Ho=function(){var q=_.C.apply(this,arguments)||this;q.buttonUpdate=_.x("web_modern_buttons");q.adsSemanticText=_.x("enable_ads_web_ep_buenos_aires_and_padding_fix");return q};
_.Y(Ho,_.C);Ho.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.p([_.U(),_.P("design:type",Object)],Ho.prototype,"data",void 0);_.p([_.U({computed:"computeHideDefaultAdBadge(data)"}),_.P("design:type",Boolean)],Ho.prototype,"hideDefaultAdBadge",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Ho.prototype,"buttonUpdate",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Ho.prototype,"adsSemanticText",void 0);_.p([_.I({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Ho);
_.a(Ho,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(kh7!==void 0)return kh7;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return kh7=q},{mode:1});var Urh;var qp=function(){var q=_.C.apply(this,arguments)||this;q.darkerPanels=_.x("web_watch_darker_panels");q.enableSqueezebackPanels=_.x("web_shorts_enable_squeezeback_panels");q.enableAnchoredPanel=_.x("desktop_shorts_v2_anchored_panel");q.headerClickListener=function(N){q.onHeaderClick(N)};
q.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return q};
_.Y(qp,_.C);_.g=qp.prototype;_.g.computeAdsInfoButton=function(){if(_.x("web_modern_buttons")){var q,N;return(N=_.v((q=this.data)==null?void 0:q.subtitleComplex,fMl))==null?void 0:N.adInfoRenderer}};
_.g.updateHeaderClickListener=function(){var q,N,b;((q=this.data)==null?0:q.navigationEndpoint)||((N=this.data)==null?0:N.onClickCommand)||_.v((b=this.data)==null?void 0:b.visibilityButton,_.EM)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.g.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}}}}}};
_.g.collapsedChanged=function(){var q;(q=this.data)!=null&&q.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.x("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.g.focus=function(q){var N=this;this.titleElement&&_.pY.addJob(function(){_.Zy(N.titleElement,q)},0,500)};
_.g.computeTitleAriaLabel=function(q){var N=[];if(q.title){var b,y;N.push(this.ytRendererBehavior.getSimpleString(q.title)||((b=q.title.accessibility)==null?void 0:(y=b.accessibilityData)==null?void 0:y.label))}q.contextualInfo&&N.push(this.ytRendererBehavior.getSimpleString(q.contextualInfo));return N.join(" ")};
_.g.onHeaderClick=function(q){this.shouldTriggerHeaderClick(q)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.e2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Nc(this.hostElement,[this.data.onClickCommand],this.hostElement)):(q=this.getVisibilityToggleButton())&&q.click())};
_.g.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var q=_.v(this.data.visibilityButton,_.JI)||_.v(this.data.visibilityButton,_.EM);q&&this.ytRendererBehavior.logExplicitClick(q)}};
_.g.getVisibilityToggleButton=function(){var q=_.ee(this.hostElement).querySelector("#visibility-button").firstElementChild;return(q==null?void 0:q.is)==="ytd-toggle-button-renderer"?q:null};
_.g.shouldTriggerHeaderClick=function(q){return!_.Su(_.n9(q),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.g.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(q){q=_.v(q,_.O4x);this.targetId&&(q==null?void 0:q.targetId)===this.targetId&&(q=q.navigationButton)&&this.set("data.navigationButton",q)};
_.$H.Object.defineProperties(qp.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.x("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var q;return!!(((q=this.entity)==null?0:q.isActionButtonHidden)||this.hideActionButton)}}});
qp.prototype.collapsedChanged=qp.prototype.collapsedChanged;qp.prototype.updateHeaderClickListener=qp.prototype.updateHeaderClickListener;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],qp.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],qp.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.H6),_.P("design:type",Object)],qp.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],qp.prototype,"data",void 0);_.p([_.U(),_.P("design:type",String)],qp.prototype,"targetId",void 0);_.p([_.U(),_.P("design:type",Boolean)],qp.prototype,"collapsed",void 0);_.p([_.U(),_.P("design:type",Boolean)],qp.prototype,"hideActionButton",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],qp.prototype,"shortsPanel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],qp.prototype,"liveChatEngagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],qp.prototype,"learningChatEngagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],qp.prototype,"darkerPanels",void 0);_.p([_.dq("#title"),_.P("design:type",HTMLElement)],qp.prototype,"titleElement",void 0);_.p([_.dq("#header"),_.P("design:type",HTMLElement)],qp.prototype,"headerElement",void 0);
_.p([_.U({computed:"computeAdsInfoButton(data)"}),_.P("design:type",Object)],qp.prototype,"adsInfoButton",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],qp.prototype,"enableSqueezebackPanels",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],qp.prototype,"enableAnchoredPanel",void 0);_.p([_.U({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(q,N){return _.Ji(q.entities,"engagementPanelTitleHeaderEntity",N)}}),
_.P("design:type",Object)],qp.prototype,"entity",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("targetId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],qp.prototype,"adsSemanticText",null);_.p([_.FY("data","data.navigationEndpoint","data.onClickCommand"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qp.prototype,"updateHeaderClickListener",null);
_.p([_.$9("collapsed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qp.prototype,"collapsedChanged",null);_.p([_.l("entity","hideActionButton"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],qp.prototype,"isActionButtonHidden",null);_.p([_.I({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],qp);
_.a(qp,"ytd-engagement-panel-title-header-renderer",function(){if(Urh!==void 0)return Urh;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Urh=q},{mode:1});var fmX;var Np=function(){return _.C.apply(this,arguments)||this};
_.Y(Np,_.C);Np.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Np.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Np.prototype,"data",void 0);_.p([_.I({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Np);
_.a(Np,"ytd-macro-markers-info-item-renderer",function(){if(fmX!==void 0)return fmX;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return fmX=q},{mode:1});var C_l;var by=function(q,N,b,y,J,E){_.UN.call(this);var F=this;this.JSC$23258_containerElement=q;this.hostElement=N;this.supportedSyncItems=b;this.syncEntityKey=y;this.options=J;this.renderLazyListItems=E;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;ImB(this);TIy(this);this.JSC$23258_scrollAnimation=new _.rG(function(R){q.scrollTop=R});
_.YN(this,this.JSC$23258_scrollAnimation);this.addOnDisposeCallback(function(){sCy(F,!1);F.activeItem&&F.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.Y(by,_.UN);var ImB=function(q){var N=_.aM(_.tz().resolve(_.eU),function(b){return b.entities.markersEngagementPanelSyncEntity||{}},function(b,y){var J;
if(b[q.syncEntityKey]!==y[q.syncEntityKey]&&((J=b[q.syncEntityKey])==null?void 0:J.activeItemIndex)!==void 0)if(y=b[q.syncEntityKey].activeItemIndex,b=q.getItemByIndex(y)){if(nF7(q,b),q.contentVisible)if(q.browsingMode){var E;((E=q.options)==null?void 0:E.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(E=ams(q),b.offsetTop<q.JSC$23258_containerElement.clientHeight+q.JSC$23258_containerElement.scrollTop&&E&&!q.activeItemBelowSyncPosition&&sCy(q,!1));SXh(q)}else q.scrollToItem(b)}else _.M6(new _.IO("Could not find "+
q.supportedSyncItems+" sync child to set active.",y,q.JSC$23258_containerElement.querySelectorAll(q.supportedSyncItems).length))});
q.unsubscribeFromTimedMarkersListSyncEntity=N;q.addOnDisposeCallback(N);Wnh(q)},Wnh=function(q){var N=_.tz().resolve(_.eU);
N=_.rfn(N.getState(),q.syncEntityKey);(N==null?void 0:N.activeItemIndex)!==void 0&&(N=q.getItemByIndex(N.activeItemIndex))&&nF7(q,N)},TIy=function(q){var N=new _.El(q.onScroll,50,q);
_.YN(q,N);var b=function(){N.fire()};
q.JSC$23258_containerElement.addEventListener("scroll",b);q.addOnDisposeCallback(function(){q.JSC$23258_containerElement.removeEventListener("scroll",b)})};
by.prototype.getItemByIndex=function(q){var N;(N=this.renderLazyListItems)==null||N.call(this,q);N=this.JSC$23258_containerElement.querySelectorAll(this.supportedSyncItems);if(N.length>q)return N[q]};
var nF7=function(q,N){q.activeItem&&q.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));N.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));q.activeItem=N};
by.prototype.scrollToItem=function(q){q=this.getScrollPositionForItem(q);this.JSC$23258_containerElement.scrollTop!==q&&this.JSC$23258_scrollAnimation.start(this.JSC$23258_containerElement.scrollTop,q,300)};
by.prototype.getScrollPositionForItem=function(q){if(this.JSC$23258_containerElement.querySelectorAll(this.supportedSyncItems)[0]===q)return 0;var N,b=((N=this.options)==null?0:N.percentOffset)?this.JSC$23258_containerElement.clientHeight*this.options.percentOffset:0;q=_.pM(q).y+this.JSC$23258_containerElement.scrollTop-(_.pM(this.JSC$23258_containerElement).y+b);return Math.max(0,Math.min(q,this.JSC$23258_containerElement.scrollHeight-this.JSC$23258_containerElement.offsetHeight))};
by.prototype.onScroll=function(){this.activeItemBelowSyncPosition=ams(this);if(this.activeItem&&!this.JSC$23258_scrollAnimation.isAnimating()&&Math.abs(this.JSC$23258_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var q;switch((q=this.options)==null?void 0:q.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":LnB(this,!pKs(this));SXh(this);break;default:LnB(this,!0)}}};
var LnB=function(q,N){var b,y;_.d(function(J){if(J.nextAddress==1){if(q.browsingMode)return J.return();q.browsingMode=!0;N&&q.hostElement.classList.add("browsing-mode");q.playerExitBrowsingModeListener=function(){sCy(q,!1)};
return J.yield(_.yR(),2)}b=J.yieldResult;(y=b)==null||y.addEventListener("SEEK_TO",q.playerExitBrowsingModeListener);_.hj(J)})},sCy=function(q,N){N=N===void 0?!0:N;
q.browsingMode&&(q.browsingMode=!1,q.hostElement.classList.remove("browsing-mode"),N&&q.scrollToItem(q.activeItem),P_B(q))},P_B=function(q){var N,b;
_.d(function(y){if(y.nextAddress==1)return q.playerExitBrowsingModeListener?y.yield(_.yR(),3):y.jumpTo(0);N=y.yieldResult;(b=N)==null||b.removeEventListener("SEEK_TO",q.playerExitBrowsingModeListener);q.playerExitBrowsingModeListener=void 0;_.hj(y)})},SXh=function(q){var N;
((N=q.options)==null?void 0:N.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(pKs(q)?q.hostElement.classList.remove("browsing-mode"):q.activeItem&&q.hostElement.classList.add("browsing-mode"))},ams=function(q){if(!q.activeItem)return!1;
var N,b=((N=q.options)==null?0:N.percentOffset)?q.JSC$23258_containerElement.clientHeight*q.options.percentOffset:0;return q.activeItem.offsetTop>=q.JSC$23258_containerElement.scrollTop+b},pKs=function(q){if(!q.activeItem)return!1;
var N=q.activeItem.offsetTop+14<=q.JSC$23258_containerElement.scrollTop+q.JSC$23258_containerElement.clientHeight;return q.activeItem.offsetTop+q.activeItem.clientHeight-14>=q.JSC$23258_containerElement.scrollTop&&N};
by.prototype.panelContentVisibleChanged=function(q){(this.contentVisible=q)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var M6v=function(q,N){q.syncEntityKey=N;var b;(b=q.unsubscribeFromTimedMarkersListSyncEntity)==null||b.call(q);ImB(q)},oFZ=function(q,N){q.options=N};var yP=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return q};
_.Y(yP,_.C);_.g=yP.prototype;_.g.detached=function(){var q;(q=this.scrollController)==null||q.dispose();this.scrollController=void 0};
_.g.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"}}}};
_.g.dataChanged=function(){var q=this;_.ut(this,function(){if(q.scrollController){var N;(N=q.scrollController)==null||sCy(N,!1);var b,y,J;(y=q.scrollController)==null||M6v(y,(J=(b=q.data)==null?void 0:b.syncModelEntityKey)!=null?J:"default-macro-markers-list-renderer-entity-key");var E,F,R;(R=q.scrollController)==null||oFZ(R,{percentOffset:(E=q.data)==null?void 0:E.selectedItemAlignmentPercentOffset,floatingPillType:(F=q.data)==null?void 0:F.floatingPillType})}else{var c,z,m,r;q.scrollController=
new by(q.contents,q.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(r=(c=q.data)==null?void 0:c.syncModelEntityKey)!=null?r:"default-macro-markers-list-renderer-entity-key",{percentOffset:(z=q.data)==null?void 0:z.selectedItemAlignmentPercentOffset,floatingPillType:(m=q.data)==null?void 0:m.floatingPillType},function(X){q.renderLazyListItems(X)})}q.scrollController.panelContentVisibleChanged(!!q.panelContentVisible)})};
_.g.computeButtonShape=function(){var q=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){q.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.g.renderLazyListItems=function(q){for(var N=this.contents.children,b=0,y=0;y<N.length;y++){var J=void 0;(J=N[y].ytLazyListBehavior)==null||J.fillRemainingListItems();var E=void 0,F=void 0;J=_.v((E=this.data)==null?void 0:(F=E.contents)==null?void 0:F[y],_.mJo);F=E=void 0;if((E=J)==null?0:(F=E.contents)==null?0:F.length)b+=J.contents.length;if(b>=q)break}};
_.g.handleSetActivePanelItemAction=function(q){if((q=_.v(q,i4v))&&this.panelTargetId===q.panelTargetId){q=q.itemIndex;var N,b,y=(b=(N=this.data)==null?void 0:N.syncModelEntityKey)!=null?b:"default-macro-markers-list-renderer-entity-key",J;((J=this.syncEntity)==null?void 0:J.activeItemIndex)!==q&&this.ytdReduxBehavior.dispatch(_.$e("markersEngagementPanelSyncEntity",y,{key:y,activeItemIndex:q}))}};
_.g.onSyncClick=function(){var q;(q=this.scrollController)==null||sCy(q)};
_.g.panelContentVisibleChanged=function(){var q;(q=this.scrollController)==null||q.panelContentVisibleChanged(!!this.panelContentVisible)};
yP.prototype.panelContentVisibleChanged=yP.prototype.panelContentVisibleChanged;yP.prototype.dataChanged=yP.prototype.dataChanged;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],yP.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],yP.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.H6),_.P("design:type",Object)],yP.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],yP.prototype,"data",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],yP.prototype,"useCustomColors",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],yP.prototype,"panelTargetId",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],yP.prototype,"panelContentVisible",void 0);
_.p([_.dq("#contents"),_.P("design:type",HTMLElement)],yP.prototype,"contents",void 0);_.p([_.U({selectorArgs:["data.syncModelEntityKey"],selector:_.rfn}),_.P("design:type",Object)],yP.prototype,"syncEntity",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yP.prototype,"dataChanged",null);
_.p([_.FY("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yP.prototype,"panelContentVisibleChanged",null);_.p([_.I({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],yP);
_.a(yP,"ytd-macro-markers-list-renderer",function(){if(C_l!==void 0)return C_l;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return C_l=q},{mode:1});var ADx;var JC=function(){return _.C.apply(this,arguments)||this};
_.Y(JC,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],JC.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],JC.prototype,"data",void 0);_.p([_.I({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],JC);
_.a(JC,"ytd-error-corrections-section-item-renderer",function(){if(ADx!==void 0)return ADx;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return ADx=q},{mode:1});var e3s;var EB=function(){return _.C.apply(this,arguments)||this};
_.Y(EB,_.C);EB.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],EB.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],EB.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],EB.prototype,"data",void 0);_.p([_.I({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],EB);
_.a(EB,"ytd-error-corrections-section-renderer",function(){if(e3s!==void 0)return e3s;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return e3s=q},{mode:1});var BIe;var g_=function(){return _.C.apply(this,arguments)||this};
_.Y(g_,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],g_.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],g_.prototype,"data",void 0);_.p([_.I({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],g_);
_.a(g_,"ytd-topic-link-renderer",function(){if(BIe!==void 0)return BIe;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return BIe=q},{mode:1});var HQh;var Ze=function(){var q=_.C.apply(this,arguments)||this;q.modernLockupV2=_.x("modernize_structured_description_playlist_lockups_v2");return q};
_.Y(Ze,_.C);Ze.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"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ze.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Ze.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ze.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Ze.prototype,"modernLockupV2",void 0);_.p([_.I({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],Ze);
_.a(Ze,"ytd-video-description-course-section-renderer",function(){if(HQh!==void 0)return HQh;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return HQh=q},{mode:1});var q7e;var FW=function(){return _.C.apply(this,arguments)||this};
_.Y(FW,_.C);FW.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"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],FW.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],FW.prototype,"data",void 0);_.p([_.I({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],FW);
_.a(FW,"ytd-video-description-files-section-renderer",function(){if(q7e!==void 0)return q7e;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return q7e=q},{mode:1});var Nd7;var RF=function(){return _.C.apply(this,arguments)||this};
_.Y(RF,_.C);RF.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"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],RF.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],RF.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],RF.prototype,"data",void 0);_.p([_.I({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],RF);
_.a(RF,"ytd-video-description-gaming-section-renderer",function(){if(Nd7!==void 0)return Nd7;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Nd7=q},{mode:1});var bAx;var d_=function(){var q=_.C.apply(this,arguments)||this;q.isExpanded=!1;return q};
_.Y(d_,_.C);d_.prototype.computeHasDefaultMetadataEndpoint=function(q){var N;q=q==null?void 0:(N=q.defaultMetadata)==null?void 0:N.runs;return!(!q||q.length!==1||!q[0].navigationEndpoint)};
d_.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.$H.Object.defineProperties(d_.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],d_.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],d_.prototype,"isExpanded",void 0);_.p([_.U({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],d_.prototype,"hasDefaultMetadataEndpoint",void 0);
_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],d_.prototype,"isExpandable",null);_.p([_.l("data","isExpandable","isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],d_.prototype,"showExpandedMetadata",null);_.p([_.I({is:"ytd-info-row-renderer",disableElementRegistration:!0})],d_);
_.a(d_,"ytd-info-row-renderer",function(){if(bAx!==void 0)return bAx;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return bAx=q},{mode:1});var y9c;var cs=function(){var q=_.C.apply(this,arguments)||this;q.currentIndex=0;q.supportComponentResize=!0;q.JSC$23287_lastScrollContainerWidth=NaN;return q};
_.Y(cs,_.C);_.g=cs.prototype;
_.g.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"}}}};
_.g.getItemsPath=function(){return"videoLockups"};
_.g.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.g.onIronResize=function(){this.updateVideoLockupStyles()};
_.g.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.g.updateVideoLockupStyles=function(){var q;this.JSC$23287_scrollContainer!==void 0&&(q=this.videoLockups)!=null&&q.length&&(q=this.JSC$23287_scrollContainer.clientWidth,q!==this.JSC$23287_lastScrollContainerWidth&&(this.JSC$23287_lastScrollContainerWidth=q,_.Jm(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(q*.8,415)+"px"}),_.e2(this.hostElement,"iron-resize")))};
_.$H.Object.defineProperties(cs.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var q=[],N;if((N=this.data)==null||!N.carouselLockups)return q;N=_.Z(this.data.carouselLockups);for(var b=N.next();!b.done;b=N.next()){b=b.value;var y=void 0;((y=_.v(b,JSs))==null?0:y.videoLockup)&&q.push(_.v(b,JSs).videoLockup)}return q}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.videoLockups)==null||!q.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var q=[],N;if((N=this.data)==null||!N.carouselLockups)return q;var b;return(b=_.v(this.data.carouselLockups[this.scrollCount],JSs))==null?void 0:b.infoRows}}});
cs.prototype.dataChanged=cs.prototype.dataChanged;cs.prototype.onIronResize=cs.prototype.onIronResize;cs.prototype.hiddenChanged=cs.prototype.hiddenChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],cs.prototype,"componentBehavior",void 0);_.p([_.O(_.jm.YtdHorizontalListBehavior),_.P("design:type",Object)],cs.prototype,"ytdHorizontalListBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],cs.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],cs.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],cs.prototype,"inlineStructuredDescription",void 0);_.p([_.U({value:2}),_.P("design:type",Number)],cs.prototype,"initialCount",void 0);_.p([_.U(),_.P("design:type",Object)],cs.prototype,"currentIndex",void 0);
_.p([_.U(),_.P("design:type",Number)],cs.prototype,"scrollCount",void 0);_.p([_.U(),_.P("design:type",Object)],cs.prototype,"supportComponentResize",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],cs.prototype,"contentHidden",void 0);_.p([_.dq("#scroll-container"),_.P("design:type",HTMLDivElement)],cs.prototype,"JSC$23287_scrollContainer",void 0);
_.p([_.FY("contentHidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cs.prototype,"hiddenChanged",null);_.p([_.l("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],cs.prototype,"videoLockups",null);_.p([_.l("videoLockups"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],cs.prototype,"hasVideoLockups",null);
_.p([_.ZP("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cs.prototype,"onIronResize",null);_.p([_.l("data","scrollCount"),_.P("design:type",Object),_.P("design:paramtypes",[])],cs.prototype,"infoRows",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cs.prototype,"dataChanged",null);_.p([_.I({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],cs);
_.a(cs,"ytd-video-description-music-section-renderer",function(){if(y9c!==void 0)return y9c;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return y9c=q},{mode:_.Am("kevlar_poly_si_batch_j081")?1:2});var J9e;var uy=function(){return _.C.apply(this,arguments)||this};
_.Y(uy,_.C);uy.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);_.p([_.U({}),_.P("design:type",Object)],uy.prototype,"data",void 0);_.p([_.I({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],uy);
_.a(uy,"ytd-video-description-transcript-section-renderer",function(){if(J9e!==void 0)return J9e;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return J9e=q},{mode:1});var EHy;_.P$(_.n(function(q){var N=_.dj(_.Vbd,function(){return q.data().firstProviderLinkStatusEntityKey}),b=_.dj(_.Vbd,function(){return q.data().secondProviderLinkStatusEntityKey}),y=function(){var J,E;
return((J=N())==null?void 0:J.linked)||((E=b())==null?void 0:E.linked)};
return _.u("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.u(_.Zc,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return q.data().sectionTitle}}),_.u(_.Zc,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return y()?q.data().connectedMessage:q.data().notConnectedMessage}}),_.u(_.t,{cond:y,
then:function(){return _.u(_.zS,{data:function(){return q.data().connectedButton}},{buttonViewModel:function(J){return _.u(_.Ou,{data:J.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.u(_.t,{cond:function(){return!y()},
then:function(){return _.u(_.zS,{data:function(){return q.data().notConnectedButton}},{buttonViewModel:function(J){return _.u(_.Ou,{data:J.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Ln"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.F5}});_.P$(_.n(function(q){var N=q.data;return _.u("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.u("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.u(_.Zc,{text:function(){return N().sectionTitle}})),_.u("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.u(_.Zc,{text:function(){return N().bodyHeader}})),_.u("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.u(_.Zc,{text:function(){return N().bodyText}})),_.u(_.t,{cond:function(){return N().attributionText},
then:function(){return _.u("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.u(_.Zc,{text:function(){return N().attributionText}}))}}))},"Mn"),"how-this-was-made-section-view-model",{props:{data:_.F5}});_.P$(_.n(function(q){return _.u("yt-video-description-youchat-section-view-model",{class:_.NO("ytVideoDescriptionYouchatSectionViewModelHost")},_.u("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.u(_.Zc,{text:function(){return q.data().sectionTitle}})),_.u("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.u(_.Zc,{text:function(){return q.data().subHeaderText}})),_.u("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.u(_.Ou,{data:function(){return _.v(q.data().primaryButton,
_.FF)}})))},"Nn"),"yt-video-description-youchat-section-view-model",{props:{data:_.F5}});var zg=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return q};
_.Y(zg,_.C);_.g=zg.prototype;
_.g.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}}}}}};
_.g.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.g.dataChanged=function(){var q,N;this.hasDescriptionOnly=!(((q=this.data)==null?void 0:(N=q.items)==null?void 0:N.length)!==1||!_.v(this.data.items[0],U4))};
_.g.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.g.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.g.autoFocusDescription=function(){var q;((q=_.tz().resolve(_.$f(_.X5)))==null?0:q.isKeyBoardInUse())&&this.description&&_.Ff(this.description)};
_.g.resize=function(){if(_.x("kevlar_disable_sd_resize"))this.JSC$23295_cardList&&_.e2(this.JSC$23295_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.e2(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.e2(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.g.scrollToSection=function(q){if(q=this.getSectionElement(q))_.By(this.hostElement,"yt-scroll-to-watch-element",[q]),q.focus()};
_.g.getSectionElement=function(q){switch(q){case "infocards-item-section":var N;return(N=this.infocardsSection)!=null?N:null;case "transcript-item-section":var b;return(b=this.transcriptSection)!=null?b:null;case "how-this-was-made-section-item-section":var y;return(y=this.howThisWasMadeSection)!=null?y:null;case "files-item-section":var J;return(J=this.filesSection)!=null?J:null;default:return null}};
_.g.handleSetActiveItemAction=function(q){var N=_.v(q,i4v),b=N&&(N==null?void 0:N.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23295_cardList;if(N&&b){q=this.currentActiveChapter;var y=this.currentActiveProblem;N=b==null?void 0:b.getItemByIndex(N.itemIndex);var J=b=!0;N&&(N.active=!0,N.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(b=q!==N,J=!1,this.currentActiveChapter=N):(N==null?void 0:N.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(b=!1,J=y!==N,this.currentActiveProblem=N));q&&b&&(q.active=!1);y&&J&&(y.active=!1)}};
_.$H.Object.defineProperties(zg.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.x("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
zg.prototype.onYtExpanderMoreTapped=zg.prototype.onYtExpanderMoreTapped;zg.prototype.onHiddenChanged=zg.prototype.onHiddenChanged;zg.prototype.dataChanged=zg.prototype.dataChanged;zg.prototype.panelContentVisibleChanged=zg.prototype.panelContentVisibleChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],zg.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],zg.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.SQ),_.P("design:type",Object)],zg.prototype,"ironResizableBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],zg.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],zg.prototype,"panelContentVisible",void 0);_.p([_.U(),_.P("design:type",Boolean)],zg.prototype,"hasDescriptionOnly",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],zg.prototype,"inlineStructuredDescription",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],zg.prototype,"hidden",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],zg.prototype,"shortsPanel",void 0);_.p([_.U(),_.P("design:type",Object)],zg.prototype,"videoSummary",void 0);_.p([_.U(),_.P("design:type",Object)],zg.prototype,"merchShelf",void 0);
_.p([_.l("videoSummary"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],zg.prototype,"showVideoSummary",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],zg.prototype,"engagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],zg.prototype,"watchWhileSdp",void 0);_.p([_.dq("ytd-expandable-video-description-body-renderer"),_.P("design:type",Object)],zg.prototype,"description",void 0);
_.p([_.dq("ytd-horizontal-card-list-renderer"),_.P("design:type",Object)],zg.prototype,"JSC$23295_cardList",void 0);_.p([_.dq("ytd-horizontal-card-list-renderer[center-items]"),_.P("design:type",Object)],zg.prototype,"problemWalkthroughCardList",void 0);_.p([_.dq("ytd-shelf-renderer"),_.P("design:type",Object)],zg.prototype,"shelfSection",void 0);_.p([_.dq("ytd-video-description-music-section-renderer"),_.P("design:type",Object)],zg.prototype,"musicMetadataSection",void 0);
_.p([_.dq("ytd-video-description-infocards-section-renderer"),_.P("design:type",Object)],zg.prototype,"infocardsSection",void 0);_.p([_.dq("ytd-video-description-transcript-section-renderer"),_.P("design:type",Object)],zg.prototype,"transcriptSection",void 0);_.p([_.dq("how-this-was-made-section-view-model"),_.P("design:type",Object)],zg.prototype,"howThisWasMadeSection",void 0);_.p([_.dq("ytd-video-description-files-section-renderer"),_.P("design:type",Object)],zg.prototype,"filesSection",void 0);
_.p([_.FY("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zg.prototype,"panelContentVisibleChanged",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zg.prototype,"dataChanged",null);_.p([_.FY("hidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zg.prototype,"onHiddenChanged",null);
_.p([_.ZP("yt-expander-more-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zg.prototype,"onYtExpanderMoreTapped",null);_.p([_.I({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],zg);
_.a(zg,"ytd-structured-description-content-renderer",function(){if(EHy!==void 0)return EHy;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return EHy=q},{mode:2});var gHc;var ZAy;var $q=function(){return _.C.apply(this,arguments)||this};
_.Y($q,_.C);$q.prototype.computeAriaLabel=function(q){var N,b;return(q==null?void 0:(N=q.accessibility)==null?void 0:(b=N.accessibilityData)==null?void 0:b.label)||_.FE("LOADING",void 0,"Loading")};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],$q.prototype,"data",void 0);_.p([_.U({computed:"computeAriaLabel(data)"}),_.P("design:type",String)],$q.prototype,"ariaLabel",void 0);_.p([_.Ok({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],$q);
_.a($q,"yt-content-loading-renderer",function(){if(ZAy===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;gHc===void 0&&(gHc=document.createElement("template"));var y=gHc;b.call(N,y.content.cloneNode(!0),q.content.firstChild);ZAy=q}q=ZAy;return q},{mode:_.Am("kevlar_poly_si_batch_j043")?1:2});_.P$(_.n(function(q){var N=_.Z(_.QS(!1,void 0,"OZMtVb")),b=N.next().value,y=N.next().value;N=_.Z(_.QS(!1,void 0,"qWERsf"));var J=N.next().value,E=N.next().value;_.WC(function(){var c=_.v(q.data().collaboratePlaylistCollaborationSetting,MA_);c&&y(c.switchedOnByDefault);var z=_.v(q.data().allowNewCollaboratorsPlaylistCollaborationSetting,MA_);z&&E(z.switchedOnByDefault);if(!c&&!z||!c&&q.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")y(!0),E(!0)});
var F=function(c){y(c);E(c);var z=q.data().playlistCollaborationEntityKey||"";var m=_.sk().getState();(m=_.Ji(m.entities,"playlistCollaborationEntity",z))&&(m==null?void 0:m.isCollaborative)===c||_.sk().dispatch(_.$e("playlistCollaborationEntity",z,Object.assign({},m,{isCollaborative:c})))},R=function(c){E(c)};
return _.u("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.u("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.u(_.zS,{data:function(){return q.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(c){return _.u(_.GgJ,{data:c.data,
onSwitch:F})}})),_.u(_.t,{cond:b,
then:function(){return _.u(_.rV,null,_.u("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.u(_.zS,{data:function(){return q.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(c){return _.u(_.GgJ,{data:c.data,
onSwitch:R,overrideDisabled:!1})}})),_.u(_.t,{cond:J,
then:function(){return _.u("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.u(_.zS,{data:function(){return q.data().copyLinkButton}},{buttonViewModel:_.Ou}))}}),_.u("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.u(_.zS,{data:function(){return q.data().playlistCollaborators}},{contentListItemViewModel:_.K5X})))}}))},"On"),"playlist-collaboration-view-model",{props:{data:_.F5}});var FHh=_.n(function(q){var N=q.data;var b=q.customCommandResolver;return _.u(_.rV,null,_.u("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.u(_.zS,{data:function(){return N().adAvatar}},{adAvatarViewModel:function(y){return _.u(_.Pmj,{data:y.data,
customCommandResolver:b})}})),_.u("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.u(_.t,{cond:function(){return N().headline},
then:function(y){return _.u(_.Zc,{text:y,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.u("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.u(_.zS,{data:function(){return N().adBadge}},{adBadgeViewModel:function(y){return _.u(_.D2,{data:y.data,
hasDot:function(){return N().primaryDetailsLine!==void 0},
customCommandResolver:b,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.u(_.zS,{data:function(){return N().primaryDetailsLine}},{adDetailsLineViewModel:function(y){return _.u(_.hv,{data:y.data,
customCommandResolver:b,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Pn"),RTy=_.n(function(q){var N=q.data;
var b=q.customCommandResolver;return _.u("ad-avatar-lockup-view-model",{class:function(){var y;return((y=N().interaction)==null?0:y.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.ai(_.mn({visibilityCallback:function(y){var J,E=(J=N().interaction)==null?void 0:J.onFirstVisible;y&&E&&_.Kt(E)},
showOption:_.Yx}),_.KT(function(){return N().interaction},b)),
"aria-label":function(){var y,J;return(y=N().interaction)==null?void 0:(J=y.accessibility)==null?void 0:J.label}},_.u(_.sw,null,_.u(_.CI,{when:function(){return N().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.u(FHh,{data:N,
customCommandResolver:b})}),_.u(_.Iu,null,function(){return null})))},"Qn");_.P$(_.n(function(q){var N=q.data;var b=q.panelContentVisibility;q=_.mn({visibilityCallback:function(E){var F,R=(F=N().interaction)==null?void 0:F.onFirstVisible;E&&R&&_.Kt(R)},
showOption:_.Yx});var y=_.KT(function(){return N().interaction},kfh);
_.ae(function(){var E,F;if(F=_.Ng("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;F=(R=F())==null?void 0:R.onLayoutVisibleCallback}else F=null;(E=F)==null||E()},"Rn");
var J=function(){return b()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.u("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.ai(q,y)},_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.u(_.t,{cond:_.vhz("(min-width: "+((0,_.ph)()+_.Cj)+"px) or (max-width: 600px)"),then:function(){return _.u(_.zS,{data:function(){return N().adImage}},{adImageViewModel:function(E){return _.u(_.Lu,{data:E.data,
targetHeight:80,customCommandResolver:kfh})}})}})),_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.u(_.zS,{data:function(){return N().adAvatarLockup}},{adAvatarLockupViewModel:function(E){return _.u(RTy,{data:E.data,
customCommandResolver:kfh})}})),_.u(_.t,{cond:J,
then:function(){return _.u(_.zS,{data:function(){return N().adButton}},{adButtonViewModel:function(E){return _.u(_.OE,{data:E.data,
customCommandResolver:kfh})}})},
else:function(){return _.u(_.zS,{data:function(){return N().menu}},{buttonViewModel:_.Ou})}}),_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.u(_.zS,{data:function(){var E=_.v(N().toggleButton,_.de);
return{toggleButtonViewModel:Object.assign({},E,{isTogglingDisabled:!0,isToggled:J()})}}},{toggleButtonViewModel:_.LV})))))},"Sn"),"panel-ad-header-image-lockup-view-model",{props:{data:_.F5,
panelContentVisibility:_.F5}});_.P$(_.n(function(q){var N=function(){return _.v(q.data().inputComposerViewModel,Ccy)},b=_.uR(_.U$.currentPageSubTypeSelector),y=_.uR(_.U$.persistentPanelVisibleSelector),J=_.Z(_.QS(!1,void 0,"IASwBb")),E=J.next().value,F=J.next().value;
J=_.Z(_.QS(!1,void 0,"GdQ0qf"));var R=J.next().value,c=J.next().value,z=function(){w(!0);var xD;_.Kt(((xD=N())==null?void 0:xD.onSubmitCommand)||{})},m=function(){if(y()&&!R()){var xD;
(xD=_.JO())==null||xD.removeCueRange("aic-proactive");F(!1);c(!0);z();_.wa(_.$M(N().endOfVideoContinuation),{form:{formData:_.zY({clientMessageId:"youchat-"+Date.now(),pageContext:wA()})},commandController:{onSuccess:function(){w(!1)},
onServerError:function(){_.wa(VIe(L()));w(!1)}}})}},r=function(){var xD=_.JO();
if(xD&&!E()&&!R()){var IJ=xD.getDuration();IJ>60&&(xD.addCueRange("aic-proactive",IJ-60,IJ-20),F(!0))}},X=function(){var xD;
return((xD=N())==null?void 0:xD.youchatPendingResponseEntityKey)||""},V=_.dj(_.CLN,X),G=function(){var xD;
return!((xD=V())==null||!xD.isPendingResponse)},w=function(xD){_.IPa(X())(xD)};
J=_.Z(_.QS(!0,void 0,"n0Jijf"));var D=J.next().value,k=J.next().value,f=function(){var xD,IJ;var sJ=_.v((IJ=N())==null?void 0:IJ.inputFormField,QOX);return sJ==null?void 0:(xD=sJ.contentProperties)==null?void 0:xD.placeholderText},L=function(){return N().sectionTargetId||"youchat_messages_section"};
J=_.cK("yt-chat-input-view-model");var S=_.dI("textarea"),W=_.dj(x7c,"chat_input_view_model_state"),M=vZ_(),qe=function(){var xD;return!((xD=W())==null||!xD.value)},RJ=function(){return q.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},tZ=function(){var xD;
(xD=_.JO())==null||xD.removeCueRange("aic-proactive");F(!1);c(!1);var IJ;_.x("enable_navigational_proactive_messages_on_ai_companion")&&((IJ=N())==null?0:IJ.navigationContinuation)&&y()&&(z(),_.wa(_.$M(N().navigationContinuation),{form:{formData:_.zY({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:f$s(),pageContext:wA()})},commandController:{onSuccess:function(){w(!1)},
onServerError:function(){_.wa(VIe(L()));w(!1)}}}))},wA=function(){var xD;
return(xD=_.tz().resolve(_.$f(_.Mh)))==null?void 0:_.bMp(xD,b())};
_.WC(function(){if(_.x("enable_ai_chat_controller")){var xD;(xD=_.tz().resolve(_.$f(_.Mh)))==null||xD.init(q.data().environment)}else if(xD=I$h(q.data()),!qe()&&xD){var IJ;((IJ=N())==null?0:IJ.setPendingResponseOnWelcome)&&w(!0);_.wa(xD,{form:{formData:_.zY({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:f$s(),pageContext:wA()})}});M(!0)}var sJ=L(),Sn=_.tz().resolve(_.$f(_.US)),YE=function(){_.ux.remove(sJ);if(_.x("enable_ai_chat_controller")){var qv;(qv=_.tz().resolve(_.$f(_.Mh)))!=null&&qv.environment===
"CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(qv.lastWelcomeContinuationSent=void 0)}else M(!1)},xE=function(){_.YL(function(){if(RJ()&&(tZ(sJ),b()==="watch")){var qv=_.JO();
qv&&(qv.addEventListener("onStateChange",r),qv.addEventListener("onCueRangeEnter",m))}})};
IJ=_.x("enable_ai_companion")?!RJ():!0;Sn==null||Sn.addEventListener("yt-navigate-start",YE,{once:IJ});Sn==null||Sn.addEventListener("yt-navigate-finish",xE,{once:IJ});_.W1(function(){Sn==null||Sn.removeEventListener("yt-navigate-start",YE);Sn==null||Sn.removeEventListener("yt-navigate-finish",xE);var qv=_.JO();qv&&(qv.removeEventListener("onCueRangeEnter",m),qv.removeEventListener("onStateChange",r),qv.removeCueRange("aic-proactive"))})});
_.Sx(function(){if(_.x("enable_ai_chat_controller")){var xD=I$h(q.data());if(xD){var IJ,sJ=((IJ=N())==null?0:IJ.setPendingResponseOnWelcome)?w:void 0,Sn;(Sn=_.tz().resolve(_.$f(_.Mh)))==null||mgy(Sn,{command:xD,setPending:sJ})}}},"Z4XQCb");
var rA=function(){var xD=S.value.value;S.value.value="";U77(S.value);var IJ,sJ=((IJ=N())==null?void 0:IJ.enableGradientColorBg)||!1;IJ=ju7(L(),xD,sJ);_.wa(IJ);z();var Sn,YE,xE;IJ=(xE=_.O_((Sn=q.data())==null?void 0:Sn.sendUserQueryCommand))!=null?xE:_.$M((YE=N())==null?void 0:YE.continuation);_.wa(IJ,{form:{formData:_.zY({clientMessageId:"youchat-"+Date.now(),userInputText:xD,playerOffsetMs:f$s(),pageContext:wA()})},commandController:{onSuccess:function(){w(!1)},
onServerError:function(){_.wa(VIe(L()));w(!1)}}})};
return _.u("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:J},_.u("div",{class:"chatInputViewModelChatInputWrapper"},_.u("form",{class:"chatInputViewModelChatInputForm"},_.u("textarea",{class:"chatInputViewModelChatInput",el:S,"on:keydown":_.y0(function(xD){var IJ=G()||!1;U77(S.value);IJ||xD.key!=="Enter"||xD.shiftKey||(xD.preventDefault(),rA());return!1}),
"on:keyup":_.y0(function(){k(S.value.value.length===0);return!1}),
"aria-label":function(){return G()?q.data().loadingAnimationA11yLabel||"":f()},
placeholder:f,rows:1}),_.u(_.Ou,{data:function(){return _.v(q.data().sendButton,_.FF)},
onClick:function(xD){xD.preventDefault();rA();k(S.value.value.length===0)},
buttonOverrides:function(){return{disabled:D()||G()}}})),_.u(_.Zc,{className:"chatInputViewModelChatDisclaimer",
text:function(){var xD;return(xD=_.v(q.data().disclaimer,_.r0E))==null?void 0:xD.text}})))},"Un"),"yt-chat-input-view-model",{props:{data:_.F5}});var dLB=["engagement-panel-clip-create","engagement-panel-clip-view"],c9_=0,tC=function(){var q=_.C.apply(this,arguments)||this;var N;q.headerData=(N=q.data)==null?void 0:N.header;q.darkerPanels=_.x("web_watch_darker_panels");q.matchContentTheme=_.x("web_watch_panel_content_match_theme");q.disableAutoFill=!1;q.isFullscreen=!1;q.isTheaterMode=!1;q.liveChatReplyPanel=!1;q.enableAnchoredPanel=_.x("desktop_shorts_v2_anchored_panel");q.disableBackdropFilter=_.x("web_disable_backdrop_filter");q.isPersistentPanel=
!1;q.trackEngagementPanelVisibility=_.x("web_watch_track_engagement_panel_visibility");q.overscrollContain=!1;q.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 q};
_.Y(tC,_.C);_.g=tC.prototype;
_.g.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(q){var N;return(q==null?void 0:(N=q.webComponentHint)==null?void 0:N.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"}}}};
_.g.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var q;if((q=this.hostElement.parentElement)==null?0:q.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.g.detached=function(){this.updateTheaterDisablement()};
_.g.showPanel=function(){var q=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.pY.addJob(function(){q.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.g.maybeScrollToItemSection=function(q){var N=this,b,y=q==null?void 0:(b=q.sectionListEngagementPanelExtras)==null?void 0:b.scrollToItemSectionIdentifier;y&&_.pY.addJob(function(){var J;(J=N.sectionListRendererElement)==null||J.scrollToItemSection(y)},8)};
_.g.hidePanel=function(){var q=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.pY.addJob(function(){q.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.g.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.g.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.g.updatePanel=function(q,N,b,y){var J=this;if((q=q==null?void 0:q.engagementPanelSectionListRenderer)||y){if(q){y=q.header;var E=q.content,F=q.footer;(q=q.targetId)&&this.set("data.targetId",q);y&&this.set("data.header",y);E&&this.set("data.content",E);F&&this.set("data.footer",F)}else y&&(q=y.content,E=y.secondaryHeaderContent,F=y.targetId,y=y.loggingDirectives,F&&this.set("data.targetId",F),q&&this.set("data.content",q),y&&_.x("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",
y),E&&(this.secondaryHeaderData=E));this.updateChildVisibilityProperties();if(N){var R;_.x("kevlar_update_panel_focus_scroll_killswitch")||(R={preventScroll:!0});this.focus(R)}_.ut(this,function(){_.e2(J.hostElement,"yt-refit");J.maybeScrollToItemSection(b)})}};
_.g.computeHeaderData=function(){var q,N=(0,_.nM.unsafeClone)((q=this.data)==null?void 0:q.header);if(N){q=new _.yT(Object.keys(N)[0]);var b=_.v(N,q),y=_.v(this.secondaryHeaderData,q);y&&_.x0(N,q,Object.assign({},y,b))}return N};
_.g.getReloadContinuation=function(){var q,N,b,y=_.Z(((q=this.data)==null?void 0:(N=q.content)==null?void 0:(b=N.sectionListRenderer)==null?void 0:b.continuations)||[]);for(q=y.next();!q.done;q=y.next())if(q=q.value,q.reloadContinuationData)return q.reloadContinuationData.continuation};
_.g.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var q;((q=this.data)==null?0:q.targetId)&&(q=this.contentElement.firstElementChild)&&q.setAttribute("panel-target-id",this.data.targetId)};
_.g.forwardPopupClosedToFlowRootRenderer=function(){var q=_.ee(this.hostElement).querySelector("ytd-flow-root-renderer");if(q&&this.hostElement.closest("ytd-popup-container"))q.onPopupClosed()};
_.g.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var q;if(!dLB.includes((q=this.theaterDisablementPanelIdentifier)!=null?q:""))if(q=_.x("web_watch_imax_theater_mode")&&this.isTheaterMode,q=_.x("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||q,_.x("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||q){var N;this.visibility=(N=this.data)==null?void 0:N.visibility;var b;this.trackEngagementPanelVisibility&&((b=this.data)==null?void 0:b.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var y,J,E,F;this.contentEmpty=!!(((y=this.data)==null?0:(J=y.content)==null?0:J.structuredDescriptionContentRenderer)&&Object.keys((E=this.data)==null?void 0:(F=E.content)==null?void 0:
F.structuredDescriptionContentRenderer).length===0);(N=_.tz().resolve(_.M8))&&N.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.g.isTheaterModeChanged=function(){_.x("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.g.isFullscreenChanged=function(){_.x("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.g.focus=function(q){if(this.header)this.header.focus(q);else{var N;(N=_.ee(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||N.focus(q)}};
_.g.visibilityChanged=function(){if(!_.x("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var q=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",N=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",y=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",J=y||!this.lastVisibility,E,F,R,c=((E=this.data)==null?void 0:(F=E.identifier)==null?void 0:
F.tag)||((R=this.data)==null?void 0:R.panelIdentifier);if(q&&J){var z;((z=this.data)==null?0:z.onShowCommands)&&_.Nc(this.hostElement,this.data.onShowCommands,this.hostElement);c&&_.WT().dispatch(_.B3({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:c}}))}else if(N&&b){var m;((m=this.data)==null?0:m.onHideCommands)&&_.Nc(this.hostElement,this.data.onHideCommands,this.hostElement);c&&_.WT().dispatch(_.B3({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:c}}))}q&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*c9_++));_.x("kevlar_watch_focus_on_engagement_panels")&&q&&y&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.g.notifyVisibilityChanged=function(q){var N;_.Hy(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,q,(N=this.data)==null?void 0:N.targetId]);if(_.x("autonav_pause_for_comments_ep")){var b;_.e2(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:q==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(b=this.data)==null?void 0:b.targetId})}};
_.g.updateTheaterDisablement=function(){if(!_.x("kevlar_watch_theater_disablement_killswitch")){var q=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&dLB.includes(q)&&!_.x("watch_next_grid_ignore_disallowed_panels")){var N=_.Q0(_.WT().getState()),b=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";q!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():b?(this.originalTheaterState===void 0&&(this.originalTheaterState=N,this.theaterDisablementPanelIdentifier=
q),N&&_.By(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.g.clearTheaterDisablement=function(){_.By(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.g.updateChildVisibilityProperties=function(){this.hostElement||_.x("kevlar_panel_property_init_killswitch")||this._enableProperties();var q=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=q);var N,b=(N=this.headerElement)==null?void 0:N.firstElementChild;if(b&&!this.adHeaderImageLockupViewModel){N=q==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";b.collapsed=N;b=_.ee(b).querySelector("#visibility-button");if(!b)return;(b=b.firstElementChild)&&
b.polymerController.is==="ytd-toggle-button-renderer"&&b.polymerController.data.isToggled!==N&&b.polymerController.set("data.isToggled",N)}var y;if(N=(y=this.contentElement)==null?void 0:y.firstElementChild)if(q&&q!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")N.removeAttribute("panel-content-visible");else{N.setAttribute("panel-content-visible","");var J;(J=N.markDirty)==null||J.call(N)}};
_.g.onYtChangeEngagementPanelVisibilityAction=function(q){var N=this,b,y=(b=this.data)==null?void 0:b.targetId,J,E,F;b=((J=this.data)==null?void 0:(E=J.identifier)==null?void 0:E.tag)||((F=this.data)==null?void 0:F.panelIdentifier);var R=_.v(q,_.sNR),c;q=y&&(R==null?void 0:R.targetId)===y||b&&(R==null?void 0:(c=R.panelIdentifier)==null?void 0:c.tag)===b;this.dialog&&q&&(R==null?void 0:R.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(y==="engagement-panel-comments-section"?_.By(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.By(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",b]));!_.x("kevlar_use_engagement_panel_management_component")&&q&&(y=R.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!y?_.pY.addJob(function(){N.visibility=R.visibility},2,this.hideDelayMs):this.visibility=R.visibility,R.visibility&&this.notifyVisibilityChanged(R.visibility))};
_.g.onYtScrollToEngagementPanelCommand=function(q){var N,b=(N=this.data)==null?void 0:N.targetId,y,J,E;N=((y=this.data)==null?void 0:(J=y.identifier)==null?void 0:J.tag)||((E=this.data)==null?void 0:E.panelIdentifier);q=_.v(q,_.Bkx);var F;(b&&(q==null?void 0:q.targetId)===b||N&&(q==null?void 0:(F=q.panelIdentifier)==null?void 0:F.tag)===N)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.By(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.g.attachVEs=function(q){var N,b;(q==null?0:(N=q.content)==null?0:(b=N.productListRenderer)==null?0:b.trackingParams)&&_.FR().graftServerVe(q.content.productListRenderer.trackingParams);var y,J;(q==null?0:(y=q.content)==null?0:(J=y.transcriptRenderer)==null?0:J.trackingParams)&&_.FR().graftServerVe(q.content.transcriptRenderer.trackingParams)};
_.g.onYtUpdateEngagementPanelAction=function(q){var N,b=(N=this.data)==null?void 0:N.targetId;q=_.v(q,KaB);b&&(q==null?void 0:q.targetId)===b&&(this.updatePanel({engagementPanelSectionListRenderer:{header:q==null?void 0:q.header,content:q==null?void 0:q.content}},!1),this.attachVEs(q))};
_.g.onYtShowEngagementPanelScrimAction=function(q){var N,b=(N=this.data)==null?void 0:N.targetId;q=_.v(q,lMv);b&&(q==null?void 0:q.engagementPanelTargetId)===b&&(this.scrimmed=!0)};
_.g.onYtHideEngagementPanelScrimAction=function(q){var N,b=(N=this.data)==null?void 0:N.targetId;q=_.v(q,w4s);b&&(q==null?void 0:q.engagementPanelTargetId)===b&&(this.scrimmed=!1)};
_.g.getIdentifier=function(){var q,N,b;return((q=this.data)==null?void 0:q.panelIdentifier)||((N=this.data)==null?void 0:(b=N.identifier)==null?void 0:b.tag)};
_.g.getSurface=function(){var q,N;return(q=this.data)==null?void 0:(N=q.identifier)==null?void 0:N.surface};
_.$H.Object.defineProperties(tC.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var q=this.getIdentifier();return q==="engagement-panel-youchat"||q==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
tC.prototype.visibilityChanged=tC.prototype.visibilityChanged;tC.prototype.isFullscreenChanged=tC.prototype.isFullscreenChanged;tC.prototype.isTheaterModeChanged=tC.prototype.isTheaterModeChanged;tC.prototype.dataChanged=tC.prototype.dataChanged;tC.prototype.forwardPopupClosedToFlowRootRenderer=tC.prototype.forwardPopupClosedToFlowRootRenderer;tC.prototype.onYtRendererstamperFinished=tC.prototype.onYtRendererstamperFinished;
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],tC.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],tC.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],tC.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],tC.prototype,"ytEventForwardingBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],tC.prototype,"data",void 0);
_.p([_.U({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.P("design:type",Object)],tC.prototype,"headerData",void 0);_.p([_.U(),_.P("design:type",Object)],tC.prototype,"secondaryHeaderData",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],tC.prototype,"visibility",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],tC.prototype,"contentEmpty",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],tC.prototype,"scrimmed",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],tC.prototype,"dialog",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],tC.prototype,"dropdown",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],tC.prototype,"darkerPanels",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],tC.prototype,"matchContentTheme",void 0);_.p([_.U(),_.P("design:type",Object)],tC.prototype,"disableAutoFill",void 0);
_.p([_.U({reflectToAttribute:!0,value:_.x("optimal_reading_width_comments_ep")}),_.P("design:type",Boolean)],tC.prototype,"optimalReadingWidthComments",void 0);_.p([_.U(),_.P("design:type",Number)],tC.prototype,"hideDelayMs",void 0);_.p([_.U({selector:_.Ol,reflectToAttribute:!0}),_.P("design:type",Object)],tC.prototype,"isFullscreen",void 0);_.p([_.U({selector:_.Q0,reflectToAttribute:!0}),_.P("design:type",Object)],tC.prototype,"isTheaterMode",void 0);
_.p([_.U(),_.P("design:type",Number)],tC.prototype,"showDelayMs",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data.targetId"),_.P("design:type",Object),_.P("design:paramtypes",[])],tC.prototype,"targetId",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],tC.prototype,"webSize",null);_.p([_.U(),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],tC.prototype,"hideFooterBorder",null);
_.p([_.U(),_.P("design:type",Object)],tC.prototype,"isWatch",void 0);_.p([_.U(),_.P("design:type",Object)],tC.prototype,"originalTheaterState",void 0);_.p([_.U(),_.P("design:type",Object)],tC.prototype,"theaterDisablementPanelIdentifier",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],tC.prototype,"isWatchWhilePanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],tC.prototype,"shortsPanel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],tC.prototype,"liveChatEngagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],tC.prototype,"learningChatEngagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],tC.prototype,"liveChatReplyPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],tC.prototype,"enableAnchoredPanel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],tC.prototype,"disableBackdropFilter",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],tC.prototype,"isPersistentPanel",void 0);_.p([_.U(),_.P("design:type",Object)],tC.prototype,"trackEngagementPanelVisibility",void 0);_.p([_.U(),_.P("design:type",Object)],tC.prototype,"overscrollContain",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],tC.prototype,"isAiCompanionPanel",null);
_.p([_.dq("#header"),_.P("design:type",HTMLElement)],tC.prototype,"headerElement",void 0);_.p([_.dq("#header > *"),_.P("design:type",HTMLElement)],tC.prototype,"header",void 0);_.p([_.dq("ytd-section-list-renderer"),_.P("design:type",Object)],tC.prototype,"sectionListRendererElement",void 0);_.p([_.dq("panel-ad-header-image-lockup-view-model"),_.P("design:type",HTMLElement)],tC.prototype,"adHeaderImageLockupViewModel",void 0);
_.p([_.dq("#content"),_.P("design:type",HTMLElement)],tC.prototype,"contentElement",void 0);_.p([_.ZP("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tC.prototype,"onYtRendererstamperFinished",null);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tC.prototype,"forwardPopupClosedToFlowRootRenderer",null);
_.p([_.$9("data","isFullscreen","isTheaterMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tC.prototype,"dataChanged",null);_.p([_.FY("isTheaterMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tC.prototype,"isTheaterModeChanged",null);_.p([_.FY("isFullscreen"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tC.prototype,"isFullscreenChanged",null);
_.p([_.FY("visibility"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tC.prototype,"visibilityChanged",null);_.p([_.I({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],tC);
_.a(tC,"ytd-engagement-panel-section-list-renderer",function(){if(DrZ!==void 0)return DrZ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return DrZ=q},{mode:_.Am("kevlar_poly_si_batch_j028")?1:2});var u4e;var mV=function(){var q=_.C.apply(this,arguments)||this;q.lastRenderedPanelIds=new Set;q.visiblePanels=[];q.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return q};
_.Y(mV,_.C);_.g=mV.prototype;_.g.dataChanged=function(){if(this.data){for(var q=[],N=_.Z(this.data),b=N.next();!b.done;b=N.next()){b=b.value;var y=void 0,J=void 0,E=(y=b)==null?void 0:(J=y.engagementPanelSectionListRenderer)==null?void 0:J.visibility;J=y=void 0;((y=b)==null?0:(J=y.engagementPanelSectionListRenderer)==null?0:J.targetId)&&E!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&q.push(b)}this.visiblePanels=q}else this.visiblePanels=[]};
_.g.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}}};
_.g.withoutVisiblePanelById=function(q){return this.visiblePanels.filter(function(N){var b;return((b=N.engagementPanelSectionListRenderer)==null?void 0:b.targetId)!==q})};
_.g.onYtChangeEngagementPanelVisibilityAction=function(q){var N=this,b=_.v(q,_.sNR);if(this.data&&(b==null?0:b.targetId)&&(b==null?0:b.visibility)){var y,J=(y=this.data.find(function(F){var R;return((R=F.engagementPanelSectionListRenderer)==null?void 0:R.targetId)===b.targetId}))==null?void 0:y.engagementPanelSectionListRenderer;
if(J){var E=this.withoutVisiblePanelById(b.targetId);b.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(q=this.data.find(function(F){var R;return((R=F.engagementPanelSectionListRenderer)==null?void 0:R.targetId)===b.targetId}))&&(E=[q].concat(_.a9(E)));
this.hideDelayMs&&b.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&E.length===0?_.pY.addJob(function(){J.visibility=b.visibility;N.visiblePanels=E},10,this.hideDelayMs):(J.visibility=b.visibility,this.visiblePanels=E);
_.Hy(this.hostElement,"yt-engagement-panels-visible-changed",[E])}}};
_.g.onRendererstamperFinished=function(){var q=new Set(this.visiblePanels.map(function(N){var b;return(b=N.engagementPanelSectionListRenderer)==null?void 0:b.targetId}));
this.handlePanelVisibilityChange(q,this.lastRenderedPanelIds);this.lastRenderedPanelIds=q};
_.g.handlePanelVisibilityChange=function(q,N){q=q===void 0?new Set:q;N=N===void 0?new Set:N;if(this.data)for(var b=_.Z(this.data),y=b.next();!y.done;y=b.next()){y=y.value;var J=void 0,E=void 0,F=(J=y)==null?void 0:(E=J.engagementPanelSectionListRenderer)==null?void 0:E.targetId;if(F&&(J=N.has(F),E=q.has(F),F=void 0,!J&&E?(E=J=void 0,F=(J=y)==null?void 0:(E=J.engagementPanelSectionListRenderer)==null?void 0:E.onShowCommands):J&&!E&&(E=J=void 0,F=(J=y)==null?void 0:(E=J.engagementPanelSectionListRenderer)==
null?void 0:E.onHideCommands),F))for(y=_.Z(F),F=y.next();!F.done;F=y.next())this.ytComponentBehavior.resolveCommand(F.value)}};
mV.prototype.onRendererstamperFinished=mV.prototype.onRendererstamperFinished;mV.prototype.dataChanged=mV.prototype.dataChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],mV.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],mV.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],mV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],mV.prototype,"lastRenderedPanelIds",void 0);_.p([_.U(),_.P("design:type",Number)],mV.prototype,"hideDelayMs",void 0);_.p([_.U(),_.P("design:type",Array)],mV.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Array)],mV.prototype,"visiblePanels",void 0);_.p([_.U(),_.P("design:type",Boolean)],mV.prototype,"isWatchWhilePanel",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mV.prototype,"dataChanged",null);_.p([_.ZP("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mV.prototype,"onRendererstamperFinished",null);_.p([_.I({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],mV);
_.a(mV,"ytd-watch-engagement-panels",function(){if(u4e!==void 0)return u4e;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return u4e=q},{mode:1});var zTe;var r_=function(){return _.C.apply(this,arguments)||this};
_.Y(r_,_.C);r_.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.d0(_.ee(this.hostElement).querySelector("#text"),_.Nzx(_.JbT,this.data.companionLegalText))};
r_.prototype.computeAutoScrollEnabled=function(q,N){return q&&!N};
r_.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
r_.prototype.onToggleTap=function(){this.expanded=!this.expanded};
r_.prototype.expandedChanged=r_.prototype.expandedChanged;r_.prototype.dataChanged=r_.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.lls),_.P("design:type",Object)],r_.prototype,"ytdAutoScrollBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],r_.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],r_.prototype,"expanded",void 0);
_.p([_.U({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.P("design:type",Boolean)],r_.prototype,"autoScrollEnabled",void 0);_.p([_.U(),_.P("design:type",String)],r_.prototype,"expanderIcon",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],r_.prototype,"dataChanged",null);
_.p([_.FY("expanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],r_.prototype,"expandedChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],r_);
_.a(r_,"ytd-companion-legal-text-renderer",function(){if(zTe!==void 0)return zTe;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return zTe=q},{mode:1});var $Lx;var XW=function(){var q=_.C.apply(this,arguments)||this;q.buttonUpdate=_.x("web_modern_buttons");q.kevlarWatchGrid=_.x("kevlar_watch_grid");q.centerAlignDescription=_.x("action_companion_center_align_description");q.truncateDomain=_.x("action_companion_truncate_domain");q.enableMonoStyle=_.x("enable_default_mono_cta_migration_web_client");return q};
_.Y(XW,_.C);_.g=XW.prototype;_.g.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.g.getOnLayoutVisibleCallback=function(){var q=_.Ng("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.onLayoutVisibleCallback:null};
_.g.getLayoutId=function(){var q=_.Ng("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.layoutId:null};
_.g.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",XW.JSC$23340_DEFAULT_AD_BADGE_RENDERER);var q=this.getOnLayoutVisibleCallback();q&&q()}};
_.g.getButtonRenderer=function(q){return q.actionButton&&_.v(q.actionButton,_.JI)?(delete _.v(q.actionButton,_.JI).navigationEndpoint,_.v(q.actionButton,_.JI)):{}};
_.g.onClick=function(q){var N=this;if((!_.x("web_modern_buttons")||!_.Su(_.n9(q),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){q=_.Pk();var b=this.getLayoutId();q&&b&&_.x("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?q.getPlayerPromise().then(function(y){(new _.ei(y)).executeCommand(N.data.navigationEndpoint,b)}):_.x("kevlar_companion_resolve_command_killswitch")?_.e2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.By(this.hostElement,"yt-companion-ad-clicked",["action-companion",b])}};
_.$H.Object.defineProperties(XW.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return((q=this.data)==null?0:(N=q.detailsLine)==null?0:(b=N.adRating)==null?0:b.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 q,N,b,y;return((q=this.data)==null?0:(N=q.detailsLine)==null?0:(b=N.adRating)==null?0:(y=b.ratingIcon)==null?0:y.iconType)?_.qo(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var q,N,b,y;return((q=this.data)==null?0:(N=q.detailsLine)==null?0:(b=N.texts)==null?0:(y=b[0])==null?0:y.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 q,N;return((q=this.data)==null?0:(N=q.description)==null?0:N.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var q=_.Ng("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var q=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return q?q.indexOf("/default_banner")!==-1:!0}}});
XW.prototype.onClick=XW.prototype.onClick;XW.prototype.dataChanged=XW.prototype.dataChanged;XW.JSC$23340_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.FE("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],XW.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],XW.prototype,"rendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],XW.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],XW.prototype,"buttonUpdate",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],XW.prototype,"kevlarWatchGrid",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],XW.prototype,"centerAlignDescription",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],XW.prototype,"truncateDomain",void 0);
_.p([_.U({computed:"computeButtonOverride(buttonUpdate)"}),_.P("design:type",Object)],XW.prototype,"buttonOverride",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],XW.prototype,"enableMonoStyle",void 0);_.p([_.l("data.detailsLine.adRating.ratingText"),_.P("design:type",Object),_.P("design:paramtypes",[])],XW.prototype,"getRating",null);_.p([_.l("getRating"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],XW.prototype,"computeRatingHidden",null);
_.p([_.l("data.detailsLine.adRating.ratingIcon.iconType"),_.P("design:type",Object),_.P("design:paramtypes",[])],XW.prototype,"iconType",null);_.p([_.l("data.detailsLine.texts.0.text"),_.P("design:type",Object),_.P("design:paramtypes",[])],XW.prototype,"getDetailsLine",null);_.p([_.l("getDetailsLine"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],XW.prototype,"computeDetailsLineHidden",null);
_.p([_.l("data.description.text"),_.P("design:type",Object),_.P("design:paramtypes",[])],XW.prototype,"getDescriptionText",null);_.p([_.l("getDescriptionText"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],XW.prototype,"computeDescriptionTextHidden",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],XW.prototype,"interactionLoggingClientData",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],XW.prototype,"hideBanner",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],XW.prototype,"dataChanged",null);_.p([_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],XW.prototype,"onClick",null);_.p([_.I({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],XW);
_.a(XW,"ytd-action-companion-ad-renderer",function(){if($Lx!==void 0)return $Lx;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return $Lx=q},{mode:_.Am("kevlar_poly_si_batch_j067")?1:2});var tLX;var mLB;var VP=function(){var q=_.C.apply(this,arguments)||this;q.buttonUpdate=_.x("web_modern_buttons");q.hideLegacyBanner=_.x("enable_dsa_one_click_ata_translators_infeed_elements");q.adInfoButtonStyle="mono";q.adInfoButtonType="text";q.noDotAdBadge=!0;return q};
_.Y(VP,_.C);_.g=VP.prototype;_.g.getOnLayoutVisibleCallback=function(){var q=_.Ng("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.onLayoutVisibleCallback:null};
_.g.getLayoutId=function(){var q=_.Ng("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.layoutId:null};
_.g.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 q=this.data.image.thumbnail.thumbnails[0];this.imageSrc=q.url?_.pc(q.url):void 0;this.imageWidth=q.width||0;this.imageHeight=q.height||0}this.data.clickthroughEndpoint&&_.v(this.data.clickthroughEndpoint,_.b_)&&(q=_.v(this.data.clickthroughEndpoint,_.b_).url,_.x("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
q||"":q?(q=_.pc(q),this.clickThroughUrl=_.sh(q)):this.clickThroughUrl=void 0);(q=this.getOnLayoutVisibleCallback())&&q()}};
_.g.onClick=function(q){_.Su(_.n9(q),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(q)};
_.g.handleClick=function(){var q=this;this.data&&this.data.clickthroughEndpoint&&(_.e2(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(N){q.macroReplacementBehavior.sendServiceRequestAction([N])}),_.By(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.g.onLoad=function(){_.Hy(this.hostElement,"yt-refit-popups-action")};
_.$H.Object.defineProperties(VP.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var q=_.Ng("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var q=_.Ng("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.interactionLoggingClientData:null}}});
VP.prototype.onLoad=VP.prototype.onLoad;VP.prototype.onClick=VP.prototype.onClick;VP.prototype.dataChanged=VP.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],VP.prototype,"rendererBehavior",void 0);_.p([_.O(Y27.YtMacroReplacementBehavior),_.P("design:type",Object)],VP.prototype,"macroReplacementBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],VP.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],VP.prototype,"buttonUpdate",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],VP.prototype,"hideLegacyBanner",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],VP.prototype,"adInfoButtonStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],VP.prototype,"adInfoButtonType",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],VP.prototype,"macros",null);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],VP.prototype,"interactionLoggingClientData",null);_.p([_.U(),_.P("design:type",String)],VP.prototype,"clickThroughUrl",void 0);_.p([_.U(),_.P("design:type",_.Cc)],VP.prototype,"imageSrc",void 0);_.p([_.U(),_.P("design:type",Number)],VP.prototype,"imageWidth",void 0);_.p([_.U(),_.P("design:type",Number)],VP.prototype,"imageHeight",void 0);_.p([_.U(),_.P("design:type",Object)],VP.prototype,"noDotAdBadge",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],VP.prototype,"dataChanged",null);_.p([_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],VP.prototype,"onClick",null);_.p([_.ZP("load"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],VP.prototype,"onLoad",null);_.p([_.I({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],VP);
_.a(VP,"ytd-image-companion-renderer",function(){if(mLB!==void 0)return mLB;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return mLB=q},{mode:_.Am("kevlar_poly_si_batch_j067")?1:2});var r97;var jJ=function(){return _.C.apply(this,arguments)||this};
_.Y(jJ,_.C);_.g=jJ.prototype;_.g.dataChanged=function(){this.set("data.adBadge",jJ.JSC$23349_DEFAULT_AD_BADGE_RENDERER);if(this.data){var q=this.getOnLayoutVisibleCallback();q&&q()}};
_.g.getOnLayoutVisibleCallback=function(){var q=_.Ng("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.onLayoutVisibleCallback:null};
_.g.getLayoutId=function(){var q=_.Ng("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.layoutId:null};
_.g.onCompanionClicked=function(q){this.data&&(q.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.By(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.g.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var q=_.Pk(),N=this.getLayoutId(),b=this.data.clickToAdvSiteEndpoint;q&&N&&_.x("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?q.getPlayerPromise().then(function(y){(new _.ei(y)).executeCommand(b,N)}):_.e2(this.hostElement,"yt-navigate",{endpoint:b})}};
_.g.sendTrackingPings=function(q){if(q&&q.length!==0&&q[0].loggingUrls&&(q=q[0].loggingUrls.map(this.getBaseUrl)))for(var N=0;N<q.length;N++)_.b0(q[N])};
_.g.getBaseUrl=function(q){return q.baseUrl||""};
_.$H.Object.defineProperties(jJ.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var q=_.Ng("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.interactionLoggingClientData:null}}});
jJ.prototype.onCompanionClicked=jJ.prototype.onCompanionClicked;jJ.prototype.dataChanged=jJ.prototype.dataChanged;jJ.JSC$23349_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.FE("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],jJ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],jJ.prototype,"data",void 0);_.p([_.dq("#title"),_.P("design:type",HTMLElement)],jJ.prototype,"shopTitle",void 0);
_.p([_.$9("data.impressionEndpoints"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jJ.prototype,"dataChanged",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],jJ.prototype,"interactionLoggingClientData",null);_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],jJ.prototype,"onCompanionClicked",null);
_.p([_.I({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],jJ);
_.a(jJ,"ytd-shopping-companion-renderer",function(){if(r97!==void 0)return r97;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return r97=q},{mode:1});_.P$(_.n(function(q){var N=q.data;q=_.mn({visibilityCallback:function(y){var J,E=(J=N().interaction)==null?void 0:J.onFirstVisible;y&&E&&_.Kt(E)},
showOption:_.Yx});var b=_.KT(function(){return N().interaction},TVy);
_.ae(function(){var y,J;J=(J=_.Ng("yt.www.ads.eventcache.getLastCompanionData"))?(J=J())&&J.onLayoutVisibleCallback:null;(y=J)==null||y()},"Vn");
return _.u("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.y0(function(y){_.Hy(y.currentTarget,"yt-refit-popups-action")}),
el:_.ai(q,b),"aria-label":function(){var y,J;return(y=N().interaction)==null?void 0:(J=y.accessibility)==null?void 0:J.label}},_.u("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.u(_.zS,{data:function(){return N().adImage}},{adImageViewModel:function(y){return _.u(_.Lu,{data:y.data,
targetHeight:80,customCommandResolver:TVy})}})),_.u("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.u("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.u(_.zS,{data:function(){return N().adBadge}},{adBadgeViewModel:function(y){return _.u(_.D2,{data:y.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.u("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.u(_.zS,{data:function(){return N().menu}},{buttonViewModel:_.Ou}))))},"Wn"),"banner-image-layout-view-model",{props:{data:_.F5}});_.P$(_.n(function(q){var N=q.data;q=_.mn({visibilityCallback:function(y){var J,E=(J=N().interaction)==null?void 0:J.onFirstVisible;y&&E&&_.Kt(E)},
showOption:_.Yx});var b=_.KT(function(){return N().interaction},sux);
_.ae(function(){var y,J;J=(J=_.Ng("yt.www.ads.eventcache.getLastCompanionData"))?(J=J())&&J.onLayoutVisibleCallback:null;(y=J)==null||y()},"Xn");
return _.u("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.ai(q,b)},_.u("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.u(_.zS,{data:function(){return N().adImage}},{adImageViewModel:function(y){return _.u(_.Lu,{data:y.data,
targetHeight:80,customCommandResolver:sux})}})),_.u("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.u("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.u(_.zS,{data:function(){return N().adAvatarLockup}},{adAvatarLockupViewModel:function(y){return _.u(RTy,{data:y.data,
customCommandResolver:sux})}})),_.u(_.zS,{data:function(){return N().adButton}},{adButtonViewModel:function(y){return _.u(_.OE,{data:y.data,
customCommandResolver:sux})}}),_.u("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.u(_.zS,{data:function(){return N().menu}},{buttonViewModel:_.Ou}))))},"Yn"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.F5}});var XBh={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"},xq=function(){var q=_.C.apply(this,arguments)||this;q.updateCompanionDataJobId=0;q.contentVideoId=null;q.player=null;q.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return q};
_.Y(xq,_.C);_.g=xq.prototype;_.g.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:XBh}}};
_.g.attached=function(){var q=this,N=_.Pk();N&&N.getPlayerPromise().then(function(b){q.getCachedDataAndListen(b)})};
_.g.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.g.updateRendererStamper=function(){var q={};if(this.data)for(var N in XBh)if(this.data[N]){q[N]=this.data[N];break}if(this.oneofRenderer!=void 0||Object.keys(q).length)this.oneofRenderer=q};
_.g.getCachedDataAndListen=function(q){var N=this.retrieveCachedCompanionData();N&&Object.keys(N).length&&this.receiveCompanionData(N);this.ytPlayerListenerBehavior.listenToPlayerEvent(q,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=q};
_.g.retrieveCachedCompanionData=function(){return _.JZ.yt&&_.JZ.yt.www&&_.JZ.yt.www.ads&&_.JZ.yt.www.ads.eventcache&&_.JZ.yt.www.ads.eventcache.getLastCompanionData?_.JZ.yt.www.ads.eventcache.getLastCompanionData():null};
_.g.receiveCompanionData=function(q){q&&Object.keys(q).length?(this.contentVideoId=q.contentVideoId,this.setCompanionData(q)):this.setCompanionData(q)};
_.g.setCompanionData=function(q){this.cancelPendingCompanionAdJobs();if(q){this.updateCompanionDataJobId=0;for(var N in XBh)XBh.hasOwnProperty(N)&&(this.data[N]=void 0);q.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",q.shoppingCompanionCarouselRenderer):q.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",q.imageCompanionAdRenderer):q.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",q.actionCompanionAdRenderer),_.Hy(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Hy(this.hostElement,"yt-hide-tvfilm-offer-module")):q.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",q.bannerImageLayoutViewModel):q.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",q.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.g.dataChanged=function(){var q=this,N=_.Pk();N?N.getPlayerPromise().then(function(b){q.contentVideoId&&b.getVideoUrl().includes("v="+q.contentVideoId)||(q.cancelPendingCompanionAdJobs(),q.updateRendererStamper())}):_.bv(Error("bp"))};
_.g.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.pY.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.g.handleCompanionAdClicked=function(q,N){this.player.onAdUxClicked(q,N);this.player.pauseVideo()};
xq.prototype.dataChanged=xq.prototype.dataChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],xq.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],xq.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],xq.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.d2.YtPlayerListenerBehavior),_.P("design:type",_.cX)],xq.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],xq.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],xq.prototype,"oneofRenderer",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xq.prototype,"dataChanged",null);_.p([_.I({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],xq);
_.a(xq,"ytd-companion-slot-renderer",function(){if(tLX!==void 0)return tLX;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return tLX=q},{mode:_.Am("kevlar_poly_si_batch_j067")?
1:2});var VL_;var vs=function(){return _.C.apply(this,arguments)||this};
_.Y(vs,_.C);vs.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
vs.prototype.dataChanged=vs.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],vs.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],vs.prototype,"companionSlotData",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vs.prototype,"dataChanged",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],vs);
_.a(vs,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(VL_!==void 0)return VL_;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return VL_=q},{mode:1});var jPx;var Gg=function(){var q=_.C.apply(this,arguments)||this;q.skinnyMode=!1;q.COMPACT_EVENT_COUNT=4;q.onShelfToggleButtonTap=function(){q.logTap(q.data);q.showingMore=!q.showingMore};
q.onShelfToggleButtonFocus=function(){q.showingMore||(q.logTap(q.data),q.showingMore=!0,_.ut(q,function(){var N=q.COMPACT_EVENT_COUNT-1,b;(b=_.ee(q.hostElement).querySelector("#event-"+N))==null||b.focus()}))};
return q};
_.Y(Gg,_.C);_.g=Gg.prototype;_.g.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.g.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.g.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.gq(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.gq(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.gq(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.gq(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.gq(this.infoTooltip,this.infoTooltip.hide))};
_.g.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.gq(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.gq(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.gq(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.gq(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.gq(this.infoTooltip,this.infoTooltip.hide))};
_.g.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)};
_.g.onShowingMoreChanged=function(){var q;this.showingMoreChanged((q=this.showingMore)!=null?q:!1)};
_.g.showingMoreChanged=function(q){var N=this.get("data.events")||[];this.set("restEvents",N.slice(1,q?N.length:this.COMPACT_EVENT_COUNT).map(function(b){return b.ticketEventRenderer}));
N.slice(0,q?N.length:this.COMPACT_EVENT_COUNT).forEach(function(b){var y=_.Oe();b=b.ticketEventRenderer.trackingParams;_.QY()&&y&&b&&(b=_.zT(b),y&&_.I5(y,b))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.g.computeAriaLabel=function(q){return q.subtitle1+", "+q.subtitle2};
_.g.logTap=function(q){_.QY()&&this.ytRendererBehavior.logExplicitClick(q)};
_.g.isKeyboardAction=function(q){return this.get("detail.x",q)===0&&this.get("detail.y",q)===0};
_.g.onFirstEventTap=function(q){q.target&&this.handleTap(q.target,this.firstEvent,this.isKeyboardAction(q))};
_.g.onTicketLinkTap=function(q){q.target&&this.handleTap(q.target,q.model.item,this.isKeyboardAction(q))};
_.g.handleTap=function(q,N,b){if(N.buttonCommand)if(N.hasMultipleOffers)Object.assign(_.v(N.buttonCommand,_.sj),{properties:{source:b?"keyboard":"tap"}}),this.logTap(N),this.popupPositionTarget=q,_.Nc(this.hostElement,[N.buttonCommand],this.hostElement);else{var y;if((y=_.v(N.buttonCommand,_.b_))==null?0:y.url)this.logTap(N),_.yz(window,_.v(N.buttonCommand,_.b_).url)}};
Gg.prototype.onShowingMoreChanged=Gg.prototype.onShowingMoreChanged;Gg.prototype.dataChanged=Gg.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Gg.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Gg.prototype,"firstEvent",void 0);_.p([_.U(),_.P("design:type",Object)],Gg.prototype,"restEvents",void 0);_.p([_.U(),_.P("design:type",String)],Gg.prototype,"imageUrl",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Gg.prototype,"showingMore",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Gg.prototype,"canShowMore",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Gg.prototype,"skinnyMode",void 0);_.p([_.U(),_.P("design:type",HTMLElement)],Gg.prototype,"popupPositionTarget",void 0);_.p([_.dq("#banner-info-tooltip"),_.P("design:type",Object)],Gg.prototype,"infoTooltip",void 0);
_.p([_.dq("#info-container"),_.P("design:type",HTMLElement)],Gg.prototype,"infoContainer",void 0);_.p([_.dq("#shelf-toggler"),_.P("design:type",HTMLElement)],Gg.prototype,"shelfToggleButton",void 0);_.p([_.dq("#separator"),_.P("design:type",HTMLDivElement)],Gg.prototype,"separator",void 0);_.p([_.U(),_.P("design:type",String)],Gg.prototype,"shelfTogglerLabelText",void 0);_.p([_.U(),_.P("design:type",String)],Gg.prototype,"shelfTogglerIcon",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Gg.prototype,"dataChanged",null);_.p([_.$9("showingMore"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Gg.prototype,"onShowingMoreChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Gg);
_.a(Gg,"ytd-ticket-shelf-renderer",function(){if(jPx!==void 0)return jPx;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return jPx=q},{mode:1});var xLc;var vHe;var Gjl=function(){return _.C.apply(this,arguments)||this};
_.Y(Gjl,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Gjl.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Gjl.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Gjl);
_.a(Gjl,"ytd-comments-entry-point-message-renderer",function(){if(vHe!==void 0)return vHe;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return vHe=q},{mode:1});var Y7B;var Yq=function(){return _.C.apply(this,arguments)||this};
_.Y(Yq,_.C);_.$H.Object.defineProperties(Yq.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.teaserAvatar)}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Yq.prototype,"data",void 0);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Yq.prototype,"hasAvatar",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],Yq);
_.a(Yq,"ytd-comments-entry-point-teaser-renderer",function(){if(Y7B!==void 0)return Y7B;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Y7B=q},{mode:1});var QP7;var OAe=function(){return _.C.apply(this,arguments)||this};
_.Y(OAe,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],OAe.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],OAe.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],OAe);
_.a(OAe,"ytd-comments-simplebox-renderer",function(){if(QP7!==void 0)return QP7;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return QP7=q},{mode:1});var QP=function(){var q=_.C.apply(this,arguments)||this;q.fullHeight=!_.x("comment_teaser_full_height_kill_switch")&&_.x("kevlar_watch_grid");return q};
_.Y(QP,_.C);QP.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"}}}};
QP.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
QP.prototype.onTap=function(){var q=this.tapCommand;q&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(q))};
QP.prototype.onKeyUp=function(q){if(q.keyCode===13)this.onTap()};
_.$H.Object.defineProperties(QP.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null?0:q.onTap)return this.data.onTap;var N,b;if(((N=this.data)==null?0:N.teaserContent)||((b=this.data)==null?0:b.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)!=null&&q.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
QP.prototype.onKeyUp=QP.prototype.onKeyUp;QP.prototype.onTap=QP.prototype.onTap;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],QP.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],QP.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],QP.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],QP.prototype,"fullHeight",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],QP.prototype,"tapCommand",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],QP.prototype,"simpleboxPlaceholder",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],QP.prototype,"hasSimpleboxPlaceholder",null);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],QP.prototype,"simpleboxAvatar",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],QP.prototype,"teaserContent",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],QP.prototype,"hasTeaserContent",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],QP.prototype,"teaserAvatar",null);
_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],QP.prototype,"hasTeaserAvatar",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],QP.prototype,"messageText",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],QP.prototype,"contentRenderer",null);_.p([_.l("data"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],QP.prototype,"hasContents",null);
_.p([_.l("data"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],QP.prototype,"hasContentRenderer",null);_.p([_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],QP.prototype,"onTap",null);_.p([_.ZP("keypress"),_.P("design:type",Function),_.P("design:paramtypes",[_.v2]),_.P("design:returntype")],QP.prototype,"onKeyUp",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],QP);
_.a(QP,"ytd-comments-entry-point-header-renderer",function(){if(xLc!==void 0)return xLc;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return xLc=q},{mode:1});var wBX;_.P$(_.SPJ,"yt-animated-rolling-number",{props:{numberText:_.F5,numberValue:_.F5,heightPx:_.F5,fontSizeMultiplier:_.F5,shouldAnimate:_.F5,forceRollUp:_.F5}});var iAh=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),lpB={numberText:"",heightPx:2*iAh,shouldAnimate:!1},OB=function(){var q=_.C.apply(this,arguments)||this;q.usingAnimatedComponents=!0;q.wasDetailed=!1;q.JSC$23386_browserSupportsAnimation=_.x("web_supports_animations_api");q.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};q.detailed=!1;q.shouldAnimate=!1;q.viewCountProps=lpB;q.dateTextProps=
lpB;q.metadataBadgesInDescription=_.x("web_metadata_badges_in_description");return q};
_.Y(OB,_.C);_.g=OB.prototype;_.g.attached=function(){var q=this;_.tz().resolve(_.ij).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(N){q.set("videoPrimaryInfoRenderer.subtitle",N)})};
_.g.detached=function(){_.tz().resolve(_.ij).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.g.resetAnimationState=function(){this.shouldAnimate=!1};
_.g.updateDynamicMetadata=function(){if(this.JSC$23386_browserSupportsAnimation){if(!this.detailed){var q,N,b,y;var J=(q=this.videoPrimaryInfoRenderer)==null?void 0:(N=q.viewCount)==null?void 0:(b=N.videoViewCountRenderer)==null?void 0:(y=b.extraShortViewCount)==null?void 0:y.simpleText;var E,F,R,c;var z=(E=this.videoPrimaryInfoRenderer)==null?void 0:(F=E.viewCount)==null?void 0:(R=F.videoViewCountRenderer)==null?void 0:(c=R.shortViewCount)==null?void 0:c.simpleText}if(!z){var m,r,X,V;J=(m=this.videoPrimaryInfoRenderer)==
null?void 0:(r=m.viewCount)==null?void 0:(X=r.videoViewCountRenderer)==null?void 0:(V=X.unlabeledViewCountValue)==null?void 0:V.simpleText;var G,w,D,k;z=(G=this.videoPrimaryInfoRenderer)==null?void 0:(w=G.viewCount)==null?void 0:(D=w.videoViewCountRenderer)==null?void 0:(k=D.viewCount)==null?void 0:k.simpleText}var f,L,S;q=Number((f=this.videoPrimaryInfoRenderer)==null?void 0:(L=f.viewCount)==null?void 0:(S=L.videoViewCountRenderer)==null?void 0:S.originalViewCount);var W,M;f=(W=this.videoPrimaryInfoRenderer)==
null?void 0:(M=W.relativeDateText)==null?void 0:M.simpleText;var qe;W=!((qe=this.videoPrimaryInfoRenderer)==null||!qe.relativeDateText);if(J&&z&&q&&(f||!W)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;qe=z.split(new RegExp("("+J+")"));J=_.nD(qe[0]);var RJ;z={numberText:(RJ=qe[1])!=null?RJ:"",numberValue:q,heightPx:2*iAh,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var tZ;RJ=((tZ=qe[2])!=null?tZ:"")+"  ";this.setViewCount(z,J,_.nD(RJ));
if(!this.detailed&&W){J=f.split(/(\d+)/);tZ=_.nD(J[0]);var wA;RJ={numberText:(wA=J[1])!=null?wA:"",heightPx:2*iAh,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var rA;wA=((rA=J[2])!=null?rA:"")+"  ";this.setDateText(RJ,tZ,_.nD(wA))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.g.setViewCount=function(q,N,b){_.ao(N)!==_.ao(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=N);this.viewCountProps.numberText!==(q==null?void 0:q.numberText)&&(this.viewCountProps=q||lpB);_.ao(b)!==_.ao(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=b)};
_.g.setDateText=function(q,N,b){_.ao(N)!==_.ao(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=N);this.dateTextProps.numberText!==(q==null?void 0:q.numberText)&&(this.dateTextProps=q||lpB);_.ao(b)!==_.ao(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=b)};
_.g.onYtUpdateViewershipAction=function(q){this.videoPrimaryInfoRenderer&&(_.v(q,bYs).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.v(q,bYs).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.v(q,bYs).viewCount)))};
_.g.onYtUpdateDateTextAction=function(q){if(this.videoPrimaryInfoRenderer){q=_.v(q,_.qav).dateText;this.shouldAnimate=!0;var N;((N=this.videoPrimaryInfoRenderer)==null?0:N.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",q):this.set("videoPrimaryInfoRenderer.dateText",q)}};
_.$H.Object.defineProperties(OB.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return LTe(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.ao(LTe(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.ao(this.viewCountPreNumberText),this.viewCountProps.numberText,_.ao(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.ao(this.dateTextPreNumberText),this.dateTextProps.numberText,_.ao(this.dateTextPostNumberText)].join("")}}});
OB.prototype.updateDynamicMetadata=OB.prototype.updateDynamicMetadata;OB.prototype.resetAnimationState=OB.prototype.resetAnimationState;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],OB.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],OB.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],OB.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],OB.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],OB.prototype,"videoPrimaryInfoRenderer",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],OB.prototype,"detailed",void 0);_.p([_.U(),_.P("design:type",Object)],OB.prototype,"shouldAnimate",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],OB.prototype,"viewCountPreNumberText",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],OB.prototype,"viewCountProps",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],OB.prototype,"viewCountPostNumberText",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],OB.prototype,"dateTextPreNumberText",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],OB.prototype,"dateTextProps",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],OB.prototype,"dateTextPostNumberText",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],OB.prototype,"metadataBadgesInDescription",void 0);_.p([_.l("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.P("design:type",Object),_.P("design:paramtypes",[])],OB.prototype,"infoText",null);
_.p([_.l("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.P("design:type",String),_.P("design:paramtypes",[])],OB.prototype,"descriptionInfoTooltipText",null);_.p([_.l("detailed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],OB.prototype,"showDescriptionInfoTooltip",null);
_.p([_.l("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.P("design:type",String),_.P("design:paramtypes",[])],OB.prototype,"animatedViewCountAccessibilityLabel",null);_.p([_.l("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.P("design:type",String),_.P("design:paramtypes",[])],OB.prototype,"animatedDateTextAccessibilityLabel",null);
_.p([_.FY("videoPrimaryInfoRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],OB.prototype,"resetAnimationState",null);_.p([_.FY("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],OB.prototype,"updateDynamicMetadata",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-watch-info-text"})],OB);
_.a(OB,"ytd-watch-info-text",function(){if(wBX!==void 0)return wBX;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return wBX=q},{mode:1});var KH7;var DLe="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var hT7=_.n(function(q){var N=q.data;var b=q.setTapCommand;_.Sx(function(){var y=_.O_(N().onTap);b(y)},"CLm0Xe");
return _.u("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.u(_.zS,{data:function(){return N().avatar}},{avatarViewModel:_.HF}),_.u("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.u("span",null,function(){return N().simpleboxText})))},"$n");var kj_=_.n(function(q){return _.u("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.u(_.t,{cond:function(){return _.v(q.data().avatar,_.wj)},
then:function(N){return _.u(_.HF,{data:N,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.u("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.u(_.Zc,{text:function(){return q.data().teaserText}})))},"ao");var ULB=_.n(function(q){var N=q.data;var b=q.setTapCommand;_.Sx(function(){var y=_.O_(N().onTap);b(y)},"qxjCCd");
return _.u("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.u(_.zS,{data:function(){return N().teasers}},{commentsEntryPointTeaserViewModel:kj_}))},"co");var fpB=_.n(function(q){var N=q.data;var b=q.setTapCommand;_.Sx(function(){var y=_.O_(N().onTap);b(y)},"CRZByf");
return _.u("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.u(_.Zc,{text:function(){return N().messageText}}))},"fo");var Cte=_.n(function(q){var N=q.data;var b=q.setTapCommand;var y=q.isDisabled;_.Sx(function(){var J=(y==null?0:y())?void 0:_.O_(N().onTap);b(J)},"GZxRqd");
return _.u("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.u(_.FQ,{icon:function(){return N().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.u(_.t,{cond:function(){return N().image},
then:function(J){return _.u(_.s_,{data:J,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.u(_.Zc,{text:function(){return N().text},
className:function(){return N().image||N().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.u(_.zS,{data:function(){return N().button}},{buttonViewModel:function(J){return _.u(_.Ou,{data:J.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:y==null?void 0:y()}}})}}))},"ho");var Ipx=_.n(function(q){var N=q.data;var b=q.itemIndex;var y=q.selectedIndex;var J=q.indexUpdatedCallback;var E=q.observer;q=q.title;var F=_.dI("yt-carousel-item-view-model",function(r){E&&E().observe(r)}),R=function(r){b()===y()&&J(r)},c=_.uR(m7x),z=_.uR(_.Emn),m=function(){var r,X,V,G,w;
return((r=N())==null?void 0:r.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!c()||((X=N())==null?void 0:X.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((V=z())==null?void 0:V.includes("PAposts_by_host"))||((G=N())==null?void 0:G.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((w=z())==null?void 0:w.includes("PAyouchat"))};
return _.u("yt-carousel-item-view-model",{el:F,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":q},_.u(_.zS,{data:function(){var r,X;return(X=(r=_.v(N().carouselItem,YV7))==null?void 0:r.textCarousel)!=null?X:N().carouselItem}},{textCarouselItemViewModel:function(r){return _.u(Cte,{data:r.data,
setTapCommand:R,isDisabled:m})},
commentTeaserCarouselItemViewModel:function(r){return _.u(ULB,{data:r.data,setTapCommand:R})},
commentInputBoxCarouselItemViewModel:function(r){return _.u(hT7,{data:r.data,setTapCommand:R})},
commentsEntryPointMessageViewModel:function(r){return _.u(fpB,{data:r.data,setTapCommand:R})}}))},"io");var Tde=_.n(function(q){var N=q.numDots;var b=q.activeIndex;return _.u("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.u(_.Tf,{each:function(){return Array.from({length:N()})},
keyBy:"INDEX"},function(y,J){return _.u("div",{class:function(){var E={};return _.jz("ytCarouselDotsShapeDot",(E.ytCarouselDotsShapeDotActive=J===b(),E))}})}))},"jo");var sPB=_.n(function(q){var N=q.data;var b=q.handleCarouselNavigation;var y=q.numItems;var J=q.selectedIndex;var E=function(){return{disabled:J()===0}},F=function(){return{disabled:J()===y()-1}};
return _.u("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.u("div",null,_.u("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return N().title}),_.u(_.t,{cond:function(){return N().subtitle},
then:function(R){return _.u("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return N().subtitleAccessibilityText}},R)}})),_.u(_.t,{cond:function(){return y()>1},
then:function(){return _.u("div",{class:"ytCarouselTitleViewModelNavigation"},_.u(Tde,{numDots:y,activeIndex:J}),_.u(_.t,{cond:function(){return N().previousButton},
then:function(R){return _.u(_.zS,{data:R},{buttonViewModel:function(c){return _.u(_.Ou,{data:c.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return b(-1)},
buttonOverrides:E})}})}}),_.u(_.t,{cond:function(){return N().nextButton},
then:function(R){return _.u(_.zS,{data:R},{buttonViewModel:function(c){return _.u(_.Ou,{data:c.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return b(1)},
buttonOverrides:F})}})}}))}}))},"ko");_.P$(_.n(function(q){var N=q.data;var b,y=_.dI("yt-video-metadata-carousel-view-model"),J=_.dI("div",function(W){var M=function(){var qe=W.offsetWidth*w(),RJ=24*(w()-1);X(qe+RJ)};
M();window.ResizeObserver&&(b=new ResizeObserver(M),b.observe(W))}),E=_.M7("HTML_DIR")==="rtl",F=!1,R=0,c=0;
q=_.Z(_.QS(0,void 0,"M49TDf"));var z=q.next().value,m=q.next().value;q=_.Z(_.QS(0,void 0,"zLIok"));var r=q.next().value,X=q.next().value;q=_.Z(_.QS(!1,void 0,"bhelhc"));var V=q.next().value,G=q.next().value,w=function(){var W,M,qe;return(qe=(W=N())==null?void 0:(M=W.carouselTitles)==null?void 0:M.length)!=null?qe:0},D=function(){J.value&&J.value.scrollLeft!==R&&m((E?J.value.scrollLeft<R:J.value.scrollLeft>R)?Math.min(z()+1,w()-1):Math.max(z()-1,0))},k;
window.IntersectionObserver&&(k=new IntersectionObserver(function(W){W=_.Z(W);for(var M=W.next();!M.done;M=W.next())if(M.value.isIntersecting){if(F){F=!1;break}D()}else m(c)},{threshold:.2}));
_.Sx(function(){if(J.value){var W=(E?-1:1)*(r()/w()+12)*(V()&&k?c:z());typeof J.value.scrollTo==="function"?J.value.scrollTo({left:W,behavior:"smooth"}):J.value.scrollLeft=W;R=W;c=V()&&k?c:z()}},"s9rbgc");
var f,L=function(W){f=W};
_.W1(function(){var W;(W=b)==null||W.disconnect();var M;(M=k)==null||M.disconnect()});
var S=function(W){W=z()+W;W>=0&&W<w()&&(F=!0,m(W))};
return _.u("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:y,"on:click":_.y0(function(W){if(_.vG(_.xe(W),y.value,["BUTTON".toString()])||!f)return!1;_.tz().resolve(_.rO).resolveCommand(f,{forceClickLogging:!0});return!1}),
"on:touchstart":_.y0(function(){G(!0);return!1}),
"on:touchend":_.y0(function(){k||D();G(!1);return!1}),
hidden:function(){var W,M;return!((W=N())==null?0:(M=W.carouselItems)==null?0:M.length)}},_.u("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.u(_.t,{cond:function(){return N().carouselTitles},
then:function(W){return _.u(_.zS,{data:function(){return W()[V()&&k?c:z()]}},{carouselTitleViewModel:function(M){return _.u(sPB,{data:M.data,
handleCarouselNavigation:S,numItems:w,selectedIndex:z})}})}})),_.u("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:J},_.u("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+r()+"px;"}},_.u(_.t,{cond:function(){return N().carouselItems},
then:function(W){return _.u(_.Tf,{each:W},function(M,qe){return _.u(_.zS,{data:function(){return M}},{carouselItemViewModel:function(RJ){return _.u(Ipx,{data:RJ.data,
itemIndex:qe,selectedIndex:z,indexUpdatedCallback:L,observer:k,title:function(){a:{var tZ=qe();var wA,rA=(wA=N())==null?void 0:wA.carouselTitles;if(rA&&(tZ=rA[tZ])){var xD;tZ=(xD=_.v(tZ,G17))==null?void 0:xD.title;break a}tZ=void 0}return tZ}})}})})}}))))},"mo"),"yt-video-metadata-carousel-view-model",{props:{data:_.F5}});var nHX=_.x("web_action_buttons_update_owner_width")?32:12,w_=function(){var q=_.C.apply(this,arguments)||this;q.isHovering=!1;q.enableColorSampling=_.x("web_delhi_colorful_sd");q.metadataBadgesInDescription=_.x("web_metadata_badges_in_description");q.descriptionCollapsed=!0;q.useFadedScrimDescription=_.x("kevlar_enable_faded_scrim_on_description");q.skinnyMode=!1;q.playlist=!1;q.isDark=document.documentElement.hasAttribute("dark");q.disableVideoOwnerOnTap=_.x("swatchie_video_owner_on_tap_ks");q.swatcherooDelayLoad=
_.x("swatcheroo_enable_ghost_cards");q.primaryMenuWidth=0;q.videoId="";q.titleHeadlineXs=_.x("web_watch_typography_title_headline_xs");q.titleHeadlineS=_.x("web_watch_typography_title_headline_s");q.titleHeadlineM=_.x("web_watch_typography_title_headline_m");q.titleHashtagBlackLinkified=_.x("web_title_hashtag_black_linkified");q.titleHashtagGreyLinkified=_.x("web_title_hashtag_grey_linkified");q.actionButtonsUpdateOwnerWidth=_.x("web_action_buttons_update_owner_width");q.shouldForceIconOnly=!1;q.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};q.isFullscreen=!1;q.isTheaterMode=!1;return q};
_.Y(w_,_.C);_.g=w_.prototype;_.g.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.g.updateOwnerAndDescriptionPosition=function(){_.x("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.kS(this.bottomRowElement,this.ownerElement)):(_.kS(this.bottomRowElement,this.descriptionElement),_.kS(this.topRowElement,this.ownerElement)))};
_.g.titleOnTap=function(q){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Su(_.n9(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var N;((N=window.getSelection())==null?0:N.toString().length)||this.handleExpandDescriptionCommands()}};
_.g.videoOwnerOnTap=function(q){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Su(_.n9(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.g.detached=function(){var q=this,N;return _.d(function(b){(N=q.resizeObserver)==null||N.disconnect();_.hj(b)})};
_.g.maybeAttachResizeObserver=function(){var q=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.El(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){q.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.g.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var q=this.hostElement.clientWidth,N=Math.max(this.largerItemWrap?400:350,q/2-nHX);_.x("web_action_buttons_update_owner_width")&&(N=this.ownerElement.clientWidth+nHX);this.actionsOnSeparateLine=this.primaryMenuWidth>q-N?!0:!1}};
_.g.stripAttributedDescription=function(q){return{content:q.content.replace(/[\r\n]{2,}/g,"\n")}};
_.g.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.x("web_modern_buttons"),forceIconButton:!_.x("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:_.x("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"}}}};
_.g.videoPrimaryInfoRendererChanged=function(){var q;if((q=this.videoPrimaryInfoRenderer)==null?0:q.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.g.videoSecondaryInfoRendererChanged=function(){var q,N;(q=this.descriptionInlineExpander)==null||(N=q.collapse)==null||N.call(q);this.descriptionExpandClientVe=_.bx(110509);this.descriptionCollapseClientVe=_.bx(110510);q=_.Oe();N=_.QY();q&&N&&(_.x("combine_ve_grafts")?(_.hI(_.FR(),this.descriptionExpandClientVe,N),_.hI(_.FR(),this.descriptionCollapseClientVe,N)):_.Cr(q,N,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.g.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.g.updateTopLevelIconsOnly=function(){var q=this;_.x("top_level_update_killswitch")||this.menu&&_.pY.addLowPriorityJob(function(){q.menu.topLevelIconsOnly=q.skinnyMode},_.VX("swathceroo_delay_flexible_menu_update",100))};
_.g.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.x("web_action_buttons_minimize_subscribe")};
_.g.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.g.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.g.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.g.onYtTextInlineExpanderExpandedChanged=function(){if(!_.x("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var q,N;(N=(q=this.structuredDescriptionContentRendererElement).resize)==null||N.call(q)}};
_.g.onRenderStamperFinished=function(q){(q==null?void 0:q.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.g.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.g.onYtExpanderLessTapped=function(){var q,N=(q=this.videoSecondaryInfoRenderer)==null?void 0:q.showLessCommand;N&&this.ytComponentBehavior.resolveCommand(N)};
_.g.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.g.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.g.onDescriptionClick=function(q){if(!_.Su(_.n9(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var N;((N=window.getSelection())==null?0:N.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.x("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.g.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.g.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.g.logCollapseClick=function(){var q=_.Oe();q&&this.descriptionCollapseClientVe&&_.nr(q,this.descriptionCollapseClientVe)};
_.g.logExpandClick=function(){var q=_.Oe();q&&this.descriptionExpandClientVe&&_.nr(q,this.descriptionExpandClientVe)};
_.g.collapseDescription=function(){this.descriptionCollapsed=!0};
_.g.scrollToTopOfContainer=function(){_.By(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.g.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.g.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.g.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.g.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var q,N;(N=(q=this.descriptionInlineExpander).resize)==null||N.call(q)}else _.M6(new _.IO("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var b;(b=this.menu)==null||b.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.g.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var q,N,b,y,J=_.x("web_action_buttons_update_owner_width")?(b=(q=_.ee(this.menu).querySelector("#button-shape"))==null?void 0:q.clientWidth)!=null?b:0:(y=(N=_.ee(this.menu).querySelector("#button"))==null?void 0:N.clientWidth)!=null?y:0,E,F;q=((F=(E=_.ee(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:E.clientWidth)!=null?F:0)+8+J;var R,c;J=(c=(R=_.ee(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:R.children.length)!=null?c:2;q<=8*J||(this.primaryMenuWidth=q)}};
_.g.onYtUpdateTitleAction=function(q){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.v(q,ND7).title)};
_.g.onYtUpdateDescriptionAction=function(q){if(q=_.v(q,_.ntE)){var N,b=!((N=this.videoSecondaryInfoRenderer)==null||!N.attributedDescription);q.isEmpty||!q.description&&!q.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):q.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",q.attributedDescription):q.description&&(b?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.v$(q.description)):this.set("videoSecondaryInfoRenderer.description",q.description))}};
_.g.onYtDarkModeToggledAction=function(q){this.isDark=q};
_.g.registerPanel=function(){if(!_.x("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var q=_.x("web_watch_imax_theater_mode")&&this.isTheaterMode;q=_.x("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||q;var N=_.tz().resolve(_.M8);N&&!q&&N.registerPanel("engagement-panel-structured-description",this)}};
_.g.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.g.parseColorSamplingData=function(){var q;if(_.x("web_delhi_colorful_sd")&&((q=this.structuredDescriptionContentRenderer)==null?0:q.items)&&(q=this.structuredDescriptionContentRenderer.items.find(function(J){return!!_.v(J,U4)}))){var N,b;
this.hoverColor={lightTheme:(N=_.v(q,U4))==null?void 0:N.lightThemeColorPalette,darkTheme:(b=_.v(q,U4))==null?void 0:b.darkThemeColorPalette};var y;this.hoverText=(y=_.v(q,U4))==null?void 0:y.colorSampledDescriptionBodyText}};
_.g.updateHoverColor=function(){if(_.x("web_delhi_colorful_sd")){var q=this.hoverColor,N={},b;q=(b=this.isDark?q==null?void 0:q.darkTheme:q==null?void 0:q.lightTheme)!=null?b:{};b=_.Z(DLe);for(var y=b.next();!y.done;y=b.next()){y=y.value;var J=q[y];N["--yt-saturated-"+_.Fv(y)]=J?_.Y8(J):"initial"}_.Jm(this.hostElement,N)}};
_.g.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.g.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.g.showPanel=function(q){this.expandDescription();var N=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;N.resize();var b,y=q==null?void 0:(b=q.sectionListEngagementPanelExtras)==null?void 0:b.scrollToItemSectionIdentifier;y?_.pY.addJob(function(){N==null||N.scrollToSection(y)},8):this.scrollToTopOfContainer()};
_.g.isVisible=function(){return!this.descriptionCollapsed};
_.g.getReloadContinuation=function(){};
_.g.hidePanel=function(){};
_.g.updatePanel=function(){};
_.$H.Object.defineProperties(w_.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var q;return _.x("web_delhi_colorful_sd")&&(q=this.structuredDescriptionContentRenderer)!=null&&q.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(N){return!_.v(N,U4)&&!_.v(N,E5v)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.structuredDescriptionContentRendererComputed)!=null&&q.items){var N;q=_.Z((N=this.structuredDescriptionContentRendererComputed)==null?void 0:N.items);for(N=q.next();!N.done;N=q.next())if(N=_.v(N.value,_.DAq))return N}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.videoPrimaryInfoRenderer)==null?0:q.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return!!((q=this.videoSecondaryInfoRenderer)==null?0:(N=q.owner)==null?0:(b=N.videoOwnerRenderer)==null?0:b.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var q,N;if((q=this.videoSecondaryInfoRenderer)==null?0:(N=q.attributedDescription)==null?0:N.content){var b,y;return(y=this.stripAttributedDescription((b=this.videoSecondaryInfoRenderer)==null?void 0:b.attributedDescription))!=null?y:{runs:[]}}}if(_.x("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var J,E,F,R;return(R=(F=(J=this.videoSecondaryInfoRenderer)==
null?void 0:J.description)!=null?F:(E=this.videoSecondaryInfoRenderer)==null?void 0:E.attributedDescription)!=null?R:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var q,N;return(N=(q=this.videoSecondaryInfoRenderer)==null?void 0:q.headerRuns)!=null?N:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.commentsEntryPointHeaderRenderer)==null||!q.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.videoMetadataCarousel)==null||!q.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.VX("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var q,N,b=Object.assign({},(q=this.videoSecondaryInfoRenderer)==null?void 0:(N=q.metadataRowContainer)==null?void 0:N.metadataRowContainerRenderer);if(b&&b.rows&&b.collapsedItemCount!==void 0&&!(b.rows.length<=b.collapsedItemCount))return b.rows=b.rows.slice(b.collapsedItemCount),b.collapsedItemCount=0,b}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var q,N,b=Object.assign({},(q=this.videoSecondaryInfoRenderer)==null?void 0:(N=q.metadataRowContainer)==null?void 0:N.metadataRowContainerRenderer);if(b&&b.rows&&b.collapsedItemCount!==void 0)return b.rows=b.rows.slice(0,b.collapsedItemCount),b.collapsedItemCount=b.rows.length,b}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var q,N;return!!((q=this.structuredDescriptionContentRendererComputed)==null?0:(N=q.items)==null?0:N.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 q;return(q=this.videoSecondaryInfoRenderer)==null?void 0:q.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return((q=this.videoSecondaryInfoRenderer)==null?0:(N=q.owner)==null?0:(b=N.videoOwnerRenderer)==null?0:b.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var q,N,b,y;return!!((q=this.videoPrimaryInfoRenderer)==null?0:(N=q.videoActions)==null?0:(b=N.menuRenderer)==null?0:(y=b.flexibleItems)==null?0:y.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Ct(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Ct(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var q=this;if(_.x("web_title_hashtag_grey_delinkified")){var N,b=_.nM.unsafeClone((N=this.videoPrimaryInfoRenderer)==null?void 0:N.title);(N=b==null?void 0:b.runs)&&N.forEach(function(y){if(y==null?0:y.navigationEndpoint)y.textColor=4284506208,q.isDark&&(y.textColor=4289374890)});
return b}return(b=this.videoPrimaryInfoRenderer)==null?void 0:b.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.x("web_title_hashtag_black_delinkified")||_.x("web_title_hashtag_grey_delinkified")}}});
w_.prototype.updateHoverColor=w_.prototype.updateHoverColor;w_.prototype.parseColorSamplingData=w_.prototype.parseColorSamplingData;w_.prototype.resetDescriptionState=w_.prototype.resetDescriptionState;w_.prototype.registerPanel=w_.prototype.registerPanel;w_.prototype.onYtExpanderLessTapped=w_.prototype.onYtExpanderLessTapped;w_.prototype.onYtExpanderMoreTapped=w_.prototype.onYtExpanderMoreTapped;w_.prototype.onRenderStamperFinished=w_.prototype.onRenderStamperFinished;
w_.prototype.onYtTextInlineExpanderExpandedChanged=w_.prototype.onYtTextInlineExpanderExpandedChanged;w_.prototype.onYtTextInlineExpanderCollapseClicked=w_.prototype.onYtTextInlineExpanderCollapseClicked;w_.prototype.onYtTextInlineExpanderExpandClicked=w_.prototype.onYtTextInlineExpanderExpandClicked;w_.prototype.moveActionsElement=w_.prototype.moveActionsElement;w_.prototype.updateShouldForceIconOnly=w_.prototype.updateShouldForceIconOnly;w_.prototype.updateTopLevelIconsOnly=w_.prototype.updateTopLevelIconsOnly;
w_.prototype.structuredDescriptionContentRendererChanged=w_.prototype.structuredDescriptionContentRendererChanged;w_.prototype.videoSecondaryInfoRendererChanged=w_.prototype.videoSecondaryInfoRendererChanged;w_.prototype.videoPrimaryInfoRendererChanged=w_.prototype.videoPrimaryInfoRendererChanged;w_.prototype.maybeUpdateActionsOnSeparateLine=w_.prototype.maybeUpdateActionsOnSeparateLine;w_.prototype.updateOwnerAndDescriptionPosition=w_.prototype.updateOwnerAndDescriptionPosition;
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],w_.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],w_.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],w_.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.H6),_.P("design:type",Object)],w_.prototype,"ytdReduxBehavior",void 0);_.p([_.dq("#above-the-fold"),_.P("design:type",HTMLElement)],w_.prototype,"aboveTheFoldContainer",void 0);_.p([_.dq("#menu ytd-menu-renderer"),_.P("design:type",Object)],w_.prototype,"menu",void 0);_.p([_.dq("#description-inline-expander"),_.P("design:type",Object)],w_.prototype,"descriptionInlineExpander",void 0);
_.p([_.dq("#faded-structured-description"),_.P("design:type",Object)],w_.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.p([_.dq("#structured-description"),_.P("design:type",Object)],w_.prototype,"structuredDescriptionContentRendererElement",void 0);_.p([_.dq("#title"),_.P("design:type",HTMLElement)],w_.prototype,"titleElement",void 0);_.p([_.dq("#description"),_.P("design:type",HTMLElement)],w_.prototype,"descriptionElement",void 0);
_.p([_.dq("#description-interaction"),_.P("design:type",Object)],w_.prototype,"descriptionInteraction",void 0);_.p([_.dq("#owner"),_.P("design:type",HTMLElement)],w_.prototype,"ownerElement",void 0);_.p([_.dq("#top-row"),_.P("design:type",HTMLElement)],w_.prototype,"topRowElement",void 0);_.p([_.dq("#bottom-row"),_.P("design:type",HTMLElement)],w_.prototype,"bottomRowElement",void 0);_.p([_.dq("#actions"),_.P("design:type",HTMLElement)],w_.prototype,"actionsElement",void 0);
_.p([_.dq("#bottom-actions"),_.P("design:type",HTMLElement)],w_.prototype,"bottomActionsElement",void 0);_.p([_.dq("#ytd-watch-info-text"),_.P("design:type",Object)],w_.prototype,"watchInfoTextElement",void 0);_.p([_.U(),_.P("design:type",Object)],w_.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],w_.prototype,"videoPrimaryInfoRenderer",void 0);_.p([_.U(),_.P("design:type",Object)],w_.prototype,"videoSecondaryInfoRenderer",void 0);
_.p([_.U(),_.P("design:type",Object)],w_.prototype,"commentsEntryPointHeaderRenderer",void 0);_.p([_.U(),_.P("design:type",Object)],w_.prototype,"videoMetadataCarousel",void 0);_.p([_.U(),_.P("design:type",Object)],w_.prototype,"structuredDescriptionContentRenderer",void 0);_.p([_.l("structuredDescriptionContentRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],w_.prototype,"structuredDescriptionContentRendererComputed",null);
_.p([_.U(),_.P("design:type",Object)],w_.prototype,"videoSummary",void 0);_.p([_.U(),_.P("design:type",Object)],w_.prototype,"merchShelf",void 0);_.p([_.U(),_.P("design:type",Object)],w_.prototype,"infoPanelBelowMetadata",void 0);_.p([_.U(),_.P("design:type",Object)],w_.prototype,"hoverColor",void 0);_.p([_.U(),_.P("design:type",Object)],w_.prototype,"hoverText",void 0);_.p([_.U(),_.P("design:type",Object)],w_.prototype,"isHovering",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],w_.prototype,"enableColorSampling",void 0);_.p([_.l("structuredDescriptionContentRendererComputed"),_.P("design:type",Object),_.P("design:paramtypes",[])],w_.prototype,"productShelf",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],w_.prototype,"metadataBadgesInDescription",void 0);_.p([_.l("videoPrimaryInfoRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],w_.prototype,"shouldHideBadges",null);
_.p([_.l("productShelf","descriptionCollapsed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],w_.prototype,"shouldShowProductShelf",null);_.p([_.U(),_.P("design:type",Boolean)],w_.prototype,"isWatchFlexy",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],w_.prototype,"descriptionCollapsed",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],w_.prototype,"useFadedScrimDescription",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],w_.prototype,"skinnyMode",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("videoSecondaryInfoRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],w_.prototype,"largerItemWrap",null);_.p([_.U(),_.P("design:type",Object)],w_.prototype,"playlist",void 0);_.p([_.U(),_.P("design:type",Object)],w_.prototype,"clarifyBox",void 0);_.p([_.U(),_.P("design:type",Object)],w_.prototype,"playerAds",void 0);
_.p([_.U(),_.P("design:type",Boolean)],w_.prototype,"isDark",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],w_.prototype,"actionsOnSeparateLine",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],w_.prototype,"disableVideoOwnerOnTap",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],w_.prototype,"swatcherooDelayLoad",void 0);_.p([_.U(),_.P("design:type",Boolean)],w_.prototype,"suppressTopLevelMetadataRows",void 0);
_.p([_.U(),_.P("design:type",Object)],w_.prototype,"primaryMenuWidth",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],w_.prototype,"videoId",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],w_.prototype,"titleHeadlineXs",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],w_.prototype,"titleHeadlineS",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],w_.prototype,"titleHeadlineM",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],w_.prototype,"titleHashtagBlackLinkified",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],w_.prototype,"titleHashtagGreyLinkified",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],w_.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.p([_.U(),_.P("design:type",Object)],w_.prototype,"shouldForceIconOnly",void 0);
_.p([_.$9("skinnyMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w_.prototype,"updateOwnerAndDescriptionPosition",null);_.p([_.$9("skinnyMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w_.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.p([_.l("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.P("design:type",Object),_.P("design:paramtypes",[])],w_.prototype,"descriptionText",null);_.p([_.l("videoSecondaryInfoRenderer.headerRuns"),_.P("design:type",Array),_.P("design:paramtypes",[])],w_.prototype,"headerRuns",null);
_.p([_.U({value:!1}),_.l("commentsEntryPointHeaderRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],w_.prototype,"hasTeaser",null);_.p([_.U({value:!1,reflectToAttribute:!0}),_.l("videoMetadataCarousel"),_.P("design:type",Object),_.P("design:paramtypes",[])],w_.prototype,"hasTeaserCarousel",null);_.p([_.U({value:3}),_.l("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.P("design:type",Object),_.P("design:paramtypes",[])],w_.prototype,"descriptionMaxLines",null);
_.p([_.l("videoSecondaryInfoRenderer.metadataRowContainer"),_.P("design:type",Object),_.P("design:paramtypes",[])],w_.prototype,"collapsibleMetadataRows",null);_.p([_.l("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.P("design:type",Object),_.P("design:paramtypes",[])],w_.prototype,"alwaysVisibleMetadataRows",null);
_.p([_.l("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],w_.prototype,"hasInlineStructuredDescription",null);_.p([_.l("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],w_.prototype,"showInlineStructuredDescription",null);
_.p([_.l("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],w_.prototype,"descriptionExpandCommand",null);_.p([_.l("videoSecondaryInfoRenderer.owner"),_.P("design:type",Object),_.P("design:paramtypes",[])],w_.prototype,"videoOwnerCommand",null);_.p([_.U({reflectToAttribute:!0}),_.l("videoPrimaryInfoRenderer.videoActions"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],w_.prototype,"flexMenuEnabled",null);
_.p([_.U({selector:_.Ol,reflectToAttribute:!0}),_.P("design:type",Object)],w_.prototype,"isFullscreen",void 0);_.p([_.U({selector:_.Q0,reflectToAttribute:!0}),_.P("design:type",Object)],w_.prototype,"isTheaterMode",void 0);_.p([_.l("descriptionText","useFadedScrimDescription"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],w_.prototype,"showAttributedStringDescription",null);
_.p([_.l("descriptionText","useFadedScrimDescription"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],w_.prototype,"showFormattedStringDescription",null);_.p([_.l("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],w_.prototype,"showFadedStructuredDescription",null);
_.p([_.$9("videoPrimaryInfoRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w_.prototype,"videoPrimaryInfoRendererChanged",null);_.p([_.l("videoPrimaryInfoRenderer.title"),_.P("design:type",Object),_.P("design:paramtypes",[])],w_.prototype,"videoTitle",null);_.p([_.l("videoPrimaryInfoRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],w_.prototype,"noEndpoints",null);
_.p([_.$9("videoSecondaryInfoRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w_.prototype,"videoSecondaryInfoRendererChanged",null);_.p([_.FY("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w_.prototype,"structuredDescriptionContentRendererChanged",null);
_.p([_.FY("skinnyMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w_.prototype,"updateTopLevelIconsOnly",null);_.p([_.FY("skinnyMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w_.prototype,"updateShouldForceIconOnly",null);_.p([_.FY("skinnyMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w_.prototype,"moveActionsElement",null);
_.p([_.ZP("yt-text-inline-expander-expand-clicked"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w_.prototype,"onYtTextInlineExpanderExpandClicked",null);_.p([_.ZP("yt-text-inline-expander-collapse-clicked"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w_.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.p([_.ZP("yt-text-inline-expander-expanded-changed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w_.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.p([_.ZP("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],w_.prototype,"onRenderStamperFinished",null);
_.p([_.ZP("yt-expander-more-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w_.prototype,"onYtExpanderMoreTapped",null);_.p([_.ZP("yt-expander-less-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w_.prototype,"onYtExpanderLessTapped",null);
_.p([_.FY("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w_.prototype,"registerPanel",null);_.p([_.FY("videoSecondaryInfoRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w_.prototype,"resetDescriptionState",null);
_.p([_.FY("structuredDescriptionContentRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w_.prototype,"parseColorSamplingData",null);_.p([_.FY("hoverColor","isDark"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w_.prototype,"updateHoverColor",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-watch-metadata"})],w_);
_.a(w_,"ytd-watch-metadata",function(){if(KH7!==void 0)return KH7;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return KH7=q},{mode:2});_.oHZ=function(q){_.UN.call(this);this.JSC$23411_watchApi=q;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;apX(this);S7e(this);WH7(this);LHs(this);pBX(this);Pt7(this);MLe(this)};
_.Y(_.oHZ,_.UN);var WH7=function(q){var N=function(){_.x("kevlar_is_pupi_enabled")||iy(q)};
q.JSC$23411_watchApi.getRoot().addEventListener("yt-player-updated",N);q.addOnDisposeCallback(function(){q.JSC$23411_watchApi.getRoot().removeEventListener("yt-player-updated",N)})},pBX=function(q){if(_.x("kevlar_endscreen_auto_theater_mode")){var N=q.JSC$23411_watchApi.subscribeToActiveChanged(function(){A97(q)},!1);
q.addOnDisposeCallback(N)}},apX=function(q){var N,b,y,J,E;
_.d(function(F){if(F.nextAddress==1)return F.yield(q.JSC$23411_watchApi.playerApi,2);N=F.yieldResult;b=function(R){R=!!R;eTy(q)&&(R=R?2:1,_.x3.getInstance().setState(R,!0,!1))};
y=function(R){R&&_.tIc(_.WT().getState())&&(_.By(q.JSC$23411_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),q.temporaryTheaterMode=!0)};
J=function(R){_.x("kevlar_player_update_autonav_on_new_data")&&R.type==="newdata"&&(_.x("kevlar_is_pupi_enabled")||iy(q))};
E=function(R){q.onPlayerStateChange(R)};
_.x("kevlar_endscreen_auto_theater_mode")&&N.addEventListener("onAutonavCancelled",y);N.addEventListener("onAutonavChangeRequest",b);N.addEventListener("onVideoDataChange",J);N.addEventListener("onStateChange",E);q.addOnDisposeCallback(function(){N.removeEventListener("onAutonavChangeRequest",b);N.removeEventListener("onVideoDataChange",J);N.removeEventListener("onStateChange",E);_.x("kevlar_endscreen_auto_theater_mode")&&N.removeEventListener("onAutonavCancelled",y)});
_.hj(F)})},S7e=function(q){q.JSC$23411_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){q.autonavCancelledBySignal=!0;
_.x("kevlar_is_pupi_enabled")||iy(q)});
q.JSC$23411_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(N,b,y){b&&iy(q,y)});
q.JSC$23411_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){eTy(q)&&_.x3.getInstance().setState(2,!0,!0)});
q.JSC$23411_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){eTy(q)&&_.x3.getInstance().setState(1,!0,!0)});
q.addOnDisposeCallback(function(){q.JSC$23411_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");q.JSC$23411_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");q.JSC$23411_watchApi.unregisterActionHandler("yt-enable-autoplay-command");q.JSC$23411_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},LHs=function(q){var N=q.JSC$23411_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){MLe(q)}),b=q.JSC$23411_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Pt7(q)});
q.addOnDisposeCallback(function(){q.JSC$23411_watchApi.unsubscribeByKey(N);q.JSC$23411_watchApi.unsubscribeByKey(b)})},MLe=function(q){q.autonavCancelledBySignal=!1;
_.x("kevlar_is_pupi_enabled")||iy(q)},Pt7=function(q){var N=q.JSC$23411_watchApi.getWatchNextResponse(),b,y;
var J=(N=(y=_.v(N==null?void 0:(J=N.playerOverlays)==null?void 0:(b=J.playerOverlayRenderer)==null?void 0:b.autonavToggle,_.LPR))==null?void 0:y.enabled)?2:1;_.x("kevlar_is_pupi_enabled")?_.x3.getInstance().setState(J,!1,!1):iy(q);_.x("web_persist_server_autonav_state_on_client")&&typeof N==="boolean"&&_.dMC(J===2)},eTy=function(q){if(q.autonavCancelledBySignal)return!1;
var N,b,y,J;return!!((N=q.JSC$23411_watchApi.getWatchNextResponse())==null?0:(b=N.contents)==null?0:(y=b.twoColumnWatchNextResults)==null?0:(J=y.autoplay)==null?0:J.autoplay)};
_.oHZ.prototype.onPlayerStateChange=function(q){if(q===0){q=!_.x3.getInstance().isAutoplaySetExplicitly();var N=this.JSC$23411_watchApi.getWatchNextResponse(),b,y,J,E;N=_.v(N==null?void 0:(b=N.contents)==null?void 0:(y=b.twoColumnWatchNextResults)==null?void 0:(J=y.autoplay)==null?void 0:(E=J.autoplay)==null?void 0:E.autoplayExplicitChoiceDialogRenderer,_.ZgJ);eTy(this)&&q&&N&&_.bq.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:N},popupType:"DIALOG"}})}else A97(this)};
var A97=function(q){q.temporaryTheaterMode&&(q.temporaryTheaterMode=!1,_.By(q.JSC$23411_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},iy=function(q,N){N=N===void 0?!1:N;
var b;_.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$23411_watchApi.playerApi,2);b=y.yieldResult;eTy(q)?b.setAutonavState(_.x3.getInstance().getState(),N):b.setAutonavState(1,N);_.hj(y)})};var Bdc={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"};_.qeB=function(q){_.UN.call(this);var N=this;this.JSC$23416_watchApi=q;var b=this.JSC$23416_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){HAc(N)});
this.addOnDisposeCallback(function(){N.JSC$23416_watchApi.unsubscribeByKey(b)});
HAc(this)};
_.Y(_.qeB,_.UN);var HAc=function(q){var N=q.JSC$23416_watchApi.getPlayerResponse(),b=q.JSC$23416_watchApi.getWatchNextResponse();if(!_.piA(N==null?void 0:N.playabilityStatus,b==null?void 0:b.playerOverlays)){var y;var J=N==null?void 0:(y=N.playabilityStatus)==null?void 0:y.errorScreen}q.JSC$23416_watchApi.provideRenderingData("ERROR_SCREEN",J)};var Nyl=_.n(function(q){return _.u("yt-player-grid-renderer",{class:_.NO("ytPlayerGridRendererHost",q.className)},_.u(_.zS,{data:q.data},{lockupViewModel:function(N){return _.u(_.UE,{data:N.data,useOverlayStyling:!0})}}))},"no");var bx7=_.n(function(q){var N=q.data;q=_.x("web_watch_video_details_hide_subtitle");var b=_.x("web_watch_video_details_single_line_title"),y=_.y0(function(){var R=N().onTap;R&&_.tz().resolve(_.rO).resolveCommand(R)}),J={},E={},F={};
return _.u("yt-player-overlay-video-details-renderer",{class:_.NO("ytPlayerOverlayVideoDetailsRendererHost",(J.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.x("web_watch_video_details_transparent_background"),J)),"on:click":y,role:"button"},_.u("h2",{class:_.NO("ytPlayerOverlayVideoDetailsRendererTitle",(E.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return b},E))},_.u(_.Zc,{text:function(){return N().title}})),_.u("div",{class:_.NO("ytPlayerOverlayVideoDetailsRendererSubtitle",
(F.ytPlayerOverlayVideoDetailsRendererHideSubtitle=q,F))},_.u(_.Zc,{text:function(){return N().subtitle}})))},"oo");var ly={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},y8h=_.n(function(q){var N=q.data;var b=_.uR(_.Ol),y=_.x("web_watch_action_bar_resize_buttons"),J=_.x("web_watch_video_action_dsdvb"),E=_.x("delhi_modern_web_player_icons")&&!_.x("enable_web_delhi_icons");q=_.x("delhi_modern_web_player_disable_frosted_glass");var F=_.x("delhi_modern_web_player_compact_video_actions_controls"),
R=_.x("web_player_quick_action_buttons_icon_only"),c=function(){var m=y&&!b(),r={};F?r.size="S":m&&(r.size="M");R&&(r.iconPosition="icon-only");if(Object.keys(r).length!==0)return r},z={};
return _.u("yt-player-quick-action-buttons",{class:_.NO("ytPlayerQuickActionButtonsHost",(z.ytPlayerQuickActionButtonsHostCompactControls=function(){return!b()||F},z.ytPlayerQuickActionButtonsHostDisableBackdropFilter=q,z))},_.u(_.Tf,{each:function(){var m=N();
if(E){m=JSON.parse(JSON.stringify(m));for(var r=_.Z(m),X=r.next();!X.done;X=r.next()){var V=X.value,G=void 0;X=_.v((G=_.v(V,_.Ba))==null?void 0:G.toggleButtonViewModel,_.de);var w=void 0;G=_.v((w=_.v(V,_.eD))==null?void 0:w.toggleButtonViewModel,_.de);w=_.v(V,_.FF);V=_.v(V,_.de);if(X)G=_.v(X.defaultButtonViewModel,_.FF),X=_.v(X.toggledButtonViewModel,_.FF),G&&G.iconName&&(G.iconName=ly[G.iconName]),X&&X.iconName&&(X.iconName=ly[X.iconName]);else if(G)X=_.v(G.defaultButtonViewModel,_.FF),G=_.v(G.toggledButtonViewModel,
_.FF),X&&X.iconName&&(X.iconName=ly[X.iconName]),G&&G.iconName&&(G.iconName=ly[G.iconName]);else if(w)w.iconName&&(w.iconName=ly[w.iconName]);else if(V){X=_.v(V.defaultButtonViewModel,_.FF);G=_.v(V.toggledButtonViewModel,_.FF);V=void 0;if((V=X)==null?0:V.iconName)X.iconName=ly[X.iconName];X=void 0;if((X=G)==null?0:X.iconName)G.iconName=ly[G.iconName]}}}J&&(m=pCe(m));return m}},function(m){return _.u(_.zS,{data:function(){return m}},{buttonViewModel:function(r){return _.u(_.Ou,{data:r.data,
buttonOverrides:c})},
likeButtonViewModel:function(r){return _.u(_.y$,{data:r.data,buttonShapeOverrideables:c})},
dislikeButtonViewModel:function(r){return _.u(_.bD,{data:r.data,buttonShapeOverrideables:c})},
toggleButtonViewModel:function(r){return _.u(_.LV,{data:r.data,buttonShapeOverrides:c})}})}))},"po");_.EU7=function(q){_.UN.call(this);var N=this;this.JSC$23422_watchApi=q;q=_.Z(_.QS({},void 0,"OB6c5e"));this.quickActionsViewModel=q.next().value;this.setQuickActionsViewModel=q.next().value;q=_.Z(_.QS({},void 0,"ZCXW8c"));this.playerOverlayVideoDetailsRenderer=q.next().value;this.setPlayerOverlayVideoDetailsRenderer=q.next().value;q=_.Z(_.QS([],void 0,"A7tRk"));this.lockupViewModels=q.next().value;this.setLockupViewModels=q.next().value;var b=this.JSC$23422_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){J8e(N)});
this.addOnDisposeCallback(function(){N.JSC$23422_watchApi.unsubscribeByKey(b)});
J8e(this)};
_.Y(_.EU7,_.UN);
var J8e=function(q){var N,b,y,J,E,F,R,c,z,m,r,X,V,G,w,D,k;_.d(function(f){if(f.nextAddress==1)return f.yield(q.JSC$23422_watchApi.playerApi,2);N=f.yieldResult;b=q.JSC$23422_watchApi.getWatchNextResponse();E=(y=b)==null?void 0:(J=y.playerOverlays)==null?void 0:J.playerOverlayRenderer;R=_.v((F=E)==null?void 0:F.fullscreenQuickActionsBar,_.SuT);(z=(c=q).setQuickActionsViewModel)==null||z.call(c,R||{});R&&gUs(q,N);X=(m=E)==null?void 0:(r=m.videoDetails)==null?void 0:r.playerOverlayVideoDetailsRenderer;(G=
(V=q).setPlayerOverlayVideoDetailsRenderer)==null||G.call(V,X||{});X&&Zxe(q,N);if(_.x("web_player_use_external_grid_component")){var L=[],S,W,M,qe,RJ=b==null?void 0:(S=b.contents)==null?void 0:(W=S.twoColumnWatchNextResults)==null?void 0:(M=W.secondaryResults)==null?void 0:(qe=M.secondaryResults)==null?void 0:qe.results;if(RJ)for(S=_.Z(RJ),W=S.next();!W.done;W=S.next())if(W=W.value,W.lockupViewModel)L.push(W);else if(M=void 0,(M=W.itemSectionRenderer)==null?0:M.contents)for(W=_.Z(W.itemSectionRenderer.contents),
M=W.next();!M.done;M=W.next())M=M.value,M.lockupViewModel&&L.push(M);w=L;(k=(D=q).setLockupViewModels)==null||k.call(D,w||[]);Fje(q,N)}_.hj(f)})},gUs=function(q,N){if(!q.quickActionButtonsContainer)if(N.setFullscreenQuickActions){q.quickActionButtonsContainer=document.createElement("div");
N.setFullscreenQuickActions(q.quickActionButtonsContainer);var b=function(){return q.quickActionsViewModel().quickActionButtons||[]},y=_.au(q.quickActionButtonsContainer,function(){return _.u(y8h,{data:b})},"qo");
q.addOnDisposeCallback(function(){N.setFullscreenQuickActions(void 0);y()})}else _.M6(new _.IO("setFullscreenQuickActions not defined",{playerApi:Object.keys(N),
isReady:N.isReady(),appState:N.getAppState()}))},Zxe=function(q,N){if(!q.playerOverlayVideoDetailsRendererContainer)if(N.setPlayerOverlayVideoDetailsRenderer){q.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
N.setPlayerOverlayVideoDetailsRenderer(q.playerOverlayVideoDetailsRendererContainer);var b=_.au(q.playerOverlayVideoDetailsRendererContainer,function(){return _.u(bx7,{data:q.playerOverlayVideoDetailsRenderer})},"ro");
q.addOnDisposeCallback(function(){N.setPlayerOverlayVideoDetailsRenderer(void 0);b()})}else _.M6(new _.IO("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(N),
isReady:N.isReady(),appState:N.getAppState()}))},Fje=function(q,N){if(!q.gridRendererContainer)if(N.setFullscreenGrid){q.gridRendererContainer=document.createElement("div");
N.setFullscreenGrid(q.gridRendererContainer);var b=_.au(q.gridRendererContainer,function(){return _.u(Nyl,{data:q.lockupViewModels})},"so");
q.addOnDisposeCallback(function(){N.setFullscreenGrid(void 0);b()})}else _.M6(new _.IO("setFullscreenGrid not defined",{playerApi:Object.keys(N),
isReady:N.isReady(),appState:N.getAppState()}))};_.Kl=function(q){_.UN.call(this);var N=this;this.JSC$23428_watchApi=q;this.JSC$23428_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;q=_.aM(_.WT(),_.Ol,function(b){N.onFullscreenChanged(b)});
this.addOnDisposeCallback(q);q=_.aM(_.WT(),_.Kj,function(b){N.onWatchScroll(b)});
this.addOnDisposeCallback(q);_.x("kevlar_watch_while_v2")&&(q=_.aM(_.WT(),_.QU,function(b){R0B(N,b)}),this.addOnDisposeCallback(q));
dPX(this);c87(this);uv_();this.onWatchScroll(_.Kj(_.WT().getState()));_.ou("START_IN_FULL_WINDOW_MODE")&&this.JSC$23428_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.Y(_.Kl,_.UN);var dPX=function(q){q.JSC$23428_watchApi.registerActionHandler("yt-fullscreen-change-action",function(N){var b=q.JSC$23428_watchApi.isActive();N&&!b||_.WT().dispatch(_.B3({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!N}}))});
q.addOnDisposeCallback(function(){q.JSC$23428_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},c87=function(q){var N,b;
_.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$23428_watchApi.playerApi,2);N=y.yieldResult;b=function(){q.onFullerscreenEduClicked()};
N.addEventListener("onFullerscreenEduClicked",b);q.addOnDisposeCallback(function(){N.removeEventListener("onFullerscreenEduClicked",b)});
_.hj(y)})};
_.Kl.prototype.onFullscreenChanged=function(q){var N=this,b;return _.d(function(y){if(y.nextAddress==1)return N.isFullscreen=!!_.Py(),y.yield(N.JSC$23428_watchApi.playerApi,2);b=y.yieldResult;N.JSC$23428_miniplayerActive||b.setFauxFullscreen(N.isFullscreen);if(q&&(N.JSC$23428_watchApi.focusOnPlayer(),!N.fullerscreenEduButtonShownThisPlayback)){N.fullerscreenEduButtonShownThisPlayback=!0;var J=_.XH("yt-fullerscreen-edu-button-shown-count")||0;_.r5("yt-fullerscreen-edu-button-shown-count",J+1,31536E3);
N.updateFullerscreenEduButtonSubtleModeState()}_.hj(y)})};
var R0B=function(q,N){var b;_.d(function(y){if(y.nextAddress==1)return q.JSC$23428_miniplayerActive=N,y.yield(q.JSC$23428_watchApi.playerApi,2);b=y.yieldResult;b.setFauxFullscreen(!q.JSC$23428_miniplayerActive&&q.isFullscreen);_.hj(y)})};
_.Kl.prototype.onWatchScroll=function(q){var N=this,b,y;return _.d(function(J){if(J.nextAddress==1)return _.x("external_fullscreen_with_edu")?J.yield(N.JSC$23428_watchApi.playerApi,2):J.return();b=J.yieldResult;y=q<=0;N.shouldShowFullerscreenEdu!==y&&(N.shouldShowFullerscreenEdu=y,b.updateFullerscreenEduButtonVisibility(!N.shouldShowFullerscreenEdu));_.hj(J)})};
_.Kl.prototype.onFullerscreenEduClicked=function(){this.JSC$23428_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var q=_.XH("yt-fullerscreen-edu-button-click-count")||0;_.r5("yt-fullerscreen-edu-button-click-count",q+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.Kl.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var q=this,N,b,y,J,E,F;return _.d(function(R){if(R.nextAddress==1)return N=_.XH("yt-fullerscreen-edu-button-click-count")||0,b=_.XH("yt-fullerscreen-edu-button-shown-count")||0,y=_.VX("external_fullscreen_button_click_threshold"),J=_.VX("external_fullscreen_button_shown_threshold"),E=N>=y||b>=J,R.yield(q.JSC$23428_watchApi.playerApi,2);F=R.yieldResult;F.updateFullerscreenEduButtonSubtleModeState(E);_.hj(R)})};
_.Kl.prototype.disposeInternal=function(){_.UN.prototype.disposeInternal.call(this);var q=_.Py();_.x("kevlar_exit_fullscreen_leaving_watch")&&q&&_.MP(q)};
var uv_=function(){if(_.x("web_watch_add_viewport_meta_tag")){var q=document.querySelector("meta[name=viewport]"),N=document.head;N&&!q&&(q=document.createElement("meta"),q.name="viewport",q.content="width=device-width, initial-scale=1.0, viewport-fit=cover",N.appendChild(q))}};_.$Ps=function(q){_.UN.call(this);var N=this;this.JSC$23431_watchApi=q;this.jobId=0;this.pendingRequestId=void 0;var b=this.JSC$23431_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){z0B(N)});
this.addOnDisposeCallback(function(){N.JSC$23431_watchApi.unsubscribeByKey(b)});
z0B(this)};
_.Y(_.$Ps,_.UN);var t2y=function(q){_.pY.cancelJob(q.jobId);q.pendingRequestId=void 0},z0B=function(q){t2y(q);
var N=Pcs(q.JSC$23431_watchApi.getWatchNextResponse());if(N){var b=250,y,J=(y=_.v(N,_.nwx))==null?void 0:y.initialDelayMs;_.x("web_watch_updated_metadata_server_initial_delay")&&J&&(b=J);q.jobId=_.pY.addLowPriorityJob(function(){return q.fetchUpdatedMetadata(N)},b)}};
_.$Ps.prototype.fetchUpdatedMetadata=function(q,N){var b=this,y,J,E,F,R,c,z,m,r,X,V,G,w,D,k;return _.d(function(f){switch(f.nextAddress){case 1:N&&(y={continuation:N});if(!_.x("web_get_updated_metadata_fantasy_panel_continuation_params")){f.jumpTo(2);break}J=_.tz().resolve(_.M8);E="PAsports_fantasy";return f.yield(J.isVisible(E,!0),3);case 3:f.yieldResult&&(z=(R=(F=J).getUpdatePanelContinuationData)==null?void 0:(c=R.call(F,E))==null?void 0:c.updatePanelContinuationRequest)&&(y||(y={}),y.clientParams=
{panelContinuationParams:{panelContinuation:z}});case 2:m=_.tz().resolve(_.tN);if(!m)return _.po(Error("cp")),f.return();r={};b.pendingRequestId=r;return f.yield(_.IE(m,q,y),4);case 4:X=f.yieldResult;if(r!==b.pendingRequestId)return f.return();w=(V=X)==null?void 0:(G=V.continuation)==null?void 0:G.timedContinuationData;((D=w)==null?0:D.continuation)&&((k=w)==null?0:k.timeoutMs)&&(b.jobId=_.pY.addLowPriorityJob(function(){return b.fetchUpdatedMetadata(q,w.continuation)},w.timeoutMs));
_.hj(f)}})};
_.$Ps.prototype.disposeInternal=function(){_.UN.prototype.disposeInternal.call(this);t2y(this)};var mPB=_.n(function(q){var N=_.y0(function(){var y=q.data().videoId;if(q.active())y=_.Mc(y),_.tz().resolve(_.rO).resolveCommand(y);else{var J=q.playerApi(),E=J.getAvailableAudioTracks(),F,R,c=(F=q.sourceVideoConfig().audioTracks)==null?void 0:(R=F.find(function(z){return z.isDefaultForSource}))==null?void 0:R.id;
if(E=E.find(function(z){return z.getLanguageInfo().getId()===c}))J.setAudioTrack(E,!0),J.setCompositeParam({activeVideoId:y}),q.setActiveSourceId(y)}}),b={};
return _.u("ytw-composite-source-video-overlay",{class:_.NO("ytwCompositeSourceVideoOverlayHost",(b.ytwCompositeSourceVideoOverlayActive=q.active,b.ytwCompositeSourceVideoOverlayInteracting=q.interacting,b)),style:_.ZU({left:function(){var y;return((y=q.data().topLeftCornerX)!=null?y:0)*100+"%"},
top:function(){var y;return((y=q.data().topLeftCornerY)!=null?y:0)*100+"%"},
width:function(){var y;return((y=q.data().width)!=null?y:0)*100+"%"},
height:function(){var y;return((y=q.data().height)!=null?y:0)*100+"%"}}),
"on:click":N},_.u("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"to");var r8c=_.n(function(q){var N=_.Z(_.gJ(function(){var F,R=(F=q.data().sources)==null?void 0:F.find(function(c){return c.isActive});
if(R)return R.videoId})),b=N.next().value,y=N.next().value;
N=_.Z(_.QS(!1,void 0,"rmRJ8d"));var J=N.next().value,E=N.next().value;return _.u("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.y0(function(){E(!0)}),
"on:mouseout":_.y0(function(){E(!1)})},_.u(_.t,{cond:function(){return q.data().sources},
then:function(F){return _.u(_.Tf,{each:F},function(R){return _.u(mPB,{data:R,active:function(){return R.videoId===b()},
setActiveSourceId:y,interacting:J,playerApi:q.playerApi,sourceVideoConfig:function(){return MIX(q.compositeVideoConfig(),R.videoId)}})})}}))},"uo");_.j$X=function(q){_.UN.call(this);this.JSC$23447_watchApi=q;q=_.Z(_.QS({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=q.next().value;this.setCompositeVideoOverlayRenderer=q.next().value;q=_.Z(_.QS({},void 0,"OlaJpc"));this.compositeVideoConfig=q.next().value;this.setCompositeVideoConfig=q.next().value;Xyv(this);V2X(this)};
_.Y(_.j$X,_.UN);var Xyv=function(q){var N=q.JSC$23447_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){V2X(q)});
q.addOnDisposeCallback(function(){q.JSC$23447_watchApi.unsubscribeByKey(N)})},xPB=function(q){var N;
return _.d(function(b){if(b.nextAddress==1)return b.yield(q.JSC$23447_watchApi.playerApi,2);N=b.yieldResult;N.setCompositeVideoOverlayRendererComponent(q.container);_.hj(b)})},vUl=function(q){var N;
return _.d(function(b){if(b.nextAddress==1)return b.yield(q.JSC$23447_watchApi.playerApi,2);N=b.yieldResult;N.setCompositeVideoOverlayRendererComponent(void 0);_.hj(b)})},Gyc=function(q){var N,b;
return _.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$23447_watchApi.playerApi,2);N=y.yieldResult;q.container=document.createElement("div");b=_.au(q.container,function(){return _.u(r8c,{data:q.compositeVideoOverlayRenderer,compositeVideoConfig:q.compositeVideoConfig,playerApi:N})},"vo");
q.addOnDisposeCallback(b);_.hj(y)})},V2X=function(q){var N,b,y,J,E,F,R,c;
_.d(function(z){return z.nextAddress==1?(N=q.JSC$23447_watchApi.getPlayerResponse(),E=_.v((b=N)==null?void 0:(y=b.overlay)==null?void 0:(J=y.playerControlsOverlayRenderer)==null?void 0:J.compositeVideoOverlay,p4B),c=(F=N)==null?void 0:(R=F.playerConfig)==null?void 0:R.compositeVideoConfig,E&&q.setCompositeVideoOverlayRenderer(E),c&&q.setCompositeVideoConfig(c),E&&c?q.container?z.jumpTo(6):z.yield(Gyc(q),6):YeB(q)?z.yield(vUl(q),0):z.jumpTo(0)):YeB(q)?z.jumpTo(0):z.yield(xPB(q),0)})},YeB=function(q){var N;
return!((N=q.container)==null||!N.parentElement)};
_.j$X.prototype.disposeInternal=function(){YeB(this)&&vUl(this);_.UN.prototype.disposeInternal.call(this)};_.lZB=function(q){_.UN.call(this);var N=this;this.JSC$23453_watchApi=q;var b=this.JSC$23453_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var y=N.JSC$23453_watchApi.getPlayerResponse();if(y){var J,E;if(y=_.v((J=y.endscreen)==null?void 0:(E=J.endscreenRenderer)==null?void 0:E.hideButton,_.de)){var F;(F=N.setEndscreenHideButton)==null||F.call(N,y);Q$B(N)}}});
this.addOnDisposeCallback(function(){N.JSC$23453_watchApi.unsubscribeByKey(b)});
q=_.Z(_.QS({},void 0,"ER3tqb"));this.endscreenHideButton=q.next().value;this.setEndscreenHideButton=q.next().value;Oxe(this);wyy(this);ixs(this)};
_.Y(_.lZB,_.UN);
var Q$B=function(q){var N,b;_.d(function(y){if(y.nextAddress==1)return q.creatorEndscreenHideButtonContainer?y.return():y.yield(q.JSC$23453_watchApi.playerApi,2);N=y.yieldResult;q.creatorEndscreenHideButtonContainer=document.createElement("div");_.JX(q.creatorEndscreenHideButtonContainer,!1);N.setCreatorEndscreenHideButton(q.creatorEndscreenHideButtonContainer);b=_.au(q.creatorEndscreenHideButtonContainer,function(){return _.u(_.LV,{data:q.endscreenHideButton,useOutlinedIcon:!0})},"wo");
q.addOnDisposeCallback(function(){b();var J;(J=N)==null||J.setCreatorEndscreenHideButton(void 0)});
_.hj(y)})},Oxe=function(q){var N,b;
_.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$23453_watchApi.playerApi,2);N=y.yieldResult;b=function(){q.creatorEndscreenHideButtonContainer&&_.JX(q.creatorEndscreenHideButtonContainer,!0)};
N.addEventListener("endscreenelementshown",b);q.addOnDisposeCallback(function(){var J;(J=N)==null||J.removeEventListener("endscreenelementshown",b)});
_.hj(y)})},wyy=function(q){var N=function(){q.creatorEndscreenHideButtonContainer&&_.JX(q.creatorEndscreenHideButtonContainer,!1)},b=q.JSC$23453_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",N),y=q.JSC$23453_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",N);
q.addOnDisposeCallback(function(){q.JSC$23453_watchApi.unsubscribeByKey(b);q.JSC$23453_watchApi.unsubscribeByKey(y)})},ixs=function(q){q.JSC$23453_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(N){var b=_.v(N,sO_);
q.JSC$23453_watchApi.playerApi.then(function(y){y==null||y.setCreatorEndscreenVisibility(!!b.hide)})});
q.addOnDisposeCallback(function(){q.JSC$23453_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.DPl=function(q){_.UN.call(this);this.JSC$23459_watchApi=q;KjB(this)};
_.Y(_.DPl,_.UN);var KjB=function(q){var N,b;_.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$23459_watchApi.playerApi,2);N=y.yieldResult;b=function(J){_.WT().dispatch(_.B3({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:J}}))};
N.addEventListener("onRetroModeChanged",b);q.addOnDisposeCallback(function(){N.removeEventListener("onRetroModeChanged",b)});
_.hj(y)})};var b4c=0,hL=0,Jzx=0;var h0Z;h0Z=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.De=function(q){_.UN.call(this);this.JSC$23464_watchApi=q;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;kyv(this)};
_.Y(_.De,_.UN);
var kyv=function(q){var N,b,y;_.d(function(J){if(J.nextAddress==1)return J.yield(q.JSC$23464_watchApi.playerApi,2);N=J.yieldResult;if(q.isDisposed())return J.return();q.sessionStorage=_.Fax("yt-sleep-timer");q.sessionStorage||_.M6(new _.IO("SessionStorage for Sleep Timer is undefined."));((b=q.sessionStorage)==null?void 0:b.get("yt-sleep-timer"))==="true"&&(Z4X(),(y=q.sessionStorage)==null||y.remove("yt-sleep-timer"),N.syncVolume());UPZ(q,N);fZe(q,N);CE_(q,N);_.hj(J)})},UPZ=function(q,N){var b=function(z){q.onSleepTimerSettingsChanged(z,
N)},y=function(z){q.onPlayerStateChange(z,N)},J=function(){q.onLoopChange(N)},E=function(){q.onCloseMiniplayer(N)},F=function(){NOB(N,(0,_.mA)(),Fa_(N),q.selectedOption==="End of video",N.getPlayerState()!==1)},R=function(){q.onSeekComplete(N)},c=function(){_.pY.cancelJob(hL);
var z=N.getCurrentTime()>=N.getDuration(),m=q.selectedOption==="End of video"||q.selectedOption==="End of playlist"&&!BVv(q.playlistId);z&&m&&IZe(q,N)};
N.addEventListener("onSleepTimerSettingsChanged",b);N.addEventListener("onLoopChange",J);N.addEventListener("onLoopRangeChange",J);N.addEventListener("onStateChange",y);N.addEventListener("onCloseMiniplayer",E);N.addEventListener("onSleepTimerFeatureAvailable",F);N.addEventListener("SEEK_COMPLETE",R);N.addEventListener("onAdStart",c);q.addOnDisposeCallback(function(){N.removeEventListener("onSleepTimerSettingsChanged",b);N.removeEventListener("onLoopChange",J);N.removeEventListener("onLoopRangeChange",
J);N.removeEventListener("onStateChange",y);N.removeEventListener("onCloseMiniplayer",E);N.removeEventListener("onSleepTimerFeatureAvailable",F);N.removeEventListener("SEEK_COMPLETE",R);N.removeEventListener("onAdStart",c)})},fZe=function(q,N){var b=q.JSC$23464_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var y=N.getVideoData().video_id,J,E=(J=AVe(q.JSC$23464_watchApi))==null?void 0:J.playlistId;
q.pauseAutonavPlayback&&(N.pauseVideo(),N.syncVolume(),q.pauseAutonavPlayback=!1);if(q.selectedOption==="End of video"&&y!==q.videoId)hC(q,N);else{if(q.selectedOption==="End of playlist"){J=BVv(q.playlistId);if(E!==q.playlistId){hC(q,N);break a}J?J&&Tyh(q,N):s$B(q,N)}q.videoId=y;q.playlistId=E}}});
q.addOnDisposeCallback(function(){q.JSC$23464_watchApi.unsubscribeByKey(b)})},CE_=function(q,N){var b=_.tz().resolve(_.eU),y=_.aM(b,_.UTJ,function(E){E&&q.selectedOption!=="Off"&&hC(q,N)}),J=q.JSC$23464_watchApi.subscribeToActiveChanged(function(E){var F,R;
return _.d(function(c){if(c.nextAddress==1)return c.yield(_.sM().navigationFinishPromise,2);F=!_.gpx();R=_.tz().resolve(_.l9).isMiniplayerActive();E||!oZy(q.selectedOption)||R||F||hC(q,N);_.hj(c)})},!1);
b=_.aM(b,function(E){return E.entities.playlistLoopStateEntity||{}},function(E){E=E===void 0?{}:E;
var F=ele(q.JSC$23464_watchApi);if(F){var R;((R=E[F])==null?void 0:R.state)==="PLAYLIST_LOOP_STATE_ALL"&&oZy(q.selectedOption)&&hC(q,N)}});
q.addOnDisposeCallback(y);q.addOnDisposeCallback(b);q.addOnDisposeCallback(J)};
_.De.prototype.onSleepTimerSettingsChanged=function(q,N){switch(q){case "Off":this.selectedOption!=="Off"&&hC(this,N);break;case "End of video":case "End of playlist":nUh(this,q,N);break;default:nUh(this,q,N,h0Z.get(q))}};
_.De.prototype.onLoopChange=function(q){(q.getLoopVideo()||q.getLoopRange())&&oZy(this.selectedOption)&&hC(this,q)};
_.De.prototype.onCloseMiniplayer=function(q){oZy(this.selectedOption)&&hC(this,q)};
var nUh=function(q,N,b,y){aZX(q,b);q.selectedOption=N;q.videoId=b.getVideoData().video_id;q.playlistId="";var J;(J=q.sessionStorage)==null||J.set("yt-sleep-timer","true");q.adjustmentsCount++;NOB(b,(0,_.mA)(),Fa_(b),q.selectedOption==="End of video");if(q.selectedOption==="End of video")s$B(q,b),Sel(q,b);else if(q.selectedOption==="End of playlist"){Sel(q,b);var E,F;q.playlistId=(F=(E=AVe(q.JSC$23464_watchApi))==null?void 0:E.playlistId)!=null?F:"";BVv(q.playlistId)||s$B(q,b)}else y&&(q.presetFadeSchedulerId=
_.rj(_.pY,function(){Efh(b,15E3)},y-15E3),q.presetPauseSchedulerId=_.rj(_.pY,function(){IZe(q,b)},y),yze(b,(0,_.mA)(),y))},IZe=function(q,N){if(q.JSC$23464_watchApi.isActive()){var b={dismissDialogEndpoint:{}};
var y={commandExecutorCommand:{commands:[b,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};b={buttonViewModel:{title:_.FE("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:b}}};y={buttonViewModel:{title:_.FE("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:y}}};var J={dialogHeaderViewModel:{headline:{content:_.FE("SLEEP_TIMER_ENDED_TITLE")}}},
E={basicContentViewModel:{paragraphs:[{text:{content:_.FE("SLEEP_TIMER_ENDED_TEXT")}}]}};b={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:J,content:E,footer:{panelFooterViewModel:{primaryButton:b,secondaryButton:y,shouldHideDivider:!0}}}}}}};_.tz().resolve(_.rO).resolveCommand(b,{form:{element:q}})}else Z4X();WjZ(q,!1);Ljv(q,N);N.pauseVideo();_.x3.getInstance().getState()===2&&N.getPlayerState()===5&&(q.pauseAutonavPlayback=!0)},hC=function(q,N){WjZ(q,!0);
Ljv(q,N);Z4X()},Ljv=function(q,N){aZX(q,N);
q.selectedOption="Off";q.videoId="";q.playlistId="";q.adjustmentsCount=0;var b;(b=q.sessionStorage)==null||b.remove("yt-sleep-timer");_.pY.cancelJob(b4c);N.resetSleepTimerMenuSettings()},WjZ=function(q,N){N={timer_length_adjustment_times_during_session:q.adjustmentsCount-1,
is_session_cancelled:N};switch(q.selectedOption){case "Off":N.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":N.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":N.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:N.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",N.option_duration_in_minutes=h0Z.get(q.selectedOption)/6E4}_.W_("sleepTimerSessionFinishEvent",N)};
_.De.prototype.onPlayerStateChange=function(q,N){q===1?NOB(N,(0,_.mA)(),Fa_(N),this.selectedOption==="End of video"):q===0?(_.pY.cancelJob(hL),N.setVideoTimeLeft(qVZ(0,0))):q===2&&_.pY.cancelJob(hL);this.selectedOption==="End of video"?q===0?IZe(this,N):q===2&&gfZ(N):this.selectedOption!=="End of playlist"||BVv(this.playlistId)||(q===0?IZe(this,N):q===2&&gfZ(N))};
_.De.prototype.onSeekComplete=function(q){q.getPlayerState()===2&&NOB(q,(0,_.mA)(),Fa_(q),this.selectedOption==="End of video",!0)};
_.De.prototype.onCueRangeEnter=function(q,N){q==="sleep-timer-fade-audio"&&Efh(N,(N.getDuration()-N.getProgressState().current)*1E3)};
_.De.prototype.onCueRangeExit=function(q,N){q==="sleep-timer-fade-audio"&&N.getPlayerState()!==0&&gfZ(N,!0)};
var s$B=function(q,N){N.addCueRange("sleep-timer-fade-audio",N.getDuration()-15,N.getDuration());N.addEventListener("onCueRangeEnter",function(b){q.onCueRangeEnter(b,N)});
N.addEventListener("onCueRangeExit",function(b){q.onCueRangeExit(b,N)})},Tyh=function(q,N){N.removeCueRange("sleep-timer-fade-audio");
N.removeEventListener("onCueRangeEnter",function(b){q.onCueRangeEnter(b,N)});
N.removeEventListener("onCueRangeExit",function(b){q.onCueRangeExit(b,N)})},aZX=function(q,N){oZy(q.selectedOption)?Tyh(q,N):(_.pY.cancelJob(q.presetPauseSchedulerId),_.pY.cancelJob(q.presetFadeSchedulerId),q.presetPauseSchedulerId=0,q.presetFadeSchedulerId=0);
gfZ(N,!0)},Sel=function(q,N){N.setLoop(!1);
N.setLoopVideo(!1);N.setLoopRange(null);(q=ele(q.JSC$23464_watchApi))&&_.tz().resolve(_.eU).dispatch(_.$e("playlistLoopStateEntity",q,{key:q,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.A8v=function(q){_.UN.call(this);var N=this;this.JSC$23467_watchApi=q;_.x("web_watch_force_start_in_theater_mode")&&pyc(this,!0,!1);PEc(this);M27(this);oUe(this);var b=this.JSC$23467_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.VX("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.hz.get("wide",void 0)==="1"&&_.kf("wide","1",_.VX("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){N.JSC$23467_watchApi.unsubscribeByKey(b)});
q=q.getRoot();if(q.is==="ytd-watch-flexy"||q.is==="ytd-watch-grid")q.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.rVh();_.x("web_watch_log_theater_mode_cookie_state")&&_.hz.get("wide","0")==="1"&&_.wrd("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.Y(_.A8v,_.UN);var PEc=function(q){var N,b;_.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$23467_watchApi.playerApi,2);N=y.yieldResult;b=function(J){pyc(q,!!J)};
N.addEventListener("SIZE_CLICKED",b);q.addOnDisposeCallback(function(){N.removeEventListener("SIZE_CLICKED",b)});
_.hj(y)})},M27=function(q){q.JSC$23467_watchApi.registerActionHandler("yt-toggle-theater-mode",function(N,b){pyc(q,N,b===void 0?!0:b)});
q.addOnDisposeCallback(function(){q.JSC$23467_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.A8v.prototype.getState=function(){return _.Q0(_.WT().getState())};
var pyc=function(q,N,b){b=b===void 0?!0:b;var y,J,E,F=_.x("enable_player_resize_transition")&&!!q.JSC$23467_watchApi.getWatchNextResponse()&&!((y=q.JSC$23467_watchApi.getWatchNextResponse())==null?0:(J=y.contents)==null?0:(E=J.twoColumnWatchNextResults)==null?0:E.conversationBar);_.DKC(function(){_.WT().dispatch(_.B3({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:N}}));_.x("theater_mode_scroll_to_top_killswitch")||q.JSC$23467_watchApi.scrollWatchTo(0,!1);_.Py()&&_.x("external_fullscreen")&&_.MP(document.documentElement);
oUe(q);b&&_.kf("wide",N?"1":"0",_.VX("theater_mode_cookie_max_age_seconds",-1));_.By(q.JSC$23467_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);q.JSC$23467_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:N});N&&_.rVh()},{shouldWrap:F})},oUe=function(q){var N;
_.d(function(b){if(b.nextAddress==1)return b.yield(q.JSC$23467_watchApi.playerApi,2);N=b.yieldResult;N.setSizeStyle(!0,q.getState());_.hj(b)})};var Hxs=function(q){_.UN.call(this);var N=this;this.playerApi=q;this.timeToPanelSyncKeyMap={};var b;if(q==null?0:(b=q.isReady)==null?0:b.call(q)){b=_.aM(_.tz().resolve(_.eU),function(J){return J.entities.timedMarkersListSyncEntity||{}},function(J,E){J=J===void 0?{}:J;
E=E===void 0?{}:E;for(var F=_.Z(Object.keys(E)),R=F.next();!R.done;R=F.next())R=R.value,J[R]!==E[R]&&e0x(N,E[R]);E=_.Z(Object.keys(J));for(F=E.next();!F.done;F=E.next())F=F.value,R=J[F],N.timeToPanelSyncKeyMap[F]&&ByB(N,R)});
this.addOnDisposeCallback(b);var y=function(J){N.onCueRangeEnter(J)};
q.addEventListener("onCueRangeEnter",y);this.addOnDisposeCallback(function(){var J;(J=q.removeEventListener)==null||J.call(q,"onCueRangeEnter",y)})}};
_.Y(Hxs,_.UN);
var ByB=function(q,N){var b,y;if((b=q.playerApi)==null?0:(y=b.isReady)==null?0:y.call(b)){var J;if((b=N==null?void 0:(J=N.timedListData)==null?void 0:J.sections)&&N!=null&&N.key)for(J=_.Z(b),b=J.next();!b.done;b=J.next())if(b=b.value,b.timedSyncDataList&&b.sectionId)for(y=0;y<b.timedSyncDataList.length;y++){var E=b.timedSyncDataList[y];E.syncItemId&&q.playerApi.addCueRange(b.sectionId+"_"+N.key+"_"+E.syncItemId,Number(E.videoTimeMs)/1E3,y===b.timedSyncDataList.length-1?0x8000000000000:Number(b.timedSyncDataList[y+
1].videoTimeMs)/1E3)}}},e0x=function(q,N){var b,y;
if((b=q.playerApi)==null?0:(y=b.isReady)==null?0:y.call(b)){var J;if((b=N==null?void 0:(J=N.timedListData)==null?void 0:J.sections)&&N!=null&&N.key)for(J=_.Z(b),b=J.next();!b.done;b=J.next())if(b=b.value,b.timedSyncDataList&&b.sectionId){y=_.Z(b.timedSyncDataList);for(var E=y.next();!E.done;E=y.next())E=E.value,E.syncItemId&&q.playerApi.removeCueRange(b.sectionId+"_"+N.key+"_"+E.syncItemId)}}};
Hxs.prototype.onCueRangeEnter=function(q){for(var N=_.Z(Object.keys(this.timeToPanelSyncKeyMap)),b=N.next();!b.done;b=N.next()){b=b.value;var y=_.Z(q.split("_"+b+"_")),J=y.next().value;y=y.next().value;if(J&&y){q=_.tz().resolve(_.eU);N=this.timeToPanelSyncKeyMap[b];var E=_.rfn(q.getState(),N);b=qY7(b,J,y);if(b===-1)break;b={activeSyncId:y,activeItemIndex:b,activeSectionInfo:{sectionIdentifier:J}};E?q.dispatch(_.GK("markersEngagementPanelSyncEntity",N,b)):q.dispatch(_.$e("markersEngagementPanelSyncEntity",
N,Object.assign({},{key:N},b)));break}}};
var qY7=function(q,N,b){var y=_.tz().resolve(_.eU),J,E;q=(J=RlB(y.getState(),q))==null?void 0:(E=J.timedListData)==null?void 0:E.sections;if(!q)return-1;J=0;E=_.Z(q);for(q=E.next();!q.done;q=E.next()){q=q.value;y=q.timedSyncDataList||[];if(q.sectionId===N)return N=y.findIndex(function(F){return F.syncItemId===b}),N===-1?N:J+N;
J+=y.length}return-1};_.yeB=function(q){_.UN.call(this);var N=this;this.JSC$23480_watchApi=q;this.unresolvedCommands=[];this.JSC$23480_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(b){Ngh(N,b)});
this.addOnDisposeCallback(function(){N.JSC$23480_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
br_(this)};
_.Y(_.yeB,_.UN);var br_=function(q){var N;_.d(function(b){if(b.nextAddress==1)return b.yield(q.JSC$23480_watchApi.playerApi,2);N=b.yieldResult;if(q.isDisposed())return b.return();q.timedSyncObserver=new Hxs(N);q.unresolvedCommands.length&&(q.unresolvedCommands.forEach(function(y){return Ngh(q,y)}),q.unresolvedCommands=[]);
_.YN(q,q.timedSyncObserver);_.hj(b)})},Ngh=function(q,N){if(q.timedSyncObserver){var b=_.v(N,aMv);
if(b&&b.timedSyncEntityKey&&b.panelSyncEntityKey){q=q.timedSyncObserver;N=b.timedSyncEntityKey;var y=b.panelSyncEntityKey;b=!!b.isEnabled;b=b===void 0?!0:b;var J=_.tz().resolve(_.eU);J=RlB(J.getState(),N);b?q.timeToPanelSyncKeyMap[N]||(q.timeToPanelSyncKeyMap[N]=y,ByB(q,J)):(delete q.timeToPanelSyncKeyMap[N],e0x(q,J))}}else q.unresolvedCommands.push(N)};var Jel=_.n(function(q){var N=q.data,b=q.maybeLogSmartSkipClientData,y=null,J=null,E=_.x("web_enable_auto_focus_for_timely_action_button"),F=function(){y=document.activeElement},R=function(){N().smartSkipMetadata&&(y=document.activeElement,_.ikd(function(){return J}))},c=function(m){if(N().smartSkipMetadata&&(!m||m.key!=="Enter")){y&&y.isConnected&&(_.ikd(function(){return y}),y=null);
var r;(r=J)==null||r.blur()}};
q=_.y0(function(){b==null||b(!0,N());return!1});
var z=_.ai(_.QR(function(){return N().rendererContext},{onTap:function(m,r){r({disableClickTracking:!0})}}),_.mn({visibilityCallback:function(m){if(E)m?J&&N().smartSkipMetadata&&(R(),document.addEventListener("focusin",F)):(document.removeEventListener("focusin",F),c());
else if(m){m=_.GS(N().rendererContext);var r=Number(N().maxVisibleDurationMilliseconds),X,V=(X=_.v(N().rendererContext,_.$A))==null?void 0:X.label;m&&r&&V&&(X={label:V,command:m,durationMs:r},_.tz().resolve(_.xm).enqueue(X))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.SI(function(){if(E){var m;if((J=(m=z.value)==null?void 0:m.querySelector("button"))&&N().smartSkipMetadata){var r;(r=z.value)==null||r.addEventListener("keydown",c)}}});
_.W1(function(){E&&(J&&N().smartSkipMetadata&&J.removeEventListener("keydown",c),document.removeEventListener("focusin",F),c())});
return _.u("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:z,"on:click":q},_.u(_.zS,{data:function(){return N().content}},{buttonViewModel:_.Ou}))},"yo");var EoB=_.n(function(q){var N=q.data,b=q.playerApi,y=_.tz().resolve(_.lka);q=_.Z(_.gJ(function(){N()}));
var J=q.next().value,E=q.next().value,F=function(){return czX(N(),J())},R=function(z,m){var r,X,V=(r=_.v(m==null?void 0:m.rendererContext,_.Ri))==null?void 0:(X=r.loggingDirectives)==null?void 0:X.trackingParams;
if((m=m==null?void 0:m.smartSkipMetadata)&&m.loggingData&&(X=m.loggingData,m=X.algorithmId,r=X.startMilliseconds,X=X.endMilliseconds,m&&r!==void 0&&X!==void 0)){var G,w;z={smartSkipData:Object.assign({},{versionName:m,startMediaTimeMs:r,endMediaTimeMs:X},z&&{userInteractionMediaTimeMs:(Math.floor(((G=_.Pk())==null?void 0:(w=G.getPlayer())==null?void 0:w.getCurrentTime())||0)*1E3).toString()})};G=_.Oe();var D;V&&(D=_.zT(V));G&&D&&_.Sg(G,D,z)}},c=function(z,m){var r=czX(N(),z);
if(r){var X=_.v(r,dgh),V;if(V=m)V=b(),r=_.v(r,dgh),V=r!=null&&r.smartSkipMetadata?!(V==null?0:V.isSameMarkerTypeVisible((r==null?void 0:r.smartSkipMetadata.markerKey)||"")):!0;if(V){var G,w;(X==null?0:(G=X.smartSkipMetadata)==null?0:(w=G.loggingData)==null?0:w.isCounterfactual)||(R(!1,X),E(z))}else m||J()!==z||E(void 0)}};
_.Sx(function(){var z=N().timelyActions;if(z){z=_.Z(z);for(var m=z.next();!m.done;m=z.next()){m=_.v(m.value,dgh);var r=void 0;(r=m)!=null&&r.cueRangeId&&y.timelyActionsMap.set(m.cueRangeId,c)}_.W1(function(){y.timelyActionsMap.clear()})}},"l2RtC");
return _.u("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.u(_.zS,{data:F},{timelyActionViewModel:function(z){return _.u(Jel,{data:z.data,maybeLogSmartSkipClientData:function(){R(!0,_.v(F(),dgh))}})}}))},"Ao");_.Zr7=function(q){_.UN.call(this);this.JSC$23492_watchApi=q;q=_.Z(_.QS({},void 0,"UN7k5e"));this.timelyActionsOverlay=q.next().value;this.setTimelyActionsOverlay=q.next().value;goy(this)};
_.Y(_.Zr7,_.UN);var goy=function(q){var N,b,y,J;_.d(function(E){if(E.nextAddress==1)return FOc(q),R2h(q),q.timelyActionsContainer=document.createElement("div"),E.yield(q.JSC$23492_watchApi.playerApi,2);N=E.yieldResult;(y=(b=N).insertTimelyActionUi)==null||y.call(b,q.timelyActionsContainer);J=_.au(q.timelyActionsContainer,function(){return _.u(EoB,{data:q.timelyActionsOverlay,playerApi:N})},"Bo");
q.addOnDisposeCallback(J);_.hj(E)})},R2h=function(q){var N=q.JSC$23492_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){FOc(q)});
q.addOnDisposeCallback(function(){q.JSC$23492_watchApi.unsubscribeByKey(N)})},FOc=function(q){var N=q.JSC$23492_watchApi.getWatchNextResponse();
if(N){var b,y;if(N=_.v((b=N.playerOverlays)==null?void 0:(y=b.playerOverlayRenderer)==null?void 0:y.timelyActionsOverlayViewModel,SVl)){var J;(J=q.setTimelyActionsOverlay)==null||J.call(q,N)}}};_.cee=function(q){_.UN.call(this);this.JSC$23496_watchApi=q;dcc(this)};
_.Y(_.cee,_.UN);var dcc=function(q){var N,b;_.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$23496_watchApi.playerApi,2);N=y.yieldResult;b=function(J){_.bq.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.v(J,_.nNB)},popupType:"TOAST"}})};
N.addEventListener("onYtShowToast",b);q.addOnDisposeCallback(function(){N.removeEventListener("onYtShowToast",b)});
_.hj(y)})};var uEh,tgy,j5B,z2_,$cX,VgB,re7,X37,xce,Grl;uEh=!1;_.mcs=function(q){_.UN.call(this);this.JSC$23499_watchApi=q;this.fullscreen=this.theater=!1;z2_(this);$cX(this);tgy(this)};
_.Y(_.mcs,_.UN);tgy=function(q){var N,b,y;_.d(function(J){if(J.nextAddress==1)return J.yield(q.JSC$23499_watchApi.playerApi,2);N=J.yieldResult;if(q.isDisposed())return J.return();b=q.JSC$23499_watchApi.getElement("CINEMATICS");if(!b)return J.return();q.JSC$23499_cinematicController=new _.jq(b,N);_.YN(q,q.JSC$23499_cinematicController);_.gLZ(q.JSC$23499_cinematicController);re7(q,_.Jpn());y=q.JSC$23499_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(E){X37(q,E)});
q.addOnDisposeCallback(function(){q.JSC$23499_watchApi.unsubscribeByKey(y)});
VgB(q);X37(q,q.JSC$23499_cinematicController.isAllowed());j5B(q);xce(q);_.hj(J)})};
j5B=function(q){q.fullscreen=_.Ol(_.WT().getState());q.theater=_.Q0(_.WT().getState());_.voe(q,q.fullscreen,q.theater);var N=_.aM(_.WT(),_.Ol,function(y){q.fullscreen=y;_.voe(q,q.fullscreen,q.theater)}),b=_.aM(_.WT(),_.Q0,function(y){q.theater=y;
_.voe(q,q.fullscreen,q.theater)});
q.addOnDisposeCallback(N);q.addOnDisposeCallback(b)};
z2_=function(q){var N=q.JSC$23499_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){VgB(q)});
q.addOnDisposeCallback(function(){q.JSC$23499_watchApi.unsubscribeByKey(N)})};
$cX=function(q){var N,b;_.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$23499_watchApi.playerApi,2);N=y.yieldResult;b=function(J){re7(q,J)};
N.addEventListener("cinematicSettingsToggleChange",b);q.addOnDisposeCallback(function(){N.removeEventListener("cinematicSettingsToggleChange",b)});
_.hj(y)})};
VgB=function(q){var N=q.JSC$23499_watchApi.getWatchNextResponse(),b;N=_.v(N==null?void 0:(b=N.pageVisualEffects)==null?void 0:b[0],_.Ns);var y;(y=q.JSC$23499_cinematicController)==null||_.FRB(y,N)};
re7=function(q,N){var b;(b=q.JSC$23499_cinematicController)==null||_.Z3B(b,N);Grl(q)};
X37=function(q,N){var b;_.d(function(y){if(y.nextAddress==1)return _.x("kevlar_watch_cinematics_invisible")&&(N=!1),y.yield(q.JSC$23499_watchApi.playerApi,2);b=y.yieldResult;b.updateCinematicSettings(N);Grl(q);_.hj(y)})};
xce=function(q){var N=_.c3();if(_.x("kevlar_measure_ambient_mode_idle")&&!N.getFlag(192)&&!uEh){uEh=!0;var b=_.Ip(_.pY,function(){_.tz().resolve(_.gfd).start(1E4)},5E3);
q.addOnDisposeCallback(function(){_.pY.cancelJob(b);_.tz().resolve(_.gfd).stop()})}};
_.voe=function(q,N,b){q.fullscreen=N;q.theater=b;var y;(y=q.JSC$23499_cinematicController)==null||y.setFullscreen(q.fullscreen,q.theater);if(_.x("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(q.theater||q.fullscreen){var J;(J=q.JSC$23499_cinematicController)==null||_.RMe(J)}else if((q=q.JSC$23499_cinematicController)!=null){var E;(E=q.currentCinematicEffect)==null||E.pause()}};
Grl=function(q){var N;q.JSC$23499_watchApi.getRoot().toggleCinematicsActive(!((N=q.JSC$23499_cinematicController)==null||!N.isEnabled()))};_.w3B=function(q){_.UN.call(this);var N=this;this.JSC$23502_watchApi=q;this.commentsReady=!1;this.setCommentsJobId=0;q=_.aM(_.WT(),_.Kj,function(){YYs(N)});
this.addOnDisposeCallback(q);var b=this.JSC$23502_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Q5s(N)}),y=this.JSC$23502_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){Q5s(N)});
this.addOnDisposeCallback(function(){N.JSC$23502_watchApi.unsubscribeByKey(b);N.JSC$23502_watchApi.unsubscribeByKey(y)});
var J=function(){_.x("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&OrX(N,"false")};
this.JSC$23502_watchApi.getRoot().addEventListener("yt-page-data-will-update",J);this.addOnDisposeCallback(function(){N.JSC$23502_watchApi.getRoot().removeEventListener("yt-page-data-will-update",J)});
Q5s(this)};
_.Y(_.w3B,_.UN);var Q5s=function(q){q.commentsReady=!1;_.pY.cancelJob(q.setCommentsJobId);q.setCommentsJobId=_.Ip(_.pY,function(){YYs(q)},1E3)},YYs=function(q){if(!q.commentsReady){_.Q6("cmi");
_.pY.cancelJob(q.setCommentsJobId);var N,b,y,J,E=(N=q.JSC$23502_watchApi.getWatchNextResponse())==null?void 0:(b=N.contents)==null?void 0:(y=b.twoColumnWatchNextResults)==null?void 0:(J=y.results)==null?void 0:J.results.contents;N=void 0;if(E&&E.length)for(E=_.Z(E),b=E.next();!b.done;b=E.next())if(b=b.value,J=y=void 0,((y=b)==null?void 0:(J=y.itemSectionRenderer)==null?void 0:J.sectionIdentifier)==="comment-item-section"){_.x("web_watch_provide_undefined_comments")?N=b.itemSectionRenderer:q.JSC$23502_watchApi.provideRenderingData("COMMENTS",
b.itemSectionRenderer);OrX(q,"true");break}_.x("web_watch_provide_undefined_comments")&&q.JSC$23502_watchApi.provideRenderingData("COMMENTS",N);q.commentsReady=!0;q.JSC$23502_watchApi.dispatchEvent("yt-watch-comments-ready")}},OrX=function(q,N){var b;
(b=q.JSC$23502_watchApi.getElement("COMMENTS"))==null||b.setAttribute("canScheduleJobs",N)};_.h27=function(q){_.UN.call(this);var N=this;this.JSC$23505_watchApi=q;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.x("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.x("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.x("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.VX("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)irv(this);
else{var b=this.JSC$23505_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){liZ(N);kq(N)}),y=this.JSC$23505_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){UB(N);
kq(N)});
this.JSC$23505_watchApi.getRoot().is==="ytd-watch-grid"&&_.x("swatcheroo_pbs_load_grid")&&(KOZ(this),Dcl(this));this.addOnDisposeCallback(function(){N.JSC$23505_watchApi.unsubscribeByKey(b);N.JSC$23505_watchApi.unsubscribeByKey(y);_.pY.cancelJob(N.provideRichGridJobId)});
liZ(this);UB(this)}};
_.Y(_.h27,_.UN);var irv=function(q){var N=q.JSC$23505_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){q.providePlayerJobId=_.ZQ(_.pY,function(){liZ(q);kq(q)},q.provideAllDataDelayMs)}),b=q.JSC$23505_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){q.provideWatchNextJobId=_.ZQ(_.pY,function(){UB(q);
kq(q)},q.provideAllDataDelayMs)}),y=q.JSC$23505_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){q.provideWatchNextJobId=_.ZQ(_.pY,function(){UB(q);
kq(q)},q.provideAllDataDelayMs)});
q.JSC$23505_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Ip(_.pY,function(){liZ(q);UB(q);kq(q)},100)});
q.JSC$23505_watchApi.addPageDisposeJob(function(){_.pY.cancelJob(q.provideWatchNextJobId);_.pY.cancelJob(q.providePlayerJobId)});
q.addOnDisposeCallback(function(){q.JSC$23505_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");q.JSC$23505_watchApi.unsubscribeByKey(N);q.JSC$23505_watchApi.unsubscribeByKey(b);q.JSC$23505_watchApi.unsubscribeByKey(y);_.pY.cancelJob(q.providePlayerJobId);_.pY.cancelJob(q.provideWatchNextJobId)});
liZ(q);UB(q)},liZ=function(q){var N=q.JSC$23505_watchApi.getPlayerResponse(),b,y,J=(y=N==null?void 0:(b=N.playabilityStatus)==null?void 0:b.messageRenderers)!=null?y:[],E,F;
N=(F=N==null?void 0:(E=N.playabilityStatus)==null?void 0:E.messages)!=null?F:[];E=_.Z(N);for(F=E.next();!F.done;F=E.next())J.push({alertRenderer:{text:_.nD(F.value),type:"WARNING"}});q.JSC$23505_watchApi.provideRenderingData("ALERTS",J)},UB=function(q){var N=[],b,y,J,E=q.JSC$23505_watchApi.getWatchNextResponse(),F,R,c,z,m=E==null?void 0:(F=E.contents)==null?void 0:(R=F.twoColumnWatchNextResults)==null?void 0:(c=R.results)==null?void 0:(z=c.results)==null?void 0:z.contents;
if(m)for(F=_.Z(m),R=F.next();!R.done;R=F.next())if(R=R.value,R.videoPrimaryInfoRenderer)var r=R;else if(R.videoSecondaryInfoRenderer){var X=R;z=c=void 0;R=Object.assign({},(c=R.videoSecondaryInfoRenderer)==null?void 0:(z=c.metadataRowContainer)==null?void 0:z.metadataRowContainerRenderer);if(R.rows&&R.collapsedItemCount!==void 0){R.rows=R.rows.slice(0,R.collapsedItemCount).filter(function(qN){return!!qN.richMetadataRowRenderer});
R.collapsedItemCount=R.rows.length;var V={metadataRowContainerRenderer:R}}}else if(R.merchandiseShelfRenderer)var G=R;else if(R.ticketShelfRenderer)var w=R;else if(R.expandableMetadataRenderer)var D=R;else if(R.itemSectionRenderer)if(c=R.itemSectionRenderer.contents,z=void 0,q.directlyProvideComments&&((z=R.itemSectionRenderer)==null?void 0:z.sectionIdentifier)==="comment-item-section")_.Q6("cmi"),q.JSC$23505_watchApi.provideRenderingData("COMMENTS",R.itemSectionRenderer);else if(c)for(R=_.Z(c),c=
R.next();!c.done;c=R.next())if(c=c.value,c.commentsEntryPointHeaderRenderer)var k=c;else if(c.clarificationRenderer||c.infoPanelContainerRenderer||c.infoPanelContentRenderer||c.emergencyOneboxRenderer){N.push(c);var f=f||!!X}else c.limitedStateMessageRenderer?y=c:c.videoMetadataCarouselViewModel&&(J=c);if(_.x("web_watch_merch_in_sd_when_ticket_shelf_present")&&G&&w){var L=G;G=void 0}if(q.provideWatchNextSecondaryResults){var S,W,M;q.JSC$23505_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
E==null?void 0:(S=E.contents)==null?void 0:(W=S.twoColumnWatchNextResults)==null?void 0:(M=W.secondaryResults)==null?void 0:M.secondaryResults)}if(q.JSC$23505_watchApi.getRoot().is==="ytd-watch-grid"){var qe,RJ;q.JSC$23505_watchApi.provideRenderingData("LIVE_CHAT",E==null?void 0:(qe=E.contents)==null?void 0:(RJ=qe.twoColumnWatchNextResults)==null?void 0:RJ.conversationBar)}var tZ,wA,rA,xD;(S=E==null?void 0:(tZ=E.contents)==null?void 0:(wA=tZ.twoColumnWatchNextResults)==null?void 0:(rA=wA.secondaryResults)==
null?void 0:(xD=rA.secondaryResults)==null?void 0:xD.offerModule)&&(S.donationShelfRenderer||S.donationUnavailableRenderer)&&q.JSC$23505_watchApi.getRoot().is!=="ytd-watch-grid"&&(b=S);tZ=q.JSC$23505_watchApi.getPlayerResponse();if(!tZ||!_.piA(tZ.playabilityStatus,E==null?void 0:E.playerOverlays)){var IJ;if(E==null?0:(IJ=E.contents)==null?0:IJ.singleColumnWatchNextResults){var sJ,Sn;var YE=E==null?void 0:(sJ=E.contents.singleColumnWatchNextResults.results)==null?void 0:(Sn=sJ.results)==null?void 0:
Sn.contents}else{var xE,qv,mM,Ox;IJ=!!(m==null?0:(xE=m[0])==null?0:(qv=xE.itemSectionRenderer)==null?0:(mM=qv.contents)==null?0:(Ox=mM[0])==null?0:Ox.backgroundPromoRenderer);var h4,QC;xE=!!(E==null?0:(h4=E.contents)==null?0:(QC=h4.twoColumnWatchNextResults)==null?0:QC.secondaryResults);IJ&&!xE&&(YE=m)}}m=N[0];h4=N[1];f&&N.length===1&&(h4=m,m=void 0);q.JSC$23505_watchApi.provideRenderingData("PRIMARY_INFO",r);q.JSC$23505_watchApi.provideRenderingData("SECONDARY_INFO",X);q.JSC$23505_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
k);q.JSC$23505_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",J);q.JSC$23505_watchApi.provideRenderingData("CLARIFICATION",m);q.JSC$23505_watchApi.provideRenderingData("RICH_METADATA",V);q.JSC$23505_watchApi.provideRenderingData("MERCH_SHELF",G);_.x("web_watch_merch_in_sd_when_ticket_shelf_present")&&q.JSC$23505_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",L);q.JSC$23505_watchApi.provideRenderingData("TICKET_SHELF",w);q.JSC$23505_watchApi.provideRenderingData("LIMITED_STATE",y);q.JSC$23505_watchApi.getRoot().is!==
"ytd-watch-grid"&&q.JSC$23505_watchApi.provideRenderingData("DONATION_SHELF",b);q.JSC$23505_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",YE);q.JSC$23505_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",h4);q.JSC$23505_watchApi.provideRenderingData("EXPANDABLE_METADATA",D);if(q.swatcherooProvideAllDataOnScheduledJob){var rp,Fd,yF,vR,ej,Go;r=E==null?void 0:(rp=E.contents)==null?void 0:(Fd=rp.twoColumnWatchNextResults)==null?void 0:(yF=Fd.secondaryResults)==null?void 0:(vR=yF.secondaryResults)==
null?void 0:(ej=vR.results)==null?void 0:(Go=ej[0])==null?void 0:Go.richGridRenderer;q.JSC$23505_watchApi.provideRenderingData("RICH_GRID_RENDERER",r)}};
_.h27.prototype.hasCompanionAds=function(q){var N,b;return(b=q==null?void 0:(N=q.adPlacements)==null?void 0:N.some(function(y){var J,E,F,R;return(y==null?void 0:(J=y.adPlacementRenderer)==null?void 0:(E=J.renderer)==null?void 0:E.actionCompanionAdRenderer)||(y==null?void 0:(F=y.adPlacementRenderer)==null?void 0:(R=F.renderer)==null?void 0:R.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?b:!1};
var kq=function(q){if(!_.x("swaterdoo_ps_wn_handle_ks")){q.swatcherooProvideAllDataOnScheduledJob||Dcl(q,3E3);var N=q.JSC$23505_watchApi.getPlayerResponse(),b,y,J,E,F,R=(b=q.JSC$23505_watchApi.getWatchNextResponse())==null?void 0:(y=b.contents)==null?void 0:(J=y.twoColumnWatchNextResults)==null?void 0:(E=J.secondaryResults)==null?void 0:(F=E.secondaryResults)==null?void 0:F.offerModule;N=q.hasCompanionAds(N);var c,z;b=(R==null?void 0:(c=R.tvfilmOfferModuleRenderer)==null?void 0:c.clientShouldSuppressIfCompanionAdDisplayed)||
(R==null?void 0:(z=R.unlimitedOfferModuleRenderer)==null?void 0:z.suppressIfCompanionAds);c=N&&b;q.JSC$23505_watchApi.getRoot().is==="ytd-watch-grid"&&q.JSC$23505_watchApi.provideRenderingData("OFFER_MODULE",c?void 0:R)}},Dcl=function(q,N){_.x("swatcheroo_pbs_load_grid")&&(q.provideRichGridJobId&&_.pY.cancelJob(q.provideRichGridJobId),q.provideRichGridJobId=_.ZQ(_.pY,function(){q.provideRichGridJobId=0;
var b,y,J,E,F,R,c,z=(b=q.JSC$23505_watchApi.getWatchNextResponse())==null?void 0:(y=b.contents)==null?void 0:(J=y.twoColumnWatchNextResults)==null?void 0:(E=J.secondaryResults)==null?void 0:(F=E.secondaryResults)==null?void 0:(R=F.results)==null?void 0:(c=R[0])==null?void 0:c.richGridRenderer;z&&q.JSC$23505_watchApi.provideRenderingData("RICH_GRID_RENDERER",z)},N))},KOZ=function(q){var N,b;
_.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$23505_watchApi.playerApi,2);N=y.yieldResult;b=function(){q.onPlaybackStart()};
N.addEventListener("onPlaybackStartExternal",b);q.addOnDisposeCallback(function(){N.removeEventListener("onPlaybackStartExternal",b)});
_.hj(y)})};
_.h27.prototype.onPlaybackStart=function(){Dcl(this)};_.UcB=function(q){_.UN.call(this);var N=this;this.JSC$23517_watchApi=q;q.playerApi.then(function(b){N.player=b});
this.gestures=new _.RT(this.JSC$23517_watchApi.getRoot(),q.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.zls(_.WT().getState())&&_.Kj(_.WT().getState())<=0)if(_.Ol(_.WT().getState())){var b;(b=N.player)==null||b.toggleFullscreen()}else _.By(N.JSC$23517_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
krZ(this)};
_.Y(_.UcB,_.UN);var krZ=function(q){var N=_.aM(_.WT(),_.Ol,function(b){q.onFullscreenChanged(b)});
q.addOnDisposeCallback(N);N=_.aM(_.WT(),_.Kj,function(b){q.gestures&&(b>0?q.gestures.detach():q.gestures.attach())});
q.addOnDisposeCallback(N)};
_.UcB.prototype.onFullscreenChanged=function(q){this.gestures&&this.gestures.update(q)};var fiX;fiX=["PLAYLIST"];_.Iie=function(q){_.UN.call(this);var N=this;this.JSC$23520_watchApi=q;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(q.subscribeToActiveChanged(function(b){N.onActiveChanged(b)}));
CGe(this)};
_.Y(_.Iie,_.UN);var TgB=function(q){q.pageDisposalDataTypes=Object.values(Bdc).filter(function(N){return!fiX.includes(N)})},CGe=function(q){if(_.x("swatcheroo_enable_ghost_cards")||_.x("web_watch_clear_data_on_page_dispose"))TgB(q),q.JSC$23520_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.pY.cancelJob(q.clearDataJobId);
q.clearDataJobId=0}),q.runPageDisposeJob=function(){var N=_.tz().resolve(_.L6).getDestinationPageType()==="watch";
q.clearDataJobId=_.ZQ(_.pY,q.runClearDataJob,N?0:_.VX("web_watch_delay_page_dispose_ms",1E4))},q.runClearDataJob=function(){s5v(q)},q.runOnYtNavigateAwayFinish=function(){q.clearDataJobId&&(_.pY.cancelJob(q.clearDataJobId),q.clearDataJobId=0,s5v(q))},document.addEventListener("yt-navigate-finish",q.runOnYtNavigateAwayFinish),q.JSC$23520_watchApi.addPageDisposeJob(q.runPageDisposeJob),q.addOnDisposeCallback(function(){q.JSC$23520_watchApi.removePageDisposeJob(q.runPageDisposeJob);
q.JSC$23520_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",q.runOnYtNavigateAwayFinish)})},s5v=function(q){q.pageDisposalDataTypes.forEach(function(N){q.JSC$23520_watchApi.provideRenderingData(N,void 0)});
q.clearDataJobId=0};
_.Iie.prototype.onActiveChanged=function(q){q&&((q=document.querySelector("#watch-page-skeleton"))&&_.lC(q),nos(this),document.body.removeAttribute("no-y-overflow"),_.ou("IS_SHELL_LOAD")&&_.gic())};
var nos=function(q){_.d(function(N){if(N.nextAddress==1)return N.yield(q.JSC$23520_watchApi.playerApi,2);_.kA();_.hj(N)})};var ai_;ai_=_.x("kevlar_watch_while_counterfactual")?0:.25;_.p3_=function(q){_.UN.call(this);this.JSC$23523_watchApi=q;this.JSC$23523_watchWhileEnabled=_.x("kevlar_watch_while_v2");this.pipEnabled=_.x("web_enable_pip_on_miniplayer");SYh(this);WO_(this);LOv(this)};
_.Y(_.p3_,_.UN);var SYh=function(q){q.JSC$23523_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){PGX(q)});
q.addOnDisposeCallback(function(){q.JSC$23523_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},WO_=function(q){var N,b;
_.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$23523_watchApi.playerApi,2);N=y.yieldResult;b=function(){PGX(q)};
N.addEventListener("onCollapseMiniplayer",b);q.addOnDisposeCallback(function(){N.removeEventListener("onCollapseMiniplayer",b)});
_.hj(y)})},LOv=function(q){var N=q.JSC$23523_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&N&&q.JSC$23523_watchWhileEnabled&&(q.playerIntersectionObserver=new IntersectionObserver(function(b){q.handleIntersect(b)},{threshold:[ai_]}),q.playerIntersectionObserver.observe(N),q.addOnDisposeCallback(function(){var b;
(b=q.playerIntersectionObserver)==null||b.disconnect()}))},PGX=function(q){var N,b,y;
_.d(function(J){if(J.nextAddress==1){N=_.tz().resolve(_.L6);b=N.data;y=_.QD(b.response,!1,b.playerResponse);_.sM().miniplayerButtonActivation=!0;if(q.pipEnabled)return _.sM().watchPipActivation=!0,J.jumpTo(2);_.tz().resolve(_.l9).collapse();return J.yield(_.sM().navigationFinishPromise,2)}if(J.nextAddress!=4)return _.sM().currentEndpoint=y.watchEndpoint||null,J.yield(_.tz().resolve(_.l9).activate(q.JSC$23523_watchApi.getElement("PLAYER"),y,b),4);_.sM().userActivation=!0;_.hj(J)})};
_.p3_.prototype.handleIntersect=function(q){Mg_(this,q[q.length-1])};
var Mg_=function(q,N){q.watchWhileJobId&&_.pY.cancelJob(q.watchWhileJobId);q.watchWhileJobId=_.pY.addLowPriorityJob(function(){var b,y;return _.d(function(J){if(J.nextAddress==1)return q.watchWhileJobId=void 0,b=_.tz().resolve(_.l9),N.intersectionRatio>ai_?b.isMiniplayerActive()?J.yield(b.deactivate(),0):J.jumpTo(0):(y=!b.isMiniplayerActive())?J.yield(ooX(q),5):J.jumpTo(4);J.nextAddress!=4&&(y=J.yieldResult);if(!y)return J.jumpTo(0);_.sM().watchWhileActivation=!0;return J.yield(Aec(q),0)})},100)},
ooX=function(q){return _.d(function(N){return N.nextAddress==1?_.x("kevlar_watch_while_paused")?N.return(!0):N.yield(q.isPlayerPlaying(),2):N.return(N.yieldResult)})};
_.p3_.prototype.isPlayerPlaying=function(){var q=this,N;return _.d(function(b){if(b.nextAddress==1)return b.yield(q.JSC$23523_watchApi.playerApi,2);N=b.yieldResult;return b.return(N.getPlayerStateObject().isPlaying)})};
var Aec=function(q){var N,b;return _.d(function(y){N=_.tz().resolve(_.L6).data;b=_.QD(N.response,!1,N.playerResponse);_.sM().currentEndpoint=b.watchEndpoint||null;return y.yield(_.tz().resolve(_.l9).activate(q.JSC$23523_watchApi.getElement("PLAYER"),b,N),0)})};_.Hre=function(q){_.UN.call(this);this.JSC$23527_watchApi=q;e2X(this);Bgs(this)};
_.Y(_.Hre,_.UN);var Bgs=function(q){var N,b;_.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$23527_watchApi.playerApi,2);N=y.yieldResult;b=function(J){var E;J.sessionData&&J.sessionData.itct&&(E=J.sessionData.itct);var F=J.watchEndpoint;if(F&&J.sessionData&&J.sessionData.autonav)F=_.a8D(F,E);else{var R;F=_.Mc(J.videoId,(R=J.listId)!=null?R:void 0,E)}E={endpoint:F};J.sessionData&&(E.tempData=J.sessionData);q.JSC$23527_watchApi.dispatchEvent("yt-navigate",E)};
N.addEventListener("onPlayVideo",b);q.addOnDisposeCallback(function(){N.removeEventListener("onPlayVideo",b)});
_.hj(y)})},e2X=function(q){var N=function(b){q.onYtNavigate(b)};
q.JSC$23527_watchApi.getRoot().addEventListener("yt-navigate",N);q.addOnDisposeCallback(function(){q.JSC$23527_watchApi.getRoot().removeEventListener("yt-navigate",N)})};
_.Hre.prototype.onYtNavigate=function(q){var N=this,b,y,J,E,F,R,c,z,m;return _.d(function(r){if(r.nextAddress==1){if(!((b=q.detail)==null?0:(y=b.endpoint)==null?0:y.watchEndpoint))return r.return();J=q.detail.endpoint.watchEndpoint;E=N.JSC$23527_watchApi.getWatchNextResponse();R=_.v((F=E)==null?void 0:F.currentVideoEndpoint,_.nx);if(!R)return r.return();if(J.videoId!==R.videoId||J.playlistId&&J.playlistId!==R.playlistId||typeof J.startTimeSeconds!=="number")return r.jumpTo(0);q.stopPropagation();
(c=_.x("kevlar_watch_while_v2")&&!_.x("kevlar_watch_while_counterfactual"))&&_.tz().resolve(_.l9).isMiniplayerActive()||N.JSC$23527_watchApi.scrollWatchTo(0,!0);return r.yield(N.JSC$23527_watchApi.playerApi,3)}z=r.yieldResult;m=J.startTimeSeconds;z.seekTo(m,void 0,void 0,void 0,84);z.wakeUpControls();m<z.getDuration()&&z.playVideo();_.hj(r)})};_.N3x=function(q){_.UN.call(this);var N=this;this.JSC$23530_watchApi=q;var b=this.JSC$23530_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){qRs(N)});
this.addOnDisposeCallback(function(){N.JSC$23530_watchApi.unsubscribeByKey(b)});
qRs(this);_.x("enable_ai_companion")&&(q=this.JSC$23530_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.kMx(_.tz().resolve(_.em),q,"WATCH")};
_.Y(_.N3x,_.UN);var qRs=function(q){var N=q.JSC$23530_watchApi.getWatchNextResponse();if(N){var b,y=[].concat(_.a9((b=N==null?void 0:N.engagementPanels)!=null?b:[]));_.x("web_watch_comments_visible_by_default")&&(b=y.find(function(J){var E;return((E=J.engagementPanelSectionListRenderer)==null?void 0:E.targetId)==="engagement-panel-comments-section"}),b==null?0:b.engagementPanelSectionListRenderer)&&(b.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
y.unshift.apply(y,_.a9(bDx(N)));q.JSC$23530_watchApi.provideRenderingData("ENGAGEMENT_PANELS",y)}},yic=function(q){var N,b,y,J=(N=q.engagementPanels)==null?void 0:(b=N.find(function(V){var G;
return((G=V.engagementPanelSectionListRenderer)==null?void 0:G.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(y=b.engagementPanelSectionListRenderer.content)==null?void 0:y.structuredDescriptionContentRenderer,E;
if(_.v(J==null?void 0:(E=J.items)==null?void 0:E.find(function(V){return!!_.v(V,g5y)}),g5y))return!0;
var F,R,c,z;if(q=(((F=q.contents)==null?void 0:(R=F.twoColumnWatchNextResults)==null?void 0:(c=R.results)==null?void 0:(z=c.results)==null?void 0:z.contents)||[]).find(function(V){return V.videoPrimaryInfoRenderer})){var m,r,X;
return(((m=q.videoPrimaryInfoRenderer)==null?void 0:(r=m.videoActions)==null?void 0:(X=r.menuRenderer)==null?void 0:X.flexibleItems)||[]).some(function(V){V=_.v(V,_.RkR);if(!V)return!1;var G,w;V=(G=V.topLevelButton)==null?void 0:(w=G.buttonViewModel)==null?void 0:w.onTap;if(!V)return!1;G=_.O_(V);if(!G)return!1;var D;return((D=_.v(G,_.Gt))==null?void 0:D.panelIdentifier)==="PAyouchat"})}return!1},bDx=function(q){var N=[];
if(!_.x("web_watch_inject_placeholder_fantasy_panel_killswitch")){var b,y,J,E=(b=q.engagementPanels)==null?void 0:(y=b.find(function(R){var c;return((c=R.engagementPanelSectionListRenderer)==null?void 0:c.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(J=y.engagementPanelSectionListRenderer.content)==null?void 0:J.structuredDescriptionContentRenderer,F;
_.v(E==null?void 0:(F=E.items)==null?void 0:F.find(function(R){return!!_.v(R,CvX)}),CvX)&&(b=_.Q_R("PAsports_fantasy"),b.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",N.push(b))}yic(q)&&(q=_.Q_R("PAyouchat"),q.engagementPanelSectionListRenderer.targetId="PAyouchat",q.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",N.push(q));
return N};_.ER7=function(q){_.UN.call(this);this.JSC$23533_watchApi=q;JiZ(this)};
_.Y(_.ER7,_.UN);var JiZ=function(q){q.JSC$23533_watchApi.registerActionHandler("yt-loop-command",function(N){gRe(q,N)});
q.JSC$23533_watchApi.registerActionHandler("yt-repeat-chapter-command",function(N){ZD_(q,N)});
q.addOnDisposeCallback(function(){q.JSC$23533_watchApi.unregisterActionHandler("yt-loop-command");q.JSC$23533_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},gRe=function(q,N){var b;
_.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$23533_watchApi.playerApi,2);b=y.yieldResult;_.v(N,TOh).loop?(b.setLoopRange({startTimeMs:Number(_.v(N,TOh).startTimeMs),endTimeMs:Number(_.v(N,TOh).endTimeMs),postId:_.v(N,TOh).postId,type:"clips"}),b.playVideo()):b.setLoopRange(null);_.hj(y)})},ZD_=function(q,N){var b,y;
_.d(function(J){if(J.nextAddress==1)return J.yield(q.JSC$23533_watchApi.playerApi,2);b=J.yieldResult;y=_.v(N,Wah).repeat;y==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(b.setLoopRange({startTimeMs:Number(_.v(N,Wah).startTimeMs),endTimeMs:Number(_.v(N,Wah).endTimeMs),type:"repeatChapter"}),b.playVideo()):y==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&b.setLoopRange(null);_.hj(J)})};_.RSx=function(q){_.UN.call(this);this.JSC$23538_watchApi=q;F5B(this)};
_.Y(_.RSx,_.UN);var F5B=function(q){q.JSC$23538_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(N){dRe(q,N)});
q.addOnDisposeCallback(function(){q.JSC$23538_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},dRe=function(q,N){var b,y,J,E,F,R,c,z,m,r,X;
_.d(function(V){if(V.nextAddress==1)return V.yield(q.JSC$23538_watchApi.playerApi,2);b=V.yieldResult;if(E=(J=(y=_.v(N,LaX))==null?void 0:y.highlightedMenuItemKey)!=null?J:"")(R=(F=b).highlightSettingsMenuItem)==null||R.call(F,E);if(m=(z=(c=_.v(N,LaX))==null?void 0:c.openMenuItemKey)!=null?z:"")(X=(r=b).openSettingsMenuItem)==null||X.call(r,m);_.hj(V)})};var civ=_.yU("/youtube/app/watch/player_state","playerStateEntity");_.fl=function(q){_.UN.call(this);this.JSC$23541_watchApi=q;utB(this)};
_.Y(_.fl,_.UN);var zSB=function(q){switch(q){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"}},utB=function(q){var N,b,y,J,E;
_.d(function(F){if(F.nextAddress==1)return F.yield(q.JSC$23541_watchApi.playerApi,2);N=F.yieldResult;if(q.isDisposed())return F.return();b=function(R){q.onPlayerStateChange(R)};
y=function(R){q.onAdStateChange(R)};
J=function(){q.onAdSkip()};
E=function(R){q.onVideoDataChange(R)};
N.addEventListener("onStateChange",b);N.addEventListener("onAdStateChange",y);N.addEventListener("onAdSkip",J);N.addEventListener("onVideoDataChange",E);q.addOnDisposeCallback(function(){N.removeEventListener("onStateChange",b);N.removeEventListener("onAdStateChange",y);N.removeEventListener("onAdSkip",J);N.removeEventListener("onVideoDataChange",E)});
_.hj(F)})},$RB=function(q){var N=_.sk(),b=N.dispatch;
a:switch(q.adsState){case -1:case 0:var y="ADS_STATE_NONE";break a;case 1:case 2:case 3:y="ADS_STATE_PLAYING";break a;default:y="ADS_STATE_UNKNOWN"}b.call(N,_.$e("playerStateEntity",civ,{key:civ,playerState:zSB(q.playerState),adsState:y,videoId:q.videoId}))};
_.fl.prototype.onPlayerStateChange=function(q){var N=this,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(N.JSC$23541_watchApi.playerApi,2);b=y.yieldResult;if(N.isDisposed())return y.return();N.playerState=q;N.videoId=b.getVideoData().video_id;$RB(N);_.hj(y)})};
_.fl.prototype.onAdStateChange=function(q){this.adsState=q;$RB(this)};
_.fl.prototype.onAdSkip=function(){this.adsState=0;$RB(this)};
_.fl.prototype.onVideoDataChange=function(q){q.type==="newdata"&&(this.adsState=-1,$RB(this))};_.mRs=function(q){_.UN.call(this);var N=this;this.JSC$23545_watchApi=q;this.enableExternalPlaylistPanelInPlayer=_.x("delhi_web_player_use_external_playlist_panel");_.tz().resolve(_.F2).setPlayer(this.JSC$23545_watchApi.getElement("PLAYER"));q=this.JSC$23545_watchApi.subscribeToActiveChanged(function(b){N.onActiveChanged(b)});
this.addOnDisposeCallback(q);tNe(this)};
_.Y(_.mRs,_.UN);var tNe=function(q){var N,b;_.d(function(y){if(y.nextAddress==1)return q.enableExternalPlaylistPanelInPlayer?y.yield(q.JSC$23545_watchApi.playerApi,2):y.return();N=y.yieldResult;b=function(){if(q.playlistPanelElement)q.playlistPanelElement.onToggleExpanded()};
N.addEventListener("onToggleExternalPlaylistPanel",b);q.addOnDisposeCallback(function(){N.removeEventListener("onToggleExternalPlaylistPanel",b)});
_.hj(y)})};
_.mRs.prototype.onActiveChanged=function(q){var N=this,b=_.tz().resolve(_.F2),y=function(){rie(N)};
q?(this.playlistPanelElement=this.JSC$23545_watchApi.getElement("PLAYLIST_PANEL"))?(b.setPlaylistComponent(this.playlistPanelElement),b.addEventListener("yt-playlist-data-updated",y),this.addOnDisposeCallback(function(){b.removeEventListener("yt-playlist-data-updated",y)}),rie(this)):_.bv(Error("dp")):(b.removeEventListener("yt-playlist-data-updated",y),b.cancelVideoSkip())};
var rie=function(q){var N=_.tz().resolve(_.F2);q.JSC$23545_watchApi.provideRenderingData("PLAYLIST",N.getPlaylistData())};_.Cl=function(q){_.UN.call(this);var N=this;this.JSC$23548_watchApi=q;this.onPageScroll=function(){N.scrollThrottle.fire();N.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.El(this.onThrottledScroll,200,this);_.YN(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.El(this.onMastheadThrottledScroll,50,this);_.YN(this,this.mastheadScrollThrottle);this.animation=new _.rG(function(b){N.JSC$23548_watchApi.getRoot().setScrollTop(b)});
q=_.aM(_.WT(),_.Ol,function(){N.onFullscreenChanged()});
this.addOnDisposeCallback(q);XTB(this);VNZ(this);this.onThrottledScroll()};
_.Y(_.Cl,_.UN);
_.Cl.prototype.onFullscreenChanged=function(){var q=this,N=this.JSC$23548_watchApi.getRoot();!this.pageScrollElement&&N.pageScrollElement?(this.pageScrollElement=N.pageScrollElement,N.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){q.pageScrollElement&&q.pageScrollElement.removeEventListener("scroll",q.onPageScroll)})):this.pageScrollElement&&!N.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var XTB=function(q){window.addEventListener("scroll",q.onPageScroll);q.addOnDisposeCallback(function(){window.removeEventListener("scroll",q.onPageScroll)})},VNZ=function(q){q.JSC$23548_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(N){a:{var b;
if(b=q.JSC$23548_watchApi.getRoot().contains(N)&&!q.animation.isAnimating()){b=N.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var y,J,E=(N==null?void 0:(y=N.parentElement)==null?void 0:(J=y.parentElement)==null?void 0:J.id)==="fixed-secondary";b=!(b&&E)}if(b){if(_.x("kevlar_watch_scroll_manager_absolute_offset_killswitch"))y=N.offsetTop;else for(y=0,J=N;J!==null;)y+=J.offsetTop,y-=J.scrollTop,J=J.offsetParent;J=y;y=J-24;N=J+N.offsetHeight+24;J=q.JSC$23548_watchApi.getRoot().getPageScrollingElement();
b=q.JSC$23548_watchApi.getRoot().getScrollTop();E=b+J.clientHeight-56;if(y<b+56)N=y-56;else if(N>E)N-=J.clientHeight;else break a;q.scrollWatchTo(Math.max(0,N),!0)}}});
q.addOnDisposeCallback(function(){q.JSC$23548_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.Cl.prototype.onThrottledScroll=function(){var q=_.WT(),N=q.dispatch,b=this.JSC$23548_watchApi.getRoot().getScrollTop();N.call(q,_.B3({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:b}}))};
_.Cl.prototype.onMastheadThrottledScroll=function(){this.JSC$23548_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23548_watchApi.getRoot().getScrollTop())};
_.Cl.prototype.scrollWatchTo=function(q,N){(N===void 0?0:N)?this.animation.start(this.JSC$23548_watchApi.getRoot().getScrollTop(),Math.max(0,q),500):this.JSC$23548_watchApi.getRoot().setScrollTop(q)};_.vRh=function(q){_.UN.call(this);var N=this;this.JSC$23551_watchApi=q;var b=this.JSC$23551_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){joB(N)}),y=this.JSC$23551_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){xR7(N)});
this.addOnDisposeCallback(function(){N.JSC$23551_watchApi.unsubscribeByKey(b);N.JSC$23551_watchApi.unsubscribeByKey(y)});
joB(this);xR7(this)};
_.Y(_.vRh,_.UN);
var joB=function(q){var N,b,y,J=(y=(N=q.JSC$23551_watchApi.getPlayerResponse())==null?void 0:(b=N.videoDetails)==null?void 0:b.title)!=null?y:"";q.JSC$23551_watchApi.dispatchEvent("yt-update-title",J)},xR7=function(q){var N,b,y,J,E,F,R,c=(R=((F=(N=q.JSC$23551_watchApi.getWatchNextResponse())==null?void 0:(b=N.contents)==null?void 0:(y=b.twoColumnWatchNextResults)==null?void 0:(J=y.results)==null?void 0:(E=J.results)==null?void 0:E.contents)!=null?F:[]).find(function(z){return!!z.videoPrimaryInfoRenderer}))==null?
void 0:R.videoPrimaryInfoRenderer;
(N=_.ao(c==null?void 0:c.title))&&q.JSC$23551_watchApi.dispatchEvent("yt-update-title",N)};_.YRh=function(q){_.UN.call(this);this.JSC$23554_watchApi=q;GCB(this)};
_.Y(_.YRh,_.UN);var GCB=function(q){var N,b;_.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$23554_watchApi.playerApi,2);N=y.yieldResult;b=function(){q.onYpcContentRequest()};
N.addEventListener("onYpcContentRequest",b);q.addOnDisposeCallback(function(){N.removeEventListener("onYpcContentRequest",b)});
_.hj(y)})};
_.YRh.prototype.onYpcContentRequest=function(){var q,N,b,y,J,E=(q=this.JSC$23554_watchApi.getWatchNextResponse())==null?void 0:(N=q.contents)==null?void 0:(b=N.twoColumnWatchNextResults)==null?void 0:(y=b.secondaryResults)==null?void 0:(J=y.secondaryResults)==null?void 0:J.offerModule,F,R,c,z;q=(z=(c=(R=(F=E==null?void 0:E.episodeOfferModuleRenderer)!=null?F:E==null?void 0:E.movieOfferModuleRenderer)!=null?R:E==null?void 0:E.unlimitedOfferModuleRenderer)!=null?c:E==null?void 0:E.liveOfferModuleRenderer)!=
null?z:E==null?void 0:E.tvfilmOfferModuleRenderer;var m,r,X;E=(X=E==null?void 0:(m=E.tvfilmOfferModuleRenderer)==null?void 0:(r=m.actionButtons)==null?void 0:r.length)!=null?X:0;r=Math.max(E-1,0);var V,G,w;m=(w=q==null?void 0:(V=q.offerButton)==null?void 0:V.buttonRenderer)!=null?w:q==null?void 0:(G=q.actionButtons)==null?void 0:G[r].buttonRenderer;var D,k;(V=(k=(D=m==null?void 0:m.navigationEndpoint)!=null?D:m==null?void 0:m.serviceEndpoint)!=null?k:m==null?void 0:m.command)&&_.bq.instance.resolveCommand(V)};
}catch(e){_._DumpException(e)}
try{
var jUX,rmx,tlW;_.m9B=function(){var q=_.nM.clone($9C),N;return(new _.wL(function(b,y){q.onSuccess=function(J){_.god(J)?b(new tlW(J)):y(new _.JQ("Request failed, status="+_.G1(J),"net.badstatus",J))};
q.onError=function(J){y(new _.JQ("Unknown request error","net.unknown",J))};
q.onTimeout=function(J){y(new _.JQ("Request timed out","net.timeout",J))};
N=_.iv("//googleads.g.doubleclick.net/pagead/id",q)})).thenCatch(function(b){if(b instanceof _.K0){var y;
(y=N)==null||y.abort()}return _.ra(b)})};
_.XHf=function(q){a:{var N="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(N="EMBEDDED_PLAYER_MODE_PFL");var b=q.raw_embedded_player_response;if(!b&&(q=q.embedded_player_response))try{b=JSON.parse(q)}catch(J){break a}if(b)b:for(var y in rmx)if(rmx[y]==b.embeddedPlayerMode){N=rmx[y];break b}}return N==="EMBEDDED_PLAYER_MODE_PFL"};
_.VlX=function(){if(_.x("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("vf");if(!_.LCJ())return Error("wf");var q=_.M7("PLAYER_VARS",{});if(_.nM.get(q,"privembed",!1)=="1")return Error("xf");if(_.XHf(q))return Error("yf")};
jUX=function(q){switch(q){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:_.ol(q,"unknown result type")}};
_.x9C=function(q,N,b){N=_.Bmh[N];b={detected:q===0,source:N.cvz,detectionResult:jUX(q),contentCpn:b};_.W_("biscottiBasedDetection",b);_.HdT.increment(N.cvz,q);N.z0F!==void 0&&_.PC("CATSTAT",_.Adn(q,N))};
_.Ec=function(q,N){var b={};b.key=q;b.value=N;return _.Viz().then(function(y){return new Promise(function(J,E){try{var F=y.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(b);F.onsuccess=function(){J()};
F.onerror=function(){E()}}catch(R){E(R)}})})};
_.GsX=function(){var q=_.VX("user_engagement_experiments_rate_limit_ms"),N=v9a.get("last-user-engagement-exp-trigger-timestamp");return!N||(0,_.mA)()>=N+q?(v9a.set("last-user-engagement-exp-trigger-timestamp",(0,_.mA)()),!0):!1};
_.gN=function(q,N,b,y,J){N=N===void 0?null:N;b=b===void 0?null:b;y=y===void 0?null:y;J=J===void 0?null:J;q={youThereEventType:q};b&&(q.lactThresholdMs=b.lactThresholdMs,q.mediaPosSec=b.promptDelaySec,q.lactServerRequestMs=b.lactServerRequestMs,q.triggerReason=b.triggerReason);J!=null&&(q.renderingMediaPosSec=Math.round(J));N||(N=_.Oe());N&&(q.clientScreenNonce=N);y&&(q.clientPlaybackNonce=y);_.W_("youThere",q)};
rmx={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"};tlW=function(q){this.xhr=q};
_.JQ=function(q,N,b){_.bn.call(this,q+", errorCode="+N);this.errorCode=N;this.xhr=b;this.name="PromiseAjaxError"};
_.Y(_.JQ,_.bn);var $9C={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var v9a=new _.ed("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.zQK=function(q){return _.B3({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:q})};
}catch(e){_._DumpException(e)}
try{
var SJ,qvx,b9B,yNv,JNX,E8e,Z97,mK_,rNX,XPB,g8v,N5x,cNe,dKe,xKl;_.HDy=function(){var q=window.location.hash;q.charAt(0)==="#"&&(q=q.charAt(1)==="!"?q.substring(2):q.substring(1));return _.EV(q)};
SJ=function(q,N,b){var y;return _.d(function(J){if(J.nextAddress==1)return J.yield(N(),2);y=J.yieldResult;b(y,q);_.hj(J)})};
qvx=function(){return _.d(function(q){return q.nextAddress==1?q.yield((_.VlX()!==void 0?_.ra(Error("zf")):_.m9B()).then(function(){return 1},function(N){if(N.message==="Biscotti id is disabled")return 3;
_.M6("Failed fetching bid");return 0}),2):q.return(q.yieldResult)})};
b9B=function(){var q=_.MR("YXllciNmaXZmbzZnMzN4c295dC1oYXZlbi1lbWJlZC1wbA=="),N=_.MR("N2xmd28weXY4aWZyYW1lI2ZyNA==");return document.querySelector(N+N5x+q)?0:1};
yNv=function(){return _.CDA(_.mN)};
JNX=function(){return _.IVJ()===0?0:_.TmA()};
E8e=function(){return _.WPJ(_.Jdz([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
Z97=function(){return _.iRA(g8v)};
_.FlX=function(q){_.d(function(N){switch(N.nextAddress){case 1:return N.yield(SJ("b.f_",qvx,q),2);case 2:return N.yield(SJ("j.s_",_.ORn,q),3);case 3:return N.yield(SJ("r.s_",_.GQz,q),4);case 4:return N.yield(SJ("e.h_",Z97,q),5);case 5:if(!_.x("ab_det_sc_inj")){N.jumpTo(6);break}return N.yield(SJ("s.i_",_.UWd,q),6);case 6:if(_.x("ab_deg_unex_thr")){N.jumpTo(8);break}return N.yield(SJ("a.o_",_.hbh,q),8);case 8:if(_.x("ks_get_o_pp")){N.jumpTo(10);break}return N.yield(SJ("g.o_",_.DWz,q),10);case 10:if(_.x("ks_det_gpbl")){N.jumpTo(12);
break}return N.yield(SJ("p.i_",_.KPJ,q),12);case 12:return N.yield(SJ("f.i_",_.uVA,q),14);case 14:return N.yield(SJ("a.b_",_.xWe,q),15);case 15:return N.yield(SJ("p.m_",_.tYZ,q),16);case 16:if(!_.x("ab_det_el_h_v2")){N.jumpTo(17);break}return N.yield(SJ("n.h_",E8e,q),17);case 17:return N.yield(SJ("o.p_",yNv,q),19);case 19:return N.yield(SJ("e.i_",b9B,q),20);case 20:if(_.x("ab_det_apm"))return N.yield(SJ("o.a_",JNX,q),0);N.jumpTo(0)}})};
_.RnB=function(q,N){q={videoId:q};N&&(q.playlistId=N);return q};
_.uH_=function(){if(_.LCJ()){var q=_.M7("PLAYER_VARS",{});if(_.nM.get(q,"privembed",!1)!="1"&&!_.XHf(q)){var N=function(){dKe=!0;"google_ad_status"in window?_.PC("DCLKSTAT",1):_.PC("DCLKSTAT",2)};
try{_.kU(_.N0K,N)}catch(b){}cNe.push(_.pY.addLowPriorityJob(function(){if(!(dKe||"google_ad_status"in window)){try{_.Cen(_.N0K.toString(),N)}catch(b){}dKe=!0;_.PC("DCLKSTAT",3)}},5E3))}}};
_.znc=function(q,N,b){b=b===void 0?!1:b;var y=Math.max(q.width,_.FAh);if(_.x("kevlar_watch_feed_big_thumbs")&&q.width>=1550-_.ph()&&q.height>=800)y-=_.$ml;else if(q.width>=_.Cj){var J=_.RwB+_.dmy+_.fj;_.x("kevlar_watch_feed_big_thumbs")&&(J=_.zw_);y-=J}else y-=_.RwB;y=Math.min(y,_.cSB);J=240;b&&(J=380);N<.5624||(!_.x("kevlar_watch_flexy_disable_small_window_sizing")&&(q.height<630&&q.width>=657||q.height>=630&&q.width>=_.Cj&&q.width<1327)?J=360:!_.x("kevlar_watch_flexy_disable_large_window_sizing")&&
q.height>=630&&q.width>=1327&&(J=480));var E=Math.min(y*N,q.height-(56+_.ZYx+_.ulx));E=Math.max(E,J);N<1?y=E/N:q.width>=_.Cj&&(y=_.znc(q,.5625,b).width);return new _.l3(Math.round(y),Math.round(E))};
_.$KB=function(q){var N=0;q.indexOf("h")!=-1&&(q=q.split("h"),N=q[0]*60*60,q=q[1]);q.indexOf("m")!=-1&&(q=q.split("m"),N=q[0]*60+N,q=q[1]);q.indexOf("s")!=-1?(q=q.split("s"),N=q[0]*1+N):N=q*1+N;return N};
_.teZ=function(){_.VX("service_worker_push_logged_out_prompt_watches")!=-1&&_.Ma("WatchCount").then(function(q){q>=100||_.Ec("WatchCount",q+1)})};
mK_=function(q){var N=q.externalVideoId||"";return N?q.isShortsEligible?"https://www.youtube.com/shorts/"+N:"https://www.youtube.com/watch?v="+N:""};
rNX=function(q){var N=[];q.viewCount&&N.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:q.viewCount});q.likeCount&&N.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:q.likeCount});return N};
XPB=function(q){var N,b,y={"@context":"https://schema.org","@type":"VideoObject",description:_.ao(q.description),duration:"PT"+(q.lengthSeconds||"0")+"S",embedUrl:q.embed?q.embed.iframeUrl:"",name:_.ao(q.title),thumbnailUrl:((N=q.thumbnail)==null?void 0:(b=N.thumbnails)==null?void 0:b.map(function(m){return m&&m.url||""}))||[],
uploadDate:q.publishDate};_.x("mweb_video_schema_id_killswitch")||(y["@id"]=mK_(q));N=rNX(q);N.length&&(y.interactionStatistic=N);q.category&&(y.genre=q.category);q.ownerChannelName&&(y.author=q.ownerChannelName);q.liveBroadcastDetails&&(y.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:q.liveBroadcastDetails.startTimestamp,endDate:q.liveBroadcastDetails.endTimestamp}]);if(q.learningResource){q=q.learningResource;y["@type"]=["VideoObject","LearningResource"];var J;if((J=q.learningResourceType)==
null?0:J.length)y.learningResourceType=q.learningResourceType[0];var E;if((E=q.educationalAlignment)==null?0:E.length)y.educationalAlignment={"@type":"AlignmentObject",targetName:q.educationalAlignment[0]};var F;if((F=q.educationalLevel)==null?0:F.length){J=q.educationalLevel[0];var R;if((R=q.educationalLevelCountry)==null?0:R.length)J+=" ("+q.educationalLevelCountry+")";y.educationalLevel=J}var c,z;if(((c=q.learningResourceType)==null?0:c.length)&&q.learningResourceType[0]==="Problem walkthrough"&&
((z=q.problemDescriptions)==null?0:z.length))for(y.hasPart=[],R=_.Z(q.problemDescriptions),c=R.next();!c.done;c=R.next())J=c.value,c=J.problemDescriptionText,z=J.startOffset,J=J.url,c&&z!==void 0&&J&&y.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:c,text:c,startOffset:z,url:J})}return y};
_.Veh=function(q){return _.B3({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:q}})};
g8v=[[["NGtmeWxwcmltYXJ5I3h1cHdjYmU=",null,null],[null,["b3dzZS1yZXN1bHRzLXJlbmRlcmVyI2RtdWRiaHJwd3hxaHl0ZC10d28tY29sdW1uLWJy","I3l6ZW91Zmdsa3FpdHN0eWxlLXNjb3Bl"],null],["I2JyOWx0dHU3MWJzam1hc3RoZWFkLWFk",["ZXIjYTAwa3dyaWprNzR0eXRkLXJpY2gtZ3JpZC1yZW5kZXI="],null],[null,["ZXIjcWZheHlseDF3bW91eXRkLXJpY2gtZ3JpZC1yZW5kZXI=","IzJ5aXJmZmU3NnY4NnN0eWxlLXNjb3Bl"],null],[null,["Y2FhN2NhcGFleXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciN1eWE=","I2V4OGsybWJieXNxdnN0eWxlLXNjb3Bl"],null],[null,["bmRlcmVyI3Rmb3ZzZ2FzZmdsZHl0ZC1hZC1zbG90LXJl"],
null]],[["YWRzI2oyeGZyaXZhNnV5NnBsYXllci0=",null,null]],[[null,null,"emc0aGkxd2ozMWN5dGxyLWJhbm5lci1jdGEtcmVuZGVyZXIjdA=="]]];N5x="#";cNe=[];dKe=!1;_.j0X=["engagement-panel-ads"];xKl=new _.yT("updateSentimentBarStateCommand");_.v8Z=new _.yT("showSurveyCommand");_.Ws=new _.yT("changeMarkersVisibilityCommand");var Yvc,Q07,l4e,i9X,wPl,Ll;_.GMc=function(q,N){this.playerProvider_=q;this.actionSenderElement_=N;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.GMc.prototype.reset=function(){Yvc(this);this.isUserPredictedAbsent_=!1};
Yvc=function(q,N){!q.youThereData_||q.showWarningJob_||N!==void 0&&N||(_.gN("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Oe(),q.youThereData_,q.clientPlaybackNonce_),_.Lo());_.pY.cancelJob(q.showWarningJob_);q.showWarningJob_=0;_.pY.cancelJob(q.showBlockingWarningJob_);q.showBlockingWarningJob_=0;_.pY.cancelJob(q.pausePlaybackJob_);q.pausePlaybackJob_=0;q.youThereData_=null;q.clientPlaybackNonce_=void 0;q.inYouThereFlow_=!1};
_.O9e=function(q,N){var b,y,J;_.d(function(E){if(E.nextAddress==1)return q.reset(),E.yield(q.playerProvider_().getPlayerPromise(),2);b=E.yieldResult;q.clientPlaybackNonce_=b.getVideoData().cpn;q.youThereData_=N.configData.youThereData;if(!q.youThereData_)return E.return();if(q.youThereData_.triggerReason&&q.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.GsX())return _.gN("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Oe(),q.youThereData_,q.clientPlaybackNonce_),E.return();y=q.youThereData_.promptDelaySec;
J=b.getCurrentTime();q.showWarningJob_=_.pY.addLowPriorityJob(function(){return _.d(function(F){q.showWarningJob_=0;return F.yield(Q07(q),0)})},Math.max(y-J,0)*1E3);
_.hj(E)})};
Q07=function(q){var N,b,y,J,E,F;return _.d(function(R){if(R.nextAddress==1)return R.yield(q.playerProvider_().getPlayerPromise(),2);if(R.nextAddress!=3)return N=R.yieldResult,b=N.getCurrentTime(),R.yield(wPl(q),3);y=R.yieldResult;if(!y||!q.youThereData_)return R.return();if(_.x("check_user_lact_at_prompt_shown_time_on_web")&&(J=parseInt(q.youThereData_.lactThresholdMs,10),_.tr()<J))return _.gN("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Oe(),q.youThereData_,q.clientPlaybackNonce_),R.return();if(q.youThereData_.playbackPauseDelayMs<=
0)return i9X(q),R.return();!_.x("external_fullscreen")&&(E=_.Py())&&(q.ignoreFullscreenExitUserActivity_=!0,_.pY.addLowPriorityJob(function(){q.ignoreFullscreenExitUserActivity_=!1},2E3),_.MP(E));
q.youThereData_.showToastWarningPrompt&&(Ll(q,q.youThereData_.showWarningActions),q.inYouThereFlow_=!0,_.gN("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Oe(),q.youThereData_,q.clientPlaybackNonce_,b),_.gN("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Oe(),q.youThereData_,q.clientPlaybackNonce_,b));F=0;q.youThereData_.blockingPromptDelayMs&&(F=q.youThereData_.blockingPromptDelayMs);q.showBlockingWarningJob_=_.pY.addLowPriorityJob(function(){return _.d(function(c){q.showBlockingWarningJob_=0;return c.yield(l4e(q),
0)})},F);
_.hj(R)})};
l4e=function(q){var N,b,y;return _.d(function(J){if(J.nextAddress==1)return J.yield(wPl(q),2);N=J.yieldResult;if(!q.youThereData_)return J.return();N&&(q.youThereData_.showBlockingWarningAction&&(_.gN("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Oe(),q.youThereData_,q.clientPlaybackNonce_),(b=_.v(q.youThereData_.showBlockingWarningAction,_.y6))?Ll(q,b.commands):Ll(q,[q.youThereData_.showBlockingWarningAction]),q.inYouThereFlow_=!0),y=q.youThereData_.playbackPauseDelayMs,q.pausePlaybackJob_=
_.pY.addLowPriorityJob(function(){return _.d(function(E){q.pausePlaybackJob_=0;return E.yield(i9X(q),0)})},y));
_.hj(J)})};
i9X=function(q){var N;return _.d(function(b){if(b.nextAddress==1)return b.yield(wPl(q),2);N=b.yieldResult;if(!q.youThereData_)return b.return();N&&(_.gN("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Oe(),q.youThereData_,q.clientPlaybackNonce_),Ll(q,q.youThereData_.showPausedActions),q.inYouThereFlow_=!0);_.hj(b)})};
_.GMc.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var q=_.v(this.youThereData_.userActiveDuringFlowAction,_.y6);q?Ll(this,q.commands):Ll(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.gN("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Oe(),this.youThereData_,this.clientPlaybackNonce_),_.Lo());Yvc(this,!0)}_.KlB(this,!1)};
_.DKe=function(q){_.gN("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Oe(),q.youThereData_,q.clientPlaybackNonce_)};
wPl=function(q){var N,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(q.playerProvider_().getPlayerPromise(),2);N=y.yieldResult;b=N.getPlayerState();return y.return(b==-1||b==1||b==3)})};
_.KlB=function(q,N){var b;_.d(function(y){if(y.nextAddress==1){if(q.isUserPredictedAbsent_==N)return y.jumpTo(0);q.isUserPredictedAbsent_=N;return y.yield(q.playerProvider_().getPlayerPromise(),3)}b=y.yieldResult;b.setUserEngagement(N);N&&_.gN("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Oe(),q.youThereData_,q.clientPlaybackNonce_);_.hj(y)})};
Ll=function(q,N){if(_.x("handle_service_request_actions")||_.x("kevlar_youthere_service_endpoint_actions_killswitch"))_.Nc(q.actionSenderElement_,N,q.actionSenderElement_);else{N=_.Z(N);for(var b=N.next();!b.done;b=N.next())b=b.value,b.commandMetadata&&b.commandMetadata.webCommandMetadata&&b.commandMetadata.webCommandMetadata.sendPost?_.qc(q.actionSenderElement_,[b]):_.Nc(q.actionSenderElement_,[b],q.actionSenderElement_)}};var hnv;var kM_;var pl=function(){var q=_.C.apply(this,arguments)||this;q.systemIcons=_.x("kevlar_system_icons");q.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return q};
_.Y(pl,_.C);pl.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var q=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(q=this.data.percentIfLiked||0,this.activated=!0):(q=this.data.percentIfIndifferent||0,this.activated=!1);_.ee(this.hostElement).querySelector("#like-bar").style.width=q+"%"}};
pl.prototype.handleUpdateSentimentBarStateCommand=function(q){this.data&&this.set("data.likeStatus",_.v(q,xKl).likeStatus)};
pl.prototype.observeLikeStatus=pl.prototype.observeLikeStatus;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],pl.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],pl.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],pl.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],pl.prototype,"activated",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],pl.prototype,"systemIcons",void 0);_.p([_.FY("data.likeStatus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pl.prototype,"observeLikeStatus",null);_.p([_.I({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],pl);
_.a(pl,"ytd-sentiment-bar-renderer",function(){if(kM_!==void 0)return kM_;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return kM_=q},{mode:1});var UKX;var Ps=function(){var q=_.C.apply(this,arguments)||this;q.small=!0;return q};
_.Y(Ps,_.C);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Ps.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ps.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Ps.prototype,"small",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Ps);
_.a(Ps,"ytd-video-view-count-renderer",function(){if(UKX!==void 0)return UKX;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return UKX=q},{mode:_.Am("kevlar_poly_si_batch_j080")?1:2});var Mp=function(){var q=_.C.apply(this,arguments)||this;q.infoFormattedStrings=[];q.wrapVideoActions=_.x("kevar_watch_wrap_video_actions");q.hideSentimentBar=_.x("kevlar_watch_hide_sentiment_bar");q.actionMap={};return q};
_.Y(Mp,_.C);_.g=Mp.prototype;_.g.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.x("web_modern_buttons"),forceIconButton:!_.x("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.g.dataChanged=function(){_.x("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.g.computeInfoFormattedStrings=function(q){if(!q)return[];var N=[];q.dateText&&N.push(q.dateText);q.stationName&&N.push(q.stationName);q.rating&&N.push(q.rating);q.startEndTimeTemplate&&q.startTimeUtcMillis&&q.endTimeUtcMillis&&N.push(_.nD(_.XC7(_.ao(q.startEndTimeTemplate),Number(q.startTimeUtcMillis),Number(q.endTimeUtcMillis))));q.upNextProgramText&&N.push(q.upNextProgramText);return N};
_.g.scheduleInitialUpdatedMetadataRequest=function(){var q,N=(q=this.data)==null?void 0:q.updatedMetadataEndpoint;if(N){var b;q=Number((b=_.v(N,_.nwx))==null?void 0:b.initialDelayMs);b=isNaN(q)?250:q;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),b)}};
_.g.setSentimentBarWidth=function(){var q=this;_.ut(this,function(){var N=_.ee(q.hostElement).querySelector("ytd-menu-renderer");if(N){N=N.topLevelButtons;for(var b=0,y=0;y<N.length;y++){var J=N[y],E=q.get("toggleButtonSupportedData.toggleButtonIdData.id",J.data);if(E==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||E==="TOGGLE_BUTTON_ID_TYPE_LIKE")b+=J.clientWidth+8;else break}b&&(q.sentiment.style.width=b-8+" px")}})};
_.g.fetchUpdatedMetadata=function(q){var N;q&&(N={continuation:q});var b;(q=(b=this.data)==null?void 0:b.updatedMetadataEndpoint)&&_.tz().resolve(_.rO).resolveCommand(q,{form:Object.assign({},N,{element:this.hostElement})})};
_.g.onYtServiceRequestSent=function(q,N){N.endpoint&&_.v(N.endpoint,_.lk)&&(this.hasUpdateSentimentBarStateCommands()&&!_.x("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.v(N.endpoint,_.lk).status),this.setSentimentBarWidth())};
_.g.hasUpdateSentimentBarStateCommands=function(){var q,N,b,y,J=(y=(q=this.data)==null?void 0:(N=q.videoActions)==null?void 0:(b=N.menuRenderer)==null?void 0:b.topLevelButtons)!=null?y:[];q=_.Z(J);for(N=q.next();!N.done;N=q.next()){N=N.value;J=y=b=void 0;var E=(b=N.toggleButtonRenderer)==null?void 0:(y=b.toggleButtonSupportedData)==null?void 0:(J=y.toggleButtonIdData)==null?void 0:J.id;if(E==="TOGGLE_BUTTON_ID_TYPE_LIKE"||E==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){y=b=void 0;N=(y=_.v((b=N.toggleButtonRenderer)==
null?void 0:b.defaultServiceEndpoint,_.y6))==null?void 0:y.commands;if(!N)break;N=_.Z(N);for(b=N.next();!b.done;b=N.next())if(_.v(b.value,xKl))return!0}}return!1};
_.g.onYtServiceRequestCompleted=function(q,N){var b;(q=(b=N.data)==null?void 0:b.loggingDirectives)&&_.BBC(_.FR(),q);this.get("continuation.timedContinuationData",N.data)&&this.data&&this.data.updatedMetadataEndpoint&&(N=N.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,N.continuation),N.timeoutMs))};
_.g.computeHasDateText=function(q){return!!q&&!!q.dateText};
_.$H.Object.defineProperties(Mp.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var q,N,b,y;return!((y=(q=this.data)==null?void 0:(N=q.videoActions)==null?void 0:(b=N.menuRenderer)==null?void 0:b.flexibleItems)==null||!y.length)}}});
Mp.prototype.onYtServiceRequestCompleted=Mp.prototype.onYtServiceRequestCompleted;Mp.prototype.onYtServiceRequestSent=Mp.prototype.onYtServiceRequestSent;Mp.prototype.dataChanged=Mp.prototype.dataChanged;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Mp.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Mp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.zE.YtTaskEmitterBehavior),_.P("design:type",Object)],Mp.prototype,"ytTaskEmitterBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Mp.prototype,"data",void 0);_.p([_.U({computed:"computeInfoFormattedStrings(data)"}),_.P("design:type",Array)],Mp.prototype,"infoFormattedStrings",void 0);
_.p([_.U({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Mp.prototype,"hasDateText",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Mp.prototype,"wrapVideoActions",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Mp.prototype,"hideSentimentBar",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Mp.prototype,"flexMenuEnabled",null);
_.p([_.dq("#sentiment"),_.P("design:type",Object)],Mp.prototype,"sentiment",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mp.prototype,"dataChanged",null);_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],Mp.prototype,"onYtServiceRequestSent",null);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],Mp.prototype,"onYtServiceRequestCompleted",null);
_.a(Mp,"ytd-video-primary-info-renderer",function(){if(hnv===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);hnv=q}q=hnv;return q},{mode:1});var f4B;var oF=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return q};
_.Y(oF,_.C);_.g=oF.prototype;_.g.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"}}}};
_.g.dataChanged=function(){var q;this.descriptionToggled=!((q=this.data)==null||!q.defaultExpanded);var N;this.collapsed=this.descriptionAlwaysCollapsed||!((N=this.data)==null?0:N.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.bx(110509);this.showLessClientVe=_.bx(110510);q=_.Oe();N=_.QY();q&&N&&_.Cr(q,N,[this.showMoreClientVe,this.showLessClientVe])};
_.g.onYtExpanderMoreTapped=function(){var q,N=(q=this.data)==null?void 0:q.showMoreCommand;N&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(N);(q=_.Oe())&&this.showMoreClientVe&&_.nr(q,this.showMoreClientVe)};
_.g.onYtExpanderLessTapped=function(){var q=_.Oe();q&&this.showLessClientVe&&_.nr(q,this.showLessClientVe);var N;(q=(N=this.data)==null?void 0:N.showLessCommand)&&this.componentBehavior.resolveCommand(q)};
_.g.handleUpdateDateTextAction=function(q){this.data&&this.data.dateText&&this.set("data.dateText",_.v(q,_.qav).dateText)};
_.g.handleUpdateDescriptionAction=function(q){if(q=_.v(q,_.ntE))q.isEmpty||!q.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.v$(q.description)):this.set("data.description",q.description)};
_.g.onYtChangeEngagementPanelVisibilityAction=function(q){if(_.x("web_structured_description_show_more")||_.x("web_engagement_panel_open_description")){var N,b=(N=_.v(q,_.sNR))==null?void 0:N.targetId,y;q=((y=_.v(q,_.sNR))==null?void 0:y.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";b==="engagement-panel-structured-description"&&q&&(this.descriptionToggled=!0)}};
_.g.updateCollapsedFromBinding=function(q){this.collapsed=q.detail.value};
_.g.updateDescriptionToggledFromBinding=function(q){this.descriptionToggled=q.detail.value};
_.g.updateCanCollapseFromBinding=function(q){this.canCollapse=q.detail.value};
_.$H.Object.defineProperties(oF.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var q,N,b=(q=this.data)==null?void 0:(N=q.metadataRowContainer)==null?void 0:N.metadataRowContainerRenderer;return!!b&&!!b.rows&&b.rows.length>b.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.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}}});
oF.prototype.onYtExpanderLessTapped=oF.prototype.onYtExpanderLessTapped;oF.prototype.onYtExpanderMoreTapped=oF.prototype.onYtExpanderMoreTapped;oF.prototype.dataChanged=oF.prototype.dataChanged;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],oF.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],oF.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],oF.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],oF.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],oF.prototype,"collapsed",void 0);_.p([_.U(),_.P("design:type",Boolean)],oF.prototype,"descriptionToggled",void 0);
_.p([_.U(),_.P("design:type",Boolean)],oF.prototype,"canCollapse",void 0);_.p([_.U(),_.P("design:type",Object)],oF.prototype,"subscribeButtonData",void 0);_.p([_.U(),_.P("design:type",Number)],oF.prototype,"descriptionCollapsedHeight",void 0);_.p([_.U(),_.P("design:type",Object)],oF.prototype,"structuredDescriptionContentRenderer",void 0);_.p([_.U({value:function(){return _.x("web_watch_description_always_collapsed")}}),
_.P("design:type",Boolean)],oF.prototype,"descriptionAlwaysCollapsed",void 0);_.p([_.dq("#description"),_.P("design:type",HTMLDivElement)],oF.prototype,"description",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oF.prototype,"dataChanged",null);_.p([_.ZP("yt-expander-more-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oF.prototype,"onYtExpanderMoreTapped",null);
_.p([_.ZP("yt-expander-less-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oF.prototype,"onYtExpanderLessTapped",null);_.p([_.l("data.metadataRowContainer"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],oF.prototype,"metadataCollapsible",null);_.p([_.l("data","structuredDescriptionContentRenderer"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],oF.prototype,"hasInlineStructuredDescription",null);
_.p([_.l("data.attributedDescription"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],oF.prototype,"hasAttributedDescription",null);_.p([_.l("hasInlineStructuredDescription","collapsed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],oF.prototype,"loadStructuredDescription",null);_.p([_.l("data","structuredDescriptionContentRenderer","collapsed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],oF.prototype,"showInlineStructuredDescription",null);
_.p([_.l("data","hasInlineStructuredDescription","metadataCollapsible"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],oF.prototype,"descriptionAlwaysCollapsible",null);
_.a(oF,"ytd-video-secondary-info-renderer",function(){if(f4B===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);f4B=q}q=f4B;return q},{mode:2});var CIZ;var AC=function(){return _.C.apply(this,arguments)||this};
_.Y(AC,_.C);AC.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:_.x("web_modern_buttons"),forceIconButton:!_.x("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
AC.prototype.activate=function(q){q.appendTo(this.player);q.getPlayerPromise().then(function(N){N.setMinimized(!0)});
this.active=!0};
AC.prototype.deactivate=function(){var q=this.player.firstElementChild;q.getPlayerPromise().then(function(N){N.setMinimized(!1)});
this.active=!1;return q};
AC.prototype.onScrollUpTap=function(){var q=_.tz().resolve(_.L6).getCurrentPage();q&&q.setScrollTop(0)};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],AC.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],AC.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],AC.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],AC.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],AC.prototype,"active",void 0);
_.p([_.U({reflectToAttribute:!0,value:function(){return _.x("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.P("design:type",Boolean)],AC.prototype,"darkLaunch",void 0);_.p([_.dq("#player"),_.P("design:type",HTMLDivElement)],AC.prototype,"player",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],AC);
_.a(AC,"ytd-miniplayer-bar-renderer",function(){if(CIZ!==void 0)return CIZ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return CIZ=q},{mode:1});_.P$(_.n(function(q){var N=_.dI("script");_.Sx(function(){var b;if(b=JSON)b=XPB(q.data()),b=_.g0(JSON.stringify(b).replace(/</g,"\\u003C"));var y=q.data(),J=_.ao(y.title).trim().length===0,E=!y.publishDate||y.publishDate.trim().length===0,F,R,c,z,m=!((F=y.thumbnail)==null?0:(R=F.thumbnails)==null?0:R.length)||!((c=y.thumbnail)==null?0:c.thumbnails[0].url)||((z=y.thumbnail)==null?void 0:z.thumbnails[0].url.trim().length)===0;N.value&&b&&!(J||E||m)&&_.Fw(N.value,b)},"Vy9K7b");
return _.u("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.u("script",{el:N,type:"application/ld+json"}))},"Do"),"player-microformat-renderer",{props:{data:_.W$}});
}catch(e){_._DumpException(e)}
try{
var ODX,wTX,lCv;_.Qo_=function(q){return q.watch.watchWindowSize};
ODX=function(q,N){var b=document.querySelector(q);b?N(b):setTimeout(function(){ODX(q,N)},1E3)};
wTX=function(q,N,b,y){if(q.isLockupToWatchTransitionEnabled){if(N){var J={};J=(J["watch-next-appears"]="player-watch-next-loaded",J);J["lockup-to-watch"]=q.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";q.viewTransitionCoordinator.registerElement(N,J)}b&&(N={},q.viewTransitionCoordinator.registerElement(b,(N["lockup-to-watch"]="below-lockup-to-watch",N["watch-next-appears"]="below-watch-next-loaded",N)));y&&(b={},q.viewTransitionCoordinator.registerElement(y,
(b["watch-next-appears"]="secondary-watch-next-loaded",b)))}};
_.iD7=function(q){return _.B3({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:q}})};
lCv=new _.yT("webWatchNextResponseExtensionData");var DRZ=function(q){_.UN.call(this);var N=this;this.JSC$23558_watchApi=q;this.observer=null;var b=this.JSC$23558_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){K5v(N)});
this.addOnDisposeCallback(function(){N.JSC$23558_watchApi.unsubscribeByKey(b);N.observer&&(N.observer.disconnect(),N.observer=null)});
K5v(this)};
_.Y(DRZ,_.UN);
var K5v=function(q){var N,b,y,J,E;_.d(function(F){if(F.nextAddress==1){q.observer&&(q.observer.disconnect(),q.observer=null);N=q.JSC$23558_watchApi.getWatchNextResponse();if(!N)return F.return();b=_.v(N,lCv);return((y=b)==null?0:y.enableCreatorChatbot)&&b.creatorChannelId?_.x("enable_creator_chatbot_link_out")?F.yield((0,_.y3A)("NSzT5"),6):F.yield((0,_.y3A)("NSzT5"),5):F.jumpTo(0)}if(F.nextAddress!=6)return J=_.hSl,J(b.creatorChannelId),ODX("ytd-watch-metadata",function(R){q.observer=new MutationObserver(function(){var c,
z;(c=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||(z=c.closest("yt-button-view-model.ytd-menu-renderer"))==null||z.remove()});
q.observer.observe(R,{childList:!0,subtree:!0})}),F.jumpTo(0);
E=_.kCX;E(b.creatorChannelId);_.hj(F)})};var IF=function(q){_.UN.call(this);this.JSC$23562_watchApi=q;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;URZ(this)};
_.Y(IF,_.UN);var URZ=function(q){_.d(function(N){if(N.nextAddress==1)return N.yield(fCh(q),2);Cgc(q);_.hj(N)})},fCh=function(q){var N,b,y,J,E,F,R,c,z;
return _.d(function(m){if(m.nextAddress==1)return m.yield(q.JSC$23562_watchApi.playerApi,2);N=m.yieldResult;q.JSC$23562_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){ICy(q)});
q.JSC$23562_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){q.isShelfVisible?T3y(q):Tg(q)});
b=_.WT().subscribe(function(){q.isTheaterMode=_.Q0(_.WT().getState());q.isTheaterMode?Tg(q):soe(q)});
y=q.JSC$23562_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Cgc(q)});
J=function(r){q.onCueRangeEnter(r)};
N.addEventListener("onCueRangeEnter",J);E=function(r){q.onCueRangeExit(r)};
N.addEventListener("onCueRangeExit",E);F=function(){q.isSeeking=!0};
N.addEventListener("SEEK_TO",F);R=function(){q.onSeekComplete()};
N.addEventListener("SEEK_COMPLETE",R);c=function(){q.onAdStart()};
N.addEventListener("onAdStart",c);z=function(){q.onAdComplete()};
N.addEventListener("onAdComplete",z);q.addOnDisposeCallback(function(){b();q.JSC$23562_watchApi.unsubscribeByKey(y);N.removeEventListener("onCueRangeEnter",J);N.removeEventListener("onCueRangeExit",E);N.removeEventListener("SEEK_TO",F);N.removeEventListener("SEEK_COMPLETE",R);N.removeEventListener("onAdStart",c);N.removeEventListener("onAdComplete",z)});
_.hj(m)})},nRc=function(q){var N,b,y,J,E,F,R,c,z;
return(E=(N=q.contents)==null?void 0:(b=N.twoColumnWatchNextResults)==null?void 0:(y=b.results)==null?void 0:(J=y.results)==null?void 0:J.contents)==null?void 0:(F=E.find(function(m){var r,X,V;return(r=m.itemSectionRenderer)==null?void 0:(X=r.contents)==null?void 0:(V=X[0])==null?void 0:V.shoppingTimelyShelfViewModel}))==null?void 0:(R=F.itemSectionRenderer)==null?void 0:(c=R.contents)==null?void 0:(z=c[0])==null?void 0:z.shoppingTimelyShelfViewModel},Cgc=function(q){var N;
_.d(function(b){if(b.nextAddress==1)return(N=q.JSC$23562_watchApi.getWatchNextResponse())?b.yield(ICy(q),2):b.return();q.shoppingTimelyShelfViewModel=nRc(N);aCe(q);SRc(q);_.hj(b)})},aCe=function(q){var N,b=(N=q.shoppingTimelyShelfViewModel)==null?void 0:N.offerIdToVariants;
b&&(N=b.filter(function(y){return y.key&&y.value}).map(function(y){return[y.key,
y.value]}),q.variantsMap=new Map(N))},SRc=function(q){var N,b,y,J,E,F;
_.d(function(R){if(R.nextAddress==1)return(b=(N=q.shoppingTimelyShelfViewModel)==null?void 0:N.cueRanges)?R.yield(q.JSC$23562_watchApi.playerApi,2):R.return();y=R.yieldResult;q.cueRanges=b;J=_.Z(b);for(E=J.next();!E.done;E=J.next())F=E.value,F.startTime!==void 0&&F.endTime!==void 0&&F.id!==void 0&&y.addCueRange("shopping_timely_shelf"+F.id,W5l(F.startTime),W5l(F.endTime));_.hj(R)})},W5l=function(q){return Number(q.seconds||0)+(q.nanos||0)/1E9};
IF.prototype.onCueRangeEnter=function(q){if(q.startsWith("shopping_timely_shelf")&&(this.activeCueId=q,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){q=q.substring(21);var N,b,y=(N=this.variantsMap)==null?void 0:(b=N.get(q))==null?void 0:b.shelf;y&&(this.JSC$23562_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",y),T3y(this))}};
IF.prototype.onCueRangeExit=function(q){q.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||Tg(this))};
IF.prototype.onSeekComplete=function(){this.isSeeking=!1;soe(this)};
var T3y=function(q){q.shoppingTimelyShelfViewModel&&(q.isShelfVisible=!0,_.JD.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},Tg=function(q){q.shoppingTimelyShelfViewModel&&(q.isShelfVisible=!1,_.JD.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},ICy=function(q){var N,b,y,J,E;
return _.d(function(F){if(F.nextAddress==1)return F.yield(q.JSC$23562_watchApi.playerApi,2);N=F.yieldResult;if(q.cueRanges)for(b=_.Z(q.cueRanges),y=b.next();!y.done;y=b.next())J=y.value,J.id&&(E="shopping_timely_shelf"+J.id,N.removeCueRange(E));q.JSC$23562_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});Tg(q);q.shoppingTimelyShelfViewModel=void 0;q.cueRanges=void 0;q.variantsMap=void 0;q.isSeeking=!1;q.activeCueId=void 0;_.hj(F)})};
IF.prototype.onAdStart=function(){this.isAdPlaying=!0;Tg(this)};
IF.prototype.onAdComplete=function(){this.isAdPlaying=!1;soe(this)};
var soe=function(q){if(q.activeCueId)q.onCueRangeEnter(q.activeCueId);else Tg(q)};var oRc=function(q){_.UN.call(this);var N=this;this.JSC$23569_watchApi=q;q=_.aM(_.WT(),_.J1A,function(){L57(N)});
this.addOnDisposeCallback(q);q=_.aM(_.WT(),_.Qo_,function(){L57(N)});
this.addOnDisposeCallback(q);pTy(this);PgX(this);MNB()};
_.Y(oRc,_.UN);var pTy=function(q){var N=function(y){_.WT().dispatch(_.VA7(y.matches))},b=window.matchMedia("(max-width: "+(999+_.ph())+"px)");
b.addListener(N);q.addOnDisposeCallback(function(){b.removeListener(N)});
N(b)},PgX=function(q){q.JSC$23569_watchApi.registerActionHandler("yt-window-resized",function(){MNB()});
q.addOnDisposeCallback(function(){q.JSC$23569_watchApi.unregisterActionHandler("yt-window-resized")})},MNB=function(){var q=_.cP();
_.WT().dispatch(_.B3({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:q.width,height:q.height}}}))},L57=function(q){var N;
_.d(function(b){if(b.nextAddress==1)return b.yield(q.JSC$23569_watchApi.playerApi,2);N=b.yieldResult;N.setSize(NaN,NaN);_.hj(b)})};var Ais=function(q){_.UN.call(this);var N=_.tz().resolve(_.p8);wTX(N,q.getElement("PLAYER_CONTAINER"),q.getElement("BELOW_THE_PLAYER"),q.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var b=q.getElement("PLAYER_CONTAINER"),y=q.getElement("BELOW_THE_PLAYER"),J=q.getElement("SECONDARY");N.isLockupToWatchTransitionEnabled&&(b&&_.lx(N.viewTransitionCoordinator,b),y&&_.lx(N.viewTransitionCoordinator,y),J&&_.lx(N.viewTransitionCoordinator,J))})};
_.Y(Ais,_.UN);_.sB=function(q){_.FG.call(this);var N=this;this.rootElement=q;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return N.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(b){N.initOrDisposeActiveModules(b)}));
this.onAttached()};
_.Y(_.sB,_.FG);_.g=_.sB.prototype;_.g.getRoot=function(){return this.rootElement};
_.g.getElement=function(q){return this.rootElement.getElement(q)};
_.g.setPlayerResponse=function(q){this.playerResponse=q;this.publish("PLAYER_RESPONSE_UPDATED",q)};
_.g.getPlayerResponse=function(){return this.playerResponse};
_.g.setWatchNextResponse=function(q){this.watchNextResponse===q?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=q,this.publish("WATCH_NEXT_RESPONSE_UPDATED",q))};
_.g.getWatchNextResponse=function(){return this.watchNextResponse};
_.g.registerActionHandler=function(q,N){var b=this;if(_.x("web_watch_controller_reg_multiple_handlers_killswitch")){var y={};_.EX(_.JD.getInstance(),(y[q]=N,y),this.getRoot())}else this.actionHandlers.has(q)||(this.actionHandlers.set(q,[]),y={},_.EX(_.JD.getInstance(),(y[q]=function(){var J=_.MB.apply(0,arguments);return(b.actionHandlers.get(q)||[]).map(function(E){return E.apply(null,_.a9(J))})},y),this.getRoot())),this.actionHandlers.get(q).push(N)};
_.g.unregisterActionHandler=function(q){if(_.x("web_watch_controller_reg_multiple_handlers_killswitch")){var N={};_.gI(_.JD.getInstance(),(N[q]=!0,N),this.getRoot())}else(N=this.actionHandlers.get(q))?(N.pop(),N.length===0&&(N={},_.gI(_.JD.getInstance(),(N[q]=!0,N),this.getRoot()),this.actionHandlers.delete(q))):_.M6(new _.IO("Attempted to unregister an action handler which is not registered.",q))};
_.g.addPageDisposeJob=function(q){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.KdD(this.rootElement.pageDisposeJobs,q)};
_.g.removePageDisposeJob=function(q){this.rootElement.pageDisposeJobs&&_.WA(this.rootElement.pageDisposeJobs,q)};
_.g.dispatchEvent=function(q,N){_.e2(this.rootElement,q,N)};
_.g.provideRenderingData=function(q,N){this.rootElement.provideRenderingData(q,N)};
_.g.scrollWatchTo=function(q,N){var b;(b=this.watchScrollManager)==null||b.scrollWatchTo(q,N)};
_.g.focusOnPlayer=function(){var q=this.getElement("PLAYER");_.ut(q,function(){if(q&&q.firstElementChild){var N=q.querySelector(".html5-video-player");N&&(_.r2(_.tz().resolve(_.$P)),N.focus())}else _.M6(Error("ep"))})};
_.g.subscribeToActiveChanged=function(q,N){N=N===void 0?!0:N;var b=_.aM(_.WT(),_.zls,function(y){q(y)});
N&&q(_.zls(_.WT().getState()));return b};
_.g.isActive=function(){return _.zls(_.WT().getState())};
_.g.onAttached=function(){var q=_.x("external_fullscreen");_.x("use_unified_flag_accessor")&&(q=_.tz().resolve(_.nZA).retriever.getFlag(_.iYR));(q||_.ou("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var eSe=function(q){return q.getRoot().is==="ytd-watch-flexy"||q.getRoot().is==="ytd-watch-grid"},nl=function(q){return q.getRoot().is==="ytd-watch-fixie"};
_.sB.prototype.initPersistentModules=function(){if(nl(this)||eSe(this)&&_.x("kevlar_watch_flexy_theater_manager")){var q=new _.A8v(this);_.YN(this,q)}q=new _.Iie(this);_.YN(this,q);q=new _.Kl(this);_.YN(this,q);q=new _.h27(this);_.YN(this,q);q=new _.fl(this);_.YN(this,q);q=new _.De(this);_.YN(this,q);if(nl(this)||eSe(this)&&_.x("kevlar_watch_flexy_playlist_manager"))q=new _.mRs(this),_.YN(this,q);_.x("web_thumbnail_to_watch_transition")&&(q=new Ais(this),_.YN(this,q))};
_.sB.prototype.initOrDisposeActiveModules=function(q){q?(this.watchScrollManager=new _.Cl(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Hre(this)),_.x("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new IF(this)),this.activeModules.push(new _.oHZ(this)),nl(this)&&this.activeModules.push(new oRc(this)),this.activeModules.push(new _.vRh(this)),this.activeModules.push(new _.p3_(this)),(nl(this)||_.x("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.qeB(this)),this.activeModules.push(new _.ER7(this)),(nl(this)||_.x("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.YRh(this)),(nl(this)||_.x("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.cee(this)),_.x("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.mcs(this),this.activeModules.push(this.watchCinematicManager)),_.x("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.RSx(this)),_.x("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.UcB(this)),q=_.x("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.x("kevlar_watch_flexy_comments_manager")&&!q&&this.activeModules.push(new _.w3B(this)),_.x("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.$Ps(this)),this.activeModules.push(new _.yeB(this)),this.activeModules.push(new _.N3x(this)),_.x("web_enable_timely_actions")&&this.activeModules.push(new _.Zr7(this)),_.x("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.lZB(this)),_.x("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.j$X(this)),_.x("web_fullscreen_components")&&this.activeModules.push(new _.EU7(this)),_.x("web_player_rtr_ctrls")&&this.activeModules.push(new _.DPl(this)),(_.x("enable_creator_chatbot")||_.x("enable_creator_chatbot_link_out"))&&this.activeModules.push(new DRZ(this))):(_.dE(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.sB.prototype.disposeInternal=function(){_.FG.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.$H.Object.defineProperties(_.sB.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var Fty,y4,RXs,dn7,uw_,zXy,cjX,$ne;Fty=function(){var q=_.zr();q.info||(q.info={});return q.info};
y4=function(q){return Math.round(_.rg()+q)};
RXs=function(){var q;if(_.x("csi_use_performance_navigation_timing")){var N,b,y,J=_.mO==null?void 0:(q=_.mO.getEntriesByType)==null?void 0:(N=q.call(_.mO,"navigation"))==null?void 0:(b=N[0])==null?void 0:(y=b.toJSON)==null?void 0:y.call(b);J?(J.requestStart=y4(J.requestStart),J.responseEnd=y4(J.responseEnd),J.redirectStart=y4(J.redirectStart),J.redirectEnd=y4(J.redirectEnd),J.domainLookupEnd=y4(J.domainLookupEnd),J.connectStart=y4(J.connectStart),J.connectEnd=y4(J.connectEnd),J.responseStart=y4(J.responseStart),
J.secureConnectionStart=y4(J.secureConnectionStart),J.domainLookupStart=y4(J.domainLookupStart),J.isPerformanceNavigationTiming=!0,q=J):q=_.mO.timing}else q=_.x("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.mO.timing)):_.mO.timing;return q};
dn7=function(){if(_.mO.getEntriesByType){var q=_.mO.getEntriesByType("paint");if(q=_.fC(q,function(b){return b.name==="first-paint"}))return y4(q.startTime)}var N;
_.x("csi_use_performance_navigation_timing")?N=_.mO.getEntriesByType("first-paint")[0].startTime:N=_.mO.timing.msFirstPaint;return N?Math.max(0,N):0};
uw_=function(){var q=window.location.protocol,N=_.mO.getEntriesByType("resource");N=_.ea(N,function(b){return b.name.indexOf(q+"//fonts.gstatic.com/s/")===0});
(N=cjX(N,function(b,y){return y.duration>b.duration?y:b}))&&N.startTime>0&&N.responseEnd>0&&(_.XE("wffs",y4(N.startTime)),_.XE("wffe",y4(N.responseEnd)))};
zXy=function(q,N){q=document.querySelector(q);if(!q)return!1;var b="",y=q.nodeName;y==="SCRIPT"?(b=q.src,b||(b=q.getAttribute("data-timing-href"))&&(b=window.location.protocol+b)):y==="LINK"&&(b=q.href);_.Jj(document)&&q.setAttribute("nonce",_.Jj(document));return b?(q=_.mO.getEntriesByName(b))&&q[0]&&(q=q[0],b=_.rg(),_.XE("rsf_"+N,b+Math.round(q.fetchStart)),_.XE("rse_"+N,b+Math.round(q.responseEnd)),q.transferSize!==void 0&&q.transferSize===0)?!0:!1:!1};
_.tFX=function(q,N){_.qg(function(){_.te("").info.actionType=q;N&&_.PC("TIMING_AFT_KEYS",N);_.PC("TIMING_ACTION",q);var b=_.fDJ(_.M7("TIMING_INFO",{}));Object.keys(b).length>0&&_.V6(b);b={isNavigation:!0,actionType:_.vzn(_.M7("TIMING_ACTION"))};var y=_.M7("PREVIOUS_ACTION");y&&(b.previousAction=_.vzn(y));if(y=_.M7("CLIENT_PROTOCOL"))b.httpProtocol=y;if(y=_.M7("CLIENT_TRANSPORT"))b.transportProtocol=y;(y=_.Oe())&&y!=="UNDEFINED_CSN"&&(b.clientScreenNonce=y);y=_.UMJ();if(y===1||y===-1)b.isVisible=!0;
y=_.$Mz().loadType==="cold";var J=Fty();y||(y=J.yt_lt==="cold");if(y){b.loadType="cold";y=Fty();J=RXs();var E=_.rg(),F=_.M7("CSI_START_TIMESTAMP_MILLIS",0);F>0&&!_.x("embeds_web_enable_csi_start_override_killswitch")&&(E=F);E&&(_.XE("srt",J.responseStart),y.prerender!==1&&_.wad(E));y=dn7();y>0&&_.XE("fpt",y);y=RXs();y.isPerformanceNavigationTiming&&_.V6({performanceNavigationTiming:!0},void 0);_.XE("nreqs",y.requestStart,void 0);_.XE("nress",y.responseStart,void 0);_.XE("nrese",y.responseEnd,void 0);
y.redirectEnd-y.redirectStart>0&&(_.XE("nrs",y.redirectStart,void 0),_.XE("nre",y.redirectEnd,void 0));y.domainLookupEnd-y.domainLookupStart>0&&(_.XE("ndnss",y.domainLookupStart,void 0),_.XE("ndnse",y.domainLookupEnd,void 0));y.connectEnd-y.connectStart>0&&(_.XE("ntcps",y.connectStart,void 0),_.XE("ntcpe",y.connectEnd,void 0));y.secureConnectionStart>=_.rg()&&y.connectEnd-y.secureConnectionStart>0&&(_.XE("nstcps",y.secureConnectionStart,void 0),_.XE("ntcpe",y.connectEnd,void 0));_.mO&&"getEntriesByType"in
_.mO&&uw_();y=[];if(document.querySelector&&_.mO&&_.mO.getEntriesByName)for(var R in $ne)$ne.hasOwnProperty(R)&&(J=$ne[R],zXy(R,J)&&y.push(J));if(y.length>0)for(b.resourceInfo=[],R=_.Z(y),y=R.next();!y.done;y=R.next())b.resourceInfo.push({resourceCache:y.value})}_.V6(b);b=_.$o();b.preLoggedGelInfos||(b.preLoggedGelInfos=[]);R=b.preLoggedGelInfos;b=_.mMZ();y=void 0;for(J=0;J<R.length;J++)if(E=R[J],E.loadType){y=E.loadType;break}if(_.$Mz().loadType==="cold"&&(b.loadType==="cold"||y==="cold")){y=_.tDu();
J=_.$o();J=J.gelTicks?J.gelTicks:J.gelTicks={};for(var c in y)if(!(c in J))if(typeof y[c]==="number")_.XE(c,_.jg(c));else if(_.x("log_repeated_ytcsi_ticks"))for(E=_.Z(y[c]),F=E.next();!F.done;F=E.next())F=F.value,_.XE(c.slice(1),F);c={};y=!1;R=_.Z(R);for(J=R.next();!J.done;J=R.next())y=J.value,_.Kx(b,y),_.Kx(c,y),y=!0;y&&_.V6(c)}_.stn(!0);c=_.M7("TIMING_ACTION");_.Ng("ytglobal.timingready_")&&c&&_.ozu()&&_.TUn()&&_.haJ()})()};
cjX=function(q,N){return Array.prototype.reduce.call(q,N,{duration:0})};
$ne={'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 mny={};mny.YtVisibilityRootBehavior=[_.vWq.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.RA(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.M7("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var q=_.M7("INNERTUBE_CLIENT_NAME")!=="WEB";_.x("kevlar_use_vimio_behavior")&&q&&_.agE()}}];_.Jp={};_.Jp.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(q){q.detail.contextProvider=this;q.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
mny.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.T4();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(q){var N=this;this.pageCount+=1;_.x("kevlar_use_vimio_behavior")&&(_.M7("INNERTUBE_CLIENT_NAME")==="WEB"?_.pY.addJob(function(){N.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(q)},
loadPage_:function(q){this.data=q},
ytPageBehaviorActiveObserver_:function(q){var N=this;_.x("kevlar_use_vimio_behavior")&&(q?_.M7("INNERTUBE_CLIENT_NAME")==="WEB"?_.pY.addJob(function(){N.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(q){if(!this.setScrollTopJobId_){var N=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){N.setScrollTopJobId_=0;var b=_.tz().resolve(_.$f(_.$P));b&&_.r2(b);this.getPageScrollingElement().scrollTop=q}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.w1(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var Z7v;var b8=function(){var q=_.C.apply(this,arguments)||this;q.playerListenerConfig=null;q.actionMap={"yt-show-watch-page-survey":"openSurvey"};return q};
_.Y(b8,_.C);_.g=b8.prototype;_.g.dataChanged=function(){var q=this,N=_.Pk();N&&N.getPlayerPromise().then(function(y){q.maybeRemovePlayerListeners(y)});
var b=this.data&&this.data.survey;b&&((b=(b=b.singleOptionSurveyRenderer||b.checkboxSurveyRenderer||b.multiStageSurveyRenderer)&&b.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(N,b):this.openSurvey())};
_.g.triggerWatchPageSurvey=function(q,N){var b=this,y,J,E,F,R,c,z,m,r;return _.d(function(X){if(X.nextAddress==1)return q?X.yield(q.getPlayerPromise(),2):X.return();b.player=X.yieldResult;if(!b.player)return X.return();y={};J=_.Z(N);for(E=J.next();!E.done;E=J.next())F=E.value,R=_.Z(b.createEventListenerPair(F)),c=R.next().value,z=R.next().value,m=c,r=z,m&&r&&(y[m]=r,b.ytPlayerListenerBehavior.listenToPlayerEvent(b.player,m,r));b.playerListenerConfig=y;_.hj(X)})};
_.g.createEventListenerPair=function(q){var N=q.playbackEventTrigger;return N?this.handlePlaybackTrigger(N):(q=q.watchTimeTrigger)?this.handleWatchTimeTrigger(q):[void 0,void 0]};
_.g.handleWatchTimeTrigger=function(q){var N=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var b=q.videoWatchFraction,y=q.watchTimeSec;return y&&b?["onVideoProgress",function(){N.player&&N.isWatchTimeConditionMet(N.player,b,y)&&N.showSurvey()}]:[void 0,
void 0]};
_.g.isWatchTimeConditionMet=function(q,N,b){var y=q.getProgressState(),J=y.current-this.lastKnownPlaybackPosition;J<5&&(this.accumulatedMediaTime+=J);this.lastKnownPlaybackPosition=y.current;y=Math.round(this.accumulatedMediaTime/y.duration*1E3)/1E3;return q.getPresentingPlayerType&&q.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>b||y>N)};
_.g.handlePlaybackTrigger=function(q){var N=this;q=q.playbackEvent;if(q==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var b="onStateChange";var y=function(J){J===0&&N.showSurvey()}}else q==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(b="onVideoProgress",y=function(J){N.player&&N.player.getPresentingPlayerType&&N.player.getPresentingPlayerType()===1&&J&&N.showSurvey()}):q==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(b="onAdEnd",y=this.showSurvey);
return[b,y]};
_.g.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.g.openSurvey=function(){var q=this,N=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.zQK(!!N));_.pY.addJob(function(){q.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:N}})},0,0)};
_.g.maybeRemovePlayerListeners=function(q){if(this.playerListenerConfig){for(var N=_.Z(Object.keys(this.playerListenerConfig)),b=N.next();!b.done;b=N.next())b=b.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(q,b,this.playerListenerConfig[b]);this.playerListenerConfig=null}};
b8.prototype.dataChanged=b8.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.r7),_.P("design:type",Object)],b8.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.O(_.d2.YtPlayerListenerBehavior),_.P("design:type",_.cX)],b8.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],b8.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.O(_.H6),_.P("design:type",Object)],b8.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],b8.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],b8.prototype,"playerListenerConfig",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],b8.prototype,"lastKnownPlaybackPosition",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],b8.prototype,"accumulatedMediaTime",void 0);_.p([_.U(),_.P("design:type",Object)],b8.prototype,"player",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],b8.prototype,"dataChanged",null);_.p([_.I({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],b8);
_.a(b8,"ytd-survey-trigger-renderer",function(){if(Z7v!==void 0)return Z7v;var q=document.createElement("template");_.Q(q,"\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");q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Z7v=q},{mode:1});
}catch(e){_._DumpException(e)}
try{
var o9C;_.tQ=function(q){var N=document.createElement("link");_.u$(N,q,"stylesheet");document.head.appendChild(N)};
_.mh=function(q,N){var b,y;return _.d(function(J){b=document.createElement("div");b.id=q.id;q.className&&(b.className=q.className);y=q.element;if(!y)throw Error("gk");if(q.location==="prepend")y.prepend(b);else if(q.location==="appendChild")y.appendChild(b);else if(q.location==="after")y.after(b);else throw Error("hk");return J.return(_.au(b,N,"jj"))})};
_.rN=function(q){var N;return _.d(function(b){(N=document.getElementById(q))&&N.remove();_.hj(b)})};
_.XG=function(q,N){var b=document.querySelector(q);b?N(b):setTimeout(function(){_.XG(q,N)},1E3)};
_.AmU=function(q,N,b){var y;_.d(function(J){if(J.nextAddress==1)return(y=document.getElementById(q))?J.jumpTo(2):J.yield(o9C(q,N,b),2);if(y=document.getElementById(q))y.style.display="block";_.hj(J)})};
o9C=function(q,N,b){return _.d(function(y){return y.return(new Promise(function(J){_.XG("div #panels",function(E){_.mh({element:E,location:"appendChild",id:q,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+b},N);J()})}))})};_.VV=_.n(function(q){var N=q.text;var b=q.onClick;var y=q.color;var J=q.backgroundColor;var E=q.buttonSize;var F=q.disabled;var R=q.iconName;var c=q.iconSize;var z=q.className;var m=q.iconClassName;q=q.ariaLabel;var r=_.y0(function(V){b(V)}),X={};
return _.u("button",{class:_.NO("ytpStandardButtonsHost",(X.ytpStandardButtonsLarge=function(){return(E==null?void 0:E())==="large"},X),z),
"on:click":r,style:_.ZU({color:y,"background-color":J}),disabled:F,"aria-label":q},_.u(_.t,{cond:R,then:function(){return _.u(_.FQ,{className:_.NO("ytpStandardButtonsIconContainer",m),icon:R,size:c})}}),N)},"ij");_.eQC=_.n(function(q){var N,b,y={};return _.u("div",{class:_.NO("ytprototypesEngagementPanelComponentHost",(y.ytprototypesEngagementPanelComponentHostMweb=q.isMweb,y),q.className),id:q.id},_.u("div",{class:_.NO("ytprototypesEngagementPanelComponentEngagementPanelHeader",q.headerClassName)},_.u("div",null,q.header()),_.u("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.u("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(N=q.HeaderButton)==null?void 0:N.call(q)),
_.u(_.VV,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var J;(J=q.onHide)==null||J.call(q);var E;if((E=q.preventDefault)==null||!E.call(q))if(J=q.id(),J=document.getElementById(J))J.style.display="none"}}))),_.u("div",{class:_.NO("ytprototypesEngagementPanelComponentEngagementPanelContent",q.contentClassName),
style:function(){var J,E;return"height: "+(((J=q.height)==null?0:J.call(q))||((E=q.isMweb)==null?0:E.call(q))?"100%":"800px")+";"}},q.content()),_.u("div",null,(b=q.Footer)==null?void 0:b.call(q)))},"kj");
}catch(e){_._DumpException(e)}
try{
var ABe=new _.yT("replaceFeedContentAction");var e_h;var Bsc;var Hcc=function(){return _.C.apply(this,arguments)||this};
_.Y(Hcc,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Hcc.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Hcc.prototype,"data",void 0);_.p([_.I({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],Hcc);
_.a(Hcc,"ytd-sub-feed-option-renderer",function(){if(Bsc!==void 0)return Bsc;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Bsc=q},{mode:1});var q5l;var o_=function(){return _.C.apply(this,arguments)||this};
_.Y(o_,_.C);o_.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],o_.prototype,"ytRendererStamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],o_.prototype,"data",void 0);_.p([_.I({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],o_);
_.a(o_,"ytd-sub-feed-selector-renderer",function(){if(q5l!==void 0)return q5l;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return q5l=q},{mode:1});var AH=function(){return _.C.apply(this,arguments)||this};
_.Y(AH,_.C);
AH.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}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],AH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],AH.prototype,"data",void 0);_.p([_.I({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],AH);
_.a(AH,"ytd-browse-feed-actions-renderer",function(){if(e_h!==void 0)return e_h;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return e_h=q},{mode:1});var N07;var b7B;var eZ=function(){return _.C.apply(this,arguments)||this};
_.Y(eZ,_.C);eZ.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],eZ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],eZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],eZ.prototype,"data",void 0);_.p([_.I({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],eZ);
_.a(eZ,"ytd-mini-channel-renderer",function(){if(b7B!==void 0)return b7B;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return b7B=q},{mode:1});var yje;var BN=function(){return _.C.apply(this,arguments)||this};
_.Y(BN,_.C);BN.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],BN.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],BN.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],BN.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],BN);
_.a(BN,"ytd-vertical-channel-section-renderer",function(){if(yje!==void 0)return yje;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return yje=q},{mode:1});var HN=function(){return _.C.apply(this,arguments)||this};
_.Y(HN,_.C);HN.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],HN.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],HN.prototype,"data",void 0);_.p([_.I({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],HN);
_.a(HN,"ytd-browse-secondary-contents-renderer",function(){if(N07!==void 0)return N07;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
return N07=q},{mode:1});var JjB;var qs=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};q.notActive=!1;q.isConstrainedList=!1;q.marginSettings=0;return q};
_.Y(qs,_.C);_.g=qs.prototype;
_.g.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(q){var N;return(q==null?void 0:(N=q.webComponentHint)==null?void 0:N.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}}}}};
_.g.getPath=function(q,N){var b="data.tabs.#"+N+".";q.tabs[N].tabRenderer?b+="tabRenderer.":q.tabs[N].expandableTabRenderer&&(b+="expandableTabRenderer.");return b+"content.sectionListRenderer"};
_.g.computeDisplayedContent=function(q){this.unlinkPaths("content");if(q&&q.tabs)for(var N=q.tabs.length,b=0;b<N;b++){var y=q.tabs[b].tabRenderer||q.tabs[b].expandableTabRenderer;if(y.selected&&y.content)return this.linkPaths("content",this.getPath(q,b)),y.content}return null};
_.g.computeHasSecondaryColumnData=function(q){return!!q&&!!q.secondaryContents};
_.g.onRetrieveLocation=function(q,N){N.locationRetrieved(N.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);q.stopPropagation()};
_.g.onYtServiceRequestSent=function(q,N){_.x("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(N)};
_.g.onYtServiceRequestCompleted=function(q,N){_.x("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(N)};
_.g.onReplaceFeedContentAction=function(q){if(!_.x("replace_feed_content_action_killswitch")&&!this.notActive){var N;(q=(N=_.v(q,ABe))==null?void 0:N.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(q)}};
_.g.handleServiceRequestActions=function(q){if(q=q.actions){q=_.Z(q);for(var N=q.next();!N.done;N=q.next()){N=N.value;var b=void 0;((b=_.v(N,ABe))==null?0:b.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.v(N,ABe).items)}}};
qs.prototype.onYtServiceRequestCompleted=qs.prototype.onYtServiceRequestCompleted;qs.prototype.onYtServiceRequestSent=qs.prototype.onYtServiceRequestSent;qs.prototype.onRetrieveLocation=qs.prototype.onRetrieveLocation;_.p([_.O(_.y1),_.P("design:type",Object)],qs.prototype,"ytdGridStateAwareBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],qs.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],qs.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],qs.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],qs.prototype,"data",void 0);_.p([_.U({computed:"computeDisplayedContent(data)"}),_.P("design:type",Object)],qs.prototype,"content",void 0);
_.p([_.U({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],qs.prototype,"hasSecondaryColumnData",void 0);_.p([_.U({value:function(){return window.outerHeight>1024?3:2}}),
_.P("design:type",Number)],qs.prototype,"initialCount",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],qs.prototype,"pageSubtype",void 0);_.p([_.dq("ytd-section-list-renderer"),_.P("design:type",Object)],qs.prototype,"listRenderer",void 0);_.p([_.U(),_.P("design:type",Object)],qs.prototype,"notActive",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],qs.prototype,"isConstrainedList",void 0);
_.p([_.U(),_.P("design:type",String)],qs.prototype,"responsiveSizing",void 0);_.p([_.U(),_.P("design:type",Number)],qs.prototype,"marginSettings",void 0);_.p([_.ZP("yt-retrieve-location"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],qs.prototype,"onRetrieveLocation",null);
_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],qs.prototype,"onYtServiceRequestSent",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],qs.prototype,"onYtServiceRequestCompleted",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],qs);
_.a(qs,"ytd-two-column-browse-results-renderer",function(){if(JjB!==void 0)return JjB;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return JjB=q},{mode:2});
}catch(e){_._DumpException(e)}
try{
var I47=function(q){if((q==null?void 0:q.value)===void 0||q==null||!q.unit)return"initial";a:{switch(q.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var N="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":N="%";break a}N=void 0}return N?""+q.value+N:"initial"};_.P$(_.n(function(q){var N=q.data;q=_.Z(_.QS(!1,void 0,"VotqNe"));var b=q.next().value,y=q.next().value;_.WC(function(){_.JD.getInstance().triggerAction("yt-request-timely-shelf-state")});
var J=_.K3(function(){var z,m,r=(z=_.v(N().rendererContext,_.Ri))==null?void 0:(m=z.loggingDirectives)==null?void 0:m.trackingParams;if(r)return _.zT(r)},void 0,"AvMXxb");
_.EX(_.JD.getInstance(),{"yt-hide-shopping-timely-shelf":function(){y(!1);var z=_.Oe(),m=J();z&&m&&_.sY(z,[m])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){y(!0);var z=_.Oe(),m=J();z&&m&&_.Tr(z,[m])})}});
var E=function(){var z;return(z=N().image)==null?void 0:z.image},F=function(){var z,m;
return!!((z=E())==null?0:(m=z.sources)==null?0:m.some(function(r){var X;return!!(r==null?0:(X=r.clientResource)==null?0:X.imageName)}))},R=function(){var z;
return((z=N().image)==null?void 0:z.height)||40},c=function(){var z;
return(z=N().image)==null?void 0:z.backgroundColor};
q={};return _.u("yt-shopping-timely-shelf-content-view-model",{el:_.ai(_.QR(function(){return N().rendererContext})),
class:_.NO("ytShoppingTimelyShelfContentViewModelHost",(q.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(N().image||N().avatar||N().line1)&&b()},q)),
style:_.ZU({"--shopping-timely-shelf-content-padding-top":function(){var z;return I47((z=N().padding)==null?void 0:z.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var z;return I47((z=N().padding)==null?void 0:z.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var z;return I47((z=N().padding)==null?void 0:z.start)},
"--shopping-timely-shelf-content-padding-end":function(){var z;return I47((z=N().padding)==null?void 0:z.end)},
"--yt-shopping-timely-shelf-background-color":function(){return N().backgroundColor!==void 0?_.Y8(N().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var z,m;return((m=(z=N().image)==null?void 0:z.cornerRadius)!=null?m:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return c()!==void 0?_.Y8(c()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var z;return(((z=N().image)==null?void 0:z.width)||40)+"px"}})},_.u(_.t,{cond:E,
then:function(z){var m={};return _.u(_.s_,{preserveHeight:!0,preserveWidth:!0,height:R,data:z,alt:"",className:_.NO("ytShoppingTimelyShelfContentViewModelImage",(m.ytShoppingTimelyShelfContentViewModelIcon=F,m))})}}),_.u(_.zS,{data:function(){return N().avatar}},{avatarViewModel:_.HF}),_.u("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.u(_.zS,{data:function(){return N().line1}},{shoppingContentLineViewModel:function(z){return _.u(_.m2,{data:z.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.u(_.zS,{data:function(){return N().line2}},{shoppingContentLineViewModel:function(z){return _.u(_.m2,{data:z.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.u("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.u(_.zS,{data:function(){var z;
return(z=N().button)!=null?z:[]}},{buttonViewModel:function(z){var m=z.data;
return _.u(_.Ou,{data:m,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(r){m().onTap&&r.stopPropagation()}})}})))},"Eo"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.F5}});_.T5e={};
_.T5e.YtdWatchBehavior=[_.e.YtRendererBehavior,_.d2.YtPlayerListenerBehavior,_.rT.YtRendererstamperBehavior,_.Dc.YtActionHandlerBehavior,_.Jp.YtPageBehavior,_.KV.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 _.ou("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.x("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 _.ou("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 _.x("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.x("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 _.VX("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.VX("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 _.x("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.x("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("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 _.x("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.x("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.x("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.x("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("swatcheroo_enable_ghost_cards")||_.x("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 _.x("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 _.x("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("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 _.x("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 _.x("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(q,N,b){return q&&(N||!b)},
computeShowGhostRelated_:function(q,N,b){return q&&(N||!b)},
monitorScroll:!0,configureRendererStamper:function(){var q={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:_.I8(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.I8(["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"||_.x("swa_prov_panels_ks")?q.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(q.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},q.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return q},
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 q=this;this.watchController=void 0;this.pageDisposeJobs=[function(){q.showMetadataPlaceholder_()},
function(){_.x("web_watch_dont_clear_comments")||q.clearComments_()},
function(){q.clearPlayerAds_()},
function(){q.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;_.x("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.x("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new _.GMc(function(){return _.p6(q)},this.hostElement);
this.pageDisposeJobs.push(function(){q.youThereManager_.reset()});
_.x("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){q.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.XK;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;_.x("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));_.x("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.gq(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(q){q&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:q}),q.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(q){_.x("kevlar_watch_flexy_theater_manager")&&(this.theater=q,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(q){!_.x("kevlar_watch_while_v2")&&!_.x("web_watch_pip")||q||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(q){this.active!==void 0&&(this.fullscreen=q,_.x("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(q){this.active!==void 0&&(_.e2(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.x("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.x("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(q>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(q){this.initCsi_();this.updatePageData_(q)},
updatePageData_:function(q){var N=this;if(q)if(this.data===q){this.onPageLoadWithSameData_();var b;(b=this.watchController)==null||b.setWatchNextResponse(this.data)}else this.data=q;this.playlist&&_.v3({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Q6("nw");this.loading=!1;_.Ip(_.pY,function(){N.initDclkstatus_();var y,J=((y=N.player)==null?void 0:y.getVideoData().cpn)||"";_.FlX(function(E,F){_.x9C(E,F,J)})})},
onPageLoadWithSameData_:function(){_.x("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 q=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!q);this.set("loadingData.playlistLoading",q&&q!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),q=this.watchNextSkeletonEl_.firstElementChild;q;)q.classList.remove("hidden"),q=q.nextElementSibling;if(_.x("kevlar_watch_frame0_loading_state")){var N,b,y;q=(N=this.loadingData)==null?void 0:(b=N.endpoint)==null?void 0:(y=b.watchEndpoint)==null?void 0:y.videoId;var J;q&&(J="https://i.ytimg.com/vi/"+q+"/frame0.jpg");_.ee(this.hostElement).querySelector("#player").style.backgroundImage=J?"url("+J+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var q=_.ee(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&q&&(q.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var N,b;(b=(N=this.watchMetadata).updateSentimentBarWidth)==
null||b.call(N);var y,J;(J=(y=this.watchMetadata).resize)==null||J.call(y)}_.x("kevlar_watch_frame0_loading_state")&&(_.ee(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(q){var N=_.ee(this.hostElement).querySelector(q);N?_.o$(N,!1):_.M6(new _.IO("Overscroll monitor not found for component: ",q))},
removeSplitScrollMouseTrap:function(q){var N=_.ee(this.hostElement).querySelector(q);N?_.A8(N):_.M6(new _.IO("Disposal component for  overscroll monitoring not found: ",q))},
onLoadingChanged_:function(q){q?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.x("web_thumbnail_to_watch_transition")&&!_.ZYf||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.x("web_thumbnail_to_watch_transition")&&!_.ZYf||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(q){var N=this;q?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.pY.addLowPriorityJob(function(){N.onWindowResized_(_.cP(!0))})},
updateTheaterModeState_:function(q){if(!_.x("kevlar_watch_flexy_theater_manager")){q=q||this.fullWindowMode_;if(this.theater!==void 0||q)this.theater=q;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();q&&_.rVh()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var q=this.fullBleedPlayer?_.ee(this.hostElement).querySelector("#player-full-bleed-container"):_.ee(this.hostElement).querySelector("#player-container-inner");var N=this.getPlayerContainer(),b=_.x("kevlar_watch_while_v2")||_.x("web_watch_pip");N.parentElement!==q&&(b&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.p6(this).appendTo(q,N))},
updateErrorScreenLocation:function(){var q=_.ee(this.hostElement).querySelector("#error-screen"),N=this.fullBleedPlayer?_.ee(this.hostElement).querySelector("#player-full-bleed-container"):_.ee(this.hostElement).querySelector("#player");q.parentElement!==N&&N.appendChild(q)},
deactivateMiniplayerAndResetPlayer:function(){var q=this;return _.d(function(N){if(N.nextAddress==1)return N.yield(_.tz().resolve(_.l9).deactivate(),2);q.updatePlayerLocation();_.hj(N)})},
updateCinematicsLocation:function(){var q=this.getElement("CINEMATICS");if(q){var N=this.getCinematicsLocationContainer();q.parentElement!==N&&N.appendChild(q)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.ee(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.ee(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(q,N,b){var y=document.documentElement.hasAttribute("dark"),J=!y&&this.cinematicLightTheme;return b||q&&y||N&&y||(N||q)&&J},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var q=this,N;(N=this.watchController)==null||N.setWatchNextResponse(this.data);_.x("kevlar_watch_flexy_comments_manager")||this.initComments_();_.x("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.tz().resolve(_.F2).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.x("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.pY.addLowPriorityJob(function(){_.Hy(q.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.x("web_watch_start_chat_in_theater_mode")){var b,y,J;if((b=this.data)==null?0:(y=b.contents)==null?0:(J=y.twoColumnWatchNextResults)==null?0:J.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var E,F;((E=this.data)==null?0:(F=E.contents)==null?0:F.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(q){var N;(N=this.watchController)==null||N.setPlayerResponse(this.playerData);q&&q.playabilityStatus&&(N=this.isVideoPlayable_(q.playabilityStatus,this.getPlayerOverlays_(this.data)),q=this.isLiveStreamOffline_(q.playabilityStatus),N&&!q||_.ut(this,function(){_.Q6("pbu")}));
this.setPlayerAds_();_.Hy(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(q,N){if((_.x("kevlar_watch_while_v2")||_.x("web_watch_pip"))&&this.playerData&&N)return this.playerData.videoDetails},
watchPageActiveChanged_:function(q){_.WT().dispatch(_.iD7(this.active));q?this.activate_():this.deactivate_()},
attached:function(){var q=this;this.watchController=new _.sB(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);_.x("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var N=_.p6(this);_.x("kevlar_disable_prepare_player")||
N.preparePlayer();_.x("kevlar_watch_flexy_playlist_manager")||_.tz().resolve(_.F2).setPlayer(N);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();N={"--ytd-watch-flexy-scrollbar-width":_.ph()+"px"};this.is==="ytd-watch-grid"&&(_.WT().dispatch(_.B3({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),N["--ytd-watch-flexy-sidebar-width"]=_.dmy+"px",N["--ytd-watch-grid-horizontal-page-margins"]=_.fj+"px",N["--ytd-watch-grid-columns-top-margins"]=
_.ZYx+"px",N["--ytd-watch-grid-min-player-height-medium"]="360px");!_.VX("kv_pl_mx_sz_ks")&&_.VX("kevlar_watch_max_player_width")&&(N["--ytd-watch-flexy-max-player-width-wide-screen"]=_.cSB+"px");_.VX("kevlar_watch_flexy_metadata_height")&&(N["--ytd-watch-flexy-space-below-player"]=_.ulx+"px");this.safeUpdateStyles(N);_.x("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.RT(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return q.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.ee(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var q=_.ph(),N=_.Cj+q,b=N;this.fixedPanels&&(N+=_.dmy);var y=657+q;q=1327+q;_.ee(this.hostElement).querySelector("#two-column-query").query="(min-width: "+N+"px)";_.ee(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(y+"px), (min-height: 630px) and (min-width: ")+(N+"px) and (max-width: ")+(q+"px)");_.ee(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(q+"px)");
_.ee(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+b+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var q=_.ee(this.hostElement).querySelector("#miniplayer-bar").firstChild,N=this.squeezeback&&!_.x("web_watch_squeezeback_player_size_killswitch");return q&&q.active||this.theater||_.x("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||N||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.l3(NaN,NaN):_.znc(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.znc(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.RA(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var q=this;this.onWindowResized_(_.cP());_.x("browse_skeleton_removal_on_watch_killswitch")||_.ou("IS_SHELL_LOAD")&&_.gic();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var N=_.p6(this);N.addEventListener("yt-player-updated",_.gq(this,this.onPlayerUpdated_));N.getPlayerPromise().then(function(b){q.playerApiReady_(b)});
_.x("kevlar_watch_flexy_playlist_manager")||(N=_.tz().resolve(_.F2),_.x("kevlar_watch_observe_playlist_navigations_killswitch")&&N.addEventListener("yt-navigate",_.gq(this,this.onYtNavigate_)),N.setPlaylistComponent(_.ee(this.hostElement).querySelector("#playlist")),N.addEventListener("yt-playlist-data-updated",_.gq(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.pY.addLowPriorityJob(function(){_.e2(q.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.p6(this).removeEventListener("yt-player-updated",_.gq(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.x("kevlar_watch_flexy_playlist_manager")){var q=_.tz().resolve(_.F2);_.x("kevlar_watch_observe_playlist_navigations_killswitch")&&q.removeEventListener("yt-navigate",_.gq(this,this.onYtNavigate_));
q.cancelVideoSkip();q.removeEventListener("yt-playlist-data-updated",_.gq(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.x("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.e2(this.hostElement,"yt-autonav-pause-player",!1);q=_.Py();_.x("kevlar_exit_fullscreen_leaving_watch")&&q&&_.MP(q)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(q){this.player&&this.player.updateVideoData({rvs:q.rvs})},
getPageContents:function(q){return q&&q.contents&&q.contents.twoColumnWatchNextResults&&q.contents.twoColumnWatchNextResults.results&&q.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(q){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",q)},
onRetrieveLocation_:function(q,N){N.hasComments?N.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):N.locationRetrieved("/related_ajax",void 0);q.stopPropagation()},
onSubscriptionChanged_:function(q,N){this.player&&(N?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.tFX("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.ee(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.ee(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(q){this.player=q;this.setPlayerState(q.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.x("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.x("kevlar_unified_player")||_.x("kevlar_player_new_bootstrap_adoption"))&&_.kA()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(q,N){N=N===void 0?!0:N;_.Py()&&_.x("external_fullscreen")&&_.MP(document.documentElement);this.theaterRequested_=q;N&&_.kf("wide",q?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.By(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.e2(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(q){_.op(q,typeof this.player),this.player&&_.op(q,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var q;((q=this.player)==null?0:q.isFullscreen())?this.player.toggleFullscreen():_.By(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(q,N){return this.loading?N:!!Object.keys(q).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(q){if(q){q=_.Z(q);for(var N=q.next();!N.done;N=q.next())N=N.value,N.youThereRenderer&&_.O9e(this.youThereManager_,N.youThereRenderer)}},
setPlaylistData_:function(q){return q||{}},
userEngagementConfigDataChanged_:function(q){if(q)if(q.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var N=this.youThereManager_;_.tr()<q.lowEngagementThresholdMs||_.KlB(N,!0)}else q.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.By(this.hostElement,"yt-autonav-pause-user-engagement",[q])},
isPlayerUnavailable_:function(q,N,b){return!!q&&!this.isVideoPlayable_(q,b)&&!N},
getPlayerOverlays_:function(q){return(q==null?void 0:q.playerOverlays)||null},
isVideoPlayable_:function(q,N){if(!q)return!1;var b=q.status==="OK"||q.status==="LIVE_STREAM_OFFLINE",y=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",q)||this.get("errorScreen.ypcTrailerRenderer",q);q=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",q);var J;N=N==null?void 0:(J=N.playerOverlayRenderer)==null?void 0:J.gatedActionsOverlayRenderer;return!!b||!!y||!!q||!!N},
hasWatchNextResponseErrorRenderer:function(q){var N=this.getPageContents(q),b,y,J,E,F;return!(q==null?0:(b=q.contents)==null?0:(y=b.twoColumnWatchNextResults)==null?0:y.secondaryResults)&&!!((J=N[0])==null?0:(E=J.itemSectionRenderer)==null?0:(F=E.contents[0])==null?0:F.backgroundPromoRenderer)},
isLiveStreamOffline_:function(q){return q?q.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(q,N,b){var y=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",N),J=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];J=_.x("web_no_skip_video_on_verification_checks")?(q==null?void 0:q.status)&&J.includes(q.status):q&&q.status==="AGE_CHECK_REQUIRED";var E=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",q);E==void 0&&(E=!0);!b||this.isVideoPlayable_(q,this.getPlayerOverlays_(N))||
y||J||!E||_.tz().resolve(_.F2).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.teZ()},
onPlayerFeedbackStartRequest_:function(q){_.By(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:q}])},
onPlayerFeedbackArticleRequest_:function(q){_.By(this.hostElement,"yt-help-dialog-requested",[q])},
onPlayerYpcContentRequest_:function(){var q,N,b,y,J,E,F,R,c=((q=this.data)==null?NaN:(N=q.contents)==null?NaN:(b=N.twoColumnWatchNextResults)==null?NaN:(y=b.secondaryResults)==null?NaN:(J=y.secondaryResults)==null?NaN:(E=J.offerModule)==null?NaN:(F=E.tvfilmOfferModuleRenderer)==null?NaN:(R=F.actionButtons)==null?NaN:R.length)-1;q=[".offerButton.buttonRenderer.",".actionButtons."+(c>=0?c:0)+".buttonRenderer."];N=_.Z(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(b=N.next();!b.done;b=N.next())for(b=b.value,y=_.Z(q),J=y.next();!J.done;J=y.next())if(J="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+b+J.value,J=this.get(J+"navigationEndpoint",this.data)||this.get(J+"serviceEndpoint",this.data)||this.get(J+"command",this.data)){_.yI(J,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(q){_.e2(this.hostElement,"yt-autonav-pause-player",q)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(q){q()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(q){switch(q){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(q){switch(q){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.e2(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(q)},
setPlayerState:function(q){_.WT().dispatch(_.Zdx(q))},
onPlayerSubscribe_:function(q){_.By(this.hostElement,"yt-player-subscribe",[q])},
onPlayerUnsubscribe_:function(q){_.By(this.hostElement,"yt-player-unsubscribe",[q])},
onPlayerAdYtShowToast_:function(q){_.By(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:q.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(q){if(q)return q},
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(q){return!_.x("web_watch_move_summary_to_sd")&&!!q},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.x("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var q,N,b,y;this.watchNextSecondaryResults=(q=this.data)==null?void 0:(N=q.contents)==null?void 0:(b=N.twoColumnWatchNextResults)==null?void 0:(y=b.secondaryResults)==null?void 0:y.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var q,N=(q=this.data)==null?void 0:q.engagementPanels;if(N==null?0:N.length){q=null;N=_.Z(N);for(var b=N.next();!b.done;b=N.next()){b=b.value;var y=void 0;if(((y=b.engagementPanelSectionListRenderer)==null?void 0:y.targetId)==="engagement-panel-structured-description"){q=b;break}}var J,E,F;q=(J=q)==null?void 0:(E=J.engagementPanelSectionListRenderer)==null?void 0:(F=E.content)==null?void 0:F.structuredDescriptionContentRenderer;if(q==null?0:q.items){J=
[];E=_.Z(q.items);for(F=E.next();!F.done;F=E.next()){F=F.value;if(!_.x("sd_horizontal_list_show_nav_killswitch")){var R=y=b=N=q=void 0,c=void 0,z=(q=F.horizontalCardListRenderer)==null?void 0:(N=q.header)==null?void 0:(b=N.richListHeaderRenderer)==null?void 0:(y=b.navigationButton)==null?void 0:(R=y.buttonRenderer)==null?void 0:(c=R.command)==null?void 0:c.commandExecutorCommand;z&&z.commands&&(z.commands=z.commands.filter(function(m){return!_.v(m,_.O4x)}))}(!F.expandableVideoDescriptionBodyRenderer&&
!F.videoDescriptionHeaderRenderer||_.x("web_delhi_colorful_sd"))&&J.push(F)}return{items:J}}}},
constructWarning_:function(q){return{text:_.nD(q),type:"WARNING"}},
isPlaShelfEnabled_:function(q){if((this.get("adPlacements",q)||[]).length)return!0;q=this.get("playerAds",q)||[];return!(!q.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",q[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var q=this;_.e2(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.x("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var N=this.getScrollTop()>0;this.gestures_&&(N?this.gestures_.detach():this.gestures_.attach());N!==this.showFullerscreenEdu_&&_.x("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=N,_.p6(this).getPlayerPromise().then(function(b){b.updateFullerscreenEduButtonVisibility(q.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.e2(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var q=this;this.commentsReady=!1;_.pY.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Ip(_.pY,function(){q.setComments_()},1E3)},
setComments_:function(){if(!_.x("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Q6("cmi");_.pY.cancelJob(this.setCommentsJobId_);var q=this.getPageContents(this.data);if(q&&q.length){q=_.Z(q);for(var N=q.next();!N.done;N=q.next())if(N=N.value,this.get("itemSectionRenderer.sectionIdentifier",N)==="comment-item-section"){this.comments=N.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.e2(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.x("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.x("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Q6("cmc")},
doRemoveComments_:function(){this.comments={};_.x("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.pY.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.pY.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(q,N){var b=_.v(N.endpoint,_.nx);b&&(!(N=this.get("data.currentVideoEndpoint.watchEndpoint"))||b.videoId!==N.videoId||b.playlistId&&b.playlistId!==N.playlistId||b.index!==void 0&&b.index!==N.index||typeof b.startTimeSeconds!=="number"||(q.stopPropagation(),this.setScrollTop(0),_.p6(this).getPlayerPromise().then(function(y){var J=b.startTimeSeconds;y.seekTo(J);y.wakeUpControls();J<y.getDuration()&&y.playVideo()})))},
updatePlayerStartTime_:function(){var q=_.HDy();"t"in q&&(q=_.$KB(q.t),this.player.seekTo(q,!0))},
updateTitleFromWatchNext:function(q){q=this.getPageContents(q);var N,b;(q=_.ao(q==null?void 0:(N=q[0])==null?void 0:(b=N.videoPrimaryInfoRenderer)==null?void 0:b.title))&&_.e2(this.hostElement,"yt-update-title",q)},
updateTitle_:function(q){q=this.get("videoDetails.title",q)||"";_.e2(this.hostElement,"yt-update-title",q)},
syncWithRemoteVideo_:function(q,N,b){if(this.active&&this.player){var y=this.player.getVideoData();if(y.video_id===b&&(b=y.list,_.x("polymer_enable_mdx_queue")&&b&&b.startsWith("RQ")&&(b=void 0),y.video_id!==q||b!=N)){var J;_.x("kevlar_player_watch_endpoint_navigation")?J=_.a8D(_.RnB(q,N)):J=this.buildWatchEndpoint_(q,N);_.e2(this.hostElement,"yt-navigate",{endpoint:J,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(q,N,b){return _.Mc(q,N,b)},
initDclkstatus_:function(){_.uH_()},
attachWatchPageSkeleton_:function(){var q=document.querySelector("#watch-page-skeleton");if(q){var N=q.querySelector("#primary-info"),b=q.querySelector("#secondary-info"),y=q.querySelector("#related");N&&_.ee(this.hostElement).querySelector("#info-skeleton").appendChild(N);b&&_.ee(this.hostElement).querySelector("#meta-skeleton").appendChild(b);y&&(_.ee(this.hostElement).querySelector("#related-skeleton").appendChild(y),this.watchNextSkeletonEl_=y);_.lC(q)}},
handlePlayerUpdated_:function(){_.p6(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(q,N){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof N!=="undefined"){var b=this.watchNextSkeletonEl_.children,y=q&&q.indexSplices.length?q.indexSplices[0].index:0;q=Math.min(this.watchNextShownItems.length,b.length);N||(y=0,q=b.length);if(!this.ghostCardsEnabled)for(N=y;N<q;N++)b[N].classList.add("hidden")}},
onPlayerFullscreenChange_:function(q){_.x("external_fullscreen")||_.By(this.hostElement,"yt-player-fullscreen",[q.fullscreen])},
onFullscreenChange_:function(q){this.fullscreen=q;this.gestures_&&this.gestures_.update(this.fullscreen);var N=_.p6(this);N.getPlayerPromise().then(function(b){b.setFauxFullscreen(!!_.Py())});
this.updateFullBleedElementLocations();q&&(N.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(q,N){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!N},
computeIsDonationShelfCollapsed_:function(q){return q},
computeShouldShowMerchShelf:function(q,N){return N&&!!q},
computeResponseHasComments:function(q){var N,b,y,J,E;return!!(q==null?0:(N=q.contents)==null?0:(b=N.twoColumnWatchNextResults)==null?0:(y=b.results)==null?0:(J=y.results)==null?0:(E=J.contents)==null?0:E.some(function(F){var R;return(F==null?void 0:(R=F.itemSectionRenderer)==null?void 0:R.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(q,N,b,y){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&y?!1:!!q&&!!Object.keys(q).length&&!N},
identity:_.CC,onWindowResized_:function(q){this.windowSize_=q;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.x("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(q){var N=this;q&&q.type!=="dataloaded"&&q.type!=="dataupdated"||_.p6(this).getPlayerPromise().then(function(b){var y=b.getPlayerState();y!==5&&y!==0&&(b=1/b.getVideoAspectRatio(),N.videoHeightToWidthRatio_!==b&&(N.videoHeightToWidthRatio_=b))})},
schedulePlayerSizeUpdate_:function(q){var N=this,b=_.x("kevlar_watch_while_v2")||_.x("web_watch_pip"),y=function(){if(N.watchMetadata){var J,E;(E=(J=N.watchMetadata).resize)==null||E.call(J)}_.p6(N).getPlayerPromise().then(function(F){if(_.x("kevlar_set_internal_player_size")){if(!b||!N.isMiniplayerActive()){var R=N.calculateCurrentPlayerSize_();F.setInternalSize(R.width,R.height)}}else F.setSize(NaN,NaN);_.x("kevlar_watch_while")&&N.updateWatchWhileScrollThreshold_()})};
q?y():_.ZQ(_.pY,y)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(q){this.set("data.survey",q.detail)},
onYtShowSurveyCommand_:function(q){this.set("data.survey",_.v(q,_.v8Z).survey)},
onDownloadedVideoDeleted:function(q){var N=this,b,y;return _.d(function(J){if(J.nextAddress==1){if(!N.active||(b=N.playerData)==null||!b.offlineState||N.videoId!==q)return J.return();(y=N.player)==null||y.stopVideo();_.sM().navigatingAwayFromWatchDeletedVideo=!0;_.yI(_.AcA,N.hostElement);return J.yield(_.sM().navigationFinishPromise,2)}_.sM().navigatingAwayFromWatchDeletedVideo=!1;_.hj(J)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var q;this.theater?q=_.Od(.5625*this.windowSize_.width,480,this.windowSize_.height-185):q=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==q&&(this.watchWhileScrollThreshold_=q,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var q=_.ee(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&q){var N=this.windowSize_.height>=624,b=this.active?this.getScrollTop():0;!q.active&&N&&b>=this.watchWhileScrollThreshold_?(q.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):q.active&&(!N||b<this.watchWhileScrollThreshold_&&!_.Py())&&(q.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var q=_.ee(this.hostElement).querySelector("#secondary-inner");if(q){var N=_.ee(this.hostElement).querySelector("#below"),b=_.ee(this.hostElement).querySelector("#secondary"),y=_.ee(this.hostElement).querySelector("#comments");y&&b&&N&&(this.defaultTwoColumnLayout?(q.appendChild(y),b.appendChild(q)):(N.appendChild(y),_.kS(N,q)))}}},
isTwoColumnsChanged_:function(q,N){if(q!==!0||N!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(q=_.ee(this.hostElement).querySelector("#secondary-inner"))){N=_.ee(this.hostElement).querySelector("#below");var b=_.ee(this.hostElement).querySelector("#secondary"),y=_.ee(this.hostElement).querySelector("#comments");y&&b&&N&&(this.isTwoColumns_?(q.appendChild(y),b.appendChild(q)):(N.appendChild(y),_.kS(N,q)))}}else{q=!_.x("web_watch_enable_fs_squeezeback_panels");
N=_.ee(this.hostElement).querySelector("#panels");var J=_.ee(this.hostElement).querySelector("#alerts"),E=_.ee(this.hostElement).querySelector("#shopping-timely-shelf");b=_.ee(this.hostElement).querySelector("#playlist");y=_.ee(this.hostElement).querySelector("#related");var F=_.ee(this.hostElement).querySelector("#donation-shelf"),R=_.ee(this.hostElement).querySelector("#comments"),c=_.ee(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(J=_.ee(this.hostElement).querySelector("#secondary-inner"),
q&&(J.appendChild(N),J.appendChild(b),this.aiCompanionEnabled&&c&&J.appendChild(c)),J.appendChild(F),J.appendChild(y)):(q&&(_.hx(N,J),_.hx(b,J),this.aiCompanionEnabled&&c&&_.hx(c,J),_.hx(E,b)),_.hx(F,J),R&&_.hx(y,R));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.x("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.x("web_watch_enable_fs_squeezeback_panels")&&_.x("web_watch_theater_chat")){var q=_.ee(this.hostElement).querySelector("#chat-container"),N=this.theater&&!this.fullscreen||_.x("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&N?(N=_.ee(this.hostElement).querySelector("#columns"),(q==null?void 0:q.parentElement)!==N&&N.append(q),this.fixedPanels=!0):(this.fixedPanels=
!1,N=_.ee(this.hostElement).querySelector("#playlist"),q&&N?_.k_(q,N):_.M6(new _.IO("Missing element when updating chat location",{"chatContainer defined":!!q,"playlist defined":!!N})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(q,N){return _.x("sw_metadata_vis_toggle_ks")?!0:!!q||!!N},
computeForceDarkPanelTheme:function(q){return _.x("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&q:!1},
safeUpdateStyles:function(q){try{_.Jm(this.hostElement,q)}catch(N){_.M6(N)}},
videoHeightToWidthRatioChanged_:function(q,N){N&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(q){this.videoHeightToWidthRatio_=1/q},
computeIsVerticalVideo_:function(q){return q>=1},
computeIsFourThreeToSixteenNineVideo_:function(q){return q<=.7501&&q>=.5624},
computeIsExtraWideVideo_:function(q){return q<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.p6(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.p6(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.DKe(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(q){var N=_.XH(q)||0;_.r5(q,N+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var q=_.XH("yt-fullerscreen-edu-button-click-count")||0,N=_.XH("yt-fullerscreen-edu-button-shown-count")||0,b=_.VX("external_fullscreen_button_shown_threshold"),y=q>=_.VX("external_fullscreen_button_click_threshold")||N>=b;_.p6(this).getPlayerPromise().then(function(J){J.updateFullerscreenEduButtonSubtleModeState(y)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(q,N){return N},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.tz().resolve(_.F2).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var q=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.pY.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.pY.addLowPriorityJob(function(){q.fullHeightPanelPositionUpdateJobId=0;var N=_.ee(q.hostElement).querySelector("#secondary"),b=_.ee(q.hostElement).querySelector("#fixed-secondary");N=N.getBoundingClientRect();var y=N.width;q.swatcherooSqueezeback&&
(y+=_.fj);if(q.swatcherooSqueezeback){var J=_.ee(q.hostElement).querySelector("#squeezeback-constraining-container");J.style.width=y+"px";J.style.flex="0 0 "+y+"px"}b.style.width=y+"px";b.style.left=N.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var q=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.pY.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.pY.addLowPriorityJob(function(){q.panelMaxHeightUpdateJob_=0;var N;!q.isTwoColumns_||q.theater||q.fullscreen?N=460:N=q.calculateNormalPlayerSize_().height;var b=N+"px";_.x("live_chat_taller_height")&&!q.theater&&(b="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.x("live_chat_medium_height")&&!q.theater&&(b="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.x("live_chat_scaled_height")&&!q.theater&&(b="calc(100vh - var(--ytd-toolbar-height) - 238px)");q.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":N+"px","--ytd-watch-flexy-chat-max-height":b,"--ytd-watch-flexy-structured-description-max-height":N+"px","--ytd-watch-flexy-comments-panel-max-height":N+"px","--ytd-comments-engagement-panel-content-height":N+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(q){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",q)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Nc(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(q){var N=_.ee(this.hostElement).querySelector("#engagement-panel-scrim");q?N.addEventListener("tap",_.gq(this,this.onEngagementPanelScrimClick_)):N.removeEventListener("tap",_.gq(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(q){if(this.hostElement.contains(q)&&!this.scrollToAnimation_.isAnimating()){var N=q.offsetTop-24;q=q.offsetTop+q.offsetHeight+24;var b=this.getPageScrollingElement(),y=this.getScrollTop(),J=y+b.clientHeight-56;if(N<y+56)N-=56;else if(q>J)N=q-b.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,N),500)}},
onYtSignalActionScrollToComments:function(){var q=this.hostElement.querySelector("#comments");if(q&&!this.scrollToAnimation_.isAnimating()){q=q.offsetTop-56-24;if(_.x("kevlar_comment_teaser_scroll_to_midpoint")&&(q-=_.KM().height/3,q<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,q),500)}},
onYtEngagementPanelVisibleChanged:function(q,N,b){if(this.active&&this.trackEngagementPanelVisibility&&!_.j0X.includes(b)){if(N==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.Hy(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var y=_.tz().resolve(_.M8);this.visiblePanelIdentifiers_.forEach(function(J){J!==b&&y.hidePanel({identifier:J})})}this.visiblePanelIdentifiers_.add(b)}N!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&N!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(b);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(q){return q?"":"watch-active-metadata"},
computeNewMetadataClass:function(q){return q?"watch-active-metadata":""},
computeIsSingleColumn:function(q,N){return N&&!q},
computeFullBleedPlayer:function(q,N,b){return _.x("external_fullscreen")&&q||N||b},
computeDefaultLayout:function(q){return!q},
computeDefaultTwoColumnLayout:function(q,N){return!q&&N},
updatePanelsLocation:function(){if(_.x("web_watch_enable_fs_squeezeback_panels")){var q=_.ee(this.hostElement).querySelector("#below"),N=_.ee(this.hostElement).querySelector("#panels"),b=_.ee(this.hostElement).querySelector("#playlist"),y=_.ee(this.hostElement).querySelector("#chat-container"),J=_.ee(this.hostElement).querySelector("#panels-full-bleed-container"),E=_.ee(this.hostElement).querySelector("#secondary-inner"),F=_.ee(this.hostElement).querySelector("#shopping-timely-shelf"),R=_.ee(this.hostElement).querySelector("#persistent-panel-container");
if(q&&N&&b&&y&&J&&E&&F&&(this.aiCompanionEnabled?R:1)){var c=this.fullscreen||this.theater&&this.iMaxTheaterMode,z=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;z?(z=_.ee(this.hostElement).querySelector("#columns"),(y==null?void 0:y.parentElement)!==z&&z.append(y),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):c?J.appendChild(y):this.isTwoColumns_?_.kS(E,y):_.kS(q,y);c?(J.appendChild(N),J.appendChild(b),
this.aiCompanionEnabled&&R&&J.appendChild(R)):(this.isTwoColumns_?(_.kS(E,N),_.kS(E,b),this.aiCompanionEnabled&&R&&_.kS(E,R)):(_.kS(q,N),_.kS(q,b),this.aiCompanionEnabled&&R&&_.kS(q,R)),_.kS(q,F))}}},
swatcherooUpdatePanelsLocation:function(q,N,b,y,J,E){if(this.is==="ytd-watch-grid"){N=q&&!N;this.swatcherooSplitScroll&&(N?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));b=_.ee(this.hostElement).querySelector("#panels");var F=_.ee(this.hostElement).querySelector("#playlist"),R=_.ee(this.hostElement).querySelector("#persistent-panel-container"),
c=_.ee(this.hostElement).querySelector("#fixed-secondary"),z=_.ee(this.hostElement).querySelector("#fixed-below"),m=_.ee(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),r=_.ee(this.hostElement).querySelector("#chat-container");E&&(q?(c.appendChild(b),this.aiCompanionEnabled&&R&&c.appendChild(R)):(z.appendChild(b),this.aiCompanionEnabled&&R&&z.appendChild(R)));J?q?c.appendChild(r):z.appendChild(r):_.k_(r,m);y?q?c.appendChild(F):z.appendChild(F):_.k_(F,
m);this.swatcherooSplitScroll&&(q=_.ee(this.hostElement).querySelector("#secondary"),y=_.ee(this.hostElement).querySelector("#columns"),J=_.ee(this.hostElement).querySelector("#fixed-columns-secondary"),N?J.appendChild(q):y.appendChild(q))}},
computeMetadataSkinnyMode:function(q,N,b){return this.is!=="ytd-watch-grid"?!1:q?b:N},
computeWatchWhilePanelsActive:function(q,N){return q||N},
computeNoBorderOnChat:function(q){return _.x("web_watch_theater_chat_no_border")&&q},
computeLiveChatPresentAndExpanded:function(q,N){return q&&!N},
computePanelExpanded:function(q,N,b){return q||N||b},
computeSqueezeback:function(q,N,b,y){if(_.x("web_watch_enable_fs_squeezeback_panels")){var J=this.iMaxTheaterMode&&this.theater,E=this.theater&&!this.iMaxTheaterMode;return(q||N||b)&&(J||y)||N&&E}},
computeSwatcherooSqueezeback:function(q,N,b){return this.is!=="ytd-watch-grid"||_.x("ww_squeezeback_killswitch")?!1:q&&N&&b},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(q){_.p6(this).getPlayerPromise().then(function(N){var b;(b=N.changeMarkerVisibility)==null||b.call(N,_.v(q,_.Ws).isVisible||!1,_.v(q,_.Ws).entityKeys||[],_.v(q,_.Ws).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(q){this.liveChatCollapsed=q.detail;_.WT().dispatch(_.Veh(q.detail));if(!this.liveChatCollapsed&&this.squeezeback){var N=_.tz().resolve(_.M8);this.visiblePanelIdentifiers_.forEach(function(b){N.hidePanel({identifier:b})})}},
onSetPlaylistCollapsed:function(q){_.x("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!q)},
provideRenderingData:function(q,N){switch(q){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=N;break;case "PRIMARY_INFO":_.x("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=N);this.videoPrimaryInfoRendererValue=N==null?void 0:N.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.x("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=N);this.videoSecondaryInfoRendererValue=N==null?void 0:N.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
N;break;case "CLARIFICATION":this.clarifyBoxValue=N;break;case "LIVE_CHAT":this.conversationBar=N;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=N;break;case "PLAYLIST":this.externalPlaylistData_=N!=null?N:{};break;case "MERCH_SHELF":this.merchShelfValue=N==null?void 0:N.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=N;break;case "TICKET_SHELF":this.ticket=N;break;case "OFFER_MODULE":this.offerModule=N;break;case "LIMITED_STATE":this.limitedStateValue=
N;break;case "DONATION_SHELF":this.donation=N;break;case "ALERTS":this.alertsValue=N;break;case "COMMENTS":this.comments=N;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=N;break;case "ENGAGEMENT_PANELS":this.engagementPanels=N;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=N;break;case "RICH_GRID_RENDERER":this.richGridRendererData=N;break;case "EXPANDABLE_METADATA":this.expandableMetadata=N;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
N;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=N;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=N}},
toggleCinematicsActive:function(q){this.cinematicsActive=q},
isMiniplayerActive:function(){return _.tz().resolve(_.l9).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var QUd;_.YkK=function(q){if(!(0,_.vE1)(q))throw Error("K``"+String(q));};
_.OkX=function(q){return q.findIndex(function(N){return QUd.indexOf(N.tagName)>-1})>-1};
_.wHf=function(){var q=_.tz().resolve(_.Ib);_.F6d(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(q.isFullscreenEnabled()?_.MP(document.documentElement):_.BCR(document.documentElement))};
QUd=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.R4=new Map;_.R4.set(32,59972);_.R4.set(27,50765);_.R4.set(70,60102);_.R4.set(76,60221);_.R4.set(77,60222);_.R4.set(74,60223);_.R4.set(84,60224);_.R4.set(38,61941);_.R4.set(40,61942);_.R4.set(73,62521);_.R4.set(67,62522);_.R4.set(80,63390);_.R4.set(78,63397);_.R4.set(75,59972);_.R4.set(188,63385);_.R4.set(190,63384);_.R4.set(36,63387);
_.R4.set(35,63386);_.R4.set(37,63388);_.R4.set(39,63389);_.R4.set(79,63423);_.R4.set(87,63424);_.R4.set(107,63426);_.R4.set(109,63425);_.R4.set(65,63428);_.R4.set(83,63430);_.R4.set(68,63429);_.R4.set(221,63431);_.R4.set(219,63432);_.R4.set(97,63439);_.R4.set(98,63440);_.R4.set(99,63441);_.R4.set(100,63442);_.R4.set(101,63443);_.R4.set(102,63444);_.R4.set(103,63445);_.R4.set(104,63446);_.R4.set(105,63447);_.dN=new Map;_.dN.set(80,63390);_.dN.set(78,63397);_.dN.set(188,63400);_.dN.set(190,63401);
_.dN.set(191,60765);_.dN.set(13,247917);_.cq=new Map;_.ub=new Map;
}catch(e){_._DumpException(e)}
try{
var Svd,pPC,PIf,MeX;_.T5C=function(q){return q.ui.guideIsVisibleButNotPersistent};
_.s0p=function(q){return q.ui.tabGesturesIsActive};
_.n8a=function(){var q=_.jA("service_worker_scope");try{return navigator.serviceWorker.getRegistration(q)}catch(N){return Promise.reject(N)}};
_.a4C=function(q){return!(!q||!q.pushManager)};
Svd=function(){return _.n8a().then(_.a4C).catch(function(){return!1})};
_.WlU=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?Svd():Promise.resolve(!1)};
_.Lla=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
pPC=function(){var q,N,b;return _.d(function(y){switch(y.nextAddress){case 1:return y.yield(_.oM.getInstance(),2);case 2:q=y.yieldResult;if(!q){N=void 0;y.jumpTo(3);break}return y.yield(q.get("lmqf"),4);case 4:N=y.yieldResult;case 3:switch((b=N)||(b="SD"),b){case "HD":return y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
PIf=function(q){var N,b,y;return _.d(function(J){if(J.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.x("disable_av1_setting")){var E=window.localStorage["yt-player-av1-pref"];E=E==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":E==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else E="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(N=q===E)return J.jumpTo(2);y=b=q;return J.yield(pPC(),3)}J.nextAddress!=2&&(N=y===J.yieldResult);return J.return(N)})};var o8B;var ANf=_.Ci.IronButtonState,ena=(0,_.Kz)(HTMLElement);
_.x9({_template:function(){if(o8B!==void 0)return o8B;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;MeX===void 0&&(MeX=document.createElement("template"));var y=MeX;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return o8B=q},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[ANf,_.UD,_.IV,_.ni],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(q){var N=(0,_.kF)(this);N.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:q});N.shadowRoot.appendChild(q);return ena.prototype._attachDom.call(this,q)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var q=this.contentElement;q&&q.selectedItem&&this._setSelectedItem(q.selectedItem)},
get contentElement(){for(var q=_.mj(this.$.content).getDistributedNodes(),N=0,b=q.length;N<b;N++)if(q[N].nodeType===Node.ELEMENT_NODE)return q[N]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(q){this._setSelectedItem(q.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(q){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q)===this&&this.open()},
_selectedItemChanged:function(q){var N="";q?N=q.label||q.getAttribute("label")||q.textContent.trim():N="";this.value=N;this._setSelectedItemLabel(N)},
_computeMenuVerticalOffset:function(q,N){return N?N:q?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var q=this.opened?"true":"false",N=this.contentElement;N&&N.setAttribute("aria-expanded",q)}});_.MF=new _.yT("navigateAction");var B5K=new _.yT("formRenderer");var o7=function(){var q=_.uL.apply(this,arguments)||this;q.showInput=!1;return q};
_.Y(o7,_.uL);_.g=o7.prototype;_.g.detached=function(){this.showInput&&window.removeEventListener("click",_.gq(this,this.closeOnOutsideClick_))};
_.g.stopPropagation_=function(q){this.showInput&&q.stopPropagation()};
_.g.closeOnOutsideClick_=function(q){this.closeOnOutsideClickCondition(q)&&(this.showInput=!1,window.removeEventListener("click",_.gq(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.g.closeOnOutsideClickCondition=function(){return!0};
_.g.closeOnOutsideClickHandler=function(){};
_.g.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.gq(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.g.openOnClickHandler=function(){};
_.g.showInputChanged=function(){};
_.g.setShowInput=function(q){this.showInput=q};
o7.prototype.setShowInput=o7.prototype.setShowInput;o7.prototype.showInputChanged=o7.prototype.showInputChanged;o7.prototype.openOnClickHandler=o7.prototype.openOnClickHandler;o7.prototype.openOnClick_=o7.prototype.openOnClick_;o7.prototype.closeOnOutsideClickHandler=o7.prototype.closeOnOutsideClickHandler;o7.prototype.closeOnOutsideClickCondition=o7.prototype.closeOnOutsideClickCondition;o7.prototype.closeOnOutsideClick_=o7.prototype.closeOnOutsideClick_;o7.prototype.stopPropagation_=o7.prototype.stopPropagation_;
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],o7.prototype,"showInput",void 0);_.p([_.ZP("click"),_.ZP("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],o7.prototype,"stopPropagation_",null);_.p([_.FY("showInput"),_.P("design:type",Function),_.P("design:paramtypes",[Boolean]),_.P("design:returntype")],o7.prototype,"showInputChanged",null);_.p([_.zs()],o7);_.H9f=[o7.prototype];var qkp;var Nqf;var AM=function(){return _.C.apply(this,arguments)||this};
_.Y(AM,_.C);_.g=AM.prototype;_.g.computePreselectedOption=function(q,N){return N===this.itemSelected_?q:void 0};
_.g.dataChanged_=function(){var q=this;this.preselectedSubreason=this.itemSelected_=-1;var N;(N=this.data)!=null&&N.key&&_.ut(this,function(){var b,y=Number((b=q.data)==null?void 0:b.key);!Number.isNaN(y)&&(q.itemSelected_=y,b=(b=(q.data.items||[])[y])&&b.optionSelectableItemRenderer&&b.optionSelectableItemRenderer.preselectedIndex)&&(q.preselectedSubreason=b)})};
_.g.isSubReasonHidden_=function(q,N){return q!=N};
_.g.onTopItemSelected_=function(q,N){for(var b=_.ee(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),y=0,J=b.length;y<J;y++)b[y].select(0);_.By(this.hostElement,"yt-report-form-update",[N.item.value]);q.stopPropagation()};
_.g.onItemSelected_=function(q,N){_.By(this.hostElement,"yt-report-form-update",[N.item.value]);q.stopPropagation()};
_.g.getItem_=function(q){return q.serviceItem?q.serviceItem:q.navigationItem?q.navigationItem:q.optionSelectableItemRenderer?q.optionSelectableItemRenderer:null};
_.g.computeText_=function(q){return(q=this.getItem_(q))?this.ytRendererBehavior.getSimpleString(q.text):null};
_.g.validate=function(){return this.itemSelected_!==-1};
_.g.computeAriaLabel_=function(q){var N=_.ao(q.text);(q=q.accessibility&&q.accessibility.accessibilityData&&q.accessibility.accessibilityData.label)&&(N+=". "+q);return N};
_.g.computeItemSelected_=function(q){return q};
_.g.preventSelection_=function(q){q.stopPropagation();this.tooltipTapped=!0};
_.g.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.g.updateItemSelectedFromBinding=function(q){this.itemSelected_=q.detail.value};
_.g.save=function(){var q;this.validate()&&(q=this.data)!=null&&q.items&&(q=this.data.items[this.itemSelected_],q!=null&&q.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(q.optionSelectableItemRenderer.submitEndpoint)||_.qc(this.hostElement,[q.optionSelectableItemRenderer.submitEndpoint])))};
AM.prototype.onPaperRippleTransitionEnd_=AM.prototype.onPaperRippleTransitionEnd_;AM.prototype.dataChanged_=AM.prototype.dataChanged_;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],AM.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],AM.prototype,"data",void 0);_.p([_.U({value:-1}),_.P("design:type",Number)],AM.prototype,"itemSelected_",void 0);
_.p([_.U({computed:"computeItemSelected_(itemSelected_)"}),_.P("design:type",Number)],AM.prototype,"value",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],AM.prototype,"restoreFocusOnClose",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],AM.prototype,"tooltipTapped",void 0);_.p([_.U({value:-1}),_.P("design:type",Number)],AM.prototype,"preselectedSubreason",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AM.prototype,"dataChanged_",null);_.p([_.ZP("transitionend"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AM.prototype,"onPaperRippleTransitionEnd_",null);_.p([_.Ok({is:"yt-options-renderer",disableElementRegistration:!0})],AM);
_.a(AM,"yt-options-renderer",function(){if(Nqf===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;qkp===void 0&&(qkp=document.createElement("template"));var y=qkp;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Nqf=q}q=Nqf;return q},{mode:2});var bka;var ymN;var JmB;var E9c;var g9a;var Zkc;var e8=function(){return _.C.apply(this,arguments)||this};
_.Y(e8,_.C);e8.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
e8.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
e8.prototype.onTap=function(q){if(this.hostElement.classList.contains("selected")||_.By(this.hostElement,"yt-share-panel-can-select-contact-action")[0])q&&q.detail&&(q.detail.x||q.detail.y)&&_.ee(this.hostElement).querySelector("#target").blur(),(q=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),q={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:q?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.By(this.hostElement,"yt-share-panel-select-contact-action",[q])};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],e8.prototype,"ytRendererBehavior",void 0);_.p([_.U({observer:"onDataChanged"}),_.P("design:type",Object)],e8.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.P("design:type",String)],e8.prototype,"componentTitle",void 0);_.p([_.dq("#thumbnail"),_.P("design:type",Object)],e8.prototype,"thumbnail",void 0);_.p([_.Ok({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],e8);
_.a(e8,"yt-enrolled-contact-renderer",function(){if(Zkc===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;g9a===void 0&&(g9a=document.createElement("template"));var y=g9a;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Zkc=q}q=Zkc;return q},{mode:2});var F_X;var RQX;var BS=function(){return _.C.apply(this,arguments)||this};
_.Y(BS,_.C);BS.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
BS.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
BS.prototype.onTap=function(q){if(this.hostElement.classList.contains("selected")||_.By(this.hostElement,"yt-share-panel-can-select-contact-action")[0])q&&q.detail&&(q.detail.x||q.detail.y)&&_.ee(this.hostElement).querySelector("#target").blur(),(q=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),q={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:q?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.By(this.hostElement,"yt-share-panel-select-contact-action",[q])};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);_.p([_.U({observer:"onDataChanged"}),_.P("design:type",Object)],BS.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.P("design:type",String)],BS.prototype,"componentTitle",void 0);_.p([_.dq("#thumbnail"),_.P("design:type",Object)],BS.prototype,"thumbnail",void 0);_.p([_.Ok({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],BS);
_.a(BS,"yt-suggested-contact-renderer",function(){if(RQX===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;F_X===void 0&&(F_X=document.createElement("template"));var y=F_X;b.call(N,y.content.cloneNode(!0),q.content.firstChild);RQX=q}q=RQX;return q},{mode:2});var HS=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-share-panel-reset-action":"onReset"};return q};
_.Y(HS,_.C);HS.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"}}}}}};
HS.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.By(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
HS.prototype.onReset=function(){for(var q=_.ee(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),N=q.length-1;N>=0;N--)q[N].classList.toggle("selected")};
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],HS.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],HS.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],HS.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U({observer:"onDataChanged"}),_.P("design:type",Object)],HS.prototype,"data",void 0);
_.p([_.Ok({is:"yt-contact-section-renderer",disableElementRegistration:!0})],HS);
_.a(HS,"yt-contact-section-renderer",function(){if(E9c===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;JmB===void 0&&(JmB=document.createElement("template"));var y=JmB;b.call(N,y.content.cloneNode(!0),q.content.firstChild);E9c=q}q=E9c;return q},{mode:2});var q3=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return q};
_.Y(q3,_.C);_.g=q3.prototype;_.g.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"}}}};
_.g.onYtRefreshFormCommand=function(q){var N;(q=_.v((N=_.v(q,_.AtJ))==null?void 0:N.formRenderer,B5K))&&this.set("data",q)};
_.g.reset=function(){var q=_.ee(this.hostElement).querySelector("#fields").children;q=_.Z(q);for(var N=q.next();!N.done;N=q.next())N=N.value,N.reset&&N.reset()};
_.g.getForm=function(){var q={},N=_.ee(this.hostElement).querySelector("#fields").children;N=_.Z(N);for(var b=N.next();!b.done;b=N.next()){b=b.value;if(!b.validate())return null;q[b.data.key]=b.value}return q};
_.g.submitFormFields=function(){if(this.fields)for(var q=_.Z(this.fields),N=q.next();!N.done;N=q.next())N=N.value,N.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?N.save():N.nodeName==="YT-OPTIONS-RENDERER"&&N.save()};
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],q3.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],q3.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],q3.prototype,"data",void 0);_.p([_.cH("#fields > *"),_.P("design:type",Array)],q3.prototype,"fields",void 0);
_.p([_.Ok({is:"yt-form-renderer",disableElementRegistration:!0})],q3);
_.a(q3,"yt-form-renderer",function(){if(ymN===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;bka===void 0&&(bka=document.createElement("template"));var y=bka;b.call(N,y.content.cloneNode(!0),q.content.firstChild);ymN=q}q=ymN;return q},{mode:2});var d9U;var N3=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return q};
_.Y(N3,_.C);N3.prototype.onCheckboxChange=function(q){this.data&&(q=(this.checked=_.a0(q).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.tz().resolve(_.rO).resolveCommand(q,{form:{element:this.hostElement}})};
N3.prototype.handleUpdateCheckboxCommand=function(q){(q=_.v(q,_.zU1))&&this.data&&this.data.id===q.id&&(this.set("data.disabled",q.disabled),this.set("data.title",q.title))};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],N3.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],N3.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],N3.prototype,"checked",void 0);_.p([_.I({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],N3);
_.a(N3,"ytd-settings-checkbox-renderer",function(){if(d9U!==void 0)return d9U;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return d9U=q},{mode:1});var cmc;var bb=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return q};
_.Y(bb,_.C);bb.prototype.dataChanged=function(){var q=this,N;return _.d(function(b){if(b.nextAddress==1)return q.radio.removeAttribute("checked"),!q.data||!q.data.id||q.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.Lla()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(N=q.data&&q.data.id)?b.yield(PIf(q.data.id),4):b.jumpTo(3):(q.set("data.hidden",!0),b.jumpTo(0));b.nextAddress!=3&&(N=b.yieldResult);N&&_.By(q.hostElement,"yt-select-settings-radio-option",[q.data.id]);_.hj(b)})};
bb.prototype.onButtonChanged=function(q){_.a0(q).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.tz().resolve(_.rO).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.By(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
bb.prototype.onSelectOption=function(q){this.data&&this.data.id&&(this.data.id===q?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
bb.prototype.dataChanged=bb.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],bb.prototype,"ytActionHandlerBehavior",void 0);_.p([_.dq("#radio"),_.P("design:type",Object)],bb.prototype,"radio",void 0);_.p([_.U(),_.P("design:type",Object)],bb.prototype,"data",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],bb.prototype,"dataChanged",null);_.p([_.I({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],bb);
_.a(bb,"ytd-settings-radio-option-renderer",function(){if(cmc!==void 0)return cmc;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return cmc=q},{mode:1});var uYB;var yV=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return q};
_.Y(yV,_.C);
yV.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"}}}};
yV.prototype.handleUpdateTextCommand=function(q){(q=_.v(q,_.$C4))&&this.data&&this.data.id===q.id&&this.set("data",q)};
yV.prototype.handleUpdateConnectedAppRendererCommand=function(q){if(_.v(q,_.rGE)&&this.data){var N,b;if(q=(N=_.v(q,_.rGE))==null?void 0:(b=N.newConnectedAppRenderer)==null?void 0:b.connectedAppRenderer)this.data=q}};
yV.prototype.computeConnectedAppStyle=function(q){return q.style?q.style.toLowerCase().replace(/_/g,"-"):""};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],yV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],yV.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],yV.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],yV.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.P("design:type",String)],yV.prototype,"connectedAppStyle",void 0);_.p([_.I({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],yV);
_.a(yV,"ytd-connected-app-renderer",function(){if(uYB!==void 0)return uYB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return uYB=q},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.LF("iuT5Oc");

_.pF();
}catch(e){_._DumpException(e)}
try{
_.LF("NSzT5");
var Nqx=function(){var q;return _.d(function(N){if(N.nextAddress==1)return N.yield(_.tz().resolve(_.Bk),2);(q=N.yieldResult)&&q.pauseVideo();_.hj(N)})};var bkB=_.Tt(["https://portraits.google.com"]),ymB=_.Tt(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),JmX=_.Tt(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),E9e=_.Xe(bkB),g9B=_.n(function(q){function N(m){var r;if(m=(r=m.detail)==null?void 0:r.endpoint){r=_.v(m,_.FH);var X;r&&((X=r.browseId)==null?0:X.startsWith("UC"))&&r.browseId!==J()&&(_.rN("creator_chatbots-panel-persistent"),c.removeEventListener("yt-navigate-start",N))}}
var b=q.usePlayerHeight;var y=q.isPersistentPanel;var J=q.creatorChannelId;var E=_.ai(function(m){var r=J();r=_.Xe(ymB,r);_.b$(m,1,r)}),F=function(){var m,r,X;
return _.d(function(V){return V.nextAddress==1?V.yield(_.tz().resolve(_.Bk),2):(m=V.yieldResult)?V.return({video_id:(X=(r=m.getVideoData())==null?void 0:r.video_id)!=null?X:"",timestamp_sec:m.getCurrentTime().toString()}):V.return({})})};
_.$F("message",function(m){var r,X,V,G,w,D;return _.d(function(k){if(k.nextAddress==1){if((r=y)==null?0:r())return k.return();if(m.origin!==E9e.toString())return console.warn("Received message from untrusted origin:",m.origin),k.return();X=m.data;if(typeof X!=="object"||X===null||!X.action)return k.return();if(X.action==="pause")return k.yield(Nqx(),0);if(X.action!=="getYouTubeContext"||!m.source)return k.jumpTo(0);V=m.source;G=V.postMessage;w=JSON;D=w.stringify;return k.yield(F(),7)}G.call(V,D.call(w,
{youTubeContext:k.yieldResult}),{targetOrigin:m.origin});return k.jumpTo(0)})});
var R=function(){var m,r;(m=E.value)==null||(r=m.contentWindow)==null||r.postMessage("ep_closed",E9e.toString())};
_.$F("yt-page-type-changed",function(){if(y==null?0:y()){var m;((m=_.tz().resolve(_.L6).getCurrentPage())==null?void 0:m.pageSubtype)!=="channels"&&(m=document.getElementById("creator_chatbots-panel-persistent"))&&(m.style.display="none")}});
var c=_.tz().resolve(_.US),z;(z=c)==null||z.addEventListener("yt-navigate-start",N);_.W1(function(){var m;(m=c)==null||m.removeEventListener("yt-navigate-start",N)});
return _.u("div",{class:"ytprotoCreatorChatbotsAppHost",style:_.ZU({height:function(){return(b==null?0:b())?"var(--ytd-watch-flexy-panel-max-height)":"100%"}})},_.u(_.eQC,{id:function(){return(y==null?0:y())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:R,header:function(){return _.u("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.u("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator's Portrait"),_.u(_.Eo,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.u(_.VV,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var m=_.ax("https://portraits.google.com/gallery?ytChannelId="+J());m&&_.yz(window,m,"_blank");R()}})},
content:function(){return _.u("iframe",{el:E,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+E9e.toString()})}}))},"Fo"),Zke=_.n(function(q){var N=q.creatorChannelId;
var b=_.ai(function(J){var E=N();E=_.Xe(JmX,E);_.b$(J,1,E)}),y=_.Zd(_.FR(),{veType:281629});
return _.u("div",{class:"ytprotoCreatorChatbotsAppHost",style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.u(_.eQC,{id:"creator_chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.u("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.u("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},
"Talk to the Creator's Portrait"),_.u(_.Eo,{data:{text:"AI experiment",type:0}}))},
content:function(){return _.u("iframe",{el:b,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.u("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.u(_.VV,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var J=_.ax("https://portraits.google.com/gallery?ytChannelId="+N());J&&_.yz(window,J,"_blank");Nqx();y&&_.Ul(_.FR(),{visualElement:y})},
"client-ve-type":281629}),_.u("div",null,"This will take you to Google Portraits"))}}))},"Go");var F_v,RQv,d9c;F_v=_.Tt(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);RQv=_.Xe(F_v);
_.hSl=function(q){q=q===void 0?"":q;_.rN("creator_chatbots-entry-point");_.rN("creator_chatbots-panel");_.tQ(RQv);_.XG("ytd-watch-metadata #top-level-buttons-computed",function(N){document.getElementById("creator_chatbots-entry-point")||(_.mh({element:N,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.u(d9c,{creatorChannelId:q})}),_.AmU("creator_chatbots-panel",function(){return _.u(g9B,{usePlayerHeight:!0,
creatorChannelId:q})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};
_.kCX=function(q){q=q===void 0?"":q;_.rN("creator_chatbots-panel");_.XG("ytd-watch-metadata #top-level-buttons-computed",function(){_.AmU("creator_chatbots-panel",function(){return _.u(Zke,{creatorChannelId:q})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
d9c=_.n(function(q){var N=q.creatorChannelId;var b=function(){_.AmU("creator_chatbots-panel",function(){return _.u(g9B,{usePlayerHeight:!0,creatorChannelId:N})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.u("div",{class:"ytd-menu-renderer"},_.u(_.GE,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:b}},
icon:function(){return _.u(_.FQ,{icon:"SPARK"})}}))},"Ho");
_.nfB=function(q,N){q=q===void 0?"":q;N=N===void 0?!1:N;var b;return _.d(function(y){b=document.getElementById("creator_chatbots-panel-persistent");return!N||b?(!N&&b&&b.style.display==="none"&&(b.style.display="block"),y.jumpTo(0)):y.yield(new Promise(function(J){_.XG("ytd-app",function(E){_.mh({element:E,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.u(g9B,
{isPersistentPanel:!0,creatorChannelId:q})});
J()})}),0)})};
_.pF();
}catch(e){_._DumpException(e)}
try{
_.LF("L3n37");
var pPe=function(q){return q.watch.isLearningJourneyActive},PIx=_.bx(115994),Mev=_.bx(115993),o8X=function(q,N,b){var y=this;
var J=b.dragDownAction;this.layer=0;this.JSC$23637_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return y.dragDownAction()}}}};
this.JSC$23637_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return y.dragDownAction()}}}};
this.fullscreen=!1;var E=_.FR();_.k3(E,PIx,this.layer);_.k3(E,Mev,this.layer);this.dragDownAction=function(){J();_.Ul(E,{visualElement:y.fullscreen?PIx:Mev})};
this.gesture=new _.TA(q,N,this.getConfig(!1),"pandown");this.attach()};
o8X.prototype.attach=function(){this.gesture.attach()};
o8X.prototype.detach=function(){this.gesture.detach()};
o8X.prototype.update=function(q){this.fullscreen=q;var N=this.gesture;q=this.getConfig(q);N.config=q};
o8X.prototype.getConfig=function(q){return q?this.JSC$23637_watchFullScreenConfig:this.JSC$23637_watchConfig};var ANx=function(q){_.FG.call(this);var N=this;this.rootElement=q;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return N.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(b){N.initOrDisposeActiveModules(b)}));
this.onAttached()};
_.Y(ANx,_.FG);_.g=ANx.prototype;_.g.getRoot=function(){return this.rootElement};
_.g.getElement=function(q){return this.rootElement.getElement(q)};
_.g.setPlayerResponse=function(q){this.playerResponse=q;this.publish("PLAYER_RESPONSE_UPDATED",q)};
_.g.getPlayerResponse=function(){return this.playerResponse};
_.g.setWatchNextResponse=function(q){this.watchNextResponse===q?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=q,this.publish("WATCH_NEXT_RESPONSE_UPDATED",q))};
_.g.getWatchNextResponse=function(){return this.watchNextResponse};
_.g.registerActionHandler=function(q,N){var b=this;if(_.x("web_watch_controller_reg_multiple_handlers_killswitch")){var y={};_.EX(_.JD.getInstance(),(y[q]=N,y),this.getRoot())}else this.actionHandlers.has(q)||(this.actionHandlers.set(q,[]),y={},_.EX(_.JD.getInstance(),(y[q]=function(){var J=_.MB.apply(0,arguments);return(b.actionHandlers.get(q)||[]).map(function(E){return E.apply(null,_.a9(J))})},y),this.getRoot())),this.actionHandlers.get(q).push(N)};
_.g.unregisterActionHandler=function(q){if(_.x("web_watch_controller_reg_multiple_handlers_killswitch")){var N={};_.gI(_.JD.getInstance(),(N[q]=!0,N),this.getRoot())}else(N=this.actionHandlers.get(q))?(N.pop(),N.length===0&&(N={},_.gI(_.JD.getInstance(),(N[q]=!0,N),this.getRoot()),this.actionHandlers.delete(q))):_.M6(new _.IO("Attempted to unregister an action handler which is not registered.",q))};
_.g.addPageDisposeJob=function(q){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.KdD(this.rootElement.pageDisposeJobs,q)};
_.g.removePageDisposeJob=function(q){this.rootElement.pageDisposeJobs&&_.WA(this.rootElement.pageDisposeJobs,q)};
_.g.dispatchEvent=function(q,N){_.e2(this.rootElement,q,N)};
_.g.provideRenderingData=function(q,N){this.rootElement.provideRenderingData(q,N)};
_.g.scrollWatchTo=function(q,N){var b;(b=this.watchScrollManager)==null||b.scrollWatchTo(q,N)};
_.g.focusOnPlayer=function(){var q=this.getElement("PLAYER");_.ut(q,function(){if(q&&q.firstElementChild){var N=q.querySelector(".html5-video-player");N&&(_.r2(_.tz().resolve(_.$P)),N.focus())}else _.M6(Error("ep"))})};
var enB=function(q){var N=!!q.rootElement.theater,b=!!q.rootElement.fullscreen,y;(y=q.watchCinematicManager)==null||_.voe(y,b,N)};
_.g=ANx.prototype;_.g.subscribeToActiveChanged=function(q,N){N=N===void 0?!0:N;var b=_.aM(_.WT(),pPe,function(y){q(y)});
N&&q(pPe(_.WT().getState()));return b};
_.g.isActive=function(){return pPe(_.WT().getState())};
_.g.onAttached=function(){var q=_.x("external_fullscreen");_.x("use_unified_flag_accessor")&&(q=_.tz().resolve(_.nZA).retriever.getFlag(_.iYR));(q||_.ou("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.g.initPersistentModules=function(){if(_.x("kevlar_watch_flexy_theater_manager")){var q=new _.A8v(this);_.YN(this,q)}q=new _.Iie(this);_.YN(this,q);q=new _.Kl(this);_.YN(this,q);q=new _.h27(this);_.YN(this,q);q=new _.fl(this);_.YN(this,q);q=new _.De(this);_.YN(this,q);_.x("kevlar_watch_flexy_playlist_manager")&&(q=new _.mRs(this),_.YN(this,q))};
_.g.initOrDisposeActiveModules=function(q){q?(this.watchScrollManager=new _.Cl(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Hre(this)),this.activeModules.push(new _.oHZ(this)),this.activeModules.push(new _.vRh(this)),this.activeModules.push(new _.p3_(this)),_.x("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.qeB(this)),this.activeModules.push(new _.ER7(this)),_.x("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.YRh(this)),
_.x("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.cee(this)),_.x("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.mcs(this),this.activeModules.push(this.watchCinematicManager),enB(this)),_.x("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.RSx(this)),_.x("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.UcB(this)),q=_.x("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.x("kevlar_watch_flexy_comments_manager")&&
!q&&this.activeModules.push(new _.w3B(this)),_.x("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.$Ps(this)),this.activeModules.push(new _.yeB(this)),this.activeModules.push(new _.N3x(this)),_.x("web_enable_timely_actions")&&this.activeModules.push(new _.Zr7(this)),_.x("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.lZB(this)),_.x("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.j$X(this)),_.x("web_fullscreen_components")&&
this.activeModules.push(new _.EU7(this)),_.x("web_player_rtr_ctrls")&&this.activeModules.push(new _.DPl(this))):(_.dE(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.g.disposeInternal=function(){_.FG.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.$H.Object.defineProperties(ANx.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var B57={},H9x=["learning-journey-engagement-panel","PAlearning_chat"];
B57.YtdLearningJourneyWatchBehavior=[_.e.YtRendererBehavior,_.d2.YtPlayerListenerBehavior,_.rT.YtRendererstamperBehavior,_.Dc.YtActionHandlerBehavior,_.Jp.YtPageBehavior,_.KV.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 _.ou("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.x("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 _.ou("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 _.x("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.x("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 _.VX("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.VX("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 _.x("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 _.x("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("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 _.x("web_watch_rounded_player_large")||_.x("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 _.x("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.x("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("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 _.x("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("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:_.I8(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.I8(["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 q=this;this.watchController=void 0;this.pageDisposeJobs=[function(){q.showMetadataPlaceholder_()},
function(){_.x("web_watch_dont_clear_comments")||q.clearComments_()},
function(){q.clearPlayerAds_()},
function(){q.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;_.x("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.x("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new _.GMc(function(){return _.p6(q)},
this.hostElement);
this.pageDisposeJobs.push(function(){q.youThereManager_.reset()});
_.x("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){q.resetFullerscreenEduButtonForNewPlayback_()}));
_.x("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.XK;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;_.x("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.x("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));_.x("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.gq(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(q){q&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:q}),q.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(q){_.x("kevlar_watch_flexy_theater_manager")&&(this.theater=q,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.x("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(q){!_.x("kevlar_watch_while_v2")&&!_.x("web_watch_pip")||q||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(q){this.active!==void 0&&(this.fullscreen=q,_.x("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(q){this.active!==void 0&&(_.e2(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.x("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.x("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(q>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(q){this.initCsi_();this.updatePageData_(q)},
updatePageData_:function(q){var N=this;if(q)if(this.data===q){this.onPageLoadWithSameData_();var b;(b=this.watchController)==null||b.setWatchNextResponse(this.data)}else this.data=q;this.playlist&&_.v3({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Q6("nw");this.loading=!1;_.Ip(_.pY,function(){N.initDclkstatus_();var y,J=((y=N.player)==null?void 0:y.getVideoData().cpn)||"";_.FlX(function(E,F){_.x9C(E,F,J)})})},
onPageLoadWithSameData_:function(){_.x("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 q=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!q);this.set("loadingData.playlistLoading",q&&q!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),q=this.watchNextSkeletonEl_.firstElementChild;q;)q.classList.remove("hidden"),q=q.nextElementSibling;var N,b,y;q=(N=this.loadingData)==null?void 0:(b=N.endpoint)==null?void 0:(y=b.watchEndpoint)==null?void 0:y.videoId;var J;q&&(J="https://i.ytimg.com/vi/"+q+"/frame0.jpg");_.ee(this.hostElement).querySelector("#player").style.backgroundImage=J?"url("+J+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var q=_.ee(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&q&&(q.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var N,b;(b=(N=this.watchMetadata).updateSentimentBarWidth)==
null||b.call(N);var y,J;(J=(y=this.watchMetadata).resize)==null||J.call(y)}_.ee(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(q){var N=_.ee(this.hostElement).querySelector(q);N?_.o$(N,!1):_.M6(new _.IO("Overscroll monitor not found for component: ",q))},
removeSplitScrollMouseTrap:function(q){var N=_.ee(this.hostElement).querySelector(q);N?_.A8(N):_.M6(new _.IO("Disposal component for  overscroll monitoring not found: ",q))},
onLoadingChanged_:function(q){q?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(q){var N=this;q?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.pY.addLowPriorityJob(function(){N.onWindowResized_(_.cP(!0))})},
updateTheaterModeState_:function(q){if(!_.x("kevlar_watch_flexy_theater_manager")){q=q||this.fullWindowMode_;if(this.theater!==void 0||q)this.theater=q;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();q&&_.rVh()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var q=this.theater;_.x("external_fullscreen")&&this.fullscreen&&(q=!0);q=q?_.ee(this.hostElement).querySelector("#player-full-bleed-container"):_.ee(this.hostElement).querySelector("#player-container-inner");var N=this.getPlayerContainer(),b=_.x("kevlar_watch_while_v2")||_.x("web_watch_pip");N.parentElement!==q&&(b&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.p6(this).appendTo(q,N),q.appendChild(_.ee(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var q=this;return _.d(function(N){if(N.nextAddress==1)return N.yield(_.tz().resolve(_.l9).deactivate(),2);q.updatePlayerLocation();_.hj(N)})},
updateCinematicsLocation:function(){var q=this.getElement("CINEMATICS");if(q){var N=this.getCinematicsLocationContainer();q.parentElement!==N&&N.appendChild(q);var b;(b=this.watchController)==null||enB(b)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.ee(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.ee(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(q,N){var b=document.documentElement.hasAttribute("dark"),y=!b&&this.cinematicLightTheme;return q&&b||N&&b||(N||q)&&y},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var q;(q=this.watchController)==null||q.setWatchNextResponse(this.data);_.x("kevlar_watch_flexy_comments_manager")||this.initComments_();_.x("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.tz().resolve(_.F2).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.x("web_watch_start_chat_in_theater_mode")){var N,
b,y;if((N=this.data)==null?0:(b=N.contents)==null?0:(y=b.twoColumnWatchNextResults)==null?0:y.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var J,E;((J=this.data)==null?0:(E=J.contents)==null?0:E.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(q){var N;(N=this.watchController)==null||N.setPlayerResponse(this.playerData);q&&q.playabilityStatus&&(N=this.isVideoPlayable_(q.playabilityStatus,this.getPlayerOverlays_(this.data)),q=this.isLiveStreamOffline_(q.playabilityStatus),N&&!q||_.ut(this,function(){_.Q6("pbu")}));
this.setPlayerAds_();_.Hy(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(q){_.WT().dispatch(_.B3({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));q?this.activate_():this.deactivate_()},
attached:function(){var q=this;this.watchController=new ANx(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.x("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var N=_.p6(this);_.x("kevlar_disable_prepare_player")||N.preparePlayer();_.x("kevlar_watch_flexy_playlist_manager")||_.tz().resolve(_.F2).setPlayer(N);this.updatePageMediaQueries();N={"--ytd-watch-flexy-scrollbar-width":_.ph()+
"px"};!_.VX("kv_pl_mx_sz_ks")&&_.VX("kevlar_watch_max_player_width")&&(N["--ytd-watch-flexy-max-player-width-wide-screen"]=_.cSB+"px");_.VX("kevlar_watch_flexy_metadata_height")&&(N["--ytd-watch-flexy-space-below-player"]=_.ulx+"px");this.safeUpdateStyles(N);_.x("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new o8X(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return q.onPlayerTouchPanDown_()}}));
_.x("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.ee(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var q=_.ph(),N=_.Cj+q,b=N;this.fixedPanels&&(N+=_.dmy);var y=657+q;q=1327+q;_.ee(this.hostElement).querySelector("#two-column-query").query="(min-width: "+N+"px)";_.ee(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(y+"px), (min-height: 630px) and (min-width: ")+(N+"px) and (max-width: ")+(q+"px)");_.ee(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(q+"px)");
_.ee(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+b+"px)"},
calculateCurrentPlayerSize_:function(){var q=_.ee(this.hostElement).querySelector("#miniplayer-bar").firstChild;return q&&q.active||this.theater||_.x("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.l3(NaN,NaN):_.znc(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.znc(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.RA(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var q=this;this.onWindowResized_(_.cP());_.x("browse_skeleton_removal_on_watch_killswitch")||_.ou("IS_SHELL_LOAD")&&_.gic();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var N=_.p6(this);N.addEventListener("yt-player-updated",_.gq(this,this.onPlayerUpdated_));N.getPlayerPromise().then(function(b){q.playerApiReady_(b)});
_.x("kevlar_watch_flexy_playlist_manager")||(N=_.tz().resolve(_.F2),_.x("kevlar_watch_observe_playlist_navigations_killswitch")&&N.addEventListener("yt-navigate",_.gq(this,this.onYtNavigate_)),N.setPlaylistComponent(_.ee(this.hostElement).querySelector("#playlist")),N.addEventListener("yt-playlist-data-updated",_.gq(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.pY.addLowPriorityJob(function(){_.e2(q.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.p6(this).removeEventListener("yt-player-updated",_.gq(this,this.onPlayerUpdated_));if(!_.x("kevlar_watch_flexy_playlist_manager")){var q=_.tz().resolve(_.F2);_.x("kevlar_watch_observe_playlist_navigations_killswitch")&&q.removeEventListener("yt-navigate",_.gq(this,this.onYtNavigate_));q.cancelVideoSkip();q.removeEventListener("yt-playlist-data-updated",_.gq(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.x("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.e2(this.hostElement,"yt-autonav-pause-player",!1);q=_.Py();_.x("kevlar_exit_fullscreen_leaving_watch")&&q&&_.MP(q)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(q){this.player&&this.player.updateVideoData({rvs:q.rvs})},
getPageContents:function(q){return q&&q.contents&&q.contents.twoColumnWatchNextResults&&q.contents.twoColumnWatchNextResults.results&&q.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(q){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",q)},
onRetrieveLocation_:function(q,N){N.hasComments?N.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):N.locationRetrieved("/related_ajax",void 0);q.stopPropagation()},
onSubscriptionChanged_:function(q,N){this.player&&(N?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.tFX("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.ee(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.ee(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(q){this.player=q;this.setPlayerState(q.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.x("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.x("kevlar_unified_player")||_.x("kevlar_player_new_bootstrap_adoption"))&&_.kA()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(q,N){N=N===void 0?!0:N;_.Py()&&_.x("external_fullscreen")&&_.MP(document.documentElement);this.theaterRequested_=q;N&&_.kf("wide",q?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.x("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.By(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.e2(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(q){_.op(q,typeof this.player),this.player&&_.op(q,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var q;((q=this.player)==null?0:q.isFullscreen())?this.player.toggleFullscreen():_.By(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(q,N){return this.loading?N:!!Object.keys(q).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(q){if(q){q=_.Z(q);for(var N=q.next();!N.done;N=q.next())N=N.value,N.youThereRenderer&&_.O9e(this.youThereManager_,N.youThereRenderer)}},
setPlaylistData_:function(q){return q||{}},
userEngagementConfigDataChanged_:function(q){if(q)if(q.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var N=this.youThereManager_;_.tr()<q.lowEngagementThresholdMs||_.KlB(N,!0)}else q.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.By(this.hostElement,"yt-autonav-pause-user-engagement",[q])},
isPlayerUnavailable_:function(q,N,b){return!!q&&!this.isVideoPlayable_(q,b)&&!N},
getPlayerOverlays_:function(q){return(q==null?void 0:q.playerOverlays)||null},
isVideoPlayable_:function(q,N){if(!q)return!1;var b=q.status==="OK"||q.status==="LIVE_STREAM_OFFLINE",y=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",q)||this.get("errorScreen.ypcTrailerRenderer",q);q=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",q);var J;N=N==null?void 0:(J=N.playerOverlayRenderer)==null?void 0:J.gatedActionsOverlayRenderer;return!!b||!!y||!!q||!!N},
hasWatchNextResponseErrorRenderer:function(q){var N=this.getPageContents(q),b,y,J,E,F;return!(q==null?0:(b=q.contents)==null?0:(y=b.twoColumnWatchNextResults)==null?0:y.secondaryResults)&&!!((J=N[0])==null?0:(E=J.itemSectionRenderer)==null?0:(F=E.contents[0])==null?0:F.backgroundPromoRenderer)},
isLiveStreamOffline_:function(q){return q?q.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(q,N,b){var y=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",N),J=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];J=_.x("web_no_skip_video_on_verification_checks")?(q==null?void 0:q.status)&&J.includes(q.status):q&&q.status==="AGE_CHECK_REQUIRED";var E=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",q);E==void 0&&(E=!0);!b||this.isVideoPlayable_(q,this.getPlayerOverlays_(N))||
y||J||!E||_.tz().resolve(_.F2).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.teZ()},
onPlayerFeedbackStartRequest_:function(q){_.By(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:q}])},
onPlayerFeedbackArticleRequest_:function(q){_.By(this.hostElement,"yt-help-dialog-requested",[q])},
onPlayerYpcContentRequest_:function(){var q,N,b,y,J,E,F,R,c=((q=this.data)==null?NaN:(N=q.contents)==null?NaN:(b=N.twoColumnWatchNextResults)==null?NaN:(y=b.secondaryResults)==null?NaN:(J=y.secondaryResults)==null?NaN:(E=J.offerModule)==null?NaN:(F=E.tvfilmOfferModuleRenderer)==null?NaN:(R=F.actionButtons)==null?NaN:R.length)-1;q=[".offerButton.buttonRenderer.",".actionButtons."+(c>=0?c:0)+".buttonRenderer."];N=_.Z(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(b=N.next();!b.done;b=N.next())for(b=b.value,y=_.Z(q),J=y.next();!J.done;J=y.next())if(J="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+b+J.value,J=this.get(J+"navigationEndpoint",this.data)||this.get(J+"serviceEndpoint",this.data)||this.get(J+"command",this.data)){_.yI(J,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(q){_.e2(this.hostElement,"yt-autonav-pause-player",q)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(q){q()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(q){switch(q){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(q){switch(q){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.e2(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(q)},
setPlayerState:function(q){_.WT().dispatch(_.Zdx(q))},
onPlayerSubscribe_:function(q){_.By(this.hostElement,"yt-player-subscribe",[q])},
onPlayerUnsubscribe_:function(q){_.By(this.hostElement,"yt-player-unsubscribe",[q])},
onPlayerAdYtShowToast_:function(q){_.By(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:q.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(q){if(q)return q},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(q){return!_.x("web_watch_move_summary_to_sd")&&!!q},
computeWatchMetadataRefresh:function(){return _.x("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var q,N,b,y;this.watchNextSecondaryResults=(q=this.data)==null?void 0:(N=q.contents)==null?void 0:(b=N.twoColumnWatchNextResults)==null?void 0:(y=b.secondaryResults)==null?void 0:y.secondaryResults}},
setRichGridRendererData:function(q){this.richGridRendererData=q},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var q,N=(q=this.data)==null?void 0:q.engagementPanels;if(N==null?0:N.length){q=null;N=_.Z(N);for(var b=N.next();!b.done;b=N.next()){b=b.value;var y=void 0;if(((y=b.engagementPanelSectionListRenderer)==null?void 0:y.targetId)==="engagement-panel-structured-description"){q=b;break}}var J,E,F;q=(J=q)==null?void 0:(E=J.engagementPanelSectionListRenderer)==null?void 0:(F=E.content)==null?void 0:F.structuredDescriptionContentRenderer;if(q==null?0:q.items){J=
[];E=_.Z(q.items);for(F=E.next();!F.done;F=E.next()){F=F.value;if(!_.x("sd_horizontal_list_show_nav_killswitch")){var R=y=b=N=q=void 0,c=void 0,z=(q=F.horizontalCardListRenderer)==null?void 0:(N=q.header)==null?void 0:(b=N.richListHeaderRenderer)==null?void 0:(y=b.navigationButton)==null?void 0:(R=y.buttonRenderer)==null?void 0:(c=R.command)==null?void 0:c.commandExecutorCommand;z&&z.commands&&(z.commands=z.commands.filter(function(m){return!_.v(m,_.O4x)}))}F.expandableVideoDescriptionBodyRenderer||
F.videoDescriptionHeaderRenderer||J.push(F)}return{items:J}}}},
constructWarning_:function(q){return{text:_.nD(q),type:"WARNING"}},
isPlaShelfEnabled_:function(q){if((this.get("adPlacements",q)||[]).length)return!0;q=this.get("playerAds",q)||[];return!(!q.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",q[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var q=this;_.e2(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.x("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var N=this.getScrollTop()>0;this.gestures_&&(N?this.gestures_.detach():this.gestures_.attach());N!==this.showFullerscreenEdu_&&_.x("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=N,_.p6(this).getPlayerPromise().then(function(b){b.updateFullerscreenEduButtonVisibility(q.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.e2(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var q=this;this.commentsReady=!1;_.pY.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Ip(_.pY,function(){q.setComments_()},1E3)},
setComments_:function(){if(!_.x("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Q6("cmi");_.pY.cancelJob(this.setCommentsJobId_);var q=this.getPageContents(this.data);if(q&&q.length){q=_.Z(q);for(var N=q.next();!N.done;N=q.next())if(N=N.value,this.get("itemSectionRenderer.sectionIdentifier",N)==="comment-item-section"){this.comments=N.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.e2(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.x("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.x("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Q6("cmc")},
doRemoveComments_:function(){this.comments={};_.x("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.pY.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.pY.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(q,N){var b=_.v(N.endpoint,_.nx);b&&(!(N=this.get("data.currentVideoEndpoint.watchEndpoint"))||b.videoId!==N.videoId||b.playlistId&&b.playlistId!==N.playlistId||b.index!==void 0&&b.index!==N.index||typeof b.startTimeSeconds!=="number"||(q.stopPropagation(),this.setScrollTop(0),_.p6(this).getPlayerPromise().then(function(y){var J=b.startTimeSeconds;y.seekTo(J);y.wakeUpControls();J<y.getDuration()&&y.playVideo()})))},
updatePlayerStartTime_:function(){var q=_.HDy();"t"in q&&(q=_.$KB(q.t),this.player.seekTo(q,!0))},
updateTitleFromWatchNext:function(q){q=this.getPageContents(q);var N,b;(q=_.ao(q==null?void 0:(N=q[0])==null?void 0:(b=N.videoPrimaryInfoRenderer)==null?void 0:b.title))&&_.e2(this.hostElement,"yt-update-title",q)},
updateTitle_:function(q){q=this.get("videoDetails.title",q)||"";_.e2(this.hostElement,"yt-update-title",q)},
syncWithRemoteVideo_:function(q,N,b){if(this.active&&this.player){var y=this.player.getVideoData();if(y.video_id===b&&(b=y.list,_.x("polymer_enable_mdx_queue")&&b&&b.startsWith("RQ")&&(b=void 0),y.video_id!==q||b!=N)){var J;_.x("kevlar_player_watch_endpoint_navigation")?J=_.a8D(_.RnB(q,N)):J=this.buildWatchEndpoint_(q,N);_.e2(this.hostElement,"yt-navigate",{endpoint:J,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(q,N,b){return _.Mc(q,N,b)},
initDclkstatus_:function(){_.uH_()},
attachWatchPageSkeleton_:function(){var q=document.querySelector("#watch-page-skeleton");if(q){var N=q.querySelector("#primary-info"),b=q.querySelector("#secondary-info"),y=q.querySelector("#related");N&&_.ee(this.hostElement).querySelector("#info-skeleton").appendChild(N);b&&_.ee(this.hostElement).querySelector("#meta-skeleton").appendChild(b);y&&(_.ee(this.hostElement).querySelector("#related-skeleton").appendChild(y),this.watchNextSkeletonEl_=y);_.lC(q)}},
handlePlayerUpdated_:function(){_.p6(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(q,N){if(this.watchNextSkeletonEl_&&typeof N!=="undefined"){var b=this.watchNextSkeletonEl_.children,y=q&&q.indexSplices.length?q.indexSplices[0].index:0;q=Math.min(this.watchNextShownItems.length,b.length);N||(y=0,q=b.length);for(N=y;N<q;N++)b[N].classList.add("hidden")}},
onPlayerFullscreenChange_:function(q){_.x("external_fullscreen")||_.By(this.hostElement,"yt-player-fullscreen",[q.fullscreen])},
onFullscreenChange_:function(q){this.fullscreen=q;this.gestures_&&this.gestures_.update(this.fullscreen);var N=_.p6(this);N.getPlayerPromise().then(function(b){b.setFauxFullscreen(!!_.Py())});
this.updateFullBleedElementLocations();q&&(N.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(q,N){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!N},
computeIsDonationShelfCollapsed_:function(q){return q},
computeShouldShowMerchShelf:function(q,N){return N&&!!q},
computeResponseHasComments:function(q){var N,b,y,J,E;return!!(q==null?0:(N=q.contents)==null?0:(b=N.twoColumnWatchNextResults)==null?0:(y=b.results)==null?0:(J=y.results)==null?0:(E=J.contents)==null?0:E.some(function(F){var R;return(F==null?void 0:(R=F.itemSectionRenderer)==null?void 0:R.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(q,N){this.responseHasComments=this.computeResponseHasComments(this.data);return!!q&&!!Object.keys(q).length&&!N},
identity:_.CC,onWindowResized_:function(q){this.windowSize_=q;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.x("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.x("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(q){var N=this;q&&q.type!=="dataloaded"&&q.type!=="dataupdated"||_.p6(this).getPlayerPromise().then(function(b){var y=b.getPlayerState();y!==5&&y!==0&&(b=1/b.getVideoAspectRatio(),N.videoHeightToWidthRatio_!==b&&(N.videoHeightToWidthRatio_=b))})},
schedulePlayerSizeUpdate_:function(q){var N=this,b=_.x("kevlar_watch_while_v2")||_.x("web_watch_pip"),y=function(){if(N.watchMetadata){var J,E;(E=(J=N.watchMetadata).resize)==null||E.call(J)}_.p6(N).getPlayerPromise().then(function(F){if(_.x("kevlar_set_internal_player_size")){if(!b||!N.isMiniplayerActive()){var R=N.calculateCurrentPlayerSize_();F.setInternalSize(R.width,R.height)}}else F.setSize(NaN,NaN);_.x("kevlar_watch_while")&&N.updateWatchWhileScrollThreshold_()})};
q?y():_.ZQ(_.pY,y)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(q){this.set("data.survey",q.detail)},
onYtShowSurveyCommand_:function(q){this.set("data.survey",_.v(q,_.v8Z).survey)},
onDownloadedVideoDeleted:function(q){var N=this,b,y;return _.d(function(J){if(J.nextAddress==1){if(!N.active||(b=N.playerData)==null||!b.offlineState||N.videoId!==q)return J.return();(y=N.player)==null||y.stopVideo();_.sM().navigatingAwayFromWatchDeletedVideo=!0;_.yI(_.AcA,N.hostElement);return J.yield(_.sM().navigationFinishPromise,2)}_.sM().navigatingAwayFromWatchDeletedVideo=!1;_.hj(J)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var q;this.theater?q=_.Od(.5625*this.windowSize_.width,480,this.windowSize_.height-185):q=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==q&&(this.watchWhileScrollThreshold_=q,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var q=_.ee(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&q){var N=this.windowSize_.height>=624,b=this.active?this.getScrollTop():0;!q.active&&N&&b>=this.watchWhileScrollThreshold_?(q.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):q.active&&(!N||b<this.watchWhileScrollThreshold_&&!_.Py())&&(q.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(q,N){if(q!==!0||N!==void 0){q=!_.x("live_chat_over_engagement_panels");N=_.ee(this.hostElement).querySelector("#chat-container");var b=_.ee(this.hostElement).querySelector("#plj-sidebar"),y=_.ee(this.hostElement).querySelector("#panels"),J=_.ee(this.hostElement).querySelector("#plj-panels"),E=_.ee(this.hostElement).querySelector("#plj-playlist"),F=_.ee(this.hostElement).querySelector("#alerts"),R=_.ee(this.hostElement).querySelector("#playlist"),c=_.ee(this.hostElement).querySelector("#related"),
z=_.ee(this.hostElement).querySelector("#donation-shelf"),m=_.ee(this.hostElement).querySelector("#comments");this.isTwoColumns_?(F=_.ee(this.hostElement).querySelector("#secondary-inner"),F.appendChild(b),b.appendChild(E),E.appendChild(R),b.appendChild(J),q&&F.appendChild(y),_.x("web_watch_theater_chat")||F.appendChild(N),q||F.appendChild(y),F.appendChild(z),F.appendChild(c)):(q&&_.hx(y,F),_.hx(R,F),_.x("web_watch_theater_chat")||_.hx(N,F),q||_.hx(y,F),_.hx(z,F),m&&(J&&_.hx(J,m),_.hx(c,m)));_.x("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.x("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.x("web_watch_theater_chat")){var q=_.ee(this.hostElement).querySelector("#chat-container"),N=this.theater&&!this.fullscreen||_.x("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&N?_.x("web_watch_theater_chat_beside_player")?(N=_.ee(this.hostElement).querySelector("#panels-full-bleed-container"),(q==null?void 0:q.parentElement)!==N&&N.append(q),this.panelsBesidePlayer=!0):_.x("web_watch_theater_fixed_chat")&&
(N=_.ee(this.hostElement).querySelector("#columns"),(q==null?void 0:q.parentElement)!==N&&N.append(q),this.fixedPanels=!0):(_.x("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.x("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),N=_.ee(this.hostElement).querySelector("#playlist"),q&&N?_.k_(q,N):_.M6(new _.IO("Missing element when updating chat location",{"chatContainer defined":!!q,"playlist defined":!!N})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(q,N){return _.x("sw_metadata_vis_toggle_ks")?!0:!!q||!!N},
computeForceDarkPanelTheme:function(q){return _.x("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&q:!1},
safeUpdateStyles:function(q){try{_.Jm(this.hostElement,q)}catch(N){_.M6(N)}},
videoHeightToWidthRatioChanged_:function(q,N){N&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.x("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(q){this.videoHeightToWidthRatio_=1/q},
computeIsVerticalVideo_:function(q){return q>=1},
computeIsFourThreeToSixteenNineVideo_:function(q){return q<=.7501&&q>=.5624},
computeIsExtraWideVideo_:function(q){return q<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.p6(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.p6(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.DKe(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(q){var N=_.XH(q)||0;_.r5(q,N+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var q=_.XH("yt-fullerscreen-edu-button-click-count")||0,N=_.XH("yt-fullerscreen-edu-button-shown-count")||0,b=_.VX("external_fullscreen_button_shown_threshold"),y=q>=_.VX("external_fullscreen_button_click_threshold")||N>=b;_.p6(this).getPlayerPromise().then(function(J){J.updateFullerscreenEduButtonSubtleModeState(y)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(q,N){return N},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.tz().resolve(_.F2).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var q=this;this.panelMaxHeightUpdateJob_&&_.pY.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.pY.addLowPriorityJob(function(){q.panelMaxHeightUpdateJob_=0;var N;!q.isTwoColumns_||q.theater||q.fullscreen?N=460:N=q.calculateNormalPlayerSize_().height;var b=N+"px";_.x("live_chat_taller_height")&&!q.theater&&(b="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.x("live_chat_medium_height")&&
!q.theater&&(b="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.x("live_chat_scaled_height")&&!q.theater&&(b="calc(100vh - var(--ytd-toolbar-height) - 238px)");q.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":N+"px","--ytd-watch-flexy-chat-max-height":b,"--ytd-watch-flexy-structured-description-max-height":N+"px","--ytd-watch-flexy-comments-panel-max-height":N+"px","--ytd-comments-engagement-panel-content-height":N+"px"})})},
onYtShowEngagementPanelScrimAction_:function(q){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",q)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Nc(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(q){var N=_.ee(this.hostElement).querySelector("#engagement-panel-scrim");q?N.addEventListener("tap",_.gq(this,this.onEngagementPanelScrimClick_)):N.removeEventListener("tap",_.gq(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(q){if(this.hostElement.contains(q)&&!this.scrollToAnimation_.isAnimating()){var N=q.offsetTop-24;q=q.offsetTop+q.offsetHeight+24;var b=this.getPageScrollingElement(),y=this.getScrollTop(),J=y+b.clientHeight-56;if(N<y+56)N-=56;else if(q>J)N=q-b.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,N),500)}},
onYtSignalActionScrollToComments:function(){var q=this.hostElement.querySelector("#comments");if(q&&!this.scrollToAnimation_.isAnimating()){q=q.offsetTop-56-24;if(_.x("kevlar_comment_teaser_scroll_to_midpoint")&&(q-=_.KM().height/3,q<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,q),500)}},
onYtEngagementPanelVisibleChanged:function(q,N,b){this.active&&this.trackEngagementPanelVisibility&&!_.j0X.includes(b)&&(N==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(b),N!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&N!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(b),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(q){return q?"":"watch-active-metadata"},
computeNewMetadataClass:function(q){return q?"watch-active-metadata":""},
computeFullBleedPlayer:function(q,N){return q||N},
computeDefaultLayout:function(q){return!q},
computeDefaultTwoColumnLayout:function(q,N){return!q&&N},
computeWatchWhilePanelsActive:function(q,N){return q||N},
computeNoBorderOnChat:function(q){return _.x("web_watch_theater_chat_no_border")&&q},
computeLiveChatPresentAndExpanded:function(q,N){return q&&!N},
computePanelExpanded:function(q,N,b){return q||N||b},
onChangeMarkersVisibility:function(q){_.p6(this).getPlayerPromise().then(function(N){var b;(b=N.changeMarkerVisibility)==null||b.call(N,_.v(q,_.Ws).isVisible||!1,_.v(q,_.Ws).entityKeys||[],_.v(q,_.Ws).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(q){this.liveChatCollapsed=q.detail;_.WT().dispatch(_.Veh(q.detail))},
provideRenderingData:function(q,N){switch(q){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=N;break;case "PRIMARY_INFO":_.x("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=N);this.videoPrimaryInfoRendererValue=N==null?void 0:N.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.x("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=N);this.videoSecondaryInfoRendererValue=N==null?void 0:N.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
N;break;case "CLARIFICATION":this.clarifyBoxValue=N;break;case "LIVE_CHAT":this.conversationBar=N;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=N;break;case "PLAYLIST":this.externalPlaylistData_=N!=null?N:{};break;case "MERCH_SHELF":this.merchShelfValue=N==null?void 0:N.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=N;break;case "OFFER_MODULE":this.offerModule=N;break;case "LIMITED_STATE":this.limitedStateValue=N;break;case "DONATION_SHELF":this.donation=N;break;
case "ALERTS":this.alertsValue=N;break;case "COMMENTS":this.comments=N;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=N;break;case "ENGAGEMENT_PANELS":this.engagementPanels=N;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=N;break;case "RICH_GRID_RENDERER":this.richGridRendererData=N;break;case "EXPANDABLE_METADATA":this.expandableMetadata=N;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=N}},
toggleCinematicsActive:function(q){this.cinematicsActive=q},
isMiniplayerActive:function(){return _.tz().resolve(_.l9).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(q){return H9x.map(function(N){return q.find(function(b){var y;return(b==null?void 0:(y=b.engagementPanelSectionListRenderer)==null?void 0:y.targetId)===N})}).filter(function(N){return N!==void 0})},
getNonLearningJourneyEngagementPanels:function(q){return q.filter(function(N){var b;return!H9x.includes((N==null?void 0:(b=N.engagementPanelSectionListRenderer)==null?void 0:b.targetId)||"")})}}];var qks;var Hs=function(){var q=_.C.apply(this,arguments)||this;q.flexy=!0;q.learningJourney=!0;q.viewTransitionEnabled=_.x("enable_player_resize_transition");q.smallerChatMinHeight=_.x("live_chat_smaller_min_height");q.isDarkTheme=document.documentElement.hasAttribute("dark");q.theaterLargerPlayer=_.x("web_watch_theater_larger_player");q.defaultCollapsePlaylist=_.x("web_watch_default_collapse_playlist");q.enableCanvasLayout=_.x("web_enable_canvas_on_learning_journey");return q};
_.Y(Hs,_.C);_.g=Hs.prototype;_.g.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.g.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.g.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.g.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.g.ready=function(){var q=this,N=function(){q.onColumnScroll()};
this.primary.addEventListener("scroll",N);this.secondary.addEventListener("scroll",N)};
_.g.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.g.updateIsTwoColumnsFromBinding=function(q){_.x("web_watch_update_narrow_width_killswitch")||_.WT().dispatch(_.VA7(!q.detail.value));this.ytdWatchBehavior.isTwoColumns_=q.detail.value};
_.g.updateFlexySmallWindowFromBinding=function(q){this.ytdWatchBehavior.flexySmallWindow_=q.detail.value};
_.g.updateFlexyLargeWindowFromBinding=function(q){this.ytdWatchBehavior.flexyLargeWindow_=q.detail.value};
_.g.updateWatchWhileWindowSizeSufficientFromBinding=function(q){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=q.detail.value};
_.g.updateWatchNextCanShowMoreFromBinding=function(q){this.ytdWatchBehavior.watchNextCanShowMore=q.detail.value};
_.g.updateShownItemsFromBinding=function(q){q.detail.path?this.set(q.detail.path,q.detail.value):this.ytdWatchBehavior.watchNextShownItems=q.detail.value};
_.g.getElement=function(q){switch(q){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23646_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23646_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.$H.Object.defineProperties(Hs.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 q;if((q=this.data)==null||!q.pageVisualEffects)return!1;for(var N=0;N<this.data.pageVisualEffects.length;N++)if(q=_.v(this.data.pageVisualEffects[N],_.Ns))return N=void 0,(N=q.config)==null?void 0:N.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.learningJourneyEngagementPanels)==null?void 0:q.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var q,N=(q=this.learningJourneyEngagementPanels)==null?void 0:q.find(function(X){var V;return(X==null?void 0:(V=X.engagementPanelSectionListRenderer)==null?void 0:V.panelIdentifier)==="learning-journey-engagement-panel"});
if(N){var b,y,J,E,F,R,c,z,m;if(q=(z=((c=(F=((E=N==null?void 0:(b=N.engagementPanelSectionListRenderer)==null?void 0:(y=b.content)==null?void 0:(J=y.sectionListRenderer)==null?void 0:J.contents)!=null?E:[])[0])==null?void 0:(R=F.itemSectionRenderer)==null?void 0:R.contents)!=null?c:[])[0])==null?void 0:(m=z.accordionViewModel)==null?void 0:m.onTitleTap){var r=_.O_(q);if(r)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.bq.instance.resolveCommand(r)}}}}}}});
_.$H.Object.defineProperties(Hs,{template:{configurable:!0,enumerable:!0,get:function(){if(qks===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);qks=q}q=qks;return q}}});
Hs.prototype.updateMiniplayerIsActiveValue=Hs.prototype.updateMiniplayerIsActiveValue;Hs.prototype.updateScrollTopValue=Hs.prototype.updateScrollTopValue;Hs.prototype.updateFullscreenValue=Hs.prototype.updateFullscreenValue;Hs.prototype.updateTheaterValue=Hs.prototype.updateTheaterValue;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Hs.prototype,"ytComponentBehavior",void 0);
_.p([_.O(B57.YtdLearningJourneyWatchBehavior),_.P("design:type",Object)],Hs.prototype,"ytdWatchBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],Hs.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Hs.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Hs.prototype,"playerData",void 0);_.p([_.U(),_.P("design:type",Object)],Hs.prototype,"browseData",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Hs.prototype,"flexy",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Hs.prototype,"learningJourney",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Hs.prototype,"viewTransitionEnabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Hs.prototype,"smallerChatMinHeight",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Hs.prototype,"isDarkTheme",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Hs.prototype,"theaterLargerPlayer",void 0);_.p([_.U(),_.P("design:type",Object)],Hs.prototype,"defaultCollapsePlaylist",void 0);_.p([_.U(),_.P("design:type",Object)],Hs.prototype,"enableCanvasLayout",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("playerData","browseData","enableCanvasLayout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Hs.prototype,"showBrowseResponse",null);
_.p([_.U({reflectToAttribute:!0}),_.l("playerData","enableCanvasLayout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Hs.prototype,"showWatchResponse",null);_.p([_.U({selector:_.Q0}),_.P("design:type",Object)],Hs.prototype,"theaterValue",void 0);_.p([_.U({selector:_.Ol}),_.P("design:type",Object)],Hs.prototype,"fullscreenValue",void 0);_.p([_.U({selector:_.Kj}),_.P("design:type",Object)],Hs.prototype,"scrollTopValue",void 0);
_.p([_.U({selector:_.QU}),_.P("design:type",Object)],Hs.prototype,"miniplayerIsActiveValue",void 0);_.p([_.dq("#ytd-plj-player"),_.P("design:type",HTMLElement)],Hs.prototype,"ytdPlayer",void 0);_.p([_.dq("#playlist"),_.P("design:type",HTMLElement)],Hs.prototype,"JSC$23646_ytdPlaylistPanelRenderer",void 0);_.p([_.ZF("ytd-comments"),_.P("design:type",HTMLElement)],Hs.prototype,"ytdComments",void 0);_.p([_.dq("#primary"),_.P("design:type",HTMLElement)],Hs.prototype,"primary",void 0);
_.p([_.dq("#secondary"),_.P("design:type",HTMLElement)],Hs.prototype,"secondary",void 0);_.p([_.dq("#player-container"),_.P("design:type",HTMLElement)],Hs.prototype,"playerContainer",void 0);_.p([_.dq("#cinematics"),_.P("design:type",HTMLElement)],Hs.prototype,"JSC$23646_cinematics",void 0);_.p([_.FY("theaterValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Hs.prototype,"updateTheaterValue",null);
_.p([_.FY("fullscreenValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Hs.prototype,"updateFullscreenValue",null);_.p([_.FY("scrollTopValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Hs.prototype,"updateScrollTopValue",null);_.p([_.FY("miniplayerIsActiveValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Hs.prototype,"updateMiniplayerIsActiveValue",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hs.prototype,"cinematicLightTheme",null);_.p([_.U({reflectToAttribute:!0}),_.l("learningJourneyEngagementPanels"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hs.prototype,"hasLearningJourneyPanels",null);_.p([_.l("learningJourneyEngagementPanels"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hs.prototype,"backButtonData",null);_.p([_.I({is:"ytd-watch-learning-journey"})],Hs);_.qJ.registerService(_.jFu,Hs);
_.pF();
}catch(e){_._DumpException(e)}
try{
_.LF("Tm0L3c");
var n8B;var a4e;var SvZ=function(){return _.C.apply(this,arguments)||this};
_.Y(SvZ,_.C);_.p([_.I({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],SvZ);
_.a(SvZ,"ytd-ghost-comments-renderer",function(){if(a4e===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);a4e=q}q=a4e;return q},{mode:1});var Wlc;var LlB=function(){return _.C.apply(this,arguments)||this};
_.Y(LlB,_.C);_.p([_.I({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],LlB);
_.a(LlB,"ytd-ghost-watch-metadata-renderer",function(){if(Wlc===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);Wlc=q}q=Wlc;return q},{mode:1});var Bs=function(){var q=_.C.apply(this,arguments)||this;q.ghostGridRenderer={rows:6};q.smallerChatMinHeight=_.x("live_chat_smaller_min_height");q.darkerPanels=_.x("web_watch_darker_panels");q.isDarkTheme=document.documentElement.hasAttribute("dark");return q};
_.Y(Bs,_.C);_.g=Bs.prototype;_.g.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.g.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.g.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.g.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.g.ready=function(){var q=this,N=function(){q.onColumnScroll()};
this.primary.addEventListener("scroll",N);this.secondary.addEventListener("scroll",N)};
_.g.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.g.updateIsTwoColumnsFromBinding=function(q){this.ytdWatchBehavior.isTwoColumns_=q.detail.value};
_.g.updateFlexySmallWindowFromBinding=function(q){this.ytdWatchBehavior.flexySmallWindow_=q.detail.value};
_.g.updateFlexyLargeWindowFromBinding=function(q){this.ytdWatchBehavior.flexyLargeWindow_=q.detail.value};
_.g.updateWatchWhileWindowSizeSufficientFromBinding=function(q){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=q.detail.value};
_.g.updateWatchNextCanShowMoreFromBinding=function(q){this.ytdWatchBehavior.watchNextCanShowMore=q.detail.value};
_.g.updateShownItemsFromBinding=function(q){_.x("swatcheroo_direct_use_rich_grid")||(q.detail.path?this.set(q.detail.path,q.detail.value):this.ytdWatchBehavior.watchNextShownItems=q.detail.value)};
_.g.getElement=function(q){switch(q){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23634_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23634_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.$H.Object.defineProperties(Bs.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.pageVisualEffects)return!1;for(var N=0;N<this.data.pageVisualEffects.length;N++)if(q=_.v(this.data.pageVisualEffects[N],_.Ns))return N=void 0,(N=q.config)==null?void 0:N.enableInLightTheme;return!1}}});
Bs.prototype.updateMiniplayerIsActiveValue=Bs.prototype.updateMiniplayerIsActiveValue;Bs.prototype.updateScrollTopValue=Bs.prototype.updateScrollTopValue;Bs.prototype.updateFullscreenValue=Bs.prototype.updateFullscreenValue;Bs.prototype.updateTheaterValue=Bs.prototype.updateTheaterValue;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Bs.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Bs.prototype,"ytComponentBehavior",void 0);
_.p([_.O(_.T5e.YtdWatchBehavior),_.P("design:type",Object)],Bs.prototype,"ytdWatchBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],Bs.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Bs.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Bs.prototype,"ghostGridRenderer",void 0);_.p([_.U(),_.P("design:type",Object)],Bs.prototype,"playerData",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Bs.prototype,"smallerChatMinHeight",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Bs.prototype,"darkerPanels",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Bs.prototype,"isDarkTheme",void 0);_.p([_.U({selector:_.Q0}),_.P("design:type",Object)],Bs.prototype,"theaterValue",void 0);_.p([_.U({selector:_.Ol}),_.P("design:type",Object)],Bs.prototype,"fullscreenValue",void 0);_.p([_.U({selector:_.Kj}),_.P("design:type",Object)],Bs.prototype,"scrollTopValue",void 0);
_.p([_.U({selector:_.QU}),_.P("design:type",Object)],Bs.prototype,"miniplayerIsActiveValue",void 0);_.p([_.dq("#ytd-player"),_.P("design:type",HTMLElement)],Bs.prototype,"ytdPlayer",void 0);_.p([_.dq("#playlist"),_.P("design:type",HTMLElement)],Bs.prototype,"JSC$23634_ytdPlaylistPanelRenderer",void 0);_.p([_.dq("#ytd-comments"),_.P("design:type",HTMLElement)],Bs.prototype,"ytdComments",void 0);_.p([_.dq("#primary"),_.P("design:type",HTMLElement)],Bs.prototype,"primary",void 0);
_.p([_.dq("#secondary"),_.P("design:type",HTMLElement)],Bs.prototype,"secondary",void 0);_.p([_.dq("#player-container"),_.P("design:type",HTMLElement)],Bs.prototype,"playerContainer",void 0);_.p([_.dq("#cinematics"),_.P("design:type",HTMLElement)],Bs.prototype,"JSC$23634_cinematics",void 0);_.p([_.FY("theaterValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bs.prototype,"updateTheaterValue",null);
_.p([_.FY("fullscreenValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bs.prototype,"updateFullscreenValue",null);_.p([_.FY("scrollTopValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bs.prototype,"updateScrollTopValue",null);_.p([_.FY("miniplayerIsActiveValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bs.prototype,"updateMiniplayerIsActiveValue",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Bs.prototype,"cinematicLightTheme",null);
_.a(Bs,"ytd-watch-grid",function(){if(n8B===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);n8B=q}q=n8B;return q},{mode:2});_.qJ.registerService(_.VJe,Bs);
_.pF();
}catch(e){_._DumpException(e)}
try{
_.LF("CF909");
var s0s;var eJ=function(){var q=_.C.apply(this,arguments)||this;q.viewTransitionEnabled=_.x("enable_player_resize_transition");q.smallerChatMinHeight=_.x("live_chat_smaller_min_height");q.isDarkTheme=document.documentElement.hasAttribute("dark");q.defaultCollapsePlaylist=_.x("web_watch_default_collapse_playlist");q.respectAspectRatio=_.x("web_enable_aspect_ratio_fix");q.retroModeReduxValue=!1;q.persistentPanelVisibleValue=!1;return q};
_.Y(eJ,_.C);_.g=eJ.prototype;_.g.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.g.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.g.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.g.updateRetroModeReduxValue=function(){_.x("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.g.updatePersistentPanelVisibleValue=function(){_.x("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.g.ready=function(){var q=this,N=function(){q.onColumnScroll()};
this.primary.addEventListener("scroll",N);this.secondary.addEventListener("scroll",N)};
_.g.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.g.updateIsTwoColumnsFromBinding=function(q){_.x("web_watch_update_narrow_width_killswitch")||_.WT().dispatch(_.VA7(!q.detail.value));this.ytdWatchBehavior.isTwoColumns_=q.detail.value};
_.g.updateFlexySmallWindowFromBinding=function(q){this.ytdWatchBehavior.flexySmallWindow_=q.detail.value};
_.g.updateFlexyLargeWindowFromBinding=function(q){this.ytdWatchBehavior.flexyLargeWindow_=q.detail.value};
_.g.updateWatchWhileWindowSizeSufficientFromBinding=function(q){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=q.detail.value};
_.g.updateWatchNextCanShowMoreFromBinding=function(q){this.ytdWatchBehavior.watchNextCanShowMore=q.detail.value};
_.g.updateShownItemsFromBinding=function(q){q.detail.path?this.set(q.detail.path,q.detail.value):this.ytdWatchBehavior.watchNextShownItems=q.detail.value};
_.g.getElement=function(q){switch(q){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23629_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23629_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}};
_.$H.Object.defineProperties(eJ.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.pageVisualEffects)return!1;for(var N=0;N<this.data.pageVisualEffects.length;N++)if(q=_.v(this.data.pageVisualEffects[N],_.Ns))return N=void 0,(N=q.config)==null?void 0:N.enableInLightTheme;return!1}}});
_.$H.Object.defineProperties(eJ,{template:{configurable:!0,enumerable:!0,get:function(){if(s0s===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);s0s=q}q=s0s;return q}}});
eJ.prototype.updatePersistentPanelVisibleValue=eJ.prototype.updatePersistentPanelVisibleValue;eJ.prototype.updateRetroModeReduxValue=eJ.prototype.updateRetroModeReduxValue;eJ.prototype.updateScrollTopValue=eJ.prototype.updateScrollTopValue;eJ.prototype.updateFullscreenValue=eJ.prototype.updateFullscreenValue;eJ.prototype.updateTheaterValue=eJ.prototype.updateTheaterValue;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],eJ.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],eJ.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.T5e.YtdWatchBehavior),_.P("design:type",Object)],eJ.prototype,"ytdWatchBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],eJ.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],eJ.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],eJ.prototype,"playerData",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],eJ.prototype,"viewTransitionEnabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],eJ.prototype,"smallerChatMinHeight",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],eJ.prototype,"isDarkTheme",void 0);_.p([_.U(),_.P("design:type",Object)],eJ.prototype,"defaultCollapsePlaylist",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],eJ.prototype,"respectAspectRatio",void 0);
_.p([_.U({selector:_.Q0}),_.P("design:type",Object)],eJ.prototype,"theaterValue",void 0);_.p([_.U({selector:_.Ol}),_.P("design:type",Object)],eJ.prototype,"fullscreenValue",void 0);_.p([_.U({selector:_.Kj}),_.P("design:type",Object)],eJ.prototype,"scrollTopValue",void 0);_.p([_.U({selector:_.QU}),_.P("design:type",Object)],eJ.prototype,"miniplayerIsActive",void 0);_.p([_.U({selector:function(q){return q.watch.isWatchRetroMode}}),
_.P("design:type",Object)],eJ.prototype,"retroModeReduxValue",void 0);_.p([_.U({selector:_.U$.persistentPanelVisibleSelector}),_.P("design:type",Object)],eJ.prototype,"persistentPanelVisibleValue",void 0);_.p([_.ZF("ytd-player"),_.P("design:type",HTMLElement)],eJ.prototype,"ytdPlayer",void 0);_.p([_.dq("#playlist"),_.P("design:type",HTMLElement)],eJ.prototype,"JSC$23629_ytdPlaylistPanelRenderer",void 0);_.p([_.ZF("ytd-comments"),_.P("design:type",HTMLElement)],eJ.prototype,"ytdComments",void 0);
_.p([_.dq("#primary"),_.P("design:type",HTMLElement)],eJ.prototype,"primary",void 0);_.p([_.dq("#secondary"),_.P("design:type",HTMLElement)],eJ.prototype,"secondary",void 0);_.p([_.dq("#player-container"),_.P("design:type",HTMLElement)],eJ.prototype,"playerContainer",void 0);_.p([_.dq("#below"),_.P("design:type",HTMLElement)],eJ.prototype,"below",void 0);_.p([_.dq("#cinematics"),_.P("design:type",HTMLElement)],eJ.prototype,"JSC$23629_cinematics",void 0);
_.p([_.dq("#persistent-panel-container"),_.P("design:type",HTMLElement)],eJ.prototype,"persistentPanelContainer",void 0);_.p([_.FY("theaterValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eJ.prototype,"updateTheaterValue",null);_.p([_.FY("fullscreenValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eJ.prototype,"updateFullscreenValue",null);
_.p([_.FY("scrollTopValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eJ.prototype,"updateScrollTopValue",null);_.p([_.FY("retroModeReduxValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eJ.prototype,"updateRetroModeReduxValue",null);_.p([_.FY("persistentPanelVisibleValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eJ.prototype,"updatePersistentPanelVisibleValue",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],eJ.prototype,"cinematicLightTheme",null);_.p([_.I({is:"ytd-watch-flexy"})],eJ);_.qJ.registerService(_.Xse,eJ);
_.pF();
}catch(e){_._DumpException(e)}
try{
_.LF("nmfa2d");
var B3X;var aF=function(){var q=_.C.apply(this,arguments)||this;q.hidden=!1;q.errorScreen=null;q.playlistData={};return q};
_.Y(aF,_.C);_.g=aF.prototype;_.g.getPlayer=function(){return this.ytdPlayer};
_.g.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:_.I8(["aa","eocs"])}}};
_.g.onActiveChanged=function(){_.WT().dispatch(_.iD7(this.ytPageBehavior.active))};
_.g.playerDataChanged=function(){var q;(q=this.watchController)==null||q.setPlayerResponse(this.playerData)};
_.g.dataChanged=function(){var q;(q=this.watchController)==null||q.setWatchNextResponse(this.data)};
_.g.sizeChanged=function(){var q,N;(N=(q=this.metadata).resize)==null||N.call(q)};
_.g.attached=function(){this.watchController=new _.sB(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.g.detached=function(){_.RA(this.watchController);this.watchController=void 0};
_.g.getPlayerContainer=function(){return this.playerContainer};
_.g.getElement=function(q){switch(q){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.g.provideRenderingData=function(q,N){switch(q){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=N;break;case "ERROR_SCREEN":this.errorScreen=N!=null?N:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=N;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=N;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=N;break;case "RICH_METADATA":this.richMetadataRowContainer=N;break;case "CLARIFICATION":this.clarificationData=N;break;case "PLAYLIST":this.playlistData=
N!=null?N:{};break;case "MERCH_SHELF":this.merchShelf=N;break;case "TICKET_SHELF":this.ticketShelf=N;break;case "LIMITED_STATE":this.limitedState=N;break;case "DONATION_SHELF":this.donationShelf=N;break;case "ALERTS":this.alerts=N}};
_.$H.Object.defineProperties(aF.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return!this.hidden&&!!((q=this.data)==null?0:(N=q.contents)==null?0:(b=N.twoColumnWatchNextResults)==null?0:b.conversationBar)}}});
aF.prototype.sizeChanged=aF.prototype.sizeChanged;aF.prototype.dataChanged=aF.prototype.dataChanged;aF.prototype.playerDataChanged=aF.prototype.playerDataChanged;aF.prototype.onActiveChanged=aF.prototype.onActiveChanged;_.p([_.O(_.Jp.YtPageBehavior),_.P("design:type",Object)],aF.prototype,"ytPageBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],aF.prototype,"ytComponentBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],aF.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],aF.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],aF.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],aF.prototype,"playerData",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],aF.prototype,"hidden",void 0);_.p([_.dq("#ytd-player"),_.P("design:type",HTMLElement)],aF.prototype,"ytdPlayer",void 0);_.p([_.dq("#player-container"),_.P("design:type",HTMLElement)],aF.prototype,"playerContainer",void 0);_.p([_.dq("#metadata"),_.P("design:type",Object)],aF.prototype,"metadata",void 0);_.p([_.dq("#playlist"),_.P("design:type",HTMLElement)],aF.prototype,"playlistPanel",void 0);
_.p([_.U({selector:_.tIc,reflectToAttribute:!0}),_.P("design:type",Object)],aF.prototype,"fixie",void 0);_.p([_.U({selector:_.$7B,reflectToAttribute:!0}),_.P("design:type",Object)],aF.prototype,"singleColumn",void 0);_.p([_.U({selector:function(q){return _.Q0(q)&&!_.Ol(q)},
reflectToAttribute:!0}),_.P("design:type",Object)],aF.prototype,"theater",void 0);_.p([_.U({selector:_.Ol,reflectToAttribute:!0}),_.P("design:type",Object)],aF.prototype,"fullscreen",void 0);_.p([_.U({selector:_.Qo_}),_.P("design:type",Object)],aF.prototype,"windowSize",void 0);_.p([_.U(),_.P("design:type",Object)],aF.prototype,"singleColumnContents",void 0);_.p([_.U(),_.P("design:type",Object)],aF.prototype,"errorScreen",void 0);_.p([_.U(),_.P("design:type",Object)],aF.prototype,"playlistData",void 0);
_.p([_.U(),_.P("design:type",Object)],aF.prototype,"videoPrimaryInfoRenderer",void 0);_.p([_.U(),_.P("design:type",Object)],aF.prototype,"videoSecondaryInfoRenderer",void 0);_.p([_.U(),_.P("design:type",Object)],aF.prototype,"richMetadataRowContainer",void 0);_.p([_.U(),_.P("design:type",Object)],aF.prototype,"clarificationData",void 0);_.p([_.U(),_.P("design:type",Object)],aF.prototype,"commentsEntryPointHeaderRenderer",void 0);_.p([_.U(),_.P("design:type",Object)],aF.prototype,"ticketShelf",void 0);
_.p([_.U(),_.P("design:type",Object)],aF.prototype,"merchShelf",void 0);_.p([_.U(),_.P("design:type",Object)],aF.prototype,"donationShelf",void 0);_.p([_.U(),_.P("design:type",Object)],aF.prototype,"limitedState",void 0);_.p([_.U(),_.P("design:type",Object)],aF.prototype,"alerts",void 0);_.p([_.l("playlistData"),_.P("design:type",Object),_.P("design:paramtypes",[])],aF.prototype,"hasPlaylistData",null);
_.p([_.l("data","hidden"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],aF.prototype,"hasChat",null);_.p([_.FY("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aF.prototype,"onActiveChanged",null);_.p([_.FY("playerData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aF.prototype,"playerDataChanged",null);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aF.prototype,"dataChanged",null);_.p([_.FY("windowSize","singleColumn"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aF.prototype,"sizeChanged",null);
_.a(aF,"ytd-watch-fixie",function(){if(B3X===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);B3X=q}q=B3X;return q},{mode:1});_.qJ.registerService(_.rCd,aF);
_.pF();
}catch(e){_._DumpException(e)}
try{
_.LF("xwEKAe");
var d0e=function(q){q=q.command;var N=_.v(q,_.uI);return{command:q,reelPlayerOverlayRenderer:_.v(N==null?void 0:N.overlay,_.bgv),thumbnail:N==null?void 0:N.thumbnail,videoId:N.videoId}},cXx=function(q){q=q.command;
var N=_.v(q,_.Nz);return{command:q,reelNonVideoContentRenderer:_.v(N==null?void 0:N.renderer,_.yx)}},u8e=function(q){return q.entries?q.entries.map(function(N){return _.v(N==null?void 0:N.command,_.uI)?d0e(N):cXx(N)}):[]},zMB=function(q){return q.prevEntries?q.prevEntries.map(function(N){return _.v(N==null?void 0:N.command,_.uI)?d0e(N):cXx(N)}):[]},$0e=function(q){return _.Rp(q)?q.getAttribute("jsname")==="coFSxe":!1},txe=function(q,N){N.id||(N.id="ow"+_.en(N));
q.setAttribute("jsowner",N.id);q.__owner=N;var b=_.Ph(N,$0e);b&&(_.Seq.has(b)||_.Seq.set(b,[]),_.Seq.get(b).push(q));(b=_.aZT.get(N))||_.aZT.set(N,b=[]);b.includes(q)||b.push(q);N.setAttribute("__IS_OWNER",!0)},m0_=function(){var q=_.jwh(1);
q=_.dn(q,_.OYh);if(!(_.VdC(q)||q[_.V2n]&&!q.__hasBeenSet))return q.value},rXx=function(q){return(q=_.ygJ(q))?_.EbD(q):0},X1B=function(q){return q.shorts.isSmallScreenSqueezeback},Vxe=function(q){return q.shorts.isPlaybackStarted},jeX=function(q){var N=_.c3();
if(N.getFlag(202))N=N.getFlag(201);else{var b;N=(q==null?void 0:(b=q.config)==null?void 0:b.settingOnByDefault)!==void 0?q.config.settingOnByDefault:!_.x("web_shorts_cinematics_disabled_by_default")}return N},x0x=function(q){var N=_.c3();
_.uG(0,201,q);_.uG(0,202,!0);N.save()},YLe=function(q){var N=_.jwh(2),b=new Set;
_.W1(function(){return void b.forEach(function(y){return void y()})});
return function(y){var J=_.Re(N);try{var E=vL7(G2l(q),y);b.add(E);return function(){E();b.delete(E)}}finally{_.Re(J)}}},QeB=function(q){var N=q.children;
var b=q.root;_.SI(function(){var y=YLe(b)(N);_.W1(y)});
return document.createTextNode("")},vL7=function(q,N){var b=O3_(q);
(q=m0_())&&txe(b,q);_.Qq.setUp();N=_.Z(_.S$d(N,!0));q=N.next().value;var y=N.next().value;N=_.Z(q);for(q=N.next();!q.done;q=N.next())b.appendChild(q.value);_.Qq.log(b);_.Qq.tearDown();return function(){y();b.remove()}},G2l=function(q){if(typeof q==="string")return q=document.querySelector(q),_.YkK(q),q;
if(_.Vq(q)&&q.nodeType===Node.ELEMENT_NODE)return q;if(!q.__value&&!q.__optional){var N=_.xPD.USE_ELEMENT_NOT_ASSIGNED(q.__expectedTagName);q.__hasErrored=!0;throw N;}return q.value},O3_=function(q){var N=document.createElementNS(q.namespaceURI,q.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return q.appendChild(N)},w17=function(q,N,b,y){q=N-q;
b=y-b;return Math.sqrt(q*q+b*b)},i3Z=function(q){var N=q>>8&255,b=q&255;
return"#"+(q>>16&255).toString(16).padStart(2,"0")+N.toString(16).padStart(2,"0")+b.toString(16).padStart(2,"0")},lul=function(q,N){q&&_.tz().resolve(_.rO).resolveCommand(q,{forceClickLogging:!0,
form:{element:N}})},KRx=function(){return _.tz().resolve(_.Ib).dismissedIndices},D0s=function(q,N){var b,y,J,E,F,R,c,z,m;
return _.d(function(r){if(r.nextAddress==1){b=_.tz().resolve(_.UP);E=(y=b)==null?void 0:(J=y.reelWatchEndpointMap)==null?void 0:J.reelWatchSequence;R=(F=q.innertubeTransportService)!=null?F:_.tz().resolve(_.tN);if(!E)return r.jumpTo(2);c=E();return(z=c.JSC$14249_getRequest(N,{}))?r.yield(_.ZG(R,z.innerTubeRequest,z.input,N.clickTrackingParams,z.config),4):r.jumpTo(2)}return r.nextAddress!=2?(m=r.yieldResult,r.return(m)):r.return(void 0)})},hMB=function(q,N,b){var y,J=(y=_.v(N,_.uI))==null?void 0:
y.videoId;
y=!(!J||!q.find(function(F){return F.videoId&&F.videoId===J}));
var E=!!q.find(function(F){var R;return((R=_.v(F.command,_.uI))==null?void 0:R.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
q=!!q.find(function(F){return!!_.v(F.command,_.Nz)&&!!_.v(N,_.Nz)&&F.command===N});
return b?y||q:y||E||q},k2h=function(q,N,b){var y=[].concat(_.a9(q)),J=0,E=b?u8e(b):[];
b=b?zMB(b):[];N&&!hMB(q,N.command)&&y.unshift(N);E.length&&!hMB(q,E[0].command,!0)&&y.push.apply(y,_.a9(E));N&&b.length&&!hMB(q,b[0].command)&&(y.unshift.apply(y,_.a9(b.reverse())),J=b.length);return{newContentList:y,indexChange:J}},U0Z=function(q){return _.B3({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:q}})},fuB=function(q){return _.B3({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:q}})},C5s=function(q){return _.B3({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:q}})};var xS=function(q,N){if(q instanceof xS)this.array_=q.array_;else{var b;if(b=_.pC(q))a:{for(var y=b=0;y<q.length;y++){if(!_.pC(q[y])||b>0&&q[y].length!=b){b=!1;break a}for(var J=0;J<q[y].length;J++)if(typeof q[y][J]!=="number"){b=!1;break a}b==0&&(b=q[y].length)}b=b!=0}if(b)this.array_=_.LC(q);else if(q instanceof _.l3)this.array_=Iux(q.height,q.width);else if(typeof q==="number"&&typeof N==="number"&&q>0&&N>0)this.array_=Iux(q,N);else throw Error("So");}this.size_=new _.l3(this.array_[0].length,
this.array_.length)},TnB=function(q,N,b){for(var y=0;y<q.getSize().height;y++)for(var J=0;J<q.getSize().width;J++)N.call(b,q.array_[y][J],y,J,q)},sel=function(q,N){var b=new xS(q.getSize());
TnB(q,function(y,J,E){b.array_[J][E]=N.call(void 0,y,J,E,q)});
return b},Iux=function(q,N){for(var b=[],y=0;y<q;y++){b[y]=[];
for(var J=0;J<N;J++)b[y][J]=0}return b};
xS.prototype.add=function(q){if(!_.sAl(this.size_,q.getSize()))throw Error("To");return sel(this,function(N,b,y){return N+q.array_[b][y]})};
xS.prototype.equals=function(q,N){if(this.size_.width!=q.size_.width||this.size_.height!=q.size_.height)return!1;N=N||0;for(var b=0;b<this.size_.height;b++)for(var y=0;y<this.size_.width;y++)if(!_.TEB(this.array_[b][y],q.array_[b][y],N))return!1;return!0};
xS.prototype.getSize=function(){return this.size_};
var vM=function(q,N,b){return N>=0&&N<q.size_.height&&b>=0&&b<q.size_.width?q.array_[N][b]:null};
xS.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var nLB=function(q,N,b,y){if(!(N>=0&&N<q.size_.height&&b>=0&&b<q.size_.width))throw Error("Uo`"+N+"`"+b+"`"+q.size_.height+"`"+q.size_.width);q.array_[N][b]=y};
xS.prototype.multiply=function(q){if(q instanceof xS){if(this.size_.width!=q.getSize().height)throw Error("Vo");return auv(this,q)}if(typeof q==="number")return SLe(this,q);throw Error("Wo");};
var auv=function(q,N){var b=new xS(q.size_.height,N.getSize().width);TnB(b,function(y,J,E){for(var F=y=0;F<this.size_.width;F++)y+=vM(this,J,F)*vM(N,F,E);nLB(b,J,E,y)},q);
return b},SLe=function(q,N){return sel(q,function(b){return b*N})};var WRX=new _.yT("inlineSurveyRenderer");var LRB=new _.yT("interstitialViewModel");var p1B=new _.yT("reelNavigateCommand");var P5X=new _.yT("reelNonVideoContentDismissalCommand");var Mx7=new _.yT("showReelsCommentsOverlayCommand");var oLx=new _.yT("videoInteractionPopUpRenderer");var AXX=new _.yT("pollChoiceData");var eMs;var BnB;var H3x;var GL=function(){var q=_.C.apply(this,arguments)||this;q.ctaVisualElement=null;q.currentCsn=null;return q};
_.Y(GL,_.C);_.g=GL.prototype;_.g.onDataChanged=function(){this.maybeLogShows()};
_.g.computeButtonShape=function(){var q=this;if(this.data)return{buttonText:_.ao(this.data.text),state:"active",onTap:function(){q.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.g.maybeCreateCtaVe=function(){var q;if((q=this.data)!=null&&q.badgeInteractionLogging){var N;if(q=(N=this.data.badgeInteractionLogging)==null?void 0:N.trackingParams)this.ctaVisualElement=_.zT(q)}};
_.g.maybeLogClicks=function(){this.currentCsn=_.Oe(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.nr(this.currentCsn,this.ctaVisualElement)};
_.g.maybeLogShows=function(){this.currentCsn=_.Oe(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Tr(this.currentCsn,[this.ctaVisualElement])};
_.g.onTap=function(){var q;if((q=this.data)!=null&&q.onClickCommand){var N;this.ytComponentBehavior.resolveCommand((N=this.data)==null?void 0:N.onClickCommand);this.maybeLogClicks()}};
GL.prototype.onDataChanged=GL.prototype.onDataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],GL.prototype,"ytComponentBehavior",void 0);_.p([_.U({}),_.P("design:type",Object)],GL.prototype,"data",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],GL.prototype,"onDataChanged",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],GL);
_.a(GL,"ytd-shopping-overlay-badge-renderer",function(){if(H3x!==void 0)return H3x;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return H3x=q},{mode:1});_.P$(_.FTU,"reel-sound-metadata-view-model",{props:{data:_.W$,overlayDensity:_.W$}});_.P$(_.Nsc,"player-disclosure-view-model",{props:{data:_.F5,extractOverlay:_.F5}});_.P$(_.H2x,"pivot-button-view-model",{props:{data:_.W$,className:_.W$}});_.P$(_.qz1,"reel-action-bar-view-model",{props:{data:_.F5,buttonShapeOverrideables:_.F5}});_.P$(_.F0x,"yt-reel-metapanel-view-model",{props:{data:_.F5,overlayDensity:_.F5,extractOverlay:_.F5}});var qwc=_.n(function(q){var N=q.children;var b=q.region;q=_.Z(_.QS(void 0,void 0,"flxBBc"));var y=q.next().value,J=q.next().value;q=_.Z(_.QS("0px",void 0,"IAR7k"));var E=q.next().value,F=q.next().value;q=_.Z(_.QS("0px",void 0,"QV4iWb"));var R=q.next().value,c=q.next().value;q=_.Z(_.QS(0,void 0,"Q2oK6b"));var z=q.next().value,m=q.next().value;q=_.Z(_.QS(0,void 0,"hYKowe"));var r=q.next().value,X=q.next().value,V=function(){var L=y();if(L){var S;if(((S=_.JO())==null?void 0:S.getPlayerState())!==-1){L.style.display=
"inherit";var W;(W=_.JO())==null||W.removeEventListener("onStateChange",V)}else L.style.display="none";w()}},G=function(){var L;
return(L=_.Pk())==null?void 0:L.querySelector("video")},w=function(){var L=G();
if(L){m(L.getBoundingClientRect().width);X(L.getBoundingClientRect().height);var S;F((L==null?void 0:(S=L.style)==null?void 0:S.left)||"0px");var W;c((L==null?void 0:(W=L.style)==null?void 0:W.top)||"0px")}};
_.Sx(function(){var L=y();if(L){var S,W,M;if(((S=_.JO())==null?void 0:S.getPlayerState())===-1&&Math.round(((M=(W=_.JO())==null?void 0:W.getVideoAspectRatio())!=null?M:0)*100)!==Math.round(z()/r()*100)){L.style.display="none";var qe,RJ;X(z()/((RJ=(qe=_.JO())==null?void 0:qe.getVideoAspectRatio())!=null?RJ:1))}}},"N29KDe");
var D=function(){w()},k;
_.SI(function(){w();var L;if(!(b==null?0:(L=b())==null?0:L.transformationMatrix))throw Error("$o");var S;(S=_.JO())==null||S.addEventListener("onStateChange",V);if(window.ResizeObserver){if(L=G())k=new ResizeObserver(D),k.observe(L)}else window.addEventListener("resize",w);_.W1(function(){var W;(W=_.JO())==null||W.removeEventListener("onStateChange",V);k?k.disconnect():window.removeEventListener("resize",w)})});
var f=function(){var L,S,W=(S=b==null?void 0:(L=b())==null?void 0:L.transformationMatrix)!=null?S:[];L=z();S=r();for(var M=[],qe=0,RJ=-1;qe<W.length;qe++)qe%3===0&&(RJ++,M[RJ]=[]),M[RJ].push(W[qe]);W=new xS(M);M=new xS([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);M=W.multiply(M);W=new xS([[0,0],[0,0],[0,0],[0,0]]);for(qe=0;qe<M.getSize().width;qe++){RJ=vM(M,0,qe);var tZ=vM(M,1,qe);if(RJ===null||tZ===null)throw Error("Zo`"+(qe+1).toString());nLB(W,qe,0,RJ*L);nLB(W,qe,1,tZ*S)}L=vM(W,0,0);qe=vM(W,1,0);S=vM(W,0,
1);RJ=vM(W,1,1);if(L===null||qe===null||S===null||RJ===null)throw Error("Xo");M=w17(L,qe,S,RJ);tZ=vM(W,3,0);W=vM(W,3,1);if(tZ===null||W===null)throw Error("Yo");W=w17(L,tZ,S,W);RJ=(Number((RJ*-1).toFixed(2))-Number((S*-1).toFixed(2)))/(Number(qe.toFixed(2))-Number(L.toFixed(2)));tZ=Math.atan(RJ)*180/Math.PI;qe=RJ===Number.POSITIVE_INFINITY?-90:RJ===Number.NEGATIVE_INFINITY?90:Object.is(RJ,-0)?180:RJ===0?0:RJ>0?tZ*-1:L<qe?tZ*-1:Math.abs(tZ)+180;return"left:calc("+L+"px + "+E()+"); top:calc("+(S+"px + "+
R()+"); width:")+(M+"px; height:")+(W+"px; transform:rotate(")+(qe+"deg);\n        --sticker-width:"+M+";")};
return _.u(QeB,{root:"#sticker-layer"},function(){return _.u("yt-overlay-sticker",{el:_.ai(J),style:f,class:"ytOverlayStickerHost"},N)})},"xn");var NVl=_.n(function(q){function N(){var V,G,w,D,k=(G=_.v((V=c())==null?void 0:V.command,_.lL1))==null?void 0:(w=G.item)==null?void 0:(D=w.notificationTextRenderer)==null?void 0:D.successResponseText;if(k)V=_.pD(k),_.By(y.value,"yt-open-popup-action",[V,y.value]);else if(z())lul(z(),y.value);else{var f;lul((f=c())==null?void 0:f.command,y.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var b=q.data;var y=_.dI("svg"),J=_.Z(_.QS(!1,void 0,"e9onLe"));q=J.next().value;var E=J.next().value,F=_.Z(_.QS(!1,void 0,"ptnIQd"));J=F.next().value;var R=F.next().value,c=function(){var V;return _.v((V=b())==null?void 0:V.popUp,oLx)},z=function(){var V;
return(V=b())==null?void 0:V.command},m=function(){return _.v(z(),_.tO)!==void 0};
F=_.y0(function(){N();return!1});
var r={},X={};return _.u("svg",{"on:mouseover":_.y0(function(){m()&&E(!0);R(!0);return!1}),
"on:mouseout":_.y0(function(){E(!1);R(!1);return!1}),
"on:keydown":_.y0(function(V){V.key==="Enter"&&N();return!1}),
"on:focus":_.y0(function(){m()&&E(!0);return!1}),
"on:blur":_.y0(function(){m()&&E(!1);return!1}),
el:y,tabindex:0,"aria-label":function(){var V;return(V=b())==null?void 0:V.a11yString},
id:"player-overlay-video-interaction-svg",class:_.NO("ytPlayerOverlayInteractionInteractionsSvg",(r.ytPlayerOverlayInteractionInteractionsSvgHover=q,r),(X.ytPlayerOverlayInteractionInteractionsSvgHideOutline=J,X)),role:"button","on:click":F})},"An");_.P$(_.n(function(q){var N=q.data;_.SI(function(){var b;if((b=N())==null?0:b.trackingParams){var y;_.FR().graftServerVe((y=N().trackingParams)!=null?y:"")}});
return _.u("yt-player-overlay-interaction",null,_.u(qwc,{region:function(){var b,y;return(b=N())==null?void 0:(y=b.regions)==null?void 0:y[0]}},_.u(NVl,Object.assign({},q))))},"zn"),"yt-player-overlay-interaction",{props:{data:_.F5}});var bIv=_.n(function(q){var N=q.data;var b=q.index;var y=q.selectedChoice;var J=function(){var E;return _.v((E=N())==null?void 0:E.renderer,AXX)};
q={};return _.u("yt-overlay-poll-sticker-choice",{class:_.NO("ytOverlayPollStickerChoiceHost"),style:_.ZU({"--displayed-percentage":function(){var E,F,R,c;return""+Math.ceil(Number((y==null?void 0:y())===b()?(E=J())==null?void 0:(F=E.selected)==null?void 0:F.progressBarWidth:(R=J())==null?void 0:(c=R.unselected)==null?void 0:c.progressBarWidth)*100)}})},_.u("div",{class:_.NO("ytOverlayPollStickerChoicePollChoice",(q.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(y==null?void 0:y())!==
void 0},q.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(y==null?void 0:y())===b()},q))},_.u("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var E;
return((E=J())==null?void 0:E.text)||""}),_.u("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(y==null?void 0:y())==="undefined")var E="";
else{var F,R,c,z;E=(y==null?void 0:y())===b()?(F=J())==null?void 0:(R=F.selected)==null?void 0:R.votePercentage:(c=J())==null?void 0:(z=c.unselected)==null?void 0:z.votePercentage}return E})))},"Bn");var yVc=_.n(function(q){var N=q.data;var b=_.uR(function(J){var E,F=((E=N())==null?void 0:E.postPollStateEntityKey)||"";J=_.Ji(J.entities,"postPollStateEntity",F);var R;return((R=N())==null?0:R.viewerIsOwner)?Object.assign({},J,{selectedOptionId:-1,voted:!0}):J}),y=_.tz().resolve(_.rO);
return _.u("yt-overlay-poll-sticker",null,_.u(qwc,{region:function(){var J,E;return(J=N())==null?void 0:(E=J.region)==null?void 0:E.interactionRegion}},_.u("div",{class:_.NO("ytOverlayPollStickerHost"),
style:_.ZU({"--original-height":function(){var J;return""+(((J=N())==null?void 0:J.mainBodyHeight)||1)},
"--original-width":function(){var J;return""+(((J=N())==null?void 0:J.mainBodyWidth)||1)},
"--scaled-width":function(){var J;return""+(((J=N())==null?void 0:J.mainBodyWidth)||1)},
"--primary-surface":function(){var J,E;return i3Z(((J=N())==null?void 0:(E=J.theme)==null?void 0:E.primarySurface)||0)},
"--raised-surface":function(){var J,E;return i3Z(((J=N())==null?void 0:(E=J.theme)==null?void 0:E.raisedSurface)||0)},
"--secondary-surface":function(){var J,E;return i3Z(((J=N())==null?void 0:(E=J.theme)==null?void 0:E.secondarySurface)||0)},
"--primary-text":function(){var J,E;return i3Z(((J=N())==null?void 0:(E=J.theme)==null?void 0:E.primaryText)||0)},
"--secondary-text":function(){var J,E;return i3Z(((J=N())==null?void 0:(E=J.theme)==null?void 0:E.secondaryText)||0)}})},_.u("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return N().questionText}," "),_.u(_.Tf,{each:function(){return N().pollChoiceConfigs||[]}},function(J,E){return _.u("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.y0(function(){var F=E(),R;if((R=N())==null||!R.viewerIsOwner){var c,z;R=(c=N())==null?void 0:(z=c.pollChoiceConfigs)==null?void 0:z[F];if(z=(R==null?0:R.renderer)?_.v(R.renderer,AXX):void 0){var m;c=((m=b())==null?void 0:m.selectedOptionId)!==F;var r;if(m=(r=c?z.selectedPollCommand:z.deselectedPollCommand)==null?void 0:r.innertubeCommand){y.resolveCommand(m);var X,V;_.sk().dispatch(_.$e("postPollStateEntity",((X=b())==null?void 0:X.key)||"",{key:((V=b())==null?void 0:V.key)||"",selectedOptionId:c?
F:-1,voted:c}))}}}})},_.u(bIv,{data:J,
index:E,selectedChoice:function(){var F,R;return((F=b())==null?0:F.voted)?(R=b())==null?void 0:R.selectedOptionId:void 0}}))}),_.u("div",{class:"ytOverlayPollStickerVoteCount"},function(){var J,E;
return((J=b())==null?0:J.voted)&&((E=b())==null?void 0:E.selectedOptionId)!==-1?N().postVoteCountText:N().preVoteCountText}))))},"Cn");_.P$(_.n(function(q){var N=q.data;return _.u("yt-stickers-layer",null,_.u(_.Tf,{each:function(){var b;return((b=N())==null?void 0:b.stickers)||[]}},function(b){return _.u(_.t,{cond:function(){return _.x("enable_shorts_poll_stickers_web")},
then:function(){return _.u(_.t,{cond:function(){return b==null?void 0:b.pollSticker},
then:function(y){return _.u(yVc,{data:y})}})}})}))},"Dn"),"yt-stickers-layer",{props:{data:_.F5}});var YS=function(){var q=_.C.apply(this,arguments)||this;q.showScrubber=!1;q.isWatchWhileMode=!1;q.enableAnchoredPanel=_.x("desktop_shorts_v2_anchored_panel");q.enablePollStickers=_.x("enable_shorts_poll_stickers_web");q.enableShortsModernControls=_.x("web_shorts_modern_controls");q.anchoredPanelActive=!1;q.enableLivingroomLayout=_.x("reels_enable_livingroom_layout");q.enablePlayerMetadataContainer=_.x("reels_web_enable_metadata_container");q.enableSqueezebackPanels=_.x("web_shorts_enable_squeezeback_panels");
q.useAspectRatio=_.x("web_use_aspect_ratio");q.isSqueezebackActive=!1;q.smallScreenSqueezeback=!1;q.isPlayerStarted=!1;q.overlayDensity=0;q.extractOverlay=!1;q.extractActionBar=!1;q.isOverlay=!1;q.isImmersive=!1;q.isImmersiveHorizontal=!1;q.isFullscreen=!1;q.onWindowResized=function(){var N;q.set("isImmersive",((N=window.getComputedStyle(q.hostElement))==null?void 0:N.getPropertyValue("--immersive-mode-on"))==="1");q.set("isImmersiveHorizontal",q.isImmersive&&q.enableLivingroomLayout&&!q.isWatchWhileMode)};
return q};
_.Y(YS,_.C);_.g=YS.prototype;_.g.updateIsOverlay=function(q){this.isOverlay=q.detail.value};
_.g.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.g.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.g.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.g.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.g.onOverlayDensityChange=function(){var q=_.ee(this.hostElement).querySelector("ytd-info-panel-container-renderer");q&&(q.set("extractOverlay",this.extractOverlay),q.set("roundedContainer",this.extractOverlay))};
_.g.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.g.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.g.ready=function(){(_.x("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"))&&(!_.x("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.jA("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.jA("reels_action_justified_content")||"flex-start")};
_.g.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}}};
_.g.setFakeLoadingButtons=function(){_.x("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.FE("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.FE("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.FE("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.FE("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.FE("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()};
_.g.setEmptyOverlayMetadata=function(){_.x("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}))};
_.$H.Object.defineProperties(YS.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.infoPanel)}}});
YS.prototype.onOverlayDensityChange=YS.prototype.onOverlayDensityChange;YS.prototype.onIsActiveChanged=YS.prototype.onIsActiveChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],YS.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],YS.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],YS.prototype,"ytdReduxBehavior",void 0);
_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],YS.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],YS.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],YS.prototype,"isActive",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],YS.prototype,"hidden",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],YS.prototype,"useShortsIcon",void 0);
_.p([_.U({value:"left"}),_.P("design:type",String)],YS.prototype,"buttonTooltipPosition",void 0);_.p([_.U({value:_.x("reels_enable_livingroom_layout")?"top":"left"}),_.P("design:type",String)],YS.prototype,"likeButtonTooltipPosition",void 0);_.p([_.U({value:"none"}),_.P("design:type",String)],YS.prototype,"textTransform",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],YS.prototype,"showScrubber",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],YS.prototype,"isWatchWhileMode",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data.infoPanel"),_.P("design:type",Object),_.P("design:paramtypes",[])],YS.prototype,"hasInfoPanel",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],YS.prototype,"enableAnchoredPanel",void 0);_.p([_.U(),_.P("design:type",Object)],YS.prototype,"enablePollStickers",void 0);
_.p([_.U(),_.P("design:type",Object)],YS.prototype,"enableShortsModernControls",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],YS.prototype,"anchoredPanelActive",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],YS.prototype,"enableLivingroomLayout",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],YS.prototype,"enablePlayerMetadataContainer",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],YS.prototype,"enableSqueezebackPanels",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],YS.prototype,"useAspectRatio",void 0);_.p([_.U({selector:_.pID,reflectToAttribute:!0}),_.P("design:type",Object)],YS.prototype,"isSqueezebackActive",void 0);_.p([_.U({selector:X1B,reflectToAttribute:!0}),_.P("design:type",Object)],YS.prototype,"smallScreenSqueezeback",void 0);
_.p([_.U({selector:Vxe}),_.P("design:type",Object)],YS.prototype,"isPlayerStarted",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],YS.prototype,"overlayDensity",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],YS.prototype,"extractOverlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],YS.prototype,"extractActionBar",void 0);_.p([_.U(),_.P("design:type",Object)],YS.prototype,"isOverlay",void 0);
_.p([_.U(),_.P("design:type",Object)],YS.prototype,"isImmersive",void 0);_.p([_.U(),_.P("design:type",Object)],YS.prototype,"isImmersiveHorizontal",void 0);_.p([_.U({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.P("design:type",Boolean)],YS.prototype,"isShortsImmersive",void 0);_.p([_.U({computed:"computeButtonOverride(extractActionBar)"}),_.P("design:type",Object)],YS.prototype,"buttonOverride",void 0);
_.p([_.U({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.P("design:type",Object)],YS.prototype,"actionBarButtonOverride",void 0);_.p([_.U({selector:_.AO,reflectToAttribute:!0}),_.P("design:type",Object)],YS.prototype,"isFullscreen",void 0);_.p([_.FY("isActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],YS.prototype,"onIsActiveChanged",null);
_.p([_.FY("extractOverlay"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],YS.prototype,"onOverlayDensityChange",null);_.p([_.I({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],YS);
_.a(YS,"ytd-reel-player-overlay-renderer",function(){if(BnB!==void 0)return BnB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return BnB=q},{mode:1});var JVh;var QZ=function(){var q=_.C.apply(this,arguments)||this;q.videoDuration=0;q.playedTime=0;q.isActive=!1;q.JSC$22836_playerEvents=new Map;return q};
_.Y(QZ,_.C);_.g=QZ.prototype;_.g.created=function(){this.JSC$22836_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22836_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.g.attached=function(){this.getPlayerAndInitializeListeners()};
_.g.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22836_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.gq(this,this.onPageChanged))};
_.g.getPlayerAndInitializeListeners=function(){var q=this,N;return _.d(function(b){if(b.nextAddress==1)return N=_.Pk(),N?b.yield(N.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.gq(q,q.onPageChanged)),b.jumpTo(0));q.player=b.yieldResult;q.initializePlayerListeners();_.hj(b)})};
_.g.onPageChanged=function(q){var N=this;return _.d(function(b){if(b.nextAddress==1)return q.detail.newPageType!=="ytd-shorts"?b.return():b.yield(_.MO().getPlayerPromise(),2);N.player=b.yieldResult;N.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.gq(N,N.onPageChanged));_.hj(b)})};
_.g.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22836_playerEvents)};
_.g.onVideoDataChange=function(q){var N=this;return _.d(function(b){if(!N.player||q.type!=="newdata")return b.return();N.videoDuration=_.x("web_shorts_use_progress_state_for_gapless")?N.player.getProgressState(q.playertype).seekableEnd:N.player.getDuration(q.playertype);N.playedTime=0;_.hj(b)})};
_.g.onVideoProgress=function(q){var N=this,b,y;return _.d(function(J){if(!N.player)return J.return();b=N.player.getPresentingPlayerType();y=N.player.getPlayerState();N.videoDuration=_.x("web_shorts_use_progress_state_for_gapless")?N.player.getProgressState(b).seekableEnd:N.player.getDuration(b);N.playedTime=y===0?N.videoDuration:q;_.hj(J)})};
_.g.getPercentPlayed=function(q,N){return q?_.Od(N/q,0,1):0};
_.$H.Object.defineProperties(QZ.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 q="";return q=this.videoDuration&&this.playedTime?q+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):q+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],QZ.prototype,"componentBehavior",void 0);_.p([_.O(_.d2.YtPlayerListenerBehavior),_.P("design:type",_.cX)],QZ.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],QZ.prototype,"player",void 0);_.p([_.U(),_.P("design:type",Object)],QZ.prototype,"videoDuration",void 0);_.p([_.U(),_.P("design:type",Object)],QZ.prototype,"playedTime",void 0);_.p([_.U(),_.P("design:type",Object)],QZ.prototype,"isActive",void 0);
_.p([_.l("videoDuration","playedTime"),_.P("design:type",Number),_.P("design:paramtypes",[])],QZ.prototype,"percentPlayed",null);_.p([_.l("videoDuration","playedTime"),_.P("design:type",Object),_.P("design:paramtypes",[])],QZ.prototype,"percentPlayedStyle",null);_.p([_.l("videoDuration","isActive"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],QZ.prototype,"hideProgressBar",null);
_.a(QZ,"ytd-progress-bar-line",function(){if(JVh===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);JVh=q}q=JVh;return q},{mode:_.Am("kevlar_poly_si_batch_j028")?1:2});var EZe;_.P$(_.Drd,"ytm-closed-captioning-button",{props:{captionIconType:_.F5,onClick:_.W$,ariaLabel:_.F5,ariaPressed:_.F5,isOverlay:_.W$,isModern:_.W$}});_.P$(_.yrA,"desktop-shorts-volume-controls",{props:{orientation:_.F5}});var O4=function(){var q=_.C.apply(this,arguments)||this;q.playerState=null;q.isMuted=!1;q.shortsModernControlsEnabled=_.x("web_shorts_modern_controls");q.volumeControlsOrientationState="horizontal_right";q.isOverlay=!0;q.isAdsOverlay=!1;q.captionIconType=-1;q.ariaLabel="";q.overlayDensity=0;q.JSC$22839_playerEvents=new Map;q.onClosedCaptionsButtonClick=function(){q.player&&_.nZ(q.player)&&(q.player.toggleSubtitles(),q.updateCaptionIconType())};
return q};
_.Y(O4,_.C);_.g=O4.prototype;_.g.created=function(){this.JSC$22839_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22839_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22839_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.g.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.bx(28662);this.playPauseButtonClientVE=_.bx(36842);this.fullscreenButtonToggleOffClientVE=_.bx(222256);this.fullscreenButtonToggleOnClientVE=_.bx(222257);var q=_.Oe(),N=_.QY();q&&N&&(_.x("combine_ve_grafts")?(_.hI(_.FR(),this.muteButtonClientVE,N),_.hI(_.FR(),this.playPauseButtonClientVE,N)):_.Cr(q,N,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.g.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22839_playerEvents),this.player=null)};
_.g.updateCaptionIconType=function(){var q=-1,N=void 0,b=_.FE("CLOSED_CAPTIONS_DISABLED");this.player&&_.nZ(this.player)&&(_.V6p(this.player)?(N=!0,b=_.FE("CLOSED_CAPTIONS_ON"),q=1):(N=!1,b=_.FE("CLOSED_CAPTIONS_OFF"),q=0));this.captionIconType=q;this.ariaPressedState=N;this.ariaLabel=b};
_.g.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.g.getPlayerAndInitializeListeners=function(){var q=this,N;return _.d(function(b){if(b.nextAddress==1)return N=_.Pk(),N?b.yield(N.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.gq(q,q.onPageChanged)),b.jumpTo(0));q.player=b.yieldResult;q.initializePlayerListeners();_.hj(b)})};
_.g.onPageChanged=function(q){var N=this;return _.d(function(b){if(b.nextAddress==1)return q.detail.newPageType!=="ytd-shorts"?b.return():b.yield(_.MO().getPlayerPromise(),2);N.player=b.yieldResult;N.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.gq(N,N.onPageChanged));_.hj(b)})};
_.g.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22839_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.g.onPlayerStateChange=function(q){this.playerState=q};
_.g.onPlayerVolumeChange=function(q){this.isMuted=q.muted};
_.g.onPlayPauseButtonClick=function(){var q=this,N,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(_.MO().getPlayerPromise(),2);N=y.yieldResult;(b=_.Oe())&&q.playPauseButtonClientVE&&_.nr(b,q.playPauseButtonClientVE);N.getPlayerState()!==1?N.playVideo():N.pauseVideo();_.hj(y)})};
_.g.computePlayPauseIcon=function(q){return q===2||q===-1||q===5?_.x("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.x("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.x("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.g.computeFullscreenLabel=function(q){return q?_.FE("FULLSCREEN_EXIT_LABEL"):_.FE("FULLSCREEN_ENTER_LABEL")};
_.g.computePlayPauseLabel=function(q){return q===1||q===3?_.FE("PLAYER_LABEL_PAUSE"):_.FE("PLAYER_LABEL_PLAY")};
_.g.onMuteButtonClick=function(){var q=this,N,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(_.MO().getPlayerPromise(),2);N=y.yieldResult;(b=_.Oe())&&q.muteButtonClientVE&&_.nr(b,q.muteButtonClientVE);N.isMuted()?N.unMute(!0):N.mute(!0);_.hj(y)})};
_.g.computeMuteIcon=function(q){return q?"miniplayer:volume-off":"miniplayer:volume-up"};
_.g.computeMuteLabel=function(q){return q?_.FE("PLAYER_LABEL_UNMUTE"):_.FE("PLAYER_LABEL_MUTE")};
_.g.onFullscreenButtonClick=function(){var q=_.Oe();q&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.nr(q,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.nr(q,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.wHf()};
_.$H.Object.defineProperties(O4.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var q=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(){q.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?_.x("web_shorts_modern_controls")?"player_full_exit_alt":_.x("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.x("web_shorts_modern_controls")?"player_full_enter_alt":_.x("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],O4.prototype,"componentBehavior",void 0);_.p([_.O(_.d2.YtPlayerListenerBehavior),_.P("design:type",_.cX)],O4.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],O4.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],O4.prototype,"player",void 0);_.p([_.U(),_.P("design:type",Object)],O4.prototype,"playerState",void 0);_.p([_.U(),_.P("design:type",Object)],O4.prototype,"isMuted",void 0);
_.p([_.U({computed:"computePlayPauseIcon(playerState)"}),_.P("design:type",String)],O4.prototype,"playPauseIcon",void 0);_.p([_.U({computed:"computeMuteIcon(isMuted)"}),_.P("design:type",String)],O4.prototype,"muteIcon",void 0);_.p([_.U({selector:_.AO}),_.P("design:type",Boolean)],O4.prototype,"isFullscreen",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],O4.prototype,"shortsModernControlsEnabled",void 0);
_.p([_.U(),_.P("design:type",Object)],O4.prototype,"volumeControlsOrientationState",void 0);_.p([_.U(),_.P("design:type",Object)],O4.prototype,"isOverlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],O4.prototype,"isAdsOverlay",void 0);_.p([_.U(),_.P("design:type",Object)],O4.prototype,"captionIconType",void 0);_.p([_.U(),_.P("design:type",Object)],O4.prototype,"ariaLabel",void 0);_.p([_.U(),_.P("design:type",Object)],O4.prototype,"ariaPressedState",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],O4.prototype,"overlayDensity",void 0);_.p([_.U(),_.P("design:type",Object)],O4.prototype,"data",void 0);_.p([_.U({computed:"computeActionBarButtonOverride()"}),_.P("design:type",Object)],O4.prototype,"actionBarButtonOverride",void 0);_.p([_.l("playerState"),_.P("design:type",Object),_.P("design:paramtypes",[])],O4.prototype,"playPauseButtonData",null);
_.p([_.l("isFullscreen"),_.P("design:type",Object),_.P("design:paramtypes",[])],O4.prototype,"fullscreenButtonData",null);_.p([_.U(),_.P("design:type",Object)],O4.prototype,"onClosedCaptionsButtonClick",void 0);_.p([_.l("isFullscreen"),_.P("design:type",String),_.P("design:paramtypes",[])],O4.prototype,"fullscreenIcon",null);
_.a(O4,"ytd-shorts-player-controls",function(){if(EZe===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);EZe=q}q=EZe;return q},{mode:1});var gZs;_.P$(_.MvK,"yt-interstitial-view-model",{props:{data:_.F5}});var ZIZ=_.n(function(q){var N=q.data;return _.u("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.u("h1",{class:"reelWatchBreakViewModelHostTitle"},_.u(_.Zc,{text:function(){return N().title}})),_.u("h2",{class:"reelWatchBreakViewModelHostBody"},_.u(_.Zc,{text:function(){return N().body},
isOverlay:!0})),_.u(_.zS,{data:function(){return N().buttons}},{buttonViewModel:function(b,y){return _.u("div",{class:function(){return y()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.u(_.Ou,{data:b.data}))}}))},"En");
ZIZ.idomCompat=!0;_.P$(ZIZ,"reel-watch-break-view-model",{props:{data:_.F5}});var wB=function(){return _.C.apply(this,arguments)||this};
_.Y(wB,_.C);wB.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}}};
_.$H.Object.defineProperties(wB.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var q;return!!_.v((q=this.data)==null?void 0:q.renderer,WRX)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var q;return!!_.v((q=this.data)==null?void 0:q.renderer,LRB)}}});
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],wB.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],wB.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],wB.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],wB.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.l("data.renderer"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],wB.prototype,"isSurvey",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.renderer"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],wB.prototype,"isInterstitialViewModel",null);_.p([_.I({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],wB);
_.a(wB,"ytd-reel-non-video-content-renderer",function(){if(gZs!==void 0)return gZs;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
return gZs=q},{mode:_.Am("kevlar_poly_si_batch_j028")?1:2});var FTc;_.P$(_.boA,"desktop-shorts-player-controls",{});var i2=function(){var q=_.C.apply(this,arguments)||this;q.isPlayerPaused=!1;q.isPlayerStarted=!1;q.showPlayerControls=!1;q.showScrubber=!1;q.autoHideJobId=0;q.overlayType=_.jA("web_shorts_expanded_overlay_type");q.panelData=void 0;q.isWatchWhileMode=!1;q.hasError=!1;q.panelShowDelayMs=1;q.scrubberComponent={};q.isFullscreen=!1;q.shouldHideOverlay=!1;q.enableAnchoredPanel=_.x("desktop_shorts_v2_anchored_panel");q.enablePersistentAnchoredPanel=_.x("desktop_shorts_v2_persistent_anchored_panel");q.hideWatchWhilePanel=
_.x("web_shorts_hide_watch_while_panel");q.useAspectRatio=_.x("web_use_aspect_ratio");q.enableShortsModernControls=_.x("web_shorts_modern_controls");q.isPersistentPanelActive=!1;q.anchoredPanelActive=!1;q.isShortsPipActive=!1;q.smallScreenSqueezeback=!1;q.enableFlexibleOverlay=_.x("web_enable_flexible_overlay");q.overlayDensity=0;q.extractOverlay=!1;q.extractActionBar=!1;q.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
q.onWindowResized=function(){_.Uk(q,"calculateOverlayDensity",function(){q.calculateOverlayDensity()},100)};
return q};
_.Y(i2,_.C);_.g=i2.prototype;_.g.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.g.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.g.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var q=_.tz().resolve(_.M8);this.isWatchWhileMode&&_.pY.addJob(function(){q.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.g.handleShowReelsCommentsOverlayCommand=function(q){q=_.v(q,Mx7);this.isActive&&(q==null?0:q.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))};
_.g.updateEngagementPanelVisibility=function(q,N){q&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:N?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:q}})};
_.g.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.g.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.tz().resolve(_.Ib).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.g.handleWatchWhilePanelScrimClick=function(){var q=_.tz().resolve(_.M8);this.activeWatchWhilePanel&&(q.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.g.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.g.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}}};
_.g.handlePlayerClick=function(q){var N=this,b,y;if((y=(b=window).matchMedia)!=null&&y.call(b,"(any-pointer: coarse)").matches||!q)this.showPlayerControls=!0,_.pY.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Ip(_.pY,function(){N.showPlayerControls=!1},4E3)};
_.g.isFirstReel=function(){return this.index===0};
_.g.handleMouseenter=function(){_.pY.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.g.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.g.handleScrubberEnter=function(){this.showScrubber=!0};
_.g.handleScrubberLeave=function(){this.showScrubber=!1};
_.g.maybeLogNonDefaultAspectRatio=function(){var q;(q=this.data)!=null&&q.thumbnail&&this.isActive&&.5625!==rXx(this.data.thumbnail)&&_.wrd("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.g.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var q=document.querySelector("#shorts-container");if(q){var N=!1,b,y=this.playerContainer.offsetWidth,J=this.playerContainer.offsetHeight;q=q.offsetWidth/2-y/2;q>=368?(q=1,N=b=!0):q>=72?(q=0,b=!0):(q=2,b=!1);y>=600&&J>=840?q=1:window.innerWidth<=599&&(q=2,b=N=!1);this.isPersistentPanelActive&&(q=0,N=!1);this.extractActionBar=b;_.x("web_enable_flexible_overlay")&&(this.overlayDensity=q,this.extractOverlay=
N);var E;(E=this.onOverlayDensityChanged)==null||E.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.g.onOverlayDensityChange=function(){var q;(q=this.onOverlayDensityChanged)==null||q.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(q=_.ee(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))q.set("overlayDensity",this.overlayDensity),q.set("extractOverlay",this.extractOverlay),q.set("extractActionBar",this.extractActionBar);if(q=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))q.overlayDensity=this.overlayDensity,q.extractOverlay=
this.extractOverlay,q.extractActionBar=this.extractActionBar};
_.g.isVideoContent=function(q){_.tz().resolve(_.Ib);return!!_.v(q,_.uI)};
_.g.isNonVideoContent=function(q){_.tz().resolve(_.Ib);return!!_.v(q,_.Nz)};
_.g.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.$H.Object.defineProperties(i2.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.adsOverlay)}},
enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var q,N;return _.x("web_enable_format_first")||((q=this.data)==null?void 0:q.adsOverlay)&&_.x("web_enable_format_first_ads_only")||((N=this.data)==null?void 0:N.reelPlayerOverlayRenderer)&&_.x("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.x("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var q;return!this.isActive||!this.isPlayerStarted||(q=this.data)!=null&&q.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var q;if(((q=this.data)==null?0:q.command)&&this.isVideoContent(this.data.command)){var N,b;if(((N=this.data)==null?0:N.adsOverlay)&&Object.keys((b=this.data)==null?void 0:b.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var y,J;if(((y=this.data)==null?0:y.reelPlayerOverlayRenderer)&&Object.keys((J=this.data)==null?void 0:J.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
i2.prototype.onOverlayDensityChange=i2.prototype.onOverlayDensityChange;i2.prototype.calculateOverlayDensity=i2.prototype.calculateOverlayDensity;i2.prototype.maybeLogNonDefaultAspectRatio=i2.prototype.maybeLogNonDefaultAspectRatio;i2.prototype.onEngagementPanelsChanged=i2.prototype.onEngagementPanelsChanged;i2.prototype.onScrubberDataChange=i2.prototype.onScrubberDataChange;i2.prototype.updateShouldHideOverlay=i2.prototype.updateShouldHideOverlay;
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],i2.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],i2.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],i2.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Number)],i2.prototype,"index",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],i2.prototype,"isActive",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],i2.prototype,"isHiddenInDom",void 0);_.p([_.U(),_.P("design:type",Object)],i2.prototype,"isPlayerPaused",void 0);_.p([_.U({selector:Vxe}),_.P("design:type",Object)],i2.prototype,"isPlayerStarted",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"showPlayerControls",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"showScrubber",void 0);_.p([_.U(),_.P("design:type",Object)],i2.prototype,"autoHideJobId",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"overlayType",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],i2.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],i2.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],i2.prototype,"watchWhileEngagementPanels",void 0);_.p([_.U(),_.P("design:type",Object)],i2.prototype,"panelData",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"isWatchWhileMode",void 0);_.p([_.U(),_.P("design:type",String)],i2.prototype,"activeWatchWhilePanel",void 0);_.p([_.U(),_.P("design:type",Object)],i2.prototype,"hasError",void 0);_.p([_.U(),_.P("design:type",Object)],i2.prototype,"panelShowDelayMs",void 0);
_.p([_.U(),_.P("design:type",Object)],i2.prototype,"scrubberComponent",void 0);_.p([_.U({selector:_.AO,reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"isFullscreen",void 0);_.p([_.U(),_.P("design:type",Object)],i2.prototype,"shouldHideOverlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"enableAnchoredPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"enablePersistentAnchoredPanel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"hideWatchWhilePanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"useAspectRatio",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"enableShortsModernControls",void 0);_.p([_.U({selector:_.pID,reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"isPersistentPanelActive",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"anchoredPanelActive",void 0);_.p([_.U({selector:_.ez,reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"isShortsPipActive",void 0);_.p([_.U({selector:X1B,reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"smallScreenSqueezeback",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data.adsOverlay"),_.P("design:type",Object),_.P("design:paramtypes",[])],i2.prototype,"isAdsOverlay",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],i2.prototype,"enableFormatFirst",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"enableFlexibleOverlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"overlayDensity",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"extractOverlay",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"extractActionBar",void 0);_.p([_.U(),_.P("design:type",Function)],i2.prototype,"onOverlayDensityChanged",void 0);_.p([_.U(),_.l("isActive","hasError","isPlayerStarted"),_.P("design:type",Object),_.P("design:paramtypes",[])],i2.prototype,"shouldRenderPlayerElements",null);_.p([_.U(),_.l("isActive","isWatchWhileMode"),_.P("design:type",Object),_.P("design:paramtypes",[])],i2.prototype,"watchWhileOrPersistentActive",null);
_.p([_.FY("isActive","hasError","showingExpandedOverlay"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],i2.prototype,"updateShouldHideOverlay",null);_.p([_.U({reflectToAttribute:!0}),_.l("isActive","isPlayerStarted","data"),_.P("design:type",Object),_.P("design:paramtypes",[])],i2.prototype,"shouldRenderScrubber",null);
_.p([_.FY("shouldRenderScrubber"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],i2.prototype,"onScrubberDataChange",null);_.p([_.l("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],i2.prototype,"overlayComponent",null);_.p([_.FY("watchWhileEngagementPanels"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],i2.prototype,"onEngagementPanelsChanged",null);
_.p([_.dq("#player-container"),_.P("design:type",HTMLElement)],i2.prototype,"playerContainer",void 0);_.p([_.dq("#cinematic-container"),_.P("design:type",HTMLElement)],i2.prototype,"cinematicContainer",void 0);_.p([_.FY("isPersistentPanelActive","data.thumbnail"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],i2.prototype,"maybeLogNonDefaultAspectRatio",null);
_.p([_.FY("isPersistentPanelActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],i2.prototype,"calculateOverlayDensity",null);_.p([_.FY("overlayDensity","extractOverlay","extractActionBar"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],i2.prototype,"onOverlayDensityChange",null);_.p([_.I({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],i2);
_.a(i2,"ytd-reel-video-renderer",function(){if(FTc!==void 0)return FTc;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return FTc=q},{mode:_.Am("kevlar_poly_si_batch_j028")?1:2});var l2=function(){var q=_.C.apply(this,arguments)||this;q.isPreviousPageShorts=!1;q.index=0;q.delayedActiveIndex=0;q.playablePreviousIndex=null;q.isPlayerPaused=!1;q.isPlayerStarted=!1;q.intersectionObserverThreshold=.6;q.fitToVisibleBounds=!1;q.pageSubtype="shorts";q.enablePreviousContinuation=_.x("shorts_in_playlists_web");q.shortsPipEnabled=_.x("web_shorts_pip");q.isDark=document.documentElement.hasAttribute("dark");q.shortsViewTransitions=_.x("web_shorts_view_transitions");q.isFullscreen=!1;q.isShortsPipActive=
!1;q.buttonOverride={iconPosition:"icon-only",size:"XL"};q.anchoredPanelActive=!1;q.isActive=!1;q.smallScreenPersistentPanel=!1;q.isPersistentPanelActive=!1;q.smallScreenSqueezeBack=!1;q.enableScrollIntoViewCenter=_.x("web_scroll_into_view_center");q.formatFirst=_.x("web_enable_format_first")||_.x("web_enable_format_first_ads_only")||_.x("web_enable_format_first_organic_only");q.enableFlexibleOverlay=_.x("web_enable_flexible_overlay");q.extractOverlay=!1;q.useAspectRatio=_.x("web_use_aspect_ratio");
q.enableShortsSequenceRefactorUnify=_.x("web_enable_shorts_sequence_refactor_unify");q.carouselContainers=[];q.isShortsInitialized=!1;q.shortsContentList=[];q.hasDataUpdated=!1;q.playerInPosition=!1;q.hidePreviousButtonImmediately=!1;q.showPreviousButtonImmediately=!1;q.endOfNextContinuation=!1;q.currentPlayerIndex=0;q.nextReelVe=_.bx(56921);q.prevReelVe=_.bx(56922);q.loopToggleOffVe=_.bx(198013);q.loopToggleOnVe=_.bx(198014);q.ambientModeToggleVe=_.bx(227860);q.reelPlayerPausedStateRendererVe=_.bx(141313);
q.storedPlaybackSpeed=null;q.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"};q.onOverlayDensityChanged=function(N,b,y,J){N=q.getActiveReelVideo(N);q.extractOverlay=!!y;N==null||N.setAttribute("overlay-density",String(b));y===void 0||N!=null&&N.toggleAttribute("extract-overlay",
y);J===void 0||N!=null&&N.toggleAttribute("extract-action-bar",J)};
return q};
_.Y(l2,_.C);_.g=l2.prototype;_.g.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.g.setShortsContentList=function(){var q=this,N=this.shortsContentList&&this.reelWatchSequenceResponse?[].concat(_.a9(this.shortsContentList)):[],b=this.firstShortsData;if(b){var y=this.reelWatchSequenceResponse;if(b=this.shortsController==null?void 0:k2h(N,b,y!=null?y:null)){y=b.newContentList;var J=b.indexChange;if(y.length!==N.length){var E;(E=this.intersectionObserver)==null||E.disconnect();this.shortsContentList=y;J!==0&&(this.index=J,_.ZQ(_.pY,function(){var F;(F=q.getActiveReelVideo(J))==
null||F.scrollIntoView({behavior:"instant",block:"nearest",inline:"center"});q.movePlayerToVideo(J)},100));
_.pY.addLowPriorityJob(function(){q.observeShorts()},500)}}}};
_.g.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.g.onResize=function(){var q=_.WT(),N=q.dispatch,b=this.calculateIsSmallWidth();N.call(q,_.B3({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:b}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.g.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}}};
_.g.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var q=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,N=q,b=0;q<250&&(N=q+this.shortsInnerContainer.clientWidth,b=24);_.Jm(this.hostElement,{"--ytd-shorts-header-width":N+"px","--ytd-shorts-top-spacing":b+"px"})}};
_.g.isFirstShorts=function(q){return q&&!this.enableShortsSequenceRefactorUnify?this.index===-q.length:this.index===0};
_.g.isActiveReel=function(q,N,b){b&&(N=this.calculatePrevIndex(N,b));return q===N};
_.g.onFullscreenChange=function(){_.x("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.tz().resolve(_.l9).close(!0))};
_.g.engagementPanelsChanged=function(){var q;this.watchWhileEngagementPanels=(q=this.data)==null?void 0:q.engagementPanels};
_.g.unregisterPanels=function(){var q=_.tz().resolve(_.M8);if(this.watchWhileEngagementPanels)for(var N=_.Z(this.watchWhileEngagementPanels),b=N.next();!b.done;b=N.next()){var y=b.value,J=void 0,E=void 0;b=(J=y.engagementPanelSectionListRenderer)==null?void 0:(E=J.identifier)==null?void 0:E.tag;y=this.getPanelIdentifier(y.engagementPanelSectionListRenderer);q&&(b&&q.panelMap.delete(b),y&&_.x("web_shorts_panel_caching_bugfix")&&(J=b=void 0,(J=(b=q).unregisterPanelContent)==null||J.call(b,y)))}};
_.g.isVideoContent=function(q){return this.isVideoContentCommand(q==null?void 0:q.command)};
_.g.getActiveReelVideo=function(q){return _.ee(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+q+'"]')};
_.g.calculatePrevIndex=function(q,N){return N?q-((N==null?void 0:N.length)||0):-1};
_.g.onKeydown=function(q){var N=_.n9(q)||[];if(!_.OkX(N))if(q.code==="ArrowUp")q.preventDefault(),this.handlePrevButtonClick();else if(q.code==="ArrowDown")q.preventDefault(),this.handleNextButtonClick();else if(q.code==="KeyM")this.toggleMuteUnmuteVideo();else if(q.code==="KeyK"||q.code==="Space")this.togglePlayPauseVideo();else if((q.code==="KeyA"||q.code==="ArrowLeft")&&_.x("web_shorts_keyboard_enable_seek_shortcuts")){var b;(b=this.player)==null||b.seekBy(-5)}else if((q.code==="KeyD"||q.code===
"ArrowRight")&&_.x("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var y;(y=this.player)==null||y.seekBy(5)}};
_.g.onServiceRequestCompleted=function(q,N){q=N.data;if(this.enableShortsSequenceRefactorUnify){if(q.continuationEndpoint||q.prevContinuationEndpoint)this.reelWatchSequenceResponse=q}else q.continuationEndpoint&&q.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:q.entries,continuationEndpoint:q.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=q):q.prevContinuationEndpoint&&q.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:q.prevEntries,
prevContinuationEndpoint:q.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.g.handleEngagementPanelVisibilityChanged=function(q,N){var b=_.tz().resolve(_.M8);if(q&&b){var y=this.getPanelIdentifier(q);if(N==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==y){b.hidePanel({identifier:this.activePanel});var J;this.activePanel=((J=q.identifier)==null?void 0:J.tag)||q.panelIdentifier}else this.isPersistentPanelActive=!0,_.WT().dispatch(U0Z(!0)),this.anchoredPanelActive=!0,this.activePanel=y;else N==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===y&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.WT().dispatch(U0Z(!1)))}};
_.g.handlePanelScrimClick=function(){var q=_.tz().resolve(_.M8);this.activePanel&&(q.hidePanel({identifier:this.activePanel}),_.WT().dispatch(U0Z(!1)))};
_.g.getShortsLoopSetting=function(){var q,N,b,y,J;return _.d(function(E){switch(E.nextAddress){case 1:return _.x("kevlar_shorts_auto_advance")?E.yield(_.oM.getInstance(),2):E.return(!0);case 2:return(q=E.yieldResult)?E.yield(q.get("sfvles"),3):E.return(!0);case 3:return b=(N=E.yieldResult)!=null?N:!1,E.yield(q.get("sfvle"),4);case 4:return J=(y=E.yieldResult)!=null?y:!0,b?E.return(J):E.return(!0)}})};
_.g.handleSignalActionToggleLoopShortsOff=function(){var q=this,N,b,y;return _.d(function(J){switch(J.nextAddress){case 1:if(!q.player)return J.return();q.player.setLoopVideo(!1);N=_.FR();_.UM(N,q.loopToggleOffVe);return J.yield(_.oM.getInstance(),2);case 2:return(b=J.yieldResult)?J.yield(b.set("sfvle",!1),3):J.return();case 3:return J.yield(b.set("sfvles",!0),4);case 4:y=_.c3(),_.uG(0,203,!1),_.uG(0,204,!0),y.save(),_.hj(J)}})};
_.g.handleSignalActionToggleLoopShortsOn=function(){var q=this,N,b,y;return _.d(function(J){switch(J.nextAddress){case 1:if(!q.player)return J.return();q.player.setLoopVideo(!0);N=_.FR();_.UM(N,q.loopToggleOnVe);return J.yield(_.oM.getInstance(),2);case 2:return(b=J.yieldResult)?J.yield(b.set("sfvle",!0),3):J.return();case 3:return J.yield(b.set("sfvles",!0),4);case 4:y=_.c3(),_.uG(0,203,!0),_.uG(0,204,!0),y.save(),_.hj(J)}})};
_.g.handleSignalActionToggleCinematicShortsOn=function(){x0x(!0);var q;(q=this.JSC$22863_cinematicController)==null||_.Z3B(q,!0);_.UM(_.FR(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.g.handleSignalActionToggleCinematicShortsOff=function(){x0x(!1);var q;(q=this.JSC$22863_cinematicController)==null||_.Z3B(q,!1);_.UM(_.FR(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.g.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.g.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.g.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var q=this.overlayContainer.querySelector("#experiment-overlay");q&&_.pY.addLowPriorityJob(function(){q.style.display="unset"},100)}else if(this.overlayContainer){var N;
((N=this.playerElement.getPlayer())==null?void 0:N.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.g.getCurrentShort=function(){if(this.currentEndpoint){var q=this.currentEndpoint;if(this.isNonVideoContentCommand(q)){var N=_.v(q,_.Nz);return{reelNonVideoContentRenderer:_.v(N==null?void 0:N.renderer,_.yx),command:q}}if(this.data){var b;N=(b=_.v(this.currentEndpoint,_.uI))==null?void 0:b.thumbnail;var y;b=(y=this.data.overlay)==null?void 0:y.reelPlayerOverlayRenderer;_.tz().resolve(_.Ib);q=this.data;var J,E;y=(J=q.overlay)==null?void 0:(E=J.shortsAdsRenderer)==null?void 0:E.adSlots;if(y!==void 0)y.length===
0?(_.fT("Shorts ads returned no ad slots."),q=void 0):(y.length>1&&_.fT("Shorts ads has more than one ad slots."),q=_.v(y[0],_.TPj));else{var F,R;q=_.v((F=q.overlay)==null?void 0:(R=F.shortsAdsRenderer)==null?void 0:R.overlay,_.TPj)}F=q;q=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.v(this.currentEndpoint,_.uI),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var c;return{reelPlayerOverlayRenderer:b,thumbnail:N,command:q,adsOverlay:F,
videoId:(c=_.v(this.currentEndpoint,_.uI))==null?void 0:c.videoId}}}};
_.g.created=function(){var q=this;this.scrollToVideoThrottle=new _.El(function(N,b){b=b===void 0?"smooth":b;var y;(y=q.getActiveReelVideo(N))==null||y.scrollIntoView({behavior:b,block:"nearest",inline:q.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.tz().resolve(_.Ib);this.maybeCreateIntersectionObserver()};
_.g.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.g.attached=function(){var q=this;_.tz().resolve(_.Ib).registerRootElement(this);this.pageScrollElement=_.ee(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.gq(this,this.processResetAction));_.x("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){q.maybeCreateIntersectionObserver();q.scrollToVideoThrottle.fire(q.activeIndex,"instant");q.shortsContainer.style.overflowY=
"scroll"}))};
_.g.updateReelWatchSequenceResponse=function(){var q=this,N;if(_.x("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((N=_.v(this.currentEndpoint,_.uI))==null?0:N.sequenceParams)&&!this.reelWatchSequenceResponse){var b;(b=this.shortsController)==null||D0s(b,this.currentEndpoint).then(function(y){y&&(q.reelWatchSequenceResponse=y,q.cachedReelWatchSequenceResponse=y,_.pY.addLowPriorityJob(function(){q.observeShorts()}))})}};
_.g.calculateSqueezebackPanelSize=function(){var q=this,N=window.innerWidth-456-(window.innerHeight-106)*.5625;_.pY.addLowPriorityJob(function(){N<360?_.WT().dispatch(fuB(!0)):(q.hostElement.style.setProperty("--anchored-panel-width",Math.min(N,480)+"px"),_.WT().dispatch(fuB(!1)))})};
_.g.detached=function(){var q=_.tz().resolve(_.Ib);q.rootElement=void 0;var N;(N=q.unsubscribeFromStore)==null||N.call(q);q.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.gq(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.g.onResizeFinished=function(q,N){var b=this,y=new ResizeObserver(function(){b.shortsContainer.style.overflowY="hidden";_.pY.addLowPriorityJob(function(){N()},100)});
y.observe(q);return y};
_.g.resetDocumentScrollTop=function(){var q,N;if((q=document)==null?0:(N=q.scrollingElement)==null?0:N.scrollTop)document.scrollingElement.scrollTop=0};
_.g.loadPage_=function(q){var N=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),q){var b;if((b=_.v(this.currentEndpoint,_.uI))==null?0:b.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=q;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){N.isPlayerStarted&&
(N.handleOnPlaybackCommand(),N.afterPlayerStarted=function(){})};
this.registerPanel(q)}};
_.g.afterPlayerStarted=function(){};
_.g.handleOnPlaybackCommand=function(){if(_.x("web_shorts_comment_stickers")&&this.isPlayerStarted){var q,N=(q=_.v(this.currentEndpoint,_.uI))==null?void 0:q.onPlaybackCommand;N&&this.ytComponentBehavior.resolveCommand(N)}};
_.g.maybeCreateIntersectionObserver=function(){var q=this,N=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==N){this.intersectionObserverThreshold=N;var b={rootMargin:"0px",threshold:N},y;(y=this.intersectionObserver)==null||y.disconnect();this.intersectionObserver=new IntersectionObserver(function(J){J=_.Z(J);for(var E=J.next();!E.done;E=J.next())if(E=E.value,E.intersectionRatio>N){E=Number(E.target.id);if(isNaN(E))break;if(E===q.index)break;
_.pau();q.loadVideo(E);_.wg("r_vtc")}},b);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.g.observeShorts=function(){var q,N,b,y=this.enableShortsSequenceRefactorUnify?((q=this.shortsContentList)==null?void 0:q.length)||0:(((N=this.shortsProcessedPrevSequence)==null?void 0:N.length)||0)+(((b=this.shortsProcessedSequence)==null?void 0:b.length)||0);if(this.carouselContainers.length<y&&(this.carouselContainers=[].concat(_.a9(_.ee(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))),this.enableShortsSequenceRefactorUnify))for(q=_.Z(this.carouselContainers),N=q.next();!N.done;N=
q.next())N=N.value,b=void 0,(b=this.intersectionObserver)==null||b.observe(N);if(!this.enableShortsSequenceRefactorUnify)for(q=_.Z(this.carouselContainers),N=q.next();!N.done;N=q.next())N=N.value,b=void 0,(b=this.intersectionObserver)==null||b.observe(N)};
_.g.initCsi=function(){_.tFX("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var q={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"}},N,b;if((N=this.playerData)==null?0:(b=N.cacheMetadata)==null?0:b.isCacheHit)q.isCacheHit=!0;var y;if(N=(y=_.v(this.currentEndpoint,_.uI))==null?void 0:
y.prefetchTaskId)q.prefetchInfo={taskId:N};_.v3(q)};
_.g.isAd=function(){var q,N;return!!((q=_.v(this.currentEndpoint,_.uI))==null?0:(N=q.adClientParams)==null?0:N.isAd)};
_.g.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.g.getPlayerContainer=function(){var q;return(q=_.ee(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:q.playerContainer};
_.g.onPlayerStateChange=function(q){var N=this;this.isPlayerPaused=q===2;q!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?q===1&&this.index===0&&(this.isPlayerStarted||_.WT().dispatch(C5s(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.WT().dispatch(C5s(!0)));this.player&&!this.player.getLoopVideo()&&_.pY.addLowPriorityJob(function(){N.getShortsLoopSetting().then(function(b){var y;(y=N.player)==null||y.setLoopVideo(b)})});
this.isPlayerPaused&&_.x("web_shorts_paused_state_logging")&&_.Tr(_.Oe(),[this.reelPlayerPausedStateRendererVe])};
_.g.isShortPlayable=function(){if(_.x("kevlar_playable_short_killswitch"))return!0;var q;return(q=this.playerData)!=null&&q.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.g.setNormalPlaybackSpeed=function(){var q=this,N,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(q.getPlayer().getPlayerPromise(),2);N=y.yieldResult;b=N.getPlaybackRate();b!==1&&(q.storedPlaybackSpeed=b,N.setPlaybackRate(1));_.hj(y)})};
_.g.restorePlaybackSpeed=function(){var q=this,N;return _.d(function(b){if(b.nextAddress==1)return q.storedPlaybackSpeed===null?b.jumpTo(0):b.yield(q.getPlayer().getPlayerPromise(),3);N=b.yieldResult;N.setPlaybackRate(q.storedPlaybackSpeed);q.storedPlaybackSpeed=null;_.hj(b)})};
_.g.playerDataChanged=function(){var q=this,N,b,y,J,E,F,R,c,z;return _.d(function(m){if(m.nextAddress==1){N=q.getPlayer();q.enableShortsSequenceRefactorUnify||(b=q.intersectionObserver)==null||b.disconnect();if(q.playerData){if(((y=q.playerData.videoDetails)==null?void 0:y.videoId)!==((J=N.getPlayer())==null?void 0:J.getVideoData().video_id)){E={};if(F=_.v(q.currentEndpoint,_.uI))E.watch_endpoint=F,F.endTimeSeconds&&(E.end=F.endTimeSeconds);N.loadVideoWithPlayerResponse(q.playerData,E)}}else return m.return();
return q.player?m.jumpTo(2):m.yield(N.getPlayerPromise(),3)}m.nextAddress!=2&&(q.player=m.yieldResult,q.JSC$22863_playerStateChangeListener=q.onPlayerStateChange.bind(q),q.player.addEventListener("onStateChange",q.JSC$22863_playerStateChangeListener),_.x("kevlar_client_enable_shorts_player_bootstrap")&&_.kA(),q.scrollToVideoThrottle.fire(q.index),q.movePlayerToVideo(q.index),_.pY.addLowPriorityJob(function(){q.getShortsLoopSetting().then(function(r){var X;(X=q.player)==null||X.setLoopVideo(r)})}),
_.AJ4.resolve(q.player),q.player.syncVolume(),q.getPlayer().focusOnPlayer());
_.pY.addLowPriorityJob(function(){q.observeShorts()},100);
R=q.player.getPlayerState(q.player.getPresentingPlayerType());R!==1||q.isPlayerStarted||_.WT().dispatch(C5s(!0));q.updateBackNavContainerWidth();c=_.v(q.currentEndpoint,_.uI);((z=c)==null?0:z.startTimeSeconds)&&q.player.seekTo(c.startTimeSeconds);if(q.JSC$22863_cinematicController||q.cinematicsInitializeJobId)return m.return();q.cinematicsInitializeJobId=_.pY.addLowPriorityJob(function(){q.initCinematicController();q.cinematicsInitializeJobId=void 0});
_.hj(m)})};
_.g.onShortUndoDismiss=function(){var q=this,N=KRx().pop();N!==void 0&&(_.ut(this,function(){q.showCardWithIndex(N)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.g.onShortsDismiss=function(q){if(q=q.detail.reelDismissalActionRenderer)(q=_.v(q.onDismissalCompletionRenderer,_.nNB))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:q}}}),this.scrollAndDismissCard()};
_.g.processReelNonVideoContentDismissalCommand=function(q){var N=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);q=_.v(q,P5X);this.activeDimissalTimeout=setTimeout(function(){N.scrollAndDismissCard()},Number(q==null?void 0:q.delayMs))};
_.g.scrollAndDismissCard=function(){var q=this,N=this.index;KRx().push(N);_.ut(this,function(){var b=q.getPlayableNextIndex();b!==null&&(q.hideCardWithIndex(N),q.scrollToVideoThrottle.fire(b))})};
_.g.hideCardWithIndex=function(q){if(q=this.getActiveReelVideo(q))q.hidden=!0};
_.g.showCardWithIndex=function(q){if(q=this.getActiveReelVideo(q))q.hidden=!1};
_.g.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.g.activeChanged=function(q){_.WT().dispatch(_.B3({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:q}}));if(q)document.addEventListener("keydown",_.gq(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var N;(N=this.player)==null||N.sendAbandonmentPing()}var b;(b=this.player)==null||b.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.gq(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.g.graftClientVisualElements=function(){if(this.data){var q=_.FR();_.pej(q,_.bG({response:this.reelWatchSequenceResponse}));_.hI(q,this.nextReelVe);_.hI(q,this.prevReelVe);_.x("kevlar_shorts_auto_advance")&&(_.hI(q,this.loopToggleOffVe),_.hI(q,this.loopToggleOnVe));_.hI(q,this.ambientModeToggleVe);_.Tr(_.Oe(),[this.nextReelVe,this.prevReelVe]);_.x("web_shorts_paused_state_logging")&&_.hI(q,this.reelPlayerPausedStateRendererVe)}};
_.g.graftNvcRenderer=function(){var q,N,b,y,J,E,F=this.enableShortsSequenceRefactorUnify?(q=this.shortsContentList)==null?void 0:(N=q[this.index])==null?void 0:N.command:this.index<0?(b=this.shortsProcessedPrevSequence)==null?void 0:(y=b[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:y.command:(J=this.shortsProcessedSequence)==null?void 0:(E=J[this.index])==null?void 0:E.command;if(F&&this.isNonVideoContentCommand(F)){q=_.v(F,_.Nz);var R,c;(q=(R=_.v(q==null?void 0:q.renderer,_.yx))==
null?void 0:(c=R.loggingDirectives)==null?void 0:c.trackingParams)&&_.FR().graftServerVe(q)}};
_.g.setActiveIndex=function(){_.tz().resolve(_.Ib).setActiveIndex(this.index)};
_.g.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.g.lazyUpdateMiniplayerData=function(){var q=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.pY.addLowPriorityJob(function(){q.updateMiniplayerData();q.updateMiniplayerDataJobId=void 0}))};
_.g.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.pY.cancelJob(this.updateMiniplayerDataJobId)};
_.g.updateMiniplayerData=function(){var q,N,b,y=_.tz().resolve(_.l9),J={shortsData:this.getCurrentShort(),previousButtonDisabled:!((q=this.prevButtonData)==null||!q.isDisabled),nextButtonDisabled:!((N=this.nextButtonData)==null||!N.isDisabled),playabilityStatus:(b=this.playerData)==null?void 0:b.playabilityStatus};_.fZ(y,J)};
_.g.resetPlayerLocation=function(){var q=this.getPlayer();this.initialPlayerContainer&&q.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.g.movePlayerToVideo=function(q,N){var b=this;N=N===void 0?!0:N;var y=this.getActiveReelVideo(q),J=this.getPlayer();if(y){this.overlayContainer?y.appendChild(this.overlayContainer):(this.overlayContainer=_.ee(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,y.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||J.appendTo(this.overlayContainer.playerContainer,void 0,!0));var E;(E=this.player)==null||E.setSize(NaN,NaN);this.isActive||_.Ip(_.pY,function(){b.isActive=
!0});
J.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.x("reels_web_disable_rtr_tick")||_.x("reels_web_use_pbs_first_shorts")&&q===0||_.Q6("r_tr");this.currentPlayerIndex=q;y.appendChild(this.errorScreenContainer);var F;(F=this.JSC$22863_cinematicController)==null||_.RMe(F)}else N?_.pY.addLowPriorityJob(function(){b.movePlayerToVideo(b.index,!1)}):Math.random()<=_.VX("web_shorts_error_logging_threshold")&&_.P_(new _.IO("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:N,
index:q}))};
_.g.enableFormatFirst=function(q){return _.x("web_enable_format_first")||q.adsOverlay&&_.x("web_enable_format_first_ads_only")||q.reelPlayerOverlayRenderer&&_.x("web_enable_format_first_organic_only")};
_.g.getAspectRatio=function(q){if(this.enableFormatFirst(q))return(q==null?0:q.thumbnail)&&rXx(q.thumbnail)?"--ytd-shorts-player-ratio: "+rXx(q.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.g.getBackgroundImage=function(q){if(q!=null&&q.thumbnail)return(q=_.oi(q.thumbnail.thumbnails))?'background-image:url("'+q+'");':"background-color:black;"};
_.g.onPersistentPanelActiveChanged=function(){var q=this.getCurrentShort();if(q&&this.enableFormatFirst(q)&&(q==null?0:q.thumbnail)&&rXx(q.thumbnail)!==.5625){var N;(N=this.player)==null||N.setSize(NaN,NaN)}};
_.g.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.g.moveCinematicsToVideo=function(){var q=_.ee(this.hostElement).querySelector("ytd-reel-video-renderer");(q==null?0:q.cinematicContainer)&&q.cinematicContainer!==this.shortsCinematicContainer.parentElement&&q.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.g.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.g.updatePrevButtonData=function(){var q=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);q?this.prevButtonData=q=Object.assign({},q,{accessibility:{label:_.FE("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.FE("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=q=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.g.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.g.updateNextButtonData=function(){var q=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);q&&(this.nextButtonData=q=Object.assign({},q,{accessibility:{label:_.FE("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.FE("NEXT_VIDEO_LABEL")||""}))};
_.g.getPlayablePreviousIndex=function(){for(var q,N=this.index-1;N>=-(((q=this.prevShortsSequence)==null?void 0:q.length)||0);N--)if(!KRx().includes(N))return N;return null};
_.g.getIndexInSequence=function(q,N){return q.findIndex(function(b){var y;return((y=_.v(b.command,_.uI))==null?void 0:y.videoId)===N})};
_.g.handlePrevButtonClick=function(q){var N=this,b,y;return _.d(function(J){b=N.getPlayablePreviousIndex();if(b===null)return J.return();N.gestureType=((y=q)==null?void 0:y.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";b===0&&(N.hidePreviousButtonImmediately=!0);if(N.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){N.scrollToVideoThrottle.fire(b,"auto")}),J.return();
N.scrollToVideoThrottle.fire(b);_.hj(J)})};
_.g.getPlayableNextIndex=function(){for(var q,N,b=this.index+1;b<(this.enableShortsSequenceRefactorUnify?(q=this.shortsContentList)==null?void 0:q.length:((N=this.shortsProcessedSequence)==null?void 0:N.length)||0);b++)if(!KRx().includes(b))return b;return null};
_.g.handleNextButtonClick=function(q,N){var b=this,y,J;return _.d(function(E){y=b.getPlayableNextIndex();if(y===null)return E.return();y===1&&(b.showPreviousButtonImmediately=!0);b.gestureType=((J=q)==null?void 0:J.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";N&&(b.gestureType=N);if(b.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){b.scrollToVideoThrottle.fire(y,"auto")}),E.return();
b.scrollToVideoThrottle.fire(y);_.hj(E)})};
_.g.handleReelNavigateCommand=function(q,N,b){(q=_.v(q,p1B))&&N&&q.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(b)};
_.g.loadVideo=function(q,N){N=N===void 0?!1:N;if(q!==this.currentPlayerIndex){_.WT().dispatch(C5s(!1));if(this.isAd()&&!N){var b;(b=this.player)==null||b.notifyShortsAdSwipeEvent()}if((N=this.JSC$22863_cinematicController)!=null){var y;(y=N.currentCinematicEffect)==null||y.pause()}if((y=this.JSC$22863_cinematicController)!=null){var J;(J=y.currentCinematicEffect)==null||J.clear()}y=q>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(y));
this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var E,F,R,c,z,m;J=this.enableShortsSequenceRefactorUnify?(E=this.shortsContentList)==null?void 0:(F=E[q])==null?void 0:F.command:q<0?(R=this.shortsProcessedPrevSequence)==null?void 0:(c=R[this.shortsProcessedPrevSequence.length+q])==null?void 0:c.command:(z=this.shortsProcessedSequence)==null?void 0:(m=z[q])==
null?void 0:m.command;this.index=q;this.gestureType||(this.gestureType=y?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");J&&this.isVideoContentCommand(J)&&(this.ytComponentBehavior.resolveCommand(J,{form:{createScreenConfig:{clickedVisualElement:y?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(J&&this.isNonVideoContentCommand(J)){this.currentEndpoint=J;this.data=void 0;E=_.FR();F=_.v(J,_.Nz);var r,X;(F=(r=
_.v(F==null?void 0:F.renderer,_.yx))==null?void 0:(X=r.screenLoggingData)==null?void 0:X.screenVeType)&&_.DO(E,F);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(r=this.getActiveReelVideo(q))&&r.appendChild(this.overlayContainer)}var V,G;r=this.enableShortsSequenceRefactorUnify?((V=this.shortsContentList)==null?void 0:V.length)===q+1:((G=this.reelWatchSequenceResponse)==null?void 0:G.entries)&&q===this.reelWatchSequenceResponse.entries.length-1;var w;if(((w=
this.reelWatchSequenceResponse)==null?0:w.continuationEndpoint)&&r){var D,k;V={contentPlaybackContext:_.HD({},(k=_.v((D=this.currentEndpoint)==null?void 0:D.commandMetadata,_.gg))==null?void 0:k.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:V})}var f,L;q=this.enableShortsSequenceRefactorUnify?q===0:q===-(((f=this.reelWatchSequenceResponse)==null?void 0:(L=f.prevEntries)==null?void 0:L.length)||0);var S,W;((S=this.reelWatchSequenceResponse)==
null?0:S.prevContinuationEndpoint)&&((W=this.reelWatchSequenceResponse)==null?0:W.prevEntries)&&q&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.g.setMiniplayerPreview=function(q){q=(q===void 0?0:q)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var N,b,y,J,E=_.tz().resolve(_.l9),F={shortsData:void 0,shortsPreviewThumbnail:q?this.enableShortsSequenceRefactorUnify?(N=this.shortsContentList)==null?void 0:(b=N[q])==null?void 0:b.thumbnail:(y=this.shortsProcessedSequence)==null?void 0:(J=y[q])==null?void 0:J.thumbnail:void 0};_.fZ(E,F)};
_.g.updateTitle=function(q){var N,b;q=(q==null?0:q.adSlots)?"":(b=q==null?void 0:(N=q.videoDetails)==null?void 0:N.title)!=null?b:"";_.e2(this.hostElement,"yt-update-title",q)};
_.g.registerPanel=function(q){var N=_.tz().resolve(_.M8);if(N){q=_.Z(q.engagementPanels||[]);for(var b=q.next();!b.done;b=q.next()){b=b.value;var y=this.getPanelIdentifier(b.engagementPanelSectionListRenderer),J=void 0,E=void 0;(E=(J=N).registerPanelContent)==null||E.call(J,y,b)}}};
_.g.getPanelIdentifier=function(q){var N;return(q==null?void 0:(N=q.identifier)==null?void 0:N.tag)||(q==null?void 0:q.panelIdentifier)||(q==null?void 0:q.targetId)};
_.g.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;_.WT().dispatch(C5s(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=[];_.WT().dispatch(U0Z(!1));
var q;(q=this.shortsController)!=null&&(q.dismissedIndices=[]);var N;(N=this.shortsController)!=null&&N.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.tz().resolve(_.l9).close(!0)};
_.g.processAppendReelWatchSequenceContinuationEntriesAction=function(q){var N=this,b;(b=this.intersectionObserver)==null||b.disconnect();q=q.appendReelWatchSequenceContinuationEntriesAction;if(q==null?0:q.entries){var y;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.a9(((y=this.reelWatchSequenceResponse)==null?void 0:y.entries)||[]),_.a9(q.entries)),continuationEndpoint:q.continuationEndpoint})}else if(q==null?0:q.prevEntries){var J;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.a9(((J=this.reelWatchSequenceResponse)==null?void 0:J.prevEntries)||[]),_.a9(q.prevEntries)),prevContinuationEndpoint:q.prevContinuationEndpoint});_.pY.addLowPriorityJob(function(){N.movePlayerToVideo(N.index);N.scrollToVideoThrottle.fire(N.index,"instant")})}else return;
_.pY.addLowPriorityJob(function(){N.observeShorts()},100)};
_.g.processWatchSequence=function(q){var N=this;return q.map(function(b){b=b.command;if(N.isVideoContentCommand(b)){var y=_.v(b,_.uI);return{reelPlayerOverlayRenderer:_.v(y==null?void 0:y.overlay,_.bgv),thumbnail:y.thumbnail,command:b}}return N.isNonVideoContentCommand(b)?(y=_.v(b,_.Nz),{reelNonVideoContentRenderer:_.v(y==null?void 0:y.renderer,_.yx),command:b}):{command:b}})};
_.g.calculateIntersectionObserverThreshold=function(){var q=_.ee(this.hostElement).querySelector("ytd-reel-video-renderer"),N=1;(q==null?0:q.offsetHeight)&&(q==null?0:q.offsetWidth)&&(N=Math.min(q.offsetHeight,this.shortsContainer.offsetHeight)/q.offsetHeight*(Math.min(q.offsetWidth,this.shortsContainer.offsetWidth)/q.offsetWidth));return Math.round(N*.6*10)/10};
_.g.isVideoContentCommand=function(q){_.tz().resolve(_.Ib);return!!_.v(q,_.uI)};
_.g.isNonVideoContentCommand=function(q){_.tz().resolve(_.Ib);return!!_.v(q,_.Nz)};
_.g.initCinematicController=function(){var q=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22863_cinematicController=new _.jq(this.shortsCinematicContainer,this.player);var N,b=_.v((N=this.data)==null?void 0:N.background,_.Ns);_.FRB(this.JSC$22863_cinematicController,b);_.Z3B(this.JSC$22863_cinematicController,jeX(b));_.gLZ(this.JSC$22863_cinematicController);_.pY.addLowPriorityJob(function(){q.moveCinematicsToVideo()})}};
_.g.handleMiniplayerNavigateShorts=function(q){q==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():q==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.g.handleSignalActionToggleShortsPictureInPicture=function(){if(_.tz().resolve(_.l9).pictureInPictureSupported()){var q=_.tz().resolve(_.Ib);if(_.x("web_shorts_pip")){var N=_.tz().resolve(_.l9);q.isShortsPipActive()?N.deactivate():N.isMiniplayerActive()||(_.sM().shortsPipActivation=!0,_.ufx(N))}}else(q=this.player)==null||q.togglePictureInPicture()};
_.$H.Object.defineProperties(l2.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.reelWatchSequenceResponse)!=null&&q.prevEntries)return this.processWatchSequence([].concat(_.a9(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(_.a9(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.reelWatchSequenceResponse)!=null&&q.entries&&!this.enableShortsSequenceRefactorUnify)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var q=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var N;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((N=this.shortsProcessedSequence)==null?void 0:N.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var b;N=_.v((b=this.firstShortsData)==null?void 0:b.command,_.uI);if(N==null||!N.videoId)return this.shortsProcessedSequence;b=this.getIndexInSequence(this.shortsSequence,
N.videoId);if(b!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=b,_.pY.addLowPriorityJob(function(){q.scrollToVideoThrottle.fire(q.index,"auto");q.movePlayerToVideo(q.index)}));
return[].concat(_.a9(this.shortsSequence))}_.ZQ(_.pY,function(){q.observeShorts()},100);
return[this.firstShortsData].concat(_.a9(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var q=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;q&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(q)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 q;return this.index===((q=this.shortsContentList)==null?NaN:q.length)-1}if(this.endOfNextContinuation){var N,b;return this.index===((N=this.reelWatchSequenceResponse)==null?void 0:(b=N.entries)==null?void 0:b.length)}var y;return!((y=this.reelWatchSequenceResponse)==null?0:y.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var q;(q=this.delayedActiveIndexUpdateDebouncer)==null||q.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return this.isShortPlayable()||((N=_.v((q=this.data)==null?void 0:q.watchStatus,_.c0o))==null?void 0:(b=N.style)==null?void 0:b.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var q=this,N=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),b;if((this.data||N)&&(((b=this.data)==null?0:b.engagementPanels)||this.isAd()||N)){N=!1;this.activePanel="shorts-comments-panel";var y;b=_.Z(((y=this.data)==null?void 0:y.engagementPanels)||[]);for(y=b.next();!y.done;y=b.next())if(this.getPanelIdentifier(y.value.engagementPanelSectionListRenderer)===this.activePanel){N=!0;break}if(this.isPersistentPanelActive){var J=
_.tz().resolve(_.M8);_.Ip(_.pY,function(){J.showPanel({identifier:q.activePanel,target:null})},100)}var E;
y=[].concat(_.a9(Object.values(((E=this.data)==null?void 0:E.engagementPanels)||{})));E=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);b=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return E===void 0&&b===void 0||(E==null?0:E.isDisabled)||(b==null?void 0:b.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!N?(N=y==null?void 0:y.findIndex(function(F){var R,c;return((R=F.engagementPanelSectionListRenderer)==null?void 0:(c=R.identifier)==null?void 0:c.tag)==="shorts-comments-panel"}),N===-1||N===void 0||y!=null&&y.splice(N,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.FE("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.FE("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:_.FE("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.FE("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(_.a9(Object.values(y||
{})))):y}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var q=this,N,b,y;if((N=this.playerData)==null?0:(b=N.playabilityStatus)==null?0:(y=b.errorScreen)==null?0:y.playerInterstitialRenderer)return _.pY.addLowPriorityJob(function(){q.movePlayerToVideo(q.index)}),this.playerData.playabilityStatus.errorScreen;
var J,E;return((J=this.data)==null?void 0:J.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((E=this.data)==null?0:E.watchStatus)&&_.v(this.data.watchStatus,_.DMx)?(_.pY.addLowPriorityJob(function(){q.movePlayerToVideo(q.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.$H.Object.defineProperties(l2,{template:{configurable:!0,enumerable:!0,get:function(){if(eMs===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);eMs=q}q=eMs;return q}}});
l2.prototype.onNextButtonDataChange=l2.prototype.onNextButtonDataChange;l2.prototype.onPrevButtonDataChange=l2.prototype.onPrevButtonDataChange;l2.prototype.onPersistentPanelActiveChanged=l2.prototype.onPersistentPanelActiveChanged;l2.prototype.lazyUpdateMiniplayerData=l2.prototype.lazyUpdateMiniplayerData;l2.prototype.onShortsPipActiveChanged=l2.prototype.onShortsPipActiveChanged;l2.prototype.setActiveIndex=l2.prototype.setActiveIndex;l2.prototype.graftNvcRenderer=l2.prototype.graftNvcRenderer;
l2.prototype.graftClientVisualElements=l2.prototype.graftClientVisualElements;l2.prototype.onActiveChanged=l2.prototype.onActiveChanged;l2.prototype.onShortsDismiss=l2.prototype.onShortsDismiss;l2.prototype.onShortUndoDismiss=l2.prototype.onShortUndoDismiss;l2.prototype.playerDataChanged=l2.prototype.playerDataChanged;l2.prototype.afterPlayerStarted=l2.prototype.afterPlayerStarted;l2.prototype.updateReelWatchSequenceResponse=l2.prototype.updateReelWatchSequenceResponse;
l2.prototype.unhideCurrentOverlay=l2.prototype.unhideCurrentOverlay;l2.prototype.onServiceRequestCompleted=l2.prototype.onServiceRequestCompleted;l2.prototype.engagementPanelsChanged=l2.prototype.engagementPanelsChanged;l2.prototype.onFullscreenChange=l2.prototype.onFullscreenChange;l2.prototype.onResize=l2.prototype.onResize;l2.prototype.setShortsContentList=l2.prototype.setShortsContentList;l2.prototype.setFirstShortsData=l2.prototype.setFirstShortsData;
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],l2.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.Jp.YtPageBehavior),_.P("design:type",Object)],l2.prototype,"ytPageBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],l2.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.SQ),_.P("design:type",Object)],l2.prototype,"ironResizableBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],l2.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],l2.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],l2.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],l2.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Object)],l2.prototype,"playerData",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"reelWatchSequenceResponse",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"cachedReelWatchSequenceResponse",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"cachedSequenceParams",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"cachedSequenceProvider",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"currentEndpoint",void 0);
_.p([_.U(),_.P("design:type",Object)],l2.prototype,"nextButtonData",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"prevButtonData",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"isPreviousPageShorts",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"index",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"delayedActiveIndex",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"playablePreviousIndex",void 0);
_.p([_.U(),_.P("design:type",Object)],l2.prototype,"player",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"isPlayerPaused",void 0);_.p([_.U({selector:Vxe}),_.P("design:type",Object)],l2.prototype,"isPlayerStarted",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"intersectionObserver",void 0);_.p([_.U(),_.P("design:type",Number)],l2.prototype,"cinematicsInitializeJobId",void 0);_.p([_.U(),_.P("design:type",Number)],l2.prototype,"updateMiniplayerDataJobId",void 0);
_.p([_.U(),_.P("design:type",Object)],l2.prototype,"fitToVisibleBounds",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"pageSubtype",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],l2.prototype,"enablePreviousContinuation",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],l2.prototype,"shortsPipEnabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],l2.prototype,"isDark",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],l2.prototype,"shortsViewTransitions",void 0);_.p([_.U({selector:_.AO,reflectToAttribute:!0}),_.P("design:type",Object)],l2.prototype,"isFullscreen",void 0);_.p([_.U({selector:_.ez,reflectToAttribute:!0}),_.P("design:type",Object)],l2.prototype,"isShortsPipActive",void 0);_.p([_.dq("#shorts-inner-container"),_.P("design:type",HTMLElement)],l2.prototype,"shortsInnerContainer",void 0);
_.p([_.dq("#back-nav-button ytd-button-renderer"),_.P("design:type",_.V5)],l2.prototype,"backNavButton",void 0);_.p([_.dq("#shorts-container"),_.P("design:type",HTMLElement)],l2.prototype,"shortsContainer",void 0);_.p([_.ZF("error-screen"),_.P("design:type",HTMLElement)],l2.prototype,"errorScreenContainer",void 0);_.p([_.ZF("player"),_.P("design:type",Object)],l2.prototype,"playerElement",void 0);
_.p([_.ZF("shorts-cinematic-container"),_.P("design:type",HTMLElement)],l2.prototype,"shortsCinematicContainer",void 0);_.p([_.ZF("initial-player-container"),_.P("design:type",HTMLElement)],l2.prototype,"initialPlayerContainer",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"buttonOverride",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],l2.prototype,"anchoredPanelActive",void 0);_.p([_.U(),_.P("design:type",String)],l2.prototype,"activePanel",void 0);
_.p([_.U(),_.P("design:type",Object)],l2.prototype,"isActive",void 0);_.p([_.U({selector:X1B,reflectToAttribute:!0}),_.P("design:type",Object)],l2.prototype,"smallScreenPersistentPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],l2.prototype,"isPersistentPanelActive",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"smallScreenSqueezeBack",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"enableScrollIntoViewCenter",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],l2.prototype,"formatFirst",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],l2.prototype,"enableFlexibleOverlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],l2.prototype,"extractOverlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],l2.prototype,"useAspectRatio",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],l2.prototype,"enableShortsSequenceRefactorUnify",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"shortsController",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"panelContainer",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"overlayContainer",void 0);_.p([_.U(),_.P("design:type",Array)],l2.prototype,"carouselContainers",void 0);
_.p([_.U(),_.P("design:type",Object)],l2.prototype,"isShortsInitialized",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"firstShortsData",void 0);_.p([_.U(),_.P("design:type",Object)],l2.prototype,"firstShortsDataModel",void 0);_.p([_.U(),_.P("design:type",Array)],l2.prototype,"shortsContentList",void 0);_.p([_.l("reelWatchSequenceResponse"),_.P("design:type",Object),_.P("design:paramtypes",[])],l2.prototype,"prevShortsSequence",null);
_.p([_.l("data","prevShortsSequence"),_.l("data","prevShortsSequence"),_.P("design:type",Object),_.P("design:paramtypes",[])],l2.prototype,"shortsProcessedPrevSequence",null);_.p([_.l("reelWatchSequenceResponse"),_.P("design:type",Object),_.P("design:paramtypes",[])],l2.prototype,"shortsSequence",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"setFirstShortsData",null);
_.p([_.FY("reelWatchSequenceResponse","firstShortsData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"setShortsContentList",null);_.p([_.l("data","shortsSequence","firstShortsData"),_.P("design:type",Object),_.P("design:paramtypes",[])],l2.prototype,"shortsProcessedSequence",null);
_.p([_.U({reflectToAttribute:!0}),_.l("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],l2.prototype,"isUpArrowHidden",null);_.p([_.U({reflectToAttribute:!0}),_.l("reelWatchSequenceResponse","index","endOfNextContinuation","shortsContentList"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],l2.prototype,"isDownArrowHidden",null);
_.p([_.U(),_.l("index"),_.P("design:type",Number),_.P("design:paramtypes",[])],l2.prototype,"activeIndex",null);_.p([_.l("isShortPlayable","data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],l2.prototype,"shouldRenderOfflineContent",null);_.p([_.ZP("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"onResize",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],l2.prototype,"anchoredEngagementPanels",null);
_.p([_.U(),_.P("design:type",Object)],l2.prototype,"watchWhileEngagementPanels",void 0);_.p([_.FY("isFullscreen"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"onFullscreenChange",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"engagementPanelsChanged",null);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],l2.prototype,"onServiceRequestCompleted",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"unhideCurrentOverlay",null);_.p([_.FY("currentEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"updateReelWatchSequenceResponse",null);
_.p([_.FY("isPlayerStarted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"afterPlayerStarted",null);_.p([_.l("playerData","reelWatchSequenceResponse","data"),_.P("design:type",Object),_.P("design:paramtypes",[])],l2.prototype,"errorScreen",null);_.p([_.l("errorScreen"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],l2.prototype,"hasError",null);
_.p([_.FY("playerData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],l2.prototype,"playerDataChanged",null);_.p([_.ZP("yt-dismissible-item-undo-feedback"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"onShortUndoDismiss",null);_.p([_.ZP("yt-disable-lockup-interaction"),_.P("design:type",Function),_.P("design:paramtypes",[Object]),_.P("design:returntype")],l2.prototype,"onShortsDismiss",null);
_.p([_.$9("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"onActiveChanged",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"graftClientVisualElements",null);_.p([_.FY("currentPlayerIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"graftNvcRenderer",null);
_.p([_.FY("index"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"setActiveIndex",null);_.p([_.FY("isShortsPipActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"onShortsPipActiveChanged",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"lazyUpdateMiniplayerData",null);
_.p([_.U(),_.P("design:type",Object)],l2.prototype,"onOverlayDensityChanged",void 0);_.p([_.FY("isPersistentPanelActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"onPersistentPanelActiveChanged",null);_.p([_.FY("index","data","isUpArrowHidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"onPrevButtonDataChange",null);
_.p([_.FY("index","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"onNextButtonDataChange",null);_.p([_.I({is:"ytd-shorts"})],l2);_.qJ.registerService(_.mph,l2);
_.pF();
}catch(e){_._DumpException(e)}
try{
_.LF("JzFVk");
var dIX;var cWe;var qb=function(){return _.C.apply(this,arguments)||this};
_.Y(qb,_.C);qb.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
qb.prototype.computeBlueBottomLink=function(q){return q};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],qb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],qb.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.bottomIcon)"}),_.P("design:type",String)],qb.prototype,"bottomIcon",void 0);
_.p([_.U({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.P("design:type",Boolean)],qb.prototype,"enableBlueBottomLink",void 0);_.p([_.I({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],qb);
_.a(qb,"ytd-web-answer-renderer",function(){if(cWe!==void 0)return cWe;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return cWe=q},{mode:_.Am("kevlar_poly_si_batch_j035")?1:2});var uzX;var Nb=function(){var q=_.C.apply(this,arguments)||this;q.hasChipBar=!1;return q};
_.Y(Nb,_.C);Nb.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}}};
Nb.prototype.computeHasChipBar=function(q){return!(q==null||!q.chipBar)};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Nb.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Nb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Nb.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.P("design:type",Object)],Nb.prototype,"hasChipBar",void 0);_.p([_.I({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Nb);
_.a(Nb,"ytd-search-header-renderer",function(){if(uzX!==void 0)return uzX;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return uzX=q},{mode:1});var zpB;var b2=function(){return _.C.apply(this,arguments)||this};
_.Y(b2,_.C);b2.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],b2.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],b2.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-page-continuation"})],b2);
_.a(b2,"ytd-page-continuation",function(){if(zpB!==void 0)return zpB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return zpB=q},{mode:1});var $I_;var tGc;var mIe;var rW7=function(){return _.C.apply(this,arguments)||this};
_.Y(rW7,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],rW7.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],rW7.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],rW7);
_.a(rW7,"ytd-watch-card-one-vs-one-event",function(){if(mIe!==void 0)return mIe;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return mIe=q},{mode:1});var XYy=function(){return _.C.apply(this,arguments)||this};
_.Y(XYy,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],XYy.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],XYy.prototype,"data",void 0);_.p([_.I({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],XYy);
_.a(XYy,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(tGc!==void 0)return tGc;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return tGc=q},{mode:1});var VGy;var jA7=function(){return _.C.apply(this,arguments)||this};
_.Y(jA7,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],jA7.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],jA7.prototype,"data",void 0);_.p([_.I({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],jA7);
_.a(jA7,"ytd-banner-and-box-hero-image-renderer",function(){if(VGy!==void 0)return VGy;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return VGy=q},{mode:1});var xIZ;var yZ=function(){var q=_.C.apply(this,arguments)||this;q.modern=_.x("web_modern_buttons");return q};
_.Y(yZ,_.C);yZ.prototype.computeIcon=function(){var q,N,b=(q=this.data)==null?void 0:(N=q.icon)==null?void 0:N.iconType;if(b)return _.qo(b)};
yZ.prototype.computeButtonShape=function(){var q;return{buttonText:_.ao((q=this.data)==null?void 0:q.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.$H.Object.defineProperties(yZ.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"}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],yZ.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],yZ.prototype,"modern",void 0);_.p([_.U({type:_.x("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.l("data.style"),_.P("design:type",Object),_.P("design:paramtypes",[])],yZ.prototype,"buttonColor",null);
_.p([_.I({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],yZ);
_.a(yZ,"ytd-call-to-action-button-renderer",function(){if(xIZ!==void 0)return xIZ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return xIZ=q},{mode:1});var vNc;var JL=function(){return _.C.apply(this,arguments)||this};
_.Y(JL,_.C);JL.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.ee(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.Mo(this.data.leftThumbnail.thumbnails,216)+")")};
JL.prototype.onLeftThumbnailChanged=JL.prototype.onLeftThumbnailChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],JL.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],JL.prototype,"data",void 0);_.p([_.FY("data.leftThumbnail"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],JL.prototype,"onLeftThumbnailChanged",null);_.p([_.I({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],JL);
_.a(JL,"ytd-collage-hero-image-renderer",function(){if(vNc!==void 0)return vNc;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return vNc=q},{mode:1});var GP_;var E4=function(){return _.C.apply(this,arguments)||this};
_.Y(E4,_.C);E4.prototype.computeStyle=function(q){return q};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],E4.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],E4.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],E4.prototype,"componentStyle",void 0);_.p([_.I({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],E4);
_.a(E4,"ytd-single-hero-image-renderer",function(){if(GP_!==void 0)return GP_;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return GP_=q},{mode:1});var YNZ;var gB=function(){return _.C.apply(this,arguments)||this};
_.Y(gB,_.C);_.g=gB.prototype;
_.g.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:_.x("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.g.computeSubtitle=function(q){if(this.data){var N;if(this.data.upcomingEventData){q=_.ao(q.subtitle);var b=Number(this.data.upcomingEventData.startTime);isNaN(b)||(N=_.nD(_.X3(q,b)))}else N=q.subtitle;return N}};
_.g.onHeroTap=function(q){q.preventDefault();var N=this.data&&this.data.navigationEndpoint;!N||!_.Su(_.n9(q),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Su(_.n9(q),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.x("kevlar_watchcard_hero_video_renderer_killswitch")?_.e2(this.hostElement,"yt-navigate",{navigationEndpoint:N}):this.ytComponentBehavior.resolveCommand(N))};
_.g.computeHeroTabIndex=function(q){return q&&q.simpleText?-1:0};
_.g.computeHeroRole=function(q){return q&&q.simpleText?"":"link"};
_.g.computeIsReminderButtonPresent=function(q){return!(!q||!q.reminderButton)};
_.g.computeHideBottomItems=function(q){return!(this.computeIsReminderButtonPresent(q)||q.subtitle)};
_.g.dataChanged=function(){var q=this.get("data.buttons.buttonRenderer.serviceEndpoint"),N;((N=_.v(q==null?void 0:q.commandMetadata,_.nO))==null?0:N.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(q)};
gB.prototype.dataChanged=gB.prototype.dataChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],gB.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],gB.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],gB.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],gB.prototype,"data",void 0);
_.p([_.U({computed:"computeSubtitle(data)"}),_.P("design:type",String)],gB.prototype,"subtitle",void 0);_.p([_.U({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],gB.prototype,"isReminderButtonPresent",void 0);_.p([_.U({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],gB.prototype,"hideBottomItems",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gB.prototype,"dataChanged",null);_.p([_.I({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],gB);
_.a(gB,"ytd-watch-card-hero-video-renderer",function(){if(YNZ!==void 0)return YNZ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return YNZ=q},{mode:1});var QAv;var ZX=function(){return _.C.apply(this,arguments)||this};
_.Y(ZX,_.C);_.g=ZX.prototype;_.g.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"}}}};
_.g.computeTitleBadges=function(q){return q?[q]:[]};
_.g.computeHeaderStyle=function(q){return q?q.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.g.computeAvatarAriaLabel=function(q){if(q){var N,b,y,J;return(J=(N=q.avatar)==null?void 0:(b=N.accessibility)==null?void 0:(y=b.accessibilityData)==null?void 0:y.label)!=null?J:_.ao(q==null?void 0:q.title)}};
_.g.computeAvatarHeight=function(q){return q==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.g.computeBadgeRowClass=function(q){return(q==null?0:q[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ZX.prototype,"data",void 0);_.p([_.U({computed:"computeTitleBadges(data.titleBadge)"}),_.P("design:type",Array)],ZX.prototype,"titleBadges",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.P("design:type",String)],ZX.prototype,"headerStyle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.P("design:type",String)],ZX.prototype,"badgeRowClass",void 0);_.p([_.I({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],ZX);
_.a(ZX,"ytd-watch-card-rich-header-renderer",function(){if(QAv!==void 0)return QAv;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return QAv=q},{mode:1});var OFx;var wYZ;var Fq=function(){return _.C.apply(this,arguments)||this};
_.Y(Fq,_.C);Fq.prototype.onMetadataTap=function(q){var N=this.data&&this.data.navigationEndpoint;N&&!_.Su(_.n9(q),this.hostElement,["A".toString()])&&_.e2(this.hostElement,"yt-navigate",{endpoint:N})};
_.$H.Object.defineProperties(Fq.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 q;if(this.data.upcomingEventData){var N=_.ao(this.data.subtitle),b=Number(this.data.upcomingEventData.startTime);isNaN(b)||(q=_.nD(_.X3(N,b)))}else q=this.data.subtitle;return q}}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Fq.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Fq.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data.style"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Fq.prototype,"isCondensed",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Fq.prototype,"subtitle",null);
_.p([_.I({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Fq);
_.a(Fq,"ytd-watch-card-compact-video-renderer",function(){if(wYZ!==void 0)return wYZ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return wYZ=q},{mode:1});var iFv;var lze=function(){return _.C.apply(this,arguments)||this};
_.Y(lze,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],lze.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],lze.prototype,"data",void 0);_.p([_.I({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],lze);
_.a(lze,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(iFv!==void 0)return iFv;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return iFv=q},{mode:1});var RB=function(){return _.C.apply(this,arguments)||this};
_.Y(RB,_.C);RB.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}}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],RB.prototype,"ytRendererStamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],RB.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],RB.prototype,"data",void 0);_.p([_.I({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],RB);
_.a(RB,"ytd-vertical-watch-card-list-renderer",function(){if(OFx!==void 0)return OFx;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return OFx=q},{mode:1});var KWv;var dB=function(){var q=_.C.apply(this,arguments)||this;q.ariaExpanded="false";return q};
_.Y(dB,_.C);_.g=dB.prototype;_.g.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.g.dataChanged=function(){var q;this.currentSeasonIndex=((q=this.data)==null?void 0:q.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.g.computeEpisodesInfo=function(q,N,b){if(q!==void 0&&N.length===q.length)return q[b]};
_.g.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.g.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.g.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.g.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.g.getUppercaseSimpleString=function(q){return this.ytRendererBehavior.getSimpleString(q).toUpperCase()};
_.g.updateCurrentSeasonIndexFromBinding=function(q){this.currentSeasonIndex=q.detail.value};
dB.prototype.onIronOverlayClosed=dB.prototype.onIronOverlayClosed;dB.prototype.currentSeasonIndexChanged=dB.prototype.currentSeasonIndexChanged;dB.prototype.dataChanged=dB.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],dB.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],dB.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],dB.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",String)],dB.prototype,"label",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],dB.prototype,"currentSeasonIndex",void 0);_.p([_.U({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.P("design:type",Object)],dB.prototype,"episodesInfo",void 0);_.p([_.U({value:"false"}),_.P("design:type",Object)],dB.prototype,"ariaExpanded",void 0);_.p([_.dq("#lists"),_.P("design:type",Object)],dB.prototype,"lists",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dB.prototype,"dataChanged",null);_.p([_.$9("currentSeasonIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dB.prototype,"currentSeasonIndexChanged",null);_.p([_.ZP("iron-overlay-closed"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],dB.prototype,"onIronOverlayClosed",null);
_.p([_.I({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],dB);
_.a(dB,"ytd-watch-card-section-dropdown-renderer",function(){if(KWv!==void 0)return KWv;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return KWv=q},{mode:1});var DIl;var cM=function(){var q=_.C.apply(this,arguments)||this;q.isSearch=!1;return q};
_.Y(cM,_.C);cM.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}}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],cM.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],cM.prototype,"isSearch",void 0);_.p([_.I({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],cM);
_.a(cM,"ytd-watch-card-section-sequence-renderer",function(){if(DIl!==void 0)return DIl;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
return DIl=q},{mode:1});var hp7=_.n(function(q){return _.u("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.u(_.zS,{data:function(){return q.data().ctaButton}},{buttonViewModel:_.Ou}),_.u(_.Zc,{text:function(){return q.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"rn");
hp7.idomCompat=!0;_.P$(hp7,"ytd-button-banner-view-model",{props:{data:_.F5}});var u2=function(){var q=_.C.apply(this,arguments)||this;q.isSearch=!1;return q};
_.Y(u2,_.C);
u2.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"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],u2.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],u2.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],u2.prototype,"rounded",void 0);_.p([_.U(),_.P("design:type",Object)],u2.prototype,"isSearch",void 0);
_.p([_.I({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],u2);
_.a(u2,"ytd-universal-watch-card-renderer",function(){if($I_!==void 0)return $I_;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return $I_=q},{mode:1});var kPs;_.P$(_.n(function(q){var N=q.data;var b;q=!((b=_.tz().resolve(_.$f(_.ft)))==null||!b());b={};return _.u("overview-message-view-model",{class:_.NO("ytwOverviewMessageViewModelHost",(b.ytwOverviewMessageViewModelDarkBackground=q,b.ytwOverviewMessageViewModelLightBackground=!q,b))},_.u(_.t,{cond:function(){return N().primaryImage},
then:function(y){return _.u(_.s_,{data:y,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.u(_.t,{cond:function(){return N().primaryText},
then:function(){return _.u("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.u(_.Zc,{text:function(){return N().primaryText}}))}}),_.u(_.t,{cond:function(){return N().secondaryText},
then:function(){return _.u("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.u(_.Zc,{text:function(){return N().secondaryText}}))}}))},"sn"),"overview-message-view-model",{props:{data:_.F5}});_.P$(_.$eX,"ytd-overview-answer-view-model",{props:{data:_.F5}});var zL=function(){return _.C.apply(this,arguments)||this};
_.Y(zL,_.C);zL.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"}}}};
zL.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],zL.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.tA),_.P("design:type",Object)],zL.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],zL.prototype,"data",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],zL.prototype,"isSearch",void 0);
_.p([_.I({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],zL);
_.a(zL,"ytd-secondary-search-container-renderer",function(){if(kPs!==void 0)return kPs;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
return kPs=q},{mode:1});var UIZ;var $S=function(){var q=_.C.apply(this,arguments)||this;q.renderSecondarySearchContainer=!1;q.isSearch=!1;return q};
_.Y($S,_.C);_.g=$S.prototype;_.g.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"}}}};
_.g.created=function(){var q=this;this.boundStampSecondarySearchContainerIfFits=function(){q.stampSecondarySearchContainerIfFits()};
_.PC("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.g.computeIsSearchFrictionPage=function(q){var N,b,y,J,E;q=q==null?void 0:(N=q.primaryContents)==null?void 0:(b=N.sectionListRenderer)==null?void 0:(y=b.contents)==null?void 0:(J=y[0])==null?void 0:(E=J.itemSectionRenderer)==null?void 0:E.contents;if(!q)return!1;N=_.Z(q);for(b=N.next();!b.done;b=N.next())if(y=void 0,(y=b.value)==null?0:y.searchFrictionViewModel)return!0;return!1};
_.g.computeShowSecondaryColumn=function(q,N){return!!(N&&N.secondaryContents&&q)};
_.g.activeChanged=function(){var q=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.gq(this,this.debounceStampSecondarySearchContainerIfFits)),_.k9(function(){q.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.gq(this,this.debounceStampSecondarySearchContainerIfFits))};
_.g.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.g.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.g.debounceStampSecondarySearchContainerIfFits=function(){_.Uk(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.g.onRetrieveLocation=function(q,N){N.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);q.stopPropagation()};
_.g.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
$S.prototype.dataChanged=$S.prototype.dataChanged;$S.prototype.onRetrieveLocation=$S.prototype.onRetrieveLocation;$S.prototype.persistentGuideChanged=$S.prototype.persistentGuideChanged;$S.prototype.activeChanged=$S.prototype.activeChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],$S.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],$S.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],$S.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.O(_.SQ),_.P("design:type",Object)],$S.prototype,"ironResizableBehavior",void 0);_.p([_.U(),_.P("design:type",Boolean)],$S.prototype,"active",void 0);_.p([_.U(),_.P("design:type",Object)],$S.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.x("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],$S.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.jA("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],$S.prototype,"biggerThumbsStyle",void 0);_.p([_.U(),_.P("design:type",Object)],$S.prototype,"renderSecondarySearchContainer",void 0);_.p([_.U({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.P("design:type",Boolean)],$S.prototype,"showSecondaryColumn",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.P("design:type",Boolean)],$S.prototype,"isSearchFrictionPage",void 0);
_.p([_.U(),_.P("design:type",Object)],$S.prototype,"isSearch",void 0);_.p([_.FY("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$S.prototype,"activeChanged",null);_.p([_.FY("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$S.prototype,"persistentGuideChanged",null);
_.p([_.ZP("yt-retrieve-location"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],$S.prototype,"onRetrieveLocation",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$S.prototype,"dataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],$S);
_.a($S,"ytd-two-column-search-results-renderer",function(){if(UIZ!==void 0)return UIZ;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return UIZ=q},{mode:1});var tL=function(){var q=_.C.apply(this,arguments)||this;q.hasSearchHeader=!1;q.hasSecondaryContent=!1;q.hasBiggerThumbs=_.x("enable_desktop_search_bigger_thumbs");q.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return q};
_.Y(tL,_.C);_.g=tL.prototype;_.g.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:_.I8(["aa","eocs"])}}};
_.g.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.g.loadPage_=function(q){this.initCsi();q&&(this.data=q,_.PC("REFINEMENTS_TUPLE",["FromSearchResponse",q.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Ff(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.g.initCsi=function(){_.tFX("results",["ol","cpt"])};
_.g.updateTitle=function(){var q=_.HY(window.location.href,"q");q||(q=_.HY(window.location.href,"search_query"));_.e2(this.hostElement,"yt-update-title",q||"")};
_.g.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.g.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.x("web_srp_data_changed_terminate_imp_killswitch")||_.By(this.hostElement,"yt-terminate-video-preview-action")};
_.g.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.g.computeHasSearchHeader=function(q){var N;q=q==null?void 0:(N=q.header)==null?void 0:N.searchHeaderRenderer;return!!q&&(!!q.searchFilterButton||!!q.chipBar)};
_.g.computeHasSecondaryContent=function(q){var N,b;return!!(q==null?0:(N=q.contents)==null?0:(b=N.twoColumnSearchResultsRenderer)==null?0:b.secondaryContents)};
_.$H.Object.defineProperties(tL,{template:{configurable:!0,enumerable:!0,get:function(){if(dIX===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);dIX=q}q=dIX;return q}}});
tL.prototype.onReloadContinuationFinish=tL.prototype.onReloadContinuationFinish;tL.prototype.dataChanged=tL.prototype.dataChanged;_.p([_.O(_.Jp.YtPageBehavior),_.P("design:type",Object)],tL.prototype,"ytPageBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],tL.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],tL.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],tL.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.tA),_.P("design:type",Object)],tL.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],tL.prototype,"data",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],tL.prototype,"monitorScroll",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],tL.prototype,"hasSearchHeader",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],tL.prototype,"hasSecondaryContent",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],tL.prototype,"hasBiggerThumbs",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tL.prototype,"dataChanged",null);
_.p([_.ZP("yt-reload-continuation-finish"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tL.prototype,"onReloadContinuationFinish",null);_.p([_.I({is:"ytd-search"})],tL);_.qJ.registerService(_.tJd,tL);
_.pF();
}catch(e){_._DumpException(e)}
try{
_.LF("h8y2qb");
var rje=function(q){if(q=_.ygJ(q)){var N;(N=q.sources)!=null&&N[0]?(N=_.EbD(q),N=N<1?"VERTICAL":N>1?"HORIZONTAL":"SQUARE"):N=void 0;return N}},EG=function(q){_.OI.call(this,"upload");
this.opts.query=q},VF7=function(q,N){return _.u(Xxc,{data:q,
onYtNavigate:N})},j9x=function(q,N){return _.Ji(q.entities,"pageHeaderEntity",N)},vis=function(q,N){return q.map(function(b){if(b.tabRenderer)return xne(b.tabRenderer);
if(b.expandableTabRenderer&&N){var y=b.expandableTabRenderer;return{customTabRenderable:function(){return N(y)}}}return{}})},xne=function(q){return{identifier:q.tabIdentifier,
aTagConfig:_.iq({innertubeCommand:q.endpoint,forceNewState:!0}),title:q.title,selected:q.selected,disabled:q.unselectable,icon:q.icon}},Gwv=function(q){return _.B3({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:q})},Y5Z=function(q){if(!_.oE(document,"gtm-noscript")){var N=document.createElement("noscript");
N.id="gtm-noscript";N.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+q+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(N)}};_.oK(EG,_.OI);EG.prototype.JSC$10155_setLabel=function(q){EG.superClass_.JSC$10155_setLabel.call(this,q);return this};
EG.prototype.addUploadMetadata=function(q,N){EG.superClass_.addUploadMetadata.call(this,q,N);return this};var Q9e=function(q){if(q!=="youtubebanner"&&q!=="youtube-channel-banner")throw Error("Oo");EG.call(this,q)};
_.Y(Q9e,EG);Q9e.prototype.JSC$10155_setLabel=function(q){EG.prototype.JSC$10155_setLabel.call(this,q);return this};
Q9e.prototype.addUploadMetadata=function(q,N){EG.prototype.addUploadMetadata.call(this,q,N);return this};var O7l=[_.SQ,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(q){_.mj(q).path[0]!==this&&(this.resetLayout(),q.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var q=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.$c(this._layoutDebouncer,_.m6,q);_.tt(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var q=this;requestAnimationFrame(function(){q.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(q){this.resizerShouldNotify(q)&&this._notifyDescendant(q)},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 wxZ=[_.ysT,{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(q,N){var b=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[q];if(!b)throw new ReferenceError(this._getUndefinedMsg(q));q=this._boundEffect(b,N||{});q.setUp();return q},
_effectsChanged:function(q,N,b){this._tearDownEffects();q&&b&&(q.split(" ").forEach(function(y){var J;y!==""&&((J=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[y])?this._effects.push(this._boundEffect(J,N[y])):console.warn(this._getUndefinedMsg(y)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(q,N){N=N||{};var b=parseFloat(N.startsAt||0),y=parseFloat(N.endsAt||1),J=y-b,E=function(){};
y=b===0&&y===1?q.run:function(F,R){q.run.call(this,Math.max(0,(F-b)/J),R)};
return{setUp:q.setUp?q.setUp.bind(this,N):E,run:q.run?y.bind(this):E,tearDown:q.tearDown?q.tearDown.bind(this):E}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(q){q.setUp()!==!1&&this._effectsRunFn.push(q.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(q){q.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(q,N){this._effectsRunFn&&this._effectsRunFn.forEach(function(b){b(q,N)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var q=this._clampedScrollTop;this._updateScrollState(q);this.threshold>0&&this._setThresholdTriggered(q>=this.threshold)}},
_getDOMRef:function(q){console.warn("_getDOMRef","`"+q+"` is undefined")},
_getUndefinedMsg:function(q){return"Scroll effect `"+q+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+q+".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(q){var N={};q=parseFloat(q.scalar);N.background=this._getDOMRef("background");N.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");N.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");N.deltaBg=N.backgroundFrontLayer.offsetHeight-N.background.offsetHeight;N.deltaBg===0?(isNaN(q)&&(q=.8),N.deltaBg=(this._dHeight||0)*q):(isNaN(q)&&(q=
1),N.deltaBg*=q);this._fxParallaxBackground=N},
run:function(q){var N=this._fxParallaxBackground;this.transform("translate3d(0px, "+N.deltaBg*Math.min(1,q)+"px, 0px)",N.backgroundFrontLayer);N.backgroundRearLayer&&this.transform("translate3d(0px, "+N.deltaBg*Math.min(1,q)+"px, 0px)",N.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var i7x;var lb7;var KtX=function(){};
_.g=KtX.prototype;_.g._scrollTargetChanged=function(){};
_.g.scroll=function(){};
_.g._isValidScrollTarget=function(){};
_.g._toggleScrollListener=function(){};
_.g.toggleScrollListener=function(){};
_.g.createEffect=function(){};
_.g._effectsChanged=function(){};
_.g._layoutIfDirty=function(){};
_.g._boundEffect=function(){};
_.g._setUpEffect=function(){};
_.g._tearDownEffects=function(){};
_.g._runEffects=function(){};
_.g._scrollHandler=function(){};
_.g._scrollStateChanged=function(){};
_.g._getUndefinedMsg=function(){};
_.g.notifyResize=function(){};
_.g.assignParentResizable=function(){};
_.g.stopResizeNotificationsFor=function(){};
_.g._subscribeIronResize=function(){};
_.g._unsubscribeIronResize=function(){};
_.g.resizerShouldNotify=function(){};
_.g._onDescendantIronResize=function(){};
_.g._fireResize=function(){};
_.g._onIronRequestResizeNotifications=function(){};
_.g._parentResizableChanged=function(){};
_.g._notifyDescendant=function(){};
_.g._requestResizeNotifications=function(){};
_.g._findParent=function(){};
_.g._appResetLayoutHandler=function(){};
_.g.resetLayout=function(){};
_.g._notifyLayoutChanged=function(){};
_.g._notifyDescendantResize=function(){};
_.g._setThresholdTriggered=function(){};
KtX=_.x9({_template:function(){if(lb7!==void 0)return lb7;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;i7x===void 0&&(i7x=document.createElement("template"));var y=i7x;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return lb7=q},
is:"tp-yt-app-header",behaviors:[wxZ,O7l],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 q=_.mj(this.$.slot).getDistributedNodes(),N=0,b;b=q[N];N++)if(b.nodeType===Node.ELEMENT_NODE)if(b.hasAttribute("sticky")){this._stickyElRef=b;break}else this._stickyElRef||(this._stickyElRef=b);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var q=this._clampedScrollTop,N=this._height===0||q===0,b=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;N||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();N?this._updateScrollState(q,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=b}},
_updateScrollState:function(q,N){if(this._height!==0){var b=0,y=this._top;var J=this._maxHeaderTop;var E=q-this._lastScrollTop,F=Math.abs(E),R=q>this._lastScrollTop,c=performance.now();this._mayMove()&&(b=this._clamp(this.reveals?y+E:q,0,J));q>=this._dHeight&&(b=this.condenses&&!this.fixed?Math.max(this._dHeight,b):b,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&F<100){if(c-this._initTimestamp>300||this._wasScrollingDown!==R)this._initScrollTop=q,this._initTimestamp=c;q>=J&&
(Math.abs(this._initScrollTop-q)>30||F>10?(R&&q>=J?b=J:!R&&q>=this._dHeight&&(b=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((b-y)/(E/(c-this._lastTimestamp)),0,300)+"ms"):b=this._top)}J=this._dHeight===0?q>0?1:0:b/this._dHeight;N||(this._lastScrollTop=q,this._top=b,this._wasScrollingDown=R,this._lastTimestamp=c);if(N||J!==this._progress||y!==b||q===0)this._progress=J,this._runEffects(J,b),this._transformHeader(b)}},
_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(q){this.translate3d(0,-q+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&q>=this._stickyElTop?Math.min(q,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(q,N,b){return Math.min(b,Math.max(N,q))},
_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),_.mj(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(q){switch(q){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.mj(this).querySelector("[main-title]");case "condensedTitle":return _.mj(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var Dn_;var hXh;_.x9({_template:function(){if(hXh!==void 0)return hXh;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;Dn_===void 0&&(Dn_=document.createElement("template"));var y=Dn_;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return hXh=q},
is:"tp-yt-app-header-layout",behaviors:[O7l],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0},rafId:{type:Number,value:-1},useRaf:{type:Boolean,value:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.mj(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var q=this.header;if(this.isAttached&&q){this.$.wrapper.classList.remove("initializing");q.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)q.style.left="",q.style.right="";else{var N=this.getBoundingClientRect(),b=document.documentElement.clientWidth-N.right;q.style.left=N.left+"px";q.style.right=b+"px"}N=this.$.contentContainer.style;b=q.offsetHeight;q.fixed&&!q.condenses&&this.hasScrollingRegion?
(N.marginTop=b+"px",N.paddingTop=""):(N.paddingTop=b+"px",N.marginTop="")}}});var kwh=new _.yT("alertCommand");var Uny=new _.yT("manageLabsStateCommand");var fbh=new _.yT("inlineFormRenderer");var C$h=new _.yT("playlistSidebarPrimaryInfoRenderer");var Ibc=new _.yT("productDetailsThumbnailRenderer"),T0v=new _.yT("productDetailsVariantRenderer"),s9x=new _.yT("productDetailsVariantOptionRenderer"),nic=new _.yT("productDetailsOffersContainerRenderer"),ab7=new _.yT("productDetailsOfferRenderer");var S5B=new _.yT("shoppingFlaggingRenderer");var Wts=new _.yT("playlistBylineRenderer");var Lth=new _.yT("insertChannelTabCommand");var gu=function(){return _.uL.apply(this,arguments)||this};
_.Y(gu,_.uL);_.g=gu.prototype;_.g.activeChanged=function(){if(this.active){var q=_.ee(this.hostElement).querySelector("#header");q&&_.e2(q,"iron-resize");window.addEventListener("scroll",_.gq(this,this.onScroll))}else window.removeEventListener("scroll",_.gq(this,this.onScroll)),_.e2(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.g.guideVisibleChanged=function(){var q=_.ee(this.hostElement).querySelector("#header");q&&_.e2(q,"iron-resize")};
_.g.onScroll=function(){var q=this;_.Uk(this,"onScroll",function(){var N=_.ee(q.hostElement).querySelector("#header");N&&N.polymerController&&(N=N.polymerController.getScrollState().progress===1?"standard":"seamed",_.e2(q.hostElement,"yt-request-panel-mode-change",{mode:N}))},10)};
_.g.tabsChanged=function(){if(this.tabs){for(var q=null,N=0,b=this.tabs.length;N<b;++N){var y=this.tabs[N].tabRenderer;if(y&&y.selected){q=N;break}}this.selected=q}};
_.g.onTabsActivate=function(q){_.e2(this.hostElement,"yt-navigate",{endpoint:this.tabs[q.detail.selected].tabRenderer.endpoint})};
gu.prototype.tabsChanged=gu.prototype.tabsChanged;gu.prototype.guideVisibleChanged=gu.prototype.guideVisibleChanged;gu.prototype.activeChanged=gu.prototype.activeChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],gu.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.U(),_.P("design:type",Array)],gu.prototype,"tabs",void 0);
_.p([_.U(),_.P("design:type",Object)],gu.prototype,"selected",void 0);_.p([_.U(),_.P("design:type",Boolean)],gu.prototype,"active",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],gu.prototype,"disableHeaderFluidWidth",void 0);_.p([_.FY("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gu.prototype,"activeChanged",null);
_.p([_.FY("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gu.prototype,"guideVisibleChanged",null);_.p([_.FY("tabs"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gu.prototype,"tabsChanged",null);_.p([_.zs()],gu);var pxB=[_.e.YtRendererBehavior,_.Eb.YtdGuideStateAwareBehavior,gu.prototype];var P$x=2/3,MFX=_.bx(130749),oiX=function(q,N){var b=this;this.element=q;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){b.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:P$x,moveAction:function(y){b.moveAction(y)},
triggerAction:function(){b.element.isReloading=!0;_.Ul(_.FR(),{visualElement:MFX});_.bq.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:b.element}})}}}};
_.k3(_.FR(),MFX,this.layer);this.gesture=new _.TA(q,N,this.refreshConfig,"pan-down");this.attach()};
_.g=oiX.prototype;_.g.attach=function(){this.gesture.attach()};
_.g.detach=function(){this.gesture.detach()};
_.g.reset=function(){this.element.close()};
_.g.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.g.moveAction=function(q){this.element.rotation=q*360};var Aj_=_.bx(130750),B0e=function(q,N,b,y,J){var E=this;this.element=q;this.parent=b;this.channelHeader=y;this.ytdReduxDispatch=J;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){E.tabsStartAtInPx=E.channelHeader.clientHeight-48;var F;(F=E.selectedTab)!=null&&F.title&&(F=_.tz().resolve(_.$f(_.L6)))&&(F=F.getCurrentPage(),E.lastVisitedTabScrollPosition=F.getScrollTop(),E.previousTab&&
((E.lastVisitedTabScrollPosition===void 0?0:E.lastVisitedTabScrollPosition<E.channelHeader.clientHeight-48)?E.scrollPositionForTabs.has(E.selectedTab.title)&&E.scrollPositionForTabs.delete(E.selectedTab.title):E.scrollPositionForTabs.set(E.selectedTab.title,F.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:eXZ(),triggerAction:function(){E.navigate(E.previousTab)},
moveAction:function(F,R){E.moveAction(F,R)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-eXZ(),triggerAction:function(){E.navigate(E.nextTab)},
moveAction:function(F,R){E.moveAction(F,R)}}}};
_.k3(_.FR(),Aj_,this.layer);this.gesture=new _.TA(q,N,this.tabConfig);this.attach()};
_.g=B0e.prototype;_.g.attach=function(){this.gesture.attach()};
_.g.detach=function(){this.gesture.detach()};
_.g.tabsChanged=function(q){if(q){var N=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;q=_.Z(q);for(var b=q.next();!b.done;b=q.next()){b=b.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=b);var y=void 0;if((y=b)==null?0:y.selected)this.previousTab=N,this.selectedTab=b;N=b}N=this.gesture;q=this.getConfig();N.config=q;this.scrollPositionNeedsUpdate=!0}};
_.g.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}})};
_.g.moveAction=function(q,N){if(!this.tabsElement){var b;this.tabsElement=(b=this.parent.header)==null?void 0:b.tabsElement;N==="right"&&this.previousTab?(b=this.previousTab.endpoint,_.cWC(_.tz().resolve(_.rh),b,{},"")):N==="left"&&this.nextTab&&(b=this.nextTab.endpoint,_.cWC(_.tz().resolve(_.rh),b,{},""));if(!this.tabsElement)return}b=this.tabsElement._pos;N==="right"&&(q*=-1);this.tabsElement._positionBar(b.width,b.left*1+b.width*q)};
var eXZ=function(){var q,N;return(N=(q=_.tz().resolve(_.L6).getCurrentPage())==null?void 0:q.clientWidth)!=null?N:0};
B0e.prototype.navigate=function(q){this.element.data=void 0;if(q=q==null?void 0:q.endpoint)this.ytdReduxDispatch(Gwv(!0)),_.Ul(_.FR(),{visualElement:Aj_}),_.bq.instance.resolveCommand({navigateAction:{endpoint:q}},{form:{element:this.element}})};var H7e;var qpx;var ZH=function(){return _.C.apply(this,arguments)||this};
_.Y(ZH,_.C);ZH.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ZH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ZH.prototype,"data",void 0);_.p([_.I({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],ZH);
_.a(ZH,"ytd-labs-edit-renderer",function(){if(qpx!==void 0)return qpx;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return qpx=q},{mode:1});var Nzs;var FD=function(){var q=_.C.apply(this,arguments)||this;q.dark=!1;q.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";q.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.Y(FD,_.C);FD.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
FD.prototype.ready=function(){var q=document.documentElement.hasAttribute("dark");this.setBackgroundImage(q);this.dark=q};
FD.prototype.onDarkModeToggledAction=function(q){this.setBackgroundImage(q);this.dark=q};
FD.prototype.setBackgroundImage=function(q){_.Jm(this.hostElement,{"--yt-labs-header-background":"url("+(q?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],FD.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],FD.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],FD.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],FD.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],FD.prototype,"dark",void 0);
_.p([_.I({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],FD);
_.a(FD,"ytd-labs-header-renderer",function(){if(Nzs!==void 0)return Nzs;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Nzs=q},{mode:1});var bMs;var RI=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return q};
_.Y(RI,_.C);RI.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"}}}}}};
RI.prototype.onYtToggleButton=function(q){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",q.detail.toggled)};
RI.prototype.onManageLabsState=function(q){if(q=_.v(q,Uny))q.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?q.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&q.labsItemId===this.data.labsItemId&&(q.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.By(this.hostElement,"yt-check-labs-opted-in-state").some(function(N){return N})&&this.data.confirmationDialogCommand?_.Nc(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.tz().resolve(_.rO).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&q.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.tz().resolve(_.rO).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
RI.prototype.onCheckLabsOptedInState=function(){var q=this.get("data.primaryButton.toggleButtonRenderer");return q?q.isToggled:!1};
_.$H.Object.defineProperties(RI.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
RI.prototype.onYtToggleButton=RI.prototype.onYtToggleButton;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],RI.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],RI.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],RI.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],RI.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],RI.prototype,"itemStyle",null);_.p([_.ZP("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],RI.prototype,"onYtToggleButton",null);_.p([_.I({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],RI);
_.a(RI,"ytd-labs-item-renderer",function(){if(bMs!==void 0)return bMs;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return bMs=q},{mode:1});var ybh;var JbX;var E7x=function(){return _.C.apply(this,arguments)||this};
_.Y(E7x,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],E7x.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],E7x.prototype,"data",void 0);_.p([_.I({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],E7x);
_.a(E7x,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(JbX!==void 0)return JbX;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return JbX=q},{mode:1});var g7X;var du=function(){return _.C.apply(this,arguments)||this};
_.Y(du,_.C);du.prototype.observeSuperchatChip=function(){if(this.data){var q={"--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)};_.Jm(this.hostElement,q)}};
du.prototype.colorFromDecimal=function(q){return _.Y8(Number(q||0))};
du.prototype.observeSuperchatChip=du.prototype.observeSuperchatChip;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],du.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],du.prototype,"data",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],du.prototype,"observeSuperchatChip",null);_.p([_.I({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],du);
_.a(du,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(g7X!==void 0)return g7X;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return g7X=q},{mode:1});var ci=function(){return _.C.apply(this,arguments)||this};
_.Y(ci,_.C);ci.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"}}}};
_.$H.Object.defineProperties(ci.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ci.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.N8),_.P("design:type",Object)],ci.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ci.prototype,"data",void 0);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ci.prototype,"hideMessageBlock",null);
_.p([_.I({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],ci);
_.a(ci,"ytd-live-chat-history-entry-renderer",function(){if(ybh!==void 0)return ybh;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return ybh=q},{mode:1});var ZMe;var Fsy=function(){return _.C.apply(this,arguments)||this};
_.Y(Fsy,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Fsy.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Fsy.prototype,"data",void 0);_.p([_.I({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],Fsy);
_.a(Fsy,"ytd-channel-options-renderer",function(){if(ZMe!==void 0)return ZMe;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return ZMe=q},{mode:1});var Rty;var u8=function(){return _.C.apply(this,arguments)||this};
_.Y(u8,_.C);u8.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],u8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],u8.prototype,"data",void 0);_.p([_.I({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],u8);
_.a(u8,"ytd-settings-email-item-renderer",function(){if(Rty!==void 0)return Rty;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Rty=q},{mode:1});var dY_;var zu=function(){return _.C.apply(this,arguments)||this};
_.Y(zu,_.C);zu.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"}}}};
zu.prototype.getExpansionIcon=function(q){return q?"COLLAPSE":"EXPAND"};
zu.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.$H.Object.defineProperties(zu.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],zu.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],zu.prototype,"data",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],zu.prototype,"expanded",void 0);_.p([_.l("expanded"),_.P("design:type",String),_.P("design:paramtypes",[])],zu.prototype,"emailListExpanded",null);
_.p([_.dq("#options"),_.P("design:type",Object)],zu.prototype,"options",void 0);_.p([_.I({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],zu);
_.a(zu,"ytd-settings-email-list-renderer",function(){if(dY_!==void 0)return dY_;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return dY_=q},{mode:1});var cbZ;var $v=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return q};
_.Y($v,_.C);$v.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"}}}};
$v.prototype.handleSignalActionSubmitForm=function(){var q,N=(q=this.formRenderer)==null?void 0:q.getForm();N&&this.data.serviceEndpoint&&_.tz().resolve(_.rO).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},N,{element:this.hostElement})})};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],$v.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],$v.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],$v.prototype,"data",void 0);_.p([_.dq("yt-form-renderer"),_.P("design:type",Object)],$v.prototype,"formRenderer",void 0);
_.p([_.I({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],$v);
_.a($v,"ytd-settings-gaia-link-renderer",function(){if(cbZ!==void 0)return cbZ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return cbZ=q},{mode:1});var uex;var tp=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return q};
_.Y(tp,_.C);tp.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.Lla()&&this.set("data.hidden",!1)};
tp.prototype.onSwitchReady=function(){var q=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.x("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.WlU().then(function(N){N&&(Notification.permission==="default"?q.set("data.hidden",!1):Notification.permission==="granted"&&_.Ma("NotificationsDisabled").then(function(b){b||_.By(q.hostElement,"yt-toggle-settings-switch",[q.data.id,!b]);q.set("data.hidden",!1)}).catch(function(){}))})})};
tp.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}}}}};
tp.prototype.handleUpdateOptionsCommand=function(q){(q=_.v(q,_.tQ4))&&this.data&&this.data.id===q.id&&(this.set("data.hidden",q.hidden),q.text!==void 0&&this.set("data.text",q.text),q.clearOptions&&this.set("data.options",[]))};
tp.prototype.onSwitchReady=tp.prototype.onSwitchReady;tp.prototype.dataChanged=tp.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],tp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],tp.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],tp.prototype,"data",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tp.prototype,"dataChanged",null);_.p([_.ZP("yt-settings-switch-ready"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tp.prototype,"onSwitchReady",null);_.p([_.I({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],tp);
_.a(tp,"ytd-settings-options-renderer",function(){if(uex!==void 0)return uex;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return uex=q},{mode:1});var ztX;var mg=function(){return _.C.apply(this,arguments)||this};
_.Y(mg,_.C);mg.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
mg.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
mg.prototype.onYtExpanderMoreTapped=mg.prototype.onYtExpanderMoreTapped;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],mg.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],mg.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],mg.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],mg.prototype,"data",void 0);
_.p([_.ZP("yt-expander-more-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mg.prototype,"onYtExpanderMoreTapped",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],mg);
_.a(mg,"ytd-product-details-description-renderer",function(){if(ztX!==void 0)return ztX;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return ztX=q},{mode:1});var $Ye;var ru=function(){var q=_.C.apply(this,arguments)||this;q.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";q.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";q.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";q.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return q};
_.Y(ru,_.C);ru.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.$H.Object.defineProperties(ru.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.data)==null?void 0:(N=q.offerData)==null?void 0:N.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.data)==null?void 0:q.purchaseButtonRenderers)!==void 0&&((N=this.data)==null?void 0:N.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var q,N;return!((q=this.data)==null||!q.formattedFromMerchantText)&&(!((N=this.data)==null||!N.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ru.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],ru.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ru.prototype,"data",void 0);
_.p([_.U({type:_.x("kevlar_property_type_migration_killswitch")?String:void 0}),_.P("design:type",Object)],ru.prototype,"shippingIcon",void 0);_.p([_.U({type:_.x("kevlar_property_type_migration_killswitch")?String:void 0}),_.P("design:type",Object)],ru.prototype,"shippingAddressIcon",void 0);_.p([_.U({type:_.x("kevlar_property_type_migration_killswitch")?String:void 0}),_.P("design:type",Object)],ru.prototype,"googleGuaranteeIcon",void 0);
_.p([_.U({type:_.x("kevlar_property_type_migration_killswitch")?String:void 0}),_.P("design:type",Object)],ru.prototype,"returnPolicyIcon",void 0);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ru.prototype,"showAdditionalFees",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ru.prototype,"showMultiPurchaseButtons",null);
_.p([_.l("data","showMultiPurchaseButtons"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ru.prototype,"showPurchaseData",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],ru);
_.a(ru,"ytd-product-details-hero-offer-renderer",function(){if($Ye!==void 0)return $Ye;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return $Ye=q},{mode:1});var tcB;var mYh;var XD=function(){return _.C.apply(this,arguments)||this};
_.Y(XD,_.C);_.g=XD.prototype;_.g.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.g.onKeyDown=function(q){q=q.keyCode;q!==13&&q!==32||this.handleSelection()};
_.g.onMouseEnterImage=function(){var q;((q=this.data)==null?void 0:q.thumbnailDetails)!==void 0&&_.Hy(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.g.onMouseLeaveImage=function(){_.Hy(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.g.handleSelection=function(){this.data&&_.e2(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.$H.Object.defineProperties(XD.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.isSelected)}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],XD.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],XD.prototype,"data",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],XD.prototype,"isSelected",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],XD);
_.a(XD,"ytd-product-details-thumbnail-renderer",function(){if(mYh!==void 0)return mYh;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return mYh=q},{mode:1});var V4=function(){var q=_.C.apply(this,arguments)||this;var N={};q.actionMap=(N["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",N["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",N);q.selectedThumbnailIndex=0;q.selectItem=function(b){b.target.onKeyDown(b)};
return q};
_.Y(V4,_.C);_.g=V4.prototype;_.g.handlePreviewImageSelect=function(q){this.hoverThumbnail=q};
_.g.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.g.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.g.onThumbnailSelected=function(q,N){this.selectedThumbnailIndex=N};
_.g.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.g.updateOffset=function(){var q=_.ee(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-q));this.ytdHorizontalListBehavior.reposition_()};
_.$H.Object.defineProperties(V4.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null?0:q.imageRenderer){var N,b;return((N=this.data)==null?void 0:(b=N.imageRenderer)==null?void 0:b.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var q;if((q=this.data)==null?0:q.imageRenderer){var N;return(N=_.v(this.data.imageRenderer[this.selectedThumbnailIndex],Ibc))==null?void 0:N.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var q=this,N,b,y,J=(y=(N=this.data)==null?void 0:(b=N.imageRenderer)==null?void 0:b.map(function(E,F){return{productDetailsThumbnailRenderer:Object.assign({},_.v(E,Ibc),{index:F,isSelected:F===q.selectedThumbnailIndex})}}))!=null?y:[];
return Object.assign({},this.data,{imageRenderer:J})}}});
V4.prototype.updateOffset=V4.prototype.updateOffset;V4.prototype.dataChanged=V4.prototype.dataChanged;V4.prototype.onThumbnailSelected=V4.prototype.onThumbnailSelected;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],V4.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],V4.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.jm.YtdHorizontalListBehavior),_.P("design:type",Object)],V4.prototype,"ytdHorizontalListBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],V4.prototype,"componentBehavior",void 0);_.p([_.O([_.Dc.YtActionHandlerBehavior]),_.P("design:type",Object)],V4.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],V4.prototype,"data",void 0);_.p([_.U({value:"$.items.children"}),_.P("design:type",String)],V4.prototype,"itemsPath",void 0);_.p([_.U({value:3}),_.P("design:type",Number)],V4.prototype,"initialCount",void 0);
_.p([_.dq("#items"),_.P("design:type",Object)],V4.prototype,"items",void 0);_.p([_.U(),_.P("design:type",Object)],V4.prototype,"selectedThumbnailIndex",void 0);_.p([_.U(),_.P("design:type",Object)],V4.prototype,"hoverThumbnail",void 0);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],V4.prototype,"showThumbnails",null);
_.p([_.ZP("ytd-product-details-thumbnail-renderer-selected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Number]),_.P("design:returntype")],V4.prototype,"onThumbnailSelected",null);_.p([_.l("data","selectedThumbnailIndex","hoverThumbnail"),_.P("design:type",Object),_.P("design:paramtypes",[])],V4.prototype,"thumbnailDetails",null);_.p([_.l("data","selectedThumbnailIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],V4.prototype,"populatedData",null);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],V4.prototype,"dataChanged",null);_.p([_.ZP("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],V4.prototype,"updateOffset",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],V4);
_.a(V4,"ytd-product-details-image-carousel-renderer",function(){if(tcB!==void 0)return tcB;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return tcB=q},{mode:_.Am("kevlar_poly_si_batch_j079")?1:2});var rbB;var jr=function(){return _.C.apply(this,arguments)||this};
_.Y(jr,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],jr.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],jr.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],jr.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],jr);
_.a(jr,"ytd-product-details-offer-renderer",function(){if(rbB!==void 0)return rbB;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return rbB=q},{mode:1});var Xh7;var xv=function(){var q=_.C.apply(this,arguments)||this;q.isOffersHidden=!0;return q};
_.Y(xv,_.C);xv.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var q,N=_.v((q=this.data)==null?void 0:q.viewOffersButton,_.JI);N&&this.ytRendererBehavior.logExplicitClick(N)};
xv.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.$H.Object.defineProperties(xv.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var q,N,b,y;return(b=_.v((q=this.data)==null?void 0:(N=q.offers)==null?void 0:N[0],ab7))==null?void 0:(y=b.offerData)==null?void 0:y.vendorLogoUrl}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],xv.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],xv.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],xv.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],xv.prototype,"isOffersHidden",void 0);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],xv.prototype,"firstOfferVendorLogoUrl",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],xv);
_.a(xv,"ytd-product-details-offers-container-renderer",function(){if(Xh7!==void 0)return Xh7;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Xh7=q},{mode:1});var Vcl;var jW7;var vi=function(){return _.C.apply(this,arguments)||this};
_.Y(vi,_.C);vi.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
vi.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Hy(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
vi.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Hy(this,"ytd-product-details-variant-image-unselect")};
_.$H.Object.defineProperties(vi.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 q;return((q=this.data)==null?void 0:q.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return((q=this.data)==null?void 0:q.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((N=this.data)==null?void 0:N.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((b=this.data)==null?void 0:b.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var q;if(((q=this.data)==null?void 0:q.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var q,N;return this.isUnavailable?(q=this.data)==null?void 0:q.variantOptionUnavailableAccessibilityLabel:(N=this.data)==null?void 0:N.variantOptionAccessibilityLabel}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],vi.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],vi.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],vi.prototype,"data",void 0);_.p([_.U(),_.P("design:type",String)],vi.prototype,"displayType",void 0);
_.p([_.l("displayType","data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vi.prototype,"isImageButton",null);_.p([_.l("displayType","data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vi.prototype,"isPillButton",null);_.p([_.l("data"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vi.prototype,"isActive",null);
_.p([_.l("data"),_.U({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vi.prototype,"isUnavailable",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],vi.prototype,"thumbnailDetails",null);_.p([_.l("isUnavailable","data"),_.P("design:type",Object),_.P("design:paramtypes",[])],vi.prototype,"accessibilityLabel",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],vi);
_.a(vi,"ytd-product-details-variant-option-renderer",function(){if(jW7!==void 0)return jW7;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return jW7=q},{mode:1});var xYe;var Gu=function(){var q=_.C.apply(this,arguments)||this;q.variantsExpanded=!1;q.hideShowMoreLessVariantButton=!0;q.initialized=!1;q.computeVariantsDebouncer=null;q.computeVariants=function(N){N=N===void 0?!1:N;q.variantsExpanded||q.showOptions()||!N||(q.variantsExpanded=!0);if(q.variantsExpanded){N=_.Z(q.items.children);for(var b=N.next();!b.done;b=N.next())b.value.hidden=!1}q.initialized=!0};
return q};
_.Y(Gu,_.C);_.g=Gu.prototype;_.g.ready=function(){var q=this;setTimeout(function(){q.computeVariants(!0)})};
_.g.showOptions=function(){for(var q=_.Z(this.items.children),N=q.next();!N.done;N=q.next())N.value.hidden=!0;var b=this.container.getBoundingClientRect().width,y=0,J=q=0;N=!1;for(var E=_.Z(this.items.children),F=E.next();!F.done;F=E.next()){F=F.value;F.hidden=!1;var R=F.getBoundingClientRect().width;if(y+R<b)y+=R;else if(++J<2)y=R;else break;q+=1;F.hasAttribute("is-active")&&(N=!0)}for(b=q;b<this.items.children.length;b++)this.items.children[b].hidden=!0;this.hideShowMoreLessVariantButton=q===this.items.children.length;
return N};
_.g.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.$c(this.computeVariantsDebouncer,_.bW.after(100),this.computeVariants)};
_.g.onShowMoreLessVariantsButtonClick=function(){var q;(q=this.data)!=null&&q.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.g.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.$H.Object.defineProperties(Gu.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var q,N,b=(q=this.data)==null?void 0:(N=q.variantOptionRenderers)==null?void 0:N.find(function(E){return _.v(E,s9x).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),y,J;
return(J=(y=_.v(b,s9x))==null?void 0:y.name)!=null?J:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.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"}}}});
Gu.prototype.debouncedComputeVariants=Gu.prototype.debouncedComputeVariants;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Gu.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Gu.prototype,"componentBehavior",void 0);_.p([_.O(_.SQ),_.P("design:type",Object)],Gu.prototype,"ironResizableBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],Gu.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Gu.prototype,"variantsExpanded",void 0);_.p([_.U(),_.P("design:type",Object)],Gu.prototype,"hideShowMoreLessVariantButton",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Gu.prototype,"initialized",void 0);_.p([_.dq("#items"),_.P("design:type",HTMLDivElement)],Gu.prototype,"items",void 0);_.p([_.dq("#container"),_.P("design:type",HTMLDivElement)],Gu.prototype,"container",void 0);
_.p([_.dq("#more-variants-button"),_.P("design:type",HTMLElement)],Gu.prototype,"moreVariantsButton",void 0);_.p([_.l("data"),_.P("design:type",String),_.P("design:paramtypes",[])],Gu.prototype,"selectedOptionName",null);_.p([_.FY("data","variantsExpanded"),_.ZP("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Gu.prototype,"debouncedComputeVariants",null);
_.p([_.l("data"),_.P("design:type",String),_.P("design:paramtypes",[])],Gu.prototype,"displayType",null);_.p([_.l("displayType"),_.P("design:type",Object),_.P("design:paramtypes",[])],Gu.prototype,"variantItemsClassname",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Gu);
_.a(Gu,"ytd-product-details-variant-renderer",function(){if(xYe!==void 0)return xYe;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return xYe=q},{mode:1});var Yv=function(){return _.C.apply(this,arguments)||this};
_.Y(Yv,_.C);
Yv.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"}}}};
_.$H.Object.defineProperties(Yv.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var q,N,b=(N=_.v((q=this.data)==null?void 0:q.offersContainerRenderer,nic))==null?void 0:N.offers;return b!==void 0&&(b==null?void 0:b.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 q,N,b;return((b=(q=this.data)==null?void 0:(N=q.variants)==null?void 0:N.map(function(y){var J,E;y=(E=(J=_.v(y,T0v))==null?void 0:J.variantOptionRenderers)==null?void 0:E.find(function(R){var c;return((c=_.v(R,s9x))==null?void 0:c.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var F;return(F=_.v(y,s9x))==null?void 0:F.name}).filter(function(y){return typeof y==="string"}))!=null?b:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var q,N,b,y=(N=_.v((q=this.data)==null?void 0:q.shoppingFlaggingRenderer,S5B))==null?void 0:(b=N.reportButton)==null?void 0:b.buttonRenderer;if(y)return{text:y.text,command:y.command,icon:{iconType:"FLAG"},accessibilityData:y.accessibilityData,trackingParams:y.trackingParams,loggingDirectives:y.loggingDirectives}}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Yv.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Yv.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Yv.prototype,"data",void 0);_.p([_.dq("#image-carousel-renderer"),_.P("design:type",Object)],Yv.prototype,"imageCarouselRenderer",void 0);
_.p([_.dq("#hero-offer-renderer"),_.P("design:type",Object)],Yv.prototype,"productDetailsHeroOfferRenderer",void 0);_.p([_.dq("#variants"),_.P("design:type",Object)],Yv.prototype,"productDetailsVariantRenderer",void 0);_.p([_.dq("#offers"),_.P("design:type",Object)],Yv.prototype,"productDetailsOffersContainerRenderer",void 0);_.p([_.dq("#description-renderer"),_.P("design:type",Object)],Yv.prototype,"productDetailsDescriptionRenderer",void 0);
_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Yv.prototype,"showPurchaseData",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Yv.prototype,"showHeroOfferRenderer",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Yv.prototype,"showBrandText",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Yv.prototype,"showOffers",null);
_.p([_.l("showOffers","showPurchaseData"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Yv.prototype,"showBuySeparator",null);_.p([_.l("showOffers","showPurchaseData"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Yv.prototype,"showBuyCard",null);_.p([_.l("data"),_.P("design:type",String),_.P("design:paramtypes",[])],Yv.prototype,"selectedVariantsText",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Yv.prototype,"shoppingReportingButtonData",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],Yv);
_.a(Yv,"ytd-product-details-renderer",function(){if(Vcl!==void 0)return Vcl;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Vcl=q},{mode:1});var v7v;var GbB;var Yph;var Q4=function(){return _.C.apply(this,arguments)||this};
_.Y(Q4,_.C);Q4.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.$H.Object.defineProperties(Q4.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Q4.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Q4.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Q4.prototype,"data",void 0);_.p([_.U(),_.P("design:type",String)],Q4.prototype,"formattedAmount",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Q4.prototype,"ariaLabel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.l("data.style"),_.P("design:type",String),_.P("design:paramtypes",[])],Q4.prototype,"vcBalanceWidgetStyle",null);_.p([_.Ok({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Q4);
_.a(Q4,"yt-vc-balance-renderer",function(){if(Yph===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;GbB===void 0&&(GbB=document.createElement("template"));var y=GbB;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Yph=q}q=Yph;return q},{mode:2});_.xP("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var OG=function(){return _.C.apply(this,arguments)||this};
_.Y(OG,_.C);_.$H.Object.defineProperties(OG.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:""}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],OG.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],OG.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],OG.prototype,"data",void 0);_.p([_.U({selectorArgs:["data.vcBalanceEntityKey"],selector:function(q,N){return _.Ji(q.entities,"vcBalanceEntity",N)}}),
_.P("design:type",Object)],OG.prototype,"vcBalanceEntity",void 0);_.p([_.l("vcBalanceEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],OG.prototype,"formattedAmount",null);_.p([_.l("vcBalanceEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],OG.prototype,"vcBalanceAriaLabel",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],OG);
_.a(OG,"ytd-vc-balance-renderer",function(){if(v7v!==void 0)return v7v;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return v7v=q},{mode:1});var QW_;var wu=function(){var q=_.C.apply(this,arguments)||this;q.rotation=0;q.isReloading=!1;return q};
_.Y(wu,_.C);wu.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
wu.prototype.reset=function(){this.hostElement.style.opacity=""};
wu.prototype.close=function(){var q=this;return _.d(function(N){if(N.nextAddress==1)return N.yield(q.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);q.hostElement.style.opacity="0";_.hj(N)})};
wu.prototype.rotationChanged=wu.prototype.rotationChanged;_.p([_.U(),_.P("design:type",Object)],wu.prototype,"rotation",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],wu.prototype,"isReloading",void 0);_.p([_.dq("#icon"),_.P("design:type",HTMLElement)],wu.prototype,"icon",void 0);_.p([_.FY("rotation"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wu.prototype,"rotationChanged",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-refresh"})],wu);
_.a(wu,"ytd-refresh",function(){if(QW_!==void 0)return QW_;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return QW_=q},{mode:1});var OMe;var i8=function(){var q=_.C.apply(this,arguments)||this;q.useRaf=!_.x("web_use_raf_app_header_layout_killswitch");return q};
_.Y(i8,_.C);i8.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"}}}};
i8.prototype.dataChanged=function(){if(this.data){var q=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var N=_.Mo(this.data.banner.thumbnails,this.hostElement.clientWidth);N&&(N.indexOf("//")===0&&(N="https:"+N),this.hasBannerArt=!0,_.Jm(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+N+")"}))}this.hasBannerArt!==q&&_.ee(this.hostElement).querySelector("#header").fire("iron-resize")}};
i8.prototype.updateSelectedFromBinding=function(q){this.selected=q.detail.value};
i8.prototype.dataChanged=i8.prototype.dataChanged;_.p([_.O(pxB),_.P("design:type",Object)],i8.prototype,"ytdTabbedHeaderBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],i8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.y1),_.P("design:type",Object)],i8.prototype,"ytdGridStateAwareBehavior",void 0);_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],i8.prototype,"ytdGuideStateAwareBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],i8.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],i8.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Number)],i8.prototype,"selected",void 0);_.p([_.U(),_.P("design:type",Boolean)],i8.prototype,"active",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],i8.prototype,"hasBannerArt",void 0);_.p([_.U(),_.P("design:type",Object)],i8.prototype,"useRaf",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],i8.prototype,"dataChanged",null);_.p([_.I({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],i8);
_.a(i8,"ytd-interactive-tabbed-header-renderer",function(){if(OMe!==void 0)return OMe;var q=document.createElement("template");_.Q(q,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout use-raf="[[useRaf]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return OMe=q},{mode:1});var whv;var l8=function(){return _.C.apply(this,arguments)||this};
_.Y(l8,_.C);l8.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
l8.prototype.computeActionsAlignment=function(q){return(q==null?void 0:q.actionsAlignment)||""};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],l8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],l8.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.P("design:type",String)],l8.prototype,"actionsAlignment",void 0);_.p([_.I({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],l8);
_.a(l8,"ytd-page-footer-renderer",function(){if(whv!==void 0)return whv;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return whv=q},{mode:1});var iMX;var lkB;var KK=function(){var q=_.C.apply(this,arguments)||this;q.isEditing=!1;q.useSlot=!1;q.isMultiline=!1;return q};
_.Y(KK,_.C);_.g=KK.prototype;_.g.onKeydown=function(q){if(q.keyCode===13&&!this.isMultiline)this.onSave();else if(q.keyCode===27)this.onCancel()};
_.g.computeComponentStyle=function(q){return(q==null?0:q.style)?q.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.g.computeisMultiline=function(q){if(this.multilineOverride!==void 0)return this.multilineOverride;var N,b;return!!(q==null?0:(N=q.formField)==null?0:(b=N.textInputFormFieldRenderer)==null?0:b.isMultiline)};
_.g.computeTextDisplayed=function(q,N){if(q)return q;if(N)return N};
_.g.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.g.onSave=function(){if(this.textForm.validate()){this.textForm.save();var q=this.textForm.value;if(q)this.set("data.textDisplayed",_.nD(q));else{var N;((N=this.data)==null?0:N.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.c6("inline-form-changed",this.data));this.isEditing=!1}};
_.g.onCancel=function(){var q=_.ao(this.data.textDisplayed);q===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(q);this.isEditing=!1};
KK.prototype.onKeydown=KK.prototype.onKeydown;_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],KK.prototype,"ytEventForwardingBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],KK.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],KK.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],KK.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],KK.prototype,"isEditing",void 0);_.p([_.U(),_.P("design:type",Object)],KK.prototype,"useSlot",void 0);_.p([_.U(),_.P("design:type",Boolean)],KK.prototype,"multilineOverride",void 0);_.p([_.U(),_.P("design:type",Boolean)],KK.prototype,"enableOverlayTheme",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.P("design:type",String)],KK.prototype,"componentStyle",void 0);
_.p([_.U({computed:"computeisMultiline(data)"}),_.P("design:type",Object)],KK.prototype,"isMultiline",void 0);_.p([_.dq("#text-form"),_.P("design:type",Object)],KK.prototype,"textForm",void 0);_.p([_.ZP("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],KK.prototype,"onKeydown",null);_.p([_.I({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],KK);
_.a(KK,"ytd-inline-form-renderer",function(){if(lkB!==void 0)return lkB;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return lkB=q},{mode:1});var Kse;var DH=function(){var q=_.C.apply(this,arguments)||this;q.previousSelectValue=void 0;q.selectedItemMessage=void 0;return q};
_.Y(DH,_.C);DH.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
DH.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var q,N,b,y,J=(q=this.data)==null?void 0:(N=q.dropdown)==null?void 0:(b=N.dropdownRenderer)==null?void 0:(y=b.entries)==null?void 0:y.map(function(R){return R.privacyDropdownItemRenderer});
q=_.Z(J!=null?J:[]);for(N=q.next();!N.done;N=q.next())if((N=N.value)&&N.int32Value===this.selectedValue){this.selectedItemMessage=N.itemMessage;break}}else this.selectedItemMessage=void 0;var E;(E=this.onValueChanged)==null||E.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var F;(F=this.data)!=null&&F.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
DH.prototype.onValueChangedForSelectedValue=function(q){this.selectedValue=q.detail.value};
DH.prototype.selectedValueChanged=DH.prototype.selectedValueChanged;_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],DH.prototype,"ytEventForwardingBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],DH.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],DH.prototype,"data",void 0);_.p([_.U(),_.P("design:type",String)],DH.prototype,"theme",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Number)],DH.prototype,"selectedValue",void 0);_.p([_.U(),_.P("design:type",Function)],DH.prototype,"onValueChanged",void 0);
_.p([_.$9("selectedValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DH.prototype,"selectedValueChanged",null);_.p([_.I({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],DH);
_.a(DH,"ytd-dropdown-form-field-renderer",function(){if(Kse!==void 0)return Kse;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Kse=q},{mode:_.Am("kevlar_poly_si_batch_j025")?1:2});var DYs;var hp=function(){return _.C.apply(this,arguments)||this};
_.Y(hp,_.C);_.$H.Object.defineProperties(hp.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var q=[],N=_.Z(this.data||[]),b=N.next();!b.done;b=N.next())(b=_.v(b.value,Wts))&&q.push(b);return q}}});
_.p([_.U(),_.P("design:type",Array)],hp.prototype,"data",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],hp.prototype,"byline",null);_.p([_.I({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],hp);
_.a(hp,"ytd-playlist-byline-renderer",function(){if(DYs!==void 0)return DYs;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return DYs=q},{mode:1});var htB;var kv=function(){var q=_.C.apply(this,arguments)||this;q.rtlBullet=_.x("web_playlist_stats_rtl_bullet_icon_killswitch");q.modern=_.x("web_modern_buttons");q.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return q};
_.Y(kv,_.C);_.g=kv.prototype;_.g.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"}}}}};
_.g.attached=function(){};
_.g.computeIsCustomThumbnail=function(q){return q?!!q.playlistCustomThumbnailRenderer:!1};
_.g.onYtNavigate=function(q,N){if(N&&N.actions&&N.actions.indexOf("shuffle")>-1){q=_.tz().resolve(_.F2);var b=N.tempData||{};b.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);N.tempData=b;q.isShuffleNextPlaylist=!0}};
_.g.onUpdatePlaylistAction=function(q){var N;q=(N=_.v(q,_.LSq))==null?void 0:N.updatedRenderer;if(N=_.v(q,C$h))this.data=N};
_.g.computeStyleType=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.g.computeThumbnailWidth=function(q){return q==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.g.computeHideThumbnailAria=function(q){if(q==null?0:q.thumbnailOverlays)for(var N=0;N<q.thumbnailOverlays.length;N++){var b=void 0;if((b=q.thumbnailOverlays[N])==null?0:b.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
kv.prototype.onYtNavigate=kv.prototype.onYtNavigate;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],kv.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],kv.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],kv.prototype,"ytComponentBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],kv.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],kv.prototype,"rtlBullet",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.P("design:type",String)],kv.prototype,"styleType",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.P("design:type",Number)],kv.prototype,"thumbnailWidth",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],kv.prototype,"modern",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.P("design:type",Boolean)],kv.prototype,"isCustomThumbnail",void 0);_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[Event,Object]),_.P("design:returntype")],kv.prototype,"onYtNavigate",null);_.p([_.I({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],kv);
_.a(kv,"ytd-playlist-sidebar-primary-info-renderer",function(){if(htB!==void 0)return htB;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return htB=q},{mode:1});var kbc;var UG=function(){return _.C.apply(this,arguments)||this};
_.Y(UG,_.C);UG.prototype.computeOwnerVisibility=function(q){return!(!q.videoOwner&&!q.button)};
UG.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"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],UG.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],UG.prototype,"data",void 0);_.p([_.I({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],UG);
_.a(UG,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(kbc!==void 0)return kbc;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return kbc=q},{mode:1});var UYy;var fK=function(){var q=_.C.apply(this,arguments)||this;q.expanded=!1;q.isCompact=!1;return q};
_.Y(fK,_.C);_.g=fK.prototype;_.g.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.g.dataChanged=function(){this.data&&_.d0(_.ee(this.text),_.Nzx(_.JbT,_.ao(this.data.text||null)))};
_.g.computeAutoScrollEnabled=function(q,N){return q&&!N};
_.g.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.g.toggleOnTap=function(){this.expanded=!this.expanded};
fK.prototype.expandedChanged=fK.prototype.expandedChanged;fK.prototype.dataChanged=fK.prototype.dataChanged;_.p([_.O(_.lls),_.P("design:type",Object)],fK.prototype,"ytdAutoScrollBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],fK.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],fK.prototype,"expanded",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],fK.prototype,"isCompact",void 0);_.p([_.U({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.P("design:type",Boolean)],fK.prototype,"autoScrollEnabled",void 0);_.p([_.dq("#text"),_.P("design:type",Object)],fK.prototype,"text",void 0);_.p([_.dq("#expander-icon"),_.P("design:type",Object)],fK.prototype,"expanderIcon",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fK.prototype,"dataChanged",null);_.p([_.FY("expanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fK.prototype,"expandedChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],fK);
_.a(fK,"ytd-channel-legal-info-renderer",function(){if(UYy!==void 0)return UYy;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return UYy=q},{mode:1});var fkh;var C3s=_.FE("DOWNLOAD",{},"Download"),IkB=_.FE("DOWNLOADING",{},"Downloading"),Tzs=_.FE("DOWNLOADED",{},"Downloaded"),CK=function(){var q=_.C.apply(this,arguments)||this;q.downloadProgress=0;q.isDownloadComplete=!1;q.transferState="TRANSFER_STATE_UNKNOWN";return q};
_.Y(CK,_.C);_.g=CK.prototype;_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.dataChanged=function(){var q;(q=this.data)!=null&&q.tooltip||(q=_.lg(_.WT().getState(),this.playlistId),this.updateButtonState(q))};
_.g.computePlaylistId=function(q){return q};
_.g.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.g.updateButtonState=function(q){if(this.data&&(this.data.tooltip!==IkB||!_.zC(q))){this.isDownloadComplete=!1;switch(q){case "TRANSFER_STATE_UNKNOWN":q=C3s;var N="OFFLINE_DOWNLOAD";var b="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":q=Tzs;N="OFFLINE_PIN";b="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":q=IkB;N="OFFLINE_DOWNLOADING_ZERO";b="ACTION_REMOVE_WITH_PROMPT";
break;default:q=C3s,N="OFFLINE_DOWNLOAD",b="ACTION_ADD"}var y=Object.assign({},this.data);y.tooltip=q;y.accessibilityData={accessibilityData:{label:q}};y.icon={iconType:N};y.size="SIZE_DEFAULT";_.v(y.command,_.RD)&&(_.v(y.command,_.RD).action=b);this.set("data",y)}};
_.g.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var q="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?q="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?q="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?q="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?q="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?q="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(q="OFFLINE_PIN",this.isDownloadComplete=!0);var N;q!==((N=this.data.icon)==null?void 0:N.iconType)&&(N=Object.assign({},this.data),N.tooltip=IkB,N.accessibilityData={accessibilityData:{label:IkB}},N.icon={iconType:q},_.v(N.command,_.RD)&&(_.v(N.command,_.RD).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",N))}};
CK.prototype.updateProgress=CK.prototype.updateProgress;CK.prototype.onTransferStateChanged=CK.prototype.onTransferStateChanged;CK.prototype.dataChanged=CK.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],CK.prototype,"ytdReduxBehavior",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],CK.prototype,"forceIconButton",void 0);
_.p([_.U({value:!0}),_.P("design:type",Boolean)],CK.prototype,"forceIconOnly",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],CK.prototype,"overrides",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],CK.prototype,"buttonTooltipPosition",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],CK.prototype,"styleActionButton",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],CK.prototype,"disableTextTransform",void 0);
_.p([_.U({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.P("design:type",String)],CK.prototype,"playlistId",void 0);_.p([_.U(),_.P("design:type",Object)],CK.prototype,"data",void 0);_.p([_.U({selector:_.LuR,selectorArgs:["playlistId"]}),_.P("design:type",Object)],CK.prototype,"downloadProgress",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],CK.prototype,"isDownloadComplete",void 0);
_.p([_.U({selector:_.lg,selectorArgs:["playlistId"]}),_.P("design:type",String)],CK.prototype,"transferState",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],CK.prototype,"showTooltips",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],CK.prototype,"sendCommandWhenDisabled",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],CK.prototype,"disabled",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CK.prototype,"dataChanged",null);_.p([_.$9("transferState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CK.prototype,"onTransferStateChanged",null);_.p([_.$9("downloadProgress"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CK.prototype,"updateProgress",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],CK);
_.a(CK,"ytd-download-playlist-button-renderer",function(){if(fkh!==void 0)return fkh;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return fkh=q},{mode:1});var sWe;_.P$(_.YOT,"thumbnail-overlay-button-view-model",{props:{data:_.F5,lockupExperiments:_.F5}});var II=function(){var q=_.C.apply(this,arguments)||this;q.isSquare=!1;q.isVertical=!1;return q};
_.Y(II,_.C);II.prototype.computeIsSquare=function(q){return q!=null&&q.thumbnail?rje(q.thumbnail)==="SQUARE":!1};
II.prototype.computeIsVertical=function(q){return q!=null&&q.thumbnail?rje(q.thumbnail)==="VERTICAL":!1};
II.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],II.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.P("design:type",Object)],II.prototype,"isSquare",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.P("design:type",Object)],II.prototype,"isVertical",void 0);
_.p([_.U(),_.P("design:type",Object)],II.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],II);
_.a(II,"ytd-hero-playlist-thumbnail-renderer",function(){if(sWe!==void 0)return sWe;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return sWe=q},{mode:1});var Tu=function(){var q=_.C.apply(this,arguments)||this;q.isDarkTheme=!1;q.isUltraWide=!1;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return q};
_.Y(Tu,_.C);_.g=Tu.prototype;_.g.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.tz();var q;(q=_.tz().resolve(_.$f(_.Pm)))!=null&&(q.headerElement=this.hostElement)};
_.g.detached=function(){var q;(q=_.tz().resolve(_.$f(_.Pm)))!=null&&(q.headerElement=void 0)};
_.g.onUpdateHeader=function(q){(q=q.detail)&&this.set("data",q)};
_.g.computeTextDisplayed=function(q){if(q)return q.textDisplayed?q.textDisplayed:q.placeholder};
_.g.gradientColorToLinearGradientStop=function(q){var N=this.isDarkTheme?q.darkThemeColor:q.lightThemeColor;return N?_.Y8(N)+" "+((q==null?void 0:q.startLocation)||0)*100+"%":"transparent"};
_.g.onWindowResize=function(){var q;((q=this.data)==null?0:q.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.g.onIronResize=function(q){this.isUltraWide=!q.detail.value};
_.g.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.g.onUpdatePlaylistName=function(q){var N=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},q.detail.value));_.ut(this,function(){var b;(b=N.editableTitle)==null||b.resize()})};
_.g.onUpdatePlaylistDescription=function(q){var N=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},q.detail.value));_.ut(this,function(){var b;(b=N.editableDescriptionInlineExpander)==null||b.resize()})};
_.g.getCinematicData=function(q){return _.v(q==null?void 0:q.cinematicContainer,_.Ns)};
_.$H.Object.defineProperties(Tu.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 q,N=(q=this.getCinematicData(this.data))==null?void 0:q.config;return(q=this.isDarkTheme?N==null?void 0:N.darkThemeBackgroundColor:N==null?void 0:N.lightThemeBackgroundColor)?"background-color:"+_.GM(q)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var q;return _.v((q=this.data)==null?void 0:q.descriptionForm,fbh)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var q=this,N,b,y;return"background:linear-gradient(to bottom, "+(((y=(N=this.getCinematicData(this.data))==null?void 0:(b=N.gradientColorConfig)==null?void 0:b.map(function(J){return q.gradientColorToLinearGradientStop(J)}))==null?void 0:y.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var q;return _.ao((q=this.data)==null?void 0:q.descriptionTapText)}}});
Tu.prototype.onUpdateHeader=Tu.prototype.onUpdateHeader;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Tu.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Tu.prototype,"actionHandlerBehavior",void 0);_.p([_.dq("#description-inline-expander"),_.P("design:type",Object)],Tu.prototype,"descriptionInlineExpander",void 0);
_.p([_.dq("#editable-description-inline-expander"),_.P("design:type",Object)],Tu.prototype,"editableDescriptionInlineExpander",void 0);_.p([_.U(),_.P("design:type",Object)],Tu.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Tu.prototype,"isUltraWide",void 0);_.p([_.dq("#editable-title-display"),_.P("design:type",Object)],Tu.prototype,"editableTitle",void 0);_.p([_.l("isUltraWide"),_.P("design:type",Object),_.P("design:paramtypes",[])],Tu.prototype,"maxDescriptionLines",null);
_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Tu.prototype,"noCinematicData",null);_.p([_.ZP("yt-new-playlist-header"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Tu.prototype,"onUpdateHeader",null);_.p([_.l("data","isDarkTheme"),_.P("design:type",Object),_.P("design:paramtypes",[])],Tu.prototype,"backgroundStyle",null);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Tu.prototype,"descriptionFormData",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Tu.prototype,"getDropdownTheme",null);_.p([_.l("data","isDarkTheme"),_.P("design:type",String),_.P("design:paramtypes",[])],Tu.prototype,"gradientStyle",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Tu.prototype,"descriptionTapText",null);
_.p([_.I({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Tu);
_.a(Tu,"ytd-playlist-header-renderer",function(){if(iMX!==void 0)return iMX;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return iMX=q},{mode:_.Am("kevlar_poly_si_batch_j078")?1:2});var n77;var aks;var sG=function(){return _.C.apply(this,arguments)||this};
_.Y(sG,_.C);sG.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],sG.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],sG.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],sG.prototype,"data",void 0);_.p([_.I({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],sG);
_.a(sG,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(aks!==void 0)return aks;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return aks=q},{mode:1});var nK=function(){return _.C.apply(this,arguments)||this};
_.Y(nK,_.C);
nK.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}}}}};
nK.prototype.computeUsePremiumShowStyle=function(q){if(!q||!q.items)return!1;for(var N=0;N<q.items.length;N++)if(_.v(q.items[N],C$h)){var b=void 0;return((b=_.v(q.items[N],C$h))==null?void 0:b.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],nK.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],nK.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],nK.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.P("design:type",Boolean)],nK.prototype,"usePremiumShowStyle",void 0);
_.p([_.I({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],nK);
_.a(nK,"ytd-playlist-sidebar-renderer",function(){if(n77!==void 0)return n77;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return n77=q},{mode:1});var Spe;var Ws7;var Lsy=function(q,N,b,y,J,E,F,R){this.minWidth=q;this.minHeight=N;this.recommendedWidth=b;this.recommendedHeight=y;this.JSC$22640_maxFileSize=J;this.title=E;this.bannerGalleryTitle=F;this.channelId=R;this.picker_=null;q=_.dwC("yt-banner");N=q.addView;b=(new Q9e("youtubebanner")).addUploadMetadata("silo_id","19");b.opts.ytMaxFileSize=this.JSC$22640_maxFileSize;y=this.recommendedHeight;b.opts.ytRecWidth=this.recommendedWidth;b.opts.ytRecHeight=y;N.call(q,b);q.addView(new _.ll);N=q.addView;b=new _.ll;
b.opts.type="ytbanner";N.call(q,b.JSC$10155_setLabel(this.bannerGalleryTitle));N=q.setTitle(this.title).setSize(1E3);N.urlParamMap_.set("thumbs","orig");b=this.minWidth;y=this.minHeight;if(isNaN(b)||isNaN(y))throw Error("gb`"+b+"`"+y);N.urlParamMap_.set("minSize",b+"x"+y);N.urlParamMap_.set("cropMode","ytcb");this.builder_=q};
Lsy.prototype.open=function(){var q=this;return new _.wL(function(N,b){_.nFM(q.builder_,function(y){y.action=="picked"?N(y):y.action=="cancel"&&b(Error("Qo"))});
q.picker_&&q.picker_.dispose();q.picker_=q.builder_.build();q.picker_.setVisible(!0)})};
Lsy.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var phc=function(q){this.channelId=q};
phc.prototype.upload=function(q){var N="";q.viewToken&&(N=q.viewToken[2].type);var b=q.docs[0];q=b.crop;N={channel_id:this.channelId,fife_url:b.thumbnails[0].url,photo_id:b.id,is_gallery_image:N=="ytbanner"};q&&(N.crop_top=q.top,N.crop_right=q.right,N.crop_bottom=q.bottom,N.crop_left=q.left);return _.Vhn("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:N})};var aI=function(){var q=_.C.apply(this,arguments)||this;q.ariaLabel=null;return q};
_.Y(aI,_.C);_.g=aI.prototype;_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.g.detached=function(){this.picker&&this.picker.dispose()};
_.g.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.g.computeAriaLabel=function(q){return q};
_.g.onTap=function(){var q=this,N;if((N=this.data)==null||!N.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new Lsy(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 b;(b=this.picker)==null||b.open().then(function(y){q.handleBannerPicked(y)},function(){})}};
_.g.handleBannerPicked=function(q){var N=this;this.uploader||(this.uploader=new phc(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(q).then(function(b){N.handleBannerUploadSucceeded(b)},function(b){N.handleBannerUploadFailed(b)})};
_.g.handleBannerUploadSucceeded=function(q){q&&q.errors?this.handleBannerUploadFailed(q):(_.e2(this.hostElement,"yt-banner-updated",q),this.message=null)};
_.g.handleBannerUploadFailed=function(q){this.message=q&&q.errors&&q.errors.length?q.errors[0]:null};
aI.prototype.dataChanged=aI.prototype.dataChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],aI.prototype,"componentBehavior",void 0);_.p([_.O(_.Li),_.P("design:type",Object)],aI.prototype,"ironButtonState",void 0);_.p([_.U(),_.P("design:type",Object)],aI.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.P("design:type",Object)],aI.prototype,"ariaLabel",void 0);
_.p([_.U(),_.P("design:type",Object)],aI.prototype,"message",void 0);_.p([_.U(),_.P("design:type",Object)],aI.prototype,"picker",void 0);_.p([_.U(),_.P("design:type",Object)],aI.prototype,"uploader",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aI.prototype,"dataChanged",null);_.p([_.I({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],aI);
_.a(aI,"ytd-channel-banner-editor-renderer",function(){if(Ws7!==void 0)return Ws7;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Ws7=q},{mode:1});var P3l;var Mcx=_.Tt(["#"]),Sr=function(){return _.C.apply(this,arguments)||this};
_.Y(Sr,_.C);Sr.prototype.computeHrefWithDefault=function(q){return this.ytComponentBehavior.computeHref_(q,!0)||_.Ftd(Mcx)};
Sr.prototype.dataChanged=function(){var q=this.data;q&&q.targetId&&_.k_4(_.fP(),q.targetId,this.moreIcon)};
Sr.prototype.dataChanged=Sr.prototype.dataChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Sr.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Sr.prototype,"data",void 0);_.p([_.dq("#more-icon"),_.P("design:type",Object)],Sr.prototype,"moreIcon",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Sr.prototype,"dataChanged",null);
_.p([_.I({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],Sr);
_.a(Sr,"ytd-channel-tagline-renderer",function(){if(P3l!==void 0)return P3l;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return P3l=q},{mode:1});var o7y;var Wi=function(){return _.C.apply(this,arguments)||this};
_.Y(Wi,_.C);_.g=Wi.prototype;_.g.ready=function(){var q=this;_.ee(this.hostElement).querySelector("#form").addEventListener("submit",function(N){q.onSubmit(N)})};
_.g.onDataChanged=function(){var q;((q=this.data)==null?0:q.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.g.onIconButtonKeydown=function(q){q.keyCode===13&&this.iconButton.click()};
_.g.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.g.openOnClickHandler=function(){this.input.focus()};
_.g.onSubmit=function(q){q.preventDefault();return!1};
_.g.submitOnEnterKeyUp=function(q){var N;if(q.keyCode===13&&((N=this.data)==null?0:N.expandedText)){q=this.data.endpoint;N=_.nM.unsafeClone(q);var b;((b=_.v(N==null?void 0:N.commandMetadata,_.gg))==null?0:b.url)?(_.v(N.commandMetadata,_.gg).url=_.B_(_.v(N.commandMetadata,_.gg).url,"query",this.data.expandedText),_.v(N,_.FH)&&(_.v(N,_.FH).query=this.data.expandedText),_.e2(this.hostElement,"yt-navigate",{endpoint:N,tempData:{disableCache:!0}})):(b=new _.IO("Error: Trying to navigate to an endpoint without url",
q),_.po(b))}};
_.g.updateDataExpandedTextFromBinding=function(q){this.set("data.expandedText",q.detail.value)};
_.$H.Object.defineProperties(Wi.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.x("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
Wi.prototype.onDataChanged=Wi.prototype.onDataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H9f),_.P("design:type",Object)],Wi.prototype,"ytdExpandableInputBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Wi.prototype,"data",void 0);_.p([_.dq("#input"),_.P("design:type",Object)],Wi.prototype,"input",void 0);_.p([_.dq("#icon-button"),_.P("design:type",HTMLElement)],Wi.prototype,"iconButton",void 0);
_.p([_.U(),_.P("design:type",String),_.P("design:paramtypes",[])],Wi.prototype,"searchIcon",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Wi.prototype,"onDataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],Wi);
var Xxc=_.oU()(Wi,"ytd-expandable-tab-renderer",function(){if(o7y===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);o7y=q}q=o7y;return q},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var Ab7;var LK=function(){var q=_.C.apply(this,arguments)||this;q.avatarSize=80;q.ariaLabel=_.FE("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return q};
_.Y(LK,_.C);LK.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
LK.prototype.computeHref=function(q){var N;return((N=_.v(q,_.b_))==null?0:N.url)?this.componentBehavior.computeHref_(q):null};
LK.prototype.onTap=function(){var q,N;(q=this.data)==null||!q.editAvatarServiceEndpoint||((N=_.v(this.data.editAvatarServiceEndpoint,_.b_))==null?0:N.url)||_.tz().resolve(_.rO).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.p([_.O(_.Li),_.P("design:type",Object)],LK.prototype,"ironButtonState",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],LK.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],LK.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],LK.prototype,"avatarSize",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],LK.prototype,"ariaLabel",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],LK);
_.a(LK,"ytd-channel-avatar-editor",function(){if(Ab7!==void 0)return Ab7;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Ab7=q},{mode:1});var etB=_.n(function(q){var N=q.data;var b=q.noPadding;var y=q.enableBanner;var J=q.cinematicContainerTopbarOffset;var E=q.allowCinematicContainerOverflow;var F=q.displayAsSidebar;q=q.className;_.Sx(function(){N().tagManagerId&&(_.az(N().tagManagerId,_.M7("GL")),Y5Z(N().tagManagerId))},"vUc8md");
var R=_.dj(j9x,function(){return N().pageHeaderEntityKey});
return _.u("yt-page-header-renderer",{class:_.NO("pageHeaderRendererHost",q)},_.u(_.zS,{data:function(){var c;return((c=R())==null?0:c.header)?R().header:(F==null?0:F())&&N().sidebarContent?N().sidebarContent:N().content}},{pageHeaderViewModel:function(c){return _.u(_.Fdd,{data:c.data,
noPadding:b,enableBanner:y,cinematicContainerTopbarOffset:J,allowCinematicContainerOverflow:E,displayAsSidebar:function(){return(F==null?void 0:F())&&N().enableSidebarView}})}}))},"on");
etB.idomCompat=!0;_.P$(etB,"yt-page-header-renderer",{props:{data:_.F5,noPadding:_.F5,enableBanner:_.F5,cinematicContainerTopbarOffset:_.F5,allowCinematicContainerOverflow:_.F5,displayAsSidebar:_.F5,className:_.F5}});_.P$(_.z_,"yt-image-banner-view-model",{props:{data:_.F5,isPositionRelative:_.F5}});_.P$(_.wAN,"yt-tab-group-shape",{props:{shape:_.F5}});var BzB=_.U$.persistentPanelVisibleSelector,pK=function(){var q=_.C.apply(this,arguments)||this;q.expandableCustomTabRenderable=function(N){return VF7(N,function(){return void q.onSearchNavigate()})};
q.isRichGrid=!1;q.isConstrainedList=!1;q.richGridMiniMode=!1;q.richGridStyle="RICH_GRID_STYLE_UNKNOWN";q.isRichGridShorts=!1;q.responsiveSizing="COMPACT";q.disableGridStateAware=!1;q.useRaf=!_.x("web_use_raf_app_header_layout_killswitch");q.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return q};
_.Y(pK,_.C);_.g=pK.prototype;_.g.computeHeaderDisabled=function(q,N){return N||!q||this.tabsHidden};
_.g.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.g.computeIsRichGridShorts=function(q){return q==="RICH_GRID_STYLE_SHORTS_GRID"||q==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.g.computeImageBannerViewModel=function(){var q,N;return _.v((N=_.v((q=this.data)==null?void 0:q.content,_.GQo))==null?void 0:N.banner,_.zH4)};
_.g.computeHasCinematicContainer=function(){var q,N;return!((N=_.v((q=this.data)==null?void 0:q.content,_.GQo))==null||!N.background)};
_.g.handleHeaderResize=function(){var q=_.ee(this.hostElement).querySelector("#header");q&&_.e2(q,"iron-resize")};
_.g.handleInsertTabCommand=function(q){var N=_.v(q,Lth);N&&(N.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(b){return b.tabRenderer&&b.tabRenderer.tabIdentifier===N.tabIdentifier})||this.splice("tabs",N.tabIndex||-1,0,N.tab))};
_.g.handleRefreshChannelTabAction=function(q){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===q&&_.e2(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.g.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.g.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Jm(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.g.observerRichGridSlimItemsPerRow=function(){_.Jm(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.g.updateCssVars=function(){this.richGridItemsPerRow&&_.Jm(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.VX("rich_grid_max_item_width",500))+16)-16+"px"})};
_.g.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Jm(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.g.onDataChanged=function(){this.handleHeaderResize()};
_.g.onWindowResize=function(){this.handleHeaderResize()};
_.g.onFocusedChanged=function(q){(q=_.a0(q))&&q.is==="tp-yt-paper-tab"&&q.hasRipple()&&(q.getRipple().holdDown=!q.pointerDown&&q.focused)};
_.g.updateSelectedFromBinding=function(q){this.ytdTabbedHeaderBehavior.selected=q.detail.value};
_.g.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.$H.Object.defineProperties(pK.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:vis(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.imageBannerViewModel)==null?void 0:q.style)==="IMAGE_BANNER_STYLE_INSET"}}});
pK.prototype.onDataChanged=pK.prototype.onDataChanged;pK.prototype.updateCssVarsForResponsiveGrid=pK.prototype.updateCssVarsForResponsiveGrid;pK.prototype.updateCssVars=pK.prototype.updateCssVars;pK.prototype.observerRichGridSlimItemsPerRow=pK.prototype.observerRichGridSlimItemsPerRow;pK.prototype.observerRichGridItemsPerRow=pK.prototype.observerRichGridItemsPerRow;pK.prototype.persistentPanelVisibleChanged=pK.prototype.persistentPanelVisibleChanged;
_.p([_.O(_.y1),_.P("design:type",Object)],pK.prototype,"ytdGridStateAwareBehavior",void 0);_.p([_.O(pxB),_.P("design:type",Object)],pK.prototype,"ytdTabbedHeaderBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],pK.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],pK.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],pK.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],pK.prototype,"ytdReduxBehavior",void 0);_.p([_.dq("#tabs"),_.P("design:type",Object)],pK.prototype,"tabsElement",void 0);_.p([_.U(),_.P("design:type",Array)],pK.prototype,"tabs",void 0);_.p([_.U(),_.P("design:type",Object)],pK.prototype,"expandableCustomTabRenderable",void 0);
_.p([_.l("tabs.*"),_.P("design:type",Object),_.P("design:paramtypes",[])],pK.prototype,"tabGroupShape",null);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],pK.prototype,"isRichGrid",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],pK.prototype,"isConstrainedList",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.GC}),_.P("design:type",Object)],pK.prototype,"richGridMiniMode",void 0);_.p([_.U({selector:function(q){return q.ui.richGridStyle}}),
_.P("design:type",Object)],pK.prototype,"richGridStyle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.P("design:type",Object)],pK.prototype,"isRichGridShorts",void 0);_.p([_.U({selector:_.YR}),_.P("design:type",Number)],pK.prototype,"richGridItemsPerRow",void 0);_.p([_.U({selector:function(q){return q.ui.richGridContainerWidth}}),
_.P("design:type",Number)],pK.prototype,"richGridContainerWidth",void 0);_.p([_.U({selector:_.Kuh}),_.P("design:type",Number)],pK.prototype,"richGridSlimItemsPerRow",void 0);_.p([_.U(),_.P("design:type",Object)],pK.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],pK.prototype,"responsiveSizing",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],pK.prototype,"disableGridStateAware",void 0);
_.p([_.U({computed:"computeImageBannerViewModel(data)"}),_.P("design:type",Object)],pK.prototype,"imageBannerViewModel",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.P("design:type",Boolean)],pK.prototype,"hasCinematicContainer",void 0);_.p([_.U({selector:_.T5C,reflectToAttribute:!0}),_.P("design:type",Boolean)],pK.prototype,"guideIsVisibleButNotPersistent",void 0);
_.p([_.U({selector:BzB}),_.P("design:type",Boolean)],pK.prototype,"persistentPanelVisible",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("imageBannerViewModel"),_.P("design:type",Object),_.P("design:paramtypes",[])],pK.prototype,"hasBanner",null);_.p([_.U({reflectToAttribute:!0}),_.l("imageBannerViewModel"),_.P("design:type",Object),_.P("design:paramtypes",[])],pK.prototype,"hasInsetBanner",null);_.p([_.U(),_.P("design:type",Object)],pK.prototype,"useRaf",void 0);
_.p([_.U({computed:"computeTabsHidden(tabs)",value:!0}),_.P("design:type",Boolean)],pK.prototype,"tabsHidden",void 0);_.p([_.FY("persistentPanelVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pK.prototype,"persistentPanelVisibleChanged",null);_.p([_.FY("richGridItemsPerRow","isRichGrid"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pK.prototype,"observerRichGridItemsPerRow",null);
_.p([_.FY("richGridSlimItemsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pK.prototype,"observerRichGridSlimItemsPerRow",null);_.p([_.FY("richGridItemsPerRow","richGridMiniMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pK.prototype,"updateCssVars",null);
_.p([_.FY("richGridContainerWidth"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pK.prototype,"updateCssVarsForResponsiveGrid",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pK.prototype,"onDataChanged",null);_.p([_.I({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],pK);
_.a(pK,"ytd-tabbed-page-header",function(){if(Spe!==void 0)return Spe;var q=document.createElement("template");_.Q(q,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout use-raf="[[useRaf]]" class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Spe=q},{mode:1});var HMc;var Pi=function(){return _.C.apply(this,arguments)||this};
_.Y(Pi,_.C);Pi.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Jm(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.$H.Object.defineProperties(Pi.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var q,N;return this.componentBehavior.computeIcon_(((N=_.v((q=this.data)==null?void 0:q.badge,_.w0o))==null?void 0:N.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var q,N;return(N=_.v((q=this.data)==null?void 0:q.badge,_.w0o))==null?void 0:N.label}}});
Pi.prototype.observerRichGridItemsPerRow=Pi.prototype.observerRichGridItemsPerRow;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Pi.prototype,"componentBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],Pi.prototype,"ytdReduxBehavior",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.GC}),_.P("design:type",Boolean)],Pi.prototype,"richGridMiniMode",void 0);
_.p([_.U({selector:_.YR}),_.P("design:type",Number)],Pi.prototype,"richGridItemsPerRow",void 0);_.p([_.U(),_.P("design:type",Object)],Pi.prototype,"data",void 0);_.p([_.FY("richGridItemsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pi.prototype,"observerRichGridItemsPerRow",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Pi.prototype,"badgeIconName",null);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Pi.prototype,"badgeLabel",null);_.p([_.I({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Pi);
_.a(Pi,"ytd-member-hub-profile-renderer",function(){if(HMc!==void 0)return HMc;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return HMc=q},{mode:1});var qNZ;var Ms=function(){return _.C.apply(this,arguments)||this};
_.Y(Ms,_.C);Ms.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Ms.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ms.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ms.prototype,"data",void 0);_.p([_.I({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],Ms);
_.a(Ms,"ytd-settings-sidebar-renderer",function(){if(qNZ!==void 0)return qNZ;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return qNZ=q},{mode:1});var NEs;var oI=function(){var q=_.C.apply(this,arguments)||this;q.expandableCustomTabRenderable=function(N){return VF7(N,function(){return void q.onSearchNavigate()})};
return q};
_.Y(oI,_.C);oI.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
oI.prototype.onSearchNavigate=function(){this.selected=void 0};
oI.prototype.onTabsChange=function(){var q,N=(q=this.tabs)==null?void 0:q.findIndex(function(b){var y;return b==null?void 0:(y=b.tabRenderer)==null?void 0:y.selected});
N!==void 0&&(this.selected=N)};
oI.prototype.onTabsActive=function(q){if(this.tabs!==void 0){var N,b;(q=(N=this.tabs[q.detail.selected])==null?void 0:(b=N.tabRenderer)==null?void 0:b.endpoint)&&_.e2(this.hostElement,"yt-navigate",{endpoint:q})}};
_.$H.Object.defineProperties(oI.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:vis(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
oI.prototype.onTabsChange=oI.prototype.onTabsChange;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],oI.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.y1),_.P("design:type",Object)],oI.prototype,"ytdGridStateAwareBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],oI.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],oI.prototype,"ytdGuideStateAwareBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],oI.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Array)],oI.prototype,"tabs",void 0);_.p([_.U(),_.P("design:type",Number)],oI.prototype,"selected",void 0);_.p([_.l("tabs.*"),_.P("design:type",Object),_.P("design:paramtypes",[])],oI.prototype,"tabGroupShape",null);_.p([_.U(),_.P("design:type",Object)],oI.prototype,"expandableCustomTabRenderable",void 0);
_.p([_.l("tabs"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],oI.prototype,"tabsEnabled",null);_.p([_.$9("tabs"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oI.prototype,"onTabsChange",null);_.p([_.I({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],oI);
_.a(oI,"ytd-topic-channel-details-renderer",function(){if(NEs!==void 0)return NEs;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return NEs=q},{mode:1});var bFe;var Ap=function(){var q=_.C.apply(this,arguments)||this;q.disableGridStateAware=!1;return q};
_.Y(Ap,_.C);Ap.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]]"}}}}}};
Ap.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
Ap.prototype.updateCssVars=function(){_.Jm(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.VX("rich_grid_max_item_width",500))+16)-16+"px"})};
Ap.prototype.updateCssVars=Ap.prototype.updateCssVars;Ap.prototype.activeChanged=Ap.prototype.activeChanged;_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],Ap.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],Ap.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Ap.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ap.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Array)],Ap.prototype,"tabs",void 0);_.p([_.U(),_.P("design:type",Boolean)],Ap.prototype,"active",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Ap.prototype,"disableGridStateAware",void 0);
_.p([_.U({selector:_.YR}),_.P("design:type",Number)],Ap.prototype,"richGridItemsPerRow",void 0);_.p([_.U({selector:_.GC}),_.P("design:type",Boolean)],Ap.prototype,"richGridMiniMode",void 0);_.p([_.dq("ytd-carousel-item-renderer"),_.P("design:type",Object)],Ap.prototype,"carousel",void 0);_.p([_.FY("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ap.prototype,"activeChanged",null);
_.p([_.FY("richGridItemsPerRow","richGridMiniMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ap.prototype,"updateCssVars",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],Ap);
_.a(Ap,"ytd-carousel-header-renderer",function(){if(bFe!==void 0)return bFe;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return bFe=q},{mode:1});var yW_;var JWB=_.Tt(["https://www.google-analytics.com/analytics.js"]),er=function(){var q=_.C.apply(this,arguments)||this;q.scriptAnalyticsAdded=!1;return q};
_.Y(er,_.C);er.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var q,N=(q=this.data)==null?void 0:q.tagManagerId;N&&(_.az(N,_.M7("GL")),Y5Z(N))};
er.prototype.sendGoogleAnalyticsPageview=function(q){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var b=_.MB.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(b)};
var N=window.ga;N("set","page",window.location.pathname);N.l=+new Date;N("set","forceSSL",!0);N("create",q,"'auto'");N("send","pageview")};
er.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var q=_.iC("SCRIPT");q.name="ga-analytics";var N=_.Xe(JWB);_.R9(q,N);q.async=!0;_.ee(this.hostElement).appendChild(q)};
er.prototype.dataChanged=er.prototype.dataChanged;_.p([_.U(),_.P("design:type",Object)],er.prototype,"data",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],er.prototype,"dataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],er);
_.a(er,"ytd-channel-metadata-renderer",function(){if(yW_!==void 0)return yW_;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return yW_=q},{mode:1});var ENX;var gNs;var Bi=function(){var q=_.C.apply(this,arguments)||this;q.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"]);q.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"]);q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return q};
_.Y(Bi,_.C);_.g=Bi.prototype;_.g.attached=function(){this.requestElementsPerRow()};
_.g.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_]]"}}}}}};
_.g.onUpdateElementsPerRowAction=function(q){q&&this.elementsPerRow!==q&&(this.elementsPerRow=q)};
_.g.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.g.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.g.computeAlertStyle_=function(q){return q};
_.g.observerElementsPerRow=function(){this.elementsPerRow&&_.Jm(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.g.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.g.requestElementsPerRow=function(){_.e2(this.hostElement,"yt-request-elements-per-row")};
Bi.prototype.onIsVisibleChanged_=Bi.prototype.onIsVisibleChanged_;Bi.prototype.observerElementsPerRow=Bi.prototype.observerElementsPerRow;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Bi.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Bi.prototype,"actionHandlerBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],Bi.prototype,"data",void 0);_.p([_.U({value:6,reflectToAttribute:!0}),_.P("design:type",Number)],Bi.prototype,"elementsPerRow",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Bi.prototype,"wrapButtons",void 0);_.p([_.U({value:_.M7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.P("design:type",Boolean)],Bi.prototype,"isMusic",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.P("design:type",String)],Bi.prototype,"alertStyle",void 0);_.p([_.U({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.P("design:type",Function)],Bi.prototype,"dismissBoundButtonTap_",void 0);_.p([_.U({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.P("design:type",Function)],Bi.prototype,"acceptBoundButtonTap_",void 0);_.p([_.FY("elementsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bi.prototype,"observerElementsPerRow",null);_.p([_.FY("data.isVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bi.prototype,"onIsVisibleChanged_",null);_.p([_.Ok({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Bi);
_.a(Bi,"yt-alert-with-actions-renderer",function(){if(gNs===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;ENX===void 0&&(ENX=document.createElement("template"));var y=ENX;b.call(N,y.content.cloneNode(!0),q.content.firstChild);gNs=q}q=gNs;return q},{mode:2});var ZFc=_.n(function(q){var N={};return _.u(_.Zc,{text:q.text,className:_.NO("ytPersonalGreetingViewModelHeadline",(N.ytPersonalGreetingViewModelHeadlineSmall=q.isSmallHeadline,N))})},"qn");_.P$(_.n(function(q){var N=_.QR(function(){var X;return(X=q.data())==null?void 0:X.rendererContext},void 0,void 0,void 0,!0),b=function(){return q.data().canvasPromoData},y=function(){var X;
return(X=q.data().bannerHeight)!=null?X:56},J=_.Z(_.zK({throttleMs:100})),E=J.next().value;
J=J.next().value;var F=_.Z(_.zK({throttleMs:100})),R=F.next().value;F=F.next().value;var c=_.Z(_.zK({throttleMs:100})),z=c.next().value;c=c.next().value;var m=function(){return R.width()-E.width()>1},r=function(){return y()===48};
return _.u("yt-personal-greeting-view-model",{el:_.ai(N,J),"aria-hidden":m,class:_.NO(q.className,"ytPersonalGreetingViewModelHost"),style:_.ZU({height:(0,_.gW)(function(){return m()?0:y()})})},_.u(_.t,{cond:function(){return q.data().avatar&&!(z.width()+(q.data().avatar?48:0)-E.width()>1)},
then:function(){return _.u(_.zS,{data:function(){return q.data().avatar}},{decoratedAvatarViewModel:function(X){return _.u(_.qw,{data:X.data,
className:_.NO("ytPersonalGreetingViewModelAvatar")})}})}}),_.u("h1",null,_.u(ZFc,{text:function(){var X;
return(b==null?void 0:(X=b())==null?void 0:X.headline)||(z.width()+(q.data().avatar?48:0)-E.width()>1?q.data().shorterGreeting:q.data().greeting)},
isSmallHeadline:r})),_.u("span",{el:_.ai(c),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.u(ZFc,{text:function(){return q.data().greeting},
isSmallHeadline:r})),_.u("span",{el:_.ai(F),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.u(ZFc,{text:function(){return q.data().shorterGreeting},
isSmallHeadline:r})))},"pn"),"yt-personal-greeting-view-model",{props:{data:_.F5,
className:_.F5}});var Hi=function(){var q=_.C.apply(this,arguments)||this;q.hidden=!1;q.isConstrainedList=!1;q.responsiveSizing="COMPACT";q.attachedPlayers=_.x("kevlar_channel_trailer_multi_attach")?[]:void 0;q.player=null;q.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return q};
_.Y(Hi,_.C);_.g=Hi.prototype;
_.g.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}}}}};
_.g.created=function(){var q=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){q.disposeMastheadAd()}]};
_.g.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new oiX(this.refresh,this.contents))};
_.g.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.g.activeChanged=function(){var q=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=q)};
_.g.tabsChanged=function(){var q=this,N,b;if(this.pageSubtype==="channels"||_.x("kevlar_tab_gestures_for_tabbed_header_data")&&((N=this.data)==null?0:(b=N.header)==null?0:b.carouselHeaderRenderer))this.tabGestures=new B0e(this.contents,this.contents,this.hostElement,this.header,function(F){q.ytdReduxBehavior.dispatch(F)});
var y,J,E;N=(y=this.data)==null?void 0:(J=y.contents)==null?void 0:(E=J.twoColumnBrowseResultsRenderer)==null?void 0:E.tabs;this.tabGestures&&this.tabGestures.tabsChanged(N)};
_.g.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.g.engagementPanelsChanged=function(){var q=_.tz().resolve(_.M8);if(q){if(this.engagementPanels)for(var N=_.Z(this.engagementPanels),b=N.next();!b.done;b=N.next()){var y=void 0;(b=(y=b.value.identifier)==null?void 0:y.tag)&&q.panelMap.delete(b)}this.engagementPanels=[];var J;N=_.Z(((J=this.data)==null?void 0:J.panels)||[]);for(J=N.next();!J.done;J=N.next()){J=_.v(J.value,_.vBB);var E=b=void 0,F=void 0,R=void 0;if(y=((b=J)==null?void 0:b.targetId)||((E=J)==null?void 0:E.panelIdentifier)||((F=J)==
null?void 0:(R=F.identifier)==null?void 0:R.tag))E=b=void 0,(E=(b=q).registerPanelContent)==null||E.call(b,y,{engagementPanelSectionListRenderer:J}),this.engagementPanels.push(J)}}};
_.g.onStampFinished=function(){var q=this;_.ut(this,function(){if(q.tabGestures){var N=q.tabGestures;if(N.scrollPositionNeedsUpdate){var b=_.tz().resolve(_.$f(_.L6)),y;if((y=N.selectedTab)!=null&&y.title&&b&&(y=b.getCurrentPage())){if(N.scrollPositionForTabs.has(N.selectedTab.title)){var J,E;b=(E=(J=b.getCurrentPage())==null?void 0:J.clientHeight)!=null?E:0;J=N.scrollPositionForTabs.get(N.selectedTab.title);y.setScrollTop(J);b>J+100&&(N.scrollPositionNeedsUpdate=!1)}else y.setScrollTop(Math.min(N.lastVisitedTabScrollPosition!==
void 0?N.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,N.tabsStartAtInPx)),N.scrollPositionNeedsUpdate=!1;N.ytdReduxDispatch(Gwv(!1))}}}})};
_.g.loadPage_=function(q){this.initCsi();q&&(this.data=q);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.g.getTitle=function(q){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",q))return this.get("microformat.microformatDataRenderer.title",q);if(this.get("header.feedTabbedHeaderRenderer.title",q))return _.ao(this.get("header.feedTabbedHeaderRenderer.title",q));if(this.get("header.interactiveTabbedHeaderRenderer.title",q))return this.get("header.interactiveTabbedHeaderRenderer.title",q);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
q))return _.ao(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",q));var N,b;return(q==null?0:(N=q.header)==null?0:(b=N.pageHeaderRenderer)==null?0:b.pageTitle)?q.header.pageHeaderRenderer.pageTitle:""};
_.g.updateTitle=function(q){_.e2(this.hostElement,"yt-update-title",this.getTitle(q))};
_.g.initCsi=function(){_.tFX(this.pageSubtype||"browse",["ol","cpt"])};
_.g.getPlayer=function(){if(_.x("kevlar_channel_trailer_multi_attach")){for(var q=_.Z(this.attachedPlayers),N=q.next();!N.done;N=q.next())if(N=N.value,N.isConnected||_.BY(this.hostElement,N))return N;return null}return this.player};
_.g.getPlayerContainer=function(){return null};
_.g.onPlayerAttached=function(q,N){_.x("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(N):this.player=N};
_.g.onPlayerDetached=function(q,N){_.x("kevlar_channel_trailer_multi_attach")?(q=this.attachedPlayers.indexOf(N),q<0||this.attachedPlayers.splice(q,1)):this.player=null};
_.g.getServiceTrackingParams=function(){var q,N;return((q=this.data)==null?void 0:(N=q.responseContext)==null?void 0:N.serviceTrackingParams)||[]};
_.g.setMastheadAd=function(q){q&&q.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=q&&q.mastheadAd};
_.g.dataChanged=function(){var q=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.gic();_.ut(this,function(){_.Hy(q.hostElement,"ytd-update-grid-state-action")})};
_.g.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.g.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var q=this.data.alerts;return q&&q.find(function(N){return!!N.alertWithActionsRenderer})}};
_.g.computeGreetingData=function(){if(this.data&&this.data.alerts){var q=this.data.alerts;return q&&q.find(function(N){return!!N.personalGreetingViewModel})}};
_.g.computeHasMemberHubProfileRenderer=function(q){var N;return!!(q==null?0:(N=q.header)==null?0:N.memberHubProfileRenderer)};
_.g.handleAlertCommand=function(q){this.get("alertCommand.alert.alertWithActionsRenderer",q)&&(q=_.v(q,kwh),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",q.alert))};
_.g.handleYtPlaylistDeletionRedirect=function(q){q=this.get("playlistDeletionRedirectCommand.redirectEndpoint",q);_.e2(this.hostElement,"yt-navigate",{endpoint:q})};
_.g.computeFluidWidth=function(q,N,b){if(N==="mini_app"||b)return!0;var y,J,E;q=q==null?void 0:(y=q.contents)==null?void 0:(J=y.twoColumnBrowseResultsRenderer)==null?void 0:(E=J.tabs)==null?void 0:E.find(function(c){var z;return c==null?void 0:(z=c.tabRenderer)==null?void 0:z.selected});
if(!q)return!1;var F,R;return!!((F=q.tabRenderer)==null?0:(R=F.content)==null?0:R.richGridRenderer)&&!["channel","channels","playables"].includes(N)};
_.g.computeHeaderFluidWidth=function(q){return q==="hashtag-landing-page"};
_.g.computeHasSidebar=function(q){var N;return!!(q.sidebar||((N=q.header)==null?0:N.playlistHeaderRenderer))};
_.g.computeHasPageHeaderSidebar=function(q){var N,b;return!!((N=q.header)==null?0:(b=N.pageHeaderRenderer)==null?0:b.enableSidebarView)};
_.g.computeUseUnifiedShowPageLayout=function(q){if(!q||this.pageSubtype!=="show"||!q.sidebar||!q.sidebar.playlistSidebarRenderer)return!1;q=q.sidebar.playlistSidebarRenderer;if(!q.items)return!1;for(var N=0;N<q.items.length;N++)if(_.v(q.items[N],C$h)){var b=void 0;return((b=_.v(q.items[N],C$h))==null?void 0:b.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.g.computeIsConstrainedList=function(q){return _.x("web_enable_constrained_list_subscriptions_channels")&&q==="subscriptions-channels"};
_.g.computeResponsiveSizing=function(q){return q==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.$H.Object.defineProperties(Hi.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var q,N;return((q=this.data)==null?0:(N=q.header)==null?0:N.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var q,N;if(!((q=this.data)==null?0:(N=q.sidebar)==null?0:N.playlistSidebarRenderer))return!1;var b;return(b=this.data)!=null&&b.header?!1:!0}}});
_.$H.Object.defineProperties(Hi,{template:{configurable:!0,enumerable:!0,get:function(){if(H7e===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);H7e=q}q=H7e;return q}}});
Hi.prototype.dataChanged=Hi.prototype.dataChanged;Hi.prototype.onPlayerDetached=Hi.prototype.onPlayerDetached;Hi.prototype.onPlayerAttached=Hi.prototype.onPlayerAttached;Hi.prototype.onStampFinished=Hi.prototype.onStampFinished;Hi.prototype.engagementPanelsChanged=Hi.prototype.engagementPanelsChanged;Hi.prototype.scrollAtTopChanged=Hi.prototype.scrollAtTopChanged;Hi.prototype.tabsChanged=Hi.prototype.tabsChanged;Hi.prototype.activeChanged=Hi.prototype.activeChanged;
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Hi.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.r7),_.P("design:type",Object)],Hi.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Hi.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],Hi.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.Jp.YtPageBehavior),_.P("design:type",Object)],Hi.prototype,"ytPageBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],Hi.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Hi.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Hi.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Hi.prototype,"hidden",void 0);
_.p([_.U(),_.P("design:type",Object)],Hi.prototype,"mastheadAdData",void 0);_.p([_.U({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.P("design:type",Object)],Hi.prototype,"alertBannerData",void 0);_.p([_.U({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.P("design:type",Object)],Hi.prototype,"greetingData",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],Hi.prototype,"pageSubtype",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.P("design:type",Boolean)],Hi.prototype,"hasMemberHubProfileRenderer",void 0);_.p([_.U({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Hi.prototype,"hasSidebar",void 0);_.p([_.U({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Hi.prototype,"hasPageHeaderSidebar",void 0);
_.p([_.U({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],Hi.prototype,"roundedContainer",void 0);_.p([_.U({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Hi.prototype,"useUnifiedShowPageLayout",void 0);_.p([_.U({computed:"computeIsConstrainedList(pageSubtype)"}),_.P("design:type",Object)],Hi.prototype,"isConstrainedList",void 0);
_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Hi.prototype,"usePlaylistHeaderRenderer",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Hi.prototype,"useOldPlaylistSidebarRenderer",null);_.p([_.U({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.P("design:type",Boolean)],Hi.prototype,"fluidWidth",void 0);_.p([_.U({selector:function(q){return q.ui.scrollAtTop}}),
_.P("design:type",Boolean)],Hi.prototype,"scrollAtTop",void 0);_.p([_.U({selector:_.s0p}),_.P("design:type",Boolean)],Hi.prototype,"tabGesturesIsActive",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.P("design:type",Boolean)],Hi.prototype,"disableHeaderFluidWidth",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.P("design:type",String)],Hi.prototype,"responsiveSizing",void 0);
_.p([_.dq("ytd-two-column-browse-results-renderer"),_.P("design:type",HTMLElement)],Hi.prototype,"contents",void 0);_.p([_.dq("#header"),_.P("design:type",HTMLElement)],Hi.prototype,"header",void 0);_.p([_.dq("ytd-refresh"),_.P("design:type",Object)],Hi.prototype,"refresh",void 0);_.p([_.FY("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Hi.prototype,"activeChanged",null);
_.p([_.FY("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Hi.prototype,"tabsChanged",null);_.p([_.FY("scrollAtTop"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Hi.prototype,"scrollAtTopChanged",null);_.p([_.U(),_.P("design:type",Object)],Hi.prototype,"engagementPanels",void 0);
_.p([_.FY("data.panels"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Hi.prototype,"engagementPanelsChanged",null);_.p([_.ZP("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Hi.prototype,"onStampFinished",null);_.p([_.ZP("yt-player-attached"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Element]),_.P("design:returntype")],Hi.prototype,"onPlayerAttached",null);
_.p([_.ZP("yt-player-detached"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Element]),_.P("design:returntype")],Hi.prototype,"onPlayerDetached",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Hi.prototype,"dataChanged",null);_.p([_.I({is:"ytd-browse"})],Hi);_.qJ.registerService(_.$pn,Hi);
_.pF();
}catch(e){_._DumpException(e)}
try{
_.LF("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 jS,Bqp,Hkf,q_a,Nac,btK,ynp,JnK,E0A,g0A,Ztd,F6A,doc,cna,zyW,$oU,t_A,rnf,X$a,V_a,jiX,xM,v0W,vq,GTK,Y_p,Qia,OtN,w$c,ldc,Doa,itB,Rya,hya,kTc,UoN,fdc,CqA,Ida,TaB,sip,n0B,S_d,W6U,p$X,M_f,o0a,AnC,BaN,qlA,NJa,b6d,yEa,JEc,EPf,gPB,Z6C,F8X,RIx,dOC,cEp,zIN,$Od,tuW,mOU,rEK,Xkc,Vuc,jEU,vPC,G4K,Ylf,QEf,O6B,wkU,i6A,lUp,K8f,DON,hIB,k4a,UOa,fUc,CRa,IUf,TJc,sEd,nPX,aUx,Slx,W8p,L8a,pkA,DF,PRc,Muf,BJU,ZTX,cOf,u3B,rOA,VzK,mEf,$EU,OTc,l7p,f7B,z7X,DEB,wGW,XGX,I7a,neK,WIx,a7U,S$A,LIf,oeU,PxK,AOx,e7c,Mza,pGW,BjX,Cy,J3a,
EAf,gAN,I4,Z0f,FUC,RNc,tPX,m1X,TY,sc,XDN,r3d,VPX,jmA,x1X,vAC,ny,KUf,a4,D1U,hNU,kKB,SS,smB,fIU,TRU,nAB,CkB,SAW,IIc,pDC,WUd,LUp,Pkf,oAU,MPf,H0a,y7a,Pq,M3,NhW,EJx,bNX,J7N,o4,eS,Bq,Hq,wVd,r7A,KvB,D$p,hff,ktX,fQA,u_U,zfa,bi,taf,qS,NS,m$K,U$X,iNB,$$a,JR,Maf,A7B,efa,oJX,Wvp,HNd,bLK,aQK,sKa,nJa,Esd,Sdp,Z9,NMX,Lvx,qna,P9X,Tha,pVx,ZLp,FYf,RWp,csp,zWW,$da,t5N,mdf,Xcx,rsf,j6B,xdA,GaX,Ynx,OLU,wcf,iLB,lsU,KYB,DdK,hWc,Udf,kaa,fsf,Isp,TMf,dY,s6a,nsc,asd,SnC,WYA,LYa,pcp,PZA,M5N,osa,AsX,BMd,HLf,qqd,N1c,Jxc,g_A,ZGd,
RLU,FwX,dQd,cxx,ucf,$QB,tEB,mQK,rxa,XEc,VEa,jYW,xQf,v_W,GmC,YqC,iGC,loC,OGB,wEx,QYx,Kwf,kmC,DQx,hLd,Cuf,UQN,foa,Ioc,T1d,sYX,n_C,Sqx,WwW,Lwd,Puf,MEf,AxX,B1a,q1X,bJC,Jlf,gCa,F4c,dHC,zFa,tkW,mHW,rla,Vkf,X2p,xHx,vCK,G8A,Y1X,ui,QXK,OJa,w2a,sXf,a6f,S1x,PUa,tR,Mkx,oCa,Ald,BbA,eFX,HJd,qIf,NHf,bpx,y5U,hQ,J5c,EQx,Nbc,gQf,ZpU,PqA,FXa,REa,djp,c5d,ugx,zEc;
jS=function(q){if(!q)return"browse";var N=q.page,b=q.url,y,J,E,F=(y=q.response)==null?void 0:(J=y.responseContext)==null?void 0:(E=J.webResponseContextExtensionData)==null?void 0:E.pageTheme;if(F)N=F.toLowerCase().replace(/_/g,"-");else if(N!=="watch"&&N!=="learning_journey_watch"){var R,c;if((N==="browse"||N==="settings")&&((R=q.response)==null?0:(c=R.sidebar)==null?0:c.settingsSidebarRenderer))N="WEB_PAGE_TYPE_SETTINGS";else{var z,m;N==="browse"&&((z=q.response)==null?0:(m=z.metadata)==null?0:m.channelMetadataRenderer)?
N="channel":b&&(N=_.JvA(b)||N)}}return N};
Bqp=function(){var q=_.Ng("yt.aba.att");return q?q:_.Ij.instance!==void 0?_.Ij.instance.cUS.bind(_.Ij.instance):null};
Hkf=function(q,N){var b;return _.d(function(y){return(b=Bqp())?y.return(b(q,N,6E4)):y.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
q_a=function(q,N,b,y,J){N=N===void 0?[]:N;J=J?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:J}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.o5(q),dialogMessages:N.map(function(E){return _.o5(E)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.o5(b),serviceEndpoint:J}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.o5(y)}}}}}};
Nac=function(q,N,b){b=b===void 0?!1:b;var y=_.sM(),J=!!_.zV().queueProxy,E,F,R;q=q==null?void 0:(E=q.response)==null?void 0:(F=E.currentVideoEndpoint)==null?void 0:(R=F.watchEndpoint)==null?void 0:R.playlistId;if((J||q)&&!_.x("web_watch_disable_playlist_auto_miniplayer"))return b&&(y.playlistWatchPageActivation=!0),!0;switch(jS(N)){case "yts-products":return b&&(y.productDetailsPageActivation=!0),!0;case "mini_app":return b&&(y.miniAppPageActivation=!0),!0;case "playables":return b&&(y.playablesDestPageActivation=
!0),!0;case "companion-canvas":return b&&(y.companionCanvasActivation=!0),!0;default:return!1}};
btK=function(q){q=_.ZCJ(q);q.length>0&&q[0].focus()};
ynp=function(q,N,b){for(var y=typeof q==="string"?q.split(""):q,J=q.length-1;J>=0;--J)J in y&&N.call(b,y[J],J,q)};
JnK=function(q,N){N=_.iCA(q,N);N>=0&&_.Dez(q,N)};
E0A=function(q){return Array.prototype.concat.apply([],arguments)};
g0A=function(q){var N=0;N=N===void 0?0:N;if(!_.Ja(q))throw _.bT("uint64");var b=typeof q;switch(N){case 512:switch(b){case "string":return _.DvZ(q);case "bigint":return String((0,_.VC)(64,q));default:return _.lqC(q)}case 1024:switch(b){case "string":return _.hJC(q);case "bigint":return _.To((0,_.VC)(64,q));default:return _.KMJ(q)}case 0:switch(b){case "string":return _.DvZ(q);case "bigint":return _.To((0,_.VC)(64,q));default:return _.i1Z(q)}default:return _.ol(N,"Unknown format requested type for int64")}};
Ztd=function(q){q!=null&&(q=q.JSC$8901_value_||"",q=typeof q==="string"?q:new Uint8Array(q));return q};
F6A=function(q,N){if(/-[a-z]/.test(N))return null;if(_.rWM&&q.dataset){if(_.Vne()&&!(N in q.dataset))return null;q=q.dataset[N];return q===void 0?null:q}return q.getAttribute("data-"+_.Fv(N))};
doc=function(){var q=Rya;_.Ng("yt.ads.biscotti.getId_")||_.zn("yt.ads.biscotti.getId_",q)};
cna=function(q){_.zn("yt.ads.biscotti.lastId_",q)};
zyW=function(){var q={};for(_.SA=new uRp(q.handleError===void 0?_.P_:q.handleError,q.logEvent===void 0?_.W_:q.logEvent);_.W4.length>0;)switch(q=_.W4.shift(),q.type){case "ERROR":_.SA.logError(q.payload);break;case "EVENT":_.SA.logEvent(q.eventType,q.payload)}};
$oU=function(q,N,b){return _.RSJ(function(y){return b?y.userIdentifier!==void 0&&!q.includes(y.userIdentifier)&&b.includes(y.publicName):y.userIdentifier!==void 0&&!q.includes(y.userIdentifier)},N)};
t_A=function(q){var N,b;return _.d(function(y){if(y.nextAddress==1)return N=_.f4("YtIdbMeta hasAnyMeta other"),y.yield(_.RSJ(function(J){return J.userIdentifier!==void 0&&J.userIdentifier!==N},q),2);
b=y.yieldResult;return y.return(b.length>0)})};
rnf=function(q,N){mof||(mof=_.pY.addLowPriorityJob(function(){var b,y,J,E,F;return _.d(function(R){switch(R.nextAddress){case 1:return R.yield(_.$5(),2);case 2:b=R.yieldResult;if(!b)return R.return();y=!0;_.Yi(R,3);return R.yield($oU(q,b,N),5);case 5:J=R.yieldResult;if(!J.length){y=!1;R.jumpTo(6);break}E=J[0];return R.yield(_.gD(E.actualName),7);case 7:return R.yield(_.Rw(E.actualName,b),6);case 6:_.Ea(R,4);break;case 3:F=_.K7(R),_.L4(F),y=!1;case 4:_.pY.cancelJob(mof),mof=0,y&&rnf(q,N),_.hj(R)}})}))};
X$a=function(){var q;return _.d(function(N){return N.nextAddress==1?N.yield(_.$5(),2):(q=N.yieldResult)?N.return(t_A(q)):N.return(!1)})};
V_a=function(q){var N=100;N=N===void 0?500:N;var b,y,J,E,F,R;return _.d(function(c){return c.nextAddress==1?(b=_.M7("INNERTUBE_CONTEXT_CLIENT_NAME",0),y=[b,(0,_.mA)()-2592E6],J=[b,(0,_.mA)()],E=IDBKeyRange.bound(y,J),c.yield(_.fPu(q),2)):c.nextAddress!=3?(F=c.yieldResult,R=[],c.yield(_.Fl(F,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(z){R.length=0;return _.rD(z.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:E,direction:"prev"},function(m){if(m.getValue()&&R.length<
N)return R.push(m.getValue()),m.delete().then(function(){return m.continue()})})}),3)):c.return(R)})};
jiX=function(){var q;return _.d(function(N){if(N.nextAddress==1)return N.yield(_.$5(),2);q=N.yieldResult;if(!q||!_.C4()&&!_.x("nwl_init_require_datasync_id_killswitch")||!_.Naz())return N.jumpTo(0);_.ynA=!0;_.btd.isNwlInitialized=_.ynA;return N.yield(_.URR().awaitInitialization(),0)})};
xM=function(q,N){_.jin[q]=!0;var b=_.m0();b&&b.publish.apply(b,arguments);_.jin[q]=!1};
v0W=function(){if(_.enZ()&&!xoK){var q=function(b){b=b.data;if(b.op==="serializedGelBatch"){var y=_.xOZ.get(b.key);y&&(_.G4d(b.serializedBatch,y.client,y.resolve,y.networklessOptions,y.isIsolated,y.useVSSEndpoint,y.dangerousLogToVisitorSession,y.requestsOutstanding),_.xOZ.delete(b.key))}},N=_.ANJ();
N&&(N.addEventListener("message",q),N.onerror=function(){_.xOZ.clear()});
xoK=!0}};
vq=function(){this.relativeTimeStart_=_.M$()};
GTK=function(q,N){q!=null&&this.append.apply(this,arguments)};
Y_p=function(){return _.DZ("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
Qia=function(q,N,b){b=b===void 0?!1:b;var y,J,E,F,R;return _.d(function(c){switch(c.nextAddress){case 1:_.kf("SOCS",q,34128E3,"youtube.com",!0);if(_.yW)return J=fetch(N,{method:"POST",mode:_.I$(N),credentials:_.Cx(N),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),E=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.I$("/upgrade_visitor_cookie?eom=1"),credentials:_.Cx("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),c.yield(Promise.all([J,E]).then(function(z){return z[1]}),5);
fetch(N,{method:"POST",mode:_.I$(N),credentials:_.Cx(N),cache:"no-store",headers:{"Content-Type":"text/plain"}});return c.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.I$("/upgrade_visitor_cookie?eom=1"),credentials:_.Cx("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:y=c.yieldResult;c.jumpTo(3);break;case 5:y=F=c.yieldResult;case 3:if(!y.ok)throw Error("uf");return c.yield(y.text(),7);case 7:R=c.yieldResult,
!R.includes('"state_switch":true')&&!b||R.includes("skip_reload_for_test")||window.location.reload(),_.hj(c)}})};
OtN=function(q){return _.d(function(N){return N.nextAddress==1?N.yield(Qia(q.socsCookie,q.savePreferenceUrl,!0),2):N.return()})};
w$c=function(q){return _.d(function(N){return N.nextAddress==1?N.yield(Qia(q.socsCookie,q.savePreferenceUrl),2):N.return()})};
ldc=function(q){q=q.xhr.responseText;if(!_.gA(q,")]}'"))throw new GY;q=JSON.parse(q.substr(4));if((q.type||1)>1)throw new GY;q=q.id;cna(q);YM=_.tI(q);itB(18E5,2);return q};
Doa=function(q,N){N=new K6A(N);cna("");YM=_.I2R(N);q>0&&itB(12E4,q-1);throw N;};
itB=function(q,N){_.Yf(function(){_.m9B().then(ldc,function(b){return Doa(N,b)}).thenCatch(_.jE)},q)};
Rya=function(){var q=_.VlX();if(q!==void 0)return _.ra(q);YM||(YM=_.m9B().then(ldc).thenCatch(function(N){return Doa(2,N)}));
return YM};
hya=function(){var q=document;return _.fC(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(N){return"on"+N.toLowerCase()in q})};
kTc=function(q){q.addEventListener("click",function(N){var b=N.target;b&&b.getAttribute("href")&&(b=b.getAttribute("href"),_.yz(window,b,"_blank"),N.preventDefault(),N.stopImmediatePropagation())})};
UoN=function(q){var N,b,y,J=(y=(b=((N=q.mainDownloadsListEntity)!=null?N:{})[_.vYh])==null?void 0:b.refresh)!=null?y:"",E;q=(E=q.refresh)==null?void 0:E[J];J=q!=null?q:{};return(J==null?0:J.refreshTime)?Number(J==null?void 0:J.refreshTime):0};
fdc=function(q,N){var b=_.Xt(q);return N.every(function(y){var J;y=y==null?void 0:(J=y.playbackDataEntity)==null?void 0:J.key;if(!y)return!1;J=_.yU(_.qR(y).entityId,"mainVideoEntity");return!!b[J]})};
CqA=function(q){q=_.ti(q.entities);return _.Cdh(q).length};
Ida=function(q,N){if(N){var b;q=(b=_.Ji(q.entities,"downloadQualityPickerEntity",N))!=null?b:void 0}else q=void 0;return q};
TaB=function(q){var N=document.getElementsByTagName("ytd-enforcement-message-view-model");N.length===0||getComputedStyle(N[0]).display==="none"?q(0,"p.h_"):q(1,"p.h_")};
sip=function(){QV=0;var q=[_.cP(!0)];Oc&&_.Hy(Oc,"yt-window-resized",q)};
n0B=function(){QV||(QV=_.pY.addLowPriorityJob(sip,200))};
S_d=function(){wN=0;adW=_.XhM(document);var q=[adW];Oc&&_.Hy(Oc,"yt-window-scrolled",q)};
W6U=function(){wN||(wN=_.pY.addLowPriorityJob(S_d,200))};
p$X=function(q){q=q===void 0?null:q;L6x.push(_.u0(window,"resize",n0B));L6x.push(_.u0(window,"scroll",W6U));q&&(Oc=q)};
M_f=function(){var q=_.ml.getLocalStorage();q&&PqA(q,q.mechanism.__iterator__(!0))};
o0a=function(q){_.d(function(N){if(N.nextAddress==1)return N.yield(q.delete("yt-appshell-assets"),2);_.hj(N)})};
AnC=function(q){return _.Z3((0,_.SmJ)(),q)};
BaN=function(){var q;_.d(function(N){return N.nextAddress==1?N.yield(ib.getInstance(),2):(q=N.yieldResult)?N.yield(eyC(q),0):N.jumpTo(0)})};
qlA=function(){var q;_.d(function(N){return N.nextAddress==1?N.yield(lb.getInstance(),2):(q=N.yieldResult)?N.yield(HtX(q),0):N.jumpTo(0)})};
NJa=function(q){o0a(q);BaN();qlA()};
b6d=function(q){var N,b;return _.d(function(y){if(y.nextAddress==1)return y.yield(_.OSJ(q),2);if(N=y.yieldResult){var J;a:{if(N.headers&&(J=N.headers.get("date"))&&(J=Date.parse(J),!isNaN(J))){J=Math.round((0,_.mA)()-J);break a}J=-1}b=J;if(b>-1)return y.return(b)}return y.return(-1)})};
yEa=function(){var q=_.JZ.caches,N=_.ou("IS_SHELL_LOAD"),b,y;_.d(function(J){if(J.nextAddress==1)return b=-1,N?J.yield(b6d(q),3):(y=_.rg(),b=Math.round((0,_.mA)()-y),J.jumpTo(2));J.nextAddress!=2&&(b=J.yieldResult);b>=0&&b<2147483648&&_.v3({appInstallDataAgeMs:b});_.hj(J)})};
JEc=function(q){var N=_.N0(_.JZ.location.href),b={};"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(y){var J=N.JSC$10113_queryData_.getValues(y);if(J==null?0:J.length)b[y]=J});
return _.Vu(q,new Map(Object.entries(b)))};
EPf=function(q){q=q.match(/(.*)::.*::.*/);if(q!==null)return q[1]};
gPB=function(q){if(_.Lod()){var N=Object.keys(window.localStorage);N=_.Z(N);for(var b=N.next();!b.done;b=N.next()){b=b.value;var y=EPf(b);y===void 0||q.includes(y)||self.localStorage.removeItem(b)}}};
Z6C=function(){if(!_.Lod())return!1;var q=_.f4(),N=Object.keys(window.localStorage);N=_.Z(N);for(var b=N.next();!b.done;b=N.next())if(b=EPf(b.value),b!==void 0&&b!==q)return!0;return!1};
F8X=function(q){return _.Ec("NotificationsDisabled",q)};
RIx=function(){return Notification.permission!="granted"?Promise.resolve():_.n8a().then(function(q){return q?q.pushManager.getSubscription().then(function(N){if(N)return Promise.resolve();N={userVisibleOnly:!0,applicationServerKey:_.HA("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return q.pushManager.subscribe(N).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
dOC=function(q){return _.n8a().then(function(N){if(!N||!N.active)return Promise.reject(new _.IO("serviceworker.postMessage",q,N));try{return N.active.postMessage(q),Promise.resolve()}catch(b){return Promise.reject(b)}})};
cEp=function(){dOC({type:"notifications_register",data:_.M7("ID_TOKEN")})};
zIN=function(){var q={isWide:_.hz.get("wide","0")==="1"},N=_.c3();if(N=N.getFlag(165)||N.getFlag(174))q.theme=_.D4(!0);if(_.Rhu()){var b=_.K9()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";q.systemTheme=b}!N&&_.x("parent_tools_enable_app_settings")&&_.gO(window.location.href).theme!==void 0&&(q.theme=_.D4());if((N=Ky)?!_.nM.equals(N,q):q)N={currentValue:q},uQA&&(N.timeSinceLastSnapshotSecs=Math.round(((0,_.mA)()-uQA)/1E3)),Ky&&(N.previousValue=Ky),_.W_("appSettingsCaptured",N),Ky=q,uQA=
(0,_.mA)()};
$Od=function(){if(!_.ou("LOGGED_IN"))return Promise.resolve(!1);var q=_.jA("service_worker_push_force_notification_prompt_tag");return q?_.Ma("PromptTags").then(function(N){if(!N)return!0;var b=[];try{b=JSON.parse(N)}catch(y){return!1}return b&&b.indexOf(q)==-1}):Promise.resolve(!1)};
tuW=function(){var q=_.VX("service_worker_push_prompt_delay_microseconds");return q?_.Ma("PromptTime").then(function(N){return Promise.resolve(Date.now()-q>(N||0))}):Promise.resolve(!0)};
mOU=function(){var q=_.VX("service_worker_push_logged_out_prompt_watches");return q==-1?Promise.resolve(!1):_.Ma("WatchCount").then(function(N){return N>=q})};
rEK=function(){var q=_.oE(document,"yt-push-prompt-modal-bg");q&&_.lC(q)};
Xkc=function(){return _.VX("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.Ma("PromptCount").then(function(q){q||(q=0);return Promise.resolve(q<_.VX("service_worker_push_prompt_cap"))})};
Vuc=function(q){return _.ou("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.ou("LOGGED_IN")&&(q===void 0?0:q)?$Od().then(function(N){if(N)return!0;N=[Xkc(),tuW()];_.ou("LOGGED_IN")||N.push(mOU());return Promise.all(N).then(function(b){return b.every(function(y){return y})})}):Promise.resolve(!1)};
jEU=function(){_.Ma("PromptCount").then(function(q){return _.Ec("PromptCount",q+1)}).then(function(){return _.Ec("PromptTime",Date.now())}).then(function(){var q=_.jA("service_worker_push_force_notification_prompt_tag");
if(q)return _.Ma("PromptTags").then(function(N){var b=[];if(N)try{b=JSON.parse(N)}catch(y){return!1}b||(b=[]);b.push(q);return _.Ec("PromptTags",JSON.stringify(b))})})};
vPC=function(){xOa||rEK()};
G4K=function(q){q.style.zIndex=2147483648;q.style.pointerEvents="auto";q.style.backgroundColor="rgba(0, 0, 0, 0.6)";q.style.width="100%";q.style.height="100vh";q.style.position="absolute";q.style.top="0";q.style.left="0";q.style.border="none"};
Ylf=function(){var q=_.oE(document,"yt-push-prompt-modal-bg");xOa=_.x("service_worker_push_prompt_modal_ignore_click");q?G4K(q):(q=_.iu("div",{id:"yt-push-prompt-modal-bg"}),G4K(q),document.body.appendChild(q),_.t_d(document,"click",vPC))};
QEf=function(){var q=arguments;_.x("service_worker_push_prompt_modal_enable")&&Ylf();return Notification.requestPermission().then(function(N){rEK();var b=document.getElementById("ticker");b&&(b.className=b.classList.remove("show"));if(N=="granted")return RIx().then(function(){F8X(!1);cEp();return Promise.resolve(!0)});
N=="denied"&&cEp();return Promise.resolve(!1)}).catch(function(){rEK();
return Promise.reject.apply(Promise,_.a9(q))})};
O6B=function(q){q=q===void 0?!1:q;var N=_.$yd().client;if(N&&N.browserVersion){var b=N.browserVersion,y=N.browserName=="CHROME"&&_.md(b,"50.0.0")<0;N=N.browserName=="OPERA"&&_.md(b,"42.0.0")<0;if(y||N)return Promise.resolve()}return _.WlU().then(function(J){if(!J)return Promise.resolve();J=RIx().then(function(){return dOC({type:"notifications_check_registration",data:_.M7("ID_TOKEN")})});
return Notification.permission!="default"?J.catch(function(){}):J.then(function(){return Vuc(q)}).then(function(E){if(E)return jEU(),QEf().then(function(){})}).catch(function(){})})};
wkU=function(q){return _.a4C(q)?O6B():Promise.resolve()};
i6A=function(q){var N=q.installing||q.waiting;return q.active||!N?Promise.resolve(q):new Promise(function(b){var y=function(J){J=J.target;if(J.state==="activated"||J.state==="redundant")N.removeEventListener("statechange",y),b(q)};
N.addEventListener("statechange",y)})};
lUp=function(){var q=new _.GWz("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.J7(q,{mainAppWeb:_.f9()});var N=_.RqE;_.x("service_worker_forward_exp_params")&&(N=JEc(N));try{var b=_.rAz(N).catch(function(){_.Ed(q,"FAILURE");return new Promise(function(){})});
_.x("service_worker_push_enabled")&&b.then(function(y){_.Ed(q,"SUCCESS");return y}).then(i6A).then(wkU)}catch(y){if(_.Ed(q,"FAILURE"),y.name!=="SecurityError")throw y;
}};
K8f=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&lUp()};
DON=function(q,N){var b={};N&&(b.serializedYpcFamilyCreateLoggingParams=N);_.W_(q,b);_.Lo()};
hIB=function(q,N){var b={};b.serializedYpcRefundFlowLoggingParams=N;q&&(b.eventType=q);_.W_("ypcRefundFlowEvent",b);_.Lo()};
k4a=function(q){q&&_.V$h("transactionFlowSucceeded",q)};
UOa=function(q){q&&_.CZ("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",q,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
fUc=function(q){var N,b,y,J,E,F,R;_.d(function(c){if(c.nextAddress==1)return c.yield(_.yfC(),2);if(c.nextAddress!=3){if(!c.yieldResult)return c.return(!1);N=[];return c.yield(_.H$.keys(),3)}b=c.yieldResult;y=_.Z(b);for(J=y.next();!J.done;J=y.next())E=J.value,F=_.NXd(E),R=F.datasyncId,!R||q.includes(R)||N.push(_.H$.delete(E));return c.return(Promise.all(N).then(function(z){return z.some(function(m){return m})}))})};
CRa=function(){var q,N,b,y,J,E,F;return _.d(function(R){if(R.nextAddress==1)return R.yield(_.yfC(),2);if(R.nextAddress!=3){if(!R.yieldResult)return R.return(!1);q=_.f4("cache contains other");return R.yield(_.H$.keys(),3)}N=R.yieldResult;b=_.Z(N);for(y=b.next();!y.done;y=b.next())if(J=y.value,E=_.NXd(J),(F=E.datasyncId)&&F!==q)return R.return(!0);return R.return(!1)})};
IUf=function(){var q=_.tz().resolve(_.$f(_.RCj));return q?q.getCurrentTime():0};
TJc=function(){var q,N,b,y,J,E,F,R,c,z,m,r,X,V;return _.d(function(G){switch(G.nextAddress){case 1:q={},N=_.gdC(),b=_.Z(Object.entries(N)),y=b.next();case 4:if(y.done){G.jumpTo(3);break}J=y.value;E=_.Z(J);F=E.next().value;R=E.next().value;c=F;z=R;if(!z){G.jumpTo(5);break}return G.yield(z(),8);case 8:q[c]=G.yieldResult;case 5:y=b.next();G.jumpTo(4);break;case 2:m=_.Z(),r=m.next();case 9:if(r.done){G.jumpTo(3);break}X=r.value;V=N[X];if(!V){G.jumpTo(10);break}return G.yield(V(),13);case 13:q[X]=G.yieldResult;
case 10:r=m.next();G.jumpTo(9);break;case 3:return G.return(q)}})};
sEd=function(){var q;_.d(function(N){if(N.nextAddress==1)return N.yield(TJc(),2);q=N.yieldResult;return N.yield(navigator.clipboard.writeText(JSON.stringify(q,null,2)),0)})};
nPX=function(q,N){return _.Ji(q.entities,"superThanksSelectedTierEntity",N)};
aUx=function(q,N){return{popup:{searchSuggestionReportDialog:{searchQuery:q,title:_.FE("SBOX_INAPPROPRIATE_TITLE"),suggestions:N,categoryLabel:_.FE("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.FE("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.FE("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.FE("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.FE("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.FE("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.FE("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.FE("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.FE("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.FE("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
Slx=function(q){var N,b,y,J,E,F,R,c,z,m,r,X,V,G,w,D,k,f,L;return _.d(function(S){switch(S.nextAddress){case 1:return S.yield(_.ZC(),2);case 2:return(N=S.yieldResult)?S.yield(_.XiZ(N),3):S.return();case 3:b=S.yieldResult;if(!b)return S.return();J=((y=b.offlineVideos)==null?void 0:y.length)||0;F=((E=b.offlinePlaylists)==null?void 0:E.length)||0;if(J===0&&F===0)return S.return();R=0;if(b.offlineVideos)for(c=_.Z(b.offlineVideos),z=c.next();!z.done;z=c.next())m=z.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
m.videoState&&(R+=1);q.offline_videos_count=J.toString();_.x("kevlar_log_offline_current_network_type_ks")||(q.offline_current_network_type=(r=_.Iiz())!=null?r:"CONN_INVALID");_.x("kevlar_log_updated_time_for_smart_downloads")&&(X=_.WT().getState().entities,V=_.vT(X),G=UoN(X),q.offline_smart_downloads_last_sync_time_ms=V.toString(),q.offline_smart_downloads_next_sync_time_ms=G.toString());q.offline_videos_playable=R.toString();q.offline_playlists_count=F.toString();b.offlineVideos&&(w=b.offlineVideos.reduce(function(W,
M){M.downloadedBytes&&(W+=Number(M.downloadedBytes));return W},0).toString())&&(q.offline_used_disk_space_bytes=w);
if(!((D=navigator)==null?0:(k=D.storage)==null?0:k.estimate)){S.jumpTo(4);break}return S.yield(navigator.storage.estimate(),5);case 5:f=S.yieldResult,q.offline_free_disk_space_bytes=(((L=f)==null?void 0:L.quota)||0).toString();case 4:q.offline_client_state=JSON.stringify(b),_.hj(S)}})};
W8p=function(q){q=q.match(/(.*)::.*::.*/);if(q!==null)return q[1]};
L8a=function(q){if(_.TBn()){var N=Object.keys(window.sessionStorage);N=_.Z(N);for(var b=N.next();!b.done;b=N.next()){b=b.value;var y=W8p(b);y===void 0||q.includes(y)||self.sessionStorage.removeItem(b)}}};
pkA=function(){if(!_.TBn())return!1;var q=_.f4(),N=Object.keys(window.sessionStorage);N=_.Z(N);for(var b=N.next();!b.done;b=N.next())if(b=W8p(b.value),b!==void 0&&b!==q)return!0;return!1};
DF=function(q,N,b){(_.x("desktop_keyboard_shortcut_usage_log")||b&&_.x("web_shorts_keyboard_shortcut_usage_log"))&&(N?_.dN.get(q):_.R4.get(q))&&(q=N?_.ub.get(q):_.cq.get(q))&&_.nr(_.Oe(),q)};
PRc=function(q,N){return q.findIndex(function(b){return b.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(N.keyCode):!1};
Muf=function(q,N){N.stack&&(q.stack+="\n"+N.stack);return q};
BJU=function(q){var N=hQ(q,"Content-Type");if(!N)return null;N=N.toLowerCase();if(N.startsWith("application/json"))return N.startsWith("application/json+protobuf")?new oPC:new _.tG;if(N.startsWith("application/x-protobuf")){q=hQ(q,"Content-Transfer-Encoding");if(!q)return new AEN;if(q.toLowerCase()=="base64")return new eIU}return null};
ZTX=function(q,N,b,y){var J=new H6U(function(R,c){return q$a.has(c)?R.sentinel==="gal"&&R.event!==void 0:!1},function(R){R.event?(R=NjU(R.event),R=!R||bTf(y,R)?!0:_.cc(q.lastEvent,kM,2,Uc)?!_.cc(R,fy,1,Uc)&&!_.cc(R,kM,2,Uc):!_.cc(R,fy,1,Uc)&&!_.cc(R,kM,3,Uc)):R=!0;
return R});
b=_.Vu(q.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",yOd(b)]]));if(q.nestedOrigins!==void 0)for(var E=_.Z(q.nestedOrigins),F=E.next();!F.done;F=E.next())b=_.Vu(b,new Map([["origin",F.value]]));return JOf(J,b,N).then(function(R){R=Eea(R.event);if(_.cc(R,fy,1,Uc)){var c,z=(c=_.QW(R,fy,1,Uc))==null?void 0:_.vc(c,2);z&&y.JSC$19804_logErrorEvent(geA(z));c=_.QW(R,fy,1,Uc);_.vc(c,2)===4?(R=_.QW(R,fy,1,Uc),R={statusCode:11,statusMessage:_.xs(R,
3)}):(R=_.QW(R,fy,1,Uc),R={statusCode:12,statusMessage:_.xs(R,3)});return R}_.cc(R,kM,3,Uc)?(R=_.QW(R,kM,3,Uc),R={statusCode:1,consentLanguageKeys:_.xs(R,2)}):R={statusCode:1};return R}).catch(function(R){return R.errorCode!==void 0?{statusCode:R.errorCode,
statusMessage:R.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
cOf=function(q){var N={};if(q===void 0||q===null)return N;q.getToken()!==void 0&&FIW(q.getToken())&&FIW(q.getToken()).length>0&&(N.scopes=new Set(FIW(q.getToken())));q.getToken()!==void 0&&R7X(q.getToken())&&R7X(q.getToken()).length>0&&(N.capabilities=new Set(R7X(q.getToken())));_.xs(q,3)!==void 0&&(N.consistencyKey=_.xs(q,3));q.getName()!==void 0&&q.getName()!==""&&(N.linkName=q.getName());_.dM(q,dEa,4)&&(q=_.Vr(q,dEa,4),q=Object.assign({},_.xs(q,1)&&{userId:_.xs(q,1)},_.xs(q,2)&&{displayName:_.xs(q,
2)},_.xs(q,3)&&{email:_.xs(q,3)},_.xs(q,5)&&{username:_.xs(q,5)},_.xs(q,4)&&{profilePicture:_.xs(q,4)}),N.profile=q);return N};
u3B=function(q,N){var b=q.flowParams,y;return{serviceId:b.serviceId,sessionId:b.sessionId,currentFlow:q.currentFlow,googleScopesString:N,linkingSessionSerialized:q.session.serialize(),consentLanguageKeys:b.consentLanguageKeys,callerState:q.callerState,dynamicUrlParameters:b.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(y=b.partnerConfigMinReadTimestamp)==null?void 0:y.serialize()}};
rOA=function(q){var N=q.googleScopes!==void 0?Array.from(q.googleScopes).join(","):"";z7X(u3B(q,N));N=$EU(q);return N===null?Promise.resolve(tzU):N.start().then(function(b){var y,J=(y=b.link)==null?void 0:y.consistencyKey;return b.statusCode===1&&q.googleScopes!==void 0&&q.googleScopes.size>0&&J!==void 0?(y=q.flowParams,mEf(y.serviceId,y.sessionId,q.googleScopes,J,y.galService,q.config,b)):b})};
VzK=function(q){var N=$EU(q);return N===null?Promise.resolve(XGX({statusCode:7,statusMessage:"Failed to create flow object"},q.callerState)):N.complete().then(function(b){var y,J=(y=b.link)==null?void 0:y.consistencyKey;return b.statusCode===1&&q.googleScopes!==void 0&&q.googleScopes.size>0&&J!==void 0?(y=q.flowParams,mEf(y.serviceId,y.sessionId,q.googleScopes,J,y.galService,q.config,b)):XGX(b,q.callerState)},function(b){return XGX({statusCode:12,
statusMessage:"Failed to complete the flow: "+b.message},q.callerState)})};
mEf=function(q,N,b,y,J,E,F){return jDa(J,{serviceId:q,sessionId:N,googleScopes:b,consistencyKey:y}).then(function(){return F},function(R){return J.deleteLink({serviceId:q,
sessionId:N,accountLinkingEntryPoint:E.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+R.message}},function(c){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+c.message}})})};
$EU=function(q){switch(q.currentFlow){case 1:var N=q.flowParams;q=_.Vr(q.session,xEf,1);return veN.createOAuthFlow(N,q);case 2:case 3:return N=q.flowParams,q=_.Vr(q.session,GSf,6),Y$f.createStreamlinedFlow(N,q);default:return null}};
OTc=function(q,N){q===2&&(q=3);var b=0;QDK.indexOf(q)!==-1&&(b=QDK.indexOf(q)+1);for(q=b;q<QDK.length;q++)if(N.has(QDK[q]))return QDK[q]};
l7p=function(q){var N=q.serviceId;var b=q.sessionId;var y=q.config;var J=q.galService;var E=q.capabilities;var F=q.scopes;var R=q.loginHint;var c=q.callerState;var z=q.consentLanguageKeys;var m=q.linkName;var r=q.dynamicUrlParameters;var X=q.partnerConfigMinReadTimestamp;q=y.dataUsageNoticeConfig?y.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return J.startLinkingSession({serviceId:N,sessionId:b,capabilities:E,scopes:F,loginHint:R,callerState:c,supportedFlows:wGW(y.supportedFlows),completionUrl:y.completionUrl,
accountLinkingEntryPoint:y.accountLinkingEntryPoint,consentLanguageKeys:z,dataUsageNoticeConfig:q,linkName:m,dynamicUrlParameters:r,partnerConfigMinReadTimestamp:X}).then(function(V){return new iTB(N,b,y,J,V,void 0,c,z,r,X)})};
f7B=function(q,N,b){var y=(new KIW).getSession(q);if(y===null)return Promise.resolve({statusCode:2});DEB(q);var J=h7a(y.linkingSessionSerialized),E=y.googleScopesString!==""&&y.googleScopesString!==void 0?new Set(y.googleScopesString.split(",")):void 0,F=y.partnerConfigMinReadTimestampSerialized?kSC(y.partnerConfigMinReadTimestampSerialized):void 0;return UEf(new iTB(q,y.sessionId,N,b,J,E,y.callerState,y.consentLanguageKeys,y.dynamicUrlParameters,F),y.currentFlow,y.consentLanguageKeys)};
z7X=function(q){var N=new KIW;N.storage!==null&&N.storage.set("SAVED_SESSION",q)};
DEB=function(q){var N=new KIW;if(N.storage!==null){var b=N.storage.get("SAVED_SESSION");b!==void 0&&b.serviceId===q&&N.storage.remove("SAVED_SESSION")}};
wGW=function(q){var N=new Set;q=_.Z(q);for(var b=q.next();!b.done;b=q.next())b=b.value,b!==1&&Cxx.has(b)&&N.add(Cxx.get(b));return N};
XGX=function(q,N){N!==void 0&&(q.callerState=N);return q};
I7a=function(q){switch(q){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
neK=function(q){return new Tjf(q,new sDa(q))};
WIx=function(q,N){N=N===void 0?!1:N;var b=document.createElement("div");q&&(b.style.transform="scaleX(-1)");b.style.backgroundColor=N?"rgba(138,180,248,.24)":"#e8f0fe";b.style.height="4px";b.style.overflow="hidden";b.style.position="absolute";b.style.top="0";b.style.width="100%";b.style.zIndex="1500";b.setAttribute("aria-label","Loading");b.setAttribute("aria-live","polite");q=document.createElement("style");q.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  }";
b.appendChild(q);q=a7U();q.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";q.style.left="-145.166611%";var y=S$A(N);y.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";q.appendChild(y);b.appendChild(q);q=a7U();q.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";q.style.left="-54.888891%";N=S$A(N);N.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
q.appendChild(N);b.appendChild(q);return b};
a7U=function(){var q=document.createElement("div");q.style.height="100%";q.style.position="absolute";q.style.transformOrigin="top left";q.style.width="100%";return q};
S$A=function(q){var N=document.createElement("span");N.style.borderTop=q?"4px solid #669df6":"4px solid #4285f4";N.style.display="inline-block";N.style.position="absolute";N.style.width="100%";return N};
LIf=function(q){return q==null?void 0:_.QAj(q).valueOf()};
oeU=function(q){var N=document.body,b=!1,y=function(){b||(b=!0,pGW(J,E),setTimeout(function(){N.removeChild(E);N.removeChild(J)},150))},J=PxK(q,getComputedStyle(N).direction==="rtl",y),E=Mza(y);
pGW(J,E);N.appendChild(E);N.appendChild(J);window.requestAnimationFrame(function(){E.style.opacity="1";J.style.opacity="1";J.style.transform="translate(-50%, -50%) scale(1)";J.children[0].focus()})};
PxK=function(q,N,b){var y=document.createElement("div");y.style.position="fixed";y.style.alignItems="center";y.style.backgroundColor=q?"rgb(32, 33, 36)":"white";y.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";y.style.display="flex";y.style.flexDirection="column";y.style.justifyContent="center";y.style.left="50%";y.style.top="50%";y.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";y.style.zIndex="2002";document.body.clientWidth>=
660?(y.style.borderRadius="8px",y.style.minHeight="220px",y.style.maxHeight="90%",y.style.maxWidth="90%",y.style.minWidth="540px"):(y.style.height="100%",y.style.width="100%");y.setAttribute("aria-label","Error");y.setAttribute("aria-modal","true");y.setAttribute("role","alertdialog");y.addEventListener("keydown",function(E){E.key==="Escape"&&b()});
N=AOx(q,N,b);y.appendChild(e7c(N));y.appendChild(N);var J=document.createElement("img");J.src=q?"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";J.style.height="72px";J.style.width="72px";J.style.color="#9aa0a6";J.setAttribute("alt","");y.appendChild(J);J=document.createElement("h1");J.textContent="Something went wrong.  Try again.";
J.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";J.style.lineHeight="24px";J.style.fontSize="16px";J.style.textAlign="center";J.style.letterSpacing="0.1px";J.style.color=q?"rgb(232,234,237)":"#3c4043";y.appendChild(J);y.appendChild(e7c(N));return y};
AOx=function(q,N,b){var y=document.createElement("button");y.style.backgroundColor="transparent";y.style.border="none";y.style.borderRadius="50%";y.style.cursor="pointer";y.style.outline="none";y.style.padding="12px";y.setAttribute("aria-label","Close dialog");y.style.position="absolute";y.style.top="0";N?y.style.right="0":y.style.left="0";y.addEventListener("focus",function(){y.style.backgroundColor=q?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
y.addEventListener("blur",function(){y.style.backgroundColor="transparent"});
y.addEventListener("mouseenter",function(){y.style.backgroundColor=q?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
y.addEventListener("mouseleave",function(){y.style.backgroundColor="transparent"});
y.addEventListener("click",b);y.addEventListener("keydown",function(J){J.key!=="Enter"&&J.key!=="Space"||b()});
N=document.createElement("img");N.src=q?"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";N.style.display="block";N.style.height="24px";N.style.width="24px";N.setAttribute("alt","");y.appendChild(N);return y};
e7c=function(q){var N=document.createElement("div");N.setAttribute("tabindex","0");N.setAttribute("aria-hidden","true");N.addEventListener("focus",function(){return void q.focus()});
return N};
Mza=function(q){var N=document.createElement("div");N.style.backgroundColor="rgba(32,33,36,0.6)";N.style.bottom="0";N.style.left="0";N.style.position="fixed";N.style.right="0";N.style.top="0";N.style.transition=" opacity 150 ms linear";N.style.zIndex="2001";N.addEventListener("click",q);return N};
pGW=function(q,N){N.style.opacity="0";q.style.opacity="0";q.style.transform="translate(-50%, -50%) scale(0.8)"};
BjX=function(q,N){q.sandbox&&q.sandbox.add&&(q.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),q.sandbox.add("allow-downloads"));q.src=N};
Cy=function(q){HTd.call(this,q)};
J3a=function(q,N){N=N===void 0?!1:N;this.parsedImageUrl_=null;q instanceof qAU||(NRW==void 0&&(NRW=new b0B),q=NRW.parse(q.toString(),N));q=this.parsedImageUrl_=q;q.JSC$20016_parsedOptions_==void 0&&((N=q.getOptions())||(N=""),q.JSC$20016_parsedOptions_=(new y3p).parse(N));HTd.call(this,q.JSC$20016_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;q=this.parsedImageUrl_;N=q.uri_.JSC$10113_port_;this.JSC$20018_domain_=q.uri_.JSC$10113_domain_+(N?":"+N:"");this.JSC$20018_query_=
this.parsedImageUrl_.uri_.JSC$10113_queryData_.toString()};
EAf=function(q){this.mode=4;this.data=q;this.parsedData=[];q=0;for(var N=this.data.length;q<N;q++){var b=[],y=this.data.charCodeAt(q);y>65536?(b[0]=240|(y&1835008)>>>18,b[1]=128|(y&258048)>>>12,b[2]=128|(y&4032)>>>6,b[3]=128|y&63):y>2048?(b[0]=224|(y&61440)>>>12,b[1]=128|(y&4032)>>>6,b[2]=128|y&63):y>128?(b[0]=192|(y&1984)>>>6,b[1]=128|y&63):b[0]=y;this.parsedData.push(b)}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))};
gAN=function(q){this.typeNumber=0;this.errorCorrectLevel=q===void 0?2:q;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
I4=function(q,N){if(q.length==void 0)throw Error("Pk`"+q.length+"`"+N);for(var b=0;b<q.length&&q[b]==0;)b++;this.num=Array(q.length-b+N);for(N=0;N<q.length-b;N++)this.num[N]=q[N+b]};
Z0f=function(q,N){this.totalCount=q;this.dataCount=N};
FUC=function(){this.buffer=[];this.length=0};
RNc=function(){var q=!1;if(_.Gzd()){q=_.Vh();var N="";_.OCu()?(N=/Windows (?:NT|Phone) ([0-9.]+)/,N=(q=N.exec(q))?q[1]:"0.0"):_.hZ()?(N=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,N=(q=N.exec(q))&&q[1].replace(/_/g,".")):_.QJJ()?(N=/Mac OS X ([0-9_.]+)/,N=(q=N.exec(q))?q[1].replace(/_/g,"."):"10"):_.zz(_.Vh(),"KaiOS")?(N=/(?:KaiOS)\/(\S+)/i,N=(q=N.exec(q))&&q[1]):_.Gzd()?(N=/Android\s+([^\);]+)(\)|;)/,N=(q=N.exec(q))&&q[1]):_.wAe()&&(N=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,N=(q=N.exec(q))&&q[1]);q=
N||""}return q};
tPX=function(q,N){this.JSC$20041__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(N)for(var b in N)this.JSC$20041__htOption[b]=N[b];this.JSC$20041__htOption.useSVG&&(d1a=c3A);this.JSC$20041__android=RNc();this.JSC$20041__el=q;this._oQRCode=null;this._oDrawing=new d1a(this.JSC$20041__el,this.JSC$20041__htOption);this.JSC$20041__htOption.text&&(q=this.JSC$20041__htOption.text,this._oQRCode=new gAN(this.JSC$20041__htOption.correctLevel),uOa(this._oQRCode,
q),N=this._oQRCode,zNc(N,!1,$1f(N)),this.JSC$20041__el.title=q,this._oDrawing.draw(this._oQRCode),this.makeImage())};
m1X=function(q,N,b,y,J){q.save();var E=new Path2D;E.roundRect(N,b,y*7,y*7,y*2);E.roundRect(N+y,b+y,y*5,y*5,y*1.3);E.roundRect(N+2*y,b+2*y,y*3,y*3,y);q.clip(E,"evenodd");q.fillStyle=J;q.fillRect(0,0,q.canvas.width,q.canvas.height);q.restore()};
TY=function(q,N){if(typeof q!=="function")throw Error("Sk");return _.JZ.setTimeout(function(){q()},N)};
sc=function(){};
XDN=function(q,N,b,y,J){(new sc).debug("TestLoadImageWithRetries: "+J);if(y==0)b(!1);else{var E=J||0;y--;r3d(q,N,function(F){F?b(!0):_.JZ.setTimeout(function(){XDN(q,N,b,y,E)},E)})}};
r3d=function(q,N,b){var y=new sc;y.debug("TestLoadImage: loading "+q);var J=new Image;J.onload=function(){try{y.debug("TestLoadImage: loaded"),VPX(J),b(!0)}catch(E){}};
J.onerror=function(){try{y.debug("TestLoadImage: error"),VPX(J),b(!1)}catch(E){}};
J.onabort=function(){try{y.debug("TestLoadImage: abort"),VPX(J),b(!1)}catch(E){}};
J.ontimeout=function(){try{y.debug("TestLoadImage: timeout"),VPX(J),b(!1)}catch(E){}};
_.JZ.setTimeout(function(){if(J.ontimeout)J.ontimeout()},N);
J.src=q};
VPX=function(q){q.onload=null;q.onerror=null;q.onabort=null;q.ontimeout=null};
jmA=function(){this.front_=[];this.back_=[]};
x1X=function(q,N){this.action=q;this.params=N||{}};
vAC=function(q,N){_.UN.call(this);this.delay_=new _.TP(this.JSC$20167_onTick_,0,this);_.YN(this,this.delay_);this.JSC$20165_interval_=5E3;this.nextTickTime_=0;if(typeof q==="function")N&&(q=(0,_.fF)(q,N));else if(q&&typeof q.handleEvent==="function")q=(0,_.fF)(q.handleEvent,q);else throw Error("ya");this.JSC$20167_listener_=q};
ny=function(q,N,b,y,J,E,F,R,c,z,m,r,X,V,G){var w=this;b=b===void 0?!1:b;y=y===void 0?function(){return""}:y;
J=J===void 0?!1:J;E=E===void 0?!1:E;F=F===void 0?!1:F;R=R===void 0?function(){return _.bG({})}:R;
c=c===void 0?!1:c;m=m===void 0?!1:m;r=r===void 0?!1:r;X=X===void 0?!1:X;V=V===void 0?!1:V;this.JSC$20168_pathPrefix_=q;this.defaultQueryParams_=N;this.pubsub_=new _.K4;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!G)?G(function(){w.safeReconnect_()}):new vAC(this.safeReconnect_,this);
this.JSC$20168_channel_=null;this.JSC$20168_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20168_pendingMessages_=[];this.enableAsyncTest_=b;this.JSC$20168_getXsrfToken_=y;this.useAsyncBrowserChannelHandler_=E;this.getAuthorizationHeader_=R;this.getAuthorizationHeaderSync_=z;this.enableCachedUpdateAuthorizationHeader_=F;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.bG();this.enableLoungeTokenRefresh_=J;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
c;this.disableMdxAuthForNonPlaybackMessages_=m;this.disableMdxAuthForAdMessages_=r;this.enableMdxAuthForConnectionOnly_=X;this.disableMdxAuthForShortsMessages_=V;this.JSC$20168_channelOpenedCounter=new GKU;this.JSC$20168_channelClosedCounter=new YAW;this.channelMessageSentCounter=new Qmx;this.JSC$20168_channelMessageReceivedCounter=new O0a;this.JSC$20168_channelErrorCounter=new wDN;this.pendingMapsOnClosedCounter=new i0c;this.undeliveredMapsOnClosedCounter=new lIc};
KUf=function(q){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;q=q||document.location.href;var N=Number(_.RO(q)[4]||null)||"";N&&(this.port=":"+N);this.domain=_.dO(q)||"";q=_.Vh();q.search("MSIE")>=0&&_.md(q.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
a4=function(q){q=q||{};this.name=q.name||"";this.id=q.id||q.screenId||"";this.token=q.token||q.loungeToken||"";this.uuid=q.uuid||q.dialId||"";this.idType=q.screenIdType||"normal";this.secret=q.screenIdSecret||""};
D1U=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(q){var N=Math.random()*16|0;return(q=="x"?N:N&3|8).toString(16)})};
hNU=function(q){return _.aW(q,function(N){return{key:N.id,name:N.name}})};
kKB=function(q,N){return _.fC(q,function(b){return b||N?!b!=!N?!1:b.id==N.id:!0})};
SS=function(q,N){return _.fC(q,function(b){return U1N(b,N)})};
smB=function(){var q=fIU(),N=CkB();if(IIc()){var b=q,y=_.Cne(b,N);y<0&&_.kzZ(b,-(y+1),0,N)}q=TRU(q);if(q.length==0)try{_.krA("remote_sid")}catch(J){}else try{_.kf("remote_sid",q.join(","),-1)}catch(J){}};
fIU=function(){var q=_.XH("yt-remote-connected-devices")||[];q.sort(_.fRD);return q};
TRU=function(q){if(q.length==0)return[];var N=q[0].indexOf("#"),b=N==-1?q[0]:q[0].substring(0,N);return _.aW(q,function(y,J){return J==0?y:y.substring(b.length)})};
nAB=function(q){_.r5("yt-remote-connected-devices",q,86400)};
CkB=function(){if(aId)return aId;var q=_.XH("yt-remote-device-id");q||(q=D1U(),_.r5("yt-remote-device-id",q,31536E3));for(var N=fIU(),b=1,y=q;_.aJ(N,y);)b++,y=q+"#"+b;return aId=y};
SAW=function(){return _.XH("yt-remote-session-browser-channel")};
IIc=function(){return _.XH("yt-remote-session-screen-id")};
pDC=function(q){q.length>5&&(q=q.slice(q.length-5));var N=_.aW(WUd(),function(y){return y.loungeToken}),b=_.aW(q,function(y){return y.loungeToken});
_.a2D(b,function(y){return!_.aJ(N,y)})&&LUp();
_.r5("yt-remote-local-screens",q,31536E3)};
WUd=function(){return _.XH("yt-remote-local-screens")||[]};
LUp=function(){_.r5("yt-remote-lounge-token-expiration",!0,86400)};
Pkf=function(q){q||(_.Vk("yt-remote-session-screen-id"),_.Vk("yt-remote-session-video-id"));smB();q=fIU();_.WA(q,CkB());nAB(q)};
oAU=function(){MPf();return Wq?!!Wq.get("yt-remote-use-staging-server"):!1};
MPf=function(){if(!Wq){var q=_.SYJ();q&&(Wq=new _.T1(q))}};
H0a=function(q,N,b,y,J){b=b===void 0?function(){return""}:b;
var E=function(){return new ny(Ly(q,"/bc"),N,!1,b,y)};
return _.x("enable_mdx_web_channel_desktop")?new A3C(function(){return new eNU(Ly(q,"/wc"),N,b)}):new BRN(E,J)};
y7a=function(){var q=qdf;NhW();py.push(q);bNX()};
Pq=function(q,N){NhW();var b=J7N(q,String(N));py.length==0?EJx(b):(bNX(),_.Jz(py,function(y){y(b)}))};
M3=function(q){Pq("CP",q)};
NhW=function(){py||(py=_.Ng("yt.mdx.remote.debug.handlers_")||[],_.zn("yt.mdx.remote.debug.handlers_",py))};
EJx=function(q){var N=(gJW+1)%50;gJW=N;ZNX[N]=q;FvB||(FvB=N==49)};
bNX=function(){var q=py;if(ZNX[0]){var N=FvB?gJW:-1,b={};do b={record$jscomp$15:void 0},N=(N+1)%50,b.record$jscomp$15=ZNX[N],_.Jz(q,function(y){return function(J){J(y.record$jscomp$15)}}(b));
while(N!=gJW);ZNX=Array(50);gJW=-1;FvB=!1}};
J7N=function(q,N){var b=(Date.now()-Rff)/1E3;b.toFixed&&(b=b.toFixed(3));var y=[];y.push("[",b+"s","] ");y.push("[","yt.mdx.remote","] ");y.push(q+": "+N,"\n");return y.join("")};
o4=function(q){_.FG.call(this);this.JSC$20193_logName_=q;this.screens=[]};
eS=function(q){o4.call(this,"LocalScreenService");this.JSC$20200_http_=q;this.loungeTokenRefreshTimer_=NaN;AQ(this);this.info("Initializing with "+d$K(this.screens))};
Bq=function(q,N){N=N===void 0?!1:N;o4.call(this,"ScreenService");this.JSC$20206_http_=q;this.disableAutomaticScreenCache_=N;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};c7p(this)};
Hq=function(q,N,b){_.FG.call(this);this.JSC$20210_logName_=b;this.JSC$20210_screenService_=q;this.receiver_=N;this.screen_=null};
wVd=function(q,N,b){b.disableCastApi?qS("Cannot initialize because disabled by Mdx config."):u_U()?zfa(q,b)&&($$a(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?taf(N):(window.__onGCastApiAvailable=function(y,J){y?taf(N):(NS("Failed to load cast API: "+J),m$K(!1),$$a(!1),_.Vk("yt-remote-cast-available"),_.Vk("yt-remote-cast-receiver"),r7A(),N(!1))},b.loadCastApiSetupScript?_.kU(XVW):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
VaB()>=60&&jKW():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?x$d():VaB()>=89?vJf():(GtN(),Ydf(QKB.map(ONX))))):qS("Cannot initialize because not running Chrome")};
r7A=function(){qS("dispose");var q=bi();q&&q.dispose();_.zn("yt.mdx.remote.cloudview.instance_",null);iNB(!1);_.xod(lQA);lQA.length=0};
KvB=function(){return!!_.XH("yt-remote-cast-installed")};
D$p=function(){var q=_.XH("yt-remote-cast-receiver");return q?q.friendlyName:null};
hff=function(){qS("clearCurrentReceiver");_.Vk("yt-remote-cast-receiver")};
ktX=function(){return KvB()?bi()?bi().getCastSession():(NS("getCastSelector: Cast is not initialized."),null):(NS("getCastSelector: Cast API is not installed!"),null)};
fQA=function(q,N){U$X()?bi().setConnectedScreenStatus(q,N):NS("setConnectedScreenStatus called before ready.")};
u_U=function(){var q=_.Vh().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.Js||q};
zfa=function(q,N){var b=!1;bi()||(q=new yA(q,N),q.subscribe("yt-remote-cast2-availability-change",function(y){_.r5("yt-remote-cast-available",y);xM("yt-remote-cast2-availability-change",y)}),q.subscribe("yt-remote-cast2-receiver-selected",function(y){qS("onReceiverSelected: "+y.friendlyName);
_.r5("yt-remote-cast-receiver",y);xM("yt-remote-cast2-receiver-selected",y)}),q.subscribe("yt-remote-cast2-receiver-resumed",function(y){qS("onReceiverResumed: "+y.friendlyName);
_.r5("yt-remote-cast-receiver",y);xM("yt-remote-cast2-receiver-resumed",y)}),q.subscribe("yt-remote-cast2-session-change",function(y){qS("onSessionChange: "+C9B(y));
y||_.Vk("yt-remote-cast-receiver");xM("yt-remote-cast2-session-change",y)}),_.zn("yt.mdx.remote.cloudview.instance_",q),b=!0);
qS("cloudview.createSingleton_: "+b);return b};
bi=function(){return _.Ng("yt.mdx.remote.cloudview.instance_")};
taf=function(q){m$K(!0);$$a(!1);bi().init(!1,function(N){N?(iNB(!0),_.v0R("yt-remote-cast2-api-ready")):(NS("Failed to initialize cast API."),m$K(!1),_.Vk("yt-remote-cast-available"),_.Vk("yt-remote-cast-receiver"),r7A());q(N)})};
qS=function(q){Pq("cloudview",q)};
NS=function(q){Pq("cloudview",q)};
m$K=function(q){qS("setCastInstalled_ "+q);_.r5("yt-remote-cast-installed",q)};
U$X=function(){return!!_.Ng("yt.mdx.remote.cloudview.apiReady_")};
iNB=function(q){qS("setApiReady_ "+q);_.zn("yt.mdx.remote.cloudview.apiReady_",q)};
$$a=function(q){_.zn("yt.mdx.remote.cloudview.initializing_",q)};
JR=function(q){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(q)};
Maf=function(q){MPf();if(!Wq||!Wq.get("yt-remote-disable-remote-module-for-dev")){q=_.M7("MDX_CONFIG")||q;M_f();smB();IQW||(IQW=new KUf(q?q.loungeApiHost:void 0),oAU()&&(IQW.basePath="/api/loungedev"));E0||(E0=_.Ng("yt.mdx.remote.deferredProxies_")||[],_.zn("yt.mdx.remote.deferredProxies_",E0));Tha();var N=sKa();if(!N){var b=new Bq(IQW,q?q.disableAutomaticScreenCache||!1:!1);_.zn("yt.mdx.remote.screenService_",b);N=sKa();var y={};q&&(y={appId:q.appId,disableDial:q.disableDial,theme:q.theme,loadCastApiSetupScript:q.loadCastApiSetupScript,
disableCastApi:q.disableCastApi,enableDialLoungeToken:q.enableDialLoungeToken,enableCastLoungeToken:q.enableCastLoungeToken,forceMirroring:q.forceMirroring});_.zn("yt.mdx.remote.enableConnectWithInitialState_",q?q.enableConnectWithInitialState||!1:!1);wVd(b,function(E){E?nJa()&&fQA(nJa(),"YouTube TV"):b.subscribe("onlineScreenChange",function(){xM("yt-remote-receiver-availability-change")})},y)}if(q&&!_.Ng("yt.mdx.remote.initialized_")){_.zn("yt.mdx.remote.initialized_",!0);
aQK("Initializing: "+(0,_.kC)(q));gY.push(_.j0("yt-remote-cast2-api-ready",function(){xM("yt-remote-api-ready")}));
gY.push(_.j0("yt-remote-cast2-availability-change",function(){xM("yt-remote-receiver-availability-change")}));
gY.push(_.j0("yt-remote-cast2-receiver-selected",function(){Sdp();xM("yt-remote-auto-connect","cast-selector-receiver")}));
gY.push(_.j0("yt-remote-cast2-receiver-resumed",function(){xM("yt-remote-receiver-resumed","cast-selector-receiver")}));
gY.push(_.j0("yt-remote-cast2-session-change",Wvp));gY.push(_.j0("yt-remote-connection-change",function(E){E?fQA(nJa(),"YouTube TV"):Lvx()||(fQA(null,null),hff())}));
gY.push(_.j0("yt-remote-cast2-session-failed",function(){xM("yt-remote-connection-failed")}));
y=pVx();q.isAuto&&(y.id+="#dial");var J=q.capabilities||[];J.length>0&&(y.capabilities=J);y.name=q.device;y.app=q.app;(q=q.theme)&&(y.theme=q);aQK(" -- with channel params: "+(0,_.kC)(y));y?(_.r5("yt-remote-session-app",y.app),_.r5("yt-remote-session-name",y.name)):(_.Vk("yt-remote-session-app"),_.Vk("yt-remote-session-name"));_.zn("yt.mdx.remote.channelParams_",y);N.start();nJa()||P9X()}}};
A7B=function(){var q=sKa().instance_.$_gos();var N=oJX();N&&Z9()&&(kKB(q,N)||q.push(N));return hNU(q)};
efa=function(){var q=A7B(),N=oJX();N||(N=Lvx());return _.fC(q,function(b){return N&&U1N(N,b.key)?!0:!1})};
oJX=function(){var q=nJa();if(!q)return null;var N=sKa().getScreens();return SS(N,q)};
Wvp=function(q){aQK("remote.onCastSessionChange_: "+C9B(q));if(q){var N=oJX();if(N&&N.id==q.id){if(fQA(N.id,"YouTube TV"),q.idType=="shortLived"&&(q=q.token))BhA&&(BhA.token=q),(N=Z9())&&N.setLoungeToken(q)}else N&&HNd(),qna(q,1)}else Z9()&&HNd()};
HNd=function(){U$X()?bi().stopSession():NS("stopSession called before API ready.");var q=Z9();q&&(q.disconnect(1),NMX(null))};
bLK=function(){var q=Z9();return q&&q.getProxyState()!=3?new FI(Z9(),void 0):null};
aQK=function(q){Pq("remote",q)};
sKa=function(){if(!ysB){var q=_.Ng("yt.mdx.remote.screenService_");ysB=q?new JsC(q):null}return ysB};
nJa=function(){return _.Ng("yt.mdx.remote.currentScreenId_")};
Esd=function(q){_.zn("yt.mdx.remote.currentScreenId_",q)};
Sdp=function(){_.zn("yt.mdx.remote.connectData_",null)};
Z9=function(){return _.Ng("yt.mdx.remote.connection_")};
NMX=function(q){var N=Z9();Sdp();q||Esd("");_.zn("yt.mdx.remote.connection_",q);E0&&(_.Jz(E0,function(b){b(q)}),E0.length=0);
N&&!q?xM("yt-remote-connection-change",!1):!N&&q&&xM("yt-remote-connection-change",!0)};
Lvx=function(){var q=IIc();if(!q)return null;var N=sKa();if(!N)return null;N=N.getScreens();return SS(N,q)};
qna=function(q,N){gsK?BhA=q:(Esd(q.id),q=new Rs(IQW,q,pVx(),_.Ng("yt.mdx.remote.enableConnectWithInitialState_")||!1),q.connect(N,_.Ng("yt.mdx.remote.connectData_")),q.subscribe("beforeDisconnect",function(b){xM("yt-remote-before-disconnect",b)}),q.subscribe("beforeDispose",function(){Z9()&&NMX(null)}),q.subscribe("browserChannelAuthError",function(){var b=oJX();
b&&b.idType=="shortLived"&&(U$X()?bi().handleBrowserChannelAuthError():NS("refreshLoungeToken called before API ready."))}),NMX(q))};
P9X=function(){var q=Lvx();q?(aQK("Resume connection to: "+C9B(q)),qna(q,0)):(Pkf(),hff(),aQK("Skipping connecting because no session screen found."))};
Tha=function(){var q=pVx();if(_.nM.isEmpty(q)){q=CkB();var N=_.XH("yt-remote-session-name")||"",b=_.XH("yt-remote-session-app")||"";q={device:"REMOTE_CONTROL",id:q,name:N,app:b,mdxVersion:3};q.authuser=String(_.M7("SESSION_INDEX","0"));(N=_.M7("DELEGATED_SESSION_ID"))&&(q.pageId=String(N));_.zn("yt.mdx.remote.channelParams_",q)}};
pVx=function(){return _.Ng("yt.mdx.remote.channelParams_")||{}};
ZLp=function(){var q,N;return _.d(function(b){if(b.nextAddress==1)return(_.Jnd()||_.x("use_new_nwl"))&&_.q_D().isNetworkAvailable()?b.yield(_.$5(),2):b.return();if(b.nextAddress!=3)return(q=b.yieldResult)?b.yield(V_a(q),3):b.return();N=b.yieldResult;if(!N.length)return b.return();N.forEach(function(y){var J={timestamp:y.timestamp};y=y.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:y.appShellAssetLoadReport,options:J}:y.clientError?{payloadName:"clientError",payload:y.clientError,
options:J}:void 0;y&&_.W_(y.payloadName,y.payload,y.options)});
N.length===100&&_.pY.addLowPriorityJob(ZLp);_.hj(b)})};
FYf=function(q){if(q.playerResponse){if(q=q.playerResponse,q.messages&&q.messages.length>0&&(q=q.messages.find(function(N){return!(!N||!N.mealbarPromoRenderer)}))&&q.mealbarPromoRenderer)return q.mealbarPromoRenderer}else if(q.response&&(q=q.response)&&q.overlay&&q.overlay.mealbarPromoRenderer)return q.overlay.mealbarPromoRenderer};
RWp=function(q){if(q.response){var N=q.response;if(N&&N.overlay&&N.overlay.tooltipRenderer)return N.overlay.tooltipRenderer}if(q.playerResponse&&(q=q.playerResponse,q.messages&&q.messages.length>0&&(q=q.messages.find(function(b){return!(!b||!b.tooltipRenderer)}))&&q.tooltipRenderer))return q.tooltipRenderer};
csp=function(q){if(!ddK&&(q=q||_.M7("ZWIEBACK_PING_URLS"))&&q.length){ddK=!0;for(var N=0;N<q.length;N++)_.b0(q[N])}};
zWW=function(q){if(_.nM.get(_.M7("PLAYER_VARS",{}),"privembed",!1)!="1"){q&&doc();try{unX().then(function(){},function(){}),_.Yf(zWW,18E5)}catch(N){_.HC(N)}}};
$da=function(){var q=_.c3(),N=q.getFlag(119),b=window.devicePixelRatio>1;document.body&&_.P2(document.body,"exp-invert-logo")&&(b&&!_.P2(document.body,"inverted-hdpi")?_.nt(document.body,"inverted-hdpi"):!b&&_.P2(document.body,"inverted-hdpi")&&_.TT(document.body,"inverted-hdpi"));N!=b&&(_.uG(0,119,b),q.save())};
t5N=function(q){return q.filter(function(N){return"ypcGetCartEndpoint"in N||"ypcFixInstrumentEndpoint"in N})};
mdf=function(q){return q.filter(function(N){return!_.v(N,_.vxT)})};
Xcx=function(q,N){var b,y,J,E,F,R,c;_.d(function(z){switch(z.nextAddress){case 1:b=_.Uv.getInstance();y=_.bq.instance;J=_.f6.instance;if(!J)return rsf(q,y,N),z.return();_.Yi(z,2);q.onLoadingCommand&&y.resolveCommand(q.onLoadingCommand);return z.yield(b.getCurrentPositionFromGeolocation(),4);case 4:E=z.yieldResult;if(!q.resolveLocationCommand){z.jumpTo(5);break}F=b.createLocationInfo(E);return z.yield(_.IE(J,q.resolveLocationCommand,{locationInfo:F}),6);case 6:R=z.yieldResult;if(!R||"error"in R&&R.error||
R.errorMetadata)return rsf(q,y,N),z.return();var m;if(R==null?0:(m=R.onResponseReceivedActions)==null?0:m.length){m=_.Z(R.onResponseReceivedActions);for(var r=m.next();!r.done;r=m.next())y.resolveCommand(r.value)}(_.v(q.onSuccessCommand,_.nx)||_.v(q.onSuccessCommand,_.FH))&&_.e2(N.hostElement,"yt-navigate",{endpoint:q.onSuccessCommand,reload:!0});case 5:_.Ea(z,0);break;case 2:c=_.K7(z);if(c instanceof GeolocationPositionError&&c.code===GeolocationPositionError.PERMISSION_DENIED)return q.onDeniedCommand&&
y.resolveCommand(q.onDeniedCommand),z.return();rsf(q,y,N);_.hj(z)}})};
rsf=function(q,N,b){q.onFailureCommand&&(N.resolveCommand(q.onFailureCommand),_.By(b.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
j6B=function(q,N){var b=_.v(q,_.ptE);if(b&&N){q=b.videoIds||[b.videoId];var y;N=(y=_.e2(N,"yt-lockup-requested",{videoIds:q}).detail)==null?void 0:y.returnValue;var J;b.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?J=N?N:q.map(function(E){return{videoId:E,navigationEndpoint:b.videoCommand}}):N&&(J=N);
J&&(y=J.map(function(E){var F=Object,R=F.assign;var c=E.navigationEndpoint;if(!_.v(c,_.uI)){var z=_.v(c,_.nx);if(z){if(delete z.index,delete z.playlistId,z=_.v(c==null?void 0:c.commandMetadata,_.gg),z==null?0:z.url){var m=z.url;m=_.px(m,"list");m=_.px(m,"index");z.url=m}}else c=void 0}return R.call(F,{},E,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:c})}),V5A(y,b))}};
xdA=function(q){var N=_.zV();if(q=_.v(q,_.PWq))q.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&N.clearQueue(),q.closeMiniplayer&&_.tz().resolve(_.l9).close(!0)};
GaX=function(q){vsC(_.zV(),q)};
Ynx=function(q){var N;(q=(N=_.v(q,_.WSl))==null?void 0:N.setVideoIds)&&q.forEach(function(b){_.I_x(_.zV(),b)})};
OLU=function(q){Q6K(_.zV(),q)};
wcf=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(q){return!1}};
iLB=function(q){var N=["h","m","s"],b=_.LC(N);b.reverse();var y={};q=(q.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(F){var R=(F.match(/[hms]/)||[""])[0];return R?(y[R]=parseInt(F.match(/\d+/)[0],10),!1):!0});
for(q.reverse();q.length&&b.length;){var J=b.shift();J in y||(y[J]=parseInt(q.shift(),10))}if(q.length||y.s>59||y.m>59||y.h>9)return null;var E="";N.forEach(function(F){y[F]&&(E+=""+y[F]+F)});
return E||null};
lsU=function(q,N){var b=_.$tJ(N,{},q,!0);return new Promise(function(y,J){b.listenOnce("n",function(){J(Error("Dl`"+b.JSC$30000_getErrorDescription()))});
b.listenOnce("l",function(){var E=b.getResponseCode();if(E!==200)J(Error("El`"+N+"`"+q.type+"`"+q.size+"`"+E));else try{y(JSON.parse(b.getResponseText()).encryptedBlobId)}catch(F){J(F)}});
b.run()})};
KYB=function(q){return q.substring(q.indexOf(":")+1,q.indexOf(";"))};
DdK=function(q){return new Promise(function(N,b){var y=new FileReader;y.onloadend=function(){try{var J=new Uint8Array(y.result);J.length<8&&b(void 0);var E=J.subarray(0,8);J="";for(var F=0;F<E.length;F++)J+=("0"+E[F].toString(16)).substr(-2);J.startsWith("ffd8ff")?N("image/jpeg"):J.startsWith("47494638")?N("image/gif"):J.startsWith("89504e470d0a1a0a")?N("image/png"):J.startsWith("424d")?N("image/bmp"):N(void 0)}catch(R){b(R)}};
y.onerror=b;y.readAsArrayBuffer(q)})};
hWc=function(q){return new Promise(function(N,b){var y=new Image;y.crossOrigin="anonymous";y.onload=function(){var J=document.createElement("canvas");J.width=y.naturalWidth;J.height=y.naturalHeight;var E=J.getContext("2d");if(!E)throw Error("Fl");E.drawImage(y,0,0);E=KYB(q);J.toBlob(function(F){F?N(F):b()},E)};
y.src=q})};
Udf=function(q,N){var b;if(((b=_.v(q,_.uI))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var y;_.e2((y=N.hostElement)!=null?y:N,"yt-shorts-reset");_.FWd(_.tz().resolve(_.Ib),q).then(function(E){kaa(E,N,q)})}else{var J;
_.qc((J=N.hostElement)!=null?J:N,[q]).then(function(E){E&&kaa(E.data,N,q)})}};
kaa=function(q,N,b){if(q){var y=_.v(q.replacementEndpoint,_.uI);if(y){q.sequenceContinuation&&(y.sequenceParams=q.sequenceContinuation);var J;_.e2((J=N.hostElement)!=null?J:N,"yt-navigate",{endpoint:q.replacementEndpoint})}else if((q==null?void 0:q.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(q==null?0:q.watchStatus)&&_.v(q.watchStatus,_.DMx)){var E;_.e2((E=N.hostElement)!=null?E:N,"yt-navigate",{endpoint:b})}}};
fsf=function(q){var N=_.tz().resolve(_.eU),b=_.U$.currentPageTypeSelector(N.getState())||"";N=_.U$.currentPageSubTypeSelector(N.getState())||"";b=b==="ytd-browse"&&N==="home";return _.x("web_guide_entry_enable_cache_for_non_home_pages")?(q=(q==null?void 0:q.navigationEndpoint)&&_.Z4(q.navigationEndpoint)==="home",{disableCache:b&&q}):{disableCache:b}};
Isp=function(q,N,b,y){if(N!=null&&N.isPrimary){a:{var J=N.formattedTitle,E=y===1?N.navigationEndpoint:void 0;if(b&&b.length){var F={};if(J){var R=void 0;E&&(R={commandContext:{onTap:{innertubeCommand:E||{}}}});F.header={panelHeaderViewModel:{title:_.v$(J),rendererContext:R}}}J=[];b=_.Z(b);for(E=b.next();!E.done;E=b.next()){E=_.v(E.value,CZA);var c=void 0,z=void 0;R=((c=E)==null?0:c.formattedTitle)?_.v$((z=E)==null?void 0:z.formattedTitle):void 0;c=void 0;z=(c=E)==null?void 0:c.isPrimary;if(E&&R&&
!z){R={title:R};E.navigationEndpoint&&(R.rendererContext={commandContext:{onTap:{innertubeCommand:E.navigationEndpoint}}});c=[];var m=z=void 0;if(((z=E)==null?0:(m=z.thumbnail)==null?0:m.thumbnails)&&E.thumbnail.thumbnails.length>0){z=_.Z(E.thumbnail.thumbnails);for(m=z.next();!m.done;m=z.next())c.push({url:m.value.url});R.leadingAccessory={avatarViewModel:{image:{sources:c},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(z=void 0,(z=E.icon)==null?0:z.iconType)c.push({clientResource:{imageName:E.icon.iconType||
""}}),R.leadingImage={sources:c};z=c=void 0;((c=E)==null?0:(z=c.badges)==null?0:z.liveBroadcasting)?(R.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",R.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},R.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):E.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?R.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":E.count&&(R.trailingLabel={content:E.count.toString()});
J.push({listItemViewModel:R})}}J.length!==0?(F.content={listViewModel:{listItems:J}},y===0&&(F.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):F=void 0;if(F){J=void 0;y===0&&(J={preventCloseWhileHovered:!0,hideDelayMs:3E3});F={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:F}},contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:J}}};break a}}F=void 0}y===1&&F?(N.serviceEndpoint=F,N.navigationEndpoint=void 0):y===0&&F&&(N.mouseEnterEndpoint=
F,N.mouseLeaveEndpoint={hideSheetCommand:{}});q.push({guideEntryRenderer:N})}};
TMf=function(q){if(!q)return!1;try{if(q.host&&q.host.tagName==="YT-FORMATTED-STRING"&&q.host.id==="contenteditable-textarea"||q.nodeType===Node.ELEMENT_NODE&&q.tagName==="YTD-COMMENT-INPUT")return!0}catch(N){return!1}return TMf(q.parentNode)};
dY=function(q){return q?q.tagName==="A"&&q.href&&q.classList.contains("yt-simple-endpoint"):!1};
s6a=function(q){return q?q.tagName==="IMG"&&q.classList.contains("emoji"):!1};
nsc=function(q,N,b){if(!q)return null;var y=dY(q);if(y&&b)return N=q.pathname.substring(q.pathname.indexOf("/channel/")+9),document.createTextNode("@"+N);if(y&&!b)return document.createTextNode("");if(s6a(q))return b=q.alt,q=q.dataset.emojiId,!q&&N&&(N=_.HG(N,b))&&N.isCustomEmoji&&(q=N.emojiId),q?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+q+">"):document.createTextNode(b);y=q.cloneNode(!1);for(var J=0;J<q.childNodes.length;++J){var E=nsc(q.childNodes[J],N,b);E&&y.appendChild(E)}return y};
asd=function(q){return q?dY(q)?q:asd(q.lastChild):null};
SnC=function(q){return q?dY(q)?q:SnC(q.firstChild):null};
WYA=function(q){if(!q)return null;for(var N=q.previousSibling;N;)if(N.nodeType===Node.ELEMENT_NODE&&N.nodeName==="BR")N=N.previousSibling;else if(N.nodeType===Node.TEXT_NODE&&/\s+/.test(N.textContent))N=N.previousSibling;else break;(N=asd(N))?q=N:q=(q=q.parentNode)?asd(q.previousElementSibling):null;return q};
LYa=function(q){if(!q)return null;for(var N=q.nextSibling;N;)if(N.nodeType===Node.ELEMENT_NODE&&N.nodeName==="BR")N=N.nextSibling;else if(N.nodeType===Node.TEXT_NODE&&/\s+/.test(N.textContent))N=N.nextSibling;else break;return(N=SnC(N))?N:LYa(q.parentNode)};
pcp=function(q){var N=_.N1(),b=N.JSC$11424_getStartNode();if(!TMf(b.parentNode))return null;N=N.JSC$11424_getStartOffset();if(b.nodeType===Node.TEXT_NODE){var y=_.Ph(b,dY);if(y){if(q&&N===0||!q&&N===b.length)return y}else{if(q&&N===b.length)return!b||b.nodeName==="BR"||b.nextElementSibling&&_.bk(b.nextElementSibling,"display")==="block"?null:SnC(b.nextElementSibling);if(!q&&N===0)return b?asd(b.previousElementSibling):null}}if(b.nodeType===Node.ELEMENT_NODE)if(q){if(0<=N&&N<b.childNodes.length)return SnC(b.childNodes[N])}else if(0<
N&&N<=b.childNodes.length)return asd(b.childNodes[N-1]);return null};
PZA=function(q,N,b){if(!q)return null;if(q.nodeType===Node.TEXT_NODE)if(b){var y=WYA(q);if(y&&!/^\s+\S/.test(q.wholeText.substr(0,N)))return y}else if((y=LYa(q))&&!/\S\s+/.test(q.wholeText.substr(N,q.wholeText.length)))return y;return q.nodeType===Node.ELEMENT_NODE?b?WYA(q.childNodes[N]):LYa(q.childNodes[N]):PZA(q.parentNode,N,b)};
M5N=function(q){if(q.hasChildNodes())switch(q.tagName){case "DIV":case "A":case "SPAN":var N="";for(q=q.firstChild;q;q=q.nextSibling)N+=M5N(q);return N;default:return""}else switch(q.nodeType){case 3:return q.textContent;default:return""}};
osa=function(q){switch(q){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"}};
AsX=function(q){return q.map(function(N){return{settingsRadioOptionRenderer:{title:_.eg(N.name),asideText:_.eg(N.approximateSize),id:osa(N.format)}}})};
BMd=function(q){if(q&&q.length!==0)return q.filter(eWf()).map(function(N){return{settingsRadioOptionRenderer:{title:N.name,asideText:N.approximateSize,id:osa(N.formatType)}}})};
HLf=function(q){if(q)return q.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
qqd=function(q,N){q=new Set(q!=null?q:[]);if(q.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(q.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(q.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(q.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(q.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(N)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
N1c=function(q){var N=q.indexOf("(");return N!==-1?q.substring(N+1,q.length-1):q};
_.yxA=function(q,N,b,y,J){b||(b=bGf);var E;(E=_.v(b.commandMetadata,_.gg))!=null&&E.url||(b=Error("Kl`"+JSON.stringify(b)),_.po(b),b=bGf);b=_.nM.unsafeClone(b);E=_.B_(_.v(b.commandMetadata,_.gg).url,"search_query",q);_.HY(location.href,"sv")==="1"&&(_.v(b,_.R0).params="EgOAAgE%3D",E=_.B_(E,"sv","1"));_.v(b,_.R0)&&(_.v(b,_.R0).query=q);E=E.replace(/%20/g,"+");_.v(b.commandMetadata,_.gg).url=E;J=_.x("desktop_enable_entity_suggest")?{entityMid:J}:{};_.tz().resolve(_.rO).resolveCommand(b,{form:{tempData:Object.assign({},
{gs_l:N,oq:y!=null?y:q},J),isFromShorts:_.nT()==="shorts"}})};
Jxc=function(q){switch(q){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
g_A=function(q,N,b,y,J,E){var F=_.nM.clone(E_X);F.locale=_.M7("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;F.report={description:J||"<empty>"};J=_.M7("SBOX_SETTINGS",{});N=N.join(",");var R=Date.now();q={choice_cc:y,choice_id_cc:b,choices_sc:N,gl:J.REQUEST_DOMAIN,hl:J.REQUEST_LANGUAGE,query:q,time:R};E&&(q.choice_additional_comment_cc=E);_.VRF(F,q)};
ZGd=function(q){var N=new Map;N.set("authuser",_.M7("SESSION_INDEX","0"));return _.Vu(q,N)};
RLU=function(q){var N;return _.d(function(b){switch(b.nextAddress){case 1:if(!q||!FwX(q))return b.return(null);N=null;switch(_.M7("INNERTUBE_CLIENT_NAME")){case "WEB":return b.jumpTo(2);case "WEB_REMIX":N=q.getPlayer()}b.jumpTo(3);break;case 2:return b.yield(q.getPlayerPromise(),4);case 4:N=b.yieldResult;b.jumpTo(3);break;case 3:return b.return(N)}})};
FwX=function(q){return["ytd-player","ytmusic-player"].includes(String(q.tagName||"").toLowerCase())};
dQd=function(q){q=Math.round(q);return q%2?q-1:q};
cxx=function(q){q=Math.round(q);return q%2===0?q-1:q};
ucf=function(q){var N,b,y;if(q=(N=q.createPlaylistDialogFormSchema)==null?void 0:(b=N.fieldSchemas)==null?void 0:(y=b.title)==null?void 0:y.validationSchema)for(N=[q.syncStep,q.asyncStep].filter(function(J){return J!==void 0}),N=_.Z(N),b=N.next();!b.done;b=N.next()){b=b.value.rules;
if(!b)break;b=_.Z(b);for(b=b.next();!b.done;b=b.next())return _.v(b.value,_.wBB)}};
$QB=function(q){var N,b,y;if(q=(N=q.createPlaylistDialogFormSchema)==null?void 0:(b=N.fieldSchemas)==null?void 0:(y=b.visibility)==null?void 0:y.validationSchema)for(N=[q.syncStep,q.asyncStep].filter(function(J){return J!==void 0}),N=_.Z(N),b=N.next();!b.done;b=N.next()){b=b.value.rules;
if(!b)break;b=_.Z(b);for(y=b.next();!y.done;y=b.next())if(y=_.v(y.value,zLd))return N=void 0,(N=y.translations)==null?void 0:N.visibilityNotValidErrorMessage}};
tEB=function(){var q,N;return(N=(q=_.tz().resolve(_.$f(_.ft)))==null?void 0:q())!=null?N:!1};
mQK=function(q){var N=21;if(!q)return N;N+=q.headerTitle?27:0;N+=q.headerTitle&&q.hasHeaderActionHeader?4:0;return N+=q.headerTitle&&q.headerSubtitle?16:0};
rxa=function(q){var N=0;if(!q)return N;N+=q.hasFooterPrimaryButton||q.hasFooterSecondaryButton?48:0;N+=q.footerTrailingLabel||q.footerLeadingLabel?30:0;return N+=q.hasFooterPrimaryButton||q.hasFooterSecondaryButton||!q.footerTrailingLabel&&!q.footerLeadingLabel?0:12};
XEc=function(q){var N=new _.K4,b=q;return{subscribe:function(y){N.subscribe("changed",y)},
dispatch:function(y,J){var E=b;if(y==="Touch Start")b=Object.assign({},E,{isAnimating:!1,initialY:J.event.touches[0].clientY});else if(y==="Touch Move"){y=J.contentScrollable?-1*(E.initialY-24):0;var F,R=(F=J.headerDivHeight)!=null?F:mQK(J.header),c;F=(c=J.footerDivHeight)!=null?c:rxa(J.footer);c=Math.min(J.fullContentWrapperHeight,J.heightMap[J.contentWrapperId]+R-F);b=Object.assign({},E,{currentY:Math.max(y,J.event.touches[0].clientY-E.initialY),maxHeightForContentWrapper:Math.min(c,Math.max(0,
(E.isFullScreen?c:J.contentWrapperHeight)-E.currentY))})}else b=y==="Snap To Full Screen"?Object.assign({},E,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:J.maxHeight}):y==="Snap To Neutral Position"?Object.assign({},E,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:J.maxHeight}):y==="Close Sheet"?Object.assign({},E,{isAnimating:!0,currentY:J.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:J.maxHeight}):E;N.publish("changed",b)}}};
VEa=function(){_.tz().resolve(_.oQ).closeSheet()};
jYW=function(q){var N,b,y,J,E,F,R,c,z,m,r;return{headerTitle:(N=q.headerTitle)==null?void 0:N.call(q),headerSubtitle:(b=q.headerSubtitle)==null?void 0:b.call(q),headerActionHeader:q.headerActionHeader,footerPrimaryButton:q.footerPrimaryButton,footerSecondaryButton:q.footerSecondaryButton,footerButtonType:(y=q.footerButtonType)==null?void 0:y.call(q),footerLeadingLabel:(J=q.footerLeadingLabel)==null?void 0:J.call(q),footerTrailingLabel:(E=q.footerTrailingLabel)==null?void 0:E.call(q),shouldShowIcons:(F=
q.shouldShowIcons)==null?void 0:F.call(q),skipContentClick:(R=q.skipContentClick)==null?void 0:R.call(q),additionalClassName:(c=q.additionalClassName)==null?void 0:c.call(q),onClosedCallback:q.onClosedCallback,focusOnClose:(z=q.focusOnClose)==null?void 0:z.call(q),isDisabled:(m=q.isDisabled)==null?void 0:m.call(q),disabledCommand:(r=q.disabledCommand)==null?void 0:r.call(q),headerFn:q.headerFn,contentFn:q.contentFn,footerFn:q.footerFn,hasHeaderFn:q.hasHeaderFn(),hasContentFn:q.hasContentFn(),hasFooterFn:q.hasFooterFn(),
hasFooterPrimaryButton:q.hasFooterPrimaryButton(),hasFooterSecondaryButton:q.hasFooterSecondaryButton(),hasHeaderActionHeader:q.hasHeaderActionHeader()}};
xQf=function(q){switch(q){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""}};
v_W=function(q){switch(q){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""}};
GmC=function(q){switch(q){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""}};
YqC=function(q,N,b){N.forEach(function(y){_.fm(_.tz().resolve(_.S9),y)});
_.By(q,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",b])};
iGC=function(q,N,b,y){var J=_.v(b,_.cb).commandLifeCycleConfig;J&&J.onStartCommand&&_.Nc(q,[J.onStartCommand],N);_.DI(N);var E=_.f6.instance;E&&_.C6(E,b)?_.IE(E,b,y).then(function(F){if(!F||(F==null?0:F.error))return F=_.v(b,_.cb).serializedTransactionFlowLoggingParams,_.h3(N),_.ra(new cr("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",F));_.h3(N);return{data:F}}).then(function(F){_.h3(N);
QYx(F.data);var R=F.data.command;R&&_.Nc(q,[R],N);R=OGB(b,F.data);if(!R){var c=F.data;F=!1;if(c&&c.command&&_.v(c.command,_.y6)){var z;c=((z=_.v(c.command,_.y6))==null?void 0:z.commands)||[];for(z=0;z<c.length;z++)if(_.v(c[z],_.Ex4)){F=!0;break}}F||_.SU('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!R&&J&&J.onSuccessCommand?_.Nc(q,[J.onSuccessCommand],N):R&&J&&J.onFailureCommand&&_.Nc(q,[J.onFailureCommand],N)},function(){_.h3(N);
J&&J.onFailureCommand&&_.Nc(q,[J.onFailureCommand],N);wEx(b)}):_.po(Error("Wl"),"ERROR")};
loC=function(q,N,b){var y=[N];b&&y.push(b);return _.qc(q,y).then(function(J){var E=_.v(N,_.cb).serializedTransactionFlowLoggingParams,F=J.data,R=OGB(N,F);R?J=_.ra(new cr(R,E)):QYx(F);return J},function(){var J=_.v(N,_.cb).serializedTransactionFlowLoggingParams;
wEx(N);return _.ra(new cr("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",J))})};
OGB=function(q,N){q=_.v(q,_.cb).serializedTransactionFlowLoggingParams;var b=null;switch(N.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":b="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":b="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":b="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}b?_.I0(b,q):k4a(q);return b};
wEx=function(q){_.I0("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.v(q,_.cb).serializedTransactionFlowLoggingParams)};
QYx=function(q){if(q.trackingParams){var N=_.Oe(),b=_.QY();N&&b&&_.fr(N,b,_.zT(q.trackingParams))}};
Kwf=function(q,N,b){var y=_.f6.instance,J=_.nuR(_.M7("YPC_MB_URL")),E=(new _.TfJ).init(),F=_.s_D(),R=_.v(b,_.NKT).languageCode;R===void 0?_.po(Error("Ii"),"ERROR"):_.lU([E,J]).then(function(){var c={ctk:_.WD.payments.business.integration.ClientTokenFactory.createClientToken(R,F)};y&&_.C6(y,b)?_.IE(y,b,c).then(function(z){return{data:z}}).then(function(z){_.e2(N,"yt-service-request-completed",z);
z.code!=="ERROR"&&(z=z.data.command)&&_.Nc(q,[z],N)}):_.po(Error("Wl"),"ERROR")})};
kmC=function(q,N,b,y){var J=_.f6.instance;J&&_.C6(J,b)?_.IE(J,b,y).then(function(E){return{data:E}}).then(function(E){DQx(q,N,b,E)},function(){hLd(b)}):(J=_.tz().resolve(_.$f(_.$8)))&&J.requestDataForServiceEndpoint(b,y).then(function(E){DQx(q,N,b,E)},function(){hLd(b)})};
DQx=function(q,N,b,y){_.e2(N,"yt-service-request-completed",y);if(y.code&&y.code=="ERROR")hLd(b);else{(y=y.data.commands)&&_.Nc(q,y,N);var J;(q=(J=_.v(b,_.ZSo))==null?void 0:J.serializedYpcPauseFlowLoggingParams)&&q&&_.CZ("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",q)}};
hLd=function(q){var N;(q=(N=_.v(q,_.ZSo))==null?void 0:N.serializedYpcPauseFlowLoggingParams)&&q&&_.CZ("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",q,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
Cuf=function(q,N,b){var y=_.f6.instance;y&&_.C6(y,b)?_.IE(y,b).then(function(J){return{data:J}}).then(function(J){UQN(q,N,b,J)},function(){foa(b)}):(y=_.tz().resolve(_.$f(_.$8)))&&y.requestDataForServiceEndpoint(b).then(function(J){UQN(q,N,b,J)},function(){foa(b)})};
UQN=function(q,N,b,y){_.e2(N,"yt-service-request-completed",y);y.code&&y.code=="ERROR"?foa(b):((y=y.data.commands)&&_.Nc(q,y,N),(q=_.v(b,_.FoT).serializedYpcResumeFlowLoggingParams)&&q&&_.CZ("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",q))};
foa=function(q){(q=_.v(q,_.FoT).serializedYpcResumeFlowLoggingParams)&&q&&_.CZ("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",q,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
Ioc=function(q){q=q===void 0?{}:q;_.tz().resolve(_.nBf).showFeedbackDialog(q.customProductData,q.feedbackContent,q.onFeedbackSubmitted,q.bucket)};
T1d=function(q){q=q===void 0?{}:q;_.tz().resolve(_.nBf).showHelpDialog(q.helpContext,q.articleId,q.productData)};
sYX=function(){T1d()};
n_C=function(){Ioc()};
Sqx=function(q,N,b){var y,J,E,F,R,c,z;return _.d(function(m){switch(m.nextAddress){case 1:y=_.v(q,aoX);if((J=y)==null?0:J.productId){c={productId:y.productId,bucket:y.bucket,enableAnonymousFeedback:(R=y.enableAnonymousFeedback)!=null?R:!0,allowNonLoggedInFeedback:!0};z={feedbackChoice:b.feedbackChoice};if(!_.x("web_collect_offline_state")){m.jumpTo(8);break}_.Yi(m,9);return m.yield(Slx(z),11)}F={bucket:(E=y)==null?void 0:E.bucket};if(!_.x("web_collect_offline_state")){m.jumpTo(4);break}F.customProductData=
{};_.Yi(m,5);return m.yield(Slx(F.customProductData),7);case 7:_.Ea(m,4);break;case 5:_.K7(m);case 4:Ioc(F);m.jumpTo(0);break;case 11:_.Ea(m,8);break;case 9:_.K7(m);case 8:_.OsZ(z),_.QvZ("GFEEDBACK",z),y.productId==="5295751"&&(z.client_attestation=Number(_.M7("CATSTAT",0))),y.productId==="5295751"&&(z.client_time=Date.now()/1E3/3600),y.productId==="5295751"&&(z.original_playback_id=_.oOT||""),_.VRF(c,z),_.hj(m)}})};
WwW=function(q){if(q=_.v(q,_.OXD)){var N={bucket:q.bucketIdentifier};q.additionalDatas&&(N.customProductData={},q.additionalDatas.forEach(function(b){if(b=b.userFeedbackEndpointProductSpecificValueData)N.customProductData[b.key]=b.value}));
Ioc(N)}};
Lwd=function(q){var N=_.JD.getInstance();var b=_.FE("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var y=_.FE("DELETE",void 0,"Delete"),J=_.FE("CANCEL",void 0,"Cancel");b=q_a(b,void 0,y,J,{signal:"DELETE_ALL_DOWNLOADS"});_.sU(N,[{openPopupAction:b}],q)};
Puf=function(){return _.d(function(q){return q.nextAddress==1?q.yield(_.tz().resolve(_.FN),2):q.yield(pEf(),0)})};
MEf=function(q){var N,b;return _.d(function(y){return y.nextAddress==1?(b=(N=_.v(q,_.qr))==null?void 0:N.targetId)?y.yield(_.tz().resolve(_.FN),3):y.jumpTo(0):y.yield(_.tz().resolve(_.Z8).deleteVideo(b),0)})};
AxX=function(q){var N,b;return _.d(function(y){return y.nextAddress==1?(b=(N=_.v(q,_.qr))==null?void 0:N.targetId)?y.yield(_.tz().resolve(_.FN),3):y.jumpTo(0):y.yield(o_A(_.tz().resolve(_.Z8),b),0)})};
B1a=function(q){var N,b;return _.d(function(y){return(b=(N=_.v(q,_.qr))==null?void 0:N.targetId)?y.yield(eLA(b),0):y.jumpTo(0)})};
q1X=function(){_.x("kevlar_woffle_refresh_dl_load_killswitch")||HGU()};
bJC=function(){_.x("kevlar_woffle")&&_.k8.instance&&Nbc()};
Jlf=function(q){var N;if((N=_.v(q,_.F3))==null||!N.videoId)return!1;yla(_.tz().resolve(_.Z8),_.v(q,_.F3),q.clickTrackingParams);return!0};
gCa=function(q){var N;if((N=_.v(q,_.RD))==null||!N.playlistId)return!1;ECB(_.tz().resolve(_.Z8),_.v(q,_.RD),q.clickTrackingParams);return!0};
F4c=function(q){var N=_.v(q,_.S6j);(N==null?void 0:N.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(N==null?void 0:N.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||ZJN(_.tz().resolve(_.Z8),_.v(q,_.S6j))};
dHC=function(q){q=_.v(q,_.V94);var N;(q==null?0:(N=q.actions)==null?0:N.length)&&RFx(q)};
zFa=function(q){var N,b;return _.d(function(y){N=_.v(q,clC);return(b=N)!=null&&b.localWatchHistoryCommandType?y.yield(uPp(N),0):y.return()})};
tkW=function(){return _.d(function(q){return _.x("kevlar_enable_download_to_mobile")?q.yield($HU(),0):q.return()})};
mHW=function(q){setTimeout(function(){requestAnimationFrame(q)},80)};
rla=function(q){return Object.entries(q).map(function(N){return N.join(":")}).join(";")};
Vkf=function(q){var N,b,y;_.d(function(J){if(J.nextAddress==1)return J.yield(X2p(),2);N=J.yieldResult;b=_.bq.instance;switch(N){case "granted":y=q.getLocationCommand;break;case "denied":y=q.openDeniedDialogAction;break;case "prompt":y=q.openCollectionDialogAction;break;default:y=q.openCollectionDialogAction}y&&b.resolveCommand(y);_.hj(J)})};
X2p=function(){var q,N;return _.d(function(b){if(b.nextAddress==1)return q="prompt",navigator.permissions?b.yield(navigator.permissions.query({name:"geolocation"}),3):b.jumpTo(2);b.nextAddress!=2&&(N=b.yieldResult,q=N.state);return b.return(q)})};
xHx=function(){_.d(function(q){return q.yield(_.jXf(),0)})};
vCK=function(){var q,N,b;return _.d(function(y){if(y.nextAddress==1)return q=_.tz().resolve(_.tN),q?y.yield(_.IE(q,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.M6(Error("Zl")),y.return(void 0));if(N=y.yieldResult){if(N.errorMetadata)return _.M6(Error("$l`"+N.errorMetadata.status+"`"+N.error)),y.return(void 0);b=N.datasyncIds;_.qpf=b.length;return y.return(b)}_.M6(Error("am"));return y.return(void 0)})};
G8A=function(){vCK().then(function(q){q&&(rnf(q),fUc(q),gPB(q),L8a(q))})};
Y1X=function(q){_.pY.addLowPriorityJob(function(){var N,b,y,J,E;return _.d(function(F){switch(F.nextAddress){case 1:if(_.x("ytidb_clear_optimizations_killswitch")){F.jumpTo(2);break}N=_.f4("clear");if(N.startsWith("V")&&N.endsWith("||")){var R=[N];rnf(R);fUc(R);gPB(R);L8a(R);return F.return()}b=Z6C();y=pkA();return F.yield(CRa(),3);case 3:return J=F.yieldResult,F.yield(X$a(),4);case 4:if(E=F.yieldResult,!(b||y||J||E))return F.return();case 2:q.isNetworkAvailable()?G8A():q.listenOnce("publicytnetworkstatus-online",
G8A),_.hj(F)}})})};
ui=function(q){q={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.nD(q)}}}};_.bq.instance&&_.bq.instance.resolveCommand(q)};
QXK=function(q){if(q){var N=_.FR();_.DO(N,3854,void 0,{layer:0,parentLayer:4});switch(q){case 1:var b=238708;break;case 2:b=238715;break;case 3:b=238710;break;case 6:b=238709}b&&(q=_.Zd(N,{veType:b}))&&_.UM(N,q)}};
OJa=function(q){if(q){var N=_.FR();_.DO(N,3854,void 0,{layer:0,parentLayer:4});switch(q){case 1:var b=238714;break;case 2:b=238711;break;case 8:b=238709;break;case 7:b=238713;break;case 3:case 4:case 5:b=238712}b&&(q=_.Zd(N,{veType:b}))&&_.UM(N,q)}};
w2a=function(q){switch(q.latencyType){case 0:_.Yo("consent_primitive_flow");_.Q6("cpit",q.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Q6("cpist",q.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Q6("cprtif",q.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Q6("cprtli",q.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Q6("cprt",q.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Q6("cpdt",q.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.Q6("cpjct",q.timestampEpochMillis,"consent_primitive_flow")}};
sXf=function(q,N){var b,y,J,E,F,R,c,z,m,r,X,V,G,w,D,k,f,L,S,W;return _.d(function(M){switch(M.nextAddress){case 1:_.Yi(M,2);(y=(b=_.v(q,iJf))==null?void 0:b.serializedConsentRequest)||(y=(J=_.v(q,l6f))==null?void 0:J.serializedConsentRequest);y&&(E=K4a(_.HA(y)));if(E===void 0)return M.return();F=DHU(E);F.latencyCallback=w2a;N&&hFC(F,function(){N.then(function(qe){qe.pauseVideo();(new k8N).increment()})});
return((R=_.v(q,iJf))==null?void 0:R.consentAction)==="CONSENT_ACTION_PREWARM"||((c=_.v(q,l6f))==null?void 0:c.consentAction)==="CONSENT_ACTION_PREWARM"?M.yield(UHx(F),5):M.yield(f6A(F),6);case 6:z=M.yieldResult;m=_.$s(z,zG);if(m===1){if(((r=_.QW(z,CUa,1,zG))==null?void 0:_.vc(r,1))===1||((X=_.QW(z,CUa,1,zG))==null?void 0:_.vc(X,1))===2||((V=_.QW(z,CUa,1,zG))==null?void 0:_.vc(V,1))===3)_.v(q,l6f)?ui(_.FE("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
ui(_.FE("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));QXK((G=_.QW(z,CUa,1,zG))==null?void 0:_.vc(G,1),_.zP(z,I6d,3,_.$N()))}else m===2?(((w=TbN(z))==null?void 0:_.vc(w,1))===5?_.v(q,l6f)?ui(_.FE("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):ui(_.FE("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((D=TbN(z))==null?void 0:_.vc(D,1))===1||((k=TbN(z))==null?void 0:_.vc(k,1))===4?
ui(_.FE("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((f=TbN(z))==null?void 0:_.vc(f,1))===7&&((L=E)==null?void 0:(S=_.Vr(L,$X,4))==null?void 0:_.vc(S,4))!==1&&ui(_.FE("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),OJa((W=TbN(z))==null?void 0:_.vc(W,1))):ui(_.FE("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));M.jumpTo(5);break;case 5:_.Ea(M,0);break;case 2:_.K7(M),ui(_.FE("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.hj(M)}})};
a6f=function(){if(!nCf.has("Worker")){nCf.set("Worker",!0);var q={api:"BROWSER_API_WEB_WORKER"};q.available="Worker"in window?!0:!1;_.W_("apiTest",q)}};
S1x=function(q){return typeof q==="undefined"?"-1":String(Math.ceil(q/1048576))};
PUa=function(q,N){W4X(new L4d(_.v(N,p2C).addToken,_.v(N,p2C).commonToken)).then(function(){_.e2(q,"yt-invoke-instrument-manager-action-completed")},function(b){_.e2(q,"yt-invoke-instrument-manager-action-error",b)})};
tR=function(){return _.M7("HTML_DIR")==="rtl"};
Mkx=function(){var q,N;return(N=(q=window).matchMedia)==null?void 0:N.call(q,"(prefers-reduced-motion: reduce)").matches};
oCa=function(q){var N=_.tz().resolve(_.$f(_.p8));if(N&&N.isAnyTransitionEnabled){var b={};N.viewTransitionCoordinator.registerElement(q,(b.slide="miniplayer-page-transition",b["lockup-to-watch"]="miniplayer-page-transition",b["learning-journey"]="miniplayer-page-transition",b))}};
Ald=function(q,N,b){return{horizontalAlignment:q.x+b.width/2<N.width/2?"west":"east",verticalAlignment:q.y+b.height/2<N.height/2?"north":"south"}};
BbA=function(q,N,b,y,J){J=J===void 0?new _.Sc(0,0):J;q=eFX(q,N,b,y,!1);return new _.Sc(q.x+J.x,q.y+J.y)};
eFX=function(q,N,b,y,J){J=(J===void 0?0:J)?400:0;return new _.Sc(q==="west"?16+(tR()?J:0):b.width-y.width-16-(tR()?0:J),N==="north"?16:b.height-y.height-16)};
HJd=function(q,N){var b=0;q&&(b+=76);N&&(b+=285);return b};
qIf=function(q){return _.KL(q)};
NHf=function(q){var N=1;q=q.split(":");for(var b=[];N>0&&q.length;)b.push(q.shift()),N--;q.length&&b.push(q.join(":"));return b};
bpx=function(q){var N=new _.uU;return _.On(N,11,q)};
y5U=function(q){var N={};q=q.getAllResponseHeaders().split("\r\n");for(var b=0;b<q.length;b++)if(!_.dA(q[b])){var y=NHf(q[b]),J=y[0];y=y[1];if(typeof y==="string"){y=y.trim();var E=N[J]||[];N[J]=E;E.push(y)}}return _.nM.map(N,function(F){return F.join(", ")})};
hQ=function(q,N){return q.JSC$9877_xhr_?q.JSC$9877_xhr_.getResponseHeader(N):null};
J5c=function(q,N){if(q.isDisposed())throw Error("Ea");q.f7.hk("n");var b=_.IX(q.f7,function(){return q.uXE([N.hm,N.uWx,N.m6V,N.vlO])},"n");
q.f7.yGP(b.length);q.f7.um();return b};
EQx=function(q,N,b){Array.isArray(b)||(b=[String(b)]);_.G6E(q.JSC$10113_queryData_,N,b);return q};
Nbc=function(){var q=_.k8.instance;_.d(function(N){return q.deferredInstallPrompt?N.yield(q.deferredInstallPrompt.prompt(),0):N.jumpTo(0)})};
gQf=function(q,N,b){if(_.pC(q))_.Jz(q,N,b);else for(q=_.krR(q);;){var y=q.next();if(y.done)break;N.call(b,y.value,void 0,q)}};
ZpU=function(q,N){var b=[];gQf(N,function(y){try{var J=_.Gj.prototype.getWrapper.call(this,y,!0)}catch(E){if(E=="Storage: Invalid value was encountered")return;throw E;}J===void 0?b.push(y):_.h2M(J)&&b.push(y)},q);
return b};
PqA=function(q,N){ZpU(q,N).forEach(function(b){_.Gj.prototype.remove.call(this,b)},q)};
FXa=function(q){var N=_.yG;N._minimumZ=Math.max(N._minimumZ,q)};
REa=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];djp=function(q,N){_.RA(q.vm);q.vm=N};
c5d=function(q,N,b,y){q.setState(5);var J=!!q.nOX&&REa.includes(_.dO(q.nOX)||"");try{var E=new _.T8({program:N,globalName:b,bKo:{disable:!_.x("att_web_record_metrics")||!_.x("att_skip_metrics_for_cookieless_domains_ks")&&J,eU:"aGIf"}});E.uHX.then(function(){q.setState(6);y&&y(N)});
djp(q,E)}catch(F){q.setState(7),F instanceof Error&&_.M6(F)}};
ugx=function(q,N,b,y,J,E){var F=F===void 0?"trayride":F;b?(q.setState(2),_.kU(_.sN(b),function(){if(window[F])c5d(q,y,F,J);else{q.setState(3);var R=_.IYZ(b),c=document.getElementById(R);c&&(_.Y_A(R),c.parentNode.removeChild(c));_.M6(new _.IO("BL:ULB",b))}},E)):N?(E=_.iC("SCRIPT"),N instanceof _.E5?_.Fw(E,N):E.textContent=N,E.nonce=_.Jj(document),document.head.appendChild(E),document.head.removeChild(E),window[F]?c5d(q,y,F,J):(q.setState(4),_.M6(new _.IO("BL:ULBJ")))):_.M6(new _.IO("BL:ULV"))};
zEc=function(){this.state=1;this.vm=null;this.nOX=void 0};
_.g=zEc.prototype;_.g.initialize=function(q,N,b,y){this.nOX=y;if(q.program){var J;y=(J=q.interpreterUrl)!=null?J:null;if(q.interpreterSafeScript)J=_.pPh(q.interpreterSafeScript);else{var E;J=(E=q.interpreterScript)!=null?E:null}q.interpreterSafeUrl&&(y=_.Pv(q.interpreterSafeUrl).toString());ugx(this,J,y,q.program,N,b)}else _.M6(Error("sf"))};
_.g.isInitialized=function(){return!!this.vm};
_.g.getState=function(){return this.state};
_.g.isLoading=function(){return this.state===2};
_.g.invoke=function(q){q=q===void 0?{}:q;var N;this.vm?N=J5c(this.vm,{hm:q}):N=null;return N};
_.g.dispose=function(){djp(this,null);this.setState(8)};
_.g.setState=function(q){this.state=q};
var $jd=function(q,N){return q.vm.snapshot(N)},tTf=function(q,N){var b=_.VX("botguard_async_snapshot_timeout_ms",3E3);
N=N===void 0?{}:N;b=b===void 0?3E3:b;return q.vm?new Promise(function(y,J){var E=!1,F=_.pY.addJob(function(){E=!0;J(Error("tf"))},1,b);
q.vm?$jd(q,{hm:N}).then(function(R){_.pY.cancelJob(F);E||y(R)}).catch(function(R){_.pY.cancelJob(F);
E||J(R)}):(_.pY.cancelJob(F),y(null))}):Promise.resolve(null)},mjU=["att/log"],bGf;
bGf={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var r5B={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},XwX=function(q,N){return _.d3(q,{mode:"readwrite",enableRetries:!0},function(b){return _.xAZ(b,N,"settingEntity")})},VTf=function(q,N,b){return _.d3(q,{mode:"readonly",
enableRetries:!0},function(y){return _.lfE(y,N,b)})},jSd=function(q){if(!q.storage)return!1;
a:{if(q.storage){try{var N=q.storage.get("TLPQtimestamp")}catch(b){}q=Number(N);if(!isNaN(q))break a}q=void 0}return q?Date.now()-q<864E5:!1},xjC=function(q){if(q.storage){try{var N=q.storage.get("TLPQindex")}catch(b){}q=Number(N);
if(!isNaN(q))return q}},vQf=function(q,N){q.queueProxy&&N.forEach(function(b){if(b.videoId&&b.trackingParams&&q.queueProxy instanceof _.ES){var y=_.Oe();
q.queueProxy.attributionData.set(b.videoId,{enqueueingVe:_.zT(b.trackingParams).getAsJson(),enqueueingCsn:y?y:void 0,clientEnqueueingTimeMs:Math.floor((0,_.mA)()).toString()})}})},G5A=function(q){var N=_.zOx(q);
N!=q.currentSnapState_&&(q.currentSnapState_=N,q.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},mF=function(q){this.JSC$13299_networkManager_=q;
this.partCallbacks_=[]};
mF.prototype.getCacheKeyForEndpoint=function(q){return _.RYJ(q,!1)};
mF.prototype.onPartsCallback_=function(q){this.partCallbacks_.forEach(function(N){q&&N(q)})};
var rY=function(q,N,b){mF.call(this,q);this.player_=N;this.autoplayData_=b};
_.Y(rY,mF);rY.prototype.getCacheKeyForEndpoint=function(q){return _.RYJ(q,!!this.autoplayData_)};
rY.prototype.getTempData=function(q,N){N=N.timeBeforeNextVideo;q={itct:q.clickTrackingParams,lact:_.tr(),pbis:N,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(q.autonav=1);return q};
rY.prototype.getXhrParams=function(q){return Object.assign({pbj:"prefetch"},q)};
rY.prototype.getParams=function(q){q={frags:q.fragmentsRequested.join(",")};_.x("kevlar_droppable_prefetchable_requests")&&(q.prefetch=1);return q};
var YIW=function(q){q.playerEvents_.forEach(function(N){q.player.removeEventListener(N.eventName,N.callback)});
q.playerEvents_.length=0},QSB=function(q,N,b){this.player=q;
this.JSC$13309_taskManager=N;this.prefetchDelay=b;this.completionResolver_=null;this.playerEvents_=[]};
QSB.prototype.start=function(){var q=this;this.completionResolver_=_.T4();_.KJ(this.completionResolver_.promise,function(){YIW(q);q.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var OpN=function(q,N,b){q.player.addEventListener(N,b);q.playerEvents_.push({eventName:N,callback:b})},wwK={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},ipp={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},lNB=function(q,N,b){QSB.call(this,q,N,b);this.cueId_="playbackTrigger-"+Math.random()};
_.Y(lNB,QSB);
lNB.prototype.prepareTrigger=function(q){var N=this,b=this.player.getDuration(),y=this.player.getVideoData(),J=y.isLive&&y.hasProgressBarBoundaries;if(J&&y.progressBarEndPositionUtcTimeMillis){var E=y.progressBarEndPositionUtcTimeMillis/1E3;isNaN(E)||(b=E)}var F=0;this.prefetchDelay>=0?J?y.progressBarStartPositionUtcTimeMillis&&(y=y.progressBarStartPositionUtcTimeMillis/1E3,isNaN(y)||(F=y+this.prefetchDelay)):F=this.prefetchDelay:F=b+this.prefetchDelay;J?this.player.addUtcCueRange(this.cueId_,F,b):
this.player.addCueRange(this.cueId_,F,b);_.KJ(q.promise,function(){N.player.removeCueRange(N.cueId_)});
OpN(this,"onCueRangeEnter",function(R){R==N.cueId_&&q.resolve(b-F)})};
var KXd=function(q,N){q.fragmentConfiguration_[N].requiredKeys.every(function(b){return!!q.prefetchedData_[b]})&&(q.validatedFragments_.push(N),N=q.missingFragments_.indexOf(N),N!==-1&&q.missingFragments_.splice(N,1))},Dja=function(q){q.prefetchedFragments_.forEach(function(N){KXd(q,N)})},hEK=function(q,N,b){this.pageFragments_=q;
this.prefetchedFragments_=N;this.fragmentConfiguration_=ipp;this.prefetchedData_=b;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;Dja(this)},k5d=function(){},Ujf=function(q){this.JSC$13323_playlistManager_=q};
_.Y(Ujf,k5d);Ujf.prototype.getPrefetchEndpoint=function(){return this.JSC$13323_playlistManager_.getAutoplayEndpoint()};
var fNa=function(q){this.autonavEndpoints_=q};
_.Y(fNa,k5d);fNa.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var ClW=function(q,N,b,y,J){this.autonavEndpoints=q;this.foregroundTrigger=N;this.backgroundTrigger=b;this.pageType=y;this.isInPlaylist=J},INK=function(q,N){if(q.webPrefetchData&&q.webPrefetchData.navigationEndpoints&&q.webPrefetchData.navigationEndpoints.length){q=q.webPrefetchData.navigationEndpoints;
var b=_.v(q[0],_.nx);if(b.watchEndpointSupportedPrefetchConfig&&b.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var y=b.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;b=y.playbackRelativeSecondsPrefetchCondition;b=typeof b==="number"&&Math.abs(b)<N.videoDuration?b:void 0;y=y.countdownUiRelativeSecondsPrefetchCondition;y=typeof y!=="number"||_.x("prefetch_job_config_cleanup_ks")&&N.inPlaylist?void 0:y;if(typeof y==="number")return new ClW(q,N.makeUpNextTrigger(y),N.makePlaybackTrigger(y),
"watch",N.inPlaylist);if(typeof b==="number")return new ClW(q,N.makePlaybackTrigger(b),null,"watch",N.inPlaylist)}}},THW=function(q){return q.prefetchJobConfig_.backgroundTrigger?_.qg(_.UMJ)()==0?q.prefetchJobConfig_.backgroundTrigger:q.prefetchJobConfig_.foregroundTrigger:q.prefetchJobConfig_.foregroundTrigger},sSf=function(q){_.QL(document,"visibilitychange",q.onVisibilityChange_,!1,q)},XI=function(q){mF.call(this,q)};
_.Y(XI,mF);XI.prototype.getCacheKeyForEndpoint=function(q){return mF.prototype.getCacheKeyForEndpoint.call(this,q)};
XI.prototype.getTempData=function(){return{}};
XI.prototype.getXhrParams=function(q){return q};
XI.prototype.getParams=function(){return{}};
var nQf=function(q,N,b){var y=q.prefetchDelay*1E3;if(Math.abs(y)>N)b.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var J=y,E=N-y;y<0&&(J=N+y,E=Math.abs(y));var F=q.JSC$13309_taskManager.addJob(function(){b.resolve(E/1E3)},10,J);
b.promise.thenCatch(function(){q.JSC$13309_taskManager.cancelJob(F)})}},aNd=function(q,N,b){QSB.call(this,q,N,b)};
_.Y(aNd,QSB);aNd.prototype.prepareTrigger=function(q){var N=this;OpN(this,"onAutonavCoundownStarted",function(b){nQf(N,b,q)})};
var SId=function(q){q.pendingPrefetchJob_&&(q.pendingPrefetchJob_.cancel(),q.pendingPrefetchJob_=null)},WXA=function(q,N,b){if(!q.triggeredTargets.has(N)){var y=_.hO1(q,N);
y.action=b;_.K2j(q,N,y)}},LXp=function(q){_.vb4();
_.MDh("cpt")&&_.M6(Error("lh"));_.JZ.requestAnimationFrame(function(){_.JZ.setTimeout(function(){_.Q6("cpt");var N=_.iG("vpl"),b=_.iG("cpt");N&&b&&_.Q6("ol",Math.max(N,b))})});
try{_.Q6("fr_s"),q()}catch(N){_.po(N)}_.JZ.requestAnimationFrame(function(){_.Q6("bcp")})},pwf=function(q,N){q.serviceEndpointHandlers.push(N)},Plc=function(q,N){N=q.pendingPages_.indexOf(N);
N>-1&&q.pendingPages_.splice(N,1)},MTB=function(q,N){var b=_.AMT.indexOf(N);
b>-1&&_.AMT.splice(b,1);q.targetPage_==N?(q.abort(),_.Br1(q)):Plc(q,N)},oQa=function(q,N,b,y){N={challenge:N};
b&&(N.webResponse=b);return _.ZG(q.innertubeTransportService,N,_.LD(mjU),y)},A5B=function(q,N,b){if(!N.challenge)throw Error("qi");
if(N.botguardData&&N.botguardData.program){var y=new zEc;y.initialize(N.botguardData,function(){tTf(y,{atr_challenge:N.challenge}).then(function(J){if(!J)throw Error("ri");return oQa(q,N.challenge,J,b)}).catch(function(J){_.M6(J);
return oQa(q,N.challenge,void 0,b)})},void 0)}else oQa(q,N.challenge,void 0,b)},eEN=function(q,N,b){var y={};
N.ids&&(y.ids=[].concat(_.a9(N.ids)));N.engagementType&&(y.engagementType=N.engagementType);return _.ZG(q.innertubeTransportService,y,_.LD(_.P1T),b).then(function(J){if(!J)throw new _.IO("GetAttestationChallenge returned falsy");A5B(q,J,b)}).thenCatch(function(J){_.po(J)})},BHA=function(q,N,b){return new _.wL(function(y,J){var E;
return _.d(function(F){if(F.nextAddress==1){var R=F.yield,c=N.engagementType,z=N.ids,m={};z=_.Z(z!=null?z:[]);for(var r=z.next();!r.done;r=z.next())r=r.value,r.encryptedVideoId?m.encryptedVideoId=r.encryptedVideoId:r.externalChannelId?m.externalChannelId=r.externalChannelId:r.commentId?m.commentId=r.commentId:r.externalOwnerId?m.externalOwnerId=r.externalOwnerId:r.artistId?m.artistId=r.artistId:r.playlistId?m.playlistId=r.playlistId:r.externalPostId?m.externalPostId=r.externalPostId:r.shareId&&(m.shareId=
r.shareId);return R.call(F,Hkf(c,m),2)}E=F.yieldResult;if(!E.challenge)return _.M6(Error("si")),eEN(q,N,b).then(y,J),F.return();R=E;c={challenge:R.challenge};c.webResponse=R.webResponse;c.engagementType=N.engagementType;c.ids=N.ids;_.ZG(q.innertubeTransportService,c,_.LD(mjU),b).then(y,J);_.hj(F)})})},Q6K=function(q,N){var b,y,J,E;
_.d(function(F){if(F.nextAddress==1){b=_.v(N,_.ocj);if(!(b&&b.listId&&q.response&&q.response.playingVideoId)||q.listId!==b.listId)return F.return();q.index===void 0&&(q.index=0);return F.yield(_.twJ(q.JSC$13162_playlistNetworkManager,b.listId,q.index,q.response.playingVideoId),2)}y=F.yieldResult;if(!y)return F.return();J=y.playlistId;E=y.playlistPanelRenderer;q.setPlaylistData(J,E,y.autoplayRenderer);_.hj(F)})},Hpa=function(q,N,b){var y=q.getParams(b),J=_.NjC(N,y),E=q.getTempData(N,b);
E.endpoint=JSON.stringify(N);_.x("enable_unknown_lact_fix_on_html5")&&(_.tz().resolve(_.$P),E.lact=_.tr());var F={headers:{"X-YouTube-STS":_.M7("STS"),"x-youtube-csoc":1}};_.Lx(J,E);return new _.wL(function(R,c){var z=q.getXhrParams(y),m;_.x("kevlar_cache_on_ttl_player")&&(m=_.tz().resolve(_.rh));m&&_.ENB(m,N)?_.cWC(m,N,E,window.location.href).then(function(r){r?R(r):c()},c):_.puF(q.JSC$13299_networkManager_,N,z,q.onPartsCallback_.bind(q),F).then(function(r){r?R(r):c()},c)})},qUB=function(q,N){q.triggerPromise_=
N.start();
q.triggerPromise_.then(function(b){var y=q.prefetchEndpointProvider_.getPrefetchEndpoint();if(y){var J=wwK[q.prefetchJobConfig_.pageType].prefetchedFragments;q.prefetchRequestPromise_=Hpa(q.JSC$13335_networkPrefetchRequest_,y,{fragmentsRequested:J,timeBeforeNextVideo:b});q.prefetchResponseCacheKey_=q.JSC$13335_networkPrefetchRequest_.getCacheKeyForEndpoint(y);sSf(q);q.prefetchRequestPromise_.then(function(E){q.storePrefetchedDataCallback_(q.prefetchResponseCacheKey_,E);if(_.x("web_prefetch_preload_video")&&
J.length===1&&J[0]==="pl"&&E&&!E.playerAds&&!E.adPlacements){var F=_.v(y,_.uI),R=F!=null,c={raw_player_response:E,watch_endpoint:F};(E=_.tz().resolve(R?_.eoq:_.Bk))&&y&&E.then(function(z){R&&_.x("web_queue_preload_video")?(c.prefer_gapless=!0,z.queueNextVideo(c)):z.preloadVideoByPlayerVars(c)})}})}})},VA=function(q,N,b,y){this.prefetchEndpointProvider_=q;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=N;this.prefetchJobConfig_=b;this.JSC$13335_networkPrefetchRequest_=y;this.prefetchResponseCacheKey_=null};
VA.prototype.enqueue=function(){this.triggerPromise_||(qUB(this,THW(this)),_.tn(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
VA.prototype.resolve=function(){this.cancel()};
VA.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.");sSf(this)};
VA.prototype.onVisibilityChange_=function(){var q=this;_.qg(_.UMJ)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){q.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||qUB(this,THW(this))};
var NPa=function(q,N,b,y,J){N&&(N==null?0:N.videoId)&&b&&b.entries&&_.x("kevlar_enable_shorts_prefetch_in_sequence")&&(SId(q),N=b.entries.map(function(E){var F;return(F=_.v(E.command,_.uI))==null?void 0:F.videoId}).indexOf(N.videoId),b=b.entries[N+1],b!=null&&b.command&&!_.v(b==null?void 0:b.command,_.Nz)&&(y=new ClW([b.command],new lNB(y,_.pY,1),null,"shorts",!1),q.pendingPrefetchJob_=new VA(new fNa(y.autonavEndpoints),function(){return!1},y,new XI(J)),q.pendingPrefetchJob_.enqueue()))},bvC=function(q,
N,b,y,J,E){var F=_.x3.getInstance();
if(!_.x("block_all_player_prefetch_requests")){SId(q);var R=!!b.getPlaylistId(),c=b.getVideoData().isLive&&b.getVideoData().hasProgressBarBoundaries;if((F.getState()==2||R||c)&&(!b.getVideoData().isLive||c)){F={inPlaylist:R,videoDuration:b.getDuration(),makeUpNextTrigger:function(m){return new aNd(b,_.pY,m)},
makePlaybackTrigger:function(m){return new lNB(b,_.pY,m)}};
var z=INK(N,F);z&&(q.pendingPrefetchJob_=new VA(z.isInPlaylist?new Ujf(J):new fNa(z.autonavEndpoints),function(m,r){r=new hEK(wwK[z.pageType].pageFragments,wwK[z.pageType].prefetchedFragments,r);return _.xk1(r)?(q.prefetchCache_.set(m,r),!0):!1},z,new rY(y,b,E,J)),q.pendingPrefetchJob_.enqueue())}}},ywK=function(){var q=_.zV();
q.signals.parkOrScheduleJob(function(){var N=q.storage;if(N.storage)if(jSd(N)){var b=N.getPlaylistId();N=xjC(N);b=!!b&&N!==void 0}else N.clear(),b=!1;else b=!1;if(b){b=q.JSC$13162_pageManager.isOnWatch();a:{var y=q.storage;if(y.storage&&jSd(y)&&(N=y.getPlaylistId(),y=xjC(y),N&&y!==void 0)){b={recoverPlaylistCommand:{listId:N,index:y,openMiniplayer:!b,openListPanel:b,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}b=void 0}b&&_.sU(q.JSC$13162_actionRouter,[b],null)}},0,"ma")},JwN=function(q,N,b,
y,J,E){var F=_.bx(7111);
_.hI(q.JSC$18676_screenManager,F,E?_.zT(E):void 0);_.UM(q.JSC$18676_screenManager,F,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:y,offlineId:N,offlineabilityFormatType:b,isDefaultFormatType:J==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:J}})},E2X=function(q,N,b,y,J){var E,F,R,c,z;
return _.d(function(m){if(m.nextAddress==1)return m.yield(q.JSC$18676_playerApiPromise,2);E=m.yieldResult;JwN(q,N,b,"OFFLINE_OBJECT_TYPE_PLAYLIST",y,J);if(R=_.CpJ[q.entityTypeMap.listEntityType])z={},F=(z[R]={maximumDownloadQuality:(c=b)!=null?c:void 0},z);return m.yield(E.queueOfflineAction(N,q.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",F),0)})},g2C=function(q,N){var b,y,J,E;
return _.d(function(F){if(F.nextAddress==1)return F.yield(q.JSC$18676_persistentStorePromiseAccessor(),2);if(F.nextAddress!=3){b=F.yieldResult;if(!b)return _.M6(new _.IO("PES is undefined")),F.return();y=_.yU(N,"downloadStatusEntity");return F.yield(VTf(b,y,"downloadStatusEntity"),3)}J=F.yieldResult;return F.return((E=J)==null?void 0:E.downloadState)})},ZvA=function(q,N,b,y,J){var E,F,R,c,z,m;
return _.d(function(r){switch(r.nextAddress){case 1:return r.yield(q.JSC$18676_playerApiPromise,2);case 2:E=r.yieldResult;JwN(q,N,b,"OFFLINE_OBJECT_TYPE_VIDEO",y,J);if(R=_.CpJ[q.entityTypeMap.singleEntityType])z={},F=(z[R]={maximumDownloadQuality:(c=b)!=null?c:void 0},z);return r.yield(g2C(q,N),3);case 3:m=r.yieldResult;if(m!=="DOWNLOAD_STATE_USER_DELETED"){r.jumpTo(4);break}return r.yield(q.deleteVideo(N),4);case 4:return r.yield(E.queueOfflineAction(N,q.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
F),0)}})},Fzp=function(q,N,b,y,J){return _.d(function(E){return E.nextAddress==1?E.yield(q.deleteVideo(N,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):E.yield(ZvA(q,N,b,y,J),0)})},RgX=function(q,N,b){var y,J;
return _.d(function(E){if(E.nextAddress==1)return E.yield(q.JSC$18676_playerApiPromise,2);y=E.yieldResult;J=_.yU(N,"mainVideoDownloadStateEntity");return E.yield(y.updateDownloadState(J,b),0)})},eLA=function(q){var N=_.tz().resolve(_.Z8);
return _.d(function(b){if(b.nextAddress==1)return N.previousDownloadStateForVideo[q]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&N.previousDownloadStateForVideo[q]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?b.jumpTo(2):b.yield(N.resumeVideoDownload(q),2);if(b.nextAddress!=4)return b.yield(RgX(N,q,N.previousDownloadStateForVideo[q]),4);delete N.previousDownloadStateForVideo[q];_.hj(b)})},o_A=function(q,N){var b;
return _.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$18676_playerApiPromise,2);b=y.yieldResult;return y.yield(b.queueOfflineAction(N,q.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},pEf=function(){var q=_.tz().resolve(_.Z8),N,b;
return _.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$18676_playerApiPromise,2);if(y.nextAddress!=3)return N=y.yieldResult,b={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},y.yield(N.queueOfflineAction("!*$_ALL_ENTITIES_!*$",q.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",b),3);var J=q.JSC$18676_commandHandler,E=J.resolveCommand,F=_.FE("DELETING_ALL",void 0,"Downloads are being deleted");E.call(J,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.o5(F)}},
popupType:"TOAST"}});_.hj(y)})},dtW=function(q,N){var b,y,J,E,F,R;
return _.d(function(c){if(c.nextAddress==1)return c.yield(q.JSC$18676_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3)return b=c.yieldResult,b?c.yield(VTf(b,_.VU,"downloadsPageViewConfigurationEntity"),3):(_.M6(new _.IO("PES is undefined")),c.return());J=(y=c.yieldResult)!=null?y:{};R=(F=(E=J)==null?void 0:E.downloadsUpsellBannerVisibility)!=null?F:{};return R.visibleWithConnection?c.yield(N.refreshAllStaleEntities(0),0):c.jumpTo(0)})},cwd=function(q){var N,b;
return _.d(function(y){if(y.nextAddress==1)return y.yield(q.JSC$18676_prefStorage,2);N=y.yieldResult;return y.return((b=N)==null?void 0:b.get("sdois"))})},umU=function(q){var N,b,y,J,E,F;
return _.d(function(R){if(R.nextAddress==1)return R.yield(q.JSC$18676_persistentStorePromiseAccessor(),2);if(R.nextAddress!=3){N=R.yieldResult;if(!N)return _.M6(new _.IO("PES is undefined")),R.return();b=_.yU("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return R.yield(VTf(N,b,"settingEntity"),3)}y=R.yieldResult;return R.return((F=(J=y)==null?void 0:(E=J.settingOptionValue)==null?void 0:E.boolValue)!=null?F:!1)})},zga=function(q,N){var b,y,J,E;
return _.d(function(F){switch(F.nextAddress){case 1:return((b=N)==null?void 0:b.formatType)===void 0?F.return():F.yield(q.JSC$18676_prefStorage,2);case 2:y=F.yieldResult;if(y===void 0)return F.return();if(((J=N)==null?void 0:J.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return F.yield(y.set("lmqf",N.formatType),8);if(((E=N)==null?void 0:E.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){F.jumpTo(0);break}return F.yield(y.set("lmqf",N.formatType),6);case 6:return F.yield(y.set("lmqflst",
Math.floor((0,_.mA)())),0);case 8:return F.yield(y.remove("lmqflst"),0)}})},$tx=function(q){var N,b;
return _.d(function(y){switch(y.nextAddress){case 1:return y.yield(q.JSC$18676_prefStorage,2);case 2:N=y.yieldResult;if(!N){y.jumpTo(3);break}return y.yield(N.get("lmqflst"),4);case 4:if(b=y.yieldResult,b!==void 0)return y.return(b);case 3:return y.return(0)}})},tRc=function(q){var N,b,y;
return _.d(function(J){return J.nextAddress==1?J.yield(q.JSC$18676_prefStorage,2):J.nextAddress!=3?(N=J.yieldResult,J.yield((b=N)==null?void 0:b.get("ldtmes"),3)):J.return((y=J.yieldResult)!=null?y:!1)})},$HU=function(){var q=_.tz().resolve(_.Z8),N;
return _.d(function(b){if(b.nextAddress==1)return b.yield(q.JSC$18676_prefStorage,2);N=b.yieldResult;return N===void 0?b.return():b.yield(N.set("ldtmes",!0),0)})},mtB=function(q){var N,b;
return _.d(function(y){switch(y.nextAddress){case 1:return y.yield(q.JSC$18676_prefStorage,2);case 2:N=y.yieldResult;if(N===void 0){y.jumpTo(3);break}return y.yield(N.get("lmqf"),4);case 4:if(b=y.yieldResult,b!==void 0)return y.return(b);case 3:return y.return("SD")}})},ECB=function(q,N,b){var y,J,E,F,R,c,z,m;
_.d(function(r){switch(r.nextAddress){case 1:return r.yield(zga(q,(y=N)==null?void 0:y.actionParams),2);case 2:J=N.playlistId;if(!J)return r.return();if(N.action==="ACTION_ADD")return((F=N.actionParams)==null?0:F.formatType)?r.yield(E2X(q,J,N.actionParams.formatType,(m=N.actionParams)==null?void 0:m.settingsAction,b),0):r.yield(q.offlineWebClientEligibility,14);if(N.action==="ACTION_REMOVE_WITH_PROMPT"){var X=q.JSC$18676_commandHandler,V=X.resolveCommand,G=_.M7("INNERTUBE_CLIENT_NAME");var w=G===
"WEB_REMIX"?_.FE("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.FE("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var D=G==="WEB_REMIX"?[_.FE("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];G=G==="WEB_REMIX"?_.FE("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.FE("DELETE",void 0,"Delete");var k=_.FE("CANCEL",void 0,"Cancel");w=q_a(w,D,G,k,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:J});V.call(X,{openPopupAction:w});return r.return()}if(N.action===
"ACTION_REMOVE")return r.yield(o_A(q,J),0);if(N.action!=="ACTION_SYNC"){r.jumpTo(0);break}return r.yield(q.JSC$18676_playerApiPromise,9);case 9:return E=r.yieldResult,r.yield(E.queueOfflineAction(J,q.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return R=r.yieldResult,r.yield(mtB(q),15);case 15:return c=r.yieldResult,r.yield($tx(q),16);case 16:z=r.yieldResult,N.onAddCommand&&q.JSC$18676_commandHandler.resolveCommand(N.onAddCommand,{form:{preferredFormatType:c,
offlineWebClientEligibility:R,lastOfflineQualitySettingsSavedMs:z.toString()}}),r.jumpTo(0)}})},yla=function(q,N,b){var y,J,E,F,R,c,z,m,r,X,V,G,w,D,k,f,L,S,W,M;
_.d(function(qe){switch(qe.nextAddress){case 1:return qe.yield(zga(q,(y=N)==null?void 0:y.actionParams),2);case 2:J=N.videoId;if(!J)return qe.return();if(N.action==="ACTION_REMOVE_WITH_PROMPT"){var RJ=q.JSC$18676_commandHandler,tZ=RJ.resolveCommand,wA=_.M7("INNERTUBE_CLIENT_NAME");var rA=wA==="WEB_REMIX"?_.FE("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.FE("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var xD=wA==="WEB_REMIX"?[_.FE("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];wA=wA==="WEB_REMIX"?_.FE("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.FE("DELETE",void 0,"Delete");var IJ=_.FE("CANCEL",void 0,"Cancel");rA=q_a(rA,xD,wA,IJ,{signal:"DELETE_DOWNLOAD",targetId:J});tZ.call(RJ,{openPopupAction:rA});return qe.return()}if(N.action==="ACTION_ADD")return((f=N.actionParams)==null?0:f.formatType)?qe.yield(ZvA(q,J,N.actionParams.formatType,(M=N.actionParams)==null?void 0:M.settingsAction,b),0):qe.yield(q.offlineWebClientEligibility,
28);if(N.action==="ACTION_RETRY")return qe.yield(mtB(q),24);if(N.action==="ACTION_PAUSE")return qe.yield(q.pauseVideoDownload(J),0);if(N.action==="ACTION_RESUME")return qe.yield(q.resumeVideoDownload(J),0);if(N.action==="ACTION_REMOVE")return qe.yield(g2C(q,J),18);if(!_.x("kevlar_enable_download_to_mobile")){qe.jumpTo(0);break}E=_.v(N.onAddCommand,_.aE);R=(F=E)==null?void 0:F.isCrossDeviceDownload;if(!N.onAddCommand||!R){qe.jumpTo(0);break}c="HD";return qe.yield($tx(q),16);case 16:return z=qe.yieldResult,
qe.yield(tRc(q),17);case 17:m=qe.yieldResult;q.JSC$18676_commandHandler.resolveCommand(N.onAddCommand,{form:{preferredFormatType:c,lastOfflineQualitySettingsSavedMs:z.toString(),downloadToMobileEduShown:m}});qe.jumpTo(0);break;case 18:return r=qe.yieldResult,q.previousDownloadStateForVideo[J]=(X=r)!=null?X:"DOWNLOAD_STATE_UNKNOWN",qe.yield(RgX(q,J,"DOWNLOAD_STATE_USER_DELETED"),19);case 19:if(q.previousDownloadStateForVideo[J]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&q.previousDownloadStateForVideo[J]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){qe.jumpTo(20);break}return qe.yield(q.pauseVideoDownload(J),20);case 20:RJ=_.FE("DELETED_VIDEO",void 0,"Video deleted from downloads.");tZ=_.FE("UNDO_ACTION",void 0,"Undo");rA=_.FE("CLOSE",void 0,"Close");V={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.o5(RJ),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.o5(tZ),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:J}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:RJ+" "+tZ}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:J}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:rA}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};q.JSC$18676_commandHandler.resolveCommand(V);
qe.jumpTo(0);break;case 24:G=qe.yieldResult;G==="UNKNOWN_FORMAT_TYPE"&&(G="SD");w="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((D=N.actionParams)==null?0:D.formatType)G=N.actionParams.formatType,w=(k=N.actionParams)==null?void 0:k.settingsAction;return qe.yield(Fzp(q,J,G,w,b),25);case 25:return qe.return();case 28:return L=qe.yieldResult,qe.yield(mtB(q),29);case 29:return S=qe.yieldResult,qe.yield($tx(q),30);case 30:W=qe.yieldResult,N.onAddCommand&&q.JSC$18676_commandHandler.resolveCommand(N.onAddCommand,
{form:{preferredFormatType:S,offlineWebClientEligibility:L,lastOfflineQualitySettingsSavedMs:W.toString()}}),qe.jumpTo(0)}})},rwf=function(q,N){var b,y,J,E,F,R,c;
return _.d(function(z){if(z.nextAddress==1)return z.yield(q.JSC$18676_persistentStorePromiseAccessor(),2);b=z.yieldResult;if(!b)return _.M6(new _.IO("PES is undefined")),z.return();if((y=N)==null||!y.settingItemId)return z.return();J=N;E=J.settingItemId;F=J.boolValue;R=_.yU(E,"settingEntity");c={key:R,settingOptionValue:{boolValue:F}};return z.yield(XwX(b,c),0)})},X7K=function(q,N){var b,y,J,E,F,R,c;
return _.d(function(z){switch(z.nextAddress){case 1:return z.yield(q.JSC$18676_prefStorage,2);case 2:return b=z.yieldResult,y=_.c3(),z.yield(q.JSC$18676_persistentStorePromiseAccessor(),3);case 3:return J=z.yieldResult,b?J?z.yield(b.get("sdois"),4):(_.M6(new _.IO("PES is undefined")),z.return()):(_.M6(new _.IO("prefStorage is undefined")),z.return());case 4:E=z.yieldResult;R=(F=N)==null?void 0:F.boolValue;R===void 0||_.x("kevlar_set_sd_enabled_flag_killswitch")||_.uG(0,197,!0);E===void 0&&R===void 0&&
(R=!1);if(R===void 0){z.jumpTo(0);break}return z.yield(b.set("sdois",R),6);case 6:return _.x("kevlar_set_sd_enabled_flag_killswitch")||(_.uG(0,196,R),y.save()),c={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:R},z.yield(rwf(q,c),0)}})},VRC=function(q,N,b){var y,J,E,F,R;
return _.d(function(c){switch(c.nextAddress){case 1:return c.yield(cwd(q),2);case 2:return y=c.yieldResult,c.yield(X7K(q,b),3);case 3:return c.yield(cwd(q),4);case 4:return J=c.yieldResult,E=J!==y,c.yield(umU(q),5);case 5:F=c.yieldResult&&!_.x("kevlar_modern_downloads_page");if((R=!J&&!F)||E)return c.yield(N.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);c.jumpTo(0)}})},HGU=function(){var q=_.tz().resolve(_.Z8),
N;
_.d(function(b){switch(b.nextAddress){case 1:return b.yield(q.JSC$18676_playerApiPromise,2);case 2:N=b.yieldResult;if(!_.x("kevlar_force_refresh_smart_downloads")){b.jumpTo(3);break}return b.yield(N.refreshAllStaleEntities(0),4);case 4:return b.return();case 3:return b.yield(N.refreshAllStaleEntities(),5);case 5:return b.yield(VRC(q,N),6);case 6:if(_.x("enable_download_pep_for_premium_countries_web"))return b.yield(dtW(q,N),0);b.jumpTo(0)}})},ZJN=function(q,N){var b,y;
_.d(function(J){switch(J.nextAddress){case 1:return J.yield(q.JSC$18676_playerApiPromise,2);case 2:b=J.yieldResult;switch((y=N)==null?void 0:y.settingItemId){case "SMART_DOWNLOADS_ENABLED":return J.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return J.jumpTo(4)}J.jumpTo(0);break;case 3:return J.yield(VRC(q,b,N),6);case 6:J.jumpTo(0);break;case 4:return J.yield(rwf(q,N),7);case 7:J.jumpTo(0)}})},jgA=function(q,N){var b,y,J;
return _.d(function(E){if(E.nextAddress==1)return E.yield(q.JSC$18676_persistentStorePromiseAccessor(),2);if(E.nextAddress!=3){b=E.yieldResult;if(!b)return _.M6(new _.IO("PES is undefined")),E.return(!1);if(!N)return E.return(!1);y=_.yU(N,"mainVideoEntity");return E.yield(VTf(b,y,"mainVideoEntity"),3)}J=E.yieldResult;return E.return(J!==void 0)})},RFx=function(q){var N=_.tz().resolve(_.Z8),b,y,J,E,F,R,c,z,m,r,X;
_.d(function(V){switch(V.nextAddress){case 1:return V.yield(N.JSC$18676_playerApiPromise,2);case 2:b=V.yieldResult;J=(y=q)==null?void 0:y.actions;if(!J)return V.return();E=_.Z(J);F=E.next();case 3:if(F.done){V.jumpTo(0);break}R=F.value;z=c=void 0;if(!(((c=R)==null?0:c.entityKey)&&((z=R)==null?0:z.actionType))){V.jumpTo(4);break}m=_.qR(R.entityKey);r=m.entityId;X=m.entityType;return V.yield(b.queueOfflineAction(r,X,R.actionType),4);case 4:F=E.next(),V.jumpTo(3)}})},xtx=function(q,N){var b,y,J,E,F;
return _.d(function(R){if(R.nextAddress==1)return R.yield(q.JSC$18676_prefStorage,2);if(R.nextAddress!=3)return(b=R.yieldResult)?R.yield(b.get("psi"),3):R.return();y=R.yieldResult;F={isPaused:N,lastSyncTimestamp:(E=(J=y)==null?void 0:J.lastSyncTimestamp)!=null?E:"0"};return R.yield(b.set("psi",F),0)})},uPp=function(q){var N=_.tz().resolve(_.Z8),b,y,J,E,F,R,c,z;
return _.d(function(m){switch(m.nextAddress){case 1:return m.yield(N.JSC$18676_playerApiPromise,2);case 2:b=m.yieldResult;J=((y=q)==null?void 0:y.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((R=q)==null?void 0:R.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":E="!*$_ALL_ENTITIES_!*$";F="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return m.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return m.jumpTo(4)}m.jumpTo(5);break;case 3:return m.yield(xtx(N,J),6);case 6:m.jumpTo(5);break;case 4:return m.yield(jgA(N,(c=q)==null?void 0:c.videoId),7);case 7:m.yieldResult&&(E=(z=q)==null?void 0:z.videoId,F="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");m.jumpTo(5);break;case 5:if(E&&F)return m.yield(b.queueOfflineAction(E,"videoPlaybackPositionEntity",F),0);m.jumpTo(0)}})},v2f=function(q,N){var b;
N!==1||((b=q.currentPersistentToast)==null?0:b.isOpened())?q.openToast():q.currentPersistentToast=void 0},GJN=function(q,N){var b;
return(b=q.transitionTasksMap.get(N))!=null?b:[]},YUC=function(q,N){var b=[];
q.elementTasksMap.forEach(function(y){(y=y.get(N))&&b.push(y)});
return b},QgN=function(q,N,b,y,J){J=J===void 0?{}:J;
var E=N.defaultViewTransitionOptions;return Object.assign({},E,J,{beforeTransition:function(){y.forEach(function(z){z.beforeTransition()});
var F;(F=E.beforeTransition)==null||F.call(E);var R,c;(c=(R=J).beforeTransition)==null||c.call(R);b.forEach(function(z){z.beforeTransition()})},
afterTransition:function(){y.forEach(function(z){z.afterTransition()});
var F;(F=E.afterTransition)==null||F.call(E);var R,c;(c=(R=J).afterTransition)==null||c.call(R);b.forEach(function(z){z.afterTransition()})},
ignoredErrors:q.config.ignoredErrors})},OvC=function(q,N,b){q.transitionTasksMap.has(N)?q.transitionTasksMap.get(N).push(b):(q=new _.IO("Transition task registered for unknown transition type",N),_.po(q))},w7p=function(q,N,b){if(q.transitionTasksMap.has(N)){var y=q.transitionTasksMap.get(N).filter(function(J){return J!==b});
q.transitionTasksMap.set(N,y)}},ivW=function(q,N){var b=GJN(q,N);
b=_.Z(b);for(var y=b.next();!y.done;y=b.next())y=y.value,y.runOnce&&w7p(q,N,y);q.elementTasksMap.forEach(function(J,E){J.forEach(function(F,R){F.runOnce&&N===R&&(J.delete(R),J.size===0&&q.elementTasksMap.delete(E))})})},lLA=function(q,N,b){var y,J,E,F,R,c,z,m,r;
_.d(function(X){if(X.nextAddress==1){if(q.config.disableAllTransitions)return X.return(N());if((y=b)==null||!y.transitionType)return X.return(_.DKC(N,Object.assign({},(J=b)==null?void 0:J.viewTransitionOptions,{ignoredErrors:q.config.ignoredErrors})));E=b;F=E.transitionType;R=E.viewTransitionOptions;c=q.config.transitionConfigs.get(F);if(!c)return X.return(N());z=GJN(q,F);m=YUC(q,F);r=_.DKC(N,QgN(q,c,z,m,R));return X.yield(r,2)}ivW(q,F);_.hj(X)})},Kzf=function(){var q,N,b,y;
return _.d(function(J){if(J.nextAddress==1)return q=navigator,(N=q.storage)!=null&&N.persisted?J.yield((b=q.storage)==null?void 0:b.persisted(),2):J.return("PERSISTED_STATE_NOT_SUPPORTED");y=J.yieldResult;return J.return(y?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},Dtf=function(){var q,N,b,y;
return _.d(function(J){if(J.nextAddress==1)return q=navigator,(N=q.storage)!=null&&N.persist?J.yield((b=q.storage)==null?void 0:b.persist(),2):J.return("PERSISTED_STATE_NOT_SUPPORTED");y=J.yieldResult;return J.return(y?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},hgK=function(){var q,N;
return _.d(function(b){switch(b.nextAddress){case 1:return q="PERSISTED_STATE_NOT_SUPPORTED",_.Yi(b,2),b.yield(Kzf(),4);case 4:q=b.yieldResult;if(q!=="PERSISTED_STATE_NOT_GRANTED"){b.jumpTo(5);break}return b.yield(Dtf(),6);case 6:q=b.yieldResult;case 5:_.Ea(b,3);break;case 2:N=_.K7(b),N instanceof Error&&_.po(N);case 3:return _.W_("persistentStorageStateChecked",{persistedState:q}),b.return(q)}})},kJN=function(q,N){var b=[],y=!1;
N=_.Z(N);for(var J=N.next();!J.done;J=N.next()){J=q.moduleRegistry[J.value];var E=void 0,F=void 0;((E=J)==null?0:E.isFetching)&&((F=J)==null?0:F.resolver)?(b.push(J.resolver.promise),y=!0):(J=new _.yk,J.resolve(void 0),b.push(J.promise))}return y?Promise.all(b):void 0},Utx=function(q,N,b){if(q.isAnyTransitionEnabled){var y={beforeTransition:function(){b(!0);
N.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){N.style.viewTransitionName&&(N.style.viewTransitionName="",b(!1))}};
OvC(q.viewTransitionCoordinator,"slide",y);OvC(q.viewTransitionCoordinator,"lockup-to-watch",y);OvC(q.viewTransitionCoordinator,"watch-next-appears",y);OvC(q.viewTransitionCoordinator,"learning-journey",y)}},fLx=function(q,N){q.isBrowseTransitionEnabled?lLA(q.viewTransitionCoordinator,N,{transitionType:"slide"}):(N(),Promise.resolve())},CKX=function(q,N){q.isLockupToWatchTransitionEnabled?lLA(q.viewTransitionCoordinator,N,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){q.registeredLockupThumbnail=void 0;q.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(N(),Promise.resolve())},ILN=function(q,N){q.isLockupToWatchTransitionEnabled?lLA(q.viewTransitionCoordinator,N,{transitionType:"watch-next-appears"}):(N(),Promise.resolve())},TPX=function(q,N){q.isLearningJourneyTransitionEnabled?lLA(q.viewTransitionCoordinator,N,{transitionType:"learning-journey"}):(N(),Promise.resolve())},sgf=function(q,N,b){if(q.isInitialized()){var y=
jS(b),J=y==="watch";
y=y==="shorts";var E=jS(N)==="watch";if(J)E||(q.backgroundPageData=N),q.watchPipMode&&E||q.deactivate(b.endpoint);else if(y){if(jS(N)!=="shorts"){var F;(F=q.getPlayerElement())==null||F.pause()}}else E&&!q.watchPipMode&&(Nac(N,b,!0)?(q.watchWhileMode&&_.rrd(q,!1),_.crA(q,N)):q.isMiniplayerActive()&&q.watchWhileMode&&q.deactivate());E&&_.V0X(q);q.shortsPipMode&&!y&&(window.focus(),q.deactivate());if(q.pictureInPictureEnabled())if(y&&q.shortsPipEnabled||J&&q.watchPipEnabled)_.wiD(q.handleMediaSessionPipActivation);
else if(!q.isMiniplayerActive()&&(q.shortsPipEnabled||q.watchPipEnabled)&&window.documentPictureInPicture&&_.ln()&&_.vDR("Chromium")>=120){q=_.OKC().mediaSession;try{q.setActionHandler("enterpictureinpicture",null)}catch(R){}}}},n2f=function(q,N){var b,y;
_.d(function(J){if(J.nextAddress==1){if(!q||!q.navigationEndpoint)return J.return();_.sM().lockupActivation=!0;var E;N?E=_.nD(_.FE("QUEUE",void 0,"Queue")):E=q.longBylineText;y=(b=E)&&q.title?{miniplayerTitle:q.title,miniplayerSubtitle:b,playlistData:null}:void 0;return J.yield(_.MqJ(_.tz().resolve(_.l9),q.navigationEndpoint,!0,y),2)}_.sM().userActivation=!0;_.hj(J)})},vsC=function(q,N){var b,y,J,E,F,R;
_.d(function(c){if(c.nextAddress==1){b=_.v(N,_.MV1);if(!b||!b.listId)return c.return();q.index=b.index||q.index||0;y=q.response&&q.response.playingVideoId||void 0;return c.yield(_.twJ(q.JSC$13162_playlistNetworkManager,b.listId,q.index,y),2)}J=c.yieldResult;if(!J)return c.return();E=J.playlistId;F=J.playlistPanelRenderer;!q.queueProxy&&E&&F&&E.startsWith("TLPQ")&&(q.queueProxy=new _.ES(q.JSC$13162_playlistNetworkManager,E,q.setPlaylistData.bind(q),q.clearQueue.bind(q),_.HEh(F),q.storage));if(b.openMiniplayer&&
(R=_.qoD(F))&&!q.JSC$13162_pageManager.isOnWatch()){var z=R,m=b.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";q.isMiniplayerActive()?q.openToast(z):n2f(z,m)}q.setPlaylistData(E,F,J.autoplayRenderer);_.hj(c)})},V5A=function(q,N){var b=_.zV();
b.index===void 0&&(b.index=0);b.temporaryItems.push.apply(b.temporaryItems,_.a9(q));if((N.videoId||N.videoIds)&&b.index!==void 0&&N.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!b.queueProxy){var y=[];if(b.response){var J=_.tz().resolve(_.l9).isMiniplayerActive();if(b.response.playlistPanelRenderer&&b.response.playlistId&&!b.response.playlistId.startsWith("TLPQ")){if(b.JSC$13162_pageManager.isOnWatch()||J)y=_.HEh(b.response.playlistPanelRenderer)}else b.response.playingVideoId&&!N.openMiniplayer?
y.push(b.response.playingVideoId):J&&b.response.playingVideoId&&N.openMiniplayer&&y.push(b.response.playingVideoId)}b.queueProxy=new _.ES(b.JSC$13162_playlistNetworkManager,"",b.setPlaylistData.bind(b),b.clearQueue.bind(b),y,b.storage);b.queueProxy.JSC$13108_setCurrentIndex(b.index)}b.queueProxy.addVideos(N.videoIds||[N.videoId],N)}vQf(b,q);b.response&&_.$6(b,_.t2(b,b.response.autoplayRenderer));b.JSC$13162_pageManager.isOnWatch()?b.isMiniplayerActive()&&b.openToast(q[0]):(q=q[0],N=N.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
b.isMiniplayerActive()?b.openToast(q):n2f(q,N))},aLK=function(q){var N=_.NN(q);
if(N=="object"||N=="array"){if(typeof q.clone==="function")return q.clone();if(typeof Map!=="undefined"&&q instanceof Map)return new Map(q);if(typeof Set!=="undefined"&&q instanceof Set)return new Set(q);N=N=="array"?[]:{};for(var b in q)N[b]=aLK(q[b]);return N}return q},jb=function(q,N){return _.XRd(_.R6(q,N,void 0,_.Fn))},xX=function(q,N){return _.dp(_.R6(q,N,void 0,_.Fn))},vr=function(q,N){return _.CTJ(_.R6(q,N,void 0,_.Fn))},GG=function(q,N){return _.R6(q,N,void 0,_.Fn,_.HR)},SUf=_.uX(function(q,
N,b,y){if(q.nextWireType_!==0)return!1;
_.za(N,b,y,_.lZ(q.decoder_,_.mvh));return!0},_.Ve,_.Un),Wzc=_.uX(function(q,N,b){if(q.nextWireType_!==1)return!1;
var y=q.decoder_;q=_.Ds(y);y=_.Ds(y);q=_.Sj(q,y);_.ze(N,b,q);return!0},_.Ilh,_.dN1),LzN=_.uX(function(q,N,b){if(q.nextWireType_!==2)return!1;
q=_.MjR(q);_.ze(N,b,q===_.kE()?void 0:q);return!0},_.Shn,_.zxM),p7a=_.icA(function(q,N,b){if(q.nextWireType_!==0&&q.nextWireType_!==2)return!1;
N=_.bX(N,N[_.gx]|0,b);q.nextWireType_==2?_.oE4(q,qIf,N):N.push(_.KL(q.decoder_));return!0},function(q,N,b){N=_.wZJ(_.dp,N,!0);
if(N!=null&&N.length){b=_.NpF(q,b);for(var y=0;y<N.length;y++)_.UBz(q.encoder_,N[y]);_.bUj(q,b)}},_.$NF),PKa=_.uX(function(q,N,b,y){if(q.nextWireType_!==0)return!1;
_.za(N,b,y,_.KL(q.decoder_));return!0},_.L7Z,_.$NF),MRU=function(q){return q.previousElementSibling!==void 0?q.previousElementSibling:_.QWJ(q.previousSibling,!1)},o2C=function(q,N){var b=[];
for(N=N||0;N<q.length;N+=2)_.$IJ(q[N],q[N+1],b);return b.join("&")},AwX=function(q,N){var b=arguments.length==2?o2C(arguments[1],0):o2C(arguments,1);
return _.zp4(q,b)},kSC=_.Qe(_.YA),egW=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(egW,_.Rx);egW.prototype.getTypeName=function(){return _.xs(this,1).split("/").pop()};
egW.prototype.getValue=function(){var q=_.R6(this,2);if(Array.isArray(q)||q instanceof _.Rx)throw Error("W");return _.uZ(this,2)};
var GKU=function(){var q=_.HT();this.JSC$9998_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Xz("channel_type"))};
GKU.prototype.increment=function(q){this.JSC$9998_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",q)};
var YAW=function(){var q=_.HT();this.JSC$10001_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Xz("channel_type"))};
YAW.prototype.increment=function(q){this.JSC$10001_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",q)};
var O0a=function(){var q=_.HT();this.JSC$10004_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Xz("channel_type"))};
O0a.prototype.increment=function(q){this.JSC$10004_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",q)};
var Qmx=function(){var q=_.HT();this.JSC$10007_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
Qmx.prototype.increment=function(){this.JSC$10007_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var wDN=function(){var q=_.HT();this.JSC$10010_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Xz("channel_type"),_.Xz("error_type"))};
wDN.prototype.increment=function(q,N){this.JSC$10010_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",q,N)};
var i0c=function(){var q=_.HT();this.JSC$10013_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
i0c.prototype.increment=function(){this.JSC$10013_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var lIc=function(){var q=_.HT();this.JSC$10016_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
lIc.prototype.increment=function(){this.JSC$10016_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var k8N=function(){var q=_.HT();this.JSC$10022_streamzService=q;q.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
k8N.prototype.increment=function(){this.JSC$10022_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var BPK=function(q){return q.getCount&&typeof q.getCount=="function"?q.getCount():_.pC(q)||typeof q==="string"?q.length:_.nM.getCount(q)},HvW=function(q,N){if(typeof q.every=="function")return q.every(N,void 0);
if(_.pC(q)||typeof q==="string")return Array.prototype.every.call(q,N,void 0);for(var b=_.$61(q),y=_.bl(q),J=y.length,E=0;E<J;E++)if(!N.call(void 0,y[E],b&&b[E],q))return!1;return!0},qCp=function(q,N,b,y){var J=new _.a$(null);
q&&_.yw(J,q);N&&_.J5(J,N);b&&_.EI(J,b);y&&_.gH(J,y);return J},NkK=function(){var q=_.B4&&_.md(_.iAx,10)>=0,N;
if(N=_.NxT)N=_.md(_.wBT,10)>=0;var b=_.Js&&_.md(_.iAx,85)>=0;return _.qd||q||N||b},bzU=function(q){var N=_.Mcl(q);
return N&&NkK()?-q.scrollLeft:N&&_.eG(q,"overflowX")!="visible"?q.scrollWidth-q.clientWidth-q.scrollLeft:q.scrollLeft},ytA=function(q,N){N=Math.max(N,0);
_.Mcl(q)?NkK()?q.scrollLeft=-N:q.scrollLeft=q.scrollWidth-N-q.clientWidth:q.scrollLeft=N},mof=0,xoK=!1;
vq.prototype.set=function(q){this.relativeTimeStart_=q};
vq.prototype.reset=function(){this.set(_.M$())};
vq.prototype.get=function(){return this.relativeTimeStart_};
var JtC=null,Ecx=function(){JtC||(JtC=new vq)},gcU=function(){JtC||(JtC=new vq)};
_.oK(gcU,Ecx);_.g=GTK.prototype;_.g.JSC$11433_buffer_="";_.g.set=function(q){this.JSC$11433_buffer_=""+q};
_.g.append=function(q,N,b){this.JSC$11433_buffer_+=String(q);if(N!=null)for(var y=1;y<arguments.length;y++)this.JSC$11433_buffer_+=arguments[y];return this};
_.g.clear=function(){this.JSC$11433_buffer_=""};
_.g.getLength=function(){return this.JSC$11433_buffer_.length};
_.g.toString=function(){return this.JSC$11433_buffer_};
var ZzN=!1,K6A=function(q){_.bn.call(this,q.message||q.description||q.name);this.isMissing=q instanceof GY;this.isTimeout=q instanceof _.JQ&&q.errorCode=="net.timeout";this.isCanceled=q instanceof _.K0};
_.Y(K6A,_.bn);K6A.prototype.name="BiscottiError";var GY=function(){_.bn.call(this,"Biscotti ID is missing from server")};
_.Y(GY,_.bn);GY.prototype.name="BiscottiMissingError";var YM=null,unX=function(){try{var q=_.Ng("yt.ads.biscotti.getId_");return q?q():Rya()}catch(N){return _.ra(N)}},FSa=function(q,N){return _.B3({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:q,command:N}})},RjX=function(q){return _.B3({type:"SET_GUIDE_IS_EXPANDED",
payload:q})},d2A=function(q){return _.B3({type:"SET_ONLINE_STATUS",
payload:q})},ctd=function(q,N){return _.B3({type:"SET_TRANSCRIPTION_STATE",
payload:{high:q,low:N}})},uJp=function(q){return _.B3({type:"SET_OVERLAY_STATE",
payload:q})},zjW=0,$2a=function(q,N,b){var y=this;
this.priority=N;this.delay=b;this.jobId=0;this.completionCallback=_.jE;this.wrappedJob=function(){q();y.completionCallback()};
this.id=++zjW};
$2a.prototype.enqueue=function(q){this.completionCallback=q;this.jobId=_.pY.addJob(this.wrappedJob,this.priority,this.delay)};
var YX=function(){_.ZL.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.Y(YX,_.ZL);YX.prototype.addJob=function(q,N,b){q=new $2a(q,N,b);this.taskIdToTask.set(q.id,q);this.isActive?tVx(this,q):this.suspendedTasks.add(q);return q.id};
var tVx=function(q,N){q.scheduledTasks.add(N);N.enqueue(function(){q.scheduledTasks.delete(N)})};
YX.prototype.cancelJob=function(q){(q=this.taskIdToTask.get(q))&&(this.scheduledTasks.delete(q)?_.pY.cancelJob(q.jobId):this.suspendedTasks.delete(q))};
YX.prototype.pause=function(){var q=this;this.isActive=!1;this.scheduledTasks.forEach(function(N){_.pY.cancelJob(N.jobId);q.suspendedTasks.add(N)});
this.scheduledTasks.clear()};
YX.prototype.start=function(){var q=this;this.isActive=!0;this.suspendedTasks.forEach(function(N){tVx(q,N)});
this.suspendedTasks.clear()};
YX.prototype.reset=function(){this.scheduledTasks.forEach(function(q){_.pY.cancelJob(q.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var m2N=function(q,N){this.JSC$13288_networkService_=q;this.pageRequestPromise=N};
m2N.prototype.fetchData=function(q){rtX(this,this.JSC$13288_networkService_.fetchData(q))};
m2N.prototype.postData=function(q,N){rtX(this,this.JSC$13288_networkService_.postData(q,N))};
m2N.prototype.requestDataForServiceEndpoint=function(q,N){rtX(this,this.JSC$13288_networkService_.requestDataForServiceEndpoint(q,N))};
var rtX=function(q,N){N.then(q.pageRequestPromise.onSuccess,q.pageRequestPromise.onFailure,q.pageRequestPromise)};
m2N.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var XtX=function(q){this.buildNetworkRequest_=q;this.pendingRequests_=new Set};
XtX.prototype.reset=function(){this.pendingRequests_.forEach(function(q){q.cancel()});
this.pendingRequests_.clear()};
XtX.prototype.fetchData=function(q){var N=VVA(this);N.fetchData(q);return N.pageRequestPromise};
XtX.prototype.postData=function(q,N){var b=VVA(this);b.postData(q,N);return b.pageRequestPromise};
XtX.prototype.requestDataForServiceEndpoint=function(q,N){var b=VVA(this);b.requestDataForServiceEndpoint(q,N);return b.pageRequestPromise};
var VVA=function(q){var N=q.buildNetworkRequest_();q.pendingRequests_.add(N);var b=function(){q.pendingRequests_.delete(N)};
N.pageRequestPromise.then(b,b);return N},jNC=function(q){var N=new YX;
this.JSC$13295_networkService_=q;this.JSC$13295_taskManager_=N;this.JSC$13295_networkManager_=new XtX(this.networkRequestFactory_.bind(this))};
_.g=jNC.prototype;_.g.networkRequestFactory_=function(){return new m2N(this.JSC$13295_networkService_,new _.h2(this.JSC$13295_taskManager_))};
_.g.reset=function(){this.JSC$13295_taskManager_.reset();this.JSC$13295_networkManager_.reset()};
_.g.start=function(){this.JSC$13295_taskManager_.start()};
_.g.pause=function(){this.JSC$13295_taskManager_.pause()};
_.g.getTaskManager=function(){return this.JSC$13295_taskManager_};
_.g.getNetworkManager=function(){return this.JSC$13295_networkManager_};
var adW=null,L6x=[],QV=0,wN=0,Oc=null,lb=function(q){this.token=q};
lb.getInstance=function(){var q;return _.d(function(N){if(N.nextAddress==1)return N.yield(_.$5(),2);q=N.yieldResult;if(!q)return N.return();lb.instance||(lb.instance=new lb(q));return N.return(lb.instance)})};
var HtX=function(q){var N;return _.d(function(b){if(b.nextAddress==1)return b.yield(AnC(q.token),2);N=b.yieldResult;return b.return(N.clear("resource-manifest-assets"))})},ib=function(q){this.token=q};
ib.getInstance=function(){var q;return _.d(function(N){if(N.nextAddress==1)return N.yield(_.$5(),2);q=N.yieldResult;if(!q)return N.return();ib.instance||(ib.instance=new ib(q));return N.return(ib.instance)})};
var eyC=function(q){var N;return _.d(function(b){if(b.nextAddress==1)return b.yield(AnC(q.token),2);N=b.yieldResult;return b.yield(N.clear("auth"),0)})},x2f=!1,Ky=null,uQA=void 0,xOa=!1,vcK=function(q){_.bn.call(this,q)};
_.Y(vcK,_.SZx);var VaB=function(){var q=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return q?parseInt(q[1],10):0},Gqx=function(q){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+q)!=-1||document.currentScript.src.indexOf("&"+q)!=-1)},YCf=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},Ydf=function(q){q.length?QNf(q.shift(),function(){Ydf(q)}):x$d()},ONX=function(q){return"chrome-extension://"+q+"/cast_sender.js"},QNf=function(q,
N,b){var y=document.createElement("script");
y.onerror=N;b&&(y.onload=b);_.R9(y,_.sN(q));(document.head||document.documentElement).appendChild(y)},Oza=function(){var q=VaB(),N=[];
if(q>1){var b=q-1;N.push("//www.gstatic.com/eureka/clank/"+q+"/cast_sender.js");N.push("//www.gstatic.com/eureka/clank/"+b+"/cast_sender.js")}return N},x$d=function(){var q=YCf();
q&&q(!1,"No cast extension found")},GtN=function(){if(wtc){var q=2,N=YCf(),b=function(){q--;
q==0&&N&&N(!0)};
window.__onGCastApiAvailable=b;QNf("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",x$d,b)}},jKW=function(){GtN();
var q=Oza();q.push("//www.gstatic.com/eureka/clank/cast_sender.js");Ydf(q)},vJf=function(){GtN();
var q=Oza();q.push.apply(q,_.a9(QKB.map(ONX)));q.push("//www.gstatic.com/eureka/clank/cast_sender.js");Ydf(q)},wtc=Gqx("loadCastFramework")||Gqx("loadCastApplicationFramework"),QKB=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var izK=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(izK,_.Rx);var lhp=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(lhp,_.Rx);var KSW=function(){var q=new lhp;return _.wM(q,1,3)};var QA=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(QA,_.Rx);var dEa=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(dEa,_.Rx);var D2d=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(D2d,_.Rx);D2d.prototype.getToken=function(){return _.xs(this,1)};
D2d.prototype.setToken=function(q){return _.f0(this,1,q)};
var FIW=function(q){return _.eX(q,3,_.Ya,_.$N())},R7X=function(q){return _.eX(q,6,_.Ya,_.$N())};var O0=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(O0,_.Rx);O0.prototype.getToken=function(){return _.Vr(this,D2d,2)};
O0.prototype.setToken=function(q){return _.ws(this,2,q)};
O0.prototype.getName=function(){return _.xs(this,6)};
var hjU=_.Qe(O0);var kqx=function(q,N,b){this.requestMessage=q;this.methodDescriptor=N;this.metadata=b};
kqx.prototype.getMetadata=function(){return this.metadata};var U2N=function(q,N){N=N===void 0?{}:N;this.responseMessage=q;this.metadata=N;this.status=null};
U2N.prototype.getMetadata=function(){return this.metadata};
U2N.prototype.getStatus=function(){return this.status};var wY=function(q,N,b,y,J){this.name=q;this.methodType="unary";this.requestType=N;this.responseType=b;this.requestSerializeFn=y;this.responseDeserializeFn=J},fhd=function(q,N,b){b=b===void 0?{}:b;
return new kqx(N,q,b)};
wY.prototype.getName=function(){return this.name};var ii=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(ii,_.Rx);ii.prototype.getHeader=function(){return _.Vr(this,QA,1)};
ii.prototype.setHeader=function(q){return _.ws(this,1,q)};
ii.prototype.hasHeader=function(){return _.dM(this,QA,1)};var CWa=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(CWa,_.Rx);var IhK=new wY("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",ii,CWa,function(q){return q.serialize()},_.Qe(CWa));var li=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(li,_.Rx);li.prototype.getHeader=function(){return _.Vr(this,QA,1)};
li.prototype.setHeader=function(q){return _.ws(this,1,q)};
li.prototype.hasHeader=function(){return _.dM(this,QA,1)};var Tkf=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Tkf,_.Rx);var sNd=new wY("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",li,Tkf,function(q){return q.serialize()},_.Qe(Tkf));var KB=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(KB,_.Rx);KB.prototype.getHeader=function(){return _.Vr(this,QA,1)};
KB.prototype.setHeader=function(q){return _.ws(this,1,q)};
KB.prototype.hasHeader=function(){return _.dM(this,QA,1)};var ncC=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(ncC,_.Rx);ncC.prototype.getLink=function(){return _.Vr(this,O0,1)};var aha=new wY("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",KB,ncC,function(q){return q.serialize()},_.Qe(ncC));var D9=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(D9,_.Rx);D9.prototype.getHeader=function(){return _.Vr(this,QA,1)};
D9.prototype.setHeader=function(q){return _.ws(this,1,q)};
D9.prototype.hasHeader=function(){return _.dM(this,QA,1)};var SCX=new wY("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",D9,O0,function(q){return q.serialize()},hjU);var WSf=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(WSf,_.Rx);var LSW=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(LSW,_.Rx);LSW.prototype.getUrl=function(){return _.xs(this,2)};
LSW.prototype.setUrl=function(q){return _.f0(this,2,q)};var pta=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(pta,_.Rx);var PWW=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(PWW,_.Rx);var MVA=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(MVA,_.Rx);var GSf=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(GSf,_.Rx);var xEf=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(xEf,_.Rx);var ocX=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(ocX,_.Rx);var h7a=_.Qe(ocX);var Atx=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Atx,_.Rx);var ejf=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(ejf,_.Rx);_.g=ejf.prototype;_.g.getHeader=function(){return _.Vr(this,QA,1)};
_.g.setHeader=function(q){return _.ws(this,1,q)};
_.g.hasHeader=function(){return _.dM(this,QA,1)};
_.g.getCompletionUrl=function(){return _.xs(this,6)};
_.g.getDeviceId=function(){return _.xs(this,11)};var Bkf=new wY("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",ejf,ocX,function(q){return q.serialize()},h7a);var Hza=new Set(["SAPISIDHASH","APISIDHASH"]);var qDK=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(qDK,_.Rx);qDK.prototype.getMessage=function(){return _.xs(this,2)};
var NCU=_.Qe(qDK);var yGf=function(q,N){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=q.nodeReadableStream;this.grpcResponseDeserializeFn=N;this.xhr=q.xhr;this.xhrNodeReadableStream&&biX(this)},dCf=function(q,N){var b=new JGB;
_.tn(q.xhr,"complete",function(){if(q.xhr.isSuccess()){var y=q.xhr.getResponseText();var J;if(J=N)J=q.xhr,J.JSC$9877_xhr_&&J.isComplete()?(J=J.JSC$9877_xhr_.getResponseHeader("Content-Type"),J=J===null?void 0:J):J=void 0,J=J==="text/plain";if(J){if(!atob)throw Error("ik");y=atob(y)}try{var E=q.grpcResponseDeserializeFn(y)}catch(R){ETC(q,Muf(new _.hl(13,"Error when deserializing response data; error: "+R+(", response: "+y)),b));return}y=_.dgJ(q.xhr.getStatus());gTf(q,ZiB(q));y===0?FCN(q,E):ETC(q,Muf(new _.hl(y,
"Xhr succeeded but the status code is not 200"),b))}else{y=q.xhr.getResponseText();E=ZiB(q);if(y){var F=RUa(q,y);y=F.code;J=F.details;F=F.metadata}else y=2,J="Rpc failed due to xhr error. uri: "+String(q.xhr.JSC$9877_lastUri_)+", error code: "+(q.xhr.JSC$9877_lastErrorCode_+", error: ")+q.xhr.getLastError(),F=E;gTf(q,E);ETC(q,Muf(new _.hl(y,J,F),b))}})},biX=function(q){q.xhrNodeReadableStream.on("data",function(N){if("1"in N){var b=N["1"];
try{var y=q.grpcResponseDeserializeFn(b)}catch(J){ETC(q,new _.hl(13,"Error when deserializing response data; error: "+J+(", response: "+b)))}y&&FCN(q,y)}if("2"in N)for(N=RUa(q,N["2"]),b=0;b<q.onStatusCallbacks.length;b++)q.onStatusCallbacks[b](N)});
q.xhrNodeReadableStream.on("end",function(){gTf(q,ZiB(q));for(var N=0;N<q.onEndCallbacks.length;N++)q.onEndCallbacks[N]()});
q.xhrNodeReadableStream.on("error",function(){if(q.onErrorCallbacks.length!==0){var N=q.xhr.JSC$9877_lastErrorCode_;N!==0||q.xhr.isSuccess()||(N=6);var b=-1;switch(N){case 0:var y=2;break;case 7:y=10;break;case 8:y=4;break;case 6:b=q.xhr.getStatus();y=_.dgJ(b);break;default:y=14}gTf(q,ZiB(q));N=_.pCo(N)+", error: "+q.xhr.getLastError();b!==-1&&(N+=", http status code: "+b);ETC(q,new _.hl(y,N))}})},ZiB=function(q){var N={},b=y5U(q.xhr);
Object.keys(b).forEach(function(y){N[y]=b[y]});
return N},RUa=function(q,N){var b=2,y={};
try{var J=NCU(N);b=_.tW(J,1);var E=J.getMessage();_.zP(J,egW,3,_.$N()).length&&(y["grpc-web-status-details-bin"]=N)}catch(F){q.xhr&&q.xhr.getStatus()===404?(b=5,E="Not Found: "+String(q.xhr.JSC$9877_lastUri_)):(b=14,E="Unable to parse RpcStatus: "+F)}return{code:b,details:E,metadata:y}};
yGf.prototype.on=function(q,N){q==="data"?this.onDataCallbacks.push(N):q==="metadata"?this.onMetadataCallbacks.push(N):q==="status"?this.onStatusCallbacks.push(N):q==="end"?this.onEndCallbacks.push(N):q==="error"&&this.onErrorCallbacks.push(N);return this};
var cGx=function(q,N){N=q.indexOf(N);N>-1&&q.splice(N,1)};
yGf.prototype.removeListener=function(q,N){q==="data"?cGx(this.onDataCallbacks,N):q==="metadata"?cGx(this.onMetadataCallbacks,N):q==="status"?cGx(this.onStatusCallbacks,N):q==="end"?cGx(this.onEndCallbacks,N):q==="error"&&cGx(this.onErrorCallbacks,N);return this};
yGf.prototype.cancel=function(){this.xhr.abort()};
var FCN=function(q,N){for(var b=0;b<q.onDataCallbacks.length;b++)q.onDataCallbacks[b](N)},gTf=function(q,N){for(var b=0;b<q.onMetadataCallbacks.length;b++)q.onMetadataCallbacks[b](N)},ETC=function(q,N){for(var b=0;b<q.onErrorCallbacks.length;b++)q.onErrorCallbacks[b](N)},JGB=function(){var q=Error.call(this);
this.message=q.message;"stack"in q&&(this.stack=q.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.Y(JGB,Error);var uKa=function(q){this.JSC$19739_worker_=q.worker||null;this.JSC$19739_streamBinaryChunks_=q.streamBinaryChunks||!1;this.JSC$19739_credentialsMode_=void 0};
_.oK(uKa,_.u$A);uKa.prototype.createInstance=function(){var q=new hR(this.JSC$19739_worker_,this.JSC$19739_streamBinaryChunks_);this.JSC$19739_credentialsMode_&&q.setCredentialsMode(this.JSC$19739_credentialsMode_);return q};
uKa.prototype.setCredentialsMode=function(q){this.JSC$19739_credentialsMode_=q};
var hR=function(q,N){_.O1.call(this);this.JSC$19743_worker_=q;this.JSC$19743_streamBinaryChunks_=N;this.JSC$19743_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$19743_responseHeaders_=null;this.JSC$19743_method_="GET";this.JSC$19743_url_="";this.inProgress_=!1;this.JSC$19743_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.oK(hR,_.O1);hR.prototype.open=function(q,N){if(this.readyState!=0)throw this.abort(),Error("jk");this.JSC$19743_method_=q;this.JSC$19743_url_=N;this.readyState=1;zUA(this)};
hR.prototype.send=function(q){if(this.readyState!=1)throw this.abort(),Error("kk");if(this.abortController_.signal.aborted)throw this.abort(),Error("lk");this.inProgress_=!0;var N={headers:this.requestHeaders_,method:this.JSC$19743_method_,credentials:this.JSC$19743_credentialsMode_,cache:void 0,signal:this.abortController_.signal};q&&(N.body=q);(this.JSC$19743_worker_||_.JZ).fetch(new Request(this.JSC$19743_url_,N)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
hR.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,$Ca(this));this.readyState=0};
hR.prototype.handleResponse_=function(q){if(this.inProgress_&&(this.fetchResponse_=q,this.JSC$19743_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19743_responseHeaders_=q.headers,this.readyState=2,zUA(this)),this.inProgress_&&(this.readyState=3,zUA(this),this.inProgress_)))if(this.responseType==="arraybuffer")q.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.JZ.ReadableStream!==
"undefined"&&"body"in q){this.currentReader_=q.body.getReader();if(this.JSC$19743_streamBinaryChunks_){if(this.responseType)throw Error("mk");this.response=[]}else this.response=this.responseText="",this.JSC$19743_textDecoder_=new TextDecoder;tQa(this)}else q.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var tQa=function(q){q.currentReader_.read().then(q.handleDataFromStream_.bind(q)).catch(q.handleSendFailure_.bind(q))};
hR.prototype.handleDataFromStream_=function(q){if(this.inProgress_){if(this.JSC$19743_streamBinaryChunks_&&q.value)this.response.push(q.value);else if(!this.JSC$19743_streamBinaryChunks_){var N=q.value?q.value:new Uint8Array(0);if(N=this.JSC$19743_textDecoder_.decode(N,{stream:!q.done}))this.response=this.responseText+=N}q.done?$Ca(this):zUA(this);this.readyState==3&&tQa(this)}};
hR.prototype.handleResponseText_=function(q){this.inProgress_&&(this.response=this.responseText=q,$Ca(this))};
hR.prototype.handleResponseArrayBuffer_=function(q){this.inProgress_&&(this.response=q,$Ca(this))};
hR.prototype.handleSendFailure_=function(){this.inProgress_&&$Ca(this)};
var $Ca=function(q){q.readyState=4;q.fetchResponse_=null;q.currentReader_=null;q.JSC$19743_textDecoder_=null;zUA(q)};
hR.prototype.setRequestHeader=function(q,N){this.requestHeaders_.append(q,N)};
hR.prototype.getResponseHeader=function(q){return this.JSC$19743_responseHeaders_?this.JSC$19743_responseHeaders_.get(q.toLowerCase())||"":""};
hR.prototype.getAllResponseHeaders=function(){if(!this.JSC$19743_responseHeaders_)return"";for(var q=[],N=this.JSC$19743_responseHeaders_.entries(),b=N.next();!b.done;)b=b.value,q.push(b[0]+": "+b[1]),b=N.next();return q.join("\r\n")};
hR.prototype.setCredentialsMode=function(q){this.JSC$19743_credentialsMode_=q};
var zUA=function(q){q.onreadystatechange&&q.onreadystatechange.call(q)};
Object.defineProperty(hR.prototype,"withCredentials",{get:function(){return this.JSC$19743_credentialsMode_==="include"},
set:function(q){this.setCredentialsMode(q?"include":"same-origin")}});var mCN=function(q){var N="";_.nM.forEach(q,function(b,y){N+=y;N+=":";N+=b;N+="\r\n"});
return N},rGa=function(q,N,b){if(_.nM.isEmpty(b))return q;
b=mCN(b);if(typeof q==="string")return _.WE(q,_.yX(N),b);_.yS(q,N,b);return q};var X0U=function(){this.isInputValid_=!0;this.JSC$19749_streamPos_=0;this.leftoverInput_=""};
X0U.prototype.isInputValid=function(){return this.isInputValid_};
X0U.prototype.decode=function(q){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("nk`"+this.JSC$19749_streamPos_+"`stream already broken`"+q);this.leftoverInput_+=q;q=Math.floor(this.leftoverInput_.length/4);if(q==0)return null;try{var N=_.axh(this.leftoverInput_.slice(0,q*4))}catch(b){throw N=this.leftoverInput_,q=b.message,this.isInputValid_=!1,Error("nk`"+this.JSC$19749_streamPos_+"`"+q+"`"+N);}this.JSC$19749_streamPos_+=q*4;this.leftoverInput_=this.leftoverInput_.slice(q*4);return N};var AEN=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19752_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
AEN.prototype.isInputValid=function(){return this.state_!=3};
var VQd=function(q,N,b,y){q.state_=3;q.errorMessage_="The stream is broken @"+q.JSC$19752_streamPos_+"/"+b+". Error: "+y+". With input:\n"+N;throw Error(q.errorMessage_);};
AEN.prototype.acceptsBinaryInput=function(){return!0};
AEN.prototype.parse=function(q){function N(c){c&128&&VQd(E,F,R,"invalid tag");(c&7)!=2&&VQd(E,F,R,"invalid wire type");E.tag_=c>>>3;E.tag_!=1&&E.tag_!=2&&E.tag_!=15&&VQd(E,F,R,"unexpected tag");E.state_=1;E.length_=0;E.countLengthBytes_=0}
function b(c){E.countLengthBytes_++;E.countLengthBytes_==5&&c&240&&VQd(E,F,R,"message length too long");E.length_|=(c&127)<<(E.countLengthBytes_-1)*7;c&128||(E.state_=2,E.countMessageBytes_=0,typeof Uint8Array!=="undefined"?E.messageBuffer_=new Uint8Array(E.length_):E.messageBuffer_=Array(E.length_),E.length_==0&&J())}
function y(c){E.messageBuffer_[E.countMessageBytes_++]=c;E.countMessageBytes_==E.length_&&J()}
function J(){if(E.tag_<15){var c={};c[E.tag_]=E.messageBuffer_;E.result_.push(c)}E.state_=0}
for(var E=this,F=q instanceof Array?q:new Uint8Array(q),R=0;R<F.length;){switch(E.state_){case 3:VQd(E,F,R,"stream already broken");break;case 0:N(F[R]);break;case 1:b(F[R]);break;case 2:y(F[R]);break;default:throw Error("ok`"+E.state_);}E.JSC$19752_streamPos_++;R++}q=E.result_;E.result_=[];return q.length>0?q:null};var eIU=function(){this.errorMessage_=null;this.JSC$19755_streamPos_=0;this.base64Decoder_=new X0U;this.pbParser_=new AEN};
eIU.prototype.isInputValid=function(){return this.errorMessage_===null};
var jVW=function(q,N,b){q.errorMessage_="The stream is broken @"+q.JSC$19755_streamPos_+". Error: "+b+". With input:\n"+N;throw Error(q.errorMessage_);};
eIU.prototype.acceptsBinaryInput=function(){return!1};
eIU.prototype.parse=function(q){this.errorMessage_!==null&&jVW(this,q,"stream already broken");var N=null;try{var b=this.base64Decoder_.decode(q);N=b===null?null:this.pbParser_.parse(b)}catch(y){jVW(this,q,y.message)}this.JSC$19755_streamPos_+=q.length;return N};var oPC=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19758_streamPos_=0;this.result_=[];this.statusParsed_=!1};
oPC.prototype.isInputValid=function(){return this.errorMessage_===null};
oPC.prototype.acceptsBinaryInput=function(){return!1};
oPC.prototype.parse=function(q){function N(c){E.state_=6;E.errorMessage_="The stream is broken @"+E.JSC$19758_streamPos_+"/"+F+". Error: "+c+". With input:\n";throw Error(E.errorMessage_);}
function b(){E.jsonStreamParser_=new _.tG({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function y(c){if(c)for(var z=0;z<c.length;z++){var m={};m[1]=c[z];E.result_.push(m)}}
function J(c){if(c){(E.statusParsed_||c.length>1)&&N("extra status: "+c);E.statusParsed_=!0;var z={};z[2]=c[0];E.result_.push(z)}}
for(var E=this,F=0;F<q.length;){var R;if(R=E.state_!==2){a:{for(;F<q.length;){if(!_.$T(q[F])){R=!0;break a}F++;E.JSC$19758_streamPos_++}R=!1}R=!R}if(R)return null;switch(E.state_){case 6:N("stream already broken");break;case 0:q[F]==="["?(E.state_=1,F++,E.JSC$19758_streamPos_++):N("unexpected input token");break;case 1:q[F]==="["?(E.state_=2,b()):q[F]===","||q.slice(F,F+5)=="null,"?E.state_=3:q[F]==="]"?(E.state_=5,F++,E.JSC$19758_streamPos_++):N("unexpected input token");break;case 2:R=E.jsonStreamParser_.parse(q.substring(F));
y(R);E.jsonStreamParser_.done()?(E.state_=3,R=E.jsonStreamParser_.JSC$11560_buffer_,E.JSC$19758_streamPos_+=q.length-F-R.length,q=R,F=0):(E.JSC$19758_streamPos_+=q.length-F,F=q.length);break;case 3:q[F]===","||q.slice(F,F+5)=="null,"?(E.state_=4,b(),E.jsonStreamParser_.parse("["),F+=q[F]===","?1:5,E.JSC$19758_streamPos_++):q[F]==="]"&&(E.state_=5,F++,E.JSC$19758_streamPos_++);break;case 4:R=E.jsonStreamParser_.parse(q.substring(F));J(R);E.jsonStreamParser_.done()?(E.state_=5,R=E.jsonStreamParser_.JSC$11560_buffer_,
E.JSC$19758_streamPos_+=q.length-F-R.length,q=R,F=0):(E.JSC$19758_streamPos_+=q.length-F,F=q.length);break;case 5:N("extra input after stream end")}}return E.result_.length>0?(q=E.result_,E.result_=[],q):null};var xCB=function(q){this.JSC$19761_xhr_=q;this.JSC$19761_parser_=null;this.status_=this.JSC$19761_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19761_textDecoder_=null;this.JSC$19761_eventHandler_=new _.xH(this);this.JSC$19761_eventHandler_.listen(this.JSC$19761_xhr_,"readystatechange",this.JSC$19763_readyStateChangeHandler_)},kX=function(q,N){q.status_!=N&&(q.status_=N,q.statusHandler_&&q.statusHandler_())},vTd=function(q){q.JSC$19761_eventHandler_.removeAll();
if(q.JSC$19761_xhr_){var N=q.JSC$19761_xhr_;q.JSC$19761_xhr_=null;N.abort();N.dispose()}};
xCB.prototype.getStatus=function(){return this.status_};
xCB.prototype.JSC$19763_readyStateChangeHandler_=function(q){q=q.target;try{if(q==this.JSC$19761_xhr_)a:{var N=_.fJ(this.JSC$19761_xhr_),b=this.JSC$19761_xhr_.JSC$9877_lastErrorCode_,y=this.JSC$19761_xhr_.getStatus(),J=this.JSC$19761_xhr_.getResponseText();q=[];if(this.JSC$19761_xhr_.getResponse()instanceof Array){var E=this.JSC$19761_xhr_.getResponse();E.length>0&&E[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,q=E)}if(!(N<3||N==3&&!J&&q.length==0))if(y=y==200||y==206,N==4&&(b==8?kX(this,
7):b==7?kX(this,8):y||kX(this,3)),this.JSC$19761_parser_||(this.JSC$19761_parser_=BJU(this.JSC$19761_xhr_),this.JSC$19761_parser_==null&&kX(this,5)),this.status_>2)vTd(this);else{if(q.length>this.JSC$19761_pos_){var F=q.length;b=[];try{if(this.JSC$19761_parser_.acceptsBinaryInput())for(var R=0;R<F;R++){var c=this.JSC$19761_parser_.parse(Array.from(q[R]));c&&(b=b.concat(c))}else{c="";if(!this.JSC$19761_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("pk");this.JSC$19761_textDecoder_=
new TextDecoder}for(R=0;R<F;R++)c+=this.JSC$19761_textDecoder_.decode(q[R],{stream:N==4&&R==F-1});b=this.JSC$19761_parser_.parse(c)}q.splice(0,F);b&&this.dataHandler_(b)}catch(m){kX(this,5);vTd(this);break a}}else if(J.length>this.JSC$19761_pos_){R=J.slice(this.JSC$19761_pos_);this.JSC$19761_pos_=J.length;try{var z=this.JSC$19761_parser_.parse(R);z!=null&&this.dataHandler_&&this.dataHandler_(z)}catch(m){kX(this,5);vTd(this);break a}}N==4?(J.length!=0||this.hasStreamingResponseData_?kX(this,2):kX(this,
4),vTd(this)):kX(this,1)}}}catch(m){kX(this,6),vTd(this)}};var GWc=function(q){q=this.xhrReader_=q;var N=(0,_.fF)(this.onData_,this);q.dataHandler_=N;q=this.xhrReader_;N=(0,_.fF)(this.onStatusChange_,this);q.statusHandler_=N;this.JSC$19765_callbackMap_={};this.callbackOnceMap_={}};
_.g=GWc.prototype;_.g.on=function(q,N){var b=this.JSC$19765_callbackMap_[q];b||(b=[],this.JSC$19765_callbackMap_[q]=b);b.push(N);return this};
_.g.addListener=function(q,N){this.on(q,N);return this};
_.g.removeListener=function(q,N){var b=this.JSC$19765_callbackMap_[q];b&&_.WA(b,N);(q=this.callbackOnceMap_[q])&&_.WA(q,N);return this};
_.g.once=function(q,N){var b=this.callbackOnceMap_[q];b||(b=[],this.callbackOnceMap_[q]=b);b.push(N);return this};
_.g.onData_=function(q){var N=this.JSC$19765_callbackMap_.data;N&&YDd(q,N);(N=this.callbackOnceMap_.data)&&YDd(q,N);this.callbackOnceMap_.data=[]};
var YDd=function(q,N){for(var b={},y=0;y<q.length;b={message$jscomp$1008:void 0},y++)b.message$jscomp$1008=q[y],N.forEach(function(J){return function(E){try{E(J.message$jscomp$1008)}catch(F){}}}(b))};
GWc.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:QVA(this,"readable");break;case 5:case 6:case 4:case 7:case 3:QVA(this,"error");break;case 8:QVA(this,"close");break;case 2:QVA(this,"end")}};
var QVA=function(q,N){var b=q.JSC$19765_callbackMap_[N];b&&b.forEach(function(y){try{y()}catch(J){}});
(b=q.callbackOnceMap_[N])&&b.forEach(function(y){y()});
q.callbackOnceMap_[N]=[]};var OiB=function(){var q={format:"jspb"};q=q===void 0?{}:q;this.suppressCorsPreflight=q.suppressCorsPreflight||_.Ng("suppressCorsPreflight",q)||!1;this.withCredentials=q.withCredentials||_.Ng("withCredentials",q)||!1;this.streamInterceptors=q.streamInterceptors||[];this.unaryInterceptors=q.unaryInterceptors||[];this.workerScope=q.workerScope;this.chunkedServerStreaming=q.useFetchDownloadStreams||!1},lYA=function(q,N,b,y,J,E){E=E===void 0?{}:E;
var F=N.substring(0,N.length-J.name.length),R,c=(R=E)==null?void 0:R.signal;return w0c(function(z){return new Promise(function(m,r){if(c==null?0:c.aborted){var X=new _.hl(1,"Aborted");X.cause=c.reason;r(X)}else{var V={},G=iiB(q,z,F);G.on("error",function(w){return void r(w)});
G.on("metadata",function(w){V=w});
G.on("data",function(w){var D=V;D=D===void 0?{}:D;m(new U2N(w,D))});
c&&c.addEventListener("abort",function(){G.cancel();var w=new _.hl(1,"Aborted");w.cause=c.reason;r(w)})}})},q.unaryInterceptors).call(q,fhd(J,b,y)).then(function(z){return z.responseMessage})},KCW=function(q,N,b,y,J,E){E=E===void 0?{}:E;
return lYA(q,N,b,y,J,E)};
OiB.prototype.serverStreaming=function(q,N,b,y){var J=this,E=q.substring(0,q.length-y.name.length);return DCA(function(F){var R=F.methodDescriptor,c=F.getMetadata(),z=hUN(J,!1);c=kWW(J,c,z,E+R.getName());var m=UCU(z,R.responseDeserializeFn,!0);F=R.requestSerializeFn(F.requestMessage);z.send(c,"POST",F);return m},this.streamInterceptors).call(this,fhd(y,N,b))};
var iiB=function(q,N,b){var y=N.methodDescriptor,J=N.getMetadata(),E=hUN(q,!0);q=kWW(q,J,E,b+y.getName());b=UCU(E,y.responseDeserializeFn,!1);dCf(b,J["X-Goog-Encode-Response-If-Executable"]==="base64");N=y.requestSerializeFn(N.requestMessage);E.send(q,"POST",N);return b},hUN=function(q,N){N=q.chunkedServerStreaming&&!N;
return q.workerScope||N?new _.U1(new uKa({worker:q.workerScope,streamBinaryChunks:N})):new _.U1},kWW=function(q,N,b,y){N["Content-Type"]="application/json+protobuf";
N["X-User-Agent"]="grpc-web-javascript/0.1";var J=N.Authorization;if(J&&Hza.has(J.split(" ")[0])||q.withCredentials)b.JSC$9877_withCredentials_=!0;if(q.suppressCorsPreflight)y=rGa(y,"$httpHeaders",N);else for(q=_.Z(Object.keys(N)),J=q.next();!J.done;J=q.next())J=J.value,b.headers.set(J,N[J]);return y},UCU=function(q,N,b){if(b){b=new xCB(q);
var y=new GWc(b)}return new yGf({xhr:q,nodeReadableStream:y},N)},DCA=function(q,N){return N.reduce(function(b,y){return function(J){return y.intercept(J,b)}},q)},w0c=function(q,N){return N.reduce(function(b,y){return function(J){return y.intercept(J,b)}},q)};var fYA=function(q){this.client_=new OiB;this.hostname_=q==void 0?q:q.replace(/\/+$/,"")};
_.g=fYA.prototype;_.g.JSC$19783_depositGoogleCredential=function(q,N,b){return KCW(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",q,N||{},sNd,b)};
_.g.deleteLink=function(q,N,b){return KCW(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",q,N||{},IhK,b)};
_.g.JSC$19783_finishOAuth=function(q,N,b){return KCW(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",q,N||{},aha,b)};
_.g.getLink=function(q,N,b){return KCW(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",q,N||{},SCX,b)};
_.g.startLinkingSession=function(q,N,b){return KCW(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",q,N||{},Bkf,b)};var CeX=[0,_.Wc,1,p7a,[0,_.Md,[0,_.pL,-1]],[0,LzN],[0,_.Hc,-1],[0,LzN]];var IYa=function(){this.storage=new Map},sVd=function(q,N,b,y,J){if(!q.storage.has(N))return null;
q=_.Z(q.storage.get(N));for(N=q.next();!N.done;N=q.next())if(N=N.value,!J||N.linkName===J)if(b&&N.scopes&&TCp(N.scopes,b)||y&&N.capabilities&&TCp(N.capabilities,y))return N;return null},nTf=function(q,N,b){if(!b)q.storage.delete(N);
else if(q.storage.has(N)){var y=q.storage.get(N).filter(function(J){return J.linkName!==b});
y.length>0?q.storage.set(N,y):q.storage.delete(N)}},TCp=function(q,N){N=_.Z(N);
for(var b=N.next();!b.done;b=N.next())if(!q.has(b.value))return!1;return!0};var aYB=function(){var q=_.M7("LINK_GAL_DOMAIN");this.alsDomain1p=_.M7("LINK_GAL_DOMAIN");this.alsDomain3p=q;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},SDK=function(q,N){q.apiKey=N;
return q};
aYB.prototype.build=function(){var q={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("qk");q.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("rk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("sk");q.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(q.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)q.apiKey=
this.apiKey,q.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("tk");q.oauthToken=this.oauthToken;q.alsDomain=this.alsDomain3p}q.clientXd3=this.clientXd3;q.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(q.authUser=this.authUser);this.bucket!==void 0&&(q.bucket=this.bucket);this.completionUrl!==void 0&&(q.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(q.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(q.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(q.locale=this.locale);q.loggerType=this.loggerType;q.clientEnvironment=this.clientEnvironment;q.colorScheme=this.colorScheme;q.showCloseOption=this.showCloseOption;return q};var kM=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(kM,_.Rx);var WCW=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(WCW,_.Rx);var LCf=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(LCf,_.Rx);var fy=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(fy,_.Rx);var p0c=function(q){return _.vc(q,1)};var Pex=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Pex,_.Rx);var Eea=_.Qe(Pex),Uc=[1,2,3,4,5];var NjU=function(q){try{return Eea(q)}catch(N){return null}},MQf=function(){},bTf=function(q,N){switch(_.$s(N,Uc)){case 4:return(N=_.QW(N,LCf,4,Uc))&&q.logStateTransition(_.vc(N,1)),!0;
case 5:return(N=_.QW(N,WCW,5,Uc))&&q.logInternalEvent(_.vc(N,1)),!0}return!1},geA=function(q){switch(q){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.ol(q)}};var H6U=function(q,N){var b=this;this.validator=q;this.messageListener=N;this.dismissCallback=function(){oTC(b,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19812_receiveMessage=function(y){y.type==="message"&&(y=y.event_,y!==null&&(new URL(b.iframe.src)).origin===y.origin&&b.validator(y.data,y.origin)&&!b.messageListener(y.data)&&(b.JSC$19812_resolveCb!==void 0&&b.JSC$19812_resolveCb(y.data),AGA(b)))}},JOf=function(q,N,b){q.uiHandler!==void 0&&oTC(q,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(y,J){q.JSC$19812_resolveCb=y;q.JSC$19812_rejectCb=J;q.iframe=document.createElement("iframe");_.Nn(q.iframe,N);q.uiHandler=b.displayContent(q.iframe,q.dismissCallback);_.tn(window,"message",q.JSC$19812_receiveMessage,!1,q)})},oTC=function(q,N){q.JSC$19812_rejectCb!==void 0&&q.JSC$19812_rejectCb(N);
AGA(q)},AGA=function(q){q.uiHandler!==void 0&&q.uiHandler.hideContent();
_.QL(window,"message",q.JSC$19812_receiveMessage,!1,q);q.JSC$19812_resolveCb=void 0;q.JSC$19812_rejectCb=void 0;q.uiHandler=void 0;q.iframe=void 0};var eUX=function(q){if(q===2){var N;q=((N=window)==null?0:N.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return q},yOd=function(q){q=eUX(q);
switch(q){case 0:return"light";case 1:return"dark";default:_.ol(q)}};var q$a=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),BCW=function(q,N){this.JSC$19824_linkingSession=q;this.noticeConfig=N;this.displayInfoMap=new Map;var b=new Map;if(_.dM(this.JSC$19824_linkingSession,pta,7))for(q=_.Vr(this.JSC$19824_linkingSession,pta,7),q=_.zP(q,LSW,1,_.$N()),q=_.Z(q),N=q.next();!N.done;N=q.next())N=N.value,b.set(_.vc(N,1),_.O4J(_.Vr(N,_.PAu,3)));if(b.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){N=this.noticeConfig.enabledDataUsageNoticeUis;q=N.has(0)?b.get(1):void 0;N=N.has(1)?b.get(2):void 0;b=q!==void 0&&N!==void 0?b.get(3):void 0;var y=this.noticeConfig.nestedOrigins;var J=new Pex;var E=new kM;J=_.iX(J,2,Uc,E);E=new Pex;var F=new kM;E=_.iX(E,3,Uc,F);F=[];q!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:q,lastEvent:J,nestedOrigins:y}]),F.push({trustedUrl:q,lastEvent:J,nestedOrigins:y}));N!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:N,lastEvent:E,nestedOrigins:y}]),F.push({trustedUrl:N,lastEvent:E,nestedOrigins:y}));b!==void 0?this.displayInfoMap.set(3,[{trustedUrl:b,lastEvent:E,nestedOrigins:y}]):this.displayInfoMap.set(3,F)}};var Hif=function(q){var N=new IYa;this.galService=q;this.galCache=N};
Hif.prototype.getLink=function(q){var N=q.serviceId;var b=q.scopes;var y=q.capabilities;var J=q.linkName;var E=this,F;return _.d(function(R){if(y!==void 0&&b!==void 0)throw Error("uk");F=sVd(E.galCache,N,b,y,J);return F!==null?R.return(F):R.return(E.galService.getLink({serviceId:N,sessionId:Math.floor(Math.random()*2147483648),scopes:b,capabilities:y,linkName:J}).then(function(c){c=cOf(c);var z=E.galCache;z.storage.has(N)?z.storage.get(N).push(c):z.storage.set(N,[c]);return c}))})};
Hif.prototype.deleteLink=function(q,N,b){var y=this;return _.d(function(J){nTf(y.galCache,q,b);return J.return(y.galService.deleteLink({serviceId:q,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:N,linkName:b}).then(function(){return!0}))})};var NUX=function(q,N){var b=this;this.validator=q;this.msgHandler=N;this.closedPopupTimeout=this.JSC$19846_rejectCb=this.JSC$19846_resolveCb=this.popup=null;this.JSC$19846_receiveMessage=function(y){if(y!==null&&(y=y.event_,y.source===b.popup)){var J=y.data;if(b.validator(J,y.origin)){var E;(E=b.msgHandler)!=null&&E.call(b,J)||(b.JSC$19846_resolveCb!==null&&b.JSC$19846_resolveCb(J),qjA(b))}}}};
NUX.prototype.open=function(q,N){var b=this;this.popup!==null&&bOf(this);return new Promise(function(y,J){b.JSC$19846_resolveCb=y;b.JSC$19846_rejectCb=J;b.popup=_.yz(window,q,"",N);_.tn(window,"message",b.JSC$19846_receiveMessage,!1,b);yTa(b)})};
var bOf=function(q,N){q.JSC$19846_rejectCb!==null&&q.JSC$19846_rejectCb(N);qjA(q)},qjA=function(q){q.closedPopupTimeout&&(q.closedPopupTimeout.cancel(),q.closedPopupTimeout=null);
q.popup&&q.popup.close();_.QL(window,"message",q.JSC$19846_receiveMessage,!1,q);q.popup=null;q.JSC$19846_resolveCb=null;q.JSC$19846_rejectCb=null},yTa=function(q){q.closedPopupTimeout=_.nZ1(100).then(function(){q.popup?q.popup.closed?JTB(q):yTa(q):bOf(q,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},JTB=function(q){q.closedPopupTimeout=_.nZ1(100).then(function(){bOf(q,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var Eza=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),gzx=function(q,N,b,y,J,E,F,R,c,z){var m=this;this.serviceId=q;this.sessionId=N;this.galService=b;this.oauthDetails=y;this.galLogger=J;this.interactionMode=E;this.redirectServiceUrl=F;this.consentLanguageKeys=R;this.dynamicUrlParameters=c;this.partnerConfigMinReadTimestamp=z;this.started=!1;this.JSC$19852_dataValidator=function(r,
X){var V=Eza.has(X);V||m.redirectServiceUrl===void 0||(V=m.redirectServiceUrl===X);return V?r.sentinel==="gdi":!1}};
gzx.prototype.complete=function(){var q=this,N;return _.d(function(b){if(q.interactionMode!==1)return b.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));N=veN.getRedirectStateFromUri();return N===null?b.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):b.return(ZOW(q,N))})};
gzx.prototype.start=function(){var q=this,N;return _.d(function(b){if(q.started)return b.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.xs(q.oauthDetails,1))return b.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(q.interactionMode===1)return veN.setLocation(_.xs(q.oauthDetails,1)),b.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));q.started=!0;q.galLogger.logStateTransition(5);
N=veN.getPostMessagePopup(q.JSC$19852_dataValidator);return b.return(N.open(_.xs(q.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(y){q.started=!1;var J=q.galLogger;if((y==null?void 0:y.error)!==void 0)throw J.logInternalEvent(59),Error("vk");if((y==null?void 0:y.redirect_state)===void 0)throw J.logInternalEvent(131),Error("wk");return ZOW(q,y.redirect_state)}).catch(function(y){q.started=
!1;
return y.errorCode!==void 0?{statusCode:y.errorCode,statusMessage:y.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var ZOW=function(q,N){return _.d(function(b){return b.return(FmK(q.galService,{serviceId:q.serviceId,sessionId:q.sessionId,dynamicUrlParameters:q.dynamicUrlParameters,redirectState:N,consentLanguageKeys:q.consentLanguageKeys,partnerConfigMinReadTimestamp:q.partnerConfigMinReadTimestamp}).then(function(y){var J={statusCode:1,link:cOf(y.getLink())};Ztd(_.uZ(y,3))!==void 0&&(J.callerState=Ztd(_.uZ(y,3)));q.galLogger.logInternalEvent(134);return J}))})},veN={getPostMessagePopup:function(q){return new NUX(q)},
getRedirectStateFromUri:function(){var q=_.N0(veN.getLocation()).fragment_;return(new _.dH(q)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(q){_.XxC(window.location,_.pc(q))},
createOAuthFlow:function(q,N){return new gzx(q.serviceId,q.sessionId,q.galService,N,q.galLogger,q.interactionMode,q.redirectServiceUrl,q.consentLanguageKeys,q.dynamicUrlParameters,q.partnerConfigMinReadTimestamp)}};var RaK=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(RaK,_.Rx);var dMU=_.Qe(RaK);var cTa=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),u6K=function(q,N,b,y,J,E,F,R,c){var z=this;this.serviceId=q;this.sessionId=N;this.galService=b;this.gsiWebFlowDetails=y;this.colorScheme=J;this.showCloseOption=E;this.galLogger=F;this.interactionMode=R;this.redirectServiceUrl=c;this.started=!1;this.JSC$19864_dataValidator=function(m,r){var X=cTa.has(r);X||z.redirectServiceUrl===
void 0||(X=z.redirectServiceUrl===r);return X?m.sentinel==="gal":!1};
this.logEventProcessor=function(m){return m.result?(m=NjU(m.result))?bTf(z.galLogger,m):!1:!1}};
u6K.prototype.complete=function(){var q=this,N,b;return _.d(function(y){if(q.interactionMode!==1)return y.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));N=Y$f.getRedirectStateFromUri();if(N===void 0)return q.galLogger.JSC$19804_logErrorEvent(131),y.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return b=zaa(q,N),y.return($Mc(q,b))}catch(J){return y.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
u6K.prototype.start=function(){var q=this,N;return _.d(function(b){if(q.started)return b.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.xs(q.gsiWebFlowDetails,1))return b.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(q.interactionMode===1)return Y$f.setLocation(tDx(q,_.xs(q.gsiWebFlowDetails,1))),b.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
q.started=!0;N=Y$f.getPostMessagePopup(q.JSC$19864_dataValidator,q.logEventProcessor);return b.return(N.open(tDx(q,_.xs(q.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(y){q.started=!1;if((y==null?void 0:y.result)===void 0)throw q.galLogger.JSC$19804_logErrorEvent(131),Error("wk");y=zaa(q,y.result);return $Mc(q,y)}).catch(function(y){q.started=!1;
return y.errorCode!==void 0?{statusCode:y.errorCode,statusMessage:y.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var tDx=function(q,N){q=["result_channel",q.interactionMode===1?"2":"1","color_scheme",yOd(q.colorScheme),"show_close_option",q.showCloseOption];return AwX(N,q)},$Mc=function(q,N){if(N!==null&&_.dM(N,fy,2)){var b,y=N==null?void 0:(b=_.Vr(N,fy,2))==null?void 0:_.vc(b,2);
y&&q.galLogger.JSC$19804_logErrorEvent(geA(y));return p0c(_.Vr(N,fy,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 q.galService.getLink({serviceId:q.serviceId,sessionId:q.sessionId,consistencyKey:_.xs(N,1)}).then(function(J){J=cOf(J);q.galLogger.logInternalEvent(134);return{statusCode:1,link:J}})},zaa=function(q,N){N=dMU(N);
if(!_.dM(N,fy,2)&&_.xs(N,1)==="")throw q.galLogger.JSC$19804_logErrorEvent(5),Error("xk");return N},Y$f={getPostMessagePopup:function(q,N){return new NUX(q,N)},
getRedirectStateFromUri:function(){return _.b5(_.N0(Y$f.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(q){_.XxC(window.location,_.pc(q))},
createStreamlinedFlow:function(q,N){return new u6K(q.serviceId,q.sessionId,q.galService,N,q.colorScheme,q.showCloseOption,q.galLogger,q.interactionMode,q.redirectServiceUrl)}};var KIW=function(){var q=_.WOu("GAL");this.storage=q?new _.T1(q):null};
KIW.prototype.getSession=function(q){if(this.storage!==null)try{var N=this.storage.get("SAVED_SESSION");if(N===void 0)return null;if(N.serviceId===q)return N}catch(b){}return null};var mMa=function(){};
_.Y(mMa,MQf);mMa.prototype.logStateTransition=function(){};
mMa.prototype.logInternalEvent=function(){};
mMa.prototype.JSC$19804_logErrorEvent=function(){};var rTC=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(rTC,_.Rx);rTC.prototype.getCompletionUrl=function(){return _.xs(this,15)};var U0=function(q,N,b,y,J,E){this.serviceId=q;this.environment=N;this.sessionId=b;this.colorSchemeSelected=y;this.colorThemeDisplayed=J;this.JSC$19877_transport=E;this.currentState=1};
_.Y(U0,MQf);U0.prototype.logStateTransition=function(q){var N=XaK(this);N=_.jd(N,3,this.currentState);N=_.jd(N,1,q);this.currentState=q;q=bpx(1);this.dispatch(N,q)};
U0.prototype.logInternalEvent=function(q){q=bpx(q);this.dispatch(XaK(this),q)};
U0.prototype.JSC$19804_logErrorEvent=function(q){var N=XaK(this);N=_.jd(N,1,10);q=bpx(q);this.dispatch(N,q)};
var XaK=function(q){var N=new rTC;N=_.jd(N,1,q.currentState);N=_.Up(N,7,q.serviceId);var b,y;var J=((b=window)==null?0:(y=b.location)==null?0:y.href)?_.N0(window.location.href).JSC$10113_domain_:"NO_PACKAGE_NAME";b=_.Up(N,8,J);b=_.jd(b,6,q.environment);b=_.Up(b,5,"100");b=_.jd(b,11,q.colorSchemeSelected);return _.jd(b,12,q.colorThemeDisplayed)};
U0.prototype.dispatch=function(q,N){N===void 0&&(N=new _.uU);var b=N;q=q.serialize();b=_.Up(b,8,q);_.fo(b,12,this.sessionId);this.JSC$19877_transport.dispatch(N)};var VDx=function(q,N){this.loggerType=q;this.sessionIndex=N!=null?N:0},jtN;
VDx.prototype.create=function(q,N,b,y,J){switch(this.loggerType){case 0:return new mMa;case 1:return jtN||(jtN=(new _.vY(555,this.sessionIndex.toString())).build()),new U0(q,N,b,y,J,jtN);default:_.ol(this.loggerType,"unknown logger type")}};var QDK=[6,2,3,1],Cxx=new Map([[4,1],[1,6],[2,2],[3,3]]),tzU={statusCode:7,statusMessage:"Failed to create flow object"},iTB=function(q,N,b,y,J,E,F,R,c,z){this.serviceId=q;this.sessionId=N;this.config=b;this.galService=y;this.JSC$19884_linkingSession=J;this.googleScopes=E;this.callerState=F;this.consentLanguageKeys=R;this.dynamicUrlParameters=c;this.partnerConfigMinReadTimestamp=z;this.currentFlow=0;y=this.JSC$19884_linkingSession;J=new Set;_.dM(y,xEf,1)&&J.add(1);_.dM(y,MVA,2)&&_.dM(y,GSf,6)&&J.add(2);
_.dM(y,PWW,3)&&_.dM(y,GSf,6)&&J.add(3);_.dM(y,WSf,4)&&J.add(6);this.supportedFlows=J;y=b.loggerType;J=b.clientEnvironment;a:{E=b.colorScheme;switch(E){case 0:E=1;break a;case 1:E=2;break a;case 2:E=3;break a;default:_.ol(E)}E=void 0}a:{F=b.colorScheme;F=eUX(F);switch(F){case 0:F=1;break a;case 1:F=2;break a;default:_.ol(F)}F=void 0}this.galLogger=(new VDx(y,b.authUser)).create(q,J,N,E,F)},vzB=function(q){return new Promise(function(N){var b,y,J,E,F,R,c,z,m,r;
return _.d(function(X){switch(X.nextAddress){case 1:b=OTc(q.currentFlow,q.supportedFlows),y=!1,J=new BCW(q.JSC$19884_linkingSession,q.config.dataUsageNoticeConfig);case 2:if(b===void 0){X.jumpTo(4);break}_.Yi(X,5);var V=J,G=b,w=void 0;y?G===1&&(w=V.displayInfoMap.get(2)):G===2||G===3?w=V.displayInfoMap.get(1):G===1&&(w=V.displayInfoMap.get(3));E=w?w:[];F=q.consentLanguageKeys;R=_.Z(E);c=R.next();case 7:if(c.done)return q.currentFlow=b,X.yield(rOA(xMX(q,F)),11);z=c.value;return X.yield(ZTX(z,q.config.dataUsageNoticeConfig.uiAdapter,
q.config.colorScheme,q.galLogger),10);case 10:m=X.yieldResult;if(m.statusCode!==1)return DEB(q.serviceId),q.currentFlow=0,N(XGX({statusCode:m.statusCode,statusMessage:m.statusMessage},q.callerState)),X.return();m.consentLanguageKeys!==void 0&&(F=m.consentLanguageKeys);c=R.next();X.jumpTo(7);break;case 11:r=X.yieldResult;if(r.statusCode!==10)return r.statusCode!==6&&(DEB(q.serviceId),q.currentFlow=0),r.statusCode!==1&&q.callerState!==void 0&&(r.callerState=q.callerState),N(r),X.return();_.Ea(X,6);
break;case 5:_.K7(X);case 6:b=OTc(q.currentFlow,q.supportedFlows);y=!0;X.jumpTo(2);break;case 4:DEB(q.serviceId),q.currentFlow=0,N(XGX({statusCode:12,statusMessage:"Linking failed"},q.callerState)),_.hj(X)}})})},UEf=function(q,N,b){q.currentFlow=N;
return VzK(xMX(q,b)).then(function(y){return y.statusCode===10&&q.config.interactionMode===1&&OTc(q.currentFlow,q.supportedFlows)!==void 0?vzB(q):y})},xMX=function(q,N){return{flowParams:{serviceId:q.serviceId,
sessionId:q.sessionId,galService:q.galService,galLogger:q.galLogger,interactionMode:q.config.interactionMode,redirectServiceUrl:q.config.redirectServiceUrl,colorScheme:q.config.colorScheme,consentLanguageKeys:N,dynamicUrlParameters:q.dynamicUrlParameters,showCloseOption:q.config.showCloseOption,partnerConfigMinReadTimestamp:q.partnerConfigMinReadTimestamp},currentFlow:q.currentFlow,config:q.config,session:q.JSC$19884_linkingSession,googleScopes:q.googleScopes,callerState:q.callerState}};var Tjf=function(q,N){this.config=q;this.galService=N.getService();this.JSC$19897_galRepository=N.JSC$19915_galRepository};
Tjf.prototype.getLink=function(q,N){return GIf(this,q,N)};
var GIf=function(q,N,b){return q.JSC$19897_galRepository.getLink({serviceId:N,scopes:void 0,capabilities:void 0,linkName:b}).then(function(y){return{statusCode:1,link:y}}).catch(function(y){return{statusCode:I7a(y.code),
statusMessage:y.message}})};
Tjf.prototype.deleteLink=function(q,N){return this.JSC$19897_galRepository.deleteLink(q,this.config.accountLinkingEntryPoint,N).then(function(){return{statusCode:1}}).catch(function(b){return{statusCode:I7a(b.code),
statusMessage:b.message}})};
Tjf.prototype.startLinkingSession=function(q){var N=q.serviceId;var b=q.sessionId;return l7p({serviceId:N,sessionId:b!==void 0?b:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:q.loginHint,callerState:q.callerState,consentLanguageKeys:q.consentLanguageKeys,linkName:q.linkName,dynamicUrlParameters:q.dynamicUrlParameters,partnerConfigMinReadTimestamp:q.partnerConfigMinReadTimestamp})};var fB=function(q,N,b,y,J,E,F){this.apiKey=N;this.authUser=b;this.oauthToken=y;this.bucket=J;this.locale=E;this.galSdkEventHandler=F;if(y===void 0){if(N===void 0)throw Error("yk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new fYA(q)};
fB.prototype.deleteLink=function(q){var N=q.serviceId;var b=q.sessionId;var y=q.accountLinkingEntryPoint;var J=q.linkName;var E=this,F;return _.d(function(R){var c=(new ii).setHeader(E.getHeader(b));var z=Yjd({serviceId:N,linkName:J});c=_.ws(c,2,z);F=_.wM(c,3,y);return R.return(E.makeRequest(E.galServiceClient.deleteLink,F,[1,3],[2,4]))})};
var FmK=function(q,N){var b=N.serviceId;var y=N.sessionId;var J=N.dynamicUrlParameters;var E=N.redirectState;var F=N.consentLanguageKeys;var R=N.partnerConfigMinReadTimestamp;var c;return _.d(function(z){var m=(new KB).setHeader(q.getHeader(y,J));m=_.f0(m,2,b);c=_.f0(m,4,E);F!==void 0&&_.f0(c,5,F);R!==void 0&&_.ws(c,6,R);return z.return(q.makeRequest(q.galServiceClient.JSC$19783_finishOAuth,c,[1,3],[2,4]))})};
fB.prototype.getLink=function(q){var N=q.serviceId;var b=q.sessionId;var y=q.scopes;var J=q.capabilities;var E=q.consistencyKey;var F=q.linkName;var R=this,c;return _.d(function(z){var m=(new D9).setHeader(R.getHeader(b)),r=Yjd({serviceId:N,scopes:y,capabilities:J,linkName:F});c=_.ws(m,2,r);E!==void 0&&(m=KSW(),m=_.f0(m,2,E),_.ws(c,3,m));return z.return(R.makeRequest(R.galServiceClient.getLink,c,[1,3],[2,4]))})};
var jDa=function(q,N){var b=N.serviceId;var y=N.sessionId;var J=N.googleScopes;var E=N.consistencyKey;var F;return _.d(function(R){var c=(new li).setHeader(q.getHeader(y));c=_.f0(c,2,b);var z=Array.from(J.values());c=_.qB(c,3,z,_.jX);z=KSW();z=_.f0(z,2,E);F=_.ws(c,4,z);return R.return(q.makeRequest(q.galServiceClient.JSC$19783_depositGoogleCredential,F,[1,3],[2,4]))})};
fB.prototype.startLinkingSession=function(q){var N=q.serviceId;var b=q.sessionId;var y=q.scopes;var J=q.capabilities;var E=q.loginHint;var F=q.supportedFlows;var R=q.completionUrl;var c=q.usePingPong;var z=q.twoWayLinking;var m=q.accountLinkingEntryPoint;var r=q.callerState;var X=q.consentLanguageKeys;var V=q.googleScopes;var G=q.dataUsageNoticeConfig;var w=q.linkName;var D=q.dynamicUrlParameters;var k=q.partnerConfigMinReadTimestamp;var f=this,L,S;return _.d(function(W){if(J!==void 0&&y!==void 0)throw Error("uk");
var M=(new ejf).setHeader(f.getHeader(b,D));L=_.f0(M,2,N);w!==void 0&&_.f0(L,14,w);if(J!==void 0){M=L;var qe=Array.from(J.values());_.qB(M,5,qe,_.jX)}else y!==void 0&&(M=L,qe=Array.from(y.values()),_.qB(M,3,qe,_.jX));R!==void 0&&_.f0(L,6,R);c!==void 0&&_.xU(L,15,c);F!==void 0&&(M=L,qe=Array.from(F.values()),_.qB(M,4,qe,_.ZW));if(z!==void 0){if(z&&(!V||V.size===0))throw Error("zk");_.xU(L,8,z)}m!==void 0&&_.wM(L,9,m);E!==void 0&&_.f0(L,13,E);r!==void 0&&(M=L,qe=(new TextEncoder).encode(r),_.NB(M,12,
_.Ux(qe,!1),_.kE()));X!==void 0&&_.f0(L,16,X);k!==void 0&&_.ws(L,18,k);if(G!==void 0&&G.size>0||V!==void 0&&V.size>0)S=new Atx,V!==void 0&&V.size>0&&(M=S,qe=Array.from(V.values()),_.qB(M,1,qe,_.jX)),G!==void 0&&(G.has(0)&&_.aWA(S,2,_.ZW,1,_.FA),G.has(1)&&_.aWA(S,2,_.ZW,2,_.FA)),_.ws(L,17,S);return W.return(f.makeRequest(f.galServiceClient.startLinkingSession,L,[1],[2]))})};
fB.prototype.getMetadata=function(){var q=this,N,b;return _.d(function(y){N={};q.useFpa?(N["X-Goog-Api-Key"]=q.apiKey,N["X-Goog-AuthUser"]=q.authUser!==void 0?q.authUser.toString():"0",(b=_.tlR([]))&&(N.Authorization=b)):N.Authorization="Bearer "+q.oauthToken;q.locale&&(N["accept-language"]=q.locale);return y.return(N)})};
fB.prototype.makeRequest=function(q,N,b,y){var J=this,E;return _.d(function(F){if(F.nextAddress==1)return F.yield(J.getMetadata(),2);E=F.yieldResult;Qtc(J,b);return F.return(q.bind(J.galServiceClient)(N,E).finally(function(){Qtc(J,y)}))})};
var Qtc=function(q,N){q.galSdkEventHandler!==void 0&&N.forEach(function(b){q.galSdkEventHandler.onEvent(b)})};
fB.prototype.getHeader=function(q,N){var b=new QA;q=_.NB(b,2,_.Rf(q),0);q=_.wM(q,5,3);N=_.qB(q,8,N,_.jX);this.bucket!==void 0&&_.f0(N,1,this.bucket);return N};
var Yjd=function(q){var N=q.serviceId;var b=q.scopes;var y=q.capabilities;q=q.linkName;if(y!==void 0&&b!==void 0)throw Error("uk");var J=new izK;N=_.f0(J,1,N);y!==void 0?(b=Array.from(y.values()),_.qB(N,5,b,_.jX)):b!==void 0&&(b=Array.from(b.values()),_.qB(N,3,b,_.jX));q!==void 0&&_.f0(N,6,q);return N};var sDa=function(q){this.galService=new fB(q.alsDomain,q.apiKey,q.authUser,q.oauthToken,q.bucket,q.locale,q.galSdkEventHandler);this.JSC$19915_galRepository=new Hif(this.galService)};
sDa.prototype.getService=function(){return this.galService};var OOU=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(OOU,_.Rx);var waK=function(q){var N=new OOU;return _.jd(N,1,q)};
OOU.prototype.setErrorMessage=function(q){return _.Up(this,2,q)};var iOW=[0,_.Bc,_.LL,_.Bc];var CB=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(CB,_.Rx);var lDB=[0,[1,2,3],_.o6,[0,_.jfx,_.DPW,-1],_.o6,[0,Wzc,-1],_.Pc];var KmW=[0,_.sn,1,_.Bc,_.LL,-1,1,_.As,_.CL,_.Bc,-1,lDB];var DMp=[0,_.Bc,[0,_.As,_.CL,[0,_.LL]],_.nL,[0,_.Bc,-1]];var $X=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y($X,_.Rx);var haf=[0,_.LL,_.Bc,-2,_.sn,_.Bc,_.sn,_.Bc,-2,1,_.nL];var kIU=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(kIU,_.Rx);var UMf=[0,_.sn];var fDf=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(fDf,_.Rx);var CQf=[0,_.Bc,DMp,UMf,haf,KmW];var K4a=_.xB(fDf,CQf);var IDA=[0,CeX];var I6d=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(I6d,_.Rx);var TUX=[0,[1,3],PKa,_.Bc,PKa];var CUa=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(CUa,_.Rx);var stB=[0,_.Bc];var nzc=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(nzc,_.Rx);var TbN=function(q){return _.QW(q,OOU,2,zG)},aDX=function(q){var N=new nzc;
return _.iX(N,2,zG,q)},zG=[1,
2];var SjX=[0,zG,_.o6,stB,_.o6,iOW,_.Md,TUX,1,_.Bc,IDA];var WmK=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(WmK,_.Rx);var pax=function(q){var N=new WmK;return _.iX(N,3,Lmx,q)},Lmx=[2,
3];var PQp=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(PQp,_.Rx);var MDC=function(q,N){return _.ws(q,2,N)},ozx=function(q,N){return _.ws(q,8,N)},ATd=function(q,N){return _.ws(q,3,N)};var eaX=[0,_.Bc,SjX,CQf,_.bU,[0,[5,6,7],[0,_.Bc,-2],[0,_.sn,_.Bc,_.LL],[0,lDB],[0,_.LL,_.Bc,-1,_.NH,_.Bc],_.o6,[0,[0,_.sn],_.Bc,-1],_.o6,[0,[3,4],_.Bc,-1,_.o6,[0,[0,_.Bc,_.nL]],_.o6,[0,[0,[0,[1,2,3],_.o6,[0],_.o6,[0],_.o6,[0]]]]],_.o6,[0,_.Bc]],_.bU,-1,[0,Lmx,_.Bc,_.o6,stB,_.o6,iOW,_.Md,TUX,[0,CeX]]];var BUp=_.xB(PQp,eaX),HOp=_.vZ(eaX);var qMx=function(){_.UN.call(this)};
_.Y(qMx,_.UN);qMx.prototype.init=function(){};
new qMx;var Nea=_.Tt(["data-"]),bmA=_.Tt(["aria-"]),yIp=_.Tt(["aria-"]),Is=function(q,N){this.isLatencyMeasurementExperiment=q===void 0?!1:q;this.enableDialogA11yFix=N===void 0?!1:N;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.Rpj(_.JZ.location.href)},hFC=function(q,N){q.onConsentPrimitiveShownCallback=N},JIc=function(q,N){return q.overriddenIframeLoadTimeout?q.overriddenIframeLoadTimeout:N!==void 0?N:5E3},UHx=function(q){if(q.prewarmPromise!==void 0)return q.prewarmPromise;
q.prewarmPromise=new Promise(function(N,b){TG(q,1);E3U(q,g3X(q,!0),ZmA(q));q.iframe?q.prewarmChannel||FJf(q,q.iframe,N):b(Error("Ak"))});
q.prewarmPromise.finally(function(){q.prewarmPromise=void 0});
return q.prewarmPromise};
Is.prototype.showPrimitive=function(){var q=this;if(this.consentPromise!==void 0)return this.consentPromise;var N=Date.now();RsB(this,N);this.consentPromise=new Promise(function(b,y){TG(q,0,N);var J=q.isDarkTheme();q.isLatencyMeasurementExperiment||q.initialLoadingStrategy===1||q.initialLoadingStrategy===2||(q.loadingBar||(q.loadingBar=WIx(getComputedStyle(document.body).direction==="rtl",J),q.loadingBar.style.position="fixed",q.loadingBar.style.zIndex="15000"),document.body.appendChild(q.loadingBar));
E3U(q,g3X(q),ZmA(q));q.iframe?q.channel||dza(q,q.iframe,b,y):(cIC(q),y(Error("Ak")))});
this.consentPromise.finally(function(){q.consentPromise=void 0});
return this.consentPromise};
var dza=function(q,N,b,y){var J,E;_.d(function(F){switch(F.nextAddress){case 1:TG(q,3);J=!1;setTimeout(function(){if(!J){cIC(q);uFa(q);zsW(q);var R=waK(7).setErrorMessage("Timeout connecting to iframe");b(ozx(MDC(new PQp,aDX(R)),pax(R)))}},JIc(q,$za(q)));
if(!q.prewarmPromise){F.jumpTo(2);break}_.Yi(F,3);return F.yield(q.prewarmPromise,5);case 5:_.Ea(F,2);break;case 3:_.K7(F),E=waK(4).setErrorMessage("Error while prewarming."),b(ozx(MDC(new PQp,aDX(E)),pax(E)));case 2:q.prewarmChannel&&q.prewarmChannel.send(HOp(ATd(new PQp,q.consentPrimitiveRequest))),q.channel=_.bu({destination:q.win,iframe:N,origin:tOd(q),channelName:"cpw",onEstablished:function(){J=!0;cIC(q);q.isLatencyMeasurementExperiment||(q.JSC$19944_previousBodyOverflow=document.body.style.overflow,
q.JSC$19944_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,q.JSC$19944_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",q.enableDialogA11yFix&&window.addEventListener("blur",q.focusChangeListener));var R=q.iframe;R.style.bottom="0";R.style.position="fixed";R.style.right="0";R.style.border="none";R.style.left="0";R.style.top=
"0";R.style.zIndex="5000";R.style.pointerEvents="";R.style.visibility="";q.initialLoadingStrategy===2||q.initialLoadingStrategy===3?TG(q,4):TG(q,6);var c;(c=q.onConsentPrimitiveShownCallback)==null||c.call(q)},
onMessage:function(R){R=BUp(R.data);switch(_.vc(R,1)){case 1:uFa(q);var c=LIf(_.Vr(R,_.YA,7));c&&(q.initialLoadingStrategy!==2&&q.initialLoadingStrategy!==3||TG(q,6,c),TG(q,5,c));if(c=LIf(_.Vr(R,_.YA,6)))TG(q,7,c),TG(q,8);var z,m;((z=_.Vr(R,nzc,2))==null?void 0:_.$s(z,zG))!==0&&((m=_.Vr(R,WmK,8))==null?void 0:_.$s(m,Lmx))!==0||y(Error("Bk"));b(R);break;case 2:zsW(q)}}}),_.hj(F)}})},FJf=function(q,N,b){q.prewarmChannel=_.bu({destination:q.win,
iframe:N,origin:tOd(q),channelName:"pwcp",onEstablished:function(){TG(q,2);b()}})},tOd=function(q){var N=_.kB(q.src).toString();
return N&&N.indexOf("://")<0&&N.indexOf("//")!==0?q.origin:_.Rpj(N)},g3X=function(q,N){N=N===void 0?!1:N;
var b,y=new Map([["origin",q.origin],["hl",(b=mzc(q))!=null?b:null]]);N&&y.set("pw","1");N=_.Z([["cpr",q.consentPrimitiveRequest.serialize()]]);for(b=N.next();!b.done;b=N.next()){var J=_.Z(b.value);b=J.next().value;J=J.next().value;y.set(b,J)}q.isDarkTheme()&&y.set("color_scheme","dark");return _.Vu(q.src,y)},cIC=function(q){q.isLatencyMeasurementExperiment||q.loadingBar&&document.body.removeChild(q.loadingBar)};
Is.prototype.getSrc=function(){var q=_.dO(this.origin),N;var b=(N=_.Vr(this.consentPrimitiveRequest,kIU,3))==null?void 0:_.tW(N,1);N="consent.google.com";b=b?"/u/"+encodeURIComponent(b.toString()):"";(q==null?0:q.endsWith("youtube.com"))?N="consent.youtube.com":(q=q==null?void 0:q.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(N="consent.google."+((q[1]?"co.":"")+encodeURIComponent(q[2])));return _.hB("https://"+N+"/signedin"+b+"/landing")};
var E3U=function(q,N,b){q.iframe||(q.iframe=document.createElement("iframe"),q.iframe.style.width="100%",q.iframe.style.height="100%",b!==112496729&&(q.iframe.style.colorScheme="auto"),q.isLatencyMeasurementExperiment&&(q.iframe.style.display="none"),_.Nn(q.iframe,N),q.iframe.setAttribute("jsname","C5o1O"),rIW(q.iframe),document.body.appendChild(q.iframe))},rIW=function(q){q.style.bottom="-200vh";
q.style.position="fixed";q.style.right="-200vw";q.style.border="";q.style.left="";q.style.top="";q.style.zIndex="";q.style.pointerEvents="none";q.style.visibility="hidden"},uFa=function(q){q.iframe&&(q.isLatencyMeasurementExperiment||(q.JSC$19944_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=q.JSC$19944_previousHtmlOverscroll),q.JSC$19944_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=q.JSC$19944_previousBodyOverscroll),q.JSC$19944_previousBodyOverflow!==
void 0&&(document.body.style.overflow=q.JSC$19944_previousBodyOverflow),q.enableDialogA11yFix&&XbA(q,!1)),rIW(q.iframe))};
Is.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(XbA(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var XbA=function(q,N){var b,y,J=(b=q.iframe)==null?void 0:(y=b.parentElement)==null?void 0:y.children;if(J)for(b=0;b<J.length;b++)y=J[b],y!==q.iframe&&(N?(y.hasAttribute("aria-hidden")&&_.cx([_.ms(Nea)],y,"data-old-aria-hidden",y.getAttribute("aria-hidden")),_.cx([_.ms(bmA)],y,"aria-hidden","true")):(y.removeAttribute("aria-hidden"),y.hasAttribute("data-old-aria-hidden")&&(_.cx([_.ms(yIp)],y,"aria-hidden",y.getAttribute("data-old-aria-hidden")),y.removeAttribute("data-old-aria-hidden"))))},TG=function(q,
N,b){var y;
(y=q.latencyCallback)==null||y.call(q,{latencyType:N,timestampEpochMillis:b!=null?b:Date.now()})};var VOp=function(q,N,b){Is.call(this,N,b===void 0?!1:b);this.consentPrimitiveRequest=q;q=mzc(this);_.YkK(q);this.src=this.getSrc();var y;this.initialLoadingStrategy=(y=_.Vr(this.consentPrimitiveRequest,$X,4))==null?void 0:_.vc(y,4)},jMA;
_.Y(VOp,Is);var DHU=function(q){var N=_.x("enable_primitive_dialog_aria_hide_siblings");q={request:q,enableDialogA11yFix:N===void 0?!1:N};jMA||(jMA=new VOp(q.request,q.isLatencyMeasurementExperiment||_.vc(q.request,1)===2,q.enableDialogA11yFix));return jMA},mzc=function(q){var N;
return(N=_.Vr(q.consentPrimitiveRequest,$X,4))==null?void 0:_.xs(N,1)},RsB=function(q,N){if(!_.dM(q.consentPrimitiveRequest,CB,5)){var b=q.consentPrimitiveRequest,y=new CB;
_.ws(b,5,y)}var J;if((J=_.Vr(q.consentPrimitiveRequest,CB,5))==null||_.UvD(_.R6(J,8))==null){var E;(E=_.Vr(q.consentPrimitiveRequest,CB,5))!=null&&_.fo(E,8,N)}},ZmA=function(q){var N;
return(N=_.Vr(q.consentPrimitiveRequest,CB,5))==null?void 0:_.tW(N,1)};
VOp.prototype.isDarkTheme=function(){var q;return((q=_.Vr(this.consentPrimitiveRequest,$X,4))==null?void 0:_.vc(q,2))===2};
var $za=function(q){var N;return((N=_.Vr(q.consentPrimitiveRequest,$X,4))==null?void 0:_.tW(N,5))||void 0},zsW=function(q){q.channel=void 0;
q.prewarmChannel=void 0;q.iframe&&(document.body.contains(q.iframe)&&document.body.removeChild(q.iframe),q.iframe=void 0);jMA=void 0},f6A=function(q){return Is.prototype.showPrimitive.call(q).then(function(N){return _.Vr(N,nzc,2)})};for(var s0={},xzp=(s0[64]="ma",s0[73]="ogb",s0[89]="cr",s0[21]="test",s0[0]="unkn",s0[137]="con",s0[155]="hl",s0[78]="yt",s0[171]="lp",s0[172]="ap",s0[177]="amo",s0[178]="pqe",s0[74]="gg",s0[1]="gm",s0[140]="am",s0[193]="sc",s0),v3a=_.Z(Object.keys(xzp)),GDc=v3a.next();!GDc.done;GDc=v3a.next());var YMB=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(YMB,_.Rx);var QMX=[0,[2,3,4],_.Bc,SUf,PKa,_.Pc];var Oma=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(Oma,_.Rx);var wbK=_.xB(Oma,[0,_.Hc,_.LL,_.Bc,_.LL,_.Bc,QMX]);var imp=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(imp,_.Rx);imp.prototype.getCommand=function(){return _.vc(this,1)};
var lOx=function(){var q=new imp;return _.wM(q,1,0)};var KJB=_.vZ([0,_.Hc,_.LL,[0,_.Bc,_.LL,-1]]);var DzW=new _.jk("s"),hsf=new _.jk("t"),kDN=new _.jk("u"),UzB=new _.jk("v"),fOa=function(q,N,b){_.xC.call(this,DzW);this.mediaKey=q;this.photoUrl=N;this.photoSource=b};
_.Y(fOa,_.xC);var Coa=function(){_.xC.call(this,hsf)};
_.Y(Coa,_.xC);var IOf=function(q){q=q===void 0?!1:q;_.xC.call(this,kDN);this.isError=q};
_.Y(IOf,_.xC);var Tec=function(){_.xC.call(this,UzB)};
_.Y(Tec,_.xC);var sMa=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,WJK=function(q){if(typeof q=="string"){if(q.charAt(0)==".")return n3a(q.substr(1));if(q.charAt(0)=="["){var N=sMa.exec(q);q=q.indexOf("=")==-1?void 0:N[3];return aOW(N[1],q)}return SMK(q)}return q},n3a=function(q){return function(N){return N.getAttribute&&_.P2(N,q)}},aOW=function(q,N){return function(b){return N!==void 0?b.getAttribute&&b.getAttribute(q)==N:b.hasAttribute&&b.hasAttribute(q)}},SMK=function(q){q=q.toUpperCase();
return function(N){return(N=N.tagName)&&N.toUpperCase()==q}},LJx=function(){return!0};var nB=function(q,N){this.JSC$19972_key_=q;this.JSC$19972_value_=N},pbx=function(q){throw Error("Ck`"+q.JSC$19972_key_);
},PoA=function(q,N){return new TypeError("Dk`"+N+"`"+q.JSC$19972_key_+"`"+q.JSC$19972_value_+"`"+typeof q.JSC$19972_value_)};
nB.prototype.string=function(q){return arguments.length==0?MON(this):o3c(this,q)};
var o3c=function(q,N){var b;return(b=AIx(q))!=null?b:N},MON=function(q){var N=AIx(q);
N===null&&pbx(q);return N},AIx=function(q){var N=q.JSC$19972_value_;
if(N==null)return null;if(typeof N==="string")return N;throw PoA(q,"string");};
nB.prototype.bool=function(q){if(arguments.length==0){var N=this.optionalBool();N===null&&pbx(this)}else{var b;N=(b=this.optionalBool())!=null?b:q}return N};
nB.prototype.optionalBool=function(){var q=this.JSC$19972_value_;if(q==null)return null;if(typeof q==="boolean")return q;if(typeof q==="string"){q=q.toLowerCase();if(q==="true"||q==="1")return!0;if(q==="false"||q==="0")return!1}throw PoA(this,"boolean");};
nB.prototype.number=function(q){if(arguments.length==0){var N=esC(this);N===null&&pbx(this)}else N=BeK(this,q);return N};
var BeK=function(q,N){var b;return(b=esC(q))!=null?b:N},esC=function(q){var N=q.JSC$19972_value_;
if(N==null)return null;if(typeof N==="number")return N;if(typeof N==="string"){var b=Number(N);if(!isNaN(b)&&(b!==0||N.trim().length!==0))return b}throw PoA(q,"number");};
nB.prototype.toString=function(){return MON(this)};
nB.prototype.enum=function(q,N){var b=!0,y=void 0,J;for(J in q){var E=q[J];b&&(b=!1,y=typeof E==="number"?BeK(this,N):o3c(this,N));if(E==y)return y}JSON.stringify(q);return y};
nB.prototype.array=function(q){if(arguments.length==0){var N=HmK(this);N===null&&pbx(this);return N}N=HmK(this);return N==null?q:N};
var HmK=function(q){var N=q.JSC$19972_value_;if(N==null)return null;Array.isArray(N)||(typeof N!=="string"?N=[N]:(N=N.trim(),N=N==""?[]:N.split(",").map(function(b){return b.trim()})));
return qSf(q,N)},qSf=function(q,N){var b=q.JSC$19972_key_+"[";
return Array.from(N,function(y,J){return new nB(b+J+"]",y)})};
nB.prototype.object=function(q){var N=this.JSC$19972_value_;if(N==null)return q===void 0&&pbx(this),q;if(typeof N==="object"&&N.constructor===Object){q={};var b=this.JSC$19972_key_+".",y;for(y in N)q[y]=new nB(b+y,N[y]);return q}throw PoA(this,"object");};var as=function(q){this.list_=NwC(q)},NwC=function(q){if(q instanceof as)q=q.list_;
else if(q[0]instanceof as){for(var N=new Set,b=0;b<q.length;b++)for(var y=_.Z(q[b].list_),J=y.next();!J.done;J=y.next())N.add(J.value);q=N}return[].concat(_.a9(q))};
_.g=as.prototype;_.g.each=function(q,N,b){((b===void 0?0:b)?ynp:_.Jz)(this.list_,q,N);return this};
_.g.size=function(){return this.list_.length};
_.g.isEmpty=function(){return this.list_.length===0};
_.g.get=function(q){return this.list_[q]||null};
_.g.el=function(){return this.list_[0]||null};
_.g.map=function(q,N){return _.aW(this.list_,q,N)};
_.g.equals=function(q){return this===q||_.BA(this.list_,q.list_)};
_.g.first=function(){return this.list_.length==0?null:new Sb(this.list_[0])};
_.g.last=function(){return this.list_.length==0?null:new Sb(this.list_[this.list_.length-1])};
_.g.find=function(q){var N=[];this.each(function(b){b=b.querySelectorAll(String(q));for(var y=0;y<b.length;y++)N.push(b[y])});
return new as(N)};
_.g.parent=function(){var q=[];this.each(function(N){(N=N.parentElement||null)&&!_.aJ(q,N)&&q.push(N)});
return new as(q)};
_.g.children=function(){var q=[];this.each(function(N){N=_.Uq(N);for(var b=0;b<N.length;b++)q.push(N[b])});
return new as(q)};
_.g.filter=function(q){q=_.ea(this.list_,WJK(q));return new as(q)};
_.g.closest=function(q){var N=[],b=WJK(q),y=function(J){return _.Rp(J)&&b(J)};
this.each(function(J){(J=_.Ph(J,y,!0))&&!_.aJ(N,J)&&N.push(J)});
return new as(N)};
_.g.next=function(q){return bPK(this,_.OMF,q)};
_.g.prev=function(q){return bPK(this,MRU,q)};
var bPK=function(q,N,b){var y=[];var J=b?WJK(b):LJx;q.each(function(E){(E=N(E))&&J(E)&&y.push(E)});
return new as(y)};
as.prototype.setClass=function(q){return this.each(function(N){_.pJ(N,q)})};
var y2c=function(q,N){return q.each(function(b){_.nt(b,N)})},J2f=function(q,N){return q.each(function(b){_.TT(b,N)})};
as.prototype.toggleClass=function(q,N){return N===!0?y2c(this,q):N===!1?J2f(this,q):this.each(function(b){_.P2(b,q)?_.TT(b,q):_.nt(b,q)})};
as.prototype.setText=function(q){return this.each(function(N){_.fG(N,q)})};
var E6a=function(q){q.each(function(N){N.removeAttribute("aria-hidden")})};
as.prototype.getStyle=function(q){if(this.list_.length>0){var N=this.list_[0],b=N.style[_.R$(q)];return typeof b!=="undefined"?b:N.style[_.sWo(N,q)]||""}};
as.prototype.getData=function(q){if(this.list_.length===0)return new nB(q,null);var N=F6A(this.list_[0],q);return new nB(q,N)};
as.prototype.focus=function(q){try{q?this.el().focus(q):this.el().focus()}catch(N){}return this};
as.prototype.click=function(){var q=_.LM(this.el());if(q.createEvent){var N=q.createEvent("MouseEvents");N.initMouseEvent("click",!0,!0,q.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(N)}else q=q.createEventObject(),q.clientX=0,q.clientY=0,q.screenX=0,q.screenY=0,q.altKey=!1,q.ctrlKey=!1,q.shiftKey=!1,q.button=0,this.el().fireEvent("onclick",q)};
var Wr=function(q,N,b,y){function J(R,c,z){var m=c;c&&c.parentNode&&(m=c.cloneNode(!0));R(m,z)}
y=y===void 0?!1:y;if(q.list_.length==1){var E=q.list_[0],F=function(R){return N(R,E)};
b instanceof as?b.each(F,void 0,y):Array.isArray(b)?(y?ynp:_.Jz)(b,F):F(b);return q}return q.each(function(R){b instanceof as?b.each(function(c){J(N,c,R)}):Array.isArray(b)?_.Jz(b,function(c){J(N,c,R)}):J(N,b,R)})};
_.g=as.prototype;_.g.append=function(q){return Wr(this,function(N,b){N&&b.appendChild(N)},q)};
_.g.appendTo=function(q){(new as([q])).append(this);return this};
_.g.remove=function(){return Wr(this,function(q,N){_.lC(N)},null)};
_.g.empty=function(){return Wr(this,function(q,N){_.Do(N)},null)};
_.g.after=function(q,N){return Wr(this,function(b,y){b&&_.k_(b,y)},q,!(N===void 0||N))};
_.g.before=function(q){return Wr(this,function(N,b){N&&_.hx(N,b)},q)};
_.g.replaceWith=function(q){return Wr(this,function(N,b){N&&_.Gb4(N,b)},q)};
_.g.toggle=function(q){return this.each(function(N){_.JX(N,q)})};
_.g.show=function(){return this.toggle(!0)};
_.g.hide=function(){return this.toggle(!1)};
_.g.trigger=function(q,N,b,y){return g6X(this,q,N,b,y)};
var g6X=function(q,N,b,y,J){return q.each(function(E){_.rSd(_.LM(E)).triggerWizEventInternal(E,N,b,y,J)})},Sb=function(q,N){q instanceof as&&(N=q.list_,q=null);
this.list_=NwC(q!=null?[q]:N)};
_.oK(Sb,as);_.g=Sb.prototype;_.g.children=function(){return new as(Array.prototype.slice.call(_.Uq(this.list_[0])))};
_.g.each=function(q,N){q.call(N,this.list_[0],0);return this};
_.g.size=function(){return 1};
_.g.el=function(){return this.list_[0]};
_.g.first=function(){return this};var LB=function(q,N){N=N===void 0?window:N;this.hostId=q;this.win=N;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$19983_previousHtmlOverscroll=this.JSC$19983_previousBodyOverscroll=this.JSC$19983_previousBodyOverflow="";this.eventTarget=new _.O1;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},RPa=function(q){var N=
ZPC(ZPC(ZPC(new FNB(78),"po"),"hppp"),"hhc");
N.authUser=Number(_.M7("SESSION_INDEX","0"));N.colorScheme=q;return N};
LB.prototype.getOrigin=function(){return this.origin?this.origin:_.EI(_.J5(_.yw(new _.a$,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
LB.prototype.getTargetOrigin=function(){return _.EI(_.J5(_.yw(new _.a$,this.scheme),this.domain),this.port)};
LB.prototype.preloadIframe=function(q){var N=this;if(this.iframeLoadPromise===void 0){var b=document.createElement("iframe");this.iframe=b;BjX(b,q);this.iframeLoadPromise=new Promise(function(y,J){var E=!1,F=function(R){R.stopPropagation();b.removeEventListener("error",F);b.removeEventListener("securitypolicyviolation",F);J(Error("Ek",{cause:R}))};
b.addEventListener("error",F);b.addEventListener("securitypolicyviolation",F);setTimeout(function(){E||J(Error("Fk"))},3E4);
dAA(N,b,function(){E=!0;b.removeEventListener("error",F);b.removeEventListener("securitypolicyviolation",F);y()})});
c2X(this);q=this.getTargetOrigin().toString();b.setAttribute("allow","camera "+q+"; display-capture "+q);this.parentElement.appendChild(b)}return this.iframeLoadPromise};
var $AU=function(q,N){var b,y;return _.d(function(J){if(J.nextAddress==1)return b=WIx(getComputedStyle(q.parentElement).direction==="rtl"),q.parentElement.appendChild(b),document.activeElement instanceof HTMLElement&&(q.elementToFocusAfterClose=document.activeElement),_.Yi(J,2),J.yield(q.preloadIframe(N),4);if(J.nextAddress!=2){q.parentElement.removeChild(b);q.JSC$19983_previousBodyOverflow=q.parentElement.style.overflow;q.JSC$19983_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
q.JSC$19983_previousBodyOverscroll=q.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";q.parentElement.style.overscrollBehavior="contain";q.parentElement.style.overflow="hidden";var E=q.iframe;E.style.bottom="0";E.style.border="none";E.style.height="100%";E.style.left="0";E.style.position=q.iframePosition;E.style.right="0";E.style.top="0";E.style.width="100%";E.style.zIndex="2202";E.setAttribute("aria-hidden","false");E.setAttribute("aria-modal","true");
q.opened=!0;u2d(q);return _.Ea(J,0)}y=_.K7(J);q.parentElement.removeChild(b);oeU(q.isDarkTheme());zPX(q,!1);throw Error("Gk",{cause:y});})},zPX=function(q,N){N=N===void 0?!0:N;
q.iframe!==void 0&&(tUA(q),document.documentElement.style.overscrollBehavior=q.JSC$19983_previousHtmlOverscroll,q.parentElement.style.overscrollBehavior=q.JSC$19983_previousBodyOverscroll,q.parentElement.style.overflow=q.JSC$19983_previousBodyOverflow,q.elementToFocusAfterClose!==void 0&&(q.elementToFocusAfterClose.focus(),q.elementToFocusAfterClose=void 0),N?c2X(q):(q.parentElement.removeChild(q.iframe),q.iframe=void 0,q.iframeLoadPromise=void 0,q.mainChannel=void 0),q.opened=!1)},tUA=function(q){q.backgroundElementsAriaHiddenIsNull&&
(E6a(q.backgroundElementsAriaHiddenIsNull),q.backgroundElementsAriaHiddenIsNull=void 0);
q.backgroundElementsAriaHiddenIsFalse&&(q.backgroundElementsAriaHiddenIsFalse.each(function(N){N.setAttribute("aria-hidden","false")}),q.backgroundElementsAriaHiddenIsFalse=void 0);
q.backgroundElementsWithoutInert&&(q.backgroundElementsWithoutInert.each(function(N){N.removeAttribute("inert")}),q.backgroundElementsWithoutInert=void 0)},u2d=function(q){q.backgroundElementsAriaHiddenIsNull=(new Sb(q.iframe.parentElement)).children().filter(function(N){return N.getAttribute("aria-hidden")===null&&N!==q.iframe});
q.backgroundElementsAriaHiddenIsNull.each(function(N){N.setAttribute("aria-hidden","true")});
q.backgroundElementsAriaHiddenIsFalse=(new Sb(q.iframe.parentElement)).children().filter(function(N){return N.getAttribute("aria-hidden")==="false"&&N!==q.iframe});
q.backgroundElementsAriaHiddenIsFalse.each(function(N){N.setAttribute("aria-hidden","true")});
q.backgroundElementsWithoutInert=(new Sb(q.iframe.parentElement)).children().filter(function(N){return!N.hasAttribute("inert")&&N!==q.iframe});
q.backgroundElementsWithoutInert.each(function(N){N.setAttribute("inert","true")})},c2X=function(q){q=q.iframe;
q.style.bottom="-1000px";q.style.position="fixed";q.style.right="-1000px";q.style.border="";q.style.height="";q.style.left="";q.style.top="";q.style.width="";q.style.zIndex="";q.setAttribute("aria-hidden","true");q.setAttribute("aria-modal","false")};
LB.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var FNB=function(q,N){LB.call(this,xzp[q],N);this.options=[];this.style=""};
_.Y(FNB,LB);var mAK=function(q){q.style="youtube";return q},r2B=function(q,N){q.eventTarget.listen(kDN,N);
return q},XWC=function(q,N){q.eventTarget.listen(DzW,N);
return q},ZPC=function(q,N){q.options.push(N);
return q},VUK=function(q){var N=[q.getOrigin()];
q.ancestorOrigins&&N.push.apply(N,_.a9(q.ancestorOrigins));var b=new _.a$(q.win.location.href),y=q.startUrl?q.startUrl:q.options.includes("po")?"profile-picture/art":"profile-picture";N=EQx(_.gH(q.getTargetOrigin(),y),"origin",N);q.startUrl&&_.yS(N,"startPath",q.startUrl);q.authUser>0&&_.yS(N,"authuser",q.authUser);q.pageId!==void 0&&_.yS(N,"pageId",q.pageId);_.yS(N,"hostId",q.hostId);q.jsMode!==void 0&&_.yS(N,"jsmode",q.jsMode);q.rectangleRatio!==void 0&&_.yS(N,"rectangleRatio",q.rectangleRatio);
q.options.length>0&&_.yS(N,"opts",q.options.join(","));try{for(var J=_.Z(["utm_source","utm_medium","utm_campaign","utm_content"]),E=J.next();!E.done;E=J.next()){var F=E.value;_.b5(b,F)&&_.yS(N,F,_.b5(b,F))}var R,c=(R=q.hl)!=null?R:_.b5(b,"hl");c!==void 0&&_.yS(N,"hl",c)}catch(z){if(!(z instanceof URIError))throw z;}q.colorScheme&&_.yS(N,"theme",q.colorScheme);q.style&&_.yS(N,"style",q.style);return N},jzd=function(q,N){q.mainChannel=_.bu({destination:q.win,
iframe:N,origin:q.getTargetOrigin().toString(),channelName:"ow",onMessage:function(b){b=wbK(b.data);if(N===q.iframe)switch(_.vc(b,1)){case 1:q.eventTarget.dispatchEvent(new IOf);zPX(q);break;case 2:q.eventTarget.dispatchEvent(new fOa(_.xs(b,4),_.xs(b,2),_.vc(b,5),_.Vr(b,YMB,6)));break;case 0:var y;q.eventTarget.dispatchEvent(new Coa(_.xs(b,2),(y=_.vc(b,3))!=null?y:0));break;case 3:q.eventTarget.dispatchEvent(new IOf(!0));zPX(q,!1);break;case 4:q.eventTarget.dispatchEvent(new Tec)}}})},dAA=function(q,
N,b){_.bu({destination:q.win,
iframe:N,origin:_.EI(_.J5(_.yw(new _.a$,q.scheme),q.domain),q.port).toString(),channelName:"owi",onMessage:function(y){N===q.iframe&&(b!==void 0&&b(),jzd(q,N),q.opened&&q.mainChannel.send(KJB(lOx())),y.reply(),dAA(q,N))}})};
FNB.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?LB.prototype.preloadIframe.call(this,VUK(this).toString()):this.iframeLoadPromise};
FNB.prototype.openPicker=function(q){var N=this;return _.d(function(b){if(b.nextAddress==1)return N.startUrl=q?q:N.options.includes("po")?"profile-picture/art":"profile-picture",b.yield($AU(N,VUK(N).toString()),2);if(N.mainChannel){var y=N.mainChannel,J=y.send;var E=lOx();E=_.Up(E,2,N.startUrl);J.call(y,KJB(E))}_.hj(b)})};var xAa=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(xAa,_.Rx);_.g=xAa.prototype;_.g.getSize=function(){return xX(this,1)};
_.g.setSize=function(q){return _.On(this,1,q)};
_.g.getWidth=function(){return xX(this,12)};
_.g.getHeight=function(){return xX(this,13)};
_.g.setCenterCrop=function(q){return _.VE(this,20,q)};
_.g.getHtml=function(){return _.Xn(this,4)};
_.g.getToken=function(){return _.wE(this,24)};
_.g.setToken=function(q){return _.Up(this,24,q)};
_.g.getBackgroundColor=function(){return xX(this,87)};
_.g.hasBackgroundColor=function(){return _.dp(_.R6(this,87))!=null};
_.g.getStoryboardLevel=function(){return xX(this,109)};var pB=function(q){this.JSC$19991_value_=void 0;this.childNodes_={};if(q){var N=_.$61(q);q=_.bl(q);for(var b=0;b<N.length;b++)this.set(N[b],q[b])}};
pB.prototype.set=function(q,N){v6K(this,q,N,!1)};
pB.prototype.add=function(q,N){v6K(this,q,N,!0)};
var v6K=function(q,N,b,y){for(var J=0;J<N.length;J++){var E=N.charAt(J);q.childNodes_[E]||(q.childNodes_[E]=new pB);q=q.childNodes_[E]}if(y&&q.JSC$19991_value_!==void 0)throw Error("Hk`"+N);q.JSC$19991_value_=b},GVN=function(q,N){for(var b=0;b<N.length;b++)if(q=q.childNodes_[N.charAt(b)],!q)return;
return q};
pB.prototype.get=function(q){return(q=GVN(this,q))?q.JSC$19991_value_:void 0};
pB.prototype.getValues=function(){var q=[];YSc(this,q);return q};
var YSc=function(q,N){q.JSC$19991_value_!==void 0&&N.push(q.JSC$19991_value_);for(var b in q.childNodes_)YSc(q.childNodes_[b],N)};
pB.prototype.getKeys=function(q){var N=[];if(q){for(var b=this,y=0;y<q.length;y++){var J=q.charAt(y);if(!b.childNodes_[J])return[];b=b.childNodes_[J]}QzW(b,q,N)}else QzW(this,"",N);return N};
var QzW=function(q,N,b){q.JSC$19991_value_!==void 0&&b.push(N);for(var y in q.childNodes_)QzW(q.childNodes_[y],N+y,b)};
_.g=pB.prototype;_.g.containsKey=function(q){return this.get(q)!==void 0};
_.g.containsValue=function(q){if(this.JSC$19991_value_===q)return!0;for(var N in this.childNodes_)if(this.childNodes_[N].containsValue(q))return!0;return!1};
_.g.clear=function(){this.childNodes_={};this.JSC$19991_value_=void 0};
_.g.remove=function(q){for(var N=this,b=[],y=0;y<q.length;y++){var J=q.charAt(y);if(!N.childNodes_[J])throw Error("Ik`"+q);b.push([N,J]);N=N.childNodes_[J]}q=N.JSC$19991_value_;for(delete N.JSC$19991_value_;b.length>0;)if(y=b.pop(),N=y[0],y=y[1],N.childNodes_[y].isEmpty())delete N.childNodes_[y];else break;return q};
_.g.clone=function(){return new pB(this)};
_.g.getCount=function(){return BPK(this.getValues())};
_.g.isEmpty=function(){return this.JSC$19991_value_===void 0&&_.nM.isEmpty(this.childNodes_)};var y3p=function(){if(!OPa){var q=OPa=new pB,N;for(N in wWC)q.add(N,wWC[N])}},OPa,Pr=function(q,N){this.types=q;
this.setters=N},wWC={a:new Pr([3,
0],[function(q,N){_.VE(q,21,N)},
function(q,N){_.On(q,56,N)}]),
al:new Pr([3],[function(q,N){_.VE(q,74,N)}]),
b:new Pr([3,0],[function(q,N){_.VE(q,23,N)},
function(q,N){_.On(q,38,N)}]),
ba:new Pr([0],[function(q,N){_.On(q,85,N)}]),
bc:new Pr([0],[function(q,N){_.On(q,87,N)}]),
br:new Pr([0],[function(q,N){_.On(q,86,N)}]),
c:new Pr([3,0],[function(q,N){_.VE(q,2,N)},
function(q,N){_.On(q,39,N)}]),
cc:new Pr([3],[function(q,N){_.VE(q,51,N)}]),
ci:new Pr([3],[function(q,N){_.VE(q,32,N)}]),
ckm:new Pr([3],[function(q,N){_.VE(q,104,N)}]),
cp:new Pr([0],[function(q,N){_.On(q,92,N)}]),
cr:new Pr([3],[function(q,N){_.VE(q,108,N)}]),
cv:new Pr([0],[function(q,N){_.On(q,94,N)}]),
d:new Pr([3],[function(q,N){_.VE(q,3,N)}]),
dc:new Pr([5],[function(q,N){_.Up(q,99,N)}]),
df:new Pr([3],[function(q,N){_.VE(q,80,N)}]),
dv:new Pr([3],[function(q,N){_.VE(q,90,N)}]),
e:new Pr([0],[function(q,N){_.On(q,15,N)}]),
em:new Pr([0],[function(q,N){_.On(q,107,N)}]),
f:new Pr([4],[function(q,N){_.Up(q,16,N)}]),
fg:new Pr([3],[function(q,N){_.VE(q,34,N)}]),
fh:new Pr([3],[function(q,N){_.VE(q,30,N)}]),
fm:new Pr([3],[function(q,N){_.VE(q,84,N)}]),
fo:new Pr([2],[function(q,N){_.x5(q,79,_.BR(N))}]),
ft:new Pr([3],[function(q,N){_.VE(q,50,N)}]),
fv:new Pr([3],[function(q,N){_.VE(q,31,N)}]),
g:new Pr([3],[function(q,N){_.VE(q,14,N)}]),
gce:new Pr([4],[function(q,N){_.Up(q,112,N)}]),
gd:new Pr([3],[function(q,N){_.VE(q,83,N)}]),
gm:new Pr([3],[function(q,N){_.VE(q,105,N)}]),
h:new Pr([3,0],[function(q,N){_.VE(q,4,N)},
function(q,N){_.On(q,13,N)}]),
i:new Pr([3],[function(q,N){_.VE(q,22,N)}]),
ic:new Pr([0],[function(q,N){_.On(q,71,N)}]),
id:new Pr([3],[function(q,N){_.VE(q,70,N)}]),
il:new Pr([3],[function(q,N){_.VE(q,96,N)}]),
ip:new Pr([3],[function(q,N){_.VE(q,54,N)}]),
iv:new Pr([0],[function(q,N){_.fo(q,75,N)}]),
j:new Pr([1],[function(q,N){N=N==null?N:g0A(N);_.x5(q,29,N)}]),
k:new Pr([3,0],[function(q,N){_.VE(q,17,N)},
function(q,N){_.On(q,42,N)}]),
l:new Pr([0],[function(q,N){_.On(q,44,N)}]),
lf:new Pr([3],[function(q,N){_.VE(q,65,N)}]),
lo:new Pr([3],[function(q,N){_.VE(q,97,N)}]),
m:new Pr([0],[function(q,N){_.On(q,63,N)}]),
md:new Pr([3],[function(q,N){_.VE(q,91,N)}]),
mm:new Pr([4],[function(q,N){_.Up(q,81,N)}]),
mo:new Pr([3],[function(q,N){_.VE(q,73,N)}]),
mp:new Pr([0],[function(q,N){_.On(q,115,N)}]),
mv:new Pr([3],[function(q,N){_.VE(q,66,N)}]),
n:new Pr([3],[function(q,N){q.setCenterCrop(N)}]),
nc:new Pr([3],[function(q,N){_.VE(q,55,N)}]),
nd:new Pr([3],[function(q,N){_.VE(q,53,N)}]),
ng:new Pr([3],[function(q,N){_.VE(q,95,N)}]),
ngm:new Pr([3],[function(q,N){_.VE(q,106,N)}]),
no:new Pr([3],[function(q,N){_.VE(q,37,N)}]),
ns:new Pr([3],[function(q,N){_.VE(q,40,N)}]),
nt0:new Pr([4],[function(q,N){_.Up(q,36,N)}]),
ntm:new Pr([3],[function(q,N){_.VE(q,114,N)}]),
nu:new Pr([3],[function(q,N){_.VE(q,46,N)}]),
nw:new Pr([3],[function(q,N){_.VE(q,48,N)}]),
o:new Pr([1,3],[function(q,N){N=N==null?N:g0A(N);_.x5(q,7,N)},
function(q,N){_.VE(q,27,N)}]),
p:new Pr([3,0],[function(q,N){_.VE(q,19,N)},
function(q,N){_.On(q,43,N)}]),
pa:new Pr([3],[function(q,N){_.VE(q,61,N)}]),
pc:new Pr([0],[function(q,N){_.On(q,88,N)}]),
pd:new Pr([3],[function(q,N){_.VE(q,60,N)}]),
pf:new Pr([3],[function(q,N){_.VE(q,67,N)}]),
pg:new Pr([3],[function(q,N){_.VE(q,72,N)}]),
pi:new Pr([2],[function(q,N){_.x5(q,76,_.BR(N))}]),
pp:new Pr([3],[function(q,N){_.VE(q,52,N)}]),
pt:new Pr([4],[function(q,N){_.Up(q,111,N)}]),
q:new Pr([4],[function(q,N){_.Up(q,28,N)}]),
r:new Pr([3,0],[function(q,N){_.VE(q,6,N)},
function(q,N){_.On(q,26,N)}]),
ra:new Pr([3],[function(q,N){_.VE(q,103,N)}]),
rf:new Pr([3],[function(q,N){_.VE(q,100,N)}]),
rg:new Pr([3],[function(q,N){_.VE(q,59,N)}]),
rh:new Pr([3],[function(q,N){_.VE(q,49,N)}]),
rj:new Pr([3],[function(q,N){_.VE(q,57,N)}]),
ro:new Pr([2],[function(q,N){_.x5(q,78,_.BR(N))}]),
rp:new Pr([3],[function(q,N){_.VE(q,58,N)}]),
rw:new Pr([3],[function(q,N){_.VE(q,35,N)}]),
rwa:new Pr([3],[function(q,N){_.VE(q,64,N)}]),
rwu:new Pr([3],[function(q,N){_.VE(q,41,N)}]),
s:new Pr([3,0],[function(q,N){_.VE(q,33,N)},
function(q,N){q.setSize(N)}]),
sb:new Pr([0],[function(q,N){_.On(q,110,N)}]),
sc:new Pr([0],[function(q,N){_.On(q,89,N)}]),
sg:new Pr([3],[function(q,N){_.VE(q,82,N)}]),
sl:new Pr([0],[function(q,N){_.On(q,109,N)}]),
sm:new Pr([3],[function(q,N){_.VE(q,93,N)}]),
t:new Pr([4],[function(q,N){q.setToken(N)}]),
tm:new Pr([3],[function(q,N){_.VE(q,113,N)}]),
u:new Pr([3],[function(q,N){_.VE(q,18,N)}]),
ut:new Pr([3],[function(q,N){_.VE(q,45,N)}]),
v:new Pr([0],[function(q,N){_.On(q,62,N)}]),
vb:new Pr([0],[function(q,N){_.fo(q,68,N)}]),
vf:new Pr([4],[function(q,N){_.Up(q,102,N)}]),
vl:new Pr([0],[function(q,N){_.fo(q,69,N)}]),
vm:new Pr([3],[function(q,N){_.VE(q,98,N)}]),
w:new Pr([0],[function(q,N){_.On(q,12,N)}]),
x:new Pr([0],[function(q,N){_.On(q,9,N)}]),
y:new Pr([0],[function(q,N){_.On(q,10,N)}]),
ya:new Pr([2],[function(q,N){_.x5(q,77,_.BR(N))}]),
z:new Pr([0],[function(q,N){_.On(q,11,N)}])};
y3p.prototype.parse=function(q){var N=new xAa,b=new xAa;if(q=="")q=!0;else{q=q.split("-");for(var y=!0,J=0;J<q.length;J++){var E=q[J];if(E.length==0)y=!1;else{var F=E,R=!1;var c=F;var z=F.charAt(0);z!=z.toLowerCase()&&(R=!0,c=F.charAt(0).toLowerCase()+F.substring(1));var m=OPa;for(z=1;z<=c.length;++z){var r=m,X=c.substring(0,z);if(X.length==0?r.isEmpty():!GVN(r,X))break}c=z==1?null:(c=m.get(c.substring(0,z-1)))?{option:F.substring(0,z-1),value:F.substring(z-1),signed:R,attributes:c}:null;if(c){F=
[];R=[];z=!1;for(m=0;m<c.attributes.types.length;m++){r=c.attributes.types[m];var V=c.value;X=J;if(c.signed&&r==1)for(var G=V.length;G<12&&X<q.length-1;)V+="-"+q[X+1],G=V.length,++X;else if(r==2)for(;X<q.length-1&&q[X+1].match(/^[\d\.]/);)V+="-"+q[X+1],++X;G=c.attributes.setters[m];V=iPK(this,r)(c.option,V,N,b,G);if(V===null){z=!0;J=X;break}else F.push(r),R.push(V)}if(!z)for(c=0;c<R.length;c++)m=F[c],V=R[c],lGf(this,m)(E,V);y=y&&z}else y=!1}}q=y}return new KNU(N,b,q)};
var DAW=function(q,N,b,y,J,E){J(b,N);q=q.charAt(0);E=E(q==q.toUpperCase());J(y,E)};
_.g=y3p.prototype;_.g.parseAndSetIntOption_=function(q,N,b,y,J){if(N=="")return 0;isFinite(N)&&(N=String(N));N=typeof N==="string"?/^\s*-?0x/i.test(N)?parseInt(N,16):parseInt(N,10):NaN;if(isNaN(N))return 1;DAW(q,N,b,y,J,Number);return null};
_.g.logIntParseError_=function(){};
_.g.parseAndSetFloatOption_=function(q,N,b,y,J){if(N=="")return 0;var E=Number(N);N=E==0&&_.dA(N)?NaN:E;if(isNaN(N))return 1;DAW(q,N,b,y,J,Number);return null};
_.g.logFloatParseError_=function(){};
_.g.parseAndSetBoolOption_=function(q,N,b,y,J){if(N!="")return 2;DAW(q,!0,b,y,J,Boolean);return null};
_.g.logBoolParseError_=function(){};
_.g.parseAndSetStringOption_=function(q,N,b,y,J){if(N=="")return 0;DAW(q,N,b,y,J,function(E){return E?"1":""});
return null};
_.g.logStringParseError_=function(){};
_.g.parseAndSetUint64Base64Option_=function(q,N,b,y,J){if(N=="")return 0;DAW(q,N,b,y,J,function(E){return E?1:0});
return null};
var iPK=function(q,N){switch(N){case 0:return(0,_.fF)(q.parseAndSetIntOption_,q);case 2:return(0,_.fF)(q.parseAndSetFloatOption_,q);case 3:return(0,_.fF)(q.parseAndSetBoolOption_,q);case 4:return(0,_.fF)(q.parseAndSetStringOption_,q);case 1:return(0,_.fF)(q.parseAndSetUint64Base64Option_,q);default:return function(){}}},lGf=function(q,N){switch(N){case 0:return(0,_.fF)(q.logIntParseError_,q);
case 2:return(0,_.fF)(q.logFloatParseError_,q);case 3:return(0,_.fF)(q.logBoolParseError_,q);case 4:case 1:return(0,_.fF)(q.logStringParseError_,q);default:return function(){}}},KNU=function(q,N,b){this.valueProto_=q;
this.signatureFlagProto_=N;this.JSC$20003_valid_=b};
KNU.prototype.isValid=function(){return this.JSC$20003_valid_};var HTd=function(q){this.JSC$20004_parser_=null;this.JSC$20004_components_=[];this.JSC$20004_parsedOptions_=null;hPC(this,q)},kVA=function(q){q.JSC$20004_parser_==null&&(q.JSC$20004_parser_=new y3p);
return q.JSC$20004_parser_},hPC=function(q,N){q.JSC$20004_parsedOptions_=N?typeof N==="string"?kVA(q).parse(N):N:kVA(q).parse("")},MS=function(q,N){return q==N?!1:!0};
_.g=HTd.prototype;_.g.JSC$20006_setCrop=function(q){q=q||void 0;var N=this.JSC$20004_parsedOptions_,b=N.valueProto_;MS(q,_.Xn(b,2),_.Xn(N.signatureFlagProto_,2))&&_.VE(b,2,q);return this};
_.g.JSC$20006_setCircleCrop=function(q){q=q||void 0;var N=this.JSC$20004_parsedOptions_,b=N.valueProto_;MS(q,jb(b,51),jb(N.signatureFlagProto_,51))&&_.VE(b,51,q);return this};
_.g.JSC$20006_setImageCrop=function(q){q=q||void 0;var N=this.JSC$20004_parsedOptions_,b=N.valueProto_;MS(q,jb(b,32),jb(N.signatureFlagProto_,32))&&_.VE(b,32,q);return this};
_.g.JSC$20006_setHeight=function(q){var N=this.JSC$20004_parsedOptions_,b=N.valueProto_;MS(q,b.getHeight(),N.signatureFlagProto_.getHeight())&&_.On(b,13,q);return this};
_.g.setCenterCrop=function(q){q=q||void 0;var N=this.JSC$20004_parsedOptions_,b=N.valueProto_;MS(q,_.Xn(b,20),_.Xn(N.signatureFlagProto_,20))&&b.setCenterCrop(q);return this};
_.g.JSC$20006_setSmartCrop=function(q){q=q||void 0;var N=this.JSC$20004_parsedOptions_,b=N.valueProto_;MS(q,_.Xn(b,19),_.Xn(N.signatureFlagProto_,19))&&_.VE(b,19,q);return this};
_.g.JSC$20006_setPad=function(q){q=q||void 0;var N=this.JSC$20004_parsedOptions_,b=N.valueProto_;MS(q,jb(b,60),jb(N.signatureFlagProto_,60))&&_.VE(b,60,q);return this};
_.g.JSC$20006_setSmartCropUseFace=function(q){q=q||void 0;var N=this.JSC$20004_parsedOptions_,b=N.valueProto_;MS(q,_.Xn(b,67),_.Xn(N.signatureFlagProto_,67))&&_.VE(b,67,q);return this};
_.g.JSC$20006_setSmartCropNoClip=function(q){q=q||void 0;var N=this.JSC$20004_parsedOptions_,b=N.valueProto_;MS(q,_.Xn(b,52),_.Xn(N.signatureFlagProto_,52))&&_.VE(b,52,q);return this};
_.g.setSize=function(q){var N=this.JSC$20004_parsedOptions_,b=N.valueProto_;MS(q,b.getSize(),N.signatureFlagProto_.getSize())&&b.setSize(q);return this};
_.g.setToken=function(q){q=q||void 0;var N=this.JSC$20004_parsedOptions_,b=N.valueProto_;MS(q,b.getToken(),N.signatureFlagProto_.getToken())&&b.setToken(q);return this};
_.g.JSC$20006_setWidth=function(q){var N=this.JSC$20004_parsedOptions_,b=N.valueProto_;MS(q,b.getWidth(),N.signatureFlagProto_.getWidth())&&_.On(b,12,q);return this};
_.g.clearOptions=function(){hPC(this,"");return this};
_.g.build=function(){this.JSC$20004_components_.length=0;var q=this.JSC$20004_parsedOptions_,N=q.valueProto_;q=q.signatureFlagProto_;AR(this,"s",N.getSize(),q.getSize());AR(this,"w",N.getWidth(),q.getWidth());eb(this,"c",_.Xn(N,2),_.Xn(q,2));eb(this,"d",_.Xn(N,3),_.Xn(q,3));AR(this,"h",N.getHeight(),q.getHeight());eb(this,"s",jb(N,33),jb(q,33));eb(this,"h",N.getHtml(),q.getHtml());eb(this,"p",_.Xn(N,19),_.Xn(q,19));eb(this,"pp",_.Xn(N,52),_.Xn(q,52));eb(this,"pf",_.Xn(N,67),_.Xn(q,67));eb(this,"n",
_.Xn(N,20),_.Xn(q,20));AR(this,"r",xX(N,26),xX(q,26));eb(this,"r",_.Xn(N,6),_.Xn(q,6));eb(this,"o",jb(N,27),jb(q,27));var b=_.rM(N,7,_.Fn);Br(this,"o",b,_.rM(q,7,_.Fn));b=_.rM(N,29,_.Fn);Br(this,"j",b,_.rM(q,29,_.Fn));AR(this,"x",xX(N,9),xX(q,9));AR(this,"y",xX(N,10),xX(q,10));AR(this,"z",xX(N,11),xX(q,11));eb(this,"g",_.Xn(N,14),_.Xn(q,14));AR(this,"e",xX(N,15),xX(q,15));Br(this,"f",_.wE(N,16),_.wE(q,16));eb(this,"k",jb(N,17),jb(q,17));eb(this,"u",jb(N,18),!0);eb(this,"ut",jb(N,45),!0);eb(this,"i",
jb(N,22),!0);eb(this,"a",jb(N,21),jb(q,21));eb(this,"b",_.Xn(N,23),_.Xn(q,23));AR(this,"b",xX(N,38),xX(q,38));AR(this,"c",xX(N,39),xX(q,39),16,8);Br(this,"q",_.wE(N,28),_.wE(q,28));eb(this,"fh",jb(N,30),jb(q,30));eb(this,"fv",jb(N,31),jb(q,31));eb(this,"fg",_.Xn(N,34),_.Xn(q,34));eb(this,"ci",jb(N,32),jb(q,32));Br(this,"t",N.getToken(),q.getToken());Br(this,"nt0",_.wE(N,36),_.wE(q,36));eb(this,"rw",_.Xn(N,35),_.Xn(q,35));eb(this,"rwu",_.Xn(N,41),_.Xn(q,41));eb(this,"rwa",_.Xn(N,64),_.Xn(q,64));eb(this,
"nw",_.Xn(N,48),_.Xn(q,48));eb(this,"rh",_.Xn(N,49),_.Xn(q,49));eb(this,"no",_.Xn(N,37),_.Xn(q,37));eb(this,"ns",jb(N,40),jb(q,40));AR(this,"k",xX(N,42),xX(q,42));AR(this,"p",xX(N,43),xX(q,43));AR(this,"l",xX(N,44),xX(q,44));AR(this,"v",xX(N,62),xX(q,62));eb(this,"nu",jb(N,46),jb(q,46));eb(this,"ft",jb(N,50),jb(q,50));eb(this,"cc",jb(N,51),jb(q,51));eb(this,"nd",jb(N,53),jb(q,53));eb(this,"ip",jb(N,54),jb(q,54));eb(this,"nc",jb(N,55),jb(q,55));AR(this,"a",xX(N,56),xX(q,56));eb(this,"rj",jb(N,57),
jb(q,57));eb(this,"rp",jb(N,58),jb(q,58));eb(this,"rg",jb(N,59),jb(q,59));eb(this,"pd",jb(N,60),jb(q,60));eb(this,"pa",jb(N,61),jb(q,61));AR(this,"m",xX(N,63),xX(q,63));AR(this,"vb",vr(N,68),vr(q,68));AR(this,"vl",vr(N,69),vr(q,69));eb(this,"lf",jb(N,65),jb(q,65));eb(this,"mv",jb(N,66),jb(q,66));eb(this,"id",jb(N,70),jb(q,70));AR(this,"ic",xX(N,71),!0);eb(this,"pg",_.Xn(N,72),_.Xn(q,72));eb(this,"mo",jb(N,73),jb(q,73));eb(this,"al",jb(N,74),jb(q,74));AR(this,"iv",vr(N,75),vr(q,75));AR(this,"pi",GG(N,
76),GG(q,76));AR(this,"ya",GG(N,77),GG(q,77));AR(this,"ro",GG(N,78),GG(q,78));AR(this,"fo",GG(N,79),GG(q,79));eb(this,"df",jb(N,80),jb(q,80));Br(this,"mm",_.wE(N,81),_.wE(q,81));eb(this,"sg",jb(N,82),jb(q,82));eb(this,"gd",jb(N,83),jb(q,83));eb(this,"fm",jb(N,84),jb(q,84));AR(this,"ba",xX(N,85),xX(q,85));AR(this,"br",xX(N,86),xX(q,86));AR(this,"bc",N.getBackgroundColor(),q.getBackgroundColor(),16,8);AR(this,"pc",xX(N,88),xX(q,88),16,8);AR(this,"sc",xX(N,89),xX(q,89),16,8);eb(this,"dv",jb(N,90),jb(q,
90));eb(this,"md",jb(N,91),jb(q,91));AR(this,"cp",xX(N,92),xX(q,92));eb(this,"sm",jb(N,93),jb(q,93));AR(this,"cv",xX(N,94),xX(q,94));eb(this,"ng",jb(N,95),jb(q,95));eb(this,"il",jb(N,96),jb(q,96));eb(this,"lo",jb(N,97),jb(q,97));eb(this,"vm",jb(N,98),jb(q,98));Br(this,"dc",_.wE(N,99),_.wE(q,99));eb(this,"rf",jb(N,100),jb(q,100));Br(this,"vf",_.wE(N,102),_.wE(q,102));eb(this,"ra",_.Xn(N,103),_.Xn(q,103));eb(this,"ckm",jb(N,104),jb(q,104));eb(this,"gm",jb(N,105),jb(q,105));eb(this,"ngm",jb(N,106),jb(q,
106));AR(this,"em",xX(N,107),xX(q,107));eb(this,"cr",jb(N,108),jb(q,108));AR(this,"sl",N.getStoryboardLevel(),q.getStoryboardLevel());AR(this,"sb",xX(N,110),xX(q,110));Br(this,"pt",_.wE(N,111),_.wE(q,111));Br(this,"gce",_.wE(N,112),_.wE(q,112));eb(this,"tm",jb(N,113),jb(q,113));eb(this,"ntm",jb(N,114),jb(q,114));AR(this,"mp",xX(N,115),xX(q,115));return this.JSC$20004_components_.join("-")};
var AR=function(q,N,b,y,J,E){if(b!=null){var F=J==void 0||J!=10&&J!=16?10:J;b=Number(b).toString(F);J=new GTK;J.append(F==16?"0x":"");F=J.append;E==void 0?E="":(E-=b.length,E=E<=0?"":(0,_.cjT)("0",E));F.call(J,E);J.append(b);UAA(q,N,J.toString(),!!Number(y))}},eb=function(q,N,b,y){b&&UAA(q,N,"",!!y)},Br=function(q,N,b,y){b&&UAA(q,N,String(b),!!Number(y))},UAA=function(q,N,b,y){y&&(N=N.charAt(0).toUpperCase()+N.substring(1));
q.JSC$20004_components_.push(N+b)};_.oK(Cy,HTd);_.g=Cy.prototype;_.g.JSC$20006_setCrop=function(q){q&&Hr(this);return Cy.superClass_.JSC$20006_setCrop.call(this,q)};
_.g.JSC$20006_setHeight=function(q){q=q==null||q<0?void 0:q;q!=null&&this.setSize();return Cy.superClass_.JSC$20006_setHeight.call(this,q)};
_.g.JSC$20006_setImageCrop=function(q){q&&Hr(this);return Cy.superClass_.JSC$20006_setImageCrop.call(this,q)};
_.g.JSC$20006_setCircleCrop=function(q){q&&Hr(this);return Cy.superClass_.JSC$20006_setCircleCrop.call(this,q)};
_.g.setSize=function(q){_.AZ(q)&&(q=Math.max(q.width,q.height));q=q==null||q<0?void 0:q;q!=null&&(this.JSC$20006_setWidth(),this.JSC$20006_setHeight());return Cy.superClass_.setSize.call(this,q)};
_.g.JSC$20006_setSmartCrop=function(q){q&&Hr(this);return Cy.superClass_.JSC$20006_setSmartCrop.call(this,q)};
_.g.JSC$20006_setSmartCropNoClip=function(q){q&&Hr(this);return Cy.superClass_.JSC$20006_setSmartCropNoClip.call(this,q)};
_.g.JSC$20006_setSmartCropUseFace=function(q){q&&Hr(this);return Cy.superClass_.JSC$20006_setSmartCropUseFace.call(this,q)};
_.g.setCenterCrop=function(q){q&&Hr(this);return Cy.superClass_.setCenterCrop.call(this,q)};
_.g.JSC$20006_setPad=function(q){q&&Hr(this);return Cy.superClass_.JSC$20006_setPad.call(this,q)};
_.g.JSC$20006_setWidth=function(q){q=q==null||q<0?void 0:q;q!=null&&this.setSize();return Cy.superClass_.JSC$20006_setWidth.call(this,q)};
var fGK=function(q){q.clearOptions();var N=q.JSC$20004_parsedOptions_,b=N.valueProto_;MS(!0,_.Xn(b,3),_.Xn(N.signatureFlagProto_,3))&&_.VE(b,3,!0);return q},Hr=function(q){q.setCenterCrop();
q.JSC$20006_setCircleCrop();q.JSC$20006_setCrop();q.JSC$20006_setImageCrop();q.JSC$20006_setPad();q.JSC$20006_setSmartCrop();q.JSC$20006_setSmartCropNoClip();q.JSC$20006_setSmartCropUseFace()};
Cy.prototype.build=function(){var q=this.JSC$20004_parsedOptions_.valueProto_;jb(q,18)||jb(q,45)?q.getSize()||this.setSize(0):(q=this.JSC$20004_parsedOptions_.valueProto_,q.getSize()||q.getWidth()||q.getHeight()||(this.setSize(),this.JSC$20006_setHeight(),this.JSC$20006_setWidth(),Hr(this)));return Cy.superClass_.build.call(this)};var CdC=/^[^\/]*\/\//,IGf=function(q,N){N=N===void 0?!1:N;this.original_=q;this.originalPrefix_="";(q=this.original_.match(CdC))&&q[0]?(this.originalPrefix_=q[0],q=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):q="http://"+this.original_;this.uri_=_.N0(q,!0);this.isFreeformUrl_=N;this.JSC$20010_valid_=!0;this.obfuscated_=!1},TwN=function(q,N){q.JSC$20012_pathPrefix_=q.JSC$20012_pathPrefix_?q.JSC$20012_pathPrefix_+("/"+N):N},qU=function(q){if(q.JSC$20012_components_==
void 0){var N=q.uri_.getPath().substring(1);
q.JSC$20012_pathPrefix_=null;if(q.isFreeformUrl_){q.JSC$20012_components_=[];if((N.match(/=/g)||[]).length>1)return q.JSC$20010_valid_=!1,q.JSC$20012_components_;var b=N.indexOf("=");b!=-1?(q.JSC$20012_components_.push(N.substr(0,b)),q.JSC$20012_components_.push(N.substr(b+1))):q.JSC$20012_components_.push(N);return q.JSC$20012_components_}q.JSC$20012_components_=N.split("/");N=q.JSC$20012_components_.length;N>2&&q.JSC$20012_components_[0]=="u"&&(TwN(q,q.JSC$20012_components_[0]+"/"+q.JSC$20012_components_[1]),
q.JSC$20012_components_.shift(),q.JSC$20012_components_.shift(),N-=2);if(N==0||N==4||N>7)return q.JSC$20010_valid_=!1,q.JSC$20012_components_;if(N==2)TwN(q,q.JSC$20012_components_[0]);else if(q.JSC$20012_components_[0]=="image")TwN(q,q.JSC$20012_components_[0]);else if(N==7||N==3)return q.JSC$20010_valid_=!1,q.JSC$20012_components_;if(N<=3){q.obfuscated_=!0;N==3&&(TwN(q,q.JSC$20012_components_[1]),q.JSC$20012_components_.shift(),--N);--N;b=q.JSC$20012_components_[N];var y=b.indexOf("=");y!=-1&&(q.JSC$20012_components_[N]=
b.substr(0,y),q.JSC$20012_components_.push(b.substr(y+1)))}}return q.JSC$20012_components_};
IGf.prototype.isValid=function(){qU(this);return this.JSC$20010_valid_};
IGf.prototype.isObfuscated=function(){qU(this);return this.obfuscated_};
var szK=function(q){qU(q);return q.isFreeformUrl_},NU=function(q){qU(q);
q.JSC$20012_pathPrefix_==void 0&&(q.JSC$20012_pathPrefix_=null);return q.JSC$20012_pathPrefix_},n6A=function(q){switch(qU(q).length){case 7:return!0;
case 6:return NU(q)==null;case 5:return!1;case 3:return!0;case 2:return NU(q)==null;case 1:return!1;default:return!1}},bO=function(q,N){if(szK(q))a:{switch(N){case 7:N=0;
break;case 4:if(!n6A(q)){q=null;break a}N=1;break;default:q=null;break a}q=qU(q)[N]}else if(q.isObfuscated())a:{var b=NU(q)!=null?1:0;switch(N){case 6:N=b;break;case 4:if(!n6A(q)){q=null;break a}N=1+b;break;default:q=null;break a}q=qU(q)[N]}else a:{b=NU(q)!=null?1:0;switch(N){case 0:N=b;break;case 1:N=1+b;break;case 2:N=2+b;break;case 3:N=3+b;break;case 4:if(!n6A(q)){q=null;break a}N=4+b;break;case 5:N=n6A(q)?1:0;N=4+b+N;break;default:q=null;break a}q=qU(q)[N]}return q};
IGf.prototype.getOptions=function(){this.options_==void 0&&(this.options_=bO(this,4));return this.options_};var b0B=function(){};
b0B.prototype.parse=function(q,N){return new qAU(q,N===void 0?!1:N)};
var qAU=function(q,N){IGf.call(this,q,N===void 0?!1:N)};
_.Y(qAU,IGf);_.oK(J3a,Cy);var NRW;J3a.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
J3a.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var q=J3a.superClass_.build.call(this),N=[];NU(this.parsedImageUrl_)!=null&&N.push(NU(this.parsedImageUrl_));var b=szK(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var y=this.parsedImageUrl_;y.obfuscatedData_==void 0&&(y.obfuscatedData_=bO(y,6));N.push(y.obfuscatedData_+(q?"="+q:""))}else if(b){y=N.push;var J=this.parsedImageUrl_;J.freeformUrlPath_===void 0&&(J.freeformUrlPath_=
bO(J,7));y.call(N,J.freeformUrlPath_);q&&N.push(q)}else y=N.push,J=this.parsedImageUrl_,J.obfuscatedGaiaId_==void 0&&(J.obfuscatedGaiaId_=bO(J,0)),y.call(N,J.obfuscatedGaiaId_),y=N.push,J=this.parsedImageUrl_,J.photoId_==void 0&&(J.photoId_=bO(J,1)),y.call(N,J.photoId_),y=N.push,J=this.parsedImageUrl_,J.imageVersion_==void 0&&(J.imageVersion_=bO(J,2)),y.call(N,J.imageVersion_),y=N.push,J=this.parsedImageUrl_,J.signature_==void 0&&(J.signature_=bO(J,3)),y.call(N,J.signature_),q&&N.push(q),q=N.push,
y=this.parsedImageUrl_,y.filename_==void 0&&(y.filename_=bO(y,5)),q.call(N,y.filename_);N=b?N.join("="):N.join("/");N=_.N0(this.protocolPrefix_+this.JSC$20018_domain_+"/"+N+(this.JSC$20018_query_?"?"+this.JSC$20018_query_:"")).toString();N.startsWith("%3a//")&&(N=N.replace("%3a//","://"));return N};var aGW=_.Tt(["viewBox"]),SSA=_.Tt(["width"]),WNX=_.Tt(["height"]),LNf=_.Tt(["fill"]),pWx=_.Tt(["id"]),Pdd=_.Tt(["x"]),MUN=_.Tt(["y"]);EAf.prototype.getLength=function(){return this.parsedData.length};
EAf.prototype.write=function(q){for(var N=0,b=this.parsedData.length;N<b;N++)q.put(this.parsedData[N],8)};
var uOa=function(q,N){var b=new EAf(N);q.dataList.push(b);b=q.errorCorrectLevel;var y=1,J=encodeURI(N).toString().replace(/%[0-9a-fA-F]{2}/g,"a");N=J.length+(J.length!=N?3:0);J=0;for(var E=yB.length;J<=E;J++){var F=0;switch(b){case 1:F=yB[J][0];break;case 0:F=yB[J][1];break;case 3:F=yB[J][2];break;case 2:F=yB[J][3]}if(N<=F)break;else y++}if(y>yB.length)throw Error("Rk");q.typeNumber=y;q.dataCache=null};
gAN.prototype.isDark=function(q,N){if(q<0||this.moduleCount<=q||N<0||this.moduleCount<=N)throw Error("Jk`"+q+"`"+N);return this.modules[q][N]};
for(var zNc=function(q,N,b){q.moduleCount=q.typeNumber*4+17;q.modules=Array(q.moduleCount);for(var y=0;y<q.moduleCount;y++){q.modules[y]=Array(q.moduleCount);for(var J=0;J<q.moduleCount;J++)q.modules[y][J]=null}o6f(q,0,0);o6f(q,q.moduleCount-7,0);o6f(q,0,q.moduleCount-7);y=A2p[q.typeNumber-1];for(J=0;J<y.length;J++)for(var E=0;E<y.length;E++){var F=y[J],R=y[E];if(q.modules[F][R]==null)for(var c=-2;c<=2;c++)for(var z=-2;z<=2;z++)q.modules[F+c][R+z]=c==-2||c==2||z==-2||z==2||c==0&&z==0?!0:!1}for(y=
8;y<q.moduleCount-8;y++)q.modules[y][6]==null&&(q.modules[y][6]=y%2==0);for(y=8;y<q.moduleCount-8;y++)q.modules[6][y]==null&&(q.modules[6][y]=y%2==0);y=q.errorCorrectLevel<<3|b;for(J=y<<10;J6(J)-J6(1335)>=0;)J^=1335<<J6(J)-J6(1335);y=(y<<10|J)^21522;for(J=0;J<15;J++)E=!N&&(y>>J&1)==1,J<6?q.modules[J][8]=E:J<8?q.modules[J+1][8]=E:q.modules[q.moduleCount-15+J][8]=E;for(J=0;J<15;J++)E=!N&&(y>>J&1)==1,J<8?q.modules[8][q.moduleCount-J-1]=E:J<9?q.modules[8][15-J-1+1]=E:q.modules[8][15-J-1]=E;q.modules[q.moduleCount-
8][8]=!N;if(q.typeNumber>=7){y=q.typeNumber;for(J=y<<12;J6(J)-J6(7973)>=0;)J^=7973<<J6(J)-J6(7973);y=y<<12|J;for(J=0;J<18;J++)E=!N&&(y>>J&1)==1,q.modules[Math.floor(J/3)][J%3+q.moduleCount-8-3]=E;for(J=0;J<18;J++)E=!N&&(y>>J&1)==1,q.modules[J%3+q.moduleCount-8-3][Math.floor(J/3)]=E}if(q.dataCache==null){J=q.typeNumber;E=q.dataList;N=q.errorCorrectLevel;y=ePN(J,N);if(y==void 0)throw Error("Qk`"+J+"`"+N);F=y.length/3;N=[];for(R=0;R<F;R++){c=y[R*3];z=y[R*3+1];for(var m=y[R*3+2],r=0;r<c;r++)N.push(new Z0f(z,
m))}y=new FUC;for(F=0;F<E.length;F++)R=E[F],y.put(R.mode,4),y.put(R.getLength(),Bwf(R.mode,J)),R.write(y);for(F=J=0;F<N.length;F++)J+=N[F].dataCount;if(y.length>J*8)throw Error("Kk`"+y.length+"`"+J*8);for(y.length+4<=J*8&&y.put(0,4);y.length%8!=0;)HPc(y,!1);for(;!(y.length>=J*8);){y.put(236,8);if(y.length>=J*8)break;y.put(17,8)}E=J=z=0;F=Array(N.length);R=Array(N.length);for(c=0;c<N.length;c++){r=N[c].dataCount;var X=N[c].totalCount-r;J=Math.max(J,r);E=Math.max(E,X);F[c]=Array(r);for(m=0;m<F[c].length;m++)F[c][m]=
255&y.buffer[m+z];z+=r;m=X;r=new I4([1],0);for(X=0;X<m;X++)r=r.multiply(new I4([1,quC(X)],0));m=r;r=(new I4(F[c],m.getLength()-1)).mod(m);R[c]=Array(m.getLength()-1);for(m=0;m<R[c].length;m++)X=m+r.getLength()-R[c].length,R[c][m]=X>=0?r.get(X):0}for(m=y=0;m<N.length;m++)y+=N[m].totalCount;y=Array(y);for(m=z=0;m<J;m++)for(c=0;c<N.length;c++)m<F[c].length&&(y[z++]=F[c][m]);for(m=0;m<E;m++)for(c=0;c<N.length;c++)m<R[c].length&&(y[z++]=R[c][m]);q.dataCache=y}N=q.dataCache;y=-1;J=q.moduleCount-1;E=7;F=
0;for(R=q.moduleCount-1;R>0;R-=2)for(R==6&&R--;;){for(c=0;c<2;c++)q.modules[J][R-c]==null&&(z=!1,F<N.length&&(z=(N[F]>>>E&1)==1),NTU(b,J,R-c)&&(z=!z),q.modules[J][R-c]=z,E--,E==-1&&(F++,E=7));J+=y;if(J<0||q.moduleCount<=J){J-=y;y=-y;break}}},o6f=function(q,N,b){for(var y=-1;y<=7;y++)if(!(N+y<=-1||q.moduleCount<=N+y))for(var J=-1;J<=7;J++)b+J<=-1||q.moduleCount<=b+J||(q.modules[N+y][b+J]=0<=y&&y<=6&&(J==0||J==6)||0<=J&&J<=6&&(y==0||y==6)||2<=y&&y<=4&&2<=J&&J<=4?!0:!1)},$1f=function(q){for(var N=0,
b=0,y=0;y<8;y++){zNc(q,!0,y);
var J=q;for(var E=J.moduleCount,F=0,R=0;R<E;R++)for(var c=0;c<E;c++){for(var z=0,m=J.isDark(R,c),r=-1;r<=1;r++)if(!(R+r<0||E<=R+r))for(var X=-1;X<=1;X++)c+X<0||E<=c+X||(r!=0||X!=0)&&m==J.isDark(R+r,c+X)&&z++;z>5&&(F+=3+z-5)}for(R=0;R<E-1;R++)for(c=0;c<E-1;c++)if(z=0,J.isDark(R,c)&&z++,J.isDark(R+1,c)&&z++,J.isDark(R,c+1)&&z++,J.isDark(R+1,c+1)&&z++,z==0||z==4)F+=3;for(R=0;R<E;R++)for(c=0;c<E-6;c++)J.isDark(R,c)&&!J.isDark(R,c+1)&&J.isDark(R,c+2)&&J.isDark(R,c+3)&&J.isDark(R,c+4)&&!J.isDark(R,c+5)&&
J.isDark(R,c+6)&&(F+=40);for(c=0;c<E;c++)for(R=0;R<E-6;R++)J.isDark(R,c)&&!J.isDark(R+1,c)&&J.isDark(R+2,c)&&J.isDark(R+3,c)&&J.isDark(R+4,c)&&!J.isDark(R+5,c)&&J.isDark(R+6,c)&&(F+=40);for(c=z=0;c<E;c++)for(R=0;R<E;R++)J.isDark(R,c)&&z++;J=F+=Math.abs(100*z/E/E-50)/5*10;if(y==0||N>J)N=J,b=y}return b},A2p=[[],
[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]],J6=function(q){for(var N=0;q!=0;)N++,q>>>=1;return N},NTU=function(q,N,b){switch(q){case 0:return(N+b)%2==0;
case 1:return N%2==0;case 2:return b%3==0;case 3:return(N+b)%3==0;case 4:return(Math.floor(N/2)+Math.floor(b/3))%2==0;case 5:return N*b%2+N*b%3==0;case 6:return(N*b%2+N*b%3)%2==0;case 7:return(N*b%3+(N+b)%2)%2==0;default:throw Error("Lk`"+q);}},Bwf=function(q,N){if(1<=N&&N<10)switch(q){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Mk`"+q);}else if(N<27)switch(q){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Mk`"+q);}else if(N<41)switch(q){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Mk`"+q);}else throw Error("Nk`"+N);},y$C=function(q){if(q<1)throw Error("Ok`"+q);
return bVN[q]},quC=function(q){for(;q<0;)q+=255;
for(;q>=256;)q-=255;return ET[q]},ET=Array(256),bVN=Array(256),J$X=0;J$X<8;J$X++)ET[J$X]=1<<J$X;
for(var g6=8;g6<256;g6++)ET[g6]=ET[g6-4]^ET[g6-5]^ET[g6-6]^ET[g6-8];for(var EYW=0;EYW<255;EYW++)bVN[ET[EYW]]=EYW;I4.prototype.get=function(q){return this.num[q]};
I4.prototype.getLength=function(){return this.num.length};
I4.prototype.multiply=function(q){for(var N=Array(this.getLength()+q.getLength()-1),b=0;b<this.getLength();b++)for(var y=0;y<q.getLength();y++)N[b+y]^=quC(y$C(this.get(b))+y$C(q.get(y)));return new I4(N,0)};
I4.prototype.mod=function(q){if(this.getLength()-q.getLength()<0)return this;for(var N=y$C(this.get(0))-y$C(q.get(0)),b=Array(this.getLength()),y=0;y<this.getLength();y++)b[y]=this.get(y);for(y=0;y<q.getLength();y++)b[y]^=quC(y$C(q.get(y))+N);return(new I4(b,0)).mod(q)};
var gYd=[[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]],ePN=function(q,N){switch(N){case 1:return gYd[(q-1)*4];case 0:return gYd[(q-1)*4+1];case 3:return gYd[(q-1)*4+2];case 2:return gYd[(q-1)*4+3]}};
FUC.prototype.get=function(q){return(this.buffer[Math.floor(q/8)]>>>7-q%8&1)==1};
FUC.prototype.put=function(q,N){for(var b=0;b<N;b++)HPc(this,(q>>>N-b-1&1)==1)};
var HPc=function(q,N){var b=Math.floor(q.length/8);q.buffer.length<=b&&q.buffer.push(0);N&&(q.buffer[b]|=128>>>q.length%8);q.length++},yB=[[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]],c3A=function(){var q=function(N,b){this.JSC$20038__el=N;this.JSC$20038__htOption=b};
q.prototype.draw=function(N){function b(m,r){m=document.createElementNS("http://www.w3.org/2000/svg",m);for(var X in r)r.hasOwnProperty(X)&&(X==="href"?_.hnX(m,r[X]):_.cx([_.ms(aGW),_.ms(SSA),_.ms(WNX),_.ms(LNf),_.ms(pWx),_.ms(Pdd),_.ms(MUN)],m,X,r[X]));return m}
var y=this.JSC$20038__htOption,J=this.JSC$20038__el,E=N.moduleCount;this.clear();var F=b("svg",{viewBox:"0 0 "+String(E)+" "+String(E),width:"100%",height:"100%",fill:y.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});J.appendChild(F);F.appendChild(b("rect",{fill:y.colorLight,width:"100%",height:"100%"}));F.appendChild(b("rect",{fill:y.colorDark,width:"1",height:"1",id:"template"}));for(var R=0;R<E;R++)for(var c=0;c<E;c++)if(N.isDark(R,c)){var z=b("use",{x:String(R),y:String(c),href:"#template"});
F.appendChild(z)}};
q.prototype.clear=function(){for(;this.JSC$20038__el.hasChildNodes();)this.JSC$20038__el.removeChild(this.JSC$20038__el.lastChild)};
return q}(),d1a=document.documentElement.tagName.toLowerCase()==="svg"?c3A:typeof CanvasRenderingContext2D!="undefined"?function(){var q=function(N,b){this._bIsPainted=!1;
RNc();this.JSC$20038__htOption=b;this._elCanvas=document.createElement("canvas");this._elCanvas.width=b.width;this._elCanvas.height=b.height;N.appendChild(this._elCanvas);this.JSC$20038__el=N;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$20038__el.appendChild(this._elImage);this._bSupportDataURI=null};
q.prototype._onMakeImage=function(){var N=this._elCanvas.toDataURL("image/png");this._elImage.src=N;this._elImage.style.display="block";this._elCanvas.style.display="none"};
q.prototype._safeSetDataURI=function(N,b){var y=this;y._fFail=b;y._fSuccess=N;y._bSupportDataURI===null?(N=_.iC("IMG"),b=function(){y._bSupportDataURI=!1;y._fFail&&y._fFail.call(y)},N.onabort=b,N.onerror=b,N.onload=function(){y._bSupportDataURI=!0;
y._fSuccess&&y._fSuccess.call(y)},N.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):y._bSupportDataURI===!0&&y._fSuccess?y._fSuccess.call(y):y._bSupportDataURI===!1&&y._fFail&&y._fFail.call(y)};
q.prototype.draw=function(N){var b=this._oContext,y=this.JSC$20038__htOption,J=N.moduleCount,E=y.width/J,F=y.height/J,R=Math.round(E),c=Math.round(F);this._elImage.style.display="none";this.clear();for(var z=0;z<J;z++)for(var m=0;m<J;m++){var r=N.isDark(z,m),X=m*E,V=z*F;b.strokeStyle=r?y.colorDark:y.colorLight;b.lineWidth=1;b.fillStyle=r?y.colorDark:y.colorLight;b.fillRect(X,V,E,F);b.strokeRect(Math.floor(X)+.5,Math.floor(V)+.5,R,c);b.strokeRect(Math.ceil(X)-.5,Math.ceil(V)-.5,R,c)}this._bIsPainted=
!0};
q.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
q.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
q.prototype.round=function(N){return N?Math.floor(N*1E3)/1E3:N};
return q}():function(){var q=function(N,b){this.JSC$20038__el=N;
this.JSC$20038__htOption=b};
q.prototype.draw=function(N){for(var b=this.JSC$20038__htOption,y=this.JSC$20038__el,J=N.moduleCount,E=Math.floor(b.width/J),F=Math.floor(b.height/J),R=['<table style="border:0;border-collapse:collapse;">'],c=0;c<J;c++){R.push("<tr>");for(var z=0;z<J;z++)R.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+E+"px;height:"+F+"px;background-color:"+(N.isDark(c,z)?b.colorDark:b.colorLight)+';"></td>');R.push("</tr>")}R.push("</table>");N=R.join("");N=_.Nzx(_.ybx,N);_.d0(y,N);
N=y.childNodes[0];J=(b.width-N.offsetWidth)/2;E=(b.height-N.offsetHeight)/2;J>0&&E>0&&(N.style.margin=E+"px "+J+"px")};
q.prototype.clear=function(){this.JSC$20038__el.textContent=""};
return q}();
tPX.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$20041__android||this.JSC$20041__android>=3)&&this._oDrawing.makeImage()};
tPX.prototype.clear=function(){this._oDrawing.clear()};
_.JZ.QRCode=tPX;var ZVa={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Fux=function(){};
Fux.prototype.stringify=function(q){return _.JZ.JSON.stringify(q,void 0)};
Fux.prototype.parse=function(q){return _.JZ.JSON.parse(q,void 0)};var RZA=function(){_.xC.call(this,"z")};
_.oK(RZA,_.xC);var dTB=function(){_.xC.call(this,"y")};
_.oK(dTB,_.xC);var c$U=null,u5U=function(){return c$U=c$U||new _.O1},zZC=function(q){_.xC.call(this,"serverreachability",q)};
_.oK(zZC,_.xC);var $Tc=function(q){var N=u5U();N.dispatchEvent(new zZC(N,q))},t9A=function(q,N){_.xC.call(this,"statevent",q);
this.stat=N};
_.oK(t9A,_.xC);var ZK=function(q){var N=u5U();N.dispatchEvent(new t9A(N,q))},mTf=function(q,N,b,y){_.xC.call(this,"timingevent",q);
this.size=N;this.rtt=b;this.retries=y};
_.oK(mTf,_.xC);var r$B=function(q,N,b){var y=u5U();y.dispatchEvent(new mTf(y,q,N,b))},XQB=function(q,N){if(typeof q!=="function")throw Error("Sk");
return _.JZ.setTimeout(function(){q()},N)};var FL=function(){this.redactEnabled_=!0};
FL.prototype.disableRedact=function(){this.redactEnabled_=!1};
var V9a=function(q,N,b,y,J,E){q.info(function(){if(q.redactEnabled_)if(E){var F="";for(var R=E.split("&"),c=0;c<R.length;c++){var z=R[c].split("=");if(z.length>1){var m=z[0];z=z[1];var r=m.split("_");F=r.length>=2&&r[1]=="type"?F+(m+"="+z+"&"):F+(m+"=redacted&")}}}else F=null;else F=E;return"XMLHTTP REQ ("+y+") [attempt "+J+"]: "+N+"\n"+b+"\n"+F})},jRd=function(q,N,b,y,J,E,F){q.info(function(){return"XMLHTTP RESP ("+y+") [ attempt "+J+"]: "+N+"\n"+b+"\n"+E+" "+F})},Ra=function(q,N,b,y){q.info(function(){return"XMLHTTP TEXT ("+
N+"): "+xTp(q,b)+(y?" "+y:"")})},vYC=function(q,N){q.info(function(){return"TIMEOUT: "+N})};
FL.prototype.debug=function(){};
FL.prototype.info=function(){};
FL.prototype.warning=function(){};
var xTp=function(q,N){if(!q.redactEnabled_)return N;if(!N)return null;try{var b=JSON.parse(N);if(b)for(var y=0;y<b.length;y++)if(Array.isArray(b[y])){var J=b[y];if(!(J.length<2)){var E=J[1];if(Array.isArray(E)&&!(E.length<1)){var F=E[0];if(F!="noop"&&F!="stop"&&F!="close")for(var R=1;R<E.length;R++)E[R]=""}}}return(0,_.kC)(b)}catch(c){return q.debug("Exception parsing expected JS array - probably was not JS"),N}};var d6=function(q,N,b,y,J){this.JSC$20063_channel_=q;this.JSC$20063_channelDebug_=N;this.sid_=b;this.JSC$20063_rid_=y;this.JSC$20063_retryId_=J||1;this.JSC$20063_eventHandler_=new _.xH(this);this.timeout_=45E3;this.JSC$20063_extraHeaders_=null;this.JSC$20063_successful_=!1;this.JSC$20063_postData_=this.JSC$20063_requestUri_=this.JSC$20063_baseUri_=this.JSC$20063_type_=this.JSC$20063_requestStartTime_=this.JSC$20063_watchDogTimeoutTime_=this.JSC$20063_watchDogTimerId_=null;this.JSC$20063_pendingMessages_=
[];this.JSC$20063_xmlHttp_=null;this.JSC$20063_xmlHttpChunkStart_=0;this.JSC$20063_lastError_=this.JSC$20063_verb_=null;this.JSC$20063_lastStatusCode_=-1;this.JSC$20063_cancelled_=!1;this.JSC$20063_readyStateChangeThrottleMs_=0;this.JSC$20063_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new GEa},GEa=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},YuA=function(q,N){switch(q){case 0:return"Non-200 return code ("+N+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},QRx={},OVB={};
d6.prototype.setTimeout=function(q){this.timeout_=q};
var iVa=function(q,N,b){q.JSC$20063_type_=1;q.JSC$20063_baseUri_=_.ul(N.clone());q.JSC$20063_postData_=b;q.decodeChunks_=!0;wQp(q,null)},wQp=function(q,N){q.JSC$20063_requestStartTime_=Date.now();
lcp(q);q.JSC$20063_requestUri_=q.JSC$20063_baseUri_.clone();EQx(q.JSC$20063_requestUri_,"t",q.JSC$20063_retryId_);q.JSC$20063_xmlHttpChunkStart_=0;var b=q.JSC$20063_channel_.JSC$20082_supportsCrossDomainXhrs_;q.fetchResponseState_=new GEa;q.JSC$20063_xmlHttp_=KuC(q.JSC$20063_channel_,b?N:null,!q.JSC$20063_postData_);q.JSC$20063_readyStateChangeThrottleMs_>0&&(q.JSC$20063_readyStateChangeThrottle_=new _.El((0,_.fF)(q.JSC$20067_xmlHttpHandler_,q,q.JSC$20063_xmlHttp_),q.JSC$20063_readyStateChangeThrottleMs_));
q.JSC$20063_eventHandler_.listen(q.JSC$20063_xmlHttp_,"readystatechange",q.JSC$20067_readyStateChangeHandler_);N=q.JSC$20063_extraHeaders_?_.nM.clone(q.JSC$20063_extraHeaders_):{};q.JSC$20063_postData_?(q.JSC$20063_verb_||(q.JSC$20063_verb_="POST"),N["Content-Type"]="application/x-www-form-urlencoded",q.JSC$20063_xmlHttp_.send(q.JSC$20063_requestUri_,q.JSC$20063_verb_,q.JSC$20063_postData_,N)):(q.JSC$20063_verb_="GET",q.JSC$20063_xmlHttp_.send(q.JSC$20063_requestUri_,q.JSC$20063_verb_,null,N));$Tc(1);
V9a(q.JSC$20063_channelDebug_,q.JSC$20063_verb_,q.JSC$20063_requestUri_,q.JSC$20063_rid_,q.JSC$20063_retryId_,q.JSC$20063_postData_)};
d6.prototype.JSC$20067_readyStateChangeHandler_=function(q){q=q.target;var N=this.JSC$20063_readyStateChangeThrottle_;N&&_.fJ(q)==3?(this.JSC$20063_channelDebug_.debug("Throttling readystatechange."),N.fire()):this.JSC$20067_xmlHttpHandler_(q)};
d6.prototype.JSC$20067_xmlHttpHandler_=function(q){try{q==this.JSC$20063_xmlHttp_?DTa(this):this.JSC$20063_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(N){this.JSC$20063_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),hZp(this)}finally{}};
var DTa=function(q){var N=_.fJ(q.JSC$20063_xmlHttp_),b=q.JSC$20063_xmlHttp_.JSC$9877_lastErrorCode_,y=q.JSC$20063_xmlHttp_.getStatus();if(!(N<3||N==3&&!hZp(q))){q.JSC$20063_cancelled_||N!=4||b==7||(b==8||y<=0?$Tc(3):$Tc(2));kEa(q);var J=q.JSC$20063_xmlHttp_.getStatus();q.JSC$20063_lastStatusCode_=J;b=UTf(q);hZp(q)||q.JSC$20063_channelDebug_.debug(function(){return"No response text for uri "+q.JSC$20063_requestUri_+" status "+J});
q.JSC$20063_successful_=J==200;jRd(q.JSC$20063_channelDebug_,q.JSC$20063_verb_,q.JSC$20063_requestUri_,q.JSC$20063_rid_,q.JSC$20063_retryId_,N,J);if(q.JSC$20063_successful_){if(q.decodeInitialResponse_&&!q.initialResponseDecoded_)if(y=fcU(q))Ra(q.JSC$20063_channelDebug_,q.JSC$20063_rid_,y,"Initial handshake response via X-HTTP-Initial-Response"),q.initialResponseDecoded_=!0,CwX(q,y);else{q.JSC$20063_successful_=!1;q.JSC$20063_lastError_=3;ZK(12);q.JSC$20063_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
q.JSC$20063_rid_+")");cl(q);Ica(q);return}q.decodeChunks_?TTp(q,N,b):(Ra(q.JSC$20063_channelDebug_,q.JSC$20063_rid_,b,null),CwX(q,b));N==4&&cl(q);q.JSC$20063_successful_&&!q.JSC$20063_cancelled_&&(N==4?sRX(q.JSC$20063_channel_,q):(q.JSC$20063_successful_=!1,lcp(q)))}else y5U(q.JSC$20063_xmlHttp_),J==400&&b.indexOf("Unknown SID")>0?(q.JSC$20063_lastError_=3,ZK(12),q.JSC$20063_channelDebug_.warning("XMLHTTP Unknown SID ("+q.JSC$20063_rid_+")")):(q.JSC$20063_lastError_=0,ZK(13),q.JSC$20063_channelDebug_.warning("XMLHTTP Bad status "+
J+" ("+q.JSC$20063_rid_+")")),cl(q),Ica(q)}},fcU=function(q){return q.JSC$20063_xmlHttp_&&(q=hQ(q.JSC$20063_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.dA(q)?q:null},UTf=function(q){if(!nYf(q))return q.JSC$20063_xmlHttp_.getResponseText();
var N=q.JSC$20063_xmlHttp_.getResponse();if(N==="")return"";var b="",y=N.length,J=_.fJ(q.JSC$20063_xmlHttp_)==4;if(!q.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return cl(q),Ica(q),"";q.fetchResponseState_.textDecoder=new _.JZ.TextDecoder}for(var E=0;E<y;E++)q.fetchResponseState_.responseArrivedForFetch=!0,b+=q.fetchResponseState_.textDecoder.decode(N[E],{stream:!(J&&E==y-1)});N.length=0;q.fetchResponseState_.responseBuffer+=b;q.JSC$20063_xmlHttpChunkStart_=0;return q.fetchResponseState_.responseBuffer},
hZp=function(q){return q.JSC$20063_xmlHttp_?q.fetchResponseState_.responseArrivedForFetch?!0:!(!q.JSC$20063_xmlHttp_.getResponseText()&&!q.JSC$20063_xmlHttp_.getResponse()):!1},nYf=function(q){return q.JSC$20063_xmlHttp_?q.JSC$20063_verb_=="GET"&&q.JSC$20063_type_!=2&&q.JSC$20063_channel_.usesFetchStreams_:!1},TTp=function(q,N,b){for(var y=!0,J;!q.JSC$20063_cancelled_&&q.JSC$20063_xmlHttpChunkStart_<b.length;)if(J=acf(q,b),J==OVB){N==4&&(q.JSC$20063_lastError_=4,ZK(14),y=!1);
Ra(q.JSC$20063_channelDebug_,q.JSC$20063_rid_,null,"[Incomplete Response]");break}else if(J==QRx){q.JSC$20063_lastError_=4;ZK(15);Ra(q.JSC$20063_channelDebug_,q.JSC$20063_rid_,b,"[Invalid Chunk]");y=!1;break}else Ra(q.JSC$20063_channelDebug_,q.JSC$20063_rid_,J,null),CwX(q,J);nYf(q)&&q.JSC$20063_xmlHttpChunkStart_!=0&&(q.fetchResponseState_.responseBuffer=q.fetchResponseState_.responseBuffer.slice(q.JSC$20063_xmlHttpChunkStart_),q.JSC$20063_xmlHttpChunkStart_=0);N!=4||b.length!=0||q.fetchResponseState_.responseArrivedForFetch||
(q.JSC$20063_lastError_=1,ZK(16),y=!1);q.JSC$20063_successful_=q.JSC$20063_successful_&&y;y?b.length>0&&!q.firstByteReceived_&&(q.firstByteReceived_=!0,N=q.JSC$20063_channel_,N.JSC$20082_backChannelRequest_==q&&N.detectBufferingProxy_&&!N.bpDetectionDone_&&(N.JSC$20082_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+b.length),SuB(N),N.bpDetectionDone_=!0,ZK(11))):(Ra(q.JSC$20063_channelDebug_,q.JSC$20063_rid_,b,"[Invalid Chunked Response]"),cl(q),Ica(q))},acf=function(q,
N){var b=q.JSC$20063_xmlHttpChunkStart_,y=N.indexOf("\n",b);
if(y==-1)return OVB;b=Number(N.substring(b,y));if(isNaN(b))return QRx;y+=1;if(y+b>N.length)return OVB;N=N.slice(y,y+b);q.JSC$20063_xmlHttpChunkStart_=y+b;return N};
d6.prototype.cancel=function(){this.JSC$20063_cancelled_=!0;cl(this)};
var lcp=function(q){q.JSC$20063_watchDogTimeoutTime_=Date.now()+q.timeout_;Wud(q,q.timeout_)},Wud=function(q,N){if(q.JSC$20063_watchDogTimerId_!=null)throw Error("Tk");
q.JSC$20063_watchDogTimerId_=XQB((0,_.fF)(q.JSC$20067_onWatchDogTimeout_,q),N)},kEa=function(q){q.JSC$20063_watchDogTimerId_&&(_.JZ.clearTimeout(q.JSC$20063_watchDogTimerId_),q.JSC$20063_watchDogTimerId_=null)};
d6.prototype.JSC$20067_onWatchDogTimeout_=function(){this.JSC$20063_watchDogTimerId_=null;var q=Date.now();q-this.JSC$20063_watchDogTimeoutTime_>=0?(vYC(this.JSC$20063_channelDebug_,this.JSC$20063_requestUri_),this.JSC$20063_type_!=2&&($Tc(3),ZK(17)),cl(this),this.JSC$20063_lastError_=2,Ica(this)):(this.JSC$20063_channelDebug_.warning("WatchDog timer called too early"),Wud(this,this.JSC$20063_watchDogTimeoutTime_-q))};
var Ica=function(q){q.JSC$20063_channel_.state_==0||q.JSC$20063_cancelled_||sRX(q.JSC$20063_channel_,q)},cl=function(q){kEa(q);
_.RA(q.JSC$20063_readyStateChangeThrottle_);q.JSC$20063_readyStateChangeThrottle_=null;q.JSC$20063_eventHandler_.removeAll();if(q.JSC$20063_xmlHttp_){var N=q.JSC$20063_xmlHttp_;q.JSC$20063_xmlHttp_=null;N.abort();N.dispose()}};
d6.prototype.getLastError=function(){return this.JSC$20063_lastError_};
var CwX=function(q,N){try{var b=q.JSC$20063_channel_;if(b.state_!=0&&(b.JSC$20082_backChannelRequest_==q||LuW(b.forwardChannelRequestPool_,q)))if(!q.initialResponseDecoded_&&LuW(b.forwardChannelRequestPool_,q)&&b.state_==3){try{var y=b.wireCodec_.JSC$20077_parser_.parse(N)}catch(R){y=null}if(Array.isArray(y)&&y.length==3){N=y;if(N[0]==0)a:if(b.JSC$20082_channelDebug_.debug("Server claims our backchannel is missing."),b.JSC$20082_backChannelTimerId_)b.JSC$20082_channelDebug_.debug("But we are currently starting the request.");
else{if(b.JSC$20082_backChannelRequest_)if(b.JSC$20082_backChannelRequest_.JSC$20063_requestStartTime_+3E3<q.JSC$20063_requestStartTime_)pQC(b),PwB(b);else break a;else b.JSC$20082_channelDebug_.warning("We do not have a BackChannel established");M9c(b);ZK(18)}else{b.JSC$20082_lastPostResponseArrayId_=N[1];var J=b.JSC$20082_lastPostResponseArrayId_-b.JSC$20082_lastArrayId_;if(0<J){var E=N[2];b.JSC$20082_channelDebug_.debug(E+" bytes (in "+J+" arrays) are outstanding on the BackChannel");E<37500&&
b.enableStreaming_&&b.JSC$20082_backChannelRetryCount_==0&&!b.JSC$20082_deadBackChannelTimerId_&&(b.JSC$20082_deadBackChannelTimerId_=XQB((0,_.fF)(b.JSC$20084_onBackChannelDead_,b),6E3))}}if(oYx(b.forwardChannelRequestPool_)<=1&&b.forwardChannelFlushedCallback_){try{b.forwardChannelFlushedCallback_()}catch(R){}b.forwardChannelFlushedCallback_=void 0}}else b.JSC$20082_channelDebug_.debug("Bad POST response data returned"),uO(b,11)}else if((q.initialResponseDecoded_||b.JSC$20082_backChannelRequest_==
q)&&pQC(b),!_.dA(N)){var F=b.wireCodec_.JSC$20077_parser_.parse(N);b.onInput_(F,q)}$Tc(4)}catch(R){}};var A$N=function(q,N){this.JSC$20070_mapId=q;this.map=N;this.context=null};var eZU=function(q){this.maxPoolSizeConfigured_=q||10;_.JZ.PerformanceNavigationTiming?(q=_.JZ.performance.getEntriesByType("navigation"),q=q.length>0&&(q[0].nextHopProtocol=="hq"||q[0].nextHopProtocol=="h2")):q=!!(_.JZ.chrome&&_.JZ.chrome.loadTimes&&_.JZ.chrome.loadTimes()&&_.JZ.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$20073_maxSize_=q?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$20073_maxSize_>1&&(this.requestPool_=new Set);this.JSC$20073_request_=null;this.JSC$20073_pendingMessages_=
[]},BTU=function(q){return q.JSC$20073_request_?!0:q.requestPool_?q.requestPool_.size>=q.JSC$20073_maxSize_:!1},oYx=function(q){return q.JSC$20073_request_?1:q.requestPool_?q.requestPool_.size:0},LuW=function(q,N){return q.JSC$20073_request_?q.JSC$20073_request_==N:q.requestPool_?q.requestPool_.has(N):!1},HVB=function(q,N){q.requestPool_?q.requestPool_.add(N):q.JSC$20073_request_=N},q6B=function(q,N){q.JSC$20073_request_&&q.JSC$20073_request_==N?q.JSC$20073_request_=null:q.requestPool_&&q.requestPool_.has(N)&&
q.requestPool_.delete(N)};
eZU.prototype.cancel=function(){this.JSC$20073_pendingMessages_=N7K(this);if(this.JSC$20073_request_)this.JSC$20073_request_.cancel(),this.JSC$20073_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var q=_.Z(this.requestPool_.values()),N=q.next();!N.done;N=q.next())N.value.cancel();this.requestPool_.clear()}};
var N7K=function(q){if(q.JSC$20073_request_!=null)return q.JSC$20073_pendingMessages_.concat(q.JSC$20073_request_.JSC$20063_pendingMessages_);if(q.requestPool_!=null&&q.requestPool_.size!==0){var N=q.JSC$20073_pendingMessages_;q=_.Z(q.requestPool_.values());for(var b=q.next();!b.done;b=q.next())N=N.concat(b.value.JSC$20063_pendingMessages_);return N}return _.LC(q.JSC$20073_pendingMessages_)},bgN=function(q,N){q.JSC$20073_pendingMessages_=q.JSC$20073_pendingMessages_.concat(N)};var y0A=function(q,N){var b=new FL;b.debug("TestLoadImage: loading "+q);if(_.JZ.Image){var y=new Image;y.onload=_.dg(zR,b,"TestLoadImage: loaded",!0,N,y);y.onerror=_.dg(zR,b,"TestLoadImage: error",!1,N,y);y.onabort=_.dg(zR,b,"TestLoadImage: abort",!1,N,y);y.ontimeout=_.dg(zR,b,"TestLoadImage: timeout",!1,N,y);_.JZ.setTimeout(function(){if(y.ontimeout)y.ontimeout()},1E4);
y.src=q}else N(!1)},J0f=function(q,N){var b=new FL,y=new AbortController,J=setTimeout(function(){y.abort();
zR(b,"TestPingServer: timeout",!1,N)},1E4);
fetch(q,{signal:y.signal}).then(function(E){clearTimeout(J);E.ok?zR(b,"TestPingServer: ok",!0,N):zR(b,"TestPingServer: server error",!1,N)}).catch(function(){clearTimeout(J);
zR(b,"TestPingServer: error",!1,N)})},zR=function(q,N,b,y,J){try{q.debug(N),J&&(J.onload=null,J.onerror=null,J.onabort=null,J.ontimeout=null),y(b)}catch(E){}};var Ewc=function(){this.JSC$20077_parser_=new Fux};var gwX=function(q,N,b){return b&&b.internalChannelParams?b.internalChannelParams[q]||N:N},$K=function(q){this.serverVersion_=0;
this.JSC$20082_outgoingMaps_=[];this.JSC$20082_channelDebug_=new FL;this.JSC$20082_hostPrefix_=this.JSC$20082_backChannelUri_=this.JSC$20082_forwardChannelUri_=this.JSC$20082_path_=this.JSC$20082_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$20082_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$20082_extraHeaders_=null;this.JSC$20082_nextMapId_=this.JSC$20082_nextRid_=0;this.JSC$20082_failFast_=gwX("failFast",!1,q);this.enableStreaming_=this.JSC$20082_deadBackChannelTimerId_=
this.JSC$20082_backChannelTimerId_=this.JSC$20082_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$20082_lastPostResponseArrayId_=this.JSC$20082_lastArrayId_=-1;this.JSC$20082_backChannelAttemptId_=this.JSC$20082_backChannelRetryCount_=this.JSC$20082_forwardChannelRetryCount_=0;this.JSC$20082_baseRetryDelayMs_=gwX("baseRetryDelayMs",5E3,q);this.JSC$20082_retryDelaySeedMs_=gwX("retryDelaySeedMs",1E4,q);this.JSC$20082_forwardChannelMaxRetries_=
gwX("forwardChannelMaxRetries",2,q);this.JSC$20082_forwardChannelRequestTimeoutMs_=gwX("forwardChannelRequestTimeoutMs",2E4,q);this.JSC$20082_xmlHttpFactory_=q&&q.xmlHttpFactory||void 0;this.networkTestUrl_=q&&q.networkTestUrl||void 0;this.usesFetchStreams_=q&&q.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$20082_supportsCrossDomainXhrs_=q&&q.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new eZU(q&&q.concurrentRequestLimit);this.wireCodec_=new Ewc;
this.fastHandshake_=q&&q.fastHandshake||!1;this.encodeInitMessageHeaders_=q&&q.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$20082_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=q&&q.blockingHandshake||!1;q&&q.disableRedact&&this.JSC$20082_channelDebug_.disableRedact();q&&q.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&q&&q.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;q&&q.longPollingTimeout&&q.longPollingTimeout>0&&(this.longPollingTimeout_=q.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
$K.prototype.JSC$20084_channelVersion_=8;$K.prototype.state_=1;
$K.prototype.connect=function(q,N,b,y){this.JSC$20082_channelDebug_.debug("connect()");ZK(0);this.JSC$20082_path_=q;this.JSC$20082_extraParams_=N||{};b&&y!==void 0&&(this.JSC$20082_extraParams_.OSID=b,this.JSC$20082_extraParams_.OAID=y);this.enableStreaming_=this.allowStreamingMode_;this.JSC$20082_channelDebug_.debug("connectChannel_()");q=Zgx(this,null,this.JSC$20082_path_);this.JSC$20082_channelDebug_.debug("GetForwardChannelUri: "+q);this.JSC$20082_forwardChannelUri_=q;FyA(this)};
$K.prototype.disconnect=function(){this.JSC$20082_channelDebug_.debug("disconnect()");Rkd(this);if(this.state_==3){var q=this.JSC$20082_nextRid_++,N=this.JSC$20082_forwardChannelUri_.clone();_.yS(N,"SID",this.sid_);_.yS(N,"RID",q);_.yS(N,"TYPE","terminate");dJX(this,N);q=new d6(this,this.JSC$20082_channelDebug_,this.sid_,q);q.JSC$20063_type_=2;q.JSC$20063_baseUri_=_.ul(N.clone());N=!1;if(_.JZ.navigator&&_.JZ.navigator.sendBeacon)try{N=_.JZ.navigator.sendBeacon(q.JSC$20063_baseUri_.toString(),"")}catch(b){}!N&&
_.JZ.Image&&((new Image).src=q.JSC$20063_baseUri_,N=!0);N||(q.JSC$20063_xmlHttp_=KuC(q.JSC$20063_channel_,null),q.JSC$20063_xmlHttp_.send(q.JSC$20063_baseUri_));q.JSC$20063_requestStartTime_=Date.now();lcp(q)}c0c(this)};
var PwB=function(q){q.JSC$20082_backChannelRequest_&&(SuB(q),q.JSC$20082_backChannelRequest_.cancel(),q.JSC$20082_backChannelRequest_=null)},Rkd=function(q){PwB(q);
q.JSC$20082_backChannelTimerId_&&(_.JZ.clearTimeout(q.JSC$20082_backChannelTimerId_),q.JSC$20082_backChannelTimerId_=null);pQC(q);q.forwardChannelRequestPool_.cancel();q.JSC$20082_forwardChannelTimerId_&&(typeof q.JSC$20082_forwardChannelTimerId_==="number"&&_.JZ.clearTimeout(q.JSC$20082_forwardChannelTimerId_),q.JSC$20082_forwardChannelTimerId_=null)};
$K.prototype.getState=function(){return this.state_};
var FyA=function(q){BTU(q.forwardChannelRequestPool_)||q.JSC$20082_forwardChannelTimerId_||(q.JSC$20082_forwardChannelTimerId_=!0,_.iU(q.JSC$20084_onStartForwardChannelTimer_,q),q.JSC$20082_forwardChannelRetryCount_=0)},zkX=function(q,N){if(oYx(q.forwardChannelRequestPool_)>=q.forwardChannelRequestPool_.JSC$20073_maxSize_-(q.JSC$20082_forwardChannelTimerId_?1:0))return!1;
if(q.JSC$20082_forwardChannelTimerId_)return q.JSC$20082_channelDebug_.debug("Use the retry request that is already scheduled."),q.JSC$20082_outgoingMaps_=N.JSC$20063_pendingMessages_.concat(q.JSC$20082_outgoingMaps_),!0;if(q.state_==1||q.state_==2||q.JSC$20082_forwardChannelRetryCount_>=(q.JSC$20082_failFast_?0:q.JSC$20082_forwardChannelMaxRetries_))return!1;q.JSC$20082_channelDebug_.debug("Going to retry POST");q.JSC$20082_forwardChannelTimerId_=XQB((0,_.fF)(q.JSC$20084_onStartForwardChannelTimer_,
q,N),uxf(q,q.JSC$20082_forwardChannelRetryCount_));q.JSC$20082_forwardChannelRetryCount_++;return!0};
$K.prototype.JSC$20084_onStartForwardChannelTimer_=function(q){if(this.JSC$20082_forwardChannelTimerId_)if(this.JSC$20082_forwardChannelTimerId_=null,this.JSC$20082_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!q){this.JSC$20082_channelDebug_.debug("open_()");this.JSC$20082_nextRid_=Math.floor(Math.random()*1E5);q=this.JSC$20082_nextRid_++;var N=new d6(this,this.JSC$20082_channelDebug_,"",q),b=this.JSC$20082_extraHeaders_;this.initHeaders_&&(b?(b=_.nM.clone(b),_.nM.extend(b,this.initHeaders_)):
b=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(N.JSC$20063_extraHeaders_=b,b=null);var y;if(this.fastHandshake_)a:{for(var J=y=0;J<this.JSC$20082_outgoingMaps_.length;J++){b:{var E=this.JSC$20082_outgoingMaps_[J];if("__data__"in E.map&&(E=E.map.__data__,typeof E==="string")){E=E.length;break b}E=void 0}if(E===void 0)break;y+=E;if(y>4096){y=J;break a}if(y===4096||J===this.JSC$20082_outgoingMaps_.length-1){y=J+1;break a}}y=1E3}else y=1E3;y=$Ja(this,N,y);
J=this.JSC$20082_forwardChannelUri_.clone();_.yS(J,"RID",q);_.yS(J,"CVER",22);this.httpSessionIdParam_&&_.yS(J,"X-HTTP-Session-Id",this.httpSessionIdParam_);dJX(this,J);b&&(this.encodeInitMessageHeaders_?y="headers="+_.yX(mCN(b))+"&"+y:this.httpHeadersOverwriteParam_&&rGa(J,this.httpHeadersOverwriteParam_,b));HVB(this.forwardChannelRequestPool_,N);this.blockingHandshake_&&_.yS(J,"TYPE","init");this.fastHandshake_?(_.yS(J,"$req",y),_.yS(J,"SID","null"),N.decodeInitialResponse_=!0,iVa(N,J,null)):iVa(N,
J,y);this.state_=2}}else this.state_==3&&(q?tsx(this,q):this.JSC$20082_outgoingMaps_.length==0?this.JSC$20082_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):BTU(this.forwardChannelRequestPool_)||(tsx(this),this.JSC$20082_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var tsx=function(q,N){var b;N?b=N.JSC$20063_rid_:b=q.JSC$20082_nextRid_++;var y=q.JSC$20082_forwardChannelUri_.clone();_.yS(y,"SID",q.sid_);_.yS(y,"RID",b);_.yS(y,"AID",q.JSC$20082_lastArrayId_);dJX(q,y);q.httpHeadersOverwriteParam_&&q.JSC$20082_extraHeaders_&&rGa(y,q.httpHeadersOverwriteParam_,q.JSC$20082_extraHeaders_);b=new d6(q,q.JSC$20082_channelDebug_,q.sid_,b,q.JSC$20082_forwardChannelRetryCount_+1);q.httpHeadersOverwriteParam_===null&&(b.JSC$20063_extraHeaders_=q.JSC$20082_extraHeaders_);
N&&(q.JSC$20082_outgoingMaps_=N.JSC$20063_pendingMessages_.concat(q.JSC$20082_outgoingMaps_));N=$Ja(q,b,1E3);b.setTimeout(Math.round(q.JSC$20082_forwardChannelRequestTimeoutMs_*.5)+Math.round(q.JSC$20082_forwardChannelRequestTimeoutMs_*.5*Math.random()));HVB(q.forwardChannelRequestPool_,b);iVa(b,y,N)},dJX=function(q,N){q.JSC$20082_extraParams_&&_.nM.forEach(q.JSC$20082_extraParams_,function(b,y){_.yS(N,y,b)});
q.handler_&&_.nM.forEach({},function(b,y){_.yS(N,y,b)})},$Ja=function(q,N,b){b=Math.min(q.JSC$20082_outgoingMaps_.length,b);
var y=q.handler_?(0,_.fF)(q.handler_.JSC$20088_badMapError,q.handler_,q):null;a:{for(var J=q.JSC$20082_outgoingMaps_,E=-1;;){var F=["count="+b];E==-1?b>0?(E=J[0].JSC$20070_mapId,F.push("ofs="+E)):E=0:F.push("ofs="+E);for(var R=!0,c=0;c<b;c++){var z=J[c].JSC$20070_mapId,m=J[c].map;z-=E;if(z<0)E=Math.max(0,J[c].JSC$20070_mapId-100),R=!1;else try{z="req"+z+"_"||"";try{var r=m instanceof Map?m:Object.entries(m);for(var X=_.Z(r),V=X.next();!V.done;V=X.next()){var G=_.Z(V.value),w=G.next().value,D=G.next().value,
k=D;_.AZ(D)&&(k=(0,_.kC)(D));F.push(z+w+"="+encodeURIComponent(k))}}catch(f){throw F.push(z+"type="+encodeURIComponent("_badmap")),f;}}catch(f){y&&y(m)}}if(R){r=F.join("&");break a}}r=void 0}q=q.JSC$20082_outgoingMaps_.splice(0,b);N.JSC$20063_pendingMessages_=q;return r},mJc=function(q){q.JSC$20082_backChannelRequest_||q.JSC$20082_backChannelTimerId_||(q.JSC$20082_backChannelAttemptId_=1,_.iU(q.JSC$20084_onStartBackChannelTimer_,q),q.JSC$20082_backChannelRetryCount_=0)},M9c=function(q){if(q.JSC$20082_backChannelRequest_||
q.JSC$20082_backChannelTimerId_||q.JSC$20082_backChannelRetryCount_>=3)return!1;
q.JSC$20082_channelDebug_.debug("Going to retry GET");q.JSC$20082_backChannelAttemptId_++;q.JSC$20082_backChannelTimerId_=XQB((0,_.fF)(q.JSC$20084_onStartBackChannelTimer_,q),uxf(q,q.JSC$20082_backChannelRetryCount_));q.JSC$20082_backChannelRetryCount_++;return!0};
$K.prototype.JSC$20084_onStartBackChannelTimer_=function(){this.JSC$20082_backChannelTimerId_=null;r0a(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$20082_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$20082_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$20082_backChannelRequest_+" "+this.handshakeRttMs_);else{var q=4*this.handshakeRttMs_;this.JSC$20082_channelDebug_.info("BP detection timer enabled: "+q);this.bpDetectionTimerId_=XQB((0,_.fF)(this.onBpDetectionTimer_,
this),q)}};
$K.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$20082_channelDebug_.info("BP detection timeout reached.");if(this.JSC$20082_backChannelRequest_.JSC$20063_xmlHttp_!=null){var q=this.JSC$20082_backChannelRequest_.JSC$20063_xmlHttp_.getResponseText();q&&this.JSC$20082_channelDebug_.warning("Timer should have been cancelled : "+q)}this.JSC$20082_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;ZK(10);PwB(this);r0a(this)}else this.JSC$20082_channelDebug_.warning("Invalid operation.")};
var SuB=function(q){q.bpDetectionTimerId_!=null&&(q.JSC$20082_channelDebug_.debug("Cancel the BP detection timer."),_.JZ.clearTimeout(q.bpDetectionTimerId_),q.bpDetectionTimerId_=null)},r0a=function(q){q.JSC$20082_channelDebug_.debug("Creating new HttpRequest");
q.JSC$20082_backChannelRequest_=new d6(q,q.JSC$20082_channelDebug_,q.sid_,"rpc",q.JSC$20082_backChannelAttemptId_);q.httpHeadersOverwriteParam_===null&&(q.JSC$20082_backChannelRequest_.JSC$20063_extraHeaders_=q.JSC$20082_extraHeaders_);q.JSC$20082_backChannelRequest_.JSC$20063_readyStateChangeThrottleMs_=0;var N=q.JSC$20082_backChannelUri_.clone();_.yS(N,"RID","rpc");_.yS(N,"SID",q.sid_);_.yS(N,"AID",q.JSC$20082_lastArrayId_);_.yS(N,"CI",q.enableStreaming_?"0":"1");!q.enableStreaming_&&q.longPollingTimeout_&&
_.yS(N,"TO",q.longPollingTimeout_);_.yS(N,"TYPE","xmlhttp");dJX(q,N);q.httpHeadersOverwriteParam_&&q.JSC$20082_extraHeaders_&&rGa(N,q.httpHeadersOverwriteParam_,q.JSC$20082_extraHeaders_);q.backChannelRequestTimeoutMs_&&q.JSC$20082_backChannelRequest_.setTimeout(q.backChannelRequestTimeoutMs_);var b=q.JSC$20082_backChannelRequest_,y=q.JSC$20082_hostPrefix_;b.JSC$20063_type_=1;b.JSC$20063_baseUri_=_.ul(N.clone());b.JSC$20063_postData_=null;b.decodeChunks_=!0;wQp(b,y);q.JSC$20082_channelDebug_.debug("New Request created")};
$K.prototype.JSC$20084_onBackChannelDead_=function(){this.JSC$20082_deadBackChannelTimerId_!=null&&(this.JSC$20082_deadBackChannelTimerId_=null,PwB(this),M9c(this),ZK(19))};
var pQC=function(q){q.JSC$20082_deadBackChannelTimerId_!=null&&(_.JZ.clearTimeout(q.JSC$20082_deadBackChannelTimerId_),q.JSC$20082_deadBackChannelTimerId_=null)},sRX=function(q,N){q.JSC$20082_channelDebug_.debug("Request complete");
var b=null;if(q.JSC$20082_backChannelRequest_==N){pQC(q);SuB(q);q.JSC$20082_backChannelRequest_=null;var y=2}else if(LuW(q.forwardChannelRequestPool_,N))b=N.JSC$20063_pendingMessages_,q6B(q.forwardChannelRequestPool_,N),y=1;else return;if(q.state_!=0)if(N.JSC$20063_successful_)y==1?(r$B(N.JSC$20063_postData_?N.JSC$20063_postData_.length:0,Date.now()-N.JSC$20063_requestStartTime_,q.JSC$20082_forwardChannelRetryCount_),FyA(q)):mJc(q);else{var J=N.JSC$20063_lastStatusCode_,E=N.getLastError();if(E==3||
E==0&&J>0)q.JSC$20082_channelDebug_.debug("Not retrying due to error type"),J>200&&(q.errorResponseStatusCode_=N.JSC$20063_lastStatusCode_);else{q.JSC$20082_channelDebug_.debug(function(){return"Maybe retrying, last error: "+YuA(E,q.errorResponseStatusCode_)});
if(y==1&&zkX(q,N)||y==2&&M9c(q))return;q.JSC$20082_channelDebug_.debug("Exceeded max number of retries")}b&&b.length>0&&bgN(q.forwardChannelRequestPool_,b);q.JSC$20082_channelDebug_.debug("Error: HTTP request failed");switch(E){case 1:uO(q,5);break;case 4:uO(q,10);break;case 3:uO(q,6);break;default:uO(q,2)}}},uxf=function(q,N){var b=q.JSC$20082_baseRetryDelayMs_+Math.floor(Math.random()*q.JSC$20082_retryDelaySeedMs_);
q.isActive()||(q.JSC$20082_channelDebug_.debug("Inactive channel"),b*=2);return b*N};
$K.prototype.onInput_=function(q,N){for(var b=0;b<q.length;b++){var y=q[b],J=y[0];if(J<=this.JSC$20082_lastArrayId_)this.JSC$20082_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+J+", lastArrayId: "+this.JSC$20082_lastArrayId_);else if(J>this.JSC$20082_lastArrayId_+1&&this.JSC$20082_lastArrayId_>-1&&this.JSC$20082_channelDebug_.warning("Received non-consecutive message with arrayId: "+J+", lastArrayId: "+this.JSC$20082_lastArrayId_),this.JSC$20082_lastArrayId_=J,
y=y[1],this.state_==2)if(y[0]=="c"){this.sid_=y[1];this.JSC$20082_hostPrefix_=y[2];J=y[3];J!=null&&(this.JSC$20084_channelVersion_=J,this.JSC$20082_channelDebug_.info("VER="+this.JSC$20084_channelVersion_));J=y[4];J!=null&&(this.serverVersion_=J,this.JSC$20082_channelDebug_.info("SVER="+this.serverVersion_));y=y[5];y!=null&&typeof y==="number"&&y>0&&(this.backChannelRequestTimeoutMs_=y*=1.5,this.JSC$20082_channelDebug_.info("backChannelRequestTimeoutMs_="+y));if(y=N.JSC$20063_xmlHttp_){var E=hQ(y,
"X-Client-Wire-Protocol");E&&(J=this.forwardChannelRequestPool_,!J.requestPool_&&(_.un(E,"spdy")||_.un(E,"quic")||_.un(E,"h2"))&&(J.JSC$20073_maxSize_=J.maxPoolSizeConfigured_,J.requestPool_=new Set,J.JSC$20073_request_&&(HVB(J,J.JSC$20073_request_),J.JSC$20073_request_=null)));this.httpSessionIdParam_&&((y=hQ(y,"X-HTTP-Session-Id"))?(this.httpSessionId_=y,_.yS(this.JSC$20082_forwardChannelUri_,this.httpSessionIdParam_,y)):this.JSC$20082_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$20088_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-N.JSC$20063_requestStartTime_,this.JSC$20082_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));y=N;J=Zgx(this,this.JSC$20082_supportsCrossDomainXhrs_?this.JSC$20082_hostPrefix_:null,this.JSC$20082_path_);this.JSC$20082_channelDebug_.debug("GetBackChannelUri: "+J);this.JSC$20082_backChannelUri_=J;y.initialResponseDecoded_?(this.JSC$20082_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
q6B(this.forwardChannelRequestPool_,y),J=y,(E=this.backChannelRequestTimeoutMs_)&&J.setTimeout(E),J.JSC$20063_watchDogTimerId_&&(kEa(J),lcp(J)),this.JSC$20082_backChannelRequest_=y):mJc(this);this.JSC$20082_outgoingMaps_.length>0&&FyA(this)}else y[0]!="stop"&&y[0]!="close"||uO(this,7);else this.state_==3&&(y[0]=="stop"||y[0]=="close"?y[0]=="stop"?uO(this,7):this.disconnect():y[0]!="noop"&&this.handler_&&this.handler_.JSC$20088_channelHandleArray(y),this.JSC$20082_backChannelRetryCount_=0)}};
var uO=function(q,N){q.JSC$20082_channelDebug_.info("Error code "+N);if(N==2){var b=(0,_.fF)(q.testNetworkCallback_,q),y=q.networkTestUrl_,J=!y;y=new _.a$(y||"//www.google.com/images/cleardot.gif");_.JZ.location&&_.JZ.location.protocol=="http"||_.yw(y,"https");_.ul(y);J?y0A(y.toString(),b):J0f(y.toString(),b)}else ZK(2);q.onError_(N)};
$K.prototype.testNetworkCallback_=function(q){q?(this.JSC$20082_channelDebug_.info("Successfully pinged google.com"),ZK(2)):(this.JSC$20082_channelDebug_.info("Failed to ping google.com"),ZK(1))};
$K.prototype.onError_=function(q){this.JSC$20082_channelDebug_.debug("HttpChannel: error - "+q);this.state_=0;this.handler_&&this.handler_.JSC$20088_channelError(q);c0c(this);Rkd(this)};
var c0c=function(q){q.state_=0;q.nonAckedMapsAtChannelClose_=[];if(q.handler_){var N=N7K(q.forwardChannelRequestPool_);if(N.length!=0||q.JSC$20082_outgoingMaps_.length!=0)q.JSC$20082_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+N.length+", outgoing: "+q.JSC$20082_outgoingMaps_.length}),_.PA(q.nonAckedMapsAtChannelClose_,N),_.PA(q.nonAckedMapsAtChannelClose_,q.JSC$20082_outgoingMaps_),q.forwardChannelRequestPool_.JSC$20073_pendingMessages_.length=0,_.LC(q.JSC$20082_outgoingMaps_),
q.JSC$20082_outgoingMaps_.length=0;
q.handler_.JSC$20088_channelClosed()}},X6x=function(q){if(q.state_==0)return q.nonAckedMapsAtChannelClose_;
var N=[];_.PA(N,N7K(q.forwardChannelRequestPool_));_.PA(N,q.JSC$20082_outgoingMaps_);return N},Zgx=function(q,N,b){var y=_.N0(b);
y.JSC$10113_domain_!=""?(N&&_.J5(y,N+"."+y.JSC$10113_domain_),_.EI(y,y.JSC$10113_port_)):(y=_.JZ.location,y=qCp(y.protocol,N?N+"."+y.hostname:y.hostname,+y.port,b));N=q.httpSessionIdParam_;b=q.httpSessionId_;N&&b&&_.yS(y,N,b);_.yS(y,"VER",q.JSC$20084_channelVersion_);dJX(q,y);return y},KuC=function(q,N,b){if(N&&!q.JSC$20082_supportsCrossDomainXhrs_)throw Error("Uk");
N=q.usesFetchStreams_&&!q.JSC$20082_xmlHttpFactory_?new _.U1(new uKa({streamBinaryChunks:b})):new _.U1(q.JSC$20082_xmlHttpFactory_);N.JSC$9877_withCredentials_=q.JSC$20082_supportsCrossDomainXhrs_;return N};
$K.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var Vsf=function(){};
_.g=Vsf.prototype;_.g.JSC$20088_channelOpened=function(){};
_.g.JSC$20088_channelHandleArray=function(){};
_.g.JSC$20088_channelError=function(){};
_.g.JSC$20088_channelClosed=function(){};
_.g.isActive=function(){return!0};
_.g.JSC$20088_badMapError=function(){};var jkA=function(){},mc=function(q,N){_.O1.call(this);
this.JSC$20091_channel_=new $K(N);this.JSC$20091_url_=q;this.messageUrlParams_=N&&N.messageUrlParams||null;q=N&&N.messageHeaders||null;N&&N.clientProtocolHeaderRequired&&(q?_.nM.set(q,"X-Client-Protocol","webchannel"):q=_.nM.create("X-Client-Protocol","webchannel"));this.JSC$20091_channel_.JSC$20082_extraHeaders_=q;q=N&&N.initMessageHeaders||null;N&&N.messageContentType&&(q?_.nM.set(q,"X-WebChannel-Content-Type",N.messageContentType):q=_.nM.create("X-WebChannel-Content-Type",N.messageContentType));
N&&N.clientProfile&&(q?_.nM.set(q,"X-WebChannel-Client-Profile",N.clientProfile):q=_.nM.create("X-WebChannel-Client-Profile",N.clientProfile));this.JSC$20091_channel_.initHeaders_=q;(q=N&&N.httpHeadersOverwriteParam)&&!_.dA(q)&&(this.JSC$20091_channel_.httpHeadersOverwriteParam_=q);this.supportsCrossDomainXhr_=N&&N.supportsCrossDomainXhr||!1;this.sendRawJson_=N&&N.sendRawJson||!1;(N=N&&N.httpSessionIdParam)&&!_.dA(N)&&(this.JSC$20091_channel_.httpSessionIdParam_=N,_.nM.containsKey(this.messageUrlParams_,
N)&&_.nM.remove(this.messageUrlParams_,N));this.channelHandler_=new t6(this)};
_.oK(mc,_.O1);mc.prototype.open=function(){this.JSC$20091_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$20091_channel_.JSC$20082_supportsCrossDomainXhrs_=!0);this.JSC$20091_channel_.connect(this.JSC$20091_url_,this.messageUrlParams_||void 0)};
mc.prototype.close=function(){this.JSC$20091_channel_.disconnect()};
mc.prototype.send=function(q){var N=this.JSC$20091_channel_;if(typeof q==="string"){var b={};b.__data__=q;q=b}else this.sendRawJson_&&(b={},b.__data__=(0,_.kC)(q),q=b);N.JSC$20082_outgoingMaps_.push(new A$N(N.JSC$20082_nextMapId_++,q));N.state_==3&&FyA(N)};
mc.prototype.disposeInternal=function(){this.JSC$20091_channel_.handler_=null;delete this.channelHandler_;this.JSC$20091_channel_.disconnect();delete this.JSC$20091_channel_;mc.superClass_.disposeInternal.call(this)};
var xJc=function(q){RZA.call(this);q.__headers__&&(this.headers=q.__headers__,this.statusCode=q.__status__,delete q.__headers__,delete q.__status__);var N=q.__sm__;N?this.data=(this.metadataKey=_.nM.getAnyKey(N))?_.nM.get(N,this.metadataKey):N:this.data=q};
_.oK(xJc,RZA);var vwx=function(q){dTB.call(this);this.status=1;this.errorCode=q};
_.oK(vwx,dTB);var t6=function(q){this.JSC$20098_channel_=q};
_.oK(t6,Vsf);t6.prototype.JSC$20088_channelOpened=function(){this.JSC$20098_channel_.dispatchEvent("w")};
t6.prototype.JSC$20088_channelHandleArray=function(q){this.JSC$20098_channel_.dispatchEvent(new xJc(q))};
t6.prototype.JSC$20088_channelError=function(q){this.JSC$20098_channel_.dispatchEvent(new vwx(q))};
t6.prototype.JSC$20088_channelClosed=function(){this.JSC$20098_channel_.dispatchEvent("x")};
var G9f=function(q,N){this.transportChannel_=q;this.JSC$20101_channel_=N},Y6a=function(q){return X6x(q.JSC$20101_channel_).map(function(N){var b=q.transportChannel_;
N=N.map;"__data__"in N?(N=N.__data__,b=b.sendRawJson_?(0,_.LTo)(N):N):b=N;return b})};
G9f.prototype.commit=function(q){this.JSC$20101_channel_.forwardChannelFlushedCallback_=q};var r6=function(q){Qkc.dispatchEvent(new Oga(Qkc,q))},Qkc=new _.O1,Oga=function(q,N){_.xC.call(this,"statevent",q);
this.stat=N};
_.Y(Oga,_.xC);var XL=function(q,N,b,y,J){this.JSC$20106_channel_=q;this.JSC$20106_channelDebug_=N;this.sid_=b;this.JSC$20106_rid_=y;this.JSC$20106_retryId_=J||1;this.timeout_=45E3;this.JSC$20106_eventHandler_=new _.xH(this);this.pollingTimer_=new _.jL;this.pollingTimer_.setInterval(250)};
_.g=XL.prototype;_.g.JSC$20108_extraHeaders_=null;_.g.JSC$20108_successful_=!1;_.g.JSC$20108_watchDogTimerId_=null;_.g.JSC$20108_watchDogTimeoutTime_=null;_.g.JSC$20108_requestStartTime_=null;_.g.JSC$20108_type_=null;_.g.JSC$20108_baseUri_=null;_.g.JSC$20108_requestUri_=null;_.g.JSC$20108_postData_=null;_.g.JSC$20108_xmlHttp_=null;_.g.JSC$20108_xmlHttpChunkStart_=0;_.g.trident_=null;_.g.JSC$20108_verb_=null;_.g.JSC$20108_lastError_=null;_.g.JSC$20108_lastStatusCode_=-1;_.g.sendClose_=!0;
_.g.JSC$20108_cancelled_=!1;_.g.JSC$20108_readyStateChangeThrottleMs_=0;_.g.JSC$20108_readyStateChangeThrottle_=null;var w6U=function(q,N){switch(q){case 0:return"Non-200 return code ("+N+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},igU={},ltc={};
XL.prototype.setTimeout=function(q){this.timeout_=q};
var DJf=function(q,N,b){q.JSC$20108_type_=1;q.JSC$20108_baseUri_=_.ul(N.clone());q.JSC$20108_postData_=b;q.decodeChunks_=!0;Kyp(q,null)},hka=function(q,N,b,y,J){q.JSC$20108_type_=1;
q.JSC$20108_baseUri_=_.ul(N.clone());q.JSC$20108_postData_=null;q.decodeChunks_=b;J&&(q.sendClose_=!1);Kyp(q,y)},Kyp=function(q,N){q.JSC$20108_requestStartTime_=Date.now();
k9a(q);q.JSC$20108_requestUri_=q.JSC$20108_baseUri_.clone();EQx(q.JSC$20108_requestUri_,"t",q.JSC$20106_retryId_);q.JSC$20108_xmlHttpChunkStart_=0;q.JSC$20108_xmlHttp_=q.JSC$20106_channel_.JSC$20115_createXhrIo(q.JSC$20106_channel_.JSC$20115_shouldUseSecondaryDomains()?N:null);q.JSC$20108_readyStateChangeThrottleMs_>0&&(q.JSC$20108_readyStateChangeThrottle_=new _.El((0,_.fF)(q.JSC$20108_xmlHttpHandler_,q,q.JSC$20108_xmlHttp_),q.JSC$20108_readyStateChangeThrottleMs_));q.JSC$20106_eventHandler_.listen(q.JSC$20108_xmlHttp_,
"readystatechange",q.JSC$20108_readyStateChangeHandler_);N=q.JSC$20108_extraHeaders_?_.nM.clone(q.JSC$20108_extraHeaders_):{};q.JSC$20108_postData_?(q.JSC$20108_verb_="POST",N["Content-Type"]="application/x-www-form-urlencoded",q.JSC$20108_xmlHttp_.send(q.JSC$20108_requestUri_,q.JSC$20108_verb_,q.JSC$20108_postData_,N)):(q.JSC$20108_verb_="GET",q.sendClose_&&!_.Nd&&(N.Connection="close"),q.JSC$20108_xmlHttp_.send(q.JSC$20108_requestUri_,q.JSC$20108_verb_,null,N));q.JSC$20106_channel_.notifyServerReachabilityEvent(1);
N=q.JSC$20106_channelDebug_;var b=q.JSC$20108_postData_;if(b){var y="";b=b.split("&");for(var J=0;J<b.length;J++){var E=b[J].split("=");if(E.length>1){var F=E[0];E=E[1];var R=F.split("_");y=R.length>=2&&R[1]=="type"?y+(F+"="+E+"&"):y+(F+"=redacted&")}}}else y=null;N.info("XMLHTTP REQ ("+q.JSC$20106_rid_+") [attempt "+q.JSC$20106_retryId_+"]: "+q.JSC$20108_verb_+"\n"+q.JSC$20108_requestUri_+"\n"+y)};
XL.prototype.JSC$20108_readyStateChangeHandler_=function(q){q=q.target;var N=this.JSC$20108_readyStateChangeThrottle_;N&&_.fJ(q)==3?(this.JSC$20106_channelDebug_.debug("Throttling readystatechange."),N.fire()):this.JSC$20108_xmlHttpHandler_(q)};
XL.prototype.JSC$20108_xmlHttpHandler_=function(q){try{if(q==this.JSC$20108_xmlHttp_)a:{var N=_.fJ(this.JSC$20108_xmlHttp_),b=this.JSC$20108_xmlHttp_.JSC$9877_lastErrorCode_,y=this.JSC$20108_xmlHttp_.getStatus();if(_.Nd&&!_.bZ("420+")){if(N<4)break a}else if(N<3||N==3&&!this.JSC$20108_xmlHttp_.getResponseText())break a;this.JSC$20108_cancelled_||N!=4||b==7||(b==8||y<=0?this.JSC$20106_channel_.notifyServerReachabilityEvent(3):this.JSC$20106_channel_.notifyServerReachabilityEvent(2));UJN(this);var J=
this.JSC$20108_xmlHttp_.getStatus();this.JSC$20108_lastStatusCode_=J;var E=this.JSC$20108_xmlHttp_.getResponseText();E||this.JSC$20106_channelDebug_.debug("No response text for uri "+this.JSC$20108_requestUri_+" status "+J);this.JSC$20108_successful_=J==200;this.JSC$20106_channelDebug_.info("XMLHTTP RESP ("+this.JSC$20106_rid_+") [ attempt "+this.JSC$20106_retryId_+"]: "+this.JSC$20108_verb_+"\n"+this.JSC$20108_requestUri_+"\n"+N+" "+J);if(this.JSC$20108_successful_){N==4&&ftd(this);if(this.decodeChunks_){for(q=
!0;!this.JSC$20108_cancelled_&&this.JSC$20108_xmlHttpChunkStart_<E.length;){var F=CPf(this,E);if(F==ltc){N==4&&(this.JSC$20108_lastError_=4,r6(15),q=!1);ItN(this.JSC$20106_channelDebug_,this.JSC$20106_rid_,null,"[Incomplete Response]");break}else if(F==igU){this.JSC$20108_lastError_=4;r6(16);ItN(this.JSC$20106_channelDebug_,this.JSC$20106_rid_,E,"[Invalid Chunk]");q=!1;break}else ItN(this.JSC$20106_channelDebug_,this.JSC$20106_rid_,F,null),T7c(this,F)}N==4&&E.length==0&&(this.JSC$20108_lastError_=
1,r6(17),q=!1);this.JSC$20108_successful_=this.JSC$20108_successful_&&q;q||(ItN(this.JSC$20106_channelDebug_,this.JSC$20106_rid_,E,"[Invalid Chunked Response]"),ftd(this),skf(this))}else ItN(this.JSC$20106_channelDebug_,this.JSC$20106_rid_,E,null),T7c(this,E);this.JSC$20108_successful_&&!this.JSC$20108_cancelled_&&(N==4?this.JSC$20106_channel_.JSC$20115_onRequestComplete(this):(this.JSC$20108_successful_=!1,k9a(this)))}else J==400&&E.indexOf("Unknown SID")>0?(this.JSC$20108_lastError_=3,r6(13),this.JSC$20106_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$20106_rid_+")")):(this.JSC$20108_lastError_=0,r6(14),this.JSC$20106_channelDebug_.warning("XMLHTTP Bad status "+J+" ("+this.JSC$20106_rid_+")")),ftd(this),skf(this)}else this.JSC$20106_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(R){this.JSC$20106_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var CPf=function(q,N){var b=q.JSC$20108_xmlHttpChunkStart_,y=N.indexOf("\n",b);if(y==-1)return ltc;b=Number(N.substring(b,y));if(isNaN(b))return igU;y+=1;if(y+b>N.length)return ltc;N=N.slice(y,y+b);q.JSC$20108_xmlHttpChunkStart_=y+b;return N};
XL.prototype.cancel=function(){this.JSC$20108_cancelled_=!0;ftd(this)};
var k9a=function(q){q.JSC$20108_watchDogTimeoutTime_=Date.now()+q.timeout_;nwp(q,q.timeout_)},nwp=function(q,N){if(q.JSC$20108_watchDogTimerId_!=null)throw Error("Tk");
q.JSC$20108_watchDogTimerId_=TY((0,_.fF)(q.JSC$20108_onWatchDogTimeout_,q),N)},UJN=function(q){q.JSC$20108_watchDogTimerId_&&(_.JZ.clearTimeout(q.JSC$20108_watchDogTimerId_),q.JSC$20108_watchDogTimerId_=null)};
XL.prototype.JSC$20108_onWatchDogTimeout_=function(){this.JSC$20108_watchDogTimerId_=null;var q=Date.now();q-this.JSC$20108_watchDogTimeoutTime_>=0?(this.JSC$20106_channelDebug_.info("TIMEOUT: "+this.JSC$20108_requestUri_),this.JSC$20108_type_!=2&&this.JSC$20106_channel_.notifyServerReachabilityEvent(3),ftd(this),this.JSC$20108_lastError_=2,r6(18),skf(this)):(this.JSC$20106_channelDebug_.warning("WatchDog timer called too early"),nwp(this,this.JSC$20108_watchDogTimeoutTime_-q))};
var skf=function(q){q.JSC$20106_channel_.JSC$20115_isClosed()||q.JSC$20108_cancelled_||q.JSC$20106_channel_.JSC$20115_onRequestComplete(q)},ftd=function(q){UJN(q);
_.RA(q.JSC$20108_readyStateChangeThrottle_);q.JSC$20108_readyStateChangeThrottle_=null;q.pollingTimer_.stop();q.JSC$20106_eventHandler_.removeAll();if(q.JSC$20108_xmlHttp_){var N=q.JSC$20108_xmlHttp_;q.JSC$20108_xmlHttp_=null;N.abort();N.dispose()}q.trident_&&(q.trident_=null)};
XL.prototype.getLastError=function(){return this.JSC$20108_lastError_};
var T7c=function(q,N){try{q.JSC$20106_channel_.JSC$20115_onRequestData(q,N),q.JSC$20106_channel_.notifyServerReachabilityEvent(4)}catch(b){}};var ItN=function(q,N,b,y){var J=q.info;a:if(b&&b!="y2f%"){try{var E=JSON.parse(b);if(E)for(var F=0;F<E.length;F++)if(Array.isArray(E[F])){var R=E[F];if(!(R.length<2)){var c=R[1];if(Array.isArray(c)&&!(c.length<1)){var z=c[0];if(z!="noop"&&z!="stop")for(var m=1;m<c.length;m++)c[m]=""}}}var r=(0,_.kC)(E);break a}catch(X){q.debug("Exception parsing expected JS array - probably was not JS");r=b;break a}r=void 0}else r=b;J.call(q,"XMLHTTP TEXT ("+N+"): "+r+(y?" "+y:""))};
sc.prototype.debug=function(q){this.info(q)};
sc.prototype.info=function(){};
sc.prototype.warning=function(){};var atU=function(q,N){this.JSC$20113_channel_=q;this.JSC$20113_channelDebug_=N;this.JSC$20113_parser_=new Fux};
_.g=atU.prototype;_.g.JSC$20115_extraHeaders_=null;_.g.JSC$20115_request_=null;_.g.receivedIntermediateResult_=!1;_.g.JSC$20115_path_=null;_.g.state_=null;_.g.JSC$20115_lastStatusCode_=-1;_.g.JSC$20115_hostPrefix_=null;_.g.blockedPrefix_=null;
_.g.connect=function(q){this.JSC$20115_path_=q;q=S6X(this.JSC$20113_channel_,this.JSC$20115_path_);r6(3);Date.now();var N=this.JSC$20113_channel_.firstTestResults_;N!=null?(this.JSC$20115_hostPrefix_=N[0],(this.blockedPrefix_=N[1])?(this.state_=1,WyC(this)):(this.state_=2,Lya(this))):(EQx(q,"MODE","init"),this.JSC$20115_request_=new XL(this,this.JSC$20113_channelDebug_),this.JSC$20115_request_.JSC$20108_extraHeaders_=this.JSC$20115_extraHeaders_,hka(this.JSC$20115_request_,q,!1,null,!0),this.state_=
0)};
var WyC=function(q){var N=p6x(q.JSC$20113_channel_,q.blockedPrefix_,"/mail/images/cleardot.gif");_.ul(N);XDN(N.toString(),5E3,(0,_.fF)(q.checkBlockedCallback_,q),3,2E3);q.notifyServerReachabilityEvent(1)};
atU.prototype.checkBlockedCallback_=function(q){if(q)this.state_=2,Lya(this);else{r6(4);var N=this.JSC$20113_channel_;N.JSC$20116_channelDebug_.debug("Test Connection Blocked");N.JSC$20120_lastStatusCode_=N.connectionTest_.JSC$20115_lastStatusCode_;VB(N,9)}q&&this.notifyServerReachabilityEvent(2)};
var Lya=function(q){q.JSC$20113_channelDebug_.debug("TestConnection: starting stage 2");var N=q.JSC$20113_channel_.secondTestResults_;N!=null?(q.JSC$20113_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+N?"Buffered":"Unbuffered"),r6(5),N?(r6(11),PPW(q.JSC$20113_channel_,q,!1)):(r6(12),PPW(q.JSC$20113_channel_,q,!0))):(q.JSC$20115_request_=new XL(q,q.JSC$20113_channelDebug_),q.JSC$20115_request_.JSC$20108_extraHeaders_=q.JSC$20115_extraHeaders_,N=Msf(q.JSC$20113_channel_,
q.JSC$20115_hostPrefix_,q.JSC$20115_path_),r6(5),EQx(N,"TYPE","xmlhttp"),hka(q.JSC$20115_request_,N,!1,q.JSC$20115_hostPrefix_,!1))};
_.g=atU.prototype;_.g.JSC$20115_createXhrIo=function(q){return this.JSC$20113_channel_.JSC$20115_createXhrIo(q)};
_.g.abort=function(){this.JSC$20115_request_&&(this.JSC$20115_request_.cancel(),this.JSC$20115_request_=null);this.JSC$20115_lastStatusCode_=-1};
_.g.JSC$20115_isClosed=function(){return!1};
_.g.JSC$20115_onRequestData=function(q,N){this.JSC$20115_lastStatusCode_=q.JSC$20108_lastStatusCode_;if(this.state_==0)if(this.JSC$20113_channelDebug_.debug("TestConnection: Got data for stage 1"),N){try{var b=this.JSC$20113_parser_.parse(N)}catch(y){owC(this.JSC$20113_channel_,this);return}this.JSC$20115_hostPrefix_=b[0];this.blockedPrefix_=b[1]}else this.JSC$20113_channelDebug_.debug("TestConnection: Null responseText"),owC(this.JSC$20113_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(r6(7),Date.now()):N=="11111"?(r6(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$20115_lastStatusCode_=200,this.JSC$20115_request_.cancel(),this.JSC$20113_channelDebug_.debug("Test connection succeeded; using streaming connection"),r6(12),PPW(this.JSC$20113_channel_,this,!0)):(r6(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.g.JSC$20115_onRequestComplete=function(){this.JSC$20115_lastStatusCode_=this.JSC$20115_request_.JSC$20108_lastStatusCode_;this.JSC$20115_request_.JSC$20108_successful_?this.state_==0?(this.JSC$20113_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,WyC(this)):(this.state_=2,Lya(this))):this.state_==2&&(this.JSC$20113_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$20113_channelDebug_.debug("Test connection succeeded; using streaming connection"),
r6(12),PPW(this.JSC$20113_channel_,this,!0)):(this.JSC$20113_channelDebug_.debug("Test connection failed; not using streaming"),r6(11),PPW(this.JSC$20113_channel_,this,!1))):(this.JSC$20113_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?r6(9):this.state_==2&&r6(10),owC(this.JSC$20113_channel_,this,this.JSC$20115_request_.getLastError()))};
_.g.JSC$20115_shouldUseSecondaryDomains=function(){return this.JSC$20113_channel_.JSC$20115_shouldUseSecondaryDomains()};
_.g.isActive=function(){return this.JSC$20113_channel_.isActive()};
_.g.notifyServerReachabilityEvent=function(q){this.JSC$20113_channel_.notifyServerReachabilityEvent(q)};var jt=function(q,N,b){this.state_=1;this.JSC$20116_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$20116_channelDebug_=new sc;this.JSC$20116_parser_=new Fux;this.firstTestResults_=q||null;this.secondTestResults_=N!=null?N:null;this.asyncTest_=b||!1},A0C=function(q,N){this.JSC$20118_mapId=q;
this.map=N;this.context=null};
_.g=jt.prototype;_.g.JSC$20120_extraHeaders_=null;_.g.JSC$20120_extraParams_=null;_.g.forwardChannelRequest_=null;_.g.JSC$20120_backChannelRequest_=null;_.g.JSC$20120_path_=null;_.g.JSC$20120_forwardChannelUri_=null;_.g.JSC$20120_backChannelUri_=null;_.g.JSC$20120_hostPrefix_=null;_.g.JSC$20120_nextRid_=0;_.g.JSC$20120_nextMapId_=0;_.g.handler_=null;_.g.JSC$20120_forwardChannelTimerId_=null;_.g.JSC$20120_backChannelTimerId_=null;_.g.JSC$20120_deadBackChannelTimerId_=null;_.g.connectionTest_=null;
_.g.useChunked_=null;_.g.JSC$20120_lastArrayId_=-1;_.g.JSC$20120_lastPostResponseArrayId_=-1;_.g.JSC$20120_lastStatusCode_=-1;_.g.JSC$20120_forwardChannelRetryCount_=0;_.g.JSC$20120_backChannelRetryCount_=0;_.g.JSC$20120_channelVersion_=8;var ekU={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},B7c=function(q,N,b,y){_.xC.call(this,"timingevent",q);this.size=N;this.rtt=b;this.retries=y};
_.oK(B7c,_.xC);var Hgd=function(q){_.xC.call(this,"serverreachability",q)};
_.oK(Hgd,_.xC);jt.prototype.connect=function(q,N,b,y,J){this.JSC$20116_channelDebug_.debug("connect()");r6(0);this.JSC$20120_path_=N;this.JSC$20120_extraParams_=b||{};y&&J!==void 0&&(this.JSC$20120_extraParams_.OSID=y,this.JSC$20120_extraParams_.OAID=J);this.asyncTest_?(TY((0,_.fF)(this.connectTest_,this,q),100),qbf(this)):this.connectTest_(q)};
jt.prototype.disconnect=function(){this.JSC$20116_channelDebug_.debug("disconnect()");N2K(this);if(this.state_==3){var q=this.JSC$20120_nextRid_++,N=this.JSC$20120_forwardChannelUri_.clone();_.yS(N,"SID",this.sid_);_.yS(N,"RID",q);_.yS(N,"TYPE","terminate");bEW(this,N);q=new XL(this,this.JSC$20116_channelDebug_,this.sid_,q);q.JSC$20108_type_=2;q.JSC$20108_baseUri_=_.ul(N.clone());(new Image).src=q.JSC$20108_baseUri_.toString();q.JSC$20108_requestStartTime_=Date.now();k9a(q)}yPC(this)};
jt.prototype.connectTest_=function(q){this.JSC$20116_channelDebug_.debug("connectTest_()");this.connectionTest_=new atU(this,this.JSC$20116_channelDebug_);this.connectionTest_.JSC$20115_extraHeaders_=this.JSC$20120_extraHeaders_;this.connectionTest_.JSC$20113_parser_=this.JSC$20116_parser_;this.connectionTest_.connect(q)};
var qbf=function(q){q.JSC$20116_channelDebug_.debug("connectChannel_()");q.JSC$20120_ensureInState_(1,0);q.JSC$20120_forwardChannelUri_=S6X(q,q.JSC$20120_path_);JPx(q)},N2K=function(q){q.connectionTest_&&(q.connectionTest_.abort(),q.connectionTest_=null);
q.JSC$20120_backChannelRequest_&&(q.JSC$20120_backChannelRequest_.cancel(),q.JSC$20120_backChannelRequest_=null);q.JSC$20120_backChannelTimerId_&&(_.JZ.clearTimeout(q.JSC$20120_backChannelTimerId_),q.JSC$20120_backChannelTimerId_=null);E$x(q);q.forwardChannelRequest_&&(q.forwardChannelRequest_.cancel(),q.forwardChannelRequest_=null);q.JSC$20120_forwardChannelTimerId_&&(_.JZ.clearTimeout(q.JSC$20120_forwardChannelTimerId_),q.JSC$20120_forwardChannelTimerId_=null)},g$K=function(q,N){if(q.state_==0)throw Error("Wk");
q.JSC$20116_outgoingMaps_.length==1E3&&q.JSC$20116_parser_.stringify(N);q.JSC$20116_outgoingMaps_.push(new A0C(q.JSC$20120_nextMapId_++,N));q.state_!=2&&q.state_!=3||JPx(q)};
jt.prototype.JSC$20115_isClosed=function(){return this.state_==0};
jt.prototype.getState=function(){return this.state_};
var JPx=function(q){q.forwardChannelRequest_||q.JSC$20120_forwardChannelTimerId_||(q.JSC$20120_forwardChannelTimerId_=TY((0,_.fF)(q.JSC$20120_onStartForwardChannelTimer_,q),0),q.JSC$20120_forwardChannelRetryCount_=0)};
jt.prototype.JSC$20120_onStartForwardChannelTimer_=function(q){this.JSC$20120_forwardChannelTimerId_=null;ZEW(this,q)};
var ZEW=function(q,N){q.JSC$20116_channelDebug_.debug("startForwardChannel_");if(q.state_==1){if(!N){q.JSC$20116_channelDebug_.debug("open_()");q.JSC$20120_nextRid_=Math.floor(Math.random()*1E5);N=q.JSC$20120_nextRid_++;var b=new XL(q,q.JSC$20116_channelDebug_,"",N);b.JSC$20108_extraHeaders_=q.JSC$20120_extraHeaders_;var y=F$B(q),J=q.JSC$20120_forwardChannelUri_.clone();_.yS(J,"RID",N);_.yS(J,"CVER","1");bEW(q,J);DJf(b,J,y);q.forwardChannelRequest_=b;q.state_=2}}else q.state_==3&&(N?RHa(q,N):q.JSC$20116_outgoingMaps_.length==
0?q.JSC$20116_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):q.forwardChannelRequest_||(RHa(q),q.JSC$20116_channelDebug_.debug("startForwardChannel_ finished, sent request")))},RHa=function(q,N){if(N)if(q.JSC$20120_channelVersion_>6){q.JSC$20116_outgoingMaps_=q.pendingMaps_.concat(q.JSC$20116_outgoingMaps_);
q.pendingMaps_.length=0;var b=q.JSC$20120_nextRid_-1;N=F$B(q)}else b=N.JSC$20106_rid_,N=N.JSC$20108_postData_;else b=q.JSC$20120_nextRid_++,N=F$B(q);var y=q.JSC$20120_forwardChannelUri_.clone();_.yS(y,"SID",q.sid_);_.yS(y,"RID",b);_.yS(y,"AID",q.JSC$20120_lastArrayId_);bEW(q,y);b=new XL(q,q.JSC$20116_channelDebug_,q.sid_,b,q.JSC$20120_forwardChannelRetryCount_+1);b.JSC$20108_extraHeaders_=q.JSC$20120_extraHeaders_;b.setTimeout(1E4+Math.round(1E4*Math.random()));q.forwardChannelRequest_=b;DJf(b,y,
N)},bEW=function(q,N){q.handler_&&(q=q.handler_.JSC$20127_getAdditionalParams())&&_.nM.forEach(q,function(b,y){_.yS(N,y,b)})},F$B=function(q){var N=Math.min(q.JSC$20116_outgoingMaps_.length,1E3),b=["count="+N];
if(q.JSC$20120_channelVersion_>6&&N>0){var y=q.JSC$20116_outgoingMaps_[0].JSC$20118_mapId;b.push("ofs="+y)}else y=0;for(var J={},E=0;E<N;J={mapId$jscomp$3:void 0},E++){J.mapId$jscomp$3=q.JSC$20116_outgoingMaps_[E].JSC$20118_mapId;var F=q.JSC$20116_outgoingMaps_[E].map;J.mapId$jscomp$3=q.JSC$20120_channelVersion_<=6?E:J.mapId$jscomp$3-y;try{_.nM.forEach(F,function(R){return function(c,z){b.push("req"+R.mapId$jscomp$3+"_"+z+"="+encodeURIComponent(c))}}(J))}catch(R){b.push("req"+J.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}q.pendingMaps_=q.pendingMaps_.concat(q.JSC$20116_outgoingMaps_.splice(0,N));
return b.join("&")},d8a=function(q){q.JSC$20120_backChannelRequest_||q.JSC$20120_backChannelTimerId_||(q.JSC$20120_backChannelAttemptId_=1,q.JSC$20120_backChannelTimerId_=TY((0,_.fF)(q.JSC$20120_onStartBackChannelTimer_,q),0),q.JSC$20120_backChannelRetryCount_=0)},uiC=function(q){if(q.JSC$20120_backChannelRequest_||q.JSC$20120_backChannelTimerId_||q.JSC$20120_backChannelRetryCount_>=3)return!1;
q.JSC$20116_channelDebug_.debug("Going to retry GET");q.JSC$20120_backChannelAttemptId_++;q.JSC$20120_backChannelTimerId_=TY((0,_.fF)(q.JSC$20120_onStartBackChannelTimer_,q),cPc(q,q.JSC$20120_backChannelRetryCount_));q.JSC$20120_backChannelRetryCount_++;return!0};
jt.prototype.JSC$20120_onStartBackChannelTimer_=function(){this.JSC$20120_backChannelTimerId_=null;this.JSC$20116_channelDebug_.debug("Creating new HttpRequest");this.JSC$20120_backChannelRequest_=new XL(this,this.JSC$20116_channelDebug_,this.sid_,"rpc",this.JSC$20120_backChannelAttemptId_);this.JSC$20120_backChannelRequest_.JSC$20108_extraHeaders_=this.JSC$20120_extraHeaders_;this.JSC$20120_backChannelRequest_.JSC$20108_readyStateChangeThrottleMs_=0;var q=this.JSC$20120_backChannelUri_.clone();_.yS(q,
"RID","rpc");_.yS(q,"SID",this.sid_);_.yS(q,"CI",this.useChunked_?"0":"1");_.yS(q,"AID",this.JSC$20120_lastArrayId_);bEW(this,q);_.yS(q,"TYPE","xmlhttp");hka(this.JSC$20120_backChannelRequest_,q,!0,this.JSC$20120_hostPrefix_,!1);this.JSC$20116_channelDebug_.debug("New Request created")};
var PPW=function(q,N,b){q.JSC$20116_channelDebug_.debug("Test Connection Finished");q.useChunked_=q.secondTestResults_==null?b:!q.secondTestResults_;q.JSC$20120_lastStatusCode_=N.JSC$20115_lastStatusCode_;q.asyncTest_||qbf(q)},owC=function(q,N){q.JSC$20116_channelDebug_.debug("Test Connection Failed");
q.JSC$20120_lastStatusCode_=N.JSC$20115_lastStatusCode_;VB(q,2)};
jt.prototype.JSC$20115_onRequestData=function(q,N){if(this.state_!=0&&(this.JSC$20120_backChannelRequest_==q||this.forwardChannelRequest_==q))if(this.JSC$20120_lastStatusCode_=q.JSC$20108_lastStatusCode_,this.forwardChannelRequest_==q&&this.state_==3)if(this.JSC$20120_channelVersion_>7){try{var b=this.JSC$20116_parser_.parse(N)}catch(y){b=null}if(Array.isArray(b)&&b.length==3)if(N=b,N[0]==0)a:if(this.JSC$20116_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$20120_backChannelTimerId_)this.JSC$20116_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$20120_backChannelRequest_)if(this.JSC$20120_backChannelRequest_.JSC$20108_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$20108_requestStartTime_)E$x(this),this.JSC$20120_backChannelRequest_.cancel(),this.JSC$20120_backChannelRequest_=null;else break a;else this.JSC$20116_channelDebug_.warning("We do not have a BackChannel established");uiC(this);r6(19)}else this.JSC$20120_lastPostResponseArrayId_=N[1],q=this.JSC$20120_lastPostResponseArrayId_-this.JSC$20120_lastArrayId_,0<
q&&(N=N[2],this.JSC$20116_channelDebug_.debug(N+" bytes (in "+q+" arrays) are outstanding on the BackChannel"),N<37500&&this.useChunked_&&this.JSC$20120_backChannelRetryCount_==0&&!this.JSC$20120_deadBackChannelTimerId_&&(this.JSC$20120_deadBackChannelTimerId_=TY((0,_.fF)(this.JSC$20120_onBackChannelDead_,this),6E3)));else this.JSC$20116_channelDebug_.debug("Bad POST response data returned"),VB(this,11)}else N!="y2f%"&&(this.JSC$20116_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
VB(this,11));else this.JSC$20120_backChannelRequest_==q&&E$x(this),_.dA(N)||(q=this.JSC$20116_parser_.parse(N),this.onInput_(q))};
jt.prototype.JSC$20120_onBackChannelDead_=function(){this.JSC$20120_deadBackChannelTimerId_!=null&&(this.JSC$20120_deadBackChannelTimerId_=null,this.JSC$20120_backChannelRequest_.cancel(),this.JSC$20120_backChannelRequest_=null,uiC(this),r6(20))};
var E$x=function(q){q.JSC$20120_deadBackChannelTimerId_!=null&&(_.JZ.clearTimeout(q.JSC$20120_deadBackChannelTimerId_),q.JSC$20120_deadBackChannelTimerId_=null)};
jt.prototype.JSC$20115_onRequestComplete=function(q){this.JSC$20116_channelDebug_.debug("Request complete");if(this.JSC$20120_backChannelRequest_==q){E$x(this);this.JSC$20120_backChannelRequest_=null;var N=2}else if(this.forwardChannelRequest_==q)this.forwardChannelRequest_=null,N=1;else return;this.JSC$20120_lastStatusCode_=q.JSC$20108_lastStatusCode_;if(this.state_!=0)if(q.JSC$20108_successful_)if(N==1){N=q.JSC$20108_postData_?q.JSC$20108_postData_.length:0;q=Date.now()-q.JSC$20108_requestStartTime_;
var b=Qkc;b.dispatchEvent(new B7c(b,N,q,this.JSC$20120_forwardChannelRetryCount_));JPx(this);this.handler_&&this.handler_.JSC$20127_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else d8a(this);else{b=q.getLastError();if(b==3||b==7||b==0&&this.JSC$20120_lastStatusCode_>0)this.JSC$20116_channelDebug_.debug("Not retrying due to error type");else{this.JSC$20116_channelDebug_.debug("Maybe retrying, last error: "+w6U(b,this.JSC$20120_lastStatusCode_));var y;if(y=N==1)this.forwardChannelRequest_||
this.JSC$20120_forwardChannelTimerId_||this.state_==1||this.JSC$20120_forwardChannelRetryCount_>=2?y=!1:(this.JSC$20116_channelDebug_.debug("Going to retry POST"),this.JSC$20120_forwardChannelTimerId_=TY((0,_.fF)(this.JSC$20120_onStartForwardChannelTimer_,this,q),cPc(this,this.JSC$20120_forwardChannelRetryCount_)),this.JSC$20120_forwardChannelRetryCount_++,y=!0);if(y||N==2&&uiC(this))return;this.JSC$20116_channelDebug_.debug("Exceeded max number of retries")}this.JSC$20116_channelDebug_.debug("Error: HTTP request failed");
switch(b){case 1:VB(this,5);break;case 4:VB(this,10);break;case 3:VB(this,6);break;case 7:VB(this,12);break;default:VB(this,2)}}};
var cPc=function(q,N){var b=5E3+Math.floor(Math.random()*1E4);q.isActive()||(q.JSC$20116_channelDebug_.debug("Inactive channel"),b*=2);return b*N};
jt.prototype.onInput_=function(q){for(var N=0;N<q.length;N++){var b=q[N];this.JSC$20120_lastArrayId_=b[0];b=b[1];this.state_==2?b[0]=="c"?(this.sid_=b[1],this.JSC$20120_hostPrefix_=b[2],b=b[3],b!=null?this.JSC$20120_channelVersion_=b:this.JSC$20120_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$20127_channelOpened(),this.JSC$20120_backChannelUri_=Msf(this,this.JSC$20120_hostPrefix_,this.JSC$20120_path_),d8a(this)):b[0]=="stop"&&VB(this,7):this.state_==3&&(b[0]=="stop"?VB(this,7):
b[0]!="noop"&&this.handler_&&this.handler_.JSC$20127_channelHandleArray(b),this.JSC$20120_backChannelRetryCount_=0)}};
jt.prototype.JSC$20120_ensureInState_=function(q){if(!_.aJ(arguments,this.state_))throw Error("Xk`"+this.state_);};
var VB=function(q,N){q.JSC$20116_channelDebug_.info("Error code "+N);if(N==2||N==9){var b=null;q.handler_&&(b=null);var y=(0,_.fF)(q.testGoogleComCallback_,q);b||(b=new _.a$("//www.google.com/images/cleardot.gif"),_.ul(b));r3d(b.toString(),1E4,y)}else r6(2);q.onError_(N)};
jt.prototype.testGoogleComCallback_=function(q){q?(this.JSC$20116_channelDebug_.info("Successfully pinged google.com"),r6(2)):(this.JSC$20116_channelDebug_.info("Failed to ping google.com"),r6(1),this.onError_(8))};
jt.prototype.onError_=function(q){this.JSC$20116_channelDebug_.debug("HttpChannel: error - "+q);this.state_=0;this.handler_&&this.handler_.JSC$20127_channelError(q);yPC(this);N2K(this)};
var yPC=function(q){q.state_=0;q.JSC$20120_lastStatusCode_=-1;if(q.handler_)if(q.pendingMaps_.length==0&&q.JSC$20116_outgoingMaps_.length==0)q.handler_.JSC$20127_channelClosed();else{q.JSC$20116_channelDebug_.debug("Number of undelivered maps, pending: "+q.pendingMaps_.length+", outgoing: "+q.JSC$20116_outgoingMaps_.length);var N=_.LC(q.pendingMaps_),b=_.LC(q.JSC$20116_outgoingMaps_);q.pendingMaps_.length=0;q.JSC$20116_outgoingMaps_.length=0;q.handler_.JSC$20127_channelClosed(N,b)}},S6X=function(q,
N){N=p6x(q,null,N);
q.JSC$20116_channelDebug_.debug("GetForwardChannelUri: "+N);return N},Msf=function(q,N,b){N=p6x(q,q.JSC$20115_shouldUseSecondaryDomains()?N:null,b);
q.JSC$20116_channelDebug_.debug("GetBackChannelUri: "+N);return N},p6x=function(q,N,b){var y=_.N0(b);
if(y.JSC$10113_domain_!="")N&&_.J5(y,N+"."+y.JSC$10113_domain_),_.EI(y,y.JSC$10113_port_);else{var J=window.location;y=qCp(J.protocol,N?N+"."+J.hostname:J.hostname,+J.port,b)}q.JSC$20120_extraParams_&&_.nM.forEach(q.JSC$20120_extraParams_,function(E,F){_.yS(y,F,E)});
_.yS(y,"VER",q.JSC$20120_channelVersion_);bEW(q,y);return y};
jt.prototype.JSC$20115_createXhrIo=function(q){if(q)throw Error("Uk");q=new _.U1;q.JSC$9877_withCredentials_=!1;return q};
jt.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
jt.prototype.notifyServerReachabilityEvent=function(q){var N=Qkc;N.dispatchEvent(new Hgd(N,q))};
jt.prototype.JSC$20115_shouldUseSecondaryDomains=function(){return!1};
new gcU;var zHa=function(){};
_.g=zHa.prototype;_.g.JSC$20127_channelOpened=function(){};
_.g.JSC$20127_channelHandleArray=function(){};
_.g.JSC$20127_channelSuccess=function(){};
_.g.JSC$20127_channelError=function(){};
_.g.JSC$20127_channelClosed=function(){};
_.g.JSC$20127_getAdditionalParams=function(){return{}};
_.g.isActive=function(){return!0};var $8B=function(q){q.front_.length===0&&(q.front_=q.back_,q.front_.reverse(),q.back_=[])};
_.g=jmA.prototype;_.g.enqueue=function(q){this.back_.push(q)};
_.g.peek=function(){$8B(this);return _.UJ(this.front_)};
_.g.getCount=function(){return this.front_.length+this.back_.length};
_.g.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.g.clear=function(){this.front_=[];this.back_=[]};
_.g.contains=function(q){return _.aJ(this.front_,q)||_.aJ(this.back_,q)};
_.g.remove=function(q){var N=this.front_;var b=Array.prototype.lastIndexOf.call(N,q,N.length-1);b>=0?(_.Dez(N,b),N=!0):N=!1;return N||_.WA(this.back_,q)};
_.g.getValues=function(){for(var q=[],N=this.front_.length-1;N>=0;--N)q.push(this.front_[N]);N=this.back_.length;for(var b=0;b<N;++b)q.push(this.back_[b]);return q};var xK=function(q){this.JSC$20131_map_=new _.XK;this.size=0;q&&this.addAll(q)},tmx=function(q){var N=typeof q;
return N=="object"&&q||N=="function"?"o"+_.en(q):N.charAt(0)+q};
_.g=xK.prototype;_.g.getCount=function(){return this.JSC$20131_map_.size};
_.g.add=function(q){this.JSC$20131_map_.set(tmx(q),q);this.size=this.JSC$20131_map_.size};
_.g.addAll=function(q){q=_.bl(q);for(var N=q.length,b=0;b<N;b++)this.add(q[b]);this.size=this.JSC$20131_map_.size};
_.g.removeAll=function(q){q=_.bl(q);for(var N=q.length,b=0;b<N;b++)this.remove(q[b]);this.size=this.JSC$20131_map_.size};
_.g.delete=function(q){q=this.JSC$20131_map_.remove(tmx(q));this.size=this.JSC$20131_map_.size;return q};
_.g.remove=function(q){return this.delete(q)};
_.g.clear=function(){this.JSC$20131_map_.clear();this.size=0};
_.g.isEmpty=function(){return this.JSC$20131_map_.size===0};
_.g.has=function(q){return this.JSC$20131_map_.containsKey(tmx(q))};
_.g.contains=function(q){return this.JSC$20131_map_.containsKey(tmx(q))};
_.g.getValues=function(){return this.JSC$20131_map_.getValues()};
_.g.values=function(){return this.JSC$20131_map_.values()};
_.g.clone=function(){return new xK(this)};
_.g.equals=function(q){return this.getCount()==BPK(q)&&m8U(this,q)};
var m8U=function(q,N){var b=BPK(N);if(q.getCount()>b)return!1;!(N instanceof xK)&&b>5&&(N=new xK(N));return HvW(q,function(y){var J=N;return J.contains&&typeof J.contains=="function"?J.contains(y):J.containsValue&&typeof J.containsValue=="function"?J.containsValue(y):_.pC(J)||typeof J==="string"?_.aJ(J,y):_.nM.containsValue(J,y)})};
xK.prototype.__iterator__=function(){return this.JSC$20131_map_.__iterator__(!1)};
xK.prototype[Symbol.iterator]=function(){return this.values()};var rPA={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(q){return(this._clampValue(q)-this.min)/(this.max-this.min)},
_clampValue:function(q){return Math.min(this.max,Math.max(this.min,this._calcStep(q)))},
_calcStep:function(q){q=parseFloat(q);if(!this.step)return q;q=Math.round((q-this.min)/this.step);return this.step<1?q/(1/this.step)+this.min:q*this.step+this.min},
_validateValue:function(){var q=this._clampValue(this.value);this.value=this.oldValue=isNaN(q)?this.oldValue:q;return this.value!==q},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var XXA;var VmU;_.x9({_template:function(){if(VmU!==void 0)return VmU;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;XXA===void 0&&(XXA=document.createElement("template"));var y=XXA;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return VmU=q},
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(){_.ut(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(q){q.keyCode===27&&(q.preventDefault(),this.close())},
_track:function(q){if(!this.persistent&&!this.disableSwipe)switch(q.preventDefault(),q.detail.state){case "start":this._trackStart(q);break;case "track":this._trackMove(q);break;case "end":this._trackEnd(q)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var q=this.$.contentContainer.getBoundingClientRect();this._savedWidth=q.width;this._translateOffset=this.position==="left"?q.left:q.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(q){this._trackDetails&&(this._translateDrawer(q.detail.dx+this._translateOffset),this._trackDetails.push({dx:q.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(q){if(this._trackDetails){var N=q.detail.dx+this._translateOffset,b=this.getWidth();N=this.position==="left"?N>=0||N<=-b:N<=0||N>=b;if(!N){var y=this._trackDetails;this._trackDetails=null;this._flingDrawer(q,y);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}b/=2;q.detail.dx<-b?this.opened=this.position==="right":q.detail.dx>b&&(this.opened=this.position==="left");N?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(q,N){for(var b=Date.now(),y=b-100,J,E=0,F=N.length-1;E<=F;){var R=E+F>>1,c=N[R];c.timeStamp>=y?(J=c,F=R-1):E=R+1}return J?(q.detail.dx-J.dx)/(b-J.timeStamp||1):0},
_flingDrawer:function(q,N){N=this._calculateVelocity(q,N);if(!(Math.abs(N)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;q=q.detail.dx+this._translateOffset;var b=this.getWidth(),y=this.position==="left",J=N>0;J?(N=Math.max(N,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(N=Math.min(N,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");N=this._FLING_INITIAL_SLOPE*(!J&&y?-(q+b):J&&!y?b-q:-q)/N;this._styleTransitionDuration(N);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,N)}},
_styleTransitionDuration:function(q){this.style.transitionDuration=q+"ms";this.$.contentContainer.style.transitionDuration=q+"ms";this.$.scrim.style.transitionDuration=q+"ms"},
_styleTransitionTimingFunction:function(q){this.$.contentContainer.style.transitionTimingFunction=q;this.$.scrim.style.transitionTimingFunction=q},
_translateDrawer:function(q){var N=this.getWidth();this.position==="left"?(q=Math.max(-N,Math.min(q,0)),this.$.scrim.style.opacity=1+q/N):(q=Math.max(0,Math.min(q,N)),this.$.scrim.style.opacity=1-q/N);this.translate3d(q+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var q=this._drawerState;q===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;q!==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=""),q!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var q=_.mj(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"])');q.length>0?(this._firstTabStop=q[0],this._lastTabStop=q[q.length-1]):
this._lastTabStop=this._firstTabStop=null;(q=this.getAttribute("tabindex"))&&parseInt(q,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(q){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||q.keyCode!==9||(q.shiftKey?this._firstTabStop&&_.mj(q).localTarget===this._firstTabStop&&(q.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.mj(q).localTarget===this._lastTabStop&&(q.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(q,N){this.toggleClass("visible",q&&!N,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 jQc;var x8C;_.x9({_template:function(){if(x8C!==void 0)return x8C;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;jQc===void 0&&(jQc=document.createElement("template"));var y=jQc;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return x8C=q},
is:"tp-yt-paper-progress",behaviors:[rPA],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(q){this.toggleClass("indeterminate",q,this.$.primaryProgress)},
_transformProgress:function(q,N){q.style.transform=q.style.webkitTransform="scaleX("+N/100+")"},
_mainRatioChanged:function(q){this._transformProgress(this.$.primaryProgress,q)},
_progressChanged:function(q,N,b,y,J){q=this._clampValue(q);N=this._clampValue(N);var E=this._calcRatio(q)*100,F=this._calcRatio(N)*100;this._setSecondaryRatio(E);this._transformProgress(this.$.secondaryProgress,E);this._transformProgress(this.$.primaryProgress,F);this.secondaryProgress=q;J?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",N);this.setAttribute("aria-valuemin",b);this.setAttribute("aria-valuemax",y)},
_disabledChanged:function(q){this.setAttribute("aria-disabled",q?"true":"false")},
_hideSecondaryProgress:function(q){return q===0}});var v$A;var G7X;var Yba=function(){};
_.g=Yba.prototype;_.g.registered=function(){};
_.g.addOwnKeyBinding=function(){};
_.g.removeOwnKeyBindings=function(){};
_.g.keyboardEventMatchesKeys=function(){};
_.g._collectKeyBindings=function(){};
_.g._prepKeyBindings=function(){};
_.g._addKeyBinding=function(){};
_.g._resetKeyEventListeners=function(){};
_.g._listenKeyEventListeners=function(){};
_.g._unlistenKeyEventListeners=function(){};
_.g._onKeyBindingEvent=function(){};
_.g._triggerKeyHandler=function(){};
_.g._tapHandler=function(){};
_.g._focusChanged=function(){};
_.g._detectKeyboardFocus=function(){};
_.g._userActivate=function(){};
_.g._upHandler=function(){};
_.g._spaceKeyDownHandler=function(){};
_.g._spaceKeyUpHandler=function(){};
_.g._asyncClick=function(){};
_.g._pressedChanged=function(){};
_.g._ariaActiveAttributeChanged=function(){};
_.g._activeChanged=function(){};
_.g._controlStateChanged=function(){};
_.g._changedButtonState=function(){};
_.g._focusBlurHandler=function(){};
_.g._disabledChanged=function(){};
_.g._changedControlState=function(){};
_.g._buttonStateChanged=function(){};
_.g._downHandler=function(){};
_.g.ensureRipple=function(){};
_.g.getRipple=function(){};
_.g.hasRipple=function(){};
_.g._noinkChanged=function(){};
_.g._calcRatio=function(){};
_.g._clampValue=function(){};
_.g._calcStep=function(){};
_.g._validateValue=function(){};
_.g._update=function(){};
_.g._setImmediateValue=function(){};
_.g._setExpand=function(){};
_.g._setDragging=function(){};
_.g._setTransiting=function(){};
_.g._setMarkers=function(){};
_.g._setPressed=function(){};
_.g._setPointerDown=function(){};
_.g._setReceivedFocusFromKeyboard=function(){};
_.g._setFocused=function(){};
_.g._setRatio=function(){};
Yba=_.x9({_template:function(){if(G7X!==void 0)return G7X;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;v$A===void 0&&(v$A=document.createElement("template"));var y=v$A;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return G7X=q},
is:"tp-yt-paper-slider",behaviors:[_.kT,_.IV,_.ZJv,rPA],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&&_.oC(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(q,N,b){this.setAttribute("aria-valuemin",N);this.setAttribute("aria-valuemax",b);this.setAttribute("aria-valuenow",q);this._positionKnob(this._calcRatio(q)*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(q){this._setImmediateValue(this._calcStep(this._calcKnobPosition(q)));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(q){return(this.max-this.min)*q/100+this.min},
_onTrack:function(q){q.stopPropagation();switch(q.detail.state){case "start":this._trackStart(q);break;case "track":this._trackX(q);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(q){this.dragging||this._trackStart(q);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,q.detail.dx*(this._isRTL?-1:1)));q=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(q);q=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(q+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var q=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;q.transform=q.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(q){this._expandKnob();q.preventDefault();this.focus()},
_bartrack:function(q){this._allowBarEvent(q)&&this._onTrack(q)},
_barclick:function(q){this._w=this.$.sliderBar.offsetWidth;var N=this.$.sliderBar.getBoundingClientRect();N=(q.detail.x-N.left)/this._w*100;this._isRTL&&(N=100-N);var b=this.ratio;this._setTransiting(!0);this._positionKnob(N);b===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
q.preventDefault();this.focus()},
_bardown:function(q){this._allowBarEvent(q)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(q))},
_knobTransitionEnd:function(q){q.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(q,N,b,y){y||this._setMarkers([]);N=Math.round((b-N)/this.step);N>q&&(N=q);if(N<0||!isFinite(N))N=0;this._setMarkers(Array(N))},
_mergeClasses:function(q){return Object.keys(q).filter(function(N){return q[N]}).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(q){return!this.ignoreBarTouch||q.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(q){this._isRTL?this._incrementKey(q):this._decrementKey(q)},
_rightKey:function(q){this._isRTL?this._decrementKey(q):this._incrementKey(q)},
_incrementKey:function(q){this.disabled||(q.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),q.preventDefault())},
_decrementKey:function(q){this.disabled||(q.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),q.preventDefault())},
_changeValue:function(q){this.value=q.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(q){q.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.gC4._createRipple.call(this)},
_focusedChanged:function(q){q&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=q?"":"none",this._ripple.holdDown=q)}});var QQa;var OEp;var vl=null,wXx=function(){};
_.g=wXx.prototype;_.g.fit=function(){};
_.g._discoverInfo=function(){};
_.g.resetFit=function(){};
_.g.refit=function(){};
_.g.position=function(){};
_.g.constrain=function(){};
_.g._sizeDimension=function(){};
_.g.__sizeDimension=function(){};
_.g.center=function(){};
_.g.__getNormalizedRect=function(){};
_.g.__getOffscreenArea=function(){};
_.g.__getPosition=function(){};
_.g.notifyResize=function(){};
_.g.assignParentResizable=function(){};
_.g.stopResizeNotificationsFor=function(){};
_.g._subscribeIronResize=function(){};
_.g._unsubscribeIronResize=function(){};
_.g.resizerShouldNotify=function(){};
_.g._onDescendantIronResize=function(){};
_.g._fireResize=function(){};
_.g._onIronRequestResizeNotifications=function(){};
_.g._parentResizableChanged=function(){};
_.g._notifyDescendant=function(){};
_.g._requestResizeNotifications=function(){};
_.g._findParent=function(){};
_.g.toggle=function(){};
_.g.open=function(){};
_.g.close=function(){};
_.g.cancel=function(){};
_.g.invalidateTabbables=function(){};
_.g._ensureSetup=function(){};
_.g._canceledChanged=function(){};
_.g._withBackdropChanged=function(){};
_.g._prepareRenderOpened=function(){};
_.g._finishRenderOpened=function(){};
_.g._finishRenderClosed=function(){};
_.g._preparePositioning=function(){};
_.g._finishPositioning=function(){};
_.g._applyFocus=function(){};
_.g._onCaptureClick=function(){};
_.g._onCaptureFocus=function(){};
_.g._onCaptureEsc=function(){};
_.g._onCaptureTab=function(){};
_.g._onIronResize=function(){};
_.g._onNodesChange=function(){};
_.g.__ensureFirstLastFocusables=function(){};
_.g.__openedChanged=function(){};
_.g.__deraf=function(){};
_.g.__updateScrollObservers=function(){};
_.g.__addScrollListeners=function(){};
_.g.__removeScrollListeners=function(){};
_.g.__isValidScrollAction=function(){};
_.g.__onCaptureScroll=function(){};
_.g.__saveScrollPosition=function(){};
_.g.__restoreScrollPosition=function(){};
_.g._setCanceled=function(){};
wXx=_.x9({_template:function(){if(OEp!==void 0)return OEp;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;QQa===void 0&&(QQa=document.createElement("template"));var y=QQa;b.call(N,y.content.cloneNode(!0),q.content.firstChild);return OEp=q},
is:"tp-yt-paper-toast",behaviors:[_.Ej],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(){_.Dh._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.qM.requestAvailability()},
show:function(q){typeof q=="string"&&(q={text:q});for(var N in q)N.indexOf("_")===0?_.Dh._warn('The property "'+N+'" is private and was not set.'):N in this?this[N]=q[N]:_.Dh._warn('The property "'+N+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(q){q&&q.target===this&&q.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(vl&&vl!==this&&vl.close(),vl=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):vl===this&&(vl=null);_.JT._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(q){this.positionTarget=q},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var iEf=new _.yT("disablePersonalizationAction");var iJf=new _.yT("showDmaConsentFlowCommand");var l6f=new _.yT("showMmgNoticeCommand");var lvf=new _.yT("saveConsentAction");var K$C=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tc(q)};
_.Y(K$C,_.Rx);var D8a=_.Mvd(K$C);var hHK=new _.yT("updateTopbarAvatarAction");var k7p=new _.yT("channelHandleValidationResultRenderer");var U8d=new _.yT("generateHandleFromNameResultRenderer");var vlp=new _.yT("channelHandleInputRenderer");var GkN=new _.yT("copyLinkRenderer");var Yrp=new _.yT("timedCommand");var QZA=new _.yT("clearCookieAction");var Oup=new _.yT("getMultiPageMenuAction");var wfa=new _.yT("addToGuideSectionAction"),iuc=new _.yT("removeFromGuideSectionAction");var l0A=new _.yT("updateNotificationsUnseenCountAction");var K1X=new _.yT("resetChannelUnreadCountCommand");var Dya=new _.yT("resetSubscriptionsUnreadDotCommand");var hhc=new _.yT("selectLanguageCommand");var aoX=new _.yT("sendFeedbackAction");var kkf=new _.yT("uploadImageToScottyCommand");var Uyc=new _.yT("registerPromoCommand");var f0x=new _.yT("setPushNotificationsEnabledCommand");var Czd=new _.yT("desktopTopbarRenderer");var I0X=new _.yT("surveyFollowUpRenderer");var Toa=new _.yT("handlesClaimingRadioOptionRenderer");var sZB=new _.yT("hotkeyDialogRenderer");var nlW=new _.yT("modifyReportFormCommand");var a0f=new _.yT("accountLinkCommand");var SrK=new _.yT("accountUnlinkCommand");var W1a=new _.yT("logAccountLinkingEventCommand");var L1c=new _.yT("guideCollapsibleEntryRenderer");var pff=new _.yT("guideDownloadsEntryRenderer");var CZA=new _.yT("guideEntryRenderer");var PzK=new _.yT("getLocationCommand");var M$d=new _.yT("locationCollectionCommand");var olf=new _.yT("storiesItemViewModel");var AAK=new _.yT("addToRemoteQueueAction");var ehN=new _.yT("insertInRemoteQueueAction");var BoU=new _.yT("removeFromRemoteQueueAction");var Huc=new _.yT("notificationRenderer");var clC=new _.yT("localWatchHistoryCommand");var qiB=new _.yT("pdgBuyFlowHeaderRenderer");var NlA=new _.yT("pdgColorSliderRenderer");var b_f=new _.yT("pdgCommentOptionRenderer");var yYW=new _.yT("pdgCommentPreviewRenderer");var JYc=new _.yT("superVodSelectableItemButtonRenderer");var Era=new _.yT("switchButtonRenderer");var grf=new _.yT("upsellDialogRenderer");var Z_f=new _.yT("feedbackQuestionRenderer"),FiC=new _.yT("feedbackOptionRenderer");var ReA=new _.yT("sponsorshipsTierRenderer"),dqU=new _.yT("sponsorshipsPromotionChannelRenderer");var cYN=new _.yT("simpleSurveyMessageRenderer");var p2C=new _.yT("invokeInstrumentManagerAction");var uhA=new _.yT("logYpcFlowDismissCommand");var zeB=new _.yT("logYpcFlowStartCommand");var $qX=new _.yT("unlimitedCreateFamilyEndpoint");var tCA=new _.yT("iconBadgeRenderer");var zLd=new _.yT("collaborativePlaylistVisibilityValidationRule");var mqa=function(q){_.xC.call(this,"channelMessage");this.message=q};
_.Y(mqa,_.xC);var rYp=function(q){_.xC.call(this,"channelError");this.error=q};
_.Y(rYp,_.xC);var XeC={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"},VCa={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},jca={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},xqa={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},vrK={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var GR=function(q){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 _.XK;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;q&&(this.id=q.id||q.name,this.name=q.name,this.clientName=q.clientName?q.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=q.app,this.type=q.type||"REMOTE_CONTROL",this.username=q.user||"",this.avatar=q.userAvatarUri||"",this.obfuscatedGaiaId=q.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=q.ownerObfuscatedGaiaId||"",this.castUserId=q.castUserId||"",this.theme=q.theme||"u",GFf(this,q.capabilities||""),YiC(this,
q.compatibleSenderThemes||""),Qcc(this,q.experiments||""),this.remoteControllerUrl=q.remoteControllerUrl||"",this.localChannelEncryptionKey=q.localChannelEncryptionKey||"",this.deviceContext=q.deviceContext,this.brand=q.brand||"",this.model=q.model||"",this.year=q.year||0,this.os=q.os||"",this.osVersion=q.osVersion||"",this.chipset=q.chipset||"",this.mdxDialServerType=q.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=q.pairingType||"unknown",q=q.deviceInfo)&&(q=JSON.parse(q),this.brand=
q.brand||"",this.model=q.model||"",this.year=q.year||0,this.os=q.os||"",this.osVersion=q.osVersion||"",this.chipset=q.chipset||"",this.clientName=q.clientName?q.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=q.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
GR.prototype.copy=function(){var q={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&&(q.brand=this.brand);
this.model&&(q.model=this.model);this.year&&(q.year=this.year);this.os&&(q.os=this.os);this.osVersion&&(q.osVersion=this.osVersion);this.chipset&&(q.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(q.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(q.mdxDialServerType=this.mdxDialServerType);q=new GR(q);q.connected=this.connected;q.remoteControllerUrl=this.remoteControllerUrl;q.localChannelEncryptionKey=this.localChannelEncryptionKey;q.deviceContext=
this.deviceContext;q.castUserId=this.castUserId;return q};
GR.prototype.equals=function(q){return q?this.id==q.id:!1};
var GFf=function(q,N){q.capabilities.clear();_.ea(N.split(","),_.dg(_.nM.contains,XeC)).forEach(function(b){q.capabilities.add(b)})},YiC=function(q,N){q.compatibleSenderThemes.clear();
_.ea(N.split(","),_.dg(_.nM.contains,VCa)).forEach(function(b){q.compatibleSenderThemes.add(b)})},Qcc=function(q,N){q.experiments.clear();
N.split(",").forEach(function(b){q.experiments.add(b)})};_.oK(vAC,_.UN);_.g=vAC.prototype;_.g.JSC$20167_onTick_=function(){this.JSC$20165_interval_=Math.min(3E5,this.JSC$20165_interval_*2);this.JSC$20167_listener_();this.nextTickTime_&&this.start()};
_.g.start=function(){var q=this.JSC$20165_interval_+15E3*Math.random(),N=this.delay_;N.isActive()||N.start(q);this.nextTickTime_=Date.now()+q};
_.g.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.g.isActive=function(){return this.delay_.isActive()};
_.g.reset=function(){this.delay_.stop();this.JSC$20165_interval_=5E3};_.oK(ny,zHa);_.g=ny.prototype;_.g.subscribe=function(q,N,b){return this.pubsub_.subscribe(q,N,b)};
_.g.unsubscribe=function(q,N,b){return this.pubsub_.unsubscribe(q,N,b)};
_.g.unsubscribeByKey=function(q){return this.pubsub_.unsubscribeByKey(q)};
_.g.publish=function(q,N){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.g.dispose=function(){this.JSC$20168_disposed_||(this.JSC$20168_disposed_=!0,_.RA(this.pubsub_),this.disconnect(),_.RA(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20168_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.bG({})})};
_.g.isDisposed=function(){return this.JSC$20168_disposed_};
_.g.connect=function(q,N,b){var y=this,J,E,F,R;return _.d(function(c){if(c.nextAddress==1)return _.i$(c,2),y.useAsyncBrowserChannelHandler_?c.yield(y.connectPromise_,2):c.jumpTo(2);_.w0(c);if(y.JSC$20168_disposed_||y.JSC$20168_channel_&&y.JSC$20168_channel_.getState()==2)return c.return();y.sCookie_="";y.reconnectTimer_.stop();y.connectionParams_=q||null;y.connectUi_=N||0;J=y.JSC$20168_pathPrefix_+"/test";E=y.JSC$20168_pathPrefix_+"/bind";F=new jt(b?b.firstTestResults:null,b?b.secondTestResults:null,
y.enableAsyncTest_);if(R=y.JSC$20168_channel_)R.handler_=null;F.handler_=y;y.JSC$20168_channel_=F;if(y.useAsyncBrowserChannelHandler_)return y.connectPromise_=O_p(y).then(function(){return weX(y,J,E,R,b)}),c.return(y.connectPromise_.then(function(){y.connectPromise_=_.bG()}));
weX(y,J,E,R,b);return _.l$(c,0)})};
var weX=function(q,N,b,y,J){i_c(q);if(q.JSC$20168_channel_){var E=_.M7("ID_TOKEN"),F=q.JSC$20168_channel_.JSC$20120_extraHeaders_||{};E?F["x-youtube-identity-token"]=E:delete F["x-youtube-identity-token"];q.JSC$20168_channel_.JSC$20120_extraHeaders_=F}lgc(q);y?(y.getState(),q.JSC$20168_channel_.connect(N,b,q.defaultQueryParams_,y.sid_,y.JSC$20120_lastArrayId_)):J?q.JSC$20168_channel_.connect(N,b,q.defaultQueryParams_,J.sessionId,J.arrayId):q.JSC$20168_channel_.connect(N,b,q.defaultQueryParams_)};
ny.prototype.disconnect=function(q){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.bG())}finally{this.disconnectUi_=q||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),i_c(this),this.JSC$20168_channel_&&(this.JSC$20168_channel_.getState()==3&&ZEW(this.JSC$20168_channel_),this.JSC$20168_channel_.disconnect()),this.disconnectUi_=0}};
ny.prototype.sendMessage=function(q,N){var b=this,y;return _.d(function(J){switch(J.nextAddress){case 1:_.i$(J,2);if(!b.useAsyncBrowserChannelHandler_){J.jumpTo(2);break}return J.yield(b.connectPromise_,2);case 2:_.w0(J);if(b.JSC$20168_disposed_)return J.return();y={_sc:q};N&&_.nM.extend(y,N);if(b.reconnectTimer_.isActive()||(b.JSC$20168_channel_?b.JSC$20168_channel_.getState():0)==2){b.JSC$20168_pendingMessages_.push(y);J.jumpTo(6);break}if(!b.isChannelOpened()){J.jumpTo(6);break}_.i$(J,8);if(!b.useAsyncBrowserChannelHandler_||
KiC(b,q)){J.jumpTo(8);break}return J.yield(O_p(b),8);case 8:_.w0(J,0,0,1);b.isChannelOpened()&&(KiC(b,q)||lgc(b),i_c(b),g$K(b.JSC$20168_channel_,y));_.l$(J,6,1);break;case 6:_.l$(J,0)}})};
var KiC=function(q,N){return q.enableMdxAuthForConnectionOnly_?!0:q.disableMdxAuthForAdMessages_?Object.values(jca).includes(N):q.disableMdxAuthForNonPlaybackMessages_?!Object.values(xqa).includes(N):q.disableMdxAuthForShortsMessages_?Object.values(vrK).includes(N):!1};
ny.prototype.JSC$20127_channelOpened=function(){this.isInitialReconnectTimer_?(_.RA(this.reconnectTimer_),this.reconnectTimer_=new vAC(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20168_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)Dqf(this);else{var q=this.JSC$20168_pendingMessages_;this.JSC$20168_pendingMessages_=[];var N=q.length;lgc(this);hef(this,q,N);kFf(this)}else kFf(this)};
var Dqf=function(q){var N,b;_.d(function(y){if(y.nextAddress==1)return _.i$(y,2),y.yield(O_p(q),2);_.w0(y);N=q.JSC$20168_pendingMessages_;q.JSC$20168_pendingMessages_=[];b=N.length;hef(q,N,b);kFf(q);return _.l$(y,0)})},hef=function(q,N,b){for(var y=0;y<b;++y)g$K(q.JSC$20168_channel_,N[y]);
kFf(q)},kFf=function(q){q.publish("handlerOpened");
q.JSC$20168_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.g=ny.prototype;_.g.JSC$20127_channelError=function(q){var N=q==2&&this.JSC$20168_channel_.JSC$20120_lastStatusCode_==401;q==4||N||this.reconnectTimer_.start();this.publish("handlerError",q,N);N=Object.keys(ekU).find(function(b){return ekU[b]===q});
this.JSC$20168_channelErrorCounter.increment("BROWSER_CHANNEL",N!=null?N:"UNKNOWN")};
_.g.JSC$20127_channelClosed=function(q,N){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(N)for(var b=N.length,y=0;y<b;++y){var J=N[y].map;J&&this.JSC$20168_pendingMessages_.push(J)}this.JSC$20168_channelClosedCounter.increment("BROWSER_CHANNEL");q&&this.pendingMapsOnClosedCounter.JSC$10013_streamzService.JSC$9868_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",q.length);N&&this.undeliveredMapsOnClosedCounter.JSC$10016_streamzService.JSC$9868_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
N.length)};
_.g.JSC$20127_channelSuccess=function(q,N){N!=null&&q!=null&&this.channelMessageSentCounter.increment()};
_.g.JSC$20127_getAdditionalParams=function(){var q={v:2};this.sCookie_&&(q.gsessionid=this.sCookie_);this.connectUi_!=0&&(q.ui=""+this.connectUi_);this.disconnectUi_!=0&&(q.ui=""+this.disconnectUi_);this.connectionParams_&&_.nM.extend(q,this.connectionParams_);return q};
_.g.JSC$20127_channelHandleArray=function(q){q[0]=="S"?this.sCookie_=q[1]:q[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20168_channel_.disconnect()):this.publish("handlerMessage",new x1X(q[0],q[1]));this.JSC$20168_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.g.isChannelOpened=function(){return!!this.JSC$20168_channel_&&this.JSC$20168_channel_.getState()==3};
var i_c=function(q){if(q.JSC$20168_channel_){var N=q.JSC$20168_getXsrfToken_(),b=q.JSC$20168_channel_.JSC$20120_extraHeaders_||{};N?b["x-youtube-lounge-xsrf-token"]=N:delete b["x-youtube-lounge-xsrf-token"];q.JSC$20168_channel_.JSC$20120_extraHeaders_=b}},O_p=function(q){if(q.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.bG();
if(!q.enableCachedUpdateAuthorizationHeader_)return Uqa(q);q.updateAuthorizationHeaderPromise_===null&&(q.updateAuthorizationHeaderPromise_=Uqa(q));return q.updateAuthorizationHeaderPromise_},Uqa=function(q){return _.KJ(q.getAuthorizationHeader_().then(function(N){fgd(q,N)}).thenCatch(function(){}),function(){q.updateAuthorizationHeaderPromise_=null})},fgd=function(q,N){if(q.JSC$20168_channel_){var b=q.JSC$20168_channel_.JSC$20120_extraHeaders_||{};
N&&Object.keys(N).length>0?b=Object.assign({},b,N):delete b.Authorization;q.JSC$20168_channel_.JSC$20120_extraHeaders_=b}},lgc=function(q){q.getAuthorizationHeaderSync_&&!q.useAsyncBrowserChannelHandler_&&fgd(q,q.getAuthorizationHeaderSync_())};
_.g=ny.prototype;_.g.setLoungeToken=function(q){(this.defaultQueryParams_.loungeIdToken=q)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20168_channel_){var N=this.JSC$20168_channel_.JSC$20120_extraHeaders_||{};q?N["X-YouTube-LoungeId-Token"]=q:delete N["X-YouTube-LoungeId-Token"];this.JSC$20168_channel_.JSC$20120_extraHeaders_=N}};
_.g.getDeviceId=function(){return this.defaultQueryParams_.id};
_.g.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.g.reconnect=function(){var q=this.reconnectTimer_;q.delay_.fire();q.start()};
_.g.safeReconnect_=function(){var q=this.JSC$20168_channel_,N=0;q.JSC$20120_backChannelRequest_&&N++;q.forwardChannelRequest_&&N++;N==0&&this.connect(this.connectionParams_,this.connectUi_)};var Ly=function(q,N){var b=q.basePath;q.supportCors&&(b=q.scheme+"://"+q.domain+q.port+q.basePath);return _.F$(b+N,{})};
KUf.prototype.sendRequest=function(q,N,b,y,J,E,F){q={format:E?"RAW":"JSON",method:q,context:this,timeout:5E3,withCredentials:!!F,onSuccess:_.dg(this.JSC$20174_onSuccess_,y,!E),onError:_.dg(this.onError_,J),onTimeout:_.dg(this.JSC$20174_onTimeout_,J)};b&&(q.postParams=b,q.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.iv(N,q)};
KUf.prototype.JSC$20174_onSuccess_=function(q,N,b,y){N?q(y):q({text:b.responseText})};
KUf.prototype.onError_=function(q,N){q(Error("Yk`"+N.status))};
KUf.prototype.JSC$20174_onTimeout_=function(q){q(Error("Zk"))};var U1N=function(q,N){return!!N&&(q.id==N||q.uuid==N)},CJa=function(q){return{name:q.name,
screenId:q.id,loungeToken:q.token,dialId:q.uuid,screenIdType:q.idType,screenIdSecret:q.secret}},IgW=function(q){return new a4(q)},Tla=function(q){return Array.isArray(q)?_.aW(q,IgW):[]},C9B=function(q){if(!q)return"null";
var N=q.token?".."+q.token.slice(-6):"-",b=q.uuid?".."+q.uuid.slice(-6):"-",y=q.secret?".."+q.secret.slice(-6):"-";return'{name:"'+q.name+'",id:'+q.id.substr(0,6)+"..,token:"+(N+",uuid:"+b+",idType:"+q.idType+",secret:")+(y+"}")},d$K=function(q){return Array.isArray(q)?"["+_.aW(q,C9B).join(",")+"]":"null"};var aId="",Wq=null;var BRN=function(q,N){_.O1.call(this);var b=this;this.handler=q();this.handler.subscribe("handlerOpened",this.JSC$20181_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(y,J){b.onError(J)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=N};
_.Y(BRN,_.O1);_.g=BRN.prototype;_.g.connect=function(q,N,b){this.handler.connect(q,N,b)};
_.g.disconnect=function(q){this.handler.disconnect(q)};
_.g.reconnect=function(){this.handler.reconnect()};
_.g.getDeviceId=function(){return this.handler.getDeviceId()};
_.g.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.g.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.g.JSC$20181_onOpened=function(){this.dispatchEvent("channelOpened");var q=this.handler,N=this.currentScreenId;_.r5("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!q.JSC$20168_channel_.useChunked_,sessionId:q.JSC$20168_channel_.sid_,arrayId:q.JSC$20168_channel_.JSC$20120_lastArrayId_});_.r5("yt-remote-session-screen-id",N);q=fIU();N=CkB();_.aJ(q,N)||q.push(N);nAB(q);smB()};
_.g.onClosed=function(){this.dispatchEvent("channelClosed")};
_.g.onMessage=function(q){this.dispatchEvent(new mqa(q))};
_.g.onError=function(q){this.dispatchEvent(new rYp(q?1:0))};
_.g.sendMessage=function(q,N){this.handler.sendMessage(q,N)};
_.g.setLoungeToken=function(q){this.handler.setLoungeToken(q)};
_.g.dispose=function(){this.handler.dispose()};var eNU=function(q,N,b){var y=this;b=b===void 0?function(){return""}:b;
var J=J===void 0?new jkA:J;var E=E===void 0?new _.K4:E;this.pathPrefix=q;this.defaultQueryParams=N;this.getXsrfToken=b;this.JSC$20184_pubsub=E;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new vAC(function(){var F;((F=y.channel)==null?void 0:oYx((new G9f(F,F.JSC$20091_channel_)).JSC$20101_channel_.forwardChannelRequestPool_))===0&&y.connect(y.connectionParams,y.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20184_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20184_channelOpenedCounter=new GKU;this.JSC$20184_channelClosedCounter=new YAW;this.JSC$20184_channelMessageReceivedCounter=new O0a;this.JSC$20184_channelErrorCounter=new wDN};
eNU.prototype.connect=function(q,N){q=q===void 0?{}:q;N=N===void 0?0:N;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=q,this.connectUi=N,scC(this),(q=_.M7("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=q: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 mc(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,nrf(this))};
var nrf=function(q){_.tn(q.channel,"w",function(){q.channelState=3;q.reconnectTimer.reset();q.connectionParams=null;q.connectUi=0;for(var N=_.Z(q.nonAckedMessagesOnChannelClosed),b=N.next();!b.done;b=N.next())b=b.value,q.channel&&q.channel.send(b);q.nonAckedMessagesOnChannelClosed=[];q.publish("webChannelOpened");q.JSC$20184_channelOpenedCounter.increment("WEB_CHANNEL")});
_.tn(q.channel,"x",function(){q.channelState=0;q.reconnectTimer.isActive()||q.publish("webChannelClosed");var N,b=(N=q.channel)==null?void 0:Y6a(new G9f(N,N.JSC$20091_channel_));b&&(q.nonAckedMessagesOnChannelClosed=[].concat(_.a9(b)));q.JSC$20184_channelClosedCounter.increment("WEB_CHANNEL")});
_.tn(q.channel,"z",function(N){var b=N.data;b[0]==="gracefulReconnect"?(q.reconnectTimer.start(),q.channel&&q.channel.close()):q.publish("webChannelMessage",new x1X(b[0],b[1]));q.lastStatusCode=N.statusCode;q.JSC$20184_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.tn(q.channel,"y",function(){q.lastStatusCode===401||q.reconnectTimer.start();q.publish("webChannelError");q.JSC$20184_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.g=eNU.prototype;_.g.disconnect=function(q){this.disconnectUi=q===void 0?0:q;this.reconnectTimer.stop();scC(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.g.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.g.reconnect=function(){var q=this.reconnectTimer;q.delay_.fire();q.start()};
_.g.sendMessage=function(q,N){this.channel&&(scC(this),q=Object.assign({},{_sc:q},N),this.channel.send(q))};
_.g.setLoungeToken=function(q){q||this.reconnectTimer.stop();q?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=q:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var scC=function(q){var N=q.getXsrfToken();N?q.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=N:delete q.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.g=eNU.prototype;_.g.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.g.publish=function(q){return this.JSC$20184_pubsub.publish.apply(this.JSC$20184_pubsub,[q].concat(_.a9(_.MB.apply(1,arguments))))};
_.g.subscribe=function(q,N,b){return this.JSC$20184_pubsub.subscribe(q,N,b)};
_.g.unsubscribe=function(q,N,b){return this.JSC$20184_pubsub.unsubscribe(q,N,b)};
_.g.unsubscribeByKey=function(q){return this.JSC$20184_pubsub.unsubscribeByKey(q)};
_.g.dispose=function(){this.JSC$20184_disposed||(this.JSC$20184_disposed=!0,_.RA(this.JSC$20184_pubsub),this.disconnect(),_.RA(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.g.isDisposed=function(){return this.JSC$20184_disposed};var A3C=function(q){_.O1.call(this);this.webChannelService=q();this.webChannelService.subscribe("webChannelOpened",this.JSC$20192_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.Y(A3C,_.O1);_.g=A3C.prototype;_.g.connect=function(q,N){this.webChannelService.connect(q,N)};
_.g.disconnect=function(q){this.webChannelService.disconnect(q)};
_.g.reconnect=function(){this.webChannelService.reconnect()};
_.g.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.g.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.g.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.g.JSC$20192_onOpened=function(){this.dispatchEvent("channelOpened")};
_.g.onClosed=function(){this.dispatchEvent("channelClosed")};
_.g.onMessage=function(q){this.dispatchEvent(new mqa(q))};
_.g.onError=function(){this.dispatchEvent(new rYp(this.webChannelService.lastStatusCode===401?1:0))};
_.g.sendMessage=function(q,N){this.webChannelService.sendMessage(q,N)};
_.g.setLoungeToken=function(q){this.webChannelService.setLoungeToken(q)};
_.g.dispose=function(){this.webChannelService.dispose()};var Rff=Date.now(),py=null,ZNX=Array(50),gJW=-1,FvB=!1;_.oK(o4,_.FG);o4.prototype.getScreens=function(){return this.screens};
o4.prototype.contains=function(q){return!!kKB(this.screens,q)};
o4.prototype.get=function(q){return q?SS(this.screens,q):null};
var aga=function(q,N){var b=q.get(N.uuid)||q.get(N.id);if(b)return q=b.name,b.id=N.id||b.id,b.name=N.name,b.token=N.token,b.uuid=N.uuid||b.uuid,b.name!=q;q.screens.push(N);return!0},SiA=function(q,N){var b=q.screens.length!=N.length;
q.screens=_.ea(q.screens,function(E){return!!kKB(N,E)});
for(var y=N.length,J=0;J<y;J++)b=aga(q,N[J])||b;return b},Wid=function(q,N){var b=q.screens.length;
q.screens=_.ea(q.screens,function(y){return!(y||N?!y!=!N?0:y.id==N.id:1)});
return q.screens.length<b};
o4.prototype.info=function(q){Pq(this.JSC$20193_logName_,q)};var LiX=function(q,N,b,y,J){_.FG.call(this);this.JSC$20196_http_=q;this.pairingCode_=N;this.deviceId_=b;this.friendlyName_=y;this.enableShortLivedLoungeToken_=J;this.pollIndex_=0;this.JSC$20196_xhr_=null;this.JSC$20196_timer_=NaN};
_.Y(LiX,_.FG);_.g=LiX.prototype;_.g.start=function(){!this.JSC$20196_xhr_&&isNaN(this.JSC$20196_timer_)&&this.poll_()};
_.g.stop=function(){this.JSC$20196_xhr_&&(this.JSC$20196_xhr_.abort(),this.JSC$20196_xhr_=null);isNaN(this.JSC$20196_timer_)||(_.OV(this.JSC$20196_timer_),this.JSC$20196_timer_=NaN)};
_.g.disposeInternal=function(){this.stop();_.FG.prototype.disposeInternal.call(this)};
_.g.poll_=function(){this.JSC$20196_timer_=NaN;this.JSC$20196_xhr_=_.iv(Ly(this.JSC$20196_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.fF)(this.JSC$20198_onSuccess_,this),onError:(0,_.fF)(this.onError_,this),onTimeout:(0,_.fF)(this.JSC$20198_onTimeout_,this)})};
_.g.JSC$20198_onSuccess_=function(q,N){this.JSC$20196_xhr_=null;q=N.screen||{};q.dialId=this.deviceId_;q.name=this.friendlyName_;N=-1;this.enableShortLivedLoungeToken_&&q.shortLivedLoungeToken&&q.shortLivedLoungeToken.value&&q.shortLivedLoungeToken.refreshIntervalMs&&(q.screenIdType="shortLived",q.loungeToken=q.shortLivedLoungeToken.value,N=q.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new a4(q),N)};
_.g.onError_=function(q){this.JSC$20196_xhr_=null;q.status&&q.status==404?this.pollIndex_>=peX.length?this.publish("pairingFailed",Error("$k")):(q=peX[this.pollIndex_],this.JSC$20196_timer_=_.Yf((0,_.fF)(this.poll_,this),q),this.pollIndex_++):this.publish("pairingFailed",Error("al`"+q.status))};
_.g.JSC$20198_onTimeout_=function(){this.JSC$20196_xhr_=null;this.publish("pairingFailed",Error("bl"))};
var peX=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.oK(eS,o4);_.g=eS.prototype;_.g.start=function(){AQ(this)&&this.publish("screenChange");!_.XH("yt-remote-lounge-token-expiration")&&PJx(this);_.OV(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.Yf((0,_.fF)(this.start,this),1E4)};
_.g.add=function(q,N){AQ(this);aga(this,q);MCc(this,!1);this.publish("screenChange");N(q);q.token||PJx(this)};
_.g.remove=function(q,N){var b=AQ(this);Wid(this,q)&&(MCc(this,!1),b=!0);N(q);b&&this.publish("screenChange")};
_.g.updateName=function(q,N,b,y){var J=AQ(this),E=this.get(q.id);E?(E.name!=N&&(E.name=N,MCc(this,!1),J=!0),b(q)):y(Error("cl"));J&&this.publish("screenChange")};
_.g.disposeInternal=function(){_.OV(this.loungeTokenRefreshTimer_);eS.superClass_.disposeInternal.call(this)};
var PJx=function(q){if(q.screens.length){var N=_.aW(q.screens,function(y){return y.id}),b=Ly(q.JSC$20200_http_,"/pairing/get_lounge_token_batch");
q.JSC$20200_http_.sendRequest("POST",b,{screen_ids:N.join(",")},(0,_.fF)(q.handleLoungeTokens_,q),(0,_.fF)(q.handleLoungeTokenError_,q))}};
eS.prototype.handleLoungeTokens_=function(q){AQ(this);var N=this.screens.length;q=q&&q.screens||[];for(var b=q.length,y=0;y<b;++y){var J=q[y],E=this.get(J.screenId);E&&(E.token=J.loungeToken,--N)}MCc(this,!N);N&&Pq(this.JSC$20193_logName_,"Missed "+N+" lounge tokens.")};
eS.prototype.handleLoungeTokenError_=function(q){Pq(this.JSC$20193_logName_,"Requesting lounge tokens failed: "+q)};
var AQ=function(q){if(_.x("deprecate_pair_servlet_enabled"))return SiA(q,[]);var N=Tla(WUd());N=_.ea(N,function(b){return!b.uuid});
return SiA(q,N)},MCc=function(q,N){pDC(_.aW(q.screens,CJa));
N&&LUp()};var YK=function(q,N){_.FG.call(this);this.getScreensToCheck_=N;N=(N=_.XH("yt-remote-online-screen-ids")||"")?N.split(","):[];for(var b={},y=this.getScreensToCheck_(),J=y.length,E=0;E<J;++E){var F=y[E].id;b[F]=_.aJ(N,F)}this.screenIdSet_=b;this.JSC$20203_http_=q;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;orp("Initialized with "+(0,_.kC)(this.screenIdSet_))};
_.Y(YK,_.FG);YK.prototype.isOnline=function(q){return!!this.screenIdSet_[q]};
YK.prototype.start=function(){var q=parseInt(_.XH("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.M$()-144E5<q?0:q)?AYB(this):(this.fastCheckEndTime_=_.M$()+3E5,_.r5("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
YK.prototype.isEmpty=function(){return _.nM.isEmpty(this.screenIdSet_)};
YK.prototype.update=function(){orp("Updating availability on schedule.");var q=this.getScreensToCheck_(),N=_.nM.filter(this.screenIdSet_,function(b,y){return b&&!!SS(q,y)},this);
eef(this,N)};
var BlW=function(q,N,b){var y=Ly(q.JSC$20203_http_,"/pairing/get_screen_availability");q.JSC$20203_http_.sendRequest("POST",y,{lounge_token:N.token},(0,_.fF)(function(J){J=J.screens||[];for(var E=J.length,F=0;F<E;++F)if(J[F].loungeToken==N.token){b(J[F].status=="online");return}b(!1)},q),(0,_.fF)(function(){b(!1)},q))};
YK.prototype.disposeInternal=function(){_.OV(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.FG.prototype.disposeInternal.call(this)};
var eef=function(q,N){a:if(_.nM.getCount(N)!=_.nM.getCount(q.screenIdSet_))var b=!1;else{b=_.nM.getKeys(N);for(var y=b.length,J=0;J<y;++J)if(!q.screenIdSet_[b[J]]){b=!1;break a}b=!0}b||(orp("Updated online screens: "+(0,_.kC)(q.screenIdSet_)),q.screenIdSet_=N,q.publish("screenChange"));H_X(q)},AYB=function(q){isNaN(q.refreshTimer_)||_.OV(q.refreshTimer_);
q.refreshTimer_=_.Yf((0,_.fF)(q.requestScreenAvailability_,q),q.fastCheckEndTime_>0&&q.fastCheckEndTime_<_.M$()?2E4:1E4)};
YK.prototype.requestScreenAvailability_=function(){_.OV(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var q=q8f(this);if(_.nM.getCount(q)){var N=Ly(this.JSC$20203_http_,"/pairing/get_screen_availability"),b={lounge_token:_.nM.getKeys(q).join(",")};this.currentRequest_=this.JSC$20203_http_.sendRequest("POST",N,b,(0,_.fF)(this.onScreenAvailability_,this,q),(0,_.fF)(this.onScreenAvailabilityError_,this))}else eef(this,{}),AYB(this)};
YK.prototype.onScreenAvailability_=function(q,N){this.currentRequest_=null;var b=_.nM.getKeys(q8f(this));if(_.BA(b,_.nM.getKeys(q))){N=N.screens||[];b={};for(var y=N.length,J=0;J<y;++J)b[q[N[J].loungeToken]]=N[J].status=="online";eef(this,b);AYB(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
YK.prototype.onScreenAvailabilityError_=function(q){this.warn_("Screen availability failed: "+q);this.currentRequest_=null;AYB(this)};
var orp=function(q){Pq("OnlineScreenService",q)};
YK.prototype.warn_=function(q){Pq("OnlineScreenService",q)};
var q8f=function(q){var N={};_.Jz(q.getScreensToCheck_(),function(b){b.token?N[b.token]=b.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return N},H_X=function(q){q=_.nM.getKeys(_.nM.filter(q.screenIdSet_,function(N){return N}));
q.sort(_.fRD);q.length?_.r5("yt-remote-online-screen-ids",q.join(","),60):_.Vk("yt-remote-online-screen-ids")};_.oK(Bq,o4);_.g=Bq.prototype;_.g.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.g.add=function(q,N,b){this.localScreenService_.add(q,N,b)};
_.g.remove=function(q,N,b){this.localScreenService_.remove(q,N,b);this.onlineScreenService_.update()};
_.g.updateName=function(q,N,b,y){this.localScreenService_.contains(q)?this.localScreenService_.updateName(q,N,b,y):(q="Updating name of unknown screen: "+q.name,Pq(this.JSC$20193_logName_,q),y(Error(q)))};
_.g.getScreens=function(q){return q?this.screens:E0A(this.screens,_.ea(this.automaticScreens_,function(N){return!this.contains(N)},this))};
_.g.JSC$20208_getOnlineScreens=function(){return _.ea(this.getScreens(!0),function(q){return this.onlineScreenService_.isOnline(q.id)},this)};
var b8c=function(q,N,b,y,J,E){q.info("getAutomaticScreenByIds "+b+" / "+N);b||(b=q.deviceToScreenId_[N]);var F=q.getScreens(),R=b?SS(F,b):null;b&&(q.disableAutomaticScreenCache_||R)||(R=SS(F,N));if(R){R.uuid=N;var c=QB(q,R);BlW(q.onlineScreenService_,c,function(z){J(z?c:null)})}else b?NiK(q,b,(0,_.fF)(function(z){var m=QB(this,new a4({name:y,
screenId:b,loungeToken:z,dialId:N||""}));BlW(this.onlineScreenService_,m,function(r){J(r?m:null)})},q),E):J(null)};
Bq.prototype.JSC$20208_getScreenByPollingPairingCode=function(q,N,b,y,J,E){var F=this;this.info("getDialScreenByPairingCode "+q+" / "+N);var R=new LiX(this.JSC$20206_http_,q,N,b,y);R.subscribe("pairingComplete",function(c,z){_.RA(R);J(QB(F,c),z)});
R.subscribe("pairingFailed",function(c){_.RA(R);E(c)});
R.start();return(0,_.fF)(R.stop,R)};
var yJK=function(q,N){for(var b=q.screens.length,y=0;y<b;++y)if(q.screens[y].name==N)return q.screens[y];return null};
Bq.prototype.JSC$20208_getScreenByPairingCode=function(q,N,b,y){_.iv(Ly(this.JSC$20206_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:q},timeout:5E3,onSuccess:(0,_.fF)(function(J,E){J=new a4(E.screen||{});if(!J.name||yJK(this,J.name)){a:{E=J.name;for(var F=2,R=N(E,F);yJK(this,R);){F++;if(F>20)break a;R=N(E,F)}E=R}J.name=E}b(QB(this,J))},this),
onError:(0,_.fF)(function(J){y(Error("dl`"+J.status))},this),
onTimeout:(0,_.fF)(function(){y(Error("el"))},this)})};
var JJW=function(q,N,b){BlW(q.onlineScreenService_,N,b)};
Bq.prototype.disposeInternal=function(){_.RA(this.localScreenService_);_.RA(this.onlineScreenService_);Bq.superClass_.disposeInternal.call(this)};
var NiK=function(q,N,b,y){q.info("requestLoungeToken_ for "+N);var J={postParams:{screen_ids:N},method:"POST",context:q,onSuccess:function(E,F){E=F&&F.screens||[];E[0]&&E[0].screenId==N?b(E[0].loungeToken):y(Error("fl"))},
onError:function(){y(Error("gl"))}};
_.iv(Ly(q.JSC$20206_http_,"/pairing/get_lounge_token_batch"),J)},Epx=function(q){q.screens=q.localScreenService_.getScreens();
for(var N=_.nM.transpose(q.deviceToScreenId_),b=q.screens.length,y=0;y<b;++y){var J=q.screens[y];J.uuid=N[J.id]||""}q.info("Updated manual screens: "+d$K(q.screens))};
Bq.prototype.handleScreenChange_=function(){Epx(this);this.publish("screenChange");this.onlineScreenService_.update()};
var c7p=function(q){gpf(q);q.localScreenService_=new eS(q.JSC$20206_http_);q.localScreenService_.subscribe("screenChange",(0,_.fF)(q.handleScreenChange_,q));Epx(q);q.disableAutomaticScreenCache_||(q.automaticScreens_=Tla(_.XH("yt-remote-automatic-screen-cache")||[]));gpf(q);q.info("Initializing automatic screens: "+d$K(q.automaticScreens_));q.onlineScreenService_=new YK(q.JSC$20206_http_,(0,_.fF)(q.getScreens,q,!0));q.onlineScreenService_.subscribe("screenChange",(0,_.fF)(function(){this.publish("onlineScreenChange")},
q))},QB=function(q,N){var b=q.get(N.id);
b?(b.uuid=N.uuid,N=b):((b=SS(q.automaticScreens_,N.uuid))?(b.id=N.id,b.token=N.token,N=b):q.automaticScreens_.push(N),q.disableAutomaticScreenCache_||Z8W(q));gpf(q);q.deviceToScreenId_[N.uuid]=N.id;_.r5("yt-remote-device-id-map",q.deviceToScreenId_,31536E3);return N},Z8W=function(q){q=_.ea(q.automaticScreens_,function(N){return N.idType!="shortLived"});
_.r5("yt-remote-automatic-screen-cache",_.aW(q,CJa))},gpf=function(q){q.deviceToScreenId_=_.XH("yt-remote-device-id-map")||{}};
Bq.prototype.dispose=Bq.prototype.dispose;_.oK(Hq,_.FG);var OT=function(q,N){q.screen_=N;q.publish("sessionScreen",q.screen_)},F3c=function(q,N){q.screen_&&(q.screen_.token=N,QB(q.JSC$20210_screenService_,q.screen_));
q.publish("sessionScreen",q.screen_)};
Hq.prototype.onSessionStopped=function(q){this.isDisposed()||(q&&(w6(this,""+q),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Hq.prototype.info=function(q){Pq(this.JSC$20210_logName_,q)};
var w6=function(q,N){Pq(q.JSC$20210_logName_,N)};
Hq.prototype.JSC$20212_getCastSession=function(){return null};
Hq.prototype.setDisplayStatus=function(q){var N=this.receiver_;q?(N.displayStatus=new chrome.cast.ReceiverDisplayStatus(q,[]),N.displayStatus.showStop=!0):N.displayStatus=null;chrome.cast.setReceiverDisplayStatus(N,(0,_.fF)(function(){this.info("Updated receiver status for "+N.friendlyName+": "+q)},this),(0,_.fF)(function(){w6(this,"Failed to update receiver status for: "+N.friendlyName)},this))};
Hq.prototype.disposeInternal=function(){this.setDisplayStatus("");Hq.superClass_.disposeInternal.call(this)};var iO=function(q,N,b){Hq.call(this,q,N,"CastSession");var y=this;this.config_=b;this.JSC$20215_session_=null;this.JSC$20215_boundSessionUpdate_=(0,_.fF)(this.JSC$20217_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.fF)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.Yf(function(){RoK(y,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20215_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20215_isInitLoungeToken_=!1;this.JSC$20215_lastLoungeTokenRefreshError_="unknown"};
_.Y(iO,Hq);_.g=iO.prototype;
_.g.setCastSession=function(q){if(this.JSC$20215_session_){if(this.JSC$20215_session_==q)return;w6(this,"Overriding cast session with new session object");dVK(this);this.JSC$20215_isInitLoungeToken_=!1;this.JSC$20215_lastLoungeTokenRefreshError_="unknown";this.JSC$20215_session_.removeUpdateListener(this.JSC$20215_boundSessionUpdate_);this.JSC$20215_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20215_session_=q;this.JSC$20215_session_.addUpdateListener(this.JSC$20215_boundSessionUpdate_);this.JSC$20215_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);cJd(this,"getMdxSessionStatus")};
_.g.launchWithParams=function(q){this.info("launchWithParams no-op for Cast: "+(0,_.kC)(q))};
_.g.stop=function(){if(this.JSC$20215_session_)this.JSC$20215_session_.stop((0,_.fF)(function(){this.onSessionStopped()},this),(0,_.fF)(function(){this.onSessionStopped(Error("hl"))},this));
else this.onSessionStopped(Error("il"))};
_.g.setDisplayStatus=function(){};
_.g.disposeInternal=function(){this.info("disposeInternal");dVK(this);this.JSC$20215_session_&&(this.JSC$20215_session_.removeUpdateListener(this.JSC$20215_boundSessionUpdate_),this.JSC$20215_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20215_session_=null;Hq.prototype.disposeInternal.call(this)};
var zoX=function(q,N){_.OV(q.getLoungeTokenTimeoutKey_);q.getLoungeTokenTimeoutKey_=0;N==0?uZc(q):q.getLoungeTokenTimeoutKey_=_.Yf(function(){uZc(q)},N)},uZc=function(q){cJd(q,"getLoungeToken");
_.OV(q.onLoungeTokenTimeoutKey_);q.onLoungeTokenTimeoutKey_=_.Yf(function(){$Vx(q,null)},3E4)},cJd=function(q,N){q.info("sendYoutubeMessage_: "+N+" "+(0,_.kC)(void 0));
var b={};b.type=N;q.JSC$20215_session_?q.JSC$20215_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",b,function(){},(0,_.fF)(function(){w6(this,"Failed to send message: "+N+".")},q)):w6(q,"Sending yt message without session: "+(0,_.kC)(b))};
iO.prototype.onYoutubeMessage_=function(q,N){if(!this.isDisposed())if(N)if(N=(0,_.j2)(N),_.AZ(N))switch(q=""+N.type,N=N.data||{},this.info("onYoutubeMessage_: "+q+" "+(0,_.kC)(N)),q){case "mdxSessionStatus":RoK(this,N);break;case "loungeToken":$Vx(this,N);break;default:w6(this,"Unknown youtube message: "+q)}else w6(this,"Unable to parse message.");else w6(this,"No data in message.")};
var tpc=function(q,N){if(N)q.info("onConnectedScreenId_: Received screenId: "+N),q.screen_&&q.screen_.id==N||q.getScreen_(N,function(b){OT(q,b)},function(){return q.onSessionStopped()},5);
else q.onSessionStopped(Error("jl"))},rJc=function(q,N,b){q.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(N));
var y=new a4(N);mVK(q,y,function(J){J?(q.JSC$20215_isInitLoungeToken_=!0,QB(q.JSC$20210_screenService_,y),OT(q,y),q.JSC$20215_lastLoungeTokenRefreshError_="unknown",zoX(q,b)):(_.HC(Error("kl`"+JSON.stringify(N))),q.onSessionStopped())},5)},RoK=function(q,N){_.OV(q.sessionStatusTimeoutKey_);
q.sessionStatusTimeoutKey_=0;if(N)q.config_.enableCastLoungeToken&&N.loungeToken?N.deviceId?q.screen_&&q.screen_.uuid==N.deviceId||(N.loungeTokenRefreshIntervalMs?rJc(q,{name:q.receiver_.friendlyName,screenId:N.screenId,loungeToken:N.loungeToken,dialId:N.deviceId,screenIdType:"shortLived"},N.loungeTokenRefreshIntervalMs):(_.HC(Error("ml`"+JSON.stringify(N))),tpc(q,N.screenId))):(_.HC(Error("ll`"+JSON.stringify(N))),tpc(q,N.screenId)):tpc(q,N.screenId);else q.onSessionStopped(Error("jl"))},$Vx=function(q,
N){_.OV(q.onLoungeTokenTimeoutKey_);
q.onLoungeTokenTimeoutKey_=0;var b=null;if(N)if(N.loungeToken){var y;((y=q.screen_)==null?void 0:y.token)==N.loungeToken&&(b="staleLoungeToken")}else b="missingLoungeToken";else b="noLoungeTokenResponse";b?(q.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(N)+", error: "+b)),q.JSC$20215_lastLoungeTokenRefreshError_=b,zoX(q,3E4)):(F3c(q,N.loungeToken),q.JSC$20215_isInitLoungeToken_=!1,q.JSC$20215_lastLoungeTokenRefreshError_="unknown",zoX(q,N.loungeTokenRefreshIntervalMs))};
iO.prototype.getScreen_=function(q,N,b,y){_.OV(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;b8c(this.JSC$20210_screenService_,this.receiver_.label,q,this.receiver_.friendlyName,(0,_.fF)(function(J){J?N(J):y>=0?(w6(this,"Screen "+q+" appears to be offline. "+y+" retries left."),this.getScreenTimeoutKey_=_.Yf((0,_.fF)(this.getScreen_,this,q,N,b,y-1),300)):b(Error("nl"))},this),b)};
var mVK=function(q,N,b,y){_.OV(q.JSC$20215_checkScreenAvailabilityTimeoutKey_);q.JSC$20215_checkScreenAvailabilityTimeoutKey_=0;JJW(q.JSC$20210_screenService_,N,function(J){J||y<0?b(J):q.JSC$20215_checkScreenAvailabilityTimeoutKey_=_.Yf(function(){mVK(q,N,b,y-1)},300)})};
iO.prototype.JSC$20212_getCastSession=function(){return this.JSC$20215_session_};
iO.prototype.JSC$20217_onSessionUpdate_=function(q){this.isDisposed()||q||(w6(this,"Cast session died."),this.onSessionStopped())};
var dVK=function(q){_.OV(q.getScreenTimeoutKey_);q.getScreenTimeoutKey_=0;_.OV(q.JSC$20215_checkScreenAvailabilityTimeoutKey_);q.JSC$20215_checkScreenAvailabilityTimeoutKey_=0;_.OV(q.sessionStatusTimeoutKey_);q.sessionStatusTimeoutKey_=0;_.OV(q.onLoungeTokenTimeoutKey_);q.onLoungeTokenTimeoutKey_=0;_.OV(q.getLoungeTokenTimeoutKey_);q.getLoungeTokenTimeoutKey_=0};var lO=function(q,N,b,y){Hq.call(this,q,N,"DialSession");this.config_=y;this.JSC$20219_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20219_theme_=b;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20219_deferredLaunchDeadlineTimer_=NaN;this.JSC$20219_boundSessionUpdate_=(0,_.fF)(this.JSC$20221_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20219_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20219_isInitLoungeToken_=!1;this.JSC$20219_lastLoungeTokenRefreshError_="unknown"};
_.Y(lO,Hq);lO.prototype.setCastSession=function(q){this.JSC$20219_session_=q;this.JSC$20219_session_.addUpdateListener(this.JSC$20219_boundSessionUpdate_)};
lO.prototype.launchWithParams=function(q){this.connectData_=q;this.deferredLaunch_()};
lO.prototype.stop=function(){X8a(this);if(this.JSC$20219_session_)this.JSC$20219_session_.stop((0,_.fF)(this.onSessionStopped,this,null),(0,_.fF)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
lO.prototype.disposeInternal=function(){X8a(this);this.JSC$20219_session_&&this.JSC$20219_session_.removeUpdateListener(this.JSC$20219_boundSessionUpdate_);this.JSC$20219_session_=null;Hq.prototype.disposeInternal.call(this)};
var Vpf=function(q){var N;return!!(q.config_.enableDialLoungeToken&&((N=q.JSC$20219_session_)==null?0:N.getDialAppInfo))},xVa=function(q){q.cancelPolling_=q.JSC$20210_screenService_.JSC$20208_getScreenByPollingPairingCode(q.reversePairingCode_,q.receiver_.label,q.receiver_.friendlyName,Vpf(q),function(N,b){q.cancelPolling_=function(){};
q.JSC$20219_isInitLoungeToken_=!0;OT(q,N);N.idType=="shortLived"&&b>0&&jyc(q,b)},function(N){q.cancelPolling_=function(){};
q.onSessionStopped(N)})};
lO.prototype.JSC$20221_onSessionUpdate_=function(q){this.isDisposed()||q||(w6(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var vpC=function(q){var N={};N.pairingCode=q.reversePairingCode_;N.theme=q.JSC$20219_theme_;oAU()&&(N.env_useStageMdx=1);return _.lv(N)},Gix=function(q){return new Promise(function(N){q.reversePairingCode_=D1U();
if(q.connectData_){var b=new chrome.cast.DialLaunchResponse(!0,vpC(q));N(b);xVa(q)}else q.deferredLaunch_=function(){_.OV(q.JSC$20219_deferredLaunchDeadlineTimer_);q.deferredLaunch_=function(){};
q.JSC$20219_deferredLaunchDeadlineTimer_=NaN;var y=new chrome.cast.DialLaunchResponse(!0,vpC(q));N(y);xVa(q)},q.JSC$20219_deferredLaunchDeadlineTimer_=_.Yf(function(){q.deferredLaunch_()},100)})},QyX=function(q,N,b){q.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(N));
var y=new a4(N);return(new Promise(function(J){Y8a(q,y,function(E){E?(q.JSC$20219_isInitLoungeToken_=!0,QB(q.JSC$20210_screenService_,y),OT(q,y),jyc(q,b)):_.HC(Error("pl`"+JSON.stringify(N)));J(E)},5)})).then(function(J){return J?new chrome.cast.DialLaunchResponse(!1):Gix(q)})},O8x=function(q,N){var b=q.launchData_.receiver.label,y=q.receiver_.friendlyName;
return(new Promise(function(J){b8c(q.JSC$20210_screenService_,b,N,y,function(E){E&&E.token&&OT(q,E);J(E)},function(E){w6(q,"Failed to get DIAL screen: "+E);
J(null)})})).then(function(J){return J&&J.token?new chrome.cast.DialLaunchResponse(!1):Gix(q)})},Y8a=function(q,N,b,y){_.OV(q.JSC$20219_checkScreenAvailabilityTimeoutKey_);
q.JSC$20219_checkScreenAvailabilityTimeoutKey_=0;JJW(q.JSC$20210_screenService_,N,function(J){J||y<0?b(J):q.JSC$20219_checkScreenAvailabilityTimeoutKey_=_.Yf(function(){Y8a(q,N,b,y-1)},300)})},jyc=function(q,N){q.info("getDialAppInfoWithTimeout_ "+N);
Vpf(q)&&(_.OV(q.getDialAppInfoTimeoutKey_),q.getDialAppInfoTimeoutKey_=0,N==0?w8f(q):q.getDialAppInfoTimeoutKey_=_.Yf(function(){w8f(q)},N))},w8f=function(q){Vpf(q)&&q.JSC$20219_session_.getDialAppInfo(function(N){q.info("getDialAppInfo dialLaunchData: "+JSON.stringify(N));
N=N.extraData||{};var b=null;if(N.loungeToken){var y;((y=q.screen_)==null?void 0:y.token)==N.loungeToken&&(b="staleLoungeToken")}else b="missingLoungeToken";b?(q.JSC$20219_lastLoungeTokenRefreshError_=b,jyc(q,3E4)):(q.JSC$20219_isInitLoungeToken_=!1,q.JSC$20219_lastLoungeTokenRefreshError_="unknown",F3c(q,N.loungeToken),jyc(q,N.loungeTokenRefreshIntervalMs))},function(N){q.info("getDialAppInfo error: "+N);
q.JSC$20219_lastLoungeTokenRefreshError_="noLoungeTokenResponse";jyc(q,3E4)})},X8a=function(q){_.OV(q.JSC$20219_checkScreenAvailabilityTimeoutKey_);
q.JSC$20219_checkScreenAvailabilityTimeoutKey_=0;_.OV(q.getDialAppInfoTimeoutKey_);q.getDialAppInfoTimeoutKey_=0;q.cancelPolling_();q.cancelPolling_=function(){};
_.OV(q.JSC$20219_deferredLaunchDeadlineTimer_)};var Ka=function(q,N){Hq.call(this,q,N,"ManualSession");this.JSC$20223_deferredLaunchDeadlineTimer_=_.Yf((0,_.fF)(this.launchWithParams,this,null),150)};
_.Y(Ka,Hq);Ka.prototype.stop=function(){this.onSessionStopped()};
Ka.prototype.setCastSession=function(){};
Ka.prototype.launchWithParams=function(){_.OV(this.JSC$20223_deferredLaunchDeadlineTimer_);this.JSC$20223_deferredLaunchDeadlineTimer_=NaN;var q=SS(this.JSC$20210_screenService_.getScreens(),this.receiver_.label);if(q)OT(this,q);else this.onSessionStopped(Error("ql"))};
Ka.prototype.disposeInternal=function(){_.OV(this.JSC$20223_deferredLaunchDeadlineTimer_);this.JSC$20223_deferredLaunchDeadlineTimer_=NaN;Hq.prototype.disposeInternal.call(this)};var yA=function(q,N){_.FG.call(this);this.config_=N;this.JSC$20226_screenService_=q;this.JSC$20226_appId_=N.appId||"233637DE";this.JSC$20226_theme_=N.theme||"cl";this.disableDial_=N.disableCastApi||!1;this.forceMirroring_=N.forceMirroring||!1;this.JSC$20226_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.fF)(this.onReceiverAction_,this)};
_.Y(yA,_.FG);
yA.prototype.init=function(q,N){chrome.cast.timeout.requestSession=3E4;var b=new chrome.cast.SessionRequest(this.JSC$20226_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.x("desktop_enable_cast_connect")&&(b.androidReceiverCompatible=!0);this.disableDial_||(b.dialRequest=new chrome.cast.DialRequest("YouTube"));var y=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;q=q||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var J=(0,_.fF)(this.onReceiverUpdated_,
this);b=new chrome.cast.ApiConfig(b,(0,_.fF)(this.onSessionEstablished_,this),J,y,q);b.customDialLaunchCallback=(0,_.fF)(this.onDialLaunchRequested_,this);chrome.cast.initialize(b,(0,_.fF)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),y7a(),this.JSC$20226_screenService_.subscribe("onlineScreenChange",(0,_.fF)(this.JSC$20228_onScreenChange_,this)),this.customReceivers_=i8X(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.fF)(function(E){this.warn_("Failed to set initial custom receivers: "+(0,_.kC)(E))},this)),this.publish("yt-remote-cast2-availability-change",lfa(this)),N(!0))},this),(0,_.fF)(function(E){this.warn_("Failed to initialize API: "+(0,_.kC)(E));
N(!1)},this))};
yA.prototype.setConnectedScreenStatus=function(q,N){DK("Setting connected screen ID: "+q+" -> "+N);if(this.JSC$20226_session_){var b=this.JSC$20226_session_.screen_;if(!q||b&&b.id!=q)DK("Unsetting old screen status: "+this.JSC$20226_session_.receiver_.friendlyName),h6(this,null)}if(q&&N){if(!this.JSC$20226_session_){q=SS(this.JSC$20226_screenService_.getScreens(),q);if(!q){DK("setConnectedScreenStatus: Unknown screen.");return}if(q.idType=="shortLived"){DK("setConnectedScreenStatus: Screen with id type to be short lived.");
return}b=K3X(this,q);b||(DK("setConnectedScreenStatus: Connected receiver not custom..."),b=new chrome.cast.Receiver(q.uuid?q.uuid:q.id,q.name),b.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(b),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.fF)(function(y){this.warn_("Failed to set initial custom receivers: "+(0,_.kC)(y))},this)));
DK("setConnectedScreenStatus: new active receiver: "+b.friendlyName);h6(this,new Ka(this.JSC$20226_screenService_,b),!0)}this.JSC$20226_session_.setDisplayStatus(N)}else DK("setConnectedScreenStatus: no screen.")};
var K3X=function(q,N){return N?_.fC(q.customReceivers_,function(b){return U1N(N,b.label)},q):null};
yA.prototype.setLaunchParams=function(q){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20226_session_?this.JSC$20226_session_.launchWithParams(q):this.warn_("Setting connection data without a session")};
yA.prototype.JSC$20228_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20226_session_?(this.JSC$20226_session_.stop(),h6(this,null)):DK("Stopping non-existing session")};
yA.prototype.requestSession=function(){chrome.cast.requestSession((0,_.fF)(this.onSessionEstablished_,this),(0,_.fF)(this.onSessionRequestFailed_,this))};
yA.prototype.disposeInternal=function(){this.JSC$20226_screenService_.unsubscribe("onlineScreenChange",(0,_.fF)(this.JSC$20228_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.WA(_.Ng("yt.mdx.remote.debug.handlers_")||[],qdf);_.RA(this.JSC$20226_session_);_.FG.prototype.disposeInternal.call(this)};
var DK=function(q){Pq("Controller",q)};
yA.prototype.warn_=function(q){Pq("Controller",q)};
var qdf=function(q){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(q)},lfa=function(q){return q.hasCastReceiver_||!!q.customReceivers_.length||!!q.JSC$20226_session_},h6=function(q,N,b){N!=q.JSC$20226_session_&&(_.RA(q.JSC$20226_session_),(q.JSC$20226_session_=N)?(b?q.publish("yt-remote-cast2-receiver-resumed",N.receiver_):q.publish("yt-remote-cast2-receiver-selected",N.receiver_),N.subscribe("sessionScreen",(0,_.fF)(q.onSessionScreen_,q,N)),N.subscribe("sessionFailed",
function(){return DVN(q,N)}),N.screen_?q.publish("yt-remote-cast2-session-change",N.screen_):b&&q.JSC$20226_session_.launchWithParams(null)):q.publish("yt-remote-cast2-session-change",null))},DVN=function(q,N){q.JSC$20226_session_==N&&q.publish("yt-remote-cast2-session-failed")};
_.g=yA.prototype;_.g.onSessionScreen_=function(q,N){this.JSC$20226_session_==q&&(N||h6(this,null),this.publish("yt-remote-cast2-session-change",N))};
_.g.onReceiverAction_=function(q,N){if(!this.isDisposed())if(q)switch(q.friendlyName=chrome.cast.unescape(q.friendlyName),DK("onReceiverAction_ "+q.label+" / "+q.friendlyName+"-- "+N),N){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20226_session_)if(this.JSC$20226_session_.receiver_.label!=q.label)DK("onReceiverAction_: Stopping active receiver: "+this.JSC$20226_session_.receiver_.friendlyName),this.JSC$20226_session_.stop();else{DK("onReceiverAction_: Casting to active receiver.");this.JSC$20226_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20226_session_.screen_);break}switch(q.receiverType){case chrome.cast.ReceiverType.CUSTOM:h6(this,new Ka(this.JSC$20226_screenService_,q));break;case chrome.cast.ReceiverType.DIAL:h6(this,new lO(this.JSC$20226_screenService_,q,this.JSC$20226_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:h6(this,new iO(this.JSC$20226_screenService_,q,this.config_));break;default:this.warn_("Unknown receiver type: "+q.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20226_session_&&
this.JSC$20226_session_.receiver_.label==q.label?this.JSC$20226_session_.stop():this.warn_("Stopping receiver w/o session: "+q.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.g.onDialLaunchRequested_=function(q){if(this.isDisposed())return Promise.reject(Error("rl"));var N=q.receiver;N.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+N.friendlyName),N.receiverType=chrome.cast.ReceiverType.DIAL);var b=this.JSC$20226_session_?this.JSC$20226_session_.receiver_:null;if(!b||b.label!=N.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+N.friendlyName),Promise.reject(Error("sl"));if(b&&b.label==N.label&&b.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20226_session_.screen_)return DK("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20226_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+b.receiverType+'" to "dial" for '+N.friendlyName);h6(this,new lO(this.JSC$20226_screenService_,N,this.JSC$20226_theme_,this.config_))}N=this.JSC$20226_session_;N.launchData_=q;N.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(q=N.launchData_.extraData||{},b=q.screenId||null,Vpf(N)&&q.loungeToken?q.loungeTokenRefreshIntervalMs?q=QyX(N,{name:N.receiver_.friendlyName,screenId:q.screenId,loungeToken:q.loungeToken,dialId:N.launchData_.receiver.label,screenIdType:"shortLived"},q.loungeTokenRefreshIntervalMs):(_.HC(Error("ol`"+JSON.stringify(q))),q=O8x(N,b)):q=O8x(N,b)):q=Gix(N);return q};
_.g.onSessionEstablished_=function(q){var N=this;if(!this.isDisposed()&&!this.forceMirroring_){DK("New cast session ID: "+q.sessionId);var b=q.receiver;if(b.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20226_session_)if(b.receiverType==chrome.cast.ReceiverType.CAST)DK("Got resumed cast session before resumed mdx connection."),b.friendlyName=chrome.cast.unescape(b.friendlyName),h6(this,new iO(this.JSC$20226_screenService_,b,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var y=this.JSC$20226_session_.receiver_,J=SS(this.JSC$20226_screenService_.getScreens(),y.label);J&&U1N(J,b.label)&&y.receiverType!=chrome.cast.ReceiverType.CAST&&b.receiverType==chrome.cast.ReceiverType.CAST&&(DK("onSessionEstablished_: manual to cast session change "+b.friendlyName),_.RA(this.JSC$20226_session_),this.JSC$20226_session_=new iO(this.JSC$20226_screenService_,b,this.config_),this.JSC$20226_session_.subscribe("sessionScreen",(0,_.fF)(this.onSessionScreen_,this,this.JSC$20226_session_)),
this.JSC$20226_session_.subscribe("sessionFailed",function(){return DVN(N,N.JSC$20226_session_)}),this.JSC$20226_session_.launchWithParams(null));
this.JSC$20226_session_.setCastSession(q)}}};
_.g.JSC$20228_getCastSession=function(){return this.JSC$20226_session_?this.JSC$20226_session_.JSC$20212_getCastSession():null};
_.g.onSessionRequestFailed_=function(q){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.kC)(q)),q.code!=chrome.cast.ErrorCode.CANCEL&&h6(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.g.onReceiverUpdated_=function(q){DK("Receiver availability updated: "+q);if(!this.isDisposed()){var N=lfa(this);this.hasCastReceiver_=q==chrome.cast.ReceiverAvailability.AVAILABLE;lfa(this)!=N&&this.publish("yt-remote-cast2-availability-change",lfa(this))}};
var i8X=function(q){var N=q.JSC$20226_screenService_.JSC$20208_getOnlineScreens(),b=q.JSC$20226_session_&&q.JSC$20226_session_.receiver_;q=_.aW(N,function(y){b&&U1N(y,b.label)&&(b=null);var J=y.uuid?y.uuid:y.id,E=K3X(this,y);E?(E.label=J,E.friendlyName=y.name):(E=new chrome.cast.Receiver(J,y.name),E.receiverType=chrome.cast.ReceiverType.CUSTOM);return E},q);
b&&(b.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(b=new chrome.cast.Receiver(b.label,b.friendlyName),b.receiverType=chrome.cast.ReceiverType.CUSTOM),q.push(b));return q};
yA.prototype.JSC$20228_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=i8X(this),DK("Updating custom receivers: "+(0,_.kC)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.fF)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",lfa(this)))};
yA.prototype.setLaunchParams=yA.prototype.setLaunchParams;yA.prototype.setConnectedScreenStatus=yA.prototype.setConnectedScreenStatus;yA.prototype.stopSession=yA.prototype.JSC$20228_stopSession;yA.prototype.getCastSession=yA.prototype.JSC$20228_getCastSession;yA.prototype.requestSession=yA.prototype.requestSession;yA.prototype.init=yA.prototype.init;yA.prototype.dispose=yA.prototype.dispose;var hoc=_.Tt(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),lQA=[],XVW=_.Xe(hoc);var kif=function(q){q.audioTrackId=null;q.trackData=null;q.playerState=-1;q.hasPrevious=!1;q.hasNext=!1;q.playerTime_=0;q.playerTimeAt_=_.M$();q.seekableStart_=0;q.seekableEnd_=0;q.duration_=0;q.loadedTime=0;q.liveIngestionTime_=NaN;q.isLive_=!1};
_.g=JR.prototype;
_.g.reset=function(q){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;q&&(this.index=q.index,this.listId=q.listId,this.videoId=q.videoId,this.playerState=q.playerState,this.volume=q.volume,this.muted=q.muted,this.audioTrackId=q.audioTrackId,this.trackData=q.trackData,this.hasPrevious=q.hasPrevious,this.hasNext=q.hasNext,this.playerTime_=q.playerTime,this.playerTimeAt_=q.playerTimeAt,this.seekableStart_=q.seekableStart,this.seekableEnd_=q.seekableEnd,this.duration_=q.duration,this.loadedTime=
q.loadedTime,this.liveIngestionTime_=q.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.g.stopPlayer=function(){this.index=-1;this.videoId="";kif(this)};
_.g.isPlaying=function(){return this.playerState==1};
_.g.isBuffering=function(){return this.playerState==3};
_.g.isAdPlaying=function(){return this.playerState==1081};
var kK=function(q,N){q.playerTime_=N;q.playerTimeAt_=_.M$()},UVf=function(q){switch(q.playerState){case 1:case 1081:return(_.M$()-q.playerTimeAt_)/1E3+q.playerTime_;
case -1E3:return 0}return q.playerTime_};
JR.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.M$()-this.playerTimeAt_)/1E3:0):this.duration_};
var ffX=function(q,N,b){var y=q.videoId;q.videoId=N;q.index=b;N!=y&&kif(q)},Cpx=function(q){var N={};
N.index=q.index;N.listId=q.listId;N.videoId=q.videoId;N.playerState=q.playerState;N.volume=q.volume;N.muted=q.muted;N.audioTrackId=q.audioTrackId;N.trackData=_.nM.unsafeClone(q.trackData);N.hasPrevious=q.hasPrevious;N.hasNext=q.hasNext;N.playerTime=q.playerTime_;N.playerTimeAt=q.playerTimeAt_;N.seekableStart=q.seekableStart_;N.seekableEnd=q.seekableEnd_;N.duration=q.duration_;N.loadedTime=q.loadedTime;N.liveIngestionTime=q.liveIngestionTime_;return N};
JR.prototype.clone=function(){return new JR(Cpx(this))};var FI=function(q,N){_.FG.call(this);var b=this;this.state_=0;this.connection_=q;this.contextSubscriptions_=[];this.actionQueue_=new jmA;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.fF)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.fF)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.fF)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.fF)(this.onCloudviewAvailabilityChange_,this);var y=0;q?(y=q.getProxyState(),
y!=3&&(q.subscribe("proxyStateChange",this.setState_,this),IfX(this))):y=3;y!=0&&(N?this.setState_(y):_.Yf(function(){b.setState_(y)},0));
(q=ktX())&&Tia(this,q);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.Y(FI,_.FG);FI.prototype.getState=function(){return this.state_};
FI.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
FI.prototype.reconnect=function(){this.connection_.reconnect()};
var UT=function(q){return new JR(q.connection_.getPlayerContextData())};
_.g=FI.prototype;_.g.play=function(){fa(this)?(this.castMedia_?this.castMedia_.play(null,_.jE,syp(this,"play")):Ca(this,"play"),npa(this,1,UVf(UT(this))),this.publish("remotePlayerChange")):Ia(this,this.play)};
_.g.pause=function(){fa(this)?(this.castMedia_?this.castMedia_.pause(null,_.jE,syp(this,"pause")):Ca(this,"pause"),npa(this,2,UVf(UT(this))),this.publish("remotePlayerChange")):Ia(this,this.pause)};
_.g.seekTo=function(q){if(fa(this)){if(this.castMedia_){var N=UT(this),b=new chrome.cast.media.SeekRequest;b.currentTime=q;N.isPlaying()||N.isBuffering()?b.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:b.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(b,_.jE,syp(this,"seekTo",{newTime:q}))}else Ca(this,"seekTo",{newTime:q});npa(this,3,q);this.publish("remotePlayerChange")}else Ia(this,_.dg(this.seekTo,q))};
_.g.stop=function(){if(fa(this)){this.castMedia_?this.castMedia_.stop(null,_.jE,syp(this,"stopVideo")):Ca(this,"stopVideo");var q=UT(this);q.stopPlayer();TR(this,q);this.publish("remotePlayerChange")}else Ia(this,this.stop)};
_.g.setVolume=function(q,N){if(fa(this)){var b=UT(this);if(this.castSession_){if(b.volume!=q){var y=Math.round(q)/100;this.castSession_.setReceiverVolumeLevel(y,(0,_.fF)(function(){M3("set receiver volume: "+y)},this),(0,_.fF)(function(){this.warn_("failed to set receiver volume.")},this))}b.muted!=N&&this.castSession_.setReceiverMuted(N,(0,_.fF)(function(){M3("set receiver muted: "+N)},this),(0,_.fF)(function(){this.warn_("failed to set receiver muted.")},this))}else{var J={volume:q,
muted:N};b.volume!=-1&&(J.delta=q-b.volume);Ca(this,"setVolume",J)}b.muted=N;b.volume=q;TR(this,b)}else Ia(this,_.dg(this.setVolume,q,N))};
_.g.setAudioTrack=function(q,N){fa(this)?(N=N.getLanguageInfo().getId(),Ca(this,"setAudioTrack",{videoId:q,audioTrackId:N}),q=UT(this),q.audioTrackId=N,TR(this,q)):Ia(this,_.dg(this.setAudioTrack,q,N))};
_.g.addVideo=function(q){fa(this)?Ca(this,"addVideo",{videoId:q}):Ia(this,_.dg(this.addVideo,q))};
_.g.addPlaylist=function(q){fa(this)?Ca(this,"addVideos",{listId:q}):Ia(this,_.dg(this.addPlaylist,q))};
_.g.addVideos=function(q){q.length==0?this.warn_("Ignore add videos request due to empty list"):fa(this)?Ca(this,"addVideos",{videoIds:q.join(",")}):Ia(this,_.dg(this.addVideos,q))};
_.g.JSC$20238_removeVideo=function(q){fa(this)?Ca(this,"removeVideo",{videoId:q}):Ia(this,_.dg(this.JSC$20238_removeVideo,q))};
_.g.JSC$20238_insertVideo=function(q){fa(this)?Ca(this,"insertVideo",{videoId:q}):Ia(this,_.dg(this.JSC$20238_insertVideo,q))};
_.g.playVideo=function(q,N,b,y,J,E,F){y=y===void 0?null:y;J=J===void 0?null:J;E=E===void 0?null:E;F=F===void 0?null:F;var R=UT(this),c={videoId:q};b!==void 0&&(c.currentIndex=b);ffX(R,q,b||0);N!==void 0&&(kK(R,N),c.currentTime=N);y&&(c.listId=y);J&&(c.playerParams=J);E&&(c.clickTrackingParams=E);F&&(c.locationInfo=(0,_.kC)(F));Ca(this,"setPlaylist",c);y||TR(this,R)};
_.g.nextVideo=function(q,N){if(fa(this)){if(q&&N){var b=UT(this);ffX(b,q,N);TR(this,b)}Ca(this,"next")}else Ia(this,_.dg(this.nextVideo,q,N))};
_.g.clearPlaylist=function(){if(fa(this)){Ca(this,"clearPlaylist");var q=UT(this);q.reset();TR(this,q);this.publish("remotePlayerChange")}else Ia(this,this.clearPlaylist)};
_.g.dispose=function(){if(this.state_!=3){var q=this.state_;this.state_=3;this.publish("proxyStateChange",q,this.state_)}_.FG.prototype.dispose.call(this)};
_.g.disposeInternal=function(){afU(this);this.connection_=null;this.actionQueue_.clear();Tia(this,null);_.FG.prototype.disposeInternal.call(this)};
var IfX=function(q){_.Jz("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(N){this.contextSubscriptions_.push(this.connection_.subscribe(N,_.dg(this.onProxyEvent_,N),this))},q)},afU=function(q){_.Jz(q.contextSubscriptions_,function(N){this.connection_.unsubscribeByKey(N)},q);
q.contextSubscriptions_.length=0},fa=function(q){return q.getState()==1},Ia=function(q,N){q.actionQueue_.getCount()<50&&q.actionQueue_.enqueue(N)},npa=function(q,N,b){var y=UT(q);
kK(y,b);y.playerState!=-1E3&&(y.playerState=N);TR(q,y)},Ca=function(q,N,b){q.connection_.sendMessage(N,b)},TR=function(q,N){afU(q);
q.connection_.setPlayerContextData(Cpx(N));IfX(q)};
FI.prototype.setState_=function(q){if((q!=this.state_||q==2)&&this.state_!=3&&q!=0){var N=this.state_;this.state_=q;this.publish("proxyStateChange",N,q);if(q==1)for(;!this.actionQueue_.isEmpty();)q=this.actionQueue_,$8B(q),q.front_.pop().apply(this);else q==3&&this.dispose()}};
FI.prototype.onProxyEvent_=function(q,N){this.publish(q,N)};
var Tia=function(q,N){q.castSession_&&(q.castSession_.removeUpdateListener(q.boundCastStatusListener_),q.castSession_.removeMediaListener(q.boundCastMediaListener_),q.onCastMediaChange_(null));q.castSession_=N;if(q.castSession_&&(M3("Setting cast session: "+q.castSession_.sessionId),q.castSession_.addUpdateListener(q.boundCastStatusListener_),q.castSession_.addMediaListener(q.boundCastMediaListener_),q.castSession_.media.length))q.onCastMediaChange_(q.castSession_.media[0])};
FI.prototype.onCastStatusUpdate_=function(q){if(!q)this.onCastMediaChange_(null),Tia(this,null);else if(this.castSession_.receiver.volume){q=this.castSession_.receiver.volume;var N=UT(this),b=Math.round(100*q.level||0);if(N.volume!=b||N.muted!=q.muted)M3("Cast volume update: "+q.level+(q.muted?" muted":"")),N.volume=b,N.muted=!!q.muted,TR(this,N)}};
FI.prototype.onCastMediaChange_=function(q){M3("Cast media: "+!!q);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=q)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),S8N(this),this.publish("remotePlayerChange")};
var S8N=function(q){var N=q.castMedia_.media,b=q.castMedia_.customData;if(N&&b){var y=UT(q);N.contentId!=y.videoId&&M3("Cast changing video to: "+N.contentId);y.videoId=N.contentId;y.playerState=b.playerState;kK(y,q.castMedia_.getEstimatedTime());TR(q,y)}else M3("No cast media video. Ignoring state update.")};
FI.prototype.onCastMediaUpdate_=function(q){if(q)S8N(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
FI.prototype.onCloudviewAvailabilityChange_=function(){var q=ktX();q&&Tia(this,q)};
FI.prototype.warn_=function(q){Pq("CP",q)};
var syp=function(q,N,b){return(0,_.fF)(function(y){this.warn_("Failed to "+N+" with cast v2 channel. Error code: "+y.code);y.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+N+" using MDx browser channel."),Ca(this,N,b))},q)};var Rs=function(q,N,b,y){y=y===void 0?!1:y;_.FG.call(this);var J=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$20243_http_=q;this.enableConnectWithInitialState_=y;this.listeners_.push(_.u0(window,"beforeunload",function(){J.JSC$20246_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new JR;this.currentScreenId_=N.id;this.currentScreenIdType_=N.idType;this.channelService=H0a(this.JSC$20243_http_,b,this.JSC$20246_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){W3d(J)});
this.channelService.listen("channelClosed",function(){sT("Channel closed");isNaN(J.connectTimerId_)?Pkf(!0):Pkf();J.dispose()});
this.channelService.listen("channelError",function(E){Pkf();isNaN(J.getReconnectTimeout_())?(E==1&&J.currentScreenIdType_=="shortLived"&&J.publish("browserChannelAuthError",E),sT("Channel error: "+E+" without reconnection"),J.dispose()):(J.reconnecting_=!0,sT("Channel error: "+E+" with reconnection in "+J.getReconnectTimeout_()+" ms"),L3B(J,2))});
this.channelService.listen("channelMessage",function(E){p8f(J,E)});
this.channelService.setLoungeToken(N.token);this.subscribe("remoteQueueChange",function(){var E=J.playerContext_.videoId;IIc()&&_.r5("yt-remote-session-video-id",E)})};
_.Y(Rs,_.FG);
Rs.prototype.connect=function(q,N){if(N){var b=N.listId,y=N.videoId,J=N.videoIds,E=N.playerParams,F=N.clickTrackingParams,R=N.index,c={videoId:y},z=N.currentTime,m=N.locationInfo;N=N.loopMode;z!==void 0&&(c.currentTime=z<=5?0:z);E&&(c.playerParams=E);m&&(c.locationInfo=m);F&&(c.clickTrackingParams=F);b&&(c.listId=b);J&&J.length>0&&(c.videoIds=J.join(","));R!==void 0&&(c.currentIndex=R);this.enableConnectWithInitialState_&&(c.loopMode=N||"LOOP_MODE_OFF");b&&(this.playerContext_.listId=b);this.playerContext_.videoId=
y;this.playerContext_.index=R||0;this.playerContext_.state=3;kK(this.playerContext_,z);this.autoplayMode_="UNSUPPORTED";b=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";sT("Connecting with "+b+" and params: "+(0,_.kC)(c));this.channelService.connect({method:b,params:(0,_.kC)(c)},q,SAW())}else sT("Connecting without params"),this.channelService.connect({},q,SAW());PpW(this)};
Rs.prototype.setLoungeToken=function(q){this.channelService.setLoungeToken(q)};
Rs.prototype.dispose=function(){this.isDisposed()||(_.zn("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),L3B(this,3));_.FG.prototype.dispose.call(this)};
Rs.prototype.disposeInternal=function(){Mpf(this);opX(this);AJa(this);_.OV(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.OV(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.$oC(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.FG.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var eoW=function(q){return _.fC(q.connectedDevices_,function(N){return N.type=="LOUNGE_SCREEN"})},sT=function(q){Pq("conn",q)},L3B=function(q,N){q.publish("proxyStateChange",N)},PpW=function(q){q.connectTimerId_=_.Yf(function(){sT("Connecting timeout");
q.JSC$20246_disconnect_(1)},2E4)},Mpf=function(q){_.OV(q.connectTimerId_);
q.connectTimerId_=NaN},AJa=function(q){_.OV(q.reconnectedCheckScreenTimeout_);
q.reconnectedCheckScreenTimeout_=NaN},H8p=function(q){opX(q);
q.playingSyncTimerId_=_.Yf(function(){Bip(q,"getNowPlaying")},2E4)},opX=function(q){_.OV(q.playingSyncTimerId_);
q.playingSyncTimerId_=NaN},W3d=function(q){sT("Channel opened");
q.reconnecting_&&(q.reconnecting_=!1,AJa(q),q.reconnectedCheckScreenTimeout_=_.Yf(function(){sT("Timing out waiting for a screen.");q.JSC$20246_disconnect_(1)},15E3))},NFX=function(q,N){var b=null;
if(N){var y=eoW(q);y&&(b={clientName:y.clientName,deviceMake:y.brand,deviceModel:y.model,osVersion:y.osVersion})}_.zn("yt.mdx.remote.remoteClient_",b);N&&(Mpf(q),AJa(q));b=q.channelService.isChannelOpened()&&isNaN(q.connectTimerId_);N==b?N&&(L3B(q,1),Bip(q,"getSubtitlesTrack")):N?(q.getOtherConnectedRemoteId_()&&q.playerContext_.reset(),L3B(q,1),Bip(q,"getNowPlaying"),qQC(q)):q.JSC$20246_disconnect_(1)},bdC=function(q,N){var b=N.params.videoId;
delete N.params.videoId;b==q.playerContext_.videoId&&(_.nM.isEmpty(N.params)?q.playerContext_.trackData=null:q.playerContext_.trackData=N.params,q.publish("remotePlayerChange"))},yKf=function(q,N,b){var y=N.params.videoId||N.params.video_id,J=parseInt(N.params.currentIndex,10);
q.playerContext_.listId=N.params.listId||q.playerContext_.listId;ffX(q.playerContext_,y,J);q.publish("remoteQueueChange",b)},JKC=function(q,N){N.params=N.params||{};
yKf(q,N,"NOW_PLAYING_MAY_CHANGE");q.onStateChange_(N);q.publish("autoplayDismissed")};
Rs.prototype.onStateChange_=function(q){var N=parseInt(q.params.currentTime||q.params.current_time,10);kK(this.playerContext_,isNaN(N)?0:N);N=parseInt(q.params.state,10);N=isNaN(N)?-1:N;N==-1&&this.playerContext_.playerState==-1E3&&(N=-1E3);this.playerContext_.playerState=N;N=Number(q.params.loadedTime);this.playerContext_.loadedTime=isNaN(N)?0:N;N=Number(q.params.duration);this.playerContext_.duration_=isNaN(N)?0:N;N=this.playerContext_;var b=Number(q.params.liveIngestionTime);N.liveIngestionTime_=
b;N.isLive_=isNaN(b)?!1:!0;N=this.playerContext_;b=Number(q.params.seekableStartTime);q=Number(q.params.seekableEndTime);N.seekableStart_=isNaN(b)?0:b;N.seekableEnd_=isNaN(q)?0:q;this.playerContext_.playerState==1?H8p(this):opX(this);this.publish("remotePlayerChange")};
Rs.prototype.onAdStateChange_=function(q){if(this.playerContext_.playerState!=-1E3){var N=1085;switch(parseInt(q.params.adState,10)){case 1:N=1081;break;case 2:N=1084;break;case 0:N=1083}this.playerContext_.playerState=N;q=parseInt(q.params.currentTime,10);kK(this.playerContext_,isNaN(q)?0:q);this.publish("remotePlayerChange")}};
var EOA=function(q,N){var b=N.params.muted=="true";q.playerContext_.volume=parseInt(N.params.volume,10);q.playerContext_.muted=b;q.publish("remotePlayerChange")},gOf=function(q,N){q.autoplayVideoId_=N.params.videoId;
q.publish("nowAutoplaying",parseInt(N.params.timeout,10))},Zdp=function(q,N){q.autoplayVideoId_=N.params.videoId||null;
q.publish("autoplayUpNext",q.autoplayVideoId_)},Fff=function(q,N){q.autoplayMode_=N.params.autoplayMode;
q.publish("autoplayModeChange",q.autoplayMode_);q.autoplayMode_=="DISABLED"&&q.publish("autoplayDismissed")},Rvd=function(q,N){var b=N.params.hasNext=="true";
q.playerContext_.hasPrevious=N.params.hasPrevious=="true";q.playerContext_.hasNext=b;q.publish("previousNextChange")};
Rs.prototype.isCapabilitySupportedOnConnectedDevices_=function(q){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var N=_.Z(this.connectedDevices_),b=N.next();!b.done;b=N.next())if(!b.value.capabilities.has(q))return!1;return!0};
var p8f=function(q,N){N=N.message;N.params?sT("Received: action="+N.action+", params="+(0,_.kC)(N.params)):sT("Received: action="+N.action+" {}");switch(N.action){case "loungeStatus":N=(0,_.j2)(N.params.devices);q.connectedDevices_=_.aW(N,function(y){return new GR(y)});
N=!!_.fC(q.connectedDevices_,function(y){return y.type=="LOUNGE_SCREEN"});
NFX(q,N);N=q.isCapabilitySupportedOnConnectedDevices_("mlm");q.publish("multiStateLoopEnabled",N);break;case "loungeScreenDisconnected":JnK(q.connectedDevices_,function(y){return y.type=="LOUNGE_SCREEN"});
NFX(q,!1);break;case "remoteConnected":var b=new GR((0,_.j2)(N.params.device));_.fC(q.connectedDevices_,function(y){return y.equals(b)})||_.KdD(q.connectedDevices_,b);
break;case "remoteDisconnected":b=new GR((0,_.j2)(N.params.device));JnK(q.connectedDevices_,function(y){return y.equals(b)});
break;case "gracefulDisconnect":break;case "playlistModified":yKf(q,N,"QUEUE_MODIFIED");break;case "nowPlaying":JKC(q,N);break;case "onStateChange":q.onStateChange_(N);break;case "onAdStateChange":q.onAdStateChange_(N);break;case "onVolumeChanged":EOA(q,N);break;case "onSubtitlesTrackChanged":bdC(q,N);break;case "nowAutoplaying":gOf(q,N);break;case "autoplayDismissed":q.publish("autoplayDismissed");break;case "autoplayUpNext":Zdp(q,N);break;case "onAutoplayModeChanged":Fff(q,N);break;case "onHasPreviousNextChanged":Rvd(q,
N);break;case "requestAssistedSignIn":q.publish("assistedSignInRequested",N.params.authCode);break;case "onLoopModeChanged":q.publish("loopModeChange",N.params.loopMode);break;default:sT("Unrecognized action: "+N.action)}};
_.g=Rs.prototype;_.g.getProxyState_=function(){var q=3;this.isDisposed()||(q=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(q=1):q=2);return q};
_.g.JSC$20246_disconnect_=function(q){sT("Disconnecting with "+q);_.zn("yt.mdx.remote.remoteClient_",null);Mpf(this);this.publish("beforeDisconnect",q);q==1&&Pkf();this.channelService.disconnect(q);this.dispose()};
_.g.getPlayerContextData_=function(){var q=this.playerContext_;this.clientVideoId_&&(q=this.playerContext_.clone(),ffX(q,this.clientVideoId_,q.index));return Cpx(q)};
_.g.setPlayerContextData_=function(q){var N=this,b=new JR(q);b.videoId&&b.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=b.videoId,_.OV(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.Yf(function(){if(N.clientVideoId_){var J=N.clientVideoId_;N.clientVideoId_=null;N.playerContext_.videoId!=J&&Bip(N,"getNowPlaying")}},5E3));
var y=[];this.playerContext_.listId==b.listId&&this.playerContext_.videoId==b.videoId&&this.playerContext_.index==b.index||y.push("remoteQueueChange");this.playerContext_.playerState==b.playerState&&this.playerContext_.volume==b.volume&&this.playerContext_.muted==b.muted&&UVf(this.playerContext_)==UVf(b)&&(0,_.kC)(this.playerContext_.trackData)==(0,_.kC)(b.trackData)||y.push("remotePlayerChange");this.playerContext_.reset(q);_.Jz(y,function(J){this.publish(J)},this)};
_.g.getOtherConnectedRemoteId_=function(){var q=this.channelService.getDeviceId(),N=_.fC(this.connectedDevices_,function(b){return b.type=="REMOTE_CONTROL"&&b.id!=q});
return N?N.id:""};
_.g.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.g.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.g.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.g.JSC$20246_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var qQC=function(q){_.OV(q.idleDisconnectTimerId_);q.idleDisconnectTimerId_=_.Yf(function(){q.JSC$20246_disconnect_(1)},864E5)},Bip=function(q,N,b){b?sT("Sending: action="+N+", params="+(0,_.kC)(b)):sT("Sending: action="+N);
q.channelService.sendMessage(N,b)};
Rs.prototype.sendMessageWithUserAction_=function(q,N){Bip(this,q,N);qQC(this)};
Rs.prototype.JSC$20246_getXsrfToken_=function(){var q=_.hz.get("SAPISID","")||_.hz.get("__Secure-1PAPISID",void 0)||"",N=_.hz.get("__Secure-3PAPISID","")||"";if(!q&&!N)return"";q=_.Uf(_.kN(q),2);N=_.Uf(_.kN(N),2);return _.Uf(_.kN(","+q+","+N),2)};
Rs.prototype.subscribe=Rs.prototype.subscribe;Rs.prototype.unsubscribeByKey=Rs.prototype.unsubscribeByKey;Rs.prototype.getProxyState=Rs.prototype.getProxyState_;Rs.prototype.disconnect=Rs.prototype.JSC$20246_disconnect_;Rs.prototype.getPlayerContextData=Rs.prototype.getPlayerContextData_;Rs.prototype.setPlayerContextData=Rs.prototype.setPlayerContextData_;Rs.prototype.getOtherConnectedRemoteId=Rs.prototype.getOtherConnectedRemoteId_;Rs.prototype.getReconnectTimeout=Rs.prototype.getReconnectTimeout_;
Rs.prototype.getAutoplayMode=Rs.prototype.getAutoplayMode_;Rs.prototype.getAutoplayVideoId=Rs.prototype.getAutoplayVideoId_;Rs.prototype.reconnect=Rs.prototype.JSC$20246_reconnect_;Rs.prototype.sendMessage=Rs.prototype.sendMessageWithUserAction_;Rs.prototype.getXsrfToken=Rs.prototype.JSC$20246_getXsrfToken_;Rs.prototype.isCapabilitySupportedOnConnectedDevices=Rs.prototype.isCapabilitySupportedOnConnectedDevices_;var JsC=function(q){o4.call(this,"ScreenServiceProxy");this.instance_=q;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.fF)(this.JSC$20249_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.fF)(this.onOnlineScreenChange_,this)))};
_.Y(JsC,o4);_.g=JsC.prototype;_.g.getScreens=function(q){return this.instance_.$_gs(q)};
_.g.contains=function(q){return!!this.instance_.$_c(q)};
_.g.get=function(q){return this.instance_.$_g(q)};
_.g.start=function(){this.instance_.$_st()};
_.g.add=function(q,N,b){this.instance_.$_a(q,N,b)};
_.g.remove=function(q,N,b){this.instance_.$_r(q,N,b)};
_.g.updateName=function(q,N,b,y){this.instance_.$_un(q,N,b,y)};
_.g.disposeInternal=function(){for(var q=this.subscriptionKeys_.length,N=0;N<q;++N)this.instance_.$_ubk(this.subscriptionKeys_[N]);this.subscriptionKeys_.length=0;this.instance_=null;o4.prototype.disposeInternal.call(this)};
_.g.JSC$20249_onScreenChange_=function(){this.publish("screenChange")};
_.g.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
Bq.prototype.$_st=Bq.prototype.start;Bq.prototype.$_gspc=Bq.prototype.JSC$20208_getScreenByPairingCode;Bq.prototype.$_gsppc=Bq.prototype.JSC$20208_getScreenByPollingPairingCode;Bq.prototype.$_c=Bq.prototype.contains;Bq.prototype.$_g=Bq.prototype.get;Bq.prototype.$_a=Bq.prototype.add;Bq.prototype.$_un=Bq.prototype.updateName;Bq.prototype.$_r=Bq.prototype.remove;Bq.prototype.$_gs=Bq.prototype.getScreens;Bq.prototype.$_gos=Bq.prototype.JSC$20208_getOnlineScreens;Bq.prototype.$_s=Bq.prototype.subscribe;
Bq.prototype.$_ubk=Bq.prototype.unsubscribeByKey;var BhA=null,gsK=!1,IQW=null,E0=null,ysB=null,gY=[];var dld=new _.ed("yt-menu"),cKx=function(){},zva=function(q,N,b){q=N=="right-click"?b.rightClickMenuPopupHint:b.menuPopupHint;
if(!(uXc(N)>10))return N=N||"default",dld.set(N+"-impression",uXc(N)+1),q},uXc=function(q){return parseInt(dld.get((q||"default")+"-impression")||0,10)};
_.PV(cKx);var $lC=function(){this.contexts_=new WeakMap;this.JSC$20255_networkService_=this.activeContext_=null},twx=function(q,N,b){var y=q.contexts_.get(N);
y||(y=new jNC(q.JSC$20255_networkService_),q.contexts_.set(N,y));q.activeContext_=y;b&&q.activeContext_.reset();q.activeContext_.start();return q.activeContext_};var na=function(){};
na.prototype.enqueue=function(){var q=this,N;return _.d(function(b){if(q.isCounterfactual())return(N=q.getCounterfactualData())&&q.shouldLogCounterfactualImpression()&&q.sendImpressionEndpoints(N),b.return();q.doEnqueue();_.hj(b)})};
na.prototype.sendImpressionEndpoints=function(q){_.JD.getInstance().triggerOptionalAction("yt-service-request",{},q[0])};var aa=function(q,N){this.renderer=q;this.page=N};
_.Y(aa,na);aa.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
aa.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
aa.prototype.shouldLogCounterfactualImpression=function(){return!0};
aa.prototype.doEnqueue=function(){var q=_.p6(this.page);q&&q.pause();this.renderer.impressionCommand&&_.JD.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.sU(_.JD.getInstance(),[this.renderer.promoCommand],this.page)};var mlN=function(q,N){this.renderer=q;this.resolver=_.T4();this.JSC$20267_enforcementCounter=new _.ull;N?this.JSC$20267_playerManager=_.p6(N):this.JSC$20267_playerManager=null;_.g5(1,!0)};
_.Y(mlN,na);_.g=mlN.prototype;_.g.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var q=[];this.renderer.impressionEndpoints.forEach(function(N){(N=_.O_(N))&&q.push(N)});
return q}};
_.g.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.g.shouldLogCounterfactualImpression=function(){var q=_.fxd();q?(this.JSC$20267_enforcementCounter.increment("POPUP"),_.g5(3)):_.g5(2);return q};
_.g.cancel=function(){this.resolver.promise.cancel()};
_.g.doEnqueue=function(){var q=this;_.fxd()?(this.JSC$20267_enforcementCounter.increment("POPUP"),_.g5(3),rKp(this)):this.JSC$20267_playerManager?(this.resolver.promise.then(function(){rKp(q)}),XJa(this.resolver,this.JSC$20267_playerManager)):_.g5(2)};
var XJa=function(q,N){var b=_.T4();N.getPlayerPromise().then(function(y){b.resolve(y)});
b.promise.then(function(y){y.addEventListener("onAbnormalityDetected",q.resolve);_.KJ(q.promise,function(){y.removeEventListener("onAbnormalityDetected",q.resolve)})});
q.promise.thenCatch(function(){b.promise.cancel()})},rKp=function(q){_.g5(3);
var N={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:q.renderer}};N=_.JD.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:N},{});Promise.all(N).then(function(){Vwx();q.JSC$20267_playerManager&&q.JSC$20267_playerManager.pause()})},Vwx=function(){TaB(function(q,N){_.x9C(q,N);
q===0?_.g5(7):_.g5(4)})};var jLC=function(q,N){this.renderer=q;this.page=N;this.resolver=_.T4()};
_.Y(jLC,na);_.g=jLC.prototype;_.g.cancel=function(){this.resolver.promise.cancel()};
_.g.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.g.isCounterfactual=function(){return!this.renderer.isVisible};
_.g.shouldLogCounterfactualImpression=function(){return!0};
_.g.doEnqueue=function(){var q=this;this.resolver.promise.then(function(){var b={popup:{mealbarPromoRenderer:q.renderer},popupType:"MEALBAR"};_.JD.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:b},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var N=_.p6(this.page);N&&xlx(this.resolver,N)}break;default:this.resolver.resolve()}};
var xlx=function(q,N){var b=_.T4();N.getPlayerPromise().then(function(y){b.resolve(y)});
b.promise.then(function(y){y.addEventListener("onAdEnd",q.resolve);_.KJ(q.promise,function(){y.removeEventListener("onAdEnd",q.resolve)})});
q.promise.thenCatch(function(){b.promise.cancel()})};var vOa=function(q,N){this.renderer=q;this.page=N};
_.Y(vOa,na);_.g=vOa.prototype;_.g.cancel=function(){this.JSC$20275_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20275_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20275_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.g.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.g.isCounterfactual=function(){return!this.renderer.isVisible};
_.g.shouldLogCounterfactualImpression=function(){return!0};
_.g.doEnqueue=function(){var q=this,N,b;((N=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(b=N.playbackUpsellDialogTriggerConditionData)==null?void 0:b.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20275_downloadedVideosCountSelectorUnsubscriber=_.aM(_.WT(),CqA,function(y,J){y>J&&(GHU(q),q.cancel())}):GHU(this)};
var GHU=function(q){var N={popup:{upsellDialogRenderer:q.renderer},popupType:"MODAL"};_.JD.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:N},{});(q=_.p6(q.page))&&q.pause()};var St={},YQC=(St.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",St.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",St.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",St.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",St.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",St.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",St.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",St),QLa=function(q,N){this.renderer=q;this.targetManager=
N};
_.Y(QLa,na);_.g=QLa.prototype;_.g.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20282_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20282_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20282_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.g.getCounterfactualData=function(){if(this.isCounterfactual()){var q;return(q=this.renderer.promoConfig)==null?void 0:q.impressionEndpoints}};
_.g.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.g.shouldLogCounterfactualImpression=function(){return!0};
_.g.doEnqueue=function(){var q=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20282_downloadedVideosCountSelectorUnsubscriber=_.aM(_.WT(),CqA,function(N,b){q.renderer.targetId&&N>b&&(WXA(q.targetManager,q.renderer.targetId,OdW(q)),q.cancel())});
break;default:WXA(this.targetManager,this.renderer.targetId,OdW(this))}};
var OdW=function(q){var N;if((N=q.renderer.suggestedPosition)==null?0:N.type)var b=YQC[q.renderer.suggestedPosition.type];b||(b="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:q.renderer},popupType:"HINT",position:b}}};var wJB=function(){this.previousPage=null},idU;
wJB.prototype.registerPromoCommand=function(q,N){l_d(this,void 0,void 0,_.v(q.roadblock,grf),void 0,void 0,N)};
var l_d=function(q,N,b,y,J,E,F){q.previousPage!==F&&q.pendingTooltipPromo&&q.pendingTooltipPromo.cancel();q.previousPage=F;J?(q.pendingEnforcementPromo&&q.pendingEnforcementPromo.cancel(),q.pendingEnforcementPromo=new mlN(J,F),q.pendingEnforcementPromo.enqueue()):E?(q.pendingCommandWrapperPromo=new aa(E,F),q.pendingCommandWrapperPromo.enqueue()):y?(q.pendingRoadblockPromo&&q.pendingRoadblockPromo.cancel(),q.pendingRoadblockPromo=new vOa(y,F),q.pendingRoadblockPromo.enqueue()):N?(q.pendingMealbarPromo&&
q.pendingMealbarPromo.cancel(),q.pendingMealbarPromo=new jLC(N,F),q.pendingMealbarPromo.enqueue()):b&&(q.pendingTooltipPromo&&q.pendingTooltipPromo.cancel(),q.pendingTooltipPromo=new QLa(b,_.fP()),q.pendingTooltipPromo.enqueue())},Kfx=function(){idU||(idU=new wJB);
return idU};var ddK=!1;var L4d=function(q,N){var b=_.M7("SESSION_INDEX");this.actionToken_=q;this.commonToken_=N;this.sessionIndex_=b},W4X=function(q){var N=_.T4(),b=_.Ng("payments.business.integration.bootstrap"),y=_.Ng("payments.business.integration"),J=y.Style.create().withMaterialDesignStyle(),E=y.mashupMode.popup("instrument-manager");
b.asMashupMode(E).usingUserIndex(q.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(J).inStandaloneContext(y.standaloneContextAuthId.forUserId()).instrumentManager(q.actionToken_,q.commonToken_.length>0?q.commonToken_:void 0,function(F){var R=F.instrumentId;R?N.resolve(R):(R=_.Ng("payments.business.integration.scenario.InstrumentManager"),N.reject(F.errorCode&&F.errorCode===R.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(F){_.HC(F);
N.reject("instrumentManagerLoadError")});
return N.promise};var cr=function(q,N,b){this.payloadName="transactionFlowFailed";this.payload={errorType:q,serializedTransactionFlowLoggingParams:N,isUserDismiss:b===void 0?!1:b}};
_.zn("yt.ypc.shared.YpcTransactionFlowError",cr);var Wl=function(){return _.uL.apply(this,arguments)||this};
_.Y(Wl,_.uL);Wl.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Wl.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Wl.prototype.onErrorMessageDismiss=Wl.prototype.onErrorMessageDismiss;_.p([_.U({readOnly:!0,observer:"errorRendererChanged"}),_.P("design:type",Object)],Wl.prototype,"errorRenderer",void 0);_.p([_.ZP("yt-live-chat-error-message-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Wl.prototype,"onErrorMessageDismiss",null);_.p([_.zs()],Wl);var DlX=[Wl.prototype];var hvp;var kHp;var Ulf=new _.ed("yt-live-chat"),f_B=new Map;f_B.set("timestamp_toggle","show-timestamps");f_B.set("reactions_toggle","allow-reactions");var La=function(){return _.C.apply(this,arguments)||this};
_.Y(La,_.C);_.g=La.prototype;_.g.menuItemIdentifierChanged=function(){var q;(q=this.data)!=null&&q.menuItemIdentifier&&(q=f_B.get(this.data.menuItemIdentifier))&&(_.x("enable_lwe_web_mute")?(q=Ulf.get(q),this.isToggled=!(q===void 0?!this.data.isToggled:!q)):this.isToggled=Ulf.get(q))};
_.g.onFocus=function(){this.toggleButton.focus()};
_.g.onTap=function(){var q=this.data.command;q&&this.componentBehavior.resolveCommand(q)};
_.g.computeText=function(q,N,b){return this.componentBehavior.getSimpleString(q?b:N)};
_.g.computeIcon=function(q,N,b){return(q=q?b:N)&&q.iconType?_.qo(q.iconType):""};
La.prototype.onTap=La.prototype.onTap;La.prototype.onFocus=La.prototype.onFocus;La.prototype.menuItemIdentifierChanged=La.prototype.menuItemIdentifierChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],La.prototype,"componentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],La.prototype,"data",void 0);
_.p([_.U({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.P("design:type",String)],La.prototype,"icon",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],La.prototype,"isToggled",void 0);_.p([_.dq("tp-yt-paper-toggle-button"),_.P("design:type",Object)],La.prototype,"toggleButton",void 0);_.p([_.FY("data.menuItemIdentifier"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],La.prototype,"menuItemIdentifierChanged",null);
_.p([_.ZP("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],La.prototype,"onFocus",null);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],La.prototype,"onTap",null);_.p([_.Ok({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],La);
_.a(La,"yt-live-chat-toggle-renderer",function(){if(kHp===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;hvp===void 0&&(hvp=document.createElement("template"));var y=hvp;b.call(N,y.content.cloneNode(!0),q.content.firstChild);kHp=q}q=kHp;return q},{mode:0});var CNB=new _.Jw("NAVIGATION_PROGRESS_TOKEN");var I_f={},TFp={},sLc=(TFp[M$d.name]=!0,TFp),pa=function(){var q=_.uL.apply(this,arguments)||this;q._noAccessors=!0;q.tabGesturesIsActive=!1;q.actionRouterIsRoot=!0;q.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"};q.pageTitle="";q.titleSuffix="YouTube";q.unseenNotificationCount=
0;q.hasNavigated=!1;q.hasSetScrollTopForNavigation=!1;q.pagePreparer=null;q.zwiebackInitJobId=0;q.dataUpdatePromise=null;q.loadDepsPromise=_.bG();q.hasPendingNavigation=!1;q.pendingPlayerOnResponseReceivedActions=[];return q};
_.Y(pa,_.uL);pa.prototype.attached=function(){nOx(this);document.addEventListener("yt-navigate-cache",_.gq(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var q=Pl();q.init();q.dispatchElement=this.hostElement};
var nOx=function(q,N){N=N===void 0?0:N;var b=_.tz().resolve(_.$f(_.US));if(b)a_C(q,b);else{if(N>=5)throw Error("tl");setTimeout(function(){nOx(q,N+1)},0)}},a_C=function(q,N){N.addEventListener("yt-navigate-start",_.gq(q,q.onYtNavigateStart));
N.addEventListener("yt-navigate-finish",_.gq(q,q.onYtNavigateFinish));N.addEventListener("yt-navigate-error",_.gq(q,q.onYtNavigateError));N.addEventListener("yt-page-data-fetched",_.gq(q,q.onYtPageDataFetched))};
_.g=pa.prototype;_.g.detached=function(){var q=_.tz().resolve(_.US);q.removeEventListener("yt-navigate-start",_.gq(this,this.onYtNavigateStart));q.removeEventListener("yt-navigate-finish",_.gq(this,this.onYtNavigateFinish));q.removeEventListener("yt-navigate-error",_.gq(this,this.onYtNavigateError));q.removeEventListener("yt-page-data-fetched",_.gq(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.gq(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.g.setPageOffset=function(q,N){q?_.By(this.hostElement,"yt-set-page-offset",[q,N]):_.po(Error("ul"))};
_.g.setPageOffsetForNavigation=function(q,N){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(q,N))};
_.g.onYtNavigateSetPageOffset=function(q,N){this.setPageOffsetForNavigation(N.page,N.offset)};
_.g.getPageOffset=function(){var q=_.ee(this.hostElement).querySelector("#page-manager").getCurrentPage(),N=0;q&&(N=_.By(this.hostElement,"yt-get-page-offset",[q])[0]);return N};
_.g.onYtHistoryPop=function(q,N){if(_.ou("DISABLE_WARM_LOADS"))q.preventDefault(),window.location.reload();else{var b=_.tz().resolve(_.US);b.hasPendingNavigation()&&q.preventDefault();b.cancelPendingNavigation();_.Hy(this.hostElement,"yt-pending-navigation-cancelled");N.errorMsg&&(q=N.errorMsg.split(" - "),N=Error(q[0]),q.length==2&&q[1]&&(_.op(N,q[1]),_.M6(N)),window.location.reload())}};
_.g.onYtHistoryLoad=function(q,N){var b=this;if(_.ou("DISABLE_WARM_LOADS"))window.location.reload();else{(q=N.endpoint)&&Object.keys(q).length||(q=null);var y=N.historyEntry,J=_.tz().resolve(_.US),E=_.tz().resolve(_.L6),F=null;y&&y.rootData&&(F=y.rootData);var R=F&&SQx(F);!F||R||F.filler?q?(J.navigate(q,!0),WfK(this,q)):(N.legacyBorder||R||(N.JSC$30696_savedComponentState==null&&F==null?_.M6(new _.IO("Incomplete history entry",N.forward)):_.P_(new _.IO("Malformed history entry",N.JSC$30696_savedComponentState,
N.forward,F))),window.location.reload()):(_.pau({isHot:!0}),_.v3({webInfo:{navigationReason:"h"}}),_.xFn(),_.Q6("srt"),_.Q6("pdc"),this.cancelPendingTasks(),LfB(this,N.forward,F),F.player&&(F.player.loaded=!1),WfK(this,q),_.kG1(J,q||{},F,2,{},!1,N).then(function(){b.setPageOffset(E.getCurrentPage(),y.scrollTop||0)}))}};
_.g.initHistoryManager=function(q){if(!this.hasNavigated){this.hasNavigated=!0;var N=_.ee(this.hostElement).querySelector("#page-manager").getCurrentData();q=isNaN(q)?this.getPageOffset():q;var b=_.tz().resolve(_.US).currentEndpoint;this.replaceState(b,N,q)}};
_.g.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.g.onYtNavigateStart=function(q,N){this.cancelPendingTasks();N.noProgressBar||(q=_.tz().resolve(_.$f(CNB)))&&q.start();q=this.hasPendingNavigation?null:this.data;var b=_.tz().resolve(_.L6),y,J,E;_.x("kevlar_use_vimio_behavior")&&!((y=N.endpoint)==null?0:(J=y.commandMetadata)==null?0:(E=J.webCommandMetadata)==null?0:E.ignoreNavigation)&&(y=b.getCurrentPage())&&y.disconnectVisibilityRoot();b.prepareForNavigation(N.pageType,N.endpoint);_.x("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.t$(1,
"pcl"),_.mu(this.pagePreparer,b.preparePage.bind(b,N.pageType,N.endpoint)));y=this.getPageOffset();this.initHistoryManager(y);N.reload||this.hasPendingNavigation?(N.pageType==="shorts"&&N.reload&&_.e2(this.hostElement,"yt-shorts-reset"),this.replaceState(N.endpoint,q,y)):(q==null?void 0:q.page)==="watch"&&N.pageType==="watch"&&_.x("kevlar_replace_watch_to_watch_history_state")?this.replaceState(N.endpoint,q,y):(q==null?void 0:q.page)!=="shorts"||N.pageType!=="shorts"||N.endpoint.reelWatchEndpoint.sequenceParams||
_.x("short_to_short_back_nav_killswitch")?N.type!="navigate-back"&&N.type!="navigate-forward"&&(N.pageType==="shorts"&&_.e2(this.hostElement,"yt-shorts-reset"),this.saveAndPush(N.url,N.endpoint,q,y)):this.replaceState(N.endpoint,q,0);this.hasPendingNavigation=!0};
var pJc=function(q){q.hasPendingNavigation=!1;(q=_.tz().resolve(_.$f(CNB)))&&q.finish()};
pa.prototype.onYtNavigateError=function(q,N){pJc(this);q=this.get("endpoint.commandMetadata.webCommandMetadata.url",N);var b=_.gO(window.location.href);q&&!b.pbjreload&&(N=N.navigationErrorReason||"10",_.x("kevlar_parent_on_pbjreload")&&(b={csn:_.Oe()},this.get("data.endpoint.clickTrackingParams")&&(b.itct=this.data.endpoint.clickTrackingParams),_.Lx(q,b)),_.lI(_.ZM(q,{pbjreload:N})))};
pa.prototype.onYtNavigateCache=function(q,N){var b=this,y=N.url,J=N.endpoint,E=N.data;q=!!N.miniplayer;N=!!N.skipHistory;if(y&&J&&E){var F=this.getPageOffset(),R=this.data||null;N||this.saveAndPush(y,J,R,F);y=_.kG1(_.tz().resolve(_.US),J,E,q?4:3,{},q);q&&y.then(function(){b.dataUpdatePromise&&b.dataUpdatePromise.then(function(){var c=_.tz().resolve(_.L6);b.setPageOffset(c.getCurrentPage(),0)})})}};
pa.prototype.onYtNavigateFinish=function(q,N){var b=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){PNX(b,N.fromHistory)})};
var PNX=function(q,N){pJc(q);if(q.pendingPlayerOnResponseReceivedActions){for(var b=_.Z(q.pendingPlayerOnResponseReceivedActions),y=b.next();!y.done;y=b.next())_.yI(y.value,q.hostElement);q.pendingPlayerOnResponseReceivedActions=[]}b=_.tz().resolve(_.L6);N||!q.hasNavigated||_.x("web_disable_scroll_on_navigate_finish")||((N=b.getCurrentPage())?N.is==="ytd-shorts"||q.tabGesturesIsActive||q.setPageOffsetForNavigation(N,0):_.M6(Error("vl")));_.k9(function(){_.k9(function(){_.Q6("pda")})})};
pa.prototype.onYtNavigate=function(q){if(!q.detail.endpoint){var N=new _.IO("Error: Missing yt-navigate endpoint from target:",q.target,q.target.nodeName);_.po(N)}if(N=_.x("cold_missing_history"))N=Pl(),N.init(!1),N=!(N.browserHistory.boundHistoryReplaceState&&N.browserHistory.boundHistoryPushState);if(N){_.PC("DISABLE_WARM_LOADS",!0);N=new _.IO("Failed to initialize history manager",this.getDebugString());var b=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
b?_.M6(N):_.po(N)}N=q.detail.endpoint;var y,J;_.x("debug_forward_web_query_parameters")&&((y=N.commandMetadata)==null?0:(J=y.webCommandMetadata)==null?0:J.url)&&(N=JSON.parse(JSON.stringify(N)),N.commandMetadata.webCommandMetadata.url=_.$cn(N.commandMetadata.webCommandMetadata.url,window.location.search));q={type:0,command:N,form:{params:q.detail.params,tempData:q.detail.tempData||{},requestType:q.detail.type,createScreenConfig:q.detail.createScreenConfig,reload:q.detail.reload?q.detail.reload:!1,
requestForm:q.detail}};_.x("kevlar_yt_navigate_command_handler")?(y=_.tz().resolve(_.rO),q.form.skipDefaultElement=!0,y.resolveCommand(N,{form:q.form})):this.handleNavigate(q)};
pa.prototype.handleNavigate=function(q){this.hasSetScrollTopForNavigation=!1;var N=_.tz().resolve(_.US),b=q.form||{};N.navigate(q.command,b.reload,b.params,b.tempData,b.requestType,b.createScreenConfig,b.ignoreConfirmation,b.requestForm)&&WfK(this,q.command,b.tempData)};
pa.prototype.onYtPageDataFetched=function(q,N){try{_.vb4().reset();this.data=N.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.tz().resolve(_.L6).updatePageData(this.data);var b=this.get("playerResponse.onResponseReceivedActions",this.data);b&&(b=MwA(this,b));b&&_.Nc(this.hostElement,b,this.hostElement);var y=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),J=this.get("response.responseContext.consistencyTokenJar",this.data);if(y||J){var E=_.zhZ(),F=(0,_.nM.getValues)(E.tokenJars);y&&E.replace(F,y);J&&E.replace(F,J)}}catch(R){_.po(R)}};
var WfK=function(q,N,b){try{q.onYtEndpointChangeHandler(N,b)}catch(y){_.po(y)}};
_.g=pa.prototype;_.g.onYtEndpointChangeHandler=function(){};
_.g.setPageTitle=function(q){q=(this.pageTitle=q)?q+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+q};
_.g.onYtUpdateTitle=function(q,N){this.setPageTitle(N)};
_.g.setUnseenNotificationCount=function(q){this.unseenNotificationCount=q;this.setPageTitle(this.pageTitle)};
_.g.handleUpdateNotificationsUnseenCountAction=function(q){_.v(q,l0A)&&((q=_.v(q,l0A).unseenCount)?this.setUnseenNotificationCount(q):this.setUnseenNotificationCount(0))};
_.g.handleClearCookieAction=function(q){var N;(q=(N=_.v(q,QZA))==null?void 0:N.cookieName)&&_.krA(q)};
_.g.onYtUpdateUnseenNotificationCount=function(q,N){this.setUnseenNotificationCount(N)};
_.g.loadData=function(q){var N=this;this.loadDepsPromise.then(function(){var b=_.tz().resolve(_.$f(_.US));b||_.po(Error("wl"));if(q&&q.response){if(!q.endpoint){var y=_.fx(window.document.location.href)||"/",J="";if(y==="/"||y.startsWith("/?"))J="WEB_PAGE_TYPE_BROWSE";q.endpoint={commandMetadata:{webCommandMetadata:{url:y,webPageType:J,rootVe:3854}}}}_.kG1(b,q.endpoint,q,5,{})}else q.endpoint?b.navigate(q.endpoint):b.navigate(_.nm);_.pY.cancelJob(N.zwiebackInitJobId);N.zwiebackInitJobId=_.pY.addLowPriorityJob(csp)})};
var Pl=function(){return _.tz().resolve(_.fE)};
pa.prototype.getDebugString=function(){return Pl().getDebugString()};
pa.prototype.getThirdPartyManipulationSuspected=function(){return Pl().getThirdPartyManipulationSuspected()};
pa.prototype.replaceState=function(q,N,b){Pl().saveAndReplace(q,N,b)};
pa.prototype.saveAndPush=function(q,N,b,y){Pl().saveAndPush(q,N,b,y)};
var SQx=function(q){return _.v(q.endpoint,_.nx)||_.v(q.endpoint,_.uI)?!0:!q||isNaN(q.expirationTime)?!1:(0,_.mA)()>q.expirationTime},LfB=function(q,N,b){var y=q.get("response.trackingParams",b),J=_.QY(),E=_.Oe();
if(y&&J&&E&&(y=q.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",b),!y&&b.rootVe&&(y=b.rootVe),J=N?"forwardButton":"backButton",N=q.get("playerResponse.topbar.desktopTopbarRenderer."+J+".buttonRenderer.command.clickTrackingParams",q.data),q=q.get("response.topbar.desktopTopbarRenderer."+J+".buttonRenderer.command.clickTrackingParams",q.data),N=(q=N||q)?_.zT(q):void 0,q=_.FR(),J=[_.bG(b)],_.DO(q,y,N,{dataPromises:J,csnToClone:b.csn}),b.graftedVes))for(b=
_.Z(b.graftedVes),y=b.next();!y.done;y=b.next())_.hI(q,y.value)};
pa.prototype.onStoreGraftedVeAction=function(q){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(q)):_.M6(Error("xl"))};
var MwA=function(q,N){return N.filter(function(b){for(var y in b)if(sLc[y])return q.pendingPlayerOnResponseReceivedActions.push(b),!0;return!1})};
_.$H.Object.defineProperties(pa.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
pa.prototype.onStoreGraftedVeAction=pa.prototype.onStoreGraftedVeAction;pa.prototype.loadData=pa.prototype.loadData;pa.prototype.onYtUpdateUnseenNotificationCount=pa.prototype.onYtUpdateUnseenNotificationCount;pa.prototype.handleClearCookieAction=pa.prototype.handleClearCookieAction;pa.prototype.handleUpdateNotificationsUnseenCountAction=pa.prototype.handleUpdateNotificationsUnseenCountAction;pa.prototype.setUnseenNotificationCount=pa.prototype.setUnseenNotificationCount;
pa.prototype.onYtUpdateTitle=pa.prototype.onYtUpdateTitle;pa.prototype.setPageTitle=pa.prototype.setPageTitle;pa.prototype.onYtEndpointChangeHandler=pa.prototype.onYtEndpointChangeHandler;pa.prototype.onYtPageDataFetched=pa.prototype.onYtPageDataFetched;pa.prototype.handleNavigate=pa.prototype.handleNavigate;pa.prototype.onYtNavigate=pa.prototype.onYtNavigate;pa.prototype.onYtNavigateFinish=pa.prototype.onYtNavigateFinish;pa.prototype.onYtNavigateCache=pa.prototype.onYtNavigateCache;
pa.prototype.onYtNavigateError=pa.prototype.onYtNavigateError;pa.prototype.onYtNavigateStart=pa.prototype.onYtNavigateStart;pa.prototype.cancelPendingTasks=pa.prototype.cancelPendingTasks;pa.prototype.initHistoryManager=pa.prototype.initHistoryManager;pa.prototype.onYtHistoryLoad=pa.prototype.onYtHistoryLoad;pa.prototype.onYtHistoryPop=pa.prototype.onYtHistoryPop;pa.prototype.onYtNavigateSetPageOffset=pa.prototype.onYtNavigateSetPageOffset;pa.prototype.setPageOffset=pa.prototype.setPageOffset;
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],pa.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],pa.prototype,"data",void 0);_.p([_.ZP("yt-navigate-set-page-offset"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],pa.prototype,"onYtNavigateSetPageOffset",null);
_.p([_.ZP("yt-history-pop"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],pa.prototype,"onYtHistoryPop",null);_.p([_.ZP("yt-history-load"),_.P("design:type",Function),_.P("design:paramtypes",[Event,_.AQ4]),_.P("design:returntype")],pa.prototype,"onYtHistoryLoad",null);_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],pa.prototype,"onYtNavigate",null);
_.p([_.ZP("yt-update-title"),_.P("design:type",Function),_.P("design:paramtypes",[Event,String]),_.P("design:returntype")],pa.prototype,"onYtUpdateTitle",null);_.p([_.ZP("yt-update-unseen-notification-count"),_.P("design:type",Function),_.P("design:paramtypes",[Event,Number]),_.P("design:returntype")],pa.prototype,"onYtUpdateUnseenNotificationCount",null);_.p([_.zs()],pa);I_f.YtdAppBehavior=[_.Dc.YtActionHandlerBehavior,pa.prototype];var MU=function(){var q=_.uL.apply(this,arguments)||this;q._noAccessors=!0;return q};
_.Y(MU,_.uL);MU.prototype.ready=function(){var q=this;_.ee(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){q.onChange_()})};
MU.prototype.dataChanged_=function(){_.ee(this.hostElement).querySelector("#checkbox").checked=!1};
MU.prototype.onChange_=function(){var q=_.ee(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.e2(this.hostElement,"yt-dismissal-reason-"+q,this.data.feedbackToken)};
MU.prototype.dataChanged_=MU.prototype.dataChanged_;_.p([_.U(),_.P("design:type",Object)],MU.prototype,"data",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],MU.prototype,"dataChanged_",null);_.p([_.zs()],MU);var oOB=[MU.prototype];var oa=function(){var q=_.uL.apply(this,arguments)||this;q.timeoutJobId=0;q.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return q};
_.Y(oa,_.uL);oa.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
oa.prototype.startTimeout=function(){var q=this,N=this.data&&this.data.displayDurationSeconds;N&&!this.timeoutJobId&&(this.timeoutJobId=_.Ip(_.pY,function(){_.By(q.hostElement,"yt-close-popup-action",[q.is]);q.timeoutJobId=0},N*1E3))};
oa.prototype.cancelTimeout=function(){_.pY.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
oa.prototype.ytdHatsSurveyBehaviorDataChanged=oa.prototype.ytdHatsSurveyBehaviorDataChanged;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],oa.prototype,"ytActionHandlerBehavior",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oa.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.p([_.zs()],oa);var AKp=[_.Dc.YtActionHandlerBehavior,oa.prototype];var evU=function(q,N){var b;return((b=q.prefixMapping)==null?0:b[N])?q.prefixMapping[N]:q.SHARED_RENDERERS_.hasOwnProperty(N)?"yt":q.prefix},A6={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}};A6.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.x("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"}};
A6.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};A6.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};A6.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
A6.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)"}};
A6.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};
A6.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};
A6.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};
A6.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,styles:{"max-width":"400px"}};
A6.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"}};A6.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};A6.TOAST={component:null,properties:{}};var BFU=new function(q,N,b){this.supportedPopups=q;this.navigationEndpointPopupMap=N;this.popupTypeMap=b;this.supportedPopups=q;this.navigationEndpointPopupMap=N;this.popupTypeMap=b}({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:_.x("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"}),HdB=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$20333_popupConfig=A6;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 qmC=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.B6.getInstance()},et=function(q,N){var b=q.pageNameToElement.get(N);
if(!b){switch(N){case "watch":var y=_.x("web_watch_force_learning_journey_for_testing")?_.$Y("ytd-watch-learning-journey"):_.x("kevlar_watch_fixie")?_.$Y("ytd-watch-fixie"):_.x("kevlar_watch_grid")?_.$Y("ytd-watch-grid"):_.$Y("ytd-watch-flexy");break;case "learning_journey_watch":y=_.$Y("ytd-watch-learning-journey");break;case "shorts":y=_.$Y("ytd-shorts");break;case "search":y=_.$Y("ytd-search");break;case "channel":y=_.$Y("ytd-browse");y.pageSubtype="channels";break;case "trending":y=_.$Y("ytd-browse");
y.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":y=
_.$Y("ytd-browse");y.pageSubtype=N;break;case "browse":y=_.$Y("ytd-browse");break;default:_.M6(new _.IO("Error getting page element for type",N))}b=y;q.pageNameToElement.set(N,b)}return b};
qmC.prototype.preparePage=function(q,N,b){b&&(q=_.Z4(b)||q);if(q!=="watch"&&q!=="learning_journey_watch"){var y=this.elementPoolPopulator,J=q;J!=y.targetPage_&&y.pendingPages_.indexOf(J)>-1&&(y.targetPage_&&(y.pendingPages_.unshift(y.targetPage_),y.abort()),Plc(y,J),_.eKJ(y,J))}if((y=et(this,q))||!_.v(b,_.b_)){y.isAttached||y===N||(y.hidden=!0);if(!y.data&&(q!=="watch"&&q!=="learning_journey_watch"||!_.x("swatcheroo_page_pool_dont_provide_filler_data"))){var E;if(q=(E=_.M7("FILLER_DATA",{})[q])==
null?void 0:E.response)y.data=q}return y}};var NWA=function(q){this.JSC$32677_clientRoot=q;this.playlistHandlerActionMap={"yt-add-to-playlist-command":j6B,"yt-end-playlist-command":xdA,"yt-recover-playlist-command":GaX,"yt-refresh-playlist-command":OLU,"yt-playlist-remove-videos-action":Ynx};_.EX(_.JD.getInstance(),this.playlistHandlerActionMap,this.JSC$32677_clientRoot);ywK()},bwf;var Bl=function(q,N,b){this.apiKey=q;this.endpoint=N;this.confidenceThreshold=b===void 0?.5:b;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=N==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||N==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
N==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||N==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new jkA};
_.g=Bl.prototype;
_.g.start=function(q){if(this.state===0)if(this.isOnline()){q.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=q.supportsHttpHeadersOverwriteParam);q.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=q.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.Yo("voice_assistant");_.OY("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=q.languageCode||"en-US";this.supportsCrossDomainXhr=q.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=q.youtubeAssistantRequest||null;this.listeningHandler=q.listeningHandler||this.listeningHandler;this.audioDetectedHandler=q.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=q.stopHandler||this.stopHandler;this.completeHandler=q.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=q.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=q.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
q.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=q.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=q.accessToken;this.additionalHeaders=q.additionalHeaders||{};var N;this.prefetchResponseTimeoutMs=(N=q.prefetchResponseTimeoutMs)!=null?N:this.prefetchResponseTimeoutMs;yqW(this);this.startAudio();Jqd(this)}else this.errorHandler("OFFLINE")};
_.g.stop=function(q){var N=q===void 0?{}:q;q=N.logCancel===void 0?!0:N.logCancel;var b=N.logMicClosed===void 0?!0:N.logMicClosed;var y=N.handleError===void 0?!0:N.handleError;N=N.handleStop===void 0?!0:N.handleStop;this.state!==0&&(q&&Hl("voz_cx"),qX(this,{logMicClosed:b,handleStop:N}),y&&this.errorHandler("ABORTED"))};
_.g.getState=function(){return this.state};
_.g.isSupported=function(){return!0};
_.g.stopAudio=function(q){(q===void 0||q)&&Hl("voz_mf")};
_.g.startAudio=function(){Hl("voz_vp");return _.bG(null)};
var EGf=function(q,N){q.channelOpen&&(q.state!==2&&(q.state=2,Hl("voz_ss"),q.listeningHandler()),N=new Uint8Array(N),N='{ "audioIn": "'+_.Uf(N)+'" }',q.channel.send(N))},qX=function(q,N){var b=N===void 0?{}:N;
N=b.logMicClosed===void 0?!0:b.logMicClosed;b=b.handleStop===void 0?!0:b.handleStop;q.vozEndOfDataTimeout>-1&&(clearTimeout(q.vozEndOfDataTimeout),q.vozEndOfDataTimeout=-1);gGp(q);q.stopAudio(N);q.channel&&(q.channelOpen=!1,q.manuallyClosedChannel=!0,q.channel.close(),q.channel=void 0);q.transcribedSpeechResults=[];q.state=0;b&&q.stopHandler()},yqW=function(q){var N={httpHeadersOverwriteParam:q.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},q.additionalHeaders,q.accessToken&&q.isUsingVoz?{Authorization:"Bearer "+q.accessToken}:{"x-goog-api-key":q.apiKey}),supportsCrossDomainXhr:q.supportsCrossDomainXhr};q.channel=new mc(q.endpoint,N);q.channel.open();_.tn(q.channel,"w",function(){var b=q.channel,y=b.send,J=q.isUsingVoz?"PLACEHOLDER":"example";J={config:{dialogStateIn:{languageCode:q.languageCode},deviceConfig:{deviceId:J,deviceModelId:J},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!q.isUsingVoz)J.config.requestType=4;else if(q.isUsingVoz&&q.youtubeAssistantRequest){var E=JSON.stringify(q.youtubeAssistantRequest);J.config.internalIn={youtubeAssistantS3InputJson:E}}y.call(b,J);q.channelOpen=!0;q.manuallyClosedChannel=!1});
_.tn(q.channel,"x",function(){q.manuallyClosedChannel||(q.channelOpen=!1,q.channel=void 0,qX(q))});
_.tn(q.channel,"z",function(b){if(b.data){gGp(q);for(var y=0;y<b.data.length;y++){var J=q,E=b.data[y],F=E.speechResults;if(F)a:{var R=[];E=[];var c=!1;F=_.Z(F);for(var z=F.next();!z.done;z=F.next()){z=z.value;if(z.noSpeech){qX(J);J.errorHandler("NO_SPEECH");break a}z.transcript!==void 0&&z.stability!==void 0&&(z.stability<J.confidenceThreshold&&(c=!0),c?E.push(z.transcript):R.push(z.transcript))}if(R.length!==0||E.length!==0)R=R.join(" "),E=E.join(" "),J.receivedEndOfUtterance&&!J.isUsingVoz?J.isUsingVoz||
J.completeHandler([R,E]):(c=J,F=R,z=E,Hl("voz_sf"),c.transcriptionUpdateHandler(F,z),c.transcribedSpeechResults=[F,z]),J.receivedEndOfUtterance&&(Hl("voz_eou"),J.transcriptionCompleteHandler([R,E]),J.isUsingVoz&&(J.prefetchResponseTimeoutMs===0?qX(J,{logMicClosed:!1,handleStop:!0}):J.prefetchResponseTimeoutMs>0&&Zwc(J)))}else J.isUsingVoz&&(E==null?0:E.internalOut)?(E=JSON.parse(E.internalOut.youtubeAssistantS3OutputJson),E.userHasOptedInToVaa||E.vaaConsent?J.vaaConsentUpdateHandler(!!E.userHasOptedInToVaa,
!!E.vaaConsent):(F2d(J),E&&(R=J.transcribedSpeechResults,Hl("voz_rqf"),J.completeHandler(R,E)))):E.eventType==="END_OF_UTTERANCE"?J.receivedEndOfUtterance=!0:(Hl("voz_err"),J.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.M6(Error("yl")))}}});
_.tn(q.channel,"y",function(b){qX(q);switch(b.status){case 1:b="WEBCHANNEL_NETWORK_ERROR";break;case 2:b="WEBCHANNEL_SERVER_ERROR";break;default:b="WEBCHANNEL_UNKNOWN_ERROR"}q.errorHandler(b);q.logError(Error(b))})};
Bl.prototype.logError=function(q){_.po(q)};
Bl.prototype.isOnline=function(){return!0};
var Zwc=function(q){F2d(q);q.prefetchResponseSetTimeoutId=setTimeout(function(){qX(q,{logMicClosed:!1,handleStop:!0})},q.prefetchResponseTimeoutMs)},F2d=function(q){q.prefetchResponseSetTimeoutId>-1&&(clearTimeout(q.prefetchResponseSetTimeoutId),q.prefetchResponseSetTimeoutId=-1)},Jqd=function(q){gGp(q);
q.noResponseReceivedTimeout=window.setTimeout(function(){qX(q);q.errorHandler("NO_SPEECH")},11E3)},gGp=function(q){q.noResponseReceivedTimeout>-1&&(window.clearTimeout(q.noResponseReceivedTimeout),q.noResponseReceivedTimeout=-1)},Hl=function(q){_.Q6(q,void 0,"voice_assistant")};var NX=function(){Bl.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.Y(NX,Bl);NX.prototype.isSupported=function(){return wcf()};
NX.prototype.startAudio=function(){var q=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.ra(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(y){ROW(q,y)};
this.processor.connect(this.audioContext.destination);var N=function(y){q.stream=y;if(!q.audioContext)return _.bG(null);y=q.audioContext.createMediaStreamSource(y);q.processor&&y.connect(q.processor);return _.bG(null)},b={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?N(this.stream):(b=navigator.mediaDevices.getUserMedia(b))?b.then(N).catch(function(y){qX(q);y.name&&y.name==="NotAllowedError"?q.errorHandler("NO_MICROPHONE_PERMISSION"):(q.errorHandler("AUDIO_ERROR"),q.logError(y));return _.ra(null)}):(qX(this),this.errorHandler("AUDIO_ERROR"),_.M6(Error("zl")));
return Bl.prototype.startAudio.call(this)};
NX.prototype.stopAudio=function(q){q=q===void 0?!0:q;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(N){N.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Bl.prototype.stopAudio.call(this,q)};
NX.prototype.isOnline=function(){return navigator.onLine};
var ROW=function(q,N){if(q.audioContext)if(window.OfflineAudioContext){var b=q.audioContext.sampleRate,y=N.inputBuffer.getChannelData(0);N=new window.OfflineAudioContext(1,y.length,16E3);for(var J=N.createBuffer(1,y.length,b),E=J.getChannelData(0),F=0,R=0;R<y.length;R++)E[R]=y[R],F+=E[R]*E[R];!q.audioDetected&&Math.sqrt(F/y.length)>.01&&(q.audioDetected=!0,q.audioDetectedHandler());y=N.createBufferSource();y.buffer=J;y.connect(N.destination);y.start(0);N.oncomplete=function(c){c=c.renderedBuffer.getChannelData(0);
for(var z=Math.floor(16384E3/b),m=new Int16Array(z),r=0;r<z;++r)m[r]=Math.max(-1,Math.min(1,c[r]))*32767;EGf(q,m.buffer)};
N.startRendering()}else dkU(q,N)},dkU=function(q,N){var b=q.audioContext.sampleRate,y=N.inputBuffer.getChannelData(0),J=Math.floor((b+8E3)/16E3);
b=y.length/J;N=new Float32Array(b);for(var E=0;E<b;++E)N[E]=y[E*J];y=new Int16Array(b);for(J=0;J<b;++J)y[J]=Math.max(-1,Math.min(1,N[J]))*32767;EGf(q,y.buffer)};var cqB={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var uod=function(){this.JSC$20398_audioEnabled=!0;this.audioFeedbackHolder={}};
uod.prototype.isPlaying=function(q){return q.currentTime>0&&!q.paused&&!q.ended&&q.readyState>2};
var zOf=function(q){for(var N=_.Z(Object.values(cqB)),b=N.next();!b.done;b=N.next())b=b.value,q.audioFeedbackHolder[b]=new Audio,q.audioFeedbackHolder[b].src="/s/search/audio/"+b+".mp3",q.audioFeedbackHolder[b].load()},bs=function(q,N){if(q.JSC$20398_audioEnabled!==!1&&N in q.audioFeedbackHolder){for(var b=_.Z(Object.values(q.audioFeedbackHolder)),y=b.next();!y.done;y=b.next())y=y.value,q.isPlaying(y)&&y.pause();
q.audioFeedbackHolder[N].currentTime=0;q.audioFeedbackHolder[N].play().catch(function(){})}};var $kc=function(q,N){var b=this;this.store=q;this.service=N;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){b.setState("offline");b.stop()};
this.audioPlayer=new uod;var y;(y=this.audioPlayer)==null||zOf(y)};
_.g=$kc.prototype;_.g.getService=function(){return this.service};
_.g.isEnabled=function(){return!!this.service};
_.g.isSupported=function(){var q;return(q=this.service)==null?void 0:q.isSupported()};
_.g.start=function(){var q=this,N,b,y,J,E,F,R,c,z,m,r,X,V;return _.d(function(G){switch(G.nextAddress){case 1:q.store.dispatch(ctd("",""));if(!navigator.onLine)return q.setState("offline"),G.return();window.addEventListener("offline",q.handleOfflineEvent);q.stream=null;if(!q.permissionsSupported){G.jumpTo(2);break}_.Yi(G,3);return G.yield(tfN(q),5);case 5:N=G.yieldResult;if(!N)return(b=q.audioPlayer)==null||bs(b,"failure"),G.return();q.service.stream=q.stream;q.setState("listening");_.Ea(G,2);break;
case 3:_.K7(G),q.permissionsSupported=!1;case 2:y={context:_.soz(_.Xl())},y.youtubeAssistantParams={searchParams:{inlineSearchResponse:q.enableInlineSearchResponse}},J=function(w,D){q.store.dispatch(uJp("transcribing"));q.store.dispatch(ctd(w,D))},E=function(){var w;
(w=q.audioPlayer)==null||bs(w,"open");q.setState("listening")},F=function(){q.setState("transcribing")},R=function(w){q.setErrorState(w)},c=function(w,D){var k;
(k=q.audioPlayer)==null||bs(k,"success");D&&(_.x("kevlar_voice_search_inline_search")&&(q.responseProcessor=_.tz().resolve(_.ilZ),q.responseProcessor&&(k=D.navigationAction,w=D.prefetchedSearchResponse,k&&w&&(k=(new _.YNd).JSC$14256_getStoreKey(k),_.kJ(q.responseProcessor,w,k)))),q.JSC$20416_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",D))},z=function(){window.removeEventListener("offline",q.handleOfflineEvent)},m=_.oRC(!1),r=m.Authorization!=null,X=q.enableFirstPartyAuth||
q.enableFPAForSignedInUsers&&r?m:{"X-Goog-Visitor-Id":m["X-Goog-Visitor-Id"]},V={completeHandler:c,
errorHandler:R,listeningHandler:E,audioDetectedHandler:F,stopHandler:z,transcriptionUpdateHandler:J,youtubeAssistantRequest:y,languageCode:mkA(),additionalHeaders:X,supportsCrossDomainXhr:q.enableFirstPartyAuth||q.enableFPAForSignedInUsers&&r,supportsHttpHeadersOverwriteParam:!q.disableHttpHeadersOverwrite},q.service.start(V),_.hj(G)}})};
_.g.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.g.reset=function(){this.store.dispatch(_.B3({type:"RESET_VOICE_SEARCH_STATE"}))};
_.g.setState=function(q){this.store.dispatch(uJp(q))};
_.g.setErrorState=function(q){switch(q){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var N;(N=this.audioPlayer)==null||bs(N,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)tfN(this);else{var b;(b=this.audioPlayer)==null||bs(b,"failure");this.setState("permission-denied")}break;case "ABORTED":var y;(y=this.audioPlayer)==null||bs(y,"no_input");break;default:var J;(J=this.audioPlayer)==
null||bs(J,"no_input");this.setState("timeout")}};
var tfN=function(q){var N,b;return _.d(function(y){switch(y.nextAddress){case 1:return y.yield(navigator.permissions.query({name:"microphone"}),2);case 2:N=y.yieldResult;if(N.state==="granted")return y.return(!0);if(N.state==="denied")return q.setState("permission-denied"),y.return(!1);q.setState("permission");b={audio:{sampleSize:16,channelCount:1},video:!1};_.Yi(y,3);return y.yield(navigator.mediaDevices.getUserMedia(b),5);case 5:return q.stream=y.yieldResult,y.return(!0);case 3:return _.K7(y),
q.setState("permission-denied"),y.return(!1)}})},mkA=function(){var q=_.M7("INNERTUBE_CONTEXT_HL"),N=_.M7("INNERTUBE_CONTEXT_GL");
return q.indexOf("-")>-1?q:q+"-"+N};var rqd=function(q,N,b){$kc.call(this,N,b);this.JSC$20416_actionRouter=q;this.enableInlineSearchResponse=_.x("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.x("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.x("kevlar_voice_search_enable_fpa_signedin_users")},XpA;
_.Y(rqd,$kc);
var Vfa=function(){if(!XpA){var q="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.x("kevlar_voice_search_auth_enabled")||_.x("kevlar_voice_search_use_yt_endpoint")?q="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.x("kevlar_voice_search_use_fp_endpoint")&&(q="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");XpA=
new rqd(_.JD.getInstance(),_.WT(),new NX(_.M7("VOZ_API_KEY"),q,.5))}return XpA};var j1a=function(q){this.JSC$20420_clientRoot=q;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$20420_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)]]));q=_.Z(this.eventListeners);for(var N=q.next();!N.done;N=q.next()){var b=
_.Z(N.value);N=b.next().value;b=b.next().value;b=_.Z(b);for(var y=b.next();!y.done;y=b.next()){var J=_.Z(y.value);y=J.next().value;J=J.next().value;N.addEventListener(y,J)}}_.EX(_.JD.getInstance(),this.autonavPauseActionMap,this.JSC$20420_clientRoot)},xkU,vGX=function(q){return _.x("kevlar_autonav_popup_filtering")?(q=_.a0(q))?q.hasAttribute("prevent-autonav"):!0:!0};
_.g=j1a.prototype;_.g.onIronOverlayOpened=function(q){vGX(q)&&(this.autonavPauseReasons.overlayOpen=!0,Jk(this))};
_.g.onIronOverlayClosed=function(q){vGX(q)&&(this.autonavPauseReasons.overlayOpen=!1,Jk(this))};
_.g.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Jk(this)};
_.g.onYtAutonavPauseBlur=function(){var q=this;_.pY.addJob(function(){G_p()||(q.autonavPauseReasons.inputBoxFocus=!1,Jk(q))},8,0)};
_.g.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Jk(this)};
_.g.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Jk(this)};
_.g.onYtAutonavPauseScroll=function(){var q=_.tz().resolve(_.L6);q.isOnWatch()&&(q=q.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=q.getBoundingClientRect().top<-200,Jk(this))};
_.g.onYtAutonavPauseUserEngagement=function(q){var N=this;if(_.x("user_engagement_enable_autoplay_pause_feature")){var b=Number(q.lowEngagementThresholdMs);isNaN(b)||b<=0||q.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.gN("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.tz().resolve(_.$P),_.tr()<b?_.Ip(_.pY,function(){_.gN("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.GsX()?(this.userEngagementCsn=_.Oe(),_.Ip(_.pY,function(){_.gN("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
N.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Jk(this)):_.gN("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.BJC(Error("Al`"+JSON.stringify(q)))};
_.g.onYtAutonavPausePlayer=function(q){this.autonavPauseReasons.requestedByPlayer=!!q.detail;Jk(this)};
_.g.onYtAutonavVisibilityChanged=function(){var q=this,N,b,y;return _.d(function(J){if(J.nextAddress==1)return(N=_.Pk())?J.yield(N.getPlayerPromise(),2):J.return();b=J.yieldResult;y=b.isMuted()||b.getVolume()===0;q.autonavPauseReasons.backgroundAndMute=G_p()&&y;Jk(q);_.hj(J)})};
_.g.onYtAutonavPausePlayerEnded=function(){_.tz().resolve(_.$P);var q=144E5;_.x("user_engagement_enable_autoplay_pause_feature")||_.x("is_part_of_any_user_engagement_experiment")||(q=45E5);this.autonavPauseReasons.longIdle=_.tr()>q;Ymf(this);Jk(this)};
_.g.onYtUserActivity=function(){var q=this;this.autonavPauseReasons.userEngagement&&(_.Ip(_.pY,function(){_.gN("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",q.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Jk(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.Ip(_.pY,function(){_.gN("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",q.userEngagementCsn);_.Lo()}),this.autonavPauseReasons.youthereLactExperiment=!1,Jk(this));
this.autonavPauseReasons.longIdle&&!_.x("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Jk(this))};
var G_p=function(){var q=window.document.visibilityState;return!(!q||q==="visible")},Jk=function(q){for(var N=!1,b=_.Z(Object.values(q.autonavPauseReasons)),y=b.next();!y.done;y=b.next())y=y.value,N=N||y;
N?_.x3.getInstance().pause(q.autonavPauseReasons):(q=_.x3.getInstance(),q.autonavState_==3?(q.setState(2,!1,!1),q.autonavPauseReason_=void 0):q.autonavState_==1&&(q.disabledAutonavPauseReason_=void 0))},Ymf=function(q){var N=!1;
if(_.x("enable_autoplay_pause_by_lact")){_.tz().resolve(_.$P);N=_.VX("autoplay_pause_by_lact_sec")*1E3;var b=_.VX("autoplay_pause_by_lact_sampling_fraction");(N=_.tr()>=N&&Math.random()<b)&&!_.GsX()&&(_.Ip(_.pY,function(){_.gN("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),N=!1)}N!==q.autonavPauseReasons.youthereLactExperiment&&(q.autonavPauseReasons.youthereLactExperiment=N)&&(q.userEngagementCsn=_.Oe(),_.Ip(_.pY,function(){_.gN("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",q.userEngagementCsn)}));
q.autonavPauseReasons.userEngagement&&_.Ip(_.pY,function(){_.gN("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",q.userEngagementCsn)})};
j1a.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.gN("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Lo(),this.autonavPauseReasons.youthereLactExperiment=!1,Jk(this));this.autonavPauseReasons.userEngagement&&(_.gN("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Jk(this))};
j1a.prototype.onYtEngagementPanelVisibleChanged=function(q){q.detail&&q.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=q.detail.visible,Jk(this))};
j1a.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Q1f=_.U$.persistentPanelVisibleSelector,E3=function(){var q=_.C.apply(this,arguments)||this;q.miniGuideVisible=!1;q.guideOpened=_.x("disable_initial_guide_state_fix")?!1:q.canFitPersistentGuide(q.initialBodyClientWidth);q.guideUserStateOpened=q.getInitialGuideUserStateOpened();q.isFullscreenShorts=!1;q.miniGuideWidthThreshold=_.VX("kevlar_mini_guide_width_threshold",791);q.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
q.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");q.persistentGuideBlockedPagePathRegex=new RegExp(q.persistentGuideBlockedPagesPatterns.join("|"));q.animationTransitionDuration=0;q.lateDataResolver=_.T4();q.initialGuideDataFetchFailed=!1;q.initialLoad=!0;q.guideRenderers=new Set;q.isMouseOverGuide=!1;q.sessionUserManuallyExpandedGuideState=
!1;q.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return q};
_.Y(E3,_.C);_.g=E3.prototype;_.g.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.g.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.g.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.g.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.g.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.g.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.g.ready=function(){_.tz().addProvider({provide:_.JP,useValue:this.hostElement})};
_.g.attached=function(){var q=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.gq(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.gq(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.gq(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.gq(this,this.onYtGuideShow));_.ut(this,function(){q.animationTransitionDuration=200})};
_.g.detached=function(){document.removeEventListener("yt-navigate-finish",_.gq(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.gq(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.gq(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.gq(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.gq(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.gq(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.gq(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.g.getData=function(){return this.data};
_.g.load=function(){var q=this,N,b,y,J;return _.d(function(E){switch(E.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=q.lateDataResolver.resolve.bind(q),E.return(q.lateDataResolver.promise);if(window.ytInitialGuideData)return N=_.T4(),N.resolve(window.ytInitialGuideData),E.return(N.promise);y=!1;_.Yi(E,2);return E.yield(q.fetchGuideData(),4);case 4:b=E.yieldResult;_.Ea(E,3);break;case 2:J=_.K7(E),J.message==="Returned error"&&(y=
!0);case 3:if(b)return E.return(b);q.onYtGuideClose();y||(q.initialGuideDataFetchFailed=!0);return E.return(q.lateDataResolver.promise)}})};
_.g.fetchGuideData=function(){var q=this,N,b,y,J,E,F,R;return _.d(function(c){if(c.nextAddress==1)return N=_.tz(),q.guidePromise||(b=N.resolve(_.tN),q.guidePromise=_.IE(b,r5B)),c.yield(q.guidePromise,2);if(c.nextAddress!=3)return y=c.yieldResult,J=N.resolve(_.Hu),c.yield(J(),3);(E=c.yieldResult)&&((F=y)==null?void 0:(R=F.responseContext)==null?void 0:R.maxAgeSeconds)!==0&&E.put("service:guide:fallback",new _.Dv({innertubeResponse:y}));return c.return(y)})};
_.g.initializeGuideDataIfEmpty=function(){var q=this,N,b;return _.d(function(y){if(y.nextAddress==1){if(!q.initialGuideDataFetchFailed||q.data)return y.return();_.Yi(y,2);return y.yield(q.fetchGuideData(),4)}if(y.nextAddress!=2)return(N=y.yieldResult)&&q.lateDataResolver.resolve(N),_.Ea(y,0);b=_.K7(y);_.M6(b);_.hj(y)})};
_.g.initializeGuideData=function(){var q=this,N;return _.d(function(b){switch(b.nextAddress){case 1:return _.J7(Y_p(),{mainAppWeb:_.f9()}),_.Yi(b,2),b.yield(q.load(),4);case 4:q.data=b.yieldResult;_.Ea(b,3);break;case 2:_.K7(b),_.Ed(Y_p(),"FAILURE");case 3:N=q.data&&q.data.items&&q.data.items.length>0?"SUCCESS":"FAILURE",_.Ed(Y_p(),N),_.hj(b)}})};
_.g.setGuideData=function(q){var N=this,b,y;return _.d(function(J){if(J.nextAddress==1)return N.disabled?J.return():N.data?(q.data=N.data,N.guideRenderers.add(q),J.return()):J.yield(N.initializeGuideData(),2);N.graftGuideToPage();b=_.ou("IS_HOMEPAGE_COLD")?"eop":void 0;_.x("disable_element_pool_populator")?N.setGuideDataAfterInit(q):(y=new _.t$(1,b),_.mu(y,N.setGuideDataAfterInit.bind(N,q)));_.hj(J)})};
_.g.setGuideDataAfterInit=function(q){q.data=this.data;q.markDirty();this.guideRenderers.add(q);_.k9(function(){_.Q6("gle")});
_.ut(this,function(){_.Q6("gpe")})};
_.g.graftGuideToPage=function(){if(this.data){var q=this.data&&this.data.trackingParams;q&&(q=_.zT(q),_.k3(_.FR(),q))}};
_.g.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.gq(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.g.onDrawerOpenedChanged=function(q,N){!N.value&&this.guideOpened&&(this.guideOpened=!1)};
_.g.onYtGuideToggle=function(q){var N=this.guideOpened;this.guideOpened=!N;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var b=_.c3();_.uG(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;b.save()}this.updateGuideDrawerElementState();if(this.guideElement){var y;this.guideOpened&&((y=q.detail)==null?0:y.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.gq(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.gq(this,this.onAppDrawerTransitioned))}N||this.initializeGuideDataIfEmpty()};
_.g.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.gq(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Ff(this.guideElement)};
_.g.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.gq(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(RjX(this.guideOpened))};
_.g.guidePersistentAndVisibleChanged=function(){_.Hy(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.g.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.B3({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.g.miniGuideVisibleChanged=function(){_.Hy(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.g.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(RjX(this.guideOpened)),this.initialLoad=!1);_.Hy(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.g.activeEndpointChanged=function(){_.Hy(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.g.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.g.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()};
_.g.cachedClientWidthChanged=function(){this.updateGuideState()};
_.g.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.g.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var q=this.canFitPersistentGuide(this.cachedClientWidth);q?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=q}this.updateGuideDrawerElementState()};
_.g.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.g.getGuideOpened=function(){return this.guideOpened};
_.g.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.g.getActiveEndpoint=function(){return this.activeEndpoint};
_.g.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.g.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&&_.e2(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.g.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.x("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.g.handleGuideMouseLeave=function(){var q=this;!this.sessionUserManuallyExpandedGuideState&&_.x("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.Uk(this,"handleGuideMouseLeave",function(){q.isMouseOverGuide||!q.guideOpened||q.miniGuideVisible||(q.guideOpened=!1,q.updateGuideDrawerElementState())},100))};
_.g.computeGuidePersistentAndVisible=function(){var q=this;_.Uk(this,"computeGuidePersistentAndVisible",function(){q.guidePersistentAndVisible=q.guideOpened&&q.guidePersistent;q.guideIsVisibleButNotPersistent=!(!q.guideOpened||q.guidePersistent)})};
_.g.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.g.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.g.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.g.startLoadingWatch=function(){this.closeGuide()};
_.g.startLoadingShorts=function(){_.x("web_hide_guide_on_shorts")&&this.closeGuide()};
_.g.onYtNavigateFinish=function(q,N){if(!_.HV||N){this.activeEndpoint=N.endpoint;this.pageType=N.pageType;this.pageUrl=N.response.url;var b,y;q=(y=_.v((b=N.endpoint)==null?void 0:b.commandMetadata,_.gg))==null?void 0:y.url;!this.pageUrl&&q&&(this.pageUrl=q);_.x("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.g.getVisibleGuideRenderer=function(){for(var q=_.Z(this.guideRenderers),N=q.next();!N.done;N=q.next())if(N=N.value,this.miniGuideVisible&&N.is==="ytd-mini-guide-renderer"||this.guideOpened&&N.is==="ytd-guide-renderer")return N;return null};
_.g.markGuideRendererDirty=function(q){if(q){typeof q.markDirty==="function"&&q.markDirty();q=_.Z([].concat(_.a9(_.ee(q).children)));for(var N=q.next();!N.done;N=q.next())this.markGuideRendererDirty(N.value)}};
_.g.persistentGuideEnabled=function(q,N){if(!N||q==="watch"||q==="settings"||q==="shorts"&&this.isFullscreenShorts||_.x("reels_web_disable_persistent_guide_shorts")&&q==="shorts")return!1;var b=_.wO(N)||"";return _.x("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(y){return b===y}):!this.persistentGuideBlockedPagePathRegex.test(b)};
_.g.canFitPersistentGuide=function(q){var N=_.VX("kevlar_persistent_guide_width_threshold",1312);return N===-1||_.x("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:q>this.calculateGuideThreshold(N)};
_.g.calculateGuideThreshold=function(q){return _.x("enable_ai_companion")?q+(this.persistentPanelVisible?400:0):q};
_.g.canFitMiniGuide=function(q){return this.miniGuideWidthThreshold===-1?!1:q>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.g.onResize=function(){var q=this;_.Uk(this,"calculateGuideState",function(){q.onResizeDebounced()})};
_.g.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.g.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.g.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.g.getInitialGuideUserStateOpened=function(){return _.x("web_force_mini_guide_default")?!1:!_.c3().getFlag(109)};
_.$H.Object.defineProperties(E3.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.M7("initialBodyClientWidth")||window.innerWidth}}});
E3.prototype.onResize=E3.prototype.onResize;E3.prototype.observeForMiniGuideVisible=E3.prototype.observeForMiniGuideVisible;E3.prototype.computeGuidePersistentAndVisible=E3.prototype.computeGuidePersistentAndVisible;E3.prototype.persistentPanelVisibleChanged=E3.prototype.persistentPanelVisibleChanged;E3.prototype.cachedClientWidthChanged=E3.prototype.cachedClientWidthChanged;E3.prototype.resetGuide=E3.prototype.resetGuide;E3.prototype.activeEndpointChanged=E3.prototype.activeEndpointChanged;
E3.prototype.guideOpenedChanged=E3.prototype.guideOpenedChanged;E3.prototype.miniGuideVisibleChanged=E3.prototype.miniGuideVisibleChanged;E3.prototype.guideIsVisibleButNotPersistentChanged=E3.prototype.guideIsVisibleButNotPersistentChanged;E3.prototype.guidePersistentAndVisibleChanged=E3.prototype.guidePersistentAndVisibleChanged;E3.prototype.onGuideElementChanged=E3.prototype.onGuideElementChanged;E3.prototype.onGuidePersistentChanged=E3.prototype.onGuidePersistentChanged;
E3.prototype.onRenderGuideChanged=E3.prototype.onRenderGuideChanged;E3.prototype.onActiveEndpointChanged=E3.prototype.onActiveEndpointChanged;E3.prototype.onMiniGuideVisibleChanged=E3.prototype.onMiniGuideVisibleChanged;E3.prototype.onGuideIsVisibleButNotPersistentChanged=E3.prototype.onGuideIsVisibleButNotPersistentChanged;E3.prototype.onGuidePersistendAndVisibleChanged=E3.prototype.onGuidePersistendAndVisibleChanged;
_.p([_.O(_.SQ),_.P("design:type",Object)],E3.prototype,"ironResizableBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],E3.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],E3.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],E3.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],E3.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Boolean)],E3.prototype,"disabled",void 0);_.p([_.U(),_.P("design:type",Boolean)],E3.prototype,"guidePersistentAndVisible",void 0);_.p([_.FY("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"onGuidePersistendAndVisibleChanged",null);_.p([_.U(),_.P("design:type",Boolean)],E3.prototype,"guideIsVisibleButNotPersistent",void 0);
_.p([_.FY("guideIsVisibleButNotPersistent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.p([_.U(),_.P("design:type",Object)],E3.prototype,"miniGuideVisible",void 0);_.p([_.FY("miniGuideVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"onMiniGuideVisibleChanged",null);_.p([_.U(),_.P("design:type",Boolean)],E3.prototype,"forceMiniGuideClose",void 0);
_.p([_.U(),_.P("design:type",Object)],E3.prototype,"activeEndpoint",void 0);_.p([_.FY("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"onActiveEndpointChanged",null);_.p([_.U(),_.P("design:type",Boolean)],E3.prototype,"renderGuide",void 0);_.p([_.FY("renderGuide"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"onRenderGuideChanged",null);
_.p([_.U({selector:Q1f}),_.P("design:type",Boolean)],E3.prototype,"persistentPanelVisible",void 0);_.p([_.U(),_.P("design:type",Object)],E3.prototype,"guideOpened",void 0);_.p([_.U(),_.P("design:type",Boolean)],E3.prototype,"guidePersistent",void 0);_.p([_.FY("guidePersistent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"onGuidePersistentChanged",null);_.p([_.U(),_.P("design:type",Object)],E3.prototype,"guideUserStateOpened",void 0);
_.p([_.U(),_.P("design:type",String)],E3.prototype,"pageUrl",void 0);_.p([_.U(),_.P("design:type",String)],E3.prototype,"pageType",void 0);_.p([_.U(),_.P("design:type",Number)],E3.prototype,"cachedClientWidth",void 0);_.p([_.U(),_.P("design:type",Object)],E3.prototype,"guideElement",void 0);_.p([_.U({selector:_.AO}),_.P("design:type",Object)],E3.prototype,"isFullscreenShorts",void 0);
_.p([_.FY("guideElement"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"onGuideElementChanged",null);_.p([_.FY("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"guidePersistentAndVisibleChanged",null);
_.p([_.$9("guideIsVisibleButNotPersistent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"guideIsVisibleButNotPersistentChanged",null);_.p([_.FY("miniGuideVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"miniGuideVisibleChanged",null);_.p([_.$9("guideOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"guideOpenedChanged",null);
_.p([_.FY("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"activeEndpointChanged",null);_.p([_.$9("pageUrl"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"resetGuide",null);_.p([_.$9("cachedClientWidth"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"cachedClientWidthChanged",null);
_.p([_.$9("persistentPanelVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"persistentPanelVisibleChanged",null);_.p([_.FY("guideOpened","guidePersistent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"computeGuidePersistentAndVisible",null);
_.p([_.$9("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"observeForMiniGuideVisible",null);_.p([_.ZP("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E3.prototype,"onResize",null);_.p([_.I({disableElementRegistration:!0,is:"yt-guide-manager"})],E3);
var Owp=_.a(E3,"yt-guide-manager",void 0,{mode:_.Am("kevlar_poly_si_batch_j081")?1:2});var gQ=function(){var q=_.C.apply(this,arguments)||this;q.JSC$20430_keyboardInUse=!1;q.boundHandleCapturedKeydownEvent=function(N){q.handleCapturedKeydownEvent(N)};
return q};
_.Y(gQ,_.C);_.g=gQ.prototype;_.g.attached=function(){this.listenToDocument(document)};
_.g.listenToDocument=function(q){q.addEventListener("keydown",_.gq(this,this.onKeyDownEvent));q.addEventListener("keyup",_.gq(this,this.onKeyUpEvent));q.addEventListener("mousedown",_.gq(this,this.onMouseDownEvent));_.x("desktop_keyboard_capture_keydown_killswitch")||q.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);q.addEventListener("yt-page-data-updated",_.gq(this,this.onPageUpdate))};
_.g.detached=function(){this.unlistenFromDocument(document)};
_.g.unlistenFromDocument=function(q){q.removeEventListener("keydown",_.gq(this,this.onKeyDownEvent));q.removeEventListener("keyup",_.gq(this,this.onKeyUpEvent));q.removeEventListener("mousedown",_.gq(this,this.onMouseDownEvent));_.x("desktop_keyboard_capture_keydown_killswitch")||q.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);q.removeEventListener("yt-page-data-updated",_.gq(this,this.onPageUpdate))};
_.g.ready=function(){_.tz().addProvider({provide:_.X5,useValue:this})};
_.g.isKeyBoardInUse=function(){return this.JSC$20430_keyboardInUse};
_.g.handleCapturedKeydownEvent=function(q){if(q.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(q)};
_.g.onMouseDownEvent=function(){this.JSC$20430_keyboardInUse=!1};
_.g.onPageUpdate=function(){if(_.x("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.x("web_shorts_keyboard_shortcut_usage_log")){_.cq.clear();for(var q=_.Z(_.R4),N=q.next();!N.done;N=q.next()){var b=_.Z(N.value);N=b.next().value;b=b.next().value;b=_.bx(b);_.cq.set(N,b);_.fr(_.Oe(),_.QY(),b)}_.ub.clear();q=_.Z(_.dN);for(N=q.next();!N.done;N=q.next())b=_.Z(N.value),N=b.next().value,b=b.next().value,b=_.bx(b),_.ub.set(N,b),_.fr(_.Oe(),_.QY(),b);_.Cr(_.Oe(),_.QY(),[].concat(_.a9(_.ub.values()),
_.a9(_.cq.values())));_.Tr(_.Oe(),[].concat(_.a9(_.ub.values()),_.a9(_.cq.values())))}};
_.g.onMiniplayerActiveChange=function(){var q;(q=_.tz().resolve(_.l9).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(q.document):this.unlistenFromDocument(q.document))};
_.g.ignoreKeyEvent=function(q){if(q.ctrlKey||q.altKey)if(_.x("kevlar_macro_markers_keyboard_shortcut")){if(q.keyCode!==37&&q.keyCode!==39)return!0}else return!0;var N=_.n9(q)||[];return _.OkX(N)?(_.x("web_button_or_anchor_list_item")&&PRc(N,q)&&(this.JSC$20430_keyboardInUse=!0),!0):q.defaultPrevented?(DF(q.keyCode,q.shiftKey,this.isShortsPage),!0):q.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(q):!1};
_.g.isSpacebarClick=function(q){var N=q||window.event;var b;N.composedPath&&typeof N.composedPath==="function"?b=N.composedPath():b=N.path;b&&b.length?N=b[0]:(N=N||window.event,N=N.target||N.srcElement,N.nodeType==3&&(N=N.parentNode));return N&&q.keyCode===32&&(q=N.tagName==="BUTTON"||N.tagName==="A"||N.tagName==="INPUT",N=(N=N.getAttribute("role"))&&(N==="option"||N==="button"||N.indexOf("menuitem")===0),q||N)?!0:!1};
_.g.onKeyDownEvent=function(q){if(!this.ignoreKeyEvent(q)&&(q.keyCode===191&&(q.shiftKey||q.metaKey?q.repeat!=null&&q.repeat||(this.openHotkeyDialog(),DF(q.keyCode,q.shiftKey,this.isShortsPage)):(this.focusSearchBox(),q.preventDefault())),!q.metaKey)){var N=_.tz().resolve(_.l9);switch(q.keyCode){case 9:this.JSC$20430_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(q);break;case 84:N.pipController.getWindow()&&window.focus();this.toggleTheaterMode(q.keyCode,q.shiftKey);break;case 73:N.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(q.keyCode,q.shiftKey);break;case 70:if(this.isShortsPage){_.wHf();break}this.isMiniplayerActive()?N.pipController.getWindow()&&(N.close(!0),window.focus()):this.passEventToPlayer(q);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(q.keyCode,q.shiftKey):this.closeMiniplayer(q.keyCode,q.shiftKey)||this.passEventToPlayer(q);break;case 13:q.shiftKey&&_.tz().resolve(_.xm).activate(q);break;default:this.passEventToPlayer(q)}}};
_.g.onKeyUpEvent=function(q){if(!this.ignoreKeyEvent(q))if(_.x("web_speedmaster_spacebar_control")&&q.keyCode===32)this.handlePlayerSpaceKey(q,!0);else{var N=this.getPlayerManager();N&&(N=N.getPlayer())&&N.handleGlobalKeyUp(q.keyCode,q.shiftKey,q.ctrlKey,q.altKey,q.metaKey,q.key,q.code)}};
_.g.getPlayerManager=function(){var q=_.Pk(),N=_.tz().resolve(_.$f(_.L6));return q&&N&&N.isOnWatch()?q:null};
_.g.passEventToPlayer=function(q,N){var b=this,y,J,E,F;return _.d(function(R){if(R.nextAddress==1){if(!_.x("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&b.isMiniplayerActive())y=_.tz().resolve(_.l9).getPlayerElement();else if(b.inlinePreviewIsActive){if(J=_.Hy(b.hostElement,"yt-get-inline-preview-player-action"),(E=J)==null?0:E[0])y=J[0]}else y=_.Pk();return y?R.yield(y.getPlayerPromise(),3):R.jumpTo(0)}F=R.yieldResult;N?F.handleGlobalKeyUp(q.keyCode,q.shiftKey,q.ctrlKey,q.altKey,q.metaKey,
q.key,q.code):F.handleGlobalKeyDown(q.keyCode,q.shiftKey,q.ctrlKey,q.altKey,q.metaKey,q.key,q.code,q.repeat);q.keyCode!==38&&q.keyCode!==40&&DF(q.keyCode,q.shiftKey,b.isShortsPage);_.hj(R)})};
_.g.focusSearchBox=function(){_.e2(this.hostElement,"yt-focus-searchbox")};
_.g.openHotkeyDialog=function(){_.e2(this.hostElement,"yt-open-hotkey-dialog")};
_.g.isMiniplayerActive=function(){return _.tz().resolve(_.l9).isMiniplayerActive()};
_.g.closeMiniplayer=function(q,N){return this.isMiniplayerActive()?(_.tz().resolve(_.l9).close(),DF(q,N,this.isShortsPage),!0):!1};
_.g.toggleTheaterMode=function(q,N){var b=_.Q0(_.WT().getState()),y=this.getPlayerManager(),J=_.x("disable_theater_mode_keyboard")||_.ou("START_IN_FULL_WINDOW_MODE");y&&!J&&(b=!b,_.Py()&&_.x("external_fullscreen")&&(b=!0),_.By(this.hostElement,"yt-toggle-theater-mode",[b]),DF(q,N,this.isShortsPage))};
_.g.toggleMiniplayer=function(q,N){var b=this.getPlayerManager();if(this.isMiniplayerActive()){var y;((y=_.tz().resolve(_.$f(_.L6)))==null?0:y.isOnWatch())?_.tz().resolve(_.l9).close(!0):_.D8(_.tz().resolve(_.l9));DF(q,N,this.isShortsPage)}else b&&(_.By(this.hostElement,"yt-activate-miniplayer-from-watch-action"),DF(q,N,this.isShortsPage))};
_.g.handlePlayerSpaceKey=function(q,N){var b=!!_.Pk()||this.isMiniplayerActive();b=_.x("disable_space_scroll_fix")||b;_.x("global_spacebar_pause")&&!this.isKeyBoardInUse()&&b&&(q.preventDefault(),this.passEventToPlayer(q,N))};
_.g.isPresentingTheaterMode=function(){return _.x("web_watch_enable_tm_esc_key")?_.Q0(_.WT().getState())&&!_.Py():!1};
gQ.prototype.onMiniplayerActiveChange=gQ.prototype.onMiniplayerActiveChange;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],gQ.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],gQ.prototype,"ytdReduxBehavior",void 0);_.p([_.U({selector:_.fcC}),_.P("design:type",Boolean)],gQ.prototype,"inlinePreviewIsActive",void 0);_.p([_.U({selector:_.LBn}),_.P("design:type",Boolean)],gQ.prototype,"isShortsPage",void 0);
_.p([_.U({selector:_.QU}),_.P("design:type",Boolean)],gQ.prototype,"miniplayerIsActive",void 0);_.p([_.FY("miniplayerIsActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gQ.prototype,"onMiniplayerActiveChange",null);_.p([_.I({disableElementRegistration:!0,is:"yt-hotkey-manager"})],gQ);_.a(gQ,"yt-hotkey-manager",void 0,{mode:_.Am("kevlar_poly_si_batch_j081")?1:2});var ZT=function(){var q=_.C.apply(this,arguments)||this;q.loopStateEntityKey_=null;q.playlistLoopStateEntity_=null;q.isShuffleNextPlaylist=!1;q.PLAYER_EVENTS_=new Map;q.playerListenersSetup_=!1;q.videoSkipJob_=0;q.canAutoAdvance_=!1;q.playerManager_=null;q.TEST_ONLY={};return q};
_.Y(ZT,_.C);_.g=ZT.prototype;_.g.ready=function(){_.tz().addProvider({provide:_.F2,useValue:this.hostElement})};
_.g.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_)};
_.g.attached=function(){document.addEventListener("yt-navigate-start",_.gq(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.gq(this,this.onYtNavigateFinish_))};
_.g.detached=function(){document.removeEventListener("yt-navigate-start",_.gq(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.gq(this,this.onYtNavigateFinish_))};
_.g.updatePlaylistEventListeners=function(q,N){N&&!this.playerListenersSetup_?(this.playerManager_=q,this.registerPlaylistEventListeners_(q)):!N&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(q))};
_.g.setPlayer=function(q){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=q};
_.g.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.g.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.g.registerPlaylistEventListeners_=function(q){var N=this;q.getPlayerPromise().then(function(b){N.playerListenersSetup_||(N.ytPlayerListenerBehavior.listenToPlayerEvents(b,N.PLAYER_EVENTS_),N.playerListenersSetup_=!0)})};
_.g.removePlaylistEventListeners_=function(q){var N=this;q.getPlayerPromise().then(function(b){N.playerListenersSetup_&&(N.ytPlayerListenerBehavior.unlistenFromPlayerEvents(b,N.PLAYER_EVENTS_),N.playerListenersSetup_=!1)})};
_.g.setPlaylistComponent=function(q){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.gq(this,this.onPlaylistYtNavigate_)),q&&(q.data&&this.playlistComponent.data&&q.data.playlistId==this.playlistComponent.data.playlistId?(q.loopOn=this.playlistComponent.loopOn,q.shuffleOn=this.playlistComponent.shuffleOn):(q.loopOn=!1,q.shuffleOn=!1),this.isShuffleNextPlaylist&&(q.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=q;this.playlistComponent.addEventListener("yt-navigate",
_.gq(this,this.onPlaylistYtNavigate_))};
_.g.setAutoplayRenderer=function(q){this.autoplayData=q};
_.g.setPlaylistData=function(q){this.currentPlaylistData_=q;_.e2(this.hostElement,"yt-playlist-data-updated");_.nM.isEmpty(q)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(q)};
_.g.setPlayerPlaybackControlData=function(q){this.playerManager_&&this.playerManager_.updatePlayerComponents(q.playlistPanelRenderer)};
_.g.getPlaylistData=function(){return this.currentPlaylistData_};
_.g.getTempData_=function(q,N){if(this.playlistComponent==null)return null;q={};this.playlistComponent.shuffleOn&&(q.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(q.loop_on=this.playlistComponent.loopOn);N&&(q.autonav="1",_.tz().resolve(_.$P),N=_.tr(),N>0&&(q.lact=N),this.playerManager_&&(N=this.playerManager_.getPlayer())&&N.shouldSendVisibilityState()&&(N=N.getVisibilityState(),N!=0&&(q.vis=N)));_.x("enable_unknown_lact_fix_on_html5")&&(_.tz().resolve(_.$P),q.lact=
_.tr());return q};
_.g.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.g.setLoopStateEntityKey_=function(q){var N;this.loopStateEntityKey_=((N=this.getPlaylistLoopData_(q))==null?void 0:N.playlistLoopStateEntityKey)||null};
_.g.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.g.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.g.skipVideo=function(){var q=this,N=_.x("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||N)N=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.rj(_.pY,function(){q.onPlaylistNext();q.videoSkipJob_=0},N)};
_.g.cancelVideoSkip=function(){this.videoSkipJob_&&(_.pY.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.g.isInBackground_=function(){var q=window.document.visibilityState;return!(!q||q=="visible")};
_.g.onPlaylistIndex_=function(q){this.playlistComponent&&(q=this.playlistComponent.data.contents[q].playlistPanelVideoRenderer.navigationEndpoint,_.e2(this.hostElement,"yt-navigate",{endpoint:q,tempData:this.getTempData_(q)}))};
_.g.onPlayerStateChange_=function(q){if(q=q==0&&this.playlistComponent&&this.canAutoAdvance_)q=_.x3.getInstance(),q=!(q.autonavState_===3?q.autonavPauseReason_&&q.autonavPauseReason_.inputBoxFocus===!0:q.autonavState_===1&&q.disabledAutonavPauseReason_&&q.disabledAutonavPauseReason_.inputBoxFocus===!0);q&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.g.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.g.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.g.navigateToAutoplayWatchEndpoint_=function(q,N,b){var y=this.playlistComponent.data.currentIndex,J=this.getNumPlayableVideos_();q=="NORMAL"&&N=="autoplayVideo"&&y+1>=J&&b||!(q=this.getVideoEndpoint_(q,N))||(b=this.getTempData_(q,b),_.e2(this.hostElement,"yt-navigate",{endpoint:q,tempData:b}))};
_.g.getNumPlayableVideos_=function(){for(var q=0,N=_.Z(this.playlistComponent.data.contents||[]),b=N.next();!b.done;b=N.next())b.value.playlistPanelVideoRenderer&&(q+=1);return q};
_.g.getVideoEndpoint_=function(q,N){if(this.autoplayData&&this.autoplayData.sets)for(var b=0,y=this.autoplayData.sets.length;b<y;b++){var J=this.autoplayData.sets[b];if(J.mode==q){if(J[N])return J[N];break}}else q=new _.IO("AutoplayData is undefined in playlist manager","Mode: "+q+" endpoint: "+N),_.M6(q)};
_.g.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.g.onPlaylistYtNavigate_=function(q){if(q.detail.endpoint){q.stopPropagation();var N=q.detail;N.tempData=this.getTempData_(q.detail.endpoint);_.e2(this.hostElement,"yt-navigate",N)}};
_.g.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.g.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.g.playlistLoopStateEntityChanged_=function(q){var N=this,b,y,J;return _.d(function(E){if(E.nextAddress==1){if(!q)return E.return();b=q.state==="PLAYLIST_LOOP_STATE_ONE";return N.playerManager_?E.yield(N.playerManager_.getPlayerPromise(),3):E.jumpTo(2)}E.nextAddress!=2&&(y=E.yieldResult,y.setLoopVideo(b));J=q.state==="PLAYLIST_LOOP_STATE_ALL";N.playlistComponent&&(N.playlistComponent.loopOn=J);_.hj(E)})};
_.g.getPlaylistLoopData_=function(q){var N,b;if(q=q==null?void 0:(N=q.playlistButtons)==null?void 0:(b=N.menuRenderer)==null?void 0:b.topLevelButtons)for(N=_.Z(q),b=N.next();!b.done;b=N.next())if(b=b.value,b.playlistLoopButtonRenderer)return b.playlistLoopButtonRenderer};
_.g.getLoopStateCommand_=function(q){var N=this.getPlaylistData(),b;N=((b=this.getPlaylistLoopData_(N))==null?void 0:b.states)||[];var y;q=(y=_.v(N[q?1:2],_.lY1))==null?void 0:y.button;var J;return(J=_.v(q,_.JI))==null?void 0:J.command};
_.g.onPlayerLoopChange_=function(q){this.playlistLoopStateEntity_&&(q?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(q=this.getLoopStateCommand_(q))&&this.ytComponentBehavior.resolveCommand(q)};
_.g.onSleepTimerSettingsChanged_=function(q){this.canAutoAdvance_=q!=="End of video"};
ZT.prototype.onPlaylistLoopStateEntityChanged=ZT.prototype.onPlaylistLoopStateEntityChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],ZT.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.d2.YtPlayerListenerBehavior),_.P("design:type",_.cX)],ZT.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],ZT.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ZT.prototype,"loopStateEntityKey_",void 0);
_.p([_.U({selectorArgs:["loopStateEntityKey_"],selector:_.WQ.playlistLoopStateEntitySelector}),_.P("design:type",Object)],ZT.prototype,"playlistLoopStateEntity_",void 0);_.p([_.FY("playlistLoopStateEntity_"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ZT.prototype,"onPlaylistLoopStateEntityChanged",null);_.p([_.I({disableElementRegistration:!0,is:"yt-playlist-manager"})],ZT);_.a(ZT,"yt-playlist-manager",void 0,{mode:_.Am("kevlar_poly_si_batch_j081")?1:2});var wpW,iwK=function(){if(wpW!==void 0)return wpW;var q=document.createElement("template");_.Q(q,"\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");q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return wpW=q};var Fr=function(){var q=_.C.apply(this,arguments)||this;q.lastCallback=null;q.getAccountLinkPromises={};q.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);q.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return q};
_.Y(Fr,_.C);_.g=Fr.prototype;_.g.getLocation=function(){return window.location.href};
_.g.getCompletionUrl=function(){return _.Wy(this.getLocation())};
_.g.containsRedirectState=function(q){return(q=_.VD(_.t8d(q)))?(new URLSearchParams(q)).get("redirect_state")!==null:!1};
_.g.createGalConfig=function(q,N){var b=new aYB;q=b=N?this.getPopupOrRedirectSetting(b,_.M7("LINK_API_KEY"),_.M7("LINK_API_KEY_REDIRECT"),q):SDK(b,_.M7("LINK_API_KEY"));q.authUser=_.M7("SESSION_INDEX")||0;q.supportedFlows=new Set([4]);return q.build()};
_.g.getPopupOrRedirectSetting=function(q,N,b,y){this.isGalInteractionPopupMode(y)?(q.interactionMode=0,q=SDK(q,N)):(q.interactionMode=1,N=this.getCompletionUrl(),q.completionUrl=N,q=SDK(q,b));return q};
_.g.isGalInteractionPopupMode=function(q){if(this.redirectModeProviderAllowlist.has(q))switch(q){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.g.getStatusEntityKeyForProviderId=function(q){return _.yU(q+":all","accountLinkStatusEntity")};
_.g.findNestedPropValue=function(q,N){var b=!1,y=null;JSON.stringify(q,function(J,E){b||J!==N||(b=!0,y=E);return b?null:E});
return y};
_.g.findAccountLinkButtonViewModel=function(q,N){var b=null,y=!1;JSON.stringify(q,function(J,E){y||E.accountLinkStatusEntityKey!==N||E.accountLinkStatusSecondaryEntityKey||(y=!0,b=E);return y?null:E});
return b};
_.g.executeLinkingSuccessOrFailureCommands=function(q,N,b){var y=null,J;(N==null?0:(J=N.url)==null?0:J.includes("account_sharing"))?y=N==null?void 0:N.response:y=N==null?void 0:N.response;(N=this.findAccountLinkButtonViewModel(y,q))?(q=b?this.findNestedPropValue(N,"onSuccessCommand"):this.findNestedPropValue(N,"onFailureCommand"))?_.Je([q],this.hostElement):_.bv(Error("Bl")):_.bv(Error("Cl`"+q))};
_.g.handleInitializeRequest=function(q,N){var b=this,y=neK(this.createGalConfig(q,!0));this.containsRedirectState(this.getLocation())?f7B(q,y.config,y.galService).then(function(J){var E=b.getStatusEntityKeyForProviderId(q);if(J.statusCode===1)N&&b.executeLinkingSuccessOrFailureCommands(E,N,!0),J=b.getLocation().indexOf("#"),J!==-1&&window.history.pushState(null,"",b.getLocation().substring(0,J));else return N&&b.executeLinkingSuccessOrFailureCommands(E,N,!1),Promise.reject(Error(J.statusMessage))}).catch(function(J){_.M6(J);
_.W_("gamingAccountLinkStatusChanged",{serviceId:q,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(J)}):this.getAccountLinkPromises[q]=y.startLinkingSession({serviceId:q})};
_.g.handleAccountLinkCommand=function(q){_.v(q,a0f)&&this.handleLinkRequest(_.v(q,a0f))};
_.g.handleLinkRequest=function(q){var N=this,b=q.thirdPartyId;if(b)if(this.isGalInteractionPopupMode(b)){var y=function(){N.closeAndFire("ytd-gaming-account-link-setting-renderer",q.onFailureCommand)},J=function(){N.closeAndFire("ytd-gaming-account-link-setting-renderer",q.onSuccessCommand)};
this.lastCallback=J;this.getAccountLinkPromises[b].then(function(E){vzB(E).then(function(F){F.statusCode===1?J():y()})}).catch(function(){y()})}else this.getAccountLinkPromises[b].then(function(E){vzB(E).then(function(F){if(F.statusCode!==1)return Promise.reject(Error(F.statusMessage))})}).catch(function(E){_.M6(E);
_.W_("gamingAccountLinkStatusChanged",{serviceId:b,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(E)})};
_.g.closeAndFire=function(q,N){_.By(this.hostElement,"yt-close-popup-action",[q]);N&&_.Je([N],this.hostElement)};
_.g.handleAccountUnlinkCommand=function(q){_.v(q,SrK)&&this.handleUnlinkRequest(_.v(q,SrK))};
_.g.handleUnlinkRequest=function(q){var N=this,b=q.thirdPartyId;if(b){var y=function(){N.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",q.onFailureCommand)},J=function(){N.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",q.onSuccessCommand)};
this.lastCallback=J;var E=neK(this.createGalConfig(b,!1));this.unlinkUserGal(E,b).then(function(F){F.statusCode===1?J():y()}).catch(function(){y()})}};
_.g.unlinkUserGal=function(q,N){return q.deleteLink(N)};
_.g.handleLogAccountLinkingEventCommand=function(q){_.x("enable_gel_log_commands")&&_.v(q,W1a)&&(q=_.v(q,W1a).event)&&_.W_("gamingAccountLinkStatusChanged",q)};
_.$H.Object.defineProperties(Fr,{template:{configurable:!0,enumerable:!0,get:function(){return iwK()}}});
_.p([_.O(_.lw.YtOpenPopupBehavior),_.P("design:type",Object)],Fr.prototype,"ytOpenPopupBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Fr.prototype,"ytActionHandlerBehavior",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Fr);_.a(Fr,"ytd-third-party-manager",function(){return iwK()},{mode:_.Am("kevlar_poly_si_batch_j081")?1:2});var lJa,K2X=function(){if(lJa!==void 0)return lJa;var q=document.createElement("template");_.Q(q,"\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");q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return lJa=q};var Rd=function(){var q=_.C.apply(this,arguments)||this;q.currentPage=void 0;q.renderLoadingStateJobId=0;q.updatePageDataJobId=0;q.pageDisposeJobsets=new WeakMap;q.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"};q.shouldApplyLockupToWatchTransition=_.x("web_thumbnail_to_watch_transition");q.shouldApplySlideTransition=_.jA("web_page_transition_type")==="slide"||_.x("enable_plj_landing_page");q.shouldApplyLearningJourneyTransition=_.x("enable_plj_landing_page");q.TEST_ONLY=void 0;return q};
_.Y(Rd,_.C);_.g=Rd.prototype;_.g.ready=function(){var q=_.tz();q.addProvider({provide:_.L6,useValue:this});q.addProvider({provide:_.bcK,useValue:this})};
_.g.created=function(){this.pagePool=new qmC;this.contextSwitcher=new $lC};
_.g.attached=function(){_.e2(this.hostElement,"attached");var q=_.tz().resolve(_.$f(_.$8));q&&(this.contextSwitcher.JSC$20255_networkService_=q);this.viewTransitionManager=_.tz().resolve(_.p8)};
_.g.getPageOffset=function(q){return q.getScrollTop()};
_.g.setPageOffset=function(q,N){try{q.setScrollTop(N)}catch(b){}};
_.g.setPageOffsetForNavigation=function(q,N){_.e2(this.hostElement,"yt-navigate-set-page-offset",{page:q,offset:N===void 0?0:N})};
_.g.pauseActiveContext=function(){var q=this.contextSwitcher;q.activeContext_&&q.activeContext_.pause()};
_.g.getModuleNameForType=function(q){return q==="watch"?_.x("kevlar_watch_fixie")?"watchFixie":_.x("kevlar_watch_grid")?"watchGrid":"watchFlexy":q==="shorts"||q==="search"?q:"browse"};
_.g.attachPage=function(q){var N,b=!_.x("pc_is_attached_ks")&&(q==null?void 0:(N=q.polymerController)==null?void 0:N.isAttached);if(!q.isAttached&&!b)try{_.ee(this.hostElement).appendChild(q)}catch(J){var y;_.M6(new _.IO("Error attaching page element for component",{origin:(y=this.currentPage)==null?void 0:y.is,component:q.is}))}};
_.g.setActivePage=function(q,N){var b=this,y=!1,J=function(){var E=b.isOnWatch(),F=b.currentPage;if(q)if(q!==b.currentPage){F&&(F.hidden=!0,F.active=!1,F.removeAttribute("role"));b.currentPage=q;var R,c=N!=null?N:_.Z4((R=b.data)==null?void 0:R.endpoint);F&&_.e2(b.hostElement,"yt-page-type-changed",{oldPageType:F.is,newPageType:q.is,newPageSubtype:c});_.sk().dispatch(_.B3({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:q.is}));_.sk().dispatch(_.B3({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:c||""}));
q.hidden=!1;b.attachPage(q);q.active=!0;q.setAttribute("role","main");F&&b.setPageOffsetForNavigation(q,0);_.x("kevlar_remove_page_dom_on_switch")&&!E&&F&&_.ee(b.hostElement).removeChild(F)}else y=!0;else b.handleMissingDestinationPage(F)};
this.shouldRunBrowseTransition(this.currentPage,q)?fLx(this.viewTransitionManager,J):this.shouldRunLearningJourneyTransition(this.currentPage,q)?TPX(this.viewTransitionManager,J):J();return y};
_.g.handleMissingDestinationPage=function(q){if(this.isColdLoadForUnknownPage(q))_.M6(new _.IO("Cold load for unknown page"));else{var N;q=new _.IO("Unable to set active page",q?q.is:"unknown origin",(N=this.data)==null?void 0:N.endpoint);_.po(q)}};
_.g.isColdLoadForUnknownPage=function(q){return!q&&jS(this.data)==="unknown"};
_.g.shouldRunBrowseTransition=function(q,N){return this.shouldApplySlideTransition&&(q==null?void 0:q.is)==="ytd-browse"&&(N==null?void 0:N.is)==="ytd-browse"&&q!==N};
_.g.shouldRunLearningJourneyTransition=function(q,N){return this.shouldApplyLearningJourneyTransition&&(q==null?void 0:q.is)==="ytd-browse"&&((N==null?void 0:N.is)==="ytd-watch-learning-journey"||(N==null?void 0:N.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.g.shouldRunWatchNextLoadedTransition=function(q,N){return this.viewTransitionManager&&q.is==="ytd-watch-flexy"&&N};
_.g.updatePageData=function(q){var N=this,b=this.data;this.updatePageDataJobId&&_.pY.cancelJob(this.updatePageDataJobId);this.data=q;return new _.wL(function(y){var J=function(){q.filler?N.performDataUpdate(q,b):LXp(function(){N.performDataUpdate(q,b)});
var c=_.dw();_.cW(c,"cr")||c.processSignal("cr");y()},E=function(){q&&(q.page==="watch"||_.x("web_shorts_delay_shorts_page_update")&&q.page==="shorts")?N.updatePageDataJobId=_.rj(_.pY,J):J()};
if(_.x("kevlar_enable_mss_page_modules_client")&&q){var F=_.tz().resolve(_.DQ),R=N.getModuleNameForType(q.page);(F=kJN(F,[R]))?F.then(E):E()}else E()})};
_.g.isDownloadsPage=function(q){var N,b;return(q==null?void 0:(N=q.endpoint)==null?void 0:(b=N.browseEndpoint)==null?void 0:b.browseId)==="FEdownloads"};
_.g.setPlayerSyncInterval=function(q){var N;return _.d(function(b){if(b.nextAddress==1)return b.yield(_.tz().resolve(_.Bk),2);N=b.yieldResult;N.setUpPositionSyncInterval(q);_.hj(b)})};
_.g.performDataUpdate=function(q,N){_.x("kevlar_early_popup_close")||_.By(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var b=!q.filler;b&&(_.Q6("lps"),_.x("config_age_report_killswitch")||yEa());var y=jS(q),J,E=!1;if(_.x("kevlar_remove_page_dom_on_switch")){var F=N&&jS(N);y===F&&(J=this.getCurrentPage())}J||(J=et(this.pagePool,y));b&&MTB(this.pagePool.elementPoolPopulator,y);b&&!this.renderLoadingStateJobId&&(E=this.setActivePage(J));if(J){F=y==="watch";var R=
y==="shorts",c=y==="learning_journey_watch";_.x("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(J);if(F||R||c)J.playerData=q.playerResponse;if(R){q.reelWatchSequenceResponse?J.reelWatchSequenceResponse=q.reelWatchSequenceResponse:!J.cachedReelWatchSequenceResponse||J.reelWatchSequenceResponse||_.x("web_enable_delay_shorts_sequence_call_new")||(J.reelWatchSequenceResponse=J.cachedReelWatchSequenceResponse);q.reelWatchSequenceResponse&&(N==null?void 0:N.page)!=="shorts"&&
(J.cachedReelWatchSequenceResponse=q.reelWatchSequenceResponse);J.currentEndpoint=q.endpoint;var z;J.isPreviousPageShorts=!!(N==null?0:(z=N.endpoint)==null?0:z.reelWatchEndpoint)}z=this.isDownloadsPage(q);var m=this.isDownloadsPage(N);z&&!m?this.setPlayerSyncInterval(6E5):!z&&m&&this.setPlayerSyncInterval();_.x("block_all_player_prefetch_requests")||this.preparePrefetchRequest(q,J,b,F,R,c);sgf(_.tz().resolve(_.l9),N,q);if(_.x("enable_ai_companion")){var r;(r=_.tz().resolve(_.$f(_.em)))==null||_.k2f(r,
this.getPersistentPanelSurface(y))}_.r2(_.tz().resolve(_.$P));_.x("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(J);b?(b=typeof J.loadPage,b==="function"?(J.pageContext=twx(this.contextSwitcher,J,J.data!==q.response),b=function(){J.loadPage(q.response)},this.shouldApplySlideTransition&&J.is==="ytd-browse"&&E&&(y==="learning"||this.isDifferentBrowseId(q==null?void 0:q.endpoint,N==null?void 0:N.endpoint))?fLx(this.viewTransitionManager,b):this.shouldRunWatchNextLoadedTransition(J,
E)?ILN(this.viewTransitionManager,b):b()):_.P_(new _.IO("b/38014653 ",[y,
J.is,J.nodeName,b,J.isAttached,N&&jS(N),this.hostElement.children.length])),_.Q6("pdl")):(J.hidden=!0,q.response.filler=!0,J.data=q.response,this.attachPage(J));_.e2(this.hostElement,"yt-page-data-updated",{pageType:y})}_.Ip(_.pY,function(){_.x("logging_avoid_blocking_during_navigation")&&_.QEJ().transition("none");var X=Kfx(),V=J;if(q){var G=FYf(q),w=RWp(q),D;a:{if(q.playerResponse){var k=q.playerResponse,f;if((D=k.auxiliaryUi)==null?0:(f=D.messageRenderers)==null?0:f.upsellDialogRenderer){D=k.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(q.response&&(D=q.response,(k=D.overlay)==null?0:k.upsellDialogRenderer)){D=D.overlay.upsellDialogRenderer;break a}D=void 0}var L;var S;f=(L=q.playerResponse)==null?void 0:(S=L.auxiliaryUi)==null?void 0:S.messageRenderers;L=(f==null?void 0:f.enforcementMessageViewModel)||(f==null?void 0:f.bkaEnforcementMessageViewModel);L=(L==null?void 0:L.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?L:void 0;var W;a:{if(q.response&&(S=q.response,(W=S.overlay)==null?0:W.commandWrapperPromoRenderer)){W=
S.overlay.commandWrapperPromoRenderer;break a}W=void 0}l_d(X,G,w,D,L,W,V)}})};
_.g.preparePrefetchRequest=function(q,N,b,y,J,E){var F,R,c,z,m,r,X,V,G,w,D,k,f,L,S;return _.d(function(W){if(W.nextAddress==1)return!b||!(y||J||E)||_.x("kevlar_disable_background_prefetch")&&_.qg(_.UMJ)()===0?W.return():(F=_.p6(N))?W.yield(F.getPlayerPromise(),2):W.return();R=W.yieldResult;c=_.tz().resolve(_.$f(_.$8));if(!c)return W.return();if(J)return z=_.L0(_.k6),NPa(z,(m=q.endpoint)==null?void 0:m.reelWatchEndpoint,N.reelWatchSequenceResponse,R,c),W.return();V=(r=q.response)==null?void 0:(X=r.responseContext)==
null?void 0:X.webResponseContextExtensionData;if(!V)return W.return();f=(G=q.response)==null?void 0:(w=G.contents)==null?void 0:(D=w.twoColumnWatchNextResults)==null?void 0:(k=D.autoplay)==null?void 0:k.autoplay;L=_.tz().resolve(_.F2);S=_.L0(_.k6);bvC(S,V,R,c,L,f);_.hj(W)})};
_.g.movePlayerToWatch=function(q){var N=this,b,y;return _.d(function(J){b=et(N.pagePool,"watch");y=b.getPlayerContainer();q.appendTo(y);_.hj(J)})};
_.g.movePlayerToShorts=function(q){var N=this,b,y,J;return _.d(function(E){b=et(N.pagePool,"shorts");y=b.getPlayerContainer();(J=q)==null||J.appendTo(y,void 0,!0);_.hj(E)})};
_.g.getPlayerFromWatch=function(){var q=et(this.pagePool,"watch");return _.p6(q)};
_.g.getPlayerFromShorts=function(){var q=et(this.pagePool,"shorts");return _.p6(q)};
_.g.startLoadingWatch=function(){var q=this,N=et(this.pagePool,"watch");this.renderLoadingStateJobId?(_.pY.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.x("web_watch_transition_enable_start_loading_watch_callsite")?CKX(this.viewTransitionManager,function(){q.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(N,"watch");
if(_.x("enable_ai_companion")){var b;(b=_.tz().resolve(_.$f(_.em)))==null||_.k2f(b,this.getPersistentPanelSurface("watch"))}};
_.g.startLoadingShorts=function(){var q=et(this.pagePool,"shorts");this.setActivePage(q,"shorts")};
_.g.startLoadingLearningJourney=function(){var q=et(this.pagePool,"learning_journey_watch");this.setActivePage(q,"learning_journey_watch")};
_.g.getCurrentPage=function(){return this.currentPage};
_.g.getDestinationPageType=function(){return this.destinationPageType};
_.g.getCurrentData=function(){return this.data};
_.g.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.g.isOnShorts=function(){var q;return((q=this.currentPage)==null?void 0:q.is)==="ytd-shorts"};
_.g.isWatchPage=function(q){return!!q&&(q.is==="ytd-watch-flexy"||q.is==="ytd-watch-fixie"||q.is==="ytd-watch-grid")};
_.g.preparePage=function(q,N){var b=this,y=function(){var F=b.pagePool.preparePage(q,b.currentPage,N);F&&b.attachPage(F)},J=function(F){_.op(F,N);
_.M6(F)};
if(_.x("kevlar_enable_mss_page_modules_client")){var E=this.getModuleNameForType(q);if(E=kJN(_.tz().resolve(_.DQ),[E])){E.then(y.bind(this)).catch(J.bind(this));return}}try{y()}catch(F){J(F)}};
_.g.lazyPrepareCriticalPages=function(q,N){q=_.Z4(N)||q;_.x("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(q).then(this.maybePrepareWatchPage.bind(this,q)):this.maybePrepareWatchPage(q)};
_.g.maybePrepareWatchPage=function(q){q==="watch"||q==="learning_journey_watch"&&_.x("web_watch_learning_journey_disable_lazy_pages")||_.Ip(_.pY,this.preparePage.bind(this,"watch"))};
_.g.downloadPageModules=function(q){q=this.getModuleNameForType(q);var N=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);N.delete(q);var b=_.tz().resolve(_.DQ);b.JSC$18933_loadModules(q);return b.JSC$18933_loadModules.apply(b,_.a9(N))};
_.g.renderPageLoadingState=function(q,N){this.preparePage(q,N);var b=et(this.pagePool,q);b.loadingData&&(b.loadingData.endpoint=N);b.loading=!0;this.setActivePage(b,q);q!=="watch"&&q!=="learning_journey_watch"||_.e2(this.hostElement,"yt-guide-close")};
_.g.prepareForNavigation=function(q,N){var b=this;if(this.currentPage&&this.data){var y=_.Z4(N)||q;this.destinationPageType=y;jS(this.data)==y&&_.e2(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((q==="watch"||q==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.pY.cancelJob(this.renderLoadingStateJobId);_.tz().resolve(_.l9).deactivate(N);_.ZQ(_.pY,function(){var E=b.viewTransitionManager,F=b.currentPage;
if(E.isLockupToWatchTransitionEnabled&&E.isLockupThumbnailRegistrationEnabled&&F)if(E.registeredLockupThumbnail)E.lockupThumbnailRegisteredFromWatchEndpoint&&_.M6(new _.IO("Lockup thumbnail already registered from watch endpoint."));else{a:{var R=_.v(N,_.nx);if(R==null?0:R.videoId){var c="yt-lockup-view-model ."+_.e6e(R.videoId)+" yt-thumbnail-view-model";F=F.querySelectorAll(c);if(F.length===1){R=F[0];break a}F.length>1?_.M6(new _.IO("Multiple LockupViewModel thumbnails found for videoId: "+R.videoId+
". Selector: "+c)):_.x("web_thumbnail_to_watch_transition_debug")&&_.M6(new _.IO("No LockupViewModel thumbnail found for videoId: "+R.videoId+". Selector: "+c))}R=void 0}R&&(E.registeredLockupThumbnail=R,E.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.zwx(E,R))}});
var J=this.data;this.renderLoadingStateJobId=_.ZQ(_.pY,function(){CKX(b.viewTransitionManager,function(){if(b.data!=J){var E=et(b.pagePool,q);b.setActivePage(E)}else b.renderPageLoadingState(q,N);b.renderLoadingStateJobId=0})},150)}};
_.g.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var q=new _.t$(1);this.currentPage.pageDisposeJobs.forEach(function(N){_.mu(q,N)});
this.pageDisposeJobsets.set(this.currentPage,q)}};
_.g.flushPageDisposeJobset=function(q){var N=this.pageDisposeJobsets.get(q);N&&(N.flushJobs(),this.pageDisposeJobsets.delete(q))};
_.g.onYtStopOldPlayer=function(q,N){N=N===void 0?!1:N;var b,y=_.v4("kevlar_new_stop_old_player_logic_pages");if(_.x("kevlar_check_current_page_on_stop_old_player")&&(y.length===0||this.currentPage&&y.includes(this.currentPage.is)))if(this.data&&(b=jS(this.data)),jS(q)===b&&this.currentPage&&jS(this.currentPage.data)!==b)var J=_.p6(this.currentPage);else b=jS(this.data),J=et(this.pagePool,b),J=_.p6(J);else this.data&&(b=jS(this.data),J=et(this.pagePool,b),J=_.p6(J));if(J){y=jS(q);var E=et(this.pagePool,
y);E=_.p6(E);if(J==E)N&&!_.x("kevlar_disable_preemptive_player_reset")&&J.resetForNewPlayback();else if(N=b==="watch"&&y!=="watch",!N||y==="shorts"||_.gpx()&&!Nac(this.data,q))q=_.tz().resolve(_.l9),N&&q.isMiniplayerActive()&&q.pipController.getWindow()||J.stop()}};
_.g.isDifferentBrowseId=function(q,N){q=_.v(q,_.FH);N=_.v(N,_.FH);return(q==null?void 0:q.browseId)!==(N==null?void 0:N.browseId)};
_.g.getPersistentPanelSurface=function(q){switch(q){case "watch":return"WATCH";default:return"APP"}};
_.$H.Object.defineProperties(Rd,{template:{configurable:!0,enumerable:!0,get:function(){return K2X()}}});
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Rd.prototype,"ytActionHandlerBehavior",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-page-manager"})],Rd);_.a(Rd,"ytd-page-manager",function(){return K2X()},{mode:_.Am("kevlar_poly_si_batch_j081")?1:2});var Dkd;var dQ=function(){var q=_.C.apply(this,arguments)||this;q.useListItemStyles=_.x("web_list_item_style_for_menu_items");q.systemIcons=_.x("kevlar_system_icons");return q};
_.Y(dQ,_.C);_.g=dQ.prototype;_.g.ready=function(){this.hostElement.addEventListener("tap",_.gq(this,this.onEndpointTapExtra))};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.g.onFocus=function(){var q;(q=_.ee(this.hostElement).querySelector("tp-yt-paper-item"))==null||q.focus()};
_.g.onEndpointTapExtra=function(q){_.e2(this.hostElement,"iron-activate");var N=this.data.navigationEndpoint;N&&_.v(N,_.OXD)&&(q.stopPropagation(),_.Nc(this.hostElement,[N],this.hostElement))};
_.g.computeIcon=function(q){return q&&q.iconType?_.qo(q.iconType):""};
_.g.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.g.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.g.forceUpdateStylesOnLegacyBrowsers=function(){_.x("kevlar_legacy_browsers")&&_.Jm(this.hostElement)};
dQ.prototype.forceUpdateStylesOnLegacyBrowsers=dQ.prototype.forceUpdateStylesOnLegacyBrowsers;dQ.prototype.onFocus=dQ.prototype.onFocus;_.p([_.O(_.r7),_.P("design:type",Object)],dQ.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.O(_.llp.YtConditionalRendererBehavior),_.P("design:type",Object)],dQ.prototype,"ytConditionalRendererBehavior",void 0);_.p([_.O(_.KV.YtEndpointBehavior),_.P("design:type",Object)],dQ.prototype,"ytEndpointBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],dQ.prototype,"data",void 0);_.p([_.U({computed:"computeIcon(data.icon)",value:""}),_.P("design:type",String)],dQ.prototype,"icon",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],dQ.prototype,"useIcons",void 0);_.p([_.U({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.P("design:type",Boolean)],dQ.prototype,"hasSeparator",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],dQ.prototype,"useListItemStyles",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],dQ.prototype,"systemIcons",void 0);_.p([_.ZP("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dQ.prototype,"onFocus",null);_.p([_.FY("useIcons","hasSeparator"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dQ.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.a(dQ,"ytd-menu-navigation-item-renderer",function(){if(Dkd===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);Dkd=q}q=Dkd;return q},{mode:1});var hOU;var k_a=_.nD(_.FE("DOWNLOAD",{},"Download")),Ukp=_.nD(_.FE("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),fJX=_.nD(_.FE("RETRY",{},"Retry")),CFd=_.nD(_.FE("PAUSE_DOWNLOADING",{},"Pause downloading")),IJX=_.nD(_.FE("RESUME_DOWNLOAD",{},"Resume download")),cI=function(){var q=_.C.apply(this,arguments)||this;q.primaryText=k_a;q.primaryIconType="OFFLINE_DOWNLOAD";q.hasSecondaryContent=!1;q.hasSeparator=!1;q.transferState="TRANSFER_STATE_UNKNOWN";q.isVideoDeletedByUser=!1;q.isHidden=!1;q.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return q};
_.Y(cI,_.C);_.g=cI.prototype;_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.g.onFocus=function(){this.primaryEntry.focus()};
_.g.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.g.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.g.getRemoveAction=function(){return"ACTION_REMOVE"};
_.g.sendOfflineAction=function(q){var N=this.data.serviceEndpoint;if(N){var b=_.v(N,_.F3);b&&q&&(b.action=q);this.ytComponentBehavior.resolveCommand(N)}};
_.g.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=k_a,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=k_a;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=fJX;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=Ukp;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=IJX;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=Ukp;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
CFd;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=Ukp;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=Ukp;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=k_a,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.g.showHideButton=function(){var q;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((q=this.playerStateEntity)==null?void 0:q.adsState)==="ADS_STATE_PLAYING"};
_.g.isSecondaryEntryHidden=function(q,N){return q?!0:!N};
_.g.computeHasSeparator=function(){var q;return!((q=this.data)==null||!q.hasSeparator)};
_.g.computePlayerStateEntityKey=function(q){return q};
cI.prototype.showHideButton=cI.prototype.showHideButton;cI.prototype.onTransferStateChange=cI.prototype.onTransferStateChange;cI.prototype.onFocus=cI.prototype.onFocus;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],cI.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],cI.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],cI.prototype,"ytComponentBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],cI.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],cI.prototype,"primaryText",void 0);_.p([_.U(),_.P("design:type",String)],cI.prototype,"primaryIconType",void 0);_.p([_.U(),_.P("design:type",String)],cI.prototype,"primaryAction",void 0);_.p([_.U(),_.P("design:type",Object)],cI.prototype,"secondaryText",void 0);_.p([_.U(),_.P("design:type",String)],cI.prototype,"secondaryIconType",void 0);
_.p([_.U(),_.P("design:type",String)],cI.prototype,"secondaryAction",void 0);_.p([_.U(),_.P("design:type",Object)],cI.prototype,"hasSecondaryContent",void 0);_.p([_.U({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.P("design:type",Object)],cI.prototype,"hasSeparator",void 0);_.p([_.U({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.P("design:type",String)],cI.prototype,"playerStateEntityKey",void 0);
_.p([_.U({selector:_.bR,selectorArgs:["playerStateEntityKey"]}),_.P("design:type",Object)],cI.prototype,"playerStateEntity",void 0);_.p([_.U({selector:_.ig,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.P("design:type",String)],cI.prototype,"transferState",void 0);_.p([_.U({selector:_.q6n,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.P("design:type",Object)],cI.prototype,"isVideoDeletedByUser",void 0);
_.p([_.U(),_.P("design:type",Object)],cI.prototype,"isHidden",void 0);_.p([_.U({selector:_.Pwn,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.P("design:type",Object)],cI.prototype,"offlineabilityState",void 0);_.p([_.dq("#primary-entry"),_.P("design:type",Object)],cI.prototype,"primaryEntry",void 0);_.p([_.ZP("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cI.prototype,"onFocus",null);
_.p([_.$9("transferState","isVideoDeletedByUser"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cI.prototype,"onTransferStateChange",null);_.p([_.$9("offlineabilityState","playerStateEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cI.prototype,"showHideButton",null);
_.a(cI,"ytd-menu-service-item-download-renderer",function(){if(hOU===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);hOU=q}q=hOU;return q},{mode:1});var TWa;var us=function(){var q=_.C.apply(this,arguments)||this;q.useIcons=!1;q.systemIcons=_.x("kevlar_system_icons");q.useListItemStyles=_.x("web_list_item_style_for_menu_items");return q};
_.Y(us,_.C);_.g=us.prototype;_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.g.onFocus=function(){var q;(q=_.ee(this.hostElement).querySelector("tp-yt-paper-item"))==null||q.focus()};
_.g.onTap=function(){_.Hy(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var q=this.data.serviceEndpoint,N=this.data.command;if(q){var b,y=(b=this.data)==null?void 0:b.trackingParams;b=!!_.v(q,_.$To);y&&b&&_.WT().dispatch(_.B3({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:y}}));this.ytComponentBehavior.resolveCommand(q)||_.tz().resolve(_.rO).resolveCommand(q,{form:{element:this.hostElement}})}N&&(this.ytComponentBehavior.resolveCommand(N)||_.Nc(this.hostElement,
[N],this.hostElement))};
_.g.computeIcon=function(q){return q&&q.iconType?_.qo(q.iconType):""};
_.g.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.g.computeHasSeparator=function(){var q;return!((q=this.data)==null||!q.hasSeparator)};
_.g.forceUpdateStylesOnLegacyBrowsers=function(){_.x("kevlar_legacy_browsers")&&_.Jm(this.hostElement)};
_.g.computeIsSelected=function(){var q;return!((q=this.data)==null||!q.isSelected)};
us.prototype.forceUpdateStylesOnLegacyBrowsers=us.prototype.forceUpdateStylesOnLegacyBrowsers;us.prototype.onTap=us.prototype.onTap;us.prototype.onFocus=us.prototype.onFocus;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],us.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.r7),_.P("design:type",Object)],us.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],us.prototype,"ytComponentBehavior",void 0);
_.p([_.O(_.llp.YtConditionalRendererBehavior),_.P("design:type",Object)],us.prototype,"ytConditionalRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],us.prototype,"data",void 0);_.p([_.U({computed:"computeIcon(data.icon)",value:""}),_.P("design:type",String)],us.prototype,"icon",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],us.prototype,"useIcons",void 0);
_.p([_.U({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.P("design:type",Boolean)],us.prototype,"hasSeparator",void 0);_.p([_.U({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.P("design:type",Boolean)],us.prototype,"isSelected",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],us.prototype,"systemIcons",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],us.prototype,"useListItemStyles",void 0);
_.p([_.ZP("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],us.prototype,"onFocus",null);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],us.prototype,"onTap",null);_.p([_.FY("useIcons","hasSeparator"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],us.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.a(us,"ytd-menu-service-item-renderer",function(){if(TWa===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);TWa=q}q=TWa;return q},{mode:2});var s1p;var zd=function(){return _.C.apply(this,arguments)||this};
_.Y(zd,_.C);_.g=zd.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.onDataChanged=function(){var q=this;_.ut(this,function(){q.postbox.openDialog();q.focus();_.e2(q.hostElement,"yt-refit")})};
_.g.focus=function(){this.postbox.focus()};
_.g.closePopup=function(){_.By(this.hostElement,"yt-close-popup-action")};
_.g.onYtCommentboxDismiss=function(){this.closePopup()};
zd.prototype.onYtCommentboxDismiss=zd.prototype.onYtCommentboxDismiss;zd.prototype.onDataChanged=zd.prototype.onDataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],zd.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],zd.prototype,"data",void 0);_.p([_.U({value:function(){return _.FE("SBOX_INAPPROPRIATE_CANCEL")}}),
_.P("design:type",String)],zd.prototype,"closeButtonAriaLabel",void 0);_.p([_.dq("#postbox"),_.P("design:type",Object)],zd.prototype,"postbox",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zd.prototype,"onDataChanged",null);_.p([_.ZP("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zd.prototype,"onYtCommentboxDismiss",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],zd);
_.a(zd,"ytd-backstage-post-dialog-popup-renderer",function(){if(s1p!==void 0)return s1p;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return s1p=q},{mode:1});var nGK;var aJf;var Smx=function(){return _.C.apply(this,arguments)||this};
_.Y(Smx,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Smx.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Smx.prototype,"data",void 0);_.p([_.Ok({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],Smx);
_.a(Smx,"yt-sender-id-section-renderer",function(){if(aJf===void 0){var q=document.createElement("template");_.Q(q,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);aJf=q}q=
aJf;return q},{mode:1});var W2f;var L2x;var $I=function(){return _.C.apply(this,arguments)||this};
_.Y($I,_.C);$I.prototype.closePopup=function(){_.By(this.hostElement,"yt-close-popup-action")};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],$I.prototype,"data",void 0);_.p([_.Ok({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],$I);
_.a($I,"yt-community-post-section-renderer",function(){if(L2x===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;W2f===void 0&&(W2f=document.createElement("template"));var y=W2f;b.call(N,y.content.cloneNode(!0),q.content.firstChild);L2x=q}q=L2x;return q},{mode:2});var ppK;var PFA;var MfN;var oGf;var AqW;var eOp;var BWC=function(){return _.C.apply(this,arguments)||this};
_.Y(BWC,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],BWC.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],BWC.prototype,"data",void 0);_.p([_.Ok({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],BWC);
_.a(BWC,"yt-share-start-time-with-context-renderer",function(){if(eOp===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;AqW===void 0&&(AqW=document.createElement("template"));var y=AqW;b.call(N,y.content.cloneNode(!0),q.content.firstChild);eOp=q}q=eOp;return q},{mode:2});var tk=function(){return _.C.apply(this,arguments)||this};
_.Y(tk,_.C);tk.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],tk.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],tk.prototype,"data",void 0);_.p([_.Ok({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],tk);
_.a(tk,"yt-share-panel-title-v15-renderer",function(){if(oGf===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;MfN===void 0&&(MfN=document.createElement("template"));var y=MfN;b.call(N,y.content.cloneNode(!0),q.content.firstChild);oGf=q}q=oGf;return q},{mode:2});var mB=function(){return _.C.apply(this,arguments)||this};
_.Y(mB,_.C);mB.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"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],mB.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],mB.prototype,"data",void 0);_.p([_.Ok({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],mB);
_.a(mB,"yt-share-panel-header-renderer",function(){if(PFA===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;ppK===void 0&&(ppK=document.createElement("template"));var y=ppK;b.call(N,y.content.cloneNode(!0),q.content.firstChild);PFA=q}q=PFA;return q},{mode:2});var Hwc;var qHW;var rQ=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-open-popup-action":"onOpen"};return q};
_.Y(rQ,_.C);_.g=rQ.prototype;_.g.attached=function(){this.onOpen()};
_.g.updateTimeSecs=function(q){this.currentTimeSecs=q};
_.g.computeTimeString=function(q){q=q.toString();var N=Math.floor(Number(q)/3600),b=Math.floor(Number(q)%3600%60);return(N>0?N+":":"")+_.Eq(Math.floor(Number(q)%3600/60),N>0?2:1)+":"+_.Eq(b,2)};
_.g.computeTimeStringA11y=function(q){return _.Zgu({seconds:q})};
_.g.getTimeParam=function(){return iLB(this.timeString)};
_.g.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var q={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},N;_.fm(_.FR(),(N=this.data)==null?void 0:N.trackingParams,q,7)};
_.g.onChangeStartAtTimestamp=function(){for(var q=this.startAtTimestamp.value.split(":"),N=0,b=1,y=q.length-1;y>=0;y--)N+=Number(q[y])*b,b*=60;this.updateTimeSecs(N);this.setTimestamp()};
_.g.onOpen=function(){var q=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var N=_.Pk();N?N.getPlayerPromise().then(function(b){b=b.getCurrentTime();q.updateTimeSecs(b)}):IUf()&&this.updateTimeSecs(IUf())};
_.g.setTimestamp=function(){var q=Math.floor(this.currentTimeSecs);_.By(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!q,timestamp:q||""}])};
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],rQ.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],rQ.prototype,"data",void 0);_.p([_.U({value:!1,notify:!0}),_.P("design:type",Boolean)],rQ.prototype,"isStartAtChecked",void 0);_.p([_.U(),_.P("design:type",Number)],rQ.prototype,"currentTimeSecs",void 0);
_.p([_.U({computed:"computeTimeString(currentTimeSecs)"}),_.P("design:type",String)],rQ.prototype,"timeString",void 0);_.p([_.U({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.P("design:type",String)],rQ.prototype,"timeStringA11y",void 0);_.p([_.dq("#start-at-timestamp"),_.P("design:type",Object)],rQ.prototype,"startAtTimestamp",void 0);_.p([_.Ok({is:"yt-start-at-renderer",disableElementRegistration:!0})],rQ);
_.a(rQ,"yt-start-at-renderer",function(){if(qHW===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;Hwc===void 0&&(Hwc=document.createElement("template"));var y=Hwc;b.call(N,y.content.cloneNode(!0),q.content.firstChild);qHW=q}q=qHW;return q},{mode:2});var NGf;var b$f;var yUc={};yUc.YtBindingExpressionsBehavior={identity:_.CC,msg:function(q,N){N=N===void 0?{}:N;return _.FE(q,N,q)},
msgPlural:function(q,N){return _.R5(q,N)},
getMusicIconFromType:function(q){return _.qo(q)}};var JUx;var E1C;var g1W;var Z$a=document.head,FQc=Z$a.appendChild,Rqa;if(g1W===void 0){var dhd=document.createElement("template");_.Q(dhd,'\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>');g1W=dhd}Rqa=g1W;FQc.call(Z$a,Rqa.content);var Xr=function(){var q=_.C.apply(this,arguments)||this;q.screenLayer=7;return q};
_.Y(Xr,_.C);Xr.prototype.getScreenLayer=function(){return this.screenLayer};
Xr.prototype.onTap=function(q){q&&q.detail&&(q.detail.x||q.detail.y)&&_.ee(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.qc(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(q=this.getScreenLayer(),_.e2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:q}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.$H.Object.defineProperties(Xr.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()}}});
Xr.prototype.onTap=Xr.prototype.onTap;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Xr.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Xr.prototype,"data",void 0);_.p([_.l("data.title"),_.P("design:type",Object),_.P("design:paramtypes",[])],Xr.prototype,"title",null);
_.p([_.l("data.serviceName"),_.P("design:type",String),_.P("design:paramtypes",[])],Xr.prototype,"icon",null);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Xr.prototype,"onTap",null);_.p([_.Ok({is:"yt-share-target-renderer",disableElementRegistration:!0})],Xr);
_.a(Xr,"yt-share-target-renderer",function(){if(E1C===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;JUx===void 0&&(JUx=document.createElement("template"));var y=JUx;b.call(N,y.content.cloneNode(!0),q.content.firstChild);E1C=q}q=E1C;return q},{mode:2});var cUc;var uBa;var Vt=function(){var q=_.C.apply(this,arguments)||this;q.SHARE_TARGET_WIDTH=70;q.SHARE_TARGET_MARGIN_RIGHT=8;q.PAGE_SCROLL_SPEED=9;q.actionMap={"yt-share-panel-reset-action":"onReset_"};return q};
_.Y(Vt,_.C);_.g=Vt.prototype;_.g.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.g.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.ee(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.ee(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.g.onReset_=function(){if(_.ee(this.hostElement).querySelector("#list")){var q=_.ee(this.hostElement).querySelector("#list");var N=_.ee(this.hostElement).querySelector("#list");var b=N.offsetLeft,y=N.offsetParent;y||_.akx(N)!="fixed"||(y=_.LM(N).documentElement);if(y){if(_.qd&&!_.bZ(58)){var J=_.AbM(y);b+=J.left}else Number(_.c4j)>=8&&!(Number(_.c4j)>=9)&&(J=_.AbM(y),b-=J.left);N=_.Mcl(y)?y.clientWidth-(b+N.offsetWidth):b}else N=b;ytA(q,N);this.updateScrollButtons_()}};
_.g.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.g.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.g.onScrollWheel_=function(q){q.stopPropagation();q.preventDefault();var N=bzU(_.ee(this.hostElement).querySelector("#list"));q=Math.abs(q.deltaX)>Math.abs(q.deltaY)?q.deltaX:q.deltaY;ytA(_.ee(this.hostElement).querySelector("#list"),N+q);this.updateScrollButtons_()};
_.g.smoothScrollByOnePage_=function(q){var N=_.ee(this.hostElement).querySelector("#list"),b=(Math.floor(N.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,y=bzU(N),J=b*(q?1:-1),E=this.PAGE_SCROLL_SPEED,F=this.updateScrollButtons_.bind(this),R=0,c;(function m(){R+=E;c=R/b*2;ytA(N,y+J*(c<1?c*c:-c*c+4*c-2));R<b?window.requestAnimationFrame(m):F()})()};
_.g.updateScrollButtons_=function(){var q=bzU(_.ee(this.hostElement).querySelector("#list")),N=_.ee(this.hostElement).querySelector("#list").scrollWidth-_.ee(this.hostElement).querySelector("#list").clientWidth;_.ee(this.hostElement).querySelector("#scroll-button-back").hidden=q<=0;_.ee(this.hostElement).querySelector("#scroll-button-forward").hidden=q>=N};
Vt.prototype.onScrollWheel_=Vt.prototype.onScrollWheel_;Vt.prototype.onDataChanged_=Vt.prototype.onDataChanged_;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Vt.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Vt.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(yUc.YtBindingExpressionsBehavior),_.P("design:type",Object)],Vt.prototype,"ytBindingExpressionsBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Vt.prototype,"data",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vt.prototype,"onDataChanged_",null);_.p([_.ZP("wheel"),_.P("design:type",Function),_.P("design:paramtypes",[WheelEvent]),_.P("design:returntype")],Vt.prototype,"onScrollWheel_",null);
_.p([_.Ok({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Vt);
_.a(Vt,"yt-third-party-share-target-section-renderer",function(){if(uBa===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;cUc===void 0&&(cUc=document.createElement("template"));var y=cUc;b.call(N,y.content.cloneNode(!0),q.content.firstChild);uBa=q}q=uBa;return q},{mode:2});var j3=function(){return _.C.apply(this,arguments)||this};
_.Y(j3,_.C);j3.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"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],j3.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],j3.prototype,"data",void 0);_.p([_.Ok({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],j3);
_.a(j3,"yt-third-party-network-section-renderer",function(){if(b$f===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;NGf===void 0&&(NGf=document.createElement("template"));var y=NGf;b.call(N,y.content.cloneNode(!0),q.content.firstChild);b$f=q}q=b$f;return q},{mode:2});_.P$(_.n(function(q){return _.u("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.u("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.u(_.zS,{data:function(){return q.data().firstPartyItems}},{listItemViewModel:_.R1})))},"lj"),"first-party-network-section-view-model",{props:{data:_.F5}});var zqf=(0,_.UsM)(_.n8.share,{parentClickTrackingParamsSelector:function(q){return q.parentClickTrackingParams}});var $hA=_.Tt(["data:image/svg+xml;charset=UTF-8;base64,",""]),xI=function(){var q=_.C.apply(this,arguments)||this;q.screenLayer=7;q.qrCodeEnabled=_.x("web_enable_sharing_qr_code");q.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return q};
_.Y(xI,_.C);_.g=xI.prototype;_.g.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.g.attached=function(){this.JSC$20496_scroller&&(this.JSC$20496_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20496_scroller.attached&&typeof this.JSC$20496_scroller.attached==="function"&&this.JSC$20496_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.g.onDataChanged=function(){var q=this,N;(N=this.data)!=null&&N.contents&&(this.hostElement.setAttribute("links-only","true"),_.bL(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.ut(this,function(){_.e2(q.hostElement,"yt-refit");q.focusSharePanelHeader()}))};
_.g.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.g.handleSetTimestamp=function(q){var N=this.shortUrl();q.isSet&&(N=_.WE(N,"t",q.timestamp));this.maybeRenderQrCode(N)};
_.g.shortUrl=function(){var q,N=(q=this.data)==null?void 0:q.contents;if(N)for(q=0;q<N.length;q++){var b=void 0,y=void 0;if((b=N[q])==null?0:(y=b.thirdPartyNetworkSection)==null?0:y.copyLinkContainer){var J=y=b=void 0;return(J=_.v((b=N[q])==null?void 0:(y=b.thirdPartyNetworkSection)==null?void 0:y.copyLinkContainer,GkN))==null?void 0:J.shortUrl}}};
_.g.maybeRenderQrCode=function(q){var N=this,b,y,J,E,F,R,c,z,m;return _.d(function(r){if(r.nextAddress==1){b=_.ee(N.hostElement).querySelector("#qr-code");if(!N.qrCodeEnabled||!q)return b&&(b.style.display="none"),r.return();y=_.njR(_.tz().resolve(_.No),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});J=document.createElement("div");return typeof y==="function"?(y(J),r.jumpTo(2)):r.yield(y,3)}r.nextAddress!=2&&(E=r.yieldResult,E(J));c=(F=J)==null?void 0:(R=F.firstChild)==null?void 0:R.firstChild;
z=document.createElement("img");m=_.Ftd($hA,btoa(c.outerHTML));z.onload=function(){var X={canvas:b,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:z},V=new gAN;uOa(V,q);zNc(V,!1,$1f(V));var G=V.modules,w=Object.assign({},ZVa,X);G=structuredClone(G);X=G.length;var D,k=(D=w.canvas)!=null?D:document.createElement("canvas");D=w.cellSize;V=w.logo;var f,L=(f=w.logoSize)!=null?f:Math.floor(X/4);X%2!==L%2&&L++;var S=w.logoPadding,W=w.backgroundColor;f=X*D;var M=
w.width,qe=0;M&&(qe=w.padding,qe=Math.ceil(qe*f/(M-qe*2)),k.style.width=M+"px",k.style.height=M+"px");k.width!==f+qe*2&&(k.width=f+qe*2);k.height!==f+qe*2&&(k.height=f+qe*2);f=k.getContext("2d");w.autoClear&&f.clearRect(0,0,k.width,k.height);f.fillStyle=W;f.beginPath();f.roundRect(0,0,k.width,k.height,w.borderRadius);f.fill();f.save();f.translate(qe,qe);if(V)for(k=Math.floor(X-L)/2-S,S=Math.floor(X+L)/2+S,W=k;W<S;W++)for(M=k;M<S;M++)G[W][M]=!1;for(k=0;k<X;k++)for(S=0;S<X;S++)(k<7&&S<7||k<7&&S>=X-
7||k>=X-7&&S<7)&&(G[k][S]=!1);var RJ;k=(RJ=w.markerColor)!=null?RJ:w.color;m1X(f,0,0,D,k);m1X(f,D*(X-7),0,D,k);m1X(f,0,D*(X-7),D,k);switch(w.cellStyle){case 0:RJ=G;G=RJ.length;k=w.cellSize;f.beginPath();for(S=0;S<G;S++)for(W=0;W<G;W++)RJ[S][W]&&f.rect(S*k,W*k,k,k);f.fillStyle=w.color;f.fill();break;case 1:RJ=G;G=RJ.length;k=w.cellSize;S=k*w.relativeCircleSize;f.fillStyle=w.color;f.beginPath();for(w=0;w<G;w++)for(W=0;W<G;W++)RJ[w][W]&&(f.beginPath(),f.ellipse((w+.5)*k,(W+.5)*k,S/2,S/2,0,0,2*Math.PI),
f.fill());f.fill();break;case 2:RJ=G;G=RJ.length;k=w.cellSize;f.fillStyle=w.color;w=[[1,1],[-1,1],[-1,-1],[1,-1]];f.beginPath();for(S=0;S<G;S++)for(W=0;W<G;W++)if(RJ[S][W])f.roundRect(S*k,W*k,k,k,k/2),S+1<G&&RJ[S+1][W]&&f.rect(S*k+k/2,W*k,k,k),W+1<G&&RJ[S][W+1]&&f.rect(S*k,W*k+k/2,k,k);else{M=S*k+k/2;qe=W*k+k/2;for(var tZ=0;tZ<4;tZ++){var wA=_.Z(w[tZ]),rA=wA.next().value;wA=wA.next().value;S+rA>=0&&S+rA<G&&W+wA>=0&&W+wA<G&&RJ[S+rA][W]&&RJ[S][W+wA]&&RJ[S+rA][W+wA]&&(rA=tZ*Math.PI/2,wA=k/2,f.moveTo(M+
wA*Math.cos(rA),qe+wA*Math.sin(rA)),f.arc(M,qe,k/2,rA,rA+Math.PI/2,!1),f.lineTo(M+wA*(Math.cos(rA)-Math.sin(rA)),qe+wA*(Math.cos(rA)+Math.sin(rA))),f.lineTo(M+wA*Math.cos(rA),qe+wA*Math.sin(rA)))}}f.fill()}V&&f.drawImage(V,(X-L)*D/2,(X-L)*D/2,L*D,L*D);f.restore();b.style.removeProperty("display")};
z.src=_.sh(m);_.hj(r)})};
_.g.hasCommunityPostRenderer=function(){var q,N,b,y;return!!((q=this.data)==null?0:(N=q.header)==null?0:(b=N.sharePanelHeaderRenderer)==null?0:(y=b.communityPost)==null?0:y.communityPostSectionRenderer)};
_.g.onTapClose=function(){_.By(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.g.getScreenLayer=function(){return this.screenLayer};
_.g.logSharePanelPage=function(){if(!_.x("enable_share_panel_navigation_logging_fix_on_web")){var q;if((q=this.data)!=null&&q.trackingParams){q=this.data.trackingParams;var N=this.parentClickTrackingParams;N=N?_.zT(N):void 0;var b=_.FR();_.DO(b,21760,N,{layer:7,parentLayer:0});b.graftServerVe(q,void 0,7);_.WT().dispatch(_.B3({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
xI.prototype.onDataChanged=xI.prototype.onDataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],xI.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],xI.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],xI.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],xI.prototype,"data",void 0);_.p([_.U({value:_.FE("SBOX_INAPPROPRIATE_CANCEL")}),_.P("design:type",String)],xI.prototype,"closeButtonAriaLabel",void 0);_.p([_.dq("yt-share-panel-header-renderer"),_.P("design:type",HTMLElement)],xI.prototype,"header",void 0);_.p([_.U({selector:zqf.parentClickTrackingParamsSelector}),_.P("design:type",String)],xI.prototype,"parentClickTrackingParams",void 0);_.p([_.U(),_.P("design:type",Object)],xI.prototype,"qrCodeEnabled",void 0);
_.p([_.dq("#scroller"),_.P("design:type",Object)],xI.prototype,"JSC$20496_scroller",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xI.prototype,"onDataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],xI);
_.a(xI,"ytd-unified-share-panel-renderer",function(){if(nGK!==void 0)return nGK;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return nGK=q},{mode:1});var tod;var vI=function(){var q=_.C.apply(this,arguments)||this;q.modernModal=!0;return q};
_.Y(vI,_.C);vI.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
vI.prototype.computeShouldHideOldButtons=function(){var q;return!((q=this.data)==null?0:q.button)};
_.$H.Object.defineProperties(vI.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var q,N;return(q=this.data)==null?void 0:(N=q.button)==null?void 0:N.buttonRenderer}}});
_.p([_.U(),_.P("design:type",Object)],vI.prototype,"data",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],vI.prototype,"ytEventForwardingBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],vI.prototype,"modernModal",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],vI.prototype,"buttonRendererData",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],vI);
_.a(vI,"ytd-modal-with-title-and-button-renderer",function(){if(tod!==void 0)return tod;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return tod=q},{mode:1});var mhf;var Gd=function(){return _.C.apply(this,arguments)||this};
_.Y(Gd,_.C);Gd.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("page-changed",this.page))};
Gd.prototype.pageChangedForBinding=Gd.prototype.pageChangedForBinding;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Gd.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Gd.prototype,"data",void 0);_.p([_.U(),_.P("design:type",String)],Gd.prototype,"page",void 0);_.p([_.FY("page"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Gd.prototype,"pageChangedForBinding",null);
_.p([_.I({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],Gd);
_.a(Gd,"ytd-account-item-section-header-renderer",function(){if(mhf!==void 0)return mhf;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return mhf=q},{mode:1});var rUB;var YI=function(){return _.C.apply(this,arguments)||this};
_.Y(YI,_.C);YI.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"}}}};
YI.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],YI.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],YI.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.tA),_.P("design:type",Object)],YI.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],YI.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!1}),_.P("design:type",Function)],YI.prototype,"onAccountItemTap",void 0);
_.p([_.I({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],YI);
_.a(YI,"ytd-account-item-section-renderer",function(){if(rUB!==void 0)return rUB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return rUB=q},{mode:1});var XLK;var VoK;var jjB=function(){return _.C.apply(this,arguments)||this};
_.Y(jjB,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],jjB.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],jjB.prototype,"data",void 0);_.p([_.I({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],jjB);
_.a(jjB,"ytd-accounts-dialog-header-renderer",function(){if(VoK!==void 0)return VoK;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return VoK=q},{mode:1});var xhc;var Qt=function(){return _.C.apply(this,arguments)||this};
_.Y(Qt,_.C);Qt.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Qt.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Qt.prototype,"data",void 0);_.p([_.I({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Qt);
_.a(Qt,"ytd-google-account-header-renderer",function(){if(xhc!==void 0)return xhc;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return xhc=q},{mode:1});var O3=function(){return _.C.apply(this,arguments)||this};
_.Y(O3,_.C);O3.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"}}}};
O3.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("page-changed",this.page))};
O3.prototype.pageChangedForBinding=O3.prototype.pageChangedForBinding;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],O3.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],O3.prototype,"data",void 0);_.p([_.U(),_.P("design:type",String)],O3.prototype,"page",void 0);
_.p([_.FY("page"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],O3.prototype,"pageChangedForBinding",null);_.p([_.I({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],O3);
_.oU()(O3,"ytd-account-section-list-renderer",function(){if(XLK===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);XLK=q}q=XLK;return q},{allowedProps:["data"],
mode:1});var v1K;var wQ=function(){var q=_.C.apply(this,arguments)||this;q.enableHandlesAccountMenuSwitcher=_.x("enable_handles_account_menu_switcher");return q};
_.Y(wQ,_.C);wQ.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
wQ.prototype.dataChanged=wQ.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],wQ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],wQ.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],wQ.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.p([_.dq("#avatar"),_.P("design:type",Object)],wQ.prototype,"avatar",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wQ.prototype,"dataChanged",null);_.p([_.I({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],wQ);
_.oU()(wQ,"ytd-active-account-header-renderer",function(){if(v1K===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);v1K=q}q=v1K;return q},{allowedProps:["data"],
mode:1});var G$C;var YHN;var is=function(){return _.C.apply(this,arguments)||this};
_.Y(is,_.C);is.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
is.prototype.onBackTap=function(){_.e2(this.hostElement,"yt-menu-back-tapped")};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],is.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],is.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],is.prototype,"data",void 0);_.p([_.I({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],is);
_.oU()(is,"ytd-simple-menu-header-renderer",function(){if(YHN===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);YHN=q}q=YHN;return q},{allowedProps:["data"],
mode:2});var Qjd;var O$N=function(){return _.C.apply(this,arguments)||this};
_.Y(O$N,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],O$N.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],O$N.prototype,"data",void 0);_.p([_.I({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],O$N);
_.a(O$N,"ytd-comment-video-thumbnail-header-renderer",function(){if(Qjd!==void 0)return Qjd;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Qjd=q},{mode:1});var wLX;var i$K=function(){return _.C.apply(this,arguments)||this};
_.Y(i$K,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],i$K.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],i$K.prototype,"data",void 0);_.p([_.I({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],i$K);
_.a(i$K,"ytd-abuse-type-selector-renderer",function(){if(wLX!==void 0)return wLX;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return wLX=q},{mode:1});var lwd;var KQa=(0,_.UsM)(_.n8.reportChannelAbuse,{isVideoIdSelectedSelector:function(q,N){return N in q.selectedVideoIds},
additionalContextSelector:function(q){return q.additionalContext},
impersonatedChannelUrlSelector:function(q){return q.impersonatedChannelUrl},
reportChannelAbuseSelector:function(q){return q}});var ls=function(){return _.C.apply(this,arguments)||this};
_.Y(ls,_.C);ls.prototype.attached=function(){var q=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){q.additionalContextInput.focusTextInput()})};
ls.prototype.handleAdditionalContextChanged=function(){var q=this;_.Uk(this,"ytd-report-channel-additional-context-update",function(){q.ytdReduxBehavior.dispatch(_.B3({type:"ADDITIONAL_CONTEXT_UPDATED",payload:q.additionalContext}))},300)};
ls.prototype.updateAdditionalContextFromBinding=function(q){this.additionalContext=q.detail.value};
ls.prototype.handleAdditionalContextChanged=ls.prototype.handleAdditionalContextChanged;_.p([_.O(_.H6),_.P("design:type",Object)],ls.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",String)],ls.prototype,"additionalContext",void 0);_.p([_.U({selector:KQa.additionalContextSelector}),_.P("design:type",String)],ls.prototype,"additionalContextRedux",void 0);_.p([_.U(),_.P("design:type",Object)],ls.prototype,"data",void 0);
_.p([_.dq("yt-text-input-form-field-renderer"),_.P("design:type",Object)],ls.prototype,"additionalContextInput",void 0);_.p([_.FY("additionalContext"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ls.prototype,"handleAdditionalContextChanged",null);_.p([_.I({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],ls);
_.a(ls,"ytd-report-channel-modal-additional-context-renderer",function(){if(lwd!==void 0)return lwd;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return lwd=q},{mode:1});var DhB;var Ke=function(){var q=_.C.apply(this,arguments)||this;q.nextButtonDisabled=null;q.submitEndpoint=null;q.navigationEndpoint=null;q.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return q};
_.Y(Ke,_.C);_.g=Ke.prototype;_.g.computeNextButtonData=function(q,N,b){var y={};N&&(y.navigationEndpoint=N);b&&(y.serviceEndpoint=b);q&&q.buttonRenderer&&_.nM.extend(y,q.buttonRenderer);return y};
_.g.handleReportChannelModalDisableNextButtonAction=function(q){this.setNextButtonIsDisabled(q)};
_.g.handleReportFormEndpointUpdateAction=function(q){this.setNextButtonIsDisabled(!!q.disableSubmitButton);this.resetEndpointData();q.submitEndpoint?this.submitEndpoint=q.submitEndpoint:q.submitNavigationEndpoint&&(this.navigationEndpoint=q.submitNavigationEndpoint)};
_.g.handleSignalActionSubmitForm=function(){var q,N=Object.keys(((q=this.reportChannelAbuseForm)==null?void 0:q.selectedVideoIds)||{}),b;q=((b=this.reportChannelAbuseForm)==null?void 0:b.additionalContext)||"";var y;b=((y=this.reportChannelAbuseForm)==null?void 0:y.impersonatedChannelUrl)||"";var J;if((J=this.data)==null?0:J.submitEndpoint){N={impersonated_channel_url:b,text:q,video_ids:N};var E;_.tz().resolve(_.rO).resolveCommand((E=this.data)==null?void 0:E.submitEndpoint,{form:Object.assign({},
N,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.g.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.g.onYtServiceRequestError=function(q){this.setNextButtonIsDisabled(!1);_.CT(this.hostElement,q.detail.error.message)};
_.g.setNextButtonIsDisabled=function(q){this.set("data.nextButton.buttonRenderer.isDisabled",q)};
_.g.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Ke.prototype.onYtServiceRequestError=Ke.prototype.onYtServiceRequestError;Ke.prototype.onYtServiceRequestCompleted=Ke.prototype.onYtServiceRequestCompleted;_.p([_.U(),_.P("design:type",Object)],Ke.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Ke.prototype,"nextButtonDisabled",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],Ke.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Ke.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ke.prototype,"submitEndpoint",void 0);_.p([_.U(),_.P("design:type",Object)],Ke.prototype,"navigationEndpoint",void 0);_.p([_.U({selector:KQa.reportChannelAbuseSelector}),_.P("design:type",Object)],Ke.prototype,"reportChannelAbuseForm",void 0);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ke.prototype,"onYtServiceRequestCompleted",null);_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ke.prototype,"onYtServiceRequestError",null);_.p([_.I({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Ke);
_.a(Ke,"ytd-report-channel-modal-footer-renderer",function(){if(DhB!==void 0)return DhB;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return DhB=q},{mode:1});var hqA;var DT=function(){var q=_.C.apply(this,arguments)||this;q.boundOnTapDismissButton=function(){q.closePopup()};
return q};
_.Y(DT,_.C);DT.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
DT.prototype.handleDataChanged=function(){_.Zy(this.hostElement)};
DT.prototype.closePopup=function(){_.By(this.hostElement,"yt-close-popup-action")};
DT.prototype.handleDataChanged=DT.prototype.handleDataChanged;_.p([_.U(),_.P("design:type",Object)],DT.prototype,"boundOnTapDismissButton",void 0);_.p([_.U(),_.P("design:type",Object)],DT.prototype,"data",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],DT.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],DT.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DT.prototype,"handleDataChanged",null);_.p([_.I({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],DT);
_.a(DT,"ytd-report-channel-modal-header-renderer",function(){if(hqA!==void 0)return hqA;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return hqA=q},{mode:1});var k$c;var hk=function(){var q=_.C.apply(this,arguments)||this;q.autoValidate=!1;q.invalid=!1;q.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return q};
_.Y(hk,_.C);_.g=hk.prototype;_.g.attached=function(){var q=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){q.channelUrlInput.focusTextInput()})};
_.g.disableNextButton=function(q){_.By(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[q])};
_.g.handleImpersonatedChannelUrlChanged=function(){var q=this;this.disableNextButton(!0);this.invalid=!1;_.Uk(this,"ytd-report-channel-impersonated-channel-update",function(){var N=q.impersonatedChannelUrl.trim();q.ytdReduxBehavior.dispatch(_.B3({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:N}));var b;((b=q.data)==null?0:b.submitEndpoint)&&N&&_.tz().resolve(_.rO).resolveCommand(q.data.submitEndpoint,{form:{impersonated_channel_url:N,element:q.hostElement}})},500)};
_.g.handleModifyReportFormCommand=function(q){this.invalid=this.get("modifyReportFormCommand.action",q)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.g.updateInvalidFromBinding=function(q){this.invalid=q.detail.value};
_.g.updateImpersonatedChannelUrlFromBinding=function(q){this.impersonatedChannelUrl=q.detail.value};
hk.prototype.handleImpersonatedChannelUrlChanged=hk.prototype.handleImpersonatedChannelUrlChanged;_.p([_.O(_.H6),_.P("design:type",Object)],hk.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],hk.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],hk.prototype,"autoValidate",void 0);_.p([_.U(),_.P("design:type",Object)],hk.prototype,"invalid",void 0);
_.p([_.U(),_.P("design:type",String)],hk.prototype,"impersonatedChannelUrl",void 0);_.p([_.U({selector:KQa.impersonatedChannelUrlSelector}),_.P("design:type",String)],hk.prototype,"impersonatedChannelUrlRedux",void 0);_.p([_.U(),_.P("design:type",Object)],hk.prototype,"data",void 0);_.p([_.dq("#text-input"),_.P("design:type",Object)],hk.prototype,"channelUrlInput",void 0);
_.p([_.FY("impersonatedChannelUrl"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hk.prototype,"handleImpersonatedChannelUrlChanged",null);_.p([_.I({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],hk);
_.a(hk,"ytd-report-channel-modal-impersonation-renderer",function(){if(k$c!==void 0)return k$c;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return k$c=q},{mode:1});var UhC;var fwC;var kI=function(){return _.C.apply(this,arguments)||this};
_.Y(kI,_.C);kI.prototype.onCheckboxToggled=function(q){var N,b,y=(b=_.v((N=this.data)==null?void 0:N.video,_.ge))==null?void 0:b.videoId;y&&this.ytdReduxBehavior.dispatch(q.target.checked?_.B3({type:"VIDEO_SELECTED",payload:y}):_.B3({type:"VIDEO_UNSELECTED",payload:y}))};
kI.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.$H.Object.defineProperties(kI.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var q,N=(q=this.data)==null?void 0:q.video;if(!N)return{};var b;q=(b=_.v(N,_.ge))==null?void 0:b.navigationEndpoint;if(!q)return N;_.v(q==null?void 0:q.commandMetadata,_.gg)&&(_.v(q.commandMetadata,_.gg).ignoreNavigation=!0);return N}}});
_.p([_.U({reflectToAttribute:!0,selector:KQa.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.P("design:type",Boolean)],kI.prototype,"checked",void 0);_.p([_.U(),_.P("design:type",Object)],kI.prototype,"data",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],kI.prototype,"video",null);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],kI.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],kI.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],kI.prototype,"ytdReduxBehavior",void 0);_.p([_.I({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],kI);
_.a(kI,"ytd-selectable-video-renderer",function(){if(fwC!==void 0)return fwC;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return fwC=q},{mode:1});var U3=function(){var q=_.C.apply(this,arguments)||this;q.monitorScroll=!0;return q};
_.Y(U3,_.C);U3.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],U3.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],U3.prototype,"data",void 0);_.p([_.I({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],U3);
_.a(U3,"ytd-selectable-video-list-renderer",function(){if(UhC!==void 0)return UhC;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return UhC=q},{mode:1});var ChW;_.xP("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var fe=function(){return _.C.apply(this,arguments)||this};
_.Y(fe,_.C);fe.prototype.onChange=function(q){if(q=_.a0(q).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.x("kevlar_command_handler_migration_killswitch"))_.Nc(this.hostElement,q,this.hostElement);else{q=_.Z(q);for(var N=q.next();!N.done;N=q.next())this.ytComponentBehavior.resolveCommand(N.value)}};
fe.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
fe.prototype.updateDataToggledFromBinding=function(q){this.set("data.toggled",q.detail.value)};
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],fe.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],fe.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],fe.prototype,"data",void 0);_.p([_.U({computed:"isEnabled(data)"}),_.P("design:type",Boolean)],fe.prototype,"enabled",void 0);_.p([_.I({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],fe);
_.a(fe,"ytd-toggle-item-renderer",function(){if(ChW!==void 0)return ChW;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return ChW=q},{mode:1});var IwB;var TGA;var sjK;var Ce=function(){var q=_.C.apply(this,arguments)||this;q.setVisible=!1;q.boundOnSubmitButtonClick=function(){q.onSubmitButtonClick()};
q.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return q};
_.Y(Ce,_.C);Ce.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}}}}}};
Ce.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
Ce.prototype.onSubmitButtonClick=function(){var q;((q=this.data)==null?0:q.submitEndpoint)&&!_.x("enable_ytc_refunds_submit_form_signal_action")&&_.qc(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
Ce.prototype.handleSignalActionSubmitForm=function(){var q;((q=this.data)==null?0:q.submitEndpoint)&&_.qc(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.$H.Object.defineProperties(Ce.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.hiddenByDefault)&&!this.setVisible}}});
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Ce.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Ce.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ce.prototype,"setVisible",void 0);_.p([_.U(),_.P("design:type",Object)],Ce.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Object)],Ce.prototype,"surveyFeedbackData",void 0);_.p([_.U(),_.P("design:type",Object)],Ce.prototype,"boundOnSubmitButtonClick",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data","setVisible"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ce.prototype,"visibilityHidden",null);_.p([_.Ok({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],Ce);
_.a(Ce,"yt-flow-footer-renderer",function(){if(sjK===void 0){var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;TGA===void 0&&(TGA=document.createElement("template"));var y=TGA;b.call(N,y.content.cloneNode(!0),q.content.firstChild);sjK=q}q=sjK;return q},{mode:2});var n1d=(0,_.UsM)(_.n8.ypc,{surveyFeedbackDataSelector:function(q){return q.surveyFeedbackData}});var Id=function(){return _.C.apply(this,arguments)||this};
_.Y(Id,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],Id.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Id.prototype,"data",void 0);_.p([_.U({selector:n1d.surveyFeedbackDataSelector}),_.P("design:type",Object)],Id.prototype,"surveyFeedbackData",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Id);
_.a(Id,"ytd-flow-footer-renderer",function(){if(IwB!==void 0)return IwB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return IwB=q},{mode:_.Am("kevlar_poly_si_batch_j025")?1:2});var awK;var SHN;var Td=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return q};
_.Y(Td,_.C);_.g=Td.prototype;_.g.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.vk("multiPageMenuSectionItems")}}};
_.g.handleHideEnclosingAction_=function(q){if(this.data&&this.data.items)for(var N=0;N<this.data.items.length;N++){var b=this.data.items[N].notificationRenderer;if(b&&b.notificationId==q.hideEnclosingAction.notificationId){this.splice("data.items",N,1);_.By(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.g.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.bL(this.hostElement,"hidden",!0)};
_.g.updateMenu_=function(q){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&q&&!q.doNotRefreshInbox){q=this.data.continuations;for(var N=0;N<q.length;N++)if(q[N].invalidationContinuationData){var b=void 0;var y=(b=q[N].invalidationContinuationData)==null?void 0:b.continuation;break}q=_.nM.clone(this.data.continuationUpdateEndpoint||null);q.continuation=y;q.click_tracking_params=this.data.trackingParams;_.qc(this.hostElement,[q])}};
_.g.onServiceRequestCompleted_=function(q,N){if(this.data&&(q=N.actions)){N=0;for(var b=q.length;N<b;N++){var y=_.v(q[N],_.Tkx);if(!y)break;if((y.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||y.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&y.continuationItems&&this.data.items){var J=this.data.items.length-1;this.data.items[J].continuationItemRenderer&&(y=["data.items",J,1].concat(y.continuationItems),this.splice.apply(this,y))}}}};
Td.prototype.onServiceRequestCompleted_=Td.prototype.onServiceRequestCompleted_;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Td.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Td.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Td.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Td.prototype,"data",void 0);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],Td.prototype,"onServiceRequestCompleted_",null);_.p([_.Ok({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],Td);
_.oU()(Td,"yt-multi-page-menu-section-renderer",function(){if(SHN===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;awK===void 0&&(awK=document.createElement("template"));var y=awK;b.call(N,y.content.cloneNode(!0),q.content.firstChild);SHN=q}q=SHN;return q},{allowedProps:["data"],
mode:2});var WQW;var LQa;var s3=function(){return _.C.apply(this,arguments)||this};
_.Y(s3,_.C);s3.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.$H.Object.defineProperties(s3.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.progress)==null?0:this.data.progress*100}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],s3.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],s3.prototype,"data",void 0);_.p([_.l("data.progress"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],s3.prototype,"showProgressBar",null);
_.p([_.l("data.progress"),_.P("design:type",Number),_.P("design:paramtypes",[])],s3.prototype,"progress",null);_.p([_.Ok({is:"yt-flow-header-renderer",disableElementRegistration:!0})],s3);
_.a(s3,"yt-flow-header-renderer",function(){if(LQa===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;WQW===void 0&&(WQW=document.createElement("template"));var y=WQW;b.call(N,y.content.cloneNode(!0),q.content.firstChild);LQa=q}q=LQa;return q},{mode:2});var pLC;var PhC;var ne=function(){return _.C.apply(this,arguments)||this};
_.Y(ne,_.C);ne.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ne.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ne.prototype,"data",void 0);_.p([_.Ok({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],ne);
_.a(ne,"yt-post-confirmation-flow-step-renderer",function(){if(PhC===void 0){var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;pLC===void 0&&(pLC=document.createElement("template"));var y=pLC;b.call(N,y.content.cloneNode(!0),q.content.firstChild);PhC=q}q=PhC;return q},{mode:2});var Mox;var o1C;var ad=function(){return _.C.apply(this,arguments)||this};
_.Y(ad,_.C);
ad.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"}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ad.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ad.prototype,"data",void 0);_.p([_.Ok({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],ad);
_.a(ad,"yt-refund-confirmation-flow-step-renderer",function(){if(o1C===void 0){var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;Mox===void 0&&(Mox=document.createElement("template"));var y=Mox;b.call(N,y.content.cloneNode(!0),q.content.firstChild);o1C=q}q=o1C;return q},{mode:2});var AUa=_.n(function(q){var N=q.data;return _.u("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.u("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.u(_.s_,{data:function(){return{thumbnails:[{url:N().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.u("div",{class:"profileBadgeViewModelContent"},_.u("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return N().badgeDesc}),_.u(_.t,{cond:function(){return N().badgeSubtitle},
then:function(){return _.u("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return N().badgeSubtitle})}})))},"mj");
AUa.idomCompat=!0;var eqW=_.n(function(q){var N=q.data;return _.u("yt-comment-interaction-view-model",{el:_.ai(_.QR(function(){return N().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.u("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return N().onTapA11yLabel},
"on:keydown":_.nXJ(),tabindex:0},_.u("div",{class:"ytCommentInteractionViewModelHeader"},_.u("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return N().headerPrefix},' "',function(){return N().videoTitle}),_.u("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.u("div",{class:"ytCommentInteractionViewModelContent"},_.u("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return N().commentContent}),_.u("div",{class:"ytCommentInteractionViewModelChevron"},
_.u(_.s_,{data:function(){return{thumbnails:[{url:N().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"nj");
eqW.idomCompat=!0;var BGx=_.n(function(q){var N=q.data;return _.u("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.u(_.zS,{data:function(){return N().avatar}},{avatarViewModel:_.HF}),_.u("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return N().channelName}))},"oj");
BGx.idomCompat=!0;var yFd=_.n(function(q){var N=q.data;q={};return _.u("yt-profile-info-view-model",{class:_.NO("ytProfileInfoViewModelHost",(q.ytProfileInfoViewModelWithVideoShelf=function(){return N().videosHorizontalShelf},q))},_.u(H$A,{profileInfo:N}),_.u(_.zS,{data:function(){return N().videosHorizontalShelf}},{horizontalShelfViewModel:function(b){return _.u("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.u(_.uF,{data:b.data}))}}),_.u(_.t,{cond:function(){return N().comments},
then:function(){return _.u(qsX,{profileInfo:N})}}),_.u(_.t,{cond:function(){return N().sharedSubscriptionsTitle},
then:function(){return _.u(_.t,{cond:function(){return N().subscriptionsAccessButtonCommand},
then:function(){return _.u(NvW,{profileInfo:N})},
else:function(){return _.u(bfB,{profileInfo:N})}})}}))},"pj");
yFd.idomCompat=!0;var qsX=_.n(function(q){var N=q.profileInfo;return _.u("div",{class:"ytProfileInfoViewModelActivity"},_.u("div",{class:"ytProfileInfoViewModelHeader"},_.u("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return N().commentsInteractionTitle})),_.u(_.zS,{data:function(){return N().comments}},{commentInteractionViewModel:function(b){return _.u("div",{class:"ytProfileInfoViewModelActivity"},_.u(eqW,{data:b.data}))}}))},"qj"),NvW=_.n(function(q){var N=q.profileInfo;
return _.u("div",{class:"ytProfileInfoViewModelSubSection"},_.u("div",{class:"ytProfileInfoViewModelSubHeader"},_.u(_.Vf,{command:function(){return N().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.u("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return N().sharedSubscriptionsTitle}),_.u("div",null,_.u(_.zS,{data:function(){return N().subscriptionsAccessButton}},{buttonViewModel:_.Ou})))),_.u(JFd,{sharedSubscriptions:function(){var b;
return((b=N().sharedSubscriptions)==null?void 0:b.slice(0,5))||[]}}))},"rj"),bfB=_.n(function(q){var N=q.profileInfo;
return _.u("div",{class:"ytProfileInfoViewModelSubSection"},_.u("div",{class:"ytProfileInfoViewModelSubHeader"},_.u("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return N().sharedSubscriptionsTitle})),_.u(JFd,{sharedSubscriptions:function(){var b;
return((b=N().sharedSubscriptions)==null?void 0:b.slice(0,5))||[]}}))},"sj"),JFd=_.n(function(q){return _.u("div",{class:"ytProfileInfoViewModelSubs"},_.u(_.zS,{data:q.sharedSubscriptions},{sharedSubscriptionViewModel:function(N){return _.u("div",{class:"ytProfileInfoViewModelSub"},_.u(BGx,{data:N.data}))}}))},"tj"),H$A=_.n(function(q){var N=q.profileInfo;
return _.u("div",{class:"ytProfileInfoViewModelActivity"},_.u(_.Tf,{each:function(){return[N().profileBadgeInfoYtWide,N().profileBadgeInfoChannelWide].filter(function(b){return!!b})},
keyBy:"INDEX"},function(b){return _.u(_.rV,null,_.u("div",{class:"ytProfileInfoViewModelHeader"},_.u("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return b().profileSectionTitle}),_.u("div",{class:"ytProfileInfoViewModelSectionDesc"},_.u("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var y;
return(y=b().commentBadge)==null?void 0:y.commentDesc}),_.u(_.t,{cond:function(){var y;
return(y=b().commentBadge)==null?void 0:y.blackHeartDesc},
then:function(){return _.u("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.u("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.u(_.s_,{data:function(){var y;
return{thumbnails:[{url:(y=b().commentBadge)==null?void 0:y.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.u("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var y;return(y=b().commentBadge)==null?void 0:y.blackHeartDesc}))),_.u("div",{class:"ytProfileInfoViewModelBadge"},_.u(_.Tf,{each:function(){return b().badges||[]}},function(y){return _.u(AUa,{data:y})})))}))},"uj");var EWd=_.n(function(q){var N=q.data;var b=function(){return N().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.u("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.u(_.zS,{data:function(){return N().profileIdentityInfo}},{profileIdentityInfoViewModel:function(y){return _.u(_.tgA,{data:y.data,
hideDivider:b,isChannelInfoCard:b})},
profileInfoViewModel:yFd}),_.u(_.zS,{data:function(){return N().profileInfo}},{profileIdentityInfoViewModel:_.tgA,
profileInfoViewModel:yFd}))},"vj");
EWd.idomCompat=!0;_.P$(EWd,"yt-profile-card-view-model",{props:{data:_.F5}});var S3=function(){var q=_.C.apply(this,arguments)||this;q.enableFocusFix=_.x("music_web_enable_focus_on_setting_menu_fix")&&_.ou("IS_MOBILE_WEB",!1);q.covered=!1;q.hideMenu=!1;q.isCommentNotificationOnProfileCard=!1;q.scrolledByTouch=!1;q.disableBackdropFilter=_.x("web_disable_backdrop_filter");q.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return q};
_.Y(S3,_.C);_.g=S3.prototype;
_.g.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"}}}};
_.g.ready=function(){var q=this;this.JSC$20597_containerElement.addEventListener("scroll",function(){q.ytRendererBehavior.markDirty()})};
_.g.attributeChanged=function(q,N){q==="menu-style"&&_.By(this.hostElement,"yt-multi-page-menu-closed-action",[N])};
_.g.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.gq(this,this.focusOnStampFinished))};
_.g.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.gq(this,this.focusOnStampFinished))};
_.g.reset=function(){this.closeJobId&&(_.pY.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.g.focusOnStampFinished=function(q){q.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.gq(this,this.focusOnStampFinished)),this.doFocus())};
_.g.doFocus=function(){var q=_.n_F(this.sectionsElement);q.length&&q[0].focus()};
_.g.computeMenuStyle=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.g.computeIsCommentNotificationOnProfileCard=function(q){return _.x("enable_profile_cards_on_comments")&&q.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.g.computeHideMenu=function(q,N){return q||!(!N||!N.showLoadingSpinner)};
_.g.onPopupClosed=function(){this.isPopUpOpen=!1;_.By(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.g.onPopupOpened=function(q,N){this.isPopUpOpen=!0;N.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.e2(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.B3({type:"CHANNEL_REPORT_RESET"})))};
_.g.onYtNavigate=function(q,N){this.shouldCloseOnNavigateEvent(N.endpoint)&&_.By(this.hostElement,"yt-close-all-popups-action")};
_.g.handleEndpoint=function(q){q=_.v(q,_.Ha);!this.isCommentNotificationOnProfileCard&&q&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20597_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.g.handleActions=function(q){for(var N=0,b=q.length;N<b;N++){var y=_.v(q[N],Oup);y&&this.handleGetMultiPageMenuAction(y);(y=_.v(q[N],_.Tkx))&&this.handleAppendContinuationItemsAction(y)}};
_.g.onServiceRequestSentOrCompleted=function(q,N){q.detail&&q.detail.endpoint&&this.handleEndpoint(q.detail.endpoint);N.actions&&this.handleActions(N.actions)};
_.g.handleGetMultiPageMenuAction=function(q){var N=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.ee(this.submenuElement).appendChild(N);(q=q.menu.multiPageMenuRenderer)&&this.logSubmenu(q);N.data=q;N.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.g.handleAppendContinuationItemsAction=function(q){if(this.data&&q.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&q.continuationItems&&this.data.sections){var N=this.data.sections.length-1;this.data.sections[N].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),N--);if(this.data.sections[N].multiPageMenuNotificationSectionRenderer&&q.continuationItems){q=_.Z(q==null?void 0:q.continuationItems);for(var b=q.next();!b.done;b=q.next())if(b=b.value,_.v(b,Huc)){var y=
void 0,J=void 0,E=void 0,F=void 0,R=void 0;((y=this)==null?0:(J=y.data)==null?0:(E=J.sections)==null?0:(F=E[N])==null?0:(R=F.multiPageMenuNotificationSectionRenderer)==null?0:R.items)&&this.push("data.sections."+N+".multiPageMenuNotificationSectionRenderer.items",b)}else if(_.v(b,_.iiT)||_.v(b,_.SP))this.push("data.sections",b),N++}}};
_.g.logSubmenu=function(q){if(!_.x("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var N=this.ytRendererBehavior.getScreenLayer(),b=_.Oe(N),y=_.QY(N);if((q=q.trackingParams)&&b&&y){var J=_.zT(q);_.x("combine_ve_grafts")?_.FR().graftServerVe(q,y,N):_.fr(b,y,J)}}};
_.g.emptySubmenuContainer=function(){for(var q=_.ee(this.submenuElement);q.firstChild;)q.removeChild(q.firstChild)};
_.g.onMenuBackTap=function(q){_.e2(this.hostElement,"yt-submenu-closed");q.stopPropagation()};
_.g.onSubmenuClosed=function(q){_.a0(q)!==this.hostElement&&(this.covered=!1,_.e2(this.hostElement,"yt-refit"),q.stopPropagation())};
_.g.onRetrieveLocation=function(q,N){N.hasComments&&(N.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),q.stopPropagation())};
_.g.shouldCloseOnNavigateEvent=function(q){if(!q)return!0;if(_.v(q,_.ZV4)||_.v(q,_.FuJ)||_.v(q,_.gYR)||_.v(q,_.b_))return!1;var N;return((N=_.v(q==null?void 0:q.commandMetadata,_.gg))==null?0:N.ignoreNavigation)?!1:!0};
_.g.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.g.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.g.refitAfterRender=function(){var q=this;_.ut(this,function(){_.e2(q.hostElement,"yt-refit")})};
S3.prototype.refitAfterRender=S3.prototype.refitAfterRender;S3.prototype.onRetrieveLocation=S3.prototype.onRetrieveLocation;S3.prototype.onSubmenuClosed=S3.prototype.onSubmenuClosed;S3.prototype.onMenuBackTap=S3.prototype.onMenuBackTap;S3.prototype.onServiceRequestSentOrCompleted=S3.prototype.onServiceRequestSentOrCompleted;S3.prototype.onYtNavigate=S3.prototype.onYtNavigate;S3.prototype.onPopupOpened=S3.prototype.onPopupOpened;S3.prototype.onPopupClosed=S3.prototype.onPopupClosed;
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],S3.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],S3.prototype,"ytEventForwardingBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],S3.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],S3.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],S3.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Object)],S3.prototype,"enableFocusFix",void 0);_.p([_.U(),_.P("design:type",Object)],S3.prototype,"covered",void 0);_.p([_.U({computed:"computeHideMenu(covered, data)"}),_.P("design:type",Object)],S3.prototype,"hideMenu",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.P("design:type",String)],S3.prototype,"menuStyle",void 0);
_.p([_.U({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.P("design:type",Object)],S3.prototype,"isCommentNotificationOnProfileCard",void 0);_.p([_.U(),_.P("design:type",Boolean)],S3.prototype,"isPopUpOpen",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],S3.prototype,"scrolledByTouch",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],S3.prototype,"disableBackdropFilter",void 0);
_.p([_.dq("#sections"),_.P("design:type",HTMLElement)],S3.prototype,"sectionsElement",void 0);_.p([_.dq("#spinner"),_.P("design:type",HTMLElement)],S3.prototype,"spinnerElement",void 0);_.p([_.dq("#header"),_.P("design:type",HTMLElement)],S3.prototype,"headerElement",void 0);_.p([_.dq("#container"),_.P("design:type",HTMLElement)],S3.prototype,"JSC$20597_containerElement",void 0);_.p([_.dq("#submenu"),_.P("design:type",HTMLElement)],S3.prototype,"submenuElement",void 0);
_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],S3.prototype,"onPopupClosed",null);_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],S3.prototype,"onPopupOpened",null);_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],S3.prototype,"onYtNavigate",null);
_.p([_.ZP("yt-service-request-completed"),_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],S3.prototype,"onServiceRequestSentOrCompleted",null);_.p([_.ZP("yt-menu-back-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],S3.prototype,"onMenuBackTap",null);
_.p([_.ZP("yt-submenu-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],S3.prototype,"onSubmenuClosed",null);_.p([_.ZP("yt-retrieve-location"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],S3.prototype,"onRetrieveLocation",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],S3.prototype,"refitAfterRender",null);
_.p([_.I({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],S3);
_.a(S3,"ytd-multi-page-menu-renderer",function(){if(G$C!==void 0)return G$C;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return G$C=q},{mode:1});var gWU;var WI=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return q};
_.Y(WI,_.C);_.g=WI.prototype;_.g.created=function(){this.showTooltips=!0};
_.g.computeAccessibility_=function(q){return this.get("accessibility.accessibilityData",q)||null};
_.g.onTap=function(){var q=_.Hy(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(q&&q.length===1&&q[0])_.By(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var N;if((N=this.data)==null?0:N.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var b;((b=this.data)==null?0:b.menuRequest)&&_.qc(this.hostElement,[this.data.menuRequest])}}};
_.g.handleTopbarMenuClosedAction=function(q){var N,b;(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(q)===((N=this.data)==null?void 0:(b=N.icon)==null?void 0:b.iconType)&&this.toggleIconState(!1)};
_.g.toggleIconState=function(q){_.x("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=q)};
_.g.handleUpdateTopbarAvatarAction=function(q){var N;q=(N=_.v(q,hHK))==null?void 0:N.avatarUrl;var b,y;N=(b=this.data)==null?void 0:(y=b.avatar)==null?void 0:y.thumbnails;q&&N&&(b={thumbnails:[Object.assign({},N[0],{url:q})]},this.set("data.avatar",b))};
_.$H.Object.defineProperties(WI.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.ee(this.hostElement).querySelector("#button")}}});
WI.prototype.onTap=WI.prototype.onTap;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],WI.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.r7),_.P("design:type",Object)],WI.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.O(_.Qhx.YtButtonBehavior),_.P("design:type",Object)],WI.prototype,"ytButtonBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],WI.prototype,"data",void 0);
_.p([_.dq("yt-icon-button#button"),_.P("design:type",Object)],WI.prototype,"iconButton",void 0);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WI.prototype,"onTap",null);_.p([_.I({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],WI);
_.oU()(WI,"ytd-topbar-menu-button-renderer",function(){if(gWU===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);gWU=q}q=gWU;return q},{allowedProps:["data"],
mode:1});var Zff;var Le=function(){return _.C.apply(this,arguments)||this};
_.Y(Le,_.C);Le.prototype.getSelected=function(){return this.reasons.selected};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Le.prototype,"data",void 0);_.p([_.dq("#reasons"),_.P("design:type",Object)],Le.prototype,"reasons",void 0);_.p([_.I({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Le);
_.a(Le,"ytd-ad-feedback-content",function(){if(Zff!==void 0)return Zff;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Zff=q},{mode:1});var FZW;var pe=function(){return _.C.apply(this,arguments)||this};
_.Y(pe,_.C);_.g=pe.prototype;_.g.onPopupOpened=function(){_.By(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.g.computeConfirmButton=function(q){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:q.confirmLabel}};
_.g.computeCancelButton=function(q){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:q.cancelLabel}};
_.g.onConfirmTap=function(){var q=this.content.getSelected();q!==void 0&&(q=this.data.reasons[q].endpoint)&&(_.tz().resolve(_.rO).resolveCommand(q,{form:{element:this.hostElement}}),_.By(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.g.sendFeedbackSubmitToastAction=function(){var q;(q=this.data)!=null&&q.completionMessage&&(q=_.pD(this.data.completionMessage),_.By(this.hostElement,"yt-open-popup-action",[q,this]))};
_.g.onCancelTap=function(){_.By(this.hostElement,"yt-close-popup-action")};
pe.prototype.onPopupOpened=pe.prototype.onPopupOpened;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],pe.prototype,"data",void 0);_.p([_.dq("#content"),_.P("design:type",Object)],pe.prototype,"content",void 0);_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],pe.prototype,"onPopupOpened",null);
_.p([_.I({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],pe);
_.a(pe,"ytd-ad-feedback-renderer",function(){if(FZW!==void 0)return FZW;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return FZW=q},{mode:1});var R8f;var d5f=function(){return _.C.apply(this,arguments)||this};
_.Y(d5f,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],d5f.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],d5f.prototype,"data",void 0);_.p([_.I({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],d5f);
_.a(d5f,"ytd-ad-info-dialog-content",function(){if(R8f!==void 0)return R8f;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return R8f=q},{mode:1});var cFd;var PI=function(){return _.C.apply(this,arguments)||this};
_.Y(PI,_.C);PI.prototype.computeConfirmButton=function(q){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:q.confirmLabel}};
PI.prototype.onConfirmTap=function(){_.By(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
PI.prototype.computeShouldShowTitle=function(){var q;return!((q=this.data)==null||!q.title)};
PI.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.tz().resolve(_.rO).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
PI.prototype.onPopupClosed=PI.prototype.onPopupClosed;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],PI.prototype,"data",void 0);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],PI.prototype,"onPopupClosed",null);_.p([_.I({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],PI);
_.a(PI,"ytd-ad-info-dialog-renderer",function(){if(cFd!==void 0)return cFd;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return cFd=q},{mode:1});var u7U;var MX=function(){var q=_.C.apply(this,arguments)||this;q.actionButtonClass="action-button";q.dismissButtonId="dismiss-button";q.dialogDismiss=!0;return q};
_.Y(MX,_.C);_.g=MX.prototype;_.g.computeInPlayer=function(q){return(q==null?void 0:q.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.g.computedLogo=function(){var q,N;return this.isDarkTheme()?(q=this.data)==null?void 0:q.logoDark:(N=this.data)==null?void 0:N.logo};
_.g.computedHeaderImage=function(){var q,N;return this.isDarkTheme()?(q=this.data)==null?void 0:q.headerImageDark:(N=this.data)==null?void 0:N.headerImage};
_.g.computeLogoIconId=function(){var q,N,b,y=(q=this.computedLogo())==null?void 0:(N=q.sources)==null?void 0:(b=N[0])==null?void 0:b.height;return y&&y%31===0?"logo-icon-with-padding":"logo-icon"};
_.g.computeLogoIconHeight=function(){var q,N,b,y=(q=this.computedLogo())==null?void 0:(N=q.sources)==null?void 0:(b=N[0])==null?void 0:b.height;return y&&y%31===0?"31":"24"};
_.g.onPopupClosed=function(){_.tz().resolve(_.p$).dispose()};
_.g.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.g.onShow=function(){this.inPlayer&&_.g5(6);this.titleElement.focus()};
_.g.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var q=0;q<this.data.impressionEndpoints.length;q++){var N=_.v(this.data.impressionEndpoints[q],_.QI);N&&this.ytComponentBehavior.resolveCommand(N)}};
_.g.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.By(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.$H.Object.defineProperties(MX.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var q,N;return!((q=this.data)==null||!q.headerImageDark)&&!((N=this.data)==null||!N.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.secondaryButton)}}});
MX.prototype.onPopupClosed=MX.prototype.onPopupClosed;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],MX.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.yf.YtVisibilityBehavior),_.P("design:type",Object)],MX.prototype,"ytVisibilityBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],MX.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Object)],MX.prototype,"actionButtonClass",void 0);_.p([_.U(),_.P("design:type",Object)],MX.prototype,"dismissButtonId",void 0);_.p([_.U(),_.P("design:type",Object)],MX.prototype,"dialogDismiss",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],MX.prototype,"hasHeaderImage",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],MX.prototype,"hasPremiumButton",null);
_.p([_.U({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.P("design:type",Boolean)],MX.prototype,"inPlayer",void 0);_.p([_.dq("#dismiss-button"),_.P("design:type",HTMLElement)],MX.prototype,"dismissButton",void 0);_.p([_.dq("#title"),_.P("design:type",HTMLElement)],MX.prototype,"titleElement",void 0);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],MX.prototype,"onPopupClosed",null);
_.p([_.I({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],MX);
_.a(MX,"ytd-enforcement-message-view-model",function(){if(u7U!==void 0)return u7U;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return u7U=q},{mode:1});var z8a;var $5p;var od=function(){var q=_.C.apply(this,arguments)||this;q.TEST_ONLY={immediateValidation:function(){q.immediateValidation()},
onValidationResponse:function(N){q.onValidationResponse(N)},
onGenerateHandleFromNameResponse:function(N){q.onGenerateHandleFromNameResponse(N)}};
return q};
_.Y(od,_.C);_.g=od.prototype;_.g.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.g.validate=function(){this.immediateValidation()};
_.g.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.g.setHandleInputValue=function(q){this.handleDir=this.getHandleDir(q);this.handleInput.value=q;this.validationState={status:"PENDING"};this.immediateValidation()};
_.g.getHandleDir=function(q){var N=q===""&&!1;return(N=_.Jeq.test.call(_.Jeq,q))?"rtl":"ltr"};
_.g.onDataChanged=function(){var q,N;this.handleDir=this.getHandleDir((N=(q=this.data)==null?void 0:q.handle)!=null?N:"");var b;this.validationState=((b=this.data)==null?0:b.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var y;((y=this.data)==null?0:y.validateOnInit)&&this.immediateValidation()};
_.g.stopPropagation=function(q){q.stopPropagation()};
_.g.onInput=function(){var q;this.handleDir=this.getHandleDir((q=this.handleInput.value)!=null?q:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.g.onFocusout=function(q){this.handleInput.contains(q.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.g.delayedValidation=function(){var q,N;this.debouncedValidation((N=(q=this.data)==null?void 0:q.validationDelayMs)!=null?N:1E3)};
_.g.immediateValidation=function(){this.debouncedValidation(0)};
_.g.debouncedValidation=function(q){var N=this;_.Uk(this,"debouncedValidation",function(){var b,y=N.staticValidation((b=N.handleInput.value)!=null?b:"");if(y!==void 0)N.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:y};else{var J;if((J=N.data)!=null&&J.validateChannelHandleCommand){N.validationState={status:"LOADING"};var E;N.ytComponentBehavior.resolveCommand(N.data.validateChannelHandleCommand,{form:{handle:(E=N.handleInput.value)!=null?E:""},commandController:{onSuccess:function(F,
R){N.onValidationResponse(R)},
onServerError:function(F,R){N.onValidationServerError(R)}}})}else N.handleUnexpectedValidationError(new _.IO("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",N.data))}},q)};
_.g.staticValidation=function(q){var N;if(((N=this.data)==null?void 0:N.channelHandleStaticValidationParams)!==void 0){N=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(q)&&N.validValueRegexpErrorMessage!==void 0)return N.validValueRegexpErrorMessage;if(N.minLength!==void 0&&q.length<N.minLength&&N.minLengthErrorMessage!==void 0)return N.minLengthErrorMessage;if(N.maxLength!==void 0&&q.length>N.maxLength&&N.maxLengthErrorMessage!==void 0)return N.maxLengthErrorMessage}};
_.g.onValidationResponse=function(q){var N=_.v(q.result,k7p);N===void 0?this.handleUnexpectedValidationError(new _.IO("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",q)):this.handleValidationResultRenderer(N)};
_.g.onValidationServerError=function(q){this.handleUnexpectedValidationError(new _.IO("ValidateChannelHandle request failed.",q))};
_.g.handleValidationResultRenderer=function(q){if(q.handle===void 0)this.handleUnexpectedValidationError(new _.IO("ChannelHandleValidationResultRenderer does not contain handle.",q));else if(q.handle===this.handleInput.value)switch(q.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:q.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:q.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.IO("Unrecognized ChannelHandleValidationResult",q));break;default:_.ol(q.result)}};
_.g.handleUnexpectedValidationError=function(q){var N;this.validationState={status:"UNKNOWN",handle:(N=this.handleInput.value)!=null?N:""};_.M6(q)};
_.g.stopEventPropagation=function(q){q.stopPropagation()};
_.g.updateHandleOnChannelNameInputChange=function(q){if(!this.wasEdited){var N,b;this.debouncedGenerateHandleFromName(q,(b=(N=this.data)==null?void 0:N.validationDelayMs)!=null?b:1E3)}};
_.g.debouncedGenerateHandleFromName=function(q,N){var b=this;_.Uk(this,"debouncedGenerateHandleFromName",function(){var y;(y=b.data)!=null&&y.validateChannelHandleCommand?b.ytComponentBehavior.resolveCommand(b.data.validateChannelHandleCommand,{form:{name:q},commandController:{onSuccess:function(J,E){b.onGenerateHandleFromNameResponse(E)},
onServerError:function(J,E){_.M6(new _.IO("Error calling GenerateHandleFromName",E))}}}):_.M6(new _.IO("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",b.data))},N)};
_.g.onGenerateHandleFromNameResponse=function(q){this.wasEdited||((q=_.v(q.result,U8d))?this.setHandleInputValue(q.handle):_.M6(new _.IO("Invalid results when generate handle from name")))};
_.$H.Object.defineProperties(od.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var q;if(q=this.validationState)q=this.validationState,q=q.status==="OK"||q.status==="UNKNOWN";if(q)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var q;if(((q=this.validationState)==null?void 0:q.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 q,N=(q=this.channelHandleEntity)==null?void 0:q.handleEdit;this.handleDir=this.getHandleDir(N!=null?N:"");return N}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var q,N;if(((q=this.data)==null?void 0:(N=q.channelHandleStaticValidationParams)==null?void 0:N.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
od.prototype.stopEventPropagation=od.prototype.stopEventPropagation;od.prototype.onDataChanged=od.prototype.onDataChanged;od.prototype.applyHandleEdit=od.prototype.applyHandleEdit;od.prototype.onValueChanged=od.prototype.onValueChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],od.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],od.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],od.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Boolean)],od.prototype,"wasEdited",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],od.prototype,"handleDir",void 0);_.p([_.dq("#handle-input"),_.P("design:type",Object)],od.prototype,"handleInput",void 0);_.p([_.U(),_.l("validationState"),_.P("design:type",Object),_.P("design:paramtypes",[])],od.prototype,"value",null);
_.p([_.FY("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],od.prototype,"onValueChanged",null);_.p([_.l("validationState"),_.P("design:type",Object),_.P("design:paramtypes",[])],od.prototype,"errorIndicator",null);_.p([_.U({reflectToAttribute:!0}),_.l("errorIndicator"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],od.prototype,"borderErrorIndicator",null);
_.p([_.U({selectorArgs:["data.channelHandleEntityKey"],selector:function(q,N){return _.Ji(q.entities,"channelHandle",N)}}),
_.P("design:type",Object)],od.prototype,"channelHandleEntity",void 0);_.p([_.l("channelHandleEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],od.prototype,"handleEdit",null);_.p([_.FY("handleEdit"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],od.prototype,"applyHandleEdit",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],od.prototype,"onDataChanged",null);
_.p([_.l("data.channelHandleStaticValidationParams.validValueRegexp"),_.P("design:type",Object),_.P("design:paramtypes",[])],od.prototype,"validValueRegexp",null);_.p([_.ZP("yt-service-request-sent"),_.ZP("yt-service-request-completed"),_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],od.prototype,"stopEventPropagation",null);_.p([_.I({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],od);
_.a(od,"ytd-channel-handle-input-renderer",function(){if($5p!==void 0)return $5p;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return $5p=q},{mode:_.Am("kevlar_poly_si_batch_j025")?1:2});var Ak=function(){var q=_.C.apply(this,arguments)||this;q.data=null;q.errorMessage=null;q.isLoading=!0;q.hideContainer=!1;q.enableNewChannelCreationOnIdForAll=_.x("enable_new_channel_creation_for_id4all");q.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"};q.testOnly={setErrorMessage:function(N){q.resetErrorState();
q.setErrorState(N)}};
return q};
_.Y(Ak,_.C);_.g=Ak.prototype;_.g.created=function(){this.logScreenVe()};
_.g.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")};
_.g.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var q;((q=this.zeroStepErrorMessageEntity)==null?0:q.value)&&this.set("errorMessage",_.nD(this.zeroStepErrorMessageEntity.value))};
_.g.onCreateTap=function(){var q=this;if(this.data&&this.data.channelCreationEndpoint){var N,b;if(!((N=this.data.createChannelButton)==null?0:(b=N.buttonRenderer)==null?0:b.isDisabled)){var y;if((y=this.nameInput)!=null&&y.value){this.setLoadingState();var J,E;N=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(J=this.handleInput)==null?void 0:J.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((E=this.handleInput)==null?void 0:E.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:N,commandController:{onSuccess:function(F,R){q.onChannelCreationEndpointSuccess(R);q.obakeImageSource&&_.W_("channelCreatedWithObakeImage",{imageSourceType:q.obakeImageSource})},
onServerError:function(){q.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.g.endpointRequiresServiceRequestAction=function(q){return!!_.v(q,_.Gt)||!!_.v(q,hHK)};
_.g.isNavigateAction=function(q){var N;return!!_.v(q,_.MF)||!!_.v((N=_.v(q,Yrp))==null?void 0:N.command,_.MF)};
_.g.isPlaylistAction=function(q){return!!_.v(q,_.qz)||!!_.v(q,_.ZO)};
_.g.onChannelCreationEndpointSuccess=function(q){if(q.createChannelError){var N;this.setErrorState((N=q.createChannelError)==null?void 0:N.errorMessage);this.handleInput&&this.handleInput.validate()}else{q.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(q.navigationEndpoint);if(q.actions){N=_.Z(q.actions);for(var b=N.next();!b.done;b=N.next())if(b=b.value,this.endpointRequiresServiceRequestAction(b)&&this.ytComponentBehavior.resolveCommand(b),this.isNavigateAction(b)){var y=void 0;b=_.v((y=
_.v(b,Yrp))==null?void 0:y.command,_.MF);y=void 0;this.isPlaylistAction((y=b)==null?void 0:y.endpoint)&&(_.By(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),y=void 0,this.ytComponentBehavior.resolveCommand((y=b)==null?void 0:y.endpoint))}}q.actions&&q.actions.some(function(J){var E;return _.v(J,_.MF)||_.v((E=_.v(J,Yrp))==null?void 0:E.command,_.MF)})||_.By(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.g.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.g.onCancelTap=function(){var q,N,b;if(!((q=this.data)==null?0:(N=q.cancelButton)==null?0:(b=N.buttonRenderer)==null?0:b.isDisabled)){var y,J,E;q=(y=this.data)==null?void 0:(J=y.cancelButton)==null?void 0:(E=J.buttonRenderer)==null?void 0:E.command;if(!q||!_.v(q,_.YWJ)){var F;this.nameInput&&((F=this.data)==null?0:F.name)&&(this.nameInput.value=this.data.name);var R;this.handleInput&&((R=this.data)==null?0:R.channelHandleInput)&&(this.handleInput.data=_.v(this.data.channelHandleInput,vlp));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.g.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.g.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.g.onClearProfilePhotoTap=function(){var q,N,b;((q=this.data)==null?0:(N=q.clearProfilePhotoButton)==null?0:(b=N.buttonRenderer)==null?0:b.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.g.onEditAvatarTap=function(){var q,N,b;((q=this.data)==null?0:(N=q.editAvatarButton)==null?0:(b=N.buttonRenderer)==null?0:b.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.g.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)};
_.g.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var q;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((q=this.data)==null?0:q.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.g.setErrorState=function(q){this.resetErrorState();if(q)this.set("errorMessage",q);else{var N;if((N=this.zeroStepErrorMessageEntity)==null?0:N.value)this.set("errorMessage",_.nD(this.zeroStepErrorMessageEntity.value));else{var b;((b=this.data)==null?0:b.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.g.fetchImageBlobWithAlr=function(q,N){N=N===void 0?5:N;var b=this,y,J,E,F,R;return _.d(function(c){switch(c.nextAddress){case 1:return c.yield(fetch(q,{method:"GET",mode:"cors"}),2);case 2:y=c.yieldResult;if(y.ok){c.jumpTo(3);break}if(N===0)throw Error();J=b.addJitter(Math.pow(2,5-N));return c.yield(new Promise(function(z){setTimeout(z,J*1E3)}),4);
case 4:return c.return(b.fetchImageBlobWithAlr(q,N-1));case 3:if(!y.headers.get("content-type").split(";").some(function(z){return z.trim()==="text/plain"})){c.jumpTo(5);
break}E=b;F=E.fetchImageBlobWithAlr;return c.yield(y.text(),6);case 6:return c.return(F.call(E,c.yieldResult,N-1));case 5:return c.yield(y.blob(),7);case 7:return R=c.yieldResult,c.return(R)}})};
_.g.addJitter=function(q){var N=q*.3*Math.random();Math.random()>.5&&(N*=-1);return q+N};
_.g.openProfilePicturePicker=function(){var q=this,N,b,y,J,E,F;return _.d(function(R){if(R.nextAddress==1){N=q.data.scottyUploadUrl;if(!N)return R.return();b=document.documentElement.hasAttribute("dark");y=document.body.style.colorScheme;b&&(document.body.style.colorScheme="dark");J=r2B(XWC(mAK(RPa(b?"dark":"light")),function(c){var z,m,r,X,V;return _.d(function(G){if(G.nextAddress==1)return z=_.WE(fGK(new J3a(c.photoUrl,!1)).build(),"alr","yes"),q.obakeImageSource=q.pictureChangeSourceToObakeImageSourceType(c.photoSource),
_.Yi(G,2),q.setLoadingState(),G.yield(q.fetchImageBlobWithAlr(z),4);if(G.nextAddress!=2)return m=G.yieldResult,r=new FileReader,r.addEventListener("load",function(){var w,D,k,f,L,S;return _.d(function(W){if(W.nextAddress==1){if(m.size>15728640)return q.setErrorState((w=q.data)==null?void 0:w.imageSizeErrorMessage),_.M6(Error("Gl")),W.return();if(!r.result)return q.setErrorState((D=q.data)==null?void 0:D.genericImageLoadErrorMessage),_.M6(Error("Hl")),W.return();k=r.result;_.Yi(W,2);return W.yield(lsU(m,
N),4)}if(W.nextAddress!=2)return f=W.yieldResult,q.handleImageUpdatedAction(k,f),q.resetErrorState(),_.Ea(W,0);L=_.K7(W);q.setErrorState((S=q.data)==null?void 0:S.uploadErrorMessage);if(L instanceof Error)_.po(L);else{var M=new _.IO(JSON.stringify(L));_.po(M)}_.hj(W)})}),r.readAsDataURL(m),_.Ea(G,0);
X=_.K7(G);q.setErrorState((V=q.data)==null?void 0:V.genericImageLoadErrorMessage);X instanceof Error?_.po(X):_.P_(new _.IO(JSON.stringify(X)));_.hj(G)})}),function(){q.hideContainer=!1;
document.body.style.colorScheme=y});
_.Yi(R,2);return((E=q.data)==null?0:E.shouldViewChannelCreationFormForSupex)?R.yield(J.openPicker("profile-picture/art-selection"),5):R.yield(J.openPicker(),5)}if(R.nextAddress!=2)return _.Ea(R,0);_.K7(R);q.setErrorState((F=q.data)==null?void 0:F.selectImageErrorMessage);_.hj(R)})};
_.g.pictureChangeSourceToObakeImageSourceType=function(q){switch(q){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.g.logScreenVe=function(){_.DO(_.FR(),124448)};
_.g.graftServerVe=function(){var q=_.QY(),N,b,y=(N=this.data)==null?void 0:(b=N.loggingDirectives)==null?void 0:b.trackingParams;y&&q&&(this.channelCreationFormVe=_.FR().graftServerVe(y,q),q={visualElement:this.channelCreationFormVe},_.E_().reportShown(q))};
_.g.isNameChanged=function(q){var N;return((N=this.data)==null?void 0:N.name)!==q};
_.g.isHandleChanged=function(q){var N,b=_.v((N=this.data)==null?void 0:N.channelHandleInput,vlp);return b&&q?b.handle!==q:!1};
_.g.handleImageUpdatedAction=function(q,N){this.hideContainer=!1;this.previewDataUrl=q;this.encryptedBlobId=N};
_.g.handleImageSelectionErrorAction=function(q){this.hideContainer=!1;this.setErrorState(q)};
_.g.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.g.showContainer=function(){this.hideContainer=!1};
_.g.maybeWipeZeroStepErrorMessage=function(){var q,N=(q=this.data)==null?void 0:q.zeroStepErrorMessageEntityKey,b;N&&((b=this.zeroStepErrorMessageEntity)==null?0:b.value)&&this.ytdReduxBehavior.dispatch(_.$e("stringEntity",N,{key:N,value:""}))};
_.$H.Object.defineProperties(Ak.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 q;return((q=this.photoThumbnail)==null?0:q.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 q;return!((q=this.data)==null||!q.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.descriptionInfo}}});
Ak.prototype.dataChanged=Ak.prototype.dataChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Ak.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Ak.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],Ak.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ak.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Ak.prototype,"errorMessage",void 0);
_.p([_.U(),_.P("design:type",Object)],Ak.prototype,"isLoading",void 0);_.p([_.U(),_.P("design:type",String)],Ak.prototype,"previewDataUrl",void 0);_.p([_.U(),_.P("design:type",Number)],Ak.prototype,"obakeImageSource",void 0);_.p([_.U(),_.P("design:type",Object)],Ak.prototype,"hideContainer",void 0);_.p([_.dq("#title-input"),_.P("design:type",Object)],Ak.prototype,"nameInput",void 0);_.p([_.dq("#handle-input"),_.P("design:type",Object)],Ak.prototype,"handleInput",void 0);
_.p([_.U(),_.P("design:type",Boolean)],Ak.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.p([_.U({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.ZZA}),_.P("design:type",Object)],Ak.prototype,"zeroStepErrorMessageEntity",void 0);_.p([_.l("data","data.isDefaultProfilePhoto","previewDataUrl"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ak.prototype,"photoThumbnail",null);
_.p([_.l("data","data.isDefaultProfilePhoto","photoThumbnail"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ak.prototype,"userSetPhotoThumbnailUrl",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ak.prototype,"hideProfilePhotoButtonLayer",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ak.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.p([_.$9("data","zeroStepErrorMessageEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ak.prototype,"dataChanged",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.descriptionInfo","zeroStepErrorMessageEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ak.prototype,"description",null);_.p([_.I({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Ak);
_.a(Ak,"ytd-channel-creation-dialog-renderer",function(){if(z8a!==void 0)return z8a;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return z8a=q},{mode:1});var tWf;var e3=function(){var q=_.C.apply(this,arguments)||this;q.isLoading=!1;q.isDisabled=!1;return q};
_.Y(e3,_.C);e3.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
e3.prototype.updateDisabled=function(){var q;this.isDisabled=this.isLoading||((q=this.handleInput)==null?void 0:q.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
e3.prototype.onSaveClick=function(){var q=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var N;((N=this.data)==null?void 0:N.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 b;if((b=q.data)==null?0:b.nextEndpoint){var y;q.ytComponentBehavior.resolveCommand((y=q.data)==null?void 0:y.nextEndpoint)}else q.isLoading=
!1,q.closeDialog()},
onServerError:function(){q.isLoading=!1;q.handleInput.validate();var b;q.errorMessage=(b=q.data)==null?void 0:b.errorMessage}}}))}};
e3.prototype.closeDialog=function(){_.By(this.hostElement,"yt-close-popup-action",[this.is])};
e3.prototype.updateDisabled=e3.prototype.updateDisabled;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],e3.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],e3.prototype,"data",void 0);_.p([_.dq("#handle-input"),_.P("design:type",Object)],e3.prototype,"handleInput",void 0);_.p([_.FY("isLoading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],e3.prototype,"updateDisabled",null);
_.p([_.I({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],e3);
_.a(e3,"ytd-channel-handle-edit-dialog-renderer",function(){if(tWf!==void 0)return tWf;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return tWf=q},{mode:1});var m5C;var BI=function(){return _.C.apply(this,arguments)||this};
_.Y(BI,_.C);BI.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],BI.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],BI.prototype,"data",void 0);_.p([_.I({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],BI);
_.a(BI,"ytd-channel-switcher-footer-renderer",function(){if(m5C!==void 0)return m5C;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return m5C=q},{mode:1});var rFU;var XmU;var HI=function(){return _.C.apply(this,arguments)||this};
_.Y(HI,_.C);HI.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
HI.prototype.onIronChange=HI.prototype.onIronChange;_.p([_.U(),_.P("design:type",Object)],HI.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!1}),_.P("design:type",Function)],HI.prototype,"onDontAskAgainChanged",void 0);_.p([_.dq("#checkbox"),_.P("design:type",Object)],HI.prototype,"checkbox",void 0);_.p([_.ZP("iron-change"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HI.prototype,"onIronChange",null);
_.p([_.I({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],HI);
_.a(HI,"ytd-identity-prompt-footer-renderer",function(){if(XmU!==void 0)return XmU;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return XmU=q},{mode:1});var qD=function(){var q=_.C.apply(this,arguments)||this;q.dontAskAgain=!1;q.showPopup=!1;q.boundDontAskAgainChanged=function(N){q.dontAskAgainChanged(N)};
q.boundOnAccountItemTap=function(N){q.onAccountItemTap(N)};
return q};
_.Y(qD,_.C);_.g=qD.prototype;
_.g.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]]"}}}}}};
_.g.ready=function(){var q=this;_.ee(this.hostElement).querySelector("#container").addEventListener("scroll",function(){q.ytRendererBehavior.markDirty()})};
_.g.dontAskAgainChanged=function(q){this.dontAskAgain=q};
_.g.onAccountItemTap=function(q){if(q){var N={};this.dontAskAgain&&(N={dont_ask_again:this.dontAskAgain});_.lI(q,N)}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.g.redirectOnlyAccount=function(q){q.sections&&q.sections.length>0&&(q=_.v(q.sections[0],_.YUF),(q==null?0:q.contents)&&(q==null?void 0:q.contents.length)<=1?(q=_.gO(window.location.href),(q==null?0:q.next)&&_.pyC(q.next)?_.lI(q.next):_.lI("/")):this.showPopup=!0)};
qD.prototype.dataChanged=qD.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],qD.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],qD.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],qD.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!1}),_.P("design:type",Object)],qD.prototype,"dontAskAgain",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],qD.prototype,"showPopup",void 0);_.p([_.U({reflectToAttribute:!1}),_.P("design:type",Object)],qD.prototype,"boundDontAskAgainChanged",void 0);_.p([_.U({reflectToAttribute:!1}),_.P("design:type",Object)],qD.prototype,"boundOnAccountItemTap",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qD.prototype,"dataChanged",null);
_.p([_.I({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],qD);
_.a(qD,"ytd-channel-switcher-renderer",function(){if(rFU!==void 0)return rFU;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return rFU=q},{mode:1});var VWB;var ND=function(){return _.C.apply(this,arguments)||this};
_.Y(ND,_.C);_.$H.Object.defineProperties(ND.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.p([_.U(),_.P("design:type",Object)],ND.prototype,"data",void 0);_.p([_.l("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],ND.prototype,"steps",null);_.p([_.I({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],ND);
_.a(ND,"ytd-channel-transfer-stepper-renderer",function(){if(VWB!==void 0)return VWB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return VWB=q},{mode:1});var j2d;var bm=function(){var q=_.C.apply(this,arguments)||this;q.data=null;q.isError=!1;q.isLoading=!1;return q};
_.Y(bm,_.C);_.g=bm.prototype;_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.g.computeProfileName=function(q){return q?q.givenNameValue+" "+q.familyNameValue:""};
_.g.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)};
_.g.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)};
bm.prototype.onYtServiceRequestError=bm.prototype.onYtServiceRequestError;bm.prototype.onYtServiceRequestSent=bm.prototype.onYtServiceRequestSent;bm.prototype.dataChanged=bm.prototype.dataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],bm.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],bm.prototype,"data",void 0);
_.p([_.U({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.P("design:type",String)],bm.prototype,"profileName",void 0);_.p([_.U(),_.P("design:type",Object)],bm.prototype,"isError",void 0);_.p([_.U(),_.P("design:type",Object)],bm.prototype,"isLoading",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bm.prototype,"dataChanged",null);
_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],bm.prototype,"onYtServiceRequestSent",null);_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],bm.prototype,"onYtServiceRequestError",null);_.p([_.I({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],bm);
_.a(bm,"ytd-channel-warm-welcome-cont-renderer",function(){if(j2d!==void 0)return j2d;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return j2d=q},{mode:1});var x5p;var ya=function(){var q=_.C.apply(this,arguments)||this;q.data=null;return q};
_.Y(ya,_.C);ya.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ya.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ya.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ya.prototype,"data",void 0);_.p([_.I({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],ya);
_.a(ya,"ytd-channel-warm-welcome-renderer",function(){if(x5p!==void 0)return x5p;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return x5p=q},{mode:1});var vWW;var Jc=function(){return _.C.apply(this,arguments)||this};
_.Y(Jc,_.C);_.$H.Object.defineProperties(Jc.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.authorThumbnail)||{}}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Jc.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Jc.prototype,"data",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Jc.prototype,"thumbnailDetails",null);_.p([_.I({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Jc);
_.a(Jc,"ytd-comment-preview-renderer",function(){if(vWW!==void 0)return vWW;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return vWW=q},{mode:1});var GBc;var EO=function(){return _.C.apply(this,arguments)||this};
_.Y(EO,_.C);EO.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.$H.Object.defineProperties(EO.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.submitButton}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],EO.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],EO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],EO.prototype,"data",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],EO.prototype,"submitButton",null);_.p([_.I({is:"ytd-notice-renderer",disableElementRegistration:!0})],EO);
_.a(EO,"ytd-notice-renderer",function(){if(GBc!==void 0)return GBc;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return GBc=q},{mode:1});var Ysx;var ZE=function(){return _.C.apply(this,arguments)||this};
_.Y(ZE,_.C);ZE.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ZE.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ZE.prototype,"data",void 0);_.p([_.I({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],ZE);
_.a(ZE,"ytd-preview-comment-dialog-content",function(){if(Ysx!==void 0)return Ysx;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Ysx=q},{mode:1});var Q2a;var Fp=function(){return _.C.apply(this,arguments)||this};
_.Y(Fp,_.C);Fp.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Fp.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Fp.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Fp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Fp.prototype,"data",void 0);_.p([_.I({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Fp);
_.a(Fp,"ytd-preview-comment-dialog-renderer",function(){if(Q2a!==void 0)return Q2a;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Q2a=q},{mode:1});var OfU;var wmp=_.x("web_button_rework")&&_.ou("BUTTON_REWORK")||_.x("web_button_rework_with_live"),Rn=function(){var q=_.C.apply(this,arguments)||this;q.closeLabel=_.FE("CLOSE");q.selectedAmountIndex=1;q.privacyCheckboxValue=!1;q.useAmsterdamStyle=wmp;q.amountPlaceholderIndex=-1;return q};
_.Y(Rn,_.C);_.g=Rn.prototype;_.g.onAmountClick=function(q){this.selectedAmountIndex=_.ee(this.hostElement).querySelector("#amounts").indexForElement(q.currentTarget)};
_.g.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.By(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.g.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.By(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.By(this.hostElement,"yt-close-popup-action",[this.is]);var q;(q=_.Pk())==null||q.getPlayerPromise().then(function(N){N.pauseVideo()})}};
_.g.donationCallback=function(q){q.success?(this.hostElement.hasAttribute("live-chat")&&q.response&&q.response.data&&q.response.data.actions&&_.By(this.hostElement,"yt-live-chat-open-popup",[q.response.data.actions[0]]),_.By(this.hostElement,"yt-close-popup-action",[this.is]),_.By(this.hostElement,"yt-live-chat-close-buy-flow")):q.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(q.errorMessageRenderer)};
_.g.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.ee(this.hostElement).querySelector("#custom-amount-input").focus()};
_.g.updateConfirmationDialogTextWithAmount=function(q){var N=this.getConfirmDialogRuns();N&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(N),"text"],this.getFormattedAmount(q))};
_.g.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.g.getAmountPlaceholderIndex=function(q){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=q.findIndex(function(N){return N.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.g.getFormattedAmount=function(q){var N;return(new _.fD(4,((N=this.data)==null?void 0:N.currencyCode)||"")).format(q)};
_.g.isAmountValid=function(q){if(q==="")return!1;q=Number(q)*1E6;var N=this.get("minAmountMicros",this.data),b=this.get("maxAmountMicros",this.data);return N&&q<N||b&&q>b?!1:!0};
_.g.setInputError=function(){this.shouldShowValidationError?_.ee(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.ee(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.g.setInitialCheckboxValue=function(){var q;this.privacyCheckboxValue=!((q=this.data)==null||!q.privacyCheckboxInitialState)};
_.g.updateCustomAmountInputFromBinding=function(q){this.customAmountInput=q.detail.value};
_.g.updatePrivacyCheckboxValueFromBinding=function(q){this.privacyCheckboxValue=q.detail.value};
_.$H.Object.defineProperties(Rn.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var q=this,N,b;return((N=this.data)==null?void 0:(b=N.suggestedAmounts)==null?void 0:b.map(function(y,J){return{buttonRenderer:{style:q.selectedAmountIndex===J?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:y.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 q;return!((q=this.data)==null||!q.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 q=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(q&&this.amountMicros!==null)return Object.assign({},q,{ypcGetCartEndpoint:Object.assign({},q.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 q=this.get("confirmLargeAmount",this.data);if(q&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),q}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var q=this.get("donateButton.buttonRenderer",this.data);if(q)return Object.assign({},q,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
Rn.prototype.setInitialCheckboxValue=Rn.prototype.setInitialCheckboxValue;Rn.prototype.setInputError=Rn.prototype.setInputError;Rn.prototype.setFocusOnCustomAmountInput=Rn.prototype.setFocusOnCustomAmountInput;_.p([_.O(DlX),_.P("design:type",Object)],Rn.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Rn.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Rn.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Rn.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Rn.prototype,"closeLabel",void 0);_.p([_.U(),_.P("design:type",Object)],Rn.prototype,"selectedAmountIndex",void 0);_.p([_.U(),_.P("design:type",String)],Rn.prototype,"customAmountInput",void 0);_.p([_.U(),_.P("design:type",Object)],Rn.prototype,"privacyCheckboxValue",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Rn.prototype,"useAmsterdamStyle",void 0);_.p([_.FY("customAmount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Rn.prototype,"setFocusOnCustomAmountInput",null);_.p([_.l("data","selectedAmountIndex"),_.P("design:type",Array),_.P("design:paramtypes",[])],Rn.prototype,"suggestedAmountButtons",null);
_.p([_.l("data","selectedAmountIndex"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Rn.prototype,"isCustomAmountSelected",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Rn.prototype,"showPrivacyCheckbox",null);_.p([_.l("data","selectedAmountIndex","customAmount"),_.P("design:type",Object),_.P("design:paramtypes",[])],Rn.prototype,"amountMicros",null);
_.p([_.l("isCustomAmountSelected","customAmountInput"),_.P("design:type",Object),_.P("design:paramtypes",[])],Rn.prototype,"customAmount",null);_.p([_.l("customAmount"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Rn.prototype,"shouldShowValidationError",null);_.p([_.l("customAmount"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Rn.prototype,"isDonateButtonEnabled",null);
_.p([_.l("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.P("design:type",Object),_.P("design:paramtypes",[])],Rn.prototype,"donateCommand",null);_.p([_.l("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.P("design:type",Object),_.P("design:paramtypes",[])],Rn.prototype,"donateCommandWithConfirmation",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Rn.prototype,"largeDonationThreshold",null);
_.p([_.l("customAmount","donateCommand","amountMicros"),_.P("design:type",Object),_.P("design:paramtypes",[])],Rn.prototype,"confirmLargeAmountCommand",null);_.p([_.l("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.P("design:type",Object),_.P("design:paramtypes",[])],Rn.prototype,"donateButtonRenderer",null);_.p([_.FY("shouldShowValidationError"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Rn.prototype,"setInputError",null);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Rn.prototype,"setInitialCheckboxValue",null);_.p([_.I({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Rn);
_.a(Rn,"ytd-donation-amount-picker-renderer",function(){if(OfU!==void 0)return OfU;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return OfU=q},{mode:1});var iff;var laK=function(){return _.C.apply(this,arguments)||this};
_.Y(laK,_.C);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],laK.prototype,"ytComponentBehavior",void 0);_.p([_.U({}),_.P("design:type",Object)],laK.prototype,"data",void 0);_.p([_.I({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],laK);
_.a(laK,"ytd-donation-post-transaction-content",function(){if(iff!==void 0)return iff;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return iff=q},{mode:1});var KZf;var dc=function(){return _.C.apply(this,arguments)||this};
_.Y(dc,_.C);dc.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],dc.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],dc.prototype,"ytRendererBehavior",void 0);_.p([_.U({}),_.P("design:type",Object)],dc.prototype,"data",void 0);_.p([_.I({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],dc);
_.a(dc,"ytd-donation-post-transaction-renderer",function(){if(KZf!==void 0)return KZf;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return KZf=q},{mode:1});var D5X;var h8x;var cO=function(){return _.C.apply(this,arguments)||this};
_.Y(cO,_.C);cO.prototype.computeIsStreamingProvider=function(q){return!!q.isStreamingShelf};
cO.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],cO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],cO.prototype,"data",void 0);_.p([_.U({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],cO.prototype,"isStreamingProvider",void 0);
_.p([_.I({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],cO);
_.a(cO,"ytd-media-provider-renderer",function(){if(h8x!==void 0)return h8x;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return h8x=q},{mode:1});var kBA;var um=function(){return _.C.apply(this,arguments)||this};
_.Y(um,_.C);um.prototype.observeLightsourcePalette=function(){var q,N=(q=this.data)==null?void 0:q.vibrantsourceColorPaletteData;N&&_.V0(this.hostElement,N)};
um.prototype.observeLightsourcePalette=um.prototype.observeLightsourcePalette;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],um.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],um.prototype,"data",void 0);
_.p([_.FY("data.vibrantsourceColorPaletteData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],um.prototype,"observeLightsourcePalette",null);_.p([_.I({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],um);
_.a(um,"ytd-streaming-pop-up-dialog",function(){if(kBA!==void 0)return kBA;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return kBA=q},{mode:1});var zO=function(){return _.C.apply(this,arguments)||this};
_.Y(zO,_.C);zO.prototype.onPopupOpened_=function(){var q;((q=this.data)==null?0:q.serviceEndpoint)&&_.tz().resolve(_.rO).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
zO.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
zO.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"}}}}};
zO.prototype.onPopupOpened_=zO.prototype.onPopupOpened_;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.tA),_.P("design:type",Object)],zO.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],zO.prototype,"data",void 0);
_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zO.prototype,"onPopupOpened_",null);_.p([_.I({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],zO);
_.a(zO,"ytd-brandconnect-popup-renderer",function(){if(D5X!==void 0)return D5X;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return D5X=q},{mode:1});var U5d;var $4=function(){return _.C.apply(this,arguments)||this};
_.Y($4,_.C);_.g=$4.prototype;_.g.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(){for(var q=0;q<this.getOptionRenderers().length;q++)this.notifyPath("data.options."+q+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+q+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.g.updateSubmitButton=function(q){this.set("data.submitButton.buttonRenderer.isDisabled",!q)};
_.g.computeAlt=function(q){return _.ao(q)};
_.g.onDismissTap=function(){_.By(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.tz().resolve(_.rO).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.g.getOptionRenderers=function(q){return(q=q||this.data)&&q.options?q.options.reduce(function(N,b){b.checkboxSurveyOptionRenderer&&N.push(b.checkboxSurveyOptionRenderer);return N},[]):[]};
_.g.onOptionChange=function(q){var N=this,b=!1;if(q.detail.checked)for(var y=this.getOptionRenderers().find(function(R){return R.value===q.detail.value}),J=this.getOptionRenderers(),E=0;E<J.length;E++){var F=J[E];
this.notifyPath("data.options."+E+".checkboxSurveyOptionRenderer.checked");F.checked&&((y==null?0:y.isExclusiveOption)?!F.isExclusiveOption:F.isExclusiveOption)?this.set("data.options."+E+".checkboxSurveyOptionRenderer.checked",!1):F.checked&&(b=!0)}else b=this.getOptionRenderers().some(function(R,c){N.notifyPath("data.options."+c+".checkboxSurveyOptionRenderer.checked");return R.checked});
this.updateSubmitButton(b)};
_.g.onSubmitTap=function(){var q=this.getOptionRenderers().filter(function(E){return E.checked});
if(q.length!==0){var N=q.map(function(E){return E.responseEndpoint});
q=[];for(var b=1;b<N.length;b++){var y=void 0,J=(y=_.v(N[b],_.YJ))==null?void 0:y.feedbackToken;J&&q.push(J)}N=[N[0]];q.length&&N.push({extra_feedback_tokens:q});_.qc(this.hostElement,N);_.By(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);q=this.data&&this.data.submitActions||[];if(_.x("kevlar_command_handler_migration_killswitch"))_.Nc(this.hostElement,q,this.hostElement);else for(q=_.Z(q),N=q.next();!N.done;N=q.next())this.ytComponentBehavior.resolveCommand(N.value)}};
$4.prototype.onOptionChange=$4.prototype.onOptionChange;$4.prototype.dataChanged=$4.prototype.dataChanged;_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],$4.prototype,"ytEventForwardingBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],$4.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],$4.prototype,"ytComponentBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.p([_.O(AKp),_.P("design:type",Object)],$4.prototype,"ytdHatsSurveyBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],$4.prototype,"data",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$4.prototype,"dataChanged",null);
_.p([_.ZP("ytd-checkbox-survey-option-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],$4.prototype,"onOptionChange",null);_.p([_.I({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],$4);
_.a($4,"ytd-checkbox-survey-renderer",function(){if(U5d!==void 0)return U5d;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return U5d=q},{mode:1});var faa;var CSC;var tc=function(){return _.C.apply(this,arguments)||this};
_.Y(tc,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);_.p([_.O(oOB),_.P("design:type",Object)],tc.prototype,"ytdDismissalReasonBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],tc.prototype,"data",void 0);_.p([_.I({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],tc);
_.a(tc,"ytd-dismissal-reason-text-renderer",function(){if(CSC!==void 0)return CSC;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return CSC=q},{mode:1});var Iaa;var mb=function(){return _.C.apply(this,arguments)||this};
_.Y(mb,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.p([_.O(oOB),_.P("design:type",Object)],mb.prototype,"ytdDismissalReasonBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],mb.prototype,"data",void 0);_.p([_.I({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],mb);
_.a(mb,"ytd-dismissal-reason-video-renderer",function(){if(Iaa!==void 0)return Iaa;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Iaa=q},{mode:1});var rc=function(){return _.C.apply(this,arguments)||this};
_.Y(rc,_.C);_.g=rc.prototype;_.g.created=function(){this.selectedFeedbackTokens=new xK};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.g.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.g.onDismissalReasonSelected=function(q,N){_.e2(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(N);this.hasReasonsSelected=!0};
_.g.onDismissalReasonDeselected=function(q,N){_.e2(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(N);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.g.onCancelTap=function(){_.By(this.hostElement,"yt-close-popup-action")};
_.g.onSubmitTap=function(){var q=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(q={feedback_tokens:q},_.tz().resolve(_.rO).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},q,{element:this.hostElement})}));_.By(this.hostElement,"yt-close-popup-action")};
rc.prototype.onDismissalReasonDeselected=rc.prototype.onDismissalReasonDeselected;rc.prototype.onDismissalReasonSelected=rc.prototype.onDismissalReasonSelected;rc.prototype.dataChanged=rc.prototype.dataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],rc.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],rc.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],rc.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Boolean)],rc.prototype,"hasReasonsSelected",void 0);_.p([_.U(),_.P("design:type",xK)],rc.prototype,"selectedFeedbackTokens",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rc.prototype,"dataChanged",null);_.p([_.ZP("yt-dismissal-reason-selected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,String]),_.P("design:returntype")],rc.prototype,"onDismissalReasonSelected",null);
_.p([_.ZP("yt-dismissal-reason-deselected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,String]),_.P("design:returntype")],rc.prototype,"onDismissalReasonDeselected",null);_.p([_.I({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],rc);
_.a(rc,"ytd-dismissal-follow-up-renderer",function(){if(faa!==void 0)return faa;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return faa=q},{mode:1});var TvB;var Xp=function(){return _.C.apply(this,arguments)||this};
_.Y(Xp,_.C);_.g=Xp.prototype;_.g.onCheckedChange=function(){this.multiselect||_.e2(this.hostElement,"yt-feedback-single-select-changed");_.ee(this.hostElement).querySelector("#freeform").focus();_.e2(this.hostElement,"yt-refit")};
_.g.showTextBox=function(q,N){return q&&N};
_.g.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))};
_.g.updateDataCheckedFromBinding=function(q){this.set("data.checked",q.detail.value)};
_.g.updateDataResultTextFromBinding=function(q){this.set("data.resultText",q.detail.value)};
Xp.prototype.dataChanged=Xp.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Xp.prototype,"data",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],Xp.prototype,"multiselect",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xp.prototype,"dataChanged",null);
_.p([_.I({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Xp);
_.a(Xp,"ytd-feedback-option-renderer",function(){if(TvB!==void 0)return TvB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return TvB=q},{mode:1});var s2f;var Va=function(){return _.C.apply(this,arguments)||this};
_.Y(Va,_.C);Va.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
Va.prototype.onSingleSelectCheckedChanged=function(q){q=_.a0(q);for(var N=0;N<this.data.options.length;N++)if(q.data!==_.v(this.data.options[N],FiC)){var b="data.options."+N+".feedbackOptionRenderer.checked";this.notifyPath(b);this.set(b,!1)}};
Va.prototype.onSingleSelectCheckedChanged=Va.prototype.onSingleSelectCheckedChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Va.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Va.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Va.prototype,"data",void 0);
_.p([_.ZP("yt-feedback-single-select-changed"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Va.prototype,"onSingleSelectCheckedChanged",null);_.p([_.I({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],Va);
_.a(Va,"ytd-feedback-question-renderer",function(){if(s2f!==void 0)return s2f;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return s2f=q},{mode:1});var nWa;var jB=function(){return _.C.apply(this,arguments)||this};
_.Y(jB,_.C);jB.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
jB.prototype.getSelectedFeedbackResults=function(){for(var q={},N=0;N<this.data.questions.length;N++)for(var b=_.v(this.data.questions[N],Z_f),y=0;y<b.options.length;y++){var J=_.v(b.options[y],FiC);J&&J.checked&&(q[J.optionKey]=J.resultText)}return q};
jB.prototype.onKeyUp=function(){var q=this;_.B$(_.pY,function(){_.e2(q.hostElement,"yt-refit")});
_.pY.start()};
jB.prototype.submitSurvey=function(){var q=this.getSelectedFeedbackResults();Object.keys(q).length>0&&this.data.submitFeedbackEndpoint&&(q={survey_results:q,is_feedback_token_unencrypted:!0},_.tz().resolve(_.rO).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},q,{element:this.hostElement})}))};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],jB.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],jB.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],jB.prototype,"data",void 0);_.p([_.I({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],jB);
_.a(jB,"ytd-feedback-survey-renderer",function(){if(nWa!==void 0)return nWa;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return nWa=q},{mode:1});var aaB;var Ssd;var x4=function(){return _.C.apply(this,arguments)||this};
_.Y(x4,_.C);x4.prototype.computeAlt=function(q){return _.ao(q)};
x4.prototype.submitResponse=function(){var q,N;(q=this.data)!=null&&q.feedbackToken&&((N=this.data)==null?void 0:N.nextStageIndex)!==void 0&&(_.Hy(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Hy(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
x4.prototype.onClick=function(){this.submitResponse()};
x4.prototype.onClick=x4.prototype.onClick;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],x4.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],x4.prototype,"vertical",void 0);_.p([_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],x4.prototype,"onClick",null);
_.p([_.I({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],x4);
_.a(x4,"ytd-single-select-answer-option-renderer",function(){if(Ssd!==void 0)return Ssd;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Ssd=q},{mode:1});var WZx;var vO=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return q};
_.Y(vO,_.C);vO.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
vO.prototype.dataChanged=function(){var q,N;this.vertical=((N=(q=this.data)==null?void 0:q.answerOrientation)!=null?N:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
vO.prototype.submitFeedback=function(q){var N;((N=this.data)==null?0:N.responseEndpoint)&&q&&_.qc(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[q]}])};
vO.prototype.dataChanged=vO.prototype.dataChanged;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],vO.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],vO.prototype,"eventForwardingBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],vO.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],vO.prototype,"vertical",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vO.prototype,"dataChanged",null);_.p([_.I({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],vO);
_.a(vO,"ytd-single-select-question-renderer",function(){if(WZx!==void 0)return WZx;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return WZx=q},{mode:1});var GO=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return q};
_.Y(GO,_.C);_.g=GO.prototype;_.g.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"}}}};
_.g.dataChanged=function(){this.jumpToStage(0)};
_.g.jumpToStage=function(q){var N,b;if((N=this.data)==null?0:(b=N.stages)==null?0:b[q])this.currentStage=this.data.stages[q],this.refitAfterRender()};
_.g.computeAlt=function(q){return _.ao(q)};
_.g.computeSimpleMessage=function(q){var N;return(N=_.v(q,cYN))==null?void 0:N.messageText};
_.g.computeHideDismiss=function(q){var N;return(N=_.v(q,I0X))==null?void 0:N.hideParentDismissButton};
_.g.onDismissTap=function(){_.By(this.hostElement,"yt-close-popup-action");_.v(this.currentStage,cYN)||this.data.dismissalEndpoint&&_.tz().resolve(_.rO).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.g.refitAfterRender=function(){var q=this;_.ut(this,function(){_.e2(q.hostElement,"yt-refit")})};
GO.prototype.dataChanged=GO.prototype.dataChanged;_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],GO.prototype,"eventForwardingBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],GO.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.O(AKp),_.P("design:type",Object)],GO.prototype,"ytdHatsSurveyBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],GO.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],GO.prototype,"currentStage",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],GO.prototype,"dataChanged",null);_.p([_.I({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],GO);
_.a(GO,"ytd-multi-stage-survey-renderer",function(){if(aaB!==void 0)return aaB;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return aaB=q},{mode:1});var LZc;var Y4=function(){return _.C.apply(this,arguments)||this};
_.Y(Y4,_.C);Y4.prototype.computeAlt=function(q){return _.ao(q)};
Y4.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.tz().resolve(_.rO).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.By(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.zQK(!1)))};
Y4.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Y4.prototype.onTap=Y4.prototype.onTap;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],Y4.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Y4.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Y4.prototype,"vertical",void 0);
_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Y4.prototype,"onTap",null);_.p([_.I({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Y4);
_.a(Y4,"ytd-single-option-survey-option-renderer",function(){if(LZc!==void 0)return LZc;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return LZc=q},{mode:1});var pmA;var Qa=function(){return _.C.apply(this,arguments)||this};
_.Y(Qa,_.C);_.g=Qa.prototype;_.g.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(){var q,N;this.vertical=(((q=this.data)==null?void 0:(N=q.surveyOrientation)==null?void 0:N.type)||"HORIZONTAL")==="VERTICAL"};
_.g.computeAlt=function(q){return _.ao(q)};
_.g.onDismissTap=function(){_.By(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.tz().resolve(_.rO).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.zQK(!1))};
Qa.prototype.dataChanged=Qa.prototype.dataChanged;_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],Qa.prototype,"eventForwardingBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Qa.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Qa.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(AKp),_.P("design:type",Object)],Qa.prototype,"ytdHatsSurveyBehavior",void 0);
_.p([_.O(_.H6),_.P("design:type",Object)],Qa.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Qa.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Qa.prototype,"vertical",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qa.prototype,"dataChanged",null);_.p([_.I({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],Qa);
_.a(Qa,"ytd-single-option-survey-renderer",function(){if(pmA!==void 0)return pmA;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return pmA=q},{mode:1});var PSa;var OO=function(){return _.C.apply(this,arguments)||this};
_.Y(OO,_.C);OO.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
OO.prototype.onDismissTap=function(){_.By(this.hostElement,"yt-close-popup-action")};
OO.prototype.onNavigate=function(){_.By(this.hostElement,"yt-close-popup-action")};
OO.prototype.onNavigate=OO.prototype.onNavigate;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],OO.prototype,"ytEventForwardingBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],OO.prototype,"data",void 0);_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],OO.prototype,"onNavigate",null);
_.p([_.I({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],OO);
_.a(OO,"ytd-survey-follow-up-renderer",function(){if(PSa!==void 0)return PSa;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return PSa=q},{mode:1});var MWf;var oWa;var AFd;var wc=function(){var q=_.C.apply(this,arguments)||this;q.polymer2="Element"in Polymer;return q};
_.Y(wc,_.C);_.g=wc.prototype;_.g.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.g.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.g.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.g.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("minutes-changed",this.minutes))};
_.g.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("seconds-changed",this.seconds))};
_.g.updateMinutesFromBinding=function(q){this.minutes=q.detail.value};
_.g.updateSecondsFromBinding=function(q){this.seconds=q.detail.value};
wc.prototype.secondsChangedForBinding=wc.prototype.secondsChangedForBinding;wc.prototype.minutesChangedForBinding=wc.prototype.minutesChangedForBinding;wc.prototype.secondsChanged=wc.prototype.secondsChanged;_.p([_.U(),_.P("design:type",String)],wc.prototype,"minutes",void 0);_.p([_.U(),_.P("design:type",String)],wc.prototype,"seconds",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],wc.prototype,"polymer2",void 0);
_.p([_.dq("#seconds"),_.P("design:type",Object)],wc.prototype,"secondsEl",void 0);_.p([_.FY("seconds"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wc.prototype,"secondsChanged",null);_.p([_.FY("minutes"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wc.prototype,"minutesChangedForBinding",null);
_.p([_.FY("seconds"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wc.prototype,"secondsChangedForBinding",null);_.p([_.Ok({is:"yt-timestamp-input",disableElementRegistration:!0})],wc);
_.a(wc,"yt-timestamp-input",function(){if(AFd===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;oWa===void 0&&(oWa=document.createElement("template"));var y=oWa;b.call(N,y.content.cloneNode(!0),q.content.firstChild);AFd=q}q=AFd;return q},{mode:2});var im=function(){return _.C.apply(this,arguments)||this};
_.Y(im,_.C);_.g=im.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20769_scroller.dialogElement=this.hostElement.parentNode};
_.g.dataChanged=function(){var q=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.MO().getPlayerPromise().then(function(N){N=N.getCurrentTime();q.minutes=Math.floor(N/60).toString();q.seconds=(Math.floor(N)%60).toString()})};
_.g.onTapSubmit=function(q){q.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(q={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(q.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(q.minutes=this.minutes,q.seconds=this.seconds),_.tz().resolve(_.rO).resolveCommand(this.serviceEndpoint,{form:Object.assign({},q,{element:this.hostElement})}))};
_.g.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.g.onYtServiceRequestCompleted=function(q,N){N=N.actions;if(Array.isArray(N))for(var b=0,y=N.length;b<y;b++)_.v(N[b],_.sj)&&(q.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(N[b]))};
_.g.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.g.toggleSubmitButton=function(q){this.set("submitButton.isDisabled",!q)};
_.g.handleInput=function(){var q=this.issueType,N=this.affiliation,b=this.minutes,y=this.seconds;b=!this.showTimestamp||!!b&&!!y;this.toggleSubmitButton(!!this.descriptionText&&!!q&&!!N&&b)};
_.g.computeServiceEndpoint=function(q){return this.get("submitButton.buttonRenderer.serviceEndpoint",q)};
_.g.computeSubmitButton=function(q){(q=this.get("submitButton.buttonRenderer",q))&&(q=Object.assign({},q,{serviceEndpoint:void 0}));return q};
_.g.computeShowTimestamp=function(q){return!!q};
_.g.onValueChangedForIssueType=function(q){this.issueType=q.detail.value};
_.g.onValueChangedForAffiliation=function(q){this.affiliation=q.detail.value};
_.g.updateDescriptionTextFromBinding=function(q){this.descriptionText=q.detail.value};
_.g.updateFullNameTextFromBinding=function(q){this.fullNameText=q.detail.value};
_.g.updateMinutesFromBinding=function(q){this.minutes=q.detail.value};
_.g.updateSecondsFromBinding=function(q){this.seconds=q.detail.value};
im.prototype.handleInput=im.prototype.handleInput;im.prototype.onYtServiceRequestError=im.prototype.onYtServiceRequestError;im.prototype.onYtServiceRequestCompleted=im.prototype.onYtServiceRequestCompleted;im.prototype.onYtServiceRequestSent=im.prototype.onYtServiceRequestSent;im.prototype.dataChanged=im.prototype.dataChanged;_.p([_.O(_.lw.YtOpenPopupBehavior),_.P("design:type",Object)],im.prototype,"ytOpenPopupBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.p([_.dq("#scroller"),_.P("design:type",Object)],im.prototype,"JSC$20769_scroller",void 0);_.p([_.dq("#description"),_.P("design:type",HTMLInputElement)],im.prototype,"description",void 0);_.p([_.dq("#full-name"),_.P("design:type",Object)],im.prototype,"fullName",void 0);_.p([_.U(),_.P("design:type",Object)],im.prototype,"data",void 0);
_.p([_.U({computed:"computeShowTimestamp(data.timestampLabel)"}),_.P("design:type",Boolean)],im.prototype,"showTimestamp",void 0);_.p([_.U({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.P("design:type",Object)],im.prototype,"serviceEndpoint",void 0);_.p([_.U({computed:"computeSubmitButton(data)"}),_.P("design:type",Object)],im.prototype,"submitButton",void 0);_.p([_.U(),_.P("design:type",String)],im.prototype,"descriptionText",void 0);
_.p([_.U(),_.P("design:type",Number)],im.prototype,"issueType",void 0);_.p([_.U(),_.P("design:type",Number)],im.prototype,"affiliation",void 0);_.p([_.U(),_.P("design:type",String)],im.prototype,"fullNameText",void 0);_.p([_.U(),_.P("design:type",String)],im.prototype,"minutes",void 0);_.p([_.U(),_.P("design:type",String)],im.prototype,"seconds",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],im.prototype,"dataChanged",null);
_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],im.prototype,"onYtServiceRequestSent",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],im.prototype,"onYtServiceRequestCompleted",null);
_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],im.prototype,"onYtServiceRequestError",null);_.p([_.FY("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],im.prototype,"handleInput",null);_.p([_.I({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],im);
_.a(im,"ytd-legal-report-details-form-renderer",function(){if(MWf!==void 0)return MWf;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return MWf=q},{mode:1});var e8f;var lm=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return q};
_.Y(lm,_.C);lm.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
lm.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var q=this.formRenderer.getForm();q&&this.data.submitEndpoint&&(_.tz().resolve(_.rO).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},q,{element:this.hostElement})}),_.By(this.hostElement,"yt-close-popup-action"))}};
lm.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.By(this.hostElement,"yt-close-popup-action"))};
lm.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
lm.prototype.onPopupClosed=lm.prototype.onPopupClosed;_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],lm.prototype,"ytEventForwardingBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],lm.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],lm.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],lm.prototype,"ytRendererBehavior",void 0);
_.p([_.dq("yt-form-renderer"),_.P("design:type",Object)],lm.prototype,"formRenderer",void 0);_.p([_.U(),_.P("design:type",Object)],lm.prototype,"data",void 0);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lm.prototype,"onPopupClosed",null);_.p([_.I({is:"ytd-form-popup-content",disableElementRegistration:!0})],lm);
_.a(lm,"ytd-form-popup-content",function(){if(e8f!==void 0)return e8f;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return e8f=q},{mode:1});var BvU;var KH=function(){return _.C.apply(this,arguments)||this};
_.Y(KH,_.C);KH.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
KH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
KH.prototype.onPopupOpened=function(){_.e2(this.hostElement,"yt-invalidate-popup-tabbables")};
KH.prototype.onYtServiceRequestCompleted=function(q,N){N.data&&N.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.e2(this.hostElement,"yt-invalidate-popup-tabbables"))};
KH.prototype.onYtServiceRequestCompleted=KH.prototype.onYtServiceRequestCompleted;KH.prototype.onPopupOpened=KH.prototype.onPopupOpened;_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],KH.prototype,"ytEventForwardingBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],KH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],KH.prototype,"ytRendererBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],KH.prototype,"data",void 0);_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],KH.prototype,"onPopupOpened",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],KH.prototype,"onYtServiceRequestCompleted",null);_.p([_.I({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],KH);
_.a(KH,"ytd-form-popup-renderer",function(){if(BvU!==void 0)return BvU;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return BvU=q},{mode:1});var HfB;var DE=function(){var q=_.C.apply(this,arguments)||this;q.isLoading=!1;return q};
_.Y(DE,_.C);_.g=DE.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");kTc(this.hostElement)};
_.g.onYtServiceRequestSent=function(){this.isLoading=!0};
_.g.onYtServiceRequestCompleted=function(){_.By(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.g.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Nc(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.g.closePopupHandler=function(){this.fireOnCloseActions()};
_.g.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var q=this.get("data.headerImage.thumbnails");q&&(q=_.Mo(q,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+q+")")}};
_.g.onYtNavigate=function(q){(q=_.a0(q))&&q.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
DE.prototype.onYtNavigate=DE.prototype.onYtNavigate;DE.prototype.onHeaderImageChanged=DE.prototype.onHeaderImageChanged;DE.prototype.closePopupHandler=DE.prototype.closePopupHandler;DE.prototype.onYtServiceRequestCompleted=DE.prototype.onYtServiceRequestCompleted;DE.prototype.onYtServiceRequestSent=DE.prototype.onYtServiceRequestSent;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],DE.prototype,"ytEventForwardingBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],DE.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],DE.prototype,"isLoading",void 0);_.p([_.dq("#header"),_.P("design:type",HTMLDivElement)],DE.prototype,"header",void 0);_.p([_.dq("#confirm-button"),_.P("design:type",_.su)],DE.prototype,"confirmButton",void 0);
_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],DE.prototype,"onYtServiceRequestSent",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],DE.prototype,"onYtServiceRequestCompleted",null);
_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],DE.prototype,"closePopupHandler",null);_.p([_.FY("data.headerImage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DE.prototype,"onHeaderImageChanged",null);_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],DE.prototype,"onYtNavigate",null);
_.p([_.I({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],DE);
_.a(DE,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(HfB!==void 0)return HfB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return HfB=q},{mode:1});var qPN;var hc=function(){var q=_.C.apply(this,arguments)||this;q.isLoading=!1;return q};
_.Y(hc,_.C);_.g=hc.prototype;_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);kTc(this.hostElement)};
_.g.onYtServiceRequestCompleted=function(){_.By(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.g.onYtServiceRequestError=function(q){_.CT(this.hostElement,q.detail.error.message)};
_.g.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.g.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.By(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.g.onDataChanged=function(){this.isLoading=!1;var q=this.get("data.headerImage.thumbnails");q&&(q=_.Mo(q,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+q+")");q=_.Oe();var N=_.QY(),b=this.get("data.trackingParams");b&&N&&q&&_.fr(q,N,_.zT(b))};
_.$H.Object.defineProperties(hc.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
hc.prototype.onDataChanged=hc.prototype.onDataChanged;hc.prototype.onDomChange=hc.prototype.onDomChange;hc.prototype.onYtServiceRequestError=hc.prototype.onYtServiceRequestError;hc.prototype.onYtServiceRequestCompleted=hc.prototype.onYtServiceRequestCompleted;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],hc.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],hc.prototype,"ytRendererBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],hc.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],hc.prototype,"isLoading",void 0);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],hc.prototype,"hasDescription",null);_.p([_.dq("tp-yt-paper-dialog-scrollable"),_.P("design:type",Object)],hc.prototype,"scrollable",void 0);_.p([_.dq("#header"),_.P("design:type",HTMLElement)],hc.prototype,"header",void 0);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],hc.prototype,"onYtServiceRequestCompleted",null);_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],hc.prototype,"onYtServiceRequestError",null);
_.p([_.ZP("dom-change"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],hc.prototype,"onDomChange",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hc.prototype,"onDataChanged",null);_.p([_.I({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],hc);
_.a(hc,"ytd-gaming-account-link-setting-renderer",function(){if(qPN!==void 0)return qPN;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return qPN=q},{mode:1});var N9f;var b5U;var k4=function(){var q=_.C.apply(this,arguments)||this;q.isHeader=!1;q.getEndpointForm=function(){return fsf(q.data)};
return q};
_.Y(k4,_.C);_.g=k4.prototype;_.g.triggerHintActions=function(){var q=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var N=_.Hy(q.hostElement,"yt-get-opened-popups-action");!(N&&N.length===1?N[0]:[]).some(function(b){b=b.openPopupAction.popupType;return b==="SURVEY"||b==="MEALBAR"||b==="HINT"})&&q.data.hintActions&&q.guideOpened&&(_.Nc(q.hostElement,q.data.hintActions,q.hostElement),q.data.hintActions=void 0)})};
_.g.getBadgeIconType=function(q){return q&&q.liveBroadcasting?"live":null};
_.g.onDown=function(){this.interaction.triggerDown()};
_.g.onUp=function(){this.interaction.triggerUp()};
_.g.onTap=function(q){if(this.data.serviceEndpoint){var N;_.x("shorts_controller_retrieve_seedless_sequence_v2")&&((N=_.v(this.data.serviceEndpoint,_.uI))==null?void 0:N.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):Udf(this.data.serviceEndpoint,this);q.preventDefault()}else this.data.navigationEndpoint&&!_.Su(_.n9(q),this.hostElement,["A".toString()])&&_.e2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.g.computeActive=function(q,N){if(!q)return!1;var b=q.navigationEndpoint;q=q.serviceEndpoint;if(!b&&!q||!N)return!1;if(b){q=(q=_.Z4(N))&&["subscriptions","filteredsubscriptions"].includes(q);if(_.v(b,_.FH)&&_.v(N,_.FH)&&!q){var y=_.v(b,_.FH).browseId;N=_.v(N,_.FH).browseId;return y!==void 0&&N!==void 0&&(y===N||y==="VLWL"&&N==="FEwatch_later"||y==="FEwatch_later"&&N==="VLWL")}var J;b=(J=_.v(b.commandMetadata,_.gg))==null?void 0:J.url;N=(y=_.v(N.commandMetadata,_.gg))==null?void 0:y.url;return!(!b||
!N||b!==N&&b!==_.wO(N))}return this.isActiveShortsTab(q,N)};
_.g.isActiveShortsTab=function(q,N){N=!!_.v(N,_.uI)||!!_.v(N,_.Nz);return(!!_.v(q,_.uI)||!!_.v(q,_.Nz))&&N};
_.g.computeIsPrimary=function(q){return!!q};
_.$H.Object.defineProperties(k4.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 q=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&q)return q}}});
k4.prototype.onTap=k4.prototype.onTap;k4.prototype.onUp=k4.prototype.onUp;k4.prototype.onDown=k4.prototype.onDown;k4.prototype.triggerHintActions=k4.prototype.triggerHintActions;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],k4.prototype,"componentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],k4.prototype,"rendererBehavior",void 0);_.p([_.O(_.zE.YtTaskEmitterBehavior),_.P("design:type",Object)],k4.prototype,"taskEmitterBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],k4.prototype,"activeEndpoint",void 0);_.p([_.U(),_.P("design:type",Object)],k4.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],k4.prototype,"guideOpened",void 0);_.p([_.U(),_.P("design:type",String)],k4.prototype,"type",void 0);_.p([_.dq("yt-interaction"),_.P("design:type",Object)],k4.prototype,"interaction",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],k4.prototype,"isHeader",void 0);
_.p([_.U({reflectToAttribute:!0}),_.l("data","activeEndpoint"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],k4.prototype,"active",null);_.p([_.U({reflectToAttribute:!0}),_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],k4.prototype,"isPrimary",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.count","data.presentationStyle","data.badges.*"),_.P("design:type",String),_.P("design:paramtypes",[])],k4.prototype,"lineEndStyle",null);
_.p([_.l("lineEndStyle"),_.P("design:type",Object),_.P("design:paramtypes",[])],k4.prototype,"ariaLabel",null);_.p([_.FY("data.hintActions","guideOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],k4.prototype,"triggerHintActions",null);_.p([_.ZP("down"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],k4.prototype,"onDown",null);
_.p([_.ZP("up"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],k4.prototype,"onUp",null);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],k4.prototype,"onTap",null);_.p([_.I({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],k4);
_.a(k4,"ytd-guide-entry-renderer",function(){if(b5U!==void 0)return b5U;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return b5U=q},{mode:1});var UO=function(){var q=_.C.apply(this,arguments)||this;q.userToggled=!1;return q};
_.Y(UO,_.C);_.g=UO.prototype;_.g.getItemsPath=function(){return"data.expandableItems"};
_.g.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.g.onExpanderItemTapped=function(q){var N=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.x("kevlar_guide_expandable_items_killswitch")&&_.ut(this,function(){_.Ff(N.expandableItems)});
q.preventDefault()};
_.g.onCollapserItemTapped=function(q){var N=this;this._setExpanded(!1);this.userToggled=!0;q.preventDefault();this.expandableItems&&!_.x("kevlar_guide_collapsible_items_killswitch")&&_.ut(this,function(){_.Zy(N.hostElement)})};
_.g.observeActiveEndpoint=function(){for(var q=this.activeEndpoint,N=this.data,b=this.expandableItems.children,y=0,J=b.length;y<J;y++)b[y].activeEndpoint=q;N&&N.autoExpandCommand&&q&&!this.userToggled&&(b=this.data.autoExpandCommand,N=!(!_.v(b,_.FH)||!_.v(q,_.FH)||_.v(b,_.FH).browseId!==_.v(q,_.FH).browseId),q=this.get("commandMetadata.webCommandMetadata.url",q),b=this.get("commandMetadata.webCommandMetadata.url",b),N=N||!!(q&&b&&q.includes(b)),this._setExpanded(N),N&&this.ytLazyListBehavior.fillRemainingListItems())};
UO.prototype.observeActiveEndpoint=UO.prototype.observeActiveEndpoint;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.V1.YtLazyListBehavior),_.P("design:type",Object)],UO.prototype,"ytLazyListBehavior",void 0);_.p([_.dq("#expandable-items"),_.P("design:type",HTMLElement)],UO.prototype,"expandableItems",void 0);
_.p([_.U(),_.P("design:type",Object)],UO.prototype,"data",void 0);_.p([_.U({readOnly:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],UO.prototype,"expanded",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],UO.prototype,"initialCount",void 0);_.p([_.U(),_.P("design:type",Object)],UO.prototype,"activeEndpoint",void 0);_.p([_.FY("data","activeEndpoint","canShowMore"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],UO.prototype,"observeActiveEndpoint",null);
_.p([_.I({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],UO);
_.a(UO,"ytd-guide-collapsible-entry-renderer",function(){if(N9f!==void 0)return N9f;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return N9f=q},{mode:_.Am("kevlar_poly_si_batch_j079")?1:2});var ygf;var Jgf;var fH=function(){var q=_.C.apply(this,arguments)||this;q.allVideosCount=0;q.renderGuideEntry=!1;return q};
_.Y(fH,_.C);fH.prototype.observeRenderEntry=function(){var q;this.renderGuideEntry=!((q=this.data)==null||!q.alwaysShow)||!!this.allVideosCount};
fH.prototype.observeRenderEntry=fH.prototype.observeRenderEntry;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],fH.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],fH.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],fH.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],fH.prototype,"activeEndpoint",void 0);_.p([_.U({selector:_.acJ}),_.P("design:type",Object)],fH.prototype,"allVideosCount",void 0);
_.p([_.U(),_.P("design:type",Object)],fH.prototype,"renderGuideEntry",void 0);_.p([_.$9("allVideosCount","data.alwaysShow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fH.prototype,"observeRenderEntry",null);_.p([_.I({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],fH);
_.a(fH,"ytd-guide-downloads-entry-renderer",function(){if(Jgf===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);Jgf=q}q=Jgf;return q},{mode:1});var CH=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return q};
_.Y(CH,_.C);_.g=CH.prototype;_.g.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]]"}}}}}};
_.g.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var q=this.sectionItems.children,N=0,b=q.length;N<b;N++)q[N].activeEndpoint=this.activeEndpoint}};
_.g.handleAddToGuideSectionAction=function(q){var N=_.v(q,wfa);if(N&&this.data&&(q=N.items,N=N.handlerData,q&&N&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(N)>-1)){N=0;for(var b=q.length;N<b;N++)q[N].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,q[N])}};
_.g.handleRemoveFromGuideSectionAction=function(q){var N=_.v(q,iuc);N&&this.data&&(q=N.guideEntryId,N=N.handlerData,q&&N&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(N)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(q,this.data.sectionItems),this.removeFromCollapsedSection(q,this.data.sectionItems)))};
_.g.removeFromExpandedSection=function(q,N){q=this.getEntryIndexMatchingId(q,N);q!==-1&&this.splice("data.sectionItems",q,1)};
_.g.removeFromCollapsedSection=function(q,N){var b=N.findIndex(function(y){return!!_.v(y,L1c)});
b&&b!==-1&&N[b]&&_.v(N[b],L1c)&&(N=_.v(N[b],L1c).expandableItems)&&(q=this.getEntryIndexMatchingId(q,N),q!==-1&&this.splice("data.sectionItems."+b+".guideCollapsibleEntryRenderer.expandableItems",q,1))};
_.g.getEntryIndexMatchingId=function(q,N){var b=this;return N.findIndex(function(y){return b.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",y)===q})};
CH.prototype.activeEndpointChanged=CH.prototype.activeEndpointChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],CH.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],CH.prototype,"actionHandlerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],CH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("#section-items"),_.P("design:type",HTMLDivElement)],CH.prototype,"sectionItems",void 0);
_.p([_.dq("#header-entry"),_.P("design:type",Object)],CH.prototype,"headerEntry",void 0);_.p([_.U(),_.P("design:type",Object)],CH.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],CH.prototype,"activeEndpoint",void 0);_.p([_.FY("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CH.prototype,"activeEndpointChanged",null);_.p([_.I({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],CH);
_.a(CH,"ytd-guide-collapsible-section-entry-renderer",function(){if(ygf===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);ygf=q}q=ygf;return q},{mode:1});var Eba;var gbX;var In=function(){var q=_.C.apply(this,arguments)||this;q.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 q};
_.Y(In,_.C);_.g=In.prototype;
_.g.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}}}}};
_.g.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var q=_.Hy(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);q&&q.length===1&&q[0]&&_.Hy(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.g.handleResetChannelUnreadCountCommand=function(q){var N;(q=(N=_.v(q,K1X))==null?void 0:N.channelId)&&this.data&&this.data.items&&(N=this.getPathToEntryMatchingId(q))&&(this.set(N+".guideEntryRenderer.count",0),this.set(N+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.g.handleResetSubscriptionsUnreadDotCommand=function(q){var N,b=(N=_.v(q,Dya))==null?void 0:N.targetId,y;b&&(y=this.data)!=null&&y.items&&(q=this.data.items.findIndex(function(J){var E;return((E=J.guideEntryRenderer)==null?void 0:E.targetId)===b}),q<0||this.set("data.items."+q+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.g.getPathToEntryMatchingId=function(q){if(this.data&&this.data.items){var N=this.getEntryIndexMatchingId(q,this.data.items);if(N>-1)return"data.items."+N;for(var b=0;b<this.data.items.length;b++)if(N=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[b]))if(N=this.getEntryIndexMatchingId(q,N),N>-1)return"data.items."+b+".guideCollapsibleEntryRenderer.expandableItems."+N}};
_.g.handleAddToGuideSectionAction=function(q){var N=this;if(_.v(q,wfa)){var b=_.v(q,wfa).items;q=_.v(q,wfa).handlerData;var y,J;if(b&&q&&((y=this.data)==null?void 0:(J=y.handlerDatas)==null?void 0:J.indexOf(q))>-1){b=b.filter(function(F){return(F=N.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",F))&&!N.isGuideItemPresent(F)});
var E;if(q==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((E=this.data)==null?0:E.items)&&(y=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),y>-1)){this.splice.apply(this,["data.items",y+1,0].concat(_.a9(b)));return}this.unshift.apply(this,["data.items"].concat(_.a9(b)))}}};
_.g.isGuideItemPresent=function(q){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(q,this.data.items)!==-1)return!0;var N=this.data.items.find(function(b){return!!b.guideCollapsibleEntryRenderer});
if((N==null?0:N.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(q,N.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.g.getEntryIndexMatchingId=function(q,N){var b=this;return N.findIndex(function(y){return b.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",y)===q})};
_.g.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(q,N){var b=this;return N.findIndex(function(y){return b.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",y)===q})};
_.g.handleRemoveFromGuideSectionAction=function(q){if(_.v(q,iuc)){var N=_.v(q,iuc).guideEntryId;q=_.v(q,iuc).handlerData;var b,y;N&&q&&((b=this.data)==null?void 0:(y=b.handlerDatas)==null?void 0:y.indexOf(q))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(N,this.data.items),this.removeFromCollapsedSection(N,this.data.items))}};
_.g.removeFromExpandedSection=function(q,N){q=this.getEntryIndexMatchingId(q,N);q!==-1&&this.splice("data.items",q,1)};
_.g.removeFromCollapsedSection=function(q,N){var b=N.findIndex(function(y){return!!y.guideCollapsibleEntryRenderer});
b!==-1&&(N=N[b].guideCollapsibleEntryRenderer.expandableItems)&&(q=this.getEntryIndexMatchingId(q,N),q!==-1&&this.splice("data.items."+b+".guideCollapsibleEntryRenderer.expandableItems",q,1))};
_.g.activeEndpointChanged=function(){for(var q=_.ee(this.hostElement).querySelector("#items").children,N=0,b=q.length;N<b;N++)q[N].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.g.guideOpenedChanged=function(){for(var q=_.ee(this.hostElement).querySelector("#items").children,N=0,b=q.length;N<b;N++)q[N].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
In.prototype.guideOpenedChanged=In.prototype.guideOpenedChanged;In.prototype.activeEndpointChanged=In.prototype.activeEndpointChanged;In.prototype.persistentGuideChanged=In.prototype.persistentGuideChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],In.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],In.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],In.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.V1.YtLazyListBehavior),_.P("design:type",Object)],In.prototype,"ytLazyListBehavior",void 0);_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],In.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],In.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],In.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",String)],In.prototype,"type",void 0);_.p([_.U({value:20}),_.P("design:type",Number)],In.prototype,"initialCount",void 0);_.p([_.U({value:10}),_.P("design:type",Number)],In.prototype,"targetFramerate",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],In.prototype,"autoFill",void 0);_.p([_.U({value:50}),_.P("design:type",Number)],In.prototype,"renderDelay",void 0);
_.p([_.FY("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],In.prototype,"persistentGuideChanged",null);_.p([_.$9("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],In.prototype,"activeEndpointChanged",null);_.p([_.$9("guideOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],In.prototype,"guideOpenedChanged",null);
_.p([_.I({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],In);
_.a(In,"ytd-guide-section-renderer",function(){if(gbX!==void 0)return gbX;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return gbX=q},{mode:_.Am("kevlar_poly_si_batch_j073")?1:2});var Z5f;var TO=function(){return _.C.apply(this,arguments)||this};
_.Y(TO,_.C);_.$H.Object.defineProperties(TO.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],TO.prototype,"rendererBehaviors",void 0);_.p([_.U(),_.P("design:type",Object)],TO.prototype,"data",void 0);_.p([_.U(),_.l("data.signInButton.buttonRenderer.style"),_.P("design:type",Object),_.P("design:paramtypes",[])],TO.prototype,"alignByText",null);_.p([_.I({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],TO);
_.a(TO,"ytd-guide-signin-promo-renderer",function(){if(Z5f===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);Z5f=q}q=Z5f;return q},{mode:1});var sO=function(){var q=_.C.apply(this,arguments)||this;q.showFooter=!1;return q};
_.Y(sO,_.C);sO.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}}}}};
sO.prototype.attached=function(){var q=this,N;return _.d(function(b){if(b.nextAddress==1){N=_.tz().resolve(_.$f(_.JP));if(!N)return b.jumpTo(0);N.setGuideData(q.hostElement);return b.yield(0,3)}q.ytLazyListBehavior.initialCount=2;return b.return()})};
sO.prototype.onMouseExit=function(){_.x("web_guide_hover_expansion")&&_.Hy(this.hostElement,"yt-guide-mouseleaved",[])};
sO.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
sO.prototype.dataChanged=sO.prototype.dataChanged;sO.prototype.onMouseExit=sO.prototype.onMouseExit;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],sO.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.V1.YtLazyListBehavior),_.P("design:type",Object)],sO.prototype,"ytLazyListBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],sO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],sO.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],sO.prototype,"showFooter",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],sO.prototype,"autoFill",void 0);_.p([_.ZP("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sO.prototype,"onMouseExit",null);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sO.prototype,"dataChanged",null);_.p([_.I({is:"ytd-guide-renderer",disableElementRegistration:!0})],sO);
_.a(sO,"ytd-guide-renderer",function(){if(Eba!==void 0)return Eba;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Eba=q},{mode:_.Am("kevlar_poly_si_batch_j073")?1:2});var Fqx;var nH=function(){var q=_.C.apply(this,arguments)||this;q.systemIcons=_.x("kevlar_system_icons");q.frostedGlass=_.x("web_frosted_glass");q.getEndpointForm=function(){return fsf(q.data)};
return q};
_.Y(nH,_.C);_.g=nH.prototype;_.g.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0");this.JSC$20822_sheetController=_.tz().resolve(_.oQ)};
_.g.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.ao(this.data.formattedTitle))};
_.g.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.g.onDown=function(){this.interaction.triggerDown()};
_.g.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var q;if((q=this.JSC$20822_sheetController)!=null){var N=this.mouseEnterCallback.bind(this),b=this.mouseLeaveCallback.bind(this);q.hoverEnterCallback=N!=null?N:void 0;q.hoverLeaveCallback=b!=null?b:void 0}}};
_.g.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.g.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.g.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.g.onUp=function(){this.interaction.triggerUp()};
_.g.onTap=function(q){if(this.data.serviceEndpoint){var N;if(_.x("shorts_controller_retrieve_seedless_sequence_v2")&&((N=_.v(this.data.serviceEndpoint,_.uI))==null?void 0:N.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(_.v(this.data.serviceEndpoint,_.tO)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);q.preventDefault();return}Udf(this.data.serviceEndpoint,this)}q.preventDefault()}else{var b;((b=this.data)==
null?0:b.navigationEndpoint)&&!_.Su(_.n9(q),this.hostElement,["A".toString()])&&_.e2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.g.computeActive=function(q,N){if(!q)return!1;var b=q.navigationEndpoint;q=q.serviceEndpoint;if(!b&&!q||!N)return!1;if(b){q=_.v(b,_.FH);var y=_.v(N,_.FH);if(q&&y)return q.browseId===y.browseId&&q.params===y.params;var J;b=(J=_.v(b.commandMetadata,_.gg))==null?void 0:J.url;var E;N=(E=_.v(N.commandMetadata,_.gg))==null?void 0:E.url;return!(!b||!N||b!==N&&b!==_.wO(N))}return this.isActiveShortsTab(q,N)};
_.g.isActiveShortsTab=function(q,N){N=!!_.v(N,_.uI)||!!_.v(N,_.Nz);return(!!_.v(q,_.uI)||!!_.v(q,_.Nz))&&N};
_.g.computeTitle=function(q,N){return N?"":_.ao(q)};
_.$H.Object.defineProperties(nH.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
nH.prototype.onTap=nH.prototype.onTap;nH.prototype.onUp=nH.prototype.onUp;nH.prototype.onMouseLeave=nH.prototype.onMouseLeave;nH.prototype.onMouseEnter=nH.prototype.onMouseEnter;nH.prototype.onDown=nH.prototype.onDown;nH.prototype.onActiveStateChange=nH.prototype.onActiveStateChange;nH.prototype.dataChanged=nH.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],nH.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],nH.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.Li),_.P("design:type",Object)],nH.prototype,"ironButtonState",void 0);_.p([_.U(),_.P("design:type",Object)],nH.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],nH.prototype,"activeEndpoint",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],nH.prototype,"noLabels",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.P("design:type",Boolean)],nH.prototype,"isActive",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],nH.prototype,"systemIcons",void 0);_.p([_.dq("yt-interaction"),_.P("design:type",Object)],nH.prototype,"interaction",void 0);_.p([_.l("isActive"),_.P("design:type",Object),_.P("design:paramtypes",[])],nH.prototype,"ariaSelected",null);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],nH.prototype,"frostedGlass",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nH.prototype,"dataChanged",null);_.p([_.FY("isActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nH.prototype,"onActiveStateChange",null);_.p([_.ZP("down"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nH.prototype,"onDown",null);
_.p([_.ZP("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[MouseEvent]),_.P("design:returntype")],nH.prototype,"onMouseEnter",null);_.p([_.ZP("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[MouseEvent]),_.P("design:returntype")],nH.prototype,"onMouseLeave",null);_.p([_.ZP("up"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nH.prototype,"onUp",null);
_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],nH.prototype,"onTap",null);_.p([_.I({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],nH);
_.a(nH,"ytd-mini-guide-entry-renderer",function(){if(Fqx!==void 0)return Fqx;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Fqx=q},{mode:_.Am("kevlar_poly_si_batch_j063")?1:2});var Rca;var an=function(){var q=_.C.apply(this,arguments)||this;q.allVideosCount=0;q.noLabels=_.x("kevlar_mini_guide_no_labels");q.frostedGlass=_.x("web_frosted_glass");return q};
_.Y(an,_.C);_.g=an.prototype;_.g.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.g.onMouseEnter=function(){_.x("web_guide_hover_expansion")&&_.Hy(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.g.visibleChanged=function(){if(this.visible&&!this.data){var q=_.tz().resolve(_.$f(_.JP));q&&q.setGuideData(this.hostElement)}};
_.g.dataChanged=function(){var q=_.x("kevlar_guide_menu_on_hover")&&_.x("kevlar_modern_mini_guide"),N=_.x("kevlar_guide_menu_on_click")&&_.x("kevlar_modern_mini_guide"),b;var y=(b=this.data)==null?void 0:b.items;b=this.allVideosCount;var J=[];q=q?0:N?1:void 0;N=q!==void 0;if(y){for(var E=[],F=_.Z(y),R=F.next();!R.done;R=F.next())if(R=R.value,R.guideSubscriptionsSectionRenderer){var c=void 0;E=((c=R.guideSubscriptionsSectionRenderer)==null?void 0:c.items)||[]}y=_.Z(y);for(F=y.next();!F.done;F=y.next())if(F=
F.value,R=void 0,(R=F.guideSectionRenderer)==null?0:R.items)for(R=void 0,F=_.Z((R=F.guideSectionRenderer)==null?void 0:R.items),R=F.next();!R.done;R=F.next()){R=R.value;var z=void 0,m=void 0;c=R.guideEntryRenderer||_.v((z=R)==null?void 0:(m=z.guideCollapsibleSectionEntryRenderer)==null?void 0:m.headerEntry,CZA);z=[];m=[];var r=void 0;if(((r=c)==null?void 0:r.targetId)==="subscriptions-guide-item")z=E;else{var X=r=void 0;if((r=R)==null?0:(X=r.guideCollapsibleSectionEntryRenderer)==null?0:X.sectionItems)m=
z=R.guideCollapsibleSectionEntryRenderer.sectionItems}Isp(J,c,N?z:[],q);if(m.length>0)for(R=_.Z(m),c=R.next();!c.done;c=R.next())c=c.value,m=_.v(c,pff),z=void 0,m=m&&(m.alwaysShow||b)?_.v((z=m)==null?void 0:z.entryRenderer,CZA):_.v(c,CZA),Isp(J,m,[])}}this.miniGuideItems=J};
_.g.activeEndpointChanged=function(){for(var q=this.items.children,N=0;N<q.length;N++)q[N].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.g.registerWithViewTransitionManager=function(){var q=this;_.Ip(_.pY,function(){var N=_.tz().resolve(_.$f(_.p8));if(N&&N.isAnyTransitionEnabled){var b={};N.viewTransitionCoordinator.registerElement(q.hostElement,(b.slide="mini-guide-page-transition",b))}})};
an.prototype.activeEndpointChanged=an.prototype.activeEndpointChanged;an.prototype.dataChanged=an.prototype.dataChanged;an.prototype.visibleChanged=an.prototype.visibleChanged;an.prototype.onMouseEnter=an.prototype.onMouseEnter;_.p([_.O(_.H6),_.P("design:type",Object)],an.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],an.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],an.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],an.prototype,"ytComponentBehavior",void 0);_.p([_.dq("#items"),_.P("design:type",Object)],an.prototype,"items",void 0);_.p([_.U(),_.P("design:type",Object)],an.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Boolean)],an.prototype,"visible",void 0);_.p([_.U(),_.P("design:type",Object)],an.prototype,"miniGuideItems",void 0);_.p([_.U({selector:_.acJ}),_.P("design:type",Object)],an.prototype,"allVideosCount",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],an.prototype,"noLabels",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],an.prototype,"frostedGlass",void 0);
_.p([_.ZP("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],an.prototype,"onMouseEnter",null);_.p([_.$9("visible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],an.prototype,"visibleChanged",null);_.p([_.$9("data","allVideosCount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],an.prototype,"dataChanged",null);
_.p([_.$9("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],an.prototype,"activeEndpointChanged",null);_.p([_.I({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],an);
_.a(an,"ytd-mini-guide-renderer",function(){if(Rca===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);Rca=q}q=Rca;return q},{mode:1});var d4A;var cgA=/^[\x00-\x7F]+$/,SB=function(){return _.C.apply(this,arguments)||this};
_.Y(SB,_.C);_.$H.Object.defineProperties(SB.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var q,N=_.ao((q=this.data)==null?void 0:q.handle);if(N)return _.nD("@"+N)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var q=_.ao(this.displayHandle),N,b=_.ao((N=this.data)==null?void 0:N.handleUrl);if(q&&b)return _.nD(b+q)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var q=_.ao(this.displayHandle);if(q&&!cgA.test(q)){var N;return(N=this.data)==null?void 0:N.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var q=_.ao(this.displayHandleUrl),N,b=_.ao((N=this.data)==null?void 0:N.urlInfoText);if(q&&b)return _.nD(b+" "+q)}}});
_.p([_.U(),_.P("design:type",Object)],SB.prototype,"data",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],SB.prototype,"displayHandle",null);_.p([_.l("displayHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],SB.prototype,"displayHandleUrl",null);_.p([_.l("displayHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],SB.prototype,"warningText",null);
_.p([_.l("displayHandleUrl"),_.P("design:type",Object),_.P("design:paramtypes",[])],SB.prototype,"urlInfoTextWithUrl",null);_.p([_.I({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],SB);
_.a(SB,"ytd-handles-claiming-confirm-dialog-content",function(){if(d4A!==void 0)return d4A;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return d4A=q},{mode:1});var uuc;var WO=function(){var q=_.C.apply(this,arguments)||this;q.okButtonOverride={style:"mono",type:"outline",size:"M"};return q};
_.Y(WO,_.C);WO.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
WO.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],WO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],WO.prototype,"okButtonOverride",void 0);_.p([_.U(),_.P("design:type",Object)],WO.prototype,"data",void 0);_.p([_.I({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],WO);
_.a(WO,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(uuc!==void 0)return uuc;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return uuc=q},{mode:1});var zcx;var $4N=/^[\x00-\x7F]+$/,LH=function(){var q=_.C.apply(this,arguments)||this;q.isLoading=!1;return q};
_.Y(LH,_.C);LH.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var q;this.selectedHandle=(q=this.handleInput)==null?void 0:q.value;this.onSelectedHandleChanged(this.selectedHandle);_.Hy(this.hostElement,"yt-refit-popups-action")}};
_.$H.Object.defineProperties(LH.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.nD("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.nD(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!$4N.test(this.selectedHandle)){var q;return(q=this.data)==null?void 0:q.warningText}}}});
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],LH.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],LH.prototype,"data",void 0);_.p([_.U(),_.P("design:type",String)],LH.prototype,"selectedHandle",void 0);_.p([_.U(),_.P("design:type",Object)],LH.prototype,"isLoading",void 0);_.p([_.U(),_.P("design:type",Function)],LH.prototype,"onSelectedHandleChanged",void 0);_.p([_.dq("#channel-handle-input"),_.P("design:type",Object)],LH.prototype,"handleInput",void 0);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],LH.prototype,"handleUrlPrefix",null);_.p([_.l("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],LH.prototype,"displayHandle",null);_.p([_.l("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],LH.prototype,"displayHandleUrl",null);_.p([_.l("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],LH.prototype,"warningText",null);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],LH.prototype,"ytRendererBehavior",void 0);_.p([_.I({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],LH);
_.a(LH,"ytd-handles-claiming-edit-dialog-content",function(){if(zcx!==void 0)return zcx;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return zcx=q},{mode:1});var tMA;var pH=function(){var q=_.C.apply(this,arguments)||this;q.actionButtonOverride={style:"mono",type:"filled",size:"M"};q.cancelButtonOverride={style:"mono",type:"text",size:"M"};q.selectButtonDisabled=!1;q.isLoading=!1;q.hasSelectedHandleEventListener=!1;q.selectedHandleChanged=function(N){q.selectedHandle=N};
return q};
_.Y(pH,_.C);_.g=pH.prototype;_.g.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.g.onDataChanged=function(){var q,N;this.selectedHandle=(N=_.v((q=this.data)==null?void 0:q.inputField,vlp))==null?void 0:N.handle};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.onCancel=function(){this.selectedHandle="";_.By(this.hostElement,"yt-close-popup-action",[this.is])};
_.g.onSelectHandle=function(){var q=this;if(this.selectedHandle!==void 0){var N;((N=this.data)==null?void 0:N.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(b,y){if(y.newHandleUpdateStatus!==void 0&&y.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&y.newHandleUpdateStatus.errorMessage)_.CT(q.hostElement,_.ao(y.newHandleUpdateStatus.errorMessage)),
q.isLoading=!1;else{var J;if((J=q.data)==null?0:J.onChannelUpdateSuccess){b=q.data.onChannelUpdateSuccess;var E,F;if(y=(E=_.v(b,_.sj))==null?void 0:(F=E.popup)==null?void 0:F.handlesClaimingConfirmDialogRenderer)y.handle=_.nD(q.selectedHandle);q.ytComponentBehavior.resolveCommand(b);_.By(q.hostElement,"yt-close-popup-action",[q.is])}else q.isLoading=!1}},
onServerError:function(){var b;q.content&&((b=q.content)==null?0:b.handleInput)&&q.content.handleInput.validate();q.isLoading=!1;_.CT(q.hostElement,_.FE("TRY_AGAIN_LATER"))}}}))}};
_.g.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
pH.prototype.onDataChanged=pH.prototype.onDataChanged;pH.prototype.onSelectedHandleChanged=pH.prototype.onSelectedHandleChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],pH.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],pH.prototype,"actionButtonOverride",void 0);_.p([_.U(),_.P("design:type",Object)],pH.prototype,"cancelButtonOverride",void 0);_.p([_.U(),_.P("design:type",Object)],pH.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",String)],pH.prototype,"selectedHandle",void 0);_.p([_.U(),_.P("design:type",Object)],pH.prototype,"selectButtonDisabled",void 0);_.p([_.U(),_.P("design:type",Object)],pH.prototype,"isLoading",void 0);_.p([_.U(),_.P("design:type",Object)],pH.prototype,"hasSelectedHandleEventListener",void 0);_.p([_.U(),_.P("design:type",Object)],pH.prototype,"handleInput",void 0);
_.p([_.FY("selectedHandle"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pH.prototype,"onSelectedHandleChanged",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pH.prototype,"onDataChanged",null);_.p([_.dq("ytd-handles-claiming-edit-dialog-content"),_.P("design:type",Object)],pH.prototype,"content",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],pH.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],pH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.I({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],pH);
_.a(pH,"ytd-handles-claiming-edit-dialog-renderer",function(){if(tMA!==void 0)return tMA;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return tMA=q},{mode:1});var m4d;var PO=function(){return _.C.apply(this,arguments)||this};
_.Y(PO,_.C);_.$H.Object.defineProperties(PO.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null?0:q.handle){var N;return _.nD("@"+_.ao((N=this.data)==null?void 0:N.handle))}}}});
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],PO.prototype,"formattedHandle",null);_.p([_.U(),_.P("design:type",Object)],PO.prototype,"data",void 0);_.p([_.I({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],PO);
_.a(PO,"ytd-handles-claiming-radio-option-renderer",function(){if(m4d!==void 0)return m4d;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return m4d=q},{mode:1});var rgX;var X9X=/^[\x00-\x7F]+$/,MD=function(){var q=_.C.apply(this,arguments)||this;q.initialRadioIndex="-1";q.isLoading=!1;q.maybeSubmitFeedback=function(){q.feedbackSurveyRenderer.submitSurvey()};
return q};
_.Y(MD,_.C);MD.prototype.updateSelectedHandleIndexFromBinding=function(q){this.selectedRadioIndex=+q.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(q)};
MD.prototype.selectedHandleChanged=function(q){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var N;this.selectedHandle=(N=this.handleInput)==null?void 0:N.value;this.onSelectedHandleChanged(q)}};
_.$H.Object.defineProperties(MD.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var q;return(((q=this.data)==null?void 0:q.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var q;return this.ytRendererBehavior.getSimpleString((q=this.data)==null?void 0:q.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.nD("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.nD(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!X9X.test(this.selectedHandle)){var q;return(q=this.data)==null?void 0:q.warningText}}}});
_.p([_.U(),_.P("design:type",Object)],MD.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],MD.prototype,"initialRadioIndex",void 0);_.p([_.U(),_.P("design:type",Number)],MD.prototype,"selectedRadioIndex",void 0);_.p([_.U(),_.P("design:type",String)],MD.prototype,"selectedHandle",void 0);_.p([_.U(),_.P("design:type",Object)],MD.prototype,"isLoading",void 0);_.p([_.U(),_.P("design:type",Function)],MD.prototype,"onSelectedHandleChanged",void 0);
_.p([_.U(),_.P("design:type",Function)],MD.prototype,"onSelectedRadioIndexChanged",void 0);_.p([_.dq("#channel-handle-input"),_.P("design:type",Object)],MD.prototype,"handleInput",void 0);_.p([_.dq("ytd-feedback-survey-renderer"),_.P("design:type",Object)],MD.prototype,"feedbackSurveyRenderer",void 0);_.p([_.l("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],MD.prototype,"radioButtonLength",null);
_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],MD.prototype,"handleUrlPrefix",null);_.p([_.l("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],MD.prototype,"displayHandle",null);_.p([_.l("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],MD.prototype,"displayHandleUrl",null);_.p([_.l("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],MD.prototype,"warningText",null);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],MD.prototype,"ytRendererBehavior",void 0);_.p([_.I({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],MD);
_.a(MD,"ytd-handles-claiming-select-dialog-content",function(){if(rgX!==void 0)return rgX;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return rgX=q},{mode:1});var VMB;var on=function(){var q=_.C.apply(this,arguments)||this;q.actionButtonOverride={style:"mono",type:"filled",size:"M"};q.cancelButtonOverride={style:"mono",type:"text",size:"M"};q.initialRadioIndex="-1";q.selectButtonDisabled=!1;q.isLoading=!1;q.selectedRadioIndexChanged=function(N){q.selectedRadioIndex=Number(N.detail.value)};
q.selectedHandleChanged=function(N){q.selectedHandle=N.detail.value};
return q};
_.Y(on,_.C);_.g=on.prototype;_.g.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.g.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.g.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Hy(this.hostElement,"yt-refit-popups-action")};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.By(this.hostElement,"yt-close-popup-action",[this.is])};
_.g.onSelectHandle=function(){var q=this;if(this.selectedHandle!==void 0){var N;((N=this.data)==null?void 0:N.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(b,y){if(y.newHandleUpdateStatus!==void 0&&y.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&y.newHandleUpdateStatus.errorMessage)_.CT(q.hostElement,_.ao(y.newHandleUpdateStatus.errorMessage)),
q.isLoading=!1;else{var J;if((J=q.data)==null?0:J.onChannelUpdateSuccess){b=q.data.onChannelUpdateSuccess;y=_.v(b,_.sj);var E;if(y==null?0:(E=y.popup)==null?0:E.handlesClaimingConfirmDialogRenderer)y.popup.handlesClaimingConfirmDialogRenderer.handle=_.nD(q.selectedHandle);q.ytComponentBehavior.resolveCommand(b);_.By(q.hostElement,"yt-close-popup-action",[q.is])}else q.isLoading=!1}},
onServerError:function(){if(q.selectedRadioIndex===q.radioButtonLength){var b;q.content&&((b=q.content)==null?0:b.handleInput)&&q.content.handleInput.validate()}q.isLoading=!1;_.CT(q.hostElement,_.FE("TRY_AGAIN_LATER"))}}}))}};
_.g.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var q,N;this.selectedHandle=(q=this.content)==null?void 0:(N=q.handleInput)==null?void 0:N.value}else this.selectedRadioIndex>=0&&((q=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(q==null?void 0:q.handle):this.selectedHandle=void 0)};
_.g.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.g.getRadioItem=function(q){if(this.radioButtonLength>q&&q>=0)return _.v(this.data.radioButton[q],Toa)};
_.$H.Object.defineProperties(on.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var q;return(((q=this.data)==null?void 0:q.radioButton)||[]).length}}});
on.prototype.onSelectedHandleChanged=on.prototype.onSelectedHandleChanged;on.prototype.onSelectedHandleIndexChanged=on.prototype.onSelectedHandleIndexChanged;on.prototype.onDataChanged=on.prototype.onDataChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],on.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],on.prototype,"actionButtonOverride",void 0);_.p([_.U(),_.P("design:type",Object)],on.prototype,"cancelButtonOverride",void 0);
_.p([_.U(),_.P("design:type",Object)],on.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],on.prototype,"initialRadioIndex",void 0);_.p([_.U(),_.P("design:type",Number)],on.prototype,"selectedRadioIndex",void 0);_.p([_.U(),_.P("design:type",String)],on.prototype,"selectedHandle",void 0);_.p([_.U(),_.P("design:type",Object)],on.prototype,"selectButtonDisabled",void 0);_.p([_.U(),_.P("design:type",Object)],on.prototype,"isLoading",void 0);
_.p([_.l("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],on.prototype,"radioButtonLength",null);_.p([_.dq("ytd-handles-claiming-select-dialog-content"),_.P("design:type",Object)],on.prototype,"content",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],on.prototype,"onDataChanged",null);
_.p([_.FY("selectedRadioIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],on.prototype,"onSelectedHandleIndexChanged",null);_.p([_.FY("selectedHandle"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],on.prototype,"onSelectedHandleChanged",null);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],on.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],on.prototype,"ytRendererstamperBehavior",void 0);_.p([_.I({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],on);
_.a(on,"ytd-handles-claiming-select-dialog-renderer",function(){if(VMB!==void 0)return VMB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return VMB=q},{mode:1});var jba;var x4C;var Ac=function(){return _.C.apply(this,arguments)||this};
_.Y(Ac,_.C);Ac.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Ac.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ac.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ac.prototype,"data",void 0);_.p([_.I({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Ac);
_.a(Ac,"ytd-hotkey-dialog-section-option-renderer",function(){if(x4C!==void 0)return x4C;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return x4C=q},{mode:1});var vba;var eB=function(){return _.C.apply(this,arguments)||this};
_.Y(eB,_.C);eB.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],eB.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],eB.prototype,"data",void 0);_.p([_.I({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],eB);
_.a(eB,"ytd-hotkey-dialog-section-renderer",function(){if(vba!==void 0)return vba;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return vba=q},{mode:1});var BO=function(){return _.C.apply(this,arguments)||this};
_.Y(BO,_.C);BO.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],BO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],BO.prototype,"data",void 0);_.p([_.I({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],BO);
_.a(BO,"ytd-hotkey-dialog-content",function(){if(jba!==void 0)return jba;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return jba=q},{mode:1});var G0C;var HO=function(){return _.C.apply(this,arguments)||this};
_.Y(HO,_.C);HO.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var q=document.querySelector("ytd-hotkey-dialog-content #scrollable");q&&(q.dialogElement=this.hostElement.parentElement)};
HO.prototype.onCloseTap=function(){_.By(this.hostElement,"yt-close-popup-action")};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],HO.prototype,"data",void 0);_.p([_.I({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],HO);
_.a(HO,"ytd-hotkey-dialog-renderer",function(){if(G0C!==void 0)return G0C;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return G0C=q},{mode:1});var YPx;var qf=function(){return _.C.apply(this,arguments)||this};
_.Y(qf,_.C);qf.prototype.onYtServiceRequestError=function(){if(this.blocked){var q;var N=(q=this.data)==null?void 0:q.defaultServiceEndpoint}else{var b;N=(b=this.data)==null?void 0:b.toggledServiceEndpoint}var y;(N=(y=_.v(N,_.kI1))==null?void 0:y.onFailureAction)&&this.ytComponentBehavior.resolveCommand(N);this.updateBlockState(!this.blocked)};
qf.prototype.onYtToggleButton=function(q){this.updateBlockState(q.detail.toggled)};
qf.prototype.updateBlockState=function(q){if(q!==this.blocked){var N=this.blockedEntityKey;N&&this.ytdReduxBehavior.dispatch(_.$e("blockStateEntity",N,{key:N,blocked:q}));this.set("data.isToggled",q)}};
_.$H.Object.defineProperties(qf.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)}}});
qf.prototype.onYtToggleButton=qf.prototype.onYtToggleButton;qf.prototype.onYtServiceRequestError=qf.prototype.onYtServiceRequestError;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],qf.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],qf.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],qf.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],qf.prototype,"blockedEntityKey",void 0);
_.p([_.U({selectorArgs:["blockedEntityKey"],selector:function(q,N){return _.Ji(q.entities,"blockStateEntity",N)}}),
_.P("design:type",Object)],qf.prototype,"blockStateEntity",void 0);_.p([_.l("data","blockStateEntity"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],qf.prototype,"blocked",null);_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],qf.prototype,"onYtServiceRequestError",null);
_.p([_.ZP("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],qf.prototype,"onYtToggleButton",null);_.p([_.I({is:"ytd-block-button",disableElementRegistration:!0})],qf);
_.a(qf,"ytd-block-button",function(){if(YPx!==void 0)return YPx;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return YPx=q},
{mode:1});var Qbf;var O5U;var Nf=function(){return _.C.apply(this,arguments)||this};
_.Y(Nf,_.C);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Nf.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Nf.prototype,"data",void 0);_.p([_.I({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],Nf);
_.a(Nf,"ytd-kids-blocklist-picker-item-renderer",function(){if(O5U!==void 0)return O5U;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return O5U=q},{mode:1});var bY=function(){return _.C.apply(this,arguments)||this};
_.Y(bY,_.C);bY.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],bY.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],bY.prototype,"data",void 0);_.p([_.I({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],bY);
_.a(bY,"ytd-kids-blocklist-picker-content",function(){if(Qbf!==void 0)return Qbf;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Qbf=
q},{mode:_.Am("kevlar_poly_si_batch_j025")?1:2});var w9C;var y2=function(){var q=_.C.apply(this,arguments)||this;q.hasAnyRequestSucceeded=!1;q.hasAnyRequestFailed=!1;q.numPendingRequests=0;return q};
_.Y(y2,_.C);_.g=y2.prototype;_.g.attached=function(){this.hostElement.setAttribute("dialog","")};
_.g.onDoneButtonTap=function(){_.By(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.g.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.g.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.g.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.g.onPopupClosed=function(q){var N,b;if(((N=q.detail)==null?void 0:(b=N.popup)==null?void 0:b.is)==="tp-yt-paper-dialog"){var y;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((y=this.data)==null?0:y.successfulToastActionMessage)&&(q=_.pD(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(q));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
y2.prototype.onPopupClosed=y2.prototype.onPopupClosed;y2.prototype.onYtServiceRequestError=y2.prototype.onYtServiceRequestError;y2.prototype.onYtServiceRequestCompleted=y2.prototype.onYtServiceRequestCompleted;y2.prototype.onYtServiceRequestSent=y2.prototype.onYtServiceRequestSent;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],y2.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],y2.prototype,"data",void 0);_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],y2.prototype,"onYtServiceRequestSent",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],y2.prototype,"onYtServiceRequestCompleted",null);
_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],y2.prototype,"onYtServiceRequestError",null);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],y2.prototype,"onPopupClosed",null);_.p([_.I({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],y2);
_.a(y2,"ytd-kids-blocklist-picker-renderer",function(){if(w9C!==void 0)return w9C;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return w9C=q},{mode:1});var i5A;var lra;var EZ=function(){return _.C.apply(this,arguments)||this};
_.Y(EZ,_.C);EZ.prototype.setTip=function(q){var N=this;this.data&&(this.tip=zva(cKx.getInstance(),q,this.data),_.ut(this,function(){_.e2(N.hostElement,"yt-refit")}))};
EZ.prototype.clearTip=function(){this.tip=void 0};
EZ.prototype.computeHidden=function(q){return!q};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],EZ.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.P("design:type",Boolean)],EZ.prototype,"hidden",void 0);_.p([_.U(),_.P("design:type",Object)],EZ.prototype,"tip",void 0);_.p([_.I({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],EZ);
_.a(EZ,"ytd-menu-popup-tip-renderer",function(){if(lra!==void 0)return lra;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);
return lra=q},{mode:1});var Kqp;var gt=function(){var q=_.C.apply(this,arguments)||this;q.useIcons=!1;q.systemIcons=_.x("kevlar_system_icons");return q};
_.Y(gt,_.C);_.g=gt.prototype;_.g.onFocus=function(){var q;(q=_.ee(this.hostElement).querySelector("tp-yt-paper-item"))==null||q.focus()};
_.g.onTap=function(){var q=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(q&&_.v(q,_.y6))this.componentBehavior.resolveCommand(q),this.updateToggledStateInEntity();else if(q){this.componentBehavior.resolveCommand(q)||_.tz().resolve(_.rO).resolveCommand(q,{form:{element:this.hostElement}});var N;((N=_.v(q,_.EY))==null?void 0:N.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.g.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.g.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.g.updateToggledStateInEntity=function(){var q=this.data.toggleMenuServiceItemEntityKey,N=!this.data.isToggled;q&&this.ytdReduxBehavior.dispatch(_.$e("toggleMenuServiceItemEntity",q,{key:q,isToggled:N}))};
_.g.computeIcon=function(q,N,b){return(q=q?b:N)&&q.iconType?_.qo(q.iconType):""};
_.g.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.g.isIconActive=function(q){return!_.x("toggle_menu_active_icon_killswitch")&&q};
_.$H.Object.defineProperties(gt.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return((q=this.data)==null?0:q.isToggled)?(N=this.data)==null?void 0:N.toggledText:(b=this.data)==null?void 0:b.defaultText}}});
gt.prototype.toggledStateEntityChanged=gt.prototype.toggledStateEntityChanged;gt.prototype.onYtServiceRequestCompleted=gt.prototype.onYtServiceRequestCompleted;gt.prototype.onTap=gt.prototype.onTap;gt.prototype.onFocus=gt.prototype.onFocus;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],gt.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],gt.prototype,"componentBehavior",void 0);
_.p([_.O(_.H6),_.P("design:type",Object)],gt.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],gt.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gt.prototype,"useIcons",void 0);_.p([_.U({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.P("design:type",String)],gt.prototype,"icon",void 0);
_.p([_.U({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.WQ.toggleMenuServiceItemEntitySelector}),_.P("design:type",Object)],gt.prototype,"toggleMenuServiceItemEntity",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],gt.prototype,"systemIcons",void 0);_.p([_.ZP("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gt.prototype,"onFocus",null);
_.p([_.l("data.isToggled"),_.P("design:type",Object),_.P("design:paramtypes",[])],gt.prototype,"toggleButtonText",null);_.p([_.ZP("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gt.prototype,"onTap",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gt.prototype,"onYtServiceRequestCompleted",null);
_.p([_.FY("toggleMenuServiceItemEntity.isToggled","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gt.prototype,"toggledStateEntityChanged",null);_.p([_.I({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],gt);
_.a(gt,"ytd-toggle-menu-service-item-renderer",function(){if(Kqp!==void 0)return Kqp;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Kqp=q},{mode:1});var D4a;var Z1=function(){return _.C.apply(this,arguments)||this};
_.Y(Z1,_.C);Z1.prototype.onFocus=function(){var q;(q=_.ee(this.hostElement).querySelector("tp-yt-paper-item"))==null||q.focus()};
_.$H.Object.defineProperties(Z1.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.pc(this.data.iconUrl)}}});
Z1.prototype.onFocus=Z1.prototype.onFocus;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Z1.prototype,"rendererBehavior",void 0);_.p([_.O(_.KV.YtEndpointBehavior),_.P("design:type",Object)],Z1.prototype,"ytEndpointBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Z1.prototype,"data",void 0);_.p([_.ZP("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Z1.prototype,"onFocus",null);
_.p([_.l("data.iconUrl"),_.P("design:type",Object),_.P("design:paramtypes",[])],Z1.prototype,"imageSource",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Z1);
_.a(Z1,"ytd-menu-custom-icon-item-renderer",function(){if(D4a!==void 0)return D4a;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return D4a=q},{mode:_.Am("kevlar_poly_si_batch_j028")?1:2});_.P$(_.R1,"yt-list-item-view-model",{props:{data:_.F5,isMenuItem:_.F5,isCompact:_.F5,onTap:_.W$,trailingAccessory:_.W$,hideSelectionTextChevron:_.F5,disabled:_.F5,inPopup:_.F5,disableHorizontalPadding:_.F5,isOverlay:_.F5,isToggled:_.F5,ariaLabel:_.F5,ariaPressed:_.F5,shouldNotFillIcon:_.F5}});var Fa=function(){var q=_.C.apply(this,arguments)||this;q.disableBackdropFilter=_.x("web_disable_backdrop_filter");return q};
_.Y(Fa,_.C);_.g=Fa.prototype;
_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.g.computeAriaLabel=function(q){return q};
_.g.onPopupOpened=function(){this.items.selected=0;for(var q=_.Z(_.ee(this.items).children),N=q.next();!N.done;N=q.next())N.value.popupPositionTarget=this.positionTarget;if(q=this.popupTip||void 0)q.setTip(this.source||""),this.source=void 0;this.veData&&(q=_.Oe())&&_.Tr(q,[this.veData])};
_.g.onPopupClosed=function(){var q=this.popupTip||void 0;q&&q.clearTip()};
_.g.onIronActivate=function(q){this.shouldPersist(q)||_.By(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(q=_.Oe())&&_.nr(q,this.veData)};
_.g.shouldPersist=function(q){var N,b;if(((N=q.detail)==null?void 0:N.selected)===void 0||(b=this.data)==null||!b.items)return!1;var y,J;return!((J=(y=this.data.items[q.detail.selected])==null?void 0:y.toggleMenuServiceItemRenderer)==null||!J.persistentOnMenuPopup)};
_.g.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(q){return q.menuNavigationItemRenderer?!!q.menuNavigationItemRenderer.icon:q.menuServiceItemRenderer?!!q.menuServiceItemRenderer.icon:q.menuConditionalServiceItemRenderer?!!q.menuConditionalServiceItemRenderer.icon:q.menuConditionalNavigationItemRenderer?!!q.menuConditionalNavigationItemRenderer.icon:q.toggleMenuServiceItemRenderer?!!q.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
Fa.prototype.onPopupClosed=Fa.prototype.onPopupClosed;Fa.prototype.onPopupOpened=Fa.prototype.onPopupOpened;_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],Fa.prototype,"ytEventForwardingBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Fa.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],Fa.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Fa.prototype,"veData",void 0);_.p([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.P("design:type",String)],Fa.prototype,"ariaLabel",void 0);_.p([_.U({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Fa.prototype,"useIcons",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Fa.prototype,"disableBackdropFilter",void 0);_.p([_.dq("#items"),_.P("design:type",Object)],Fa.prototype,"items",void 0);_.p([_.dq("ytd-menu-popup-tip-renderer"),_.P("design:type",Object)],Fa.prototype,"popupTip",void 0);_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Fa.prototype,"onPopupOpened",null);
_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Fa.prototype,"onPopupClosed",null);_.p([_.I({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],Fa);
_.a(Fa,"ytd-menu-popup-renderer",function(){if(i5A!==void 0)return i5A;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return i5A=q},{mode:1});var hcc;var k0C=_.n(function(q){q=_.Sl(q,{icon:void 0});var N=q.data;q=q.icon;var b=function(){return N().iconBadgeText},y={},J=_.NO("yt-spec-icon-badge-shape",function(){a:switch(N().iconBadgeType){case "notification":var E="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":E="yt-spec-icon-badge-shape--type-cart";break a;default:E=""}return E},function(){a:switch(N().iconBadgeStyle){case "overlay":var E="yt-spec-icon-badge-shape--style-overlay";
break a;default:E=""}return E},(y["yt-spec-icon-badge-shape--text-size-small"]=function(){var E=b();
return!!((E==null?0:E.length)&&E.length>2)},y));
return _.u("yt-icon-badge-shape",null,_.u(_.t,{cond:q,then:function(E){return _.u("div",{class:J},_.u("div",{class:"yt-spec-icon-badge-shape__icon"},_.u(_.FQ,{icon:E})),_.u(_.t,{cond:b,then:function(F){return _.u("div",{class:"yt-spec-icon-badge-shape__badge"},F)}}))}}))},"wj");
k0C.idomCompat=!0;_.P$(k0C,"yt-icon-badge-shape",{props:{data:_.F5,icon:_.F5}});var RG=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};q.unseenCount=0;q.isOverlay=!1;return q};
_.Y(RG,_.C);_.g=RG.prototype;_.g.attached=function(){var q=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(N){q.onServiceWorkerMessage(N)})};
_.g.onDataChanged=function(){this.isAttached&&!this.JSC$20909_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20909_lastData=this.data};
_.g.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.g.computeIcon=function(){var q,N;return(q=this.data)==null?void 0:(N=q.icon)==null?void 0:N.iconType};
_.g.onServiceWorkerMessage=function(q){q.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.g.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.v(this.data.updateUnseenCountEndpoint,_.EY)&&_.v(this.data.updateUnseenCountEndpoint,_.EY).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.g.handleUpdateNotificationsUnseenCountAction=function(q){var N=this;q=_.v(q,l0A);q!=null&&q.unseenCount&&q.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(q.unseenCount),_.pY.addLowPriorityJob(function(){N.data.updateUnseenCountEndpoint&&N.ytComponentBehavior.resolveCommand(N.data.updateUnseenCountEndpoint)},q.timeoutMs))};
_.g.onClick=function(){_.e2(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var q=_.Hy(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),N=this.data.menuRequest;q&&q.length===1&&q[0]?_.By(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):N&&this.ytComponentBehavior.resolveCommand(N)};
_.g.handleTopbarMenuClosedAction=function(q){q==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.g.toggleIconState=function(q){this.iconButton&&(this.iconButton.pressed=q)};
_.g.sendUnseenCountRequest=function(q){var N=this;_.Ip(_.pY,function(){N.ytComponentBehavior.resolveCommand(q)})};
_.g.updateCountUI=function(q){this.set("unseenCount",q<9?q:"9+")};
_.$H.Object.defineProperties(RG.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
RG.prototype.handleUpdateNotificationsUnseenCountAction=RG.prototype.handleUpdateNotificationsUnseenCountAction;RG.prototype.onDataChanged=RG.prototype.onDataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],RG.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],RG.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.r7),_.P("design:type",Object)],RG.prototype,"ytdOpenPopupBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],RG.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],RG.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],RG.prototype,"unseenCount",void 0);_.p([_.U(),_.P("design:type",Object)],RG.prototype,"isOverlay",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],RG.prototype,"showTooltips",void 0);_.p([_.dq("yt-icon-button"),_.P("design:type",Object)],RG.prototype,"iconButton",void 0);
_.p([_.l("unseenCount"),_.P("design:type",Object),_.P("design:paramtypes",[])],RG.prototype,"showNotificationCount",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RG.prototype,"onDataChanged",null);_.p([_.ZP("yt-update-notifications-unseen-count-action"),_.P("design:type",Function),_.P("design:paramtypes",[Object]),_.P("design:returntype")],RG.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.p([_.I({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],RG);
_.a(RG,"ytd-notification-topbar-button-renderer",function(){if(hcc!==void 0)return hcc;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return hcc=q},{mode:_.Am("kevlar_poly_si_batch_j025")?1:2});var U4B;var dt=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return q};
_.Y(dt,_.C);dt.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}}}}}};
dt.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
dt.prototype.onDarkModeToggled=function(q){this.dark=q};
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],dt.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],dt.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],dt.prototype,"data",void 0);_.p([_.U({value:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],dt.prototype,"dark",void 0);
_.p([_.I({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],dt);
_.a(dt,"yt-pdg-buy-flow-header-renderer",function(){if(U4B!==void 0)return U4B;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return U4B=q},{mode:1});var frf;var Cja;var cz=function(){var q=_.C.apply(this,arguments)||this;q.immediateValue=0;q.isDarkTheme=!1;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.Y(cz,_.C);_.g=cz.prototype;_.g.created=function(){_.qM.requestAvailability()};
_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.g.dataChanged=function(){var q=_.ee(this.hostElement).querySelector("#color-slider");q.immediateValue&&this.updateSliderKnobAndGradientStyles(q.immediateValue);this.data.notches[0].knobColorArgb&&_.Jm(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Y8(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.M7("HTML_DIR")==="rtl"&&_.ee(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.g.onSliderImmediateChange=function(){var q=_.ee(this.hostElement).querySelector("#color-slider");q.dragging&&(q.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(q.immediateValue),this.updateSliderKnobAndGradientStyles(q.immediateValue)),this.updateSliderAria())};
_.g.onSliderChange=function(){var q=_.ee(this.hostElement).querySelector("#color-slider");q.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(q.immediateValue),this.updateSliderKnobAndGradientStyles(q.immediateValue));this.updateSliderAria()};
_.g.updateSliderAria=function(){var q=_.ee(this.hostElement).querySelector("#color-slider"),N=_.ee(this.hostElement).querySelector("#color-slider");N=_.ao(this.data.notches[N.immediateValue].tierValue);_.XAu()&&_.e2(this.hostElement,"iron-announce",{text:N});q.setAttribute("aria-valuetext",N)};
_.g.updateSuperThanksSelectedTierEntity=function(q){if(q!==this.immediateValue){var N,b,y=this==null?void 0:(N=this.data)==null?void 0:(b=N.superThanksSelectedTierEntity)==null?void 0:b.key;y&&y.length>0&&this.ytdReduxBehavior.dispatch(_.$e("superThanksSelectedTierEntity",y,{key:y,index:q}))}};
_.g.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.g.updateSliderKnobAndGradientStyles=function(q){this.immediateValue=q;q=this.data.notches[q];if(q==null?0:q.knobColorArgb)var N={"--ytd-pdg-color-slider-knob-color":_.Y8(q.knobColorArgb)};(q==null?0:q.linearGradientCssStyle)&&N!==null&&(N=Object.assign({},N,{"--ytd-pdg-color-slider-active-color":q==null?void 0:q.linearGradientCssStyle}));N!==null&&_.Jm(this.hostElement,N)};
cz.prototype.onSliderChange=cz.prototype.onSliderChange;cz.prototype.onSliderImmediateChange=cz.prototype.onSliderImmediateChange;cz.prototype.dataChanged=cz.prototype.dataChanged;_.p([_.U(),_.P("design:type",Object)],cz.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],cz.prototype,"immediateValue",void 0);_.p([_.U(),_.P("design:type",Number)],cz.prototype,"maxMarkers",void 0);
_.p([_.U({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:nPX}),_.P("design:type",Object)],cz.prototype,"superThanksSelectedTierEntity",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],cz.prototype,"isDarkTheme",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],cz.prototype,"ytdReduxBehavior",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cz.prototype,"dataChanged",null);
_.p([_.ZP("immediate-value-change"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cz.prototype,"onSliderImmediateChange",null);_.p([_.ZP("change"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cz.prototype,"onSliderChange",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],cz);
_.a(cz,"ytd-pdg-color-slider-renderer",function(){if(Cja!==void 0)return Cja;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Cja=q},{mode:1});var Irc;var T9f;var uY=null;
_.x9({is:"ytd-comment-input",_template:function(){if(T9f!==void 0)return T9f;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return T9f=q},
behaviors:[_.Nid.YtHostElementBehavior,_.kT,_.qT.YtComponentBehavior,_.rT.YtRendererstamperBehavior,_.ZyM.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 _.Zt}},
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",_.gq(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;_.VO();this.focus()},
detached:function(){document.removeEventListener("tap",_.gq(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(q){q=q.detail;q=q.isCustomEmoji?q.shortcuts[0]:q.emojiId;var N=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(N,q);this.maybeUpdateTextDirection_();_.e2(this.hostElement,"input")},
getInputRange_:function(){var q=_.N1();if(q){q=q.getBrowserRangeObject();for(var N=q.commonAncestorContainer;N;){if(N===this.getEditableTextArea_())return q;N=N.parentNode}}q=this.getEditableTextArea_();q=_.Lz(q,q.childNodes.length);q.select();return q.getBrowserRangeObject()},
insertTextWithEmojis_:function(q,N,b){(N=this.emojiManager.createDocumentFragment(N,!0,!1,b===void 0?!0:b))&&N.childNodes.length!==0&&(q.collapsed||q.deleteContents(),b=N.lastChild,q.insertNode(N),_.mO1(b).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var q=_.N1();if(q){var N=q.JSC$11424_getStartNode(),b=q.JSC$11424_getEndNode();if(TMf(N)&&TMf(b)){var y=q.JSC$11424_getStartOffset(),J;if(_.yW&&N.nodeType===Node.ELEMENT_NODE&&(J=_.tc4(N)))_.Lz(J,0).select();else{J=dY(N)?N:_.Ph(N,dY);var E=dY(b)?b:_.Ph(b,dY);if(J||E)if(q.isCollapsed()){if(N.nodeType===Node.TEXT_NODE){q=!0;y===N.length&&(q=!1);if(uY==="end"||uY==="right")q=!1;N=N.parentNode;q=[].concat(_.a9(N.parentNode.childNodes)).indexOf(N)+(q?0:1);_.Lz(N.parentNode,
q).select()}}else J?J.previousSibling&&J.previousSibling.length>0?_.pz(b,q.JSC$11424_getEndOffset(),J.previousSibling,J.previousSibling.length-1).select():(N=document.createTextNode("\u200b"),J.parentNode.insertBefore(N,J),_.pz(b,q.JSC$11424_getEndOffset(),N,0).select()):E&&(E.nextSibling&&E.nextSibling.length>0?_.pz(N,q.JSC$11424_getStartOffset(),E.nextSibling,1).select():(b=document.createTextNode("\u200b"),E.parentNode.insertBefore(b,E.nextSibling),_.pz(N,q.JSC$11424_getStartOffset(),b,b.length).select()));
uY=null}}else uY=null}else uY=null},
leftKeyPressed_:function(){uY="left"},
rightKeyPressed_:function(){uY="right"},
endKeyPressed_:function(){uY="end"},
maybeDeleteChip_:function(){var q=pcp(!0);if(q){var N=_.N1(),b=N.JSC$11424_getStartNode();N=N.JSC$11424_getStartOffset();_.sC(b,N,q,q.childNodes.length).select()}},
maybeBackspaceChip_:function(){var q=pcp(!1);if(q){var N=_.N1(),b=N.JSC$11424_getStartNode();N=N.JSC$11424_getStartOffset();_.sC(b,N,q,0).select()}},
maybeBackspaceChipWordMode_:function(q){var N=_.N1();if(N.isCollapsed()){var b=N.JSC$11424_getStartNode();N=N.JSC$11424_getStartOffset();var y=PZA(b,N,!0);y&&(_.sC(b,N,y,0).select(),document.execCommand("delete"),q.preventDefault(),q.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(q){var N=_.N1();if(N.isCollapsed()){var b=N.JSC$11424_getStartNode();N=N.JSC$11424_getStartOffset();var y=PZA(b,N,!1);y&&(_.sC(b,N,y,y.childNodes.length).select(),document.execCommand("delete"),q.preventDefault(),q.stopImmediatePropagation())}},
onContentClick:function(q){q.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(q){q.defaultPrevented||q.currentTarget.tagName==="YTD-COMMENT-INPUT"&&dY(q.target)&&q.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.ee(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.ee(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(q,N){q=nsc(q,this.emojiManager,N).cloneNode(!0);for(N=q.firstChild;N;)if(N.nodeType!==1)N=N.nextSibling;else switch(N.tagName){case "BR":var b=_.lu();_.Gb4(b,N);N=b.nextSibling;break;case "DIV":(b=N.lastChild)&&N.nextSibling&&_.k_(_.lu(),b);N.previousSibling&&(N.previousSibling.nodeType===1||N.previousSibling.nodeType===3&&!N.previousSibling.textContent.endsWith("\n"))&&_.hx(_.lu(),N);b&&b.nodeName==="BR"&&_.lC(b);b=N;N.hasChildNodes()?(N=N.firstChild,
_.Ypx(b)):(N=N.nextSibling,_.lC(b));break;default:N=N.nextSibling}return M5N(q)},
setTextAreaValue:function(q){q||(q="");var N=this.getEditableFormattedString_();N.text="";this.getEditableTextArea_().innerText="";typeof q==="string"&&(q={runs:[{text:q}]});N.text=q},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();uY=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var q=this.getEditableTextArea_();q&&(_.Lz(q,q.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.M7("HTML_DIR")==="rtl"){var q=this.getEditableTextArea_(),N=this.getTextAreaValue()!==""?"auto":"rtl";q.setAttribute("dir",N)}},
handleInputEvent_:function(){var q=null;if(this.isEmojiButtonDisplayed){var N=this.getInputRange_();N&&(q=this.emojiInput.retrieveTextBeforeRange(N))}this.insertText_(q,!0);this.updateCharCount_();q=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=q.scrollHeight>q.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var q=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:q})},
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(q){this.isEmojiButtonDisplayed&&(q.preventDefault(),q.stopImmediatePropagation(),q=q.clipboardData.getData("text/plain"),this.insertText_(q,!1,!1),_.e2(this.hostElement,"input"))},
insertText_:function(q,N,b){N=N===void 0?!1:N;b=b===void 0?!0:b;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&q){var y=this.getInputRange_().cloneRange();this.emojiManager&&y&&(N&&this.emojiInput.offsetStartOfRangeBy(y,q.length),this.insertTextWithEmojis_(y,q,b),s6a(this.getEditableTextArea_().lastChild)||(y=this.getInputRange_().cloneRange()),y&&(this.emojiInput.updateSuggestions(y,q),this.updateSuggestionOffset_(y)))}},
getSimpleString:_.ao,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(q){return q?"focused":"not-focused"},
computePlaceholderText_:function(q){return this.getSimpleString(q)},
computeEditableText_:function(q){return this.getSimpleString(q)},
onPrefilledContentDismissed_:function(q){q.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(q,N){q?this.fire("yt-autonav-pause-focus"):N!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(q){var N=this.getEditableTextArea_();[].concat(_.a9(q.dataTransfer.items)).forEach(function(b){b.kind==="string"&&b.type.match("^text/plain")&&b.getAsString(function(y){N.appendChild(document.createTextNode(y))})});
q.preventDefault()},
preventDefault_:function(q){q.preventDefault()},
onSuggestionInsert_:function(q){this.insertTextWithEmojis_(q.detail.range,q.detail.text)},
onEmojiSuggestionClick_:function(q){this.emojiInput.insertSuggestion(q.detail)},
updateSuggestionOffset_:function(q){if(this.emojiInput&&_.ee(this.emojiInput).querySelector("#dropdown")){var N=this.getEditableTextArea_().getBoundingClientRect().bottom,b=q.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(N-b)+5;N=this.getEditableTextArea_().getBoundingClientRect().left;q=q.getBoundingClientRect().left-N;_.ee(this.emojiInput).querySelector("#dropdown").style.marginLeft=q+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.ed("yt-post"));return this.localStorage}});var zN=function(){var q=_.C.apply(this,arguments)||this;q.currentCommentOptionIndex=0;q.isEmojiPickerDisplayed=!1;q.emojiManager=_.Zt;q.isUgcEmpty=!1;q.userGeneratedCommentChangedHandler=function(){_.e2(q.hostElement,"ytd-pdg-user-generated-comment-changed");q.isEmojiYtdCommentInputEnabled&&(q.isUgcEmpty=!q.ytdCommentInputEl.getTextAreaValue())};
q.pasteHandler=function(N){N.preventDefault();N.stopImmediatePropagation();var b;if(N=(b=N.clipboardData)==null?void 0:b.getData("text/plain"))b=document.getSelection().getRangeAt(0),b.collapsed||b.deleteContents(),N=document.createTextNode(N),b.insertNode(N),b.selectNodeContents(N),b.collapse(!1),N=window.getSelection(),N.removeAllRanges(),N.addRange(b)};
q.onDocumentClick=function(N){if(q.isEmojiPickerDisplayed){var b,y,J;!(N.target instanceof Node)||(b=N.composedPath())!=null&&b.includes(q.editableTextEl)||(y=N.composedPath())!=null&&y.includes(q.emojiButtonEl)||(J=N.composedPath())!=null&&J.includes(q.emojiPickerEl)||(q.isEmojiPickerDisplayed=!1)}};
return q};
_.Y(zN,_.C);_.g=zN.prototype;_.g.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.g.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.g.detached=function(){var q;(q=this.contentEl)==null||q.removeEventListener("input",this.userGeneratedCommentChangedHandler);var N;(N=this.contentEl)==null||N.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.g.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.g.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var q;this.contentEl.textContent=this.rendererBehavior.getSimpleString((q=this.data)==null?void 0:q.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.g.reloadEmojis=function(){this.emojiPickerEl&&_.v(this.emojiPicker,_.$zE)&&this.emojiPickerEl.updateEmojiCategories()};
_.g.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Jm(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.g.handleBackgroundColorStyling=function(){var q;if((q=this.currentCommentOption)==null?0:q.commentBackgroundColorArgb){var N;_.Jm(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Y8((N=this.currentCommentOption)==null?void 0:N.commentBackgroundColorArgb)})}else _.Jm(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.g.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var q;(q=this.contentEl)==null||q.focus()}};
_.g.onEditButtonClick=function(q){var N=document.getSelection();N&&this.contentEl&&(q.stopPropagation(),q.preventDefault(),N.selectAllChildren(this.contentEl),N.collapseToEnd())};
_.g.onContentDrop=function(q){var N=this;if(q.dataTransfer){q=_.Z(q.dataTransfer.items);for(var b=q.next();!b.done;b=q.next())b=b.value,b.kind==="string"&&b.type.match("^text/plain")&&b.getAsString(function(y){var J;(J=N.contentEl)==null||J.appendChild(document.createTextNode(y))})}};
_.g.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.g.getUserGeneratedCommentText=function(){var q,N=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(q=this.contentEl)==null?void 0:q.textContent;return N?N.trim():""};
_.g.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.g.onEmojiSelect=function(q){this.ytdCommentInputEl.onEmojiSelect(q)};
_.$H.Object.defineProperties(zN.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.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 q;return!((q=this.currentCommentOption)==null||!q.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var q;if(_.v((q=this.currentCommentOption)==null?void 0:q.chipRenderer,_.Cwj)){var N;return _.v((N=this.currentCommentOption)==null?void 0:N.chipRenderer,_.Cwj)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var q,N;return((q=this.data)==null?0:q.commentOptionRenderers)?_.v((N=this.data)==null?void 0:N.commentOptionRenderers[this.superThanksSelectedTierEntity.index],b_f):void 0}var b,y;return((b=this.data)==null?0:b.commentOptionRenderers)?_.v((y=this.data)==null?void 0:y.commentOptionRenderers[this.currentCommentOptionIndex],b_f):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var q;return this.rendererBehavior.getSimpleString((q=this.data)==null?void 0:q.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var q;return this.rendererBehavior.getSimpleString((q=this.data)==null?void 0:q.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var q,N;return(N=_.v((q=this.data)==null?void 0:q.commentDialog,_.D2R))==null?void 0:N.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var q,N;return(N=_.v((q=this.data)==null?void 0:q.commentDialog,_.D2R))==null?void 0:N.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var q,N;return(N=_.v((q=this.data)==null?void 0:q.commentDialog,_.D2R))==null?void 0:N.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var q,N,b=(N=_.v((q=this.data)==null?void 0:q.commentDialog,_.D2R))==null?void 0:N.emojiPicker;if(!_.v(b,_.$zE)||!_.v(b,_.$zE).categories)return!1;q=function(E){return E.emojiPickerCategoryRenderer?E.emojiPickerCategoryRenderer.emojiIds&&E.emojiPickerCategoryRenderer.emojiIds.length>0:E.emojiPickerUpsellCategoryRenderer?E.emojiPickerUpsellCategoryRenderer.emojis&&E.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var y,J;return((y=_.v(b,_.$zE))==null?0:(J=y.categories)==null?0:J.find(q))?!0:!1}}});
zN.prototype.onEmojiSelect=zN.prototype.onEmojiSelect;zN.prototype.dataChanged=zN.prototype.dataChanged;zN.prototype.currentCommentOptionChanged=zN.prototype.currentCommentOptionChanged;_.p([_.O(_.H6),_.P("design:type",Object)],zN.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],zN.prototype,"rendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],zN.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.dq("#content-dom-if"),_.P("design:type",_.Gs)],zN.prototype,"contentDomIfEl",void 0);_.p([_.dq("#content-no-emojis"),_.P("design:type",HTMLElement)],zN.prototype,"contentEl",void 0);_.p([_.dq("#container"),_.P("design:type",HTMLElement)],zN.prototype,"containerEl",void 0);_.p([_.dq("#comment-chip-container"),_.P("design:type",HTMLElement)],zN.prototype,"paidCommentChipContainerEl",void 0);_.p([_.dq("#text-input"),_.P("design:type",HTMLElement)],zN.prototype,"editableTextEl",void 0);
_.p([_.dq("#emoji-button"),_.P("design:type",HTMLElement)],zN.prototype,"emojiButtonEl",void 0);_.p([_.dq("#emoji-picker > yt-emoji-picker-renderer"),_.P("design:type",Object)],zN.prototype,"emojiPickerEl",void 0);_.p([_.dq("#text-input > ytd-comment-input"),_.P("design:type",Object)],zN.prototype,"ytdCommentInputEl",void 0);_.p([_.U(),_.P("design:type",Object)],zN.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],zN.prototype,"currentCommentOptionIndex",void 0);
_.p([_.U({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:nPX}),_.P("design:type",Object)],zN.prototype,"superThanksSelectedTierEntity",void 0);_.p([_.U(),_.P("design:type",Object)],zN.prototype,"isEmojiPickerDisplayed",void 0);_.p([_.U(),_.P("design:type",Object)],zN.prototype,"emojiManager",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],zN.prototype,"isUgcEmpty",void 0);
_.p([_.FY("currentCommentOption"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zN.prototype,"currentCommentOptionChanged",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zN.prototype,"dataChanged",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],zN.prototype,"isEmojiYtdCommentInputEnabled",null);
_.p([_.l("data.title"),_.P("design:type",Object),_.P("design:paramtypes",[])],zN.prototype,"title",null);_.p([_.l("data.authorText"),_.P("design:type",Object),_.P("design:paramtypes",[])],zN.prototype,"channelName",null);_.p([_.l("data.commentOptionRenderers","currentCommentOption"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],zN.prototype,"shouldShowPaidCommentChipRenderer",null);
_.p([_.l("data.commentOptionRenderers","currentCommentOption"),_.P("design:type",Object),_.P("design:paramtypes",[])],zN.prototype,"paidCommentChipRenderer",null);_.p([_.l("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],zN.prototype,"currentCommentOption",null);
_.p([_.l("data.defaultCommentText","superThanksSelectedTierEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],zN.prototype,"commentText",null);_.p([_.l("data.placeholderText"),_.P("design:type",Object),_.P("design:paramtypes",[])],zN.prototype,"placeholderText",null);_.p([_.l("data.commentDialog.commentDialogRenderer.editableText"),_.P("design:type",Object),_.P("design:paramtypes",[])],zN.prototype,"editableText",null);
_.p([_.l("data.commentDialog.commentDialogRenderer.emojiButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],zN.prototype,"emojiButton",null);_.p([_.l("data.commentDialog.commentDialogRenderer.emojiPicker"),_.P("design:type",Object),_.P("design:paramtypes",[])],zN.prototype,"emojiPicker",null);
_.p([_.l("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],zN.prototype,"isEmojiButtonDisplayed",null);_.p([_.ZP("yt-emoji-select"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],zN.prototype,"onEmojiSelect",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],zN);
_.a(zN,"ytd-pdg-comment-preview-renderer",function(){if(Irc!==void 0)return Irc;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Irc=q},{mode:2});var sbp;var $k=function(){var q=_.C.apply(this,arguments)||this;q.selected=!1;return q};
_.Y($k,_.C);_.g=$k.prototype;_.g.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.g.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.g.dataChanged=function(){this.data&&(_.BP(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Jm(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Y8(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Y8(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.g.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.g.onClick=function(){this.logClick()};
_.g.onKeyboardSelect=function(){_.e2(this.hostElement,"tap");this.onClick()};
_.g.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
$k.prototype.onClick=$k.prototype.onClick;$k.prototype.selectedChanged=$k.prototype.selectedChanged;$k.prototype.dataChanged=$k.prototype.dataChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],$k.prototype,"componentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],$k.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.kT),_.P("design:type",Object)],$k.prototype,"ironA11yKeysBehavior",void 0);
_.p([_.O(_.Ck),_.P("design:type",Object)],$k.prototype,"ironSelectableBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],$k.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],$k.prototype,"shownThumbnail",void 0);_.p([_.U(),_.P("design:type",Object)],$k.prototype,"basePriceText",void 0);_.p([_.U(),_.P("design:type",Object)],$k.prototype,"purchaseCommand",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],$k.prototype,"selected",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$k.prototype,"dataChanged",null);_.p([_.FY("selected"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$k.prototype,"selectedChanged",null);_.p([_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$k.prototype,"onClick",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],$k);
_.a($k,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(sbp!==void 0)return sbp;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return sbp=q},{mode:1});var th=function(){var q=_.C.apply(this,arguments)||this;q.selectedItemIndex=0;q.buyButtonDisabled=!1;return q};
_.Y(th,_.C);_.g=th.prototype;
_.g.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]]"}}}}}};
_.g.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var q;var N=(q=_.v(this.data.colorSlider,NlA))==null?void 0:q.notches[this.selectedItemIndex].purchaseCommand}else{var b;N=(b=_.v(this.data.selectableItemButtons[this.selectedItemIndex],JYc))==null?void 0:b.purchaseCommand}if(N){q=_.v(N,_.vxT);q.productData||(q.productData={});var y;q.productData={pdgData:{commentMessageText:(y=this.commentPreviewRenderer)==null?void 0:y.getUserGeneratedCommentText()}};
_.e2(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(N)}}};
_.g.dataChanged=function(){if(this.data){_.Zt.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.IA1(_.Zt,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Zt.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var q;this.buyButtonDisabled=!((q=_.v(this.data.commentPreview,yYW))==null||!q.placeholderText);this.updatePriceSelectorStatus();var N;if((N=this.data)==null?0:N.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;q=[];this.data.preloadImages&&(q=this.data.preloadImages);
q=q.map(function(b){return _.Mo(b.thumbnails,1920)});
q=_.Z(q);for(N=q.next();!N.done;N=q.next())(N=N.value)&&_.f8J(N).thenCatch(function(){_.M6(Error("Il"))})}};
_.g.superThanksSelectedTierEntityChanged=function(){var q;(this==null?void 0:(q=this.superThanksSelectedTierEntity)==null?void 0:q.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.g.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.g.updatePriceSelectorStatus=function(){this.isColorSlider?(_.ee(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.ee(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.ee(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.ee(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.g.closeBuyFlow=function(){_.By(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.g.onUserGeneratedContentChanged=function(){var q;this.buyButtonDisabled=!((q=this.commentPreviewRenderer)==null?0:q.getUserGeneratedCommentText())};
_.g.updateSelectedItemIndexFromBinding=function(q){this.selectedItemIndex=q.detail.value};
_.$H.Object.defineProperties(th.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.disclaimerText)}}});
th.prototype.onUserGeneratedContentChanged=th.prototype.onUserGeneratedContentChanged;th.prototype.closeBuyFlow=th.prototype.closeBuyFlow;th.prototype.selectedItemIndexChanged=th.prototype.selectedItemIndexChanged;th.prototype.superThanksSelectedTierEntityChanged=th.prototype.superThanksSelectedTierEntityChanged;th.prototype.dataChanged=th.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],th.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],th.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],th.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],th.prototype,"selectedItemIndex",void 0);_.p([_.U(),_.P("design:type",Boolean)],th.prototype,"isColorSlider",void 0);
_.p([_.U(),_.P("design:type",Object)],th.prototype,"buyButtonDisabled",void 0);_.p([_.U({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:nPX}),_.P("design:type",Object)],th.prototype,"superThanksSelectedTierEntity",void 0);_.p([_.dq("ytd-pdg-comment-preview-renderer"),_.P("design:type",Object)],th.prototype,"commentPreviewRenderer",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],th.prototype,"ytdReduxBehavior",void 0);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],th.prototype,"dataChanged",null);_.p([_.FY("superThanksSelectedTierEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],th.prototype,"superThanksSelectedTierEntityChanged",null);_.p([_.FY("selectedItemIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],th.prototype,"selectedItemIndexChanged",null);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],th.prototype,"closeBuyFlow",null);_.p([_.ZP("ytd-pdg-user-generated-comment-changed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],th.prototype,"onUserGeneratedContentChanged",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],th.prototype,"isDisclaimerTextShown",null);
_.p([_.I({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],th);
_.a(th,"yt-super-vod-buy-flow-content-renderer",function(){if(frf!==void 0)return frf;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return frf=q},{mode:1});var nbB;var mp=function(){var q=_.C.apply(this,arguments)||this;q.lottieAnimationRef={};return q};
_.Y(mp,_.C);_.g=mp.prototype;_.g.created=function(){_.qM.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.gq(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.g.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.e2(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.g.detached=function(){this.autoCloseJobId&&_.pY.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.gq(this,this.onPopupIronOverlayOpened))};
_.g.dataChanged=function(){var q=this;this.data&&this.data.autoCloseDelay&&(_.By(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.B$(_.pY,function(){q.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Jm(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.g.onDOMLoadedLottie=function(){var q=this,N,b,y=Number((N=this.data)==null?void 0:(b=N.autoCloseDelay)==null?void 0:b.seconds)||0;this.fadeOutJobId=_.B$(_.pY,function(){q.lottiePlayerEl.classList.add("fadeout")},(y-.25)*1E3);
this.autoCloseJobId=_.B$(_.pY,function(){q.closePopup()},y*1E3)};
_.g.openPopup=function(){this.ironOverlayBehavior.open()};
_.g.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.By(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Nc(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.tz().resolve(_.rO).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.pY.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.pY.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.g.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var q,N;(q=this.lottieAnimationRef)==null||(N=q.lottieEl)==null||N.destroy();q=this.data.lottie;var b,y;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:q.url+"_"+Math.random(),path:q.url,autoplay:!0,loop:(y=(b=q.settings)==null?void 0:b.loop)!=null?y:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.$H.Object.defineProperties(mp.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var q,N;return!!((q=this.data)==null?0:(N=q.lottie)==null?0:N.url)}}});
mp.prototype.maybeInitializeLottie=mp.prototype.maybeInitializeLottie;mp.prototype.dataChanged=mp.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],mp.prototype,"rendererBehavior",void 0);_.p([_.O(_.Ej),_.P("design:type",Object)],mp.prototype,"ironOverlayBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],mp.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],mp.prototype,"lottiePlayerProps",void 0);
_.p([_.U(),_.P("design:type",Object)],mp.prototype,"lottieAnimationRef",void 0);_.p([_.dq("ytd-lottie-player"),_.P("design:type",HTMLElement)],mp.prototype,"lottiePlayerEl",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mp.prototype,"dataChanged",null);_.p([_.l("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],mp.prototype,"hasLottieAnimation",null);
_.p([_.FY("data.lottie.url"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mp.prototype,"maybeInitializeLottie",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],mp);
_.a(mp,"ytd-desktop-image-overlay-renderer",function(){if(nbB!==void 0)return nbB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return nbB=q},{mode:1});var arB;var rt=function(){return _.C.apply(this,arguments)||this};
_.Y(rt,_.C);_.g=rt.prototype;_.g.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"}}}}};
_.g.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",_.gq(this,this.closePopup))};
_.g.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.gq(this,this.closePopup))};
_.g.dataChanged=function(){_.Hy(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.v(this.data.header,qiB)&&(this.hasBackgroundBanner=!!_.v(this.data.header,qiB).backgroundBanner)};
_.g.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.gq(this,this.closePopup))};
_.g.closePopup=function(){this.data&&this.data.onCloseCommand&&_.qc(this.hostElement,[this.data.onCloseCommand])};
rt.prototype.handleBuyflowSelectionSubmitted=rt.prototype.handleBuyflowSelectionSubmitted;rt.prototype.dataChanged=rt.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],rt.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],rt.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],rt.prototype,"data",void 0);
_.p([_.U({value:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],rt.prototype,"hasBackgroundBanner",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rt.prototype,"dataChanged",null);_.p([_.ZP("yt-pdg-buy-flow-selection-submitted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rt.prototype,"handleBuyflowSelectionSubmitted",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],rt);
_.a(rt,"ytd-pdg-buy-flow-renderer",function(){if(arB!==void 0)return arB;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return arB=q},{mode:1});var SPx;var Xa=function(){var q=_.C.apply(this,arguments)||this;q.isOpen=!1;q.isPlaylistCreated=!1;return q};
_.Y(Xa,_.C);_.g=Xa.prototype;_.g.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.g.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.e2(this.hostElement,"yt-refit")};
_.g.onCreateTap=function(){var q=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.qc(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(N,b){if(!_.x("killswitch_ep_in_create_playlist_response")&&(b==null?0:b.actions))for(N=_.Z(b.actions),b=N.next();!b.done;b=N.next())b=b.value,_.v(b,_.Gt)&&q.ytComponentBehavior.resolveCommand(b)}}]),this.isPlaylistCreated=!0)};
_.g.onKeydown=function(q){if(q.keyCode===13)this.onCreateTap()};
_.g.onServiceRequestCompleted=function(q){q.stopPropagation();_.By(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.g.computePrivacyBadge=function(q){return q?[{metadataBadgeRenderer:q}]:[]};
Xa.prototype.onServiceRequestCompleted=Xa.prototype.onServiceRequestCompleted;Xa.prototype.onKeydown=Xa.prototype.onKeydown;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Xa.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Xa.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Xa.prototype,"isOpen",void 0);
_.p([_.U(),_.P("design:type",Object)],Xa.prototype,"isPlaylistCreated",void 0);_.p([_.U({value:{REQUIRED_LABEL:_.FE("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.FE("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.P("design:type",Object)],Xa.prototype,"addToStrings",void 0);_.p([_.U({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.P("design:type",Array)],Xa.prototype,"privacyBadge",void 0);
_.p([_.dq("#privacy-input"),_.P("design:type",Object)],Xa.prototype,"privacyInput",void 0);_.p([_.dq("#name-input"),_.P("design:type",Object)],Xa.prototype,"nameInput",void 0);_.p([_.ZP("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],Xa.prototype,"onKeydown",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Xa.prototype,"onServiceRequestCompleted",null);
_.p([_.I({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Xa);
_.a(Xa,"ytd-add-to-playlist-create-renderer",function(){if(SPx!==void 0)return SPx;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return SPx=q},{mode:1});var WqB;var Lqf;var V2=function(){var q=_.C.apply(this,arguments)||this;q.transferState="TRANSFER_STATE_UNKNOWN";return q};
_.Y(V2,_.C);V2.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
V2.prototype.onCheckboxChange=function(q){var N=this;this.data&&_.Uk(this,"yt-playlist-checkbox-changed",function(){var b=_.a0(q).checked?N.data.addToPlaylistServiceEndpoint:N.data.removeFromPlaylistServiceEndpoint;b&&_.tz().resolve(_.rO).resolveCommand(b,{form:{element:N.hostElement}});_.x("dl_playlist_killswitch")||N.transferState!=="TRANSFER_STATE_UNKNOWN"&&N.transferState!=="TRANSFER_STATE_FAILED"&&N.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:N.data.playlistId,action:"ACTION_SYNC"}})},
100)};
V2.prototype.computeIconType=function(q){return q?"yt-icons:"+q.toLowerCase():null};
V2.prototype.dataChanged=V2.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],V2.prototype,"data",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],V2.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],V2.prototype,"ytComponentBehavior",void 0);_.p([_.dq("#checkbox"),_.P("design:type",HTMLInputElement)],V2.prototype,"checkbox",void 0);
_.p([_.U({selector:_.lg,selectorArgs:["data.playlistId"]}),_.P("design:type",String)],V2.prototype,"transferState",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],V2.prototype,"dataChanged",null);_.p([_.I({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],V2);
_.a(V2,"ytd-playlist-add-to-option-renderer",function(){if(Lqf!==void 0)return Lqf;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Lqf=q},{mode:1});var p9B=_.n(function(q){var N=q.data;return _.u("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.u("div",null,_.u(_.Zc,{text:function(){return N().title}})),_.u(_.t,{cond:function(){return N().subtitle},
then:function(b){return _.u("div",{class:"ytdMenuTitleRendererSubtitle"},_.u(_.Zc,{text:b}))}}))},"xj");
p9B.idomCompat=!0;_.P$(p9B,"ytd-menu-title-renderer",{props:{data:_.F5}});var j1=function(){var q=_.C.apply(this,arguments)||this;q.addToStrings={ADD_TO_DROPDOWN_LABEL:_.FE("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};q.closeButtonAriaLabel=_.FE("SBOX_INAPPROPRIATE_CANCEL");q.dialog=_.x("desktop_add_to_playlist_renderer_dialog_popup");return q};
_.Y(j1,_.C);_.g=j1.prototype;_.g.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"}}}};
_.g.onPopupOpened=function(){_.HP(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.g.onPopupClosed=function(){_.HP(this.playlists,"scrollable",!1)};
_.g.computeAriaLabel=function(){var q;if(this==null?0:(q=this.data)==null?0:q.actions){q=_.Z(this.data.actions);for(var N=q.next();!N.done;N=q.next())if(N=N.value,N.menuTitleRenderer)return _.ao(N.menuTitleRenderer.title)}};
_.g.onTapClose=function(){_.By(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.$H.Object.defineProperties(j1.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var q;if(this==null?0:(q=this.data)==null?0:q.actions){q=_.Z(this.data.actions);for(var N=q.next();!N.done;N=q.next())if(N=N.value,N.menuTitleRenderer)return N.menuTitleRenderer}return!1}}});
j1.prototype.onPopupClosed=j1.prototype.onPopupClosed;j1.prototype.onPopupOpened=j1.prototype.onPopupOpened;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],j1.prototype,"ytEventForwardingBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],j1.prototype,"ytRendererStamperBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],j1.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],j1.prototype,"addToStrings",void 0);_.p([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.P("design:type",String)],j1.prototype,"ariaLabel",void 0);_.p([_.U(),_.P("design:type",String)],j1.prototype,"closeButtonAriaLabel",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],j1.prototype,"dialog",void 0);
_.p([_.dq("#playlists"),_.P("design:type",HTMLElement)],j1.prototype,"playlists",void 0);_.p([_.dq("ytd-add-to-playlist-create-renderer"),_.P("design:type",Object)],j1.prototype,"createRenderer",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],j1.prototype,"menuTitleRenderer",null);_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],j1.prototype,"onPopupOpened",null);
_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],j1.prototype,"onPopupClosed",null);_.p([_.I({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],j1);
_.a(j1,"ytd-add-to-playlist-renderer",function(){if(WqB!==void 0)return WqB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return WqB=q},{mode:1});var PjX;var xk=function(){var q=_.C.apply(this,arguments)||this;q.isPlaylistEditComplete=!1;q.isCollabEngagementDisabled=!1;q.closeButtonAriaLabel=_.FE("SBOX_INAPPROPRIATE_CANCEL");q.saveButton={title:_.FE("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"};q.onValueChanged=function(){q.updateSaveButtonState();q.computeCollabEngagementDisabled()};
return q};
_.Y(xk,_.C);_.g=xk.prototype;_.g.attached=function(){this.JSC$20963_scroller&&(this.JSC$20963_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20963_scroller.attached&&typeof this.JSC$20963_scroller.attached==="function"&&this.JSC$20963_scroller.attached())};
_.g.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.g.onPopupClosed=function(){this.reset()};
_.g.close=function(){_.By(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.g.onClickSave=function(){var q=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var N=[];this.nameInput.value!==null&&N.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&N.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var b=Number(this.privacyInput.value);isNaN(b)||N.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:b})}this.votingInput.value!==null&&(b=this.votingInput.value)&&N.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:b});if(N.length>0){var y;_.v((y=this.data)==null?void 0:y.updateSettingsEndpoint,_.qz).actions=N;var J;if((J=this.data)==null?0:J.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){q.close()}}}),this.isPlaylistEditComplete=!0}}};
_.g.computePrivacyBadge=function(q){return q?[{metadataBadgeRenderer:q}]:[]};
_.g.computeEditorData=function(q){var N,b;return q==null?void 0:(N=q.sections)==null?void 0:(b=N[0])==null?void 0:b.playlistSettingsEditorCasualSectionRenderer};
_.g.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.g.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}}}}}};
_.g.computeAriaLabel=function(){var q,N,b,y=(q=this.data)==null?void 0:(N=q.sections)==null?void 0:(b=N[0])==null?void 0:b.playlistSettingsEditorCasualSectionRenderer;return _.ao(y==null?void 0:y.title)};
_.g.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"}))};
_.g.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.g.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.g.isNameChanged=function(){var q,N,b;return(((q=this.editorData)==null?void 0:(N=q.name)==null?void 0:(b=N.textInputFormFieldRenderer)==null?void 0:b.value)||"")!==(this.nameInput.value||"")};
_.g.isDescriptionChanged=function(){var q,N,b;return(((q=this.editorData)==null?void 0:(N=q.description)==null?void 0:(b=N.textInputFormFieldRenderer)==null?void 0:b.value)||"")!==(this.descriptionInput.value||"")};
_.g.isPrivacyChanged=function(){var q,N,b,y,J,E,F,R;return((F=(q=this.editorData)==null?void 0:(N=q.privacy)==null?void 0:(b=N.dropdownFormFieldRenderer)==null?void 0:(y=b.dropdown)==null?void 0:(J=y.dropdownRenderer)==null?void 0:(E=J.entries)==null?void 0:E.find(function(c){var z;return c==null?void 0:(z=c.privacyDropdownItemRenderer)==null?void 0:z.isSelected}))==null?void 0:(R=F.privacyDropdownItemRenderer)==null?void 0:R.int32Value)!==this.privacyInput.value};
_.g.isVotingChanged=function(){var q,N,b,y,J,E,F,R;return((F=(q=this.editorData)==null?void 0:(N=q.voting)==null?void 0:(b=N.dropdownFormFieldRenderer)==null?void 0:(y=b.dropdown)==null?void 0:(J=y.dropdownRenderer)==null?void 0:(E=J.entries)==null?void 0:E.find(function(c){var z;return c==null?void 0:(z=c.privacyDropdownItemRenderer)==null?void 0:z.isSelected}))==null?void 0:(R=F.privacyDropdownItemRenderer)==null?void 0:R.int32Value)!==this.votingInput.value};
xk.prototype.onPopupClosed=xk.prototype.onPopupClosed;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],xk.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],xk.prototype,"ytEventForwardingBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],xk.prototype,"ytRendererStamperBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],xk.prototype,"data",void 0);_.p([_.U({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.P("design:type",Array)],xk.prototype,"privacyBadge",void 0);_.p([_.U({computed:"computeEditorData(data)"}),_.P("design:type",Object)],xk.prototype,"editorData",void 0);_.p([_.U(),_.P("design:type",Object)],xk.prototype,"isPlaylistEditComplete",void 0);_.p([_.U(),_.P("design:type",Object)],xk.prototype,"isCollabEngagementDisabled",void 0);
_.p([_.U({value:{REQUIRED_LABEL:_.FE("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.FE("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.P("design:type",Object)],xk.prototype,"addToStrings",void 0);_.p([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.P("design:type",String)],xk.prototype,"ariaLabel",void 0);_.p([_.U(),_.P("design:type",String)],xk.prototype,"closeButtonAriaLabel",void 0);
_.p([_.U(),_.P("design:type",Object)],xk.prototype,"saveButton",void 0);_.p([_.dq("#name-input"),_.P("design:type",Object)],xk.prototype,"nameInput",void 0);_.p([_.dq("#description-input"),_.P("design:type",Object)],xk.prototype,"descriptionInput",void 0);_.p([_.dq("#privacy-input"),_.P("design:type",Object)],xk.prototype,"privacyInput",void 0);_.p([_.dq("#voting-input"),_.P("design:type",Object)],xk.prototype,"votingInput",void 0);
_.p([_.dq("#scroller"),_.P("design:type",Object)],xk.prototype,"JSC$20963_scroller",void 0);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xk.prototype,"onPopupClosed",null);_.p([_.U(),_.P("design:type",Object)],xk.prototype,"onValueChanged",void 0);_.p([_.I({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],xk);
_.a(xk,"ytd-playlist-settings-editor-renderer",function(){if(PjX===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);PjX=q}q=PjX;return q},{mode:1});var MMp;_.xP("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var vz=function(){return _.C.apply(this,arguments)||this};
_.Y(vz,_.C);_.g=vz.prototype;_.g.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}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.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 q=this.get("data.nextButton.buttonRenderer.navigationEndpoint");q&&(this.nextNavigationEndpoint=q,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.g.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 q={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",q)}}};
_.g.onPopupOpened=function(q){q.detail!==this&&q.detail!==this.hostElement||!_.x("enable_premium_voluntary_pause")||_.By(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.g.onNextButtonTap=function(){var q=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);q&&this.ytdOpenPopupBehavior.openPopup(q)};
_.g.updateSelectedResponseIndexFromBinding=function(q){this.selectedResponseIndex=q.detail.value};
vz.prototype.onPopupOpened=vz.prototype.onPopupOpened;vz.prototype.onSelectedResponseIndexChange=vz.prototype.onSelectedResponseIndexChange;vz.prototype.dataChanged=vz.prototype.dataChanged;_.p([_.O(_.r7),_.P("design:type",Object)],vz.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],vz.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],vz.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],vz.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Number)],vz.prototype,"selectedResponseIndex",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vz.prototype,"dataChanged",null);_.p([_.FY("selectedResponseIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vz.prototype,"onSelectedResponseIndexChange",null);
_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],vz.prototype,"onPopupOpened",null);_.p([_.I({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],vz);
_.a(vz,"ytd-red-cancel-survey-renderer",function(){if(MMp!==void 0)return MMp;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return MMp=q},{mode:1});var obB;var GN=function(){var q=_.C.apply(this,arguments)||this;q.closeButtonAriaLabel=_.FE("SBOX_INAPPROPRIATE_CANCEL");return q};
_.Y(GN,_.C);GN.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
GN.prototype.onClickClose=function(){_.By(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],GN.prototype,"rendererStamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],GN.prototype,"data",void 0);_.p([_.U(),_.P("design:type",String)],GN.prototype,"closeButtonAriaLabel",void 0);_.p([_.I({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],GN);
_.a(GN,"ytd-search-filter-options-dialog-renderer",function(){if(obB!==void 0)return obB;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return obB=q},{mode:1});var Agf;var eWf=function(){return function(q){q=q.availabilityType;return q===void 0||q==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||q==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var Yk=function(){var q=_.C.apply(this,arguments)||this;q.qualityOptions=[];q.upsellOptions=[];q.showUpsellSection=!1;q.rememberSettingsChecked=!1;return q};
_.Y(Yk,_.C);_.g=Yk.prototype;_.g.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}}}}};
_.g.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.g.updateQualityOptions=function(){if(this.formats===void 0)_.By(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var q=[],N=[];this.showUpsellSection=!1;for(var b=_.Z(this.formats),y=b.next();!y.done;y=b.next())(y=y.value)&&(y.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?N.push(y):q.push(y));q.length&&(this.qualityOptions=AsX(q));N.length&&(this.showUpsellSection=!0,this.upsellOptions=AsX(N))}};
_.g.updateRememberString=function(){if(this.downloadQualityPickerEntity)var q=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var N;q=(N=this.data)==null?void 0:N.premiumRememberSettingString}else{var b;q=(b=this.data)==null?void 0:b.rememberSettingString}q=q===void 0?_.FE("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):q;this.rememberSettingsCheckboxRenderer={title:_.o5(q),disabled:!1}};
_.g.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.$H.Object.defineProperties(Yk.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var q;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(q=this.data)==null?void 0:q.qualityFormats}}});
Yk.prototype.updateRememberString=Yk.prototype.updateRememberString;Yk.prototype.updateQualityOptions=Yk.prototype.updateQualityOptions;Yk.prototype.dataChanged=Yk.prototype.dataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Yk.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Yk.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Yk.prototype,"data",void 0);
_.p([_.O(_.H6),_.P("design:type",Object)],Yk.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Boolean)],Yk.prototype,"selectedUpsellQuality",void 0);_.p([_.U({computed:"computeIcon_(data.premiumIcon)",value:""}),_.P("design:type",String)],Yk.prototype,"premiumIcon",void 0);_.p([_.U({selector:Ida,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.P("design:type",Object)],Yk.prototype,"downloadQualityPickerEntity",void 0);
_.p([_.U(),_.P("design:type",Array)],Yk.prototype,"qualityOptions",void 0);_.p([_.U(),_.P("design:type",Array)],Yk.prototype,"upsellOptions",void 0);_.p([_.U(),_.P("design:type",Object)],Yk.prototype,"showUpsellSection",void 0);_.p([_.U(),_.P("design:type",Object)],Yk.prototype,"rememberSettingsCheckboxRenderer",void 0);_.p([_.dq("#remember-settings"),_.P("design:type",HTMLInputElement)],Yk.prototype,"rememberSettingsCheckbox",void 0);
_.p([_.U(),_.P("design:type",Object)],Yk.prototype,"rememberSettingsChecked",void 0);_.p([_.U(),_.P("design:type",Function)],Yk.prototype,"onRememberSettingsCheckedChanged",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yk.prototype,"dataChanged",null);_.p([_.FY("downloadQualityPickerEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yk.prototype,"updateQualityOptions",null);
_.p([_.FY("selectedUpsellQuality"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yk.prototype,"updateRememberString",null);_.p([_.I({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Yk);
_.a(Yk,"ytd-download-quality-selector-content",function(){if(Agf!==void 0)return Agf;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Agf=q},{mode:1});var ecC;var Q2=function(){var q=_.C.apply(this,arguments)||this;q.selectedUpsellQuality=!1;q.qualityOptions=[];q.useUpsellDismissAlternate=_.x("use_not_now_dl_upsell_dismiss_cta");q.shouldShowAlternateUpsellDimiss=!1;q.rememberSettings=!1;q.rememberSettingsChecked=!1;q.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};q.rememberSettingsCheckedChanged=function(N){q.rememberSettingsChecked=N};
return q};
_.Y(Q2,_.C);_.g=Q2.prototype;
_.g.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.o5(_.FE("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.o5(_.FE("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.o5(_.FE("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.o5(_.FE("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.g.updateQualityOptions=function(){this.formats===void 0?_.By(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=AsX(this.formats)};
_.g.onQualityOptionsSelect=function(q){if(this.qualityOptions&&q){q!==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 N=_.Z(this.qualityOptions.entries()),b=N.next();!b.done;b=
N.next()){b=_.Z(b.value);var y=b.next().value;b=b.next().value;var J=void 0,E=void 0;if(((J=b)==null?void 0:(E=J.settingsRadioOptionRenderer)==null?void 0:E.id)===q){this.selectedQualityIndex=y;q=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((q=this.formats[y])==null?void 0:q.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.g.onClickSubmit=function(){var q;if((q=this.downloadButtonRenderer)==null||!q.isDisabled){var N,b;q=(b=(N=this.data)==null?void 0:N.onSubmitEndpoint)!=null?b:{};var y,J;if(this.formats&&(((y=_.v(q,_.F3))==null?0:y.videoId)||((J=_.v(q,_.RD))==null?0:J.playlistId))){var E,F,R,c,z,m;N={formatType:(c=(E=this.formats)==null?void 0:(F=E[(R=this.selectedQualityIndex)!=null?R:0])==null?void 0:F.format)!=null?c:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(z=this.getOfflineEndpoint(q))==null?void 0:(m=z.actionParams)==null?void 0:m.settingsAction)};this.getOfflineEndpoint(q).actionParams=N;this.ytComponentBehavior.resolveCommand(q)}_.By(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.g.onClickUpsell=function(){var q;if((q=this.upsellButtonRenderer)==null||!q.isDisabled){var N,b;q=(b=(N=this.data)==null?void 0:N.upsellEndpoint)!=null?b:{};this.ytComponentBehavior.resolveCommand(q);_.By(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);N="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var y,J,E,F;N=(F=(y=this.formats)==null?void 0:(J=y[(E=this.selectedQualityIndex)!=null?E:0])==null?void 0:J.format)!=null?F:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:N}})}};
_.g.onClickClose=function(){_.By(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.g.getOfflineSettingsAction=function(q,N){return q?N===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":N:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.g.getOfflineEndpoint=function(q){return _.v(q,_.F3)?_.v(q,_.F3):_.v(q,_.RD)};
_.$H.Object.defineProperties(Q2.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.o5(_.FE("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var q;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(q=this.data)==null?void 0:q.qualityFormats}}});
Q2.prototype.updateQualityOptions=Q2.prototype.updateQualityOptions;Q2.prototype.dataChanged=Q2.prototype.dataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Q2.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Q2.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Q2.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Q2.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Number)],Q2.prototype,"selectedQualityIndex",void 0);_.p([_.U(),_.P("design:type",Object)],Q2.prototype,"selectedUpsellQuality",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],Q2.prototype,"ytdReduxBehavior",void 0);
_.p([_.U({selector:Ida,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.P("design:type",Object)],Q2.prototype,"downloadQualityPickerEntity",void 0);_.p([_.U(),_.P("design:type",Array)],Q2.prototype,"qualityOptions",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],Q2.prototype,"useUpsellDismissAlternate",void 0);_.p([_.U(),_.P("design:type",Object)],Q2.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.p([_.U(),_.P("design:type",Object)],Q2.prototype,"downloadButtonRenderer",void 0);_.p([_.U(),_.P("design:type",Object)],Q2.prototype,"upsellButtonRenderer",void 0);_.p([_.U(),_.P("design:type",Object)],Q2.prototype,"cancelButtonRenderer",void 0);_.p([_.U(),_.P("design:type",Object)],Q2.prototype,"upsellCancelButtonRenderer",void 0);_.p([_.U(),_.P("design:type",Object)],Q2.prototype,"rememberSettings",void 0);_.p([_.U(),_.P("design:type",Object)],Q2.prototype,"rememberSettingsChecked",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Q2.prototype,"dataChanged",null);_.p([_.FY("downloadQualityPickerEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Q2.prototype,"updateQualityOptions",null);_.p([_.I({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Q2);
_.a(Q2,"ytd-download-quality-selector-renderer",function(){if(ecC!==void 0)return ecC;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return ecC=q},{mode:1});var B9c;var OZ=function(){return _.C.apply(this,arguments)||this};
_.Y(OZ,_.C);OZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
OZ.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"}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],OZ.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],OZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],OZ.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.infoIcon)"}),_.P("design:type",Object)],OZ.prototype,"infoIcon",void 0);
_.p([_.U({computed:"computeIcon_(data.warningIcon)"}),_.P("design:type",Object)],OZ.prototype,"warningIcon",void 0);_.p([_.I({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],OZ);
_.a(OZ,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(B9c!==void 0)return B9c;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return B9c=q},{mode:1});var H5B;var wt=function(){return _.C.apply(this,arguments)||this};
_.Y(wt,_.C);wt.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
wt.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"}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],wt.prototype,"data",void 0);_.p([_.I({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],wt);
_.a(wt,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(H5B!==void 0)return H5B;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return H5B=q},{mode:1});var qKf;var iY=function(){return _.C.apply(this,arguments)||this};
_.Y(iY,_.C);iY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
iY.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"}}}}};
iY.prototype.onServiceRequestSentOrCompleted=function(q,N){N&&N.actions&&N.actions.length>0&&_.By(this.hostElement,"yt-close-popup-action",[this.is])};
iY.prototype.onServiceRequestSentOrCompleted=iY.prototype.onServiceRequestSentOrCompleted;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],iY.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],iY.prototype,"data",void 0);
_.p([_.ZP("yt-service-request-completed"),_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],iY.prototype,"onServiceRequestSentOrCompleted",null);_.p([_.I({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],iY);
_.a(iY,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(qKf!==void 0)return qKf;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return qKf=q},{mode:1});var NXA;var lY=function(){var q=_.C.apply(this,arguments)||this;q.submitButtonDisabled=!0;return q};
_.Y(lY,_.C);_.g=lY.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.g.onDataChanged=function(){var q,N,b;if(((q=this.data)==null?void 0:(N=q.confirmButton)==null?void 0:(b=N.buttonRenderer)==null?void 0:b.isDisabled)!==void 0){var y,J,E;this.submitButtonDisabled=(y=this.data)==null?void 0:(J=y.confirmButton)==null?void 0:(E=J.buttonRenderer)==null?void 0:E.isDisabled}};
_.g.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.g.updateSubmitButtonDisabledFromBinding=function(q){this.submitButtonDisabled=q.detail.value};
_.g.updateSubmitButtonDisabledFromConfirmCheckbox=function(q){this.submitButtonDisabled=!q.detail.value};
lY.prototype.onDataChanged=lY.prototype.onDataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],lY.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],lY.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],lY.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],lY.prototype,"submitButtonDisabled",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lY.prototype,"onDataChanged",null);_.p([_.I({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],lY);
_.a(lY,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(NXA!==void 0)return NXA;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return NXA=q},{mode:1});var bWd;var Kq=function(){return _.C.apply(this,arguments)||this};
_.Y(Kq,_.C);_.$H.Object.defineProperties(Kq.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var q,N,b;return((q=this.data)==null?void 0:q.title)+" "+((N=this.data)==null?void 0:N.metadataPrimary)+" "+((b=this.data)==null?void 0:b.metadataSecondary)}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Kq.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Kq.prototype,"data",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Kq.prototype,"ariaLabel",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Kq);
_.a(Kq,"ytd-compact-product-list-item-renderer",function(){if(bWd!==void 0)return bWd;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return bWd=q},{mode:1});var yfU;var D1=function(){return _.C.apply(this,arguments)||this};
_.Y(D1,_.C);D1.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]]"}}}}}};
_.$H.Object.defineProperties(D1.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],D1.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],D1.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],D1.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],D1.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],D1);
_.a(D1,"ytd-compact-product-list-renderer",function(){if(yfU!==void 0)return yfU;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return yfU=q},{mode:1});var Jfc;var hh=function(){return _.C.apply(this,arguments)||this};
_.Y(hh,_.C);_.g=hh.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.g.getBackgroundUrl=function(){var q=this.get("data.headerImage.thumbnails");return q?"url("+_.Mo(q,this.hostElement.clientWidth)+")":""};
_.g.onDataChanged=function(){var q=this.getBackgroundUrl();q&&(this.header.style.backgroundImage=q);q=_.Oe();var N=_.QY(),b=this.get("data.trackingParams");b&&N&&q&&_.fr(q,N,_.zT(b));q=_.Z(this.hostElement.querySelectorAll("yt-img-shadow"));for(N=q.next();!N.done;N=q.next())N.value.onShow()};
_.g.onPopupClosed=function(q){_.a0(q).localName==="ytd-membership-post-cancel-renderer"&&_.By(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
hh.prototype.onPopupClosed=hh.prototype.onPopupClosed;hh.prototype.onDataChanged=hh.prototype.onDataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],hh.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],hh.prototype,"data",void 0);_.p([_.dq("#header"),_.P("design:type",HTMLDivElement)],hh.prototype,"header",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hh.prototype,"onDataChanged",null);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],hh.prototype,"onPopupClosed",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],hh);
_.a(hh,"ytd-membership-post-cancel-renderer",function(){if(Jfc!==void 0)return Jfc;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Jfc=q},{mode:1});var Ena;var kk=function(){return _.C.apply(this,arguments)||this};
_.Y(kk,_.C);kk.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
kk.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],kk.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],kk.prototype,"data",void 0);_.p([_.dq("ytd-feedback-survey-renderer"),_.P("design:type",Object)],kk.prototype,"feedbackSurveyRenderer",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],kk);
_.a(kk,"ytd-sponsorship-confirm-cancel-content",function(){if(Ena!==void 0)return Ena;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Ena=q},{mode:1});var gnd;var UZ=function(){var q=_.C.apply(this,arguments)||this;q.maybeSubmitFeedback=function(){q.content&&q.content.maybeSubmitFeedback()};
return q};
_.Y(UZ,_.C);_.g=UZ.prototype;_.g.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.g.onYtPopupOpened=function(q,N){N===this&&this.data&&this.data.onOpenCommands&&_.Nc(this.hostElement,this.data.onOpenCommands,this.hostElement);_.By(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.g.onYtPopupClosed=function(q,N){(N&&N.canceled===!0||N&&N.canceled===!1&&N.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Nc(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.g.onYtServiceRequestCompleted=function(){_.By(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.g.onYtServiceRequestError=function(q){_.CT(this.hostElement,q.detail.error.message)};
_.g.onDataChanged=function(){if(this.isAttached){var q=this.backgroundUrl;q&&(_.ee(this.hostElement).querySelector("#header").style.backgroundImage=q)}};
_.$H.Object.defineProperties(UZ.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var q=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return q?"url("+_.Mo(q,this.hostElement.clientWidth)+")":""}}});
UZ.prototype.onDataChanged=UZ.prototype.onDataChanged;UZ.prototype.onYtServiceRequestError=UZ.prototype.onYtServiceRequestError;UZ.prototype.onYtServiceRequestCompleted=UZ.prototype.onYtServiceRequestCompleted;UZ.prototype.onYtPopupClosed=UZ.prototype.onYtPopupClosed;UZ.prototype.onYtPopupOpened=UZ.prototype.onYtPopupOpened;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],UZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],UZ.prototype,"data",void 0);_.p([_.U({value:function(){return _.FE("SBOX_INAPPROPRIATE_CANCEL")}}),
_.P("design:type",String)],UZ.prototype,"closeButtonAriaLabel",void 0);_.p([_.dq("#scrollable"),_.P("design:type",Object)],UZ.prototype,"scrollable",void 0);_.p([_.dq("ytd-sponsorship-confirm-cancel-content"),_.P("design:type",Object)],UZ.prototype,"content",void 0);_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],UZ.prototype,"onYtPopupOpened",null);
_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],UZ.prototype,"onYtPopupClosed",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],UZ.prototype,"onYtServiceRequestCompleted",null);
_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],UZ.prototype,"onYtServiceRequestError",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],UZ.prototype,"onDataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],UZ);
_.a(UZ,"ytd-sponsorship-confirm-cancel-renderer",function(){if(gnd!==void 0)return gnd;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return gnd=q},{mode:_.Am("kevlar_poly_si_batch_j081")?1:2});var ZWK;var fq=function(){return _.C.apply(this,arguments)||this};
_.Y(fq,_.C);fq.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],fq.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],fq.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],fq);
_.a(fq,"ytd-sponsorships-celebration-content",function(){if(ZWK!==void 0)return ZWK;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return ZWK=
q},{mode:1});var F9X;var RAK=_.Tt(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),Cq=function(){var q=_.C.apply(this,arguments)||this;q.scriptsAppended=!1;q.useFullWidthPrimaryButton=!1;q.buttonOverrides={type:"tonal",style:"overlay-dark"};return q};
_.Y(Cq,_.C);_.g=Cq.prototype;_.g.dataChanged=function(){var q;this.useFullWidthPrimaryButton=!((q=this.data)==null||!q.useFullWidthPrimaryButton)};
_.g.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:_.x("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.onDataChanged=function(){var q;(q=this.header)==null||q.style.setProperty("background-color",this.backgroundColor);if(q=this.headerImageUrl){var N;(N=this.header)==null||N.style.setProperty("background-image",q)}N=_.Oe(4);q=_.QY(4);var b=this.get("data.trackingParams");if(b&&q&&N){var y=_.zT(b);_.fr(N,q,y);_.x("combine_ve_grafts")?_.FR().graftServerVe(b,q,4):_.fr(N,q,y)}N=_.Z(this.hostElement.querySelectorAll("yt-img-shadow"));for(q=N.next();!q.done;q=N.next())q.value.onShow();if(N=this.get("data.gtmId"))_.az(N,
_.M7("GL","")),this.setupConversionTracking()};
_.g.setupConversionTracking=function(){if(!this.scriptsAppended){var q=document.createElement("script");_.Fw(q,_.g0(RAK.join("")));document.head.appendChild(q);q=document.createElement("noscript");q.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(q);this.scriptsAppended=!0}};
_.g.onPopupClosed=function(q){if(_.a0(q).localName==="ytd-sponsorships-celebration-renderer"){_.By(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var N;this.data&&((N=this.data)==null?0:N.dismissCommand)&&_.bq.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.$H.Object.defineProperties(Cq.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var q=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Y8(q)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var q=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return q?"url("+_.Mo(q,this.hostElement.getBoundingClientRect().width)+")":""}}});
Cq.prototype.onPopupClosed=Cq.prototype.onPopupClosed;Cq.prototype.onDataChanged=Cq.prototype.onDataChanged;Cq.prototype.dataChanged=Cq.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Cq.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Cq.prototype,"data",void 0);
_.p([_.dq("#header"),_.P("design:type",HTMLElement)],Cq.prototype,"header",void 0);_.p([_.U(),_.P("design:type",Object)],Cq.prototype,"scriptsAppended",void 0);_.p([_.U({type:Boolean,reflectToAttribute:!0}),_.P("design:type",Object)],Cq.prototype,"useFullWidthPrimaryButton",void 0);_.p([_.U(),_.P("design:type",Object)],Cq.prototype,"buttonOverrides",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cq.prototype,"dataChanged",null);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cq.prototype,"onDataChanged",null);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Cq.prototype,"onPopupClosed",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],Cq);
_.a(Cq,"ytd-sponsorships-celebration-renderer",function(){if(F9X!==void 0)return F9X;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return F9X=q},{mode:1});var dGU;var IG=function(){var q=_.C.apply(this,arguments)||this;q.isToggleChecked=!1;return q};
_.Y(IG,_.C);IG.prototype.onDataChanged=function(){var q;this.isToggleChecked=((q=this.data)==null?void 0:q.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
IG.prototype.close=function(){var q;((q=this.data)==null?0:q.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
IG.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var q,N=_.v((q=this.data)==null?void 0:q.switchButton,Era);N&&(this.isToggleChecked&&N.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(N.switchOnInnertubeCommand),!this.isToggleChecked&&N.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(N.switchOffInnertubeCommand))};
IG.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
IG.prototype.onDataChanged=IG.prototype.onDataChanged;_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],IG.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],IG.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],IG.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],IG.prototype,"isToggleChecked",void 0);_.p([_.U({value:_.FE("CLOSE")}),_.P("design:type",String)],IG.prototype,"closeButtonAriaLabel",void 0);
_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IG.prototype,"onDataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],IG);
_.a(IG,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(dGU!==void 0)return dGU;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return dGU=q},{mode:1});var cff;var TN=function(){return _.C.apply(this,arguments)||this};
_.Y(TN,_.C);_.g=TN.prototype;_.g.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"}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.detached=function(){this.playerElement.stop()};
_.g.onYtServiceRequestCompleted=function(){_.By(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.g.onYtServiceRequestError=function(q){_.CT(this.hostElement,q.detail.error.message)};
_.g.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.g.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.g.getTier=function(q,N){return!q||!q.tiers||N<0?null:_.v(q.tiers[N],ReA)};
_.g.moreThanOne=function(q){return!!(q&&q.length>1)};
_.g.tierOverviewTap=function(q){var N=this;this.selectedTier=q.model.index;_.ut(this,function(){_.e2(N.hostElement,"yt-refit")})};
_.g.computeSelectedClass=function(q,N){return this.isSelected(q,N)?"selected":""};
_.g.computeButtonAriaPressed=function(q,N){return this.isSelected(q,N)?"true":"false"};
_.g.isSelected=function(q,N){return q===N};
_.g.onDataChanged=function(){_.ee(this.hostElement).querySelector("#header-overlay").style.visibility="";_.ee(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 q=_.Z(this.hostElement.querySelectorAll("yt-img-shadow")),
N=q.next();!N.done;N=q.next())N.value.onShow();var b;this.set("selectedTier",(b=this.get("data.targetTierIndex"))!=null?b:0);var y;(q=(y=this.data)==null?void 0:y.onVisible)&&this.ytComponentBehavior.resolveCommand(q)};
_.g.initializeVe=function(q){var N=_.Oe(),b=_.QY(),y=this.get("data.trackingParams");b&&N&&(this.screenLayer=4,N=_.qg(_.JIz)(void 0,69877,{clientScreenNonce:N,visualElement:b},void 0,void 0,void 0),_.iE(N,69877,4),b=_.QY(4),y&&b&&(y=_.zT(y),_.fr(N,b,y),q&&(this.offerVideoVe=_.bx(74659),_.fr(N,y,this.offerVideoVe))))};
_.g.setHeaderBackground=function(){var q=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.ee(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Y8(q);if(q=this.getHeaderImage())q=_.Mo(q,screen.width),_.ee(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+q+")"};
_.g.getHeaderImage=function(){var q=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&q?q:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.g.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.g.setupVideoPlayer=function(q){var N=this,b,y,J,E;return _.d(function(F){if(F.nextAddress==1)return b=N.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),y=N.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.x("kevlar_player_update_killswitch")?N.playerElement.update({args:{autoplay:b,video_id:q,player_params:y}}):N.playerElement.loadVideoWithPlayerVars({autoplay:b,video_id:q,player_params:y}),
F.yield(N.playerElement.getPlayerPromise(),2);J=F.yieldResult;J.addEventListener("onStateChange",function(R){N.onPlayerStateChange(R)});
J.setScreenLayer(N.screenLayer);(E=_.Oe(4))&&N.offerVideoVe&&_.I5(E,N.offerVideoVe);b&&(N.pauseOtherPlayers(),N.playerElement.focusOnPlayer(),N.playerElement.getPlayer().hideControls(),_.Ip(_.pY,function(){N.fadeOutHeaderOverlay()},4E3));
_.hj(F)})};
_.g.onPlayerStateChange=function(q){q===1?this.backgroundPlayerElement&&(q=this.backgroundPlayerElement.player_.getPlayerState(),q!==1&&q!==3||this.backgroundPlayerElement.pause()):q===0&&(_.ee(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.ee(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.g.fadeOutHeaderOverlay=function(){_.ee(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.g.onHeaderTap=function(){if(this.offerVideo){_.ee(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var q;((q=this.playerElement.player_)==null?void 0:q.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(q=_.Oe(4))&&this.offerVideoVe&&_.nr(q,this.offerVideoVe)}};
_.g.getBackgroundImageLayerClass=function(q){return q?"background-image-layer-with-video":""};
_.g.getHeaderClass=function(q){return q?"header-with-video":""};
_.g.getHeaderOverlayClass=function(q){return q?"header-overlay-with-video":""};
_.g.getTitleContainerClass=function(q,N){return q?"title-container-with-video":N?"title-container-without-video-flexible":"title-container-without-video"};
_.g.tierTitleDisplayStatus=function(q){return this.moreThanOne(q)?"hide":"show"};
_.g.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.tz().resolve(_.l9).getPlayerElement():this.backgroundPlayerElement=_.Pk();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var q=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=q===1||q===3;this.backgroundPlayerElement.pause()}};
_.g.isMiniplayerActive=function(){return _.tz().resolve(_.l9).isMiniplayerActive()};
_.g.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("selected-tier-changed",this.selectedTier))};
TN.prototype.selectedTierChangedForBinding=TN.prototype.selectedTierChangedForBinding;TN.prototype.onDataChanged=TN.prototype.onDataChanged;TN.prototype.onYtPopupClosed=TN.prototype.onYtPopupClosed;TN.prototype.onYtPopupOpened=TN.prototype.onYtPopupOpened;TN.prototype.onYtServiceRequestError=TN.prototype.onYtServiceRequestError;TN.prototype.onYtServiceRequestCompleted=TN.prototype.onYtServiceRequestCompleted;
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],TN.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],TN.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],TN.prototype,"data",void 0);_.p([_.U({value:0}),_.P("design:type",Number)],TN.prototype,"selectedTier",void 0);
_.p([_.U({value:""}),_.P("design:type",String)],TN.prototype,"offerVideo",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],TN.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.p([_.U({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.en(this)}}),
_.P("design:type",String)],TN.prototype,"playerId",void 0);_.p([_.dq("tp-yt-paper-dialog-scrollable"),_.P("design:type",Object)],TN.prototype,"scrollable",void 0);_.p([_.dq("ytd-sponsorships-tier-renderer"),_.P("design:type",Object)],TN.prototype,"tierRenderer",void 0);_.p([_.dq("#player"),_.P("design:type",Object)],TN.prototype,"playerElement",void 0);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],TN.prototype,"onYtServiceRequestCompleted",null);_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],TN.prototype,"onYtServiceRequestError",null);
_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TN.prototype,"onYtPopupOpened",null);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TN.prototype,"onYtPopupClosed",null);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TN.prototype,"onDataChanged",null);
_.p([_.FY("selectedTier"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TN.prototype,"selectedTierChangedForBinding",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],TN);
_.a(TN,"ytd-sponsorships-offer-renderer",function(){if(cff!==void 0)return cff;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return cff=q},{mode:_.Am("kevlar_poly_si_batch_j077")?1:2});var uUN;var sZ=function(){var q=_.C.apply(this,arguments)||this;q.buttonOverrides={type:"filled",style:"mono"};return q};
_.Y(sZ,_.C);sZ.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}}}}}};
sZ.prototype.backgroundColorChanged=function(){var q,N,b,y=(N=_.v((q=this.data)==null?void 0:q.content,dqU))==null?void 0:(b=N.backgroundColor)==null?void 0:b.backgroundColor;y&&(q=_.GM(y),_.ee(this.hostElement).querySelector("#banner").style.backgroundColor=q,_.ee(this.hostElement).querySelector("#abstract-art").style.backgroundColor=q)};
sZ.prototype.attached=function(){this.JSC$21048_scroller&&(this.JSC$21048_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21048_scroller.attached&&typeof this.JSC$21048_scroller.attached==="function"&&this.JSC$21048_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
sZ.prototype.backgroundColorChanged=sZ.prototype.backgroundColorChanged;_.p([_.U(),_.P("design:type",Object)],sZ.prototype,"data",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],sZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("#scroller"),_.P("design:type",Object)],sZ.prototype,"JSC$21048_scroller",void 0);_.p([_.U(),_.P("design:type",Object)],sZ.prototype,"buttonOverrides",void 0);
_.p([_.FY("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sZ.prototype,"backgroundColorChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],sZ);
_.a(sZ,"ytd-sponsorships-promotion-celebration-renderer",function(){if(uUN!==void 0)return uUN;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return uUN=q},{mode:_.Am("kevlar_poly_si_batch_j077")?1:2});var zAa;var $GW;var nq=function(){return _.C.apply(this,arguments)||this};
_.Y(nq,_.C);nq.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
nq.prototype.computeIsInitiallyChecked=function(q){return q===1};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],nq.prototype,"data",void 0);_.p([_.dq("#checkbox"),_.P("design:type",Object)],nq.prototype,"checkbox",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],nq);
_.a(nq,"ytd-subscription-toggle-option-renderer",function(){if($GW!==void 0)return $GW;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return $GW=q},{mode:1});var aG=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return q};
_.Y(aG,_.C);aG.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"}}}};
aG.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
aG.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var q=_.ee(this.hostElement).querySelector("#options").selected;q=this.data.options[q].subscriptionRadioOptionRenderer.serviceEndpoint;var N=_.ee(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");N&&q&&q.modifyChannelNotificationPreferenceEndpoint&&(N=N.getValue())&&(q.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[N]);_.tz().resolve(_.rO).resolveCommand(q,{form:{element:this.hostElement}});
_.By(this.hostElement,"yt-close-popup-action")};
_.$H.Object.defineProperties(aG.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var q=this.data.options,N=0;N<q.length;N++){var b=q[N].subscriptionRadioOptionRenderer;if(b&&b.selected)return N}return null}}});
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],aG.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],aG.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],aG.prototype,"eventForwardingBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],aG.prototype,"data",void 0);_.p([_.l("data.options"),_.P("design:type",Object),_.P("design:paramtypes",[])],aG.prototype,"initialIndex",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],aG);
_.a(aG,"ytd-subscription-notification-options-renderer",function(){if(zAa!==void 0)return zAa;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return zAa=q},{mode:1});var t7K;var mGd=function(){return _.C.apply(this,arguments)||this};
_.Y(mGd,_.C);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],mGd.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],mGd.prototype,"data",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],mGd);
_.a(mGd,"ytd-tvfilm-offer-groups-renderer",function(){if(t7K!==void 0)return t7K;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return t7K=q},{mode:1});var rfB;var S1=function(){return _.C.apply(this,arguments)||this};
_.Y(S1,_.C);_.g=S1.prototype;_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.g.computeThumbnailClass=function(q){return q.thumbnailOverlays?q.isShow?"thumbnail-show":"thumbnail-movie":q.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.g.computeCommerceSectionClass=function(q){return q.offers&&q.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.g.computeTitleClass=function(q){return q.offers&&q.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.g.onDataChanged=function(){[].concat(_.a9(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(q){q.onShow()})};
S1.prototype.onDataChanged=S1.prototype.onDataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],S1.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],S1.prototype,"data",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],S1.prototype,"onDataChanged",null);
_.p([_.I({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],S1);
_.a(S1,"ytd-ypc-offers-overlay-renderer",function(){if(rfB!==void 0)return rfB;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return rfB=q},{mode:_.Am("kevlar_poly_si_batch_j028")?1:2});var XgA;var V7K=function(){this.usedMethods=new Set};
V7K.prototype.add=function(q){this.usedMethods.add(q)};
V7K.prototype.reset=function(){this.usedMethods.clear()};var vnx=function(q,N){this.query=q;this.previousSearchQuery=N;this.id=jhx++;if(!xGC){N=_.M7("SBOX_SETTINGS");q="https://"+((N==null?void 0:N.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var b=N==null?void 0:N.REQUEST_LANGUAGE;b&&(q+="&hl="+b);(b=N==null?void 0:N.REQUEST_DOMAIN)&&(q+="&gl="+b);q+="&client=youtube&gs_ri=youtube";(b=N==null?void 0:N.SUGG_EXP_ID)&&(q+="&sugexp="+encodeURIComponent(b));(b=N==null?void 0:N.PSUGGEST_TOKEN)&&(q+="&tok="+b);(N=
N==null?void 0:N.SESSION_INDEX)&&(q+="&authuser="+N);_.x("desktop_enable_visual_suggest")&&(q+="&h=180&w=320&ytvs=1");xGC=q}},GlU=function(q){var N="q="+encodeURIComponent(q.query);
q.previousSearchQuery&&(N+="&pq="+encodeURIComponent(q.previousSearchQuery));return N},YKC=function(){var q=_.M7("SBOX_SETTINGS"),N={};
if(q==null?0:q.SEND_VISITOR_DATA)N["X-Goog-Visitor-Id"]=q==null?void 0:q.VISITOR_DATA;return N},Qhf=function(q){var N=xGC;
N+="&gs_id="+q.id.toString(36);N+="&q="+encodeURIComponent(q.query);N+="&cp="+q.query.length;q.previousSearchQuery&&(N+="&pq="+encodeURIComponent(q.previousSearchQuery));(q=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(N+="&video_id="+q);return N},jhx=0,xGC="";var OWU=_.S8.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,wgx=_.S8.SEARCH_ENTITY_SUGGESTION_MOVIE,iWK=_.S8.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,lnU=_.S8.SEARCH_ENTITY_SUGGESTION_TV_SHOW,K9p=function(q,N){this.text=q;this.bold=N},DGK=function(q,N,b){this.input=N;
this.index=b;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=q[0];this.type=q[1];this.subtypes=q[2];var y;this.displayText=HLf((y=q[3])==null?void 0:y.b);var J;this.ignoredPrefix=HLf((J=q[3])==null?void 0:J.a);var E,F;this.hasNewVideo=((E=q[3])==null?void 0:(F=E.zam)==null?void 0:F.toString())==="true"?!0:!1;var R;this.visualSuggestUrl=(R=q[3])==null?void 0:R.zai;var c;this.entityType=HLf((c=q[3])==null?void 0:c.zap);var z;this.entityName=HLf((z=q[3])==null?void 0:z.zao);var m;N=
HLf((m=q[3])==null?void 0:m.zaf);var r;this.entityMid=(r=q[3])==null?void 0:r.zae;m=qqd(this.subtypes,this.entityMid);if(N&&m){if(N){r="";switch(m){case "YOUTUBE_ENTITY_TYPE_SONG":r=iWK;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":r=OWU;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":r=lnU;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":r=wgx}m=m==="YOUTUBE_ENTITY_TYPE_SONG"||m==="YOUTUBE_ENTITY_TYPE_ALBUM"?r+" \u2022  \u2022 "+N:N}else m="";this.entitySubtitle=m}var X;this.externalChannelId=(X=q[3])==null?void 0:X.zav;
var V;this.entityThumbnailAttributionUrl=(V=q[3])==null?void 0:V.zaq},klc=function(q,N){var b=[],y,J=(y=q.displayText)!=null?y:q.text;
(N==null?0:N.useEntityName)&&hAN(q)&&q.entityName&&(J=q.entityName);if(q.type===33)return b.push(new K9p(J,!1)),b;if(J.length>=q.input.length&&J.substring(0,q.input.length)===q.input)b.push(new K9p(q.input,!1)),b.push(new K9p(J.substring(q.input.length),!0));else{var E=new Set(q.input.split(/\s/)),F=J.split(/\s/);b=F.map(function(R,c){return new K9p(R.trim()+(c===F.length-1?"":" "),!E.has(R))})}return b},hAN=function(q){var N=!!qqd(q.subtypes);
q=!!q.entityMid;return N||q};var UGf=function(q){this.rawResponse=["",[],{}];this.suggestions=[];try{var N=JSON.parse(N1c(q));if(typeof N==="object"&&N!==null)this.rawResponse=N;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(y){console.log("Suggest: Failed to parse SuggestResponse!");return}var b=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(y,J){return new DGK(y,b,J)})};var fnC=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new V7K;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$21085_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},C4f,Inf=function(){C4f||(C4f=new fnC);
return C4f};
fnC.prototype.updateSuggestions=function(q){var N=this;this.availableSuggestions.forEach(function(b){N.previousSuggestions[b]=!0});
this.availableSuggestions=q.map(function(b){var y=b.type.toString();b.subtypes.length>0&&(y+="i"+b.subtypes.join("i"),y+="k"+b.suggestionSources.COMPLETE_SERVER.toString());return y})};
var TXx=function(q,N){var b=Date.now();q.firstEditTime<0&&(q.firstEditTime=b);N&&(q.lastQueryBuildTime=b);q.lastEditTime=b};
fnC.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$21085_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var shd=function(q){var N="";q.availableSuggestions.forEach(function(J){delete q.previousSuggestions[J]});
for(var b=_.Z(Object.keys(q.previousSuggestions)),y=b.next();!y.done;y=b.next())y=y.value,q.previousSuggestions[y]&&(N+=(N?"j":"")+y);return N},nnW=function(q,N){var b=[];
N&&(b[1]=N.toString());b[0]="youtube";b[7]=Date.now()-q.startTime;b[6]=q.sessionNumber;q.zeroPrefixSuggestionCount>=0&&(b[33]=q.zeroPrefixSuggestionCount);b[13]=q.outOfSyncResponseCount;if(q.availableSuggestions.length>0){for(var y=N="",J=0,E=_.Z(q.availableSuggestions),F=E.next();!F.done;F=E.next())F=F.value,F!==y&&(J>1&&(N+="l"+J),N+=(y?"j":"")+F,J=0,y=F),J+=1;J>1&&(N+="l"+J);b[3]=N}b[35]=shd(q);q.selectedSuggestionIndex>=0&&(b[2]=q.selectedSuggestionIndex);var R;if(N=(R=_.M7("SBOX_SETTINGS"))==
null?void 0:R.SUGG_EXP_ID)b[19]=q.normalize(N),R=0,q.experimentTriggeredBeforeFinal&&(R|=1),q.experimentTriggeredFinal&&(R|=2),b[20]=R;b[26]=Array.from(q.inputMethodsTracker.usedMethods).join("j");if(q.JSC$21085_totalRoundTripTime>0){b[15]=q.JSC$21085_totalRoundTripTime;b[14]=q.maxRoundTripTime;R=[];for(J=N=0;J<10;J++)y=q.roundTripTimeHistogram[J],y===0?N++:(N>1?R.push(J+"-"+y):N===1?R.push("0j"+y):R.push(y.toString()),N=0);R=R.join("j");b[16]=R}q.zeroPrefixRoundTripTime>0&&(b[36]=q.zeroPrefixRoundTripTime);
q.lastQueryBuildTime>0&&(b[18]=q.lastQueryBuildTime-q.startTime);q.firstEditTime>0&&(b[4]=q.firstEditTime-q.startTime);q.lastEditTime>0&&(b[5]=q.lastEditTime-q.startTime);return b.join(".")};
fnC.prototype.normalize=function(q){return q.replaceAll(".","-")};
var anN=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Wz=function(){var q=_.C.apply(this,arguments)||this;q.microphoneSpinnerActive=!1;q.noAnimations=!1;q.boundExitClick=function(){q.onExitButtonClick()};
q.speechOverlayClassName="";q.isLevelAnimating=!1;q.playCloseDialogAudioFeedback=!0;q.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return q};
_.Y(Wz,_.C);_.g=Wz.prototype;_.g.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.g.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=Vfa()};
_.g.dataChanged=function(){this.logDialog()};
_.g.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var q;(q=this.manager.audioPlayer)!=null&&(q.JSC$20398_audioEnabled=!1)}this.manager.stop();(q=this.manager.audioPlayer)!=null&&(q.JSC$20398_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.g.handleSpeechQueryCompleteAction=function(q){var N=q.navigationAction;N&&(q.trackingParams&&_.FR().graftServerVe(q.trackingParams,this.dialogVe,5),_.e2(this.hostElement,"yt-navigate",{endpoint:N,tempData:this.getNavigationParams(N),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.g.onExitButtonClick=function(){this.closeDialog()};
_.g.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var q;if((q=this.manager)!=null){var N;(N=q.audioPlayer)==null||bs(N,"failure");q.setState("microphone-off");q.stop()}}else(q=this.manager)==null||q.start()};
_.g.transcriptionChanged=function(){var q,N;(((q=this.transcription)==null?0:q.low)||((N=this.transcription)==null?0:N.high))&&this.setState("transcribing",this.transcription)};
_.g.stateChanged=function(){this.setState(this.state,this.transcription)};
_.g.logDialog=function(){var q;(q=this.data)!=null&&q.trackingParams&&(q=_.FR(),_.DO(q,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=q.graftServerVe(this.data.trackingParams,void 0,5))};
_.g.getNavigationParams=function(q){var N={};if(_.x("web_yt_searchbox")){var b=Inf();b.inputMethodsTracker.add(6);b=nnW(b,15);N.gs_l=b;var y;N.oq=((y=_.v(q,_.R0))==null?void 0:y.query)||""}else if(q=window.ytvoicesearchloggingparams){if(q=q())N.oq=q.oq,N.gs_l=q.gs_l}else _.bv(Error("Jl"));return N};
_.g.closeDialog=function(){_.By(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.g.setState=function(q,N){if(this.data){var b=this.data,y={};switch(q){case "listening":y={headerText:b.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:b.microphoneButtonAriaLabel};break;case "timeout":y={headerText:b.promptHeader,microphoneState:"try-again",microphoneLabel:b.promptMicrophoneLabel,microphoneAriaLabel:b.promptMicrophoneLabel};break;case "microphone-off":y={headerText:b.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:b.promptMicrophoneLabel,
microphoneAriaLabel:b.promptMicrophoneLabel};break;case "transcribing":(N==null?0:N.low)||(N==null?0:N.high)?y={transcriptionLow:N==null?void 0:N.low,transcriptionHigh:N==null?void 0:N.high,microphoneState:"speaking",microphoneAriaLabel:b.microphoneButtonAriaLabel}:y={headerText:b.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:b.microphoneButtonAriaLabel};break;case "processing":y={headerText:b.loadingHeader,microphoneState:"processing",microphoneAriaLabel:b.microphoneButtonAriaLabel};
break;case "offline":y={headerText:b.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:b.connectionErrorMicrophoneLabel,microphoneAriaLabel:b.connectionErrorMicrophoneLabel};break;case "permission":y={headerText:b.permissionsHeader,bodyLine1:b.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:b.permissionsSubtext};break;case "permission-denied":y={headerText:b.disabledHeader,bodyLine1:b.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:b.disabledSubtext}}y.className=
q;this.speechOverlayState=y;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.g.setMicrophoneState=function(q){var N=this.isLevelAnimating;this.isLevelAnimating=q==="speaking";!N&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=q==="processing"&&!this.noAnimations};
_.g.setClass=function(q){this.speechOverlayClassName&&_.HP(this.hostElement,this.speechOverlayClassName,!1);q&&(this.speechOverlayClassName=q,_.HP(this.hostElement,q,!0))};
_.g.runLevelAnimation=function(){var q=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var N=1+Math.random()*.75,b=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+b/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+N+")");_.pY.addJob(function(){q.runLevelAnimation()},3,b)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Wz.prototype.stateChanged=Wz.prototype.stateChanged;Wz.prototype.transcriptionChanged=Wz.prototype.transcriptionChanged;Wz.prototype.onPopupClosed=Wz.prototype.onPopupClosed;Wz.prototype.dataChanged=Wz.prototype.dataChanged;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Wz.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Wz.prototype,"rendererStamperBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],Wz.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],Wz.prototype,"eventForwardingBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Wz.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Wz.prototype,"speechOverlayState",void 0);
_.p([_.U(),_.P("design:type",Object)],Wz.prototype,"microphoneSpinnerActive",void 0);_.p([_.U({type:_.x("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.P("design:type",Object)],Wz.prototype,"noAnimations",void 0);_.p([_.U({selector:function(q){var N;return(N=q.voiceSearch)==null?void 0:N.transcription}}),
_.P("design:type",Object)],Wz.prototype,"transcription",void 0);_.p([_.U({selector:function(q){var N;return(N=q.voiceSearch)==null?void 0:N.overlay}}),
_.P("design:type",String)],Wz.prototype,"state",void 0);_.p([_.U(),_.P("design:type",Object)],Wz.prototype,"boundExitClick",void 0);_.p([_.dq("#microphone-levels"),_.P("design:type",HTMLElement)],Wz.prototype,"level",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Wz.prototype,"dataChanged",null);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Wz.prototype,"onPopupClosed",null);
_.p([_.$9("transcription"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Wz.prototype,"transcriptionChanged",null);_.p([_.$9("state"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Wz.prototype,"stateChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Wz);
_.a(Wz,"ytd-voice-search-dialog-renderer",function(){if(XgA!==void 0)return XgA;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return XgA=q},{mode:1});var SKf;var Lq=function(){var q=_.C.apply(this,arguments)||this;q.isOverlay=!1;q.hidden=!1;return q};
_.Y(Lq,_.C);_.g=Lq.prototype;_.g.onPopupClosed=function(){this.toggleIconState(!1)};
_.g.computeIcon=function(){var q,N,b;return(N=_.v((q=this.data)==null?void 0:q.icon,tCA))==null?void 0:(b=N.icon)==null?void 0:b.iconType};
_.g.computeIconBadgeShape=function(){var q;return{iconBadgeType:"cart",iconBadgeText:(q=this.iconBadgeEntity)==null?void 0:q.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.g.onClick=function(){var q;(q=this.data)!=null&&q.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.g.computeHidden=function(q){return!q};
_.g.toggleIconState=function(q){this.iconButton&&(this.iconButton.pressed=q)};
Lq.prototype.onPopupClosed=Lq.prototype.onPopupClosed;_.p([_.O(_.H6),_.P("design:type",Object)],Lq.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Lq.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Lq.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Lq.prototype,"isOverlay",void 0);
_.p([_.U({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.P("design:type",Object)],Lq.prototype,"hidden",void 0);_.p([_.U({selectorArgs:["data.iconBadgeEntityKey"],selector:function(q,N){return _.Ji(q.entities,"iconBadgeEntity",N)}}),
_.P("design:type",Object)],Lq.prototype,"iconBadgeEntity",void 0);_.p([_.dq("yt-icon-button"),_.P("design:type",HTMLButtonElement)],Lq.prototype,"iconButton",void 0);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Lq.prototype,"onPopupClosed",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Lq);
_.a(Lq,"ytd-icon-badge-topbar-button-renderer",function(){if(SKf!==void 0)return SKf;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return SKf=q},{mode:1});var W9d;var pq=function(){var q=_.C.apply(this,arguments)||this;q.premiumOptions=[];return q};
_.Y(pq,_.C);pq.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.$H.Object.defineProperties(pq.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],pq.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],pq.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Array)],pq.prototype,"premiumOptions",void 0);_.p([_.l("premiumOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],pq.prototype,"hasPremiumOptions",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],pq);
_.a(pq,"ytd-offline-promo-content",function(){if(W9d!==void 0)return W9d;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return W9d=q},{mode:1});var L9B;var Pz=function(){var q=_.C.apply(this,arguments)||this;q.premiumOptions=[];return q};
_.Y(Pz,_.C);Pz.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var q;this.premiumOptions=BMd((q=this.data)==null?void 0:q.formats)};
Pz.prototype.onClickSubmit=function(){_.By(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var q;(q=_.Pk())==null||q.pause()};
Pz.prototype.attached=function(){this.JSC$21105_scroller&&(this.JSC$21105_scroller.dialogElement=this.hostElement.parentNode)};
_.$H.Object.defineProperties(Pz.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Pz.prototype.dataChanged=Pz.prototype.dataChanged;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Pz.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Pz.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Pz.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Pz.prototype,"data",void 0);
_.p([_.U({computed:"computeIcon_(data.headersIcon)",value:""}),_.P("design:type",String)],Pz.prototype,"headersIcon",void 0);_.p([_.U(),_.P("design:type",Array)],Pz.prototype,"premiumOptions",void 0);_.p([_.dq("#scroller"),_.P("design:type",Object)],Pz.prototype,"JSC$21105_scroller",void 0);_.p([_.l("headersIcon"),_.P("design:type",Object),_.P("design:paramtypes",[])],Pz.prototype,"showIcon",null);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pz.prototype,"dataChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Pz);
_.a(Pz,"ytd-offline-promo-renderer",function(){if(L9B!==void 0)return L9B;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return L9B=q},{mode:1});var pgf;var Mf=function(){var q=_.C.apply(this,arguments)||this;q.playbackPauseInterval=NaN;q.isLoading=!1;q.hasError=!1;q.dialogClass="";q.youtubeLabel=_.FE("LOGO_ALT_LABEL",{},"YouTube Home");q.logoName="yt-logos-ext:yt-logo-updated";q.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return q};
_.Y(Mf,_.C);_.g=Mf.prototype;_.g.onDataChange=function(){var q;if(this.showEOMV1Text=!((q=this.data)==null||!q.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.g.attached=function(){this.pausePlayer()};
_.g.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.g.handleLangSelect=function(q){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[q.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.g.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.g.handleSaveConsent=function(q){var N=this;this.showLoadingSpinner();this.showLoadingSpinner();OtN(_.v(q,lvf)).catch(function(b){_.M6(new _.IO("Something went wrong when save consent "+(b.message?b.message:b)+"."));N.hideLoadingSpinner();N.showErrorMessage()})};
_.g.handleDisablePersonalization=function(q){var N=this;this.showLoadingSpinner();w$c(_.v(q,iEf)).then(function(){N.dialog.close();N.resumePlayer()}).catch(function(b){_.M6(new _.IO("Something went wrong when disable personalization "+(b.message?b.message:b)+"."));
N.hideLoadingSpinner();N.showErrorMessage()})};
_.g.showLoadingSpinner=function(){var q=this;this.showSpinnerJobId=_.pY.addLowPriorityJob(function(){q.isLoading=!0},500)};
_.g.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.pY.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.g.showErrorMessage=function(){var q=this;this.hasError=!0;_.pY.addLowPriorityJob(function(){q.hasError=!1},2E3)};
_.g.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.QX(function(){try{var q=_.Pk();q&&q.pause()}catch(N){}},100))};
_.g.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var q=_.Pk();q&&q.play()}catch(N){}};
_.$H.Object.defineProperties(Mf.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.eomV1Text)return[];q=[];for(var N=["SHIELD","WARNING","BAR_CHART"],b=this.data.eomV1Text.essentialCookieMsg.items,y=0;y<N.length&&y<b.length;y++)q.push({icon:N[y],text:b[y]});return q}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.eomV1Text)return[];q=[];for(var N=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],b=this.data.eomV1Text.nonEssentialCookieMsg.items,y=0;y<N.length&&y<b.length;y++)q.push({icon:N[y],text:b[y]});return q}}});
Mf.prototype.onDataChange=Mf.prototype.onDataChange;_.p([_.U(),_.P("design:type",Object)],Mf.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],Mf.prototype,"showEOMV1Text",void 0);_.p([_.U(),_.P("design:type",Object)],Mf.prototype,"isLoading",void 0);_.p([_.U(),_.P("design:type",Object)],Mf.prototype,"hasError",void 0);_.p([_.U(),_.P("design:type",Number)],Mf.prototype,"showSpinnerJobId",void 0);_.p([_.U(),_.P("design:type",Object)],Mf.prototype,"dialogClass",void 0);
_.p([_.dq("#dialog"),_.P("design:type",Object)],Mf.prototype,"dialog",void 0);_.p([_.dq("#cb-header"),_.P("design:type",HTMLElement)],Mf.prototype,"header",void 0);_.p([_.dq("#lang-select"),_.P("design:type",HTMLElement)],Mf.prototype,"langSelect",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],Mf.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Mf.prototype,"ytComponentBehavior",void 0);
_.p([_.U(),_.P("design:type",String)],Mf.prototype,"youtubeLabel",void 0);_.p([_.U(),_.P("design:type",Object)],Mf.prototype,"logoName",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mf.prototype,"onDataChange",null);_.p([_.l("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],Mf.prototype,"eomEssentialCookieMsgItems",null);
_.p([_.l("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],Mf.prototype,"eomNonEssentialCookieMsgItems",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],Mf);
_.a(Mf,"ytd-consent-bump-v2-lightbox",function(){if(pgf!==void 0)return pgf;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return pgf=q},{mode:1});var P4x;var oG=function(){return _.C.apply(this,arguments)||this};
_.Y(oG,_.C);oG.prototype.ready=function(){if(!_.UV()||ZzN)var q=!0;else ZzN=!0,q=!1;q||(q=document.querySelector("ytd-app"),q||(q=document.body),this.internalLightBox=_.ee(q).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.p([_.U(),_.P("design:type",Object)],oG.prototype,"data",void 0);_.p([_.dq("#lightbox"),_.P("design:type",Object)],oG.prototype,"lightBox",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],oG);
_.a(oG,"ytd-consent-bump-v2-renderer",function(){if(P4x!==void 0)return P4x;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return P4x=q},{mode:1});var M7U;var onp;var AfK;var Ah=function(){return _.C.apply(this,arguments)||this};
_.Y(Ah,_.C);_.g=Ah.prototype;_.g.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&v2f(this.toastManager,this.toastType)};
_.g.open=function(q){this.toast&&(this.ephemeralAction&&_.tz().resolve(_.xm).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=q!=null?q:0,this.toastManager.enqueue(this.toast,q)):this.toast.open())};
_.g.close=function(q){var N;(N=this.toast)==null||N.close();this.toastManager&&q===1&&v2f(this.toastManager,q)};
_.g.refit=function(){var q;(q=this.toast)==null||q.refit()};
_.g.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var q;(q=this.toast)==null||q.close()}};
_.g.setVerticalOffset=function(q){this.toast&&(this.toast.verticalOffset=q,this.toast.fit())};
_.g.computeButtonClass_=function(q){return q?"toast-button":""};
_.g.computeText_=function(q){return _.ao(q)};
_.g.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.c6("toast-opened-changed",this.toastOpened))};
_.g.updateToastOpenedFromBinding=function(q){this.toastOpened=q.detail.value};
_.$H.Object.defineProperties(Ah.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var q,N,b=(q=this.data)==null?void 0:(N=q.actionButton)==null?void 0:N.buttonRenderer;return(b==null?void 0:b.command)||(b==null?void 0:b.serviceEndpoint)||(b==null?void 0:b.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 q=[],N;((N=this.data)==null?0:N.responseText)&&q.push(_.ao(this.data.responseText));var b;((b=this.data)==null?0:b.subText)&&q.push(_.ao(this.data.subText));var y,J;if((y=this.data)==null?0:(J=y.actionButton)==null?0:J.buttonRenderer){var E,F;q.push(((E=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(F=E.accessibilityData)==null?void 0:F.label)||_.ao(this.data.actionButton.buttonRenderer.text))}return q.filter(function(R){return R}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var q,N;return(N=(q=this.toast)==null?void 0:q.opened)!=null?N:!1}}});
Ah.prototype.toastOpenedChangedForBinding=Ah.prototype.toastOpenedChangedForBinding;Ah.prototype.toastOpenedChanged=Ah.prototype.toastOpenedChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Ah.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],Ah.prototype,"ytEventForwardingBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Ah.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],Ah.prototype,"duration",void 0);
_.p([_.U(),_.P("design:type",Number)],Ah.prototype,"toastType",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],Ah.prototype,"useCloseButton",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],Ah.prototype,"closeToastOnActionButtonClick",void 0);_.p([_.U({value:function(){return _.FE("SBOX_INAPPROPRIATE_CANCEL")}}),
_.P("design:type",String)],Ah.prototype,"closeButtonAriaLabel",void 0);_.p([_.U(),_.P("design:type",Boolean)],Ah.prototype,"toastOpened",void 0);_.p([_.U(),_.P("design:type",Boolean)],Ah.prototype,"hasOpened",void 0);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ah.prototype,"command",null);_.p([_.l("labelText","command","duration"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ah.prototype,"ephemeralAction",null);
_.p([_.l("ephemeralAction"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ah.prototype,"hasEphemeralAction",null);_.p([_.dq("#toast"),_.P("design:type",Object)],Ah.prototype,"toast",void 0);_.p([_.U({value:function(){return{style:"call-to-action-inverse"}}}),
_.P("design:type",Object)],Ah.prototype,"buttonOverrides",void 0);_.p([_.U({value:{style:"mono-inverse"}}),_.P("design:type",Object)],Ah.prototype,"closeButtonOverrides",void 0);_.p([_.U({value:function(){return _.tz().resolve(_.$f(_.mE))}}),
_.P("design:type",Object)],Ah.prototype,"toastManager",void 0);_.p([_.l("data.responseText","data.subText","data.actionButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ah.prototype,"labelText",null);_.p([_.FY("toastOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ah.prototype,"toastOpenedChanged",null);
_.p([_.FY("toastOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ah.prototype,"toastOpenedChangedForBinding",null);_.p([_.Ok({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Ah);
_.a(Ah,"yt-notification-action-renderer",function(){if(AfK===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;onp===void 0&&(onp=document.createElement("template"));var y=onp;b.call(N,y.content.cloneNode(!0),q.content.firstChild);AfK=q}q=AfK;return q},{mode:2});var e1=function(){var q=_.C.apply(this,arguments)||this;q.duration=4E3;q.downloadingCount=0;q.downloadedCount=0;q.downloadingOnlySmartDownloads=!1;q.sessionTotalDownloads=0;q.sessionDownloaded=0;q.previousSessionsDownloaded=0;q.totalDownloadPercentage=0;q.currentDownloadProgress=0;q.currentDownloadPercentage=0;q.isLeaderTab=!0;q.isFullScreen=!1;q.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};q.boundBeforeUnload=function(N){q.isLeaderTab&&q.downloadingCount>0&&(N.preventDefault(),
N.returnValue=!0)};
return q};
_.Y(e1,_.C);_.g=e1.prototype;
_.g.open=function(){this.updateDownloadState();if(this.data){var q=this.sessionDownloaded+1,N=this.sessionTotalDownloads>1?_.FE("VIDEOS_DOWNLOADING_RATIO",{downloaded:q.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+q+"/"+this.sessionTotalDownloads):_.FE("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(N=this.sessionTotalDownloads>1?_.FE("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:q.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
q+"/"+this.sessionTotalDownloads):_.FE("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));q=this.isLeaderTab?_.FE("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.ao(this.data.responseText)!==N||_.ao(this.data.subText)!==q)this.set("data.responseText",_.nD(N)),this.set("data.subText",_.nD(q)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.g.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.g.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.g.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.g.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var q=this.downloadedCount-this.previousSessionsDownloaded;q<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-q);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.g.handleFullscreenChange=function(q){(this.isFullScreen=q)||this.updatePopup()};
e1.prototype.updateCurrentDownloadProgress=e1.prototype.updateCurrentDownloadProgress;e1.prototype.updatePopup=e1.prototype.updatePopup;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],e1.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],e1.prototype,"ytEventForwardingBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],e1.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],e1.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],e1.prototype,"duration",void 0);_.p([_.U({selector:function(q){return _.n6d(q.entities).length}}),
_.P("design:type",Object)],e1.prototype,"downloadingCount",void 0);_.p([_.U({selector:CqA}),_.P("design:type",Object)],e1.prototype,"downloadedCount",void 0);_.p([_.U({selector:function(q){var N=_.n6d(q.entities);return fdc(q.entities,N)}}),
_.P("design:type",Object)],e1.prototype,"downloadingOnlySmartDownloads",void 0);_.p([_.U(),_.P("design:type",Object)],e1.prototype,"sessionTotalDownloads",void 0);_.p([_.U(),_.P("design:type",Object)],e1.prototype,"sessionDownloaded",void 0);_.p([_.U(),_.P("design:type",Object)],e1.prototype,"previousSessionsDownloaded",void 0);_.p([_.U(),_.P("design:type",Object)],e1.prototype,"totalDownloadPercentage",void 0);
_.p([_.U({selector:function(q){var N;q=(N=_.n6d(q.entities))!=null?N:[];return q.length>0?_.lGJ(q.slice(-1)):0}}),
_.P("design:type",Object)],e1.prototype,"currentDownloadProgress",void 0);_.p([_.U(),_.P("design:type",Object)],e1.prototype,"currentDownloadPercentage",void 0);_.p([_.U({selector:_.pQh}),_.P("design:type",Object)],e1.prototype,"isLeaderTab",void 0);_.p([_.dq("yt-notification-action-renderer"),_.P("design:type",Object)],e1.prototype,"notificationActionRenderer",void 0);
_.p([_.$9("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],e1.prototype,"updatePopup",null);_.p([_.$9("currentDownloadProgress"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],e1.prototype,"updateCurrentDownloadProgress",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],e1);
_.a(e1,"ytd-video-download-toast-renderer",function(){if(M7U!==void 0)return M7U;var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return M7U=q},{mode:1});var eAd;var BXU;var Bz=function(){return _.C.apply(this,arguments)||this};
_.Y(Bz,_.C);Bz.prototype.computeIsRedLogo=function(q,N){!q&&N&&(q=N);return q==="YOUTUBE_RED_LOGO"||q==="YOUTUBE_PREMIUM_LOGO"};
Bz.prototype.computeLogoName=function(q){q=this.componentBehavior.computeIcon_(q);return q===""?"yt-logos-ext:yt-logo-updated":q};
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Bz.prototype,"componentBehavior",void 0);_.p([_.U({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.P("design:type",Boolean)],Bz.prototype,"isRedLogo",void 0);_.p([_.U({computed:"computeLogoName(data)"}),_.P("design:type",String)],Bz.prototype,"logoName",void 0);_.p([_.U({value:{}}),_.P("design:type",Object)],Bz.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Object)],Bz.prototype,"logoType",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-logo"})],Bz);
_.a(Bz,"ytd-logo",function(){if(BXU!==void 0)return BXU;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return BXU=q},{mode:_.Am("kevlar_poly_si_batch_j074")?1:2});var Hz=function(){var q=_.C.apply(this,arguments)||this;q.animationRef={};return q};
_.Y(Hz,_.C);_.g=Hz.prototype;_.g.attached=function(){document.addEventListener("yt-navigate-finish",_.gq(this,this.logYoodle))};
_.g.detached=function(){document.removeEventListener("yt-navigate-finish",_.gq(this,this.logYoodle))};
_.g.logYoodle=function(){var q,N;if((q=this.data)==null?0:(N=q.loggingDirectives)==null?0:N.trackingParams)this.ytRendererBehavior.markDirty(),_.FR().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.g.computeHideImg=function(q,N){return!!q||!!N};
_.g.computeHideYtdLogo=function(q,N){return!q||!!N};
_.g.computeHideLottie=function(q){return!q};
_.g.computeIsRedLogo=function(q){return q==="YOUTUBE_RED_LOGO"||q==="YOUTUBE_PREMIUM_LOGO"};
_.g.renderLogoEntity=function(){var q=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),N=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),b=this.getLogoTitleText(this.data),y=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==q&&(this.url=q);this.animatedUrl!==N&&(this.animatedUrl=N);this.logoTitleText!==b&&(this.logoTitleText=b);this.lottieUrl!==y&&(this.lottieUrl=y,this.lottiePlayerProps=this.computeLottiePlayerProps(y))};
_.g.getSanitizedThumbnail=function(q){return q&&q.thumbnails?_.p9n(q.thumbnails,122)||"":""};
_.g.getThumbnailUrl=function(q,N){if(!N)return"";var b,y;q=q?(b=N.darkThemeLogo)==null?void 0:b.thumbnail:(y=N.lightThemeLogo)==null?void 0:y.thumbnail;return this.getSanitizedThumbnail(q)};
_.g.getAnimatedThumbnailUrl=function(q,N){return N?this.getSanitizedThumbnail(q?N.darkThemeAnimatedLogo:N.lightThemeAnimatedLogo):""};
_.g.getLogoTitleText=function(q){if(q)return _.ao(q.tooltipText)};
_.g.computeLogoIcon=function(q,N){if(N){var b,y;return q?(b=N.darkThemeLogo)==null?void 0:b.icon:(y=N.lightThemeLogo)==null?void 0:y.icon}};
_.g.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.g.getLottieUrl=function(q,N){var b,y,J,E;return q?N==null?void 0:(b=N.darkThemeLogo)==null?void 0:(y=b.lottieAnimation)==null?void 0:y.url:N==null?void 0:(J=N.lightThemeLogo)==null?void 0:(E=J.lottieAnimation)==null?void 0:E.url};
_.g.computeLottiePlayerProps=function(q){if(q){var N;if((N=this.animationRef)==null?0:N.lottieEl){var b;(b=this.animationRef)==null||b.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:q,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.g.onLottieError=function(){this.data&&this.lottieUrl&&_.e2(this.hostElement,"yoodle-error")};
_.g.onImgError=function(){this.data&&!this.lottieUrl&&_.e2(this.hostElement,"yoodle-error")};
Hz.prototype.playAnimation=Hz.prototype.playAnimation;Hz.prototype.renderLogoEntity=Hz.prototype.renderLogoEntity;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Hz.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Hz.prototype,"data",void 0);_.p([_.U({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.P("design:type",Boolean)],Hz.prototype,"hideImg",void 0);
_.p([_.U({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.P("design:type",Boolean)],Hz.prototype,"hideYtdLogo",void 0);_.p([_.U({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.P("design:type",Boolean)],Hz.prototype,"hideLottie",void 0);_.p([_.U({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.P("design:type",Boolean)],Hz.prototype,"isRedLogo",void 0);
_.p([_.U(),_.P("design:type",Boolean)],Hz.prototype,"useDarkThemeYoodle",void 0);_.p([_.U(),_.P("design:type",String)],Hz.prototype,"url",void 0);_.p([_.U(),_.P("design:type",String)],Hz.prototype,"animatedUrl",void 0);_.p([_.U(),_.P("design:type",String)],Hz.prototype,"logoTitleText",void 0);_.p([_.U({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.P("design:type",Object)],Hz.prototype,"logoIcon",void 0);_.p([_.U(),_.P("design:type",Object)],Hz.prototype,"logoType",void 0);
_.p([_.U(),_.P("design:type",String)],Hz.prototype,"lottieUrl",void 0);_.p([_.U(),_.P("design:type",Object)],Hz.prototype,"lottiePlayerProps",void 0);_.p([_.U(),_.P("design:type",Object)],Hz.prototype,"animationRef",void 0);_.p([_.FY("data"),_.FY("useDarkThemeYoodle"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Hz.prototype,"renderLogoEntity",null);
_.p([_.ZP("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Hz.prototype,"playAnimation",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Hz);
_.a(Hz,"ytd-yoodle-renderer",function(){if(eAd!==void 0)return eAd;var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return eAd=q},{mode:_.Am("kevlar_poly_si_batch_j074")?1:2});var HWU;var q9W;var NSx=_.U$.currentPageTypeSelector,bXU=_.U$.currentPageSubTypeSelector,q_=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return q};
_.Y(q_,_.C);_.g=q_.prototype;_.g.onYoodleError=function(){_.x("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.g.computeLogoName=function(q){q=this.componentBehavior.computeIcon_(q);return q===""?"yt-logos-ext:yt-logo-updated":q};
_.g.computeTitle=function(q,N,b){return b&&(N==null?0:N.tooltipText)?_.ao(N.tooltipText):_.ao(q)};
_.g.computeAriaLabel=function(q,N,b){return b&&(N==null?0:N.tooltipText)?_.ao(q):""};
_.g.computeShowYoodle=function(q,N,b){return!q||!N&&!!b&&!_.nM.isEmpty(b)};
_.g.onNavigateHomeAction=function(){if(_.x("kevlar_miniplayer_navigate_home_from_app_killswitch")){var q;(q=_.ee(this.hostElement).querySelector(".yt-simple-endpoint"))==null||q.click()}};
_.g.computeLogoHref=function(q,N,b){var y;(b==null?0:b.onTapCommand)?y=this.componentBehavior.computeHref_(b.onTapCommand):q&&(y=this.componentBehavior.computeHref_(q));return y?y:N};
_.g.computeCommand=function(q,N){return(N==null?void 0:N.onTapCommand)||q};
_.g.getEndpointForm=function(){if(_.x("kevlar_topbar_disable_cache_only_home")){var q=_.tz().resolve(_.eU),N=NSx(q.getState())||"";q=bXU(q.getState())||"";return{disableCache:N==="ytd-browse"&&q==="home"}}return{disableCache:!0}};
q_.prototype.onYoodleError=q_.prototype.onYoodleError;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],q_.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],q_.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],q_.prototype,"componentBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],q_.prototype,"ytdReduxBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],q_.prototype,"data",void 0);_.p([_.U(),_.P("design:type",String)],q_.prototype,"countryCode",void 0);_.p([_.U({selectorArgs:["data.overrideEntityKey"],selector:function(q,N){return _.Ji(q.entities,"logoEntity",N)}}),
_.P("design:type",Object)],q_.prototype,"logoEntity",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.P("design:type",Boolean)],q_.prototype,"showYoodle",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],q_.prototype,"yoodleError",void 0);_.p([_.U({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.P("design:type",String)],q_.prototype,"titleText",void 0);
_.p([_.U({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.P("design:type",String)],q_.prototype,"ariaLabelText",void 0);_.p([_.U({value:"/"}),_.P("design:type",String)],q_.prototype,"defaultEndpointUrl",void 0);_.p([_.U({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.P("design:type",String)],q_.prototype,"endpointUrl",void 0);
_.p([_.U({computed:"computeCommand(data.endpoint, logoEntity)"}),_.P("design:type",String)],q_.prototype,"command",void 0);_.p([_.U(),_.P("design:type",Object)],q_.prototype,"logoType",void 0);_.p([_.U({}),_.P("design:type",Boolean)],q_.prototype,"useDarkThemeYoodle",void 0);_.p([_.ZP("yoodle-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],q_.prototype,"onYoodleError",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],q_);
_.a(q_,"ytd-topbar-logo-renderer",function(){if(q9W!==void 0)return q9W;var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return q9W=q},{mode:_.Am("kevlar_poly_si_batch_j027")?1:2});var yoU=0;var JoW=_.S8.SEARCH_APPEND_LABEL,Ejd=_.S8.SUGGESTION_NEW_VIDEOS_TEXT,gjW=_.S8.SUGGESTION_THUMBNAIL_LABEL,ZXA=_.S8.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,FLX=_.n(function(q){function N(JB){var XA,LU;return _.d(function(uC){if(uC.nextAddress==1)return XA=new Request(JB),_.Yi(uC,2),uC.yield(fetch(XA,{credentials:"include"}),4);if(uC.nextAddress!=2)return Fd(!0),_.Ea(uC,0);LU=_.K7(uC);_.M6(LU);_.hj(uC)})}
var b=q.isHighlighted;var y=q.suggestion;var J=q.onClickCallback;var E=q.onHoverUpdateCallback;var F=q.labels;var R=q.queryBuilderFunction;var c=q.onRemoveCallback;var z=q.suggestionIndex;var m=q.generateUniqueId;var r=q.highlightedId;var X=q.useScrollMargin;var V=q.isKeyboardMode;var G=null,w=null,D=null,k=_.dI("div"),f=_.dI("span");q=_.Z(_.QS(!1,void 0,"LafNkf"));var L=q.next().value,S=q.next().value,W=_.cK("a",function(JB){JB&&_.V_(237477,JB,w,function(XA){w=XA})}),M=_.cK("button",function(JB){JB&&
_.V_(237477,JB,w,function(XA){w=XA})}),qe=_.cK("div",function(JB){JB&&_.V_(281939,JB,D,function(XA){D=XA})}),RJ=_.y0(function(JB){if((JB==null?void 0:JB.button)===2)return JB.preventDefault(),!1;
var XA=_.Oe();XA&&G&&_.a5(XA,G,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var LU;J(JB,y().text,y().index,y().entityMid,JB==null?void 0:(LU=JB.detail)==null?void 0:LU.wasSelectedByKeyboard);return!1}),tZ=function(){return y().type===35},wA=function(){return _.x("desktop_enable_single_suggestion_highlight")},rA=function(){return _.VX("desktop_suggestions_panel_row_height")||0},xD=function(){var JB;
return _.x("desktop_enable_new_video_metadata")&&((JB=y())==null?void 0:JB.hasNewVideo)===!0},IJ=function(){return _.x("desktop_enable_visual_suggest")},sJ=function(){return _.x("desktop_enable_entity_suggest")&&hAN(y())},Sn=function(){return y().entitySubtitle},YE=function(){return wA()?(b==null?void 0:b())||ej()&&!(V==null?0:V()):(b==null?void 0:b())||ej()},xE=function(){var JB=_.M7("SBOX_SETTINGS");
return tZ()&&!(JB==null?0:JB.HIDE_REMOVE_LINK)},qv=function(){return klc(y(),{useEntityName:sJ()})},mM,Ox=!((mM=_.tz().resolve(_.$f(_.ft)))==null||!mM()),h4=function(){return tZ()?_.x("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},QC=function(){return F==null?void 0:F().SUGGESTION_DISMISS_LABEL},rp=function(){return F==null?void 0:F().SUGGESTION_DISMISSED_LABEL};
q=_.Z(_.QS(!1,void 0,"JyfUlf"));mM=q.next().value;var Fd=q.next().value;q=_.Z(_.QS(!1,void 0,"QKfAGe"));var yF=q.next().value,vR=q.next().value,ej=yF,Go=_.y0(function(){R(f.value.innerText);return!1}),qN=_.y0(function(JB){JB.preventDefault();
return!1}),O5=_.y0(function(JB){var XA=y().text,LU=_.M7("SBOX_SETTINGS"),uC="https://"+(LU.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
uC+="&delq="+encodeURIComponent(XA);(XA=LU==null?void 0:LU.PSUGGEST_TOKEN)&&(uC+="&tok="+XA);(LU=LU==null?void 0:LU.SESSION_INDEX)&&(uC+="&authuser="+LU);N(uC);JB.preventDefault();(JB=_.Oe())&&w&&_.a5(JB,w,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");c(z==null?void 0:z());return!1}),p1=_.y0(function(){if(wA()&&(V==null?0:V()))return!1;
vR(!0);E(!0);return!1}),$E=_.y0(function(){vR(!1);
E(!1);return!1}),t4=_.y0(function(){S(!0);
return!1}),gp=_.y0(function(){S(!1);
return!1}),oJ=_.y0(function(JB){JB.preventDefault();
if(y().entityThumbnailAttributionUrl){D&&_.UM(_.FR(),D);var XA=y().entityThumbnailAttributionUrl;JB=y().entityName;var LU={dismissDialogEndpoint:{}};XA={commandExecutorCommand:{commands:[LU,{urlEndpoint:{url:XA,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:XA}}}]}};LU={buttonViewModel:{title:_.FE("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:LU}}};XA={buttonViewModel:{title:_.FE("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:XA}}};JB={dialogHeaderViewModel:{headline:{content:JB!=null?JB:_.FE("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var uC={basicContentViewModel:{paragraphs:[{text:{content:_.FE("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};JB={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:JB,footer:{panelFooterViewModel:{primaryButton:XA,
secondaryButton:LU,shouldHideDivider:!0}},content:uC}}}}};_.tz().resolve(_.rO).resolveCommand(JB)}return!1});
q=_.Z(_.QS("",void 0,"MvIBn"));var bB=q.next().value,tB=q.next().value;_.SI(function(){xE()&&tB(m==null?void 0:m(z==null?void 0:z()));k.value&&_.V_(12453,k.value,G,function(JB){G=JB})});
return _.u(_.t,{cond:mM,then:function(){var JB={};return _.u("div",{class:_.NO("ytSuggestionComponentRemovedText",(JB.ytSuggestionComponentLargerRemovedText=function(){return IJ()},JB)),
style:function(){return rA()>0?"height: "+rA()+"px;":""},
role:"button"},rp)},
else:function(){var JB={},XA={};return _.u("div",{class:_.NO("ytSuggestionComponentSuggestion",(JB.ytSuggestionComponentSuggestionHover=function(){return!wA()},JB.ytSuggestionComponentHighlighted=YE,JB.ytSuggestionComponentPersonalizedSuggestion=tZ,JB.ytSuggestionComponentMweb=!1,JB.ytSuggestionComponentLargerSuggestion=function(){return xD()||IJ()},JB.ytSuggestionComponentThumbnailSuggestion=function(){return IJ()},JB.ytSuggestionComponentRoundedSuggestion=function(){return _.x("desktop_enable_scrollable_suggestions_panel")&&
_.x("desktop_enable_suggestions_panel_padding")},JB.ytSuggestionComponentThumbnailPadding=function(){return IJ()&&!tZ()},JB)),
style:function(){return rA()>0?"height: "+rA()+"px;":""},
role:"presentation","on:mousedown":RJ,"on:mouseover":p1,"on:mouseout":$E,el:k},_.u("div",{class:_.NO("ytSuggestionComponentText",(XA.ytSuggestionComponentScrollMargin=X,XA)),"aria-label":function(){return xD()?y().text+" "+Ejd:y().text},
id:function(){return m==null?void 0:m(z==null?void 0:z())},
"on:mousedown":RJ,role:"option"},_.u(_.t,{cond:function(){return y().type!==33},
then:function(){return _.u(_.FQ,{icon:h4,className:"ytSuggestionComponentIcon"})}}),_.u("div",{class:"ytSuggestionComponentLeftContainer"},_.u("span",{el:f,
role:"button",tabindex:0},_.u(_.Tf,{each:qv},function(LU){return LU.bold?_.u("span",{class:"ytSuggestionComponentBold"},LU.text):_.u("span",null,LU.text)})),_.u(_.t,{cond:function(){return sJ()&&!!y().entitySubtitle||xD()},
then:function(){return _.u("div",{class:"ytSuggestionComponentMetadataContainer"},_.u(_.t,{cond:function(){return sJ()&&!!y().entitySubtitle},
then:function(){return _.u("div",{class:"ytSuggestionComponentEntitySubtitle"},Sn)}}),_.u(_.t,{cond:function(){return xD()},
then:function(){return _.u("div",{class:"ytSuggestionComponentNewVideoContainer"},_.u("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.u("div",{class:"ytSuggestionComponentNewVideoText"},Ejd))}}))}}))),_.u("div",{class:"ytSuggestionComponentRightContainer"},_.u(_.t,{cond:function(){return IJ()&&y().visualSuggestUrl!==void 0},
then:function(){var LU={};return _.u("div",{class:"ytSuggestionComponentThumbnailContainer"},_.u("img",{"aria-label":gjW,class:_.NO("ytSuggestionComponentVisualSuggestThumbnail",(LU.ytSuggestionComponentCircularFrame=function(){return sJ()&&y().subtypes.includes(790)},LU.ytSuggestionComponentEntitySuggestThumbnail=function(){return sJ()},LU)),
src:function(){return y().visualSuggestUrl}}),_.u(_.t,{cond:function(){return sJ()&&!!y().entityThumbnailAttributionUrl},
then:function(){var uC={};return _.u("span",{title:ZXA,role:"tooltip"},_.u("div",{el:qe,"on:mouseover":t4,"on:mouseout":gp,"on:mousedown":oJ,class:_.NO("ytSuggestionComponentThumbnailOverlay",(uC.ytSuggestionComponentThumbnailOverlayHidden=function(){return!L()},uC))},_.u(_.FQ,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.u(_.sw,null,_.u(_.CI,{when:function(){return IJ()&&xE()}},function(){var LU={};
return _.u("button",{class:_.NO("ytSuggestionComponentRemoveLinkClearButton",(LU.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return bB()&&bB()===(r==null?void 0:r())},LU.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!YE()},LU)),
el:M,"on:mousedown":O5,"aria-label":QC,id:function(){return bB()}},_.u(_.FQ,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.u(_.CI,{when:function(){return!(IJ()&&y().visualSuggestUrl!==void 0)&&xE()}},function(){var LU={};
return _.u("a",{class:_.NO("ytSuggestionComponentRemoveLink",(LU.ytSuggestionComponentRemoveLinkDark=Ox,LU.ytSuggestionComponentRemoveLinkSelected=function(){return bB()&&bB()===(r==null?void 0:r())},LU)),
el:W,"on:mousedown":O5,"aria-label":QC,tabindex:0,role:"button",id:function(){return bB()}},QC)}),_.u(_.CI,{when:function(){return!1}},function(){return _.u("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Go,"on:mousedown":qN,role:"button","aria-label":JoW},_.u(_.FQ,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"zj");var RmC=_.Tt(["//www.google.com/textinputassistant/","/","_tia.js"]),duB=_.n(function(){return _.u("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.u("button",{class:"ytdTextInputAssistantButton","on:click":_.y0(function(){Inf().inputMethodsTracker.add(3);var q,N=(q=_.M7("SBOX_SETTINGS"))==null?void 0:q.REQUEST_LANGUAGE;if(N)return _.kU(_.Xe(RmC,14,N)),!1})},_.u("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Aj");var cod=function(){this.cache=new Map},ukA=function(q){for(var N=_.Z(q.cache.entries()),b=N.next();!b.done;b=N.next()){var y=_.Z(b.value);
b=y.next().value;y=y.next().value;y.suggestions.some(function(J){return J.type===35})&&q.cache.delete(b)}};var zmp=_.S8.SEARCH,$uA=_.S8.SEARCH_CLEAR_LABEL,tya=new _.Jw("FAKE_SUGGEST_RESPONSE"),muf=_.n(function(q){function N(){p1||(p1=setTimeout(function(){t4()},1E3))}
function b(lT,wx,SX){if(lT.trim()){O5=lT;_.PC("REFINEMENTS_TUPLE",void 0);Go=!0;var WZ;wx=nnW(rp,wx);var VF=(WZ=q.searchEndpoint)==null?void 0:WZ.call(q);_.yxA(lT,wx,VF,mM.value.value,SX);t4();mM.value.value=lT;mM.value.blur();rp.reset()}}
function y(lT){return _.d(function(wx){return wx.return(new Promise(function(SX){var WZ=new XMLHttpRequest;WZ.open("GET",Qhf(lT),!0);WZ.withCredentials=!0;var VF=_.M7("SBOX_SETTINGS");(VF==null?0:VF.SEND_VISITOR_DATA)&&WZ.setRequestHeader("X-Goog-Visitor-Id",VF==null?void 0:VF.VISITOR_DATA);WZ.onload=function(){SX(WZ.responseText)};
WZ.onerror=function(){_.M6(Error("Ll"));SX(null)};
setTimeout(function(){WZ.abort()},1E4);
WZ.send(null)}))})}
function J(lT){var wx,SX,WZ,VF;return _.d(function(oW){switch(oW.nextAddress){case 1:return wx={credentials:"include",headers:YKC()},window.AbortController&&(SX=new AbortController,setTimeout(function(){SX.abort("ytsbox-suggest-timeout")},1E4),wx.signal=SX.signal),_.Yi(oW,2),oW.yield(fetch(Qhf(lT),wx),4);
case 4:WZ=oW.yieldResult.text();_.Ea(oW,3);break;case 2:return VF=_.K7(oW),VF!=="ytsbox-abort-last"&&VF!=="ytsbox-suggest-timeout"&&_.M6(VF),oW.return(null);case 3:return oW.return(WZ)}})}
function E(lT){var wx,SX,WZ;return _.d(function(VF){switch(VF.nextAddress){case 1:if(wx=_.tz().resolve(_.$f(tya)))return VF.return(wx);SX=Date.now();N();return _.x("yt_searchbox_xhr")?VF.yield(y(lT),5):VF.yield(J(lT),4);case 4:WZ=VF.yieldResult;VF.jumpTo(3);break;case 5:WZ=VF.yieldResult;case 3:if(WZ){p1&&(clearTimeout(p1),p1=null);var oW=rp,oe=SX,Lc=lT.query.length===0;oe=Date.now()-oe;Lc?oW.zeroPrefixRoundTripTime=oe:(oW.JSC$21085_totalRoundTripTime+=oe,oW.maxRoundTripTime=Math.max(oW.maxRoundTripTime,
oe),Lc=Math.floor(oe/100),Lc>=anN.length?++oW.roundTripTimeHistogram[9]:++oW.roundTripTimeHistogram[anN[Lc]])}return VF.return(WZ)}})}
function F(lT){var wx,SX,WZ;return _.d(function(VF){if(VF.nextAddress==1)return(wx=QC.cache.get(GlU(lT)))?VF.return(wx):VF.yield(E(lT),2);SX=VF.yieldResult;if(SX===null)return VF.return(null);WZ=new UGf(SX);lT.query.length===0&&WZ.suggestions.length===0||QC.cache.set(GlU(lT),WZ);return VF.return(WZ)})}
function R(lT){var wx,SX;return _.d(function(WZ){if(WZ.nextAddress==1){qN=!1;var VF=O5;VF=_.nT()==="search"?(_.HY(location.href,"search_query")||_.HY(location.href,"q"))===VF:!1;wx=new vnx(lT,VF?O5:null);return WZ.yield(F(wx),2)}SX=WZ.yieldResult;if(SX===null)return WZ.return();wx.query.length===0&&(rp.zeroPrefixSuggestionCount=SX.suggestions.length);if(wx.id<=$E)return rp.outOfSyncResponseCount++,WZ.return();if(document.activeElement!==mM.value)return WZ.return();$E=wx.id;var oW=rp,oe=SX.rawResponse[2]||
{};oW.experimentTriggeredBeforeFinal||(oW.experimentTriggeredBeforeFinal=oW.experimentTriggeredFinal);oW.experimentTriggeredFinal=!!oe.e;rp.updateSuggestions(SX.suggestions);D(-1);Sn([]);SX.suggestions!==V()&&X8(SX.suggestions.length);G(SX.suggestions);RJ(SX.suggestions.length>0&&SX.suggestions[0].type===33);h4&&(h4.hidden=SX.suggestions.length===0,qe()?(h4.style.minWidth="",oW=h4.style,oe=(VF=V()[0])==null?void 0:VF.ignoredPrefix,oW.marginLeft=(oe?Math.min(oe.length*6,Ox.value.offsetWidth):0).toString()+
"px"):(h4.style.minWidth=Ox.value.offsetWidth+"px",h4.style.marginLeft="0"),Wx());_.hj(WZ)})}
function c(){if(!Go)return!1;var lT=_.M7("REFINEMENTS_TUPLE");return lT?(lT=lT[1].map(function(wx,SX){return new DGK([wx,0,[71]],mM.value.value,SX)}),V()!==lT&&X8(lT.length),Sn([]),G(lT),rp.updateSuggestions(lT),Go=!1,h4.hidden=lT.length===0,qN=lT.length>0,!0):!1}
function z(){var lT=mM.value.value;(typeof lT==="string"||lT instanceof String)&&lT!==""?S(!0):S(!1)}
function m(){if(_.nT()==="search"){var lT=window.location.href;try{var wx=_.HY(lT,"search_query")||_.HY(lT,"q")||""}catch(SX){wx=""}wx&&(mM.value.value=wx,S(!0))}}
var r=_.Z(_.QS([],void 0,"OC8EPc")),X=r.next().value;r=r.next().value;var V=X,G=r;X=_.Z(_.QS(-1,void 0,"t2tVQb"));var w=X.next().value,D=X.next().value;X=_.Z(_.QS(-1,void 0,"v0RZCe"));var k=X.next().value,f=X.next().value;X=_.Z(_.QS(!1,void 0,"rjAnI"));var L=X.next().value,S=X.next().value;X=_.Z(_.QS(!1,void 0,"SyGLvb"));var W=X.next().value,M=X.next().value;r=_.Z(_.QS(!1,void 0,"tL09Cb"));X=r.next().value;r=r.next().value;var qe=X,RJ=r;r=_.Z(_.QS(!1,void 0,"FlH7mc"));X=r.next().value;var tZ=r.next().value;
r=_.Z(_.QS(!1,void 0,"ea3fwe"));var wA=r.next().value,rA=r.next().value;r=_.Z(_.QS(1,void 0,"vSK1xe"));var xD=r.next().value,IJ=r.next().value;r=_.Z(_.QS([],void 0,"ijlw4b"));var sJ=r.next().value,Sn=r.next().value;r=_.Z(_.QS(!1,void 0,"HcRey"));var YE=r.next().value,xE=r.next().value;r=_.x("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var qv=_.dI("yt-searchbox"),mM=_.dI("input"),Ox=_.dI("div"),h4,QC=
new cod,rp=Inf(),Fd=_.tz().resolve(_.$f(_.ft)),yF=function(){var lT;return((lT=q.forceDarkMode)==null?void 0:lT.call(q))||!(Fd==null||!Fd())},vR=function(){return _.x("desktop_enable_scrollable_suggestions_panel")},ej="i"+yoU++,Go=!1,qN=!1,O5="",p1=null,$E=-1,t4=function(){Sn([]);
G([]);RJ(!1);h4&&(h4.hidden=!0);p1&&(clearTimeout(p1),p1=null);D(-1)},gp=function(lT,wx){lT.preventDefault();
xE(!0);h4&&(h4.hidden=!1);var SX=w();lT=V();var WZ=sJ();wx=Jxc(wx);SX+=wx;for(SX>=lT.length?SX=-1:SX<-1&&(SX=lT.length-1);SX!==-1&&(WZ.includes(SX)||SX>=lT.length||SX<0);)SX+=wx,SX>=lT.length&&(SX=-1);D(SX);w()>=0&&(mM.value.value=V()[w()].text,f(0),z(),lT=w(),WZ=k(),(WZ=document.getElementById(bC[lT][WZ]))&&vR()&&(lT===V().length-1?h4.scrollTop=h4.scrollHeight:WZ.scrollIntoView({block:"nearest",inline:"start"})))},oJ=_.y0(function(lT){if(!(lT.relatedTarget instanceof Element&&lT.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){M(!0);
var wx;(wx=q.focusCallback)==null||wx.call(q,!0);c()||(qN?h4.hidden=!1:(_.e2(qv.value,"yt-autonav-pause-focus",{}),R(lT.target.value)))}}),bB=_.y0(function(lT){if(!(lT.relatedTarget instanceof Element&&lT.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){M(!1);
var wx;(wx=q.focusCallback)==null||wx.call(q,!1);h4.scrollTop=0;h4.hidden=!0;_.e2(qv.value,"yt-autonav-pause-blur",{})}}),tB=function(lT){lT=Jxc(lT);
var wx;((wx=bC[w()])==null?0:wx[k()+lT])&&f(k()+lT)},JB=_.y0(function(lT){var wx=lT.target;
switch(lT.keyCode){case 13:lT.preventDefault();var SX;if((SX=bC[w()])==null?0:SX[k()]){var WZ;(WZ=document.getElementById(bC[w()][k()]))==null||WZ.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}lT=lT.shiftKey?4:3;SX=rp;WZ=w();SX.selectedSuggestionIndex=WZ;b(wx.value,lT);break;case 27:h4&&(h4.hidden=!0);break;case 40:gp(lT,40);break;case 38:gp(lT,38);break;case 39:tB(39);break;case 37:tB(37);break;case 229:rp.inputMethodsTracker.add(4);break;default:rp.inputMethodsTracker.add(1),
TXx(rp)}return!1}),XA=_.y0(function(lT){R(lT.target.value);
z();vR()&&h4&&(h4.scrollTop=0);return!1}),LU=_.y0(function(){rp.inputMethodsTracker.add(2);
TXx(rp);return!1});
_.SI(function(){if(h4){rp.reset();if(window.ResizeObserver){var lT=new ResizeObserver(function(){qe()||(h4.style.minWidth=Ox.value.offsetWidth+"px")});
lT.observe(Ox.value);(new ResizeObserver(function(){Wx()})).observe(h4);
_.W1(function(){lT.disconnect()})}m();
window.addEventListener("yt-navigate-finish",m);window.addEventListener("yt-focus-searchbox",function(){mM.value.focus()});
var wx;tZ((wx=_.M7("SBOX_SETTINGS"))==null?void 0:wx.HAS_ON_SCREEN_KEYBOARD)}else _.po(new _.IO("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var uC=_.y0(function(lT){lT.preventDefault();b(mM.value.value,12);return!1}),jc=_.y0(function(lT){lT.preventDefault();
var wx,SX;(wx=mM)==null||(SX=wx.value)==null||SX.focus();var WZ,VF;((WZ=mM)==null?void 0:(VF=WZ.value)==null?void 0:VF.value)!==""&&(mM.value.value="",mM.value.dispatchEvent(new Event("input")));return!1}),L1=_.y0(function(){var lT=aUx(mM.value.value,V().filter(function(wx){return wx.type!==35}).map(function(wx){return{label:wx.text}}));
_.By(qv.value,"yt-open-popup-action",[{openPopupAction:lT},document.body]);return!1}),Of=_.y0(function(){mM.value.focus();
return!1}),Ef=function(lT,wx,SX,WZ,VF){rp.selectedSuggestionIndex=SX;
b(wx,VF?3:1,WZ)},hb=function(lT){mM.value.value=lT;
mM.value.dispatchEvent(new Event("input"));rp.inputMethodsTracker.add(5);TXx(rp,!0)},bC=[[]],CF=function(lT){var wx="searchbox-suggestion"+_.Cp(_.Em);
bC[lT].push(wx);return wx},X8=function(lT){if(V()){bC=[[]];
for(var wx=0;wx<lT;wx++)bC.push([])}},Wx=function(){if(vR()){var lT=h4,wx=lT.scrollTop;
lT=lT.scrollHeight-lT.clientHeight;rA(wx>=lT);wx=Math.abs(lT-wx);wx<=40?IJ(1-(40-wx)/40):IJ(1)}},Mg=function(){return"opacity: "+xD()*100+"%"},KC=_.y0(function(){Wx();
return!1}),nC=_.y0(function(){xE(!1);
return!1}),Me,jj={},Gc={},Uh={},DW={};
return _.u("yt-searchbox",{class:_.NO("ytSearchboxComponentHost",(jj.ytSearchboxComponentMweb=!1,jj.ytSearchboxComponentDesktop=!0,jj["yt-searchbox-filled-query"]=function(){return L()},jj["ytd-masthead"]=function(){return!W()},jj.ytSearchboxComponentHostDark=yF,jj)),
role:"search",el:qv,"client-ve-type":10349},_.u("div",{el:Ox,"on:click":Of,class:_.NO("ytSearchboxComponentInputBox",(Gc.ytSearchboxComponentInputBoxDark=yF,Gc.ytSearchboxComponentInputBoxHasFocus=W,Gc))},_.u("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":uC},_.u(_.t,{cond:W,then:function(){return _.u("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.u(_.FQ,{icon:"SEARCH"}))}}),_.u("input",{el:mM,
class:_.NO("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":ej,"aria-expanded":!((Me=h4)==null?0:Me.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":bB,"on:focus":oJ,"on:input":XA,"on:keydown":JB,"on:paste":LU,placeholder:q.placeholderText,"aria-activedescendant":function(){var lT;return(lT=bC[w()])==null?void 0:lT[k()]},
"aria-autocomplete":"list",role:"combobox"})),_.u(_.t,{cond:X,then:function(){return _.u("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.u(duB,null))}}),_.u(_.t,{cond:L,
then:function(){return _.u("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.u("button",{class:"ytSearchboxComponentClearButton","on:click":jc,"aria-label":q.clearButtonAriaLabel||$uA},_.u(_.FQ,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.u(_.j9,{model:{}})))}})),_.u("button",{class:_.NO("ytSearchboxComponentSearchButton",(Uh.ytSearchboxComponentSearchButtonDark=yF,Uh)),
"on:click":uC,"aria-label":zmp,title:q.placeholderText},_.u(_.FQ,{icon:"SEARCH"})),_.u(_.t,{cond:function(){if(wcf()&&_.x("mweb_voice_search")&&q.voiceSearchButton)return q.voiceSearchButton()},
then:function(lT){var wx={};return _.u("div",{class:_.NO("ytSearchboxComponentVoiceSearchWrapper",(wx.ytSearchboxComponentHideVoiceSearchButton=function(){return L()},wx))},_.u(_.zS,{data:lT},{buttonRenderer:function(SX){return _.u(_.rK,{data:SX.data,
onButtonClickCallback:function(){}})}}))}}),_.u("div",{el:_.ai(function(lT){return void(h4=lT)}),
id:ej,class:_.NO("ytSearchboxComponentSuggestionsContainer",(DW.ytSearchboxComponentSuggestionsContainerDark=yF,DW["yt-searchbox-suggestions-container"]=!1,DW.ytSearchboxComponentSuggestionsContainerScrollable=vR(),DW.ytSearchboxComponentSuggestionsContainerAnimated=r,DW)),"on:scroll":KC,"on:mousemove":nC,role:"listbox",hidden:!0},_.u(_.Tf,{each:V},function(lT,wx){return _.u(FLX,{suggestion:lT,isHighlighted:function(){return wx()===w()},
onClickCallback:Ef,onHoverUpdateCallback:function(SX){if(_.x("desktop_enable_single_suggestion_highlight")){var WZ=wx();SX&&(f(0),D(WZ))}},
onRemoveCallback:function(SX){ukA(QC);SX===void 0||SX<0||sJ().includes(SX)||Sn([].concat(_.a9(sJ()),[SX]))},
labels:q.labels,queryBuilderFunction:hb,suggestionIndex:wx,generateUniqueId:CF,highlightedId:function(){var SX;return(SX=bC[w()])==null?void 0:SX[k()]},
useScrollMargin:vR(),isKeyboardMode:YE})}),_.u(_.t,{cond:function(){return!qe()&&V().find(function(lT){return lT.type!==35})&&_.x("searchbox_reporting")},
then:function(){return _.u("button",{class:"ytSearchboxComponentReportButton","on:mousedown":L1},_.FE("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.u(_.t,{cond:function(){return!wA()&&vR()},
then:function(){return _.u("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.u("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Mg}))}})))},"Cj");
muf.idomCompat={callbacks:{focusCallback:!0}};_.P$(muf,"yt-searchbox",{props:{searchEndpoint:_.F5,placeholderText:_.F5,labels:_.F5,voiceSearchButton:_.F5,focusCallback:_.W$,clearButtonAriaLabel:_.F5,forceDarkMode:_.F5}});var N_=function(){var q=_.C.apply(this,arguments)||this;q.menuButtonTargetId="topbar-guide-menu";q.narrow=!1;q.menuStrings={BACK_ALT_LABEL:_.FE("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.FE("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.FE("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.FE("SBOX_PLACEHOLDER",void 0,"Search")};q.pageDarkTheme=document.documentElement.hasAttribute("dark");q.watchPageScrollTop=0;q.theater=!1;q.fullscreen=!1;q.disableFrostedGlassDuringViewTransition=
!1;q.desktopUnifiedSearchPanelMode=_.x("desktop_enable_unified_search_panel");q.aiCompanionEnabled=_.x("enable_ai_companion");q.ytSearchboxFocused=!1;q.searchboxLabels=_.M7("SBOX_LABELS");q.topbarIsAboveChipbar=!1;q.isDarkThemeForced=!1;q.areGhostCardsHidden=!1;q.guideKeyboardToggle=!1;q.voiceSearchManager=Vfa();q.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};q.setYtSearchboxFocused=function(N){q.ytSearchboxFocused=N};
q.toggleFrostedGlassDuringViewTransition=function(N){q.disableFrostedGlassDuringViewTransition=N};
return q};
_.Y(N_,_.C);_.g=N_.prototype;_.g.computeSimpleText=function(q){return _.ao(q)};
_.g.onDarkChanged=function(){for(var q=_.Z(this.buttons||[]),N=q.next();!N.done;N=q.next())N.value.isOverlay=!!this.dark;q=_.Z(this.buttonRenderers||[]);for(N=q.next();!N.done;N=q.next())N.value.overrides=this.computeButtonOverride()};
_.g.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var q=_.cW(_.dw(),"aa");_.HP(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||q||(this.isDarkThemeForced=this.dark=!0);this.logoType?(q=this.hostElement.querySelector("#masthead-logo"))&&(_.x("polymer_on_demand_shady_dom")?q.setAttribute("slot","masthead-logo-old"):_.lC(q)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.gq(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.gq(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.g.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.gq(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.gq(this,this.onSetTheaterModeEnabled))};
_.g.dataChanged=function(){var q=this.data;q&&(this.voiceEnabled=q.voiceSearchButton?Vfa().isSupported():!1,_.k_4(_.fP(),this.menuButtonTargetId,this.guideButton),q.onReceivedActions&&q.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Nc(this.hostElement,q.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&q&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.HP(this.hostElement,"dark",!1),_.HP(this.hostElement,"theater",!1),
(q=this.hostElement.querySelector("#masthead-logo"))&&(_.x("polymer_on_demand_shady_dom")?q.setAttribute("slot","masthead-logo-old"):_.lC(q))))};
_.g.computeCenterHidden=function(){var q;return this.data&&!((q=this.data.searchbox)==null?0:q.fusionSearchboxRenderer)};
_.g.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.HP(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.g.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.g.onWatchScroll=function(q){this.watchPageScrollTop=q.detail||0;this.updateMastheadBackgroundOpacity()};
_.g.onFullscreenChangeAction=function(q){q||(this.watchPageScrollTop=0);this.fullscreen=q;this.updateMastheadBackgroundOpacity()};
_.g.onSetTheaterModeEnabled=function(q){this.theater=q.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.g.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.g.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.g.setBackgroundOpacity=function(q){q=this.calculateBackgroundOpacity(q);this.background.style.opacity=""+q};
_.g.calculateBackgroundOpacity=function(q){var N=this.theater?.6:0,b=this.hostElement.clientHeight/2;return Math.min(Math.max(q,0),b)/b*(1-N)+N};
_.g.shouldShowCinematicMastHead=function(){var q=_.x("kevlar_watch_grid")&&!_.x("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(q||this.pageDarkTheme)};
_.g.focusGuide=function(){this.guideButton.focus()};
_.g.onGuideToggleTap=function(){_.e2(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.g.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.g.onGuideToggleHover=function(){_.e2(this.hostElement,"yt-guide-hover")};
_.g.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.g.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.g.closeOnOutsideClickCondition=function(q){for(q=_.n9(q);q[0];){var N=q.shift();if(N instanceof Element&&N.id==="kbd")return!1}return!0};
_.g.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.g.pausePlayer=function(){var q;(q=_.Pk())==null||q.pause();this.pauseMiniplayer()};
_.g.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var q;(q=_.tz().resolve(_.l9).getPlayerElement())==null||q.pause()}};
_.g.isMiniplayerActive=function(){return _.tz().resolve(_.l9).isMiniplayerActive()};
_.g.updateNarrowFromBinding=function(q){this.narrow=q.detail.value};
_.g.onYtSendFeedbackAction=function(){_.By(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.g.registerWithViewTransitionManager=function(){Utx(_.tz().resolve(_.p8),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.$H.Object.defineProperties(N_.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.x("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 q;return!!(this.aiCompanionEnabled&&((q=this.data)==null?0:q.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var q;return(q=this.data)==null?void 0:q.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
N_.prototype.narrowChanged=N_.prototype.narrowChanged;N_.prototype.onWatchPageChange=N_.prototype.onWatchPageChange;N_.prototype.onRendererStamperFinished=N_.prototype.onRendererStamperFinished;N_.prototype.dataChanged=N_.prototype.dataChanged;N_.prototype.onDarkChanged=N_.prototype.onDarkChanged;_.p([_.O(_.SQ),_.P("design:type",Object)],N_.prototype,"ironResizableBehavior",void 0);_.p([_.O(_.H9f),_.P("design:type",Object)],N_.prototype,"ytdExpandableInputBehavior",void 0);
_.p([_.O(_.Eb.YtdGuideStateAwareBehavior),_.P("design:type",Object)],N_.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],N_.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],N_.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],N_.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],N_.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.H6),_.P("design:type",Object)],N_.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],N_.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],N_.prototype,"narrow",void 0);_.p([_.U(),_.P("design:type",Object)],N_.prototype,"logoType",void 0);_.p([_.U(),_.P("design:type",Boolean)],N_.prototype,"voiceEnabled",void 0);
_.p([_.U(),_.P("design:type",Object)],N_.prototype,"menuStrings",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],N_.prototype,"dark",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],N_.prototype,"pageDarkTheme",void 0);_.p([_.U(),_.P("design:type",Object)],N_.prototype,"watchPageScrollTop",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.kEZ}),_.P("design:type",Boolean)],N_.prototype,"isWatchPage",void 0);
_.p([_.U({reflectToAttribute:!0,selector:_.UTJ}),_.P("design:type",Boolean)],N_.prototype,"isShortsPage",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],N_.prototype,"theater",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],N_.prototype,"fullscreen",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.TTA}),_.P("design:type",String)],N_.prototype,"frostedGlassMode",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],N_.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],N_.prototype,"aiCompanionEnabled",void 0);_.p([_.U(),_.P("design:type",Object)],N_.prototype,"ytSearchboxFocused",void 0);_.p([_.cH("#buttons > *"),_.P("design:type",Array)],N_.prototype,"buttons",void 0);_.p([_.cH("ytd-button-renderer"),_.P("design:type",Array)],N_.prototype,"buttonRenderers",void 0);
_.p([_.dq("#background"),_.P("design:type",HTMLDivElement)],N_.prototype,"background",void 0);_.p([_.dq("#guide-button"),_.P("design:type",Object)],N_.prototype,"guideButton",void 0);_.p([_.dq("#logo"),_.P("design:type",Object)],N_.prototype,"logo",void 0);_.p([_.U({computed:"computeButtonOverride(dark)"}),_.P("design:type",Object)],N_.prototype,"buttonOverrides",void 0);
_.p([_.$9("dark"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],N_.prototype,"onDarkChanged",null);_.p([_.U({value:function(){return this.onVoiceTap.bind(this)}}),
_.P("design:type",Function)],N_.prototype,"boundOnTapVoiceButton",void 0);_.p([_.U(),_.P("design:type",Object)],N_.prototype,"topbarIsAboveChipbar",void 0);_.p([_.U(),_.P("design:type",String),_.P("design:paramtypes",[])],N_.prototype,"guideIcon",null);_.p([_.l("voiceEnabled"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],N_.prototype,"shouldShowVoiceSearchButton",null);
_.p([_.l("data.aiCompanionButton","aiCompanionEnabled"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],N_.prototype,"shouldShowAiCompanionButton",null);_.p([_.l("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],N_.prototype,"voiceSearchButton",null);_.p([_.l("aiCompanionEnabled"),_.P("design:type",String),_.P("design:paramtypes",[])],N_.prototype,"narrowQuery",null);
_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],N_.prototype,"dataChanged",null);_.p([_.ZP("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],N_.prototype,"onRendererStamperFinished",null);_.p([_.$9("isWatchPage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],N_.prototype,"onWatchPageChange",null);
_.p([_.$9("narrow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],N_.prototype,"narrowChanged",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-masthead"})],N_);
_.a(N_,"ytd-masthead",function(){if(HWU!==void 0)return HWU;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return HWU=q},{mode:_.Am("kevlar_poly_si_batch_j036")?1:2});var rop;var XuC={},VyX={},jqd={},xuN={},vjf=(xuN.OFFLINE=(XuC["publicytnetworkstatus-online"]="BACK_ONLINE",XuC),xuN.ONLINE=(VyX["publicytnetworkstatus-offline"]="OFFLINE",VyX),xuN.BACK_ONLINE=(jqd["publicytnetworkstatus-offline"]="OFFLINE",jqd.TIMER_TRIGGER="ONLINE",jqd),xuN),bV=function(){var q=_.C.apply(this,arguments)||this;q.currentState="ONLINE";q.scheduledJobId=0;q.bannerString="";q.bannerVe=null;q.networkStatusManagerInstance=new _.Jr;return q};
_.Y(bV,_.C);_.g=bV.prototype;_.g.attached=function(){var q=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){q.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){q.stateChangeHandler("publicytnetworkstatus-offline")})};
_.g.detached=function(){var q=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){q.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){q.stateChangeHandler("publicytnetworkstatus-offline")})};
_.g.enterState=function(q){var N=this;this.scheduledJobId&&_.pY.cancelJob(this.scheduledJobId);q==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):q==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.FE("NO_INTERNET_CONNECTION",void 0,"No internet connection")):q==="BACK_ONLINE"&&(this.bannerString=_.FE("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.Ip(_.pY,function(){N.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=q};
_.g.stateChangeHandler=function(q){(q=vjf[this.currentState][q])&&this.enterState(q)};
_.g.logVisibility=function(q){var N=_.Oe();this.createBannerVe(q);N&&this.bannerVe&&(q?_.Tr(N,[this.bannerVe]):_.sY(N,[this.bannerVe]))};
_.g.createBannerVe=function(q){!this.bannerVe&&q&&(this.bannerVe=_.bx(37929),_.k3(_.FR(),this.bannerVe))};
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",String)],bV.prototype,"currentState",void 0);_.p([_.U(),_.P("design:type",Object)],bV.prototype,"scheduledJobId",void 0);_.p([_.U(),_.P("design:type",Object)],bV.prototype,"bannerString",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-network-status-banner"})],bV);
_.a(bV,"ytd-network-status-banner",function(){if(rop!==void 0)return rop;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return rop=
q},{mode:1});var GXX;var yy=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};q.hidden=!0;q.frostedGlass=_.x("web_frosted_glass");return q};
_.Y(yy,_.C);yy.prototype.computeHidden=function(q){return q&&q.status?!1:!0};
yy.prototype.handleUpdatePermissionRoleCommand=function(q){if(q=_.v(q,_.TTx))if(q=_.v(q.renderer,_.Ic4))this.data=q};
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],yy.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],yy.prototype,"componentBehavior",void 0);_.p([_.U({value:!0,computed:"computeHidden(data)"}),_.P("design:type",Object)],yy.prototype,"hidden",void 0);_.p([_.U(),_.P("design:type",Object)],yy.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],yy.prototype,"frostedGlass",void 0);
_.p([_.I({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],yy);
_.a(yy,"ytd-permission-role-bottom-bar-renderer",function(){if(GXX!==void 0)return GXX;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return GXX=q},{mode:1});var Y9K;var Qqx;var E_X={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Jy=function(){return _.C.apply(this,arguments)||this};
_.Y(Jy,_.C);_.g=Jy.prototype;_.g.attached=function(){this.JSC$21203_scroller&&(this.JSC$21203_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21203_scroller.attached&&typeof this.JSC$21203_scroller.attached==="function"&&this.JSC$21203_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(b){b.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var q=_.ee(this.hostElement);q.querySelector("tp-yt-paper-radio-group").selected="";var N=q.querySelector("#reason-text");N&&(N.value="");q.querySelector("#description-text").value=""}};
_.g.canSubmit=function(q,N){_.e2(this.hostElement,"yt-invalidate-popup-tabbables");return!(q&&N)};
_.g.onCancel=function(){_.By(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.g.onSubmit=function(){var q=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(E){return E.active}).map(function(E){return E.innerText.trim()}),N=this.hostElement.querySelector("tp-yt-paper-radio-group"),b=N.selectedItem,y=b.name;
b=b.innerText.trim();var J=N.querySelector("#reason-text");N=void 0;J&&(N=J.value);(J=this.descriptionText.value)&&(J=J.trim());g_A(this.data.searchQuery,q,y,b,J,N);_.By(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.g.sendFormSubmitToast=function(){var q=_.PT(_.FE("SBOX_INAPPROPRIATE_TOAST"));_.By(this.hostElement,"yt-open-popup-action",[q,this])};
_.g.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(q){return q.active})};
_.g.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Jy.prototype.onIronSelect=Jy.prototype.onIronSelect;Jy.prototype.onIronChange=Jy.prototype.onIronChange;Jy.prototype.dataChanged=Jy.prototype.dataChanged;_.p([_.U(),_.P("design:type",Object)],Jy.prototype,"data",void 0);_.p([_.U({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.P("design:type",Boolean)],Jy.prototype,"submitDisabled",void 0);_.p([_.U(),_.P("design:type",Boolean)],Jy.prototype,"suggestionSelected",void 0);
_.p([_.U(),_.P("design:type",Boolean)],Jy.prototype,"catagorySelected",void 0);_.p([_.dq("#scroller"),_.P("design:type",Object)],Jy.prototype,"JSC$21203_scroller",void 0);_.p([_.dq("#description-text"),_.P("design:type",Object)],Jy.prototype,"descriptionText",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jy.prototype,"dataChanged",null);
_.p([_.ZP("iron-change"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jy.prototype,"onIronChange",null);_.p([_.ZP("iron-select"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jy.prototype,"onIronSelect",null);_.p([_.I({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Jy);
_.a(Jy,"ytd-search-suggestion-report-dialog",function(){if(Qqx!==void 0)return Qqx;var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);return Qqx=q},{mode:1});var Ey=function(q){var N=q.openPopupAction;var b=q.target;var y=q.container;var J=q.popupContainerConfig;var E=q.getElement;q=q.removeWhenClosed===void 0?!1:q.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=N;this.target=b;this.container=y;this.popupContainerConfig=J;this.getElement=E;this.JSC$21209_popupConfig=this.popupContainerConfig.JSC$20333_popupConfig[this.openPopupAction.popupType];this.rendererName=(N=this.getName())?_.JOJ(N,evU(this.popupContainerConfig,
N)):"";_.x("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=q);this.createPopup()};
Ey.prototype.updatePopup=function(q){this.openPopupAction=q;this.JSC$21209_popupConfig=this.popupContainerConfig.JSC$20333_popupConfig[this.openPopupAction.popupType];OXa(this);_.x("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
Ey.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var lAU=function(q,N,b){(N=N&&q.JSC$21209_popupConfig.narrowProperties?q.JSC$21209_popupConfig.narrowProperties:q.JSC$21209_popupConfig.properties)&&b!==void 0&&(N.isAriaModal=b);wuB(q,N);q.isRtl()&&wuB(q,q.JSC$21209_popupConfig.rtlProperties);iXK(q)};
Ey.prototype.createPopup=function(){var q=this.JSC$21209_popupConfig.component;if(this.popupContent=KLd(this,this.rendererName)){if(q){this.popup=KLd(this,q);var N=this.popupContent;_.x("web_enable_wrapper_for_cow_component_in_popup")&&(N=document.createElement("div"),N.appendChild(this.popupContent));_.x("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21209_popupConfig.slotName&&N.setAttribute("slot",this.JSC$21209_popupConfig.slotName);q=this.popup;var b=this.container.tagName.toLowerCase(),
y=_.WP(N);_.yYR(_.p9(q),_.MK(N,b,y));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.x("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.ee(this.container).appendChild(this.popup)}};
var OXa=function(q){var N,b,y=(N=q.openPopupAction.accessibilityData)==null?void 0:(b=N.accessibilityData)==null?void 0:b.label;y&&(q.popup.ariaLabel=y);var J;((J=q.popupContent.polymerController)!=null?J:q.popupContent).data=(0,_.nM.unsafeClone)(q.openPopupAction.popup[q.getName()]);q.popupContent.duration=DuA(q);q.popupContent.positionType=q.openPopupAction.position;var E=q.openPopupAction.properties;E&&Object.keys(E).forEach(function(F){q.popupContent[F]=E[F]})},wuB=function(q,N){if(N)for(var b=
_.Z(Object.keys(N)),y=b.next();!y.done;y=b.next())y=y.value,q.popup[y]=N[y]},iXK=function(q){if(q.openPopupAction.position){var N=q.JSC$21209_popupConfig.positionalProperties&&q.JSC$21209_popupConfig.positionalProperties[q.openPopupAction.position],b=q.JSC$21209_popupConfig.rtlPositionalProperties&&q.JSC$21209_popupConfig.rtlPositionalProperties[q.openPopupAction.position];
N=q.isRtl()&&b?b:N;N.shiftedHorizontalOffset&&(b=q.popup.style.display,q.popup.style.display="block",q.popupContent&&q.popup.positionTarget&&q.popupContent.clientWidth>q.popup.positionTarget.clientWidth&&(N.horizontalOffset=q.popup.positionTarget.clientWidth/2-N.shiftedHorizontalOffset),q.popup.style.display=b);wuB(q,N)}},hmK=function(q,N,b){if(N){for(var y=_.Z(Object.keys(N)),J=y.next();!J.done;J=y.next())J=J.value,q.popup.style[J]=N[J];
if(b)for(N=_.Z(Object.keys(b)),y=N.next();!y.done;y=N.next())y=y.value,q.popup.style[y]=b[y]}};
Ey.prototype.getName=function(){return _.LI(this.openPopupAction.popup,"renderer")||_.LI(this.openPopupAction.popup,"dialog")||_.LI(this.openPopupAction.popup,"model")||void 0};
var DuA=function(q){q=q.openPopupAction.durationHintMs;return q===0?q:Math.max(4E3,q||4E3)};
Ey.prototype.isRtl=function(){return _.M7("HTML_DIR")==="rtl"};
var KLd=function(q,N){q=q.getElement(N,q.target);q==null&&_.M6(new _.IO("popup getElement returned null",N));return q};var kXd={};
kXd.YtPopupContainerBehavior=[_.qT.YtComponentBehavior,_.Dc.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.expandToFullWidth=this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.o$(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.A8(this.hostElement)},
closePopup:function(q){var N=this.createCacheKey(void 0,q);this.popups_[N]&&this.handleClosePopupAction_(void 0,q)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.pY.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.pY.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(q){q.opened&&q.keepBelowPlayer&&this.ensurePopupBelowPlayer(q)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var q in this.popups_){var N=this.popups_[q];if(N.popup.scrollAction==="refit"){var b=N.popup.positionTarget.getBoundingClientRect(),y=N.popup;b=b.top;var J=N;if(!J.naturalHeight){J.popup.hidden=!1;J.popup.style.position="fixed";J.popup.style.top="0px";J.popup.style.left="0px";var E=J.popup.getBoundingClientRect();J.naturalHeight=E.bottom-E.top;J.popup.refit()}y.hidden=!(b>=J.naturalHeight+60);N.popupContent.clientHeight===0&&N.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(q){this.popupContainerConfig=q},
handleOpenPopupAction:function(q,N){var b=q.openPopupAction,y=_.tz().resolve(_.$f(_.mE))&&b.popupType==="TOAST";y&&!b.uniqueId&&(b.uniqueId=_.Lh());if(!_.x("popup_container_parent_target_killswitch")){var J;N=(J=this.getParentTarget(N))!=null?J:N}var E=this.ensurePopup_(b,N);return new _.wL(function(F){E.then(function(R){if(!R)return F();this.maybeCreateNarrowMediaQuery_();var c=this.createCacheKey(R.rendererName,R.openPopupAction.uniqueId);if(b.showOncePerUniqueId){if(this.shownPopupKeys_.has(c))return F();
this.shownPopupKeys_.add(c)}c=this.popups_[c];var z=!(!c||!c.openPopupAction.beReused);z=!!b.reusePopup||z;if(R.popup.opened&&!z){y&&!R.openPopupAction.replacePopup||this.handleClosePopupAction_(R.rendererName,R.openPopupAction.uniqueId);z=b.popupType==="DIALOG"&&!_.x("popup_container_dialog_reopen_killswitch");if(!y&&!z&&c&&c.target==N&&!R.openPopupAction.replacePopup)return F();_.ut(R.popup,function(){this.completeOpenPopupAction_(b,N,R);F()}.bind(this))}else R.popup.opened?R.updatePopup(b):this.completeOpenPopupAction_(b,
N,R),F()}.bind(this))}.bind(this))},
getParentTarget:function(q){if(q&&q instanceof HTMLElement)for(var N=_.Z(Object.entries(this.popups_)),b=N.next();!b.done;b=N.next())if(b=_.Z(b.value),b.next(),b=b.next().value,this.popupClosesOnClick(b)&&b.popup.contains(q))return b.target},
popupClosesOnClick:function(q){return q.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(q.rendererName.toUpperCase())},
completeOpenPopupAction_:function(q,N,b){b.updatePopup(q);var y=this.narrowMediaQuery_.queryMatches,J=this.isAriaModal;q=this.expandToFullWidth;b.target=N;var E;N=((E=b.target.polymerController)!=null?E:b.target).popupPositionTarget||b.target;b.JSC$21209_popupConfig.targetContainer&&(N=b.container);b.popup.positionTarget=N;b.popupContent.positionTarget=N;iXK(b);b.JSC$21209_popupConfig.forceFocus&&(b.popupContent.style.outline="none");b.popupContent.tabIndex=-1;b.JSC$21209_popupConfig.narrowProperties&&
(b.popup.style.position="static");b.JSC$21209_popupConfig.preventAutonav&&b.popup.setAttribute("prevent-autonav",!0);b.JSC$21209_popupConfig.forceCloseOnOutsideClick&&b.popup.setAttribute("force-close-on-outside-click",!0);lAU(b,y,J);E={};q&&(E.width="100%");hmK(b,b.JSC$21209_popupConfig.styles,E);b.isRtl()&&hmK(b,b.JSC$21209_popupConfig.rtlStyles,E);if(!b.openPopupAction.shouldStopParentSignal){var F;q=(F=b.target.polymerController)!=null?F:b.target;(b.popupContent.startForwardingEvents||b.popupContainerConfig.forwardingEnabledPopups.has(b.rendererName))&&
q.parentComponent!==b.popupContent&&b.popupContent!==b.target&&b.target!==document.body&&(b.popupContent.startForwardingEvents?b.popupContent.startForwardingEvents(b.popupContainerConfig.forwardedEvents,b.target):(b.JSC$21209_eventForwarder||(b.JSC$21209_eventForwarder=new _.N$(b.popupContent)),b.JSC$21209_eventForwarder.start(b.popupContainerConfig.forwardedEvents,b.target)))}b=b.popup;b.addEventListener("iron-overlay-opened",_.gq(this,this.onPopupIronOverlayOpened_));b.addEventListener("iron-overlay-closed",
_.gq(this,this.onPopupIronOverlayClosed_));b.addEventListener("iron-overlay-canceled",_.gq(this,this.onPopupIronOverlayCanceled_));b.addEventListener("yt-refit",_.gq(this,this.refitPopup_));b.addEventListener("yt-invalidate-popup-tabbables",_.gq(this,this.handleInvalidatePopupTabbables_));b.open()},
getPopupDurationMs_:function(q){return q.durationHintMs===0?q.durationHintMs:Math.max(4E3,q.durationHintMs||4E3)},
handleClosePopupAction_:function(q,N){var b=_.x("web_popup_cache_key_killswitch")||!!N;if(q||b){var y=this.createCacheKey(q,N);q=(q=this.popups_[y])&&q.popup}else q=_.Wwq(_.yG);if(q&&q.close){if(N=_.tz().resolve(_.$f(_.X5)))q.restoreFocusOnClose=N.isKeyBoardInUse();q.close();this.removePopup_(q,y)}},
handleClosePopupCommand_:function(q){q.closePopupCommand&&q.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,q.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(q){var N={},b;for(b in this.popups_)if(N={key$jscomp$1232:N.key$jscomp$1232},N.key$jscomp$1232=b,!q||!q.some(function(E){return function(F){return F==E.key$jscomp$1232}}(N))){var y=this.popups_[N.key$jscomp$1232],J=y.popup;
_.tz().resolve(_.$f(_.mE))&&y.openPopupAction.popupType==="TOAST"||(J&&J.close&&J.close(),this.removePopup_(J,N.key$jscomp$1232))}},
handleClosePopupsAction_:function(q){q.forEach(function(N){var b=this.popups_[N];b&&((b=b.popup)&&b.close&&b.close(),this.removePopup_(b,N))}.bind(this))},
handleGetPopupOpenedAction_:function(q,N){return(N=this.createCacheKey(q,N))&&this.popups_[N]?this.popups_[q].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var q=[],N;for(N in this.popups_){var b=this.popups_[N];b.popup.opened&&q.push(b)}return q},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(q,N){_.x("ytpopup_disable_default_html_caching")&&q&&q.removeWhenClosed&&(_.ee(this.hostElement).removeChild(q),N&&this.popups_[N]&&delete this.popups_[N])},
shouldReusePopup_:function(q){return!(!q||!q.reusePopup)||!(!q||!q.beReused)},
ensurePopup_:function(q,N){this.maybeCreateNarrowMediaQuery_();var b=_.LI(q.popup,"renderer")||_.LI(q.popup,"dialog")||_.LI(q.popup,"model");if(!b)return _.bG();b=_.JOJ(b,evU(this.popupContainerConfig,b));return _.bG(this.getAndMaybeCreatePopup_(q,b,N))},
getAndMaybeCreatePopup_:function(q,N,b){var y=this.createCacheKey(N,q.uniqueId);if(this.popups_[y])return this.popups_[y];q=new Ey({openPopupAction:q,target:b,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(N)});return this.popups_[y]=q},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(q){return _.x("ytpopup_disable_default_html_caching")?q&&q.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",_.gq(this,this.openPopupQueryMatchesChanged_)),_.ee(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(q){q=q.detail.value;for(var N in this.popups_)lAU(this.popups_[N],q)},
onPopupIronOverlayClosed_:function(q){var N=q.currentTarget,b=_.GFJ(N);b=b.length>0?b[0]:N;if(b.is!=="ytd-reel-watch-while-dialog-renderer"||q.target.is!=="tp-yt-iron-dropdown"){q.detail.popup=N;q.detail.popupRenderer=b;var y,J={context:{openingElement:((y=this.popups_[(b==null?void 0:b.is)||""])==null?void 0:y.target)||void 0}};Object.assign(J,q.detail);var E;_.e2((E=b.hostElement)!=null?E:b,"yt-popup-closed",J);N.removeEventListener("yt-refit",_.gq(this,this.refitPopup_));N.removeEventListener("yt-invalidate-popup-tabbables",
_.gq(this,this.handleInvalidatePopupTabbables_));N.removeEventListener("iron-overlay-canceled",_.gq(this,this.onPopupIronOverlayCanceled_));N.removeEventListener("iron-overlay-closed",_.gq(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(N)}},
onPopupIronOverlayCanceled_:function(q,N){var b=q.currentTarget,y=_.GFJ(b);y=y.length>0?y[0]:b;if(y.is!=="ytd-reel-watch-while-dialog-renderer"||q.target.is!=="tp-yt-iron-dropdown"){var J;_.e2((J=y.hostElement)!=null?J:y,"yt-popup-canceled",q.detail);J=N?_.n9(N):null;(!N||["click","tap"].includes(N.type))&&!b.hasAttribute("force-close-on-outside-click")&&b.positionTarget&&J&&J.includes(b.positionTarget)&&q.preventDefault();b.restoreFocusOnClose=_.kT.keyboardEventMatchesKeys(N,"esc")}},
onPopupIronOverlayOpened_:function(q){q=q.currentTarget;var N=_.GFJ(q);N=N.length>0?N[0]:q;var b,y;_.e2((b=N.hostElement)!=null?b:N,"yt-popup-opened",(y=N.hostElement)!=null?y:N);q.keepBelowPlayer&&(this.ensurePopupBelowPlayer(q,!0),this.dynamicallyPositionedElements_.add(q));b=_.tz().resolve(_.$f(_.X5));y=!!N.querySelector("#toast");b&&b.isKeyBoardInUse()&&!y&&(typeof N.focusFirstItem==="function"?N.focusFirstItem():(N=_.n_F(q),N.length&&N[0].focus()));q.removeEventListener("iron-overlay-opened",
_.gq(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(q){q=q.currentTarget;q.refit&&q.refit()},
refitPopups_:function(){for(var q in this.popups_)this.popups_[q].refit()},
handleInvalidatePopupTabbables_:function(q){q=q.currentTarget;q.invalidateTabbables&&q.invalidateTabbables()},
createCacheKey:function(q,N){return _.x("web_popup_cache_key_killswitch")?N?q+"#"+N:q:N?"#"+N:q},
openSheet:function(q,N){var b=q==null?void 0:q.openPopupActionCommand;if(!b&&(q==null?0:q.viewModel)){if(q.sheetPosition)a:switch(q.sheetPosition){case "SHEET_POSITION_RIGHT":b="OPEN_POPUP_POSITION_RIGHT";break a;default:b="OPEN_POPUP_POSITION_UNKNOWN"}else b=void 0;b={openPopupAction:{popup:{sheetViewModel:q.viewModel},popupType:"CONTEXTUAL_SHEET",position:b}}}if(b){var y;this.expandToFullWidth=(y=q==null?void 0:q.expandToFullWidth)!=null?y:!1;this.handleOpenPopupAction(b,N)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var q=this;return _.d(function(N){return N.return(q.handleGetOpenedPopupsAction_().filter(function(b){var y;return((y=b.openPopupAction)==null?void 0:y.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(q,N,b){if(_.x("web_dialog_utils_killswitch")){var y=q==null?void 0:q.openPopupActionCommand,J=(b==null?0:b.ariaLabel)?{accessibilityData:{accessibilityData:{label:b.ariaLabel}}}:void 0;!y&&(q==null?0:q.viewModel)&&(y={openPopupAction:Object.assign({},{popup:{dialogViewModel:q.viewModel},popupType:(b==null?0:b.isModal)?"MODAL":"DIALOG"},J&&J)});y&&this.handleOpenPopupAction(y,N)}else{if(J=q==null?void 0:q.viewModel){var E=b=b===void 0?{}:b;b=E.ariaLabel;J={popup:{dialogViewModel:J},
popupType:E.isModal?"MODAL":"DIALOG"};E={accessibilityData:{label:b}};b&&(J.accessibilityData=E);J={openPopupAction:J}}else J=void 0;if(J=(y=J)!=null?y:q==null?void 0:q.openPopupActionCommand)this.isAriaModal=_.x("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(J,N)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var q=this;return _.d(function(N){return N.return(q.handleGetOpenedPopupsAction_().filter(function(b){var y;return((y=b.openPopupAction)==null?void 0:y.popupType)==="DIALOG"}).length>0)})}}];var UuA;var fAU;var Crc=_.Tt(["about:blank"]),gZ=function(){var q=_.C.apply(this,arguments)||this;q.isMuted=!1;q.pageLoadTimeoutId=void 0;return q};
_.Y(gZ,_.C);_.g=gZ.prototype;_.g.dataChanged=function(){var q=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var N=this.data.url,b=_.Pv(N);_.x("enable_yt_ata_iframe_authuser")?(b=_.Pv(N),_.Nn(this.iframe,ZGd(b))):_.Nn(this.iframe,b);this.pageLoadTimeoutId=_.Ip(_.ja(),function(){return void q.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.bu({destination:window,iframe:this.iframe,origin:_.Rpj(b.toString()),channelName:"ataiframe",onMessage:_.mBo(K$C,function(y){D8a(y.data)?(y=_.eX(y.data,1,_.FA,_.$N()),y.length!==1?_.M6(Error("Ml")):(y=y[0],y===3?(q.isMuted=!0,q.logStateChanged({adMuteRequested:!0})):y===1&&q.close())):_.M6(Error("Nl"))}),
onEstablished:function(){q.cancelPageLoadTimeout();q.logStateChanged({pageLoadSucceeded:!0})}})}};
_.g.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.ja().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.g.logStateChanged=function(q){var N;if((N=this.data)==null?0:N.trackingParams)q={adsClientData:{aboutThisAdData:q}},_.FR().stateChanged(this.data.trackingParams,q)};
_.g.close=function(){_.By(this.hostElement,"yt-close-popup-action",[this.is])};
_.g.handlesPopupClosed=function(q,N){var b=this,y,J;return _.d(function(E){if(E.nextAddress==1)return _.M7("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.By(b.hostElement,"on-about-this-ad-popup-closed",[b.isMuted,N]),E.jumpTo(0)):q&&FwX(q)?E.yield(RLU(q),4):(b.isMuted&&_.By(b.hostElement,"yt-mute-ad-action",[b.is,b]),E.jumpTo(0));if(y=E.yieldResult){var F=J=new _.ei(y),R=b.isMuted;F.getOptions().includes("onAboutThisAdPopupClosed")?_.jGR(F,"onAboutThisAdPopupClosed",{isMuted:R,layoutId:N}):_.fT("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.hj(E)})};
_.g.onPopupClosed=function(q){var N=this,b,y;return _.d(function(J){b=_.Xe(Crc);_.Nn(N.iframe,b);N.cancelPageLoadTimeout();if(!N.data)return J.jumpTo(0);N.ytRendererBehavior.markDirty();y=q.detail.context.openingElement;return J.yield(N.handlesPopupClosed(y,N.data.layoutId),0)})};
_.g.detached=function(){this.cancelPageLoadTimeout()};
_.g.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
gZ.prototype.onPopupClosed=gZ.prototype.onPopupClosed;gZ.prototype.dataChanged=gZ.prototype.dataChanged;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.p([_.dq("#iframe"),_.P("design:type",HTMLIFrameElement)],gZ.prototype,"iframe",void 0);_.p([_.U(),_.P("design:type",Object)],gZ.prototype,"data",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gZ.prototype,"dataChanged",null);
_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype",Promise)],gZ.prototype,"onPopupClosed",null);_.p([_.Ok({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],gZ);
_.a(gZ,"yt-about-this-ad-renderer",function(){if(fAU===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;UuA===void 0&&(UuA=document.createElement("template"));var y=UuA;b.call(N,y.content.cloneNode(!0),q.content.firstChild);fAU=q}q=fAU;return q},{mode:2});var IAA;var TSf;var sqX=function(q){var N=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=N.message;"stack"in N&&(this.stack=N.stack);this.maxFileSizeMB=q;Object.setPrototypeOf(this,sqX.prototype)};
_.Y(sqX,Error);var njW=function(q,N){var b=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=b.message;"stack"in b&&(this.stack=b.stack);this.minWidth=q;this.minHeight=N;Object.setPrototypeOf(this,njW.prototype)};
_.Y(njW,Error);var aAf=function(q){this.requirements=q;this.JSC$21237_maxFileSize=q.maxFileSizeMB*1024*1024},S9c=function(q,N){if(N.size>q.JSC$21237_maxFileSize)throw new sqX(q.requirements.maxFileSizeMB);
};var WLp=function(q,N){this.canvas=q;this.imageEditorBuilder=N};
WLp.prototype.addEventListeners=function(q){var N=function(J){LLa(q,J)};
this.JSC$21243_mouseDownEvent=N;var b=function(J){puC(q,J)};
this.JSC$21243_mouseMoveEvent=b;var y=function(){Pra(q)};
this.JSC$21243_mouseUpEvent=y;this.canvas.addEventListener("mousedown",N);this.canvas.addEventListener("mousemove",b);document.addEventListener("mouseup",y)};
WLp.prototype.removeEventListeners=function(){this.JSC$21243_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21243_mouseDownEvent);this.JSC$21243_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21243_mouseMoveEvent);this.JSC$21243_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21243_mouseUpEvent)};
var MyB=function(q,N){q.removeEventListeners();return new Promise(function(b){var y=new Image;y.crossOrigin="anonymous";y.onload=function(){var J=q.imageEditorBuilder(q.canvas,y);q.addEventListeners(J);b(J)};
y.src=N})},ZB=function(q,N,b,y,J,E,F,R){this.canvas=q;
this.image=N;this.requiredRatio=b;this.minImageCropDimension=y;this.minOutputImageResolution=J;this.component=E;this.styleFocusedCorner=R===void 0?!0:R;this.action=2;this.focusedCorner=this.resizeCorner=0;q=this.canvas.getContext("2d");if(!q)throw Error("Ol");this.ctx=q;this.canvasMargin=F!=null?F:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;F=this.image;q=this.canvasInnerWidth/F.width;F.height*q>912&&(q=F.width/F.height*912/F.width);F=q;this.scaledImageWidth=this.canvas.width%2?
cxx(this.image.width*F):dQd(this.image.width*F);this.scaledImageHeight=Math.round(this.image.height*F);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21246_overlayMarginBottom=this.JSC$21246_overlayMarginTop=this.canvasMargin;this.JSC$21246_overlayMarginRight=this.JSC$21246_overlayMarginLeft=this.horizontalMargin;this.JSC$21246_overlayWidth=this.scaledImageWidth;this.JSC$21246_overlayHeight=this.scaledImageHeight;
q=this.image.width/this.image.height;q>this.requiredRatio?(this.JSC$21246_overlayWidth=this.canvas.width%2?cxx(this.scaledImageHeight*this.requiredRatio):dQd(this.scaledImageHeight*this.requiredRatio),this.JSC$21246_overlayMarginRight=this.JSC$21246_overlayMarginLeft=(this.canvas.width-this.JSC$21246_overlayWidth)/2):q<this.requiredRatio&&(this.JSC$21246_overlayHeight=this.canvas.height%2?cxx(this.scaledImageWidth/this.requiredRatio):dQd(this.scaledImageWidth/this.requiredRatio),this.JSC$21246_overlayMarginBottom=
this.JSC$21246_overlayMarginTop=(this.canvas.height-this.JSC$21246_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*F,this.scaledImageWidth);ojf(this)};
ZB.prototype.getContext=function(){return this.ctx};
var LLa=function(q,N){N={x:Math.round(N.pageX-q.canvas.getBoundingClientRect().left),y:Math.round(N.pageY-q.canvas.getBoundingClientRect().top)};q.dragStart=N;AoU(q,N)!==0?(q.action=1,emK(q,N),q.resizeCorner=AoU(q,N)):N.x>q.JSC$21246_overlayMarginLeft&&N.x<q.JSC$21246_overlayMarginLeft+q.JSC$21246_overlayWidth&&N.y>q.JSC$21246_overlayMarginTop&&N.y<q.JSC$21246_overlayMarginTop+q.JSC$21246_overlayHeight&&(q.action=0)},BSW=function(q,N){switch(N){case 1:return{x:q.JSC$21246_overlayMarginLeft,
y:q.JSC$21246_overlayMarginTop};case 2:return{x:q.JSC$21246_overlayMarginLeft,y:q.JSC$21246_overlayMarginTop+q.JSC$21246_overlayHeight};case 3:return{x:q.JSC$21246_overlayMarginLeft+q.JSC$21246_overlayWidth,y:q.JSC$21246_overlayMarginTop};case 4:return{x:q.JSC$21246_overlayMarginLeft+q.JSC$21246_overlayWidth,y:q.JSC$21246_overlayMarginTop+q.JSC$21246_overlayHeight};default:throw Error("Pl");}},qWX=function(q,N){if(q.focusedCorner!==0){q.dragStart=BSW(q,q.focusedCorner);
q.action=1;q.resizeCorner=q.focusedCorner;var b=q.dragStart.x,y=q.dragStart.y;switch(N){case 0:q.focusedCorner===1||q.focusedCorner===4?(b-=10,y-=10):(b-=10,y+=10);break;case 1:q.focusedCorner===1||q.focusedCorner===4?(b+=10,y+=10):(b+=10,y-=10);break;case 2:b=q.focusedCorner===1||q.focusedCorner===4?b-10:b+10;y-=10;break;case 3:b=q.focusedCorner===1||q.focusedCorner===4?b+10:b-10;y+=10;break;default:throw Error("Ql");}HXa(q,{x:b,y:y});ojf(q);q.action=2;q.dragStart=void 0}},puC=function(q,N){N={x:Math.round(N.pageX-
q.canvas.getBoundingClientRect().left),
y:Math.round(N.pageY-q.canvas.getBoundingClientRect().top)};emK(q,N);switch(q.action){case 1:HXa(q,N);break;case 0:q.dragStart&&(q.JSC$21246_overlayMarginLeft=Math.max(q.horizontalMargin,Math.min(q.JSC$21246_overlayMarginLeft-(q.dragStart.x-N.x),q.horizontalMargin+q.scaledImageWidth-q.JSC$21246_overlayWidth)),q.JSC$21246_overlayMarginRight=q.canvas.width-q.JSC$21246_overlayMarginLeft-q.JSC$21246_overlayWidth,q.JSC$21246_overlayMarginTop=Math.max(q.canvasMargin,Math.min(q.JSC$21246_overlayMarginTop-
(q.dragStart.y-N.y),q.scaledImageHeight-q.JSC$21246_overlayHeight+q.canvasMargin)),q.JSC$21246_overlayMarginBottom=q.canvas.height-(q.JSC$21246_overlayMarginTop+q.JSC$21246_overlayHeight));break;default:return}ojf(q);q.dragStart=N},Pra=function(q){q.action=2;
q.dragStart=void 0;document.body.style.cursor="auto"},emK=function(q,N){switch(AoU(q,N)){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:q.action!==1&&(document.body.style.cursor="auto")}},AoU=function(q,N){var b=q.JSC$21246_overlayMarginLeft-5,y=q.JSC$21246_overlayMarginTop-5,J=q.JSC$21246_overlayMarginLeft+q.JSC$21246_overlayWidth-5;
q=q.JSC$21246_overlayMarginTop+q.JSC$21246_overlayHeight-5;return N4A(N,{x:b,y:y})?1:N4A(N,{x:J,y:y})?3:N4A(N,{x:b,y:q})?2:N4A(N,{x:J,y:q})?4:0},N4A=function(q,N){return q.x>=N.x&&q.x<=N.x+10&&q.y>=N.y&&q.y<=N.y+10},HXa=function(q,N){if(q.dragStart)switch(q.resizeCorner){case 2:Math.abs((q.JSC$21246_overlayMarginLeft+q.JSC$21246_overlayWidth-N.x)/(N.y-q.JSC$21246_overlayMarginTop))>=q.requiredRatio?bZf(q,N.x):y1A(q,N.y);
break;case 1:Math.abs((q.JSC$21246_overlayMarginLeft+q.JSC$21246_overlayWidth-N.x)/(q.JSC$21246_overlayMarginTop+q.JSC$21246_overlayHeight-N.y))>=q.requiredRatio?J1d(q,N.x):y1A(q,N.y);break;case 4:Math.abs((N.x-q.JSC$21246_overlayMarginLeft)/(N.y-q.JSC$21246_overlayMarginTop))>=q.requiredRatio?bZf(q,N.x):EmB(q,N.y);break;case 3:Math.abs((N.x-q.JSC$21246_overlayMarginLeft)/(q.JSC$21246_overlayMarginTop+q.JSC$21246_overlayHeight-N.y))>=q.requiredRatio?J1d(q,N.x):EmB(q,N.y);break;default:throw Error("Rl");
}},bZf=function(q,N){var b=q.JSC$21246_overlayMarginTop;
q.JSC$21246_overlayMarginBottom=gma(q,N);q.JSC$21246_overlayHeight=q.canvas.height-q.JSC$21246_overlayMarginBottom-b;q.JSC$21246_overlayWidth=Math.round(q.JSC$21246_overlayHeight*q.requiredRatio);ZZp(q)},J1d=function(q,N){var b=q.JSC$21246_overlayMarginTop+q.JSC$21246_overlayHeight;
q.JSC$21246_overlayMarginTop=gma(q,N);q.JSC$21246_overlayHeight=b-q.JSC$21246_overlayMarginTop;q.JSC$21246_overlayWidth=Math.round(q.JSC$21246_overlayHeight*q.requiredRatio);ZZp(q)},ZZp=function(q){switch(q.resizeCorner){case 2:case 1:q.JSC$21246_overlayMarginLeft=q.canvas.width-q.JSC$21246_overlayMarginRight-q.JSC$21246_overlayWidth;
break;case 4:case 3:q.JSC$21246_overlayMarginRight=q.canvas.width-q.JSC$21246_overlayMarginLeft-q.JSC$21246_overlayWidth;break;default:throw Error("Rl");}},y1A=function(q,N){var b=q.JSC$21246_overlayMarginLeft+q.JSC$21246_overlayWidth;
q.JSC$21246_overlayMarginLeft=FEd(q,N);q.JSC$21246_overlayWidth=b-q.JSC$21246_overlayMarginLeft;q.JSC$21246_overlayHeight=Math.round(q.JSC$21246_overlayWidth/q.requiredRatio);R1d(q)},EmB=function(q,N){var b=q.JSC$21246_overlayMarginLeft;
q.JSC$21246_overlayMarginRight=FEd(q,N);q.JSC$21246_overlayWidth=q.canvas.width-q.JSC$21246_overlayMarginRight-b;q.JSC$21246_overlayHeight=Math.round(q.JSC$21246_overlayWidth/q.requiredRatio);R1d(q)},R1d=function(q){switch(q.resizeCorner){case 2:case 4:q.JSC$21246_overlayMarginBottom=q.canvas.height-q.JSC$21246_overlayMarginTop-q.JSC$21246_overlayHeight;
break;case 1:case 3:q.JSC$21246_overlayMarginTop=q.canvas.height-q.JSC$21246_overlayMarginBottom-q.JSC$21246_overlayHeight;break;default:throw Error("Rl");}},gma=function(q,N){switch(q.resizeCorner){case 2:N=q.canvas.height-(q.JSC$21246_overlayMarginTop+daU(q,N));
break;case 4:N=q.canvas.height-(q.JSC$21246_overlayMarginTop+c1f(q,N));break;case 1:N=q.JSC$21246_overlayMarginTop+q.JSC$21246_overlayHeight-daU(q,N);break;case 3:N=q.JSC$21246_overlayMarginTop+q.JSC$21246_overlayHeight-c1f(q,N);break;default:throw Error("Rl");}return Math.max(N,q.canvasMargin)},daU=function(q,N){N=q.JSC$21246_overlayMarginLeft+q.JSC$21246_overlayWidth-Math.max(N,q.horizontalMargin);
N=N<0?q.JSC$21246_overlayWidth:Math.max(N,q.minOverlayWidth);return Math.round(N/q.requiredRatio)},c1f=function(q,N){N=q.canvas.width-Math.max(q.canvas.width-N,q.horizontalMargin)-q.JSC$21246_overlayMarginLeft;
N=N<0?q.JSC$21246_overlayWidth:Math.max(N,q.minOverlayWidth);return Math.round(N/q.requiredRatio)},FEd=function(q,N){switch(q.resizeCorner){case 2:N=q.canvas.width-q.JSC$21246_overlayMarginRight-uNc(q,N);
break;case 4:N=q.canvas.width-q.JSC$21246_overlayMarginLeft-uNc(q,N);break;case 1:N=q.canvas.width-q.JSC$21246_overlayMarginRight-z1U(q,N);break;case 3:N=q.canvas.width-q.JSC$21246_overlayMarginLeft-z1U(q,N);break;default:throw Error("Rl");}return Math.max(N,q.horizontalMargin)},uNc=function(q,N){N=q.canvas.height-Math.max(q.canvas.height-N,q.canvasMargin)-q.JSC$21246_overlayMarginTop;
return N<0?q.JSC$21246_overlayWidth:Math.max(Math.round(N*q.requiredRatio),q.minOverlayWidth)},z1U=function(q,N){N=q.JSC$21246_overlayMarginTop+q.JSC$21246_overlayHeight-Math.max(N,q.canvasMargin);
return N<0?q.JSC$21246_overlayWidth:Math.max(Math.round(N*q.requiredRatio),q.minOverlayWidth)},ojf=function(q){q.ctx.clearRect(0,0,q.canvas.width,q.canvas.height);
q.ctx.drawImage(q.image,0,0,q.image.width,q.image.height,q.horizontalMargin,q.canvasMargin,q.canvas.width-2*q.horizontalMargin,q.scaledImageHeight);q.ctx.fillStyle="rgba(0, 0, 0, 0.7)";q.ctx.fillRect(q.horizontalMargin,q.JSC$21246_overlayMarginTop,q.JSC$21246_overlayMarginLeft-q.horizontalMargin,q.JSC$21246_overlayHeight);q.ctx.fillRect(q.JSC$21246_overlayMarginLeft+q.JSC$21246_overlayWidth,q.JSC$21246_overlayMarginTop,q.JSC$21246_overlayMarginRight-q.horizontalMargin,q.JSC$21246_overlayHeight);q.ctx.fillRect(q.horizontalMargin,
q.canvasMargin,q.scaledImageWidth,q.JSC$21246_overlayMarginTop-q.canvasMargin);q.ctx.fillRect(q.horizontalMargin,q.JSC$21246_overlayMarginTop+q.JSC$21246_overlayHeight,q.scaledImageWidth,q.JSC$21246_overlayMarginBottom-q.canvasMargin);q.drawOverlay();q.component&&_.e2(q.component,"image-updated")};
ZB.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21246_overlayMarginLeft,this.JSC$21246_overlayMarginTop,this.JSC$21246_overlayWidth,this.JSC$21246_overlayHeight);$ap(this)};
var $ap=function(q){var N=q.JSC$21246_overlayMarginLeft-5,b=q.JSC$21246_overlayMarginTop-5,y=q.JSC$21246_overlayMarginLeft+q.JSC$21246_overlayWidth-5,J=q.JSC$21246_overlayMarginTop+q.JSC$21246_overlayHeight-5;q.ctx.fillStyle="#FFF";q.ctx.fillRect(N,b,10,10);q.ctx.strokeRect(N,b,10,10);q.ctx.fillRect(y,b,10,10);q.ctx.strokeRect(y,b,10,10);q.ctx.fillRect(N,J,10,10);q.ctx.strokeRect(N,J,10,10);q.ctx.fillRect(y,J,10,10);q.ctx.strokeRect(y,J,10,10);if(q.focusedCorner!==0&&q.styleFocusedCorner){q.ctx.lineWidth=
4;q.ctx.strokeStyle="#3EA6FF";switch(q.focusedCorner){case 1:--N;--b;break;case 2:--N;b=J-1;break;case 3:N=y-1;--b;break;case 4:N=y-1;b=J-1;break;default:return}q.ctx.strokeRect(N,b,12,12)}};
ZB.prototype.crop=function(q,N){N=N===void 0?!0:N;var b=this.image.width/this.scaledImageWidth,y=document.createElement("canvas"),J=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],E=this.JSC$21246_overlayWidth*b,F=this.JSC$21246_overlayHeight*b;y.width=Math.max(E,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);y.height=Math.max(F,J);q&&(y.width=Math.min(y.width,y.height),y.height=Math.min(y.width,y.height));
q=y.getContext("2d");if(!q)throw Error("Fl");J=(this.JSC$21246_overlayMarginLeft-this.horizontalMargin)*b;b*=this.JSC$21246_overlayMarginTop-this.canvasMargin;N||(q.fillStyle="white",q.fillRect(0,0,y.width,y.height));q.drawImage(this.image,J,b,E,F,0,0,y.width,y.height);return y};var t4x=function(q,N,b,y,J){ZB.call(this,q,N,b,y,void 0,J,8,!1)};
_.Y(t4x,ZB);t4x.prototype.drawOverlay=function(){var q=this.getContext(),N=this.JSC$21246_overlayWidth,b=this.JSC$21246_overlayHeight,y=this.JSC$21246_overlayMarginTop,J=this.JSC$21246_overlayMarginLeft;q.lineWidth=2;q.strokeStyle="#3EA6FF";q.beginPath();q.arc(J+N/2,y+b/2,N/2,0,2*Math.PI);q.stroke();q.strokeRect(J,y,N,b);$ap(this)};
var maX={maxFileSizeMB:15,minWidth:98,minHeight:98},r1p=["image/png","image/jpeg","image/gif"],F9=function(){var q=_.C.apply(this,arguments)||this;q.fileSelectorFocusListener=null;q.errorMessage=null;q.isLoading=!0;q.hideContainer=!0;q.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return q};
_.Y(F9,_.C);_.g=F9.prototype;_.g.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.g.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.g.computePlaylistThumbnail=function(q){return q==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.g.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.By(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.g.setErrorState=function(q){this.resetErrorState();q&&(this.errorMessage=q)};
_.g.showPopup=function(){var q=this;this.hideContainer=!1;_.Ip(_.pY,function(){_.e2(q.hostElement,"yt-refit")});
this.isLoading=!1};
_.g.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.g.closePopup=function(){this.resetFileSelector();_.By(this.hostElement,"yt-close-popup-action",[this.is])};
_.g.onCancelTap=function(){this.isPlaylistThumbnail||_.By(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.g.openFileSelector=function(){var q=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.Ip(_.pY,function(){setTimeout(function(){if(!q.fileSelector.files||q.fileSelector.files.length===0)q.onCancelTap();q.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(N){N instanceof Error?_.po(N):_.P_(new _.IO(JSON.stringify(N)))}};
_.g.handleFileSelection=function(){var q=this,N,b,y,J,E,F;return _.d(function(R){switch(R.nextAddress){case 1:_.Yi(R,2);if(!q.fileSelector.files||!q.imageEditorCanvas)return q.onCancelTap(),R.return();N=q.fileSelector.files[0];S9c(q.imageChecker,N);_.Yi(R,4);return R.yield(DdK(N),6);case 6:q.mimeType=R.yieldResult;_.Ea(R,5,2);break;case 4:_.K7(R,2),_.By(q.hostElement,"yt-image-selection-error-action",[(b=q.data)==null?void 0:b.genericImageLoadErrorMessage]),q.onCancelTap();case 5:y=new FileReader;
y.addEventListener("load",function(){var c,z;return _.d(function(m){if(m.nextAddress==1){if(!y.result)return _.M6(Error("Hl")),m.return();c=y.result;z=new Image;z.src=c;z.onload=function(){try{var r=q.imageChecker;if(z.width<r.requirements.minWidth||z.height<r.requirements.minHeight)throw new njW(r.requirements.minWidth,r.requirements.minHeight);}catch(V){if(V instanceof njW){var X;_.By(q.hostElement,"yt-image-selection-error-action",[(X=q.data)==null?void 0:X.imageDimensionErrorMessage]);q.logImageDimensionErrorVe()}else V instanceof
Error?_.po(V):(r=new _.IO(JSON.stringify(V)),_.po(r));q.onCancelTap()}q.showPopup()};
z.onerror=function(){var r;_.By(q.hostElement,"yt-image-selection-error-action",[(r=q.data)==null?void 0:r.genericImageLoadErrorMessage]);q.onCancelTap()};
return m.yield(MyB(q.imageEditorCanvas,c),2)}q.imageEditor=m.yieldResult;q.updatePositionOfAllCorners();q.addEventListeners(q.imageEditor);_.hj(m)})},!1);
y.readAsDataURL(N);_.Ea(R,0);break;case 2:J=_.K7(R),J instanceof sqX?_.By(q.hostElement,"yt-image-selection-error-action",[(E=q.data)==null?void 0:E.imageSizeErrorMessage]):(J instanceof Error?_.po(J):_.P_(new _.IO(JSON.stringify(J))),_.By(q.hostElement,"yt-image-selection-error-action",[(F=q.data)==null?void 0:F.genericImageLoadErrorMessage])),q.onCancelTap(),_.hj(R)}})};
_.g.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var q=_.Zd(_.FR(),{veType:232707,visualElement:_.bx(232707)});q&&(q={visualElement:q},_.E_().reportShown(q))}};
_.g.handleImageSelectionErrorAction=function(q){this.isPlaylistThumbnail&&_.$XR(this.hostElement,q)};
_.g.convertToImageFormatBundle=function(q){var N=this,b,y,J;return _.d(function(E){switch(E.nextAddress){case 1:return b=q.toDataURL(N.outputMimeType,1),E.yield(hWc(b),2);case 2:y=E.yieldResult;_.Yi(E,3);S9c(N.imageChecker,y);_.Ea(E,4);break;case 3:J=_.K7(E);if(!(J instanceof sqX))throw J;_.M6(new _.IO("Output size is bigger than input size for image",N.mimeType,N.outputMimeType,y.size));b=q.toDataURL("image/jpeg",.95);return E.yield(hWc(b),6);case 6:y=E.yieldResult;case 4:return E.return({dataUrl:b,
imageFile:y})}})};
_.g.handleUploadImageToScottyCommand=function(q){var N=this,b,y,J,E,F,R,c,z,m,r;return _.d(function(X){switch(X.nextAddress){case 1:if(!N.imageEditor||!_.v(q,kkf))return X.return();b=_.v(q,kkf).scottyUploadUrl;if(!b){var V=new _.IO("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.po(V);return X.return()}_.Yi(X,2);N.setLoadingState();y=N.imageEditor.crop(!1,!1);return X.yield(N.convertToImageFormatBundle(y),4);case 4:return J=X.yieldResult,X.yield(lsU(J.imageFile,b),5);
case 5:E=X.yieldResult;((F=N.data)==null?0:F.onUploadEndpoint)?(R=N.buildUploadServiceEndpoint(E),N.ytComponentBehavior.resolveCommand(R),c=_.v(R,_.qz),((z=c)==null?0:z.params)?N.closePopup():N.resetFileSelector()):(_.By(N.hostElement,"yt-image-updated-action",[J.dataUrl,E]),N.closePopup());_.Ea(X,0);break;case 2:m=_.K7(X),N.setErrorState((r=N.data)==null?void 0:r.uploadErrorMessage),m instanceof Error?_.po(m):(V=new _.IO(JSON.stringify(m)),_.po(V)),_.hj(X)}})};
_.g.buildUploadServiceEndpoint=function(q){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",q),this.data.onUploadEndpoint):null};
_.g.dataChanged=function(){var q=this,N;return _.d(function(b){if(b.nextAddress==1){if(!q.data||!q.canvasElement)return b.return();q.data.imageRatio&&q.data.minImageCropWidth||_.P_(new _.IO("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));N=function(y,J){return q.data.imageType==="IMAGE_TYPE_AVATAR"?new t4x(y,J,q.data.imageRatio,[q.data.minImageCropWidth,q.data.minImageCropWidth/q.data.imageRatio],q.hostElement):new ZB(y,J,q.data.imageRatio,[q.data.minImageCropWidth,
q.data.minImageCropWidth/q.data.imageRatio],void 0,q.hostElement,8,!1)};
q.imageEditorCanvas=new WLp(q.canvasElement,N);return q.data.url?b.yield(MyB(q.imageEditorCanvas,q.data.url),3):(q.hideContainer=!0,q.openFileSelector(),b.jumpTo(0))}q.imageEditor=b.yieldResult;q.showPopup();q.addEventListeners(q.imageEditor);_.hj(b)})};
_.g.addEventListeners=function(q){this.removeEventListeners();var N=function(J){LLa(q,J)};
this.JSC$21254_mouseDownEvent=N;var b=function(J){puC(q,J)};
this.JSC$21254_mouseMoveEvent=b;var y=function(){Pra(q)};
this.JSC$21254_mouseUpEvent=y;this.topLeftCorner.addEventListener("mousedown",N);this.topLeftCorner.addEventListener("mousemove",b);this.topLeftCorner.addEventListener("mouseup",y);this.topRightCorner.addEventListener("mousedown",N);this.topRightCorner.addEventListener("mousemove",b);this.topRightCorner.addEventListener("mouseup",y);this.bottomLeftCorner.addEventListener("mousedown",N);this.bottomLeftCorner.addEventListener("mousemove",b);this.bottomLeftCorner.addEventListener("mouseup",y);this.bottomRightCorner.addEventListener("mousedown",
N);this.bottomRightCorner.addEventListener("mousemove",b);this.bottomRightCorner.addEventListener("mouseup",y)};
_.g.removeEventListeners=function(){this.JSC$21254_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21254_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21254_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21254_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21254_mouseDownEvent));this.JSC$21254_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21254_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21254_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21254_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21254_mouseMoveEvent));this.JSC$21254_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21254_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21254_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21254_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21254_mouseUpEvent))};
_.g.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var q=document.activeElement;q&&q.shadowRoot&&q.shadowRoot.activeElement;)q=q.shadowRoot.activeElement;switch(q){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};
_.g.updatePositionOfCorner=function(q,N){var b=q.y-N.offsetHeight/2+4;N.style.left=q.x-N.offsetWidth/2+16+"px";N.style.top=b+"px"};
_.g.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var q=_.Z([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),N=q.next();!N.done;N=q.next()){N=N.value;var b=BSW(this.imageEditor,N.corner);this.updatePositionOfCorner(b,N.div)}};
_.g.onLeft=function(q){this.imageEditor&&this.setFocusInImageEditor()&&(qWX(this.imageEditor,0),this.updatePositionOfAllCorners(),q.preventDefault())};
_.g.onRight=function(q){this.imageEditor&&this.setFocusInImageEditor()&&(qWX(this.imageEditor,1),this.updatePositionOfAllCorners(),q.preventDefault())};
_.g.onUp=function(q){this.imageEditor&&this.setFocusInImageEditor()&&(qWX(this.imageEditor,2),this.updatePositionOfAllCorners(),q.preventDefault())};
_.g.onDown=function(q){this.imageEditor&&this.setFocusInImageEditor()&&(qWX(this.imageEditor,3),this.updatePositionOfAllCorners(),q.preventDefault())};
_.g.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.$H.Object.defineProperties(F9.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&r1p.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var q,N,b;((N=this.data)==null?0:N.imageRatio)&&((b=this.data)==null?0:b.minImageCropWidth)?q={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:q=maX;return new aAf(q)}}});
F9.prototype.updatePositionOfAllCorners=F9.prototype.updatePositionOfAllCorners;F9.prototype.dataChanged=F9.prototype.dataChanged;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],F9.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],F9.prototype,"ytComponentBehavior",void 0);_.p([_.O(_.kT),_.P("design:type",Object)],F9.prototype,"ironA11yKeysBehavior",void 0);
_.p([_.dq("#canvas"),_.P("design:type",HTMLCanvasElement)],F9.prototype,"canvasElement",void 0);_.p([_.dq("#file-selector"),_.P("design:type",HTMLInputElement)],F9.prototype,"fileSelector",void 0);_.p([_.dq("#top-left-corner"),_.P("design:type",HTMLDivElement)],F9.prototype,"topLeftCorner",void 0);_.p([_.dq("#top-right-corner"),_.P("design:type",HTMLDivElement)],F9.prototype,"topRightCorner",void 0);
_.p([_.dq("#bottom-left-corner"),_.P("design:type",HTMLDivElement)],F9.prototype,"bottomLeftCorner",void 0);_.p([_.dq("#bottom-right-corner"),_.P("design:type",HTMLDivElement)],F9.prototype,"bottomRightCorner",void 0);_.p([_.U(),_.P("design:type",Object)],F9.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],F9.prototype,"errorMessage",void 0);_.p([_.U(),_.P("design:type",Object)],F9.prototype,"isLoading",void 0);_.p([_.U(),_.P("design:type",Object)],F9.prototype,"hideContainer",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.P("design:type",Boolean)],F9.prototype,"isPlaylistThumbnail",void 0);_.p([_.$9("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],F9.prototype,"dataChanged",null);_.p([_.ZP("image-updated"),_.ZP("yt-refit"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],F9.prototype,"updatePositionOfAllCorners",null);
_.p([_.Ok({is:"yt-image-editor-renderer",disableElementRegistration:!0})],F9);
_.a(F9,"yt-image-editor-renderer",function(){if(TSf===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;IAA===void 0&&(IAA=document.createElement("template"));var y=IAA;b.call(N,y.content.cloneNode(!0),q.content.firstChild);TSf=q}q=TSf;return q},{mode:2});var Xnf;var V4N;var R3=function(){return _.C.apply(this,arguments)||this};
_.Y(R3,_.C);R3.prototype.updateMinutesFromBinding=function(q){this.handleMinutesChanged&&this.handleMinutesChanged(q)};
R3.prototype.updateSecondsFromBinding=function(q){this.handleSecondsChanged&&this.handleSecondsChanged(q)};
R3.prototype.updateDescriptionFromBinding=function(q){this.handleDescriptionChanged&&this.handleDescriptionChanged(q)};
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],R3.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],R3.prototype,"data",void 0);_.p([_.U(),_.P("design:type",String)],R3.prototype,"minutes",void 0);_.p([_.U(),_.P("design:type",String)],R3.prototype,"seconds",void 0);_.p([_.U(),_.P("design:type",String)],R3.prototype,"description",void 0);_.p([_.U(),_.P("design:type",Function)],R3.prototype,"handleMinutesChanged",void 0);
_.p([_.U(),_.P("design:type",Function)],R3.prototype,"handleSecondsChanged",void 0);_.p([_.U(),_.P("design:type",Function)],R3.prototype,"handleDescriptionChanged",void 0);_.p([_.U(),_.P("design:type",Number)],R3.prototype,"characterLimit",void 0);_.p([_.U(),_.P("design:type",Number)],R3.prototype,"textNumRows",void 0);_.p([_.Ok({is:"yt-report-details-form-content",disableElementRegistration:!0})],R3);
_.a(R3,"yt-report-details-form-content",function(){if(V4N===void 0){var q=document.createElement("template");_.Q(q,'\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>');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;Xnf===void 0&&(Xnf=document.createElement("template"));var y=Xnf;b.call(N,y.content.cloneNode(!0),q.content.firstChild);V4N=q}q=V4N;return q},{mode:2});var j8a;var xaa;var dZ=function(){var q=_.C.apply(this,arguments)||this;q.updateMinutesFromBinding=function(N){q.minutes=N.detail.value};
q.updateSecondsFromBinding=function(N){q.seconds=N.detail.value};
q.updateDescriptionFromBinding=function(N){q.description=N.detail.value};
return q};
_.Y(dZ,_.C);_.g=dZ.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.g.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"}}}};
_.g.ready=function(){_.ee(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.g.onSubmitYtAction=function(q){var N=q.detail;N.actionName==="yt-service-request"&&(N=N.args[1],N.flagEndpoint&&(q.stopPropagation(),this.refireAction(N)))};
_.g.refireAction=function(q){var N={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(N.vss_id=this.vssId);_.qc(this.hostElement,[q,N]);this.submitDisabled=!0};
_.g.dataChanged=function(){var q=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var N=_.Pk();N&&N.getPlayerPromise().then(function(b){var y=b.getOption("cc","track")||b.getOption("captions","track");y&&(q.vssId=y.vss_id);b=b.getCurrentTime();q.minutes=Math.floor(b/60).toString();q.seconds=(Math.floor(b)%60).toString()})};
_.g.updateSubmitButtonState=function(){var q;((q=this.data)==null?0:q.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==="")};
_.g.onYtServiceRequestCompleted=function(){_.By(this.hostElement,"yt-close-popup-action")};
_.g.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.$H.Object.defineProperties(dZ.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.textNumRows)||4}}});
dZ.prototype.onYtServiceRequestError=dZ.prototype.onYtServiceRequestError;dZ.prototype.onYtServiceRequestCompleted=dZ.prototype.onYtServiceRequestCompleted;dZ.prototype.updateSubmitButtonState=dZ.prototype.updateSubmitButtonState;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],dZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);
_.p([_.U({observer:"dataChanged"}),_.P("design:type",Object)],dZ.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Boolean)],dZ.prototype,"submitDisabled",void 0);_.p([_.U(),_.P("design:type",String)],dZ.prototype,"minutes",void 0);_.p([_.U(),_.P("design:type",String)],dZ.prototype,"seconds",void 0);_.p([_.U(),_.P("design:type",String)],dZ.prototype,"description",void 0);_.p([_.U(),_.P("design:type",String)],dZ.prototype,"vssId",void 0);
_.p([_.U({value:_.M7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.P("design:type",Boolean)],dZ.prototype,"isMusic",void 0);_.p([_.l("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],dZ.prototype,"characterLimit",null);_.p([_.l("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],dZ.prototype,"textNumRows",null);
_.p([_.$9("minutes","seconds","description","submitDisabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dZ.prototype,"updateSubmitButtonState",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dZ.prototype,"onYtServiceRequestCompleted",null);
_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dZ.prototype,"onYtServiceRequestError",null);_.p([_.Ok({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],dZ);
_.a(dZ,"yt-report-details-form-renderer",function(){if(xaa===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;j8a===void 0&&(j8a=document.createElement("template"));var y=j8a;b.call(N,y.content.cloneNode(!0),q.content.firstChild);xaa=q}q=xaa;return q});var vma;var G3f;var YWf;var Q8B;var cU=function(){return _.C.apply(this,arguments)||this};
_.Y(cU,_.C);
cU.prototype.onCheckedChanged_=function(){if(this.data){var q=_.ee(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.By(this.hostElement,"yt-additional-detail-checkbox-update",[q]):this.data.identifier==="yt-hide-user-checkbox"?_.By(this.hostElement,"yt-hide-user-checkbox-update",[q]):q&&this.data.enableCommand?_.By(this.hostElement,"yt-modify-report-form-command",[_.v(this.data.enableCommand,nlW)]):!q&&this.data.disableCommand&&_.By(this.hostElement,
"yt-modify-report-form-command",[_.v(this.data.enableCommand,nlW)])}};
cU.prototype.onLabelTap_=function(q){q.target.tagName!="A"&&(_.ee(this.hostElement).querySelector("#checkbox").checked=!_.ee(this.hostElement).querySelector("#checkbox").checked)};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],cU.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],cU.prototype,"data",void 0);_.p([_.Ok({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],cU);
_.a(cU,"yt-boolean-form-field-v2-renderer",function(){if(Q8B===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;YWf===void 0&&(YWf=document.createElement("template"));var y=YWf;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Q8B=q}q=Q8B;return q});var uV=function(){var q=_.C.apply(this,arguments)||this;q.canShowAdditionalDetailCheckbox=!1;q.canShowCheckbox=!1;q.keepDropdownFocusedAfterSelection=!0;return q};
_.Y(uV,_.C);uV.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}}}}};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],uV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],uV.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],uV.prototype,"canShowAdditionalDetailCheckbox",void 0);_.p([_.U(),_.P("design:type",Object)],uV.prototype,"canShowCheckbox",void 0);_.p([_.U(),_.P("design:type",Object)],uV.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.p([_.Ok({is:"yt-report-form-modal-content",disableElementRegistration:!0})],uV);
_.a(uV,"yt-report-form-modal-content",function(){if(G3f===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;vma===void 0&&(vma=document.createElement("template"));var y=vma;b.call(N,y.content.cloneNode(!0),q.content.firstChild);G3f=q}q=G3f;return q},{mode:2});var OZC;var wna;var zp=function(){var q=_.C.apply(this,arguments)||this;q.submitting=!1;q.submitButtonDisabled=!0;q.command=null;q.canShowCheckbox=!1;q.canShowAdditionalDetailCheckbox=!1;q.canShowNextButton=!1;q.additionalDetailCheckboxChecked=!1;q.refitJob=0;q.keepDropdownFocusedAfterSelection=!0;q.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 q};
_.Y(zp,_.C);_.g=zp.prototype;_.g.created=function(){this.refitJob=0};
_.g.attached=function(){this.JSC$21277_scroller&&(this.JSC$21277_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21277_scroller.attached&&typeof this.JSC$21277_scroller.attached==="function"&&this.JSC$21277_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(q){q&&(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,q.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),q.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.g.onYtPopupOpened=function(){var q=_.Pk();q&&q.getPlayerPromise().then(function(N){N.pauseVideo()})};
_.g.onYtNavigate=function(q){_.v(q.detail.endpoint,_.gc1)&&(q.stopPropagation(),this.hideReportForm=!0)};
_.g.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.g.onYtServiceRequestCompleted=function(q,N){var b=N.actions;if(b){if(b.length===1&&_.v(b[0],_.y6)){var y;b=((y=_.v(b[0],_.y6))==null?void 0:y.commands)||[]}y=0;for(var J=b.length;y<J;y++)_.v(b[y],_.sj)&&(q.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(b[y]))}if(N.data&&(q=this.get("feedbackResponses",N.data)))for(N=0;N<q.length;N++)if(q[N].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.g.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.g._onDescendantIronResize=function(q){q.stopPropagation();return!1};
_.g.handleReportFormEndpointUpdateAction=function(q){if(q.submitEndpoint){var N=this.command=q.submitEndpoint;N=_.v(N,_.JTT);if(N==null?0:N.additionalDetailCheckboxChecked)N.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else q.submitNavigationEndpoint?(this.command=q.submitNavigationEndpoint,this.toggleSubmitButton(!1)):q.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:q.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;q.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",q));this.refit()};
_.g.handleConfirmDialogCloseAction=function(q){q.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.g.submitButtonDisabledChanged=function(){var q=this.hostElement.parentElement;q&&q.invalidateTabbables&&q.invalidateTabbables()};
_.g.handleModifyReportFormCommand=function(q){q=this.get("action",q);q==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:q==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:q==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:q==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:q==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:q==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.g.updateDialogStyling=function(){var q,N,b,y,J,E=((J=(q=this.data)==null?void 0:(N=q.optionsSupportedRenderers)==null?void 0:(b=N.optionsRenderer)==null?void 0:(y=b.items)==null?void 0:y.length)!=null?J:0)<=2?0:240;_.Jm(this.hostElement,{"--yt-report-form-modal-renderer-min-width":E+"px"})};
_.g.toggleSubmitButton=function(q){this.submitButtonDisabled=!q;this.submitButtonDisabled=q};
_.g.computeSubmitButtonData=function(q,N){var b={};_.v(N,_.gc1)?b.navigationEndpoint=N:b.command=N||void 0;q&&q.buttonRenderer&&_.nM.extend(b,q.buttonRenderer);return b};
_.g.computeNextButtonData=function(q,N){var b={};if(!q||!q.buttonRenderer)return b;_.nM.extend(b,q.buttonRenderer);if(!N)return b;if(_.v(N,_.gc1))b.navigationEndpoint=aLK(N);else if(b.command=aLK(N),q=_.v(b.command,_.JTT))q.legalCheckboxChecked=!0;return b};
_.g.computeShowNextButton=function(q,N,b){return!!q&&N&&b};
_.g.refit=function(){var q=this;this.refitJob||(this.refitJob=_.pY.addLowPriorityJob(function(){_.e2(q.hostElement,"yt-refit");q.refitJob=0}))};
_.g.handleAdditionalDetailCheckboxUpdateAction=function(q){this.additionalDetailCheckboxChecked=q;_.v(this.command,_.JTT).additionalDetailCheckboxChecked=q};
_.$H.Object.defineProperties(zp,{template:{configurable:!0,enumerable:!0,get:function(){if(wna===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;OZC===void 0&&(OZC=document.createElement("template"));var y=OZC;b.call(N,y.content.cloneNode(!0),q.content.firstChild);wna=q}q=wna;return q}}});
zp.prototype.onYtServiceRequestError=zp.prototype.onYtServiceRequestError;zp.prototype.onYtServiceRequestCompleted=zp.prototype.onYtServiceRequestCompleted;zp.prototype.onYtServiceRequestSent=zp.prototype.onYtServiceRequestSent;zp.prototype.onYtNavigate=zp.prototype.onYtNavigate;zp.prototype.onYtPopupOpened=zp.prototype.onYtPopupOpened;_.p([_.O(_.lw.YtOpenPopupBehavior),_.P("design:type",Object)],zp.prototype,"openPopupBehavior",void 0);
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],zp.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],zp.prototype,"eventForwardingBehavior",void 0);_.p([_.O(_.SQ),_.P("design:type",Object)],zp.prototype,"ironResizableBehavior",void 0);_.p([_.U({observer:"dataChanged"}),_.P("design:type",Object)],zp.prototype,"data",void 0);
_.p([_.U(),_.P("design:type",Object)],zp.prototype,"submitting",void 0);_.p([_.U({observer:"submitButtonDisabledChanged"}),_.P("design:type",Object)],zp.prototype,"submitButtonDisabled",void 0);_.p([_.U(),_.P("design:type",Object)],zp.prototype,"command",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],zp.prototype,"hideReportForm",void 0);_.p([_.U(),_.P("design:type",Object)],zp.prototype,"canShowCheckbox",void 0);
_.p([_.U(),_.P("design:type",Object)],zp.prototype,"canShowAdditionalDetailCheckbox",void 0);_.p([_.U(),_.P("design:type",Object)],zp.prototype,"canShowNextButton",void 0);_.p([_.U(),_.P("design:type",Object)],zp.prototype,"additionalDetailCheckboxChecked",void 0);_.p([_.U(),_.P("design:type",Object)],zp.prototype,"refitJob",void 0);_.p([_.U(),_.P("design:type",Object)],zp.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.p([_.dq("#scroller"),_.P("design:type",Object)],zp.prototype,"JSC$21277_scroller",void 0);_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zp.prototype,"onYtPopupOpened",null);_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],zp.prototype,"onYtNavigate",null);
_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],zp.prototype,"onYtServiceRequestSent",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],zp.prototype,"onYtServiceRequestCompleted",null);
_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],zp.prototype,"onYtServiceRequestError",null);_.p([_.Ok({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],zp);var iZB;var l8U;var $h=function(){return _.C.apply(this,arguments)||this};
_.Y($h,_.C);_.g=$h.prototype;_.g.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.g.onVisible=function(){var q,N;(N=_.tz().resolve(_.$f(_.xm)))==null||N.enqueue({label:_.ao((q=this.data)==null?void 0:q.messageTitle),elementToFocus:this.hostElement})};
_.g.onThumbnailLoaded=function(){_.e2(this.hostElement,"yt-refit")};
_.g.onDismissTap=function(){_.By(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.g.computeAlternateIcon=function(q){return q?q==="BACKSTAGE_ARTWORK"?"backstage:artwork":q:null};
_.g.computeFontFamily=function(q){return q==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.g.computeBackgroundStyle=function(q,N){if(q=this.computeBackgroundImage(q,N))if(q=_.oi(q.thumbnails))return'background-image: url("'+q+'");'};
_.g.computeHasFullHeightImage=function(q){return!(!(q&&q.thumbnails&&q.thumbnails.length>0)||this.modern)};
_.g.isModernStyle=function(q){return q.style==="STYLE_MODERN"};
_.g.computeIcon=function(q,N){if(q&&q.icon)return N?q.iconDark:q.icon};
_.g.computeBackgroundImage=function(q,N){if(q&&q.backgroundImage)return N?q.backgroundImageDark:q.backgroundImage};
_.g.computeLogo=function(q,N){if(q&&q.logo)return N?q.logoDark:q.logo};
_.g.computeShouldShowModernIcon=function(q,N){return q&&!!N};
_.g.getLogoContainerClassName=function(q){return this.logoWithPadding(q)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.g.getLogoImageId=function(q){return this.logoWithPadding(q)?"mealbar-logo-with-padding":"mealbar-logo"};
_.g.logoWithPadding=function(q){var N,b,y;return(q=(N=this.computeLogo(q,this.isDarkTheme))==null?void 0:(b=N.thumbnails)==null?void 0:(y=b[0])==null?void 0:y.height)&&q%31===0?!0:!1};
$h.prototype.onThumbnailLoaded=$h.prototype.onThumbnailLoaded;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);_.p([_.U({}),_.P("design:type",Object)],$h.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.P("design:type",Boolean)],$h.prototype,"modern",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],$h.prototype,"isDarkTheme",void 0);
_.p([_.U({computed:"computeIcon(data, isDarkTheme)"}),_.P("design:type",Object)],$h.prototype,"icon",void 0);_.p([_.U({computed:"computeLogo(data, isDarkTheme)"}),_.P("design:type",Object)],$h.prototype,"logo",void 0);_.p([_.U({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.P("design:type",Object)],$h.prototype,"backgroundStyle",void 0);_.p([_.U({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.P("design:type",Object)],$h.prototype,"alternateIcon",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.P("design:type",Boolean)],$h.prototype,"hasFullHeightImage",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.P("design:type",Boolean)],$h.prototype,"useYoutubeSans",void 0);_.p([_.U({computed:"computeShouldShowModernIcon(modern, icon)"}),_.P("design:type",Boolean)],$h.prototype,"shouldShowModernIcon",void 0);
_.p([_.ZP("yt-img-shadow-loaded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$h.prototype,"onThumbnailLoaded",null);_.p([_.Ok({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],$h);
_.a($h,"yt-mealbar-promo-renderer",function(){if(l8U===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;iZB===void 0&&(iZB=document.createElement("template"));var y=iZB;b.call(N,y.content.cloneNode(!0),q.content.firstChild);l8U=q}q=l8U;return q},{mode:2});var KEA;var Dap;var ty=function(){return _.C.apply(this,arguments)||this};
_.Y(ty,_.C);_.g=ty.prototype;_.g.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]]"}}}}}};
_.g.computeHasButtons_=function(q){return!(!q.dismissButton&&!q.acceptButton)};
_.g.computeStyle_=function(q){return q||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.g.observeImpressionEndpoints_=function(){var q=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(N){N.clickTrackingParams&&delete N.clickTrackingParams;_.qc(q.hostElement,[N])})};
_.g.onTap_=function(){_.By(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
ty.prototype.observeImpressionEndpoints_=ty.prototype.observeImpressionEndpoints_;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],ty.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],ty.prototype,"ytEventForwardingBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],ty.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],ty.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],ty.prototype,"positionType",void 0);_.p([_.U({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.P("design:type",Boolean)],ty.prototype,"hasButtons_",void 0);_.p([_.U({value:function(){return this.onTap_.bind(this)}}),
_.P("design:type",Function)],ty.prototype,"boundOnTap_",void 0);_.p([_.U({value:{style:"mono-inverse"}}),_.P("design:type",Object)],ty.prototype,"buttonOverride",void 0);_.p([_.FY("data.promoConfig.impressionEndpoints"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ty.prototype,"observeImpressionEndpoints_",null);_.p([_.Ok({is:"yt-tooltip-renderer",disableElementRegistration:!0})],ty);
_.a(ty,"yt-tooltip-renderer",function(){if(Dap===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;KEA===void 0&&(KEA=document.createElement("template"));var y=KEA;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Dap=q}q=Dap;return q},{mode:2});var h1B;var k3p;var UaA={},f8f=(UaA.WEB_REMIX="music.youtube.com",UaA),mx=function(){var q=_.C.apply(this,arguments)||this;q.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return q};
_.Y(mx,_.C);_.g=mx.prototype;_.g.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.created=function(){this.embedHost_=f8f[_.M7("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.g.ready=function(){_.ee(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.g.computeEmbedCode_=function(q,N,b,y,J){if(!q)return"";var E=q.videoId,F=q.fullListId,R=[];q.attributionId&&R.push("si="+q.attributionId);y||R.push("controls=0");b&&Number(N)>0&&R.push("start="+N);F&&(E="videoseries",R.push("list="+F));b="https://"+(J?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+E;q.clipId&&(R.push("clip="+q.clipId),R.push("clipt="+q.clipTiming));N=R.length>0?b+"?"+R.join("&amp;"):b;q.encryptedEmbedConfig&&R.push("embed_config="+JSON.stringify({enc:q.encryptedEmbedConfig}));
R=R.length>0?b+"?"+R.join("&amp;"):b;_.x("web_sharing_embed_preview_killswitch")?_.ee(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(R,q.previewWidth||854,q.previewHeight||480):(_.Do(this.videoPreviewContainer),_.ee(this.videoPreviewContainer).appendChild(this.buildIframeElement(R)));return this.getEmbedCode_(N,q.width||560,q.height||315)};
_.g.buildIframeElement=function(q){var N=document.createElement("iframe"),b,y;N.width=""+((y=(b=this.data)==null?void 0:b.previewWidth)!=null?y:854);var J,E;N.height=""+((E=(J=this.data)==null?void 0:J.previewHeight)!=null?E:480);_.b$(N,2,q);N.title="YouTube video player";N.frameBorder="0";N.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";N.referrerPolicy="strict-origin-when-cross-origin";N.allowFullscreen=!0;return N};
_.g.computeIsSquareAspectRatio_=function(q){return q.previewHeight&&q.previewWidth?q.previewHeight==q.previewWidth:!1};
_.g.computeShowEmbedOptions_=function(q){return!!q.enablePrivacyModeOptionLabel||!!q.showPlayerControlsOptionLabel};
_.g.getEmbedCode_=function(q,N,b){return'<iframe width="'+N+'" height="'+b+'" src="'+q+'" 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>'};
_.g.handleSignalActionCopyShareEmbedUrl_=function(){_.ee(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.g.handleSetTimestamp_=function(q){this.startAtTimeStamp_=(this.startAtChecked_=q.isSet)?q.timestamp:0};
_.g.closePanel_=function(){_.By(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.g.onEmbedCode_=function(){_.ee(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.g.onYtPopupClosed_=function(){_.Do(_.ee(this.hostElement).querySelector("#video-preview"))};
_.g.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.v(this.data.actionButtons[0],_.JI)&&this.ytRendererBehavior.logExplicitClick(_.v(this.data.actionButtons[0],_.JI))};
mx.prototype.onYtPopupClosed_=mx.prototype.onYtPopupClosed_;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],mx.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],mx.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],mx.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],mx.prototype,"data",void 0);
_.p([_.U({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.P("design:type",String)],mx.prototype,"embedCode_",void 0);_.p([_.U({value:!0}),_.P("design:type",Boolean)],mx.prototype,"isPlayerControlsOptionChecked_",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],mx.prototype,"isPrivacyModeOptionChecked_",void 0);_.p([_.U({value:!1,notify:!0}),_.P("design:type",Boolean)],mx.prototype,"startAtChecked_",void 0);
_.p([_.U({value:0}),_.P("design:type",Number)],mx.prototype,"startAtTimeStamp_",void 0);_.p([_.U({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],mx.prototype,"isSquareAspectRatio_",void 0);_.p([_.dq("#video-preview"),_.P("design:type",HTMLElement)],mx.prototype,"videoPreviewContainer",void 0);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mx.prototype,"onYtPopupClosed_",null);
_.p([_.Ok({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],mx);
_.a(mx,"yt-sharing-embed-renderer",function(){if(k3p===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;h1B===void 0&&(h1B=document.createElement("template"));var y=h1B;b.call(N,y.content.cloneNode(!0),q.content.firstChild);k3p=q}q=k3p;return q},{mode:2});var CHA={};
CHA.YtUnlimitedFamilyInterstitialBehavior=[_.lw.YtOpenPopupBehavior,_.Dc.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(q){q=_.Tzx(_.a0(q),"yt-button-renderer");return q?q.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(q){this.dialogHistory_.push(q)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var q=this.popFromHistory();if(q){var N={openPopupAction:{popupType:"DIALOG",popup:{}}};N.openPopupAction.popup[q.renderer]=q.data;this.showingPreviousDialog_=!0;this.openPopup(N)}},
handleOpenPopupAction_:function(q){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var N=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(y){return!!q.openPopupAction.popup[y]}),b=this.getElementName_();
N&&this.data&&(this.pushToHistory({renderer:b,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(q){if(q=_.v(q,$qX))this.loading=!0,_.By(this.hostElement,"yt-open-create-family-dialog",[q,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var q=this.hostElement.nodeName.split("-").slice(1).map(function(N){return""+N[0].toUpperCase()+N.slice(1).toLowerCase()}).join("");
return q[0].toLowerCase()+q.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var I8C;var T4a;var rZ=function(){return _.C.apply(this,arguments)||this};
_.Y(rZ,_.C);_.g=rZ.prototype;_.g.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}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.By(this.hostElement,"yt-register-create-family-dialog");_.ee(this.hostElement).querySelector("#thumbnail").onShow()};
_.g.fireOnCloseCommand_=function(){var q;((q=this.data)==null?0:q.onCloseCommand)&&_.Nc(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.g.onYtServiceRequestSent_=function(q,N){N&&N.endpoint&&_.v(N.endpoint,_.EY)||(this.loading=!0)};
_.g.onYtServiceRequestCompleted_=function(){var q=this.hostElement.parentElement;q.close&&q.close();this.loading=!1};
_.g.openPopupHandler_=function(q){if(q.detail==this){var N;((N=this.data)==null?0:N.onOpenCommands)&&_.Nc(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.g.closePopupHandler_=function(q,N){this.fireOnCloseCommand_();if(N&&N.canceled===!0||N&&N.canceled===!1&&N.confirmed===!1){var b;((b=this.data)==null?0:b.onDismissCommands)&&_.Nc(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.g.dataChanged_=function(){this.loading=!1};
rZ.prototype.dataChanged_=rZ.prototype.dataChanged_;rZ.prototype.closePopupHandler_=rZ.prototype.closePopupHandler_;rZ.prototype.openPopupHandler_=rZ.prototype.openPopupHandler_;rZ.prototype.onYtServiceRequestCompleted_=rZ.prototype.onYtServiceRequestCompleted_;rZ.prototype.onYtServiceRequestSent_=rZ.prototype.onYtServiceRequestSent_;_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],rZ.prototype,"ytEventForwardingBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],rZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(CHA.YtUnlimitedFamilyInterstitialBehavior),_.P("design:type",Object)],rZ.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],rZ.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],rZ.prototype,"loading",void 0);_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],rZ.prototype,"onYtServiceRequestSent_",null);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],rZ.prototype,"onYtServiceRequestCompleted_",null);
_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],rZ.prototype,"openPopupHandler_",null);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],rZ.prototype,"closePopupHandler_",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rZ.prototype,"dataChanged_",null);
_.p([_.Ok({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],rZ);
_.a(rZ,"yt-unlimited-family-message-interstitial-renderer",function(){if(T4a===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;I8C===void 0&&(I8C=document.createElement("template"));var y=I8C;b.call(N,y.content.cloneNode(!0),q.content.firstChild);T4a=q}q=T4a;return q},{mode:2});var s8p;var nmA;var X9=function(){return _.C.apply(this,arguments)||this};
_.Y(X9,_.C);X9.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"}}}};
X9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ee(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(q){q.onShow()});
_.ee(this.hostElement).querySelector("#main-thumbnail").onShow()};
X9.prototype.onButtonTap_=function(q){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(q)};
X9.prototype.computeMainThumbnailWidth_=function(q){return q&&q.length!==0?72:96};
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],X9.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],X9.prototype,"ytRendererBehavior",void 0);_.p([_.O(CHA.YtUnlimitedFamilyInterstitialBehavior),_.P("design:type",Object)],X9.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],X9.prototype,"data",void 0);
_.p([_.U({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.P("design:type",Number)],X9.prototype,"mainThumbnailWidth_",void 0);_.p([_.U({value:function(){return this.onButtonTap_.bind(this)}}),
_.P("design:type",Function)],X9.prototype,"boundButtonTap_",void 0);_.p([_.Ok({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],X9);
_.a(X9,"yt-unlimited-family-profile-interstitial-renderer",function(){if(nmA===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;s8p===void 0&&(s8p=document.createElement("template"));var y=s8p;b.call(N,y.content.cloneNode(!0),q.content.firstChild);nmA=q}q=nmA;return q},{mode:2});var a8a;var SWA;var Vy=function(){var q=_.C.apply(this,arguments)||this;q.sliderAriaValueText_=null;q.selectedIndex_=0;q.messages={PAUSE_SLIDER:_.FE("PAUSE_SLIDER",void 0,"Pause Duration")};return q};
_.Y(Vy,_.C);_.g=Vy.prototype;_.g.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_]]"}}}}}};
_.g.onPopupOpened_=function(q){q.detail==this&&_.x("enable_premium_voluntary_pause")&&(_.By(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.setDialogData=function(q){this.data=q;this.resetSlider_()};
_.g.dataChanged_=function(){this.data&&this.resetSlider_()};
_.g.onSubmitTap_=function(){if(this.data.confirmCommand){var q=this.data.confirmCommand;_.v(q,_.ZSo)&&_.qc(this.hostElement,[q,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.g.onExitButtonTap_=function(){_.By(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.g.closePopupHandler_=function(q,N){(N&&N.canceled===!0||N.canceled===!1&&N.confirmed===!1)&&this.handleOnDismissCommands_()};
_.g.onSliderChange_=function(){this.selectedIndex_=_.ee(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.g.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.g.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.g.resetSlider_=function(){if(this.data){var q=this.data.defaultEndOptionIndex||0,N=_.ee(this.hostElement).querySelector("#id-pause-slider");if(N.immediateValue<q)for(;N.immediateValue!=q;)N.increment();else if(q<N.immediateValue)for(;N.immediateValue!=q;)N.decrement();this.selectedIndex_=q;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.g.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Nc(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.g.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Nc(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.g.onYtServiceRequestSent=function(){this.loading=!0};
_.g.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
Vy.prototype.onYtServiceRequestCompleted=Vy.prototype.onYtServiceRequestCompleted;Vy.prototype.onYtServiceRequestSent=Vy.prototype.onYtServiceRequestSent;Vy.prototype.closePopupHandler_=Vy.prototype.closePopupHandler_;Vy.prototype.dataChanged_=Vy.prototype.dataChanged_;Vy.prototype.onPopupOpened_=Vy.prototype.onPopupOpened_;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Vy.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Vy.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Vy.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Vy.prototype,"loading",void 0);_.p([_.U(),_.P("design:type",Number)],Vy.prototype,"selectIndexMax_",void 0);_.p([_.U(),_.P("design:type",Object)],Vy.prototype,"selectedData_",void 0);
_.p([_.U(),_.P("design:type",Object)],Vy.prototype,"sliderAriaValueText_",void 0);_.p([_.U({value:function(){return this.onSubmitTap_.bind(this)}}),
_.P("design:type",Function)],Vy.prototype,"onButtonTap_",void 0);_.p([_.U({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.P("design:type",Function)],Vy.prototype,"onSecondaryTap_",void 0);_.p([_.U(),_.P("design:type",Object)],Vy.prototype,"messages",void 0);_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],Vy.prototype,"onPopupOpened_",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vy.prototype,"dataChanged_",null);
_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],Vy.prototype,"closePopupHandler_",null);_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],Vy.prototype,"onYtServiceRequestSent",null);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],Vy.prototype,"onYtServiceRequestCompleted",null);_.p([_.Ok({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],Vy);
_.a(Vy,"yt-unplugged-pause-membership-dialog-renderer",function(){if(SWA===void 0){var q=document.createElement("template");_.Q(q,'\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>');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;a8a===void 0&&(a8a=document.createElement("template"));var y=a8a;b.call(N,y.content.cloneNode(!0),q.content.firstChild);SWA=q}q=SWA;return q},{mode:2});var WEN;var LEp;var jK=function(){return _.C.apply(this,arguments)||this};
_.Y(jK,_.C);jK.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.vk("vcBalanceRenderer")}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],jK.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],jK.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],jK.prototype,"data",void 0);_.p([_.Ok({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],jK);
_.a(jK,"yt-vc-offer-layout-header-renderer",function(){if(LEp===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;WEN===void 0&&(WEN=document.createElement("template"));var y=WEN;b.call(N,y.content.cloneNode(!0),q.content.firstChild);LEp=q}q=LEp;return q},{mode:2});var pnB;var PHC;var M4K;var omx;var xh=function(){return _.C.apply(this,arguments)||this};
_.Y(xh,_.C);xh.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.$H.Object.defineProperties(xh.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)}}});
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],xh.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.wRx.YtTappableItemBehavior),_.P("design:type",Object)],xh.prototype,"ytTappableItemBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],xh.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.l("data.accessibilityText"),_.P("design:type",String),_.P("design:paramtypes",[])],xh.prototype,"ariaLabel",null);_.p([_.U({reflectToAttribute:!0}),_.l("data.style"),_.P("design:type",String),_.P("design:paramtypes",[])],xh.prototype,"vcOfferStyle",null);_.p([_.l("data.style","data.titleText"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],xh.prototype,"showTitleText",null);_.p([_.Ok({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],xh);
_.a(xh,"yt-vc-offer-renderer",function(){if(omx===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;M4K===void 0&&(M4K=document.createElement("template"));var y=M4K;b.call(N,y.content.cloneNode(!0),q.content.firstChild);omx=q}q=omx;return q},{mode:2});var vU=function(){return _.C.apply(this,arguments)||this};
_.Y(vU,_.C);vU.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}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],vU.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],vU.prototype,"data",void 0);_.p([_.Ok({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],vU);
_.a(vU,"yt-vc-offer-layout-renderer",function(){if(PHC===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;pnB===void 0&&(pnB=document.createElement("template"));var y=pnB;b.call(N,y.content.cloneNode(!0),q.content.firstChild);PHC=q}q=PHC;return q},{mode:2});var A1W;var e1f;var B4X;var HZA;var Gp=function(){return _.C.apply(this,arguments)||this};
_.Y(Gp,_.C);Gp.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}}}}}};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Gp.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Gp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Gp.prototype,"data",void 0);_.p([_.Ok({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],Gp);
_.a(Gp,"yt-ypc-offers-modal-top-bar-renderer",function(){if(HZA===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;B4X===void 0&&(B4X=document.createElement("template"));var y=B4X;b.call(N,y.content.cloneNode(!0),q.content.firstChild);HZA=q}q=HZA;return q},{mode:2});var Yh=function(){return _.C.apply(this,arguments)||this};
_.Y(Yh,_.C);Yh.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"}}}}};
Yh.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Yh.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var q=this.scrollable;q.attached&&typeof q.attached==="function"&&q.attached()};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Yh.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("#scrollable"),_.P("design:type",Object)],Yh.prototype,"scrollable",void 0);_.p([_.U(),_.P("design:type",Object)],Yh.prototype,"data",void 0);_.p([_.Ok({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Yh);
_.a(Yh,"yt-ypc-offers-modal-renderer",function(){if(e1f===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;A1W===void 0&&(A1W=document.createElement("template"));var y=A1W;b.call(N,y.content.cloneNode(!0),q.content.firstChild);e1f=q}q=e1f;return q},{mode:2});var qgf;var NrA;var Qy=function(){return _.C.apply(this,arguments)||this};
_.Y(Qy,_.C);_.g=Qy.prototype;_.g.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}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ee(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.g.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.By(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.g.onYtPopupOpened_=function(q,N){(N==null?void 0:N.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Nc(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.g.onYtPopupClosed_=function(q,N){this.continueButtonTapped||N&&(N.canceled===!0||N.canceled===!1&&N.confirmed===!1)&&this.data.onDismissCommands&&_.Nc(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.g.onYtServiceRequestError_=function(q){this.set("showSpinner",!1);_.CT(this.hostElement,q.detail.error.message)};
_.g.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.x("enable_ypc_spinners")?_.By(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Qy.prototype.onYtServiceRequestError_=Qy.prototype.onYtServiceRequestError_;Qy.prototype.onYtPopupClosed_=Qy.prototype.onYtPopupClosed_;Qy.prototype.onYtPopupOpened_=Qy.prototype.onYtPopupOpened_;Qy.prototype.onYtServiceRequestCompleted_=Qy.prototype.onYtServiceRequestCompleted_;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Qy.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Qy.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.P("design:type",Object)],Qy.prototype,"data",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],Qy.prototype,"showSpinner",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],Qy.prototype,"continueButtonTapped",void 0);_.p([_.U({value:function(){return this.onContinueTapped_.bind(this)}}),
_.P("design:type",Function)],Qy.prototype,"bindOnContinueTapped_",void 0);_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Qy.prototype,"onYtServiceRequestCompleted_",null);_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],Qy.prototype,"onYtPopupOpened_",null);
_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],Qy.prototype,"onYtPopupClosed_",null);_.p([_.ZP("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Qy.prototype,"onYtServiceRequestError_",null);_.p([_.Ok({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Qy);
_.a(Qy,"yt-ypc-upgrade-dialog-renderer",function(){if(NrA===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;qgf===void 0&&(qgf=document.createElement("template"));var y=qgf;b.call(N,y.content.cloneNode(!0),q.content.firstChild);NrA=q}q=NrA;return q},{mode:2});var bhW;var yMK;var Oy=function(){return _.C.apply(this,arguments)||this};
_.Y(Oy,_.C);Oy.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Oy.prototype.computeHasButtons_=function(q){return!(!q.dismissButton&&!q.confirmButton)};
Oy.prototype.computeStyle_=function(q){return q||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],Oy.prototype,"ytEventForwardingBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],Oy.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],Oy.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],Oy.prototype,"positionType",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.P("design:type",Boolean)],Oy.prototype,"hasButtons_",void 0);_.p([_.U({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Oy.prototype,"style_",void 0);_.p([_.Ok({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],Oy);
_.a(Oy,"yt-bubble-hint-renderer",function(){if(yMK===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;bhW===void 0&&(bhW=document.createElement("template"));var y=bhW;b.call(N,y.content.cloneNode(!0),q.content.firstChild);yMK=q}q=yMK;return q},{mode:2});var JMa;var Eda;var wZ=function(){var q=_.t9.apply(this,arguments)||this;q.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return q};
_.Y(wZ,_.t9);_.g=wZ.prototype;_.g.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.g.attached=function(){var q=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){q.$.thumbnail.onShow();q.$["header-image"].onShow()})};
_.g.handleCheckBoxUpdateAction_=function(q){this.canShowCheckboxEnabledConfirmButton=q};
_.g.computeUseOverlayForSpinner_=function(q,N){return!!q&&N};
_.g.computeShowSpinner_=function(q,N){return q||!!N};
_.g.fireOnCloseActions_=function(){var q,N=_.Z(((q=this.data)==null?void 0:q.onClosedActions)||[]);for(q=N.next();!q.done;q=N.next())this.ytRendererBehavior.resolveCommand(q.value)};
_.g.fireOnOpenCommands_=function(q){var N,b=(N=this.data)==null?void 0:N.onOpenCommands;if(b)for(q.stopImmediatePropagation(),q=_.Z(b),N=q.next();!N.done;N=q.next())this.ytRendererBehavior.resolveCommand(N.value)};
_.g.fireOnDismissCommands_=function(q){var N,b=(N=this.data)==null?void 0:N.onDismissCommands;if(b)for(q.stopImmediatePropagation(),q=_.Z(b),N=q.next();!N.done;N=q.next())this.ytRendererBehavior.resolveCommand(N.value)};
_.g.openPopupHandler_=function(q){q.detail==this&&this.fireOnOpenCommands_(q)};
_.g.closePopupHandler_=function(q,N){_.Hy(this,"yt-confirm-dialog-close-action",[N]);this.fireOnCloseActions_();(N&&N.canceled===!0||N&&N.canceled===!1&&N.confirmed===!1)&&this.fireOnDismissCommands_(q)};
_.g.onHeaderImageChanged_=function(){var q;((q=this.data)==null?0:q.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.g.computeHasHeaderImageWidth_=function(q){return q!=void 0};
_.g.computeHasLoadingMessage=function(q){return!!q};
_.g.onHeaderImageWidthChanged_=function(){var q,N=(q=this.data)==null?void 0:q.headerImageWidth;if(N){if(q=1.25*N*2+N,this.$.main.style.width=q+"px",N=this.$.scroller.firstElementChild)N.style.minWidth=q+"px"}else this.$.main.style.width="100%"};
_.g.onThumbnailChanged_=function(){var q;((q=this.data)==null?0:q.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")};
_.g.onYtNavigate_=function(q){q=_.a0(q);q instanceof Node&&_.BP(this.$["confirm-button"]).contains(q)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.g.computePrimaryIsCancel_=function(q){return q};
_.g.computeIsCancelButtonHidden_=function(q){return q.skipCancelButton||!q.cancelButton};
_.g.computeIsCheckboxHidden_=function(q){return!q.checkbox};
_.g.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.g.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.g.onYtServiceRequestCompleted_=function(){var q;((q=this.data)==null?0:q.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.$H.Object.defineProperties(wZ,{template:{configurable:!0,enumerable:!0,get:function(){if(Eda===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;JMa===void 0&&(JMa=document.createElement("template"));var y=JMa;b.call(N,y.content.cloneNode(!0),q.content.firstChild);Eda=q}q=Eda;return q}}});
wZ.prototype.onYtServiceRequestCompleted_=wZ.prototype.onYtServiceRequestCompleted_;wZ.prototype.onYtServiceRequestSent_=wZ.prototype.onYtServiceRequestSent_;wZ.prototype.onThumbnailLoaded_=wZ.prototype.onThumbnailLoaded_;wZ.prototype.onYtNavigate_=wZ.prototype.onYtNavigate_;wZ.prototype.onThumbnailChanged_=wZ.prototype.onThumbnailChanged_;wZ.prototype.onHeaderImageWidthChanged_=wZ.prototype.onHeaderImageWidthChanged_;wZ.prototype.onHeaderImageChanged_=wZ.prototype.onHeaderImageChanged_;
wZ.prototype.closePopupHandler_=wZ.prototype.closePopupHandler_;wZ.prototype.openPopupHandler_=wZ.prototype.openPopupHandler_;_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],wZ.prototype,"ytActionHandlerBehavior",void 0);_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);
_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],wZ.prototype,"ytEventForwardingBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],wZ.prototype,"data",void 0);_.p([_.U({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.P("design:type",Boolean)],wZ.prototype,"primaryIsCancel",void 0);_.p([_.U({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.P("design:type",Boolean)],wZ.prototype,"isCancelButtonHidden",void 0);
_.p([_.U({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.P("design:type",Boolean)],wZ.prototype,"isCheckboxHidden",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],wZ.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.p([_.U({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.P("design:type",Boolean)],wZ.prototype,"useOverlayForSpinner_",void 0);
_.p([_.U({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.P("design:type",Boolean)],wZ.prototype,"showSpinner_",void 0);_.p([_.U({value:!1}),_.P("design:type",Boolean)],wZ.prototype,"isActionInProgress_",void 0);_.p([_.U({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.P("design:type",Boolean)],wZ.prototype,"hasHeaderImageWidth_",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.P("design:type",Boolean)],wZ.prototype,"hasLoadingMessage",void 0);_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],wZ.prototype,"openPopupHandler_",null);_.p([_.ZP("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],wZ.prototype,"closePopupHandler_",null);
_.p([_.FY("data.headerImage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wZ.prototype,"onHeaderImageChanged_",null);_.p([_.FY("data.headerImageWidth"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wZ.prototype,"onHeaderImageWidthChanged_",null);_.p([_.FY("data.thumbnail"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wZ.prototype,"onThumbnailChanged_",null);
_.p([_.ZP("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],wZ.prototype,"onYtNavigate_",null);_.p([_.ZP("yt-img-shadow-loaded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wZ.prototype,"onThumbnailLoaded_",null);_.p([_.ZP("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kP]),_.P("design:returntype")],wZ.prototype,"onYtServiceRequestSent_",null);
_.p([_.ZP("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.n6]),_.P("design:returntype")],wZ.prototype,"onYtServiceRequestCompleted_",null);_.p([_.Ok({is:"yt-confirm-dialog-renderer",noInjection:!0})],wZ);var gdU;var ZhU;var iV=function(){return _.C.apply(this,arguments)||this};
_.Y(iV,_.C);iV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ee(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
iV.prototype.computeConfirmButton_=function(q){var N={text:q.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};q.confirmNavigationEndpoint?N.navigationEndpoint=q.confirmNavigationEndpoint:q.confirmServiceEndpoint&&(N.serviceEndpoint=q.confirmServiceEndpoint);return N};
iV.prototype.computeShowTitle_=function(q){return!(q==null||!q.title)};
_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],iV.prototype,"data",void 0);_.p([_.U({computed:"computeShowTitle_(data)"}),_.P("design:type",Boolean)],iV.prototype,"showTitle",void 0);_.p([_.Ok({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],iV);
_.a(iV,"yt-fancy-dismissible-dialog-renderer",function(){if(ZhU===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;gdU===void 0&&(gdU=document.createElement("template"));var y=gdU;b.call(N,y.content.cloneNode(!0),q.content.firstChild);ZhU=q}q=ZhU;return q});var FDc;var RKf;var lV=function(){var q=_.C.apply(this,arguments)||this;q.spinnerActive=!1;return q};
_.Y(lV,_.C);lV.prototype.created=function(){FXa(2201)};
lV.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
lV.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
lV.prototype.onIronOverlayClosed=lV.prototype.onIronOverlayClosed;lV.prototype.onIronOverlayOpened=lV.prototype.onIronOverlayOpened;_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.Ej),_.P("design:type",Object)],lV.prototype,"tpYtIronOverlayBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],lV.prototype,"data",void 0);_.p([_.U(),_.P("design:type",Object)],lV.prototype,"spinnerActive",void 0);
_.p([_.ZP("iron-overlay-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lV.prototype,"onIronOverlayOpened",null);_.p([_.ZP("iron-overlay-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lV.prototype,"onIronOverlayClosed",null);_.p([_.Ok({is:"yt-loading-renderer",disableElementRegistration:!0})],lV);
_.a(lV,"yt-loading-renderer",function(){if(RKf===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;FDc===void 0&&(FDc=document.createElement("template"));var y=FDc;b.call(N,y.content.cloneNode(!0),q.content.firstChild);RKf=q}q=RKf;return q},{mode:2});var dFC;var cMW;var K2=function(){var q=_.C.apply(this,arguments)||this;q.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);q.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);q.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.Y(K2,_.C);_.g=K2.prototype;_.g.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.g.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.g.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.g.openPopupHandler_=function(q){q.detail===this.hostElement&&this.hostElement.hidden&&_.By(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.g.onDismissButtonTap_=function(){var q;this.closeOnDismissButton_.has(((q=this.data)==null?void 0:q.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.By(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.g.onAcceptButtonTap_=function(){var q;this.closeOnAcceptButton_.has(((q=this.data)==null?void 0:q.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.By(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.g.computeHasHeader_=function(q){return!!q.headerBackgroundImage};
_.g.computeLayoutStyle_=function(q){return q};
_.g.computePopupSize_=function(q){return q};
_.g.computeIconType_=function(q){return q.dialogIcon&&q.dialogIcon.iconType?q.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":q.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":q.dialogIcon.iconType:""};
_.g.computeIsLogo_=function(q){return!!q.dialogIcon&&!!q.dialogIcon.iconType&&(q.dialogIcon.iconType==="YOUTUBE_LOGO"||q.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||q.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.g.computeHasCustomLogo=function(q){return!(q==null||!q.headerForegroundImage)};
_.g.computeCustomLogo=function(q,N){if(q!=null&&q.headerForegroundImage)return q.headerForegroundImageDark?N?q.headerForegroundImageDark:q.headerForegroundImage:q.headerForegroundImage};
_.g.computeHeaderBackgroundImage=function(q,N){if(q!=null&&q.headerBackgroundImage)return N&&(q==null?0:q.headerBackgroundImageDark)?q.headerBackgroundImageDark:q.headerBackgroundImage};
_.g.shouldShowIconContainer=function(q,N){return q&&!N};
_.g.shouldShowNonYouTubeIcon=function(q,N){return!q&&!N};
_.g.getLogoImageId=function(q){var N,b,y;return(q=(N=this.computeCustomLogo(q,this.isDarkTheme))==null?void 0:(b=N.thumbnails)==null?void 0:(y=b[0])==null?void 0:y.height)&&q%31===0?"custom-logo-with-padding":"custom-logo"};
K2.prototype.openPopupHandler_=K2.prototype.openPopupHandler_;K2.prototype.dataChanged_=K2.prototype.dataChanged_;_.p([_.O(_.rT.YtRendererstamperBehavior),_.P("design:type",Object)],K2.prototype,"ytRendererstamperBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.P("design:type",Boolean)],K2.prototype,"isDarkTheme",void 0);
_.p([_.U({computed:"computeCustomLogo(data, isDarkTheme)"}),_.P("design:type",Object)],K2.prototype,"customLogo",void 0);_.p([_.U({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.P("design:type",Object)],K2.prototype,"headerBackgroundImage",void 0);_.p([_.U(),_.P("design:type",Object)],K2.prototype,"data",void 0);_.p([_.U({computed:"computeHasHeader_(data)"}),_.P("design:type",Boolean)],K2.prototype,"hasHeader",void 0);
_.p([_.U({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.P("design:type",Object)],K2.prototype,"layoutStyle",void 0);_.p([_.U({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.P("design:type",Object)],K2.prototype,"popupSize",void 0);_.p([_.U({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],K2.prototype,"hasLogo",void 0);
_.p([_.U({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],K2.prototype,"hasCustomLogo",void 0);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K2.prototype,"dataChanged_",null);_.p([_.ZP("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],K2.prototype,"openPopupHandler_",null);
_.p([_.Ok({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],K2);
_.a(K2,"yt-upsell-dialog-renderer",function(){if(cMW===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;dFC===void 0&&(dFC=document.createElement("template"));var y=dFC;b.call(N,y.content.cloneNode(!0),q.content.firstChild);cMW=q}q=cMW;return q},{mode:2});var uba=_.n(function(q){return _.u("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.u(_.t,{cond:q.title,then:function(N){return _.u("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},N)}}))},"Dj"),zKc=_.n(function(q){return _.u("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.u(_.zS,{data:q.closeButton},{buttonViewModel:function(N){return _.u("div",null,_.u(_.Ou,{data:N.data}))}}))},"Ej"),$Fa=_.n(function(q){var N=q.data;
return _.u(_.rV,null,_.u("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.u("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.u(_.t,{cond:function(){return!!N().image&&!!N().title},
then:function(){return _.u(_.s_,{data:function(){return N().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.u("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.u(_.t,{cond:function(){return N().title},
then:function(b){return _.u("h3",{class:"miniAppGameInfoDialogViewModelTitle"},b)}}),_.u(_.t,{cond:function(){return N().primaryGenre},
then:function(b){return _.u("span",{class:"miniAppGameInfoDialogViewModelGenre"},b)}}))),_.u(_.t,{cond:function(){var b=N().description;
return b&&b.length<=150},
then:function(){return _.u("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.u("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return N().description}))}}))},"Fj"),t8A=_.n(function(q){q=q.infoRows;
var N=_.tz().resolve(_.XB),b=_.x("enable_displaying_ppn");return _.u("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.u(_.Tf,{each:q},function(y){return _.u("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.u(_.t,{cond:function(){return y.label},
then:function(J){return _.u("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},J)}}),_.u(_.t,{cond:function(){return y.attributedLabel},
then:function(J){return _.u("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.u(_.Zc,{text:J,noPreWrap:!0}))}}),_.u(_.t,{cond:function(){return y.value},
then:function(J){return _.u("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},J)}}),_.u(_.t,{cond:function(){return y.attributedValue},
then:function(J){return _.u("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.u(_.Zc,{text:J,noPreWrap:!0}))}}))}),_.u(_.t,{cond:function(){return b&&N.clientData.has("post_play_nonce")},
then:function(){return _.u("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.u("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.u("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},N.getData("post_play_nonce")))}}))},"Gj"),mFp=_.n(function(q){var N=q.data;
return _.u("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.u(uba,{title:function(){return N().dialogTitle}}),_.u($Fa,{data:N}),_.u(_.t,{cond:function(){return N().infoRow},
then:function(b){return _.u(t8A,{infoRows:b})}}),_.u(zKc,{closeButton:function(){return N().closeButton}}))},"Hj");
mFp.idomCompat=!0;_.P$(mFp,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.F5}});_.P$(_.n(function(q){var N=q.data;return _.u("yt-gulp-triggering-dialog-view-model",{class:_.NO("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.u(_.s_,{data:function(){return N().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.u("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.u("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.u("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.u(_.Zc,{text:function(){return N().title}})),_.u(_.t,{cond:function(){return N().bodyText},
then:function(b){return _.u(_.Tf,{each:b},function(y){return _.u("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.u(_.Zc,{text:y}))})}})),_.u("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.u(_.zS,{data:function(){return N().dismissButton}},{buttonViewModel:function(b){return _.u("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.u(_.Ou,{data:b.data}))}}),_.u(_.zS,{data:function(){return N().actionButton}},{buttonViewModel:function(b){return _.u("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.u(_.Ou,{data:b.data}))}}))))},"Ij"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.F5}});var rMW=_.n(function(q){var N=q.data;q=_.aU(function(){return N().agreements},[]);
return _.u("installment-agreements-view-model",{class:_.NO("ytInstallmentAgreementsViewModelHost")},_.u(_.Tf,{each:q},function(b){return _.u("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.u("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.u(_.Zc,{text:b.label})),_.u("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.u(_.zS,{data:function(){return b.openButton}},{buttonViewModel:_.Ou})))}))},"Jj");
rMW.idomCompat=!0;var XSA=_.n(function(q){var N=_.Z(_.gJ(function(){var M,qe;return((M=q.data().createPlaylistDialogFormSchema)==null?0:(qe=M.initialValues)==null?0:qe.title)?q.data().createPlaylistDialogFormSchema.initialValues.title:""})),b=N.next().value,y=N.next().value;
N=_.Z(_.gJ(function(){q.data();return!1}));
var J=N.next().value,E=N.next().value;N=_.Z(_.gJ(function(){q.data();return!1}));
var F=N.next().value,R=N.next().value;N=_.Z(_.gJ(function(){var M,qe;return(M=q.data().createPlaylistDialogFormSchema)==null?void 0:(qe=M.initialValues)==null?void 0:qe.visibility}));
var c=N.next().value,z=N.next().value;N=_.Z(_.gJ(function(){q.data();return!1}));
var m=N.next().value,r=N.next().value;N=_.Z(_.gJ(function(){var M,qe;return(M=q.data().createPlaylistDialogFormSchema)==null?void 0:(qe=M.initialValues)==null?void 0:qe.isCollaborative}));
var X=N.next().value,V=N.next().value,G=_.dI("div");_.Sx(function(){var M=G.value.querySelector("textarea");M&&(M.value=b())},"axFRaf");
_.WC(function(){var M;_.fmB((M=q.data().createPlaylistDialogFormSchema)==null?void 0:M.id,{onSubmit:function(){var qe=b();var RJ=c(),tZ=X(),wA=q.data();qe={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:qe,privacyStatus:RJ,videoIds:wA.videoIds,sourcePlaylistId:wA.sourcePlaylistId,params:tZ?wA.createPlaylistParamsCollaborationEnabled:wA.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.tz().resolve(_.rO).resolveCommand(qe)},
isValid:function(){return J()&&!F()&&!m()}})});
var w=function(M){if(M!==void 0&&(y(M),!J()&&M.length>0&&E(!0),J())){var qe=ucf(q.data());if(qe){var RJ=qe.minLength;qe=qe.maxLength;RJ&&M.length<RJ?R(!0):qe&&M.length>qe?R(!0):R(!1)}}},D=function(){var M=!(!X()||c()!=="PRIVATE");
r(M)},k=function(M){M!==void 0&&(z(M),D())},f=function(){if(m())return $QB(q.data())},L=function(){V(!X());
D()},S=function(){return{validate:function(M){if(J()){var qe=ucf(q.data());
if(qe){var RJ=qe.minLength;qe=qe.translations;if(RJ&&M.length<RJ)return qe==null?void 0:qe.minLengthErrorMessage}}}}},W=function(){var M=ucf(q.data()),qe=M==null?void 0:M.maxLength,RJ;
M=M==null?void 0:(RJ=M.translations)==null?void 0:RJ.maxLengthErrorMessage;if(qe&&M)return{maxChars:qe,errorMessage:M}};
return _.u("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.u("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:G},_.u(_.zS,{data:function(){return q.data().playlistTitle}},{textFormFieldViewModel:function(M){return _.u(_.SRU,{data:M.data,
text:b,onInput:w,validation:S,characterLimit:W})},
textFieldViewModel:function(M){return _.u(_.aCC,{data:M.data,text:b,onInput:w,validation:S,characterLimit:W})}})),_.u("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.u(_.zS,{data:function(){return q.data().playlistVisibility}},{dropdownViewModel:function(M){return _.u(_.HDA,{data:M.data,
onSelected:k,error:f})}})),_.u(_.t,{cond:function(){return!!q.data().playlistCollaborate},
then:function(){return _.u("div",null,_.u(_.zS,{data:function(){return q.data().playlistCollaborate}},{switchListItemViewModel:function(M){return _.u(_.GgJ,{data:M.data,
onTap:L})}}))}}))},"Lj");var V8K=_.n(function(q){var N=q.data;return _.u("upsell-offer-table-cell-content-view-model",null,_.u("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.u(_.sw,null,_.u(_.CI,{when:function(){return N().iconType}},function(){return _.u("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.u(_.FQ,{icon:function(){return N().iconType.toString()}}))}),_.u(_.CI,{when:function(){return N().title}},function(){return _.u(_.Zc,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return N().title}})}),_.u(_.CI,{when:function(){return N().subtitle}},function(){return _.u(_.Zc,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return N().subtitle}})}),_.u(_.CI,{when:function(){return N().infoText}},function(){return _.u(_.Zc,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return N().infoText}})}),_.u(_.CI,{when:function(){return N().featureDescription}},function(){return _.u(_.Zc,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return N().featureDescription}})}),_.u(_.CI,{when:function(){return N().note}},function(){return _.u(_.Zc,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return N().note}})}))))},"Mj");
V8K.idomCompat=!0;var j7C=_.n(function(q){var N=q.data;return _.u("upsell-offer-table-cell-view-model",null,_.u("div",{class:_.NO("ytUpsellOfferTableCellViewModelCellWrapper",function(){return N().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":N().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.u(_.zS,{data:function(){return N().contents}},{upsellOfferTableCellContentViewModel:V8K})))},"Nj");
j7C.idomCompat=!0;var xFB=_.n(function(q){var N=q.data;var b=q.upsellTableIsFirstRow;var y=function(){return(b==null?0:b())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},J=function(){return(b==null?0:b())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.u("ytm-upsell-offer-table-row-view-model",null,_.u("div",{class:function(){return(b==null?0:b())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"}},_.u(_.zS,{data:function(){return N().rowHeaderCell}},{upsellOfferTableCellViewModel:function(E){return _.u("div",{class:y},_.u(j7C,{data:E.data}))}}),_.u("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.u(_.zS,{data:function(){return N().contentCells}},{upsellOfferTableCellViewModel:function(E){return _.u("div",
{class:J},_.u(j7C,{data:E.data}))}}))))},"Oj");
xFB.idomCompat=!0;var vdc=_.n(function(q){var N=q.data;return _.u("ytm-upsell-offer-table-view-model",null,_.u("div",{class:"ytUpsellOfferTableViewModelHost"},_.u("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.u(_.zS,{data:function(){return N().rows}},{upsellOfferTableRowViewModel:function(b,y){return _.u(xFB,{data:b.data,
upsellTableIsFirstRow:function(){return y()===0}})}}))))},"Pj");
vdc.idomCompat=!0;var GZB=_.n(function(q){var N=function(){return q.data()},b=_.aU(q.noPadding,!1),y=function(){var E,F;
return(F=(E=N().logo.accessibilityData)==null?void 0:E.label)!=null?F:""},J={};
return _.u("upsell-view-model",{class:_.NO("ytUpsellViewModelHost",(J.ytUpsellViewModelHostNoPadding=function(){return b()},J.ytUpsellViewModelHostWide=function(){return N().offerTable!==void 0},J))},_.u("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.u(_.t,{cond:function(){return _.ke(N().logo)},
then:function(E){return _.u(_.s_,{data:E,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:y})}})),_.u("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.u(_.Zc,{text:function(){return N().title}})),_.u("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.u(_.Tf,{each:function(){var E;
return(E=N().subtitles)!=null?E:[]},
keyBy:"INDEX"},function(E){var F={};return _.u("div",{class:_.NO("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(F.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return N().offerTable!==void 0},F))},_.u(_.Zc,{text:E}))})),_.u("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.u(_.Tf,{each:function(){var E;
return(E=N().benefitInfos)!=null?E:[]},
keyBy:"INDEX"},function(E){return _.u(_.t,{cond:function(){return E().info},
then:function(F){return _.u("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.u(_.FQ,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.u(_.Zc,{text:F}))}})})),_.u(_.t,{cond:function(){return N().offerTable!==void 0},
then:function(){return _.u("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.u(_.zS,{data:function(){return N().offerTable}},{upsellOfferTableViewModel:function(E){return _.u(vdc,{data:E.data})}}))}}),_.u("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.u(_.Tf,{each:function(){var E;
return(E=N().legalInfos)!=null?E:[]},
keyBy:"INDEX"},function(E){var F={};return _.u("div",{class:_.NO("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(F.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return N().offerTable!==void 0},F))},_.u(_.Zc,{text:E}))})))},"Qj");var YgC=_.n(function(q){var N=q.data;q={};q=(q.ytMiniAppScoreChallengeViewModelScoreRadial=!0,q.ytMiniAppScoreChallengeViewModelDarkScoreRadial=tEB(),q);return _.u("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.u("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return N().title}),_.u("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return N().subtitle}),_.u("div",{class:_.jz(q)},_.u("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return N().score})),_.u("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return N().prompt}))},"Rj");var Q7a=function(){this.store=_.sk();this.formId=""};
Q7a.prototype.onInit=function(q){q.formId&&(this.formId=q.formId,this.store.dispatch(_.B3({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var Ohp=_.n(function(q){function N(R){if(R&&(R=_.v(R,_.mI)))return Object.assign({},R,{isSelected:E()})}
var b=_.Z(_.gJ(function(){var R,c;return(c=(R=_.v(q.data().option,_.mI))==null?void 0:R.isSelected)!=null?c:!1})),y=b.next().value,J=b.next().value,E=y;
_.WC(function(){var R;_.fmB((R=q.data().formSchema)==null?void 0:R.id,{onSubmit:function(){var c=_.tz().resolve(_.rO),z=!!q.data().selectedCommand,m=!!q.data().unselectedCommand;if(E()){if(z)var r=q.data().selectedCommand}else m&&(r=q.data().unselectedCommand);r=_.O_(r);N(q.data().option)&&!r?(c="",!z&&m?c="selected ":z&&!m&&(c="unselected "),z=new _.IO("No "+c+"command found for SelectionListItemFormViewModel"),_.po(z)):r&&c.resolveCommand(r)},
isValid:function(){return!0}})});
var F=function(){J(!E())};
_.W1(function(){var R,c,z=(R=q.data())==null?void 0:(c=R.formSchema)==null?void 0:c.id;z&&_.cG()().delete(z)});
return _.u("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.u("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.u(_.Zc,{text:function(){return q.data().paragraph}})),_.u(_.t,{cond:function(){return N(q.data().option)},
then:function(R){return _.u(_.R1,{data:R,isCompact:!0,hideSelectionTextChevron:!0,onTap:F,disableHorizontalPadding:!0})}}))},"Sj");var wSX=_.n(function(q){var N=q.data;var b=q.disablePadding;var y=q.className;var J=_.dI("yt-dialog-header-view-model"),E=function(){var R=N().imageBanner;a:switch(N().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var c="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:c="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:R,style:c,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},F=function(){return N().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.WC(function(){var R=function(){_.By(J.value,"yt-refit-popups-action")},c;
(c=J.value)==null||c.addEventListener("image-loaded",R);_.W1(function(){var z;(z=J.value)==null||z.removeEventListener("image-loaded",R)})});
q={};return _.u("yt-dialog-header-view-model",{el:J,class:_.NO(y,(q.ytDialogHeaderViewModelHost=!0,q.ytDialogHeaderViewModelHostDisablePadding=b,q))},_.u(_.t,{cond:function(){return N().imageBanner},
then:function(){var R={};return _.u("div",{class:_.NO(y,(R.ytDialogHeaderViewModelBanner=!0,R.ytDialogHeaderViewModelBannerFullBleed=F,R)),style:_.ZU({"max-height":function(){return N().assetContainerMaxHeight!==void 0?N().assetContainerMaxHeight+"px":void 0}})},_.u(_.wK,{data:E,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.u(_.t,{cond:function(){return N().headerBlock},
then:function(){return _.u("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.u(_.zS,{data:function(){return N().headerBlock}},{contentPreviewImageViewModel:function(R){return _.u(_.wK,{data:R.data,
notifyOnLoaded:!0})}}))}}),_.u(_.t,{cond:function(){return N().customBanner},
then:function(R){return _.u("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.u(_.zS,{data:R},{avatarStackViewModel:_.Nw}))}}),_.u(_.t,{cond:function(){return N().headline},
then:function(R){return _.u("h2",null,_.u(_.Zc,{text:R,className:"ytDialogHeaderViewModelText"}))}}))},"Tj");
wSX.idomCompat=!0;var ihf=_.n(function(q){var N=_.uGz(function(){return q.data().formId}),b=N.submitForm,y=N.isValid;
return _.u("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.u(_.zS,{data:function(){return q.data().panelFooter}},{panelFooterViewModel:function(J){return _.u(_.Ch,{data:J.data,
disablePadding:!0,disablePrimaryButton:function(){return!y()},
onClickPrimaryButton:function(){b()}})}}))},"Uj");var lSa=_.n(function(q){var N=function(){var b,y;return(y=(b=_.v(q.data().rendererContext,_.$A))==null?void 0:b.label)!=null?y:""};
return _.u("yt-dialog-image-content-view-model",{class:_.NO("ytDialogImageContentViewModelHost",q.className)},_.u(_.t,{cond:function(){return _.ke(q.data().image)},
then:function(b){var y={};return _.u("div",{style:_.ZU((y.width=(0,_.gW)(function(){var J;return(J=q.data().imageMaxWidth)!=null?J:""}),y)),
class:"ytDialogImageContentViewModelImage"},_.u(_.s_,{data:b,alt:N,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.u(_.Zc,{text:function(){return q.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Vj");var hKp=_.n(function(q){var N=_.Sl(q,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),b=N.elRefCallback;q=N.Icon;var y=N.Asset,J=N.assetType,E=N.Title,F=N.LeadingActionHeader,R=N.TrailingActionHeader,c=N.headerPosition,z=N.Content,m=N.buttonLayout,r=N.buttonStyle,X=N.primaryButtonWiz,V=N.secondaryButtonWiz,G=N.contentAlignment,w=N.isFullscreen,D=N.width,k=N.maxHeight,f=N.isHeaderWizDefined,L=N.Header,S=N.isFooterWizDefined,
W=N.Footer;N=_.dI("dialog-layout",function(IJ){b==null||b(IJ)});
var M=X?function(){var IJ={};return X({buttonOverrides:function(){return{style:(r==null?void 0:r())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.NO((IJ["yt-spec-dialog-layout__dialog-layout-button"]=!0,IJ["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(m==null?void 0:m())===0||(m==null?void 0:m())===2},IJ))})}:void 0,qe=V?function(){var IJ={};
return V({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.NO((IJ["yt-spec-dialog-layout__dialog-layout-button"]=!0,IJ["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(m==null?void 0:m())===0||(m==null?void 0:m())===2},IJ))})}:void 0,RJ=function(){return(!!E||!!F||!!R)&&c()===0},tZ={},wA={},rA={},xD={};
return _.u("dialog-layout",{el:N,class:_.NO((tZ["yt-spec-dialog-layout"]=!0,tZ["yt-spec-dialog-layout--dialog-layout-fullscreen"]=w,tZ["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!w()},tZ["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return k()===1},tZ["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(J==null?void 0:J())===1},tZ)),
style:function(){return(D==null?void 0:D())!==void 0?"width: "+D()+"px;":""}},q?_.u("div",{class:_.NO((wA["yt-spec-dialog-layout__dialog-layout-icon"]=!0,wA["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!y&&c()===1},wA["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return G()===1},wA))},_.u(q,null)):null,_.u(_.t,{cond:f,
then:function(){return L?_.u("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.u(L,null)):null},
else:function(){return _.u(_.rV,null,_.u(_.t,{cond:RJ,then:function(){return _.u(KDW,{contentAlignment:G,LeadingActionHeader:F,TrailingActionHeader:R,Title:E,isAboveAsset:!!y})}}),y?_.u("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.u(y,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.u("div",{class:_.NO((rA["yt-spec-dialog-layout__dialog-layout-container"]=!0,rA["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(G==null?void 0:G())===1},
rA["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!E&&!(L&&f())||!!y&&(c==null?void 0:c())===0},rA))},_.u(_.t,{cond:function(){return E&&!L&&(c==null?void 0:c())===1},
then:function(){return _.u(KDW,{contentAlignment:G,LeadingActionHeader:F,TrailingActionHeader:R,Title:E,isAboveAsset:!1})}}),z?_.u("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.u("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.u(z,null))):null,_.u(_.t,{cond:S,
then:function(){return W?_.u("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.u(W,null)):null}}),M||qe?_.u(DFB,{footerClasses:_.NO((xD["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,xD["yt-spec-dialog-layout__dialog-layout-footer"]=!0,xD["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(m==null?void 0:m())===2},xD["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(m==null?void 0:m())===1},xD)),
PrimaryButton:M,SecondaryButton:qe}):null))},"Wj"),KDW=_.n(function(q){var N=_.Sl(q,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),b=N.contentAlignment,y=N.LeadingActionHeader;q=N.Title;var J=N.TrailingActionHeader,E=N.isAboveAsset,F=N.enableLeadingActionHeader;N={};return _.u("div",{class:_.NO((N["yt-spec-dialog-layout__dialog-header-container"]=!0,N["yt-spec-dialog-layout__dialog-header"]=!0,N["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=E,N["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(b==null?void 0:b())===1&&F()},N))},_.u(_.t,{cond:function(){return F()},
then:function(){return y?_.u("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.u(y,null)):null}}),q?_.u("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.u(q,null)):null,J?_.u("div",null,_.u(J,null)):null)},"Xj"),DFB=_.n(function(q){var N=q.footerClasses;
var b=q.PrimaryButton;q=q.SecondaryButton;return _.u("div",{class:N},q?_.u(q,null):null,b?_.u(b,null):null)},"Yj");var kZC=_.n(function(q){var N=q.data;return _.u("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.u("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.u(_.zS,{data:function(){return N().avatar}},{avatarViewModel:_.HF})),_.u("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.u(_.Zc,{text:function(){return N().title}})),_.u(_.Zc,{text:function(){return N().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Zj");var UFA=_.n(function(q){return _.u("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.u(_.Zc,{text:function(){return q.data().inviteMessage}})),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.u(_.Zc,{text:function(){return q.data().attributedAccountSectionHeaderText}})),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.u(_.zS,{data:function(){return q.data().accountAvatar}},{avatarViewModel:_.HF}),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.u(_.Zc,{text:function(){return q.data().accountName}}),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.u(_.Zc,{text:function(){return q.data().handle}}))),_.u(_.zS,{data:function(){return q.data().trailingButton}},{buttonViewModel:_.Ou})),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.u(_.Zc,{text:function(){return q.data().termsOfService}})))},"$j");var fSW=_.n(function(q){var N=q.data;return _.u("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.u("div",{class:"ytAccessConfirmationViewModelContent"},_.u(_.zS,{data:function(){var b;return(b=N().avatar)!=null?b:N().dualAvatar}},{dualAvatarViewModel:function(b){return _.u(_.z_U,{data:b.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(b){return _.u(_.qw,{data:b.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.u("h2",{class:"ytAccessConfirmationViewModelTitle"},_.u(_.Zc,{text:function(){return N().title}})),_.u(_.Zc,{text:function(){return N().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"ak");var CaX=_.n(function(q){var N=q.data;var b=void 0;q=_.Z(_.gJ(function(){var z;return((z=_.v(N().content,_.gr))==null?void 0:z.defaultSelectedKey)||""}));
var y=q.next().value,J=q.next().value,E,F=function(){J("");var z;(z=b)!=null&&z.store.dispatch(_.B3({type:"RESET_COMMAND_MAP"}))};
_.WC(function(){b=new Q7a;window.addEventListener("yt-popup-closed",F)});
_.Sx(function(){if(b&&E!==N().formId&&(b.onInit(N()),(E=N().formId)&&y())){var z=b,m={key:y()};m.command&&z.store.dispatch(FSa(E,m.command))}},"c2n8Gf");
_.W1(function(){window.removeEventListener("yt-popup-closed",F)});
var R=function(z,m,r){m.key&&r&&m.key!==y()&&(J(m.key),b&&m.command&&b.store.dispatch(FSa(r,m.command)))},c=function(){if(_.v(N().content,_.gr))return!(y==null?0:y())};
return _.u("yt-dialog-view-model",{class:_.NO("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.u(hKp,{Header:function(){return _.u(_.zS,{data:function(){return N().header}},{dialogHeaderViewModel:function(z){return _.u(wSX,{data:z.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!N().header},
Content:function(){return _.u(_.zS,{data:function(){return N().customContent?N().customContent:N().content}},{basicContentViewModel:_.zGR,
createPlaylistDialogFormViewModel:XSA,collaborativePlaylistInviteMessageViewModel:UFA,miniAppScoreChallengeViewModel:YgC,radioButtonGroupViewModel:function(z){var m=z.data;return _.u(_.ICA,{data:m,selectedKey:y,onSelected:R,groupName:function(){return m().formId}})},
selectionListItemFormViewModel:Ohp,upsellViewModel:function(z){return _.u(GZB,{data:z.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:kZC,installmentAgreementsViewModel:rMW,accessConfirmationViewModel:fSW,listViewModel:function(z){return _.u(_.Dpo,{data:z.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:lSa})},
Footer:function(){return _.u(_.zS,{data:function(){return N().footer}},{panelFooterViewModel:function(z){return _.u(_.Ch,{data:z.data,
disablePadding:!0,disablePrimaryButton:c})},
formPanelFooterViewModel:ihf,formFooterViewModel:function(z){return _.u(_.Qox,{data:z.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!N().footer}}))},"ck");
CaX.idomCompat=!0;_.P$(CaX,"yt-dialog-view-model",{props:{data:_.F5},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var ISa=_.n(function(q){var N=q.data;return _.u("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.u(_.t,{cond:function(){return N().title},
then:function(b){return _.u("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.u(_.Zc,{text:b,className:"ytPanelHeaderViewModelTitle"}))}}),_.u(_.t,{cond:function(){return N().subtitle},
then:function(b){return _.u(_.Zc,{text:b,className:"ytPanelHeaderViewModelSubtitle"})}}))},"dk"),Trf=_.n(function(q){var N=q.data;
var b=_.Wpn(function(){return N().rendererContext});
q={};return _.u("yt-panel-header-view-model",{class:_.NO("ytPanelHeaderViewModelHost",(q.ytPanelHeaderViewModelHostHideDivider=function(){return!!N().shouldHideDivider},q.ytPanelHeaderViewModelHostCompact=function(){return!!N().subtitle},q)),
"aria-label":function(){var y;return(y=b())==null?void 0:y.label}},_.u(_.t,{cond:function(){return _.Ye(N().rendererContext)},
then:function(){return _.u(_.$pT,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.GS(N().rendererContext)}},_.u(ISa,{data:N}))},
else:function(){return _.u(ISa,{data:N})}}),_.u("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.u(_.zS,{data:function(){return N().trailingButtons}},{buttonViewModel:function(y){return _.u(_.Ou,{data:y.data,
className:"ytPanelHeaderViewModelButton"})}})))},"ek");
Trf.idomCompat=!0;var s7p=_.n(function(q){var N=_.y0(function(E){var F;if((F=q.skipContentClick)==null?0:F.call(q))return!1;q.onContentWrapperClick(E);return!0}),b,y,J;
return _.u("div",{class:_.NO("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return q.isAnimating()?"transform: translateY("+q.currentY()+"px);transition: 0.2s":""}},(b=q.header)==null?void 0:b.call(q),_.u("div",{id:q.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.ZU({"max-height":(0,_.gW)(q.maxHeightForContentWrapper)}),"on:scroll":_.y0(function(E){return q.onScroll(E),!1}),
"on:touchmove":_.y0(function(E){return E.stopPropagation(),!1})},_.u("div",{el:_.ai(q.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":N},(y=q.body)==null?void 0:y.call(q))),(J=q.footer)==null?void 0:J.call(q))},"fk");
s7p.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var ndx=_.n(function(q){var N=_.aU(q.leadingLabel),b=_.aU(q.trailingLabel),y=_.aU(q.footerButtonType),J=function(){return N()||b()||q.hasPrimaryButton()||q.hasSecondaryButton()},E={},F=_.NO("yt-spec-bottom-sheet-layout__primary-button",(E["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return y()===0&&q.hasPrimaryButton()},E["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return y()===1&&q.hasPrimaryButton()},E["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return y()===2&&q.hasPrimaryButton()},E["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return y()===3&&q.hasPrimaryButton()},E));
E={};var R=_.NO("yt-spec-bottom-sheet-layout__secondary-button",(E["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return y()===1&&q.hasSecondaryButton()},E["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return y()===2&&q.hasSecondaryButton()},E["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return y()===3&&q.hasPrimaryButton()},E));
return _.u(_.t,{cond:q.hasFooterOverride,then:function(){var c;return _.u(_.rV,null,(c=q.footerOverride)==null?void 0:c.call(q))},
else:function(){return _.u(_.t,{cond:J,then:function(){return _.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.u(_.t,{cond:function(){return N()||b()},
then:function(){var c={};return _.u("div",{class:_.NO("yt-spec-bottom-sheet-layout__footer-label-wrapper",(c["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!q.hasPrimaryButton()},c))},_.u(_.t,{cond:N,
then:function(){return _.u("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},N)}}),_.u(_.t,{cond:b,
then:function(){return _.u("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},b)}}))}}),_.u(_.t,{cond:function(){return q.hasPrimaryButton()||q.hasSecondaryButton()},
then:function(){var c={};return _.u("div",{class:_.NO("yt-spec-bottom-sheet-layout__footer-button-wrapper",(c["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.Rc4,c))},_.u(_.t,{cond:function(){return q.hasSecondaryButton()&&y()!==0},
then:function(){var z;return _.u("div",{class:R},(z=q.secondaryButton)==null?void 0:z.call(q))}}),_.u(_.t,{cond:q.hasPrimaryButton,
then:function(){var z;return _.u("div",{class:F},(z=q.primaryButton)==null?void 0:z.call(q))}}))}}))}})}})},"gk");
ndx.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var aSx=_.n(function(q){var N=_.aU(q.title),b=_.aU(q.subtitle);return _.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:q.headerId,"on:touchstart":_.y0(function(y){var J;(J=q.touchstart)==null||J.call(q,y);return!1}),
"on:touchmove":_.y0(function(y){var J;(J=q.touchmove)==null||J.call(q,y);return!1}),
"on:touchend":_.y0(function(y){var J;(J=q.touchend)==null||J.call(q,y);return!1})},_.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.u(_.t,{cond:q.hasHeaderOverride,
then:function(){var y;return _.u(_.rV,null,(y=q.headerOverride)==null?void 0:y.call(q))},
else:function(){var y={};return _.u("div",{class:_.NO((y["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,y["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=N,y))},_.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.u(_.t,{cond:N,then:function(){return _.u(_.rV,null,_.u("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},N),_.u(_.t,{cond:b,then:function(){return _.u("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
b)}}))}})),_.u(_.t,{cond:function(){return N()&&q.hasActionHeader()},
then:function(){var J;return _.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(J=q.actionHeader)==null?void 0:J.call(q))}}))}}))},"hk");
aSx.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.n(function(q){function N(RJ){if(!L&&typeof MutationObserver!=="undefined"){var tZ={childList:!0};"MutationObserver"in window&&(L=new MutationObserver(b.bind(void 0,RJ)),L.observe(RJ,tZ))}}
function b(RJ){typeof L!=="undefined"&&(S["content-wrapper"]===void 0&&(S["content-wrapper"]=RJ.children[0].clientHeight),w(S["content-wrapper"]),G()>D()||k(G()))}
function y(){V(window.innerHeight);G()>D()||k(G());W.isFullScreen[0]()&&G()>D()?M().dispatch("Snap To Full Screen",{maxHeight:f()}):M().dispatch("Snap To Neutral Position",{maxHeight:D()})}
function J(RJ){document.body.style.overscrollBehavior="none";RJ.preventDefault();M().dispatch("Touch Start",{event:RJ})}
function E(RJ){RJ.preventDefault();M().dispatch("Touch Move",{event:RJ,contentScrollable:G()>D(),fullContentWrapperHeight:f(),contentWrapperHeight:D(),heightMap:S,contentWrapperId:"content-wrapper",header:jYW(q),footer:jYW(q),headerDivHeight:S["bottom-sheet-header"],footerDivHeight:S["bottom-sheet-footer"]})}
function F(){document.body.style.overscrollBehavior="";W.isFullScreen[0]()?W.currentY[0]()>=60?M().dispatch("Snap To Neutral Position",{maxHeight:D()}):M().dispatch("Snap To Full Screen",{maxHeight:f()}):W.currentY[0]()>=60?R():W.currentY[0]()<=-60&&G()>D()?M().dispatch("Snap To Full Screen",{maxHeight:f()}):M().dispatch("Snap To Neutral Position",{maxHeight:D()})}
function R(){M().dispatch("Close Sheet",{clientHeight:X(),maxHeight:0});setTimeout(function(){VEa()},250)}
var c=_.dI("div"),z=_.dI("div"),m=_.Z(_.QS(window.innerHeight,void 0,"CmOsU")),r=m.next().value;m=m.next().value;var X=r,V=m;m=_.Z(_.QS(0,void 0,"p0Flhb"));r=m.next().value;m=m.next().value;var G=r,w=m;m=_.Z(_.gJ(function(){var RJ=jYW(q);return.6*X()-mQK(RJ)-rxa(RJ)}));
r=m.next().value;m=m.next().value;var D=r,k=m,f=function(){var RJ=jYW(q),tZ=X(),wA=S["bottom-sheet-header"],rA=S["bottom-sheet-footer"];return tZ-(RJ.hasHeaderFn&&wA!==void 0?wA:mQK(RJ))-(RJ.hasFooterFn&&rA!==void 0?rA:rxa(RJ))-24-24},L=null,S={},W={initialY:_.QS(0,void 0,"sxdESd"),
currentY:_.QS(0,void 0,"GZzqeb"),isAnimating:_.QS(!1,void 0,"vJBupc"),isFullScreen:_.QS(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.gJ(D)},M=function(){var RJ=null;return function(){if(!RJ){var tZ={initialY:W.initialY[0](),currentY:W.currentY[0](),isAnimating:W.isAnimating[0](),isFullScreen:W.isFullScreen[0](),maxHeightForContentWrapper:W.maxHeightForContentWrapper[0]()};RJ=XEc(tZ)}return RJ}}();
_.WC(function(){window.addEventListener("resize",y);M().subscribe(function(RJ){W.initialY[1](RJ.initialY);W.currentY[1](RJ.currentY);W.isAnimating[1](RJ.isAnimating);W.isFullScreen[1](RJ.isFullScreen);W.maxHeightForContentWrapper[1](RJ.maxHeightForContentWrapper)});
requestAnimationFrame(function(){c.value&&(S["bottom-sheet-header"]=c.value.clientHeight);z.value&&(S["bottom-sheet-footer"]=z.value.clientHeight)})});
_.W1(function(){window.removeEventListener("resize",y);L&&(L.disconnect(),L=null)});
var qe=_.NO({"bottom-sheet-content-without-icon":function(){var RJ;return!((RJ=q.shouldShowIcons)==null?0:RJ.call(q))}});
return _.u("bottom-sheet-layout",null,_.u(s7p,{contentWrapperId:"content-wrapper",isAnimating:function(){return W.isAnimating[0]()},
currentY:function(){return W.currentY[0]()},
maxHeightForContentWrapper:function(){return W.maxHeightForContentWrapper[0]()},
shouldShowIcons:q.shouldShowIcons,skipContentClick:q.skipContentClick,onScroll:function(){var RJ=document.getElementById("bottom-sheet-header"),tZ=document.getElementById("content-wrapper");if(RJ&&tZ){var wA={};wA=(wA["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,wA["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,wA);RJ.className=tZ.scrollTop>1?_.jz(wA):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:VEa,contentWrapperEl:function(RJ){N(RJ);requestAnimationFrame(function(){b(RJ)})},
header:function(){return _.u("div",{el:c},_.u(aSx,{touchstart:J,touchmove:E,touchend:F,title:q.headerTitle,subtitle:q.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:q.headerFn,hasHeaderOverride:q.hasHeaderFn,actionHeader:q.headerActionHeader,hasActionHeader:q.hasHeaderActionHeader}))},
footer:function(){return _.u("div",{el:z},_.u(ndx,{footerButtonType:q.footerButtonType,leadingLabel:q.footerLeadingLabel,trailingLabel:q.footerTrailingLabel,primaryButton:q.footerPrimaryButton,hasPrimaryButton:q.hasFooterPrimaryButton,secondaryButton:q.footerSecondaryButton,hasSecondaryButton:q.hasFooterSecondaryButton,footerOverride:q.footerFn,hasFooterOverride:q.hasFooterFn}))},
body:function(){return _.u(_.t,{cond:q.hasContentFn,then:function(){var RJ;return _.u("div",{class:qe},(RJ=q.contentFn)==null?void 0:RJ.call(q))}})}}))},"ik").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var Sga=_.n(function(q){var N=_.tz().resolve(_.oQ);return _.u("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.y0(function(){return void N.closeSheet()})},_.u(_.t,{cond:function(){return!!q.header},
then:function(){return _.u("div",{class:"ytContextualSheetLayoutHeaderContainer"},q.header())}}),_.u(_.t,{cond:function(){return!!q.content},
then:function(){return _.u("div",{class:"ytContextualSheetLayoutContentContainer"},q.content())}}),_.u(_.t,{cond:function(){return!!q.footer},
then:function(){return _.u("div",{class:"ytContextualSheetLayoutFooterContainer"},q.footer())}}))},"jk");
Sga.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var WDf=_.n(function(q){var N=q.data;var b=_.tz().resolve(_.rO),y=_.dI("yt-sheet-view-model",function(J){if(_.x("web_focus_first_element_sheet")||!_.x("sheet_focus_first_killswitch"))return J.addEventListener("focus",function(){btK(J)}),function(){J.removeEventListener("focus",function(){btK(J)})}});
q={};return _.u("yt-sheet-view-model",{"on:mousedown":_.y0(function(J){_.x("sheet_focus_first_killswitch")||J.currentTarget!==J.target&&J.preventDefault()}),
"on:focus":_.y0(function(){_.x("sheet_focus_first_killswitch")||btK(y.value)}),
"on:mouseleave":_.y0(function(){var J,E=N==null?void 0:(J=N())==null?void 0:J.rendererContext,F;(J=(F=_.v(E,_.O$))==null?void 0:F.onHoverEnd)&&b.resolveCommand(J)}),
class:_.NO("ytSheetViewModelHost",(q.ytSheetViewModelContextual=!0,q.ytSheetViewModelDisableBackdropFilter=_.x("web_disable_backdrop_filter"),q)),el:y,tabindex:-1},_.u(_.t,{cond:N,then:function(J){return _.u(Sga,{header:function(){return _.u(_.zS,{data:function(){return J().header}},{panelHeaderViewModel:Trf})},
content:function(){return _.u(_.zS,{data:function(){return J().content}},{listViewModel:function(E){return _.u(_.Dpo,{data:E.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:GZB,miniAppScoreChallengeViewModel:YgC})},
footer:function(){return _.u(_.zS,{data:function(){return J().footer}},{panelFooterViewModel:_.Ch})}})}}))},"kk");
WDf.idomCompat=!0;_.P$(WDf,"yt-sheet-view-model",{props:{data:_.F5}});var pSK=_.n(function(q){var N=function(){var b;return(b=q.data().enableDebuggingFeatures)!=null?b:!1};
return _.u("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.u(_.Tf,{each:function(){var b;return(b=q.data().stickers)!=null?b:[]}},function(b){return _.u(LDd,{data:function(){return b},
debugMode:N})}))},"lk"),LDd=_.n(function(q){var N=_.Sl(q,{debugMode:!1}).debugMode,b=_.aU(function(){var c;
return(c=q.data().region)==null?void 0:c.w},0),y=_.aU(function(){var c;
return(c=q.data().region)==null?void 0:c.h},0),J=_.aU(function(){var c;
return(c=q.data().region)==null?void 0:c.x},0),E=_.aU(function(){var c;
return(c=q.data().region)==null?void 0:c.y},0),F=_.y0(function(){var c=q.data().onTap;
c&&_.Kt(c)}),R={};
return _.u("div",{class:_.NO("ytStoriesStickerLayerViewModelSticker",(R.ytStoriesStickerLayerViewModelDebugMode=N,R)),style:_.ZU({width:function(){return 100*b()+"%"},
height:function(){return 100*y()+"%"},
left:function(){return 100*J()+"%"},
top:function(){return 100*E()+"%"},
"flex-direction":function(){return xQf(q.data().flexDirection)},
"justify-content":function(){return v_W(q.data().justifyContent)},
"align-items":function(){return GmC(q.data().alignItems)}}),
"on:click":F},_.u(_.zS,{data:function(){return q.data().button||q.data().toggleButton}},{buttonViewModel:function(c){return _.u(_.Ou,{data:c.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(c){return _.u(_.LV,{data:c.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"mk");var M8f=_.n(function(q){var N=function(){return q.data()},b={},y=_.Z(_.QS(!1,void 0,"SegA3d")),J=y.next().value,E=y.next().value,F=_.aU(function(){return N().backgroundColor},0);
y=_.aU(function(){return N().actionButtons},[]);
var R=_.aU(function(){return N().stickerLayer},{}),c=function(){var m,r;
return{animationRef:b,animationConfig:{autoplay:!1,loop:!1,path:(r=(m=N().foregroundAnimation)==null?void 0:m.url)!=null?r:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){E(!0)},
complete:function(){q.navigateToNextItemOnLottieComplete()}}}},z=function(){var m,r,X,V,G,w,D,k;
return{animationConfig:{autoplay:(w=(m=N().backgroundAnimation)==null?void 0:(r=m.settings)==null?void 0:r.autoplay)!=null?w:!1,loop:(D=(X=N().backgroundAnimation)==null?void 0:(V=X.settings)==null?void 0:V.loop)!=null?D:!1,path:(k=(G=N().backgroundAnimation)==null?void 0:G.url)!=null?k:"",name:"stories_item_background_animation"}}};
_.Sx(function(){if(q.isVisible()&&J()){var m;(m=b.lottieEl)==null||m.play();q.animationRef()&&(q.animationRef().lottieEl=b.lottieEl)}else{var r;(r=b.lottieEl)==null||r.stop()}},"MxM2wb");
return _.u("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.ZU({"background-color":function(){return _.Y8(F())+";"}})},_.u("div",{class:"ytStoriesItemViewModelAssetContent"},_.u(_.t,{cond:function(){return!!N().backgroundAnimation},
then:function(){return _.u(_.h$,{data:z,animationName:function(){return z().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.u(_.t,{cond:function(){return!!N().backgroundImage},
then:function(){return _.u(_.s_,{data:function(){return N().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.u(_.t,{cond:function(){return!!N().foregroundAnimation},
then:function(){return _.u(_.h$,{data:c,animationName:function(){return c().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.u(_.t,{cond:function(){return!!N().foregroundImage},
then:function(){return _.u(_.s_,{data:function(){return N().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.u("div",{class:"ytStoriesItemViewModelTopShadow"}),_.u(_.zS,{data:function(){return R()}},{storiesStickerLayerViewModel:pSK})),_.u("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.ZU({"background-color":function(){return _.Y8(F())}})},_.u("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.u(_.Tf,{each:y},function(m){return _.u(PaB,{data:function(){return m},
pauseAutoNavigation:q.pauseAutoNavigation})}))))},"ok"),odd={style:"overlay",
type:"outline"},PaB=_.n(function(q){var N={};return _.u("div",{class:_.NO("ytStoriesItemViewModelActionButton",(N.ytStoriesItemViewModelStretchedActionButton=function(){return q.data().size==="STORIES_BUTTON_SIZE_STRETCH"},N)),
"on:click":_.y0(q.pauseAutoNavigation)},_.u(_.zS,{data:function(){return q.data().button}},{buttonViewModel:function(b){return _.u(_.Ou,{data:b.data,
buttonOverrides:odd})}}))},"pk");var AMB={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.P$(_.n(function(q){var N=function(){var rA;return(rA=q.data().startIndex)!=null?rA:0},b=_.Z(_.gJ(N)),y=b.next().value,J=b.next().value;
b=_.Z(_.QS(!1,void 0,"sjy7s"));var E=b.next().value,F=b.next().value,R=function(){var rA;return(rA=q.data().storyItems)!=null?rA:[]},c={},z=_.dI("yt-stories-viewer-view-model"),m=function(){return q.data().dismissButton},r=function(){var rA;
return _.O_((rA=_.v(m(),_.FF))==null?void 0:rA.onTap)},X=_.dI("div"),V,G,w=!1,D=function(){var rA;
(rA=V)==null||rA.cancel();V=k(y()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});V.onfinish=function(){var xD=_.v(R()[y()],olf),IJ,sJ;xD!=null&&xD.foregroundAnimation&&((xD==null?0:(IJ=xD.foregroundAnimation)==null?0:IJ.url)||(xD==null?0:(sJ=xD.foregroundAnimation)==null?0:sJ.payload))||(y()!==R().length-1?(J(y()+1),D()):r()&&_.wa(r()))}},k=function(rA){return X.value.children[rA].children[0]},f=function(){for(var rA=0;rA<y();rA++)k(rA).style.transform=
"scaleX(1)"},L=function(){w||(E()?F(!1):(y()===R().length-1&&r()&&_.wa(r()),k(y()).style.transform="scaleX(1)",y()!==R().length-1&&(J(y()+1),D())))},S=function(){w||(E()?F(!1):(k(y()).style.transform="scaleX(0)",y()!==0&&J(y()-1),D()))},W=function(){F(!0)},M=function(){k(y()).style.transform="scaleX(1)";
y()!==R().length-1?(J(y()+1),D()):r()&&_.wa(r())};
b=function(){w=!1;G=setTimeout(function(){F(!0);w=!0},300)};
var qe=function(){clearTimeout(G);w&&E()&&F(!1)};
_.Sx(function(){if(E()){var rA;(rA=V)==null||rA.pause();var xD;(xD=c.lottieEl)==null||xD.pause()}else{var IJ;(IJ=V)==null||IJ.play();var sJ;(sJ=c.lottieEl)==null||sJ.play()}},"vAvZob");
_.Sx(function(){f();y()===N()&&D()},"uSlfE");
var RJ=function(rA){rA.key==="ArrowLeft"?S():rA.key==="ArrowRight"&&L()},tZ=function(rA){if(rA.target===z.value){(rA=r())&&_.wa(rA);
clearTimeout(G);var xD;(xD=V)==null||xD.cancel();window.removeEventListener("keydown",RJ);window.removeEventListener("yt-popup-closed",tZ)}},wA=function(rA){rA.target===z.value&&(window.addEventListener("keydown",RJ),window.addEventListener("yt-popup-closed",tZ))};
_.WC(function(){f();D();window.addEventListener("yt-popup-opened",wA)});
return _.u("yt-stories-viewer-view-model",{el:z,class:_.NO("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.u("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.u("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.y0(S),"on:mousedown":_.y0(b),"on:mouseup":_.y0(qe),"on:mouseleave":_.y0(qe)}),_.u("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.y0(L),"on:mousedown":_.y0(b),"on:mouseup":_.y0(qe),"on:mouseleave":_.y0(qe)})),
_.u("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.u(_.zS,{data:R},{storiesItemViewModel:function(rA,xD){var IJ=rA.data;return _.u(_.t,{cond:function(){return Math.abs(xD()-y())<=1},
then:function(){var sJ={};return _.u("div",{class:_.NO("ytStoriesViewerViewModelStoryItem",(sJ.ytStoriesViewerViewModelActiveStoryItem=function(){return xD()===y()},sJ))},_.u(M8f,{data:IJ,
pauseAutoNavigation:W,navigateToNextItemOnLottieComplete:M,isVisible:function(){return xD()===y()},
animationRef:c}))}})}})),_.u("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:X},_.u(_.Tf,{each:R},function(){return _.u("div",{class:"ytStoriesViewerViewModelProgressBar"},_.u("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.u("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.u(_.s_,{data:AMB,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.u("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.u(_.zS,{data:function(){return q.data().muteButton}},{toggleButtonViewModel:function(rA){return _.u(_.LV,{data:rA.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.u(_.zS,{data:m},{buttonViewModel:function(rA){return _.u(_.Ou,{data:rA.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"sk"),"yt-stories-viewer-view-model",{props:{data:_.F5}});_.P$(_.n(function(q){var N=q.data;var b=_.dI("yt-gen-ai-feedback-form-view-model"),y=[];return _.u("yt-gen-ai-feedback-form-view-model",{el:b,class:"ytGenAiFeedbackFormViewModelHost"},_.u(_.Zc,{text:function(){return N().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.u("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.u(_.zS,{data:function(){return N().feedbackChips}},{toggleButtonViewModel:function(J){var E=J.data;
return _.u(_.LV,{data:E,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(F){var R=E();R=_.v(R,_.de);R=_.v(R==null?void 0:R.defaultButtonViewModel,_.FF).trackingParams;F?y.push(R):(F=y.indexOf(R),F>-1&&y.splice(F,1))}})}})),_.u(_.Zc,{text:function(){return N().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.u("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.u(_.zS,{data:function(){return N().submitButton}},{buttonViewModel:function(J){return _.u(_.Ou,{data:J.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){YqC(b.value,y,N().uniqueId)}})}}),_.u(_.zS,{data:function(){return N().moreFeedbackButton}},{buttonViewModel:function(J){return _.u(_.Ou,{data:J.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"tk"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.F5},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var DB=function(){return _.C.apply(this,arguments)||this};
_.Y(DB,_.C);DB.prototype.created=function(){FXa(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(HdB);var q=_.tz().resolve(_.luW);q&&(q.container=this.ytPopupContainerBehavior);if(q=_.tz().resolve(_.oQ))q.container=this.ytPopupContainerBehavior;if(q=_.tz().resolve(_.AP)){var N=this.ytPopupContainerBehavior;q.containerWasInjected?_.M6(Error("qj")):q.container=N}};
DB.prototype.ensurePopupBelowPlayer=function(q,N){var b=_.tz().resolve(_.$f(_.L6));if(!b||!b.isOnWatch()||!_.Pk())return!1;b=b.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.cP().height>b+this.getPopupHeight(q,N)?(q.style.top="auto",q.style.bottom="0px"):(q.style.top=b+"px",q.style.bottom="auto");return!0};
DB.prototype.getPopupHeight=function(q,N){N&&(q.cachedPopupHeight=0);if(!q.cachedPopupHeight){N=0;var b=q.clientHeight,y=window.getComputedStyle(q);N+=parseInt(y.marginTop,10);N+=parseInt(y.marginBottom,10);q.cachedPopupHeight=b+N}return q.cachedPopupHeight};
DB.prototype.getElement=function(q){return document.createElement(q)};
_.p([_.O(kXd.YtPopupContainerBehavior),_.P("design:type",Object)],DB.prototype,"ytPopupContainerBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],DB.prototype,"ytComponentBehavior",void 0);_.p([_.I({disableElementRegistration:!0,is:"ytd-popup-container"})],DB);
_.a(DB,"ytd-popup-container",function(){if(Y9K!==void 0)return Y9K;var q=document.createElement("template");_.Q(q,"\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");q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);return Y9K=q},{mode:1});var eKx;var BrA={};BrA.YtLogYpcFlowCommandsBehavior=[_.Dc.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(q){_.v(q,zeB)&&(q=_.v(q,zeB))&&(q.serializedTransactionFlowLoggingParams?_.jZh(q.serializedTransactionFlowLoggingParams):q.serializedYpcCancelFlowLoggingParams?(q=q.serializedYpcCancelFlowLoggingParams)&&_.CZ("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",q):q.serializedYpcResumeFlowLoggingParams?(q=q.serializedYpcResumeFlowLoggingParams)&&_.CZ("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",q):q.serializedYpcPauseFlowLoggingParams?(q=q.serializedYpcPauseFlowLoggingParams)&&
_.CZ("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",q):q.serializedYpcRefundFlowLoggingParams?(q=q.serializedYpcRefundFlowLoggingParams)&&hIB("YPC_EVENT_TYPE_START",q):q.serializedYpcDeactivateFlowLoggingParams?(q=q.serializedYpcDeactivateFlowLoggingParams)&&_.CZ("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",q):q.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(q=q.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.CZ("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",q))},
handleLogYpcFlowDismiss_:function(q){_.v(q,uhA)&&(q=_.v(q,uhA),q.serializedTransactionFlowLoggingParams?_.xyJ(q.serializedTransactionFlowLoggingParams):q.serializedYpcCancelFlowLoggingParams?(q=q.serializedYpcCancelFlowLoggingParams)&&_.CZ("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",q):q.serializedYpcResumeFlowLoggingParams?(q=q.serializedYpcResumeFlowLoggingParams)&&_.CZ("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",q):q.serializedYpcPauseFlowLoggingParams?(q=
q.serializedYpcPauseFlowLoggingParams)&&_.CZ("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",q):q.serializedYpcRefundFlowLoggingParams&&(q=q.serializedYpcRefundFlowLoggingParams)&&hIB("YPC_EVENT_TYPE_CANCEL",q))}}];var Hhf={};Hhf.YtCancelRecurrenceBehavior=[_.qT.YtComponentBehavior,_.EmT,{attached:function(){var q=this;pwf(this,function(N,b){return q.ypcCancelRecurrenceHandler(N,b)})},
ypcCancelRecurrenceHandler:function(q,N){var b=this;if(!N||!N.ypcCancelRecurrenceEndpoint)return!1;if(!N.ypcCancelRecurrenceEndpoint.params)return _.HC(Error("Sl")),!0;_.DI(this.hostElement);var y=_.f6.instance,J=_.tz().resolve(_.$f(_.$8));y&&_.C6(y,N)?_.IE(y,N).then(function(E){b.ypcCancelRecurrenceSuccess_(q,N,{data:E})},function(E){b.ypcCancelRecurrenceFailure_(q,N,E)}).thenCatch(function(){_.HC(Error("Tl"))}):J?J.requestDataForServiceEndpoint(N).then(function(E){b.ypcCancelRecurrenceSuccess_(q,
N,E)},function(E){b.ypcCancelRecurrenceFailure_(q,N,E)}).thenCatch(function(){_.HC(Error("Tl"))}):_.HC(Error("Ul"));
return!0},
ypcCancelRecurrenceSuccess_:function(q,N,b){_.h3(this.hostElement);b.data||(b={data:b});b.data&&b.data.actions&&_.Nc(this.hostElement,b.data.actions,this.hostElement);b.data.messageRenderer?UOa(N.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(N=N.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.CZ("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",N);_.e2(q,"yt-service-request-completed",b)},
ypcCancelRecurrenceFailure_:function(q,N,b){_.h3(this.hostElement);UOa(N.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.e2(q,"yt-service-request-error",{error:b,params:[q,N]})}}];var qcX=function(q,N){_.bn.call(this,N)};
_.Y(qcX,vcK);var NNf={};NNf.YtCompleteTransactionBehavior=[_.qT.YtComponentBehavior,_.EmT,{attached:function(){var q=this;pwf(this,function(N,b){return q.ypcCompleteTransactionHandler(N,b)})},
completeTransaction:function(q,N){var b=this;N={payments_payload:window.btoa(N.integratorData),buybucket_params:q.data.buybucketParams,offer_params:q.data.offerParams};var y=_.tz().resolve(_.$8),J=q.data.completeTransactionEndpoint,E=this.get("ypcCompleteTransactionEndpoint.actions",J);E&&_.Nc(this.hostElement,E,this.hostElement);return(E=_.f6.instance)&&_.C6(E,J)?_.IE(E,J,N).then(function(F){return!F||(F==null?0:F.error)?(F=b.get("data.serializedTransactionFlowLoggingParams",q),_.ra(new cr("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
F))):{data:F}}).then(function(F){return b.handleCompleteTransactionSuccess_(F,q)},function(){return b.handleCompleteTransactionFailure_(q)}):y.requestDataForServiceEndpoint(J,N).then(function(F){return b.handleCompleteTransactionSuccess_(F,q)},function(){return b.handleCompleteTransactionFailure_(q)})},
handleCompleteTransactionSuccess_:function(q,N){q.data||(q={data:q});if(q.data.messageRenderer)return _.ra(new qcX(q.data.messageRenderer));if(q.data.trackingParams){var b=_.Oe(),y=_.QY();b&&y&&_.fr(b,y,_.zT(q.data.trackingParams))}N=this.get("data.serializedTransactionFlowLoggingParams",N);k4a(N);return _.bG(q)},
handleCompleteTransactionFailure_:function(q){q=this.get("data.serializedTransactionFlowLoggingParams",q);_.I0("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",q);return _.ra(new cr("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",q))},
ypcCompleteTransactionHandler:function(q,N){var b=this;if(!N.ypcCompleteTransactionEndpoint)return!1;if(!N.ypcCompleteTransactionEndpoint.transactionParams)return _.HC(Error("Vl")),!0;N.ypcCompleteTransactionEndpoint&&N.ypcCompleteTransactionEndpoint.gtmData&&_.SU(N.ypcCompleteTransactionEndpoint.gtmData);var y=_.tz().resolve(_.$f(_.$8));if(y){_.DI(this.hostElement);var J=_.f6.instance;J&&_.C6(J,N)?_.IE(J,N).then(function(E){return!E||(E==null?0:E.error)?(E=b.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
N),_.ra(new cr("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",E))):{data:E}}).then(function(E){_.e2(q,"yt-service-request-completed");
b.ypcCompleteTransactionSuccess_(N,E)},function(){return b.ypcCompleteTransactionFailure_(N)}):y.requestDataForServiceEndpoint(N).then(function(E){_.e2(q,"yt-service-request-completed");
b.ypcCompleteTransactionSuccess_(N,E)},function(){return b.ypcCompleteTransactionFailure_(N)})}return!0},
ypcCompleteTransactionSuccess_:function(q,N){_.h3(this.hostElement);N.data||(N={data:N});_.By(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);N.data.messageRenderer||N.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(q):(_.SU('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",q));N.data.actions&&(q=t5N(N.data.actions),N=mdf(N.data.actions),q.length&&_.qc(this.hostElement,
q),N.length&&_.Nc(this.hostElement,N,this.hostElement))},
ypcCompleteTransactionFailure_:function(q){_.h3(this.hostElement);_.By(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",q,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(q,N,b){if(N=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",N))N={serializedTransactionFlowLoggingParams:N},b&&(N.errorType=b),_.W_(q,N),_.Lo()}}];var byd={};byd.YtEndpointHandlerWithYpcBehavior=[_.EmT,_.Dc.YtActionHandlerBehavior,[{openWalletDialog:function(q,N,b,y,J,E,F){var R=this,c=_.T4();N=N.replace(/-/g,"+").replace(/_/g,"/");var z=_.c3().get("hl");_.Wrd(_.L0(_.TM),N,c.resolve,J,function(m){E&&E();c.reject(m)},z,function(m){return R.onServerBackendAnalyticEvent_(q,b,m)},this.onDialogClose_.bind(this),y,F);
return c.promise},
openFixFlowDialog:function(q,N,b,y){q=q.replace(/-/g,"+").replace(/_/g,"/");_.L0(_.TM).openFixFlowDialog(q,N,b,y)},
onDialogClose_:function(){_.By(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(q,N,b){_.e2(q,"yt-commerce-action-init-done");N&&_.qc(this.hostElement,[N,{backend_analytics:b}])}}],
_.lw.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(q,N){q=this.get("data.nativeFlowEndpoint",N);N=this.get("data.fallbackEndpoint",N);q?_.qc(this.hostElement,[q]):N&&_.e2(this.hostElement,"yt-navigate",{endpoint:N})}}],
Hhf.YtCancelRecurrenceBehavior,NNf.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 q=this;pwf(this,function(N,b,y){return q.handleYPCEndpoint(N,b,y)});
this.ypcRegisterActionMapJobId_=_.Ip(_.pY,function(){q.registerActionMap(q.buyFlowActionMap_)})},
detached:function(){var q=this;_.pY.cancelJob(this.ypcRegisterActionMapJobId_);_.Ip(_.pY,function(){q.unregisterActionMap(q.buyFlowActionMap_)})},
handleYPCEndpoint:function(q,N,b){var y=N.ypcGetCartEndpoint;if(y){_.Yo("commerce_transaction");var J=y.gtmId;J&&_.az(J);(y=y.gtmData)&&_.SU(y)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",N)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(q,N),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",N)!=null?(this.handleYPCFixInstrumentEndpoint_(q,N),!0):N.ypcPauseSubscriptionCommand?(kmC(this.hostElement,q,N,b),
!0):N.ypcResumeSubscriptionCommand?(Cuf(this.hostElement,q,N),!0):N.getPaymentInstrumentsParamsCommand?(Kwf(this.hostElement,q,N),!0):N.ypcHandleTransactionEndpoint?(iGC(this.hostElement,q,N,b),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(q,N){var b=this;_.Q6("ttcr",void 0,"commerce_transaction");N=N.ypcGetCartEndpoint;var y=N.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,J=y.encryptedPurchaseParams,E=y.serializedTransactionFlowLoggingParams,F=y.serializedPaymentsClientParams,R=this.createGetCartResponseFromParams_(y,N.offerParams,E);this.changeButtonState(q,!0);_.KJ(this.openWalletDialog(q,J,y.ypcLogWalletAnalyticDataEndpoint,E,function(){b.changeButtonState(q,!1)},function(){b.changeButtonState(q,
!1)},F).then(function(c){return b.handleBuyFlowCompleteCallback_(q,R,c)},function(){return b.handleOnLoadError(R)}).then(function(c){return void b.handlePostPurchaseSuccess_(q,R,c)},function(c){return void b.handlePostPurchaseError_(c)}),function(){b.changeButtonState(q,!1);
q instanceof Element&&_.e2(q,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(q,N,b){var y=q.completeTransactionEndpoint,J=q.handleTransactionEndpoint;N={data:{offerParams:window.btoa(N),serializedTransactionFlowLoggingParams:b}};J?N.data.handleTransactionEndpoint=J:N.data.completeTransactionEndpoint=y;q.onCartDismissCommand&&(N.data.onCartDismissCommand=q.onCartDismissCommand);return N},
onGetCartServiceRequestCompleted_:function(q,N){var b=this,y=q.target;if(N&&N.data&&N.data.messageRenderer)_.h3(this.hostElement),this.handleMessageRenderer_(N.data.messageRenderer),this.changeButtonState(y,!1);else{var J=this.get("data.encryptedPurchaseParams",N),E=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",N),F=this.get("data.ypcLogWalletAnalyticDataEndpoint",N),R=this.get("data.serializedPaymentsClientParams",N),c=this.getLoggingParams_(N);if(c||J||E)q.stopPropagation(),_.Q6("ttcr",
void 0,"commerce_transaction"),J||_.h3(this.hostElement),this.changeButtonState(y,!1),E?_.By(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.M7("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:E}}},this]):J&&(this.changeButtonState(y,!0),q=null,q=this.openWalletDialog(y,J,F,c,function(){_.h3(b.hostElement);b.changeButtonState(y,!1)},function(){_.h3(b.hostElement);
b.changeButtonState(y,!1)},R),_.KJ(q.then(function(z){return b.handleBuyFlowCompleteCallback_(y,N,z)},function(){return b.handleOnLoadError(N)}).then(function(z){return b.handlePostPurchaseSuccess_(y,N,z)},function(z){return b.handlePostPurchaseError_(z)}),function(){b.changeButtonState(y,!1);
_.e2(y,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(q,N){N&&N.endpoint&&N.endpoint.ypcGetCartEndpoint&&!N.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",N.endpoint.ypcGetCartEndpoint)&&_.Nc(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",N.endpoint.ypcGetCartEndpoint)],q.target),_.DI(this.hostElement),this.changeButtonState(q.target,!0))},
onServiceRequestError_:function(q,N){if(N&&N.params&&N.params.length){N=_.Z(N.params);for(var b=N.next();!b.done;b=N.next())if((b=b.value)&&b.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",b.ypcGetCartEndpoint)&&_.Nc(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",b.ypcGetCartEndpoint)],q.target);_.h3(this.hostElement);this.changeButtonState(q.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(q,N,b){var y=b.integratorData;return y==null||y===""||b.error!=null?(y=this.getLoggingParams_(N),String(b.error)==="-1"?(N.data.onCartDismissCommand&&_.Nc(this.hostElement,[N.data.onCartDismissCommand],q),_.ra(new cr("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",y,!0))):_.ra(new cr("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",y))):N.data.handleTransactionEndpoint?loC(this.hostElement,N.data.handleTransactionEndpoint,{payments_payload:y,funds_guarantee_callback_client_data:b.integratorClientCallbackData}):
this.completeTransaction(N,b)},
handlePostPurchaseSuccess_:function(q,N,b){N=b.data;var y=!1,J,E;if(N&&((J=N.command)==null?0:(E=J.commandExecutorCommand)==null?0:E.commands)){var F,R;J=(F=N.command)==null?void 0:(R=F.commandExecutorCommand)==null?void 0:R.commands;for(F=0;F<J.length;F++)if(_.v(J[F],_.Ex4)){y=!0;break}}y||(N&&N.gtmDatas&&N.gtmDatas.length?_.SU(N.gtmDatas[0]):_.SU('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));b.data&&b.data.actions&&(N=t5N(b.data.actions),b=mdf(b.data.actions),N.length&&
_.qc(this.hostElement,N),b.length&&_.Nc(this.hostElement,b,q))},
handlePostPurchaseError_:function(q){q&&q.payload&&q.payload.isUserDismiss||_.po(Error("Xl"))},
handleOnLoadError:function(q){q=this.getLoggingParams_(q);return _.ra(new cr("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",q))},
getLoggingParams_:function(q){return this.get("data.serializedTransactionFlowLoggingParams",q)},
handleMessageRenderer_:function(q){var N=_.LI(q,"renderer"),b=_.M7("openPopupConfig");N==="confirmDialogRenderer"&&b&&_.By(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:b.popupTypeMap[N],popup:q}},this])},
handleYPCFixInstrumentEndpoint_:function(q,N){var b=this,y=N.ypcFixInstrumentEndpoint;N=y.encryptedFixInstrumentParameters;this.logFixFopEvent_(y,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(q,!0);this.openFixFlowDialog(N,function(J,E){b.onFixFlowCompleteCallback_(y,J,E)},function(){return b.changeButtonState(q,!1)},function(){b.changeButtonState(q,!1);
b.logFixFopEvent_(y,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(q,N,b){var y=_.Ng("payments.business.integration.scenario.FixInstrument");if(N==y.IntegratorCallbackType.ON_COMPLETE){N="FIX_FOP_EVENT_TYPE_CANCEL";var J=null;b.error!=null?b.error!=y.OnCompleteCallbackError.USER_CANCELLED&&(_.Nc(this.hostElement,[q.errorAction],this.hostElement),N="FIX_FOP_EVENT_TYPE_FAILURE",J="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Nc(this.hostElement,[q.successAction],this.hostElement),N="FIX_FOP_EVENT_TYPE_SUCCESS");_.Nc(this.hostElement,[q.onFinishAction],
this.hostElement);this.logFixFopEvent_(q,N,J)}},
logFixFopEvent_:function(q,N,b){(q=q.serializedFixFopLoggingParams)?(N={eventType:N,serializedFixFopLoggingParams:q},b!=null&&(N.errorType=b),_.W_("fixFopFlow",N),_.Lo()):_.po(Error("Yl"))},
changeButtonState:function(q,N){_.x("enable_ypc_spinners")&&q&&(q.is==="yt-button-renderer"||q.is==="ytd-button-renderer")&&(q.disabled=N)}}];var yQW=function(q){this.JSC$32967_clientRoot=q;this.feedbackCollectorActionMap={"yt-help-dialog-requested":T1d,"yt-feedback-dialog-requested":Ioc,"yt-signal-action-help":sYX,"yt-signal-action-send-feedback":n_C,"yt-send-feedback-action":Sqx,"yt-user-feedback-endpoint":WwW};_.EX(_.JD.getInstance(),this.feedbackCollectorActionMap,this.JSC$32967_clientRoot)},JQW;var EMx=function(q){this.JSC$32972_clientRoot=q;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":Lwd.bind(null,this.JSC$32972_clientRoot),"yt-signal-action-delete-all-downloads":Puf,"yt-signal-action-delete-download":MEf,"yt-signal-action-delete-playlist-download":AxX,"yt-signal-action-install-pwa":bJC,"yt-signal-action-refresh-downloads":q1X,"yt-offline-video-endpoint":Jlf,"yt-offline-playlist-endpoint":gCa,"yt-update-local-app-setting-command":F4c,"yt-offline-orchestration-action-command":dHC,
"yt-signal-action-undo-delete-download":B1a,"yt-local-watch-history-command":zFa,"yt-signal-action-mark-download-to-mobile-edu-shown":tkW};_.EX(_.JD.getInstance(),this.downloadManagerActionMap,this.JSC$32972_clientRoot);_.k8.instance=new _.k8},gMB;var hy=function(){var q=_.C.apply(this,arguments)||this;q.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_"};q.remoteApi_=null;return q};
_.Y(hy,_.C);_.g=hy.prototype;
_.g.ready=function(){_.x("polymer_enable_mdx")&&(Maf({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.x("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.x("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.x("enable_cast_short_lived_lounge_token")}),_.j0("yt-remote-connection-change",this.handleConnectionChange_,this),_.j0("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=bLK())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.g.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.g.handleConnectionChange_=function(q){(this.mdxConnected=q)?(q=efa(),!q&&KvB()&&D$p()&&(q={key:"cast-selector-receiver",name:D$p()}),q=q.name):q=null;this.receiverName=q;_.RA(this.remoteApi_);(this.remoteApi_=bLK())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.g.handleReceiverAvailabilityChange_=function(){var q=A7B();KvB()&&_.XH("yt-remote-cast-available")&&q.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=q.length>0};
_.g.handleRemoteQueueChange_=function(){var q=this.currentVideoId_,N=this.currentListId_,b=UT(this.remoteApi_);this.currentVideoId_=b.videoId;this.currentListId_=b.listId;this.currentVideoId_&&_.By(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.x("polymer_enable_mdx_queue")?this.currentListId_:null,q,N])};
_.g.handleAddToQueueAction_=function(q){q=_.v(q,AAK);this.remoteApi_&&(q.videoId?this.remoteApi_.addVideo(q.videoId):q.playlistId&&this.remoteApi_.addPlaylist(q.playlistId))};
_.g.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.g.handleInsertInQueueAction_=function(q){q=_.v(q,ehN);this.remoteApi_&&q.videoId&&this.remoteApi_.JSC$20238_insertVideo(q.videoId)};
_.g.handleRemoveFromQueueAction_=function(q){q=_.v(q,BoU);this.remoteApi_&&q.videoId&&this.remoteApi_.JSC$20238_removeVideo(q.videoId)};
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],hy.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.P("design:type",Object)],hy.prototype,"appId",void 0);_.p([_.U(),_.P("design:type",Boolean)],hy.prototype,"mdxConnected",void 0);_.p([_.U(),_.P("design:type",Boolean)],hy.prototype,"receiverAvailable",void 0);_.p([_.U(),_.P("design:type",Object)],hy.prototype,"receiverName",void 0);_.p([_.U(),_.P("design:type",Object)],hy.prototype,"currentVideoId_",void 0);
_.p([_.U(),_.P("design:type",Object)],hy.prototype,"currentListId_",void 0);_.p([_.Ok({is:"yt-mdx-manager",disableElementRegistration:!0})],hy);_.a(hy,"yt-mdx-manager",void 0,{mode:2});var ZyK;var FhN;var kh=function(){var q=_.C.apply(this,arguments)||this;q.APP_IDS={ytr:3,ytm:5};q.JSC$21467_timeoutId_=0;q.actionMap={"yt-open-create-family-dialog":"open"};return q};
_.Y(kh,_.C);_.g=kh.prototype;_.g.created=function(){FXa(2200)};
_.g.detached=function(){this.observer_&&this.observer_.disconnect()};
_.g.open=function(q,N){var b=this,y=q.serializedYpcFamilyCreateLoggingParams;this.JSC$21467_timeoutId_=setTimeout(this.abort_.bind(this,q.postFlowErrorEndpoint,y),3E4);N&&(this.onReadyCallback_=N);var J=_.ee(this.hostElement).querySelector("#unicorn-iframe");y&&y&&DON("ypcFamilyCreateFlowStarted",y);_.JTn("family_creation",function(){var E=_.Ng("gapi.family_creation.render");_.Ng("gapi.config.update")("iframes/family_creation/url",b.getFamilyCreationUrlWithUnicornParams_());var F=3;q.appId&&q.appId in
b.APP_IDS&&(F=b.APP_IDS[q.appId]);F={authUser:_.M7("SESSION_INDEX")||0,clientId:F,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.M7("HL"),initialflow:[4,5,6,7],m:b.isMobile?1:0,onFlowComplete:b.onUnicornFlowComplete_.bind(b,q.postFlowSuccessEndpoint,y),onError:b.onUnicornFlowError_.bind(b,q.postFlowErrorEndpoint,y),onReady:b.onUnicornFlowReady_.bind(b,q.referencePcidParams)};E(J,F)})};
_.g.close=function(){_.ee(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.g.onUnicornFlowComplete_=function(q,N){this.close();N&&N&&DON("ypcFamilyCreateFlowSucceeded",N);_.e2(this.hostElement,"yt-navigate",{endpoint:q})};
_.g.onUnicornFlowError_=function(q,N){this.close();N&&DON("ypcFamilyCreateFlowCancelled",N);_.e2(this.hostElement,"yt-navigate",{endpoint:q})};
_.g.onUnicornFlowReady_=function(q){var N=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();q&&_.Ng("gapi.family_creation.setConfig")(0,q);this.observer_=new MutationObserver(function(){_.ee(N.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.ee(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.ee(this.hostElement).querySelector("#dialog").open()};
_.g.getFamilyCreationUrlWithUnicornParams_=function(){return _.M7("YTR_FAMILY_CREATION_URL")};
_.g.getCurrentUrl_=function(){return document.location.href};
_.g.abort_=function(q,N){this.clearTimeout_();this.onUnicornFlowError_(q,N)};
_.g.clearTimeout_=function(){clearTimeout(this.JSC$21467_timeoutId_)};
_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],kh.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],kh.prototype,"isMobile",void 0);_.p([_.U(),_.P("design:type",Object)],kh.prototype,"onReadyCallback_",void 0);_.p([_.U(),_.P("design:type",Object)],kh.prototype,"observer_",void 0);_.p([_.Ok({is:"yt-create-family-dialog",disableElementRegistration:!0})],kh);
_.a(kh,"yt-create-family-dialog",function(){if(FhN===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);var N=q.content,b=N.insertBefore;ZyK===void 0&&(ZyK=document.createElement("template"));var y=ZyK;b.call(N,y.content.cloneNode(!0),q.content.firstChild);FhN=q}q=FhN;return q},{mode:2});var RCX;var d3C;var Uy=function(){var q=_.C.apply(this,arguments)||this;q.STEP=1;q.BLOCK_ON=80;q.MIN_PROGESS=0;q.MAX_PROGESS=100;return q};
_.Y(Uy,_.C);_.g=Uy.prototype;_.g.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.g.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));_.tz().addProvider({provide:CNB,useValue:this})};
_.g.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.g.finish=function(){var q=this;this.progress=this.MAX_PROGESS;mHW(function(){q.progress==q.MAX_PROGESS&&(q.hostElement.hidden=!0)})};
_.g.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.$H.Object.defineProperties(Uy.prototype,{progress:{configurable:!0,enumerable:!0,set:function(q){this.progress_=q;var N="scaleX("+q/this.MAX_PROGESS+")",b=_.ee(this.hostElement).querySelector("#progress").style;b.transform=N;b.webkitTransform=N;this.hostElement.setAttribute("aria-valuenow",String(q))},
get:function(){return this.progress_}}});
_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],Uy.prototype,"ytComponentBehavior",void 0);_.p([_.Ok({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Uy);
_.a(Uy,"yt-page-navigation-progress",function(){if(d3C===void 0){var q=document.createElement("template");_.Q(q,'\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');q.content.insertBefore(_.A().content.cloneNode(!0),
q.content.firstChild);var N=q.content,b=N.insertBefore;RCX===void 0&&(RCX=document.createElement("template"));var y=RCX;b.call(N,y.content.cloneNode(!0),q.content.firstChild);d3C=q}q=d3C;return q},{mode:2});var cQA={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"},uGc={"font-size":"12px","font-style":"italic"},zCf={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.jXf=function(){return _.d(function(q){_.hj(q)})};var $3B=_.n(function(q){var N=function(){return q.data().subtext},b={};
return _.u("snackbar-view-model",{class:_.NO("snackbarViewModelHost",q.className)},_.u("div",{class:_.NO("snackbarViewModelEngagementBarWrapper",q.className)},_.u(_.t,{cond:function(){return q.data().image},
then:function(y){return _.u(_.s_,{data:y,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.u(_.t,{cond:function(){return q.data().imageContent},
then:function(){return _.u("div",{class:"snackbarViewModelAvatarContainer"},_.u(_.zS,{data:function(){return q.data().imageContent}},{decoratedAvatarViewModel:_.qw}))}}),_.u("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.u("div",{class:_.NO((b.snackbarViewModelTitle=!0,b.snackbarViewModelTitleWithSubtext=N,b))},_.u(_.Zc,{text:function(){return q.data().text}})),_.u(_.t,{cond:N,
then:function(){return _.u("div",{class:"snackbarViewModelSubtext"},_.u(_.Zc,{text:function(){return N()}}))}})),_.u(_.t,{cond:function(){return q.data().buttons},
then:function(){return _.u("div",{class:"snackbarViewModelButtonClassWrapper"},_.u(_.zS,{data:function(){return q.data().buttons}},{buttonViewModel:function(y){return _.u(_.Ou,{data:y.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:q.target})}}))}})))},"uk");_.P$(_.n(function(){function q(f,L,S){G(f);D(S);X("in");m(!0);N(f,L);F=setTimeout(function(){b()},L)}
function N(f,L){var S,W=(S=f.text)==null?void 0:S.content;f=_.GS(f.rendererContext);W&&(L={label:W,command:f,durationMs:L},_.tz().resolve(_.xm).enqueue(L))}
function b(f){X("out");f&&clearTimeout(F)}
function y(){b(!0)}
function J(f){if(f){var L=f.snackbarViewModel,S=f.durationMs,W=f.target;S||(S=3E3);L&&(f=_.tz().resolve(_.$f(_.mE)))&&f.enqueue({isOpened:z,open:function(){q(L,S,W)},
close:b},0)}}
var E=_.cK("snackbar-container"),F=void 0,R=_.Z(_.QS(!1,void 0,"mDc5N")),c=R.next().value;R=R.next().value;var z=c,m=R;c=_.Z(_.QS("out",void 0,"FpOs5e"));var r=c.next().value,X=c.next().value;c=_.Z(_.QS(void 0,void 0,"jIDRob"));var V=c.next().value,G=c.next().value;c=_.Z(_.QS(void 0,void 0,"kOA3Mb"));var w=c.next().value,D=c.next().value,k=_.y0(function(){if(r()==="out"){m(!1);G(void 0);D(void 0);var f=_.tz().resolve(_.$f(_.mE));f&&v2f(f,0)}});
_.WC(function(){var f=_.tz().resolve(_.$f(_.whX));f&&(f.showSnackbarFn=J,f.closeSnackbarFn=y)});
return _.u("snackbar-container",{class:"ytSnackbarContainerHost",el:E},_.u(_.t,{cond:function(){return z()&&!!V()},
then:function(){var f={};return _.u("div",{class:_.NO("ytSnackbarContainerSnackbarContainer",(f.ytSnackbarContainerMobile=!1,f.ytSnackbarContainerPivotBar=function(){var L;return!((L=_.tz().resolve(_.$f(_.iMB)))==null||!L())},f.ytSnackbarContainerOpened=function(){return z()&&r()==="in"},f.ytSnackbarContainerClosed=function(){return z()&&r()==="out"},f)),
"on:animationend":k},_.u($3B,{data:function(){return V()},
target:function(){return w()}}))}}))},"vk"),"snackbar-container");_.P$(_.NX1,"yt-tooltip");var tSa=_.u8c.ephemeralActionSelector;_.P$(_.n(function(){var q=_.uR(tSa);return _.u("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var N;return(N=q())==null?void 0:N.announcement})},"wk"),"yt-ephemeral-actions");var nCf=new Map;var uRp=function(q,N){var b=this;this.handleError=q;this.logEventInternal=N;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){b.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
uRp.prototype.logError=function(q){this.handleError(q)};
uRp.prototype.logEvent=function(q,N){switch(q){case "IDB_DATA_CORRUPTED":_.x("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",N);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",N);break;case "IS_SUPPORTED_COMPLETED":_.x("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",N);break;case "QUOTA_EXCEEDED":m3f(this,N);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",N);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":q=Object.assign({},N,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",q)}};
var m3f=function(q,N){_.G3.getInstance().estimate().then(function(b){b=Object.assign({},N,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:S1x(b==null?void 0:b.usage),deviceStorageQuotaMbytes:S1x(b==null?void 0:b.quota)});q.logEventInternal("idbQuotaExceeded",b)})};var rQX=_.n(function(q){var N=_.dI("yt-draggable"),b=q.onDrag,y=q.onDragStart,J=q.onDragEnd,E=_.Sl(q,{allowClicks:!1,dragThreshold:5}),F=E.dragThreshold,R=E.allowClicks;q=E.children;E=E.className;var c=void 0,z=void 0,m=new _.Sc(0,0),r=!1;_.WC(function(){c=new _.np(N.value);z=new _.rd(V);X(c,z);if(R()){_.CtF(c,F());var w;(w=N.value)==null||w.addEventListener("click",G,{capture:!0})}_.W1(function(){var D;(D=c)==null||D.dispose();if(R()){var k;(k=N.value)==null||k.removeEventListener("click",G,{capture:!0})}})});
var X=function(w,D){_.tn(w,"earlycancel",function(){R()&&(r=!1)});
_.tn(w,"start",function(k){y==null||y(k);k.defaultPrevented||R()&&(r=!0)});
_.tn(w,"beforedrag",function(k){c&&z&&(k.preventDefault(),m=new _.Sc(k.clientX-c.startX,k.clientY-c.startY),z.start())});
_.tn(w,"end",function(){D.stop();J==null||J();m=new _.Sc(0,0)})},V=function(){m&&b(m)},G=function(w){r&&(r=!1,w.stopPropagation(),w.preventDefault())};
return _.u("yt-draggable",{el:N,class:_.NO("ytDraggableComponentHost",E)},q)},"xk");var Xqa=_.n(function(q){var N=_.Z(_.QS(0,void 0,"Qf0tbc")),b=N.next().value,y=N.next().value;N=function(J){var E={},F={};return _.u(rQX,{className:_.NO("ytdMiniplayerComponentResizer",(E.ytdMiniplayerComponentResizerDisabled=function(){return J===q.horizontalAlignment()||J===q.verticalAlignment()},E.ytdMiniplayerComponentResizerNorth=J==="north",E.ytdMiniplayerComponentResizerEast=J==="east",E.ytdMiniplayerComponentResizerSouth=J==="south",E.ytdMiniplayerComponentResizerWest=J==="west",E)),
onDragStart:function(){y(q.currentMiniplayerSize());if(q.onResizeStart)q.onResizeStart()},
onDrag:function(R){J!=="north"&&J!=="west"||R.scale(-1);var c;R=(c=J==="north"||J==="south")?R.y:R.x;var z=q.currentAspectRatio();c&&z>=1?R*=z:!c&&z<1&&(R/=z);c=R;q.onResize(b()+c)}},_.u("div",{class:_.NO("ytdMiniplayerComponentResizerCorner",(F.ytdMiniplayerComponentResizerNorthCorner=J==="north",F.ytdMiniplayerComponentResizerEastCorner=J==="east",F.ytdMiniplayerComponentResizerSouthCorner=J==="south",F.ytdMiniplayerComponentResizerWestCorner=J==="west",F))}))};
return _.u("div",{class:"ytdMiniplayerComponentResizers"},N("north"),N("east"),N("south"),N("west"))},"yk");var VSA=16/9;_.P$(_.n(function(){var q=_.dI("ytd-miniplayer"),N=_.Z(_.QS(new _.l3(NaN,NaN),void 0,"NHaFyc")),b=N.next().value,y=N.next().value;N=_.Z(_.QS(!1,void 0,"a0rwG"));var J=N.next().value,E=N.next().value;N=_.Z(_.QS(!1,void 0,"f1jSeb"));var F=N.next().value,R=N.next().value;N=_.Z(_.QS(!1,void 0,"JojXKc"));var c=N.next().value,z=N.next().value;N=_.Z(_.QS(!1,void 0,"FjS8Db"));var m=N.next().value,r=N.next().value;N=_.Z(_.QS(!1,void 0,"z5WG9e"));var X=N.next().value,V=N.next().value;N=_.Z(_.QS(!1,void 0,"eUzZd"));
var G=N.next().value,w=N.next().value;N=_.Z(_.QS(VSA,void 0,"XsBIy"));var D=N.next().value,k=N.next().value,f=_.Z(_.QS(!1,void 0,"FJSvse"));N=f.next().value;var L=f.next().value;f=_.Z(_.QS(!1,void 0,"VDUFL"));var S=f.next().value,W=f.next().value;f=_.Z(_.QS(void 0,void 0,"nFeh4b"));var M=f.next().value,qe=f.next().value;f=_.Z(_.QS(tR()?"west":"east",void 0,"T7co7c"));var RJ=f.next().value,tZ=f.next().value;f=_.Z(_.QS("south",void 0,"QDUsLb"));var wA=f.next().value,rA=f.next().value;f=_.Z(_.QS(400,
void 0,"F7Vdze"));var xD=f.next().value,IJ=f.next().value,sJ=_.tz().resolve(_.l9).miniplayerPropSignalMap[0],Sn=sJ.data,YE=sJ.externalPlaylistData;f=sJ.toastData;var xE=sJ.playabilityStatus,qv=sJ.isReadyToResume,mM=sJ.isDisabled,Ox=sJ.watchWhile,h4=sJ.playerVe,QC=sJ.expandVe,rp=sJ.closeVe,Fd=sJ.readyToResumeVe,yF=sJ.readyToResumeCloseVe,vR=sJ.repositionVe,ej=sJ.resizeVe;sJ=_.Z(_.gJ(qv));var Go=sJ.next().value,qN=sJ.next().value,O5=_.uR(_.U$.persistentPanelVisibleSelector),p1=!1,$E=!1,t4;_.WC(function(){y(_.cP());
q.value.addEventListener("animationend",function(L1){L1.target===q.value&&(V(!1),w(!1))});
oCa(q.value)});
_.Zm("yt-window-resized",function(L1){L1&&y(L1)});
var gp=function(){t4&&k(t4.getVideoAspectRatio())},oJ=function(){if(t4){var L1=t4.getPlayerState()===1;
Go()&&L1&&qN(!1)}},bB=function(){var L1=QC();
if(L1){var Of=_.Oe(3);Of&&_.nr(Of,L1)}},tB=function(){var L1=rp(),Of=yF();
L1&&_.nr(_.Oe(3),L1);qv()&&Of&&_.nr(_.Oe(3),Of)};
_.Zm("yt-activate-miniplayer",function(L1){var Of;return _.d(function(Ef){if(Ef.nextAddress==1)return J()?Ef.return():Ef.yield((Of=_.tz().resolve(_.l9).getPlayerElement())==null?void 0:Of.getPlayerPromise(),2);t4=Ef.yieldResult;if(!t4)return Ef.return();!S()&&_.x("kevlar_watch_while_v2")&&(rA(L1&&!_.x("kevlar_watch_while_bottom_align")?"north":"south"),tZ(tR()?"west":"east"));var hb=t4;hb.addEventListener("onVideoDataChange",gp);hb.addEventListener("onStateChange",oJ);hb.addEventListener("onExpandMiniplayer",
bB);hb.addEventListener("onCloseMiniplayer",tB);k(t4.getVideoAspectRatio());E(!0);Mkx()||V(!0);_.hj(Ef)})});
_.Zm("yt-deactivate-miniplayer",function(L1,Of){return _.d(function(Ef){if(!J())return Ef.return();E(!1);qN(!1);w(L1);r(!1);R(!1);if(t4){var hb=t4;hb.removeEventListener("onVideoDataChange",gp);hb.removeEventListener("onStateChange",oJ);hb.removeEventListener("onExpandMiniplayer",bB);hb.removeEventListener("onCloseMiniplayer",tB)}Mkx()||Of?Of&&V(!1):V(!0);_.hj(Ef)})});
var JB=function(){return!(Ox()&&_.x("kevlar_watch_while_modern"))},XA=function(){var L1;
return!((L1=YE())==null||!L1.contents)},LU=function(){var L1=xD();
var Of=b();Of=Math.min(Math.min(Of.width,Of.height)-32,720);var Ef=D(),hb=JB(),bC=XA()&&F(),CF=Math.min(L1,Of);L1=new _.l3(192,hb?116:192);Ef=new _.l3(bC?VSA:Ef,1);CF=new _.l3(CF,hb?CF-76:CF);CF=Ef.aspectRatio()>CF.aspectRatio()?CF.width/Ef.width:CF.height/Ef.height;Ef=Ef.scale(CF);L1.width<=Ef.width&&L1.height<=Ef.height||(L1=Ef.aspectRatio()<=L1.aspectRatio()?L1.width/Ef.width:L1.height/Ef.height,Ef.scale(L1),Ef.width=Math.min(Ef.width,Of),Ef.height=Math.min(Ef.height,Of));return new _.l3(Ef.width,
_.Od(192,Ef.height+HJd(hb,bC),720))},uC=function(){var L1=LU(),Of=JB(),Ef=XA()&&F();
return new _.l3(L1.width,L1.height-HJd(Of,Ef))},jc=function(){var L1=function(Of){Of.target===q.value&&m()&&(r(!1),q.value.removeEventListener("transitionend",L1))};
Mkx()||(q.value.addEventListener("transitionend",L1),r(!0));R(!F())};
_.Sx(function(){var L1=h4(),Of=_.Oe(3),Ef=_.QY(3);if(Of&&Ef&&L1){_.fr(Of,Ef,L1);Ef=vR();var hb=ej(),bC=QC(),CF=rp(),X8=yF();bC&&CF&&X8&&(_.Cr(Of,L1,[bC,CF,X8]),_.Tr(Of,[bC,CF]));Ef&&hb&&_.Cr(Of,L1,[Ef,hb])}},"UBpUDd");
_.Sx(function(){var L1=Fd();if(L1){var Of=_.Oe(0),Ef=_.QY(0);Of&&Ef&&(_.fr(Of,Ef,L1),_.Tr(Of,[L1]))}},"fQpBzb");
sJ={};return _.u("ytd-miniplayer",{el:q,class:_.NO("ytdMiniplayerComponentHost",(sJ.ytdMiniplayerComponentVisible=function(){return(J()||X())&&!(Ox()&&_.x("kevlar_watch_while_counterfactual"))},sJ.ytdMiniplayerComponentAnimatingSnap=c,sJ.ytdMiniplayerComponentAnimatingPlaylistExpand=m,sJ.ytdMiniplayerComponentAnimatingFade=X,sJ),function(){if(X()){var L1=wA();
var Of=J(),Ef=G();L1=Of?L1==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Ef?L1==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":L1==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else L1="";return L1}),
style:_.ZU({top:function(){return wA()==="north"?"16px":""},
right:function(){var L1=RJ(),Of=O5();Of=(Of===void 0?0:Of)&&!tR()?400:0;return L1==="east"?16+Of+"px":""},
bottom:function(){return wA()==="south"?"16px":""},
left:function(){var L1=RJ(),Of=O5();Of=(Of===void 0?0:Of)&&tR()?400:0;return L1==="west"?16+Of+"px":""},
width:function(){return LU().width+"px"},
height:function(){return LU().height+"px"},
transform:function(){var L1=M();return L1?"translate("+L1.x+"px, "+L1.y+"px)":""}})},_.u("div",{class:"ytdMiniplayerComponentContent"},_.u(rQX,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(L1){var Of=BbA(RJ(),wA(),b(),LU(),M()),Ef=uC();Math.abs(L1.clientY-(Of.y+Ef.height))>15?(L(!0),L1=_.Oe(3),Of=vR(),p1||(p1=!0,L1&&Of&&_.Tr(L1,[Of])),L1&&Of&&_.nr(L1,Of)):L1.preventDefault()},
onDrag:function(L1){qe(L1)},
onDragEnd:function(){var L1=Ald(BbA(RJ(),wA(),b(),LU(),M()),b(),LU()),Of=eFX(RJ(),wA(),b(),LU(),O5()),Ef=eFX(L1.horizontalAlignment,L1.verticalAlignment,b(),LU(),O5());Ef=new _.Sc(Ef.x-Of.x,Ef.y-Of.y);var hb;Of=Of.y+(((hb=M())==null?void 0:hb.y)||0)+LU().height/2;var bC=function(){RJ()===L1.horizontalAlignment&&wA()===L1.verticalAlignment||W(!0);tZ(L1.horizontalAlignment);rA(L1.verticalAlignment);qe(void 0)},CF=function(X8){X8.target===q.value&&c()&&(z(!1),bC(),q.value.removeEventListener("transitionend",
CF))};
L(!1);wA()==="south"&&Of>b().height?(bC(),_.tz().resolve(_.l9).close()):(q.value.addEventListener("transitionend",CF),z(!0),qe(Ef))}},_.u(_.t,{cond:J,
then:function(){return _.u(_.rSA,{isDisabled:mM,playabilityStatus:xE,size:uC})}}),_.u(_.t,{cond:JB,
then:function(){return _.u(_.tdC,{isReadyToResume:Go,data:Sn,expanded:F,onExpandClick:jc,playlistData:YE})}}),_.u(_.t,{cond:N,
then:function(){return _.u("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.u(_.t,{cond:function(){return XA()&&F()||m()},
then:function(){return _.u(_.Occ,{className:"ytdMiniplayerComponentPlaylistPanel",data:YE,hideHeaderText:!0,withinMiniplayer:!0})}}),_.u("div",{class:"ytdMiniplayerComponentToast"},_.u(_.Xvx,{toastData:f}))),_.u(Xqa,{onResize:function(L1){IJ(_.Od(192,L1,720))},
onResizeStart:function(){var L1=_.Oe(3),Of=ej();$E||($E=!0,L1&&Of&&_.Tr(L1,[Of]));L1&&Of&&_.nr(L1,Of)},
currentAspectRatio:D,currentMiniplayerSize:xD,horizontalAlignment:RJ,verticalAlignment:wA}))},"Bk"),"ytd-miniplayer",{});var j4d=_.U$.persistentPanelVisibleSelector,f2=function(){var q=_.C.apply(this,arguments)||this;q.tabGesturesIsActive=!1;q.persistentPanelEnabled=_.x("enable_ai_companion");q.hasDelegation=!1;q.isFrostedGlassInitialized=!1;q.frostedGlassExp=_.x("web_frosted_glass");q.hasPendingWatchNavigation=!1;q.mastheadHiddenFocusWithinKillswitch=_.x("web_masthead_hidden_focus_within_killswitch");q.clientOnlyWizTooltipsEnabled=_.x("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
q.scrollAtTop=!0;q.guideScrollTop=0;q.isTheaterModeSession=_.ou("START_IN_THEATER_MODE");q.iMaxTheaterMode=_.x("web_watch_imax_theater_mode");q.isFullWindowSession=_.ou("START_IN_FULL_WINDOW_MODE");q.hasCreateFamilyDialog=!1;q.mastheadHeight=56;q.networkStatusManager=new _.Jr;q.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"};q.dynamicActionMap={"yt-run-attestation-command":function(N){var b=_.zXA.instance,y=_.v(N,_.jg1);return y?_.x("use_rta_manager_for_async")&&
Bqp()?BHA(b,y,N.clickTrackingParams):eEN(b,y,N.clickTrackingParams):_.ra(Error("pi"))}};
q.isFrostedGlassDisabled=!1;q.isChannelOrPlaylistPage=!1;return q};
_.Y(f2,_.C);_.g=f2.prototype;_.g.created=function(){var q=_.tz();_.x("kevlar_clear_duplicate_pref_cookie")&&_.Ip(_.pY,function(){var N=_.hz.get("PREF");N&&!/f\d=/.test(N)&&(N=_.jA("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=N?"PREF=null;domain="+N+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.x("gzip_gel_with_worker")&&_.NqJ();_.x("jspb_serialize_with_worker")&&v0W();_.x("web_worker_availability_check")&&a6f();_.x("nwl_init_killswitch")||jiX().then(function(){_.pY.addLowPriorityJob(ZLp)});
this.pageManagerAttachedPromise=_.T4();this.ytdAppBehavior.loadDepsPromise=_.lU([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.El(this.onThrottledScroll,200,this);_.x("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);zyW();x2f=!!_.Ng("ytappsettings.initialized");Ky=_.Ng("ytappsettings.previousValue");uQA=_.Ng("ytappsettings.previousSnapshotTime");x2f||(x2f=!0,zIN());zWW();$da();_.PC("DEFERRED_DETACH",
_.x("kevlar_tuner_should_defer_detach"));_.PC("REUSE_COMPONENTS",!0);_.PC("STAMPER_STABLE_LIST",!0);_.PC("SCHEDULED_LAZY_LIST",!0);_.PC("openPopupConfig",BFU);_.PC("useClickHandler",!0);_.x("kevlar_shell_cleanup")&&_.pY.addLowPriorityJob(NJa.bind(this,_.JZ.caches));_.ou("IS_SHELL_LOAD")&&_.v3({shellStartupDurationMs:Math.round((0,_.mA)()-_.rg())});Y1X(this.networkStatusManager);_.x("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",rla(cQA)),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!",
rla(uGc)),console.log("%cVisit http://go/join-youtube-web to apply today.",rla(zCf)));_.KjN(q.resolve(_.Vj),1E3)};
_.g.ready=function(){var q=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var N=hya();N&&!_.x("external_fullscreen_killswitch")&&document.addEventListener(N,this.setFullscreen.bind(this));(N=window.matchMedia("(prefers-color-scheme: dark)"))&&N.addEventListener&&N.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(N=_.tz().resolve(_.$f(_.Xrl)))N.subscribe("navigation-start",
function(b){b.destinationPageSubtype==="watch"&&(q.hasPendingWatchNavigation=!0)}),N.subscribe("navigation-end",function(b){b.destinationPageSubtype==="watch"&&(q.hasPendingWatchNavigation=!1)})};
_.g.attached=function(){var q=this;_.dw().processSignal("ci");_.x("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.dB1?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Ed(_.YDA(),"SUCCESS");this.updateIconSet();_.o$(this.guideInnerContent,!1);_.fP().initVisibilityObserver();this.guideService.guideElement=this.guide;var N=document.createElement("ytd-miniplayer"),b=_.ee(this.hostElement).querySelector("#content");
_.ee(this.hostElement).insertBefore(N,b);_.dw().processSignal("ma");_.tz().resolve(_.l9).init(N);this.persistentPanelEnabled&&_.kMx(_.tz().resolve(_.em),this.persistentPanelContainer,"APP");_.ou("IS_SHELL_LOAD")&&(b=document.createElement("ytd-network-status-banner"),_.ee(this.hostElement).insertBefore(b,N));_.x("kevlar_right_click_on_lockups")&&_.yG._onCaptureClick&&document.addEventListener("contextmenu",_.yG._onCaptureClick.bind(_.yG),!0);var y=function(){var J=_.$Y("yt-page-navigation-progress");
_.ee(q.hostElement).appendChild(J)};
setTimeout(function(){_.dw().parkOrScheduleJob(y,0,"eocs",16)},0);
_.x("service_worker_push_enabled")&&_.Ip(_.pY,K8f);_.EX(_.JD.getInstance(),this.dynamicActionMap,this.hostElement);_.e2(this.hostElement,"ytd-app-attached");_.dw().processSignal("aa");p$X(this.hostElement);_.zn("gapi.load",_.JTn);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.Ip(_.pY,
function(){var J=document.createElement("ytd-video-preview");_.ee(_.ee(q.hostElement).querySelector("#video-preview")).appendChild(J)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.Ip(_.pY,function(){xHx();q.registerWithViewTransitionManager()});
if(_.hN()&&this.isAppDarkTheme()!==_.K9())this.onDarkModeToggledAction();else N=_.D4()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==N&&(_.x("enable_dark_theme_only_on_shorts")?_.lI(_.x("enable_dark_theme_only_on_shorts_control")?window.location.href:_.ZM(window.location.href,{theme:"dark"})):_.M6(new _.IO("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(bwf=new NWA(this.hostElement)),gMB=new EMx(this.hostElement),JQW=new yQW(this.hostElement),xkU=new j1a(this.hostElement)};
_.g.getThemeSettingsToLog=function(){var q=_.D4()==="USER_INTERFACE_THEME_DARK";q=_.hN()?_.K9()?"os-dark":"os-light":q?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:q,cookiesEnabled:_.UV()}};
_.g.detached=function(){_.A8(this.guideInnerContent);_.pY.cancelJob(QV);QV=0;_.pY.cancelJob(wN);wN=0;_.$oC(L6x);L6x.length=0;adW=_.ZSz=null;_.fP().dispose();_.x("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.gI(_.JD.getInstance(),bwf.playlistHandlerActionMap,bwf.JSC$32677_clientRoot);_.gI(_.JD.getInstance(),gMB.downloadManagerActionMap,gMB.JSC$32972_clientRoot);_.gI(_.JD.getInstance(),JQW.feedbackCollectorActionMap,JQW.JSC$32967_clientRoot);
for(var q=_.Z(xkU.eventListeners),N=q.next();!N.done;N=q.next()){var b=_.Z(N.value);N=b.next().value;b=b.next().value;b=_.Z(b);for(var y=b.next();!y.done;y=b.next()){var J=_.Z(y.value);y=J.next().value;J=J.next().value;N.removeEventListener(y,J)}}_.gI(_.JD.getInstance(),xkU.autonavPauseActionMap,xkU.JSC$20420_clientRoot)};
_.g.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.c3().getFlag(186)};
_.g.computeIsInlinePreviewEnabled=function(q,N,b){return!b&&_.xPa({miniplayerIsActive:q,miniplayerPlaybackState:N})};
_.g.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.B3({type:"SET_FROSTED_GLASS_MODE",payload:!_.x("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"}))};
_.g.computeIsFrostedGlassDisabled=function(q,N,b,y){return q||N||b||y&&_.x("web_frosted_glass_disable_watch")};
_.g.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.x("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.g.computeIsHomePage=function(q,N){if(!q||N==null||!N.endpoint)return!1;var b;return((b=_.v(N.endpoint,_.FH))==null?void 0:b.browseId)==="FEwhat_to_watch"};
_.g.updateIsChannelOrPlaylistPage=function(){if(_.x("web_frosted_glass")){var q,N,b=(N=(q=_.tz().resolve(_.$f(_.L6)))==null?void 0:q.getCurrentPage())==null?void 0:N.pageSubtype;this.isChannelOrPlaylistPage=b?["channel","channels","playlist"].includes(b):!1}};
_.g.scheduleFrostedGlassInitialization=function(){var q=this;_.x("web_frosted_glass")&&_.dw().parkOrScheduleJob(function(){q.isFrostedGlassInitialized=!0},0,_.I8(["eocs",
"cr"]),300)};
_.g.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.EO1(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.B3({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.B3({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.g.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(d2A(!0))};
_.g.onYtSignalActionRequestPersistentStorage=function(){if(!_.x("request_persistent_storage_killswitch")){var q=_.tz().resolve(_.oLf);q.cachedPersistStatePromise||(q.cachedPersistStatePromise=hgK())}};
_.g.handleYtChannelCreationFormEndpoints=function(q){q&&this.ytComponentBehavior.resolveCommand(q)};
_.g.handleShowEngagementPanelEndpoint=function(q){q&&this.ytComponentBehavior.resolveCommand(q)};
_.g.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(d2A(!1))};
_.g.initIconDefs=function(q,N){var b=document.createElement("iron-iconset-svg");b.name=q;q=document.createElementNS("http://www.w3.org/2000/svg","svg");b.appendChild(q);q.appendChild(N);document.body.appendChild(b);return b};
_.g.onWindowResized=function(){_.By(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var q=_.id.getInstance();q.documentWidth_=document.body.clientWidth;G5A(q)};
_.g.onWindowScrolled=function(){var q=_.tz().resolve(_.L6).getCurrentPage();if(q!=null&&q.getScrollTop){var N=this.ytdReduxBehavior,b=N.dispatch;q=q.getScrollTop()<=0;b.call(N,_.B3({type:"SET_SCROLL_AT_TOP",payload:q}))}};
_.g.guideIsVisibleButNotPersistentSelectorChanged=function(){var q=_.tz().resolve(_.L6).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=q.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"),
q.setScrollTop(this.guideScrollTop));_.Hy(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.g.getCurrentPageScrollableElementType=function(){var q=_.tz().resolve(_.L6).getCurrentPage();if(q&&q.getPageScrollingElement())return q.getPageScrollingElement().nodeName};
_.g.observeGuideVisibility=function(){var q=_.id.getInstance(),N=this.miniGuideVisible;q.guidePersistentAndVisible_=this.guidePersistentAndVisible;q.miniGuideVisible_=N;G5A(q)};
_.g.observePersistentPanelVisibility=function(){var q=_.id.getInstance();q.persistentPanelVisible_=this.persistentPanelVisible;G5A(q)};
_.g.handleEduDismissAction=function(q){q&&q.eduDismissAction&&(_.By(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.ROq.getInstance(),_.OS.set(q.eduDismissAction.key+"-dismissed",!0))};
_.g.handleEduImpressionAction=function(q){if(q&&q.eduImpressionAction){var N=_.ROq.getInstance();q=q.eduImpressionAction.key;N.JSC$13260_eduDisplayedThisLoad_[_.F2R[q].setKey||q]=!0;_.OS.set(q+"-impression",parseInt(_.OS.get(q+"-impression")||0,10)+1)}};
_.g.onYtSignalActionConfirmMentionsEdu=function(){_.By(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.KP.getInstance();_.ld.set("edu-dismissed",!0)};
_.g.onYtSignalActionRecordMentionsEduImpression=function(){_.KP.getInstance();var q=_.ld.set,N=parseInt(_.ld.get("edu-impressions"),10);q.call(_.ld,"edu-impressions",(isFinite(N)?N:0)+1)};
_.g.onYtPageManagerAttached=function(q){var N;((N=_.a0(q))==null?void 0:N.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.g.onInvokeInstrumentManagerAction=function(q,N){PUa(N,q)};
_.g.updateIconSet=function(){var q=this.hostElement.querySelector("#masthead");if(q){var N=_.BP(q),b=N.querySelector("g#yt-logo-updated");b&&(q=document.createElementNS("http://www.w3.org/2000/svg","defs"),q.appendChild(b.cloneNode(!0)),(N=N.querySelector("g#yt-logo-red-updated"))&&q.appendChild(N.cloneNode(!0)),this.initIconDefs("yt-logos-ext",q))}};
_.g.updateMastheadData=function(){var q=this,N,b,y,J,E;return _.d(function(F){if(F.nextAddress==1){N=q.data;b=q.hostElement.querySelector("#masthead");if(!b)return F.return();_.ut(q,function(){b.data=q.topbarData});
if(!q.get("response.topbar",N)||q.get("response.topbar.responseContext.maxAgeSeconds",N)===0)return F.jumpTo(0);if(y=_.tz().resolve(_.Hu))return F.yield(y(),6);J=_.tz().resolve(_.KE);return F.yield(J.put("service:topbar:fallback",new _.Dv({innertubeResponse:q.get("response.topbar",N)})),0)}return(E=F.yieldResult)?F.yield(E.put("service:topbar:fallback",new _.Dv({innertubeResponse:q.get("response.topbar",N)})),0):F.jumpTo(0)})};
_.g.computeTopbarData=function(q){if(!q)return null;var N;return this.isShortsPage&&this.topbarData&&!_.v((N=q.response)==null?void 0:N.topbar,Czd)?this.topbarData:q.response&&"topbar"in q.response?_.v(q.response.topbar,Czd)||null:null};
_.g.onSetTheaterModeEnabled=function(q,N){this.isTheaterModeSession=N.enabled;this.setTheaterModeStyles(N.enabled)};
_.g.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.g.onDarkModeToggledAction=function(){var q=_.wO(window.location.href);if(!_.dye(q)){(q=!!_.gO(window.location.href).themeRefresh)&&_.M6(new _.IO("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!q){zIN();q={themeRefresh:1};var N=_.tz().resolve(_.L6);if(N.isOnWatch()){var b,y;N=((b=N.getPlayerFromWatch())==null?void 0:(y=b.getPlayer())==null?void 0:y.getCurrentTime())||0;N>=1&&(q.time_continue=Math.floor(N))}_.UV()||_.D4()!=="USER_INTERFACE_THEME_DARK"||(q.theme="dark");_.lI(_.ZM(window.location.href,
q))}_.x("web_appshell_refresh_trigger")&&_.JZ.caches&&this.refreshAppShellResponse();b=_.fx(window.location.href);_.Ub(_.tz().resolve(_.fE),_.px(b,"theme"))}};
_.g.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.g.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.g.onPlayerFullscreen=function(q){_.Py();this.playerFullscreen=q};
_.g.setRestrictedMode=function(q){var N=_.c3();_.uG(0,58,q);N.save();_.tz().resolve(_.US).reload()};
_.g.onPageChanged=function(q){q.detail.newPageType==="ytd-watch-flexy"||q.detail.newPageType==="ytd-watch-fixie"||q.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.xJ("WEB_PAGE_TYPE_WATCH")):q.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.xJ("WEB_PAGE_TYPE_SHORTS")):q.detail.newPageType==="ytd-browse"&&q.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.xJ("WEB_PAGE_TYPE_MINI_APP")):_.x("web_frosted_glass")&&q.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.xJ("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.xJ("WEB_PAGE_TYPE_UNKNOWN"));q.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.g.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.g.onGuideToggleTap=function(){_.e2(this.hostElement,"yt-guide-toggle")};
_.g.onGuideToggleHover=function(){_.e2(this.hostElement,"yt-guide-hover")};
_.g.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.g.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.g.setMastheadTheme=function(){var q=_.BP(this.hostElement).querySelector("#masthead");q&&(q.dark=q.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),q.isDarkThemeForced=!1)};
_.g.onRequestPanelModeChange=function(q,N){this.hideHeaderShadow=N.mode!=="seamed"};
_.g.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.g.onDrawerIronSelect=function(q){_.a0(q).id==="guide"&&this.processDrawerIronSelect()};
_.g.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var q="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(q="opened"));_.e2(this.hostElement,"yt-autonav-pause-guide-"+q)};
_.g.onAddElementToApp=function(q){_.ee(this.hostElement).appendChild(q.detail)};
_.g.onThrottledScroll=function(){var q=_.tz().resolve(_.L6).getCurrentPage();q&&(this.scrollAtTop=q.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.g.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.g.setFullscreen=function(){if(_.x("external_fullscreen")||!this.isWatchPage){var q=_.x("kevlar_fullerscreen_root_only_killswitch")?!!_.Py():!!_.Py()&&_.Py()===document.documentElement;q=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(q||this.isFullWindowSession);this.fullscreen!==q&&((this.fullscreen=q)&&_.Hy(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.WT().dispatch(_.Ppq(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.By(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.g.setFullscreenLoggingForShorts=function(q){var N,b,y;return _.d(function(J){if(J.nextAddress==1)return J.yield((N=_.Pk())==null?void 0:N.getPlayerPromise(),2);b=J.yieldResult;(y=b)==null||y.setAppFullscreen(q);_.hj(J)})};
_.g.updateMastheadCssHeight=function(){var q=this.mastheadHeight;this.fullscreen&&(q=0);_.Jm(this.hostElement,{"--ytd-masthead-height":q+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.g.updateNetworkStatusBannerDisplayStatus=function(){var q="unset";this.fullscreen&&(q="none");_.Jm(this.hostElement,{"--ytd-network-status-banner-display":q})};
_.g.updateNetworkStatusBannerCssHeight=function(){var q="unset";this.fullscreen&&(q="0px");_.Jm(this.hostElement,{"--ytd-network-status-banner-max-height":q})};
_.g.updateScrollAndMasthead=function(q,N,b,y){this.iMaxTheaterMode||(y=!1);var J=_.tz().resolve(_.L6).getCurrentPage();q||N||y?(document.body.classList.add("no-scroll"),J.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.gq(this,this.onScroll)),J.setScrollTop(0),_.Jm(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.ph()+"px"})):b?_.e2(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.e2(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
J.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.gq(this,this.onScroll)));this.mastheadHidden=q||N||b;this.updateMastheadCssHeight();_.x("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.g.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.g.onYtNavigateAction=function(q){q=this.get("navigateAction.endpoint",q);_.e2(this.hostElement,"yt-navigate",{endpoint:q})};
_.g.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var q=document.createElement("yt-create-family-dialog");_.ee(this.hostElement).appendChild(q);this.hasCreateFamilyDialog=!0}};
_.g.onSetPushNotificationsEnabledCommand=function(q){var N=this,b=_.v(q,f0x);b&&typeof b.enabled==="boolean"&&(Notification.permission!=="granted"?QEf().then(function(){Notification.permission==="granted"?(F8X(!b.enabled).then(cEp),b.successAction&&_.qc(N.hostElement,[b.successAction])):b.failureAction&&_.qc(N.hostElement,[b.failureAction])}):(F8X(!b.enabled).then(cEp),b.successAction&&_.qc(this.hostElement,[b.successAction])))};
_.g.onYtSignalActionEnableChromeNotifications=function(){O6B(!0)};
_.g.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.v(this.topbarData.hotkeyDialog,sZB)}}})};
_.g.onYtSignalActionShowKeyboardShortcutDialog=function(){_.By(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.g.onYtEndpointChangeHandler=function(q,N){var b=_.L0(_.k6);b.pendingPrefetchJob_&&(N=!(!N||N.autonav!="1"),b.pendingPrefetchJob_.resolve(q&&_.Fon(q)?_.RYJ(q,N):""),b.pendingPrefetchJob_=null);_.By(this.hostElement,"yt-pause-active-page-context");_.By(this.hostElement,"ytd-log-youthere-nav");_.By(this.hostElement,"yt-prepare-page-dispose")};
_.g.handleCommandWithCommandHandler=function(q,N){_.bq.instance.resolveCommand(q,{form:{element:N}})};
_.g.onYtTimedCommand=function(q){var N=this;q=_.v(q,Yrp);var b=q.command;b&&_.ZQ(_.pY,function(){var y=_.v(b,_.xJo);y?(_.bq.instance.resolveCommand(b),N.maybeLogGetAnswerRequestTick(y)):_.Nc(N.hostElement,[b],N.hostElement)},q.timeoutMs||0)};
_.g.maybeLogGetAnswerRequestTick=function(q){q&&q.isFirstRequest&&(_.Yo("search_overview_answer"),_.Q6("so_rq",void 0,"search_overview_answer"))};
_.g.onYtSignalActionSkipNavigation=function(){var q=_.tz().resolve(_.L6).getCurrentPage();_.Ff(q)};
_.g.onYtSignalActionCopyDebugData=function(){sEd()};
_.g.handleEntityUpdateCommand=function(q){_.Ro(_.v(q,_.WCq).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.g.logFlowLoggingEventCommand=function(q){if(q=_.v(q,_.LQD))if(q.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var N=q.flowEventNamespace,b=q.flowEventType,y=q.flowType;y&&N&&b&&_.qEn(_.JN(N,b,q.flowEventMetadata),y)}else{N=_.Ev();b=q.flowEventNamespace;y=q.flowEventType;var J=q.flowType;J&&b&&y&&N.logFlowEvent(_.JN(b,y,q.flowEventMetadata),J,q.flowNonce)}};
_.g.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.g.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.g.onTouchStart=function(){var q=_.CP();_.Oe()&&_.Ul(q.JSC$13382_screenManager,{visualElement:q.ve})};
_.g.handleSelectLanguageCommand=function(q){if(q=_.v(q,hhc).hl){var N=_.c3();N.set("hl",q);N.save();_.tz().resolve(_.US).reload()}};
_.g.handleConfirmDialogEndpoint=function(q){(q=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(q))&&this.ytOpenPopupBehavior.openPopup(q)};
_.g.handleOpenPopupNavigationEndpoints=function(q,N){(q=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(q))&&this.ytOpenPopupBehavior.openPopup(q,N)};
_.g.handleSaveCommandToSessionStorage=function(q){if(q=_.v(q,_.OvF)){var N=q.key;N&&q.command&&window.sessionStorage.setItem(N,JSON.stringify(q.command))}};
_.g.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(q){q&&q.active&&q.active.postMessage({type:"refresh_shell"})}).catch(function(q){q.name!=="SecurityError"&&_.po(q)})};
_.g.onDeviceThemeChanged=function(){var q=_.K9();_.uG(_.c3(),185,q);_.c3().save()};
_.g.handleYtRegisterPromoCommand=function(q){if(_.v(q,Uyc)){var N=_.tz().resolve(_.L6).getCurrentPage()||this.hostElement;Kfx().registerPromoCommand(_.v(q,Uyc),N)}};
_.g.onYtNavigateHomeAction=function(){if(!_.x("kevlar_miniplayer_navigate_home_from_app_killswitch")){var q,N,b,y,J=(y=(q=this.topbarData)==null?void 0:(N=q.logo)==null?void 0:(b=N.topbarLogoRenderer)==null?void 0:b.endpoint)!=null?y:_.nm;this.ytComponentBehavior.resolveCommand(J)}};
_.g.onYtLocationCollectionCommand=function(q){Vkf(_.v(q,M$d))};
_.g.onYtGetLocationCommand=function(q){Xcx(_.v(q,PzK),this)};
_.g.updateRenderGuideFromBinding=function(q){this.renderGuide=q.detail.value};
_.g.updateGuidePersistentAndVisibleFromBinding=function(q){this.guidePersistentAndVisible=q.detail.value};
_.g.updateMiniGuideVisibleFromBinding=function(q){this.miniGuideVisible=q.detail.value};
_.g.onThemeSelected=function(q,N){var b=_.c3(),y=q||N?q:_.K9(),J=(y&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!y&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.dye(_.wO(window.location.href));_.uG(0,165,q);_.uG(0,174,N);b.save();J&&_.By(this.hostElement,"yt-dark-mode-toggled-action",[y]);_.By(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.g.getCurrentTheme=function(){return _.hN()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.D4()};
_.g.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.g.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.g.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.g.handleShowConsentPrimitive=function(q){var N=this,b,y;return _.d(function(J){if(J.nextAddress==1){try{b=(y=_.Pk())==null?void 0:y.getPlayerPromise()}catch(E){}return J.yield(sXf(q,b),2)}_.By(N.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.hj(J)})};
_.g.handleSelectActiveIdentityEndpointInternal=function(q){_.w5();q=_.v(q,_.Itv);if(q!=null&&q.supportedTokens){q=_.Z(q.supportedTokens);for(var N=q.next();!N.done;N=q.next())N=N.value,N.accountSigninToken&&_.lI(N.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.g.handleUpdatePermissionRoleCommand=function(q){if(q=_.v(q,_.TTx)){var N;this.hasDelegation=!((N=_.v(q.renderer,_.Ic4))==null||!N.status)}};
_.g.registerWithViewTransitionManager=function(){var q=_.tz().resolve(_.$f(_.p8));if(q){var N,b=(N=this.guide)==null?void 0:N.querySelector("#scrim"),y;N=(y=this.guide)==null?void 0:y.querySelector("#contentContainer");b&&N&&q.isAnyTransitionEnabled&&(y={},q.viewTransitionCoordinator.registerElement(b,(y.slide="app-drawer-scrim-page-transition",y["lockup-to-watch"]="app-drawer-scrim-page-transition",y["learning-journey"]="app-drawer-scrim-page-transition",y)),b={},q.viewTransitionCoordinator.registerElement(N,
(b.slide="app-drawer-container-page-transition",b["lockup-to-watch"]="app-drawer-container-page-transition",b["learning-journey"]="app-drawer-container-page-transition",b)))}};
_.$H.Object.defineProperties(f2.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.x("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.$H.Object.defineProperties(f2,{template:{configurable:!0,enumerable:!0,get:function(){if(eKx===void 0){var q=document.createElement("template");_.Q(q,'\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');
q.content.insertBefore(_.A().content.cloneNode(!0),q.content.firstChild);eKx=q}q=eKx;return q}}});
f2.prototype.onOpenHotkeyDialog=f2.prototype.onOpenHotkeyDialog;f2.prototype.setFullscreen=f2.prototype.setFullscreen;f2.prototype.onAddElementToApp=f2.prototype.onAddElementToApp;f2.prototype.onDrawerIronSelect=f2.prototype.onDrawerIronSelect;f2.prototype.onGuideOpenButtonHover=f2.prototype.onGuideOpenButtonHover;f2.prototype.onRequestPanelModeChange=f2.prototype.onRequestPanelModeChange;f2.prototype.onPageDataUpdated=f2.prototype.onPageDataUpdated;f2.prototype.onPageChanged=f2.prototype.onPageChanged;
f2.prototype.onSetTheaterModeEnabled=f2.prototype.onSetTheaterModeEnabled;f2.prototype.updateMastheadData=f2.prototype.updateMastheadData;f2.prototype.onYtPageManagerAttached=f2.prototype.onYtPageManagerAttached;f2.prototype.observePersistentPanelVisibility=f2.prototype.observePersistentPanelVisibility;f2.prototype.observeGuideVisibility=f2.prototype.observeGuideVisibility;f2.prototype.guideIsVisibleButNotPersistentSelectorChanged=f2.prototype.guideIsVisibleButNotPersistentSelectorChanged;
f2.prototype.isInlinePreviewEnabledChanged=f2.prototype.isInlinePreviewEnabledChanged;f2.prototype.isWatchPageChanged=f2.prototype.isWatchPageChanged;f2.prototype.dispatchFrostedGlassMode=f2.prototype.dispatchFrostedGlassMode;_.p([_.O(_.H6),_.P("design:type",Object)],f2.prototype,"ytdReduxBehavior",void 0);_.p([_.O(_.WF.YtEventForwardingBehavior),_.P("design:type",Object)],f2.prototype,"ytEventForwardingBehavior",void 0);
_.p([_.O(_.lw.YtOpenPopupBehavior),_.P("design:type",Object)],f2.prototype,"ytOpenPopupBehavior",void 0);_.p([_.O(_.Dc.YtActionHandlerBehavior),_.P("design:type",Object)],f2.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.O({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.JD.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.x("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var q;((q=this.actionRouterNode.hostElement)!=null?q:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var q;((q=this.actionRouterNode.hostElement)!=null?q:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(q){this.actionRouter_.handleAction(q.detail)}}),
_.P("design:type",Object)],f2.prototype,"ytActionRouterBehavior",void 0);_.p([_.O(I_f.YtdAppBehavior),_.P("design:type",Object)],f2.prototype,"ytdAppBehavior",void 0);_.p([_.O(_.KV.YtEndpointBehavior),_.P("design:type",Object)],f2.prototype,"ytEndpointBehavior",void 0);_.p([_.O(byd.YtEndpointHandlerWithYpcBehavior),_.P("design:type",Object)],f2.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.p([_.O(BrA.YtLogYpcFlowCommandsBehavior),_.P("design:type",Object)],f2.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.p([_.O(_.e.YtRendererBehavior),_.P("design:type",Object)],f2.prototype,"ytRendererBehavior",void 0);_.p([_.O(_.qT.YtComponentBehavior),_.P("design:type",Object)],f2.prototype,"ytComponentBehavior",void 0);_.p([_.U({selector:_.s0p}),_.P("design:type",Object)],f2.prototype,"tabGesturesIsActive",void 0);_.p([_.U(),_.P("design:type",Boolean)],f2.prototype,"renderGuide",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],f2.prototype,"guidePersistentAndVisible",void 0);_.p([_.U({selector:_.T5C}),_.P("design:type",Boolean)],f2.prototype,"guideIsVisibleButNotPersistent",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],f2.prototype,"standalone",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],f2.prototype,"miniGuideVisible",void 0);
_.p([_.U(),_.P("design:type",Object)],f2.prototype,"persistentPanelEnabled",void 0);_.p([_.U({selector:j4d,reflectToAttribute:!0}),_.P("design:type",Boolean)],f2.prototype,"persistentPanelVisible",void 0);_.p([_.U({selector:_.IcZ}),_.P("design:type",Number)],f2.prototype,"miniplayerPlaybackState",void 0);_.p([_.U({selector:_.QU,reflectToAttribute:!0}),_.P("design:type",Boolean)],f2.prototype,"miniplayerIsActive",void 0);
_.p([_.U({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.P("design:type",Boolean)],f2.prototype,"isInlinePreviewEnabled",void 0);_.p([_.U(),_.P("design:type",Boolean)],f2.prototype,"isInlinePreviewDisabled",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.ou("START_IN_FULL_WINDOW_MODE")}}),
_.P("design:type",Boolean)],f2.prototype,"mastheadHidden",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],f2.prototype,"playerFullscreen",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],f2.prototype,"fullscreen",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],f2.prototype,"hideHeaderShadow",void 0);
_.p([_.U({value:{GUIDE_ALT_LABEL:_.FE("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.P("design:type",Object)],f2.prototype,"menuStrings",void 0);_.p([_.U({computed:"computeTopbarData(data)"}),_.P("design:type",Object)],f2.prototype,"topbarData",void 0);_.p([_.U({selector:_.kEZ,reflectToAttribute:!0}),_.P("design:type",Boolean)],f2.prototype,"isWatchPage",void 0);_.p([_.U({selector:_.UTJ,reflectToAttribute:!0}),_.P("design:type",Boolean)],f2.prototype,"isShortsPage",void 0);
_.p([_.U({selector:function(q){return _.OR(q)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.P("design:type",Boolean)],f2.prototype,"isMiniAppPage",void 0);_.p([_.U({selector:function(q){return _.OR(q)==="WEB_PAGE_TYPE_BROWSE"}}),
_.P("design:type",Boolean)],f2.prototype,"isBrowsePage",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Boolean)],f2.prototype,"scrolling",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],f2.prototype,"hasDelegation",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],f2.prototype,"guideScrolledByTouch",void 0);_.p([_.U(),_.P("design:type",Object)],f2.prototype,"isFrostedGlassInitialized",void 0);
_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],f2.prototype,"frostedGlassExp",void 0);_.p([_.U({selector:function(q){return q.ui.chipBarIsSticky}}),
_.P("design:type",Boolean)],f2.prototype,"chipBarIsSticky",void 0);_.p([_.U({computed:"computeIsHomePage(isBrowsePage, data)"}),_.P("design:type",Boolean)],f2.prototype,"isHomePage",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],f2.prototype,"hasPendingWatchNavigation",void 0);_.p([_.U({reflectToAttribute:!0}),_.P("design:type",Object)],f2.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.p([_.U(),_.P("design:type",Object)],f2.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.p([_.ZF("guide"),_.P("design:type",Object)],f2.prototype,"guide",void 0);_.p([_.ZF("guide-service"),_.P("design:type",Owp)],f2.prototype,"guideService",void 0);_.p([_.ZF("guide-inner-content"),_.P("design:type",HTMLDivElement)],f2.prototype,"guideInnerContent",void 0);_.p([_.dq("#persistent-panel-container"),_.P("design:type",HTMLElement)],f2.prototype,"persistentPanelContainer",void 0);
_.p([_.U({selector:_.TTA}),_.P("design:type",String)],f2.prototype,"frostedGlassMode",void 0);_.p([_.FY("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f2.prototype,"dispatchFrostedGlassMode",null);_.p([_.U({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.P("design:type",Object)],f2.prototype,"isFrostedGlassDisabled",void 0);
_.p([_.FY("isWatchPage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f2.prototype,"isWatchPageChanged",null);_.p([_.l("isHomePage","chipBarIsSticky"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],f2.prototype,"applyFrostedGlassToChipBar",null);_.p([_.U(),_.P("design:type",Object)],f2.prototype,"isChannelOrPlaylistPage",void 0);
_.p([_.$9("isInlinePreviewEnabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f2.prototype,"isInlinePreviewEnabledChanged",null);_.p([_.FY("guideIsVisibleButNotPersistent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f2.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.p([_.FY("guidePersistentAndVisible","miniGuideVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f2.prototype,"observeGuideVisibility",null);_.p([_.FY("persistentPanelVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f2.prototype,"observePersistentPanelVisibility",null);
_.p([_.ZP("attached"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],f2.prototype,"onYtPageManagerAttached",null);_.p([_.FY("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],f2.prototype,"updateMastheadData",null);_.p([_.ZP("yt-set-theater-mode-enabled"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],f2.prototype,"onSetTheaterModeEnabled",null);
_.p([_.ZP("yt-page-type-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],f2.prototype,"onPageChanged",null);_.p([_.ZP("yt-page-data-updated"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f2.prototype,"onPageDataUpdated",null);_.p([_.ZP("yt-request-panel-mode-change"),_.P("design:type",Function),_.P("design:paramtypes",[Event,Object]),_.P("design:returntype")],f2.prototype,"onRequestPanelModeChange",null);
_.p([_.ZP("yt-guide-hover"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f2.prototype,"onGuideOpenButtonHover",null);_.p([_.ZP("app-drawer-transitioned"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],f2.prototype,"onDrawerIronSelect",null);_.p([_.ZP("yt-add-element-to-app"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],f2.prototype,"onAddElementToApp",null);
_.p([_.ZP("yt-set-fullerscreen-styles"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f2.prototype,"setFullscreen",null);_.p([_.ZP("yt-open-hotkey-dialog"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f2.prototype,"onOpenHotkeyDialog",null);_.p([_.I({is:"ytd-app"})],f2);_.dw().processSignal("eor");
_.pF();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
